@templatical/editor 0.24.1 → 0.25.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/{AiChatSidebar-X4viKtvs.js → AiChatSidebar-BYMdVldY.js} +15 -15
- package/dist/{AiFeatureMenu-DDAamRaA.js → AiFeatureMenu-BhHhnu9G.js} +7 -7
- package/dist/{BlockIssueBadge-Qxrl7Ujl.js → BlockIssueBadge-De36PJC4.js} +5 -5
- package/dist/{BlockPreviewCanvas-Cf-kxbEr.js → BlockPreviewCanvas-BxSoA1QV.js} +11 -7
- package/dist/{CloudEditor-JIzhj1Xq.js → CloudEditor-BXfuytQj.js} +73 -71
- package/dist/{CollaboratorBar-tC7AACTb.js → CollaboratorBar-D9AfWRTH.js} +4 -4
- package/dist/{ColorPicker--_2PbzFk.js → ColorPicker-VPq4ASC8.js} +6 -6
- package/dist/{CommentsSidebar-Ci2Ov8FG.js → CommentsSidebar-C8BLy3Pr.js} +16 -16
- package/dist/{CountdownBlock-aZIKfBWY.js → CountdownBlock-Bs2Q_bFX.js} +3 -3
- package/dist/{CountdownToolbar-DHp6T0Q_.js → CountdownToolbar-Cic6cdOw.js} +4 -4
- package/dist/{DesignReferenceSidebar-DQsC-3hB.js → DesignReferenceSidebar-k-26nkJI.js} +11 -11
- package/dist/{IssuesPanel-CoOfib44.js → IssuesPanel-NPzwTPYW.js} +8 -8
- package/dist/{LoadingTrack-XK_eeUdq.js → LoadingTrack-DH3OEM3z.js} +1 -1
- package/dist/{MergeTagModeToggle-CiFiSV0C.js → MergeTagModeToggle-DEGyx8tw.js} +6 -6
- package/dist/{MergeTagSuggestion-D0OHRv7L.js → MergeTagSuggestion-DvisJ9im.js} +2 -2
- package/dist/{NumberWithSuffix-CXFbUqsx.js → NumberWithSuffix-CuHCIwSn.js} +2 -2
- package/dist/{ParagraphEditor-Cy-bpEjI.js → ParagraphEditor-DK_IPi9H.js} +57 -34
- package/dist/{RichTextEditorContent-CYJko6id.js → RichTextEditorContent-DznIQcdY.js} +8 -8
- package/dist/{SaveBlockDialog-CNTSaMEa.js → SaveBlockDialog-R9PbMsy-.js} +12 -12
- package/dist/{SavedBlocksBrowserModal-CvxS5-YX.js → SavedBlocksBrowserModal-ttPAklPE.js} +11 -11
- package/dist/{SavedBlocksPanels-CNdUxS89.js → SavedBlocksPanels-BCwQgKLF.js} +2 -2
- package/dist/{SavedBlocksPickBar-BvXKhblL.js → SavedBlocksPickBar-DD5Ddv9t.js} +4 -4
- package/dist/{SnapshotHistory-BqPSIV9L.js → SnapshotHistory-BXSTGgBh.js} +10 -10
- package/dist/{TemplateScoringPanel-CMEuz9yF.js → TemplateScoringPanel-Ue6Dfnjb.js} +16 -16
- package/dist/{TestEmailModal-BDhnnCBx.js → TestEmailModal-KPFc5oSv.js} +89 -58
- package/dist/{TestEmailPanel--RwnwLn2.js → TestEmailPanel-b8GHTrnE.js} +2 -2
- package/dist/{TitleEditor-F7E_pU9H.js → TitleEditor-8ln7UBr_.js} +11 -11
- package/dist/{TplModal-BIiS24Of.js → TplModal-D_FA3Wm3.js} +5 -5
- package/dist/{blockTypeIcons-C6PnLMp7.js → blockTypeIcons-BoZeK6l7.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-CO4nq6TX.js → ca-D1zgI9fQ.js} +6 -0
- package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js → AiChatSidebar-D6jGwb4y.js} +17 -17
- package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js.map → AiChatSidebar-D6jGwb4y.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js → AiFeatureMenu-BtEcjxLL.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js.map → AiFeatureMenu-BtEcjxLL.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js → BlockIssueBadge-dnqZk6pl.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js.map → BlockIssueBadge-dnqZk6pl.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-C-ut8GkJ.js → BlockPreviewCanvas-D8pfTFWi.js} +12 -8
- package/dist/cdn/chunks/BlockPreviewCanvas-D8pfTFWi.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-D87qsqbZ.js → CloudEditor-BJ4-pPAl.js} +75 -73
- package/dist/cdn/chunks/CloudEditor-BJ4-pPAl.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js → CollaboratorBar-SeUOuLeJ.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js.map → CollaboratorBar-SeUOuLeJ.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js → ColorPicker-yxvrro60.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js.map → ColorPicker-yxvrro60.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js → CommentsSidebar-FPbg-FuU.js} +21 -21
- package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js.map → CommentsSidebar-FPbg-FuU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js → CountdownBlock-D2Oth7YY.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js.map → CountdownBlock-D2Oth7YY.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js → CountdownToolbar-BNgTBQGB.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js.map → CountdownToolbar-BNgTBQGB.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js → DesignReferenceSidebar-ChB_HBK1.js} +11 -11
- package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js.map → DesignReferenceSidebar-ChB_HBK1.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js → IssuesPanel-CjiZ8cLW.js} +9 -9
- package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js.map → IssuesPanel-CjiZ8cLW.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-G2tuXqCJ.js → LoadingTrack-CiNg9s16.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-G2tuXqCJ.js.map → LoadingTrack-CiNg9s16.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js → MergeTagModeToggle-CiYbOKzd.js} +16 -16
- package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js.map → MergeTagModeToggle-CiYbOKzd.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-Ces5Ua78.js → MergeTagSuggestion-CvZLI6Np.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-Ces5Ua78.js.map → MergeTagSuggestion-CvZLI6Np.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js → NumberWithSuffix-vVwCWrd_.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js.map → NumberWithSuffix-vVwCWrd_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DKz4vTWB.js → ParagraphEditor-o4hs9mgy.js} +142 -132
- package/dist/cdn/chunks/ParagraphEditor-o4hs9mgy.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js → RichTextEditorContent-BAriGldd.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js.map → RichTextEditorContent-BAriGldd.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js → SaveBlockDialog-D3-oILb5.js} +19 -19
- package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js.map → SaveBlockDialog-D3-oILb5.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js → SavedBlocksBrowserModal-jMnNd4wn.js} +13 -13
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js.map → SavedBlocksBrowserModal-jMnNd4wn.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js → SavedBlocksPanels-BDd8FH6l.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js.map → SavedBlocksPanels-BDd8FH6l.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js → SavedBlocksPickBar-BNkLe8In.js} +7 -7
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js.map → SavedBlocksPickBar-BNkLe8In.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js → SnapshotHistory-CYVi7fvQ.js} +12 -12
- package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js.map → SnapshotHistory-CYVi7fvQ.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js → TemplateScoringPanel-D0KrxVnr.js} +71 -71
- package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js.map → TemplateScoringPanel-D0KrxVnr.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-Ce8-vzGh.js → TestEmailModal-_RbTD787.js} +89 -58
- package/dist/cdn/chunks/TestEmailModal-_RbTD787.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js → TestEmailPanel-BAnKtbSu.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js.map → TestEmailPanel-BAnKtbSu.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js → TitleEditor-LiUvXGPw.js} +18 -18
- package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js.map → TitleEditor-LiUvXGPw.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-D6bFON2K.js → TplModal-C1iguuZz.js} +5 -5
- package/dist/cdn/chunks/{TplModal-D6bFON2K.js.map → TplModal-C1iguuZz.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-CrPzyP_k.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-B8s3_ahs.js.map → blockTypeIcons-CrPzyP_k.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CO4nq6TX.js → ca-D1zgI9fQ.js} +7 -1
- package/dist/cdn/chunks/ca-D1zgI9fQ.js.map +1 -0
- package/dist/cdn/chunks/{cloud-CRlDc0Ev.js → cloud-CxNsW3hp.js} +3 -3
- package/dist/cdn/chunks/{cloud-CRlDc0Ev.js.map → cloud-CxNsW3hp.js.map} +1 -1
- package/dist/{de-CUeaFJph.js → cdn/chunks/de-DHra3lvx.js} +8 -0
- package/dist/cdn/chunks/de-DHra3lvx.js.map +1 -0
- package/dist/cdn/chunks/{dist-B8AX9np4.js → dist-BLF-S9_A.js} +4 -4
- package/dist/cdn/chunks/{dist-B8AX9np4.js.map → dist-BLF-S9_A.js.map} +1 -1
- package/dist/cdn/chunks/{dist-lZgXNk4G.js → dist-Dp46rwVY.js} +3 -3
- package/dist/cdn/chunks/{dist-lZgXNk4G.js.map → dist-Dp46rwVY.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-JcMTNF3U.js → draggable-BRF_Q_jB.js} +445 -433
- package/dist/cdn/chunks/draggable-BRF_Q_jB.js.map +1 -0
- package/dist/{en-zCYIPAL5.js → cdn/chunks/en-DlqX2YWZ.js} +8 -0
- package/dist/cdn/chunks/en-DlqX2YWZ.js.map +1 -0
- package/dist/{es-BSiH7YkP.js → cdn/chunks/es-Cuss2snv.js} +8 -0
- package/dist/cdn/chunks/es-Cuss2snv.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CKMD_er_.js → extensions-yNQlgLNE.js} +22 -22
- package/dist/cdn/chunks/{extensions-CKMD_er_.js.map → extensions-yNQlgLNE.js.map} +1 -1
- package/dist/{fr-DTVJ3det.js → cdn/chunks/fr-Cm85vB2g.js} +8 -0
- package/dist/cdn/chunks/fr-Cm85vB2g.js.map +1 -0
- package/dist/cdn/chunks/{icons-Cp4ZIJw-.js → icons-DN008liP.js} +45 -32
- package/dist/cdn/chunks/icons-DN008liP.js.map +1 -0
- package/dist/cdn/chunks/keys-CZOBuCQd.js +12 -0
- package/dist/cdn/chunks/keys-CZOBuCQd.js.map +1 -0
- package/dist/{nl-BqSquFS3.js → cdn/chunks/nl-dmiIX7oT.js} +8 -0
- package/dist/cdn/chunks/nl-dmiIX7oT.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-CMljK37h.js → pt-BR-CaIG-7EM.js} +7 -1
- package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +1 -0
- package/dist/cdn/chunks/{src-CumZZNXZ.js → src-B2LpXMIw.js} +373 -373
- package/dist/cdn/chunks/{src-CumZZNXZ.js.map → src-B2LpXMIw.js.map} +1 -1
- package/dist/cdn/chunks/{src-D5mfLR4V.js → src-CZjSXPYq.js} +8 -3
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +1 -0
- package/dist/cdn/chunks/{src-B4UhYbI8.js → src-D_3bXt7-.js} +353 -313
- package/dist/cdn/chunks/src-D_3bXt7-.js.map +1 -0
- package/dist/cdn/chunks/{src-B3HKHglu.js → src-uc_Mb_yH.js} +20 -20
- package/dist/cdn/chunks/{src-B3HKHglu.js.map → src-uc_Mb_yH.js.map} +1 -1
- package/dist/cdn/chunks/{styles--m9OCb_Z.js → styles-BzP13r-I.js} +745 -726
- package/dist/cdn/chunks/styles-BzP13r-I.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-rsib432n.js → tiptap-CgwK_fKJ.js} +2 -2
- package/dist/cdn/chunks/{tiptap-rsib432n.js.map → tiptap-CgwK_fKJ.js.map} +1 -1
- package/dist/cdn/chunks/{useAliveFlag-CseYNikC.js → useAliveFlag-Ctyt3GgH.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-CseYNikC.js.map → useAliveFlag-Ctyt3GgH.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js → useCloudI18n-CML0BxqX.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js.map → useCloudI18n-CML0BxqX.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-ZqF7P99K.js → useEditorCore-CTYH6u4r.js} +471 -400
- package/dist/cdn/chunks/useEditorCore-CTYH6u4r.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-vD57BfVR.js → useI18n-aRMtgYRj.js} +3 -3
- package/dist/cdn/chunks/{useI18n-vD57BfVR.js.map → useI18n-aRMtgYRj.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js → useMergeTag-8a8BnIZp.js} +7 -7
- package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js.map → useMergeTag-8a8BnIZp.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js → usePopoverPosition-Dm1jv3y5.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js.map → usePopoverPosition-Dm1jv3y5.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +23 -21
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CIhIDh4h.js → check-Bqimqf7l.js} +1 -1
- package/dist/{chevron-down-CZ0m6G3s.js → chevron-down-CYOoeGBd.js} +1 -1
- package/dist/{chevron-up-BH_tJLeb.js → chevron-up-DYknsfm0.js} +1 -1
- package/dist/{circle-alert-DkEXnGPV.js → circle-alert-6q_jgtv_.js} +1 -1
- package/dist/{clock-BDIJZUET.js → clock-CnadSSTD.js} +1 -1
- package/dist/{cloud-R8ci6yR1.js → cloud-BJLg_SlM.js} +2 -2
- package/dist/{createLucideIcon-AEltGIse.js → createLucideIcon-D7GKhya2.js} +3 -3
- package/dist/{cdn/chunks/de-CUeaFJph.js → de-DHra3lvx.js} +6 -2
- package/dist/{dist-CIqhVQ1O.js → dist-C31bMR4x.js} +3 -3
- package/dist/{dist-Ba5Q-UX1.js → dist-CQ0fVBQ3.js} +7 -2
- package/dist/{dist-DT1XnEnj.js → dist-DDfXShPv.js} +2 -2
- package/dist/{cdn/chunks/en-zCYIPAL5.js → en-DlqX2YWZ.js} +6 -2
- package/dist/{cdn/chunks/es-BSiH7YkP.js → es-Cuss2snv.js} +6 -2
- package/dist/{extensions-CGxj6-2o.js → extensions-CbiWtzS6.js} +7 -7
- package/dist/{cdn/chunks/fr-DTVJ3det.js → fr-Cm85vB2g.js} +6 -2
- package/dist/{image-up-8ktdYdaZ.js → image-up-BfukboIn.js} +1 -1
- package/dist/index.d.ts +26 -0
- package/dist/{info-CvrCgTLH.js → info-DSYRzSZo.js} +1 -1
- package/dist/keys-BI6VSUh4.js +10 -0
- package/dist/{list-checks-yzGT93ZL.js → list-checks-URZOyLhr.js} +1 -1
- package/dist/{loader-circle-B6euendB.js → loader-circle-GADaYcyQ.js} +1 -1
- package/dist/{message-circle-BMldLVcA.js → message-circle-B62fdo0b.js} +1 -1
- package/dist/{cdn/chunks/nl-BqSquFS3.js → nl-dmiIX7oT.js} +6 -2
- package/dist/{pencil-CkKkSd6N.js → pencil-BGwkOpD_.js} +1 -1
- package/dist/{pt-BR-CMljK37h.js → pt-BR-CaIG-7EM.js} +6 -0
- package/dist/{refresh-cw-fBPgB97G.js → refresh-cw-Z4wXfduO.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CBbDt7sw.js → runtime-dom.esm-bundler-BkOsapVg.js} +163 -162
- package/dist/{scan-line-CRoEOUiK.js → scan-line-D8Oh5xos.js} +1 -1
- package/dist/{send-B9Tt2qBi.js → send-BYp4k38T.js} +1 -1
- package/dist/{shield-check-QfZkYeIo.js → shield-check-Cm0RePnW.js} +1 -1
- package/dist/{sparkles-8UeMmZb8.js → sparkles-BHEE-vRD.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-C9AMvkJk.js → styles-B0MEBpOK.js} +888 -869
- package/dist/templatical-editor.js +96 -94
- package/dist/{text-align-start-Dn8uIheW.js → text-align-start-CHrg3vK8.js} +1 -1
- package/dist/{trash-2-DDyvqj0E.js → trash-2-BoNT8wbq.js} +1 -1
- package/dist/{triangle-alert-B3PydLzl.js → triangle-alert-CiN0ssB3.js} +1 -1
- package/dist/{upload-hE8ItfyG.js → upload-WvZGBySw.js} +1 -1
- package/dist/{useAliveFlag-AfoTE_AY.js → useAliveFlag-eT67QCMf.js} +1 -1
- package/dist/{useCloudI18n-BC_QV2Z7.js → useCloudI18n-KgIWl-IE.js} +2 -2
- package/dist/{useEditorCore-Dojb-P2f.js → useEditorCore-BMbxdUbY.js} +912 -841
- package/dist/{useI18n-DzOcl2wl.js → useI18n-BkHfCWC6.js} +2 -2
- package/dist/{useMergeTag-BFxXCv3p.js → useMergeTag-CZ4XYAxu.js} +4 -4
- package/dist/{usePopoverPosition-Dtr1Mp1x.js → usePopoverPosition-D93u-EZm.js} +4 -4
- package/dist/{vue.runtime.esm-bundler-Xpz-L9Fn.js → vue.runtime.esm-bundler-0R1UhmZB.js} +179 -157
- package/dist/{x-C4lETLDx.js → x-B4WnJVRx.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/BlockPreviewCanvas-C-ut8GkJ.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-D87qsqbZ.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DKz4vTWB.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-Ce8-vzGh.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-B8s3_ahs.js +0 -21
- package/dist/cdn/chunks/ca-CO4nq6TX.js.map +0 -1
- package/dist/cdn/chunks/de-CUeaFJph.js.map +0 -1
- package/dist/cdn/chunks/draggable-JcMTNF3U.js.map +0 -1
- package/dist/cdn/chunks/en-zCYIPAL5.js.map +0 -1
- package/dist/cdn/chunks/es-BSiH7YkP.js.map +0 -1
- package/dist/cdn/chunks/fr-DTVJ3det.js.map +0 -1
- package/dist/cdn/chunks/icons-Cp4ZIJw-.js.map +0 -1
- package/dist/cdn/chunks/keys-CswSK7eb.js +0 -12
- package/dist/cdn/chunks/keys-CswSK7eb.js.map +0 -1
- package/dist/cdn/chunks/nl-BqSquFS3.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CMljK37h.js.map +0 -1
- package/dist/cdn/chunks/src-B4UhYbI8.js.map +0 -1
- package/dist/cdn/chunks/src-D5mfLR4V.js.map +0 -1
- package/dist/cdn/chunks/styles--m9OCb_Z.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-ZqF7P99K.js.map +0 -1
- package/dist/keys-uWpGv4Pq.js +0 -10
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { K as e, L as t, M as n, P as r, T as i, Z as a, c as o, ct as s, d as c, f as l, g as u, h as d, it as f, l as p, m, ot as h, p as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-
|
|
2
|
-
import { D as S, E as C, S as w, x as T } from "./useEditorCore-
|
|
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 {
|
|
1
|
+
import { K as e, L as t, M as n, P as r, T as i, Z as a, c as o, ct as s, d as c, f as l, g as u, h as d, it as f, l as p, m, ot as h, p as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-BRF_Q_jB.js";
|
|
2
|
+
import { D as S, E as C, S as w, x as T } from "./useEditorCore-CTYH6u4r.js";
|
|
3
|
+
import { t as E } from "./dist-BLF-S9_A.js";
|
|
4
|
+
import { G as D, O, T as k, U as ee, V as te, g as ne, v as A } from "./keys-CZOBuCQd.js";
|
|
5
|
+
import { t as j } from "./useI18n-aRMtgYRj.js";
|
|
6
|
+
import { n as M } from "./usePopoverPosition-Dm1jv3y5.js";
|
|
7
|
+
import { D as N, F as re, Rt as ie, S as ae, Vt as oe, _ as se, at as ce, dt as le, g as ue, h as de, l as fe, lt as pe, m as me, ot as he, st as ge, x as _e, y as ve, z as ye } from "./icons-DN008liP.js";
|
|
8
8
|
import { t as P } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
-
import { c as
|
|
10
|
-
import { n as
|
|
9
|
+
import { c as be, o as xe, r as Se, s as Ce, t as F } from "./ColorPicker-yxvrro60.js";
|
|
10
|
+
import { n as I, t as L } from "./RichTextEditorContent-BAriGldd.js";
|
|
11
11
|
//#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
12
|
+
var R = [
|
|
13
13
|
"aria-label",
|
|
14
14
|
"title",
|
|
15
15
|
"aria-expanded"
|
|
16
|
-
],
|
|
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__ */ b({
|
|
17
17
|
__name: "EmojiPickerDropdown",
|
|
18
18
|
emits: ["insert"],
|
|
19
19
|
setup(e, { emit: t }) {
|
|
@@ -40,7 +40,7 @@ var z = [
|
|
|
40
40
|
}, [x(f(N), {
|
|
41
41
|
size: 16,
|
|
42
42
|
"stroke-width": 2
|
|
43
|
-
})], 10,
|
|
43
|
+
})], 10, R), f(m) ? (n(), u("div", {
|
|
44
44
|
key: 0,
|
|
45
45
|
id: "tpl-emoji-picker",
|
|
46
46
|
ref_key: "pickerRef",
|
|
@@ -54,19 +54,19 @@ var z = [
|
|
|
54
54
|
}, [(n(!0), u(v, null, r(f(c), (e) => (n(), u("div", {
|
|
55
55
|
key: e.key,
|
|
56
56
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
57
|
-
}, [g("div",
|
|
57
|
+
}, [g("div", B, s(f(b).emoji[e.key]), 1), g("div", V, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
|
|
58
58
|
key: e,
|
|
59
59
|
type: "button",
|
|
60
60
|
"aria-label": f(w)(f(b).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
61
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:duration-100 tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
62
62
|
onClick: (t) => k(e)
|
|
63
|
-
}, s(e), 9,
|
|
63
|
+
}, s(e), 9, H))), 128))])]))), 128))], 40, z)) : d("", !0)], 512));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), U = [
|
|
66
66
|
"aria-label",
|
|
67
67
|
"title",
|
|
68
68
|
"aria-pressed"
|
|
69
|
-
],
|
|
69
|
+
], W = /* @__PURE__ */ b({
|
|
70
70
|
__name: "ToolbarIconButton",
|
|
71
71
|
props: {
|
|
72
72
|
icon: {},
|
|
@@ -85,20 +85,20 @@ var z = [
|
|
|
85
85
|
}, [(n(), m(t(e.icon), {
|
|
86
86
|
size: e.size ?? 16,
|
|
87
87
|
"stroke-width": e.strokeWidth ?? 2
|
|
88
|
-
}, null, 8, ["size", "stroke-width"]))], 10,
|
|
88
|
+
}, null, 8, ["size", "stroke-width"]))], 10, U));
|
|
89
89
|
}
|
|
90
|
-
}),
|
|
90
|
+
}), G = {}, K = {
|
|
91
91
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
92
92
|
"aria-hidden": "true"
|
|
93
93
|
};
|
|
94
|
-
function
|
|
95
|
-
return n(), u("span",
|
|
94
|
+
function q(e, t) {
|
|
95
|
+
return n(), u("span", K);
|
|
96
96
|
}
|
|
97
|
-
var
|
|
97
|
+
var J = /*#__PURE__*/ P(G, [["render", q]]), Y = [
|
|
98
98
|
"value",
|
|
99
99
|
"aria-label",
|
|
100
100
|
"title"
|
|
101
|
-
],
|
|
101
|
+
], X = { value: "" }, Te = ["value"], Z = /* @__PURE__ */ b({
|
|
102
102
|
__name: "ToolbarSelect",
|
|
103
103
|
props: {
|
|
104
104
|
modelValue: {},
|
|
@@ -125,23 +125,23 @@ var Y = /*#__PURE__*/ P(K, [["render", J]]), X = [
|
|
|
125
125
|
"aria-label": e.label,
|
|
126
126
|
title: e.label,
|
|
127
127
|
onChange: a
|
|
128
|
-
}, [g("option",
|
|
128
|
+
}, [g("option", X, s(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
|
|
129
129
|
key: o(e),
|
|
130
130
|
value: o(e)
|
|
131
|
-
}, s(c(e)), 9,
|
|
131
|
+
}, s(c(e)), 9, Te))), 128))], 42, Y));
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/utils/richTextColor.ts
|
|
136
|
-
function
|
|
136
|
+
function Q(e, t) {
|
|
137
137
|
return e || t || "#000000";
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
141
|
-
var
|
|
141
|
+
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
142
|
key: 1,
|
|
143
143
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
144
|
-
},
|
|
144
|
+
}, je = /* @__PURE__ */ b({
|
|
145
145
|
__name: "ParagraphToolbar",
|
|
146
146
|
props: {
|
|
147
147
|
editor: {},
|
|
@@ -156,53 +156,53 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
156
156
|
"add-logic-tag"
|
|
157
157
|
],
|
|
158
158
|
setup(e, { emit: t }) {
|
|
159
|
-
let r = e, a = t, o = i(
|
|
159
|
+
let r = e, a = t, o = i(te, null), p = i(ee, null), h = D(A, "ParagraphToolbar"), b = M(), S = i(O, null), C = i(k, null), w = i(ne, null), T = l(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = j(), N = h.fonts;
|
|
160
160
|
function P(e) {
|
|
161
161
|
r.editor?.chain().focus().insertContent(e).run();
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function I(e) {
|
|
164
164
|
return r.editor?.getAttributes("textStyle")[e] || "";
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function L(e) {
|
|
167
167
|
let t = r.editor?.chain().focus();
|
|
168
168
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function R(e) {
|
|
171
171
|
let t = r.editor?.chain().focus();
|
|
172
172
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function z() {
|
|
175
175
|
return r.editor?.isActive("link") ?? !1;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function B() {
|
|
178
178
|
return r.editor?.getAttributes("link").color || "";
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function V(e) {
|
|
181
181
|
let t = r.editor?.chain().focus();
|
|
182
|
-
t && (
|
|
182
|
+
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
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function H() {
|
|
185
185
|
let e = w?.content.value.settings;
|
|
186
|
-
return
|
|
186
|
+
return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(I("color"), e?.textColor);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
188
|
+
function U() {
|
|
189
|
+
return z() ? B() : I("color");
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function G() {
|
|
192
192
|
return r.editor?.getAttributes("paragraph").lineHeight || "";
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function K(e) {
|
|
195
195
|
let t = r.editor?.chain().focus();
|
|
196
196
|
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function q(e) {
|
|
199
199
|
let t = r.editor?.chain().focus();
|
|
200
200
|
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Y() {
|
|
203
203
|
return r.editor?.getAttributes("highlight").color || "";
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function X(e) {
|
|
206
206
|
let t = r.editor?.chain().focus();
|
|
207
207
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
208
208
|
}
|
|
@@ -221,63 +221,63 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
221
221
|
transform: "translateY(-100%)",
|
|
222
222
|
flexDirection: "column"
|
|
223
223
|
})
|
|
224
|
-
}, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div",
|
|
225
|
-
x(
|
|
226
|
-
"model-value":
|
|
224
|
+
}, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", De, [
|
|
225
|
+
x(Z, {
|
|
226
|
+
"model-value": I("fontFamily"),
|
|
227
227
|
options: f(N),
|
|
228
228
|
label: f(E).paragraphEditor.fontFamily,
|
|
229
229
|
placeholder: f(E).paragraphEditor.defaultFont,
|
|
230
230
|
"width-class": "tpl:w-32",
|
|
231
|
-
"onUpdate:modelValue":
|
|
231
|
+
"onUpdate:modelValue": L
|
|
232
232
|
}, null, 8, [
|
|
233
233
|
"model-value",
|
|
234
234
|
"options",
|
|
235
235
|
"label",
|
|
236
236
|
"placeholder"
|
|
237
237
|
]),
|
|
238
|
-
x(
|
|
239
|
-
"model-value":
|
|
240
|
-
options: f(
|
|
238
|
+
x(Z, {
|
|
239
|
+
"model-value": I("fontSize"),
|
|
240
|
+
options: f(xe),
|
|
241
241
|
label: f(E).paragraphEditor.fontSize,
|
|
242
242
|
placeholder: f(E).paragraphEditor.defaultSize,
|
|
243
243
|
"width-class": "tpl:w-20",
|
|
244
|
-
"onUpdate:modelValue":
|
|
244
|
+
"onUpdate:modelValue": R
|
|
245
245
|
}, null, 8, [
|
|
246
246
|
"model-value",
|
|
247
247
|
"options",
|
|
248
248
|
"label",
|
|
249
249
|
"placeholder"
|
|
250
250
|
]),
|
|
251
|
-
x(
|
|
252
|
-
x(
|
|
251
|
+
x(J),
|
|
252
|
+
x(F, {
|
|
253
253
|
"swatch-only": "",
|
|
254
254
|
size: "sm",
|
|
255
255
|
"data-testid": "text-color-picker",
|
|
256
|
-
"model-value":
|
|
257
|
-
"seed-color":
|
|
256
|
+
"model-value": U(),
|
|
257
|
+
"seed-color": H(),
|
|
258
258
|
"aria-label": f(E).paragraphEditor.textColor,
|
|
259
|
-
"onUpdate:modelValue":
|
|
259
|
+
"onUpdate:modelValue": V
|
|
260
260
|
}, null, 8, [
|
|
261
261
|
"model-value",
|
|
262
262
|
"seed-color",
|
|
263
263
|
"aria-label"
|
|
264
264
|
]),
|
|
265
|
-
x(
|
|
265
|
+
x(F, {
|
|
266
266
|
"swatch-only": "",
|
|
267
267
|
size: "sm",
|
|
268
268
|
"data-testid": "highlight-color-picker",
|
|
269
|
-
"model-value":
|
|
270
|
-
"seed-color": f(
|
|
269
|
+
"model-value": Y(),
|
|
270
|
+
"seed-color": f(Se),
|
|
271
271
|
"aria-label": f(E).paragraphEditor.highlightColor,
|
|
272
|
-
"onUpdate:modelValue":
|
|
272
|
+
"onUpdate:modelValue": X
|
|
273
273
|
}, null, 8, [
|
|
274
274
|
"model-value",
|
|
275
275
|
"seed-color",
|
|
276
276
|
"aria-label"
|
|
277
277
|
]),
|
|
278
|
-
x(
|
|
279
|
-
x(
|
|
280
|
-
icon: f(
|
|
278
|
+
x(J),
|
|
279
|
+
x(W, {
|
|
280
|
+
icon: f(oe),
|
|
281
281
|
label: f(E).paragraphEditor.bold,
|
|
282
282
|
active: e.editor.isActive("bold"),
|
|
283
283
|
"stroke-width": 2.5,
|
|
@@ -287,8 +287,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
287
287
|
"label",
|
|
288
288
|
"active"
|
|
289
289
|
]),
|
|
290
|
-
x(
|
|
291
|
-
icon: f(
|
|
290
|
+
x(W, {
|
|
291
|
+
icon: f(le),
|
|
292
292
|
label: f(E).paragraphEditor.italic,
|
|
293
293
|
active: e.editor.isActive("italic"),
|
|
294
294
|
onClick: r[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
@@ -297,8 +297,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
297
297
|
"label",
|
|
298
298
|
"active"
|
|
299
299
|
]),
|
|
300
|
-
x(
|
|
301
|
-
icon: f(
|
|
300
|
+
x(W, {
|
|
301
|
+
icon: f(fe),
|
|
302
302
|
label: f(E).paragraphEditor.underline,
|
|
303
303
|
active: e.editor.isActive("underline"),
|
|
304
304
|
onClick: r[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
@@ -307,8 +307,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
307
307
|
"label",
|
|
308
308
|
"active"
|
|
309
309
|
]),
|
|
310
|
-
x(
|
|
311
|
-
icon: f(
|
|
310
|
+
x(W, {
|
|
311
|
+
icon: f(ae),
|
|
312
312
|
label: f(E).paragraphEditor.strikethrough,
|
|
313
313
|
active: e.editor.isActive("strike"),
|
|
314
314
|
onClick: r[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
@@ -317,9 +317,9 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
317
317
|
"label",
|
|
318
318
|
"active"
|
|
319
319
|
]),
|
|
320
|
-
x(
|
|
321
|
-
x(
|
|
322
|
-
icon: f(
|
|
320
|
+
x(J),
|
|
321
|
+
x(W, {
|
|
322
|
+
icon: f(_e),
|
|
323
323
|
label: f(E).paragraphEditor.subscript,
|
|
324
324
|
active: e.editor.isActive("subscript"),
|
|
325
325
|
onClick: r[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
@@ -328,8 +328,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
328
328
|
"label",
|
|
329
329
|
"active"
|
|
330
330
|
]),
|
|
331
|
-
x(
|
|
332
|
-
icon: f(
|
|
331
|
+
x(W, {
|
|
332
|
+
icon: f(ve),
|
|
333
333
|
label: f(E).paragraphEditor.superscript,
|
|
334
334
|
active: e.editor.isActive("superscript"),
|
|
335
335
|
onClick: r[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
@@ -338,9 +338,9 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
338
338
|
"label",
|
|
339
339
|
"active"
|
|
340
340
|
]),
|
|
341
|
-
x(
|
|
342
|
-
x(
|
|
343
|
-
icon: f(
|
|
341
|
+
x(J),
|
|
342
|
+
x(W, {
|
|
343
|
+
icon: f(pe),
|
|
344
344
|
label: f(E).paragraphEditor.addLink,
|
|
345
345
|
active: e.editor.isActive("link"),
|
|
346
346
|
onClick: r[6] ||= (e) => a("open-link-dialog")
|
|
@@ -349,9 +349,9 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
349
349
|
"label",
|
|
350
350
|
"active"
|
|
351
351
|
])
|
|
352
|
-
]), g("div",
|
|
353
|
-
x(
|
|
354
|
-
icon: f(
|
|
352
|
+
]), g("div", Oe, [
|
|
353
|
+
x(W, {
|
|
354
|
+
icon: f(he),
|
|
355
355
|
label: f(E).paragraphEditor.bulletList,
|
|
356
356
|
active: e.editor.isActive("bulletList"),
|
|
357
357
|
onClick: r[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
@@ -360,8 +360,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
360
360
|
"label",
|
|
361
361
|
"active"
|
|
362
362
|
]),
|
|
363
|
-
x(
|
|
364
|
-
icon: f(
|
|
363
|
+
x(W, {
|
|
364
|
+
icon: f(ge),
|
|
365
365
|
label: f(E).paragraphEditor.numberedList,
|
|
366
366
|
active: e.editor.isActive("orderedList"),
|
|
367
367
|
onClick: r[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
@@ -370,8 +370,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
370
370
|
"label",
|
|
371
371
|
"active"
|
|
372
372
|
]),
|
|
373
|
-
x(
|
|
374
|
-
x(
|
|
373
|
+
x(J),
|
|
374
|
+
x(W, {
|
|
375
375
|
icon: f(me),
|
|
376
376
|
label: f(E).paragraphEditor.alignLeft,
|
|
377
377
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
@@ -381,8 +381,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
381
381
|
"label",
|
|
382
382
|
"active"
|
|
383
383
|
]),
|
|
384
|
-
x(
|
|
385
|
-
icon: f(
|
|
384
|
+
x(W, {
|
|
385
|
+
icon: f(se),
|
|
386
386
|
label: f(E).paragraphEditor.alignCenter,
|
|
387
387
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
388
388
|
onClick: r[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
@@ -391,8 +391,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
391
391
|
"label",
|
|
392
392
|
"active"
|
|
393
393
|
]),
|
|
394
|
-
x(
|
|
395
|
-
icon: f(
|
|
394
|
+
x(W, {
|
|
395
|
+
icon: f(ue),
|
|
396
396
|
label: f(E).paragraphEditor.alignRight,
|
|
397
397
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
398
398
|
onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
@@ -401,67 +401,77 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
401
401
|
"label",
|
|
402
402
|
"active"
|
|
403
403
|
]),
|
|
404
|
-
x(
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
404
|
+
x(W, {
|
|
405
|
+
icon: f(de),
|
|
406
|
+
label: f(E).paragraphEditor.alignJustify,
|
|
407
|
+
active: e.editor.isActive({ textAlign: "justify" }),
|
|
408
|
+
onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("justify").run()
|
|
409
|
+
}, null, 8, [
|
|
410
|
+
"icon",
|
|
411
|
+
"label",
|
|
412
|
+
"active"
|
|
413
|
+
]),
|
|
414
|
+
x(J),
|
|
415
|
+
x(Z, {
|
|
416
|
+
"model-value": G(),
|
|
417
|
+
options: f(be),
|
|
408
418
|
label: f(E).paragraphEditor.lineHeight,
|
|
409
419
|
placeholder: "LH",
|
|
410
420
|
"width-class": "tpl:w-16",
|
|
411
|
-
"onUpdate:modelValue":
|
|
421
|
+
"onUpdate:modelValue": K
|
|
412
422
|
}, null, 8, [
|
|
413
423
|
"model-value",
|
|
414
424
|
"options",
|
|
415
425
|
"label"
|
|
416
426
|
]),
|
|
417
|
-
x(
|
|
418
|
-
"model-value":
|
|
419
|
-
options: f(
|
|
427
|
+
x(Z, {
|
|
428
|
+
"model-value": I("letterSpacing"),
|
|
429
|
+
options: f(Ce),
|
|
420
430
|
label: f(E).paragraphEditor.letterSpacing,
|
|
421
431
|
placeholder: "LS",
|
|
422
432
|
"width-class": "tpl:w-20",
|
|
423
|
-
"onUpdate:modelValue":
|
|
433
|
+
"onUpdate:modelValue": q
|
|
424
434
|
}, null, 8, [
|
|
425
435
|
"model-value",
|
|
426
436
|
"options",
|
|
427
437
|
"label"
|
|
428
438
|
]),
|
|
429
|
-
x(
|
|
430
|
-
x(
|
|
431
|
-
icon: f(
|
|
439
|
+
x(J),
|
|
440
|
+
x(W, {
|
|
441
|
+
icon: f(ye),
|
|
432
442
|
label: f(E).paragraphEditor.clearFormatting,
|
|
433
|
-
onClick: r[
|
|
443
|
+
onClick: r[13] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
434
444
|
}, null, 8, ["icon", "label"]),
|
|
435
|
-
x(
|
|
436
|
-
x(
|
|
437
|
-
e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(
|
|
445
|
+
x(J),
|
|
446
|
+
x(we, { onInsert: P }),
|
|
447
|
+
e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(J), g("button", {
|
|
438
448
|
type: "button",
|
|
439
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:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
440
450
|
"aria-label": f(E).mergeTag.insert,
|
|
441
451
|
title: f(E).mergeTag.insert,
|
|
442
|
-
onClick: r[
|
|
443
|
-
}, [x(f(
|
|
452
|
+
onClick: r[14] ||= (e) => a("add-merge-tag")
|
|
453
|
+
}, [x(f(re), {
|
|
444
454
|
size: 16,
|
|
445
455
|
"stroke-width": 2
|
|
446
|
-
}), y(" " + s(f(E).mergeTag.insertShort), 1)], 8,
|
|
447
|
-
e.canInsertLogicTag ? (n(), u(v, { key: 1 }, [x(
|
|
456
|
+
}), y(" " + s(f(E).mergeTag.insertShort), 1)], 8, ke)], 64)) : d("", !0),
|
|
457
|
+
e.canInsertLogicTag ? (n(), u(v, { key: 1 }, [x(J), g("button", {
|
|
448
458
|
type: "button",
|
|
449
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:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
450
460
|
"aria-label": f(E).logicTag.insert,
|
|
451
461
|
title: f(E).logicTag.insert,
|
|
452
462
|
"data-testid": "insert-logic-button",
|
|
453
|
-
onClick: r[
|
|
463
|
+
onClick: r[15] ||= (e) => a("add-logic-tag")
|
|
454
464
|
}, [x(f(ie), {
|
|
455
465
|
size: 16,
|
|
456
466
|
"stroke-width": 2
|
|
457
|
-
}), y(" " + s(f(E).logicTag.insertShort), 1)], 8,
|
|
458
|
-
])], 64)) : (n(), u("div",
|
|
467
|
+
}), y(" " + s(f(E).logicTag.insertShort), 1)], 8, Ae)], 64)) : d("", !0)
|
|
468
|
+
])], 64)) : (n(), u("div", $, [x(f(ce), {
|
|
459
469
|
class: "tpl-spinner",
|
|
460
470
|
size: 14,
|
|
461
471
|
"stroke-width": 2
|
|
462
|
-
}), y(" " + s(f(E).errors.editorLoading), 1)]))], 12,
|
|
472
|
+
}), y(" " + s(f(E).errors.editorLoading), 1)]))], 12, Ee)], 8, ["to"])) : d("", !0);
|
|
463
473
|
}
|
|
464
|
-
}),
|
|
474
|
+
}), Me = { class: "tpl-text-editor-wrapper tpl:relative" }, Ne = /* @__PURE__ */ b({
|
|
465
475
|
__name: "ParagraphEditor",
|
|
466
476
|
props: {
|
|
467
477
|
block: {},
|
|
@@ -476,18 +486,18 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
476
486
|
editorName: "ParagraphEditor",
|
|
477
487
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
478
488
|
let [{ Editor: a, 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: C }] = await Promise.all([
|
|
479
|
-
import("./tiptap-
|
|
480
|
-
import("./tiptap-
|
|
481
|
-
import("./tiptap-
|
|
482
|
-
import("./tiptap-
|
|
483
|
-
import("./tiptap-
|
|
484
|
-
import("./tiptap-
|
|
485
|
-
import("./tiptap-
|
|
486
|
-
import("./tiptap-
|
|
487
|
-
import("./tiptap-
|
|
488
|
-
import("./tiptap-
|
|
489
|
-
import("./tiptap-
|
|
490
|
-
import("./extensions-
|
|
489
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.r),
|
|
490
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.i),
|
|
491
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.l),
|
|
492
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.a),
|
|
493
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.c),
|
|
494
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.s),
|
|
495
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.o),
|
|
496
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.p),
|
|
497
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.f),
|
|
498
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.d),
|
|
499
|
+
import("./tiptap-CgwK_fKJ.js").then((e) => e.u),
|
|
500
|
+
import("./extensions-yNQlgLNE.js")
|
|
491
501
|
]);
|
|
492
502
|
return {
|
|
493
503
|
TiptapEditor: a,
|
|
@@ -534,8 +544,8 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
534
544
|
};
|
|
535
545
|
}
|
|
536
546
|
});
|
|
537
|
-
return (r, i) => (n(), u("div",
|
|
538
|
-
x(
|
|
547
|
+
return (r, i) => (n(), u("div", Me, [
|
|
548
|
+
x(je, {
|
|
539
549
|
editor: f(s),
|
|
540
550
|
"toolbar-position": t.toolbarPosition,
|
|
541
551
|
"is-loading": f(l),
|
|
@@ -554,7 +564,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
554
564
|
"onAddMergeTag",
|
|
555
565
|
"onAddLogicTag"
|
|
556
566
|
]),
|
|
557
|
-
x(
|
|
567
|
+
x(L, {
|
|
558
568
|
editor: f(s),
|
|
559
569
|
"editor-content": f(c),
|
|
560
570
|
"is-loading": f(l),
|
|
@@ -567,7 +577,7 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
567
577
|
"init-error",
|
|
568
578
|
"onRetry"
|
|
569
579
|
]),
|
|
570
|
-
x(
|
|
580
|
+
x(I, {
|
|
571
581
|
visible: f(m),
|
|
572
582
|
"is-editing-link": f(s)?.isActive("link") ?? !1,
|
|
573
583
|
"dialog-ref": f(_),
|
|
@@ -595,6 +605,6 @@ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-cen
|
|
|
595
605
|
}
|
|
596
606
|
});
|
|
597
607
|
//#endregion
|
|
598
|
-
export {
|
|
608
|
+
export { Ne as default };
|
|
599
609
|
|
|
600
|
-
//# sourceMappingURL=ParagraphEditor-
|
|
610
|
+
//# sourceMappingURL=ParagraphEditor-o4hs9mgy.js.map
|