app-v3-scripts-editor 1.11.5 → 1.12.0

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.
@@ -0,0 +1,3 @@
1
+ import { BlockBranchProps } from './types';
2
+ declare const BlockBranch: ({ id, data, mini }: BlockBranchProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default BlockBranch;
@@ -0,0 +1,16 @@
1
+ export declare const wrapper: string;
2
+ export declare const container: string;
3
+ export declare const iconWrapper: string;
4
+ export declare const iconPrimaryStyle: string;
5
+ export declare const iconAbsoluteStyle: string;
6
+ export declare const settingsContainer: string;
7
+ export declare const alertGroup: string;
8
+ export declare const radioGroup: string;
9
+ export declare const radioSpace: string;
10
+ export declare const radioItem: string;
11
+ export declare const radioContent: string;
12
+ export declare const checkIconWrapper: string;
13
+ export declare const triangle: string;
14
+ export declare const checkIcon: string;
15
+ export declare const emailTypeGroup: string;
16
+ export declare const radioButton: string;
@@ -0,0 +1,4 @@
1
+ import { default as BlockBranch } from './block';
2
+ import { default as BranchNode } from './node';
3
+ export default BranchNode;
4
+ export { BlockBranch };
@@ -0,0 +1,3 @@
1
+ export declare const BranchNodeSettings: ({ id }: {
2
+ id: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { BlockBranchProps } from './types';
2
+ declare const BranchNode: React.FC<BlockBranchProps>;
3
+ export default BranchNode;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ type BranchContainerProps = {};
3
+ declare const BranchContainer: React.FC<BranchContainerProps>;
4
+ export default BranchContainer;
@@ -0,0 +1,10 @@
1
+ export declare const Container: string;
2
+ export declare const Header: string;
3
+ export declare const Title: string;
4
+ export declare const GroupFilterRow: string;
5
+ export declare const GroupCard: string;
6
+ export declare const GroupCardHover: string;
7
+ export declare const GroupHeader: string;
8
+ export declare const AddConditionButton: string;
9
+ export declare const AddConditionText: string;
10
+ export declare const TextCenter: string;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ type BranchSettingConditionContainerProps = {};
3
+ declare const BranchSettingConditionContainer: React.FC<BranchSettingConditionContainerProps>;
4
+ export default BranchSettingConditionContainer;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type BranchConditionPropertyContainerProps = {
3
+ groupIndex: number;
4
+ name: number;
5
+ formItemName: (string | number)[];
6
+ remove: (index: number | number[]) => void;
7
+ };
8
+ declare const BranchConditionPropertyContainer: React.FC<BranchConditionPropertyContainerProps>;
9
+ export default BranchConditionPropertyContainer;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ type BranchSettingContainerProps = {};
3
+ declare const BranchSettingContainer: React.FC<BranchSettingContainerProps>;
4
+ export default BranchSettingContainer;
@@ -0,0 +1,23 @@
1
+ import { Node, NodeProps } from '@xyflow/react';
2
+ import { BlockTypeProps } from '../../../constants';
3
+ export declare enum BRANCH_TYPE {
4
+ BRANCH = "BRANCH"
5
+ }
6
+ export declare const BranchTypeLabel: {
7
+ BRANCH: string;
8
+ };
9
+ export declare const BranchTypeDescription: {
10
+ BRANCH: string;
11
+ };
12
+ export declare const BranchTypeList: BRANCH_TYPE[];
13
+ export interface BranchNodeData extends Record<string, unknown> {
14
+ title: string;
15
+ type: BRANCH_TYPE;
16
+ groups: {
17
+ id: string;
18
+ filter_type: "AND" | "OR";
19
+ conditions: any[];
20
+ }[];
21
+ }
22
+ export type BlockBranchProps = BlockTypeProps<BranchNodeData>;
23
+ export type BranchNodeProps = NodeProps<Node<BranchNodeData>>;
@@ -22,7 +22,7 @@ export interface EmailActionNodeData extends Record<string, unknown> {
22
22
  email?: {
23
23
  recipient_list?: string[];
24
24
  subject?: string;
25
- body?: string;
25
+ message?: string;
26
26
  template_id?: string;
27
27
  email_type?: "template" | "custom";
28
28
  };
@@ -1,5 +1,7 @@
1
1
  import { AutoCompleteProps } from 'antd';
2
2
  import { default as React } from 'react';
3
- type SuggestVariableNodeContainerProps = {} & AutoCompleteProps;
3
+ type SuggestVariableNodeContainerProps = {
4
+ isCheckPrefix?: boolean;
5
+ } & AutoCompleteProps;
4
6
  declare const SuggestVariableNodeContainer: React.FC<SuggestVariableNodeContainerProps>;
5
7
  export default SuggestVariableNodeContainer;
@@ -14,7 +14,8 @@ export declare enum BlockType {
14
14
  CALLBOT_ACTION = "CALLBOT_ACTION",
15
15
  ORDER_ACTION = "ORDER_ACTION",
16
16
  EMAIL = "EMAIL",
17
- DELAY = "DELAY"
17
+ DELAY = "DELAY",
18
+ BRANCH = "BRANCH"
18
19
  }
19
20
  export declare enum SPEAK_TYPE {
20
21
  MACHINE_AND_RECORD = "MACHINE_AND_RECORD",
@@ -8,6 +8,8 @@ export declare const initialTitles: {
8
8
  GROUP: string;
9
9
  TRIGGER_CONTACT: string;
10
10
  EMAIL: string;
11
+ DELAY: string;
12
+ BRANCH: string;
11
13
  };
12
14
  export declare const initialData: {
13
15
  START: {};
@@ -8,6 +8,7 @@ export declare const nodeTypes: {
8
8
  CONTACT_ACTION: import('react').FC<import('../components/Blocks/Contact/action/types').BlockContactActionProps>;
9
9
  EMAIL: import('react').FC<import('../components/Blocks/Email/types').BlockEmailActionProps>;
10
10
  DELAY: import('react').FC<import('../components/Blocks/Delay/types').BlockDelayActionProps>;
11
+ BRANCH: import('react').FC<import('../components/Blocks/Branch/types').BlockBranchProps>;
11
12
  };
12
13
  export declare const getNodeColor: (node: any) => string;
13
14
  export default nodeTypes;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.11.5",
4
+ "version": "1.12.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"