@chatsdk-dev/elements 0.1.2 → 0.2.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.
- package/dist/{api-CIYPz72L.d.ts → api-BP4g92-0.d.ts} +1 -1
- package/dist/{api-CIYPz72L.d.ts.map → api-BP4g92-0.d.ts.map} +1 -1
- package/dist/approval-BODP4NVA.d.ts +5 -0
- package/dist/approval-BODP4NVA.d.ts.map +1 -0
- package/dist/avatar-CK5WGu6N.d.ts +5 -0
- package/dist/avatar-CK5WGu6N.d.ts.map +1 -0
- package/dist/{callbacks-PIvHXeEI.d.ts → callbacks-CQelTSwD.d.ts} +1 -1
- package/dist/{callbacks-PIvHXeEI.d.ts.map → callbacks-CQelTSwD.d.ts.map} +1 -1
- package/dist/chat-element-BbBl5CDM.d.ts +131 -0
- package/dist/chat-element-BbBl5CDM.d.ts.map +1 -0
- package/dist/chat-error-CST-PRdq.d.ts +15 -0
- package/dist/chat-error-CST-PRdq.d.ts.map +1 -0
- package/dist/{chatsdk-provider-BhlChLFd.d.ts → chatsdk-provider-t1GEgRPY.d.ts} +2 -2
- package/dist/chatsdk-provider-t1GEgRPY.d.ts.map +1 -0
- package/dist/{config-CqihvSgz.d.ts → config-BGIY5Hkg.d.ts} +20 -19
- package/dist/config-BGIY5Hkg.d.ts.map +1 -0
- package/dist/config-Wk7C7AJs.js +95 -0
- package/dist/config-Wk7C7AJs.js.map +1 -0
- package/dist/config-f4Go--5s.d.ts +194 -0
- package/dist/config-f4Go--5s.d.ts.map +1 -0
- package/dist/content-BoiPVwgM.d.ts +10 -0
- package/dist/content-BoiPVwgM.d.ts.map +1 -0
- package/dist/{context-aSaHw-ac.d.ts → context-D4dOffYT.d.ts} +1 -1
- package/dist/context-D4dOffYT.d.ts.map +1 -0
- package/dist/conversation-CtpcctHL.d.ts +8 -0
- package/dist/conversation-CtpcctHL.d.ts.map +1 -0
- package/dist/copy-BPB94kUd.d.ts +5 -0
- package/dist/copy-BPB94kUd.d.ts.map +1 -0
- package/dist/{element-provider-C_nBsftD.d.ts → element-provider-C95jVJV9.d.ts} +4 -5
- package/dist/element-provider-C95jVJV9.d.ts.map +1 -0
- package/dist/features/chat/chat-element.d.ts +2 -2
- package/dist/features/chat/chat-element.js +2 -2
- package/dist/features/chat/conversation/conversation.d.ts +2 -0
- package/dist/features/chat/conversation/conversation.js +73 -0
- package/dist/features/chat/conversation/conversation.js.map +1 -0
- package/dist/features/chat/conversation/message/activity.d.ts +12 -0
- package/dist/features/chat/conversation/message/activity.d.ts.map +1 -0
- package/dist/features/chat/conversation/message/activity.js +48 -0
- package/dist/features/chat/conversation/message/activity.js.map +1 -0
- package/dist/features/chat/conversation/message/approval.d.ts +2 -0
- package/dist/features/chat/conversation/message/approval.js +62 -0
- package/dist/features/chat/conversation/message/approval.js.map +1 -0
- package/dist/features/chat/conversation/message/avatar.d.ts +2 -0
- package/dist/features/chat/conversation/message/avatar.js +18 -0
- package/dist/features/chat/conversation/message/avatar.js.map +1 -0
- package/dist/features/chat/conversation/message/content.d.ts +2 -0
- package/dist/features/chat/conversation/message/content.js +11 -0
- package/dist/features/chat/conversation/message/content.js.map +1 -0
- package/dist/features/chat/conversation/message/copy.d.ts +2 -0
- package/dist/features/chat/conversation/message/copy.js +30 -0
- package/dist/features/chat/conversation/message/copy.js.map +1 -0
- package/dist/features/chat/conversation/message/feedback.d.ts +2 -0
- package/dist/features/chat/conversation/message/feedback.js +36 -0
- package/dist/features/chat/conversation/message/feedback.js.map +1 -0
- package/dist/features/chat/conversation/message/footer.d.ts +2 -0
- package/dist/features/chat/conversation/message/footer.js +20 -0
- package/dist/features/chat/conversation/message/footer.js.map +1 -0
- package/dist/features/chat/conversation/message/frame.d.ts +2 -0
- package/dist/features/chat/conversation/message/frame.js +18 -0
- package/dist/features/chat/conversation/message/frame.js.map +1 -0
- package/dist/features/chat/conversation/message/index.d.ts +2 -0
- package/dist/features/chat/conversation/message/index.js +2 -0
- package/dist/features/chat/conversation/message/index.parts.d.ts +22 -0
- package/dist/features/chat/conversation/message/index.parts.d.ts.map +1 -0
- package/dist/features/chat/conversation/message/index.parts.js +36 -0
- package/dist/features/chat/conversation/message/index.parts.js.map +1 -0
- package/dist/features/chat/conversation/message/message.d.ts +1 -0
- package/dist/features/chat/conversation/message/message.js +1 -0
- package/dist/features/chat/conversation/message/part.d.ts +2 -0
- package/dist/features/chat/conversation/message/part.js +35 -0
- package/dist/features/chat/conversation/message/part.js.map +1 -0
- package/dist/features/chat/conversation/message/provider.d.ts +2 -0
- package/dist/features/chat/conversation/message/provider.js +26 -0
- package/dist/features/chat/conversation/message/provider.js.map +1 -0
- package/dist/features/chat/conversation/message/reasoning.d.ts +2 -0
- package/dist/features/chat/conversation/message/reasoning.js +33 -0
- package/dist/features/chat/conversation/message/reasoning.js.map +1 -0
- package/dist/features/chat/conversation/message/sources.d.ts +2 -0
- package/dist/features/chat/conversation/message/sources.js +20 -0
- package/dist/features/chat/conversation/message/sources.js.map +1 -0
- package/dist/features/chat/conversation/message/text.d.ts +2 -0
- package/dist/features/chat/conversation/message/text.js +29 -0
- package/dist/features/chat/conversation/message/text.js.map +1 -0
- package/dist/features/chat/conversation/message/timestamp.d.ts +2 -0
- package/dist/features/chat/conversation/message/timestamp.js +36 -0
- package/dist/features/chat/conversation/message/timestamp.js.map +1 -0
- package/dist/features/chat/conversation/message/tool.d.ts +2 -0
- package/dist/features/chat/conversation/message/tool.js +56 -0
- package/dist/features/chat/conversation/message/tool.js.map +1 -0
- package/dist/features/chat/error/chat-error.d.ts +2 -0
- package/dist/features/chat/error/chat-error.js +46 -0
- package/dist/features/chat/error/chat-error.js.map +1 -0
- package/dist/features/chat/frame/frame.d.ts +2 -0
- package/dist/features/chat/frame/frame.js +52 -0
- package/dist/features/chat/frame/frame.js.map +1 -0
- package/dist/features/chat/frame/header-menu.d.ts +8 -0
- package/dist/features/chat/frame/header-menu.d.ts.map +1 -0
- package/dist/features/chat/{chat-header/chat-menu.js → frame/header-menu.js} +12 -13
- package/dist/features/chat/frame/header-menu.js.map +1 -0
- package/dist/features/chat/frame/header.d.ts +2 -0
- package/dist/features/chat/frame/header.js +50 -0
- package/dist/features/chat/frame/header.js.map +1 -0
- package/dist/features/chat/history/history-empty.d.ts +8 -0
- package/dist/features/chat/history/history-empty.d.ts.map +1 -0
- package/dist/features/chat/{chat-history/chat-history-empty.js → history/history-empty.js} +9 -8
- package/dist/features/chat/history/history-empty.js.map +1 -0
- package/dist/features/chat/history/history.d.ts +2 -0
- package/dist/features/chat/history/history.js +65 -0
- package/dist/features/chat/history/history.js.map +1 -0
- package/dist/features/chat/history/use-history.d.ts +2 -0
- package/dist/features/chat/history/use-history.js +30 -0
- package/dist/features/chat/history/use-history.js.map +1 -0
- package/dist/features/chat/index.d.ts +2 -2
- package/dist/features/chat/index.js +29 -2
- package/dist/features/chat/index.js.map +1 -0
- package/dist/features/chat/index.parts.d.ts +9 -0
- package/dist/features/chat/index.parts.js +24 -0
- package/dist/features/chat/index.parts.js.map +1 -0
- package/dist/features/chat/main/main.d.ts +2 -0
- package/dist/features/chat/main/main.js +40 -0
- package/dist/features/chat/main/main.js.map +1 -0
- package/dist/features/chat/main/prompt-input.d.ts +2 -0
- package/dist/features/chat/main/prompt-input.js +70 -0
- package/dist/features/chat/main/prompt-input.js.map +1 -0
- package/dist/features/chat/main/use-create-new-chat.d.ts +2 -0
- package/dist/features/chat/main/use-create-new-chat.js +24 -0
- package/dist/features/chat/main/use-create-new-chat.js.map +1 -0
- package/dist/features/chat/main/use-prompt-input.d.ts +2 -0
- package/dist/features/chat/main/use-prompt-input.js +27 -0
- package/dist/features/chat/main/use-prompt-input.js.map +1 -0
- package/dist/features/chat/provider/provider.d.ts +2 -0
- package/dist/features/chat/provider/provider.js +3 -0
- package/dist/features/chat/provider/use-ai-sdk-chat.d.ts +26 -0
- package/dist/features/chat/provider/use-ai-sdk-chat.d.ts.map +1 -0
- package/dist/features/chat/provider/use-ai-sdk-chat.js +3 -0
- package/dist/features/chat/provider/use-create-chat-store.d.ts +2 -0
- package/dist/features/chat/provider/use-create-chat-store.js +42 -0
- package/dist/features/chat/provider/use-create-chat-store.js.map +1 -0
- package/dist/features/chat/provider/use-visible-messages.d.ts +13 -0
- package/dist/features/chat/provider/use-visible-messages.d.ts.map +1 -0
- package/dist/features/chat/provider/use-visible-messages.js +23 -0
- package/dist/features/chat/provider/use-visible-messages.js.map +1 -0
- package/dist/features/chat/queries/query-keys.d.ts +3 -3
- package/dist/features/chat/queries/query-keys.d.ts.map +1 -1
- package/dist/features/chat/queries/query-keys.js +5 -5
- package/dist/features/chat/queries/query-keys.js.map +1 -1
- package/dist/features/chat/queries/use-create-conversation-mutation.d.ts +13 -14
- package/dist/features/chat/queries/use-create-conversation-mutation.d.ts.map +1 -1
- package/dist/features/chat/queries/use-create-conversation-mutation.js +4 -4
- package/dist/features/chat/queries/use-create-conversation-mutation.js.map +1 -1
- package/dist/features/chat/queries/use-get-agent-query.d.ts +2 -0
- package/dist/features/chat/queries/use-get-agent-query.js +2 -0
- package/dist/features/chat/queries/use-get-conversation-query.d.ts +2 -72
- package/dist/features/chat/queries/use-get-conversation-query.js +1 -1
- package/dist/features/chat/queries/use-list-conversations-query.d.ts +2 -33
- package/dist/features/chat/queries/use-list-conversations-query.js +23 -1
- package/dist/features/chat/queries/use-list-conversations-query.js.map +1 -0
- package/dist/features/chat/queries/use-record-feedback-mutation.d.ts +26 -0
- package/dist/features/chat/queries/use-record-feedback-mutation.d.ts.map +1 -0
- package/dist/features/chat/queries/use-record-feedback-mutation.js +2 -0
- package/dist/features/chat/utils.d.ts +7 -2
- package/dist/features/chat/utils.d.ts.map +1 -1
- package/dist/features/chat/utils.js +12 -1
- package/dist/features/chat/utils.js.map +1 -1
- package/dist/features/data-fetching/use-api-client.d.ts +1 -3
- package/dist/features/data-fetching/use-api-client.d.ts.map +1 -1
- package/dist/features/data-fetching/use-api-client.js +1 -1
- package/dist/features/element/chatsdk-provider.d.ts +1 -1
- package/dist/features/element/chatsdk-provider.js +5 -5
- package/dist/features/element/chatsdk-provider.js.map +1 -1
- package/dist/features/element/element-provider.d.ts +1 -1
- package/dist/features/element/element-provider.js +14 -9
- package/dist/features/element/element-provider.js.map +1 -1
- package/dist/features/element/store.d.ts +1 -1
- package/dist/features/element/store.js.map +1 -1
- package/dist/features/element/types/api.d.ts +1 -1
- package/dist/features/element/types/callbacks.d.ts +1 -1
- package/dist/features/element/types/config.d.ts +1 -1
- package/dist/features/element/types/context.d.ts +1 -1
- package/dist/features/element/types/locale.d.ts +1 -1
- package/dist/features/element/types/theme.d.ts +1 -1
- package/dist/features/element/types/translations.d.ts +1 -1
- package/dist/features/element/use-element-config.d.ts +14 -33
- package/dist/features/element/use-element-config.d.ts.map +1 -1
- package/dist/features/element/use-element-config.js +7 -15
- package/dist/features/element/use-element-config.js.map +1 -1
- package/dist/features/element/use-merge-global-config.d.ts +6 -7
- package/dist/features/element/use-merge-global-config.d.ts.map +1 -1
- package/dist/features/element/use-merge-global-config.js +2 -2
- package/dist/features/element/use-merge-global-config.js.map +1 -1
- package/dist/features/element/utils.d.ts +1 -1
- package/dist/features/element/utils.js.map +1 -1
- package/dist/features/errors/use-app-error-message.d.ts +2 -0
- package/dist/features/errors/use-app-error-message.js +25 -0
- package/dist/features/errors/use-app-error-message.js.map +1 -0
- package/dist/features/logging/logger-provider.d.ts +2 -0
- package/dist/features/logging/logger-provider.js +20 -0
- package/dist/features/logging/logger-provider.js.map +1 -0
- package/dist/feedback-hofC2MHC.d.ts +5 -0
- package/dist/feedback-hofC2MHC.d.ts.map +1 -0
- package/dist/footer-BdcVsDmw.d.ts +11 -0
- package/dist/footer-BdcVsDmw.d.ts.map +1 -0
- package/dist/frame-BCN71hMj.d.ts +17 -0
- package/dist/frame-BCN71hMj.d.ts.map +1 -0
- package/dist/frame-D_ce2ErP.d.ts +10 -0
- package/dist/frame-D_ce2ErP.d.ts.map +1 -0
- package/dist/header-BDGB3zKD.d.ts +8 -0
- package/dist/header-BDGB3zKD.d.ts.map +1 -0
- package/dist/history-DDUj4LMJ.d.ts +8 -0
- package/dist/history-DDUj4LMJ.d.ts.map +1 -0
- package/dist/i18n/config.d.ts +1 -1
- package/dist/i18n/config.js +1 -1
- package/dist/i18n/i18next.d.ts +1 -1377
- package/dist/i18n/i18next.d.ts.map +1 -1
- package/dist/i18n/i18next.js +1 -2
- package/dist/i18n/i18next.js.map +1 -1
- package/dist/i18n/utils.d.ts +1 -1
- package/dist/i18n/utils.d.ts.map +1 -1
- package/dist/i18n/utils.js.map +1 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.js +12 -59
- package/dist/index.js.map +1 -1
- package/dist/{locale-W5Kyyi4X.d.ts → locale-v_zPGRhE.d.ts} +2 -2
- package/dist/locale-v_zPGRhE.d.ts.map +1 -0
- package/dist/logger-provider-whBIV3Gt.d.ts +16 -0
- package/dist/logger-provider-whBIV3Gt.d.ts.map +1 -0
- package/dist/main-D8VgMjmL.d.ts +15 -0
- package/dist/main-D8VgMjmL.d.ts.map +1 -0
- package/dist/part-C8ZA6iZn.d.ts +25 -0
- package/dist/part-C8ZA6iZn.d.ts.map +1 -0
- package/dist/prompt-input-bclKhGu3.d.ts +15 -0
- package/dist/prompt-input-bclKhGu3.d.ts.map +1 -0
- package/dist/provider-CkkKc2aq.d.ts +21 -0
- package/dist/provider-CkkKc2aq.d.ts.map +1 -0
- package/dist/provider-Cps0PPXa.js +383 -0
- package/dist/provider-Cps0PPXa.js.map +1 -0
- package/dist/reasoning-BRNu_n6T.d.ts +5 -0
- package/dist/reasoning-BRNu_n6T.d.ts.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/sources-BXoSxNYc.d.ts +5 -0
- package/dist/sources-BXoSxNYc.d.ts.map +1 -0
- package/dist/{store-CGX9oRlE.d.ts → store-CkswgmIQ.d.ts} +8 -10
- package/dist/store-CkswgmIQ.d.ts.map +1 -0
- package/dist/styles.css +1677 -948
- package/dist/text-Cio_Hj_h.d.ts +5 -0
- package/dist/text-Cio_Hj_h.d.ts.map +1 -0
- package/dist/{theme-Cb-RBWbR.d.ts → theme-K7rbPHc1.d.ts} +1 -1
- package/dist/{theme-Cb-RBWbR.d.ts.map → theme-K7rbPHc1.d.ts.map} +1 -1
- package/dist/timestamp-CbU3bLa3.d.ts +5 -0
- package/dist/timestamp-CbU3bLa3.d.ts.map +1 -0
- package/dist/tool-DskTWxZb.d.ts +5 -0
- package/dist/tool-DskTWxZb.d.ts.map +1 -0
- package/dist/use-app-error-message-DAHQ4oR_.d.ts +12 -0
- package/dist/use-app-error-message-DAHQ4oR_.d.ts.map +1 -0
- package/dist/use-create-chat-store-Ccd5tvho.d.ts +26 -0
- package/dist/use-create-chat-store-Ccd5tvho.d.ts.map +1 -0
- package/dist/use-create-new-chat-H4kM3hPt.d.ts +7 -0
- package/dist/use-create-new-chat-H4kM3hPt.d.ts.map +1 -0
- package/dist/use-get-agent-query-hQ4uOjfL.d.ts +10 -0
- package/dist/use-get-agent-query-hQ4uOjfL.d.ts.map +1 -0
- package/dist/use-get-conversation-query-D5bRlewH.d.ts +73 -0
- package/dist/use-get-conversation-query-D5bRlewH.d.ts.map +1 -0
- package/dist/use-history-DH2KkVDP.d.ts +30 -0
- package/dist/use-history-DH2KkVDP.d.ts.map +1 -0
- package/dist/use-list-conversations-query-Ny-nP5cZ.d.ts +29 -0
- package/dist/use-list-conversations-query-Ny-nP5cZ.d.ts.map +1 -0
- package/package.json +27 -24
- package/dist/chat-element-CCsDDFif.js +0 -441
- package/dist/chat-element-CCsDDFif.js.map +0 -1
- package/dist/chat-element-CSpa62Te.d.ts +0 -53
- package/dist/chat-element-CSpa62Te.d.ts.map +0 -1
- package/dist/chatsdk-provider-BhlChLFd.d.ts.map +0 -1
- package/dist/common/utils.d.ts +0 -14
- package/dist/common/utils.d.ts.map +0 -1
- package/dist/common/utils.js +0 -26
- package/dist/common/utils.js.map +0 -1
- package/dist/components/info-card.d.ts +0 -23
- package/dist/components/info-card.d.ts.map +0 -1
- package/dist/components/info-card.js +0 -38
- package/dist/components/info-card.js.map +0 -1
- package/dist/config-BigIL6TQ.js +0 -29
- package/dist/config-BigIL6TQ.js.map +0 -1
- package/dist/config-CqihvSgz.d.ts.map +0 -1
- package/dist/config-D_jVTH_D.d.ts +0 -58
- package/dist/config-D_jVTH_D.d.ts.map +0 -1
- package/dist/context-aSaHw-ac.d.ts.map +0 -1
- package/dist/element-provider-C_nBsftD.d.ts.map +0 -1
- package/dist/features/chat/chat-card.d.ts +0 -7
- package/dist/features/chat/chat-card.d.ts.map +0 -1
- package/dist/features/chat/chat-card.js +0 -2
- package/dist/features/chat/chat-header/chat-header.d.ts +0 -12
- package/dist/features/chat/chat-header/chat-header.d.ts.map +0 -1
- package/dist/features/chat/chat-header/chat-header.js +0 -2
- package/dist/features/chat/chat-header/chat-menu.d.ts +0 -7
- package/dist/features/chat/chat-header/chat-menu.d.ts.map +0 -1
- package/dist/features/chat/chat-header/chat-menu.js.map +0 -1
- package/dist/features/chat/chat-history/chat-history-empty.d.ts +0 -7
- package/dist/features/chat/chat-history/chat-history-empty.d.ts.map +0 -1
- package/dist/features/chat/chat-history/chat-history-empty.js.map +0 -1
- package/dist/features/chat/chat-history/chat-history.d.ts +0 -7
- package/dist/features/chat/chat-history/chat-history.d.ts.map +0 -1
- package/dist/features/chat/chat-history/chat-history.js +0 -2
- package/dist/features/chat/chat-main/chat-main.d.ts +0 -10
- package/dist/features/chat/chat-main/chat-main.d.ts.map +0 -1
- package/dist/features/chat/chat-main/chat-main.js +0 -3
- package/dist/features/chat/chat-main/use-chat.d.ts +0 -23
- package/dist/features/chat/chat-main/use-chat.d.ts.map +0 -1
- package/dist/features/chat/chat-main/use-chat.js +0 -3
- package/dist/features/chat/chat-main/use-initial-messages.d.ts +0 -22
- package/dist/features/chat/chat-main/use-initial-messages.d.ts.map +0 -1
- package/dist/features/chat/chat-main/use-initial-messages.js +0 -2
- package/dist/features/chat/chat-prompt-input.d.ts +0 -24
- package/dist/features/chat/chat-prompt-input.d.ts.map +0 -1
- package/dist/features/chat/chat-prompt-input.js +0 -3
- package/dist/features/chat/chat.context.d.ts +0 -28
- package/dist/features/chat/chat.context.d.ts.map +0 -1
- package/dist/features/chat/chat.context.js +0 -10
- package/dist/features/chat/chat.context.js.map +0 -1
- package/dist/features/chat/queries/use-get-chat-query.d.ts +0 -13
- package/dist/features/chat/queries/use-get-chat-query.d.ts.map +0 -1
- package/dist/features/chat/queries/use-get-chat-query.js +0 -2
- package/dist/features/chat/queries/use-get-conversation-query.d.ts.map +0 -1
- package/dist/features/chat/queries/use-list-conversations-query.d.ts.map +0 -1
- package/dist/features/chat/store.d.ts +0 -15
- package/dist/features/chat/store.d.ts.map +0 -1
- package/dist/features/chat/store.js +0 -15
- package/dist/features/chat/store.js.map +0 -1
- package/dist/features/logger/logger.d.ts +0 -2
- package/dist/features/logger/logger.js +0 -15
- package/dist/features/logger/logger.js.map +0 -1
- package/dist/locale-W5Kyyi4X.d.ts.map +0 -1
- package/dist/logger-BvmhODdq.d.ts +0 -11
- package/dist/logger-BvmhODdq.d.ts.map +0 -1
- package/dist/store-CGX9oRlE.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-
|
|
1
|
+
{"version":3,"file":"api-BP4g92-0.d.ts","names":[],"sources":["../src/features/element/types/api.ts"],"mappings":";;;KAEY,UAAA,GAAa,IAAA,CAAK,MAAA;EAC5B,OAAA;EACA,OAAA,GAAU,MAAA;AAAA,IACR,IAAA,CAAK,WAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-BODP4NVA.d.ts","names":[],"sources":["../src/features/chat/conversation/message/approval.tsx"],"mappings":";iBAsBgB,eAAA,oBAAe,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-CK5WGu6N.d.ts","names":[],"sources":["../src/features/chat/conversation/message/avatar.tsx"],"mappings":";iBAMgB,aAAA,oBAAa,GAAA,CAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callbacks-
|
|
1
|
+
{"version":3,"file":"callbacks-CQelTSwD.d.ts","names":[],"sources":["../src/features/element/types/callbacks.tsx"],"mappings":";UAAiB,SAAA;EAAA;;;;;EAMf,SAAA;EAMA;;;;;EAAA,SAAA,IAAa,IAAA,EAAM,CAAC;EAMI;;;;;EAAxB,OAAA,IAAW,KAAA;AAAA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { t as Callbacks } from "./callbacks-CQelTSwD.js";
|
|
2
|
+
import { r as RootConfig, t as ElementConfig } from "./config-BGIY5Hkg.js";
|
|
3
|
+
import { n as ElementProviderProps, t as ElementContextType } from "./element-provider-C95jVJV9.js";
|
|
4
|
+
import { t as ChatStore } from "./use-create-chat-store-Ccd5tvho.js";
|
|
5
|
+
import { n as useGetConversationQuery } from "./use-get-conversation-query-D5bRlewH.js";
|
|
6
|
+
import { t as Frame } from "./frame-BCN71hMj.js";
|
|
7
|
+
import { t as Header } from "./header-BDGB3zKD.js";
|
|
8
|
+
import { t as History } from "./history-DDUj4LMJ.js";
|
|
9
|
+
import { t as Main } from "./main-D8VgMjmL.js";
|
|
10
|
+
import { t as PromptInput$1 } from "./prompt-input-bclKhGu3.js";
|
|
11
|
+
import { t as Conversation } from "./conversation-CtpcctHL.js";
|
|
12
|
+
import { t as Error } from "./chat-error-CST-PRdq.js";
|
|
13
|
+
import { StoreApi } from "zustand";
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { Logger as Logger$1, createLogger, noopLogger as noopLogger$1, resolveLogger as resolveLogger$1 } from "@chatsdk-dev/logging";
|
|
16
|
+
import { Agent, AgentSettingsCore, ClientTool, ConversationMessage } from "@chatsdk-dev/api-client";
|
|
17
|
+
import { UseChatHelpers } from "@ai-sdk/react";
|
|
18
|
+
import { AppError, AppError as AppError$1, describeAppError } from "@chatsdk-dev/agent";
|
|
19
|
+
import { PromptInputMessage } from "@chatsdk-dev/ui/molecules/ai/prompt-input";
|
|
20
|
+
import { ChatStatus } from "ai";
|
|
21
|
+
|
|
22
|
+
//#region src/features/chat/main/use-prompt-input.d.ts
|
|
23
|
+
type UsePromptInputResult = {
|
|
24
|
+
status: ChatStatus;
|
|
25
|
+
agent: Agent | undefined;
|
|
26
|
+
allowedModels: AgentSettingsCore["allowedModels"];
|
|
27
|
+
defaultModel?: AgentSettingsCore["defaultModel"];
|
|
28
|
+
modelGroups?: AgentSettingsCore["allowedModels"][number]["chef"][];
|
|
29
|
+
hasMultipleModels: boolean | undefined;
|
|
30
|
+
hasActions: boolean;
|
|
31
|
+
promptInputRef: ReturnType<typeof useChat$1>["promptInputRef"];
|
|
32
|
+
onSubmit: ReturnType<typeof useChat$1>["handleSubmit"];
|
|
33
|
+
onStop: ReturnType<typeof useChat$1>["stop"];
|
|
34
|
+
};
|
|
35
|
+
declare function usePromptInput(): UsePromptInputResult;
|
|
36
|
+
declare namespace index_parts_d_exports {
|
|
37
|
+
export { Conversation, Error, Frame, Header, History, Main, PromptInput$1 as PromptInput, Provider };
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/index.d.ts
|
|
41
|
+
type ChatSDKWindowApi = {
|
|
42
|
+
setConfig: (config: Partial<RootConfig>, merge?: boolean) => void;
|
|
43
|
+
};
|
|
44
|
+
declare global {
|
|
45
|
+
interface Window {
|
|
46
|
+
chatsdk?: ChatSDKWindowApi;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/features/chat/provider/provider.d.ts
|
|
51
|
+
type ClientToolDefinition<TInput = unknown, TOutput = unknown> = Omit<ClientTool, "name"> & {
|
|
52
|
+
execute: (input: TInput) => TOutput | Promise<TOutput>;
|
|
53
|
+
};
|
|
54
|
+
type ChatProps = {
|
|
55
|
+
agentId: string;
|
|
56
|
+
withTools?: boolean;
|
|
57
|
+
withAvatar?: boolean;
|
|
58
|
+
withReasoning?: boolean;
|
|
59
|
+
clientTools?: Record<string, ClientToolDefinition>;
|
|
60
|
+
persistConversation?: boolean;
|
|
61
|
+
autoScrollWhileStreaming?: boolean;
|
|
62
|
+
};
|
|
63
|
+
type ChatData = {
|
|
64
|
+
agentId: string;
|
|
65
|
+
};
|
|
66
|
+
type ChatElementProps = ElementConfig<ChatProps, ChatData>;
|
|
67
|
+
declare const defaultChatProps: ChatProps;
|
|
68
|
+
declare const ElementProvider: {
|
|
69
|
+
({
|
|
70
|
+
config,
|
|
71
|
+
component,
|
|
72
|
+
callbacks,
|
|
73
|
+
children
|
|
74
|
+
}: ElementProviderProps<ChatProps, ChatData>): React.JSX.Element;
|
|
75
|
+
displayName: string;
|
|
76
|
+
}, useElement: () => ElementContextType<ChatProps, ChatData>, useElementConfig: () => RootConfig, useElementCallbacks: () => Callbacks<ChatData>, useElementComponent: () => ChatProps;
|
|
77
|
+
interface ChatStateValue {
|
|
78
|
+
agentId: string;
|
|
79
|
+
messages: ConversationMessage[];
|
|
80
|
+
status: UseChatHelpers<ConversationMessage>["status"];
|
|
81
|
+
sendMessage: UseChatHelpers<ConversationMessage>["sendMessage"];
|
|
82
|
+
stop: UseChatHelpers<ConversationMessage>["stop"];
|
|
83
|
+
respondToToolApproval: (params: {
|
|
84
|
+
approvalId: string;
|
|
85
|
+
approved: boolean;
|
|
86
|
+
reason?: string;
|
|
87
|
+
}) => void;
|
|
88
|
+
/** Record thumbs up/down; re-sending the active sentiment clears it. */
|
|
89
|
+
recordMessageFeedback: (params: {
|
|
90
|
+
messageId: string;
|
|
91
|
+
sentiment: "positive" | "negative";
|
|
92
|
+
}) => void;
|
|
93
|
+
/** Active conversation (messages, feedback map, toolTitles); undefined for a
|
|
94
|
+
* brand-new chat before its first send. */
|
|
95
|
+
conversation: ReturnType<typeof useGetConversationQuery>["data"];
|
|
96
|
+
toolTitles: Record<string, string> | undefined;
|
|
97
|
+
/** Stream/transport error as a typed `AppError` (undefined when none). */
|
|
98
|
+
appError?: AppError;
|
|
99
|
+
/** Re-run the last turn after a failure (clears the error first). */
|
|
100
|
+
retryLastMessage: () => void;
|
|
101
|
+
/** Clear the current error without retrying. */
|
|
102
|
+
dismissError: () => void;
|
|
103
|
+
promptInputRef: React.RefObject<HTMLTextAreaElement | null>;
|
|
104
|
+
handleSubmit: (message: PromptInputMessage, event: React.SubmitEvent<HTMLFormElement>) => void;
|
|
105
|
+
resetChat: () => void;
|
|
106
|
+
store: StoreApi<ChatStore>;
|
|
107
|
+
}
|
|
108
|
+
declare function useChat$1(): ChatStateValue;
|
|
109
|
+
/**
|
|
110
|
+
* Allows access to a mutable global chat state via zustand store
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* const { tab, setTab } = useChatStore((s) => s.tab);
|
|
114
|
+
*
|
|
115
|
+
* @param selector - A function that returns a subset of the chat state.
|
|
116
|
+
* @returns The selected subset of the chat state.
|
|
117
|
+
*/
|
|
118
|
+
declare function useChatStore<T>(selector: (state: ChatStore) => T): T;
|
|
119
|
+
interface ChatProviderProps extends ChatElementProps {
|
|
120
|
+
children: React.ReactNode;
|
|
121
|
+
}
|
|
122
|
+
declare function Provider({
|
|
123
|
+
children,
|
|
124
|
+
...rest
|
|
125
|
+
}: ChatProviderProps): React.JSX.Element | null;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/features/chat/chat-element.d.ts
|
|
128
|
+
declare function ChatElement(props: ChatElementProps): import("react").JSX.Element;
|
|
129
|
+
//#endregion
|
|
130
|
+
export { UsePromptInputResult as C, index_parts_d_exports as S, Logger$1 as _, ClientToolDefinition as a, noopLogger$1 as b, defaultChatProps as c, useElement as d, useElementCallbacks as f, ChatSDKWindowApi as g, AppError$1 as h, ChatProps as i, useChat$1 as l, useElementConfig as m, ChatData as n, ElementProvider as o, useElementComponent as p, ChatElementProps as r, Provider as s, ChatElement as t, useChatStore as u, createLogger as v, usePromptInput as w, resolveLogger$1 as x, describeAppError as y };
|
|
131
|
+
//# sourceMappingURL=chat-element-BbBl5CDM.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-element-BbBl5CDM.d.ts","names":[],"sources":["../src/features/chat/main/use-prompt-input.tsx","../src/features/chat/index.parts.ts","../src/index.ts","../src/features/chat/provider/provider.tsx","../src/features/chat/chat-element.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;KAMY,oBAAA;EACV,MAAA,EAAQ,UAAA;EACR,KAAA,EAAO,KAAA;EACP,aAAA,EAAe,iBAAA;EACf,YAAA,GAAe,iBAAA;EACf,WAAA,GAAc,iBAAA;EACd,iBAAA;EACA,UAAA;EACA,cAAA,EAAgB,UAAA,QAAkB,SAAA;EAClC,QAAA,EAAU,UAAA,QAAkB,SAAA;EAC5B,MAAA,EAAQ,UAAA,QAAkB,SAAA;AAAA;AAAA,iBAGZ,cAAA,IAAkB,oBAAoB;AAAA;;;;;KEd1C,gBAAA;EACV,SAAA,GAAY,MAAA,EAAQ,OAAO,CAAC,UAAA,GAAa,KAAA;AAAA;AAAA,QAGnC,MAAA;EAAA,UACI,MAAA;IACR,OAAA,GAAU,gBAAgB;EAAA;AAAA;;;KCyBlB,oBAAA,wCAA4D,IAAA,CACtE,UAAA;EAGA,OAAA,GAAU,KAAA,EAAO,MAAA,KAAW,OAAA,GAAU,OAAA,CAAQ,OAAA;AAAA;AAAA,KAGpC,SAAA;EACV,OAAA;EACA,SAAA;EACA,UAAA;EACA,aAAA;EACA,WAAA,GAAc,MAAM,SAAS,oBAAA;EAE7B,mBAAA;EAGA,wBAAA;AAAA;AAAA,KAEU,QAAA;EAAa,OAAO;AAAA;AAAA,KACpB,gBAAA,GAAmB,aAAA,CAAc,SAAA,EAAW,QAAA;AAAA,cAE3C,gBAAA,EAAkB,SAO9B;AAAA,cAGC,eAAA;IAAA;;;;;;;uBACU,kBAAA,CAAA,SAAA,EAAA,QAAA,2BAAA,UAAA,6BAES,SAAA,CAAA,QAAA,8BACA,SAAA;AAAA,UAKX,cAAA;EACR,OAAA;EACA,QAAA,EAAU,mBAAA;EACV,MAAA,EAAQ,cAAA,CAAe,mBAAA;EACvB,WAAA,EAAa,cAAA,CAAe,mBAAA;EAC5B,IAAA,EAAM,cAAA,CAAe,mBAAA;EACrB,qBAAA,GAAwB,MAAA;IACtB,UAAA;IACA,QAAA;IACA,MAAA;EAAA;EHtEgB;EGyElB,qBAAA,GAAwB,MAAA;IACtB,SAAA;IACA,SAAA;EAAA;EHlFF;;EGsFA,YAAA,EAAc,UAAA,QAAkB,uBAAA;EAChC,UAAA,EAAY,MAAA;EHrFZ;EGuFA,QAAA,GAAW,QAAA;EHtFX;EGwFA,gBAAA;EHtFA;EGwFA,YAAA;EACA,cAAA,EAAgB,KAAA,CAAM,SAAA,CAAU,mBAAA;EAChC,YAAA,GACE,OAAA,EAAS,kBAAA,EACT,KAAA,EAAO,KAAA,CAAM,WAAA,CAAY,eAAA;EAE3B,SAAA;EACA,KAAA,EAAO,QAAA,CAAS,SAAA;AAAA;AAAA,iBAqIF,SAAA,IAAO,cAAA;;;AHlOY;AAGnC;;;;AAAsD;;iBGoPtC,YAAA,IAAgB,QAAA,GAAW,KAAA,EAAO,SAAA,KAAc,CAAA,GAAC,CAAA;AAAA,UA2BvD,iBAAA,SAA0B,gBAAgB;EAClD,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,iBAGF,QAAA;EAAW,QAAA;EAAA,GAAa;AAAA,GAAQ,iBAAA,GAAiB,KAAA,CAAA,GAAA,CAAA,OAAA;;;iBCnSjD,WAAA,CAAY,KAAA,EAAO,gBAAgB,mBAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/features/chat/error/chat-error.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Inline banner for a stream/transport failure. Renders nothing until the
|
|
4
|
+
* session reports an `appError`; then shows localized copy with a Dismiss
|
|
5
|
+
* action and — only when the error is retryable (network/rate-limit/5xx) — a
|
|
6
|
+
* Retry that re-runs the last turn. The optimistic user message survives the
|
|
7
|
+
* failure, so retry resends it.
|
|
8
|
+
*/
|
|
9
|
+
declare function Error(): import("react").JSX.Element | null;
|
|
10
|
+
declare namespace Error {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Error as t };
|
|
15
|
+
//# sourceMappingURL=chat-error-CST-PRdq.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-error-CST-PRdq.d.ts","names":[],"sources":["../src/features/chat/error/chat-error.tsx"],"mappings":";;AAmBA;;;;AAAqB;;iBAAL,KAAA,oBAAK,GAAA,CAAA,OAAA;AAAA,kBAAL,KAAA;EAAA,IAAK,WAAA;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as RootConfig } from "./config-
|
|
1
|
+
import { r as RootConfig } from "./config-BGIY5Hkg.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/features/element/chatsdk-provider.d.ts
|
|
@@ -12,4 +12,4 @@ declare function ChatSDKProvider({
|
|
|
12
12
|
}: ChatSDKProviderProps): React.ReactNode;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ChatSDKProvider as t };
|
|
15
|
-
//# sourceMappingURL=chatsdk-provider-
|
|
15
|
+
//# sourceMappingURL=chatsdk-provider-t1GEgRPY.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatsdk-provider-t1GEgRPY.d.ts","names":[],"sources":["../src/features/element/chatsdk-provider.tsx"],"mappings":";;;;UAKU,oBAAA;EACR,MAAA,GAAS,UAAA;EACT,QAAA,EAAU,KAAA,CAAM,SAAS;AAAA;AAAA,iBAGX,eAAA;EACd,MAAA;EACA;AAAA,GACC,oBAAA,GAAoB,KAAA,CAAA,SAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as Callbacks } from "./callbacks-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { t as Callbacks } from "./callbacks-CQelTSwD.js";
|
|
2
|
+
import { t as APIOptions } from "./api-BP4g92-0.js";
|
|
3
|
+
import { t as Context } from "./context-D4dOffYT.js";
|
|
4
|
+
import { n as Resource, t as Locale } from "./config-f4Go--5s.js";
|
|
5
|
+
import { n as LocaleConfig } from "./locale-v_zPGRhE.js";
|
|
6
|
+
import { i as ThemeConfig } from "./theme-K7rbPHc1.js";
|
|
7
|
+
import { Logger } from "@chatsdk-dev/logging";
|
|
8
8
|
|
|
9
9
|
//#region src/features/element/utils.d.ts
|
|
10
10
|
type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P] };
|
|
@@ -97,16 +97,11 @@ interface RootConfig {
|
|
|
97
97
|
*/
|
|
98
98
|
translations?: TranslationsConfig;
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* @details interface Logger {
|
|
104
|
-
* info?: (message: string) => void;
|
|
105
|
-
* warn?: (message: string) => void;
|
|
106
|
-
* error?: (message: string) => void;
|
|
107
|
-
* } | (message: string) => void
|
|
100
|
+
* Structured logger the agent + components emit into. Provide any subset of
|
|
101
|
+
* methods — the rest are filled (missing levels fall back to `info`, then a
|
|
102
|
+
* no-op), so a bare `{ info }` works. Omit to discard everything.
|
|
108
103
|
*/
|
|
109
|
-
logger?:
|
|
104
|
+
logger?: Partial<Logger>;
|
|
110
105
|
/**
|
|
111
106
|
* Options configuration for the component
|
|
112
107
|
* @type OptionsConfig
|
|
@@ -115,10 +110,16 @@ interface RootConfig {
|
|
|
115
110
|
*/
|
|
116
111
|
options?: OptionsConfig;
|
|
117
112
|
}
|
|
118
|
-
type
|
|
113
|
+
type ComponentField<T> = Partial<T> extends T ? {
|
|
119
114
|
component?: T & {
|
|
120
115
|
defaultProps?: T;
|
|
121
116
|
};
|
|
117
|
+
} : {
|
|
118
|
+
component: T & {
|
|
119
|
+
defaultProps?: T;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
type ElementConfig<T extends object, CallbackDataType = unknown> = Partial<T> & ComponentField<T> & {
|
|
122
123
|
/**
|
|
123
124
|
* Default props for the component, will be merged with the component props and the global component props
|
|
124
125
|
* Merge order for props resolution from highest to lowest precedence:
|
|
@@ -140,11 +141,11 @@ type ElementConfig<T extends object, CallbackDataType = unknown> = T & {
|
|
|
140
141
|
* api?: APIOptions;
|
|
141
142
|
* locale?: LocaleConfig;
|
|
142
143
|
* translations?: TranslationsConfig;
|
|
143
|
-
* logger?:
|
|
144
|
+
* logger?: Logger;
|
|
144
145
|
* }
|
|
145
146
|
*/
|
|
146
147
|
config?: Partial<RootConfig>;
|
|
147
148
|
} & Callbacks<CallbackDataType>;
|
|
148
149
|
//#endregion
|
|
149
150
|
export { DeepPartial as a, TranslationsConfig as i, OptionsConfig as n, deepMerge as o, RootConfig as r, mergeConfigs as s, ElementConfig as t };
|
|
150
|
-
//# sourceMappingURL=config-
|
|
151
|
+
//# sourceMappingURL=config-BGIY5Hkg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-BGIY5Hkg.d.ts","names":[],"sources":["../src/features/element/utils.ts","../src/features/element/types/translations.ts","../src/features/element/types/config.ts"],"mappings":";;;;;;;;;KAMY,WAAA,oBACE,CAAA,IAAK,CAAA,CAAE,CAAA,mBAAoB,WAAA,CAAY,CAAA,CAAE,CAAA,KAAM,CAAA,CAAE,CAAA;AAAA,iBAQ/C,SAAA,WAAoB,MAAA,eAClC,MAAA,EAAQ,CAAA,KACL,OAAA,EAAS,WAAA,CAAY,CAAA,MACvB,CAAA;AAAA,iBAuIa,YAAA,IACX,IAAA,EAAM,OAAA,CAAQ,UAAA,MAChB,OAAA,CAAQ,UAAA;;;KCxJC,kBAAA,GAAqB,WAAA,CAAY,MAAA,CAAO,MAAA,EAAQ,QAAA;;;KCMhD,aAAA,GAAgB,MAAM;AAAA,UAEjB,UAAA;EFLL;;;;;;;;;;;;;;EEoBV,OAAA,GAAU,OAAA;EFnBE;;;;;;;;;AAAkD;AAQhE;;;;;;;;;;EEgCE,KAAA,GAAQ,OAAA,CAAQ,WAAA;EFhCkB;;;;;;;;AAGhC;AAuIJ;;;;;;;;;;EEtFE,GAAA,GAAM,UAAA;EFuFW;;;;AACE;;;;EE/EnB,MAAA,GAAS,YAAA;EDzEmB;;;;;;;;;;;;;ECuF5B,YAAA,GAAe,kBAAA;;;;AAjFjB;;EAuFE,MAAA,GAAS,OAAA,CAAQ,MAAA;EAvFe;AAAA;AAElC;;;;EA4FE,OAAA,GAAU,aAAA;AAAA;AAAA,KAIP,cAAA,MACH,OAAA,CAAQ,CAAA,UAAW,CAAA;EACb,SAAA,GAAY,CAAA;IAAM,YAAA,GAAe,CAAA;EAAA;AAAA;EACjC,SAAA,EAAW,CAAA;IAAM,YAAA,GAAe,CAAA;EAAA;AAAA;AAAA,KAE5B,aAAA,iDAGR,OAAA,CAAQ,CAAA,IACV,cAAA,CAAe,CAAA;EArEf;;;;;;;;;;;EAiFE,YAAA,GAAe,CAAA;EAzBjB;;;AAAuB;AACxB;;;;;;;;EAqCG,MAAA,GAAS,OAAA,CAAQ,UAAA;AAAA,IACf,SAAA,CAAU,gBAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//#region src/i18n/resources/en.json
|
|
2
|
+
var en_default = { chatsdk_elements: {
|
|
3
|
+
"copied": "Copied",
|
|
4
|
+
"just-now": "Just now",
|
|
5
|
+
"errors": {
|
|
6
|
+
"unknown": "Something went wrong. Please try again.",
|
|
7
|
+
"network_unreachable": "Can't reach the server. Check your connection and try again.",
|
|
8
|
+
"bad_request": "That request couldn't be processed. Please try again.",
|
|
9
|
+
"unauthorized": "You're not signed in. Please sign in and try again.",
|
|
10
|
+
"forbidden": "You don't have access to this.",
|
|
11
|
+
"not_found": "We couldn't find what you were looking for.",
|
|
12
|
+
"conflict": "That action conflicts with the current state. Please refresh and retry.",
|
|
13
|
+
"payload_too_large": "That message is too large to send.",
|
|
14
|
+
"payment_required": "This AI Chat is currently unavailable. If you are the owner, please check your account.",
|
|
15
|
+
"feature_disabled": "This feature is currently unavailable.",
|
|
16
|
+
"model_provider_error": "The assistant is temporarily unavailable. Please try again.",
|
|
17
|
+
"model_rate_limited": "Too many requests right now. Please retry in a moment.",
|
|
18
|
+
"tool_call_failed": "An action couldn't be completed. Please try again.",
|
|
19
|
+
"tool_execution_failed": "An action couldn't be completed. Please try again.",
|
|
20
|
+
"sandbox_unavailable": "The workspace is temporarily unavailable. Please try again.",
|
|
21
|
+
"internal_server_error": "Something went wrong on our end. Please try again.",
|
|
22
|
+
"retry": "Retry",
|
|
23
|
+
"dismiss": "Dismiss"
|
|
24
|
+
},
|
|
25
|
+
"chat-card": { "insufficient-credits-error": "This AI Chat is currently unavailable. If you are the owner, please check your account." },
|
|
26
|
+
"conversation": {
|
|
27
|
+
"tool-approval": {
|
|
28
|
+
"request-prompt": "Allow the agent to run <strong>{{title}}</strong>?",
|
|
29
|
+
"deny": "Deny",
|
|
30
|
+
"accept": "Accept",
|
|
31
|
+
"accepted-note": "You allowed the agent to run <strong>{{title}}</strong>.",
|
|
32
|
+
"denied-note": "You denied running <strong>{{title}}</strong>."
|
|
33
|
+
},
|
|
34
|
+
"tool": {
|
|
35
|
+
"parameters": "Parameters",
|
|
36
|
+
"result": "Result",
|
|
37
|
+
"error": "Error",
|
|
38
|
+
"status": {
|
|
39
|
+
"approval-requested": "Awaiting",
|
|
40
|
+
"approval-responded": "Responded",
|
|
41
|
+
"input-available": "Running",
|
|
42
|
+
"input-streaming": "Pending",
|
|
43
|
+
"output-available": "Completed",
|
|
44
|
+
"output-denied": "Denied",
|
|
45
|
+
"output-error": "Error"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"reasoning": {
|
|
49
|
+
"thinking": "Thinking...",
|
|
50
|
+
"thought-for": "Thought for {{seconds}} seconds",
|
|
51
|
+
"thought-brief": "Thought for a few seconds"
|
|
52
|
+
},
|
|
53
|
+
"sources": { "used": "Used {{count}} sources" },
|
|
54
|
+
"activity": {
|
|
55
|
+
"thinking": "Thinking...",
|
|
56
|
+
"working": "Working..."
|
|
57
|
+
},
|
|
58
|
+
"message": {
|
|
59
|
+
"like": "Like",
|
|
60
|
+
"dislike": "Dislike",
|
|
61
|
+
"copy": "Copy"
|
|
62
|
+
},
|
|
63
|
+
"model-selector": {
|
|
64
|
+
"title": "Model Selector",
|
|
65
|
+
"search-placeholder": "Search models...",
|
|
66
|
+
"empty": "No models found."
|
|
67
|
+
},
|
|
68
|
+
"web-search": "Search"
|
|
69
|
+
},
|
|
70
|
+
"header": {
|
|
71
|
+
"history-tab-label": "History",
|
|
72
|
+
"menu": {
|
|
73
|
+
"new-conversation-menu-item-label": "Start New Chat",
|
|
74
|
+
"history-menu-item-label": "View History"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"history": {
|
|
78
|
+
"empty": {
|
|
79
|
+
"title": "No conversations yet...",
|
|
80
|
+
"description": "Start a conversation to see your history here"
|
|
81
|
+
},
|
|
82
|
+
"unitled-conversation": "Untitled conversation",
|
|
83
|
+
"new-conversation": "Start New Conversation"
|
|
84
|
+
}
|
|
85
|
+
} };
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/i18n/config.ts
|
|
88
|
+
const fallbackLng = "en";
|
|
89
|
+
const languages = ["en"];
|
|
90
|
+
const defaultNamespace = "chatsdk_elements";
|
|
91
|
+
const resources = { en: en_default };
|
|
92
|
+
//#endregion
|
|
93
|
+
export { resources as i, fallbackLng as n, languages as r, defaultNamespace as t };
|
|
94
|
+
|
|
95
|
+
//# sourceMappingURL=config-Wk7C7AJs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-Wk7C7AJs.js","names":[],"sources":["../src/i18n/resources/en.json","../src/i18n/config.ts"],"sourcesContent":["","import en from \"./resources/en.json\";\n\n// types\nexport type Locale = (typeof languages)[number];\nexport type Resource = typeof en;\n\n// config\nexport const fallbackLng = \"en\" as const;\nexport const languages = [fallbackLng] as const;\n// single library-scoped namespace so resources merge into any host i18next\n// instance without colliding with the host's own namespaces\nexport const defaultNamespace = \"chatsdk_elements\";\n\nexport const resources = {\n en,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACOA,MAAa,cAAc;AAC3B,MAAa,YAAY,CAAA,IAAY;AAGrC,MAAa,mBAAmB;AAEhC,MAAa,YAAY,EACvB,IAAA,WACF"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
//#region src/i18n/resources/en.json.d.ts
|
|
2
|
+
declare let chatsdk_elements: {
|
|
3
|
+
copied: string;
|
|
4
|
+
"just-now": string;
|
|
5
|
+
errors: {
|
|
6
|
+
unknown: string;
|
|
7
|
+
network_unreachable: string;
|
|
8
|
+
bad_request: string;
|
|
9
|
+
unauthorized: string;
|
|
10
|
+
forbidden: string;
|
|
11
|
+
not_found: string;
|
|
12
|
+
conflict: string;
|
|
13
|
+
payload_too_large: string;
|
|
14
|
+
payment_required: string;
|
|
15
|
+
feature_disabled: string;
|
|
16
|
+
model_provider_error: string;
|
|
17
|
+
model_rate_limited: string;
|
|
18
|
+
tool_call_failed: string;
|
|
19
|
+
tool_execution_failed: string;
|
|
20
|
+
sandbox_unavailable: string;
|
|
21
|
+
internal_server_error: string;
|
|
22
|
+
retry: string;
|
|
23
|
+
dismiss: string;
|
|
24
|
+
};
|
|
25
|
+
"chat-card": {
|
|
26
|
+
"insufficient-credits-error": string;
|
|
27
|
+
};
|
|
28
|
+
conversation: {
|
|
29
|
+
"tool-approval": {
|
|
30
|
+
"request-prompt": string;
|
|
31
|
+
deny: string;
|
|
32
|
+
accept: string;
|
|
33
|
+
"accepted-note": string;
|
|
34
|
+
"denied-note": string;
|
|
35
|
+
};
|
|
36
|
+
tool: {
|
|
37
|
+
parameters: string;
|
|
38
|
+
result: string;
|
|
39
|
+
error: string;
|
|
40
|
+
status: {
|
|
41
|
+
"approval-requested": string;
|
|
42
|
+
"approval-responded": string;
|
|
43
|
+
"input-available": string;
|
|
44
|
+
"input-streaming": string;
|
|
45
|
+
"output-available": string;
|
|
46
|
+
"output-denied": string;
|
|
47
|
+
"output-error": string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
reasoning: {
|
|
51
|
+
thinking: string;
|
|
52
|
+
"thought-for": string;
|
|
53
|
+
"thought-brief": string;
|
|
54
|
+
};
|
|
55
|
+
sources: {
|
|
56
|
+
used: string;
|
|
57
|
+
};
|
|
58
|
+
activity: {
|
|
59
|
+
thinking: string;
|
|
60
|
+
working: string;
|
|
61
|
+
};
|
|
62
|
+
message: {
|
|
63
|
+
like: string;
|
|
64
|
+
dislike: string;
|
|
65
|
+
copy: string;
|
|
66
|
+
};
|
|
67
|
+
"model-selector": {
|
|
68
|
+
title: string;
|
|
69
|
+
"search-placeholder": string;
|
|
70
|
+
empty: string;
|
|
71
|
+
};
|
|
72
|
+
"web-search": string;
|
|
73
|
+
};
|
|
74
|
+
header: {
|
|
75
|
+
"history-tab-label": string;
|
|
76
|
+
menu: {
|
|
77
|
+
"new-conversation-menu-item-label": string;
|
|
78
|
+
"history-menu-item-label": string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
history: {
|
|
82
|
+
empty: {
|
|
83
|
+
title: string;
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
"unitled-conversation": string;
|
|
87
|
+
"new-conversation": string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
declare namespace __json_default_export {
|
|
91
|
+
export { chatsdk_elements };
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/i18n/config.d.ts
|
|
95
|
+
type Locale = (typeof languages)[number];
|
|
96
|
+
type Resource = typeof __json_default_export;
|
|
97
|
+
declare const fallbackLng: "en";
|
|
98
|
+
declare const languages: readonly ["en"];
|
|
99
|
+
declare const defaultNamespace = "chatsdk_elements";
|
|
100
|
+
declare const resources: {
|
|
101
|
+
en: {
|
|
102
|
+
chatsdk_elements: {
|
|
103
|
+
copied: string;
|
|
104
|
+
"just-now": string;
|
|
105
|
+
errors: {
|
|
106
|
+
unknown: string;
|
|
107
|
+
network_unreachable: string;
|
|
108
|
+
bad_request: string;
|
|
109
|
+
unauthorized: string;
|
|
110
|
+
forbidden: string;
|
|
111
|
+
not_found: string;
|
|
112
|
+
conflict: string;
|
|
113
|
+
payload_too_large: string;
|
|
114
|
+
payment_required: string;
|
|
115
|
+
feature_disabled: string;
|
|
116
|
+
model_provider_error: string;
|
|
117
|
+
model_rate_limited: string;
|
|
118
|
+
tool_call_failed: string;
|
|
119
|
+
tool_execution_failed: string;
|
|
120
|
+
sandbox_unavailable: string;
|
|
121
|
+
internal_server_error: string;
|
|
122
|
+
retry: string;
|
|
123
|
+
dismiss: string;
|
|
124
|
+
};
|
|
125
|
+
"chat-card": {
|
|
126
|
+
"insufficient-credits-error": string;
|
|
127
|
+
};
|
|
128
|
+
conversation: {
|
|
129
|
+
"tool-approval": {
|
|
130
|
+
"request-prompt": string;
|
|
131
|
+
deny: string;
|
|
132
|
+
accept: string;
|
|
133
|
+
"accepted-note": string;
|
|
134
|
+
"denied-note": string;
|
|
135
|
+
};
|
|
136
|
+
tool: {
|
|
137
|
+
parameters: string;
|
|
138
|
+
result: string;
|
|
139
|
+
error: string;
|
|
140
|
+
status: {
|
|
141
|
+
"approval-requested": string;
|
|
142
|
+
"approval-responded": string;
|
|
143
|
+
"input-available": string;
|
|
144
|
+
"input-streaming": string;
|
|
145
|
+
"output-available": string;
|
|
146
|
+
"output-denied": string;
|
|
147
|
+
"output-error": string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
reasoning: {
|
|
151
|
+
thinking: string;
|
|
152
|
+
"thought-for": string;
|
|
153
|
+
"thought-brief": string;
|
|
154
|
+
};
|
|
155
|
+
sources: {
|
|
156
|
+
used: string;
|
|
157
|
+
};
|
|
158
|
+
activity: {
|
|
159
|
+
thinking: string;
|
|
160
|
+
working: string;
|
|
161
|
+
};
|
|
162
|
+
message: {
|
|
163
|
+
like: string;
|
|
164
|
+
dislike: string;
|
|
165
|
+
copy: string;
|
|
166
|
+
};
|
|
167
|
+
"model-selector": {
|
|
168
|
+
title: string;
|
|
169
|
+
"search-placeholder": string;
|
|
170
|
+
empty: string;
|
|
171
|
+
};
|
|
172
|
+
"web-search": string;
|
|
173
|
+
};
|
|
174
|
+
header: {
|
|
175
|
+
"history-tab-label": string;
|
|
176
|
+
menu: {
|
|
177
|
+
"new-conversation-menu-item-label": string;
|
|
178
|
+
"history-menu-item-label": string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
history: {
|
|
182
|
+
empty: {
|
|
183
|
+
title: string;
|
|
184
|
+
description: string;
|
|
185
|
+
};
|
|
186
|
+
"unitled-conversation": string;
|
|
187
|
+
"new-conversation": string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
//#endregion
|
|
193
|
+
export { languages as a, fallbackLng as i, Resource as n, resources as o, defaultNamespace as r, Locale as t };
|
|
194
|
+
//# sourceMappingURL=config-f4Go--5s.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-f4Go--5s.d.ts","names":["copied","errors","unknown","network_unreachable","bad_request","unauthorized","forbidden","not_found","conflict","payload_too_large","payment_required","feature_disabled","model_provider_error","model_rate_limited","tool_call_failed","tool_execution_failed","sandbox_unavailable","internal_server_error","retry","dismiss","conversation","deny","accept","tool","parameters","result","error","status","reasoning","thinking","sources","used","activity","working","message","like","dislike","copy","title","empty","header","menu","history","description","chatsdk_elements"],"sources":["../src/i18n/resources/en.json.d.ts","../src/i18n/config.ts"],"mappings":";YAAW,gBAAA;EACPA,MAAAA;EACA,UAAA;EACAC,MAAAA;IACIC,OAAAA;IACAC,mBAAAA;IACAC,WAAAA;IACAC,YAAAA;IACAC,SAAAA;IACAC,SAAAA;IACAC,QAAAA;IACAC,iBAAAA;IACAC,gBAAAA;IACAC,gBAAAA;IACAC,oBAAAA;IACAC,kBAAAA;IACAC,gBAAAA;IACAC,qBAAAA;IACAC,mBAAAA;IACAC,qBAAAA;IACAC,KAAAA;IACAC,OAAAA;EAAAA;EAEJ,WAAA;IACI,4BAAA;EAAA;EAEJC,YAAAA;IACI,eAAA;MACI,gBAAA;MACAC,IAAAA;MACAC,MAAAA;MACA,eAAA;MACA,aAAA;IAAA;IAEJC,IAAAA;MACIC,UAAAA;MACAC,MAAAA;MACAC,KAAAA;MACAC,MAAAA;QACI,oBAAA;QACA,oBAAA;QACA,iBAAA;QACA,iBAAA;QACA,kBAAA;QACA,eAAA;QACA,cAAA;MAAA;IAAA;IAGRC,SAAAA;MACIC,QAAAA;MACA,aAAA;MACA,eAAA;IAAA;IAEJC,OAAAA;MACIC,IAAAA;IAAAA;IAEJC,QAAAA;MACIH,QAAAA;MACAI,OAAAA;IAAAA;IAEJC,OAAAA;MACIC,IAAAA;MACAC,OAAAA;MACAC,IAAAA;IAAAA;IAEJ,gBAAA;MACIC,KAAAA;MACA,oBAAA;MACAC,KAAAA;IAAAA;IAEJ,YAAA;EAAA;EAEJC,MAAAA;IACI,mBAAA;IACAC,IAAAA;MACI,kCAAA;MACA,yBAAA;IAAA;EAAA;EAGRC,OAAAA;IACIH,KAAAA;MACID,KAAAA;MACAK,WAAAA;IAAAA;IAEJ,sBAAA;IACA,kBAAA;EAAA;AAAA;AAAA,kBAIU,qBAAA;EAAA,SACP,gBAAgB;AAAA;;;KCvFf,MAAA,WAAiB,SAAS;AAAA,KAC1B,QAAA,UAAkB,qBAAE;AAAA,cAGnB,WAAA;AAAA,cACA,SAAA;AAAA,cAGA,gBAAA;AAAA,cAEA,SAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/features/chat/conversation/message/content.d.ts
|
|
2
|
+
interface ContentProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
declare function MessageContent({
|
|
6
|
+
children
|
|
7
|
+
}: ContentProps): import("react").JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { MessageContent as t };
|
|
10
|
+
//# sourceMappingURL=content-BoiPVwgM.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-BoiPVwgM.d.ts","names":[],"sources":["../src/features/chat/conversation/message/content.tsx"],"mappings":";UAIU,YAAA;EACR,QAAA,EAAU,KAAA,CAAM,SAAS;AAAA;AAAA,iBAIX,cAAA;EAAiB;AAAA,GAAY,YAAY,mBAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-D4dOffYT.d.ts","names":[],"sources":["../src/features/element/types/context.ts"],"mappings":";KACY,OAAA;EAEV,MAAA;IACE,EAAA;IACA,MAAA,GAAS,MAAM;EAAA;EAGjB,KAAA;IACE,EAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/features/chat/conversation/conversation.d.ts
|
|
2
|
+
declare function Conversation(): import("react").JSX.Element;
|
|
3
|
+
declare namespace Conversation {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Conversation as t };
|
|
8
|
+
//# sourceMappingURL=conversation-CtpcctHL.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-CtpcctHL.d.ts","names":[],"sources":["../src/features/chat/conversation/conversation.tsx"],"mappings":";iBAkBgB,YAAA,oBAAY,GAAA,CAAA,OAAA;AAAA,kBAAZ,YAAA;EAAA,IAAY,WAAA;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-BPB94kUd.d.ts","names":[],"sources":["../src/features/chat/conversation/message/copy.tsx"],"mappings":";iBAegB,WAAA,oBAAW,GAAA,CAAA,OAAA"}
|