@microsoft/agents-hosting-dialogs 0.5.4-ga4d0401645 → 0.5.16-g6bdf69cc43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/dialogSet.d.ts +1 -1
- package/dist/src/dialogSet.js +1 -1
- package/dist/src/prompts/attachmentPrompt.d.ts +1 -1
- package/dist/src/prompts/attachmentPrompt.js +1 -1
- package/dist/src/prompts/confirmPrompt.d.ts +1 -1
- package/dist/src/prompts/confirmPrompt.js +1 -1
- package/dist/src/prompts/datetimePrompt.d.ts +1 -1
- package/dist/src/prompts/datetimePrompt.js +1 -1
- package/dist/src/prompts/numberPrompt.d.ts +1 -1
- package/dist/src/prompts/numberPrompt.js +1 -1
- package/package.json +3 -3
- package/src/dialogSet.ts +1 -1
- package/src/prompts/attachmentPrompt.ts +1 -1
- package/src/prompts/confirmPrompt.ts +1 -1
- package/src/prompts/datetimePrompt.ts +1 -1
- package/src/prompts/numberPrompt.ts +1 -1
package/dist/src/dialogSet.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class DialogSet {
|
|
|
31
31
|
* Creates a new DialogSet instance.
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* If the `dialogState` parameter is not passed in, calls to
|
|
34
|
+
* If the `dialogState` parameter is not passed in, calls to `createContext`
|
|
35
35
|
* will return an error. You will need to create a {@link DialogContext} for the set manually and
|
|
36
36
|
* pass in your own state object for persisting the sets dialog stack:
|
|
37
37
|
*
|
package/dist/src/dialogSet.js
CHANGED
|
@@ -21,7 +21,7 @@ class DialogSet {
|
|
|
21
21
|
* Creates a new DialogSet instance.
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
|
-
* If the `dialogState` parameter is not passed in, calls to
|
|
24
|
+
* If the `dialogState` parameter is not passed in, calls to `createContext`
|
|
25
25
|
* will return an error. You will need to create a {@link DialogContext} for the set manually and
|
|
26
26
|
* pass in your own state object for persisting the sets dialog stack:
|
|
27
27
|
*
|
|
@@ -9,7 +9,7 @@ import { Attachment } from '@microsoft/agents-activity';
|
|
|
9
9
|
* Prompts a user to upload attachments like images.
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
|
-
* By default the prompt will return to the calling dialog an
|
|
12
|
+
* By default the prompt will return to the calling dialog an `Attachment[]`.
|
|
13
13
|
*/
|
|
14
14
|
export declare class AttachmentPrompt extends Prompt<Attachment[]> {
|
|
15
15
|
constructor(dialogId: string, validator?: PromptValidator<Attachment[]>);
|
|
@@ -7,7 +7,7 @@ const agents_activity_1 = require("@microsoft/agents-activity");
|
|
|
7
7
|
* Prompts a user to upload attachments like images.
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
|
-
* By default the prompt will return to the calling dialog an
|
|
10
|
+
* By default the prompt will return to the calling dialog an `Attachment[]`.
|
|
11
11
|
*/
|
|
12
12
|
class AttachmentPrompt extends prompt_1.Prompt {
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
@@ -46,7 +46,7 @@ export declare class ConfirmPrompt extends Prompt<boolean> {
|
|
|
46
46
|
*
|
|
47
47
|
* @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
|
|
48
48
|
* @param validator (Optional) validator that will be called each time the user responds to the prompt.
|
|
49
|
-
* @param defaultLocale (Optional) locale to use if the
|
|
49
|
+
* @param defaultLocale (Optional) locale to use if the `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
|
|
50
50
|
* @param choiceDefaults (Optional) Overrides the dictionary of Default Choices on {@link PromptCultureModels.getSupportedCultures | PromptCultureModels.getSupportedCultures} method.
|
|
51
51
|
*/
|
|
52
52
|
constructor(dialogId: string, validator?: PromptValidator<boolean>, defaultLocale?: string, choiceDefaults?: ChoiceDefaultsConfirmPrompt);
|
|
@@ -55,7 +55,7 @@ class ConfirmPrompt extends prompt_1.Prompt {
|
|
|
55
55
|
*
|
|
56
56
|
* @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
|
|
57
57
|
* @param validator (Optional) validator that will be called each time the user responds to the prompt.
|
|
58
|
-
* @param defaultLocale (Optional) locale to use if the
|
|
58
|
+
* @param defaultLocale (Optional) locale to use if the `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
|
|
59
59
|
* @param choiceDefaults (Optional) Overrides the dictionary of Default Choices on {@link PromptCultureModels.getSupportedCultures | PromptCultureModels.getSupportedCultures} method.
|
|
60
60
|
*/
|
|
61
61
|
constructor(dialogId, validator, defaultLocale, choiceDefaults) {
|
|
@@ -35,7 +35,7 @@ export declare class DateTimePrompt extends Prompt<DateTimeResolution[]> {
|
|
|
35
35
|
*
|
|
36
36
|
* @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
|
|
37
37
|
* @param validator (Optional) validator that will be called each time the user responds to the prompt.
|
|
38
|
-
* @param defaultLocale (Optional) locale to use if the
|
|
38
|
+
* @param defaultLocale (Optional) locale to use if the `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
|
|
39
39
|
*/
|
|
40
40
|
constructor(dialogId: string, validator?: PromptValidator<DateTimeResolution[]>, defaultLocale?: string);
|
|
41
41
|
/**
|
|
@@ -53,7 +53,7 @@ class DateTimePrompt extends prompt_1.Prompt {
|
|
|
53
53
|
*
|
|
54
54
|
* @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
|
|
55
55
|
* @param validator (Optional) validator that will be called each time the user responds to the prompt.
|
|
56
|
-
* @param defaultLocale (Optional) locale to use if the
|
|
56
|
+
* @param defaultLocale (Optional) locale to use if the `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
|
|
57
57
|
*/
|
|
58
58
|
constructor(dialogId, validator, defaultLocale) {
|
|
59
59
|
super(dialogId, validator);
|
|
@@ -20,7 +20,7 @@ export declare class NumberPrompt extends Prompt<number> {
|
|
|
20
20
|
*
|
|
21
21
|
* @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
|
|
22
22
|
* @param validator (Optional) validator that will be called each time the user responds to the prompt.
|
|
23
|
-
* @param defaultLocale (Optional) locale to use if the
|
|
23
|
+
* @param defaultLocale (Optional) locale to use if the `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
|
|
24
24
|
*/
|
|
25
25
|
constructor(dialogId: string, validator?: PromptValidator<number>, defaultLocale?: string);
|
|
26
26
|
/**
|
|
@@ -60,7 +60,7 @@ class NumberPrompt extends prompt_1.Prompt {
|
|
|
60
60
|
*
|
|
61
61
|
* @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
|
|
62
62
|
* @param validator (Optional) validator that will be called each time the user responds to the prompt.
|
|
63
|
-
* @param defaultLocale (Optional) locale to use if the
|
|
63
|
+
* @param defaultLocale (Optional) locale to use if the `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
|
|
64
64
|
*/
|
|
65
65
|
constructor(dialogId, validator, defaultLocale) {
|
|
66
66
|
super(dialogId, validator);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@microsoft/agents-hosting-dialogs",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.16-g6bdf69cc43",
|
|
5
5
|
"homepage": "https://github.com/microsoft/Agents-for-js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"main": "dist/index.js",
|
|
17
17
|
"types": "dist/src/index.d.ts",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@microsoft/agents-hosting": "0.5.
|
|
19
|
+
"@microsoft/agents-hosting": "0.5.16-g6bdf69cc43",
|
|
20
20
|
"@types/lodash": "^4.17.16",
|
|
21
21
|
"dependency-graph": "^1.0.0",
|
|
22
22
|
"@microsoft/recognizers-text-suite": "^1.3.1",
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
"./package.json": "./package.json"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
|
-
"node": ">=
|
|
44
|
+
"node": ">=20.0.0"
|
|
45
45
|
}
|
|
46
46
|
}
|
package/src/dialogSet.ts
CHANGED
|
@@ -39,7 +39,7 @@ export class DialogSet {
|
|
|
39
39
|
* Creates a new DialogSet instance.
|
|
40
40
|
*
|
|
41
41
|
* @remarks
|
|
42
|
-
* If the `dialogState` parameter is not passed in, calls to
|
|
42
|
+
* If the `dialogState` parameter is not passed in, calls to `createContext`
|
|
43
43
|
* will return an error. You will need to create a {@link DialogContext} for the set manually and
|
|
44
44
|
* pass in your own state object for persisting the sets dialog stack:
|
|
45
45
|
*
|
|
@@ -10,7 +10,7 @@ import { Attachment, InputHints } from '@microsoft/agents-activity'
|
|
|
10
10
|
* Prompts a user to upload attachments like images.
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* By default the prompt will return to the calling dialog an
|
|
13
|
+
* By default the prompt will return to the calling dialog an `Attachment[]`.
|
|
14
14
|
*/
|
|
15
15
|
export class AttachmentPrompt extends Prompt<Attachment[]> {
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
@@ -57,7 +57,7 @@ export class ConfirmPrompt extends Prompt<boolean> {
|
|
|
57
57
|
*
|
|
58
58
|
* @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
|
|
59
59
|
* @param validator (Optional) validator that will be called each time the user responds to the prompt.
|
|
60
|
-
* @param defaultLocale (Optional) locale to use if the
|
|
60
|
+
* @param defaultLocale (Optional) locale to use if the `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
|
|
61
61
|
* @param choiceDefaults (Optional) Overrides the dictionary of Default Choices on {@link PromptCultureModels.getSupportedCultures | PromptCultureModels.getSupportedCultures} method.
|
|
62
62
|
*/
|
|
63
63
|
constructor (
|
|
@@ -46,7 +46,7 @@ export class DateTimePrompt extends Prompt<DateTimeResolution[]> {
|
|
|
46
46
|
*
|
|
47
47
|
* @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
|
|
48
48
|
* @param validator (Optional) validator that will be called each time the user responds to the prompt.
|
|
49
|
-
* @param defaultLocale (Optional) locale to use if the
|
|
49
|
+
* @param defaultLocale (Optional) locale to use if the `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
|
|
50
50
|
*/
|
|
51
51
|
constructor (dialogId: string, validator?: PromptValidator<DateTimeResolution[]>, defaultLocale?: string) {
|
|
52
52
|
super(dialogId, validator)
|
|
@@ -30,7 +30,7 @@ export class NumberPrompt extends Prompt<number> {
|
|
|
30
30
|
*
|
|
31
31
|
* @param dialogId Unique ID of the dialog within its parent {@link DialogSet} or {@link ComponentDialog}.
|
|
32
32
|
* @param validator (Optional) validator that will be called each time the user responds to the prompt.
|
|
33
|
-
* @param defaultLocale (Optional) locale to use if the
|
|
33
|
+
* @param defaultLocale (Optional) locale to use if the `TurnContext.activity.locale` is not specified. Defaults to a value of `en-us`.
|
|
34
34
|
*/
|
|
35
35
|
constructor (dialogId: string, validator?: PromptValidator<number>, defaultLocale?: string) {
|
|
36
36
|
super(dialogId, validator)
|