hanbiro-react16-sdk 1.0.25 → 1.0.27

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 (40) hide show
  1. package/dist/components/ChatAIDraft/ChatInput.d.ts +27 -0
  2. package/dist/components/ChatAIDraft/ChatInput.js +190 -0
  3. package/dist/components/ChatAIDraft/ChatList/AIAvatar.d.ts +3 -0
  4. package/dist/components/ChatAIDraft/ChatList/AIAvatar.js +24 -0
  5. package/dist/components/ChatAIDraft/ChatList/LoadingDots.d.ts +6 -0
  6. package/dist/components/ChatAIDraft/ChatList/LoadingDots.js +24 -0
  7. package/dist/components/ChatAIDraft/ChatList/MessageItem.d.ts +11 -0
  8. package/dist/components/ChatAIDraft/ChatList/MessageItem.js +124 -0
  9. package/dist/components/ChatAIDraft/ChatList/helpers.d.ts +1 -0
  10. package/dist/components/ChatAIDraft/ChatList/helpers.js +35 -0
  11. package/dist/components/ChatAIDraft/ChatList/index.d.ts +11 -0
  12. package/dist/components/ChatAIDraft/ChatList/index.js +36 -0
  13. package/dist/components/ChatAIDraft/{EmptyState.js → CreatePanel/EmptyState.js} +4 -4
  14. package/dist/components/ChatAIDraft/CreatePanel/index.d.ts +30 -0
  15. package/dist/components/ChatAIDraft/CreatePanel/index.js +173 -0
  16. package/dist/components/ChatAIDraft/ReplyPanel/EmptyState.d.ts +10 -0
  17. package/dist/components/ChatAIDraft/ReplyPanel/EmptyState.js +365 -0
  18. package/dist/components/ChatAIDraft/ReplyPanel/MailListSelect.d.ts +26 -0
  19. package/dist/components/ChatAIDraft/ReplyPanel/MailListSelect.js +480 -0
  20. package/dist/components/ChatAIDraft/ReplyPanel/helper.d.ts +13 -0
  21. package/dist/components/ChatAIDraft/ReplyPanel/helper.js +100 -0
  22. package/dist/components/ChatAIDraft/ReplyPanel/index.d.ts +46 -0
  23. package/dist/components/ChatAIDraft/ReplyPanel/index.js +465 -0
  24. package/dist/components/ChatAIDraft/helper.d.ts +1 -0
  25. package/dist/components/ChatAIDraft/helper.js +12 -1
  26. package/dist/components/ChatAIDraft/index.d.ts +4 -32
  27. package/dist/components/ChatAIDraft/index.js +19 -307
  28. package/dist/components/ChatAIDraft/types.d.ts +36 -0
  29. package/dist/hanbiro-react16-sdk.style.css +41 -1
  30. package/dist/hanbiro-react16-sdk.umd.js +5143 -3379
  31. package/dist/index.js +1 -1
  32. package/dist/node_modules/react-feather/dist/icons/arrow-left.js +73 -0
  33. package/dist/node_modules/react-feather/dist/icons/lock.js +75 -0
  34. package/dist/node_modules/react-feather/dist/icons/mail.js +70 -0
  35. package/dist/node_modules/react-feather/dist/icons/paperclip.js +68 -0
  36. package/dist/node_modules/react-feather/dist/icons/plus.js +76 -0
  37. package/package.json +1 -1
  38. package/dist/components/ChatAIDraft/List.d.ts +0 -10
  39. package/dist/components/ChatAIDraft/List.js +0 -188
  40. /package/dist/components/ChatAIDraft/{EmptyState.d.ts → CreatePanel/EmptyState.d.ts} +0 -0
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * hanbiro-react16-sdk v1.0.25
2
+ * hanbiro-react16-sdk v1.0.27
3
3
  * Build Date: 2026-05-21
4
4
  */
5
5
  /* empty css */
@@ -0,0 +1,73 @@
1
+ import React__default, { forwardRef } from "react";
2
+ import PropTypes from "../../../prop-types/index.js";
3
+ function _extends() {
4
+ _extends = Object.assign || function(target) {
5
+ for (var i = 1; i < arguments.length; i++) {
6
+ var source = arguments[i];
7
+ for (var key in source) {
8
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
9
+ target[key] = source[key];
10
+ }
11
+ }
12
+ }
13
+ return target;
14
+ };
15
+ return _extends.apply(this, arguments);
16
+ }
17
+ function _objectWithoutProperties(source, excluded) {
18
+ if (source == null) return {};
19
+ var target = _objectWithoutPropertiesLoose(source, excluded);
20
+ var key, i;
21
+ if (Object.getOwnPropertySymbols) {
22
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
23
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
24
+ key = sourceSymbolKeys[i];
25
+ if (excluded.indexOf(key) >= 0) continue;
26
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
27
+ target[key] = source[key];
28
+ }
29
+ }
30
+ return target;
31
+ }
32
+ function _objectWithoutPropertiesLoose(source, excluded) {
33
+ if (source == null) return {};
34
+ var target = {};
35
+ var sourceKeys = Object.keys(source);
36
+ var key, i;
37
+ for (i = 0; i < sourceKeys.length; i++) {
38
+ key = sourceKeys[i];
39
+ if (excluded.indexOf(key) >= 0) continue;
40
+ target[key] = source[key];
41
+ }
42
+ return target;
43
+ }
44
+ var ArrowLeft = forwardRef(function(_ref, ref) {
45
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties(_ref, ["color", "size"]);
46
+ return /* @__PURE__ */ React__default.createElement("svg", _extends({
47
+ ref,
48
+ xmlns: "http://www.w3.org/2000/svg",
49
+ width: size,
50
+ height: size,
51
+ viewBox: "0 0 24 24",
52
+ fill: "none",
53
+ stroke: color,
54
+ strokeWidth: "2",
55
+ strokeLinecap: "round",
56
+ strokeLinejoin: "round"
57
+ }, rest), /* @__PURE__ */ React__default.createElement("line", {
58
+ x1: "19",
59
+ y1: "12",
60
+ x2: "5",
61
+ y2: "12"
62
+ }), /* @__PURE__ */ React__default.createElement("polyline", {
63
+ points: "12 19 5 12 12 5"
64
+ }));
65
+ });
66
+ ArrowLeft.propTypes = {
67
+ color: PropTypes.string,
68
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
69
+ };
70
+ ArrowLeft.displayName = "ArrowLeft";
71
+ export {
72
+ ArrowLeft as default
73
+ };
@@ -0,0 +1,75 @@
1
+ import React__default, { forwardRef } from "react";
2
+ import PropTypes from "../../../prop-types/index.js";
3
+ function _extends() {
4
+ _extends = Object.assign || function(target) {
5
+ for (var i = 1; i < arguments.length; i++) {
6
+ var source = arguments[i];
7
+ for (var key in source) {
8
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
9
+ target[key] = source[key];
10
+ }
11
+ }
12
+ }
13
+ return target;
14
+ };
15
+ return _extends.apply(this, arguments);
16
+ }
17
+ function _objectWithoutProperties(source, excluded) {
18
+ if (source == null) return {};
19
+ var target = _objectWithoutPropertiesLoose(source, excluded);
20
+ var key, i;
21
+ if (Object.getOwnPropertySymbols) {
22
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
23
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
24
+ key = sourceSymbolKeys[i];
25
+ if (excluded.indexOf(key) >= 0) continue;
26
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
27
+ target[key] = source[key];
28
+ }
29
+ }
30
+ return target;
31
+ }
32
+ function _objectWithoutPropertiesLoose(source, excluded) {
33
+ if (source == null) return {};
34
+ var target = {};
35
+ var sourceKeys = Object.keys(source);
36
+ var key, i;
37
+ for (i = 0; i < sourceKeys.length; i++) {
38
+ key = sourceKeys[i];
39
+ if (excluded.indexOf(key) >= 0) continue;
40
+ target[key] = source[key];
41
+ }
42
+ return target;
43
+ }
44
+ var Lock = forwardRef(function(_ref, ref) {
45
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties(_ref, ["color", "size"]);
46
+ return /* @__PURE__ */ React__default.createElement("svg", _extends({
47
+ ref,
48
+ xmlns: "http://www.w3.org/2000/svg",
49
+ width: size,
50
+ height: size,
51
+ viewBox: "0 0 24 24",
52
+ fill: "none",
53
+ stroke: color,
54
+ strokeWidth: "2",
55
+ strokeLinecap: "round",
56
+ strokeLinejoin: "round"
57
+ }, rest), /* @__PURE__ */ React__default.createElement("rect", {
58
+ x: "3",
59
+ y: "11",
60
+ width: "18",
61
+ height: "11",
62
+ rx: "2",
63
+ ry: "2"
64
+ }), /* @__PURE__ */ React__default.createElement("path", {
65
+ d: "M7 11V7a5 5 0 0 1 10 0v4"
66
+ }));
67
+ });
68
+ Lock.propTypes = {
69
+ color: PropTypes.string,
70
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
71
+ };
72
+ Lock.displayName = "Lock";
73
+ export {
74
+ Lock as default
75
+ };
@@ -0,0 +1,70 @@
1
+ import React__default, { forwardRef } from "react";
2
+ import PropTypes from "../../../prop-types/index.js";
3
+ function _extends() {
4
+ _extends = Object.assign || function(target) {
5
+ for (var i = 1; i < arguments.length; i++) {
6
+ var source = arguments[i];
7
+ for (var key in source) {
8
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
9
+ target[key] = source[key];
10
+ }
11
+ }
12
+ }
13
+ return target;
14
+ };
15
+ return _extends.apply(this, arguments);
16
+ }
17
+ function _objectWithoutProperties(source, excluded) {
18
+ if (source == null) return {};
19
+ var target = _objectWithoutPropertiesLoose(source, excluded);
20
+ var key, i;
21
+ if (Object.getOwnPropertySymbols) {
22
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
23
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
24
+ key = sourceSymbolKeys[i];
25
+ if (excluded.indexOf(key) >= 0) continue;
26
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
27
+ target[key] = source[key];
28
+ }
29
+ }
30
+ return target;
31
+ }
32
+ function _objectWithoutPropertiesLoose(source, excluded) {
33
+ if (source == null) return {};
34
+ var target = {};
35
+ var sourceKeys = Object.keys(source);
36
+ var key, i;
37
+ for (i = 0; i < sourceKeys.length; i++) {
38
+ key = sourceKeys[i];
39
+ if (excluded.indexOf(key) >= 0) continue;
40
+ target[key] = source[key];
41
+ }
42
+ return target;
43
+ }
44
+ var Mail = forwardRef(function(_ref, ref) {
45
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties(_ref, ["color", "size"]);
46
+ return /* @__PURE__ */ React__default.createElement("svg", _extends({
47
+ ref,
48
+ xmlns: "http://www.w3.org/2000/svg",
49
+ width: size,
50
+ height: size,
51
+ viewBox: "0 0 24 24",
52
+ fill: "none",
53
+ stroke: color,
54
+ strokeWidth: "2",
55
+ strokeLinecap: "round",
56
+ strokeLinejoin: "round"
57
+ }, rest), /* @__PURE__ */ React__default.createElement("path", {
58
+ d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"
59
+ }), /* @__PURE__ */ React__default.createElement("polyline", {
60
+ points: "22,6 12,13 2,6"
61
+ }));
62
+ });
63
+ Mail.propTypes = {
64
+ color: PropTypes.string,
65
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
66
+ };
67
+ Mail.displayName = "Mail";
68
+ export {
69
+ Mail as default
70
+ };
@@ -0,0 +1,68 @@
1
+ import React__default, { forwardRef } from "react";
2
+ import PropTypes from "../../../prop-types/index.js";
3
+ function _extends() {
4
+ _extends = Object.assign || function(target) {
5
+ for (var i = 1; i < arguments.length; i++) {
6
+ var source = arguments[i];
7
+ for (var key in source) {
8
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
9
+ target[key] = source[key];
10
+ }
11
+ }
12
+ }
13
+ return target;
14
+ };
15
+ return _extends.apply(this, arguments);
16
+ }
17
+ function _objectWithoutProperties(source, excluded) {
18
+ if (source == null) return {};
19
+ var target = _objectWithoutPropertiesLoose(source, excluded);
20
+ var key, i;
21
+ if (Object.getOwnPropertySymbols) {
22
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
23
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
24
+ key = sourceSymbolKeys[i];
25
+ if (excluded.indexOf(key) >= 0) continue;
26
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
27
+ target[key] = source[key];
28
+ }
29
+ }
30
+ return target;
31
+ }
32
+ function _objectWithoutPropertiesLoose(source, excluded) {
33
+ if (source == null) return {};
34
+ var target = {};
35
+ var sourceKeys = Object.keys(source);
36
+ var key, i;
37
+ for (i = 0; i < sourceKeys.length; i++) {
38
+ key = sourceKeys[i];
39
+ if (excluded.indexOf(key) >= 0) continue;
40
+ target[key] = source[key];
41
+ }
42
+ return target;
43
+ }
44
+ var Paperclip = forwardRef(function(_ref, ref) {
45
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties(_ref, ["color", "size"]);
46
+ return /* @__PURE__ */ React__default.createElement("svg", _extends({
47
+ ref,
48
+ xmlns: "http://www.w3.org/2000/svg",
49
+ width: size,
50
+ height: size,
51
+ viewBox: "0 0 24 24",
52
+ fill: "none",
53
+ stroke: color,
54
+ strokeWidth: "2",
55
+ strokeLinecap: "round",
56
+ strokeLinejoin: "round"
57
+ }, rest), /* @__PURE__ */ React__default.createElement("path", {
58
+ d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"
59
+ }));
60
+ });
61
+ Paperclip.propTypes = {
62
+ color: PropTypes.string,
63
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
64
+ };
65
+ Paperclip.displayName = "Paperclip";
66
+ export {
67
+ Paperclip as default
68
+ };
@@ -0,0 +1,76 @@
1
+ import React__default, { forwardRef } from "react";
2
+ import PropTypes from "../../../prop-types/index.js";
3
+ function _extends() {
4
+ _extends = Object.assign || function(target) {
5
+ for (var i = 1; i < arguments.length; i++) {
6
+ var source = arguments[i];
7
+ for (var key in source) {
8
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
9
+ target[key] = source[key];
10
+ }
11
+ }
12
+ }
13
+ return target;
14
+ };
15
+ return _extends.apply(this, arguments);
16
+ }
17
+ function _objectWithoutProperties(source, excluded) {
18
+ if (source == null) return {};
19
+ var target = _objectWithoutPropertiesLoose(source, excluded);
20
+ var key, i;
21
+ if (Object.getOwnPropertySymbols) {
22
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
23
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
24
+ key = sourceSymbolKeys[i];
25
+ if (excluded.indexOf(key) >= 0) continue;
26
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
27
+ target[key] = source[key];
28
+ }
29
+ }
30
+ return target;
31
+ }
32
+ function _objectWithoutPropertiesLoose(source, excluded) {
33
+ if (source == null) return {};
34
+ var target = {};
35
+ var sourceKeys = Object.keys(source);
36
+ var key, i;
37
+ for (i = 0; i < sourceKeys.length; i++) {
38
+ key = sourceKeys[i];
39
+ if (excluded.indexOf(key) >= 0) continue;
40
+ target[key] = source[key];
41
+ }
42
+ return target;
43
+ }
44
+ var Plus = forwardRef(function(_ref, ref) {
45
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties(_ref, ["color", "size"]);
46
+ return /* @__PURE__ */ React__default.createElement("svg", _extends({
47
+ ref,
48
+ xmlns: "http://www.w3.org/2000/svg",
49
+ width: size,
50
+ height: size,
51
+ viewBox: "0 0 24 24",
52
+ fill: "none",
53
+ stroke: color,
54
+ strokeWidth: "2",
55
+ strokeLinecap: "round",
56
+ strokeLinejoin: "round"
57
+ }, rest), /* @__PURE__ */ React__default.createElement("line", {
58
+ x1: "12",
59
+ y1: "5",
60
+ x2: "12",
61
+ y2: "19"
62
+ }), /* @__PURE__ */ React__default.createElement("line", {
63
+ x1: "5",
64
+ y1: "12",
65
+ x2: "19",
66
+ y2: "12"
67
+ }));
68
+ });
69
+ Plus.propTypes = {
70
+ color: PropTypes.string,
71
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
72
+ };
73
+ Plus.displayName = "Plus";
74
+ export {
75
+ Plus as default
76
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hanbiro-react16-sdk",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "React 16.2.0 compatible UI components for Hanbiro",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/hanbiro-react16-sdk.umd.js",
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- interface ListProps {
3
- items: any[];
4
- onApply: (params: {
5
- html: string;
6
- }) => void;
7
- getEditorContent?: () => string;
8
- }
9
- declare const List: React.FunctionComponent<ListProps>;
10
- export default List;
@@ -1,188 +0,0 @@
1
- var __async = (__this, __arguments, generator) => {
2
- return new Promise((resolve, reject) => {
3
- var fulfilled = (value) => {
4
- try {
5
- step(generator.next(value));
6
- } catch (e) {
7
- reject(e);
8
- }
9
- };
10
- var rejected = (value) => {
11
- try {
12
- step(generator.throw(value));
13
- } catch (e) {
14
- reject(e);
15
- }
16
- };
17
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
18
- step((generator = generator.apply(__this, __arguments)).next());
19
- });
20
- };
21
- import * as React from "react";
22
- import { marked } from "../../node_modules/marked/lib/marked.esm.js";
23
- import TypingText from "./TypingText.js";
24
- import Tooltip from "../Tooltip/index.js";
25
- import Copy from "../../node_modules/react-feather/dist/icons/copy.js";
26
- const AIAvatar = () => /* @__PURE__ */ React.createElement(
27
- "div",
28
- {
29
- style: {
30
- width: 28,
31
- height: 28,
32
- borderRadius: "50%",
33
- background: "var(--primary-main)",
34
- color: "var(--primary-contrasttext)",
35
- display: "flex",
36
- alignItems: "center",
37
- justifyContent: "center",
38
- fontSize: 11,
39
- fontWeight: 700,
40
- letterSpacing: 0.5,
41
- flexShrink: 0
42
- }
43
- },
44
- "AI"
45
- );
46
- const LoadingDots = ({
47
- label = "Thinking"
48
- }) => /* @__PURE__ */ React.createElement(
49
- "div",
50
- {
51
- style: {
52
- display: "inline-flex",
53
- alignItems: "center",
54
- gap: 6,
55
- background: "var(--background-softGrey)",
56
- borderRadius: 8,
57
- borderTopLeftRadius: 0,
58
- padding: "8px 12px",
59
- fontSize: 13,
60
- color: "var(--text-secondary)"
61
- }
62
- },
63
- /* @__PURE__ */ React.createElement("span", null, label),
64
- /* @__PURE__ */ React.createElement("span", { className: "chat-ai-dots", "aria-hidden": "true" }, /* @__PURE__ */ React.createElement("span", null), /* @__PURE__ */ React.createElement("span", null), /* @__PURE__ */ React.createElement("span", null))
65
- );
66
- const List = ({
67
- items,
68
- onApply,
69
- getEditorContent
70
- }) => {
71
- const handleApply = (body) => __async(void 0, null, function* () {
72
- const titleRegex = /제목:[^\n]*/g;
73
- const matches = titleRegex.exec(body) || [];
74
- (matches[0] || "").replace("제목: ", "").replace("\n", "");
75
- const content = body.replace(titleRegex, "").replace("본문: ", "");
76
- let html = yield marked.parse(content);
77
- const signatureRegex = /<!--HanbiroSignatureStart-->([\s\S]*?)<!--HanbiroSignatureEnd-->/g;
78
- const editorValue = getEditorContent ? getEditorContent() : "";
79
- const signatureMatch = signatureRegex.exec(editorValue) || [];
80
- if (signatureMatch[0]) {
81
- html = html + "<br>" + signatureMatch[0];
82
- }
83
- onApply({ html });
84
- });
85
- return /* @__PURE__ */ React.createElement(
86
- "div",
87
- {
88
- style: {
89
- flex: 1,
90
- minHeight: 0,
91
- position: "relative",
92
- overflowY: "auto",
93
- paddingRight: 16,
94
- marginRight: -16,
95
- marginBottom: 8,
96
- display: "flex",
97
- flexDirection: "column"
98
- }
99
- },
100
- items && items.map((_item) => /* @__PURE__ */ React.createElement(
101
- "div",
102
- {
103
- key: _item.id,
104
- style: {
105
- display: "flex",
106
- flexDirection: "column",
107
- marginBottom: 16
108
- }
109
- },
110
- /* @__PURE__ */ React.createElement(
111
- "div",
112
- {
113
- style: {
114
- width: "100%",
115
- display: "flex",
116
- alignItems: "flex-end",
117
- flexDirection: "column",
118
- position: "relative",
119
- marginTop: 8
120
- }
121
- },
122
- /* @__PURE__ */ React.createElement(
123
- TypingText,
124
- {
125
- data: { question: _item.question },
126
- style: {
127
- borderRadius: 8,
128
- borderTopRightRadius: 0,
129
- padding: "8px 12px",
130
- background: "var(--primary-main)",
131
- color: "var(--primary-contrasttext)"
132
- }
133
- }
134
- )
135
- ),
136
- /* @__PURE__ */ React.createElement(
137
- "div",
138
- {
139
- style: {
140
- width: "100%",
141
- display: "flex",
142
- alignItems: "flex-start",
143
- flexDirection: "row",
144
- position: "relative",
145
- marginTop: 8,
146
- gap: 8
147
- }
148
- },
149
- /* @__PURE__ */ React.createElement(AIAvatar, null),
150
- /* @__PURE__ */ React.createElement(
151
- "div",
152
- {
153
- style: {
154
- flex: 1,
155
- minWidth: 0,
156
- display: "flex",
157
- flexDirection: "column"
158
- }
159
- },
160
- (_item == null ? void 0 : _item.isLoading) ? /* @__PURE__ */ React.createElement(LoadingDots, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
161
- TypingText,
162
- {
163
- data: { subject: _item.subject, body: _item.body },
164
- style: {
165
- background: "var(--background-softGrey)",
166
- borderRadius: 8,
167
- borderTopLeftRadius: 0,
168
- padding: "8px 12px"
169
- }
170
- }
171
- ), /* @__PURE__ */ React.createElement("div", { style: { marginTop: 4 } }, /* @__PURE__ */ React.createElement(Tooltip, { title: "Apply content" }, /* @__PURE__ */ React.createElement(
172
- "button",
173
- {
174
- type: "button",
175
- onClick: () => handleApply(_item.body),
176
- color: "primary",
177
- className: "icon-button small"
178
- },
179
- /* @__PURE__ */ React.createElement(Copy, { size: 16 })
180
- ))))
181
- )
182
- )
183
- ))
184
- );
185
- };
186
- export {
187
- List as default
188
- };