app-v3-scripts-editor 1.2.6 → 1.3.2
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 +48765 -31075
- package/dist/app-v3-scripts-editor.umd.js +190 -136
- package/dist/lib/components/Blocks/Listen/block.d.ts +2 -1
- package/dist/lib/components/Blocks/Listen/components/DraggableItem.d.ts +5 -0
- package/dist/lib/components/Blocks/Listen/components/DraggableList.d.ts +10 -0
- package/dist/lib/components/Blocks/Listen/components/index.css.d.ts +12 -0
- package/dist/lib/components/Blocks/Listen/index.css.d.ts +7 -0
- package/dist/lib/components/Blocks/Listen/index.settings.d.ts +4 -0
- package/dist/lib/components/Blocks/Listen/node.d.ts +1 -7
- package/dist/lib/components/Blocks/Listen/settings/AddConditionButton.d.ts +2 -0
- package/dist/lib/components/Blocks/Listen/settings/ListenIntent.d.ts +8 -0
- package/dist/lib/components/Blocks/Listen/settings/ListenIntentDropdown.d.ts +6 -0
- package/dist/lib/components/Blocks/Listen/settings/index.css.d.ts +10 -0
- package/dist/lib/components/Blocks/Listen/types.d.ts +19 -0
- package/dist/lib/components/Blocks/Speak/block.d.ts +1 -1
- package/dist/lib/components/Blocks/Speak/index.css.d.ts +1 -0
- package/dist/lib/components/Blocks/Speak/settings/PersonalizeTranscriptField.d.ts +7 -0
- package/dist/lib/components/Blocks/Speak/types.d.ts +2 -5
- package/dist/lib/components/Blocks/Start/block.d.ts +3 -1
- package/dist/lib/components/Blocks/Start/index.css.d.ts +2 -0
- package/dist/lib/components/Blocks/Start/node.d.ts +3 -2
- package/dist/lib/components/Blocks/Transfer/block.d.ts +3 -0
- package/dist/lib/components/Blocks/Transfer/index.css.d.ts +14 -0
- package/dist/lib/components/Blocks/Transfer/index.d.ts +4 -0
- package/dist/lib/components/Blocks/Transfer/index.settings.d.ts +0 -0
- package/dist/lib/components/Blocks/Transfer/node.d.ts +3 -0
- package/dist/lib/components/Blocks/Transfer/types.d.ts +23 -0
- package/dist/lib/components/Shared/BlockRelationship/index.d.ts +5 -0
- package/dist/lib/components/Shared/NodeBase/index.d.ts +4 -0
- package/dist/lib/constants/block-types.d.ts +10 -1
- package/dist/lib/constants/initial-script.d.ts +36 -1
- package/dist/lib/constants/intents.d.ts +26 -0
- package/dist/lib/constants/node-types.d.ts +3 -0
- package/dist/lib/styles/colors.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DraggableItem {
|
|
3
|
+
id: string;
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DraggableListProps {
|
|
7
|
+
NODE_ID: string;
|
|
8
|
+
}
|
|
9
|
+
declare const DraggableList: React.FC<DraggableListProps>;
|
|
10
|
+
export default DraggableList;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const sortableItemContainer: string;
|
|
2
|
+
export declare const sortableItemContainerDragging: string;
|
|
3
|
+
export declare const draggableCard: string;
|
|
4
|
+
export declare const draggableCardDragging: string;
|
|
5
|
+
export declare const cardBody: string;
|
|
6
|
+
export declare const dragButton: string;
|
|
7
|
+
export declare const dragButtonHovered: string;
|
|
8
|
+
export declare const dragIcon: string;
|
|
9
|
+
export declare const itemText: string;
|
|
10
|
+
export declare const handle: string;
|
|
11
|
+
export declare const listCard: string;
|
|
12
|
+
export declare const listCardBody: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const listenCard: string;
|
|
2
|
+
export declare const listenCardBody: string;
|
|
3
|
+
export declare const listenHeaderLeft: string;
|
|
4
|
+
export declare const listenHeader: string;
|
|
5
|
+
export declare const listenTitle: string;
|
|
6
|
+
export declare const listenContent: string;
|
|
7
|
+
export declare const listenText: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ListenCondition } from '../types';
|
|
2
|
+
interface ListenIntentProps {
|
|
3
|
+
field: any;
|
|
4
|
+
condition: ListenCondition;
|
|
5
|
+
onDelete: (conditionId: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ListenIntent: ({ field, condition, onDelete }: ListenIntentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ListenIntent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const collapseRoot: string;
|
|
2
|
+
export declare const label: string;
|
|
3
|
+
export declare const leftGroup: string;
|
|
4
|
+
export declare const conversionTag: string;
|
|
5
|
+
export declare const targetIcon: string;
|
|
6
|
+
export declare const bodyContainer: string;
|
|
7
|
+
export declare const formItem: string;
|
|
8
|
+
export declare const starIcon: string;
|
|
9
|
+
export declare const renameContent: string;
|
|
10
|
+
export declare const actionsRow: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { BlockTypeProps } from '../../../constants';
|
|
3
|
+
export interface ListenCondition {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description: string;
|
|
7
|
+
included_keywords: string[];
|
|
8
|
+
excluded_keywords: string[];
|
|
9
|
+
repeat_if_interrupted: boolean;
|
|
10
|
+
is_conversion: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ListenNodeData extends Record<string, unknown> {
|
|
13
|
+
title?: string;
|
|
14
|
+
conditions?: ListenCondition[];
|
|
15
|
+
maximum_retry: number;
|
|
16
|
+
is_global_node: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type BlockListenProps = BlockTypeProps<ListenNodeData>;
|
|
19
|
+
export type ListenNodeProps = NodeProps<Node<ListenNodeData>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BlockSpeakProps } from './types';
|
|
2
|
-
declare const BlockSpeak: ({ id, data }: BlockSpeakProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const BlockSpeak: ({ id, data, mini }: BlockSpeakProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BlockSpeak;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
-
import { SPEAK_TYPE } from '../../../constants';
|
|
2
|
+
import { BlockTypeProps, SPEAK_TYPE } from '../../../constants';
|
|
3
3
|
export interface SpeakNodeData extends Record<string, unknown> {
|
|
4
4
|
title: string;
|
|
5
5
|
type: SPEAK_TYPE;
|
|
@@ -19,8 +19,5 @@ export interface SpeakNodeData extends Record<string, unknown> {
|
|
|
19
19
|
content: string;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export
|
|
23
|
-
id: string;
|
|
24
|
-
data: SpeakNodeData;
|
|
25
|
-
}
|
|
22
|
+
export type BlockSpeakProps = BlockTypeProps<SpeakNodeData>;
|
|
26
23
|
export type SpeakNodeProps = NodeProps<Node<SpeakNodeData>>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { BlockTypeProps } from '../../../constants';
|
|
2
|
+
export type BlockStartProps = BlockTypeProps<{}>;
|
|
3
|
+
declare const BlockStart: ({ mini }: BlockStartProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
4
|
export default BlockStart;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { BlockTypeProps } from '../../../constants';
|
|
1
2
|
export interface StartNodeData {
|
|
2
3
|
label: string;
|
|
3
4
|
blockType: string;
|
|
4
5
|
}
|
|
5
|
-
export
|
|
6
|
+
export type StartNodeProps = BlockTypeProps<{
|
|
6
7
|
data: StartNodeData;
|
|
7
|
-
}
|
|
8
|
+
}>;
|
|
8
9
|
declare const StartNode: React.FC<StartNodeProps>;
|
|
9
10
|
export default StartNode;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const wrapper: string;
|
|
2
|
+
export declare const wrapperMini: string;
|
|
3
|
+
export declare const container: string;
|
|
4
|
+
export declare const headContainer: string;
|
|
5
|
+
export declare const icon: string;
|
|
6
|
+
export declare const text: string;
|
|
7
|
+
export declare const transferTypeBtn: string;
|
|
8
|
+
export declare const deleteIcon: string;
|
|
9
|
+
export declare const alertContainer: string;
|
|
10
|
+
export declare const messageBox: string;
|
|
11
|
+
export declare const transferCase: string;
|
|
12
|
+
export declare const settingsContainer: string;
|
|
13
|
+
export declare const alertGroup: string;
|
|
14
|
+
export declare const handle: string;
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { BlockTypeProps, TRANSFER_TYPE } from '../../../constants';
|
|
3
|
+
export interface TransferCondition {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TransferInternal {
|
|
8
|
+
value: string;
|
|
9
|
+
maximum_try: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TransferExternal {
|
|
12
|
+
value: string;
|
|
13
|
+
maximum_try: string;
|
|
14
|
+
}
|
|
15
|
+
export interface TransferNodeData extends Record<string, unknown> {
|
|
16
|
+
title: string;
|
|
17
|
+
conditions: TransferCondition[];
|
|
18
|
+
type: TRANSFER_TYPE;
|
|
19
|
+
internal: TransferInternal;
|
|
20
|
+
external: TransferExternal;
|
|
21
|
+
}
|
|
22
|
+
export type BlockTransferProps = BlockTypeProps<TransferNodeData>;
|
|
23
|
+
export type TransferNodeProps = NodeProps<Node<TransferNodeData>>;
|
|
@@ -2,7 +2,7 @@ export declare enum BlockType {
|
|
|
2
2
|
START = "START",
|
|
3
3
|
SPEAK = "SPEAK",
|
|
4
4
|
LISTEN = "LISTEN",
|
|
5
|
-
|
|
5
|
+
TRANSFER = "TRANSFER",
|
|
6
6
|
GET_DATA = "GET_DATA",
|
|
7
7
|
UPDATE_DATA = "UPDATE_DATA",
|
|
8
8
|
ADD_DATA = "ADD_DATA",
|
|
@@ -15,3 +15,12 @@ export declare enum SPEAK_TYPE {
|
|
|
15
15
|
MACHINE = "MACHINE",
|
|
16
16
|
PROMPT = "PROMPT"
|
|
17
17
|
}
|
|
18
|
+
export declare enum TRANSFER_TYPE {
|
|
19
|
+
INTERNAL = "INTERNAL",
|
|
20
|
+
EXTERNAL = "EXTERNAL"
|
|
21
|
+
}
|
|
22
|
+
export interface BlockTypeProps<T> {
|
|
23
|
+
id: string;
|
|
24
|
+
data: T;
|
|
25
|
+
mini?: boolean;
|
|
26
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BlockType, SPEAK_TYPE } from './block-types';
|
|
1
|
+
import { BlockType, SPEAK_TYPE, TRANSFER_TYPE } from './block-types';
|
|
2
2
|
export declare const initialTitles: {
|
|
3
3
|
SPEAK: string;
|
|
4
4
|
START: string;
|
|
5
|
+
LISTEN: string;
|
|
6
|
+
TRANSFER: string;
|
|
5
7
|
};
|
|
6
8
|
export declare const initialData: {
|
|
7
9
|
START: {};
|
|
@@ -20,6 +22,34 @@ export declare const initialData: {
|
|
|
20
22
|
machine: {};
|
|
21
23
|
prompt: {};
|
|
22
24
|
};
|
|
25
|
+
LISTEN: {
|
|
26
|
+
conditions: {
|
|
27
|
+
id: string;
|
|
28
|
+
label: string;
|
|
29
|
+
description: string;
|
|
30
|
+
included_keywords: any[];
|
|
31
|
+
excluded_keywords: any[];
|
|
32
|
+
repeat_if_interrupted: boolean;
|
|
33
|
+
is_conversion: boolean;
|
|
34
|
+
}[];
|
|
35
|
+
maximum_retry: number;
|
|
36
|
+
is_global_node: boolean;
|
|
37
|
+
};
|
|
38
|
+
TRANSFER: {
|
|
39
|
+
conditions: {
|
|
40
|
+
id: string;
|
|
41
|
+
label: string;
|
|
42
|
+
}[];
|
|
43
|
+
type: TRANSFER_TYPE;
|
|
44
|
+
internal: {
|
|
45
|
+
value: any;
|
|
46
|
+
maximum_try: number;
|
|
47
|
+
};
|
|
48
|
+
external: {
|
|
49
|
+
value: any;
|
|
50
|
+
maximum_try: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
23
53
|
};
|
|
24
54
|
export declare const initialNodes: {
|
|
25
55
|
id: string;
|
|
@@ -34,3 +64,8 @@ export declare const initialNodes: {
|
|
|
34
64
|
deletable: boolean;
|
|
35
65
|
}[];
|
|
36
66
|
export declare const initialEdges: any[];
|
|
67
|
+
export declare const initialNodeProps: {
|
|
68
|
+
LISTEN: {
|
|
69
|
+
dragHandle: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const INTENTS: {
|
|
2
|
+
INTERESTED: {
|
|
3
|
+
label: string;
|
|
4
|
+
description: string;
|
|
5
|
+
included_keywords: string[];
|
|
6
|
+
excluded_keywords: string[];
|
|
7
|
+
};
|
|
8
|
+
NOT_INTERESTED: {
|
|
9
|
+
label: string;
|
|
10
|
+
description: string;
|
|
11
|
+
included_keywords: string[];
|
|
12
|
+
excluded_keywords: any[];
|
|
13
|
+
};
|
|
14
|
+
NOT_HEARD: {
|
|
15
|
+
label: string;
|
|
16
|
+
description: string;
|
|
17
|
+
included_keywords: string[];
|
|
18
|
+
excluded_keywords: any[];
|
|
19
|
+
};
|
|
20
|
+
BUSY: {
|
|
21
|
+
label: string;
|
|
22
|
+
description: string;
|
|
23
|
+
included_keywords: string[];
|
|
24
|
+
excluded_keywords: any[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const nodeTypes: {
|
|
2
2
|
SPEAK: import('react').FC<import('../components/Blocks/Speak/types').SpeakNodeProps>;
|
|
3
3
|
START: import('react').FC<import('../components/Blocks/Start/node').StartNodeProps>;
|
|
4
|
+
LISTEN: import('react').FC<import('../components/Blocks/Listen/types').ListenNodeProps>;
|
|
5
|
+
TRANSFER: import('react').FC<import('../components/Blocks/Transfer/types').TransferNodeProps>;
|
|
4
6
|
};
|
|
7
|
+
export declare const getNodeColor: (node: any) => string;
|
|
5
8
|
export default nodeTypes;
|
|
@@ -2,6 +2,7 @@ declare const colors: {
|
|
|
2
2
|
common: {
|
|
3
3
|
red: string;
|
|
4
4
|
white: string;
|
|
5
|
+
gray: string;
|
|
5
6
|
};
|
|
6
7
|
sidebar: {
|
|
7
8
|
background: string;
|
|
@@ -15,6 +16,7 @@ declare const colors: {
|
|
|
15
16
|
boxShadow: string;
|
|
16
17
|
};
|
|
17
18
|
listenBlock: {
|
|
19
|
+
focus: string;
|
|
18
20
|
indicator: string;
|
|
19
21
|
background: string;
|
|
20
22
|
border: string;
|
|
@@ -35,6 +37,11 @@ declare const colors: {
|
|
|
35
37
|
border: string;
|
|
36
38
|
boxShadow: string;
|
|
37
39
|
};
|
|
40
|
+
transferBlock: {
|
|
41
|
+
background: string;
|
|
42
|
+
border: string;
|
|
43
|
+
boxShadow: string;
|
|
44
|
+
};
|
|
38
45
|
reactFlow: {
|
|
39
46
|
boxShadow: string;
|
|
40
47
|
};
|