diff --git a/Composer/packages/client/src/recoilModel/dispatchers/__tests__/mocks/mockProjectResponse.json b/Composer/packages/client/src/recoilModel/dispatchers/__tests__/mocks/mockProjectResponse.json index f5ea636495..7413d32a0d 100644 --- a/Composer/packages/client/src/recoilModel/dispatchers/__tests__/mocks/mockProjectResponse.json +++ b/Composer/packages/client/src/recoilModel/dispatchers/__tests__/mocks/mockProjectResponse.json @@ -3085,7 +3085,7 @@ "title": "speak" }, "inputHint": { - "description": "Indicates whether your bot is accepting,\nexpecting, or ignoring user input after the message is delivered to the client. Possible\nvalues include: 'acceptingInput', 'ignoringInput', 'expectingInput'", + "description": "Indicates whether your bot is accepting,\nexpecting, or ignoring user input after the message is delivered to the client. Possible\nvalues include: 'acceptingInput', 'ignoringInput', 'expectingInput', 'ignoringSpeechInput', 'ignoringNonSpeechInput'", "type": "string", "title": "inputHint" }, diff --git a/Composer/packages/lib/code-editor/src/lg/modalityEditors/SpeechModalityEditor.tsx b/Composer/packages/lib/code-editor/src/lg/modalityEditors/SpeechModalityEditor.tsx index 312e04623b..b75e32888c 100644 --- a/Composer/packages/lib/code-editor/src/lg/modalityEditors/SpeechModalityEditor.tsx +++ b/Composer/packages/lib/code-editor/src/lg/modalityEditors/SpeechModalityEditor.tsx @@ -79,6 +79,16 @@ const SpeechModalityEditor = React.memo( text: formatMessage('Expecting'), selected: inputHint === 'expectingInput', }, + { + key: 'ignoringSpeechInput', + text: formatMessage('Ignoring Speech'), + selected: inputHint === 'ignoringSpeechInput', + }, + { + key: 'ignoringNonSpeechInput', + text: formatMessage('Ignoring Non Speech'), + selected: inputHint === 'ignoringNonSpeechInput', + }, ], [inputHint] ); diff --git a/Composer/packages/lib/code-editor/src/lg/types.ts b/Composer/packages/lib/code-editor/src/lg/types.ts index 0a5a0766cb..bf8003fb12 100644 --- a/Composer/packages/lib/code-editor/src/lg/types.ts +++ b/Composer/packages/lib/code-editor/src/lg/types.ts @@ -34,7 +34,13 @@ export type CommonModalityEditorProps = { /** * Structured response types. */ -export const acceptedInputHintValues = ['expectingInput', 'ignoringInput', 'acceptingInput'] as const; +export const acceptedInputHintValues = [ + 'expectingInput', + 'ignoringInput', + 'acceptingInput', + 'ignoringSpeechInput', + 'ignoringNonSpeechInput', +] as const; export const acceptedAttachmentLayout = ['carousel', 'list'] as const; export const modalityTypes = ['Text', 'Speak', 'Attachments', 'SuggestedActions'] as const; diff --git a/Composer/packages/server/src/locales/en-US.json b/Composer/packages/server/src/locales/en-US.json index 95d8a0e0e2..955c3f84e9 100644 --- a/Composer/packages/server/src/locales/en-US.json +++ b/Composer/packages/server/src/locales/en-US.json @@ -1955,6 +1955,12 @@ "ignoring_dc76ef87": { "message": "Ignoring" }, + "ignoring_non_speech_d2746d71": { + "message": "Ignoring Non Speech" + }, + "ignoring_speech_fe0a02ce": { + "message": "Ignoring Speech" + }, "import_as_new_35630827": { "message": "Import as new" }, diff --git a/Composer/packages/tools/language-servers/language-generation/src/utils.ts b/Composer/packages/tools/language-servers/language-generation/src/utils.ts index ecc67c5dce..2044402857 100644 --- a/Composer/packages/tools/language-servers/language-generation/src/utils.ts +++ b/Composer/packages/tools/language-servers/language-generation/src/utils.ts @@ -168,7 +168,7 @@ export const cardPropPossibleValueType = { Text: 'Text | ${Expression}', Speak: 'Text | ${Expression}', Attachments: 'List of attachments', - InputHint: 'accepting | ignoring | expecting', + InputHint: 'accepting | ignoring | expecting | ignoringSpeech | ignoringNonSpeech', AttachmentLayout: 'list | carousel', SuggestedActions: 'Text | ${Expression}', }; diff --git a/extensions/azurePublish/yarn-berry.lock b/extensions/azurePublish/yarn-berry.lock index 493207d0da..b659e091b8 100644 --- a/extensions/azurePublish/yarn-berry.lock +++ b/extensions/azurePublish/yarn-berry.lock @@ -1852,7 +1852,7 @@ __metadata: "@bfc/code-editor@file:../../Composer/packages/lib/code-editor::locator=azurePublish%40workspace%3A.": version: 0.0.0 - resolution: "@bfc/code-editor@file:../../Composer/packages/lib/code-editor#../../Composer/packages/lib/code-editor::hash=e05bfa&locator=azurePublish%40workspace%3A." + resolution: "@bfc/code-editor@file:../../Composer/packages/lib/code-editor#../../Composer/packages/lib/code-editor::hash=9daeab&locator=azurePublish%40workspace%3A." dependencies: "@emotion/react": ^11.1.3 "@emotion/styled": ^11.1.3 @@ -1875,6 +1875,7 @@ __metadata: "@bfc/ui-shared": "*" react: 16.13.1 react-dom: 16.13.1 + checksum: a0df5aa27ed60aa635a93c64c60feaaa3e7709ad306bc923a291616fb639898c2fd35909ee51858637295ee349001cb697ea92bbe86c34b1a7ec2d6038be7cc6 languageName: node linkType: hard