app-v3-scripts-editor 1.33.2 → 1.33.4
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/app-v3-scripts-editor.css +1 -1
- package/dist/app-v3-scripts-editor.es.js +26320 -26135
- package/dist/app-v3-scripts-editor.umd.js +183 -183
- package/dist/src/lib/components/Blocks/Agent/index.css.d.ts +1 -0
- package/dist/src/lib/constants/initial-script.d.ts +0 -4
- package/dist/src/lib/constants/intents.d.ts +0 -4
- package/dist/src/lib/utils/node-intent-condition.d.ts +11 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ export declare const intentItem: string;
|
|
|
14
14
|
export declare const modalRenderBase: string;
|
|
15
15
|
export declare const ModalRenderAgentCondition: string;
|
|
16
16
|
export declare const ModalNodeRenderAgentCondition: string;
|
|
17
|
+
export declare const TextAreaContainer: string;
|
|
17
18
|
export declare const TextAreaInput: string;
|
|
18
19
|
export declare const ButtonAddConditionPosition: string;
|
|
19
20
|
export declare const LabelPromptSetting: string;
|
|
@@ -31,8 +31,6 @@ export declare const initialData: {
|
|
|
31
31
|
AGENT: {
|
|
32
32
|
conditions: {
|
|
33
33
|
label: string;
|
|
34
|
-
description: string;
|
|
35
|
-
keywords: string;
|
|
36
34
|
id: string;
|
|
37
35
|
slug: string;
|
|
38
36
|
is_conversion: boolean;
|
|
@@ -61,8 +59,6 @@ export declare const initialData: {
|
|
|
61
59
|
LISTEN: {
|
|
62
60
|
conditions: {
|
|
63
61
|
label: string;
|
|
64
|
-
description: string;
|
|
65
|
-
keywords: string;
|
|
66
62
|
id: string;
|
|
67
63
|
slug: string;
|
|
68
64
|
is_conversion: boolean;
|
|
@@ -21,8 +21,6 @@ export declare const INTENTS: {
|
|
|
21
21
|
};
|
|
22
22
|
SILENT: {
|
|
23
23
|
label: string;
|
|
24
|
-
description: string;
|
|
25
|
-
keywords: string;
|
|
26
24
|
};
|
|
27
25
|
UNRECOGNIZED: {
|
|
28
26
|
label: string;
|
|
@@ -31,7 +29,5 @@ export declare const INTENTS: {
|
|
|
31
29
|
};
|
|
32
30
|
DEFAULT: {
|
|
33
31
|
label: string;
|
|
34
|
-
description: string;
|
|
35
|
-
keywords: string;
|
|
36
32
|
};
|
|
37
33
|
};
|
|
@@ -2,3 +2,14 @@ import { IIntent } from '../../services';
|
|
|
2
2
|
export type NodeIntentCondition = Pick<IIntent, "id" | "slug" | "label" | "description" | "keywords" | "is_conversion">;
|
|
3
3
|
export declare const pickNodeIntentCondition: (intent: IIntent) => NodeIntentCondition;
|
|
4
4
|
export declare const getNodeIntentConditionHandleId: (intent: Pick<IIntent, "id" | "slug">) => string;
|
|
5
|
+
export declare const isSilenceNodeIntentCondition: (condition?: Pick<IIntent, "id" | "label">) => boolean;
|
|
6
|
+
export declare const isDefaultNodeIntentCondition: (condition?: Pick<IIntent, "id" | "label">) => boolean;
|
|
7
|
+
export declare const createSilentNodeIntentCondition: () => NodeIntentCondition;
|
|
8
|
+
export declare const insertNodeIntentConditionBeforeDefault: <T extends Pick<IIntent, "id">>(conditions: T[], nextCondition: T) => T[];
|
|
9
|
+
export declare const splitDefaultNodeIntentConditions: <T extends Pick<IIntent, "id" | "label">>(conditions?: T[]) => {
|
|
10
|
+
removedDefaultConditions: T[];
|
|
11
|
+
nextConditions: T[];
|
|
12
|
+
};
|
|
13
|
+
export declare const getNodeIntentConditionHandleIds: <T extends Pick<IIntent, "id" | "slug">>(conditions?: T[]) => string[];
|
|
14
|
+
export declare const hasDefaultNodeIntentCondition: (conditions?: Array<Pick<IIntent, "id">>) => boolean;
|
|
15
|
+
export declare const appendMissingDefaultNodeIntentConditions: <T extends Pick<IIntent, "id" | "label">>(conditions: T[], createDefaultCondition: () => T, createSilenceCondition: () => T) => T[];
|