@antscorp/antsomi-ui 1.2.2 → 1.2.3-beta.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/README.md +78 -78
- package/dist/1a69688fb6f3d353be6b.png +0 -0
- package/dist/33b65403c460f2d4423b.svg +87 -0
- package/dist/4a824e811d4678e0e3a2.png +0 -0
- package/dist/4f873001a3769df8f982.svg +338 -0
- package/dist/9468534045e0fef49315.png +0 -0
- package/dist/afb8ae1bce88559d24ef.woff +0 -0
- package/dist/bfb9cf6473c43ea3c384.png +0 -0
- package/dist/c74e9d6a9ac4f04cfd3d.png +0 -0
- package/dist/cfed74d00d1032bc5076.ttf +0 -0
- package/dist/d623401497f2714dc96f.eot +0 -0
- package/dist/ff7db9ff05a910761543.png +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +56 -0
- package/dist/main.css +68 -0
- package/dist/types/components/atoms/Button/Button.d.ts +1 -1
- package/dist/types/components/atoms/Button/Button.stories.d.ts +32 -32
- package/dist/types/components/atoms/Button/__tests__/Button.test.d.ts +1 -1
- package/dist/types/components/atoms/Button/index.d.ts +10 -10
- package/dist/types/components/atoms/Button/test.d.ts +3 -3
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +15 -0
- package/dist/types/components/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/types/components/atoms/Checkbox/index.d.ts +1 -1
- package/dist/types/components/atoms/Divider/Divider.d.ts +1 -1
- package/dist/types/components/atoms/Divider/Divider.stories.d.ts +8 -8
- package/dist/types/components/atoms/Divider/index.d.ts +1 -1
- package/dist/types/components/atoms/Input/Input.d.ts +7 -7
- package/dist/types/components/atoms/Input/Input.stories.d.ts +19 -19
- package/dist/types/components/atoms/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/types/components/atoms/Input/index.d.ts +1 -1
- package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +6 -6
- package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +16 -16
- package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +1 -1
- package/dist/types/components/atoms/InputNumber/index.d.ts +1 -1
- package/dist/types/components/atoms/Radio/Radio.d.ts +1 -1
- package/dist/types/components/atoms/Radio/index.d.ts +1 -1
- package/dist/types/components/atoms/Space/Space.d.ts +1 -1
- package/dist/types/components/atoms/Space/index.d.ts +1 -1
- package/dist/types/components/atoms/Tag/Tag.d.ts +1 -1
- package/dist/types/components/atoms/Tag/index.d.ts +1 -1
- package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/components/atoms/Tooltip/index.d.ts +1 -1
- package/dist/types/components/atoms/Typography/Text.d.ts +1 -1
- package/dist/types/components/atoms/Typography/index.d.ts +1 -1
- package/dist/types/components/atoms/index.d.ts +10 -10
- package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
- package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
- package/dist/types/components/common/ConfigProvider/index.d.ts +1 -1
- package/dist/types/components/common/index.d.ts +1 -1
- package/dist/types/components/icons/ArrowGrowIcon.d.ts +1 -0
- package/dist/types/components/icons/BugIcon.d.ts +1 -0
- package/dist/types/components/icons/CheckSlimIcon.d.ts +1 -0
- package/dist/types/components/icons/CloseIcon.d.ts +3 -0
- package/dist/types/components/icons/CommentIcon.d.ts +1 -0
- package/dist/types/components/icons/EventIcon.d.ts +3 -3
- package/dist/types/components/icons/FreeDrawIcon.d.ts +1 -0
- package/dist/types/components/icons/GPTIcon.d.ts +1 -0
- package/dist/types/components/icons/GPTIconV2.d.ts +1 -0
- package/dist/types/components/icons/HighlightIcon.d.ts +1 -0
- package/dist/types/components/icons/IdeaIcon.d.ts +1 -0
- package/dist/types/components/icons/InvisibleIcon.d.ts +1 -0
- package/dist/types/components/icons/PlaneIcon.d.ts +1 -0
- package/dist/types/components/icons/UserIcon.d.ts +1 -0
- package/dist/types/components/icons/WarningIcon.d.ts +1 -0
- package/dist/types/components/icons/index.d.ts +13 -1
- package/dist/types/components/index.d.ts +4 -4
- package/dist/types/components/molecules/Alert/Alert.d.ts +1 -1
- package/dist/types/components/molecules/Alert/index.d.ts +1 -1
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.d.ts +11 -0
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.stories.d.ts +21 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +16 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/styled.d.ts +12 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +14 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +4 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +6 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/types.d.ts +10 -0
- package/dist/types/components/molecules/CaptureScreen/constants.d.ts +31 -0
- package/dist/types/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +5 -0
- package/dist/types/components/molecules/CaptureScreen/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/styled.d.ts +22 -0
- package/dist/types/components/molecules/CaptureScreen/themes/black.d.ts +54 -0
- package/dist/types/components/molecules/CaptureScreen/themes/white.d.ts +54 -0
- package/dist/types/components/molecules/CaptureScreen/types.d.ts +101 -0
- package/dist/types/components/molecules/CaptureScreen/utils.d.ts +13 -0
- package/dist/types/components/molecules/Cascader/Cascader.d.ts +1 -1
- package/dist/types/components/molecules/Cascader/index.d.ts +1 -1
- package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +4 -0
- package/dist/types/components/molecules/ChatBox/ChatBox.stories.d.ts +0 -0
- package/dist/types/components/molecules/ChatBox/ask.d.ts +3 -0
- package/dist/types/components/molecules/ChatBox/constants.d.ts +6 -0
- package/dist/types/components/molecules/ChatBox/index.d.ts +1 -0
- package/dist/types/components/molecules/ChatBox/styled.d.ts +10 -0
- package/dist/types/components/molecules/ChatBox/types.d.ts +26 -0
- package/dist/types/components/molecules/ChatBox/utils.d.ts +0 -0
- package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +8 -8
- package/dist/types/components/molecules/DatePicker/DatePicker.stories.d.ts +4 -4
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +5 -5
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +53 -53
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +14 -14
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +15 -15
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +9 -9
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
- package/dist/types/components/molecules/DatePicker/index.d.ts +3 -3
- package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +1 -1
- package/dist/types/components/molecules/Dropdown/index.d.ts +1 -1
- package/dist/types/components/molecules/Modal/Modal.d.ts +1 -1
- package/dist/types/components/molecules/Modal/index.d.ts +1 -1
- package/dist/types/components/molecules/PopupDraggable/PopupDraggable.d.ts +6 -0
- package/dist/types/components/molecules/PopupDraggable/index.d.ts +1 -0
- package/dist/types/components/molecules/PopupDraggable/styled.d.ts +4 -0
- package/dist/types/components/molecules/PopupDraggable/types.d.ts +12 -0
- package/dist/types/components/molecules/Select/Select.d.ts +15 -15
- package/dist/types/components/molecules/Select/Select.stories.d.ts +28 -28
- package/dist/types/components/molecules/Select/Test.d.ts +3 -3
- package/dist/types/components/molecules/Select/index.d.ts +2 -2
- package/dist/types/components/molecules/Select/styled.d.ts +4 -4
- package/dist/types/components/molecules/Tabs/Tabs.d.ts +1 -0
- package/dist/types/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/types/components/molecules/index.d.ts +11 -8
- package/dist/types/components/organism/Help/Help.d.ts +5 -0
- package/dist/types/components/organism/Help/constants.d.ts +133 -0
- package/dist/types/components/organism/Help/index.d.ts +1 -0
- package/dist/types/components/organism/Help/styled.d.ts +76 -0
- package/dist/types/components/organism/Help/types.d.ts +65 -0
- package/dist/types/components/organism/Help/utils.d.ts +14 -0
- package/dist/types/components/organism/Table/Table.d.ts +1 -1
- package/dist/types/components/organism/Table/index.d.ts +1 -1
- package/dist/types/components/organism/index.d.ts +2 -1
- package/dist/types/constants/index.d.ts +1 -0
- package/dist/types/{constants.d.ts → constants/theme.d.ts} +12 -12
- package/dist/types/hooks/index.d.ts +2 -2
- package/dist/types/hooks/useDebounce.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/locales/i18n.d.ts +73 -73
- package/dist/types/locales/translations.d.ts +37 -37
- package/dist/types/locales/types.d.ts +15 -15
- package/dist/types/services/Ticket.d.ts +62 -0
- package/dist/types/services/constants.d.ts +8 -0
- package/dist/types/test.d.ts +3 -3
- package/dist/types/types/index.d.ts +6 -6
- package/dist/types/utils/common.d.ts +49 -8
- package/dist/types/utils/handleError.d.ts +2 -2
- package/package.json +130 -123
- package/CHANGELOG.md +0 -64
- package/dist/package.json +0 -110
- package/dist/types/components/molecules/CustomComponent/CustomComponent.d.ts +0 -2
- package/dist/types/components/molecules/CustomComponent/index.d.ts +0 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { ITabShareScreenProps } from './types';
|
|
2
|
+
export declare const TICKET_CUSTOM_MESSAGE_KEY = "TICKET_CUSTOM_MESSAGE_KEY";
|
|
3
|
+
export declare const MESSAGE_TYPE: {
|
|
4
|
+
TICKET_CREATE_STATUS: string;
|
|
5
|
+
};
|
|
6
|
+
export declare enum MENU_KEYS {
|
|
7
|
+
FEATURE_ANNOUNCEMENT = "feature_announcement",
|
|
8
|
+
FEEDBACK = "feedback",
|
|
9
|
+
HELP = "help",
|
|
10
|
+
IDEA = "idea",
|
|
11
|
+
SUPPORT = "support",
|
|
12
|
+
CHAT = "chat"
|
|
13
|
+
}
|
|
14
|
+
export declare enum ATTACH_KEYS {
|
|
15
|
+
CAPTURE = "capture",
|
|
16
|
+
RECORD = "record"
|
|
17
|
+
}
|
|
18
|
+
export declare enum REPORT_TYPES {
|
|
19
|
+
FEEDBACK = "feedback",
|
|
20
|
+
ISSUE = "issue",
|
|
21
|
+
IDEA = "idea",
|
|
22
|
+
HELP = "help",
|
|
23
|
+
CHAT = "chat",
|
|
24
|
+
HELP_V1 = "help_v1"
|
|
25
|
+
}
|
|
26
|
+
export declare const ATTACH_CAPTURE_TYPES: {
|
|
27
|
+
key: ATTACH_KEYS;
|
|
28
|
+
label: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
actions: {
|
|
31
|
+
key: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
}[];
|
|
34
|
+
}[];
|
|
35
|
+
export declare const TABS_SHARING_SCREEN: ITabShareScreenProps[];
|
|
36
|
+
export declare const HELP_APP: ({
|
|
37
|
+
title: string;
|
|
38
|
+
key: string;
|
|
39
|
+
children: ({
|
|
40
|
+
title: string;
|
|
41
|
+
key: string;
|
|
42
|
+
children: ({
|
|
43
|
+
title: string;
|
|
44
|
+
key: string;
|
|
45
|
+
path: string;
|
|
46
|
+
children?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
title: string;
|
|
49
|
+
key: string;
|
|
50
|
+
children: ({
|
|
51
|
+
title: string;
|
|
52
|
+
key: string;
|
|
53
|
+
path: string;
|
|
54
|
+
children?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
title: string;
|
|
57
|
+
key: string;
|
|
58
|
+
children: {
|
|
59
|
+
title: string;
|
|
60
|
+
key: string;
|
|
61
|
+
path: string;
|
|
62
|
+
}[];
|
|
63
|
+
path?: undefined;
|
|
64
|
+
})[];
|
|
65
|
+
path?: undefined;
|
|
66
|
+
})[];
|
|
67
|
+
path?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
title: string;
|
|
70
|
+
key: string;
|
|
71
|
+
path: string;
|
|
72
|
+
children?: undefined;
|
|
73
|
+
})[];
|
|
74
|
+
} | {
|
|
75
|
+
title: string;
|
|
76
|
+
key: string;
|
|
77
|
+
children: ({
|
|
78
|
+
title: string;
|
|
79
|
+
key: string;
|
|
80
|
+
children?: undefined;
|
|
81
|
+
} | {
|
|
82
|
+
title: string;
|
|
83
|
+
key: string;
|
|
84
|
+
children: ({
|
|
85
|
+
title: string;
|
|
86
|
+
key: string;
|
|
87
|
+
path: string;
|
|
88
|
+
children?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
title: string;
|
|
91
|
+
key: string;
|
|
92
|
+
children: ({
|
|
93
|
+
title: string;
|
|
94
|
+
key: string;
|
|
95
|
+
path: string;
|
|
96
|
+
children?: undefined;
|
|
97
|
+
} | {
|
|
98
|
+
title: string;
|
|
99
|
+
key: string;
|
|
100
|
+
children: {
|
|
101
|
+
title: string;
|
|
102
|
+
key: string;
|
|
103
|
+
path: string;
|
|
104
|
+
}[];
|
|
105
|
+
path?: undefined;
|
|
106
|
+
})[];
|
|
107
|
+
path?: undefined;
|
|
108
|
+
})[];
|
|
109
|
+
})[];
|
|
110
|
+
} | {
|
|
111
|
+
title: string;
|
|
112
|
+
key: string;
|
|
113
|
+
children: ({
|
|
114
|
+
title: string;
|
|
115
|
+
key: string;
|
|
116
|
+
path: string;
|
|
117
|
+
children?: undefined;
|
|
118
|
+
} | {
|
|
119
|
+
title: string;
|
|
120
|
+
key: string;
|
|
121
|
+
children: {
|
|
122
|
+
title: string;
|
|
123
|
+
key: string;
|
|
124
|
+
path: string;
|
|
125
|
+
}[];
|
|
126
|
+
path?: undefined;
|
|
127
|
+
} | {
|
|
128
|
+
title: string;
|
|
129
|
+
key: string;
|
|
130
|
+
path?: undefined;
|
|
131
|
+
children?: undefined;
|
|
132
|
+
})[];
|
|
133
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Help } from './Help';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DropDown: import("styled-components").StyledComponent<import("react").FC<import("antd").DropDownProps> & {
|
|
3
|
+
Button: import("react").FC<import("antd/es/dropdown").DropdownButtonProps>;
|
|
4
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd").DropDownProps) => JSX.Element;
|
|
5
|
+
}, any, {}, never>;
|
|
6
|
+
export declare const ButtonFeedback: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Partial<{
|
|
7
|
+
href: string;
|
|
8
|
+
target?: string | undefined;
|
|
9
|
+
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
10
|
+
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
11
|
+
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
12
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
13
|
+
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
14
|
+
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
15
|
+
}, any, {
|
|
16
|
+
height?: number | undefined;
|
|
17
|
+
borderRadiusCustom?: number | undefined;
|
|
18
|
+
}, never>;
|
|
19
|
+
export declare const PreviewBox: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
20
|
+
export declare const Overlay: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
21
|
+
export declare const Text: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
22
|
+
export declare const Label: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
23
|
+
export declare const SendFeedback: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
24
|
+
export declare const ControlGroup: import("styled-components").StyledComponent<import("react").FC<import("antd").SpaceProps> & {
|
|
25
|
+
Compact: import("react").FC<import("antd/es/space/Compact").SpaceCompactProps>;
|
|
26
|
+
}, any, {}, never>;
|
|
27
|
+
export declare const ControlLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
|
|
28
|
+
export declare const FlexCenter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
29
|
+
export declare const WrapperFlex: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
30
|
+
export declare const HiddenBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
31
|
+
export declare const WrapperImage: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
32
|
+
export declare const Image: import("styled-components").StyledComponent<"img", any, {
|
|
33
|
+
isFull?: boolean | undefined;
|
|
34
|
+
}, never>;
|
|
35
|
+
export declare const Video: import("styled-components").StyledComponent<"video", any, {}, never>;
|
|
36
|
+
export declare const WrapperHeader: import("styled-components").StyledComponent<"strong", any, {}, never>;
|
|
37
|
+
export declare const Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
|
|
38
|
+
export declare const WrapperBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
39
|
+
export declare const WrapperFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
40
|
+
export declare const WrapperFooterSpace: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
41
|
+
export declare const EditorWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
42
|
+
export declare const WrapperLinkFiles: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
43
|
+
export declare const WrapperLinkItemFiles: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
44
|
+
export declare const WrapperIconEditor: import("styled-components").StyledComponent<"div", any, {
|
|
45
|
+
borderTop?: boolean | undefined;
|
|
46
|
+
}, never>;
|
|
47
|
+
export declare const WrapperLoading: import("styled-components").StyledComponent<"div", any, {
|
|
48
|
+
width?: string | number | undefined;
|
|
49
|
+
height?: string | number | undefined;
|
|
50
|
+
}, never>;
|
|
51
|
+
export declare const WrapperInputFile: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
52
|
+
export declare const WrapperBodyModal: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
53
|
+
export declare const ErrorMessage: import("styled-components").StyledComponent<"div", any, {
|
|
54
|
+
isShow: boolean;
|
|
55
|
+
}, never>;
|
|
56
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
57
|
+
export declare const LabelTitle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
|
|
58
|
+
export declare const WrapperContentHelp: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
59
|
+
export declare const Link: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
60
|
+
export declare const IframeHelp: import("styled-components").StyledComponent<"iframe", any, {}, never>;
|
|
61
|
+
export declare const TitleSearch: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
62
|
+
export declare const WrapperSearch: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>, any, {}, never>;
|
|
63
|
+
export declare const TreeContent: import("styled-components").StyledComponent<(<T extends import("rc-tree").BasicDataNode | import("antd").TreeDataNode = import("antd").TreeDataNode>(props: import("antd").TreeProps<T> & {
|
|
64
|
+
children?: import("react").ReactNode;
|
|
65
|
+
} & {
|
|
66
|
+
ref?: import("react").Ref<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>> | undefined;
|
|
67
|
+
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
68
|
+
TreeNode: import("react").FC<import("rc-tree").TreeNodeProps<import("antd").TreeDataNode>>;
|
|
69
|
+
DirectoryTree: (<T_1 extends import("rc-tree").BasicDataNode | import("antd").TreeDataNode = import("antd").TreeDataNode>(props: import("antd/es/tree").DirectoryTreeProps<T_1> & {
|
|
70
|
+
children?: import("react").ReactNode;
|
|
71
|
+
} & {
|
|
72
|
+
ref?: import("react").Ref<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>> | undefined;
|
|
73
|
+
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
74
|
+
displayName?: string | undefined;
|
|
75
|
+
};
|
|
76
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { MenuProps, TabPaneProps } from 'antd';
|
|
3
|
+
type TriggerTypeDropdown = Array<'hover' | 'contextMenu' | 'click'>;
|
|
4
|
+
type ConfigProps = {
|
|
5
|
+
domain: string;
|
|
6
|
+
domainTicket: string;
|
|
7
|
+
token: string;
|
|
8
|
+
apiKey: string;
|
|
9
|
+
portalId: string;
|
|
10
|
+
config: any;
|
|
11
|
+
userId: string;
|
|
12
|
+
ownerId: string;
|
|
13
|
+
appNameCurrent: string;
|
|
14
|
+
};
|
|
15
|
+
export interface ValueFormProps {
|
|
16
|
+
title: string;
|
|
17
|
+
ticketType: string;
|
|
18
|
+
priority: string;
|
|
19
|
+
category: any;
|
|
20
|
+
ownerId: number;
|
|
21
|
+
followers: any[];
|
|
22
|
+
message: string;
|
|
23
|
+
files: any[];
|
|
24
|
+
referenceUrl: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AllAppOptionsProps {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
raw?: any;
|
|
30
|
+
}
|
|
31
|
+
export interface IHelpProps {
|
|
32
|
+
menuProps: MenuProps;
|
|
33
|
+
configs: ConfigProps;
|
|
34
|
+
triggerType: TriggerTypeDropdown;
|
|
35
|
+
onClick?: Function;
|
|
36
|
+
children?: ReactNode;
|
|
37
|
+
}
|
|
38
|
+
export interface LabelProps {
|
|
39
|
+
color: string;
|
|
40
|
+
}
|
|
41
|
+
export type MenuItemTypeProps = {
|
|
42
|
+
item: any;
|
|
43
|
+
key: string;
|
|
44
|
+
keyPath: string[];
|
|
45
|
+
domEvent: React.MouseEvent<any>;
|
|
46
|
+
};
|
|
47
|
+
export interface ITabShareScreenProps extends Omit<TabPaneProps, 'tab'> {
|
|
48
|
+
key: string;
|
|
49
|
+
label: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
export interface ImageDrewProps {
|
|
52
|
+
imageName: string;
|
|
53
|
+
dataURL: string;
|
|
54
|
+
}
|
|
55
|
+
export interface StreamTrackProps {
|
|
56
|
+
desktopStream: MediaStream;
|
|
57
|
+
voiceStream: MediaStream;
|
|
58
|
+
}
|
|
59
|
+
export interface HelpDocItem {
|
|
60
|
+
title: string | JSX.Element;
|
|
61
|
+
key: string;
|
|
62
|
+
path?: string;
|
|
63
|
+
children?: HelpDocItem[];
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const formatAccountId: (data: any) => any;
|
|
2
|
+
export declare const formatParams: (data: any) => {
|
|
3
|
+
title: string;
|
|
4
|
+
ownerId: undefined;
|
|
5
|
+
followers: never[];
|
|
6
|
+
referenceUrl: string;
|
|
7
|
+
priority: string;
|
|
8
|
+
feature: string;
|
|
9
|
+
ticketType: string;
|
|
10
|
+
category: string;
|
|
11
|
+
message: string;
|
|
12
|
+
attachments: never[];
|
|
13
|
+
};
|
|
14
|
+
export declare const postCustomEvent: (type: any, data: any) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Table } from 'antd';
|
|
1
|
+
export { Table } from 'antd';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Table } from './Table';
|
|
1
|
+
export { Table } from './Table';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Table } from './Table';
|
|
1
|
+
export { Table } from './Table';
|
|
2
|
+
export { Help } from './Help';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { THEME } from './theme';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ThemeConfig } from 'antd';
|
|
2
|
-
type TTheme = {
|
|
3
|
-
token?: ThemeConfig['token'] & {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
components?: ThemeConfig['components'];
|
|
7
|
-
algorithm?: ThemeConfig['algorithm'];
|
|
8
|
-
hashed?: ThemeConfig['hashed'];
|
|
9
|
-
inherit?: ThemeConfig['inherit'];
|
|
10
|
-
};
|
|
11
|
-
export declare const THEME: TTheme;
|
|
12
|
-
export {};
|
|
1
|
+
import { ThemeConfig } from 'antd';
|
|
2
|
+
type TTheme = {
|
|
3
|
+
token?: ThemeConfig['token'] & {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
components?: ThemeConfig['components'];
|
|
7
|
+
algorithm?: ThemeConfig['algorithm'];
|
|
8
|
+
hashed?: ThemeConfig['hashed'];
|
|
9
|
+
inherit?: ThemeConfig['inherit'];
|
|
10
|
+
};
|
|
11
|
+
export declare const THEME: TTheme;
|
|
12
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function useDeepCompareEffect(callback: React.EffectCallback, dependencies: React.DependencyList | undefined): void;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function useDeepCompareEffect(callback: React.EffectCallback, dependencies: React.DependencyList | undefined): void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './components';
|
|
1
|
+
export * from './components';
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
export declare const translationsJson: {
|
|
2
|
-
en: {
|
|
3
|
-
translation: {
|
|
4
|
-
global: {
|
|
5
|
-
minus: string;
|
|
6
|
-
plus: string;
|
|
7
|
-
};
|
|
8
|
-
button: {};
|
|
9
|
-
datePicker: {
|
|
10
|
-
startDate: string;
|
|
11
|
-
endDate: string;
|
|
12
|
-
dateTypes: {
|
|
13
|
-
today: string;
|
|
14
|
-
firstDayOfWeekMonSun: string;
|
|
15
|
-
firstDayOfWeekSunSat: string;
|
|
16
|
-
firstDayOfMonth: string;
|
|
17
|
-
firstDayOfQuarter: string;
|
|
18
|
-
firstDayOfYear: string;
|
|
19
|
-
lastDayOfWeekMonSun: string;
|
|
20
|
-
lastDayOfWeekSunSat: string;
|
|
21
|
-
lastDayOfMonth: string;
|
|
22
|
-
lastDayOfQuarter: string;
|
|
23
|
-
lastDayOfYear: string;
|
|
24
|
-
fixed: string;
|
|
25
|
-
};
|
|
26
|
-
seconds: string;
|
|
27
|
-
minutes: string;
|
|
28
|
-
hours: string;
|
|
29
|
-
days: string;
|
|
30
|
-
weeks: string;
|
|
31
|
-
months: string;
|
|
32
|
-
quarters: string;
|
|
33
|
-
years: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
vi: {
|
|
38
|
-
translation: {
|
|
39
|
-
global: {
|
|
40
|
-
minus: string;
|
|
41
|
-
plus: string;
|
|
42
|
-
};
|
|
43
|
-
button: {};
|
|
44
|
-
datePicker: {
|
|
45
|
-
startDate: string;
|
|
46
|
-
endDate: string;
|
|
47
|
-
dateTypes: {
|
|
48
|
-
today: string;
|
|
49
|
-
firstDayOfWeekMonSun: string;
|
|
50
|
-
firstDayOfWeekSunSat: string;
|
|
51
|
-
firstDayOfMonth: string;
|
|
52
|
-
firstDayOfQuarter: string;
|
|
53
|
-
firstDayOfYear: string;
|
|
54
|
-
lastDayOfWeekMonSun: string;
|
|
55
|
-
lastDayOfWeekSunSat: string;
|
|
56
|
-
lastDayOfMonth: string;
|
|
57
|
-
lastDayOfQuarter: string;
|
|
58
|
-
lastDayOfYear: string;
|
|
59
|
-
fixed: string;
|
|
60
|
-
};
|
|
61
|
-
seconds: string;
|
|
62
|
-
minutes: string;
|
|
63
|
-
hours: string;
|
|
64
|
-
days: string;
|
|
65
|
-
weeks: string;
|
|
66
|
-
months: string;
|
|
67
|
-
quarters: string;
|
|
68
|
-
years: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export declare const i18n: Promise<import("i18next").TFunction<"translation", undefined, "translation">>;
|
|
1
|
+
export declare const translationsJson: {
|
|
2
|
+
en: {
|
|
3
|
+
translation: {
|
|
4
|
+
global: {
|
|
5
|
+
minus: string;
|
|
6
|
+
plus: string;
|
|
7
|
+
};
|
|
8
|
+
button: {};
|
|
9
|
+
datePicker: {
|
|
10
|
+
startDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
dateTypes: {
|
|
13
|
+
today: string;
|
|
14
|
+
firstDayOfWeekMonSun: string;
|
|
15
|
+
firstDayOfWeekSunSat: string;
|
|
16
|
+
firstDayOfMonth: string;
|
|
17
|
+
firstDayOfQuarter: string;
|
|
18
|
+
firstDayOfYear: string;
|
|
19
|
+
lastDayOfWeekMonSun: string;
|
|
20
|
+
lastDayOfWeekSunSat: string;
|
|
21
|
+
lastDayOfMonth: string;
|
|
22
|
+
lastDayOfQuarter: string;
|
|
23
|
+
lastDayOfYear: string;
|
|
24
|
+
fixed: string;
|
|
25
|
+
};
|
|
26
|
+
seconds: string;
|
|
27
|
+
minutes: string;
|
|
28
|
+
hours: string;
|
|
29
|
+
days: string;
|
|
30
|
+
weeks: string;
|
|
31
|
+
months: string;
|
|
32
|
+
quarters: string;
|
|
33
|
+
years: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
vi: {
|
|
38
|
+
translation: {
|
|
39
|
+
global: {
|
|
40
|
+
minus: string;
|
|
41
|
+
plus: string;
|
|
42
|
+
};
|
|
43
|
+
button: {};
|
|
44
|
+
datePicker: {
|
|
45
|
+
startDate: string;
|
|
46
|
+
endDate: string;
|
|
47
|
+
dateTypes: {
|
|
48
|
+
today: string;
|
|
49
|
+
firstDayOfWeekMonSun: string;
|
|
50
|
+
firstDayOfWeekSunSat: string;
|
|
51
|
+
firstDayOfMonth: string;
|
|
52
|
+
firstDayOfQuarter: string;
|
|
53
|
+
firstDayOfYear: string;
|
|
54
|
+
lastDayOfWeekMonSun: string;
|
|
55
|
+
lastDayOfWeekSunSat: string;
|
|
56
|
+
lastDayOfMonth: string;
|
|
57
|
+
lastDayOfQuarter: string;
|
|
58
|
+
lastDayOfYear: string;
|
|
59
|
+
fixed: string;
|
|
60
|
+
};
|
|
61
|
+
seconds: string;
|
|
62
|
+
minutes: string;
|
|
63
|
+
hours: string;
|
|
64
|
+
days: string;
|
|
65
|
+
weeks: string;
|
|
66
|
+
months: string;
|
|
67
|
+
quarters: string;
|
|
68
|
+
years: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare const i18n: Promise<import("i18next").TFunction<"translation", undefined, "translation">>;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { ConvertedToObjectType, TranslationJsonType } from './types';
|
|
2
|
-
export declare const translations: ConvertedToObjectType<TranslationJsonType>;
|
|
3
|
-
export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: ConvertedToObjectType<{
|
|
4
|
-
global: {
|
|
5
|
-
minus: string;
|
|
6
|
-
plus: string;
|
|
7
|
-
};
|
|
8
|
-
button: {};
|
|
9
|
-
datePicker: {
|
|
10
|
-
startDate: string;
|
|
11
|
-
endDate: string;
|
|
12
|
-
dateTypes: {
|
|
13
|
-
today: string;
|
|
14
|
-
firstDayOfWeekMonSun: string;
|
|
15
|
-
firstDayOfWeekSunSat: string;
|
|
16
|
-
firstDayOfMonth: string;
|
|
17
|
-
firstDayOfQuarter: string;
|
|
18
|
-
firstDayOfYear: string;
|
|
19
|
-
lastDayOfWeekMonSun: string;
|
|
20
|
-
lastDayOfWeekSunSat: string;
|
|
21
|
-
lastDayOfMonth: string;
|
|
22
|
-
lastDayOfQuarter: string;
|
|
23
|
-
lastDayOfYear: string;
|
|
24
|
-
fixed: string;
|
|
25
|
-
};
|
|
26
|
-
seconds: string;
|
|
27
|
-
minutes: string;
|
|
28
|
-
hours: string;
|
|
29
|
-
days: string;
|
|
30
|
-
weeks: string;
|
|
31
|
-
months: string;
|
|
32
|
-
quarters: string;
|
|
33
|
-
years: string;
|
|
34
|
-
};
|
|
35
|
-
}>, current?: string) => void;
|
|
36
|
-
export declare const t: (id: string, ...rest: any[]) => [string, ...any[]];
|
|
37
|
-
export declare const getTranslateMessage: (id: string, defaultMessage?: string, value?: Record<string, unknown>) => string;
|
|
1
|
+
import { ConvertedToObjectType, TranslationJsonType } from './types';
|
|
2
|
+
export declare const translations: ConvertedToObjectType<TranslationJsonType>;
|
|
3
|
+
export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: ConvertedToObjectType<{
|
|
4
|
+
global: {
|
|
5
|
+
minus: string;
|
|
6
|
+
plus: string;
|
|
7
|
+
};
|
|
8
|
+
button: {};
|
|
9
|
+
datePicker: {
|
|
10
|
+
startDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
dateTypes: {
|
|
13
|
+
today: string;
|
|
14
|
+
firstDayOfWeekMonSun: string;
|
|
15
|
+
firstDayOfWeekSunSat: string;
|
|
16
|
+
firstDayOfMonth: string;
|
|
17
|
+
firstDayOfQuarter: string;
|
|
18
|
+
firstDayOfYear: string;
|
|
19
|
+
lastDayOfWeekMonSun: string;
|
|
20
|
+
lastDayOfWeekSunSat: string;
|
|
21
|
+
lastDayOfMonth: string;
|
|
22
|
+
lastDayOfQuarter: string;
|
|
23
|
+
lastDayOfYear: string;
|
|
24
|
+
fixed: string;
|
|
25
|
+
};
|
|
26
|
+
seconds: string;
|
|
27
|
+
minutes: string;
|
|
28
|
+
hours: string;
|
|
29
|
+
days: string;
|
|
30
|
+
weeks: string;
|
|
31
|
+
months: string;
|
|
32
|
+
quarters: string;
|
|
33
|
+
years: string;
|
|
34
|
+
};
|
|
35
|
+
}>, current?: string) => void;
|
|
36
|
+
export declare const t: (id: string, ...rest: any[]) => [string, ...any[]];
|
|
37
|
+
export declare const getTranslateMessage: (id: string, defaultMessage?: string, value?: Record<string, unknown>) => string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export type ConvertedToObjectType<T> = {
|
|
2
|
-
[P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
If you don't want non-existing keys to throw ts error you can simply do(also keeping the intellisense)
|
|
7
|
-
|
|
8
|
-
export type ConvertedToObjectType<T> = {
|
|
9
|
-
[P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
|
|
10
|
-
} & {
|
|
11
|
-
[P: string]: any;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
export type TranslationJsonType = typeof import('./en/translation.json');
|
|
1
|
+
export type ConvertedToObjectType<T> = {
|
|
2
|
+
[P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
|
|
6
|
+
If you don't want non-existing keys to throw ts error you can simply do(also keeping the intellisense)
|
|
7
|
+
|
|
8
|
+
export type ConvertedToObjectType<T> = {
|
|
9
|
+
[P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
|
|
10
|
+
} & {
|
|
11
|
+
[P: string]: any;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
*/
|
|
15
|
+
export type TranslationJsonType = typeof import('./en/translation.json');
|