@templatical/editor 0.26.3 → 0.27.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/README.md +3 -1
- package/dist/{AiChatSidebar-CMBz6Wix.js → AiChatSidebar-iVJDzqjr.js} +60 -60
- package/dist/AiFeatureMenu-DrLGc2H2.js +57 -0
- package/dist/{BlockIssueBadge-Buk3_6QF.js → BlockIssueBadge-BHysq7XQ.js} +11 -11
- package/dist/BlockPreviewCanvas-2WASf5A4.js +121 -0
- package/dist/CloudHeaderExtras-DWApyc4P.js +59 -0
- package/dist/CloudPanels-DvOhGdRj.js +232 -0
- package/dist/{CollaboratorBar-BGwbg9aN.js → CollaboratorBar-C6MC0UCk.js} +21 -21
- package/dist/ColorPicker-Di8L5TLQ.js +501 -0
- package/dist/CommentsPanel-D5wQB1Kf.js +18 -0
- package/dist/CommentsSidebar-BoTIxpLE.js +481 -0
- package/dist/{cdn/chunks/CountdownBlock-vLTkTI9e.js → CountdownBlock-BFX8iU90.js} +19 -21
- package/dist/{cdn/chunks/CountdownToolbar-DPjcgcVR.js → CountdownToolbar-d9QM4m5x.js} +52 -53
- package/dist/{DesignReferenceSidebar-Bx96XFmK.js → DesignReferenceSidebar-DKsx2TiL.js} +72 -71
- package/dist/{IssuesPanel-Do7RLXsP.js → IssuesPanel-flKKwKpM.js} +38 -38
- package/dist/{LoadingTrack-BexpNuTV.js → LoadingTrack-C2T8ixEL.js} +3 -3
- package/dist/{MergeTagModeToggle-P-UguQHc.js → MergeTagModeToggle-PKCoKAoF.js} +43 -43
- package/dist/{MergeTagSuggestion-BJ43ihWR.js → MergeTagSuggestion-DGha0WRp.js} +46 -46
- package/dist/{cdn/chunks/NumberWithSuffix-BXrRdfq1.js → NumberWithSuffix-D9mPtMJB.js} +42 -44
- package/dist/{ParagraphEditor-6WN5jmXr.js → ParagraphEditor-iwTjkjtx.js} +200 -198
- package/dist/RestoreVersionDialog-DyMPGfsr.js +86 -0
- package/dist/{RichTextEditorContent-fbYJXAio.js → RichTextEditorContent-BVXG9oF4.js} +44 -44
- package/dist/SaveBlockDialog-BMCAIfK9.js +266 -0
- package/dist/{SavedBlocksBrowserModal-GMrajvfV.js → SavedBlocksBrowserModal-p5ma1qay.js} +116 -115
- package/dist/{cdn/chunks/SavedBlocksPanels-CUtYoi5Z.js → SavedBlocksPanels-BsiSstsZ.js} +9 -11
- package/dist/{SavedBlocksPickBar-Dk_IaMO9.js → SavedBlocksPickBar-fU4Mjm-8.js} +17 -17
- package/dist/{TemplateScoringPanel-BZUsb3FD.js → TemplateScoringPanel-Bv_bBsJi.js} +87 -87
- package/dist/TestEmailModal-EFYcrmTk.js +206 -0
- package/dist/{cdn/chunks/TestEmailPanel-B8y7JabA.js → TestEmailPanel-ljriUqs1.js} +4 -6
- package/dist/TitleEditor-BqRW7HTz.js +198 -0
- package/dist/TplModal-CTC9-w6B.js +49 -0
- package/dist/VersionHistoryMenu-Cq4rH56t.js +155 -0
- package/dist/VersionHistoryPanels-GkxkBiSi.js +46 -0
- package/dist/VersionPreviewBanner-BdtTu9mI.js +38 -0
- package/dist/{blockTypeIcons-C7wRSaT3.js → blockTypeIcons-CIrMr1SJ.js} +6 -6
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-D1zgI9fQ.js → ca-CEuJ6IRr.js} +73 -106
- package/dist/cdn/chunks/{AiChatSidebar-CQ8KUmNB.js → AiChatSidebar-DTUoBH5a.js} +54 -54
- package/dist/cdn/chunks/AiChatSidebar-DTUoBH5a.js.map +1 -0
- package/dist/cdn/chunks/AiFeatureMenu-BQz9Kczt.js +57 -0
- package/dist/cdn/chunks/AiFeatureMenu-BQz9Kczt.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js → BlockIssueBadge-UzSSOM_2.js} +13 -13
- package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js.map → BlockIssueBadge-UzSSOM_2.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-msj619wT.js → BlockPreviewCanvas-40ocpXDD.js} +42 -42
- package/dist/cdn/chunks/{BlockPreviewCanvas-msj619wT.js.map → BlockPreviewCanvas-40ocpXDD.js.map} +1 -1
- package/dist/cdn/chunks/CloudHeaderExtras-F_ySlW1S.js +60 -0
- package/dist/cdn/chunks/CloudHeaderExtras-F_ySlW1S.js.map +1 -0
- package/dist/cdn/chunks/CloudPanels-C34bcHpc.js +232 -0
- package/dist/cdn/chunks/CloudPanels-C34bcHpc.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-G_sZDZXw.js → CollaboratorBar-WBtrPPnM.js} +22 -22
- package/dist/cdn/chunks/CollaboratorBar-WBtrPPnM.js.map +1 -0
- package/dist/cdn/chunks/ColorPicker-CxKYd_8N.js +502 -0
- package/dist/cdn/chunks/ColorPicker-CxKYd_8N.js.map +1 -0
- package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js +20 -0
- package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js.map +1 -0
- package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js +460 -0
- package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js.map +1 -0
- package/dist/{CountdownBlock-DuyvGcr8.js → cdn/chunks/CountdownBlock-BYSrJWxg.js} +25 -23
- package/dist/cdn/chunks/{CountdownBlock-vLTkTI9e.js.map → CountdownBlock-BYSrJWxg.js.map} +1 -1
- package/dist/{CountdownToolbar-CBE9wRaV.js → cdn/chunks/CountdownToolbar-pVbkPNVo.js} +66 -63
- package/dist/cdn/chunks/{CountdownToolbar-DPjcgcVR.js.map → CountdownToolbar-pVbkPNVo.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-B-HFXV0W.js → DesignReferenceSidebar-sZWciECR.js} +64 -64
- package/dist/cdn/chunks/DesignReferenceSidebar-sZWciECR.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-DKTS4QVb.js → IssuesPanel-CHtetM9i.js} +36 -36
- package/dist/cdn/chunks/IssuesPanel-CHtetM9i.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js → LoadingTrack-Dp_QZvAK.js} +3 -3
- package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js.map → LoadingTrack-Dp_QZvAK.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js → MergeTagModeToggle-ZwW-5EeN.js} +39 -39
- package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js.map → MergeTagModeToggle-ZwW-5EeN.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-Dn8dExNa.js → MergeTagSuggestion-DhllqTA3.js} +47 -47
- package/dist/cdn/chunks/MergeTagSuggestion-DhllqTA3.js.map +1 -0
- package/dist/{NumberWithSuffix-D37ZWiZh.js → cdn/chunks/NumberWithSuffix-mm6AfIv4.js} +37 -35
- package/dist/cdn/chunks/NumberWithSuffix-mm6AfIv4.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-CZ5Z6AgG.js → ParagraphEditor-BBcIQQK2.js} +234 -233
- package/dist/cdn/chunks/ParagraphEditor-BBcIQQK2.js.map +1 -0
- package/dist/cdn/chunks/RestoreVersionDialog-DNUZHFa_.js +87 -0
- package/dist/cdn/chunks/RestoreVersionDialog-DNUZHFa_.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DtL49Jpo.js → RichTextEditorContent-Cl-acKAD.js} +44 -44
- package/dist/cdn/chunks/RichTextEditorContent-Cl-acKAD.js.map +1 -0
- package/dist/cdn/chunks/SaveBlockDialog-BXTZ729e.js +265 -0
- package/dist/cdn/chunks/SaveBlockDialog-BXTZ729e.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BkQXEUE2.js → SavedBlocksBrowserModal-BqGNBpRR.js} +114 -113
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BqGNBpRR.js.map +1 -0
- package/dist/{SavedBlocksPanels-DEPmNhi6.js → cdn/chunks/SavedBlocksPanels-nbK0UQTp.js} +11 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-CUtYoi5Z.js.map → SavedBlocksPanels-nbK0UQTp.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-C80qJykl.js → SavedBlocksPickBar-B9mbw3Gk.js} +17 -17
- package/dist/cdn/chunks/SavedBlocksPickBar-B9mbw3Gk.js.map +1 -0
- package/dist/cdn/chunks/{TemplateScoringPanel-NucRtAP0.js → TemplateScoringPanel-Xdkp2EMY.js} +81 -81
- package/dist/cdn/chunks/TemplateScoringPanel-Xdkp2EMY.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-DE6fi3he.js +206 -0
- package/dist/cdn/chunks/TestEmailModal-DE6fi3he.js.map +1 -0
- package/dist/{TestEmailPanel-DubocPxf.js → cdn/chunks/TestEmailPanel-CAjQDXle.js} +6 -4
- package/dist/cdn/chunks/{TestEmailPanel-B8y7JabA.js.map → TestEmailPanel-CAjQDXle.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C8WDXf4P.js → TitleEditor-BP0ewaWF.js} +83 -83
- package/dist/cdn/chunks/TitleEditor-BP0ewaWF.js.map +1 -0
- package/dist/cdn/chunks/TplModal-C4kJduTr.js +50 -0
- package/dist/cdn/chunks/TplModal-C4kJduTr.js.map +1 -0
- package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js +148 -0
- package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js.map +1 -0
- package/dist/cdn/chunks/VersionHistoryPanels-DMq2PRee.js +48 -0
- package/dist/cdn/chunks/VersionHistoryPanels-DMq2PRee.js.map +1 -0
- package/dist/cdn/chunks/VersionPreviewBanner-04CL1SGY.js +40 -0
- package/dist/cdn/chunks/VersionPreviewBanner-04CL1SGY.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js → blockTypeIcons-hX_W4dqo.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js.map → blockTypeIcons-hX_W4dqo.js.map} +1 -1
- package/dist/cdn/chunks/{ca-D1zgI9fQ.js → ca-CEuJ6IRr.js} +74 -107
- package/dist/cdn/chunks/ca-CEuJ6IRr.js.map +1 -0
- package/dist/{cloud-qINCmQbn.js → cdn/chunks/cloud-BA0OpRh-.js} +400 -609
- package/dist/cdn/chunks/cloud-BA0OpRh-.js.map +1 -0
- package/dist/cdn/chunks/createCloudRuntime-gXA8_QRU.js +344 -0
- package/dist/cdn/chunks/createCloudRuntime-gXA8_QRU.js.map +1 -0
- package/dist/{de-uVoSP1xF.js → cdn/chunks/de-BytZwgn6.js} +4 -88
- package/dist/cdn/chunks/de-BytZwgn6.js.map +1 -0
- package/dist/{de-DHra3lvx.js → cdn/chunks/de-aRxhZF_K.js} +75 -106
- package/dist/cdn/chunks/de-aRxhZF_K.js.map +1 -0
- package/dist/cdn/chunks/{dist-B2HKGHnc.js → dist-CM8TB0VD.js} +136 -136
- package/dist/cdn/chunks/{dist-B2HKGHnc.js.map → dist-CM8TB0VD.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C6z8AjBC.js → dist-CYLJiSiH.js} +63 -63
- package/dist/cdn/chunks/{dist-C6z8AjBC.js.map → dist-CYLJiSiH.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DCs9qL-b.js → draggable-BfpsXFg7.js} +916 -905
- package/dist/cdn/chunks/{draggable-DCs9qL-b.js.map → draggable-BfpsXFg7.js.map} +1 -1
- package/dist/cdn/chunks/{en-DE_y1YWU.js → en-BCgVx9zM.js} +4 -3
- package/dist/cdn/chunks/{en-DE_y1YWU.js.map → en-BCgVx9zM.js.map} +1 -1
- package/dist/{en-DlqX2YWZ.js → cdn/chunks/en-BX4V_7YO.js} +75 -106
- package/dist/cdn/chunks/en-BX4V_7YO.js.map +1 -0
- package/dist/{en-CjhsJxb-.js → cdn/chunks/en-DyOSV0lY.js} +4 -88
- package/dist/cdn/chunks/en-DyOSV0lY.js.map +1 -0
- package/dist/{es-Cuss2snv.js → cdn/chunks/es-CA9uQ-5x.js} +75 -106
- package/dist/cdn/chunks/es-CA9uQ-5x.js.map +1 -0
- package/dist/cdn/chunks/{extensions-qhcN3RMT.js → extensions-CMcVw2uu.js} +53 -53
- package/dist/cdn/chunks/{extensions-qhcN3RMT.js.map → extensions-CMcVw2uu.js.map} +1 -1
- package/dist/{fr-Cm85vB2g.js → cdn/chunks/fr-iBuE60Ap.js} +75 -106
- package/dist/cdn/chunks/fr-iBuE60Ap.js.map +1 -0
- package/dist/cdn/chunks/{icons-CvYN6zrM.js → icons-C36Ha5VU.js} +11 -11
- package/dist/cdn/chunks/{icons-CvYN6zrM.js.map → icons-C36Ha5VU.js.map} +1 -1
- package/dist/{keys-fwF3qZax.js → cdn/chunks/keys-CbQuRX85.js} +6 -4
- package/dist/cdn/chunks/keys-CbQuRX85.js.map +1 -0
- package/dist/cdn/chunks/logger-ByvdoAwq.js +23 -0
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +1 -0
- package/dist/{nl-dmiIX7oT.js → cdn/chunks/nl-Btw4ojNo.js} +75 -106
- package/dist/cdn/chunks/nl-Btw4ojNo.js.map +1 -0
- package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js +23 -0
- package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js.map +1 -0
- package/dist/{pt-BR-CTzHTqJD.js → cdn/chunks/pt-BR-C1WLSGDh.js} +4 -88
- package/dist/cdn/chunks/pt-BR-C1WLSGDh.js.map +1 -0
- package/dist/{pt-BR-CaIG-7EM.js → cdn/chunks/pt-BR-GjVsCqbN.js} +75 -106
- package/dist/cdn/chunks/pt-BR-GjVsCqbN.js.map +1 -0
- package/dist/cdn/chunks/src-B_QJduQD.js.map +1 -1
- package/dist/cdn/chunks/{src-xkGep9eN.js → src-CoHDh8Ua.js} +1485 -1483
- package/dist/cdn/chunks/src-CoHDh8Ua.js.map +1 -0
- package/dist/cdn/chunks/{src-BwbnXShT.js → src-Ct4Fsx3t.js} +148 -134
- package/dist/cdn/chunks/src-Ct4Fsx3t.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-9oK5kn21.js +59 -0
- package/dist/cdn/chunks/styleConstants-9oK5kn21.js.map +1 -0
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +6 -0
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C44S1Cmh.js → tiptap-DmpGap5g.js} +40 -40
- package/dist/cdn/chunks/{tiptap-C44S1Cmh.js.map → tiptap-DmpGap5g.js.map} +1 -1
- package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js → useAliveFlag-Dtm174fG.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js.map → useAliveFlag-Dtm174fG.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js → useCloudI18n-NVa1aeY8.js} +5 -5
- package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js.map → useCloudI18n-NVa1aeY8.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CcgxY-Gy.js → useEditorCore-DC8gmfs6.js} +1434 -1147
- package/dist/cdn/chunks/useEditorCore-DC8gmfs6.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-UMs0F71x.js → useI18n-DVWCJJFH.js} +5 -5
- package/dist/cdn/chunks/{useI18n-UMs0F71x.js.map → useI18n-DVWCJJFH.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js → useMergeTag-BfZBRPQp.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js.map → useMergeTag-BfZBRPQp.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js → usePopoverPosition-BC-HA7TK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js.map → usePopoverPosition-BC-HA7TK.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +5119 -284
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-On4TSac-.js → check-DZbmkMQe.js} +1 -1
- package/dist/{chevron-down-69EiBGoB.js → chevron-down-nYScOLeZ.js} +1 -1
- package/dist/{chevron-up-Dh3MG1Dw.js → chevron-up-CpYpDLnc.js} +1 -1
- package/dist/{circle-alert-cilwzafX.js → circle-alert-CuuK6thq.js} +1 -1
- package/dist/{clock-Dt0APH92.js → clock-DxkrtqOr.js} +1 -1
- package/dist/cloud-BAefVBb_.js +1444 -0
- package/dist/createCloudRuntime-Bt8W-ajI.js +342 -0
- package/dist/{createLucideIcon-C8WzBYCv.js → createLucideIcon-L-wQXW_R.js} +9 -9
- package/dist/{cdn/chunks/de-uVoSP1xF.js → de-BytZwgn6.js} +2 -90
- package/dist/{cdn/chunks/de-DHra3lvx.js → de-aRxhZF_K.js} +73 -108
- package/dist/dist-B5iReTtK.js +251 -0
- package/dist/{dist-Cl8J0IES.js → dist-Ck9roB6K.js} +42 -42
- package/dist/{dist-BpKxrUi2.js → dist-CqcGTIiX.js} +46 -46
- package/dist/{cdn/chunks/en-DlqX2YWZ.js → en-BX4V_7YO.js} +73 -108
- package/dist/{cdn/chunks/en-CjhsJxb-.js → en-DyOSV0lY.js} +2 -90
- package/dist/{cdn/chunks/es-Cuss2snv.js → es-CA9uQ-5x.js} +73 -108
- package/dist/{extensions-Cwg9S-0f.js → extensions-CX87G4aL.js} +42 -42
- package/dist/{cdn/chunks/fr-Cm85vB2g.js → fr-iBuE60Ap.js} +73 -108
- package/dist/{image-up-Ceggh_R3.js → image-up-DouZRGVt.js} +1 -1
- package/dist/index.d.ts +499 -23
- package/dist/{info-DO5odBcZ.js → info-puX5V6Iq.js} +1 -1
- package/dist/{cdn/chunks/keys-Cmc2Yl3D.js → keys-BxixS0TN.js} +4 -6
- package/dist/{list-checks-BSkPKbuI.js → list-checks-jw-ZlvWY.js} +1 -1
- package/dist/{loader-circle-bO7o7_HD.js → loader-circle-DqTxB7Kr.js} +1 -1
- package/dist/logger-BBlvSn6q.js +21 -0
- package/dist/{message-circle-BEkAk65X.js → message-circle-BZ7YpB22.js} +1 -1
- package/dist/{cdn/chunks/nl-dmiIX7oT.js → nl-Btw4ojNo.js} +73 -108
- package/dist/{pencil-t6m0EtKL.js → pencil-DmbRhTJu.js} +1 -1
- package/dist/preRenderCustomBlocks-BebjKtmw.js +21 -0
- package/dist/{cdn/chunks/pt-BR-CTzHTqJD.js → pt-BR-C1WLSGDh.js} +2 -90
- package/dist/{cdn/chunks/pt-BR-CaIG-7EM.js → pt-BR-GjVsCqbN.js} +73 -108
- package/dist/{refresh-cw-CkOYVzK5.js → refresh-cw-OK_O-cL0.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CepEmvwF.js → runtime-dom.esm-bundler-BgKXIPLV.js} +144 -144
- package/dist/{scan-line-DwSVj25O.js → scan-line-DyaSTsJ5.js} +1 -1
- package/dist/{send-CWsWN8PQ.js → send-B-wasJJC.js} +1 -1
- package/dist/{shield-check-qje8Kufw.js → shield-check-DUIyRrTo.js} +1 -1
- package/dist/{sparkles-DumaWRW-.js → sparkles-DYEMATWC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styleConstants-9oK5kn21.js +57 -0
- package/dist/templatical-editor.js +5319 -289
- package/dist/{text-align-start-Ir8Ah4mT.js → text-align-start-CzjLeBLe.js} +1 -1
- package/dist/timeouts-DHPZQ0G3.js +4 -0
- package/dist/{trash-2-CklAFCmO.js → trash-2-C0shEPry.js} +1 -1
- package/dist/{triangle-alert-BBi4n93g.js → triangle-alert-Fw0ce8oQ.js} +1 -1
- package/dist/{upload-sVqqppuv.js → upload-D69C2CBx.js} +3 -4
- package/dist/{useAliveFlag-cvyBxHp7.js → useAliveFlag-BGIAZii_.js} +1 -1
- package/dist/{useCloudI18n-DKVm6PCa.js → useCloudI18n-CAZTZ9_a.js} +2 -2
- package/dist/{useEditorCore-P4UkhcyS.js → useEditorCore-CFLzobo_.js} +1604 -1320
- package/dist/{useI18n-DoVKdCTH.js → useI18n-BfXff_Sy.js} +2 -2
- package/dist/{useMergeTag-CYZk7dZD.js → useMergeTag-Dd4I7kge.js} +3 -3
- package/dist/usePopoverPosition-CxhCX3SQ.js +59 -0
- package/dist/{vue.runtime.esm-bundler-D1diBMsm.js → vue.runtime.esm-bundler-DzEsDRtY.js} +447 -436
- package/dist/{x-Mby7KlhS.js → x-BjTlFqRv.js} +1 -1
- package/package.json +8 -8
- package/dist/AiFeatureMenu-Cy-PVrNT.js +0 -63
- package/dist/BlockPreviewCanvas-BZKslwGI.js +0 -121
- package/dist/CloudEditor-CPRkQCRa.js +0 -1188
- package/dist/ColorPicker-ClETsjA3.js +0 -550
- package/dist/CommentsSidebar-CdRCCSDD.js +0 -435
- package/dist/SaveBlockDialog-21vDlEBS.js +0 -265
- package/dist/SnapshotHistory-Cb4WW2gf.js +0 -128
- package/dist/TestEmailModal-BHDKmd6B.js +0 -205
- package/dist/TitleEditor-Cy4B3UNe.js +0 -198
- package/dist/TplModal-Dv9zgSWI.js +0 -49
- package/dist/cdn/chunks/AiChatSidebar-CQ8KUmNB.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-Cb9gaRBn.js +0 -63
- package/dist/cdn/chunks/AiFeatureMenu-Cb9gaRBn.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-DbyEsIxu.js +0 -1166
- package/dist/cdn/chunks/CloudEditor-DbyEsIxu.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-G_sZDZXw.js.map +0 -1
- package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js +0 -552
- package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js +0 -412
- package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js.map +0 -1
- package/dist/cdn/chunks/DesignReferenceSidebar-B-HFXV0W.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DKTS4QVb.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-Dn8dExNa.js.map +0 -1
- package/dist/cdn/chunks/NumberWithSuffix-BXrRdfq1.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-CZ5Z6AgG.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-DtL49Jpo.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-CVIVZEuy.js +0 -264
- package/dist/cdn/chunks/SaveBlockDialog-CVIVZEuy.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BkQXEUE2.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-C80qJykl.js.map +0 -1
- package/dist/cdn/chunks/SnapshotHistory-DFinMrg_.js +0 -121
- package/dist/cdn/chunks/SnapshotHistory-DFinMrg_.js.map +0 -1
- package/dist/cdn/chunks/TemplateScoringPanel-NucRtAP0.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-IxS-QjeH.js +0 -205
- package/dist/cdn/chunks/TestEmailModal-IxS-QjeH.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-C8WDXf4P.js.map +0 -1
- package/dist/cdn/chunks/TplModal-Ce0QuHyo.js +0 -50
- package/dist/cdn/chunks/TplModal-Ce0QuHyo.js.map +0 -1
- package/dist/cdn/chunks/ca-D1zgI9fQ.js.map +0 -1
- package/dist/cdn/chunks/cloud-DcC8bPwn.js +0 -1787
- package/dist/cdn/chunks/cloud-DcC8bPwn.js.map +0 -1
- package/dist/cdn/chunks/de-DHra3lvx.js.map +0 -1
- package/dist/cdn/chunks/de-uVoSP1xF.js.map +0 -1
- package/dist/cdn/chunks/en-CjhsJxb-.js.map +0 -1
- package/dist/cdn/chunks/en-DlqX2YWZ.js.map +0 -1
- package/dist/cdn/chunks/es-Cuss2snv.js.map +0 -1
- package/dist/cdn/chunks/fr-Cm85vB2g.js.map +0 -1
- package/dist/cdn/chunks/keys-Cmc2Yl3D.js.map +0 -1
- package/dist/cdn/chunks/nl-dmiIX7oT.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +0 -1
- package/dist/cdn/chunks/src-BwbnXShT.js.map +0 -1
- package/dist/cdn/chunks/src-xkGep9eN.js.map +0 -1
- package/dist/cdn/chunks/styles-DLAfU4Uf.js +0 -4140
- package/dist/cdn/chunks/styles-DLAfU4Uf.js.map +0 -1
- package/dist/cdn/chunks/timeouts-SsLMC4a3.js +0 -6
- package/dist/cdn/chunks/timeouts-SsLMC4a3.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CcgxY-Gy.js.map +0 -1
- package/dist/styles-Dx__pP9O.js +0 -4318
- package/dist/usePopoverPosition-C0dPEF4X.js +0 -308
|
@@ -1,72 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as E } from "./dist-
|
|
4
|
-
import {
|
|
5
|
-
import { t as j } from "./useI18n-
|
|
6
|
-
import { n as M } from "./usePopoverPosition-
|
|
7
|
-
import { Ct as N, P as re, R as ie, Rt as ae, S as oe, Vt as se, _ as ce, at as le, ct as ue, g as de, h as fe, it as pe, l as me, m as he, ot as ge, ut as _e, x as ve, y as ye } from "./icons-
|
|
1
|
+
import { E as e, F as t, N as n, Q as r, R as i, S as a, at as o, b as s, c, ct as l, d as u, f as d, g as f, h as p, l as m, lt as h, m as g, p as _, q as v, u as y, ut as b, y as x } from "./draggable-BfpsXFg7.js";
|
|
2
|
+
import { E as S, S as C, T as w, x as T } from "./useEditorCore-DC8gmfs6.js";
|
|
3
|
+
import { t as E } from "./dist-CM8TB0VD.js";
|
|
4
|
+
import { B as D, D as O, H as k, W as ee, _ as te, h as ne, w as A } from "./keys-CbQuRX85.js";
|
|
5
|
+
import { t as j } from "./useI18n-DVWCJJFH.js";
|
|
6
|
+
import { n as M } from "./usePopoverPosition-BC-HA7TK.js";
|
|
7
|
+
import { Ct as N, P as re, R as ie, Rt as ae, S as oe, Vt as se, _ as ce, at as le, ct as ue, g as de, h as fe, it as pe, l as me, m as he, ot as ge, ut as _e, x as ve, y as ye } from "./icons-C36Ha5VU.js";
|
|
8
8
|
import { t as P } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { a as be, n as xe, o as Se, s as Ce } from "./styleConstants-9oK5kn21.js";
|
|
10
|
+
import { t as F } from "./ColorPicker-CxKYd_8N.js";
|
|
11
|
+
import { n as I, t as L } from "./RichTextEditorContent-Cl-acKAD.js";
|
|
11
12
|
//#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
12
13
|
var R = [
|
|
13
14
|
"aria-label",
|
|
14
15
|
"title",
|
|
15
16
|
"aria-expanded"
|
|
16
|
-
], z = ["aria-label"], B = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, V = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, H = ["aria-label", "onClick"], we = /* @__PURE__ */
|
|
17
|
+
], z = ["aria-label"], B = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, V = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, H = ["aria-label", "onClick"], we = /* @__PURE__ */ a({
|
|
17
18
|
__name: "EmojiPickerDropdown",
|
|
18
19
|
emits: ["insert"],
|
|
19
|
-
setup(e, { emit:
|
|
20
|
-
let
|
|
20
|
+
setup(e, { emit: i }) {
|
|
21
|
+
let a = i, { categories: u, isOpen: h, toggle: g, close: v } = w(), { t: x, format: C } = j(), T = r(null), D = r(null), O = d(() => h.value);
|
|
21
22
|
S(T, O), E(D, () => {
|
|
22
|
-
|
|
23
|
+
h.value && v();
|
|
23
24
|
});
|
|
24
25
|
function k(e) {
|
|
25
|
-
|
|
26
|
+
a("insert", e), v();
|
|
26
27
|
}
|
|
27
|
-
return (e,
|
|
28
|
+
return (e, r) => (n(), f("div", {
|
|
28
29
|
ref_key: "rootRef",
|
|
29
30
|
ref: D,
|
|
30
31
|
class: "tpl:relative"
|
|
31
|
-
}, [
|
|
32
|
+
}, [_("button", {
|
|
32
33
|
type: "button",
|
|
33
|
-
class:
|
|
34
|
-
"aria-label":
|
|
35
|
-
title:
|
|
36
|
-
"aria-expanded":
|
|
34
|
+
class: l(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": o(h) }]),
|
|
35
|
+
"aria-label": o(x).paragraphEditor.insertEmoji,
|
|
36
|
+
title: o(x).paragraphEditor.insertEmoji,
|
|
37
|
+
"aria-expanded": o(h),
|
|
37
38
|
"aria-haspopup": "dialog",
|
|
38
39
|
"aria-controls": "tpl-emoji-picker",
|
|
39
|
-
onClick:
|
|
40
|
-
}, [
|
|
40
|
+
onClick: r[0] ||= (...e) => o(g) && o(g)(...e)
|
|
41
|
+
}, [s(o(N), {
|
|
41
42
|
size: 16,
|
|
42
43
|
"stroke-width": 2
|
|
43
|
-
})], 10, R),
|
|
44
|
+
})], 10, R), o(h) ? (n(), f("div", {
|
|
44
45
|
key: 0,
|
|
45
46
|
id: "tpl-emoji-picker",
|
|
46
47
|
ref_key: "pickerRef",
|
|
47
48
|
ref: T,
|
|
48
49
|
role: "dialog",
|
|
49
50
|
"aria-modal": "false",
|
|
50
|
-
"aria-label":
|
|
51
|
+
"aria-label": o(x).paragraphEditor.insertEmoji,
|
|
51
52
|
tabindex: "-1",
|
|
52
|
-
class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-lg",
|
|
53
|
-
onKeydown:
|
|
54
|
-
}, [(n(!0),
|
|
53
|
+
class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
54
|
+
onKeydown: r[1] ||= c(m((...e) => o(v) && o(v)(...e), ["stop", "prevent"]), ["esc"])
|
|
55
|
+
}, [(n(!0), f(y, null, t(o(u), (e) => (n(), f("div", {
|
|
55
56
|
key: e.key,
|
|
56
57
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
57
|
-
}, [
|
|
58
|
+
}, [_("div", B, b(o(x).emoji[e.key]), 1), _("div", V, [(n(!0), f(y, null, t(e.emojis, (e) => (n(), f("button", {
|
|
58
59
|
key: e,
|
|
59
60
|
type: "button",
|
|
60
|
-
"aria-label":
|
|
61
|
-
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:
|
|
61
|
+
"aria-label": o(C)(o(x).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
62
|
+
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
62
63
|
onClick: (t) => k(e)
|
|
63
|
-
},
|
|
64
|
+
}, b(e), 9, H))), 128))])]))), 128))], 40, z)) : p("", !0)], 512));
|
|
64
65
|
}
|
|
65
66
|
}), U = [
|
|
66
67
|
"aria-label",
|
|
67
68
|
"title",
|
|
68
69
|
"aria-pressed"
|
|
69
|
-
], W = /* @__PURE__ */
|
|
70
|
+
], W = /* @__PURE__ */ a({
|
|
70
71
|
__name: "ToolbarIconButton",
|
|
71
72
|
props: {
|
|
72
73
|
icon: {},
|
|
@@ -76,13 +77,13 @@ var R = [
|
|
|
76
77
|
size: {}
|
|
77
78
|
},
|
|
78
79
|
setup(e) {
|
|
79
|
-
return (
|
|
80
|
+
return (t, r) => (n(), f("button", {
|
|
80
81
|
type: "button",
|
|
81
|
-
class:
|
|
82
|
+
class: l(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": e.active }]),
|
|
82
83
|
"aria-label": e.label,
|
|
83
84
|
title: e.label,
|
|
84
85
|
"aria-pressed": e.active ? "true" : "false"
|
|
85
|
-
}, [(n(),
|
|
86
|
+
}, [(n(), g(i(e.icon), {
|
|
86
87
|
size: e.size ?? 16,
|
|
87
88
|
"stroke-width": e.strokeWidth ?? 2
|
|
88
89
|
}, null, 8, ["size", "stroke-width"]))], 10, U));
|
|
@@ -92,13 +93,13 @@ var R = [
|
|
|
92
93
|
"aria-hidden": "true"
|
|
93
94
|
};
|
|
94
95
|
function q(e, t) {
|
|
95
|
-
return n(),
|
|
96
|
+
return n(), f("span", K);
|
|
96
97
|
}
|
|
97
98
|
var J = /*#__PURE__*/ P(G, [["render", q]]), Y = [
|
|
98
99
|
"value",
|
|
99
100
|
"aria-label",
|
|
100
101
|
"title"
|
|
101
|
-
], X = { value: "" }, Te = ["value"], Z = /* @__PURE__ */
|
|
102
|
+
], X = { value: "" }, Te = ["value"], Z = /* @__PURE__ */ a({
|
|
102
103
|
__name: "ToolbarSelect",
|
|
103
104
|
props: {
|
|
104
105
|
modelValue: {},
|
|
@@ -108,8 +109,8 @@ var J = /*#__PURE__*/ P(G, [["render", q]]), Y = [
|
|
|
108
109
|
widthClass: {}
|
|
109
110
|
},
|
|
110
111
|
emits: ["update:modelValue"],
|
|
111
|
-
setup(e, { emit:
|
|
112
|
-
let i =
|
|
112
|
+
setup(e, { emit: r }) {
|
|
113
|
+
let i = r;
|
|
113
114
|
function a(e) {
|
|
114
115
|
i("update:modelValue", e.target.value);
|
|
115
116
|
}
|
|
@@ -119,16 +120,16 @@ var J = /*#__PURE__*/ P(G, [["render", q]]), Y = [
|
|
|
119
120
|
function s(e) {
|
|
120
121
|
return typeof e == "string" ? e : e.label;
|
|
121
122
|
}
|
|
122
|
-
return (
|
|
123
|
-
class:
|
|
123
|
+
return (r, i) => (n(), f("select", {
|
|
124
|
+
class: l(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none", e.widthClass ?? "tpl:w-20"]),
|
|
124
125
|
value: e.modelValue,
|
|
125
126
|
"aria-label": e.label,
|
|
126
127
|
title: e.label,
|
|
127
128
|
onChange: a
|
|
128
|
-
}, [
|
|
129
|
+
}, [_("option", X, b(e.placeholder ?? ""), 1), (n(!0), f(y, null, t(e.options, (e) => (n(), f("option", {
|
|
129
130
|
key: o(e),
|
|
130
131
|
value: o(e)
|
|
131
|
-
},
|
|
132
|
+
}, b(s(e)), 9, Te))), 128))], 42, Y));
|
|
132
133
|
}
|
|
133
134
|
});
|
|
134
135
|
//#endregion
|
|
@@ -141,7 +142,7 @@ function Q(e, t) {
|
|
|
141
142
|
var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Oe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ke = ["aria-label", "title"], Ae = ["aria-label", "title"], $ = {
|
|
142
143
|
key: 1,
|
|
143
144
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
144
|
-
}, je = /* @__PURE__ */
|
|
145
|
+
}, je = /* @__PURE__ */ a({
|
|
145
146
|
__name: "ParagraphToolbar",
|
|
146
147
|
props: {
|
|
147
148
|
editor: {},
|
|
@@ -155,30 +156,30 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
155
156
|
"add-merge-tag",
|
|
156
157
|
"add-logic-tag"
|
|
157
158
|
],
|
|
158
|
-
setup(
|
|
159
|
-
let
|
|
159
|
+
setup(t, { emit: r }) {
|
|
160
|
+
let i = t, a = r, c = e(D, null), l = e(k, null), m = ee(te, "ParagraphToolbar"), v = M(), S = e(O, null), C = e(A, null), w = e(ne, null), T = d(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = j(), N = m.fonts;
|
|
160
161
|
function P(e) {
|
|
161
|
-
|
|
162
|
+
i.editor?.chain().focus().insertContent(e).run();
|
|
162
163
|
}
|
|
163
164
|
function I(e) {
|
|
164
|
-
return
|
|
165
|
+
return i.editor?.getAttributes("textStyle")[e] || "";
|
|
165
166
|
}
|
|
166
167
|
function L(e) {
|
|
167
|
-
let t =
|
|
168
|
+
let t = i.editor?.chain().focus();
|
|
168
169
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
169
170
|
}
|
|
170
171
|
function R(e) {
|
|
171
|
-
let t =
|
|
172
|
+
let t = i.editor?.chain().focus();
|
|
172
173
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
173
174
|
}
|
|
174
175
|
function z() {
|
|
175
|
-
return
|
|
176
|
+
return i.editor?.isActive("link") ?? !1;
|
|
176
177
|
}
|
|
177
178
|
function B() {
|
|
178
|
-
return
|
|
179
|
+
return i.editor?.getAttributes("link").color || "";
|
|
179
180
|
}
|
|
180
181
|
function V(e) {
|
|
181
|
-
let t =
|
|
182
|
+
let t = i.editor?.chain().focus();
|
|
182
183
|
t && (z() ? (t.extendMarkRange("link").updateAttributes("link", { color: e || null }), e && t.unsetColor(), t.run()) : e ? t.setColor(e).updateAttributes("link", { color: e }).run() : t.unsetColor().run());
|
|
183
184
|
}
|
|
184
185
|
function H() {
|
|
@@ -189,44 +190,44 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
189
190
|
return z() ? B() : I("color");
|
|
190
191
|
}
|
|
191
192
|
function G() {
|
|
192
|
-
return
|
|
193
|
+
return i.editor?.getAttributes("paragraph").lineHeight || "";
|
|
193
194
|
}
|
|
194
195
|
function K(e) {
|
|
195
|
-
let t =
|
|
196
|
+
let t = i.editor?.chain().focus();
|
|
196
197
|
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
197
198
|
}
|
|
198
199
|
function q(e) {
|
|
199
|
-
let t =
|
|
200
|
+
let t = i.editor?.chain().focus();
|
|
200
201
|
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
201
202
|
}
|
|
202
203
|
function Y() {
|
|
203
|
-
return
|
|
204
|
+
return i.editor?.getAttributes("highlight").color || "";
|
|
204
205
|
}
|
|
205
206
|
function X(e) {
|
|
206
|
-
let t =
|
|
207
|
+
let t = i.editor?.chain().focus();
|
|
207
208
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
208
209
|
}
|
|
209
|
-
return (
|
|
210
|
+
return (e, r) => o(v) && !T.value ? (n(), g(u, {
|
|
210
211
|
key: 0,
|
|
211
|
-
to:
|
|
212
|
-
}, [
|
|
213
|
-
"data-tpl-theme":
|
|
212
|
+
to: o(v)
|
|
213
|
+
}, [_("div", {
|
|
214
|
+
"data-tpl-theme": o(l),
|
|
214
215
|
role: "toolbar",
|
|
215
|
-
"aria-label":
|
|
216
|
-
class: "tpl tpl-text-toolbar tpl:absolute tpl:z-popover tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
|
|
217
|
-
style:
|
|
218
|
-
...
|
|
219
|
-
top: `${
|
|
220
|
-
left: `${
|
|
216
|
+
"aria-label": o(E).paragraphEditor.toolbar,
|
|
217
|
+
class: "tpl tpl-text-toolbar tpl:absolute tpl:z-popover tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
218
|
+
style: h({
|
|
219
|
+
...o(c),
|
|
220
|
+
top: `${t.toolbarPosition.top}px`,
|
|
221
|
+
left: `${t.toolbarPosition.left}px`,
|
|
221
222
|
transform: "translateY(-100%)",
|
|
222
223
|
flexDirection: "column"
|
|
223
224
|
})
|
|
224
|
-
}, [!
|
|
225
|
-
|
|
225
|
+
}, [!t.isLoading && t.editor ? (n(), f(y, { key: 0 }, [_("div", De, [
|
|
226
|
+
s(Z, {
|
|
226
227
|
"model-value": I("fontFamily"),
|
|
227
|
-
options:
|
|
228
|
-
label:
|
|
229
|
-
placeholder:
|
|
228
|
+
options: o(N),
|
|
229
|
+
label: o(E).paragraphEditor.fontFamily,
|
|
230
|
+
placeholder: o(E).paragraphEditor.defaultFont,
|
|
230
231
|
"width-class": "tpl:w-32",
|
|
231
232
|
"onUpdate:modelValue": L
|
|
232
233
|
}, null, 8, [
|
|
@@ -235,11 +236,11 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
235
236
|
"label",
|
|
236
237
|
"placeholder"
|
|
237
238
|
]),
|
|
238
|
-
|
|
239
|
+
s(Z, {
|
|
239
240
|
"model-value": I("fontSize"),
|
|
240
|
-
options:
|
|
241
|
-
label:
|
|
242
|
-
placeholder:
|
|
241
|
+
options: o(be),
|
|
242
|
+
label: o(E).paragraphEditor.fontSize,
|
|
243
|
+
placeholder: o(E).paragraphEditor.defaultSize,
|
|
243
244
|
"width-class": "tpl:w-20",
|
|
244
245
|
"onUpdate:modelValue": R
|
|
245
246
|
}, null, 8, [
|
|
@@ -248,174 +249,174 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
248
249
|
"label",
|
|
249
250
|
"placeholder"
|
|
250
251
|
]),
|
|
251
|
-
|
|
252
|
-
|
|
252
|
+
s(J),
|
|
253
|
+
s(F, {
|
|
253
254
|
"swatch-only": "",
|
|
254
255
|
size: "sm",
|
|
255
256
|
"data-testid": "text-color-picker",
|
|
256
257
|
"model-value": U(),
|
|
257
258
|
"seed-color": H(),
|
|
258
|
-
"aria-label":
|
|
259
|
+
"aria-label": o(E).paragraphEditor.textColor,
|
|
259
260
|
"onUpdate:modelValue": V
|
|
260
261
|
}, null, 8, [
|
|
261
262
|
"model-value",
|
|
262
263
|
"seed-color",
|
|
263
264
|
"aria-label"
|
|
264
265
|
]),
|
|
265
|
-
|
|
266
|
+
s(F, {
|
|
266
267
|
"swatch-only": "",
|
|
267
268
|
size: "sm",
|
|
268
269
|
"data-testid": "highlight-color-picker",
|
|
269
270
|
"model-value": Y(),
|
|
270
|
-
"seed-color":
|
|
271
|
-
"aria-label":
|
|
271
|
+
"seed-color": o(xe),
|
|
272
|
+
"aria-label": o(E).paragraphEditor.highlightColor,
|
|
272
273
|
"onUpdate:modelValue": X
|
|
273
274
|
}, null, 8, [
|
|
274
275
|
"model-value",
|
|
275
276
|
"seed-color",
|
|
276
277
|
"aria-label"
|
|
277
278
|
]),
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
icon:
|
|
281
|
-
label:
|
|
282
|
-
active:
|
|
279
|
+
s(J),
|
|
280
|
+
s(W, {
|
|
281
|
+
icon: o(se),
|
|
282
|
+
label: o(E).paragraphEditor.bold,
|
|
283
|
+
active: t.editor.isActive("bold"),
|
|
283
284
|
"stroke-width": 2.5,
|
|
284
|
-
onClick: r[0] ||= (
|
|
285
|
+
onClick: r[0] ||= (e) => t.editor.chain().focus().toggleBold().run()
|
|
285
286
|
}, null, 8, [
|
|
286
287
|
"icon",
|
|
287
288
|
"label",
|
|
288
289
|
"active"
|
|
289
290
|
]),
|
|
290
|
-
|
|
291
|
-
icon:
|
|
292
|
-
label:
|
|
293
|
-
active:
|
|
294
|
-
onClick: r[1] ||= (
|
|
291
|
+
s(W, {
|
|
292
|
+
icon: o(_e),
|
|
293
|
+
label: o(E).paragraphEditor.italic,
|
|
294
|
+
active: t.editor.isActive("italic"),
|
|
295
|
+
onClick: r[1] ||= (e) => t.editor.chain().focus().toggleItalic().run()
|
|
295
296
|
}, null, 8, [
|
|
296
297
|
"icon",
|
|
297
298
|
"label",
|
|
298
299
|
"active"
|
|
299
300
|
]),
|
|
300
|
-
|
|
301
|
-
icon:
|
|
302
|
-
label:
|
|
303
|
-
active:
|
|
304
|
-
onClick: r[2] ||= (
|
|
301
|
+
s(W, {
|
|
302
|
+
icon: o(me),
|
|
303
|
+
label: o(E).paragraphEditor.underline,
|
|
304
|
+
active: t.editor.isActive("underline"),
|
|
305
|
+
onClick: r[2] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
|
|
305
306
|
}, null, 8, [
|
|
306
307
|
"icon",
|
|
307
308
|
"label",
|
|
308
309
|
"active"
|
|
309
310
|
]),
|
|
310
|
-
|
|
311
|
-
icon:
|
|
312
|
-
label:
|
|
313
|
-
active:
|
|
314
|
-
onClick: r[3] ||= (
|
|
311
|
+
s(W, {
|
|
312
|
+
icon: o(oe),
|
|
313
|
+
label: o(E).paragraphEditor.strikethrough,
|
|
314
|
+
active: t.editor.isActive("strike"),
|
|
315
|
+
onClick: r[3] ||= (e) => t.editor.chain().focus().toggleStrike().run()
|
|
315
316
|
}, null, 8, [
|
|
316
317
|
"icon",
|
|
317
318
|
"label",
|
|
318
319
|
"active"
|
|
319
320
|
]),
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
icon:
|
|
323
|
-
label:
|
|
324
|
-
active:
|
|
325
|
-
onClick: r[4] ||= (
|
|
321
|
+
s(J),
|
|
322
|
+
s(W, {
|
|
323
|
+
icon: o(ve),
|
|
324
|
+
label: o(E).paragraphEditor.subscript,
|
|
325
|
+
active: t.editor.isActive("subscript"),
|
|
326
|
+
onClick: r[4] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
|
|
326
327
|
}, null, 8, [
|
|
327
328
|
"icon",
|
|
328
329
|
"label",
|
|
329
330
|
"active"
|
|
330
331
|
]),
|
|
331
|
-
|
|
332
|
-
icon:
|
|
333
|
-
label:
|
|
334
|
-
active:
|
|
335
|
-
onClick: r[5] ||= (
|
|
332
|
+
s(W, {
|
|
333
|
+
icon: o(ye),
|
|
334
|
+
label: o(E).paragraphEditor.superscript,
|
|
335
|
+
active: t.editor.isActive("superscript"),
|
|
336
|
+
onClick: r[5] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
|
|
336
337
|
}, null, 8, [
|
|
337
338
|
"icon",
|
|
338
339
|
"label",
|
|
339
340
|
"active"
|
|
340
341
|
]),
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
icon:
|
|
344
|
-
label:
|
|
345
|
-
active:
|
|
342
|
+
s(J),
|
|
343
|
+
s(W, {
|
|
344
|
+
icon: o(ue),
|
|
345
|
+
label: o(E).paragraphEditor.addLink,
|
|
346
|
+
active: t.editor.isActive("link"),
|
|
346
347
|
onClick: r[6] ||= (e) => a("open-link-dialog")
|
|
347
348
|
}, null, 8, [
|
|
348
349
|
"icon",
|
|
349
350
|
"label",
|
|
350
351
|
"active"
|
|
351
352
|
])
|
|
352
|
-
]),
|
|
353
|
-
|
|
354
|
-
icon:
|
|
355
|
-
label:
|
|
356
|
-
active:
|
|
357
|
-
onClick: r[7] ||= (
|
|
353
|
+
]), _("div", Oe, [
|
|
354
|
+
s(W, {
|
|
355
|
+
icon: o(le),
|
|
356
|
+
label: o(E).paragraphEditor.bulletList,
|
|
357
|
+
active: t.editor.isActive("bulletList"),
|
|
358
|
+
onClick: r[7] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
|
|
358
359
|
}, null, 8, [
|
|
359
360
|
"icon",
|
|
360
361
|
"label",
|
|
361
362
|
"active"
|
|
362
363
|
]),
|
|
363
|
-
|
|
364
|
-
icon:
|
|
365
|
-
label:
|
|
366
|
-
active:
|
|
367
|
-
onClick: r[8] ||= (
|
|
364
|
+
s(W, {
|
|
365
|
+
icon: o(ge),
|
|
366
|
+
label: o(E).paragraphEditor.numberedList,
|
|
367
|
+
active: t.editor.isActive("orderedList"),
|
|
368
|
+
onClick: r[8] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
|
|
368
369
|
}, null, 8, [
|
|
369
370
|
"icon",
|
|
370
371
|
"label",
|
|
371
372
|
"active"
|
|
372
373
|
]),
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
icon:
|
|
376
|
-
label:
|
|
377
|
-
active:
|
|
378
|
-
onClick: r[9] ||= (
|
|
374
|
+
s(J),
|
|
375
|
+
s(W, {
|
|
376
|
+
icon: o(he),
|
|
377
|
+
label: o(E).paragraphEditor.alignLeft,
|
|
378
|
+
active: t.editor.isActive({ textAlign: "left" }),
|
|
379
|
+
onClick: r[9] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
|
|
379
380
|
}, null, 8, [
|
|
380
381
|
"icon",
|
|
381
382
|
"label",
|
|
382
383
|
"active"
|
|
383
384
|
]),
|
|
384
|
-
|
|
385
|
-
icon:
|
|
386
|
-
label:
|
|
387
|
-
active:
|
|
388
|
-
onClick: r[10] ||= (
|
|
385
|
+
s(W, {
|
|
386
|
+
icon: o(ce),
|
|
387
|
+
label: o(E).paragraphEditor.alignCenter,
|
|
388
|
+
active: t.editor.isActive({ textAlign: "center" }),
|
|
389
|
+
onClick: r[10] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
|
|
389
390
|
}, null, 8, [
|
|
390
391
|
"icon",
|
|
391
392
|
"label",
|
|
392
393
|
"active"
|
|
393
394
|
]),
|
|
394
|
-
|
|
395
|
-
icon:
|
|
396
|
-
label:
|
|
397
|
-
active:
|
|
398
|
-
onClick: r[11] ||= (
|
|
395
|
+
s(W, {
|
|
396
|
+
icon: o(de),
|
|
397
|
+
label: o(E).paragraphEditor.alignRight,
|
|
398
|
+
active: t.editor.isActive({ textAlign: "right" }),
|
|
399
|
+
onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
|
|
399
400
|
}, null, 8, [
|
|
400
401
|
"icon",
|
|
401
402
|
"label",
|
|
402
403
|
"active"
|
|
403
404
|
]),
|
|
404
|
-
|
|
405
|
-
icon:
|
|
406
|
-
label:
|
|
407
|
-
active:
|
|
408
|
-
onClick: r[12] ||= (
|
|
405
|
+
s(W, {
|
|
406
|
+
icon: o(fe),
|
|
407
|
+
label: o(E).paragraphEditor.alignJustify,
|
|
408
|
+
active: t.editor.isActive({ textAlign: "justify" }),
|
|
409
|
+
onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("justify").run()
|
|
409
410
|
}, null, 8, [
|
|
410
411
|
"icon",
|
|
411
412
|
"label",
|
|
412
413
|
"active"
|
|
413
414
|
]),
|
|
414
|
-
|
|
415
|
-
|
|
415
|
+
s(J),
|
|
416
|
+
s(Z, {
|
|
416
417
|
"model-value": G(),
|
|
417
|
-
options:
|
|
418
|
-
label:
|
|
418
|
+
options: o(Ce),
|
|
419
|
+
label: o(E).paragraphEditor.lineHeight,
|
|
419
420
|
placeholder: "LH",
|
|
420
421
|
"width-class": "tpl:w-16",
|
|
421
422
|
"onUpdate:modelValue": K
|
|
@@ -424,10 +425,10 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
424
425
|
"options",
|
|
425
426
|
"label"
|
|
426
427
|
]),
|
|
427
|
-
|
|
428
|
+
s(Z, {
|
|
428
429
|
"model-value": I("letterSpacing"),
|
|
429
|
-
options:
|
|
430
|
-
label:
|
|
430
|
+
options: o(Se),
|
|
431
|
+
label: o(E).paragraphEditor.letterSpacing,
|
|
431
432
|
placeholder: "LS",
|
|
432
433
|
"width-class": "tpl:w-20",
|
|
433
434
|
"onUpdate:modelValue": q
|
|
@@ -436,71 +437,71 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
436
437
|
"options",
|
|
437
438
|
"label"
|
|
438
439
|
]),
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
icon:
|
|
442
|
-
label:
|
|
443
|
-
onClick: r[13] ||= (
|
|
440
|
+
s(J),
|
|
441
|
+
s(W, {
|
|
442
|
+
icon: o(ie),
|
|
443
|
+
label: o(E).paragraphEditor.clearFormatting,
|
|
444
|
+
onClick: r[13] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
444
445
|
}, null, 8, ["icon", "label"]),
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
s(J),
|
|
447
|
+
s(we, { onInsert: P }),
|
|
448
|
+
t.canRequestMergeTag ? (n(), f(y, { key: 0 }, [s(J), _("button", {
|
|
448
449
|
type: "button",
|
|
449
|
-
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:
|
|
450
|
-
"aria-label":
|
|
451
|
-
title:
|
|
450
|
+
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
451
|
+
"aria-label": o(E).mergeTag.insert,
|
|
452
|
+
title: o(E).mergeTag.insert,
|
|
452
453
|
onClick: r[14] ||= (e) => a("add-merge-tag")
|
|
453
|
-
}, [
|
|
454
|
+
}, [s(o(re), {
|
|
454
455
|
size: 16,
|
|
455
456
|
"stroke-width": 2
|
|
456
|
-
}),
|
|
457
|
-
|
|
457
|
+
}), x(" " + b(o(E).mergeTag.insertShort), 1)], 8, ke)], 64)) : p("", !0),
|
|
458
|
+
t.canInsertLogicTag ? (n(), f(y, { key: 1 }, [s(J), _("button", {
|
|
458
459
|
type: "button",
|
|
459
|
-
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:
|
|
460
|
-
"aria-label":
|
|
461
|
-
title:
|
|
460
|
+
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
461
|
+
"aria-label": o(E).logicTag.insert,
|
|
462
|
+
title: o(E).logicTag.insert,
|
|
462
463
|
"data-testid": "insert-logic-button",
|
|
463
464
|
onClick: r[15] ||= (e) => a("add-logic-tag")
|
|
464
|
-
}, [
|
|
465
|
+
}, [s(o(ae), {
|
|
465
466
|
size: 16,
|
|
466
467
|
"stroke-width": 2
|
|
467
|
-
}),
|
|
468
|
-
])], 64)) : (n(),
|
|
468
|
+
}), x(" " + b(o(E).logicTag.insertShort), 1)], 8, Ae)], 64)) : p("", !0)
|
|
469
|
+
])], 64)) : (n(), f("div", $, [s(o(pe), {
|
|
469
470
|
class: "tpl-spinner",
|
|
470
471
|
size: 14,
|
|
471
472
|
"stroke-width": 2
|
|
472
|
-
}),
|
|
473
|
+
}), x(" " + b(o(E).errors.editorLoading), 1)]))], 12, Ee)], 8, ["to"])) : p("", !0);
|
|
473
474
|
}
|
|
474
|
-
}), Me = { class: "tpl-text-editor-wrapper tpl:relative" }, Ne = /* @__PURE__ */
|
|
475
|
+
}), Me = { class: "tpl-text-editor-wrapper tpl:relative" }, Ne = /* @__PURE__ */ a({
|
|
475
476
|
__name: "ParagraphEditor",
|
|
476
477
|
props: {
|
|
477
478
|
block: {},
|
|
478
479
|
toolbarPosition: {}
|
|
479
480
|
},
|
|
480
481
|
emits: ["done"],
|
|
481
|
-
setup(
|
|
482
|
-
let
|
|
483
|
-
blockId: () =>
|
|
484
|
-
blockContent: () =>
|
|
485
|
-
onDone: () =>
|
|
482
|
+
setup(e, { emit: t }) {
|
|
483
|
+
let r = e, i = t, a = M(), { editor: c, EditorContent: l, isLoading: u, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkColor: g, linkDialogRef: _, canRequestMergeTag: y, canInsertLogicTag: b, openLinkDialog: x, insertLink: S, removeLink: w, closeLinkDialog: E, handleLinkKeydown: D, handleAddMergeTag: O, handleAddLogicTag: k } = T({
|
|
484
|
+
blockId: () => r.block.id,
|
|
485
|
+
blockContent: () => r.block.content,
|
|
486
|
+
onDone: () => i("done"),
|
|
486
487
|
editorName: "ParagraphEditor",
|
|
487
488
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
488
|
-
let [{ Editor:
|
|
489
|
-
import("./tiptap-
|
|
490
|
-
import("./tiptap-
|
|
491
|
-
import("./tiptap-
|
|
492
|
-
import("./tiptap-
|
|
493
|
-
import("./tiptap-
|
|
494
|
-
import("./tiptap-
|
|
495
|
-
import("./tiptap-
|
|
496
|
-
import("./tiptap-
|
|
497
|
-
import("./tiptap-
|
|
498
|
-
import("./tiptap-
|
|
499
|
-
import("./tiptap-
|
|
500
|
-
import("./extensions-
|
|
489
|
+
let [{ Editor: o, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: S, LetterSpacing: w, LineBoundaryKeys: T }] = await Promise.all([
|
|
490
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.r),
|
|
491
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.i),
|
|
492
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.l),
|
|
493
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.a),
|
|
494
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.c),
|
|
495
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.s),
|
|
496
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.o),
|
|
497
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.p),
|
|
498
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.f),
|
|
499
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.d),
|
|
500
|
+
import("./tiptap-DmpGap5g.js").then((e) => e.u),
|
|
501
|
+
import("./extensions-CMcVw2uu.js")
|
|
501
502
|
]);
|
|
502
503
|
return {
|
|
503
|
-
TiptapEditor:
|
|
504
|
+
TiptapEditor: o,
|
|
504
505
|
EC: s,
|
|
505
506
|
extensions: [
|
|
506
507
|
c.configure({
|
|
@@ -514,7 +515,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
514
515
|
u,
|
|
515
516
|
d,
|
|
516
517
|
f,
|
|
517
|
-
|
|
518
|
+
C(l).configure({
|
|
518
519
|
openOnClick: !1,
|
|
519
520
|
HTMLAttributes: {
|
|
520
521
|
target: "_blank",
|
|
@@ -528,7 +529,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
528
529
|
_.configure({ multicolor: !0 }),
|
|
529
530
|
x,
|
|
530
531
|
S,
|
|
531
|
-
|
|
532
|
+
w,
|
|
532
533
|
v.configure({
|
|
533
534
|
mergeTags: e,
|
|
534
535
|
syntax: t
|
|
@@ -539,22 +540,22 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
539
540
|
mergeTags: e,
|
|
540
541
|
char: n,
|
|
541
542
|
emptyText: i,
|
|
542
|
-
popoverRoot:
|
|
543
|
+
popoverRoot: a
|
|
543
544
|
})] : []
|
|
544
545
|
]
|
|
545
546
|
};
|
|
546
547
|
}
|
|
547
548
|
});
|
|
548
|
-
return (
|
|
549
|
-
|
|
550
|
-
editor:
|
|
551
|
-
"toolbar-position":
|
|
552
|
-
"is-loading":
|
|
553
|
-
"can-request-merge-tag":
|
|
554
|
-
"can-insert-logic-tag":
|
|
555
|
-
onOpenLinkDialog:
|
|
556
|
-
onAddMergeTag:
|
|
557
|
-
onAddLogicTag:
|
|
549
|
+
return (t, r) => (n(), f("div", Me, [
|
|
550
|
+
s(je, {
|
|
551
|
+
editor: o(c),
|
|
552
|
+
"toolbar-position": e.toolbarPosition,
|
|
553
|
+
"is-loading": o(u),
|
|
554
|
+
"can-request-merge-tag": o(y),
|
|
555
|
+
"can-insert-logic-tag": o(b),
|
|
556
|
+
onOpenLinkDialog: o(x),
|
|
557
|
+
onAddMergeTag: o(O),
|
|
558
|
+
onAddLogicTag: o(k)
|
|
558
559
|
}, null, 8, [
|
|
559
560
|
"editor",
|
|
560
561
|
"toolbar-position",
|
|
@@ -565,12 +566,12 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
565
566
|
"onAddMergeTag",
|
|
566
567
|
"onAddLogicTag"
|
|
567
568
|
]),
|
|
568
|
-
|
|
569
|
-
editor:
|
|
570
|
-
"editor-content":
|
|
571
|
-
"is-loading":
|
|
572
|
-
"init-error":
|
|
573
|
-
onRetry:
|
|
569
|
+
s(L, {
|
|
570
|
+
editor: o(c),
|
|
571
|
+
"editor-content": o(l),
|
|
572
|
+
"is-loading": o(u),
|
|
573
|
+
"init-error": o(d),
|
|
574
|
+
onRetry: o(p)
|
|
574
575
|
}, null, 8, [
|
|
575
576
|
"editor",
|
|
576
577
|
"editor-content",
|
|
@@ -578,19 +579,19 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
578
579
|
"init-error",
|
|
579
580
|
"onRetry"
|
|
580
581
|
]),
|
|
581
|
-
|
|
582
|
-
visible:
|
|
583
|
-
"is-editing-link":
|
|
584
|
-
"dialog-ref":
|
|
585
|
-
"onUpdate:dialogRef":
|
|
586
|
-
"link-url":
|
|
587
|
-
"onUpdate:linkUrl":
|
|
588
|
-
"link-color":
|
|
589
|
-
"onUpdate:linkColor":
|
|
590
|
-
onClose:
|
|
591
|
-
onInsert:
|
|
592
|
-
onRemove:
|
|
593
|
-
onKeydown:
|
|
582
|
+
s(I, {
|
|
583
|
+
visible: o(m),
|
|
584
|
+
"is-editing-link": o(c)?.isActive("link") ?? !1,
|
|
585
|
+
"dialog-ref": o(_),
|
|
586
|
+
"onUpdate:dialogRef": r[0] ||= (e) => v(_) ? _.value = e : null,
|
|
587
|
+
"link-url": o(h),
|
|
588
|
+
"onUpdate:linkUrl": r[1] ||= (e) => v(h) ? h.value = e : null,
|
|
589
|
+
"link-color": o(g),
|
|
590
|
+
"onUpdate:linkColor": r[2] ||= (e) => v(g) ? g.value = e : null,
|
|
591
|
+
onClose: o(E),
|
|
592
|
+
onInsert: o(S),
|
|
593
|
+
onRemove: o(w),
|
|
594
|
+
onKeydown: o(D)
|
|
594
595
|
}, null, 8, [
|
|
595
596
|
"visible",
|
|
596
597
|
"is-editing-link",
|
|
@@ -608,4 +609,4 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
608
609
|
//#endregion
|
|
609
610
|
export { Ne as default };
|
|
610
611
|
|
|
611
|
-
//# sourceMappingURL=ParagraphEditor-
|
|
612
|
+
//# sourceMappingURL=ParagraphEditor-BBcIQQK2.js.map
|