Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0f53895
Updated Regular Expression to Regular expressions recognizer in recog…
stevkan Sep 29, 2020
5e316b8
Updates regular expressions casing in .md files
stevkan Sep 29, 2020
2f885fb
Merge branch 'main' into stevkan/update-recognizer-type-naming-rule
beyackle Oct 1, 2020
2011ccd
fix: Move skill settings into settings.skillConfiguration (#4312)
srinaath Oct 1, 2020
00ba03a
refactor: change method of installing extensions (#4315)
a-b-r-o-w-n Oct 2, 2020
34f53c1
feat: form dialog extension (#4296)
hatpick Oct 5, 2020
f9e3ca8
Update en-US.json (#4322)
beyackle Oct 5, 2020
35f3c9b
fix: Fixed useArrayItems and useObjectItems (#4323)
tdurnford Oct 5, 2020
b307bfe
fix: only show enabled extension pages (#4321)
a-b-r-o-w-n Oct 6, 2020
8d1fc5a
feat: Allow undo/redo in form dialog schema builder (#4328)
hatpick Oct 6, 2020
818b60e
refactor: add @bfc/types package (#4336)
a-b-r-o-w-n Oct 8, 2020
843d1d5
feat: Bot Project Operations (#4316)
srinaath Oct 8, 2020
9c33b67
Updating to latest version of generate library (#4341)
GeoffCoxMSFT Oct 8, 2020
11269c7
Update runtime package to 4.10.5 (#4343)
luhan2017 Oct 9, 2020
ee5c34f
fix: restore localization JSON file (#4347)
beyackle Oct 10, 2020
a4471e7
fix: Added the designer id to the root property id in the Adaptive Fo…
tdurnford Oct 12, 2020
81e1b81
feat: lu features setting (#4318)
zhixzhan Oct 12, 2020
d5fdd02
feat: BotProject File Schema (#3744)
srinaath Oct 12, 2020
9e98dfc
fix: share 'LuIntentEditor' widget across recognizers (#4350)
yeze322 Oct 12, 2020
31ec081
feature: Adding VA template behind feature flag in Composer (#4140)
pavolum Oct 12, 2020
18d66bd
feature: Adding VA template custom creation UI (#4176)
pavolum Oct 13, 2020
68cb8bb
feat: Added support for nested fieldsets (#4364)
tdurnford Oct 14, 2020
e000405
chore: remove the ci yarn cache [TEST] (#4369)
lei9444 Oct 14, 2020
6509433
feat: zoom in out (#4217)
alanlong9278 Oct 14, 2020
5c5b322
fix: Guard selectors against partially loaded project (#4367)
srinaath Oct 14, 2020
2a15dd4
Fixed platform specific location expection (#4375)
GeoffCoxMSFT Oct 14, 2020
fcc9aca
feat: Form dialogs within Composer UX (#4362)
hatpick Oct 14, 2020
51ef1d6
feat: add useProjectApi for extensions (#4358)
a-b-r-o-w-n Oct 14, 2020
4e1317f
chore: clear CI yarn cache (#4365)
GeoffCoxMSFT Oct 15, 2020
e5fc3df
feat: QnA import url (#3919)
zhixzhan Oct 15, 2020
d40fd3c
feat: Added jsonSchema and trigger content (#4353)
GeoffCoxMSFT Oct 15, 2020
2ea3f45
fix: Fetch form dialog templates behind the flag (#4388)
hatpick Oct 15, 2020
27345fe
chore: enable easier electron builds by hosting some packages (#4383)
a-b-r-o-w-n Oct 15, 2020
72a51a6
Updated Regular Expression to Regular expressions recognizer in recog…
stevkan Sep 29, 2020
a72d565
Updates regular expressions casing in .md files
stevkan Sep 29, 2020
94ca993
Changed pluralization of expressions to expression
stevkan Oct 15, 2020
2e92eab
Merge branch 'stevkan/update-recognizer-type-naming-rule' of https://…
stevkan Oct 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 11 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.13.0
- name: Restore yarn cache
uses: actions/cache@preview
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/Composer/yarn.lock')) }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn install
run: yarn
#- name: Restore yarn cache
# uses: actions/cache@v2.1.2
# with:
# path: ~/.cache/yarn
# key: ${{ runner.os }}-yarn-new-${{ hashFiles(format('{0}{1}', github.workspace, '/Composer/yarn.lock')) }}
# restore-keys: |
# ${{ runner.os }}-yarn-new-
- name: Clear global yarn cache
run: yarn cache clean
- name: yarn --update-checksums
run: yarn --update-checksums
- name: yarn build:dev
run: yarn build:dev
- name: yarn lint
Expand Down
34 changes: 17 additions & 17 deletions .vscode/snippets.json.code-snippets
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
// Place your BotFramework-Composer workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
"React component test scaffolding": {
"prefix": "rct",
"body": [
"import React from 'react';",
"import { render } from '@bfc/test-utils';",
// Place your BotFramework-Composer workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
"React component test scaffolding": {
"prefix": "rct",
"body": [
"import React from 'react';",
"import { render } from '@botframework-composer/test-utils';",
"import assign from 'lodash/assign';\n",
"import { $1 } from '$2';\n",
"const defaultProps = {\n $3\n};\n",
"function renderSubject(overrides = {}) {",
" const props = assign({}, defaultProps, overrides);",
" return render(<$1 {...props} />);",
"}\n",
"describe('<$1 />', () => {",
" it.todo('$0');",
"});\n"
],
"description": "React component test scaffolding"
}
"describe('<$1 />', () => {",
" it.todo('$0');",
"});\n"
],
"description": "React component test scaffolding"
}
}
1 change: 1 addition & 0 deletions Composer/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-explicit-any': 'off',

'security/detect-buffer-noassert': 'off',
'security/detect-child-process': 'off',
Expand Down
1 change: 0 additions & 1 deletion Composer/.npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@bfcomposer:registry=https://botbuilder.myget.org/F/botbuilder-declarative/npm/
scripts-prepend-node-path=true
2 changes: 1 addition & 1 deletion Composer/cypress/integration/LGPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ context('LG Page', () => {
cy.contains('TodoSample');
cy.contains('All');

cy.get('.toggleEditMode button').as('switchButton');
cy.findByTestId('showcode').as('switchButton');

// by default is table view
cy.findByTestId('LGPage').findByTestId('table-view').should('exist');
Expand Down
4 changes: 2 additions & 2 deletions Composer/cypress/integration/LUPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ context('LU Page', () => {
cy.contains('__TestToDoBotWithLuisSample');
cy.contains('All');

cy.get('.toggleEditMode button').should('not.exist');
cy.findByTestId('showcode').should('not.exist');

// by default it goes to table view
cy.findByTestId('LUPage').findByTestId('table-view').should('exist');
Expand All @@ -25,7 +25,7 @@ context('LU Page', () => {
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestToDoBotWithLuisSample').click('left');
});
cy.get('.toggleEditMode button').as('switchButton');
cy.findByTestId('showcode').as('switchButton');
// goto edit-mode
cy.get('@switchButton').click();
cy.findByTestId('LUPage').get('.monaco-editor').should('exist');
Expand Down
5 changes: 2 additions & 3 deletions Composer/cypress/integration/NotificationPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ context('Notification Page', () => {
it('can show lg syntax error ', () => {
cy.visitPage('Bot Responses');

cy.get('.toggleEditMode button').as('switchButton');
cy.get('@switchButton').click();
cy.findByTestId('showcode').click();
cy.get('textarea').type('#', { delay: 200 });

cy.findByTestId('LeftNav-CommandBarButtonNotifications').click();
Expand All @@ -29,7 +28,7 @@ context('Notification Page', () => {
cy.findByText('__TestToDoBotWithLuisSample').click();
});

cy.get('.toggleEditMode button').click();
cy.findByTestId('showcode').click();
cy.get('textarea').type('t', { delay: 200 });

cy.findByTestId('LeftNav-CommandBarButtonNotifications').click();
Expand Down
2 changes: 1 addition & 1 deletion Composer/cypress/integration/TriggerCreation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ context('Creating a new trigger', () => {
it('can create different kinds of triggers ', () => {
cy.visitPage('Design');
cy.findByTestId('recognizerTypeDropdown').click();
cy.findByText('Regular Expression').click();
cy.findByText('Regular expression recognizer').click();

//onintent trigger
cy.findByTestId('AddFlyout').click();
Expand Down
21 changes: 9 additions & 12 deletions Composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"mkdirp": "^0.5.2",
"selfsigned": "1.10.8",
"serialize-javascript": "^3.1.0",
"set-value": "^3.0.2"
"set-value": "^3.0.2",
"terser-webpack-plugin": "^2.3.7"
},
"engines": {
"node": ">=12"
Expand All @@ -24,33 +25,29 @@
"packages/electron-server",
"packages/extension",
"packages/extension-client",
"packages/form-dialogs",
"packages/intellisense",
"packages/lib",
"packages/lib/*",
"packages/server",
"packages/test-utils",
"packages/tools",
"packages/tools/built-in-functions",
"packages/tools/language-servers",
"packages/tools/language-servers/*",
"packages/types",
"packages/ui-plugins/*"
],
"scripts": {
"build": "node scripts/begin.js && yarn build:prod",
"build:prod": "yarn build:dev && yarn build:server && yarn build:client && yarn build:electron",
"build:dev": "yarn build:test && yarn build:lib && yarn build:tools && yarn build:extensions && yarn build:plugins && yarn l10n",
"build:test": "yarn workspace @bfc/test-utils build",
"build:lib": "yarn workspace @bfc/libs build:all",
"build": "node scripts/begin.js && yarn build:prod && yarn l10n",
"build:prod": "yarn build:dev && yarn build:client && yarn build:server && yarn build:electron",
"build:dev": "wsrun -ltm -x @bfc/electron-server -x @bfc/client -x @bfc/server -p @botframework-composer/* -p @bfc/* -c build && yarn build:plugins",
"build:electron": "yarn workspace @bfc/electron-server build && yarn workspace @bfc/electron-server l10n",
"build:extensions": "wsrun -lt -p @bfc/extension @bfc/intellisense @bfc/extension-client @bfc/adaptive-form @bfc/adaptive-flow @bfc/ui-plugin-* -c build",
"build:server": "yarn workspace @bfc/server build",
"build:client": "yarn workspace @bfc/client build",
"build:tools": "yarn workspace @bfc/tools build:all",
"build:plugins": "yarn build:plugins:localpublish && yarn build:plugins:samples && yarn build:plugins:azurePublish && yarn build:plugins:runtimes",
"build:plugins": "yarn build:plugins:localpublish && yarn build:plugins:samples && yarn build:plugins:azurePublish && yarn build:plugins:runtimes && yarn build:plugins:vacore",
"build:plugins:localpublish": "cd plugins/localPublish && yarn install && yarn build",
"build:plugins:samples": "cd plugins/samples && yarn install && yarn build",
"build:plugins:azurePublish": "cd plugins/azurePublish && yarn install && yarn build",
"build:plugins:runtimes": "cd plugins/runtimes && yarn install && yarn build",
"build:plugins:vacore": "cd plugins/vacore && yarn install && yarn build",
"start": "cross-env NODE_ENV=production PORT=3000 yarn start:server",
"startall": "yarn start",
"start:dev": "concurrently \"npm:start:client\" \"npm:start:server:dev\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';
import { EditorExtensionContext } from '@bfc/extension-client';

import AdaptiveFlowEditor from '../../src/adaptive-flow-editor/AdaptiveFlowEditor';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render, fireEvent, findByText } from '@bfc/test-utils';
import { render, fireEvent, findByText } from '@botframework-composer/test-utils';

import { IconMenu } from '../../../src/adaptive-flow-editor/components/IconMenu';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render, fireEvent } from '@bfc/test-utils';
import { render, fireEvent } from '@botframework-composer/test-utils';

import { enableKeyboardCommandAttributes } from '../../../src/adaptive-flow-editor/components/KeyboardZone';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React, { useContext } from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';
import { DialogFactory } from '@bfc/shared';

import { NodeRendererContext } from '../../../src/adaptive-flow-editor/contexts/NodeRendererContext';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React, { useContext } from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';

import { SelectionContext } from '../../../src/adaptive-flow-editor/contexts/SelectionContext';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { renderHook } from '@bfc/test-utils/lib/hooks';
import { renderHook } from '@botframework-composer/test-utils/lib/hooks';

import { useEditorEventApi } from '../../../src/adaptive-flow-editor/hooks/useEditorEventApi';
import { ShellApiStub } from '../stubs/ShellApiStub';
import { defaultRendererContextValue } from '../../../src/adaptive-flow-editor/contexts/NodeRendererContext';
import { defaultSelectionContextValue } from '../../../src/adaptive-flow-editor/contexts/SelectionContext';
import { NodeEventTypes } from '../../../src/adaptive-flow-renderer/constants/NodeEventTypes';

describe('useSelectionEffect', () => {
describe('useEditorEventApi', () => {
const hook = renderHook(() =>
useEditorEventApi(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';
import { DialogGroup } from '@bfc/shared';

import { EdgeMenu } from '../../../src/adaptive-flow-editor/renderers/EdgeMenu';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';

import { ElementWrapper } from '../../../src/adaptive-flow-editor/renderers/ElementWrapper';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render, fireEvent, findAllByText } from '@bfc/test-utils';
import { render, fireEvent, findAllByText } from '@botframework-composer/test-utils';

import { NodeMenu } from '../../../src/adaptive-flow-editor/renderers/NodeMenu';
import { NodeEventTypes } from '../../../src/adaptive-flow-renderer/constants/NodeEventTypes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render, fireEvent } from '@bfc/test-utils';
import { render, fireEvent } from '@botframework-composer/test-utils';
import { EditorExtensionContext } from '@bfc/extension-client';

import { ActionNodeWrapper } from '../../../src/adaptive-flow-editor/renderers/NodeWrapper';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ export const ShellApiStub: ShellApi = {
updateLgTemplate: fnPromise,
removeLgTemplate: fnPromise,
removeLgTemplates: fnPromise,
updateLgFile: fnPromise,
debouncedUpdateLgTemplate: fnPromise,
getLuIntent: fn,
getLuIntents: fnList,
addLuIntent: fnPromise,
updateLuIntent: fnPromise,
removeLuIntent: fn,
updateLuFile: fnPromise,
debouncedUpdateLuIntent: fnPromise,
renameLuIntent: fnPromise,
updateRegExIntent: fn,
createDialog: fnPromise,
addCoachMarkRef: fn,
Expand All @@ -36,6 +41,21 @@ export const ShellApiStub: ShellApi = {
addSkillDialog: fnPromise,
announce: fn,
displayManifestModal: fn,
constructAction: fnPromise,
constructActions: fnPromise,
copyAction: fnPromise,
copyActions: fnPromise,
deleteAction: fnPromise,
deleteActions: fnPromise,
actionsContainLuIntent: fn,
updateQnaContent: fnPromise,
renameRegExIntent: fnPromise,
updateIntentTrigger: fnPromise,
commitChanges: fnPromise,
updateDialogSchema: fnPromise,
createTrigger: fnPromise,
updateSkillSetting: fnPromise,
updateFlowZoomRate: fnPromise,
};

describe('ShellApiStub', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { OBISchema } from '@bfc/shared';
import { JSONSchema7 } from '@bfc/shared';

import { getCustomSchema } from '../../../src/adaptive-flow-editor/utils/getCustomSchema';

Expand All @@ -23,7 +23,7 @@ describe('getCustomSchema', () => {
description: 'Send an activity.',
},
},
} as OBISchema;
} as JSONSchema7;
expect(getCustomSchema({ oneOf: [], definitions: {} }, ejected)).toEqual({
actions: {
oneOf: [
Expand Down Expand Up @@ -59,7 +59,7 @@ describe('getCustomSchema', () => {
description: 'My Trigger.',
},
},
} as OBISchema;
} as JSONSchema7;
expect(getCustomSchema({ oneOf: [], definitions: {} }, ejected)).toEqual({
actions: {
oneOf: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';

import { AdaptiveKinds } from '../../../src/adaptive-flow-renderer/constants/AdaptiveKinds';
import { AdaptiveDialog } from '../../../src/adaptive-flow-renderer/adaptive/AdaptiveDialog';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';

import { AdaptiveTrigger } from '../../../src/adaptive-flow-renderer/adaptive/AdaptiveTrigger';
import { SchemaContext } from '../../../src/adaptive-flow-renderer/contexts/SchemaContext';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';

import { ArrowLine } from '../../../src/adaptive-flow-renderer/components/ArrowLine';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';

import { Diamond } from '../../../src/adaptive-flow-renderer/components/Diamond';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import React from 'react';
import { render } from '@bfc/test-utils';
import { render } from '@botframework-composer/test-utils';

import { ElementMeasurer } from '../../../src/adaptive-flow-renderer/components/ElementMeasurer';

Expand Down
Loading