@antscorp/antsomi-ui 1.2.2-beta.7 → 1.2.3-beta.1
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/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 +50 -11
- package/dist/main.css +67 -8
- package/dist/types/components/icons/GPTIconV2.d.ts +1 -0
- package/dist/types/components/icons/index.d.ts +1 -0
- 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/ChatBox/ChatBox.d.ts +0 -1
- package/dist/types/components/molecules/ChatBox/ask.d.ts +1 -1
- package/dist/types/components/molecules/ChatBox/constants.d.ts +1 -1
- package/dist/types/components/molecules/ChatBox/styled.d.ts +3 -1
- package/dist/types/components/molecules/ChatBox/types.d.ts +5 -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/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 +3 -1
- package/dist/types/components/organism/Help/Help.d.ts +5 -0
- package/dist/types/components/organism/Help/constants.d.ts +66 -0
- package/dist/types/components/organism/Help/index.d.ts +1 -0
- package/dist/types/components/organism/Help/styled.d.ts +57 -0
- package/dist/types/components/organism/Help/types.d.ts +59 -0
- package/dist/types/components/organism/Help/utils.d.ts +14 -0
- package/dist/types/components/organism/index.d.ts +1 -0
- package/dist/types/hooks/useDebounce.d.ts +3 -0
- package/dist/types/services/Ticket.d.ts +62 -0
- package/dist/types/services/constants.d.ts +8 -0
- package/dist/types/utils/common.d.ts +41 -0
- package/package.json +11 -8
- package/CHANGELOG.md +0 -72
- 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,101 @@
|
|
|
1
|
+
import ImageEditor from 'tui-image-editor';
|
|
2
|
+
import { DRAW_KEYS } from './constants';
|
|
3
|
+
import { ATTACH_KEYS } from 'src/components/organism/Help/constants';
|
|
4
|
+
import { StreamTrackProps } from 'src/components/organism/Help/types';
|
|
5
|
+
interface RecorderConfigProps {
|
|
6
|
+
isMute: boolean;
|
|
7
|
+
recorder?: MediaRecorder;
|
|
8
|
+
streamTracks?: StreamTrackProps;
|
|
9
|
+
}
|
|
10
|
+
export interface IImageEditorProps {
|
|
11
|
+
src?: string;
|
|
12
|
+
alt?: string;
|
|
13
|
+
recorderConfigs: RecorderConfigProps;
|
|
14
|
+
captureType: CaptureTypeProps;
|
|
15
|
+
callback: Function;
|
|
16
|
+
}
|
|
17
|
+
export type CaptureTypeProps = ATTACH_KEYS.CAPTURE | ATTACH_KEYS.RECORD;
|
|
18
|
+
export interface IncludeUIOptionProps {
|
|
19
|
+
loadImage?: {
|
|
20
|
+
path: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
theme?: any;
|
|
24
|
+
menu?: string[];
|
|
25
|
+
initMenu?: string;
|
|
26
|
+
uiSize?: {
|
|
27
|
+
width: string;
|
|
28
|
+
height: string;
|
|
29
|
+
};
|
|
30
|
+
menuBarPosition?: string;
|
|
31
|
+
usageStatistics?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface SelectionStyleConfigProps {
|
|
34
|
+
cornerStyle?: string;
|
|
35
|
+
cornerSize?: number;
|
|
36
|
+
cornerColor?: string;
|
|
37
|
+
cornerStrokeColor?: string;
|
|
38
|
+
transparentCorners?: boolean;
|
|
39
|
+
lineWidth?: number;
|
|
40
|
+
borderColor?: string;
|
|
41
|
+
rotatingPointOffset?: number;
|
|
42
|
+
}
|
|
43
|
+
export interface EditorConfigProps {
|
|
44
|
+
includeUI?: IncludeUIOptionProps;
|
|
45
|
+
cssMaxWidth?: number;
|
|
46
|
+
cssMaxHeight?: number;
|
|
47
|
+
usageStatistics?: boolean;
|
|
48
|
+
selectionStyle?: SelectionStyleConfigProps;
|
|
49
|
+
}
|
|
50
|
+
export interface DrawItemProps {
|
|
51
|
+
key: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
type?: string;
|
|
54
|
+
label?: string;
|
|
55
|
+
isShowColorList: boolean;
|
|
56
|
+
colorList?: Array<string>;
|
|
57
|
+
}
|
|
58
|
+
export interface MethodImageEditorProps {
|
|
59
|
+
activateShapeMode: Function;
|
|
60
|
+
activateTextMode: Function;
|
|
61
|
+
getSettings: Function;
|
|
62
|
+
}
|
|
63
|
+
export interface ImageEditorInstanceProps {
|
|
64
|
+
editorInstance: ImageEditor | null;
|
|
65
|
+
methods: MethodImageEditorProps;
|
|
66
|
+
}
|
|
67
|
+
export type ColorListProps = '#0f2eae' | '#212b37' | '#1e6be5' | '#17bb84' | '#f5b108' | '#f71007';
|
|
68
|
+
export type ColorKeys = DRAW_KEYS.HIGHLIGHT | DRAW_KEYS.COMMENT | DRAW_KEYS.PEN | DRAW_KEYS.ARROW | DRAW_KEYS.HIDE;
|
|
69
|
+
export interface ShapeOptionProps {
|
|
70
|
+
fill?: string;
|
|
71
|
+
stroke?: string;
|
|
72
|
+
strokeWidth?: number;
|
|
73
|
+
width?: number;
|
|
74
|
+
height?: number;
|
|
75
|
+
rx?: number;
|
|
76
|
+
ry?: number;
|
|
77
|
+
left?: number;
|
|
78
|
+
top?: number;
|
|
79
|
+
isRegular?: boolean;
|
|
80
|
+
}
|
|
81
|
+
interface ArrowTypeProps {
|
|
82
|
+
tail?: 'chevron' | 'triangle';
|
|
83
|
+
head?: 'chevron' | 'triangle';
|
|
84
|
+
}
|
|
85
|
+
export interface DrawingModeOptionProps {
|
|
86
|
+
width?: number;
|
|
87
|
+
color?: string;
|
|
88
|
+
arrowType?: ArrowTypeProps;
|
|
89
|
+
}
|
|
90
|
+
export interface CommentListProps {
|
|
91
|
+
id: string;
|
|
92
|
+
index: number;
|
|
93
|
+
color: string;
|
|
94
|
+
content?: string;
|
|
95
|
+
isSubmitted: boolean;
|
|
96
|
+
left: number;
|
|
97
|
+
top: number;
|
|
98
|
+
isReverseAxisX: boolean;
|
|
99
|
+
isReverseAxisY: boolean;
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EditorConfigProps } from './types';
|
|
2
|
+
export declare const getEditorConfigs: () => EditorConfigProps;
|
|
3
|
+
export declare const initDefaultColors: () => {
|
|
4
|
+
highlight: string;
|
|
5
|
+
comment: string;
|
|
6
|
+
pen: string;
|
|
7
|
+
arrow: string;
|
|
8
|
+
hide: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const base64ToFile: (dataUrl: string, filename: string) => File | undefined;
|
|
11
|
+
export declare const convertBlobToFile: (blob: Blob, fileName: string) => File;
|
|
12
|
+
export declare const generateUniqueId: () => string;
|
|
13
|
+
export declare const mergeAudioStreams: (desktopStream: MediaStream, voiceStream: MediaStream) => any[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Message } from './types';
|
|
2
|
-
declare const ask: (onMessage:
|
|
2
|
+
declare const ask: (onMessage: Function, messages: Partial<Message>[], token?: string) => Promise<void>;
|
|
3
3
|
export default ask;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export declare const ChatBoxWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
1
|
+
export declare const ChatBoxWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
withoutBox?: boolean | undefined;
|
|
3
|
+
}, never>;
|
|
2
4
|
export declare const ChatBoxHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
5
|
export declare const ChatBoxBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
6
|
export declare const ChatBoxFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -18,5 +18,9 @@ export interface IChatBoxMessageProps extends Message {
|
|
|
18
18
|
answeringContent: string;
|
|
19
19
|
}
|
|
20
20
|
export interface IChatBoxProps {
|
|
21
|
-
onClose
|
|
21
|
+
onClose?: Function;
|
|
22
|
+
withoutBox?: boolean;
|
|
23
|
+
domain: string;
|
|
24
|
+
userId: string | number;
|
|
25
|
+
token: string;
|
|
22
26
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PopupDraggable } from './PopupDraggable';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CSSProperties } from 'styled-components';
|
|
3
|
+
export interface IPopupDraggable {
|
|
4
|
+
id?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
bounds: string;
|
|
7
|
+
isHiddenClose?: boolean;
|
|
8
|
+
isHiddenResizing?: boolean;
|
|
9
|
+
callback: Function;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
styleContainer?: CSSProperties;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs } from './Tabs';
|
|
@@ -3,7 +3,9 @@ export { Cascader } from './Cascader';
|
|
|
3
3
|
export { Dropdown } from './Dropdown';
|
|
4
4
|
export { Modal } from './Modal';
|
|
5
5
|
export { Select } from './Select';
|
|
6
|
-
export { CustomComponent } from './CustomComponent';
|
|
7
6
|
export { DatePicker } from './DatePicker';
|
|
8
7
|
export { ChatBox } from './ChatBox';
|
|
8
|
+
export { PopupDraggable } from './PopupDraggable';
|
|
9
|
+
export { Tabs } from './Tabs';
|
|
10
|
+
export { CaptureScreen } from './CaptureScreen';
|
|
9
11
|
export type { AdvancedPickerProps, TAdvancedPickerOption, TAdvancedRangePickerTimeRange, } from './DatePicker';
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
}
|
|
25
|
+
export declare const ATTACH_CAPTURE_TYPES: {
|
|
26
|
+
key: ATTACH_KEYS;
|
|
27
|
+
label: string;
|
|
28
|
+
icon: string;
|
|
29
|
+
actions: {
|
|
30
|
+
key: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
}[];
|
|
33
|
+
}[];
|
|
34
|
+
export declare const TABS_SHARING_SCREEN: ITabShareScreenProps[];
|
|
35
|
+
export declare const HELP_APP: {
|
|
36
|
+
title: string;
|
|
37
|
+
key: string;
|
|
38
|
+
children: ({
|
|
39
|
+
title: string;
|
|
40
|
+
key: string;
|
|
41
|
+
children: ({
|
|
42
|
+
title: string;
|
|
43
|
+
key: string;
|
|
44
|
+
children?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
title: string;
|
|
47
|
+
key: string;
|
|
48
|
+
children: ({
|
|
49
|
+
title: string;
|
|
50
|
+
key: string;
|
|
51
|
+
children?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
title: string;
|
|
54
|
+
key: string;
|
|
55
|
+
children: {
|
|
56
|
+
title: string;
|
|
57
|
+
key: string;
|
|
58
|
+
}[];
|
|
59
|
+
})[];
|
|
60
|
+
})[];
|
|
61
|
+
} | {
|
|
62
|
+
title: string;
|
|
63
|
+
key: string;
|
|
64
|
+
children?: undefined;
|
|
65
|
+
})[];
|
|
66
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Help } from './Help';
|
|
@@ -0,0 +1,57 @@
|
|
|
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 EditorWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
41
|
+
export declare const WrapperLinkFiles: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
42
|
+
export declare const WrapperLinkItemFiles: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
43
|
+
export declare const WrapperIconEditor: import("styled-components").StyledComponent<"div", any, {
|
|
44
|
+
borderTop?: boolean | undefined;
|
|
45
|
+
}, never>;
|
|
46
|
+
export declare const WrapperLoading: import("styled-components").StyledComponent<"div", any, {
|
|
47
|
+
width?: string | number | undefined;
|
|
48
|
+
height?: string | number | undefined;
|
|
49
|
+
}, never>;
|
|
50
|
+
export declare const WrapperInputFile: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
51
|
+
export declare const WrapperBodyModal: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
52
|
+
export declare const ErrorMessage: import("styled-components").StyledComponent<"div", any, {
|
|
53
|
+
isShow: boolean;
|
|
54
|
+
}, never>;
|
|
55
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
56
|
+
export declare const LabelTitle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
|
|
57
|
+
export declare const WrapperContentHelp: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 {};
|
|
@@ -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;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare const API: {
|
|
2
|
+
lookupInfo: {
|
|
3
|
+
callApi: {
|
|
4
|
+
c_user_id: (params: any, domain: any, token: any, config: any, userId: any) => Promise<{
|
|
5
|
+
code: number;
|
|
6
|
+
codeMessage: any;
|
|
7
|
+
messageAPI: any;
|
|
8
|
+
data: any;
|
|
9
|
+
} | {
|
|
10
|
+
code: number;
|
|
11
|
+
codeMessage: string;
|
|
12
|
+
data: any;
|
|
13
|
+
messageAPI?: undefined;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
getAppInfo: {
|
|
18
|
+
getAll: (params: any, domain: any, config: any, token: any, userId: any) => Promise<{
|
|
19
|
+
code: number;
|
|
20
|
+
message: any;
|
|
21
|
+
data: any;
|
|
22
|
+
codeMessage?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
code: number;
|
|
25
|
+
codeMessage: string;
|
|
26
|
+
message: any;
|
|
27
|
+
data: any;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
tickets: {
|
|
31
|
+
callApi: {
|
|
32
|
+
createTicket: (params: any, domain: any, token: any, config: any, userId: any) => Promise<{
|
|
33
|
+
code: number;
|
|
34
|
+
codeMessage: any;
|
|
35
|
+
messageAPI: any;
|
|
36
|
+
data: any;
|
|
37
|
+
} | {
|
|
38
|
+
code: number;
|
|
39
|
+
codeMessage: string;
|
|
40
|
+
data: any;
|
|
41
|
+
messageAPI?: undefined;
|
|
42
|
+
}>;
|
|
43
|
+
getCustomFields: (params: any, domain: any, token: any, config: any, userId: any, type: any) => Promise<any>;
|
|
44
|
+
getDetailsTicket: (params: any, domain: any, token: any, config: any, userId: any, ticketId: any, type: any) => Promise<any>;
|
|
45
|
+
getListComment: (params: any, domain: any, token: any, config: any, userId: any, type: any, ticketId: any) => Promise<any>;
|
|
46
|
+
updateComment: (params: any, domain: any, token: any, config: any, userId: any, type: any, ticketId: any) => Promise<any>;
|
|
47
|
+
updateFollowers: (params: any, domain: any, token: any, config: any, userId: any, ticketId: any) => Promise<any>;
|
|
48
|
+
upload: (params: any, domain: any, token: any, config: any, userId: any, type: any) => Promise<any>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
accounts: {
|
|
52
|
+
callApi: {
|
|
53
|
+
getAccountManage: (params: any, domain: any, token: any, config: any, userId: any, type: any) => Promise<any>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
permission: {
|
|
57
|
+
callApi: {
|
|
58
|
+
getList: (params: any, domain: any, token: any, config: any, userId: any, type: any, ownerId: any) => Promise<any>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export default API;
|
|
@@ -6,3 +6,44 @@
|
|
|
6
6
|
* @returns {object[]}
|
|
7
7
|
*/
|
|
8
8
|
export declare const reorder: (list: Array<Record<string, unknown> | string | number>, startIndex: number, endIndex: number) => any[];
|
|
9
|
+
export declare const safeParse: (val: any, defaultVal: any) => any;
|
|
10
|
+
export declare function getPortalId(config: any): any;
|
|
11
|
+
export declare const safeParseInt: (val: any, defaultVal: any) => any;
|
|
12
|
+
export declare function isUrlEmbedded(): boolean;
|
|
13
|
+
export declare function getWindowParam(name: any, config: any): any;
|
|
14
|
+
export declare function getSessionStorage(key: any, config: any): any;
|
|
15
|
+
export declare function getMessageByCode(messageCode: any, def?: undefined | string): any;
|
|
16
|
+
export declare function urlHasQueryString(url: any): boolean;
|
|
17
|
+
export declare function isNumeric(num: any): boolean;
|
|
18
|
+
export declare const PORTAL_KEYS: {
|
|
19
|
+
USER_LANGUAGE: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function getUserLocaleLanguage(config: any): any;
|
|
22
|
+
export declare function getAppSession(key: any, config: any): any;
|
|
23
|
+
export declare function getAppParamURL(pathname: any, forceVersionV2: boolean | undefined, config: any): {
|
|
24
|
+
portalId: number;
|
|
25
|
+
accessUserId: number;
|
|
26
|
+
};
|
|
27
|
+
export declare function callApiWithAuth(endpoint: any, method: string | undefined, body: any, domain?: string, config?: {}, token?: string, userId?: string, isTicket?: boolean, type?: string, isAccount?: boolean, isPermission?: boolean, others?: any): Promise<void | import("axios").AxiosResponse<any, any>>;
|
|
28
|
+
export declare function getData(res: any, def: any): {
|
|
29
|
+
code: number;
|
|
30
|
+
message: any;
|
|
31
|
+
data: any;
|
|
32
|
+
codeMessage?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
code: number;
|
|
35
|
+
codeMessage: string;
|
|
36
|
+
message: any;
|
|
37
|
+
data: any;
|
|
38
|
+
};
|
|
39
|
+
export declare function getEntriesV2(res: any, def: any): {
|
|
40
|
+
code: number;
|
|
41
|
+
codeMessage: any;
|
|
42
|
+
messageAPI: any;
|
|
43
|
+
data: any;
|
|
44
|
+
} | {
|
|
45
|
+
code: number;
|
|
46
|
+
codeMessage: string;
|
|
47
|
+
data: any;
|
|
48
|
+
messageAPI?: undefined;
|
|
49
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3-beta.1",
|
|
4
4
|
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -35,19 +35,22 @@
|
|
|
35
35
|
"author": "",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"@tinymce/tinymce-react": "^3.7.0",
|
|
38
39
|
"antd": "^5.3.2",
|
|
40
|
+
"axios": "^1.4.0",
|
|
39
41
|
"dayjs": "^1.11.7",
|
|
40
|
-
"
|
|
42
|
+
"html-to-image": "^1.11.11",
|
|
43
|
+
"html2canvas": "^1.4.1",
|
|
41
44
|
"lodash": "^4.17.21",
|
|
42
|
-
"react-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
45
|
+
"react-draggable": "^4.4.5",
|
|
46
|
+
"react-resizable": "^3.0.5",
|
|
47
|
+
"ts-dedent": "^2.2.0",
|
|
48
|
+
"tui-image-editor": "^3.15.3"
|
|
46
49
|
},
|
|
47
50
|
"devDependencies": {
|
|
48
51
|
"@ant-design/cssinjs": "^1.6.2",
|
|
49
52
|
"@antscorp/eslint-config-antsomi": "1.0.4",
|
|
50
|
-
"@antscorp/icons": "
|
|
53
|
+
"@antscorp/icons": "0.26.49",
|
|
51
54
|
"@babel/core": "^7.21.3",
|
|
52
55
|
"@babel/preset-env": "^7.20.2",
|
|
53
56
|
"@babel/preset-react": "^7.18.6",
|
|
@@ -123,4 +126,4 @@
|
|
|
123
126
|
"react": ">=16.9.0",
|
|
124
127
|
"react-dom": ">=16.9.0"
|
|
125
128
|
}
|
|
126
|
-
}
|
|
129
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
### Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
4
|
-
|
|
5
|
-
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
|
-
|
|
7
|
-
#### [v1.2.2](https://github.com/irisnikita/antsomi-ui/compare/v1.2.1...v1.2.2)
|
|
8
|
-
|
|
9
|
-
- chore(coverage): remove coverage folder [`cf97081`](https://github.com/irisnikita/antsomi-ui/commit/cf970817f0c71fab05161f7661e2c6fe17a33be1)
|
|
10
|
-
- docs(InputNumber.stories.tsx): write component document for InputNumber Component [`6eb027f`](https://github.com/irisnikita/antsomi-ui/commit/6eb027fc126b19f8f1cbd9d79154f01bc660821f)
|
|
11
|
-
- feat(Checkbox): create Checkbox component and write document, unit test [`6f5d5e2`](https://github.com/irisnikita/antsomi-ui/commit/6f5d5e29bc450ee8e4d5bdee4b8cd907a4169a25)
|
|
12
|
-
|
|
13
|
-
#### [v1.2.1](https://github.com/irisnikita/antsomi-ui/compare/v1.2.0...v1.2.1)
|
|
14
|
-
|
|
15
|
-
> 15 April 2023
|
|
16
|
-
|
|
17
|
-
- docs(InputNumber.stories.tsx): add storybook doc for InputNumber component [`c034a27`](https://github.com/irisnikita/antsomi-ui/commit/c034a2747b01fdef33f4e672716391ee1ae8ca3e)
|
|
18
|
-
|
|
19
|
-
#### [v1.2.0](https://github.com/irisnikita/antsomi-ui/compare/v1.2.0-beta.0...v1.2.0)
|
|
20
|
-
|
|
21
|
-
> 14 April 2023
|
|
22
|
-
|
|
23
|
-
#### [v1.2.0-beta.0](https://github.com/irisnikita/antsomi-ui/compare/v1.1.11...v1.2.0-beta.0)
|
|
24
|
-
|
|
25
|
-
> 14 April 2023
|
|
26
|
-
|
|
27
|
-
- chore(jestTest): config jest test for react component [`f84b44d`](https://github.com/irisnikita/antsomi-ui/commit/f84b44d595c8b6d2b023fe473ec31cb71cfedc9d)
|
|
28
|
-
- chore(locales): add translate config for project [`7332eba`](https://github.com/irisnikita/antsomi-ui/commit/7332eba57f8841b57bfdd1dc93653ff30e8a9fca)
|
|
29
|
-
|
|
30
|
-
#### [v1.1.11](https://github.com/irisnikita/antsomi-ui/compare/v1.1.10...v1.1.11)
|
|
31
|
-
|
|
32
|
-
> 9 April 2023
|
|
33
|
-
|
|
34
|
-
- feat(DatePickerAdvanced): add new DatePickerAdvanced component [`2966953`](https://github.com/irisnikita/antsomi-ui/commit/2966953a8b37978784f00759ffc637b74bddd402)
|
|
35
|
-
- style(GlobalStyle): change global style for date picker when hover [`4a31019`](https://github.com/irisnikita/antsomi-ui/commit/4a3101984c322d292824f71e8a85f2a6ec37eb00)
|
|
36
|
-
- feat(DatePicker.tsx): create DatePicker, AdvancePicker, AdvancedRangePicker component [`e62c8fa`](https://github.com/irisnikita/antsomi-ui/commit/e62c8fa7c88a32949f40b988e263d9d76d0d5a93)
|
|
37
|
-
|
|
38
|
-
#### [v1.1.10](https://github.com/irisnikita/antsomi-ui/compare/v1.1.9...v1.1.10)
|
|
39
|
-
|
|
40
|
-
> 31 March 2023
|
|
41
|
-
|
|
42
|
-
- chore: update package version to 1.1.10-beta.6 [`722e80c`](https://github.com/irisnikita/antsomi-ui/commit/722e80cf61fab78aba82c6252a8cb9dc731c8f7c)
|
|
43
|
-
|
|
44
|
-
#### [v1.1.9](https://github.com/irisnikita/antsomi-ui/compare/v1.1.6...v1.1.9)
|
|
45
|
-
|
|
46
|
-
> 29 March 2023
|
|
47
|
-
|
|
48
|
-
#### [v1.1.6](https://github.com/irisnikita/antsomi-ui/compare/v1.1.5...v1.1.6)
|
|
49
|
-
|
|
50
|
-
> 28 March 2023
|
|
51
|
-
|
|
52
|
-
- chore(Divider.stories.tsx): update links text in Vertical story of Divider component [`e3c3a78`](https://github.com/irisnikita/antsomi-ui/commit/e3c3a78ba368e711f981ab4bf5e2b996b0c7c4f9)
|
|
53
|
-
|
|
54
|
-
#### [v1.1.5](https://github.com/irisnikita/antsomi-ui/compare/v1.1.4...v1.1.5)
|
|
55
|
-
|
|
56
|
-
> 28 March 2023
|
|
57
|
-
|
|
58
|
-
- chore(Divider.stories.tsx): update links in Vertical story to have unique text [`ad7d462`](https://github.com/irisnikita/antsomi-ui/commit/ad7d46246d3d5078d8963321875503f9bcc55c62)
|
|
59
|
-
|
|
60
|
-
#### [v1.1.4](https://github.com/irisnikita/antsomi-ui/compare/v1.1.3...v1.1.4)
|
|
61
|
-
|
|
62
|
-
> 28 March 2023
|
|
63
|
-
|
|
64
|
-
- feat(Divider): add text to Vertical story [`d9288eb`](https://github.com/irisnikita/antsomi-ui/commit/d9288ebd1ea4221fcc74f0d7036981321afa1fa1)
|
|
65
|
-
|
|
66
|
-
#### v1.1.3
|
|
67
|
-
|
|
68
|
-
> 28 March 2023
|
|
69
|
-
|
|
70
|
-
- Create CHANGELOG.md [`5210493`](https://github.com/irisnikita/antsomi-ui/commit/5210493564763454f79b6cee9b7f7eb8f7049189)
|
|
71
|
-
- Init antosmi UI [`175bcd4`](https://github.com/irisnikita/antsomi-ui/commit/175bcd4b05dacb70bfa4c463c0ae53591e344673)
|
|
72
|
-
- chore(package): add and config commitlint [`a56d6c8`](https://github.com/irisnikita/antsomi-ui/commit/a56d6c80205dcb7d8a4b30f5e44f2daac832fedf)
|