@antscorp/antsomi-ui 1.2.9 → 1.3.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/CHANGELOG.md +8 -4
- package/dist/index.js +1 -1
- package/dist/types/components/icons/RequestIcon.d.ts +1 -0
- package/dist/types/components/icons/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.d.ts +4 -0
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.stories.d.ts +8 -0
- package/dist/types/components/molecules/CaptureScreen/constants.d.ts +8 -1
- package/dist/types/components/molecules/CaptureScreen/types.d.ts +6 -0
- package/dist/types/components/molecules/PopupDraggable/styled.d.ts +1 -0
- package/dist/types/components/molecules/PopupDraggable/types.d.ts +4 -1
- package/dist/types/components/organism/Help/constants.d.ts +2 -0
- package/dist/types/components/organism/Help/styled.d.ts +3 -0
- package/dist/types/components/organism/Help/types.d.ts +2 -0
- package/dist/types/components/organism/Help/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/package.json +0 -43
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RequestIcon: (props: any) => JSX.Element;
|
|
@@ -6,6 +6,10 @@ declare const _default: ComponentMeta<{
|
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
src: string;
|
|
8
8
|
alt: string;
|
|
9
|
+
defaultPositions: {
|
|
10
|
+
capture: null;
|
|
11
|
+
record: null;
|
|
12
|
+
};
|
|
9
13
|
callback: () => void;
|
|
10
14
|
};
|
|
11
15
|
}>;
|
|
@@ -16,6 +20,10 @@ export declare const Default: ComponentStory<{
|
|
|
16
20
|
isOpen: boolean;
|
|
17
21
|
src: string;
|
|
18
22
|
alt: string;
|
|
23
|
+
defaultPositions: {
|
|
24
|
+
capture: null;
|
|
25
|
+
record: null;
|
|
26
|
+
};
|
|
19
27
|
callback: () => void;
|
|
20
28
|
};
|
|
21
29
|
}>;
|
|
@@ -10,6 +10,12 @@ export declare enum IGNORE_DRAW_ID_LIST {
|
|
|
10
10
|
CLASS_PREVENT_HOVER = "antsomi-package-ignore-hovering-draw"
|
|
11
11
|
}
|
|
12
12
|
export declare const COMMENT_BOX_DIMENSION_FIXED: BoxDimensionProps;
|
|
13
|
+
export declare const styleDrawItem: {
|
|
14
|
+
MEDIUM: number;
|
|
15
|
+
SMALL: number;
|
|
16
|
+
LARGE: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const styleRecordItem: CSSProperties;
|
|
13
19
|
export declare const styleContainer: CSSProperties;
|
|
14
20
|
export declare enum DRAW_KEYS {
|
|
15
21
|
NULL = "null",
|
|
@@ -18,7 +24,8 @@ export declare enum DRAW_KEYS {
|
|
|
18
24
|
PEN = "pen",
|
|
19
25
|
ARROW = "arrow",
|
|
20
26
|
HIDE = "hide",
|
|
21
|
-
DONE = "done"
|
|
27
|
+
DONE = "done",
|
|
28
|
+
CANCEL = "cancel"
|
|
22
29
|
}
|
|
23
30
|
export declare enum RECORD_KEYS {
|
|
24
31
|
DRAGGABLE = "draggable",
|
|
@@ -2,15 +2,21 @@ import ImageEditor from 'tui-image-editor';
|
|
|
2
2
|
import { DRAW_KEYS } from './constants';
|
|
3
3
|
import { ATTACH_KEYS } from 'src/components/organism/Help/constants';
|
|
4
4
|
import { StreamTrackProps } from 'src/components/organism/Help/types';
|
|
5
|
+
import { ControlPosition } from 'react-draggable';
|
|
5
6
|
interface RecorderConfigProps {
|
|
6
7
|
isMute: boolean;
|
|
7
8
|
recorder?: MediaRecorder;
|
|
8
9
|
streamTracks?: StreamTrackProps;
|
|
9
10
|
}
|
|
11
|
+
export interface ControlPositionProps {
|
|
12
|
+
[ATTACH_KEYS.CAPTURE]: ControlPosition;
|
|
13
|
+
[ATTACH_KEYS.RECORD]: ControlPosition;
|
|
14
|
+
}
|
|
10
15
|
export interface IImageEditorProps {
|
|
11
16
|
src?: string;
|
|
12
17
|
alt?: string;
|
|
13
18
|
recorderConfigs: RecorderConfigProps;
|
|
19
|
+
defaultPositions?: ControlPositionProps;
|
|
14
20
|
captureType: CaptureTypeProps;
|
|
15
21
|
callback: Function;
|
|
16
22
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const PopupContainer: import("styled-components").StyledComponent<"div", any, {
|
|
2
2
|
isHiddenResizing?: boolean | undefined;
|
|
3
|
+
isShowResizeHover?: boolean | undefined;
|
|
3
4
|
}, never>;
|
|
4
5
|
export declare const WrapperIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ControlPosition } from 'react-draggable';
|
|
2
3
|
import { CSSProperties } from 'styled-components';
|
|
3
4
|
export interface IPopupDraggable {
|
|
4
5
|
id?: string;
|
|
5
6
|
name?: string;
|
|
6
|
-
bounds
|
|
7
|
+
bounds?: string;
|
|
8
|
+
defaultPosition?: ControlPosition;
|
|
7
9
|
isHiddenClose?: boolean;
|
|
8
10
|
isHiddenResizing?: boolean;
|
|
11
|
+
isShowResizeHover?: boolean;
|
|
9
12
|
callback: Function;
|
|
10
13
|
children: ReactNode;
|
|
11
14
|
styleContainer?: CSSProperties;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ITabShareScreenProps } from './types';
|
|
2
|
+
import { ControlPositionProps } from 'src/components/molecules/CaptureScreen/types';
|
|
2
3
|
export declare const TICKET_CUSTOM_MESSAGE_KEY = "TICKET_CUSTOM_MESSAGE_KEY";
|
|
3
4
|
export declare const PORTALS_ANTSOMI_PACKAGE_UI_KEY = "PORTALS_ANTSOMI_PACKAGE_UI_KEY";
|
|
4
5
|
export declare const PORTALS_ANTSOMI_PACKAGE_UI_KEY_POPUP = "PORTALS_ANTSOMI_PACKAGE_UI_KEY_POPUP";
|
|
@@ -34,6 +35,7 @@ export declare const ATTACH_CAPTURE_TYPES: {
|
|
|
34
35
|
icon: string;
|
|
35
36
|
}[];
|
|
36
37
|
}[];
|
|
38
|
+
export declare const DEFAULT_POSITIONS: ControlPositionProps;
|
|
37
39
|
export declare const TABS_SHARING_SCREEN: ITabShareScreenProps[];
|
|
38
40
|
export declare const HELP_APP: ({
|
|
39
41
|
title: string;
|
package/package.json
CHANGED
package/dist/package.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.2.3-beta.19",
|
|
4
|
-
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "types",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "vite",
|
|
9
|
-
"build": "webpack --config webpack.build.js",
|
|
10
|
-
"eslint": "eslint --ext js,ts,tsx",
|
|
11
|
-
"lint": "yarn run eslint src",
|
|
12
|
-
"lint:fix": "yarn run eslint src --fix",
|
|
13
|
-
"storybook": "start-storybook -p 6006 -s public",
|
|
14
|
-
"build-storybook": "build-storybook",
|
|
15
|
-
"serve-storybook": "serve storybook-static",
|
|
16
|
-
"version": "auto-changelog -p && git add CHANGELOG.md",
|
|
17
|
-
"test": "jest",
|
|
18
|
-
"test:changed": "jest --onlyChanged",
|
|
19
|
-
"test:watch": "jest --watch",
|
|
20
|
-
"test:coverage": "jest --coverage"
|
|
21
|
-
},
|
|
22
|
-
"husky": {
|
|
23
|
-
"hooks": {
|
|
24
|
-
"pre-commit": "lint-staged"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"lint-staged": {
|
|
28
|
-
"*.{ts,tsx,js,jsx}": [
|
|
29
|
-
"yarn lint:fix"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"author": "",
|
|
33
|
-
"license": "MIT",
|
|
34
|
-
"dependencies": {
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
},
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"@antscorp/icons": ">=0.26.0",
|
|
40
|
-
"react": ">=16.0.0",
|
|
41
|
-
"react-dom": ">=16.0.0"
|
|
42
|
-
}
|
|
43
|
-
}
|