@antscorp/antsomi-ui 1.2.4 → 1.2.6
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 +17 -5
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +17 -0
- package/dist/main.css +1 -1
- package/dist/types/components/molecules/CaptureScreen/constants.d.ts +0 -1
- package/dist/types/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +1 -1
- package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +0 -1
- package/dist/types/components/molecules/ChatBox/MessageItem.d.ts +5 -0
- package/dist/types/components/molecules/ChatBox/types.d.ts +3 -0
- package/package.json +5 -1
|
@@ -11,6 +11,13 @@
|
|
|
11
11
|
* @version 1.2.6
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
/*!
|
|
15
|
+
* Determine if an object is a Buffer
|
|
16
|
+
*
|
|
17
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
18
|
+
* @license MIT
|
|
19
|
+
*/
|
|
20
|
+
|
|
14
21
|
/*!
|
|
15
22
|
* TOAST UI ImageEditor
|
|
16
23
|
* @version 1.0.1
|
|
@@ -32,6 +39,16 @@
|
|
|
32
39
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
33
40
|
*/
|
|
34
41
|
|
|
42
|
+
/**
|
|
43
|
+
* @license React
|
|
44
|
+
* react-is.production.min.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/
|
|
51
|
+
|
|
35
52
|
/** @license React v16.13.1
|
|
36
53
|
* react-is.production.min.js
|
|
37
54
|
*
|
package/dist/main.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#1e1e1e;color:#dcdcdc}.hljs-keyword,.hljs-literal,.hljs-name,.hljs-symbol{color:#569cd6}.hljs-link{color:#569cd6;text-decoration:underline}.hljs-built_in,.hljs-type{color:#4ec9b0}.hljs-class,.hljs-number{color:#b8d7a3}.hljs-meta .hljs-string,.hljs-string{color:#d69d85}.hljs-regexp,.hljs-template-tag{color:#9a5334}.hljs-formula,.hljs-function,.hljs-params,.hljs-subst,.hljs-title{color:#dcdcdc}.hljs-comment,.hljs-quote{color:#57a64a;font-style:italic}.hljs-doctag{color:#608b4e}.hljs-meta,.hljs-meta .hljs-keyword,.hljs-tag{color:#9b9b9b}.hljs-template-variable,.hljs-variable{color:#bd63c5}.hljs-attr,.hljs-attribute{color:#9cdcfe}.hljs-section{color:gold}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-bullet,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-selector-tag{color:#d7ba7d}.hljs-addition{background-color:#144212;display:inline-block;width:100%}.hljs-deletion{background-color:#600;display:inline-block;width:100%}
|
|
2
2
|
.react-resizable {
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
@@ -3,7 +3,6 @@ import { BoxDimensionProps } from './components/CommentBox/types';
|
|
|
3
3
|
import { DrawItemProps } from './types';
|
|
4
4
|
export declare const OFFSET_CENTER = 20;
|
|
5
5
|
export declare const SIZE_ADJUST = 1;
|
|
6
|
-
export declare const IMAGE_TRANSPARENT_BASE64 = "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
|
|
7
6
|
export declare enum IGNORE_DRAW_ID_LIST {
|
|
8
7
|
ICON_CLOSE = "antsomi-package-close-draw-icon",
|
|
9
8
|
BORDER_OVERLAY = "antsomi-package-border-overlay",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { ImageEditorInstanceProps } from '../types';
|
|
3
|
-
export declare const useImageEditor: (
|
|
3
|
+
export declare const useImageEditor: (imageEditorRef: RefObject<HTMLDivElement>, options?: {
|
|
4
4
|
preventCreateInstance: boolean;
|
|
5
5
|
}) => ImageEditorInstanceProps;
|
|
@@ -12,11 +12,14 @@ export interface IChatBoxMessageProps extends Message {
|
|
|
12
12
|
role: Role;
|
|
13
13
|
content: string;
|
|
14
14
|
isTyping?: boolean;
|
|
15
|
+
isPlaceholder?: boolean;
|
|
15
16
|
scrollBody: Function;
|
|
16
17
|
renderDone: Function;
|
|
17
18
|
doAnimation: boolean;
|
|
18
19
|
answeringContent: string;
|
|
19
20
|
avatar?: string;
|
|
21
|
+
idx?: number;
|
|
22
|
+
renderType: 'text' | 'markdown';
|
|
20
23
|
}
|
|
21
24
|
export interface IChatBoxProps {
|
|
22
25
|
onClose?: Function;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -40,11 +40,15 @@
|
|
|
40
40
|
"antd": "^5.3.2",
|
|
41
41
|
"axios": "^1.4.0",
|
|
42
42
|
"dayjs": "^1.11.7",
|
|
43
|
+
"highlight.js": "^11.8.0",
|
|
43
44
|
"html-to-image": "^1.11.11",
|
|
44
45
|
"html2canvas": "^1.4.1",
|
|
45
46
|
"lodash": "^4.17.21",
|
|
46
47
|
"react-draggable": "^4.4.5",
|
|
48
|
+
"react-markdown": "^8.0.7",
|
|
47
49
|
"react-resizable": "^3.0.5",
|
|
50
|
+
"rehype-highlight": "^6.0.0",
|
|
51
|
+
"remark-gfm": "^3.0.1",
|
|
48
52
|
"ts-dedent": "^2.2.0",
|
|
49
53
|
"tui-image-editor": "^3.15.3"
|
|
50
54
|
},
|