@antscorp/antsomi-ui 1.2.3-beta.15 → 1.2.3-beta.17

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/main.css CHANGED
@@ -1,4 +1,3 @@
1
- .chat{display:flex;flex-direction:column;height:100%;padding:2rem;border-radius:1rem;border:1px solid #ddd;box-shadow:0 4px 6px rgba(49,54,68,.05),0 5px 20px rgba(49,54,68,.08)}.logs{flex:1;overflow-y:auto;margin-bottom:1rem}.log{gap:.4rem;display:flex;flex-direction:column}@keyframes blink{to{visibility:hidden}}​.streaming>div{white-space:pre-wrap}.streaming>div>:not(ol):not(ul):not(pre):last-child:after,.streaming>div>ol:last-child li:last-child:after,.streaming>div>pre:last-child code:after,.streaming>div>ul:last-child li:last-child:after{-webkit-animation:blink 1s steps(5, start) infinite;animation:blink 1s steps(5, start) infinite;content:"▋";margin-left:.25rem;vertical-align:baseline}
2
1
  .react-resizable {
3
2
  position: relative;
4
3
  }
@@ -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: (src: string, imageEditorRef: RefObject<HTMLDivElement>, options?: {
3
+ export declare const useImageEditor: (imageEditorRef: RefObject<HTMLDivElement>, options?: {
4
4
  preventCreateInstance: boolean;
5
5
  }) => ImageEditorInstanceProps;
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
2
  import { IChatBoxProps } from './types';
3
- import './style.scss';
4
3
  export declare const ChatBox: React.FC<IChatBoxProps>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IChatBoxMessageProps } from './types';
3
+ declare const _default: React.NamedExoticComponent<IChatBoxMessageProps>;
4
+ export default _default;
@@ -12,11 +12,13 @@ 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;
20
22
  }
21
23
  export interface IChatBoxProps {
22
24
  onClose?: Function;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.2.3-beta.15",
3
+ "version": "1.2.3-beta.17",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "main": "dist/index.js",
6
6
  "files": [