wi-chat 0.6.1 → 0.7.0

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 (107) hide show
  1. package/dist/core/index.cjs +1 -1
  2. package/dist/core/index.d.ts +12 -0
  3. package/dist/core/index.js +737 -322
  4. package/dist/core/useAnswerActions.d.ts +61 -0
  5. package/dist/core/useChat.d.ts +90 -15
  6. package/dist/core/useChatAuth.d.ts +96 -0
  7. package/dist/core/useChatRooms.d.ts +66 -0
  8. package/dist/core/useKeepAlive.d.ts +41 -0
  9. package/dist/core/useLlm.d.ts +73 -0
  10. package/dist/core/useRunningGroups.d.ts +58 -0
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.d.ts +4 -2
  13. package/dist/index.js +119 -108
  14. package/dist/mobile-ui/chat/ChatContainer.vue.d.ts +8 -8
  15. package/dist/mobile-ui/chat/ChatMessagesView.vue.d.ts +6 -6
  16. package/dist/mobile-ui/index.cjs +1 -1
  17. package/dist/mobile-ui/index.js +104 -104
  18. package/dist/mobile-ui/inputbox/Inputbox.vue.d.ts +6 -6
  19. package/dist/page-context/index.js +2 -4
  20. package/dist/parser/answerCom/actionExecute/actionProtocol.d.ts +1 -7
  21. package/dist/parser/answerCom/actionExecute/clarification.d.ts +15 -3
  22. package/dist/parser/answerCom/actionExecute/constants.d.ts +10 -0
  23. package/dist/parser/answerCom/actionExecute/parseCollectClarifications.d.ts +3 -2
  24. package/dist/parser/answerCom/actionExecute/parseHostAction.d.ts +3 -2
  25. package/dist/parser/answerCom/actionExecute/types.d.ts +3 -3
  26. package/dist/parser/answerCom/generic/parseGeneric.d.ts +52 -0
  27. package/dist/parser/answerCom/generic/types.d.ts +75 -0
  28. package/dist/parser/answerCom/outputFile/parseOutputFile.d.ts +7 -6
  29. package/dist/parser/answerCom/outputFile/types.d.ts +15 -5
  30. package/dist/parser/answerCom/presentFiles/parsePresentFiles.d.ts +58 -0
  31. package/dist/parser/answerCom/presentFiles/types.d.ts +27 -0
  32. package/dist/parser/answerMeta.d.ts +71 -0
  33. package/dist/parser/deepThinking/parseDeepThinking.d.ts +8 -0
  34. package/dist/parser/history/history.d.ts +9 -0
  35. package/dist/parser/history/index.d.ts +1 -1
  36. package/dist/parser/index.cjs +6 -2
  37. package/dist/parser/index.d.ts +13 -4
  38. package/dist/parser/index.js +640 -457
  39. package/dist/parser/message.d.ts +9 -0
  40. package/dist/parser/registry.d.ts +1 -1
  41. package/dist/parser/runTime.d.ts +29 -0
  42. package/dist/renderers/TextAnswer-BgKGvG_o.cjs +2 -0
  43. package/dist/renderers/TextAnswer-PQwV3K7v.js +5 -0
  44. package/dist/renderers/aiAnswer/AiAnswerBubble.vue.d.ts +4 -4
  45. package/dist/renderers/answerCard/AnswerCard.vue.d.ts +65 -0
  46. package/dist/renderers/answerCard/AnswerToolbar.vue.d.ts +42 -0
  47. package/dist/renderers/answerConfig.d.ts +33 -0
  48. package/dist/renderers/clarification/ClarificationCard.vue.d.ts +3 -3
  49. package/dist/renderers/deepThinking/DeepThinkingSteps.vue.d.ts +4 -4
  50. package/dist/renderers/deviceLastValue/DeviceLastValue.vue.d.ts +37 -0
  51. package/dist/renderers/hostAction/HostActionStatus.vue.d.ts +3 -3
  52. package/dist/renderers/iframePage/IframePage.vue.d.ts +3 -3
  53. package/dist/renderers/index.cjs +6 -1
  54. package/dist/renderers/index.d.ts +14 -0
  55. package/dist/renderers/index.js +1504 -607
  56. package/dist/renderers/knowledgeStream/KnowledgeStreamResult.vue.d.ts +3 -3
  57. package/dist/renderers/media/MediaAnswer.vue.d.ts +19 -0
  58. package/dist/renderers/outputFile/OutputFile.vue.d.ts +3 -3
  59. package/dist/renderers/outputFile/OutputFileLink.vue.d.ts +19 -0
  60. package/dist/renderers/outputFile/localFile.d.ts +46 -0
  61. package/dist/renderers/outputFile/useOutputFile.d.ts +32 -3
  62. package/dist/renderers/presentFiles/PresentFiles.vue.d.ts +19 -0
  63. package/dist/renderers/recordset/RecordsetView.vue.d.ts +19 -0
  64. package/dist/renderers/sqlQuery/SqlQuery.vue.d.ts +19 -0
  65. package/dist/renderers/style.css +1 -1
  66. package/dist/renderers/text/TextAnswer.vue.d.ts +19 -0
  67. package/dist/request/api.d.ts +121 -1
  68. package/dist/request/client.d.ts +6 -0
  69. package/dist/request/index.cjs +4 -2
  70. package/dist/request/index.d.ts +4 -2
  71. package/dist/request/index.js +754 -181
  72. package/dist/request/ws.d.ts +11 -86
  73. package/dist/request/wsCore.d.ts +104 -0
  74. package/dist/request/wsSession.d.ts +353 -0
  75. package/dist/right-panel/RightPanel.vue.d.ts +6 -6
  76. package/dist/right-panel/RightPanelIcon.vue.d.ts +4 -4
  77. package/dist/right-panel/RightPanelTabs.vue.d.ts +9 -5
  78. package/dist/right-panel/index.cjs +1 -1
  79. package/dist/right-panel/index.d.ts +1 -1
  80. package/dist/right-panel/index.js +617 -537
  81. package/dist/right-panel/panels/newtab/NewTabPanel.vue.d.ts +4 -4
  82. package/dist/right-panel/panels/web/WebPanel.vue.d.ts +3 -3
  83. package/dist/right-panel/shared/BrowserToolbar.vue.d.ts +3 -3
  84. package/dist/right-panel/shared/RightPanelToolList.vue.d.ts +5 -5
  85. package/dist/right-panel/style.css +1 -1
  86. package/dist/right-panel/types.d.ts +10 -0
  87. package/dist/theme/index.js +2 -4
  88. package/dist/tools/index.cjs +5 -5
  89. package/dist/tools/index.d.ts +2 -2
  90. package/dist/tools/index.js +323 -217
  91. package/dist/tools/markdown/MarkdownContent.vue.d.ts +5 -5
  92. package/dist/tools/markdown/index.d.ts +2 -0
  93. package/dist/tools/markdown/interactions.d.ts +39 -0
  94. package/dist/tools/markdown/sanitize.d.ts +6 -0
  95. package/dist/tools/style.css +1 -1
  96. package/dist/tools/useAutoScroll.d.ts +3 -3
  97. package/dist/web-ui/attach/AttachmentCard.vue.d.ts +6 -6
  98. package/dist/web-ui/attach/AttachmentList.vue.d.ts +6 -6
  99. package/dist/web-ui/chat/ChatContainer.vue.d.ts +10 -10
  100. package/dist/web-ui/chat/ChatMessagesView.vue.d.ts +6 -6
  101. package/dist/web-ui/envswitch/EnvSwitch.vue.d.ts +6 -6
  102. package/dist/web-ui/index.cjs +1 -1
  103. package/dist/web-ui/index.js +630 -635
  104. package/dist/web-ui/inputbox/Inputbox.vue.d.ts +11 -11
  105. package/dist/web-ui/recordset/RecordsetTable.vue.d.ts +4 -4
  106. package/dist/web-ui/style.css +1 -1
  107. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1,114 +1,125 @@
1
1
  import "wi-chat/style.css";
2
- import { AuthExpiredError as a, buildChatWsUrl as o, createChatApi as i, createRequest as n, fileToBase64 as l, formDataToJson as s, isCancelError as p, login as c, openChatWebSocketStream as m, pwdEncrypt as A, resolveMessageData as C, sendPayloadInChunks as u } from "wi-chat/request";
3
- import { CHAT_TITLE_MAX_LENGTH as T, COLLECT_CLARIFICATIONS_ANSWER_TYPE as R, HOST_ACTION_ANSWER_TYPE as h, IFRAME_RESIZER_CHILD_SCRIPT as g, IMAGE_EXTENSIONS as S, OUTPUT_FILE_ANSWER_TYPE as d, RECORDSET_ANSWER_TYPE as P, RoleEnum as _, applyAnswerChunk as y, applyCollectClarificationsChunk as I, applyDeepThinkingChunk as f, applyHostActionChunk as x, applyIframePageChunk as k, applyKnowledgeStreamChunk as w, applyOutputFileChunk as H, applyRecordsetChunk as z, buildChatTitle as F, cancelClarification as O, clearPendingClarifications as L, collectClarificationsParser as N, collectDeepThinkingSteps as G, collectThinkingSteps as M, consumeStream as D, createEmptyAnswerValues as v, createFailureResult as U, createHistoryGroup as W, createLineSplitter as Y, deepThinkingParser as X, deleteHistoryGroup as b, extractAttachmentsFromHistory as B, extractHistoryAttachments as K, formatFileSize as q, getHistoryGroups as V, hasPendingClarification as j, hostActionParser as J, iframePageParser as Z, injectIframeResizerScript as Q, isImageAttachment as $, knowledgeStreamParser as ee, loadGroupMessages as te, loadGroupMessagesByStep as re, nextClarificationRequestId as ae, nextLocalMessageId as oe, normalizeActionDefinition as ie, normalizeActionResult as ne, normalizeAnswer as le, normalizeAnswerReport as se, normalizeAttachment as pe, normalizeCollectClarificationsReport as ce, normalizeHostActionReport as me, normalizeIframePageReport as Ae, normalizeKnowledgeStreamReport as Ce, normalizeOutputFileReport as ue, normalizeRecordsetReport as Ee, outputFileParser as Te, parseActionExecuteCommand as Re, parseClarificationArguments as he, parseHistoryAttachment as ge, parseRealtimeAttachment as Se, parseSseLine as de, readFrontReplyAction as Pe, readOutputFilePayload as _e, readRecordsetPayload as ye, recordsetParser as Ie, registerClarification as fe, resolveAttachDownloadUrl as xe, resolveAttachPreviewUrl as ke, resolveRemoteFileUrl as we, setHistoryGroupTitle as He, submitClarification as ze, wrapActionFrame as Fe } from "wi-chat/parser";
4
- import { AGENT_TABLE_STATE_ROW_LIMIT as Le, PAGE_CONTEXT_EXT_ARGS_KEY as Ne, PAGE_CONTEXT_SCHEMA_VERSION as Ge, createPageContext as Me, isAgentPageContext as De, normalizeAgentPageState as ve, parsePageContextExtArgs as Ue, toPageContextExtArgs as We } from "wi-chat/page-context";
5
- import { DEFAULT_PRIMARY as Xe, applyTheme as be, createChatTheme as Be } from "wi-chat/theme";
6
- import { useAgent as qe, useChat as Ve, useChatSession as je, useHistory as Je } from "wi-chat/core";
7
- import { closeImagePreview as Qe, createStyleScope as $e, downloadAttachment as et, openImagePreview as tt, renderMarkdown as rt, useAutoScroll as at } from "wi-chat/tools";
2
+ import { AuthExpiredError as a, buildChatWsUrl as o, buildConnectFrame as i, chatWsRegistry as n, createChatApi as s, createChatWsFallback as l, createChatWsRegistry as c, createChunkSender as p, createRequest as C, defaultBuildHistoryAnswerPayload as m, defaultHasHistoryAnswerContent as A, fileToBase64 as u, formDataToJson as h, isCancelError as E, login as d, openChatWebSocketStream as T, openChatWsSessionStream as R, pickChatTaskList as S, pickHistoryId as g, pwdEncrypt as P, resolveMessageData as y, sendPayloadInChunks as _, startChatWsSession as f } from "wi-chat/request";
3
+ import { CHAT_TITLE_MAX_LENGTH as k, COLLECT_CLARIFICATIONS_ANSWER_TYPE as x, HOST_ACTION_ANSWER_TYPE as H, IFRAME_RESIZER_CHILD_SCRIPT as w, IMAGE_EXTENSIONS as F, OUTPUT_FILE_ANSWER_TYPE as L, RECORDSET_ANSWER_TYPE as O, RoleEnum as z, applyAnswerChunk as N, applyCollectClarificationsChunk as G, applyDeepThinkingChunk as W, applyHostActionChunk as M, applyIframePageChunk as D, applyKnowledgeStreamChunk as v, applyOutputFileChunk as U, applyRecordsetChunk as b, buildChatTitle as Y, cancelClarification as X, clearPendingClarifications as B, collectClarificationsParser as K, collectDeepThinkingSteps as q, collectThinkingSteps as V, consumeStream as j, createEmptyAnswerValues as J, createFailureResult as Z, createHistoryGroup as Q, createLineSplitter as $, deepThinkingParser as ee, deleteHistoryGroup as te, expirePendingClarificationsForReply as re, extractAttachmentsFromHistory as ae, extractHistoryAttachments as oe, formatFileSize as ie, getHistoryGroups as ne, hasPendingClarification as se, hostActionParser as le, iframePageParser as ce, injectIframeResizerScript as pe, isImageAttachment as Ce, knowledgeStreamParser as me, loadGroupMessages as Ae, loadGroupMessagesByStep as ue, nextClarificationRequestId as he, nextLocalMessageId as Ee, normalizeActionResult as de, normalizeAnswer as Te, normalizeAnswerReport as Re, normalizeAttachment as Se, normalizeCollectClarificationsReport as ge, normalizeHostActionReport as Pe, normalizeIframePageReport as ye, normalizeKnowledgeStreamReport as _e, normalizeOutputFileReport as fe, normalizeRecordsetReport as Ie, outputFileParser as ke, parseActionExecuteCommand as xe, parseClarificationArguments as He, parseHistoryAttachment as we, parseRealtimeAttachment as Fe, parseSseLine as Le, readFrontReplyAction as Oe, readOutputFilePayload as ze, readRecordsetPayload as Ne, recordsetParser as Ge, registerClarification as We, resolveAttachDownloadUrl as Me, resolveAttachPreviewUrl as De, resolveRemoteFileUrl as ve, setHistoryGroupTitle as Ue, submitClarification as be, wrapActionFrame as Ye } from "wi-chat/parser";
4
+ import { AGENT_TABLE_STATE_ROW_LIMIT as Be, PAGE_CONTEXT_EXT_ARGS_KEY as Ke, PAGE_CONTEXT_SCHEMA_VERSION as qe, createPageContext as Ve, isAgentPageContext as je, normalizeAgentPageState as Je, parsePageContextExtArgs as Ze, toPageContextExtArgs as Qe } from "wi-chat/page-context";
5
+ import { DEFAULT_PRIMARY as et, applyTheme as tt, createChatTheme as rt } from "wi-chat/theme";
6
+ import { useAgent as ot, useChat as it, useChatSession as nt, useHistory as st } from "wi-chat/core";
7
+ import { closeImagePreview as ct, createStyleScope as pt, downloadAttachment as Ct, openImagePreview as mt, renderMarkdown as At, useAutoScroll as ut } from "wi-chat/tools";
8
8
  export {
9
- Le as AGENT_TABLE_STATE_ROW_LIMIT,
9
+ Be as AGENT_TABLE_STATE_ROW_LIMIT,
10
10
  a as AuthExpiredError,
11
- T as CHAT_TITLE_MAX_LENGTH,
12
- R as COLLECT_CLARIFICATIONS_ANSWER_TYPE,
13
- Xe as DEFAULT_PRIMARY,
14
- h as HOST_ACTION_ANSWER_TYPE,
15
- g as IFRAME_RESIZER_CHILD_SCRIPT,
16
- S as IMAGE_EXTENSIONS,
17
- d as OUTPUT_FILE_ANSWER_TYPE,
18
- Ne as PAGE_CONTEXT_EXT_ARGS_KEY,
19
- Ge as PAGE_CONTEXT_SCHEMA_VERSION,
20
- P as RECORDSET_ANSWER_TYPE,
21
- _ as RoleEnum,
22
- y as applyAnswerChunk,
23
- I as applyCollectClarificationsChunk,
24
- f as applyDeepThinkingChunk,
25
- x as applyHostActionChunk,
26
- k as applyIframePageChunk,
27
- w as applyKnowledgeStreamChunk,
28
- H as applyOutputFileChunk,
29
- z as applyRecordsetChunk,
30
- be as applyTheme,
31
- F as buildChatTitle,
11
+ k as CHAT_TITLE_MAX_LENGTH,
12
+ x as COLLECT_CLARIFICATIONS_ANSWER_TYPE,
13
+ et as DEFAULT_PRIMARY,
14
+ H as HOST_ACTION_ANSWER_TYPE,
15
+ w as IFRAME_RESIZER_CHILD_SCRIPT,
16
+ F as IMAGE_EXTENSIONS,
17
+ L as OUTPUT_FILE_ANSWER_TYPE,
18
+ Ke as PAGE_CONTEXT_EXT_ARGS_KEY,
19
+ qe as PAGE_CONTEXT_SCHEMA_VERSION,
20
+ O as RECORDSET_ANSWER_TYPE,
21
+ z as RoleEnum,
22
+ N as applyAnswerChunk,
23
+ G as applyCollectClarificationsChunk,
24
+ W as applyDeepThinkingChunk,
25
+ M as applyHostActionChunk,
26
+ D as applyIframePageChunk,
27
+ v as applyKnowledgeStreamChunk,
28
+ U as applyOutputFileChunk,
29
+ b as applyRecordsetChunk,
30
+ tt as applyTheme,
31
+ Y as buildChatTitle,
32
32
  o as buildChatWsUrl,
33
- O as cancelClarification,
34
- L as clearPendingClarifications,
35
- Qe as closeImagePreview,
36
- N as collectClarificationsParser,
37
- G as collectDeepThinkingSteps,
38
- M as collectThinkingSteps,
39
- D as consumeStream,
40
- i as createChatApi,
41
- Be as createChatTheme,
42
- v as createEmptyAnswerValues,
43
- U as createFailureResult,
44
- W as createHistoryGroup,
45
- Y as createLineSplitter,
46
- Me as createPageContext,
47
- n as createRequest,
48
- $e as createStyleScope,
49
- X as deepThinkingParser,
50
- b as deleteHistoryGroup,
51
- et as downloadAttachment,
52
- B as extractAttachmentsFromHistory,
53
- K as extractHistoryAttachments,
54
- l as fileToBase64,
55
- s as formDataToJson,
56
- q as formatFileSize,
57
- V as getHistoryGroups,
58
- j as hasPendingClarification,
59
- J as hostActionParser,
60
- Z as iframePageParser,
61
- Q as injectIframeResizerScript,
62
- De as isAgentPageContext,
63
- p as isCancelError,
64
- $ as isImageAttachment,
65
- ee as knowledgeStreamParser,
66
- te as loadGroupMessages,
67
- re as loadGroupMessagesByStep,
68
- c as login,
69
- ae as nextClarificationRequestId,
70
- oe as nextLocalMessageId,
71
- ie as normalizeActionDefinition,
72
- ne as normalizeActionResult,
73
- ve as normalizeAgentPageState,
74
- le as normalizeAnswer,
75
- se as normalizeAnswerReport,
76
- pe as normalizeAttachment,
77
- ce as normalizeCollectClarificationsReport,
78
- me as normalizeHostActionReport,
79
- Ae as normalizeIframePageReport,
80
- Ce as normalizeKnowledgeStreamReport,
81
- ue as normalizeOutputFileReport,
82
- Ee as normalizeRecordsetReport,
83
- m as openChatWebSocketStream,
84
- tt as openImagePreview,
85
- Te as outputFileParser,
86
- Re as parseActionExecuteCommand,
87
- he as parseClarificationArguments,
88
- ge as parseHistoryAttachment,
89
- Ue as parsePageContextExtArgs,
90
- Se as parseRealtimeAttachment,
91
- de as parseSseLine,
92
- A as pwdEncrypt,
93
- Pe as readFrontReplyAction,
94
- _e as readOutputFilePayload,
95
- ye as readRecordsetPayload,
96
- Ie as recordsetParser,
97
- fe as registerClarification,
98
- rt as renderMarkdown,
99
- xe as resolveAttachDownloadUrl,
100
- ke as resolveAttachPreviewUrl,
101
- C as resolveMessageData,
102
- we as resolveRemoteFileUrl,
103
- u as sendPayloadInChunks,
104
- He as setHistoryGroupTitle,
105
- ze as submitClarification,
106
- We as toPageContextExtArgs,
107
- qe as useAgent,
108
- at as useAutoScroll,
109
- Ve as useChat,
110
- je as useChatSession,
111
- Je as useHistory,
112
- Fe as wrapActionFrame
33
+ i as buildConnectFrame,
34
+ X as cancelClarification,
35
+ n as chatWsRegistry,
36
+ B as clearPendingClarifications,
37
+ ct as closeImagePreview,
38
+ K as collectClarificationsParser,
39
+ q as collectDeepThinkingSteps,
40
+ V as collectThinkingSteps,
41
+ j as consumeStream,
42
+ s as createChatApi,
43
+ rt as createChatTheme,
44
+ l as createChatWsFallback,
45
+ c as createChatWsRegistry,
46
+ p as createChunkSender,
47
+ J as createEmptyAnswerValues,
48
+ Z as createFailureResult,
49
+ Q as createHistoryGroup,
50
+ $ as createLineSplitter,
51
+ Ve as createPageContext,
52
+ C as createRequest,
53
+ pt as createStyleScope,
54
+ ee as deepThinkingParser,
55
+ m as defaultBuildHistoryAnswerPayload,
56
+ A as defaultHasHistoryAnswerContent,
57
+ te as deleteHistoryGroup,
58
+ Ct as downloadAttachment,
59
+ re as expirePendingClarificationsForReply,
60
+ ae as extractAttachmentsFromHistory,
61
+ oe as extractHistoryAttachments,
62
+ u as fileToBase64,
63
+ h as formDataToJson,
64
+ ie as formatFileSize,
65
+ ne as getHistoryGroups,
66
+ se as hasPendingClarification,
67
+ le as hostActionParser,
68
+ ce as iframePageParser,
69
+ pe as injectIframeResizerScript,
70
+ je as isAgentPageContext,
71
+ E as isCancelError,
72
+ Ce as isImageAttachment,
73
+ me as knowledgeStreamParser,
74
+ Ae as loadGroupMessages,
75
+ ue as loadGroupMessagesByStep,
76
+ d as login,
77
+ he as nextClarificationRequestId,
78
+ Ee as nextLocalMessageId,
79
+ de as normalizeActionResult,
80
+ Je as normalizeAgentPageState,
81
+ Te as normalizeAnswer,
82
+ Re as normalizeAnswerReport,
83
+ Se as normalizeAttachment,
84
+ ge as normalizeCollectClarificationsReport,
85
+ Pe as normalizeHostActionReport,
86
+ ye as normalizeIframePageReport,
87
+ _e as normalizeKnowledgeStreamReport,
88
+ fe as normalizeOutputFileReport,
89
+ Ie as normalizeRecordsetReport,
90
+ T as openChatWebSocketStream,
91
+ R as openChatWsSessionStream,
92
+ mt as openImagePreview,
93
+ ke as outputFileParser,
94
+ xe as parseActionExecuteCommand,
95
+ He as parseClarificationArguments,
96
+ we as parseHistoryAttachment,
97
+ Ze as parsePageContextExtArgs,
98
+ Fe as parseRealtimeAttachment,
99
+ Le as parseSseLine,
100
+ S as pickChatTaskList,
101
+ g as pickHistoryId,
102
+ P as pwdEncrypt,
103
+ Oe as readFrontReplyAction,
104
+ ze as readOutputFilePayload,
105
+ Ne as readRecordsetPayload,
106
+ Ge as recordsetParser,
107
+ We as registerClarification,
108
+ At as renderMarkdown,
109
+ Me as resolveAttachDownloadUrl,
110
+ De as resolveAttachPreviewUrl,
111
+ y as resolveMessageData,
112
+ ve as resolveRemoteFileUrl,
113
+ _ as sendPayloadInChunks,
114
+ Ue as setHistoryGroupTitle,
115
+ f as startChatWsSession,
116
+ be as submitClarification,
117
+ Qe as toPageContextExtArgs,
118
+ ot as useAgent,
119
+ ut as useAutoScroll,
120
+ it as useChat,
121
+ nt as useChatSession,
122
+ st as useHistory,
123
+ Ye as wrapActionFrame
113
124
  };
114
125
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { AnswerParser, AssistantMessage, Message } from 'wi-chat/parser';
2
2
  import { OutputFileConfig } from 'wi-chat/renderers';
3
3
  import { ChatSubmitPayload } from './types';
4
4
 
5
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
6
  /** 当前分组消息列表 */
7
7
  messages: Message[];
8
8
  /** 自定义回答类型 parser */
@@ -39,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
39
39
  emptyTitle: string;
40
40
  emptyDescription: string;
41
41
  disabled: boolean;
42
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
43
  "update:question": (value: string) => void;
44
44
  submit: (payload: ChatSubmitPayload) => void;
45
45
  stop: () => void;
@@ -82,25 +82,25 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
82
82
  emptyTitle: string;
83
83
  emptyDescription: string;
84
84
  disabled: boolean;
85
- }>>> & {
85
+ }>>> & Readonly<{
86
86
  onSubmit?: (payload: ChatSubmitPayload) => any;
87
+ onStop?: () => any;
87
88
  onLoadOlder?: () => any;
88
89
  onUpdateThinkingExpanded?: (message: AssistantMessage, expanded: boolean) => any;
89
- onStop?: () => any;
90
90
  "onUpdate:question"?: (value: string) => any;
91
- }, {
91
+ }>, {
92
92
  placeholder: string;
93
93
  question: string;
94
94
  parsers: AnswerParser<any>[];
95
95
  loading: boolean;
96
96
  disabled: boolean;
97
97
  messages: Message[];
98
- emptyTitle: string;
99
- emptyDescription: string;
100
98
  talking: boolean;
101
99
  session: string;
102
100
  hasMore: boolean;
103
- }, {}>, {
101
+ emptyTitle: string;
102
+ emptyDescription: string;
103
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
104
104
  messages?(_: {}): any;
105
105
  "above-input"?(_: {}): any;
106
106
  }>;
@@ -1,7 +1,7 @@
1
1
  import { AnswerParser, AssistantMessage, Message } from 'wi-chat/parser';
2
2
  import { OutputFileConfig } from 'wi-chat/renderers';
3
3
 
4
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
5
  /** 当前分组消息列表 */
6
6
  messages: Message[];
7
7
  /** 自定义回答类型 parser(component 字段会注册进共享 contentMap) */
@@ -20,12 +20,12 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
20
20
  loading: boolean;
21
21
  emptyTitle: string;
22
22
  emptyDescription: string;
23
- }>, {
23
+ }>>, {
24
24
  /** 强制滚动到底部 */
25
25
  forceScrollToBottom: () => Promise<void>;
26
26
  /** 自动滚动开启时请求滚动到底部 */
27
27
  requestScrollToBottom: () => Promise<void>;
28
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
29
  loadOlder: () => void;
30
30
  updateThinkingExpanded: (message: AssistantMessage, expanded: boolean) => void;
31
31
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -47,16 +47,16 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
47
47
  loading: boolean;
48
48
  emptyTitle: string;
49
49
  emptyDescription: string;
50
- }>>> & {
50
+ }>>> & Readonly<{
51
51
  onLoadOlder?: () => any;
52
52
  onUpdateThinkingExpanded?: (message: AssistantMessage, expanded: boolean) => any;
53
- }, {
53
+ }>, {
54
54
  parsers: AnswerParser[];
55
55
  loading: boolean;
56
56
  messages: Message[];
57
57
  emptyTitle: string;
58
58
  emptyDescription: string;
59
- }, {}>;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
60
60
  export default _default;
61
61
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
62
62
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("wi-chat/renderers"),e=require("vue"),B=require("vant"),I=require("wi-chat/tools"),O={class:"wi-mobile-inputbox"},T=e.defineComponent({__name:"Inputbox",props:{modelValue:{default:""},placeholder:{default:"请输入问题(Enter 发送)"},disabled:{type:Boolean,default:!1},disabledSend:{type:Boolean,default:!1},enterExact:{type:Boolean,default:!0},submitText:{default:"发送"},stopText:{default:"停止"},talking:{type:Boolean,default:!1},buttonType:{default:"primary"}},emits:["update:modelValue","submit","stop"],setup(r,{emit:u}){const a=r,o=u,d=()=>{if(a.talking){o("stop");return}a.disabled||a.disabledSend||o("submit")},m=t=>{t.isComposing||t.keyCode===229||!a.enterExact||a.talking||(t.preventDefault(),d())};return(t,l)=>(e.openBlock(),e.createElementBlock("div",O,[e.createVNode(e.unref(B.Field),{"model-value":t.modelValue,type:"textarea",rows:"2",autosize:"",placeholder:t.placeholder,disabled:t.disabled,"onUpdate:modelValue":l[0]||(l[0]=p=>o("update:modelValue",String(p??""))),onKeydown:e.withKeys(e.withModifiers(m,["exact"]),["enter"])},null,8,["model-value","placeholder","disabled","onKeydown"]),e.createVNode(e.unref(B.Button),{class:"wi-mobile-inputbox__btn",type:t.talking?"danger":t.buttonType,size:"small",disabled:t.disabled,onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.talking?t.stopText:t.submitText),1)]),_:1},8,["type","disabled"])]))}}),h=(r,u)=>{const a=r.__vccOpts||r;for(const[o,d]of u)a[o]=d;return a},v=h(T,[["__scopeId","data-v-02f9c6a0"]]),V=r=>(e.pushScopeId("data-v-04e966f6"),r=r(),e.popScopeId(),r),P={key:0,class:"wi-mobile-chat-messages__loading"},j={key:1,class:"wi-mobile-chat-messages__empty"},N=V(()=>e.createElementVNode("div",{class:"wi-mobile-chat-messages__empty-logo"},"WI",-1)),A={class:"wi-mobile-chat-messages__empty-title"},F={class:"wi-mobile-chat-messages__empty-description"},D={key:0,class:"wi-mobile-chat-messages__user"},q={class:"wi-mobile-chat-messages__user-wrapper"},M={key:0,class:"wi-mobile-chat-messages__attachments"},$={class:"wi-mobile-chat-messages__user-bubble"},x={key:1,class:"wi-mobile-chat-messages__assistant"},K=e.defineComponent({__name:"ChatMessagesView",props:{messages:{default:()=>[]},parsers:{default:()=>[]},outputFileConfig:{},loading:{type:Boolean,default:!1},emptyTitle:{default:"输入问题,开始与 AI 对话"},emptyDescription:{default:"回答内容由共享渲染层统一分发"}},emits:["loadOlder","updateThinkingExpanded"],setup(r,{expose:u,emit:a}){var _,w;const o=r,d=a;n.provideOutputFileConfig(o.outputFileConfig??{});const m=e.ref(),{showScrollToBottom:t,forceScrollToBottom:l,requestScrollToBottom:p,resetScrollState:b,onReachTop:E}=I.useAutoScroll(m),S=e.computed(()=>n.createAnswerContentMap(o.parsers));e.watch(()=>o.messages.length===0,i=>{i&&b()});let y=((_=o.messages[0])==null?void 0:_.id)??"",k=((w=o.messages[o.messages.length-1])==null?void 0:w.id)??"";return e.watch(()=>o.messages,()=>{var g,c;const i=((g=o.messages[0])==null?void 0:g.id)??"",f=((c=o.messages[o.messages.length-1])==null?void 0:c.id)??"",s=i!==y&&f===k;y=i,k=f,!s&&p()},{deep:!0}),E(()=>d("loadOlder")),u({forceScrollToBottom:l,requestScrollToBottom:p}),(i,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollEl",ref:m,class:"wi-mobile-chat-messages"},[i.loading?(e.openBlock(),e.createElementBlock("div",P,"历史加载中...")):i.messages.length===0?(e.openBlock(),e.createElementBlock("div",j,[N,e.createElementVNode("div",A,e.toDisplayString(i.emptyTitle),1),e.createElementVNode("div",F,e.toDisplayString(i.emptyDescription),1)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.messages,s=>{var g;return e.openBlock(),e.createElementBlock(e.Fragment,{key:s.id},[s.role==="user"?(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("div",q,[(g=s.attachments)!=null&&g.length?(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.attachments,c=>(e.openBlock(),e.createElementBlock("span",{key:c.name,class:"wi-mobile-chat-messages__attachment"},e.toDisplayString(c.name),1))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",$,e.toDisplayString(s.content),1)])])):(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(e.unref(n.DeepThinkingSteps),{steps:s.thinking.steps,expanded:s.thinking.expanded,"onUpdate:expanded":c=>d("updateThinkingExpanded",s,c)},null,8,["steps","expanded","onUpdate:expanded"]),e.createVNode(e.unref(n.AiAnswerBubble),{answer:s.answer,error:s.error,stopped:s.stopped,"content-map":S.value},null,8,["answer","error","stopped","content-map"])]))],64)}),128)),e.createVNode(e.Transition,{name:"wi-mobile-chat-messages-fade"},{default:e.withCtx(()=>[e.unref(t)?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"wi-mobile-chat-messages__bottom",onClick:f[0]||(f[0]=(...s)=>e.unref(l)&&e.unref(l)(...s))}," 回到底部 ")):e.createCommentVNode("",!0)]),_:1})],512))}}),C=h(K,[["__scopeId","data-v-04e966f6"]]),R={class:"wi-mobile-chat-container"},U=e.defineComponent({__name:"ChatContainer",props:{messages:{default:()=>[]},parsers:{default:()=>[]},outputFileConfig:{},loading:{type:Boolean,default:!1},talking:{type:Boolean,default:!1},session:{default:""},question:{default:""},placeholder:{default:"请输入问题,按 Enter 发送"},hasMore:{type:Boolean,default:!0},emptyTitle:{default:"输入问题,开始与 AI 对话"},emptyDescription:{default:"回答内容由共享渲染层统一分发"},disabled:{type:Boolean,default:!1}},emits:["update:question","submit","stop","loadOlder","updateThinkingExpanded"],setup(r,{emit:u}){const a=r,o=u,d=()=>{a.hasMore&&o("loadOlder")},m=()=>{o("submit",{text:a.question})};return(t,l)=>(e.openBlock(),e.createElementBlock("section",R,[e.renderSlot(t.$slots,"messages",{},()=>[e.createVNode(C,{messages:t.messages,parsers:t.parsers,"output-file-config":t.outputFileConfig,loading:t.loading,"empty-title":t.emptyTitle,"empty-description":t.emptyDescription,onLoadOlder:d,onUpdateThinkingExpanded:l[0]||(l[0]=(p,b)=>o("updateThinkingExpanded",p,b))},null,8,["messages","parsers","output-file-config","loading","empty-title","empty-description"])],!0),e.renderSlot(t.$slots,"above-input",{},void 0,!0),e.createVNode(v,{"model-value":t.question,placeholder:t.placeholder,disabled:t.disabled||!t.session,"disabled-send":!t.question.trim(),talking:t.talking,"onUpdate:modelValue":l[1]||(l[1]=p=>o("update:question",p)),onSubmit:m,onStop:l[2]||(l[2]=p=>o("stop"))},null,8,["model-value","placeholder","disabled","disabled-send","talking"])]))}}),z=h(U,[["__scopeId","data-v-9bd22d00"]]);Object.defineProperty(exports,"AiAnswerBubble",{enumerable:!0,get:()=>n.AiAnswerBubble});Object.defineProperty(exports,"ClarificationCard",{enumerable:!0,get:()=>n.ClarificationCard});Object.defineProperty(exports,"DeepThinkingSteps",{enumerable:!0,get:()=>n.DeepThinkingSteps});Object.defineProperty(exports,"HostActionStatus",{enumerable:!0,get:()=>n.HostActionStatus});Object.defineProperty(exports,"IframePage",{enumerable:!0,get:()=>n.IframePage});Object.defineProperty(exports,"KnowledgeStreamResult",{enumerable:!0,get:()=>n.KnowledgeStreamResult});Object.defineProperty(exports,"OutputFile",{enumerable:!0,get:()=>n.OutputFile});Object.defineProperty(exports,"createAnswerContentMap",{enumerable:!0,get:()=>n.createAnswerContentMap});Object.defineProperty(exports,"injectIframeResizerChild",{enumerable:!0,get:()=>n.injectIframeResizerChild});Object.defineProperty(exports,"provideIframePageConfig",{enumerable:!0,get:()=>n.provideIframePageConfig});Object.defineProperty(exports,"provideOutputFileConfig",{enumerable:!0,get:()=>n.provideOutputFileConfig});Object.defineProperty(exports,"resolveIframePlaceholders",{enumerable:!0,get:()=>n.resolveIframePlaceholders});Object.defineProperty(exports,"useIframePage",{enumerable:!0,get:()=>n.useIframePage});exports.ChatContainer=z;exports.ChatMessagesView=C;exports.Inputbox=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("wi-chat/renderers"),e=require("vue"),C=require("vant"),O=require("wi-chat/tools"),T={class:"wi-mobile-inputbox"},V=e.defineComponent({__name:"Inputbox",props:{modelValue:{default:""},placeholder:{default:"请输入问题(Enter 发送)"},disabled:{type:Boolean,default:!1},disabledSend:{type:Boolean,default:!1},enterExact:{type:Boolean,default:!0},submitText:{default:"发送"},stopText:{default:"停止"},talking:{type:Boolean,default:!1},buttonType:{default:"primary"}},emits:["update:modelValue","submit","stop"],setup(t,{emit:c}){const s=t,n=c,i=()=>{if(s.talking){n("stop");return}s.disabled||s.disabledSend||n("submit")},p=r=>{r.isComposing||r.keyCode===229||!s.enterExact||s.talking||(r.preventDefault(),i())};return(r,l)=>(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(e.unref(C.Field),{"model-value":t.modelValue,type:"textarea",rows:"2",autosize:"",placeholder:t.placeholder,disabled:t.disabled,"onUpdate:modelValue":l[0]||(l[0]=d=>n("update:modelValue",String(d??""))),onKeydown:e.withKeys(e.withModifiers(p,["exact"]),["enter"])},null,8,["model-value","placeholder","disabled","onKeydown"]),e.createVNode(e.unref(C.Button),{class:"wi-mobile-inputbox__btn",type:t.talking?"danger":t.buttonType,size:"small",disabled:t.disabled,onClick:i},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.talking?t.stopText:t.submitText),1)]),_:1},8,["type","disabled"])]))}}),y=(t,c)=>{const s=t.__vccOpts||t;for(const[n,i]of c)s[n]=i;return s},v=y(V,[["__scopeId","data-v-02f9c6a0"]]),I={key:0,class:"wi-mobile-chat-messages__loading"},P={key:1,class:"wi-mobile-chat-messages__empty"},j={class:"wi-mobile-chat-messages__empty-title"},N={class:"wi-mobile-chat-messages__empty-description"},A={key:0,class:"wi-mobile-chat-messages__user"},F={class:"wi-mobile-chat-messages__user-wrapper"},D={key:0,class:"wi-mobile-chat-messages__attachments"},_={class:"wi-mobile-chat-messages__user-bubble"},q={key:1,class:"wi-mobile-chat-messages__assistant"},M=e.defineComponent({__name:"ChatMessagesView",props:{messages:{default:()=>[]},parsers:{default:()=>[]},outputFileConfig:{},loading:{type:Boolean,default:!1},emptyTitle:{default:"输入问题,开始与 AI 对话"},emptyDescription:{default:"回答内容由共享渲染层统一分发"}},emits:["loadOlder","updateThinkingExpanded"],setup(t,{expose:c,emit:s}){var w,B;const n=t,i=s;o.provideOutputFileConfig(n.outputFileConfig??{});const p=e.ref(),{showScrollToBottom:r,forceScrollToBottom:l,requestScrollToBottom:d,resetScrollState:b,onReachTop:E}=O.useAutoScroll(p),S=e.computed(()=>o.createAnswerContentMap(n.parsers));e.watch(()=>n.messages.length===0,f=>{f&&b()});let h=((w=n.messages[0])==null?void 0:w.id)??"",k=((B=n.messages[n.messages.length-1])==null?void 0:B.id)??"";return e.watch(()=>n.messages,()=>{var g,m;const f=((g=n.messages[0])==null?void 0:g.id)??"",u=((m=n.messages[n.messages.length-1])==null?void 0:m.id)??"",a=f!==h&&u===k;h=f,k=u,!a&&d()},{deep:!0}),E(()=>i("loadOlder")),c({forceScrollToBottom:l,requestScrollToBottom:d}),(f,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollEl",ref:p,class:"wi-mobile-chat-messages"},[t.loading?(e.openBlock(),e.createElementBlock("div",I,"历史加载中...")):t.messages.length===0?(e.openBlock(),e.createElementBlock("div",P,[u[1]||(u[1]=e.createElementVNode("div",{class:"wi-mobile-chat-messages__empty-logo"},"WI",-1)),e.createElementVNode("div",j,e.toDisplayString(t.emptyTitle),1),e.createElementVNode("div",N,e.toDisplayString(t.emptyDescription),1)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,a=>{var g;return e.openBlock(),e.createElementBlock(e.Fragment,{key:a.id},[a.role==="user"?(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("div",F,[(g=a.attachments)!=null&&g.length?(e.openBlock(),e.createElementBlock("div",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.attachments,m=>(e.openBlock(),e.createElementBlock("span",{key:m.name,class:"wi-mobile-chat-messages__attachment"},e.toDisplayString(m.name),1))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",_,e.toDisplayString(a.content),1)])])):(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(e.unref(o.DeepThinkingSteps),{steps:a.thinking.steps,expanded:a.thinking.expanded,"onUpdate:expanded":m=>i("updateThinkingExpanded",a,m)},null,8,["steps","expanded","onUpdate:expanded"]),e.createVNode(e.unref(o.AiAnswerBubble),{answer:a.answer,error:a.error,stopped:a.stopped,"content-map":S.value},null,8,["answer","error","stopped","content-map"])]))],64)}),128)),e.createVNode(e.Transition,{name:"wi-mobile-chat-messages-fade"},{default:e.withCtx(()=>[e.unref(r)?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"wi-mobile-chat-messages__bottom",onClick:u[0]||(u[0]=(...a)=>e.unref(l)&&e.unref(l)(...a))}," 回到底部 ")):e.createCommentVNode("",!0)]),_:1})],512))}}),x=y(M,[["__scopeId","data-v-04e966f6"]]),$={class:"wi-mobile-chat-container"},K=e.defineComponent({__name:"ChatContainer",props:{messages:{default:()=>[]},parsers:{default:()=>[]},outputFileConfig:{},loading:{type:Boolean,default:!1},talking:{type:Boolean,default:!1},session:{default:""},question:{default:""},placeholder:{default:"请输入问题,按 Enter 发送"},hasMore:{type:Boolean,default:!0},emptyTitle:{default:"输入问题,开始与 AI 对话"},emptyDescription:{default:"回答内容由共享渲染层统一分发"},disabled:{type:Boolean,default:!1}},emits:["update:question","submit","stop","loadOlder","updateThinkingExpanded"],setup(t,{emit:c}){const s=t,n=c,i=()=>{s.hasMore&&n("loadOlder")},p=()=>{n("submit",{text:s.question})};return(r,l)=>(e.openBlock(),e.createElementBlock("section",$,[e.renderSlot(r.$slots,"messages",{},()=>[e.createVNode(x,{messages:t.messages,parsers:t.parsers,"output-file-config":t.outputFileConfig,loading:t.loading,"empty-title":t.emptyTitle,"empty-description":t.emptyDescription,onLoadOlder:i,onUpdateThinkingExpanded:l[0]||(l[0]=(d,b)=>n("updateThinkingExpanded",d,b))},null,8,["messages","parsers","output-file-config","loading","empty-title","empty-description"])],!0),e.renderSlot(r.$slots,"above-input",{},void 0,!0),e.createVNode(v,{"model-value":t.question,placeholder:t.placeholder,disabled:t.disabled||!t.session,"disabled-send":!t.question.trim(),talking:t.talking,"onUpdate:modelValue":l[1]||(l[1]=d=>n("update:question",d)),onSubmit:p,onStop:l[2]||(l[2]=d=>n("stop"))},null,8,["model-value","placeholder","disabled","disabled-send","talking"])]))}}),R=y(K,[["__scopeId","data-v-9bd22d00"]]);Object.defineProperty(exports,"AiAnswerBubble",{enumerable:!0,get:()=>o.AiAnswerBubble});Object.defineProperty(exports,"ClarificationCard",{enumerable:!0,get:()=>o.ClarificationCard});Object.defineProperty(exports,"DeepThinkingSteps",{enumerable:!0,get:()=>o.DeepThinkingSteps});Object.defineProperty(exports,"HostActionStatus",{enumerable:!0,get:()=>o.HostActionStatus});Object.defineProperty(exports,"IframePage",{enumerable:!0,get:()=>o.IframePage});Object.defineProperty(exports,"KnowledgeStreamResult",{enumerable:!0,get:()=>o.KnowledgeStreamResult});Object.defineProperty(exports,"OutputFile",{enumerable:!0,get:()=>o.OutputFile});Object.defineProperty(exports,"createAnswerContentMap",{enumerable:!0,get:()=>o.createAnswerContentMap});Object.defineProperty(exports,"injectIframeResizerChild",{enumerable:!0,get:()=>o.injectIframeResizerChild});Object.defineProperty(exports,"provideIframePageConfig",{enumerable:!0,get:()=>o.provideIframePageConfig});Object.defineProperty(exports,"provideOutputFileConfig",{enumerable:!0,get:()=>o.provideOutputFileConfig});Object.defineProperty(exports,"resolveIframePlaceholders",{enumerable:!0,get:()=>o.resolveIframePlaceholders});Object.defineProperty(exports,"useIframePage",{enumerable:!0,get:()=>o.useIframePage});exports.ChatContainer=R;exports.ChatMessagesView=x;exports.Inputbox=v;
2
2
  //# sourceMappingURL=index.cjs.map