@antscorp/antsomi-ui 1.3.3-beta.37 → 1.3.3-beta.39

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.
Files changed (73) hide show
  1. package/dist/0173b5993573afa04880.woff +0 -0
  2. package/dist/0dfb9214dfd945cd7290.png +1 -0
  3. package/dist/2883cad25a2b4e87ce5f.eot +0 -0
  4. package/dist/4f54a37971347e3d7122.png +1 -0
  5. package/dist/574b7bee0563a9fe9a29.png +1 -0
  6. package/dist/6b586356e837581204dc.svg +1 -0
  7. package/dist/72eec5c1c786b45a667f.ttf +0 -0
  8. package/dist/bc6bf11c6f5e6743aa4c.png +1 -0
  9. package/dist/dbc405edd6e0806efbc9.svg +1 -0
  10. package/dist/e32f09119052a55cce3c.png +1 -0
  11. package/dist/e3851b9384a984c6fdb5.png +1 -0
  12. package/dist/index.js +2 -0
  13. package/dist/index.js.LICENSE.txt +69 -0
  14. package/dist/main.css +69 -0
  15. package/dist/public/icons/2d496b55d85a9545d7311c073af442bb.png +0 -0
  16. package/dist/public/icons/2fbb4e0927d18e3f8e5c6511ab88d5b3.png +0 -0
  17. package/dist/public/icons/725a52bd91a3ce534b10833df510e5fa.png +0 -0
  18. package/dist/public/icons/7d037e0b378e87a82804443636cd0e13.svg +346 -0
  19. package/dist/public/icons/90553767e0a05b9585a54797cfd9ce51.png +0 -0
  20. package/dist/public/icons/bb64e23a1ff390a416d765ee556096ab.svg +87 -0
  21. package/dist/public/icons/d327b24e9c5d8f486f08d253aab58ce6.png +0 -0
  22. package/dist/public/icons/f1cf266d0a0a53ce07f2dbb859869b7a.png +0 -0
  23. package/dist/public/icons/iphone-top-bar.png +0 -0
  24. package/dist/public/icons/iphone.png +0 -0
  25. package/dist/public/icons/placeholder-image.png +0 -0
  26. package/dist/public/icons/stars_slider.png +0 -0
  27. package/dist/public/icons/transparent.svg +1 -0
  28. package/es/components/atoms/InputDynamic/InputDynamic.d.ts +1 -2
  29. package/es/components/atoms/InputDynamic/PopupShortLink.js +7 -20
  30. package/es/components/atoms/InputDynamic/styled.d.ts +1 -1
  31. package/es/components/atoms/Spin/Spin.d.ts +1 -2
  32. package/es/components/atoms/Spin/styled.d.ts +1 -1
  33. package/es/components/icons/ArrowGrowIcon.d.ts +1 -2
  34. package/es/components/icons/AudioRecordIcon.d.ts +1 -2
  35. package/es/components/icons/BugIcon.d.ts +1 -2
  36. package/es/components/icons/CameraIcon.d.ts +1 -2
  37. package/es/components/icons/CaptureIcon.d.ts +1 -2
  38. package/es/components/icons/CheckSlimIcon.d.ts +1 -2
  39. package/es/components/icons/CloseIcon.d.ts +1 -2
  40. package/es/components/icons/CommentIcon.d.ts +1 -2
  41. package/es/components/icons/EventIcon.d.ts +1 -2
  42. package/es/components/icons/FreeDrawIcon.d.ts +1 -2
  43. package/es/components/icons/GPTIcon.d.ts +1 -2
  44. package/es/components/icons/GPTIconV2.d.ts +1 -2
  45. package/es/components/icons/GPTIconV3.d.ts +1 -2
  46. package/es/components/icons/HighlightIcon.d.ts +1 -2
  47. package/es/components/icons/IdeaIcon.d.ts +1 -2
  48. package/es/components/icons/InvisibleIcon.d.ts +1 -2
  49. package/es/components/icons/MuteIcon.d.ts +1 -2
  50. package/es/components/icons/OpenUrlIcon.d.ts +1 -2
  51. package/es/components/icons/PauseIcon.d.ts +1 -2
  52. package/es/components/icons/PlaneIcon.d.ts +1 -2
  53. package/es/components/icons/RequestIcon.d.ts +1 -2
  54. package/es/components/icons/StopRecordIcon.d.ts +1 -2
  55. package/es/components/icons/UserIcon.d.ts +1 -2
  56. package/es/components/icons/VerticalDotsIcon.d.ts +1 -2
  57. package/es/components/icons/WarningIcon.d.ts +1 -2
  58. package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +1 -2
  59. package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +1 -2
  60. package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +1 -2
  61. package/es/components/molecules/Modal/Modal.d.ts +2 -2
  62. package/es/components/molecules/Modal/styled.d.ts +1 -1
  63. package/es/components/molecules/ModalV2/styled.d.ts +1 -1
  64. package/es/components/molecules/RichMenuMobileView/RichMenuMobileView.d.ts +2 -0
  65. package/es/components/molecules/RichMenuMobileView/RichMenuMobileView.js +2 -2
  66. package/es/components/molecules/Select/Select.d.ts +2 -4
  67. package/es/components/molecules/Select/Test.d.ts +1 -2
  68. package/es/components/molecules/TreeSelect/TreeSelect.d.ts +2 -4
  69. package/es/components/molecules/UploadImage/MediaIcon.d.ts +1 -2
  70. package/es/components/organism/Help/styled.d.ts +2 -6
  71. package/es/constants/storybook.d.ts +1 -2
  72. package/es/test.d.ts +1 -2
  73. package/package.json +2 -4
@@ -0,0 +1,87 @@
1
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="100" height="300" viewBox="0 0 100 300" preserveAspectRatio="none">
2
+ <style type="text/css">
3
+ .st0{fill:#B2B2B2;}
4
+ .st1{fill:#9B9B9B;}
5
+ </style>
6
+ <path d="M53.7,36.8v3.8h3.8l11.1-11.1l-3.8-3.8L53.7,36.8z M71.4,26.5c0.4-0.4,0.4-1,0-1.4l0,0L69,22.8c-0.4-0.4-1-0.4-1.4,0l0,0
7
+ l-1.8,1.8l3.8,3.8L71.4,26.5z"/>
8
+ <path d="M5.9,31.1H9L7.5,27L5.9,31.1z M13.5,22.5h-12C0.7,22.5,0,23.2,0,24v12c0,0.8,0.7,1.5,1.5,1.5h12c0.8,0,1.5-0.7,1.5-1.5V24
9
+ C15,23.2,14.3,22.5,13.5,22.5z M10.5,34.9l-0.9-2.3H5.4l-0.8,2.3H3l3.8-9.8h1.4l3.8,9.8H10.5z"/>
10
+ <path d="M95.6,8.9l-9-8.9l-1.4,1.4l2.4,2.4L82.5,9c-0.6,0.6-0.6,1.5,0,2.1l0,0l5.5,5.5c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.2,1.1-0.4
11
+ l5.5-5.5C96.2,10.5,96.2,9.5,95.6,8.9L95.6,8.9z M84.2,10L89,5.2l4.8,4.8H84.2z M98,11.5c0,0-2,2.2-2,3.5c0,1.1,0.9,2,2,2s2-0.9,2-2
12
+ C100,13.7,98,11.5,98,11.5z"/>
13
+ <path d="M95.2,26.7L91,22.5l-4.2,4.2C85.6,27.9,85,29.5,85,31s0.6,3.1,1.8,4.3c2.3,2.3,6.1,2.4,8.5,0l0,0C96.4,34,97,32.5,97,31
14
+ S96.4,27.9,95.2,26.7L95.2,26.7z M86.5,31.2c0-1.5,0.5-2.5,1.3-3.3l3.2-3.2l3.2,3.3c0.9,0.9,1.3,1.8,1.3,3.3L86.5,31.2L86.5,31.2z"
15
+ />
16
+ <g transform="translate(138 2337)">
17
+ </g>
18
+ <path d="M4,8h4.1L6,2.5L4,8z M10,13l-1.1-3H3.2l-1.1,3H0L5.1,0H7l5.1,13H10z"/>
19
+ <path d="M27.6,9.8h13.5V8.3H27.6V9.8z M27.6,12h13.5v-0.8H27.6V12z M27.6,6.8h13.5V4.5H27.6V6.8z M27.6,0v3h13.5V0H27.6z"/>
20
+ <path d="M67.9,12h1.5v1.5h-1.5V12z M67.9,10.5h1.5V9h-1.5V10.5z M55.9,7.5h1.5V6h-1.5V7.5z M55.9,10.5h1.5V9h-1.5V10.5z M55.9,4.5
21
+ h1.5V3h-1.5V4.5z M55.9,1.5h1.5V0h-1.5V1.5z M58.9,1.5h1.5V0h-1.5V1.5z M64.9,13.5h1.5V12h-1.5V13.5z M61.9,13.5h1.5V12h-1.5V13.5z
22
+ M64.9,13.5h1.5V12h-1.5V13.5z M58.9,13.5h1.5V12h-1.5V13.5z M55.9,13.5h1.5V12h-1.5V13.5z M69.4,3.8c0-2.1-1.7-3.8-3.8-3.8h-3.8
23
+ v1.5h3.8c1.2,0,2.3,1,2.3,2.3v3.8h1.5V3.8z"/>
24
+ <path d="M27.6,31.5h3.8V30h-3.8V31.5z M32.5,31.5h3.8V30h-3.8V31.5z M37.4,31.5h3.8V30h-3.8V31.5z M27.6,34.5h1.5V33h-1.5V34.5z
25
+ M30.6,34.5h1.5V33h-1.5C30.6,33,30.6,34.5,30.6,34.5z M33.6,34.5h1.5V33h-1.5V34.5z M36.6,34.5h1.5V33h-1.5V34.5z M39.6,34.5h1.5
26
+ V33h-1.5V34.5z M27.6,28.5h6V27h-6C27.6,27,27.6,28.5,27.6,28.5z M35.1,28.5h6V27h-6V28.5z M27.6,22.5v3h13.5v-3H27.6z"/>
27
+ <g>
28
+ <path class="st0" d="M0,46.1v5v1v2v1v2v1v2v1V64h18v-2.9v-1v-2v-1v-2v-1v-2v-1v-5H0z M17.1,63.1H0.9v-2H17v2H17.1z M17.1,60.1H0.9
29
+ v-2H17v2H17.1z M17.1,57.1H0.9v-2H17v2H17.1z M17.1,54.1H0.9v-2H17v2H17.1z M0.9,51.1V47H17v4.1H0.9z"/>
30
+ <g>
31
+ <path d="M0,46.1h18v3H0V46.1z"/>
32
+ </g>
33
+ </g>
34
+ <g>
35
+ <path class="st0" d="M54.7,46.1v3v2v1v2v1v2v1v2v1V64h18v-2.9v-1v-2v-1v-2v-1v-2v-1v-2v-3H54.7z M71.7,63.1H55.6v-2h16.1V63.1z
36
+ M71.7,60.1H55.6v-2h16.1V60.1z M71.7,57.1H55.6v-2h16.1V57.1z M71.7,54.1H55.6v-2h16.1V54.1z M71.7,51.1H55.6v-2h16.1V51.1z"/>
37
+ <g>
38
+ <rect x="55.6" y="61.1" width="16.1" height="2"/>
39
+ <rect x="55.6" y="55.1" width="16.1" height="2"/>
40
+ <rect x="55.6" y="49.1" width="16.1" height="2"/>
41
+ </g>
42
+ </g>
43
+ <g>
44
+ <path class="st0" d="M82,46.1v3v2v1v2v1v2v1v2v1V64h18v-2.9v-1v-2v-1v-2v-1v-2v-1v-2v-3H82z M99.1,63.1H82.9v-2H99L99.1,63.1
45
+ L99.1,63.1z M99.1,60.1H82.9v-2H99L99.1,60.1L99.1,60.1z M99.1,57.1H82.9v-2H99L99.1,57.1L99.1,57.1z M99.1,54.1H82.9v-2H99
46
+ L99.1,54.1L99.1,54.1z M99.1,51.1H82.9v-2H99L99.1,51.1L99.1,51.1z"/>
47
+ <g>
48
+ <rect x="82.9" y="58.1" width="16.1" height="2"/>
49
+ <rect x="82.9" y="52.1" width="16.1" height="2"/>
50
+ </g>
51
+ </g>
52
+ <g>
53
+ <path class="st0" d="M27.3,46.1v3v2v1v2v1v2v1v2v1V64h18v-2.9v-1v-2v-1v-2v-1v-2v-1v-2v-3H27.3z M44.4,63.1H28.3v-2h16.1V63.1z
54
+ M44.4,60.1H28.3v-2h16.1V60.1z M44.4,57.1H28.3v-2h16.1V57.1z M44.4,54.1H28.3v-2h16.1V54.1z M44.4,51.1H28.3v-2h16.1V51.1z"/>
55
+ <g>
56
+ <rect x="28.3" y="51.1" width="16.1" height="1"/>
57
+ <rect x="28.3" y="54.1" width="16.1" height="1"/>
58
+ <rect x="28.3" y="57.1" width="16.1" height="1"/>
59
+ <rect x="28.3" y="60.1" width="16.1" height="1"/>
60
+ </g>
61
+ </g>
62
+ <g>
63
+ <polygon class="st0" points="30.3,86.1 30.3,73.1 27.3,73.1 27.3,86.1 27.3,89.1 30.3,89.1 43.3,89.1 43.3,86.1 "/>
64
+ <path d="M30.3,74.1v1h2v2h-2v1h2v2h-2v1h2v2h-2v1h2v2h1v-2h2v2h1v-2h2v2h1v-2h2v2h1v-12H30.3z M35.3,83.1h-2v-2h2V83.1z M35.3,80.1
65
+ h-2v-2h2V80.1z M35.3,77.1h-2v-2h2V77.1z M38.3,83.1h-2v-2h2V83.1z M38.3,80.1h-2v-2h2V80.1z M38.3,77.1h-2v-2h2V77.1z M41.3,83.1
66
+ h-2v-2h2V83.1z M41.3,80.1h-2v-2h2V80.1z M41.3,77.1h-2v-2h2V77.1z"/>
67
+ </g>
68
+ <g>
69
+ <polygon points="3,86.1 3,73.1 0,73.1 0,86.1 0,89.1 3,89.1 16,89.1 16,86.1 "/>
70
+ <path class="st0" d="M3,74.1v1h2v2H3v1h2v2H3v1h2v2H3v1h2v2h1v-2h2v2h1v-2h2v2h1v-2h2v2h1v-12H3z M8,83.1H6v-2h2V83.1z M8,80.1H6
71
+ v-2h2V80.1z M8,77.1H6v-2h2V77.1z M11,83.1H9v-2h2V83.1z M11,80.1H9v-2h2V80.1z M11,77.1H9v-2h2V77.1z M14,83.1h-2v-2h2V83.1z
72
+ M14,80.1h-2v-2h2V80.1z M14,77.1h-2v-2h2V77.1z"/>
73
+ </g>
74
+ <path d="M52.6,77.1h2v-2h-2V77.1z M52.6,81.1h2v-2h-2V81.1z M52.6,73.1h2v-2C53.5,71.1,52.6,72,52.6,73.1z M72.6,71.1v2h2
75
+ C74.6,72,73.8,71.1,72.6,71.1z M60.6,89.1h2v-2h-2V89.1z M52.6,85.1h2v-2h-2V85.1z M54.6,89.1v-2h-2C52.6,88.2,53.5,89.1,54.6,89.1z
76
+ M52.6,75.1v3h22v-3H52.6z M56.6,71.1v18h6v-18H56.6z M72.6,85.1h2v-2h-2V85.1z M60.6,73.1h2v-2h-2V73.1z M56.6,89.1h2v-2h-2V89.1z
77
+ M56.6,73.1h2v-2h-2V73.1z M72.6,89.1c1.1,0,2-0.9,2-2h-2V89.1z M72.6,81.1h2v-2h-2V81.1z M72.6,77.1h2v-2h-2V77.1z M64.6,89.1h2v-2
78
+ h-2V89.1z M64.6,73.1h2v-2h-2V73.1z M68.6,89.1h2v-2h-2V89.1z M68.6,73.1h2v-2h-2V73.1z"/>
79
+ <g>
80
+ <path d="M83,80.1h7v9h-7V80.1z M92,80.1h7v9h-7V80.1z"/>
81
+ <path class="st1" d="M82,83.1h18v3H82V83.1z"/>
82
+ </g>
83
+ <g>
84
+ <path class="st1" d="M1,98.3h7v9H1V98.3z M10,98.3h7v9h-7V98.3z"/>
85
+ <path d="M0,101.3h8v3H0V101.3z M10,101.3h8v3h-8V101.3z"/>
86
+ </g>
87
+ </svg>
Binary file
@@ -0,0 +1 @@
1
+ <svg height="10" version="1.1" viewBox="0 0 512 512" width="10" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="currentColor" fill-opacity=".125" d="M0 256h256v256H0z"></path><path fill="currentColor" fill-opacity=".25" d="M256 256h256v256H256z"></path><path fill="currentColor" fill-opacity=".125" d="M256 0h256v256H256z"></path><path fill="currentColor" fill-opacity=".25" d="M0 0h256v256H0z"></path></svg>
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { DisableShortLinkTypeProps } from './PopupShortLink';
3
2
  export type KeyTagType = 'shortlink' | 'shortlink_static';
4
3
  export type SelectedPropertiesProps = {
@@ -17,7 +16,7 @@ export type InputDynamicProps = {
17
16
  addMessageToQueue?: Function;
18
17
  };
19
18
  export declare const InputDynamic: {
20
- (props: InputDynamicProps): React.JSX.Element;
19
+ (props: InputDynamicProps): JSX.Element;
21
20
  defaultProps: {
22
21
  value: string;
23
22
  isViewMode: boolean;
@@ -1,7 +1,6 @@
1
1
  // Libraries
2
- import React, { useEffect } from 'react';
2
+ import React, { useEffect, useState } from 'react';
3
3
  import { Col, Row } from 'antd';
4
- import { useImmer } from 'use-immer';
5
4
  // Molecules
6
5
  import { Modal } from '../../molecules';
7
6
  // Components
@@ -22,7 +21,7 @@ const OPTIONS = [
22
21
  ];
23
22
  export const PopupShortLink = props => {
24
23
  const { open, onClose, onOk, disabledOpts, initSelectedProperties, callback } = props;
25
- const [state, setState] = useImmer({
24
+ const [state, setState] = useState({
26
25
  link: '',
27
26
  type: 'individual',
28
27
  error: '',
@@ -32,33 +31,23 @@ export const PopupShortLink = props => {
32
31
  if (initSelectedProperties && initSelectedProperties.keyTag) {
33
32
  type = initSelectedProperties.keyTag === 'shortlink' ? 'individual' : 'general';
34
33
  }
35
- setState(draft => {
36
- draft.link = initSelectedProperties.link;
37
- draft.type = type;
38
- });
34
+ setState(prev => (Object.assign(Object.assign({}, prev), { link: initSelectedProperties.link, type: type })));
39
35
  }, [initSelectedProperties, setState]);
40
36
  const handleClose = () => {
41
- setState(draft => {
42
- draft.link = '';
43
- draft.error = '';
44
- });
37
+ setState(prev => (Object.assign(Object.assign({}, prev), { link: '', error: '' })));
45
38
  if (onClose)
46
39
  onClose();
47
40
  };
48
41
  const handleValidate = ({ urlString = state.link, afterValidate }) => {
49
42
  const isValid = validateURL(urlString);
50
- setState(draft => {
51
- draft.error = isValid ? '' : 'Invalid URL';
52
- });
43
+ setState(prev => (Object.assign(Object.assign({}, prev), { error: isValid ? '' : 'Invalid URL' })));
53
44
  if (typeof afterValidate === 'function')
54
45
  afterValidate(isValid);
55
46
  };
56
47
  const handleOnChange = (value) => {
57
48
  if (state.error)
58
49
  handleValidate({ urlString: value });
59
- setState(draft => {
60
- draft.link = value;
61
- });
50
+ setState(prev => (Object.assign(Object.assign({}, prev), { link: value })));
62
51
  };
63
52
  const handleOnOK = () => {
64
53
  handleValidate({
@@ -74,9 +63,7 @@ export const PopupShortLink = props => {
74
63
  });
75
64
  };
76
65
  const onChangeType = (event) => {
77
- setState(draft => {
78
- draft.type = event.target.value;
79
- });
66
+ setState(prev => (Object.assign(Object.assign({}, prev), { type: event.target.value })));
80
67
  };
81
68
  return (React.createElement(Modal, { open: open, onCancel: handleClose, title: React.createElement("div", { style: { color: 'rgba(0, 0, 0, 0.87)', fontWeight: 'normal', fontSize: '16px' } }, "Add Short Link"), okText: "OK", cancelText: "Cancel", closable: false, onOk: handleOnOK, okButtonProps: {
82
69
  disabled: !validateURL(state.link),
@@ -4,7 +4,7 @@ export declare const SpanIcon: import("styled-components").StyledComponent<"span
4
4
  isDisabled?: boolean | undefined;
5
5
  }, never>;
6
6
  export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const InputShortLink: import("styled-components").StyledComponent<import("react").ComponentType<any> | keyof import("react").JSX.IntrinsicElements, any, import("../Input/Input").InputProps, any>;
7
+ export declare const InputShortLink: import("styled-components").StyledComponent<import("react").ComponentType<any> | keyof JSX.IntrinsicElements, any, import("../Input/Input").InputProps, any>;
8
8
  export declare const TooltipHover: import("styled-components").StyledComponent<"div", any, {
9
9
  top: number;
10
10
  left: number;
@@ -1,10 +1,9 @@
1
- import React from 'react';
2
1
  import { SpinProps as AntdSpinProps } from 'antd';
3
2
  export interface TSpinProps extends AntdSpinProps {
4
3
  indicatorSize?: number;
5
4
  children?: any;
6
5
  }
7
6
  export declare const Spin: {
8
- (props: TSpinProps): React.JSX.Element;
7
+ (props: TSpinProps): JSX.Element;
9
8
  defaultProps: {};
10
9
  };
@@ -1 +1 @@
1
- export declare const StyledSpin: import("styled-components").StyledComponent<import("antd/es/spin").SpinFCType, any, {}, never>;
1
+ export declare const StyledSpin: import("styled-components").StyledComponent<import("antd/es/spin").SpinType, any, {}, never>;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const ArrowGrowIcon: (props: any) => React.JSX.Element;
1
+ export declare const ArrowGrowIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const AudioRecordIcon: (props: any) => React.JSX.Element;
1
+ export declare const AudioRecordIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const BugIcon: (props: any) => React.JSX.Element;
1
+ export declare const BugIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const CameraIcon: (props: any) => React.JSX.Element;
1
+ export declare const CameraIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const CaptureIcon: (props: any) => React.JSX.Element;
1
+ export declare const CaptureIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const CheckSlimIcon: (props: any) => React.JSX.Element;
1
+ export declare const CheckSlimIcon: (props: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare const CloseIcon: ({ ...props }: {
3
2
  [x: string]: any;
4
- }) => React.JSX.Element;
3
+ }) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const CommentIcon: (props: any) => React.JSX.Element;
1
+ export declare const CommentIcon: (props: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare const EventIcon: ({ ...props }: {
3
2
  [x: string]: any;
4
- }) => React.JSX.Element;
3
+ }) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const FreeDrawIcon: (props: any) => React.JSX.Element;
1
+ export declare const FreeDrawIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const GPTIcon: () => React.JSX.Element;
1
+ export declare const GPTIcon: () => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const GPTIconV2: () => React.JSX.Element;
1
+ export declare const GPTIconV2: () => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const GPTIconV3: (props: any) => React.JSX.Element;
1
+ export declare const GPTIconV3: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const HighlightIcon: (props: any) => React.JSX.Element;
1
+ export declare const HighlightIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const IdeaIcon: (props: any) => React.JSX.Element;
1
+ export declare const IdeaIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const InvisibleIcon: (props: any) => React.JSX.Element;
1
+ export declare const InvisibleIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const MuteIcon: (props: any) => React.JSX.Element;
1
+ export declare const MuteIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const OpenUrlIcon: (props: any) => React.JSX.Element;
1
+ export declare const OpenUrlIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const PauseIcon: (props: any) => React.JSX.Element;
1
+ export declare const PauseIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const PlaneIcon: (props: any) => React.JSX.Element;
1
+ export declare const PlaneIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const RequestIcon: (props: any) => React.JSX.Element;
1
+ export declare const RequestIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const StopRecordIcon: (props: any) => React.JSX.Element;
1
+ export declare const StopRecordIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const UserIcon: (props: any) => React.JSX.Element;
1
+ export declare const UserIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const VerticalDotsIcon: (props: any) => React.JSX.Element;
1
+ export declare const VerticalDotsIcon: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const WarningIcon: (props: any) => React.JSX.Element;
1
+ export declare const WarningIcon: (props: any) => JSX.Element;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import { IImageEditorProps } from './types';
3
2
  declare const CaptureScreen: {
4
- (props: IImageEditorProps): React.JSX.Element;
3
+ (props: IImageEditorProps): JSX.Element;
5
4
  defaultProps: {
6
5
  isOpen: boolean;
7
6
  src: string;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import { CommentBoxProps } from './types';
3
2
  declare const CommentBox: {
4
- (props: CommentBoxProps): React.JSX.Element;
3
+ (props: CommentBoxProps): JSX.Element;
5
4
  defaultProps: {
6
5
  info: {
7
6
  id: string;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { CursorProps } from './types';
3
- declare const Cursor: (props: CursorProps) => React.JSX.Element | null;
2
+ declare const Cursor: (props: CursorProps) => JSX.Element | null;
4
3
  export { Cursor };
@@ -14,10 +14,10 @@ export declare const Modal: string & import("styled-components").StyledComponent
14
14
  useModal: typeof import("antd/es/modal/useModal").default;
15
15
  destroyAll: () => void;
16
16
  config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
17
- _InternalPanelDoNotUseOrYouWillBeFired: (props: any) => React.JSX.Element;
17
+ _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
18
18
  }, any, import("./styled").CustomModalProps, never> & import("hoist-non-react-statics").NonReactStatics<React.FC<AntdModalProps> & import("antd/es/modal/confirm").ModalStaticFunctions & {
19
19
  useModal: typeof import("antd/es/modal/useModal").default;
20
20
  destroyAll: () => void;
21
21
  config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
22
- _InternalPanelDoNotUseOrYouWillBeFired: (props: any) => React.JSX.Element;
22
+ _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
23
23
  }, {}> & React.FC<ModalProps>;
@@ -10,6 +10,6 @@ export declare const StyledModal: import("styled-components").StyledComponent<im
10
10
  useModal: typeof import("antd/es/modal/useModal").default;
11
11
  destroyAll: () => void;
12
12
  config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
13
- _InternalPanelDoNotUseOrYouWillBeFired: (props: any) => import("react").JSX.Element;
13
+ _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
14
14
  }, any, CustomModalProps, never>;
15
15
  export declare const WrapperSpin: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -3,5 +3,5 @@ export declare const StyledModal: import("styled-components").StyledComponent<im
3
3
  useModal: typeof import("antd/es/modal/useModal").default;
4
4
  destroyAll: () => void;
5
5
  config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
6
- _InternalPanelDoNotUseOrYouWillBeFired: (props: any) => import("react").JSX.Element;
6
+ _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
7
7
  }, any, {}, never>;
@@ -3,6 +3,8 @@ import { RichMenu } from '@antscorp/antsomi-ui/es/types';
3
3
  interface RichMenuMobileViewProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  richMenu: RichMenu;
5
5
  isPreview?: boolean;
6
+ onChangeRichMenu?: (richMenu: RichMenu, source?: 'user' | 'system') => void;
7
+ onClickCell?: (cellIndex: number) => void;
6
8
  }
7
9
  export declare const RichMenuMobileView: React.FC<RichMenuMobileViewProps>;
8
10
  export {};
@@ -20,7 +20,7 @@ import { RichMenuBlock } from '../RichMenuBlock';
20
20
  // Styles
21
21
  import { MobileContent, RichMenuWrapper, TopBar } from './styled';
22
22
  export const RichMenuMobileView = props => {
23
- const { richMenu, className, isPreview } = props, restOfProps = __rest(props, ["richMenu", "className", "isPreview"]);
23
+ const { richMenu, className, isPreview, onChangeRichMenu, onClickCell } = props, restOfProps = __rest(props, ["richMenu", "className", "isPreview", "onChangeRichMenu", "onClickCell"]);
24
24
  // State
25
25
  const [state, setState] = useState({
26
26
  showRichMenu: true,
@@ -32,6 +32,6 @@ export const RichMenuMobileView = props => {
32
32
  return (React.createElement(MobileFrame, Object.assign({ className: `ants-mx-auto ${className}` }, restOfProps),
33
33
  isPreview && React.createElement(TopBar, { src: IphoneTopBar, width: "100%", height: "auto" }),
34
34
  React.createElement(MobileContent, null,
35
- React.createElement(RichMenuWrapper, { "$showRichMenu": showRichMenu && !showTypingChat, "$isPreview": !!isPreview }, richMenu && React.createElement(RichMenuBlock, { richMenu: richMenu, isPreview: true })),
35
+ React.createElement(RichMenuWrapper, { "$showRichMenu": showRichMenu && !showTypingChat, "$isPreview": !!isPreview }, richMenu && (React.createElement(RichMenuBlock, { richMenu: richMenu, isPreview: isPreview, onChange: onChangeRichMenu, onClickCell: onClickCell }))),
36
36
  React.createElement(RichMenuChatBar, { label: richMenu === null || richMenu === void 0 ? void 0 : richMenu.chatBar.label, showRichMenu: showRichMenu, showTypingChat: showTypingChat, onToggleRichMenu: showRichMenu => setState(prevState => (Object.assign(Object.assign({}, prevState), { showRichMenu: !!showRichMenu }))), onToggleTypingChat: showTypingChat => setState(prevState => (Object.assign(Object.assign({}, prevState), { showTypingChat: !!showTypingChat }))) }))));
37
37
  };
@@ -7,13 +7,11 @@ export interface SelectProps extends AntdSelectProps {
7
7
  }
8
8
  declare const Select: (<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: AntdSelectProps<ValueType, OptionType> & {
9
9
  children?: React.ReactNode;
10
- } & {
11
- ref?: React.Ref<import("antd").RefSelectProps> | undefined;
12
- }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
10
+ } & React.RefAttributes<import("antd").RefSelectProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
13
11
  displayName?: string | undefined;
14
12
  SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
15
13
  Option: import("rc-select/lib/Option").OptionFC;
16
14
  OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
17
- _InternalPanelDoNotUseOrYouWillBeFired: (props: any) => React.JSX.Element;
15
+ _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) => React.JSX.Element;
18
16
  } & React.FC<SelectProps>;
19
17
  export { Select };
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const SelectTest: () => React.JSX.Element;
1
+ declare const SelectTest: () => JSX.Element;
3
2
  export default SelectTest;
@@ -1,13 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  export declare const TreeSelect: (<ValueType = any, OptionType extends import("rc-tree-select/lib/TreeSelect").BaseOptionType | import("rc-tree-select/lib/TreeSelect").DefaultOptionType = import("rc-tree-select/lib/TreeSelect").DefaultOptionType>(props: import("antd").TreeSelectProps<ValueType, OptionType> & {
3
3
  children?: import("react").ReactNode;
4
- } & {
5
- ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
6
- }) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
4
+ } & import("react").RefAttributes<import("antd").RefSelectProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
7
5
  displayName?: string | undefined;
8
6
  TreeNode: import("react").FC<import("rc-tree-select/lib/TreeNode").TreeNodeProps>;
9
7
  SHOW_ALL: "SHOW_ALL";
10
8
  SHOW_PARENT: "SHOW_PARENT";
11
9
  SHOW_CHILD: "SHOW_CHILD";
12
- _InternalPanelDoNotUseOrYouWillBeFired: (props: any) => import("react").JSX.Element;
10
+ _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) => React.JSX.Element;
13
11
  };
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const MediaIcon: (_props: any) => React.JSX.Element;
1
+ declare const MediaIcon: (_props: any) => JSX.Element;
3
2
  export default MediaIcon;
@@ -58,15 +58,11 @@ export declare const TitleSearch: import("styled-components").StyledComponent<"s
58
58
  export declare const WrapperSearch: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>, any, {}, never>;
59
59
  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> & {
60
60
  children?: import("react").ReactNode;
61
- } & {
62
- ref?: import("react").Ref<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>> | undefined;
63
- }) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
61
+ } & import("react").RefAttributes<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
64
62
  TreeNode: import("react").FC<import("rc-tree").TreeNodeProps<import("antd").TreeDataNode>>;
65
63
  DirectoryTree: (<T_1 extends import("rc-tree").BasicDataNode | import("antd").TreeDataNode = import("antd").TreeDataNode>(props: import("antd/es/tree").DirectoryTreeProps<T_1> & {
66
64
  children?: import("react").ReactNode;
67
- } & {
68
- ref?: import("react").Ref<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>> | undefined;
69
- }) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
65
+ } & import("react").RefAttributes<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
70
66
  displayName?: string | undefined;
71
67
  };
72
68
  }, any, {}, never>;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export declare const TABLE_API_COLUMNS: ({
3
2
  title: string;
4
3
  dataIndex: string;
@@ -8,5 +7,5 @@ export declare const TABLE_API_COLUMNS: ({
8
7
  title: string;
9
8
  dataIndex: string;
10
9
  key: string;
11
- render: (text: any) => React.JSX.Element;
10
+ render: (text: any) => JSX.Element;
12
11
  })[];
package/es/test.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import '@antscorp/icons/main.css';
3
2
  export declare const BACKGROUND_COLOR_STYLE: {
4
3
  SOLID: {
@@ -11,4 +10,4 @@ export declare const BACKGROUND_COLOR_STYLE: {
11
10
  };
12
11
  };
13
12
  export declare const customColors: string[];
14
- export declare const App: () => React.JSX.Element;
13
+ export declare const App: () => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.3-beta.37",
3
+ "version": "1.3.3-beta.39",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",
@@ -77,7 +77,6 @@
77
77
  "html2canvas": "^1.4.1",
78
78
  "i18next": "21.6.16",
79
79
  "i18next-browser-languagedetector": "6.1.2",
80
- "immer": "^10.0.3",
81
80
  "lodash": "^4.17.21",
82
81
  "moment": "2.29.2",
83
82
  "qs": "6.10.3",
@@ -88,8 +87,7 @@
88
87
  "rehype-highlight": "^6.0.0",
89
88
  "remark-gfm": "^3.0.1",
90
89
  "ts-dedent": "^2.2.0",
91
- "tui-image-editor": "^3.15.3",
92
- "use-immer": "^0.9.0"
90
+ "tui-image-editor": "^3.15.3"
93
91
  },
94
92
  "devDependencies": {
95
93
  "@ant-design/cssinjs": "^1.6.2",