@8wave/ai-elements 0.127.0-beta.1 → 0.127.0-beta.2
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/_chunks/{Agent-DytagI8S.js → Agent-nB9V45mr.js} +354 -276
- package/dist/_chunks/Agent-nB9V45mr.js.map +1 -0
- package/dist/_chunks/{Document-BdWEd1tb.js → Document-Dm5GM40t.js} +7 -7
- package/dist/_chunks/{Document-BdWEd1tb.js.map → Document-Dm5GM40t.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-C3BxAdui.js → PkFilePreview-qTCDbut0.js} +3 -3
- package/dist/_chunks/{PkFilePreview-C3BxAdui.js.map → PkFilePreview-qTCDbut0.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-WAm7QSvT.js → PkFilePreviewDialog-m5d4zZDi.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-WAm7QSvT.js.map → PkFilePreviewDialog-m5d4zZDi.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-DM-d0hCD.js → PkImageEditorDialog-aekpEqWD.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-DM-d0hCD.js.map → PkImageEditorDialog-aekpEqWD.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-Bl1KbGOj.js → PkSelectionActions-DDhRX6cs.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-Bl1KbGOj.js.map → PkSelectionActions-DDhRX6cs.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-CU1ZUUCf.js → PkStreamingMarkdown-5WfFCjFv.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-CU1ZUUCf.js.map → PkStreamingMarkdown-5WfFCjFv.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-B-Y47Q_K.js → PkToolChatFile-C3B9q2OL.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-B-Y47Q_K.js.map → PkToolChatFile-C3B9q2OL.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-B41xrF8k.js → PkToolRequestGeolocation-D4pYnCW5.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-B41xrF8k.js.map → PkToolRequestGeolocation-D4pYnCW5.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-BuCGuHwd.js → PkToolRequestOAuthConnection-DnnRY2rt.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-BuCGuHwd.js.map → PkToolRequestOAuthConnection-DnnRY2rt.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-Bjm6uhOK.js → PkToolShowArtifact-DQln7TsF.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-Bjm6uhOK.js.map → PkToolShowArtifact-DQln7TsF.js.map} +1 -1
- package/dist/_chunks/{PkToolShowChart-B6TKQ3aT.js → PkToolShowChart-DfDB9BeZ.js} +2 -2
- package/dist/_chunks/{PkToolShowChart-B6TKQ3aT.js.map → PkToolShowChart-DfDB9BeZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-5tg4xbrh.js → PkToolShowContactForm-Dkb8AiqL.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-5tg4xbrh.js.map → PkToolShowContactForm-Dkb8AiqL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-CiNtS-vX.js → PkToolShowDiagram-B2dBogUW.js} +2 -2
- package/dist/_chunks/{PkToolShowDiagram-CiNtS-vX.js.map → PkToolShowDiagram-B2dBogUW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-eh8mXr6u.js → PkToolShowForm-CtDcwJs4.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-eh8mXr6u.js.map → PkToolShowForm-CtDcwJs4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DedpXD-b.js → PkToolShowImageGallery-dLMI3SM7.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DedpXD-b.js.map → PkToolShowImageGallery-dLMI3SM7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-D24EIc4v.js → PkToolShowProductList-DE6BEdr_.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-D24EIc4v.js.map → PkToolShowProductList-DE6BEdr_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Dnw1x7dT.js → PkToolShowSources-vSr080EU.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Dnw1x7dT.js.map → PkToolShowSources-vSr080EU.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-CxNx1Uf6.js → PkToolShowSuggestedReply-HuKn3loC.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-CxNx1Uf6.js.map → PkToolShowSuggestedReply-HuKn3loC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-CDcJiprr.js → PkToolShowVideo-BL-9CiYe.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-CDcJiprr.js.map → PkToolShowVideo-BL-9CiYe.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-UXqb0XEJ.js → PkToolShowWebPages-DQfODZdD.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-UXqb0XEJ.js.map → PkToolShowWebPages-DQfODZdD.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-DJAB0Bgw.js → chatImagePolicy-Cj5lkTVq.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-DJAB0Bgw.js.map → chatImagePolicy-Cj5lkTVq.js.map} +1 -1
- package/dist/_chunks/text-CCurUhdH.js +13 -0
- package/dist/_chunks/text-CCurUhdH.js.map +1 -0
- package/dist/_chunks/{utils-78zQeKDO.js → utils-CRy3kzE3.js} +458 -160
- package/dist/_chunks/utils-CRy3kzE3.js.map +1 -0
- package/dist/ai-elements.es.js +5971 -5636
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotLocalFolders.d.ts +2 -0
- package/dist-vue/PkChatbotLocalFolders.js +1 -0
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-Da4XChe8.js → Agent-DKefaJeG.js} +445 -377
- package/dist-vue/_chunks/Agent-DKefaJeG.js.map +1 -0
- package/dist-vue/_chunks/{Document-CsQsUQYa.js → Document-B49E_gxT.js} +18 -18
- package/dist-vue/_chunks/{Document-CsQsUQYa.js.map → Document-B49E_gxT.js.map} +1 -1
- package/dist-vue/_chunks/{Media-CMiWEpdQ.js → Media-DtudATme.js} +12 -2
- package/dist-vue/_chunks/Media-DtudATme.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-CITKd3qD.js → PkChatbot-8Fqlhwq5.js} +10 -9
- package/dist-vue/_chunks/PkChatbot-8Fqlhwq5.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotAuth-SfTyFbq1.js → PkChatbotAuth-CIK2CFy-.js} +8 -8
- package/dist-vue/_chunks/{PkChatbotAuth-SfTyFbq1.js.map → PkChatbotAuth-CIK2CFy-.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-DI_8T5a4.js → PkChatbotEmptyState-C_htXOSW.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DI_8T5a4.js.map → PkChatbotEmptyState-C_htXOSW.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotInput-CJ5lPtpH.js +658 -0
- package/dist-vue/_chunks/PkChatbotInput-CJ5lPtpH.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js +126 -0
- package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-BWdINCAX.js → PkChatbotMessages-DY8r4UKe.js} +49 -49
- package/dist-vue/_chunks/{PkChatbotMessages-BWdINCAX.js.map → PkChatbotMessages-DY8r4UKe.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-CTwsRpkv.js → PkChatbotStepPayload-BLjH1pkP.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-CTwsRpkv.js.map → PkChatbotStepPayload-BLjH1pkP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-C9xeMg-k.js → PkChatbotStepToolDetail-wIZmkvr-.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-C9xeMg-k.js.map → PkChatbotStepToolDetail-wIZmkvr-.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-DsubpIKa.js → PkChatbotSteps-DG09GyCb.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotSteps-DsubpIKa.js.map → PkChatbotSteps-DG09GyCb.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DW1a9ZNl.js → PkChatbotViewChat-DTKfW1kr.js} +684 -666
- package/dist-vue/_chunks/PkChatbotViewChat-DTKfW1kr.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-DdniYy1b.js → PkChatbotViewConversations-NA_PCvZR.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewConversations-DdniYy1b.js.map → PkChatbotViewConversations-NA_PCvZR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-CMoromsf.js → PkChatbotViewFiles-D8_Khdu2.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-CMoromsf.js.map → PkChatbotViewFiles-D8_Khdu2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-BT7I3GhB.js → PkChatbotViewProfile-iTBiQVsZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-BT7I3GhB.js.map → PkChatbotViewProfile-iTBiQVsZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-Dxp-U8QU.js → PkFilePreview-sSb1Mmr2.js} +4 -4
- package/dist-vue/_chunks/{PkFilePreview-Dxp-U8QU.js.map → PkFilePreview-sSb1Mmr2.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-BE-NpN18.js → PkFilePreviewDialog-DquXMRJD.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-BE-NpN18.js.map → PkFilePreviewDialog-DquXMRJD.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-BiuOD6Hr.js → PkImageEditorDialog-CrjpCier.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-BiuOD6Hr.js.map → PkImageEditorDialog-CrjpCier.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-DMmt35Mq.js → PkStreamingMarkdown-CgKFdzCI.js} +23 -23
- package/dist-vue/_chunks/{PkStreamingMarkdown-DMmt35Mq.js.map → PkStreamingMarkdown-CgKFdzCI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-BdNron14.js → PkToolChatFile-IEQxfzjM.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-BdNron14.js.map → PkToolChatFile-IEQxfzjM.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DeI7kLlR.js → PkToolRequestGeolocation-BmrbMPke.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DeI7kLlR.js.map → PkToolRequestGeolocation-BmrbMPke.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C0lE3Qbk.js → PkToolRequestOAuthConnection-yKgXyOUN.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C0lE3Qbk.js.map → PkToolRequestOAuthConnection-yKgXyOUN.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-C0Gb-LW2.js → PkToolShowArtifact-CF90yFCe.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-C0Gb-LW2.js.map → PkToolShowArtifact-CF90yFCe.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-oJmzU10F.js → PkToolShowChart-CDR8ag4q.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-oJmzU10F.js.map → PkToolShowChart-CDR8ag4q.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-D4IAna-K.js → PkToolShowContactForm-DAdKUU4X.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-D4IAna-K.js.map → PkToolShowContactForm-DAdKUU4X.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-ClGpv5Cr.js → PkToolShowDiagram-Do20AvFb.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-ClGpv5Cr.js.map → PkToolShowDiagram-Do20AvFb.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-ByfNodNh.js → PkToolShowForm-DfFmPOt6.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-ByfNodNh.js.map → PkToolShowForm-DfFmPOt6.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DJ9JNDWK.js → PkToolShowImageGallery-DA6KW2g_.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DJ9JNDWK.js.map → PkToolShowImageGallery-DA6KW2g_.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CcFseg28.js → PkToolShowProductList-FcDDabPI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CcFseg28.js.map → PkToolShowProductList-FcDDabPI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DznWqWK3.js → PkToolShowSources-afCYBONq.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-DznWqWK3.js.map → PkToolShowSources-afCYBONq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BZqnfpwO.js → PkToolShowSuggestedReply-C863wgtU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BZqnfpwO.js.map → PkToolShowSuggestedReply-C863wgtU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-niwkzqTN.js → PkToolShowVideo-kUiwxRlz.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-niwkzqTN.js.map → PkToolShowVideo-kUiwxRlz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BsMVJ6c7.js → PkToolShowWebPages-Dw9D1__u.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BsMVJ6c7.js.map → PkToolShowWebPages-Dw9D1__u.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-Cd_2UI_O.js → createChatbotApiClient-DzrHp52e.js} +66 -65
- package/dist-vue/_chunks/createChatbotApiClient-DzrHp52e.js.map +1 -0
- package/dist-vue/_chunks/localFolders-ChZp8dLu.js +353 -0
- package/dist-vue/_chunks/localFolders-ChZp8dLu.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-Dir9Rc7K.js → useChatbotStore-DZlc7dzK.js} +1289 -1152
- package/dist-vue/_chunks/useChatbotStore-DZlc7dzK.js.map +1 -0
- package/dist-vue/_chunks/useSettledSelection-1bfM1fzx.js +55 -0
- package/dist-vue/_chunks/useSettledSelection-1bfM1fzx.js.map +1 -0
- package/dist-vue/_chunks/{utils-CibsowVe.js → utils-CY0jFRnG.js} +126 -107
- package/dist-vue/_chunks/utils-CY0jFRnG.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
- package/dist-vue/composables.js +62 -10
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +4100 -4086
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +32 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +7 -1
- package/dist-vue/packages/components/src/chat/PkChatbotLocalFolders.d.ts +31 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +3 -2
- package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +1 -1
- package/dist-vue/packages/composable/src/chatbot/index.d.ts +1 -0
- package/dist-vue/packages/composable/src/chatbot/localFolders.d.ts +137 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +46 -3
- package/dist-vue/packages/models/src/schema/Agent.d.ts +24 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/HostTool.d.ts +5 -2
- package/dist-vue/packages/models/src/schema/LocalFolder.d.ts +78 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +10 -0
- package/dist-vue/packages/models/src/schema/PageAccess.d.ts +4 -1
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +8 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +8 -0
- package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-DytagI8S.js.map +0 -1
- package/dist/_chunks/text-5F7L8EHi.js +0 -5
- package/dist/_chunks/text-5F7L8EHi.js.map +0 -1
- package/dist/_chunks/utils-78zQeKDO.js.map +0 -1
- package/dist-vue/_chunks/Agent-Da4XChe8.js.map +0 -1
- package/dist-vue/_chunks/Media-CMiWEpdQ.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-CITKd3qD.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-UqcSEi8l.js +0 -708
- package/dist-vue/_chunks/PkChatbotInput-UqcSEi8l.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-DW1a9ZNl.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-Cd_2UI_O.js.map +0 -1
- package/dist-vue/_chunks/message-DuibQyHy.js +0 -61
- package/dist-vue/_chunks/message-DuibQyHy.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-Dir9Rc7K.js.map +0 -1
- package/dist-vue/_chunks/utils-CibsowVe.js.map +0 -1
package/dist-vue/_chunks/{PkStreamingMarkdown-DMmt35Mq.js → PkStreamingMarkdown-CgKFdzCI.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { W as e } from "./Agent-
|
|
1
|
+
import { W as e } from "./Agent-DKefaJeG.js";
|
|
2
2
|
import { a as t, o as n, s as r } from "./useLightbox-CQ8WtQNC.js";
|
|
3
3
|
import "./src-nb8MU1sh.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { i, n as a } from "./url-validation-CJV9pp4v.js";
|
|
5
|
+
import { n as o } from "./useShortUrlResolver-KJDk7QLj.js";
|
|
6
|
+
import { v as s } from "./utils-CY0jFRnG.js";
|
|
7
7
|
import { computed as c, createElementBlock as l, defineComponent as u, inject as d, nextTick as f, onBeforeUnmount as p, onMounted as ee, openBlock as m, provide as h, ref as g, toRef as te, unref as ne, useTemplateRef as re, watch as _ } from "vue";
|
|
8
8
|
import { useI18n as ie } from "vue-i18n";
|
|
9
9
|
import { refThrottled as v } from "@vueuse/core";
|
|
@@ -3212,7 +3212,7 @@ function Ma(t, n) {
|
|
|
3212
3212
|
let r = t();
|
|
3213
3213
|
if (r?.holdExternalImages) return {
|
|
3214
3214
|
hosts: (r.imageHosts ?? []).map(e),
|
|
3215
|
-
platformOrigins: [
|
|
3215
|
+
platformOrigins: [i(n())].filter((e) => !!e)
|
|
3216
3216
|
};
|
|
3217
3217
|
}));
|
|
3218
3218
|
}
|
|
@@ -3234,7 +3234,7 @@ function Fa(e, t, n) {
|
|
|
3234
3234
|
return r.protocol === "data:" || r.protocol === "blob:" ? !0 : t.platformOrigins.includes(r.origin) ? Pa.test(r.pathname) : r.protocol === "https:" && t.hosts.includes(r.hostname);
|
|
3235
3235
|
}
|
|
3236
3236
|
function Ia() {
|
|
3237
|
-
let e = d(ja, void 0), t =
|
|
3237
|
+
let e = d(ja, void 0), t = o(), n = g(/* @__PURE__ */ new Set()), r = () => typeof window > "u" ? "https://localhost/" : window.location.href, i = (e) => t.resolve(e).value.url ?? e;
|
|
3238
3238
|
return {
|
|
3239
3239
|
isGated: c(() => !!e?.value),
|
|
3240
3240
|
canLoad: (t) => {
|
|
@@ -3336,7 +3336,7 @@ var Ya = (e, t) => {
|
|
|
3336
3336
|
}
|
|
3337
3337
|
},
|
|
3338
3338
|
setup(e) {
|
|
3339
|
-
let
|
|
3339
|
+
let i = e, { t: u } = ie({ useScope: "global" }), d = null;
|
|
3340
3340
|
function h() {
|
|
3341
3341
|
return d ||= import("beautiful-mermaid"), d;
|
|
3342
3342
|
}
|
|
@@ -3400,18 +3400,18 @@ var Ya = (e, t) => {
|
|
|
3400
3400
|
}] });
|
|
3401
3401
|
let b = new W.Renderer(), ce = (e) => e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">"), le = /^(?:javascript|data|vbscript|file):/i, x = !1, ue = (e) => ce(e.replace(/^https?:\/\/(?:www\.)?/i, "").replace(/\/$/, "")).replace(/\//g, "/<wbr>");
|
|
3402
3402
|
b.link = function({ href: e, title: t, text: n, tokens: r }) {
|
|
3403
|
-
let i = this.parser.parseInline(r),
|
|
3404
|
-
if (!
|
|
3405
|
-
let s = x && n ===
|
|
3406
|
-
return `<a href="${ce(
|
|
3403
|
+
let i = this.parser.parseInline(r), o = (e ?? "").trim().replace(/[\x00-\x1f]/g, "");
|
|
3404
|
+
if (!o || le.test(o)) return i;
|
|
3405
|
+
let s = x && n === o, c = t || (s ? o : ""), l = c ? ` title="${ce(c)}"` : "", u = a(o) ? "" : " target=\"_blank\" rel=\"noopener noreferrer\"";
|
|
3406
|
+
return `<a href="${ce(o)}"${l}${u}>${s ? ue(o) : i}</a>`;
|
|
3407
3407
|
}, b.table = function(e) {
|
|
3408
3408
|
x = !0;
|
|
3409
3409
|
try {
|
|
3410
3410
|
let t = e.header.map((e) => ce(this.parser.parseInline(e.tokens, this.parser.textRenderer))), n = (e) => `<tr role="row">${e.map((e, n) => {
|
|
3411
3411
|
let r = this.parser.parseInline(e.tokens), i = e.align ? ` align="${e.align}"` : "";
|
|
3412
3412
|
return e.header ? `<th role="columnheader"${i}>${r}</th>` : `<td role="cell" data-label="${t[n] ?? ""}"${i}><span>${r}</span></td>`;
|
|
3413
|
-
}).join("")}</tr>`, r = e.rows.length ? `<tbody role="rowgroup">${e.rows.map(n).join("")}</tbody>` : "",
|
|
3414
|
-
return `<div class="table-wrapper u-table-scroll"><table class="${
|
|
3413
|
+
}).join("")}</tr>`, r = e.rows.length ? `<tbody role="rowgroup">${e.rows.map(n).join("")}</tbody>` : "", a = e.header.length >= 3 && e.rows.length ? "u-table u-table--stack" : "u-table", o = i.copyTables && !i.loading && e.rows.length ? `<div class="pk-markdown-table-actions"><button type="button" class="vv-button vv-button--action-quiet-small" data-copy-table>${Ea(u("action.copyTable"))}</button></div>` : "";
|
|
3414
|
+
return `<div class="table-wrapper u-table-scroll"><table class="${a}" role="table"><thead role="rowgroup">${n(e.header)}</thead>${r}</table></div>${o}\n`;
|
|
3415
3415
|
} finally {
|
|
3416
3416
|
x = !1;
|
|
3417
3417
|
}
|
|
@@ -3438,7 +3438,7 @@ var Ya = (e, t) => {
|
|
|
3438
3438
|
pe,
|
|
3439
3439
|
cn,
|
|
3440
3440
|
fe
|
|
3441
|
-
], S = re("container"), he = v(te(
|
|
3441
|
+
], S = re("container"), he = v(te(i, "markdown"), Za), ge = c(() => i.tailLength ? s(he.value, i.tailLength) : he.value), { resolveText: _e } = o(), ve = _e(ge), C = Ia(), ye = t(), be = c(() => {
|
|
3442
3442
|
let e = me.reduce((e, t) => t(e), ve.value);
|
|
3443
3443
|
return Aa(W.parse(e, {
|
|
3444
3444
|
async: !1,
|
|
@@ -3469,11 +3469,11 @@ var Ya = (e, t) => {
|
|
|
3469
3469
|
}, 2e3));
|
|
3470
3470
|
}
|
|
3471
3471
|
async function Ce() {
|
|
3472
|
-
if (
|
|
3472
|
+
if (i.loading) return;
|
|
3473
3473
|
await f();
|
|
3474
3474
|
let e = S.value?.querySelectorAll("pre.mermaid:not([data-rendered])");
|
|
3475
3475
|
if (!e?.length) return;
|
|
3476
|
-
let { renderMermaidSVG: t, THEMES: n } = await h(), r =
|
|
3476
|
+
let { renderMermaidSVG: t, THEMES: n } = await h(), r = i.isDark ? n["github-dark"] : n["github-light"];
|
|
3477
3477
|
for (let n of Array.from(e)) {
|
|
3478
3478
|
if (!n.isConnected) continue;
|
|
3479
3479
|
let e = n.textContent?.trim();
|
|
@@ -3513,7 +3513,7 @@ var Ya = (e, t) => {
|
|
|
3513
3513
|
await f();
|
|
3514
3514
|
let e = S.value?.querySelectorAll("pre.mermaid[data-rendered]");
|
|
3515
3515
|
if (!e?.length) return;
|
|
3516
|
-
let { renderMermaidSVG: t, THEMES: n } = await h(), r =
|
|
3516
|
+
let { renderMermaidSVG: t, THEMES: n } = await h(), r = i.isDark ? n["github-dark"] : n["github-light"];
|
|
3517
3517
|
for (let n of Array.from(e)) {
|
|
3518
3518
|
if (!n.isConnected) continue;
|
|
3519
3519
|
let e = n.dataset.code;
|
|
@@ -3533,7 +3533,7 @@ var Ya = (e, t) => {
|
|
|
3533
3533
|
S.value?.addEventListener("error", De, !0);
|
|
3534
3534
|
}), p(() => {
|
|
3535
3535
|
S.value?.removeEventListener("error", De, !0);
|
|
3536
|
-
}), _([be, () =>
|
|
3536
|
+
}), _([be, () => i.loading], Ce, { immediate: !0 }), _(() => i.isDark, Ee), _(be, we, { immediate: !0 }), _(be, Te, { immediate: !0 }), ye && _(be, (e) => {
|
|
3537
3537
|
e.includes("<img") && ye.join();
|
|
3538
3538
|
}, { immediate: !0 });
|
|
3539
3539
|
let w = 0, Oe = {
|
|
@@ -3544,8 +3544,8 @@ var Ya = (e, t) => {
|
|
|
3544
3544
|
fadeAndScale: "pk-streaming-markdown-fade-and-scale"
|
|
3545
3545
|
};
|
|
3546
3546
|
function T(e, t) {
|
|
3547
|
-
let n = document.createElement("span"), r =
|
|
3548
|
-
return n.style.cssText = `animation:${r} ${
|
|
3547
|
+
let n = document.createElement("span"), r = i.animation ? Oe[i.animation] : "none";
|
|
3548
|
+
return n.style.cssText = `animation:${r} ${i.animationDuration} ease-out ${t}ms both;display:inline-block`, n.textContent = e, n.addEventListener("animationend", () => {
|
|
3549
3549
|
let t = n.parentNode;
|
|
3550
3550
|
t && (t.replaceChild(document.createTextNode(e), n), t.normalize());
|
|
3551
3551
|
}, { once: !0 }), n;
|
|
@@ -3563,7 +3563,7 @@ var Ya = (e, t) => {
|
|
|
3563
3563
|
return n;
|
|
3564
3564
|
}
|
|
3565
3565
|
function ke() {
|
|
3566
|
-
if (!S.value || !
|
|
3566
|
+
if (!S.value || !i.loading || !i.animation) return;
|
|
3567
3567
|
let e = D(S.value), t = 0, n = 0;
|
|
3568
3568
|
for (let r of e) {
|
|
3569
3569
|
let e = r.textContent || "", i = t, a = t + e.length;
|
|
@@ -3582,7 +3582,7 @@ var Ya = (e, t) => {
|
|
|
3582
3582
|
}
|
|
3583
3583
|
return _(be, async () => {
|
|
3584
3584
|
await f(), ke();
|
|
3585
|
-
}, { immediate: !0 }), _(() =>
|
|
3585
|
+
}, { immediate: !0 }), _(() => i.markdown, (e, t) => {
|
|
3586
3586
|
(!e || t && e.length < t.length) && (w = 0);
|
|
3587
3587
|
}), (e, t) => (m(), l("div", {
|
|
3588
3588
|
ref: "container",
|
|
@@ -3594,4 +3594,4 @@ var Ya = (e, t) => {
|
|
|
3594
3594
|
});
|
|
3595
3595
|
export { Ia as a, Ma as i, Ja as n, Ka as r, Qa as t };
|
|
3596
3596
|
|
|
3597
|
-
//# sourceMappingURL=PkStreamingMarkdown-
|
|
3597
|
+
//# sourceMappingURL=PkStreamingMarkdown-CgKFdzCI.js.map
|