app-v3-scripts-editor 1.13.0 → 1.13.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.
@@ -2,6 +2,7 @@ import { ListenCondition } from '../types';
2
2
  type FormAddListenConditionProps = {
3
3
  dataSubmit?: (data: ListenCondition) => void;
4
4
  defaultValues?: ListenCondition;
5
+ onFormSubmit?: () => void;
5
6
  };
6
7
  export type FormAddListenConditionMethods = {
7
8
  onSubmit: () => void;
@@ -2,21 +2,21 @@ export declare const INTENTS: {
2
2
  INTERESTED: {
3
3
  label: string;
4
4
  description: string;
5
- keywords: string[];
5
+ keywords: string;
6
6
  };
7
7
  NOT_INTERESTED: {
8
8
  label: string;
9
9
  description: string;
10
- keywords: string[];
10
+ keywords: string;
11
11
  };
12
12
  NOT_HEARD: {
13
13
  label: string;
14
14
  description: string;
15
- keywords: string[];
15
+ keywords: string;
16
16
  };
17
17
  BUSY: {
18
18
  label: string;
19
19
  description: string;
20
- keywords: string[];
20
+ keywords: string;
21
21
  };
22
22
  };
@@ -1,10 +1,12 @@
1
+ import { AntdIconProps } from '@ant-design/icons/lib/components/AntdIcon';
2
+ import { IconProps } from 'iconsax-reactjs';
1
3
  import { default as React } from 'react';
2
- import { IconProps } from '../icons/types';
3
4
  import { BlockType } from './block-types';
4
5
  export interface AutoCallSidebarButton {
5
6
  key: BlockType;
6
7
  label: string;
7
- icon: React.ComponentType;
8
+ icon: React.ComponentType<IconProps | Omit<AntdIconProps, "ref">>;
9
+ iconProps?: IconProps | Omit<AntdIconProps, "ref">;
8
10
  active?: boolean;
9
11
  group?: number;
10
12
  }
@@ -12,7 +14,8 @@ export interface AutoFlowSidebarButton {
12
14
  key: string;
13
15
  label: string;
14
16
  description?: string;
15
- icon: React.FC<IconProps>;
17
+ icon: React.ComponentType<IconProps | Omit<AntdIconProps, "ref">>;
18
+ iconProps?: IconProps | Omit<AntdIconProps, "ref">;
16
19
  color?: string;
17
20
  group?: string | number;
18
21
  items?: AutoFlowSidebarButton[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.13.0",
4
+ "version": "1.13.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"
@@ -1,3 +0,0 @@
1
- import { IconProps } from '../types';
2
- declare const ApiIcon: React.FC<IconProps>;
3
- export default ApiIcon;
@@ -1,3 +0,0 @@
1
- import { IconProps } from '../types';
2
- declare const BranchesIcon: React.FC<IconProps>;
3
- export default BranchesIcon;
@@ -1,3 +0,0 @@
1
- import { IconProps } from '../types';
2
- declare const FlashIcon: React.FC<IconProps>;
3
- export default FlashIcon;
@@ -1,3 +0,0 @@
1
- import { IconProps } from '../types';
2
- declare const MagicStarIcon: React.FC<IconProps>;
3
- export default MagicStarIcon;
@@ -1,3 +0,0 @@
1
- import { IconProps } from '../types';
2
- declare const Message3Icon: React.FC<IconProps>;
3
- export default Message3Icon;
@@ -1,3 +0,0 @@
1
- import { IconProps } from '../types';
2
- declare const PersonalCardIcon: React.FC<IconProps>;
3
- export default PersonalCardIcon;
@@ -1,3 +0,0 @@
1
- import { IconProps } from '../types';
2
- declare const SmsIcon: React.FC<IconProps>;
3
- export default SmsIcon;
@@ -1,7 +0,0 @@
1
- export interface IconProps {
2
- width?: number;
3
- height?: number;
4
- fillColor?: string;
5
- strokeColor?: string;
6
- className?: string;
7
- }