app-v3-scripts-editor 1.14.3 → 1.15.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 +23674 -23155
- package/dist/app-v3-scripts-editor.umd.js +134 -133
- package/dist/src/lib/components/Blocks/Condition/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Condition/components/CompareFilter.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Condition/components/CompareFilterItem.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Condition/components/index.css.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Condition/index.css.d.ts +17 -0
- package/dist/src/lib/components/Blocks/Condition/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Condition/index.settings.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Condition/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Condition/settings/AddConditionButton.d.ts +9 -0
- package/dist/src/lib/components/Blocks/Condition/settings/AgentIntent.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Condition/settings/FormAddConditionCompare.d.ts +10 -0
- package/dist/src/lib/components/Blocks/Condition/settings/FormAddConditionPrompt.d.ts +10 -0
- package/dist/src/lib/components/Blocks/Condition/settings/index.css.d.ts +10 -0
- package/dist/src/lib/components/Blocks/Condition/types.d.ts +9 -0
- package/dist/src/lib/constants/initial-script.d.ts +1 -0
- package/dist/src/lib/constants/node-types.d.ts +1 -0
- package/dist/src/lib/hooks/use-interaction-mode/index.d.ts +3 -0
- package/dist/src/lib/provider/instance-context/index.d.ts +2 -0
- package/dist/src/lib/styles/colors.d.ts +7 -0
- package/dist/src/lib/utils/common.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type CompareFilterItemContainerProps = {
|
|
3
|
+
name: number;
|
|
4
|
+
remove: (index: number | number[]) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const CompareFilterItemContainer: React.FC<CompareFilterItemContainerProps>;
|
|
7
|
+
export default CompareFilterItemContainer;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const wrapper: string;
|
|
2
|
+
export declare const conditionCard: string;
|
|
3
|
+
export declare const conditionCardBorder: {
|
|
4
|
+
default: string;
|
|
5
|
+
active: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const conditionHeaderLeft: string;
|
|
8
|
+
export declare const conditionHeader: string;
|
|
9
|
+
export declare const conditionTitle: string;
|
|
10
|
+
export declare const conditionContent: string;
|
|
11
|
+
export declare const intentItem: string;
|
|
12
|
+
export declare const modalRenderBase: string;
|
|
13
|
+
export declare const ModalRenderConditionCondition: string;
|
|
14
|
+
export declare const ModalNodeRenderConditionCondition: string;
|
|
15
|
+
export declare const TextAreaInput: string;
|
|
16
|
+
export declare const LabelPromptSetting: string;
|
|
17
|
+
export declare const IconLabel: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
type AddConditionButtonProps = {
|
|
3
|
+
nodeId?: string;
|
|
4
|
+
isOuter?: boolean;
|
|
5
|
+
containerRenderID?: string;
|
|
6
|
+
onToggleModal?: (isOpen: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const AddConditionButton: React.FC<PropsWithChildren<AddConditionButtonProps>>;
|
|
9
|
+
export default AddConditionButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ConditionIntentProps {
|
|
2
|
+
field: any;
|
|
3
|
+
condition: any;
|
|
4
|
+
onDelete: (conditionId: string) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const ConditionIntent: ({ field, condition, onDelete, }: ConditionIntentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ConditionIntent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type FormAddConditionCompareProps = {
|
|
2
|
+
dataSubmit?: (data: any) => void;
|
|
3
|
+
defaultValues?: any;
|
|
4
|
+
onFormSubmit?: () => void;
|
|
5
|
+
};
|
|
6
|
+
export type FormAddConditionCompareMethods = {
|
|
7
|
+
onSubmit: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const FormAddConditionCompare: import('react').ForwardRefExoticComponent<FormAddConditionCompareProps & import('react').RefAttributes<FormAddConditionCompareMethods>>;
|
|
10
|
+
export default FormAddConditionCompare;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type FormAddConditionPromptProps = {
|
|
2
|
+
dataSubmit?: (data: any) => void;
|
|
3
|
+
defaultValues?: any;
|
|
4
|
+
onFormSubmit?: () => void;
|
|
5
|
+
};
|
|
6
|
+
export type FormAddConditionPromptMethods = {
|
|
7
|
+
onSubmit: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const FormAddConditionPrompt: import('react').ForwardRefExoticComponent<FormAddConditionPromptProps & import('react').RefAttributes<FormAddConditionPromptMethods>>;
|
|
10
|
+
export default FormAddConditionPrompt;
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { BlockTypeProps } from '../../../constants';
|
|
3
|
+
export interface ConditionNodeData extends Record<string, unknown> {
|
|
4
|
+
title?: string;
|
|
5
|
+
conditions?: any[];
|
|
6
|
+
is_global_node: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type BlockConditionProps = BlockTypeProps<ConditionNodeData>;
|
|
9
|
+
export type ConditionNodeProps = NodeProps<Node<ConditionNodeData>>;
|
|
@@ -5,6 +5,7 @@ export declare const nodeTypes: {
|
|
|
5
5
|
LISTEN: import('react').FC<import('../components/Blocks/Listen/types').ListenNodeProps>;
|
|
6
6
|
TRANSFER: import('react').FC<import('../components/Blocks/Transfer/types').TransferNodeProps>;
|
|
7
7
|
GROUP: import('react').FC<import('../components/Blocks/Group/types').GroupNodeProps>;
|
|
8
|
+
CONDITION: import('react').FC<import('../components/Blocks/Condition/types').ConditionNodeProps>;
|
|
8
9
|
TRIGGER_CONTACT: import('react').FC<import('../components/Blocks/Contact/trigger/types').BlockContactTriggerProps>;
|
|
9
10
|
CONTACT_ACTION: import('react').FC<import('../components/Blocks/Contact/action/types').BlockContactActionProps>;
|
|
10
11
|
EMAIL: import('react').FC<import('../components/Blocks/Email/types').BlockEmailProps>;
|
|
@@ -2,6 +2,9 @@ export declare function useInteractionMode(): {
|
|
|
2
2
|
mode: import('./interactionMode.store').InteractionMode;
|
|
3
3
|
toggleMode: () => void;
|
|
4
4
|
flowProps: {
|
|
5
|
+
nodesDraggable: boolean;
|
|
6
|
+
nodesConnectable: boolean;
|
|
7
|
+
elementsSelectable: boolean;
|
|
5
8
|
panOnScroll: boolean;
|
|
6
9
|
panOnDrag: boolean;
|
|
7
10
|
zoomOnScroll: boolean;
|
|
@@ -14,6 +14,7 @@ export interface InstanceContextProps {
|
|
|
14
14
|
BLOCKS_ENABLED?: BlockType[];
|
|
15
15
|
type: "autocall" | "autoflow";
|
|
16
16
|
instanceId?: string;
|
|
17
|
+
mode: "view" | "edit";
|
|
17
18
|
}
|
|
18
19
|
export interface InstanceScriptEditorProps {
|
|
19
20
|
BASE_URL: string;
|
|
@@ -23,6 +24,7 @@ export interface InstanceScriptEditorProps {
|
|
|
23
24
|
type: "autocall" | "autoflow";
|
|
24
25
|
onAlertsChange?: (values: UseErrorsAndInfosReturn) => void;
|
|
25
26
|
instanceId?: string;
|
|
27
|
+
mode: "view" | "edit";
|
|
26
28
|
}
|
|
27
29
|
interface InstanceContextProviderProps extends InstanceScriptEditorProps {
|
|
28
30
|
children: ReactNode;
|
|
@@ -49,6 +49,13 @@ declare const colors: {
|
|
|
49
49
|
border: string;
|
|
50
50
|
boxShadow: string;
|
|
51
51
|
};
|
|
52
|
+
conditionBlock: {
|
|
53
|
+
focus: string;
|
|
54
|
+
indicator: string;
|
|
55
|
+
background: string;
|
|
56
|
+
border: string;
|
|
57
|
+
boxShadow: string;
|
|
58
|
+
};
|
|
52
59
|
contactBlock: {
|
|
53
60
|
background: string;
|
|
54
61
|
backgroundNoGradient: string;
|
|
@@ -34,7 +34,7 @@ export declare const formatFilterGroups: (chartFilterGroups: IFilterGroup[]) =>
|
|
|
34
34
|
conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "operator" | "slug" | "dateType" | "type_date" | "propertyData">[];
|
|
35
35
|
object: string;
|
|
36
36
|
})[];
|
|
37
|
-
export declare const formatFilterGroupsToForm: (object
|
|
37
|
+
export declare const formatFilterGroupsToForm: (object?: string, chartFilterGroups?: IFilterGroup[], filter_type?: "AND" | "OR", mode?: FormatMode) => {
|
|
38
38
|
filter_type: "AND" | "OR";
|
|
39
39
|
groups: IFilterGroup[];
|
|
40
40
|
};
|