@templatical/editor 0.56.0 → 0.56.1
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/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-CpZ7UeAZ.js} +3 -3
- package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
- package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cy05P-iO.js} +53 -53
- package/dist/{AiPanels-DAsnX-a3.js → AiPanels-CwKmXzyr.js} +1 -1
- package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-DgqJHnza.js} +8 -8
- package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-CxHJmuOh.js} +3 -3
- package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-DEmNZkEG.js} +44 -44
- package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-Bmlf05Il.js} +11 -11
- package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-C27GCMvK.js} +7 -7
- package/dist/{CommentsPanel-C5qG17Ki.js → CommentsPanel-B5NqPMmY.js} +1 -1
- package/dist/{CommentsSidebar-C7CWcUYZ.js → CommentsSidebar-BDrcrDxS.js} +42 -42
- package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-D8dqjm3F.js} +6 -6
- package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
- package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-uwuzeMSW.js} +87 -87
- package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
- package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-CDK_9D7P.js} +8 -8
- package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-BSolF7Fd.js} +3 -3
- package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-C8yc9dxt.js} +7 -7
- package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-FI4I8asn.js} +1 -1
- package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-B1nl2ZMT.js} +12 -12
- package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-DJlf3VbS.js} +1 -1
- package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-Dqco128s.js} +156 -156
- package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
- package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-xIEF0Y3Z.js} +2 -2
- package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CQlCP_XC.js} +46 -46
- package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-BXA32Fx6.js} +23 -23
- package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
- package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
- package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-CYFtR8zv.js} +41 -41
- package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-BbaL17HO.js} +20 -20
- package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-DhB1CSpg.js} +1 -1
- package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-3BRl8u5l.js} +21 -21
- package/dist/{Toolbar-XT-uGA9J.js → Toolbar-pzNIakGM.js} +656 -656
- package/dist/{TplModal-7NQq5-VW.js → TplModal-WNuWhHZm.js} +4 -4
- package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu--T-Qp_mH.js} +15 -15
- package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
- package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
- package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-CjfCPceb.js} +11 -11
- package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-12OMwVyN.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-PFjTrl0y.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-BMjzvApH.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-C2gpq4kP.js} +107 -107
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js → AiPanels-Cx3PE2mE.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-CnkyjPEu.js} +11 -11
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DncZ-HDf.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-B3HkuENF.js.map → BlockPreviewCanvas-CCSEzL46.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-CRztnw4M.js} +2 -2
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-IuLYT2x7.js} +8 -8
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js → CommentsPanel-lgjJNrrY.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js → CommentsSidebar-DTold7iy.js} +214 -214
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-8aPSExrv.js} +7 -7
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-CnWQEW5g.js} +50 -50
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-CrplCzo8.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-B6MNInCL.js} +110 -110
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-TxeAl8Iq.js} +9 -9
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-DvSVx2DB.js} +4 -4
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-DvSVx2DB.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-tGK6htBl.js} +8 -8
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BVrQYz2C.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-DeuNH3re.js} +13 -13
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B2xxIU3e.js} +2 -2
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-Dze4C9VI.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-YwwRbxPc.js} +102 -102
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-BiFP2Cbx.js} +20 -20
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-BrivPMk2.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CzPkkL2s.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-VH07SzX7.js} +550 -550
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js.map → Toolbar-VH07SzX7.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-DMe6J811.js} +6 -6
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-DMe6J811.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-DkwbKhBl.js} +15 -15
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-CCCIcqe2.js} +12 -12
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-CCCIcqe2.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-D3lsO7Io.js} +925 -925
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-CE79GB1H.js} +15 -15
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
- package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
- package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CN69NlOK.js} +170 -170
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CN69NlOK.js.map} +1 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-8dlM-fU4.js} +96 -96
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-8dlM-fU4.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js → sanitizeHtml-B3njfkSy.js} +11 -11
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-BFgc3qqJ.js} +2 -2
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-GgKlXNxy.js} +2 -2
- package/dist/cdn/chunks/{src-Bfj1jHnn.js.map → src-GgKlXNxy.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-B0PDeDxl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BSU75bKk.js} +7 -7
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
- package/dist/cdn/editor.js +325 -325
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-CRX6rncm.js → composables-DreAt_0A.js} +1031 -1031
- package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-CL4tUlDC.js} +14 -14
- package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
- package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
- package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
- package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
- package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
- package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
- package/dist/dist-CiYotUR8.js +406 -0
- package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
- package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
- package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
- package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
- package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
- package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
- package/dist/{editor-modal-D9HT9bD6.js → editor-modal-BD32TXws.js} +106 -106
- package/dist/en-Dgs_-NBw.js +1 -0
- package/dist/{extensions-Cm6K4SRX.js → extensions-DKxHlSd7.js} +179 -179
- package/dist/{socialIcons-CJD6OsI7.js → socialIcons-oo4uL16Y.js} +1 -1
- package/dist/templatical-editor.js +526 -526
- package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-B4Zpk3eo.js} +3 -3
- package/dist/{useMergeTag-IoWOO679.js → useMergeTag-B5qlq8px.js} +7 -7
- package/package.json +7 -7
- package/dist/LanguageMenu-B981Av-6.js +0 -403
- package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
- package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
- package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
- package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
- package/dist/dist-0alKVRc_.js +0 -406
- package/dist/en-De3uAutQ.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as e, B as t, Ft as n, M as r, O as ee, c as i, ct as a, d as o, et as s, f as c, j as l, l as u, w as d, y as f } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
2
|
import { c as p, s as m } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
3
|
import { it as h, n as g, v as te } from "./keys-w_VRjoMu.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { n as _ } from "./useLocalizedDisplay-Cbhx208c.js";
|
|
5
|
+
import { t as v } from "./useI18n-zeWYtWSv.js";
|
|
6
6
|
import { n as y, r as b } from "./aiErrors-C3QEMB0x.js";
|
|
7
7
|
import { n as x, r as S } from "./aiImageContext-BQ5mQ6B5.js";
|
|
8
8
|
// src/components/ai/AiAltTextPopover.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -25,7 +25,7 @@ var C = ["onKeydown"], w = [
|
|
|
25
25
|
props: { blockId: {} },
|
|
26
26
|
emits: ["close", "drafting"],
|
|
27
27
|
setup(f, { emit: j }) {
|
|
28
|
-
let M = f, N = j, P = d(g, null), F = d(te, null), I = F ?
|
|
28
|
+
let M = f, N = j, P = d(g, null), F = d(te, null), I = F ? _(F) : null, L = I ? x(I.content.value, M.blockId) : null, R = s(!1), z = i(() => R.value || F !== null && !S(x(I.content.value, M.blockId), L)), B = d(h, "en"), { t: V, format: H } = v(), U = s(""), W = s(!0), G = s(!1), K = s(!1), q = s(""), J = s(null), Y = new AbortController(), X = !1;
|
|
29
29
|
function Z(e) {
|
|
30
30
|
let t = e.target;
|
|
31
31
|
W.value ? t.value = U.value : U.value = t.value;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as e, B as t, Ft as n, M as r, P as i, _ as a, c as o, ct as s, d as c, et as l, f as u, j as d, l as f, r as ee, w as p, y as m } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
2
|
import { c as h, s as g } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
3
|
+
import { n as _ } from "./useLocalizedDisplay-Cbhx208c.js";
|
|
4
|
+
import { t as v } from "./useI18n-zeWYtWSv.js";
|
|
5
|
+
import { it as y, v as b } from "./keys-w_VRjoMu.js";
|
|
6
6
|
import { n as x } from "./aiErrors-C3QEMB0x.js";
|
|
7
7
|
import { n as S, r as C } from "./aiImageContext-BQ5mQ6B5.js";
|
|
8
8
|
import { t as w } from "./ToggleSwitch-R3wCCYE6.js";
|
|
@@ -38,7 +38,7 @@ var T = ["aria-label", "onKeydown"], E = { class: "tpl:m-0 tpl:text-sm tpl:font-
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["close"],
|
|
40
40
|
setup(m, { emit: M }) {
|
|
41
|
-
let N = m, P = M, F = p(
|
|
41
|
+
let N = m, P = M, F = p(b, null), I = F ? _(F) : null, L = p(y, "en"), { t: R, format: z } = v(), B = l(N.blockIds.map((e) => ({
|
|
42
42
|
blockId: e,
|
|
43
43
|
src: F ? S(I.content.value, e)?.src ?? "" : "",
|
|
44
44
|
snapshot: F ? S(I.content.value, e) : null,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { B as e, F as t, Ft as n, M as r, Mt as i, O as a, P as o, U as s, W as ee, _ as c, c as l, ct as u, d, et as f, f as p, g as m, l as h, r as g, u as _, w as v, y } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as
|
|
2
|
+
import { a as b } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
|
+
import { t as te } from "./circle-alert-Tq7kAh9S.js";
|
|
4
4
|
import { t as x } from "./createLucideIcon-CfBdtoUw.js";
|
|
5
|
-
import { t as ne } from "./circle-alert-Tq7kAh9S.js";
|
|
6
5
|
import { t as S } from "./image-C3yuPDxx.js";
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
6
|
+
import { t as C } from "./x-DZSFHafL.js";
|
|
7
|
+
import { t as ne } from "./loader-circle-DqKWsMHO.js";
|
|
8
|
+
import { t as re } from "./send-DGB1ar02.js";
|
|
9
|
+
import { t as w } from "./sparkles-IHfEwEcd.js";
|
|
10
|
+
import { t as ie } from "./square-_Cl44UU6.js";
|
|
11
|
+
import { _ as ae, g as oe } from "./dist-CX7skkvG.js";
|
|
12
|
+
import { t as se } from "./LoadingTrack-BG8cg9xi.js";
|
|
13
13
|
import { t as ce } from "./useI18n-zeWYtWSv.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as de } from "./LoadingTrack-BG8cg9xi.js";
|
|
14
|
+
import { w as T } from "./styleConstants-CgiNKdnc.js";
|
|
15
|
+
import { it as le, v as ue } from "./keys-w_VRjoMu.js";
|
|
16
|
+
import { t as E } from "./languageName-DEEOhDWI.js";
|
|
18
17
|
import { n as D } from "./aiErrors-C3QEMB0x.js";
|
|
19
|
-
|
|
18
|
+
import { t as O } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
19
|
+
var k = x({
|
|
20
20
|
name: "file-text",
|
|
21
21
|
size: 24,
|
|
22
22
|
node: [
|
|
@@ -41,7 +41,7 @@ var O = x({
|
|
|
41
41
|
key: "z1uh3a"
|
|
42
42
|
}]
|
|
43
43
|
]
|
|
44
|
-
}),
|
|
44
|
+
}), de = x({
|
|
45
45
|
name: "message-square-plus",
|
|
46
46
|
size: 24,
|
|
47
47
|
node: [
|
|
@@ -58,7 +58,7 @@ var O = x({
|
|
|
58
58
|
key: "1fldmi"
|
|
59
59
|
}]
|
|
60
60
|
]
|
|
61
|
-
}),
|
|
61
|
+
}), fe = x({
|
|
62
62
|
name: "paperclip",
|
|
63
63
|
size: 24,
|
|
64
64
|
node: [["path", {
|
|
@@ -106,7 +106,7 @@ var O = x({
|
|
|
106
106
|
"data-testid": e.testid,
|
|
107
107
|
class: "tpl-ai-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
108
108
|
}, [
|
|
109
|
-
h("div", j, [h("div", M, [h("div", N, [c(u(
|
|
109
|
+
h("div", j, [h("div", M, [h("div", N, [c(u(w), {
|
|
110
110
|
size: 13,
|
|
111
111
|
"stroke-width": 2,
|
|
112
112
|
"aria-hidden": "true"
|
|
@@ -117,7 +117,7 @@ var O = x({
|
|
|
117
117
|
"aria-label": e.closeLabel,
|
|
118
118
|
title: e.closeLabel,
|
|
119
119
|
onClick: o[0] ||= (e) => a("close")
|
|
120
|
-
}, [c(u(
|
|
120
|
+
}, [c(u(C), {
|
|
121
121
|
size: 14,
|
|
122
122
|
"stroke-width": 2,
|
|
123
123
|
"aria-hidden": "true"
|
|
@@ -208,10 +208,10 @@ var ge = [
|
|
|
208
208
|
"background-color": "color-mix(in srgb, var(--tpl-bg) 50%, transparent)",
|
|
209
209
|
"backdrop-filter": "blur(2px)"
|
|
210
210
|
}
|
|
211
|
-
}, je = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Me = ["onClick"], Ne = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Pe = ["disabled"],
|
|
211
|
+
}, je = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Me = ["onClick"], Ne = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Pe = ["disabled"], V = {
|
|
212
212
|
key: 0,
|
|
213
213
|
class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
|
|
214
|
-
},
|
|
214
|
+
}, Fe = { class: "tpl:truncate" }, Ie = [
|
|
215
215
|
"aria-label",
|
|
216
216
|
"disabled",
|
|
217
217
|
"onClick"
|
|
@@ -250,16 +250,16 @@ var ge = [
|
|
|
250
250
|
"aria-label",
|
|
251
251
|
"title",
|
|
252
252
|
"disabled"
|
|
253
|
-
], Ye = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, H = /*#__PURE__*/
|
|
253
|
+
], Ye = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, H = /*#__PURE__*/ O(/* @__PURE__ */ y({
|
|
254
254
|
__name: "AiChatPanel",
|
|
255
255
|
props: { feature: {} },
|
|
256
256
|
emits: ["close"],
|
|
257
257
|
setup(t, { emit: y }) {
|
|
258
|
-
let
|
|
259
|
-
e(() =>
|
|
258
|
+
let x = t, O = y, { t: A, format: j } = ce(), M = v(ue, null), N = v(le, void 0), P = f(""), F = f(null), I = f(null), L = f([]), R = f([]), B = f(0);
|
|
259
|
+
e(() => x.feature.templateSession.value, () => {
|
|
260
260
|
P.value = "", L.value = [], R.value = [], B.value = 0;
|
|
261
261
|
}, { flush: "sync" });
|
|
262
|
-
let H = l(() =>
|
|
262
|
+
let H = l(() => x.feature.has("chatAttachments"));
|
|
263
263
|
function U(e) {
|
|
264
264
|
let t = he(L.value, e);
|
|
265
265
|
L.value = t.accepted;
|
|
@@ -293,10 +293,10 @@ var ge = [
|
|
|
293
293
|
function tt(e) {
|
|
294
294
|
B.value = 0, H.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
|
|
295
295
|
}
|
|
296
|
-
e(() =>
|
|
297
|
-
H.value && e.length && (U(e), P.value.trim() || (P.value = A.ai.import.prompt),
|
|
296
|
+
e(() => x.feature.importQueue.value, (e) => {
|
|
297
|
+
H.value && e.length && (U(e), P.value.trim() || (P.value = A.ai.import.prompt), x.feature.importQueue.value = [], a(() => F.value?.focus()));
|
|
298
298
|
}, { immediate: !0 });
|
|
299
|
-
let G = f(null), K = f(0), q = l(() =>
|
|
299
|
+
let G = f(null), K = f(0), q = l(() => x.feature.isTemplateEmpty.value ? [
|
|
300
300
|
A.ai.starters.emptyWelcome,
|
|
301
301
|
A.ai.starters.emptyLaunch,
|
|
302
302
|
A.ai.starters.emptyNewsletter
|
|
@@ -305,12 +305,12 @@ var ge = [
|
|
|
305
305
|
A.ai.starters.filledFriendlier,
|
|
306
306
|
A.ai.starters.filledDates,
|
|
307
307
|
A.ai.starters.filledCta
|
|
308
|
-
]), J = l(() =>
|
|
309
|
-
let e =
|
|
308
|
+
]), J = l(() => x.feature.messages.value), Y = l(() => x.feature.isRunning.value), X = l(() => {
|
|
309
|
+
let e = x.feature.failure.value;
|
|
310
310
|
return e ? D(e.error, A.ai.errors, j, N, e.context) : "";
|
|
311
|
-
}), { pause: Z, resume: nt } =
|
|
311
|
+
}), { pause: Z, resume: nt } = oe(() => {
|
|
312
312
|
K.value < q.value.length ? K.value++ : Z();
|
|
313
|
-
}, 150, { immediate: !1 }), { start: rt } =
|
|
313
|
+
}, 150, { immediate: !1 }), { start: rt } = ae(() => nt(), 100, { immediate: !1 });
|
|
314
314
|
e(() => q.value.length, (e) => {
|
|
315
315
|
Z(), K.value = 0, e > 0 && rt();
|
|
316
316
|
}, { immediate: !0 });
|
|
@@ -319,14 +319,14 @@ var ge = [
|
|
|
319
319
|
G.value && (G.value.scrollTop = G.value.scrollHeight);
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
-
e(() => J.value.length, Q), e(() => [
|
|
322
|
+
e(() => J.value.length, Q), e(() => [x.feature.failedPrompt.value, x.feature.failedAttachments.value], ([e, t]) => {
|
|
323
323
|
e && (P.value = e, L.value = [...t]);
|
|
324
324
|
}, { immediate: !0 });
|
|
325
325
|
async function $() {
|
|
326
326
|
let e = P.value.trim();
|
|
327
327
|
if (!e || Y.value) return;
|
|
328
328
|
let t = [...L.value];
|
|
329
|
-
P.value = "", L.value = [], R.value = [], Q(), await
|
|
329
|
+
P.value = "", L.value = [], R.value = [], Q(), await x.feature.send(e, t), Q();
|
|
330
330
|
}
|
|
331
331
|
function it(e) {
|
|
332
332
|
return e.undone ? A.ai.chat.undone : e.operationCount === 1 ? A.ai.chat.appliedChange : j(A.ai.chat.appliedChanges, { count: e.operationCount });
|
|
@@ -335,7 +335,7 @@ var ge = [
|
|
|
335
335
|
return e.failure ? D(e.failure.error, A.ai.errors, j, N, e.failure.context) : "";
|
|
336
336
|
}
|
|
337
337
|
function ot(e) {
|
|
338
|
-
e.undone ?
|
|
338
|
+
e.undone ? x.feature.redoMessage(e.id) : x.feature.undoMessage(e.id);
|
|
339
339
|
}
|
|
340
340
|
function st(e) {
|
|
341
341
|
Z(), P.value = e, $();
|
|
@@ -355,7 +355,7 @@ var ge = [
|
|
|
355
355
|
subtitle: u(A).ai.chat.notice,
|
|
356
356
|
testid: "ai-panel-chat",
|
|
357
357
|
"close-label": u(A).ai.chat.close,
|
|
358
|
-
onClose: a[5] ||= (e) =>
|
|
358
|
+
onClose: a[5] ||= (e) => O("close")
|
|
359
359
|
}, {
|
|
360
360
|
actions: s(() => [t.feature.canClear && J.value.length > 0 ? (r(), p("button", {
|
|
361
361
|
key: 0,
|
|
@@ -366,7 +366,7 @@ var ge = [
|
|
|
366
366
|
title: u(A).ai.chat.newChat,
|
|
367
367
|
disabled: Y.value,
|
|
368
368
|
onClick: a[0] ||= (e) => t.feature.newChat()
|
|
369
|
-
}, [c(u(
|
|
369
|
+
}, [c(u(de), {
|
|
370
370
|
size: 14,
|
|
371
371
|
"stroke-width": 2,
|
|
372
372
|
"aria-hidden": "true"
|
|
@@ -384,12 +384,12 @@ var ge = [
|
|
|
384
384
|
disabled: Y.value,
|
|
385
385
|
onChange: Xe
|
|
386
386
|
}, null, 40, Pe),
|
|
387
|
-
L.value.length ? (r(), p("div",
|
|
387
|
+
L.value.length ? (r(), p("div", V, [(r(!0), p(g, null, o(L.value, (e, t) => (r(), p("span", {
|
|
388
388
|
key: t,
|
|
389
389
|
"data-testid": "ai-chat-attachment",
|
|
390
390
|
class: "tpl:flex tpl:max-w-full tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)]"
|
|
391
391
|
}, [
|
|
392
|
-
e.type === "application/pdf" ? (r(), _(u(
|
|
392
|
+
e.type === "application/pdf" ? (r(), _(u(k), {
|
|
393
393
|
key: 0,
|
|
394
394
|
size: 12,
|
|
395
395
|
"aria-hidden": "true"
|
|
@@ -398,14 +398,14 @@ var ge = [
|
|
|
398
398
|
size: 12,
|
|
399
399
|
"aria-hidden": "true"
|
|
400
400
|
})),
|
|
401
|
-
h("span",
|
|
401
|
+
h("span", Fe, n(e.name), 1),
|
|
402
402
|
h("button", {
|
|
403
403
|
type: "button",
|
|
404
404
|
"aria-label": u(j)(u(A).ai.chat.removeAttachment, { name: e.name }),
|
|
405
405
|
disabled: Y.value,
|
|
406
406
|
class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
|
|
407
407
|
onClick: (e) => Ze(t)
|
|
408
|
-
}, [c(u(
|
|
408
|
+
}, [c(u(C), {
|
|
409
409
|
size: 12,
|
|
410
410
|
"aria-hidden": "true"
|
|
411
411
|
})], 8, Ie)
|
|
@@ -419,17 +419,17 @@ var ge = [
|
|
|
419
419
|
t.feature.keptYourVersion.value ? (r(), p("div", ze, [h("p", null, n(u(A).ai.chat.keptYourVersion), 1), h("button", {
|
|
420
420
|
type: "button",
|
|
421
421
|
disabled: Y.value,
|
|
422
|
-
class: i(u(
|
|
422
|
+
class: i(u(T)),
|
|
423
423
|
onClick: a[1] ||= (e) => t.feature.reloadTemplate()
|
|
424
424
|
}, n(u(A).ai.chat.reload), 11, Be)])) : d("", !0),
|
|
425
|
-
X.value ? (r(), p("div", Ve, [c(u(
|
|
425
|
+
X.value ? (r(), p("div", Ve, [c(u(te), {
|
|
426
426
|
size: 14,
|
|
427
427
|
"stroke-width": 2,
|
|
428
428
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
429
429
|
"aria-hidden": "true"
|
|
430
430
|
}), h("span", null, n(X.value), 1)])) : d("", !0),
|
|
431
431
|
h("div", He, [
|
|
432
|
-
u(M)?.activeLocale?.value ? (r(), p("p", Ue, n(u(j)(u(A).localization.aiActiveLanguage, { language: u(
|
|
432
|
+
u(M)?.activeLocale?.value ? (r(), p("p", Ue, n(u(j)(u(A).localization.aiActiveLanguage, { language: u(E)(u(M).activeLocale.value) })), 1)) : d("", !0),
|
|
433
433
|
ee(h("textarea", {
|
|
434
434
|
ref_key: "composer",
|
|
435
435
|
ref: F,
|
|
@@ -442,7 +442,7 @@ var ge = [
|
|
|
442
442
|
maxlength: "4000",
|
|
443
443
|
rows: "3",
|
|
444
444
|
onKeydown: ct
|
|
445
|
-
}, null, 40, We), [[
|
|
445
|
+
}, null, 40, We), [[b, P.value]]),
|
|
446
446
|
h("div", Ge, [H.value ? (r(), p("button", {
|
|
447
447
|
key: 0,
|
|
448
448
|
type: "button",
|
|
@@ -451,7 +451,7 @@ var ge = [
|
|
|
451
451
|
disabled: Y.value,
|
|
452
452
|
class: "tpl:-ml-1.5 tpl:shrink-0 tpl:rounded-md tpl:p-1.5 tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
|
|
453
453
|
onClick: a[3] ||= (e) => I.value?.click()
|
|
454
|
-
}, [c(u(
|
|
454
|
+
}, [c(u(fe), {
|
|
455
455
|
size: 16,
|
|
456
456
|
"aria-hidden": "true"
|
|
457
457
|
})], 8, Ke)) : d("", !0), Y.value ? (r(), p("button", {
|
|
@@ -462,7 +462,7 @@ var ge = [
|
|
|
462
462
|
"aria-label": u(A).ai.chat.stop,
|
|
463
463
|
title: u(A).ai.chat.stop,
|
|
464
464
|
onClick: a[4] ||= (e) => t.feature.stop()
|
|
465
|
-
}, [c(u(
|
|
465
|
+
}, [c(u(ie), {
|
|
466
466
|
size: 16,
|
|
467
467
|
"stroke-width": 2,
|
|
468
468
|
"aria-hidden": "true"
|
|
@@ -475,7 +475,7 @@ var ge = [
|
|
|
475
475
|
title: u(A).ai.chat.send,
|
|
476
476
|
disabled: !P.value.trim(),
|
|
477
477
|
onClick: $
|
|
478
|
-
}, [c(u(
|
|
478
|
+
}, [c(u(re), {
|
|
479
479
|
size: 16,
|
|
480
480
|
"stroke-width": 2,
|
|
481
481
|
"aria-hidden": "true"
|
|
@@ -489,12 +489,12 @@ var ge = [
|
|
|
489
489
|
ref_key: "messagesContainer",
|
|
490
490
|
ref: G,
|
|
491
491
|
class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
|
|
492
|
-
}, [t.feature.isLoadingHistory.value ? (r(), p("div", ve, [c(u(
|
|
492
|
+
}, [t.feature.isLoadingHistory.value ? (r(), p("div", ve, [c(u(ne), {
|
|
493
493
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
494
494
|
size: 24,
|
|
495
495
|
"stroke-width": 2,
|
|
496
496
|
"aria-hidden": "true"
|
|
497
|
-
}), h("p", ye, n(u(A).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (r(), p("div", be, [c(u(
|
|
497
|
+
}), h("p", ye, n(u(A).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (r(), p("div", be, [c(u(w), {
|
|
498
498
|
size: 32,
|
|
499
499
|
"stroke-width": 1.5,
|
|
500
500
|
class: "tpl:text-[var(--tpl-text-dim)]",
|
|
@@ -502,11 +502,11 @@ var ge = [
|
|
|
502
502
|
}), h("p", xe, n(u(A).ai.chat.placeholder), 1)])) : (r(), p("div", Se, [(r(!0), p(g, null, o(J.value, (e) => (r(), p("div", {
|
|
503
503
|
key: e.id,
|
|
504
504
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
505
|
-
}, [typeof e.locale == "string" ? (r(), p("span", Ce, n(u(
|
|
505
|
+
}, [typeof e.locale == "string" ? (r(), p("span", Ce, n(u(E)(e.locale)), 1)) : d("", !0), e.role === "user" ? (r(), p("div", we, [m(n(e.text) + " ", 1), (r(!0), p(g, null, o(e.attachments, (e, t) => (r(), p("span", {
|
|
506
506
|
key: t,
|
|
507
507
|
"data-testid": "ai-chat-history-attachment",
|
|
508
508
|
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs"
|
|
509
|
-
}, [e.kind === "pdf" ? (r(), _(u(
|
|
509
|
+
}, [e.kind === "pdf" ? (r(), _(u(k), {
|
|
510
510
|
key: 0,
|
|
511
511
|
size: 12,
|
|
512
512
|
"aria-hidden": "true"
|
|
@@ -515,12 +515,12 @@ var ge = [
|
|
|
515
515
|
size: 12,
|
|
516
516
|
"aria-hidden": "true"
|
|
517
517
|
})), m(n(e.name), 1)]))), 128))])) : (r(), p("div", Te, [
|
|
518
|
-
e.text === "" && e.status === "streaming" ? (r(), _(
|
|
518
|
+
e.text === "" && e.status === "streaming" ? (r(), _(se, { key: 0 })) : e.text === "" ? d("", !0) : (r(), p("div", Ee, n(e.text), 1)),
|
|
519
519
|
e.operationCount > 0 ? (r(), p("div", De, [h("span", null, n(it(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (r(), p("button", {
|
|
520
520
|
key: 0,
|
|
521
521
|
type: "button",
|
|
522
522
|
"data-testid": "ai-chat-undo",
|
|
523
|
-
class: i(u(
|
|
523
|
+
class: i(u(T)),
|
|
524
524
|
disabled: Y.value,
|
|
525
525
|
onClick: (t) => ot(e)
|
|
526
526
|
}, [e.undone ? (r(), _(u(pe), {
|
|
@@ -6,7 +6,7 @@ var d = /*#__PURE__*/ u(/* @__PURE__ */ c({
|
|
|
6
6
|
__name: "AiPanels",
|
|
7
7
|
props: { feature: {} },
|
|
8
8
|
setup(c) {
|
|
9
|
-
let u = s(() => import("./AiChatPanel-
|
|
9
|
+
let u = s(() => import("./AiChatPanel-Cy05P-iO.js")), d = c, f = { chat: u }, p = r(() => {
|
|
10
10
|
let e = d.feature.panel.value;
|
|
11
11
|
return e !== null && e in f ? f[e] : null;
|
|
12
12
|
});
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { B as e, Ft as t, M as n, Mt as r, P as i, W as a, _ as o, c as s, ct as c, d as l, et as u, f as d, g as f, k as ee, l as p, r as m, w as h, y as g } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
2
|
import { a as te } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
3
|
import { _ as ne, g as re } from "./dist-BMUUt3zJ.js";
|
|
4
|
-
import { t as _ } from "./createLucideIcon-CfBdtoUw.js";
|
|
5
4
|
import { r as ie, t as ae } from "./sanitizeHtml-wBibnBF4.js";
|
|
6
5
|
import { t as oe } from "./sparkles-IHfEwEcd.js";
|
|
7
6
|
import { t as se } from "./square-_Cl44UU6.js";
|
|
7
|
+
import { t as _ } from "./createLucideIcon-CfBdtoUw.js";
|
|
8
8
|
import { t as ce } from "./x-DZSFHafL.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
9
|
+
import { n as le } from "./ParagraphEditor-Dqco128s.js";
|
|
10
|
+
import { t as ue } from "./useI18n-zeWYtWSv.js";
|
|
11
11
|
import { w as v, x as y } from "./styleConstants-CgiNKdnc.js";
|
|
12
|
-
import {
|
|
12
|
+
import { B as de, P as fe, V as pe, it as me, n as he, st as ge, v as _e } from "./keys-w_VRjoMu.js";
|
|
13
13
|
import { n as ve } from "./aiErrors-C3QEMB0x.js";
|
|
14
14
|
import { n as ye, t as be } from "./aiRewritePreview-DlMyx6Si.js";
|
|
15
|
-
import {
|
|
15
|
+
import { r as b } from "./normalizeMergeTagMarkup-Da9JAgx7.js";
|
|
16
16
|
var x = _({
|
|
17
17
|
name: "wand-sparkles",
|
|
18
18
|
size: 24,
|
|
@@ -73,13 +73,13 @@ var x = _({
|
|
|
73
73
|
__name: "AiRewriteMenu",
|
|
74
74
|
props: { editor: {} },
|
|
75
75
|
setup(g) {
|
|
76
|
-
let _ = g, { t: F, format: Oe } =
|
|
76
|
+
let _ = g, { t: F, format: Oe } = ue(), ke = ge(he, "AiRewriteMenu"), Ae = h(fe, pe), je = h(de, re.liquid), I = h(me, void 0), L = h(_e, null), Me = [
|
|
77
77
|
"shorten",
|
|
78
78
|
"expand",
|
|
79
79
|
"friendlier",
|
|
80
80
|
"formal",
|
|
81
81
|
"fixGrammar"
|
|
82
|
-
], R = ye(I), z = u(!1), B = u(R[0].value), V = u(""), H = u(!1), U = u(""), W = u(null), G = u(null), K = null, q = 0, J = s(() => W.value === null ? null : ae(
|
|
82
|
+
], R = ye(I), z = u(!1), B = u(R[0].value), V = u(""), H = u(!1), U = u(""), W = u(null), G = u(null), K = null, q = 0, J = s(() => W.value === null ? null : ae(b(W.value, Ae.value, je))), Ne = s(() => be(U.value)), Y = s(() => G.value ? ve(G.value, F.ai.errors, Oe, I) : "");
|
|
83
83
|
function X() {
|
|
84
84
|
q++;
|
|
85
85
|
let e = K;
|
|
@@ -186,7 +186,7 @@ var x = _({
|
|
|
186
186
|
class: "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)]",
|
|
187
187
|
"aria-hidden": "true"
|
|
188
188
|
}),
|
|
189
|
-
o(
|
|
189
|
+
o(le, {
|
|
190
190
|
modelValue: B.value,
|
|
191
191
|
"onUpdate:modelValue": s[0] ||= (e) => B.value = e,
|
|
192
192
|
options: c(R),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { M as e, Mt as t, c as n, ct as r, d as i, f as a, u as o, w as s, y as c } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
2
|
import { t as l } from "./circle-alert-Tq7kAh9S.js";
|
|
3
3
|
import { t as u } from "./triangle-alert-CKcpwtUj.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { t as d } from "./useI18n-zeWYtWSv.js";
|
|
5
|
+
import { $ as f, v as p } from "./keys-w_VRjoMu.js";
|
|
6
6
|
// src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var m = ["title", "aria-label"], h = /* @__PURE__ */ c({
|
|
8
8
|
__name: "BlockIssueBadge",
|
|
9
9
|
props: { blockId: {} },
|
|
10
10
|
setup(c) {
|
|
11
|
-
let h = c, { t: g } =
|
|
11
|
+
let h = c, { t: g } = d(), _ = s(f, null), v = s(p, null), y = n(() => (_?.issues.value ?? []).filter((e) => e.blockId === h.blockId && !(v?.activeLocale?.value && e.ruleId.startsWith("localization.")))), b = n(() => y.value.some((e) => e.severity === "error") ? "error" : y.value.some((e) => e.severity === "warning") ? "warning" : null), x = n(() => b.value === "error" ? g.issues.badgeError : g.issues.badgeWarning);
|
|
12
12
|
return (n, s) => b.value ? (e(), a("span", {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: t(["tpl-block-issue-badge tpl:flex tpl:size-5 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:ring-1 tpl:ring-[var(--tpl-border)] tpl:hover:shadow-[var(--tpl-shadow-sm)]", b.value === "error" ? "tpl:text-[var(--tpl-danger)]" : "tpl:text-[var(--tpl-warning)]"]),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
2
|
import { I as t, L as n, M as r, N as i, P as a, Pt as o, c as s, ct as c, f as l, l as u, r as d, u as f, w as p, y as m } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { D as h, E as g, S as _, T as v, _ as y, a as b, d as x, g as S, h as C, i as w, k as T, m as E, o as D, r as O, v as k, x as A, y as j } from "./composables-DreAt_0A.js";
|
|
4
|
+
import { B as M, C as N, R as P, b as F, l as I, m as L, ot as R, st as z, v as ee } from "./keys-w_VRjoMu.js";
|
|
5
|
+
import { t as te } from "./WrapperBlock-CjfCPceb.js";
|
|
6
|
+
import { c as ne, l as B, o as V } from "./socialIcons-oo4uL16Y.js";
|
|
7
|
+
import { Bt as H, g as U } from "./dist-BMUUt3zJ.js";
|
|
8
8
|
// src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var W = { class: "tpl:w-full" }, G = { class: "tpl:flex tpl:gap-0" }, K = /* @__PURE__ */ m({
|
|
10
10
|
name: "PreviewSectionBlock",
|
|
@@ -15,19 +15,19 @@ var W = { class: "tpl:w-full" }, G = { class: "tpl:flex tpl:gap-0" }, K = /* @__
|
|
|
15
15
|
},
|
|
16
16
|
setup(e) {
|
|
17
17
|
let i = {
|
|
18
|
-
title:
|
|
19
|
-
paragraph:
|
|
20
|
-
image:
|
|
21
|
-
video:
|
|
22
|
-
button:
|
|
23
|
-
divider:
|
|
24
|
-
social:
|
|
25
|
-
menu:
|
|
26
|
-
table:
|
|
27
|
-
spacer:
|
|
28
|
-
html:
|
|
29
|
-
custom:
|
|
30
|
-
}, m = e, h = p(
|
|
18
|
+
title: x,
|
|
19
|
+
paragraph: E,
|
|
20
|
+
image: S,
|
|
21
|
+
video: O,
|
|
22
|
+
button: A,
|
|
23
|
+
divider: k,
|
|
24
|
+
social: D,
|
|
25
|
+
menu: C,
|
|
26
|
+
table: w,
|
|
27
|
+
spacer: b,
|
|
28
|
+
html: y,
|
|
29
|
+
custom: j
|
|
30
|
+
}, m = e, h = p(I, null), g = s(() => {
|
|
31
31
|
switch (m.block.columns) {
|
|
32
32
|
case "2": return ["50%", "50%"];
|
|
33
33
|
case "3": return [
|
|
@@ -57,25 +57,25 @@ var W = { class: "tpl:w-full" }, G = { class: "tpl:flex tpl:gap-0" }, K = /* @__
|
|
|
57
57
|
for (; t.length < e;) t.push([]);
|
|
58
58
|
return t.slice(0, e);
|
|
59
59
|
});
|
|
60
|
-
function
|
|
60
|
+
function M(e) {
|
|
61
61
|
return _.value[e] || [];
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
63
|
+
function N(e) {
|
|
64
|
+
return T(e, h, i);
|
|
65
65
|
}
|
|
66
66
|
return (e, i) => {
|
|
67
67
|
let s = t("PreviewSectionBlock", !0);
|
|
68
68
|
return r(), l("div", W, [u("div", G, [(r(!0), l(d, null, a(_.value, (e, t) => (r(), l("div", {
|
|
69
69
|
key: t,
|
|
70
70
|
style: o({ width: g.value[t] })
|
|
71
|
-
}, [(r(!0), l(d, null, a(
|
|
71
|
+
}, [(r(!0), l(d, null, a(M(t), (e) => (r(), l("div", {
|
|
72
72
|
key: e.id,
|
|
73
|
-
style: o(c(
|
|
73
|
+
style: o(c(v)(e))
|
|
74
74
|
}, [e.type === "section" ? (r(), f(s, {
|
|
75
75
|
key: 0,
|
|
76
76
|
block: e,
|
|
77
77
|
viewport: "desktop"
|
|
78
|
-
}, null, 8, ["block"])) : (r(), f(n(
|
|
78
|
+
}, null, 8, ["block"])) : (r(), f(n(N(e)), {
|
|
79
79
|
key: 1,
|
|
80
80
|
block: e,
|
|
81
81
|
viewport: "desktop"
|
|
@@ -94,30 +94,30 @@ var W = { class: "tpl:w-full" }, G = { class: "tpl:flex tpl:gap-0" }, K = /* @__
|
|
|
94
94
|
settings: { default: void 0 }
|
|
95
95
|
},
|
|
96
96
|
setup(e) {
|
|
97
|
-
let t = e, m = p(
|
|
98
|
-
i(
|
|
99
|
-
let Z = s(() => t.applyConditionFilter ? t.blocks.filter((e) => !W?.isHidden(e.id)) : t.blocks), Q = s(() => t.settings ??
|
|
97
|
+
let t = e, m = p(I), v = p(ee, null), W = p(L, null), G = z(F, "BlockPreviewCanvas"), J = p(N, null), Y = p(M, U.liquid), X = p(P, null);
|
|
98
|
+
i(R, s(() => X?.value ?? !1));
|
|
99
|
+
let Z = s(() => t.applyConditionFilter ? t.blocks.filter((e) => !W?.isHidden(e.id)) : t.blocks), Q = s(() => t.settings ?? v?.content.value.settings), $ = s(() => B(Q.value, t.viewport)), re = s(() => Q.value ? h(Q.value, G.resolveFontFamily) : {}), ie = s(() => Q.value?.locale?.trim() || void 0), ae = s(() => H(Q.value ?? { locale: "en" })), oe = s(() => Q.value?.backgroundColor || "var(--tpl-canvas-bg)"), se = s(() => $.value + 192), ce = {
|
|
100
100
|
section: K,
|
|
101
|
-
title:
|
|
102
|
-
paragraph:
|
|
103
|
-
image:
|
|
104
|
-
video:
|
|
105
|
-
button:
|
|
106
|
-
divider:
|
|
107
|
-
social:
|
|
108
|
-
menu:
|
|
109
|
-
table:
|
|
110
|
-
spacer:
|
|
111
|
-
html:
|
|
112
|
-
custom:
|
|
113
|
-
wrapper:
|
|
101
|
+
title: x,
|
|
102
|
+
paragraph: E,
|
|
103
|
+
image: S,
|
|
104
|
+
video: O,
|
|
105
|
+
button: A,
|
|
106
|
+
divider: k,
|
|
107
|
+
social: D,
|
|
108
|
+
menu: C,
|
|
109
|
+
table: w,
|
|
110
|
+
spacer: b,
|
|
111
|
+
html: y,
|
|
112
|
+
custom: j,
|
|
113
|
+
wrapper: te
|
|
114
114
|
};
|
|
115
115
|
function le(e) {
|
|
116
|
-
return
|
|
116
|
+
return T(e, m, ce);
|
|
117
117
|
}
|
|
118
118
|
function ue(e) {
|
|
119
119
|
let n = Q.value;
|
|
120
|
-
return
|
|
120
|
+
return g(e, J, Y, V(e, n ? {
|
|
121
121
|
blocks: t.blocks,
|
|
122
122
|
settings: n
|
|
123
123
|
} : void 0));
|
|
@@ -138,8 +138,8 @@ var W = { class: "tpl:w-full" }, G = { class: "tpl:flex tpl:gap-0" }, K = /* @__
|
|
|
138
138
|
dir: ae.value,
|
|
139
139
|
style: o({
|
|
140
140
|
width: `${$.value}px`,
|
|
141
|
-
[c(
|
|
142
|
-
transition: c(
|
|
141
|
+
[c(_)]: `${$.value}px`,
|
|
142
|
+
transition: c(ne),
|
|
143
143
|
...re.value
|
|
144
144
|
})
|
|
145
145
|
}, [(r(!0), l(d, null, a(Z.value, (t) => (r(), l("div", {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Ft as e, M as t, Mt as n, P as r, U as i, _ as a, ct as o, d as s, f as c, h as l, l as u, r as d, u as f, y as p } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
2
|
import { t as m } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
3
|
import { t as h } from "./circle-alert-Tq7kAh9S.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as b } from "./
|
|
7
|
-
import { t as x } from "./TplModal-
|
|
4
|
+
import { C as g, b as _, f as v } from "./styleConstants-CgiNKdnc.js";
|
|
5
|
+
import { t as y } from "./useCloudI18n-BczJoFf4.js";
|
|
6
|
+
import { t as b } from "./triangle-alert-CKcpwtUj.js";
|
|
7
|
+
import { t as x } from "./TplModal-WNuWhHZm.js";
|
|
8
8
|
// src/cloud/components/CloudErrorOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var S = {
|
|
10
10
|
key: 0,
|
|
@@ -18,7 +18,7 @@ var S = {
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["retry"],
|
|
20
20
|
setup(r, { emit: i }) {
|
|
21
|
-
let l = i, { t: d } =
|
|
21
|
+
let l = i, { t: d } = y();
|
|
22
22
|
function f(e) {
|
|
23
23
|
return "isUnauthorized" in e && e.isUnauthorized ? d.error.authFailed : "isNotFound" in e && e.isNotFound ? d.error.templateNotFound : d.error.defaultMessage;
|
|
24
24
|
}
|
|
@@ -35,7 +35,7 @@ var S = {
|
|
|
35
35
|
p(r.error) ? s("", !0) : (t(), c("button", {
|
|
36
36
|
key: 0,
|
|
37
37
|
type: "button",
|
|
38
|
-
class: n(o(
|
|
38
|
+
class: n(o(_)),
|
|
39
39
|
onClick: m[0] ||= (e) => l("retry")
|
|
40
40
|
}, e(o(d).error.retry), 3))
|
|
41
41
|
])) : s("", !0);
|
|
@@ -44,7 +44,7 @@ var S = {
|
|
|
44
44
|
__name: "CloudLoadingOverlay",
|
|
45
45
|
props: { visible: { type: Boolean } },
|
|
46
46
|
setup(e) {
|
|
47
|
-
let { t: n } =
|
|
47
|
+
let { t: n } = y();
|
|
48
48
|
return (i, a) => e.visible ? (t(), c("div", {
|
|
49
49
|
key: 0,
|
|
50
50
|
role: "status",
|
|
@@ -78,13 +78,13 @@ var S = {
|
|
|
78
78
|
},
|
|
79
79
|
emits: ["cancel", "confirm"],
|
|
80
80
|
setup(s, { emit: l }) {
|
|
81
|
-
let p = l, { t: m } =
|
|
81
|
+
let p = l, { t: m } = y();
|
|
82
82
|
return (l, h) => (t(), f(x, {
|
|
83
83
|
visible: s.open,
|
|
84
84
|
onClose: h[2] ||= (e) => p("cancel")
|
|
85
85
|
}, {
|
|
86
86
|
default: i(() => [u("div", M, [
|
|
87
|
-
u("header", N, [a(o(
|
|
87
|
+
u("header", N, [a(o(b), {
|
|
88
88
|
size: 18,
|
|
89
89
|
"stroke-width": 2,
|
|
90
90
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
@@ -97,12 +97,12 @@ var S = {
|
|
|
97
97
|
u("footer", z, [u("button", {
|
|
98
98
|
type: "button",
|
|
99
99
|
"data-testid": "cloud-save-gate-cancel",
|
|
100
|
-
class: n(o(
|
|
100
|
+
class: n(o(g)),
|
|
101
101
|
onClick: h[0] ||= (e) => p("cancel")
|
|
102
102
|
}, e(o(m).saveGate.cancel), 3), u("button", {
|
|
103
103
|
type: "button",
|
|
104
104
|
"data-testid": "cloud-save-gate-confirm",
|
|
105
|
-
class: n(o(
|
|
105
|
+
class: n(o(v)),
|
|
106
106
|
onClick: h[1] ||= (e) => p("confirm")
|
|
107
107
|
}, e(o(m).saveGate.confirm), 3)])
|
|
108
108
|
])]),
|