@templatical/editor 0.46.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-DGcH4Lyo.js → AiChatSidebar-DxPHFNoT.js} +14 -14
- package/dist/{AiFeatureMenu-B4q-0g1S.js → AiFeatureMenu-C8GVqu1d.js} +7 -7
- package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-BShkuJis.js} +5 -5
- package/dist/BlockPreviewCanvas-tzAtDkXH.js +141 -0
- package/dist/{CloudHeaderExtras-ehMYJP68.js → CloudHeaderExtras-CUSftQdm.js} +5 -5
- package/dist/{CloudPanels-BwOaAlKz.js → CloudPanels-Dgw7tb4R.js} +9 -9
- package/dist/{CollaboratorBar-qOZFRNPx.js → CollaboratorBar-5rfopCPx.js} +4 -4
- package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-DiWzYtnZ.js} +2 -2
- package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-BOqj16Al.js} +14 -14
- package/dist/CountdownBlock-zx39Dyby.js +92 -0
- package/dist/{CountdownToolbar-BeF21SeB.js → CountdownToolbar-C4y3Ft7H.js} +7 -7
- package/dist/{DesignReferenceSidebar-zH93uB15.js → DesignReferenceSidebar-BWAi3eQQ.js} +13 -13
- package/dist/{IssuesPanel-Dltw9haP.js → IssuesPanel-C-x3I012.js} +8 -8
- package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
- package/dist/{LogicTagInsertButton-CHa-UD76.js → LogicTagInsertButton-B1_Wy0AN.js} +13 -13
- package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-ByOvznRC.js} +4 -4
- package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-9mDBv4aL.js} +2 -2
- package/dist/{MergeTagInput-B3ntd4dN.js → MergeTagInput-fOewuF27.js} +3 -3
- package/dist/{MergeTagModeToggle-C_06ZL0Q.js → MergeTagModeToggle-BXamLcv7.js} +7 -7
- package/dist/{ParagraphEditor-CxuW3TV0.js → ParagraphEditor-BVjOwwHx.js} +100 -85
- package/dist/{RestoreVersionDialog-B1n37M1Z.js → RestoreVersionDialog-BEKXx9xk.js} +6 -6
- package/dist/{RichTextEditorContent-CP_uULWB.js → RichTextEditorContent-D7kp7iig.js} +12 -12
- package/dist/{SaveBlockDialog-BSKX_7_v.js → SaveBlockDialog-SJu0lecx.js} +34 -35
- package/dist/{SavedBlocksBrowserModal-CHKrH1gO.js → SavedBlocksBrowserModal-DbmIS5uK.js} +14 -14
- package/dist/{SavedBlocksPanels-B-xDqBcz.js → SavedBlocksPanels-Dr5Fxx9Z.js} +2 -2
- package/dist/{SavedBlocksPickBar-D2J-g82g.js → SavedBlocksPickBar-DnEWBZJy.js} +5 -5
- package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-ynbGl-sr.js} +16 -16
- package/dist/{TemplateSettings-D07K_Y4m.js → TemplateSettings-Bi01S3H3.js} +12 -12
- package/dist/{TestEmailModal-BNPw_lID.js → TestEmailModal-CbRY8HQx.js} +14 -14
- package/dist/{TestEmailPanel-8klWo8hE.js → TestEmailPanel-NAOmt3xi.js} +2 -2
- package/dist/{TitleEditor-CmC9OuhA.js → TitleEditor-Cc3DHbuN.js} +15 -15
- package/dist/{ToggleSwitch-COeyWGfT.js → ToggleSwitch-Ozc7YU38.js} +2 -2
- package/dist/Toolbar-B-2lO0I8.js +3156 -0
- package/dist/{TplModal-BGFawHY9.js → TplModal-Bz4-IZ9R.js} +6 -6
- package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-CjV1d1zk.js} +10 -10
- package/dist/{VersionHistoryPanels-DdbGjEOR.js → VersionHistoryPanels-BtwxrKJn.js} +2 -2
- package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-BLAei1kj.js} +4 -4
- package/dist/WrapperBlock-D0qgNqjD.js +45 -0
- package/dist/{blockTypeIcons-CVKo6V_v.js → blockTypeIcons-CEDZytqP.js} +50 -20
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-C__Dzq--.js → ca-CbNzJM3I.js} +38 -1
- package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js → AiChatSidebar-Dk0rJBQN.js} +8 -8
- package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js.map → AiChatSidebar-Dk0rJBQN.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js → AiFeatureMenu-B7b0w8ZS.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js.map → AiFeatureMenu-B7b0w8ZS.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-C7sdnkrF.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-C7sdnkrF.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js +143 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js → CloudHeaderExtras-B4fhuwc_.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js.map → CloudHeaderExtras-B4fhuwc_.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js → CloudPanels-awqHfJqC.js} +8 -8
- package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js.map → CloudPanels-awqHfJqC.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js → CollaboratorBar-CS0ivqkr.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js.map → CollaboratorBar-CS0ivqkr.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CbzxwsyI.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CbzxwsyI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-DWPHZuQm.js} +8 -8
- package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-DWPHZuQm.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
- package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
- package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js → CountdownToolbar-Cqg8FUH-.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js.map → CountdownToolbar-Cqg8FUH-.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js → DesignReferenceSidebar-BW9cHnA9.js} +12 -12
- package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js.map → DesignReferenceSidebar-BW9cHnA9.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js → IssuesPanel-cXf9ywA4.js} +8 -8
- package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js.map → IssuesPanel-cXf9ywA4.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js → LogicTagInsertButton-BMB9vShs.js} +89 -89
- package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js.map → LogicTagInsertButton-BMB9vShs.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-zXfcArr4.js} +4 -4
- package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-zXfcArr4.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-Cp4XB_dH.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-Cp4XB_dH.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js → MergeTagInput-DLqrA9co.js} +4 -4
- package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js.map → MergeTagInput-DLqrA9co.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js → MergeTagModeToggle-BRiJzzn5.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js.map → MergeTagModeToggle-BRiJzzn5.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DndEFXmR.js → ParagraphEditor-D4aq9eeC.js} +116 -101
- package/dist/cdn/chunks/ParagraphEditor-D4aq9eeC.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js → RestoreVersionDialog-BgR6RXSb.js} +6 -6
- package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js.map → RestoreVersionDialog-BgR6RXSb.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js → RichTextEditorContent-C4DMAn0g.js} +11 -11
- package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js.map → RichTextEditorContent-C4DMAn0g.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js → SaveBlockDialog-BaIsQd09.js} +41 -42
- package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js.map → SaveBlockDialog-BaIsQd09.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js → SavedBlocksBrowserModal-CtnB58p_.js} +10 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js.map → SavedBlocksBrowserModal-CtnB58p_.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js → SavedBlocksPanels-BhEOMzEQ.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js.map → SavedBlocksPanels-BhEOMzEQ.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js → SavedBlocksPickBar-CcdqTEIp.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js.map → SavedBlocksPickBar-CcdqTEIp.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-BrWqJCSP.js} +9 -9
- package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-BrWqJCSP.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-rZiHmq24.js → TemplateSettings-BkkWTDHD.js} +14 -14
- package/dist/cdn/chunks/TemplateSettings-BkkWTDHD.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js → TestEmailModal-V5mwHsUV.js} +13 -13
- package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js.map → TestEmailModal-V5mwHsUV.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js → TestEmailPanel-DxrKuctP.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js.map → TestEmailPanel-DxrKuctP.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js → TitleEditor-CsZiG3TT.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js.map → TitleEditor-CsZiG3TT.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js → ToggleSwitch-BB-bQADJ.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js.map → ToggleSwitch-BB-bQADJ.js.map} +1 -1
- package/dist/cdn/chunks/Toolbar-C_x2TfFk.js +3073 -0
- package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CYBbPCHL.js → TplModal-DC_eodTV.js} +6 -6
- package/dist/cdn/chunks/TplModal-DC_eodTV.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-DXnM5Df2.js} +11 -11
- package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-DXnM5Df2.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js → VersionHistoryPanels-DXSqmaLS.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js.map → VersionHistoryPanels-DXSqmaLS.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-DKyN6BhO.js} +5 -5
- package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-DKyN6BhO.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +47 -0
- package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +22 -0
- package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js.map +1 -0
- package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-CbNzJM3I.js} +39 -2
- package/dist/cdn/chunks/ca-CbNzJM3I.js.map +1 -0
- package/dist/cdn/chunks/{cloud-h1vaHp2p.js → cloud-BHClP3e2.js} +3 -3
- package/dist/cdn/chunks/{cloud-h1vaHp2p.js.map → cloud-BHClP3e2.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-bJN9EM1H.js → createCloudRuntime-Vd0N4elZ.js} +18 -9
- package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js.map +1 -0
- package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DMquBpZM.js} +39 -2
- package/dist/cdn/chunks/de-DMquBpZM.js.map +1 -0
- package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
- package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
- package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-vEEmZ8Tu.js} +93 -93
- package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-vEEmZ8Tu.js.map} +1 -1
- package/dist/cdn/chunks/{en-BTiiAC-B.js → en-C8Mp71sO.js} +39 -2
- package/dist/cdn/chunks/en-C8Mp71sO.js.map +1 -0
- package/dist/cdn/chunks/en-eWpiXyZu.js +1 -0
- package/dist/cdn/chunks/{es-CdTOcSTf.js → es-Byq4tthI.js} +39 -2
- package/dist/cdn/chunks/es-Byq4tthI.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CrmXF4MW.js → extensions-hJ9VqzDc.js} +7 -7
- package/dist/cdn/chunks/{extensions-CrmXF4MW.js.map → extensions-hJ9VqzDc.js.map} +1 -1
- package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-B3j35HEw.js} +39 -2
- package/dist/cdn/chunks/fr-B3j35HEw.js.map +1 -0
- package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-aTYwH5-g.js} +107 -78
- package/dist/cdn/chunks/icons-aTYwH5-g.js.map +1 -0
- package/dist/{ja-BhdkqENz.js → cdn/chunks/ja-D7txAuGS.js} +40 -1
- package/dist/cdn/chunks/ja-D7txAuGS.js.map +1 -0
- package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
- package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
- package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-ClJ3BY3F.js} +40 -1
- package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-CyGB3lZr.js → preRenderCustomBlocks-ByfuSjtL.js} +4 -2
- package/dist/cdn/chunks/preRenderCustomBlocks-ByfuSjtL.js.map +1 -0
- package/dist/{pt-BR-CUIT4rq4.js → cdn/chunks/pt-BR-DibcXcmv.js} +40 -1
- package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js +1279 -0
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +1 -0
- package/dist/{dist-BI_LeQGl.js → cdn/chunks/src-DYCDeBDM.js} +437 -256
- package/dist/cdn/chunks/src-DYCDeBDM.js.map +1 -0
- package/dist/cdn/chunks/{src-B0pZeTYO.js → src-DlFlC9Tt.js} +334 -268
- package/dist/cdn/chunks/src-DlFlC9Tt.js.map +1 -0
- package/dist/cdn/chunks/src-dZ4D_tuP.js +649 -0
- package/dist/cdn/chunks/src-dZ4D_tuP.js.map +1 -0
- package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
- package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js +6 -0
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-DuC7kVti.js → useEditorCore-Bb2UcB20.js} +780 -764
- package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js → useLogicTag-HsyUCQtl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js.map → useLogicTag-HsyUCQtl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js → useMergeTag-Dg9pE85U.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js.map → useMergeTag-Dg9pE85U.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js → useScrollToBlock-uUa601I4.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js.map → useScrollToBlock-uUa601I4.js.map} +1 -1
- package/dist/cdn/chunks/withCurrentFont-oLcATrQ8.js +21 -0
- package/dist/cdn/chunks/{withCurrentFont-isIyuezD.js.map → withCurrentFont-oLcATrQ8.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +641 -631
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ZKvtMdpe.js → check-ClwqRMgv.js} +1 -1
- package/dist/{chevron-down-RrwkYMlp.js → chevron-down-te6qn-zE.js} +1 -1
- package/dist/{chevron-right-CklHaa1U.js → chevron-right-W2hbH1FM.js} +1 -1
- package/dist/{chevron-up-DjN2NTbo.js → chevron-up-Bf5Zo7o4.js} +1 -1
- package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-CIEGV5DN.js} +1 -1
- package/dist/{clock-BEagNj21.js → clock-Y4cx0gkJ.js} +1 -1
- package/dist/{cloud-DPGjMGfv.js → cloud-B5xwm_4X.js} +2 -2
- package/dist/{copy-D6DNoSq1.js → copy-BEcsAlfB.js} +1 -1
- package/dist/{createCloudRuntime-D0RRgWab.js → createCloudRuntime-zNPkF6T9.js} +17 -8
- package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-CYHXK9hn.js} +6 -6
- package/dist/{de-CGjbQ2mt.js → de-DMquBpZM.js} +38 -1
- package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
- package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
- package/dist/dist-BPFcLKTw.js +5 -0
- package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
- package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
- package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
- package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
- package/dist/dist-D7Yj7E-F.js +5 -0
- package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
- package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
- package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
- package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
- package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
- package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
- package/dist/{cdn/chunks/src-Bh0MoJ67.js → dist-tsmnQugO.js} +207 -174
- package/dist/{editor-modal-oRmkDlUs.js → editor-modal-AlVLkU91.js} +20 -20
- package/dist/en-B0FUfNwz.js +1 -0
- package/dist/{en-BTiiAC-B.js → en-C8Mp71sO.js} +38 -1
- package/dist/{es-CdTOcSTf.js → es-Byq4tthI.js} +38 -1
- package/dist/{extensions-CYigjb1g.js → extensions-pjO8VGkM.js} +9 -9
- package/dist/{eye-DvsTBI57.js → eye-Ddnz8nnm.js} +1 -1
- package/dist/{fr-B6lcLLzC.js → fr-B3j35HEw.js} +38 -1
- package/dist/{image-up-BoFGZm5Q.js → image-up-CM_HC0Dx.js} +1 -1
- package/dist/index.d.ts +124 -11
- package/dist/{info-0bQQGjTV.js → info-DXLmzoeY.js} +1 -1
- package/dist/{cdn/chunks/ja-BhdkqENz.js → ja-D7txAuGS.js} +38 -3
- package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
- package/dist/{link-Cstrr3Ep.js → link-Cel46wgo.js} +1 -1
- package/dist/{list-Dx9Rmy5s.js → list-Cl0GwiV9.js} +1 -1
- package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-uAwpvfys.js} +1 -1
- package/dist/{message-circle-D78ELX6I.js → message-circle-DWU1pTM_.js} +1 -1
- package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-ClJ3BY3F.js} +38 -3
- package/dist/{package-DOvM9sHE.js → package-CbyG_yU_.js} +1 -1
- package/dist/{pencil-B6m0OG0n.js → pencil-BzoDcwKu.js} +1 -1
- package/dist/{plus-D-nEKxTc.js → plus-8cDvoCjZ.js} +1 -1
- package/dist/{preRenderCustomBlocks-DokBGA_M.js → preRenderCustomBlocks-DMP5RuHl.js} +6 -4
- package/dist/{cdn/chunks/pt-BR-CUIT4rq4.js → pt-BR-DibcXcmv.js} +38 -3
- package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-9WinWixo.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
- package/dist/{search-DSvil0jo.js → search-CqgGq1gG.js} +1 -1
- package/dist/{send-BBR28V94.js → send-Ceo3c9Db.js} +1 -1
- package/dist/{shield-check-ByxUnaU9.js → shield-check-uDAwur5D.js} +1 -1
- package/dist/{smartphone-CNOwGf5T.js → smartphone-CcLaCpGK.js} +1 -1
- package/dist/socialIcons-PTiwhLoC.js +1359 -0
- package/dist/{sparkles-DO1hzwzf.js → sparkles-Do9XjAuT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
- package/dist/templatical-editor.js +519 -509
- package/dist/{text-align-start-BKEKMheq.js → text-align-start-DvzC0HQA.js} +1 -1
- package/dist/timeouts-Cv2jvusx.js +4 -0
- package/dist/{trash-CKEQH4vH.js → trash-vlINTx32.js} +1 -1
- package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-MRYSJ9T2.js} +1 -1
- package/dist/{upload-C8uO7KsR.js → upload-CtNOI6J2.js} +1 -1
- package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
- package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
- package/dist/{useEditorCore-BJAQMvNW.js → useEditorCore-PvErWWsp.js} +1002 -991
- package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
- package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
- package/dist/{useLogicTag-B5gjcMzn.js → useLogicTag-BHn67tDd.js} +3 -3
- package/dist/{useMergeTag-BwsBIDzR.js → useMergeTag-CRkm5Ig6.js} +5 -5
- package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
- package/dist/{useScrollToBlock-JRxhT1u_.js → useScrollToBlock-CXmcHQQN.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
- package/dist/{withCurrentFont-C9vqrduu.js → withCurrentFont-CxRGeHO3.js} +1 -1
- package/dist/{x-gEC0yMci.js → x-Cd6SFw8r.js} +1 -1
- package/package.json +23 -23
- package/dist/BlockPreviewCanvas-DIZ0KgUD.js +0 -133
- package/dist/CountdownBlock-RNx3hIu0.js +0 -91
- package/dist/Toolbar-CqhRb6EM.js +0 -2732
- package/dist/WrapperBlock-CTkmA887.js +0 -34
- package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js +0 -135
- package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
- package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-C_5HfUQq.js +0 -2646
- package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +0 -1
- package/dist/cdn/chunks/TplModal-CYBbPCHL.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js +0 -36
- package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-DdZP-3FM.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DdZP-3FM.js.map +0 -1
- package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-bJN9EM1H.js.map +0 -1
- package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
- package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
- package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
- package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
- package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
- package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
- package/dist/cdn/chunks/icons-Dr9erFGs.js.map +0 -1
- package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
- package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-ClJVDZwt.js +0 -1031
- package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +0 -1
- package/dist/cdn/chunks/src-B0pZeTYO.js.map +0 -1
- package/dist/cdn/chunks/src-BMw3u-iV.js +0 -614
- package/dist/cdn/chunks/src-BMw3u-iV.js.map +0 -1
- package/dist/cdn/chunks/src-Bh0MoJ67.js.map +0 -1
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +0 -6
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
- package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +0 -21
- package/dist/dist-CFC4pg2o.js +0 -5
- package/dist/dist-j2FavQmU.js +0 -5
- package/dist/en-Bk4iCfjp.js +0 -1
- package/dist/socialIcons-Ct_IoqPQ.js +0 -1107
- package/dist/timeouts-DHPZQ0G3.js +0 -4
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as e, At as t, F as n, K as r, M as i, S as a, Z as o, at as s, c, d as l, g as u, h as d, i as f, jt as p, kt as m, l as h, r as g, s as _, u as v, v as y } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { c as b, s as x } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { t as C } from "./dist-
|
|
5
|
-
import {
|
|
6
|
-
import { $ as O, A as k, E as A, J as j, Z as M, g as N, v as P } from "./keys-
|
|
7
|
-
import { t as F } from "./useI18n-
|
|
8
|
-
import { n as I } from "./usePopoverPosition-
|
|
9
|
-
import { t as L } from "./createLucideIcon-
|
|
10
|
-
import { i as ee, n as R, r as te, t as z } from "./RichTextEditorContent-
|
|
11
|
-
import { c as B, l as ne, u as re } from "./LogicTagInsertButton-
|
|
12
|
-
import { t as ie } from "./link-
|
|
13
|
-
import { t as ae } from "./list-
|
|
14
|
-
import { t as oe } from "./loader-circle-
|
|
15
|
-
import { n as se, r as ce, t as le } from "./text-align-start-
|
|
1
|
+
import { A as e, At as t, F as n, K as r, M as i, S as a, Z as o, at as s, c, d as l, g as u, h as d, i as f, jt as p, kt as m, l as h, r as g, s as _, u as v, v as y } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
2
|
+
import { c as b, s as x } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
|
|
3
|
+
import { at as S } from "./dist-tsmnQugO.js";
|
|
4
|
+
import { t as C } from "./dist-DAAJogrx.js";
|
|
5
|
+
import { C as w, S as T, b as E, y as D } from "./useEditorCore-PvErWWsp.js";
|
|
6
|
+
import { $ as O, A as k, E as A, J as j, Z as M, g as N, v as P } from "./keys-BKFq19a2.js";
|
|
7
|
+
import { t as F } from "./useI18n-CxVEpurs.js";
|
|
8
|
+
import { n as I } from "./usePopoverPosition-CwnH1o5g.js";
|
|
9
|
+
import { t as L } from "./createLucideIcon-CYHXK9hn.js";
|
|
10
|
+
import { i as ee, n as R, r as te, t as z } from "./RichTextEditorContent-D7kp7iig.js";
|
|
11
|
+
import { c as B, l as ne, u as re } from "./LogicTagInsertButton-B1_Wy0AN.js";
|
|
12
|
+
import { t as ie } from "./link-Cel46wgo.js";
|
|
13
|
+
import { t as ae } from "./list-Cl0GwiV9.js";
|
|
14
|
+
import { t as oe } from "./loader-circle-uAwpvfys.js";
|
|
15
|
+
import { n as se, r as ce, t as le } from "./text-align-start-DvzC0HQA.js";
|
|
16
16
|
import { t as V } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
-
import { a as ue, n as de, o as fe, s as pe } from "./styleConstants-
|
|
18
|
-
import { n as me, t as he } from "./withCurrentFont-
|
|
17
|
+
import { a as ue, n as de, o as fe, s as pe } from "./styleConstants-D1Jz-TFU.js";
|
|
18
|
+
import { n as me, t as he } from "./withCurrentFont-CxRGeHO3.js";
|
|
19
19
|
var H = L({
|
|
20
20
|
name: "face-slightly-smiling",
|
|
21
21
|
size: 24,
|
|
@@ -187,8 +187,8 @@ var H = L({
|
|
|
187
187
|
__name: "EmojiPickerDropdown",
|
|
188
188
|
emits: ["insert"],
|
|
189
189
|
setup(t, { emit: n }) {
|
|
190
|
-
let r = n, { categories: a, isOpen: d, toggle: f, close: h } = T(), { t: y, format: S } = F(),
|
|
191
|
-
|
|
190
|
+
let r = n, { categories: a, isOpen: d, toggle: f, close: h } = T(), { t: y, format: S } = F(), E = o(null), D = o(null), O = _(() => d.value);
|
|
191
|
+
w(E, O), C(D, () => {
|
|
192
192
|
d.value && h();
|
|
193
193
|
});
|
|
194
194
|
function k(e) {
|
|
@@ -196,7 +196,7 @@ var H = L({
|
|
|
196
196
|
}
|
|
197
197
|
return (t, n) => (e(), l("div", {
|
|
198
198
|
ref_key: "rootRef",
|
|
199
|
-
ref:
|
|
199
|
+
ref: D,
|
|
200
200
|
class: "tpl:relative"
|
|
201
201
|
}, [c("button", {
|
|
202
202
|
type: "button",
|
|
@@ -214,7 +214,7 @@ var H = L({
|
|
|
214
214
|
key: 0,
|
|
215
215
|
id: "tpl-emoji-picker",
|
|
216
216
|
ref_key: "pickerRef",
|
|
217
|
-
ref:
|
|
217
|
+
ref: E,
|
|
218
218
|
role: "dialog",
|
|
219
219
|
"aria-modal": "false",
|
|
220
220
|
"aria-label": s(y).paragraphEditor.insertEmoji,
|
|
@@ -279,26 +279,36 @@ var Q = /*#__PURE__*/ V(X, [["render", we]]), Te = [
|
|
|
279
279
|
},
|
|
280
280
|
emits: ["update:modelValue"],
|
|
281
281
|
setup(t, { emit: n }) {
|
|
282
|
-
let r = n;
|
|
283
|
-
function a(e) {
|
|
284
|
-
r("update:modelValue", e.target.value);
|
|
285
|
-
}
|
|
282
|
+
let r = t, a = n;
|
|
286
283
|
function o(e) {
|
|
287
|
-
|
|
284
|
+
a("update:modelValue", e.target.value);
|
|
288
285
|
}
|
|
289
286
|
function s(e) {
|
|
287
|
+
return typeof e == "string" ? e : e.value;
|
|
288
|
+
}
|
|
289
|
+
function u(e) {
|
|
290
290
|
return typeof e == "string" ? e : e.label;
|
|
291
291
|
}
|
|
292
|
+
let d = /* @__PURE__ */ new Set([
|
|
293
|
+
"inherit",
|
|
294
|
+
"initial",
|
|
295
|
+
"unset",
|
|
296
|
+
"revert",
|
|
297
|
+
"revert-layer"
|
|
298
|
+
]), f = _(() => d.has(r.modelValue) ? "" : r.modelValue), h = _(() => {
|
|
299
|
+
let e = f.value;
|
|
300
|
+
return e === "" || r.options.some((t) => s(t) === e) ? r.options : [e, ...r.options];
|
|
301
|
+
});
|
|
292
302
|
return (n, r) => (e(), l("select", {
|
|
293
303
|
class: m(["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 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", t.widthClass ?? "tpl:w-20"]),
|
|
294
|
-
value:
|
|
304
|
+
value: f.value,
|
|
295
305
|
"aria-label": t.label,
|
|
296
306
|
title: t.label,
|
|
297
|
-
onChange:
|
|
298
|
-
}, [c("option", Ee, p(t.placeholder ?? ""), 1), (e(!0), l(g, null, i(
|
|
299
|
-
key:
|
|
300
|
-
value:
|
|
301
|
-
}, p(
|
|
307
|
+
onChange: o
|
|
308
|
+
}, [c("option", Ee, p(t.placeholder ?? ""), 1), (e(!0), l(g, null, i(h.value, (t) => (e(), l("option", {
|
|
309
|
+
key: s(t),
|
|
310
|
+
value: s(t)
|
|
311
|
+
}, p(u(t)), 9, De))), 128))], 42, Te));
|
|
302
312
|
}
|
|
303
313
|
});
|
|
304
314
|
//#endregion
|
|
@@ -326,53 +336,56 @@ var ke = ["data-tpl-theme", "aria-label"], Ae = { class: "tpl:flex tpl:items-cen
|
|
|
326
336
|
"add-logic-tag"
|
|
327
337
|
],
|
|
328
338
|
setup(n, { emit: r }) {
|
|
329
|
-
let i = n, o = r, m = a(j, null), y = a(M, null), b = O(P, "ParagraphToolbar"), x = I(), S = a(k, null), C = a(A, null), w = a(N, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = F(), D = b.fonts
|
|
330
|
-
|
|
339
|
+
let i = n, o = r, m = a(j, null), y = a(M, null), b = O(P, "ParagraphToolbar"), x = I(), S = a(k, null), C = a(A, null), w = a(N, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = F(), D = b.fonts, L = fe.map((e) => ({
|
|
340
|
+
value: e,
|
|
341
|
+
label: e === "normal" ? E.paragraphEditor.letterSpacingNormal : e
|
|
342
|
+
}));
|
|
343
|
+
function R(e) {
|
|
331
344
|
i.editor?.chain().focus().insertContent(e).run();
|
|
332
345
|
}
|
|
333
|
-
function
|
|
346
|
+
function z(e) {
|
|
334
347
|
return i.editor?.getAttributes("textStyle")[e] || "";
|
|
335
348
|
}
|
|
336
|
-
function
|
|
349
|
+
function V(e) {
|
|
337
350
|
let t = i.editor?.chain().focus();
|
|
338
351
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
339
352
|
}
|
|
340
|
-
function
|
|
353
|
+
function H(e) {
|
|
341
354
|
let t = i.editor?.chain().focus();
|
|
342
355
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
343
356
|
}
|
|
344
|
-
function
|
|
357
|
+
function U() {
|
|
345
358
|
return i.editor?.isActive("link") ?? !1;
|
|
346
359
|
}
|
|
347
|
-
function
|
|
360
|
+
function W() {
|
|
348
361
|
return i.editor?.getAttributes("link").color || "";
|
|
349
362
|
}
|
|
350
|
-
function
|
|
363
|
+
function G(e) {
|
|
351
364
|
let t = i.editor?.chain().focus();
|
|
352
|
-
t && (
|
|
353
|
-
}
|
|
354
|
-
function G() {
|
|
355
|
-
let e = w?.content.value.settings;
|
|
356
|
-
return H() ? Oe(U(), e?.linkColor || e?.textColor) : Oe(R("color"), e?.textColor);
|
|
365
|
+
t && (U() ? (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());
|
|
357
366
|
}
|
|
358
367
|
function K() {
|
|
359
|
-
|
|
368
|
+
let e = w?.content.value.settings;
|
|
369
|
+
return U() ? Oe(W(), e?.linkColor || e?.textColor) : Oe(z("color"), e?.textColor);
|
|
360
370
|
}
|
|
361
371
|
function q() {
|
|
372
|
+
return U() ? W() : z("color");
|
|
373
|
+
}
|
|
374
|
+
function J() {
|
|
362
375
|
return i.editor?.getAttributes("paragraph").lineHeight || "";
|
|
363
376
|
}
|
|
364
|
-
function
|
|
377
|
+
function X(e) {
|
|
365
378
|
let t = i.editor?.chain().focus();
|
|
366
379
|
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
367
380
|
}
|
|
368
|
-
function
|
|
381
|
+
function Z(e) {
|
|
369
382
|
let t = i.editor?.chain().focus();
|
|
370
383
|
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
371
384
|
}
|
|
372
|
-
function
|
|
385
|
+
function we() {
|
|
373
386
|
return i.editor?.getAttributes("highlight").color || "";
|
|
374
387
|
}
|
|
375
|
-
function
|
|
388
|
+
function Te(e) {
|
|
376
389
|
let t = i.editor?.chain().focus();
|
|
377
390
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
378
391
|
}
|
|
@@ -393,12 +406,12 @@ var ke = ["data-tpl-theme", "aria-label"], Ae = { class: "tpl:flex tpl:items-cen
|
|
|
393
406
|
})
|
|
394
407
|
}, [!n.isLoading && n.editor ? (e(), l(g, { key: 0 }, [c("div", Ae, [
|
|
395
408
|
u($, {
|
|
396
|
-
"model-value": s(he)(
|
|
397
|
-
options: s(me)(s(D),
|
|
409
|
+
"model-value": s(he)(z("fontFamily")),
|
|
410
|
+
options: s(me)(s(D), z("fontFamily")),
|
|
398
411
|
label: s(E).paragraphEditor.fontFamily,
|
|
399
412
|
placeholder: s(E).paragraphEditor.defaultFont,
|
|
400
413
|
"width-class": "tpl:w-32",
|
|
401
|
-
"onUpdate:modelValue":
|
|
414
|
+
"onUpdate:modelValue": V
|
|
402
415
|
}, null, 8, [
|
|
403
416
|
"model-value",
|
|
404
417
|
"options",
|
|
@@ -406,12 +419,12 @@ var ke = ["data-tpl-theme", "aria-label"], Ae = { class: "tpl:flex tpl:items-cen
|
|
|
406
419
|
"placeholder"
|
|
407
420
|
]),
|
|
408
421
|
u($, {
|
|
409
|
-
"model-value":
|
|
422
|
+
"model-value": z("fontSize"),
|
|
410
423
|
options: s(ue),
|
|
411
424
|
label: s(E).paragraphEditor.fontSize,
|
|
412
425
|
placeholder: s(E).paragraphEditor.defaultSize,
|
|
413
426
|
"width-class": "tpl:w-20",
|
|
414
|
-
"onUpdate:modelValue":
|
|
427
|
+
"onUpdate:modelValue": H
|
|
415
428
|
}, null, 8, [
|
|
416
429
|
"model-value",
|
|
417
430
|
"options",
|
|
@@ -423,10 +436,10 @@ var ke = ["data-tpl-theme", "aria-label"], Ae = { class: "tpl:flex tpl:items-cen
|
|
|
423
436
|
"swatch-only": "",
|
|
424
437
|
size: "sm",
|
|
425
438
|
"data-testid": "text-color-picker",
|
|
426
|
-
"model-value":
|
|
427
|
-
"seed-color":
|
|
439
|
+
"model-value": q(),
|
|
440
|
+
"seed-color": K(),
|
|
428
441
|
"aria-label": s(E).paragraphEditor.textColor,
|
|
429
|
-
"onUpdate:modelValue":
|
|
442
|
+
"onUpdate:modelValue": G
|
|
430
443
|
}, null, 8, [
|
|
431
444
|
"model-value",
|
|
432
445
|
"seed-color",
|
|
@@ -436,10 +449,10 @@ var ke = ["data-tpl-theme", "aria-label"], Ae = { class: "tpl:flex tpl:items-cen
|
|
|
436
449
|
"swatch-only": "",
|
|
437
450
|
size: "sm",
|
|
438
451
|
"data-testid": "highlight-color-picker",
|
|
439
|
-
"model-value":
|
|
452
|
+
"model-value": we(),
|
|
440
453
|
"seed-color": s(de),
|
|
441
454
|
"aria-label": s(E).paragraphEditor.highlightColor,
|
|
442
|
-
"onUpdate:modelValue":
|
|
455
|
+
"onUpdate:modelValue": Te
|
|
443
456
|
}, null, 8, [
|
|
444
457
|
"model-value",
|
|
445
458
|
"seed-color",
|
|
@@ -583,28 +596,30 @@ var ke = ["data-tpl-theme", "aria-label"], Ae = { class: "tpl:flex tpl:items-cen
|
|
|
583
596
|
]),
|
|
584
597
|
u(Q),
|
|
585
598
|
u($, {
|
|
586
|
-
"model-value":
|
|
599
|
+
"model-value": J(),
|
|
587
600
|
options: s(pe),
|
|
588
601
|
label: s(E).paragraphEditor.lineHeight,
|
|
589
|
-
placeholder:
|
|
602
|
+
placeholder: s(E).paragraphEditor.lineHeightShort,
|
|
590
603
|
"width-class": "tpl:w-16",
|
|
591
|
-
"onUpdate:modelValue":
|
|
604
|
+
"onUpdate:modelValue": X
|
|
592
605
|
}, null, 8, [
|
|
593
606
|
"model-value",
|
|
594
607
|
"options",
|
|
595
|
-
"label"
|
|
608
|
+
"label",
|
|
609
|
+
"placeholder"
|
|
596
610
|
]),
|
|
597
611
|
u($, {
|
|
598
|
-
"model-value":
|
|
599
|
-
options: s(
|
|
612
|
+
"model-value": z("letterSpacing"),
|
|
613
|
+
options: s(L),
|
|
600
614
|
label: s(E).paragraphEditor.letterSpacing,
|
|
601
|
-
placeholder:
|
|
615
|
+
placeholder: s(E).paragraphEditor.letterSpacingShort,
|
|
602
616
|
"width-class": "tpl:w-20",
|
|
603
|
-
"onUpdate:modelValue":
|
|
617
|
+
"onUpdate:modelValue": Z
|
|
604
618
|
}, null, 8, [
|
|
605
619
|
"model-value",
|
|
606
620
|
"options",
|
|
607
|
-
"label"
|
|
621
|
+
"label",
|
|
622
|
+
"placeholder"
|
|
608
623
|
]),
|
|
609
624
|
u(Q),
|
|
610
625
|
u(Y, {
|
|
@@ -613,7 +628,7 @@ var ke = ["data-tpl-theme", "aria-label"], Ae = { class: "tpl:flex tpl:items-cen
|
|
|
613
628
|
onClick: i[13] ||= (e) => n.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
614
629
|
}, null, 8, ["icon", "label"]),
|
|
615
630
|
u(Q),
|
|
616
|
-
u(Ce, { onInsert:
|
|
631
|
+
u(Ce, { onInsert: R }),
|
|
617
632
|
n.canRequestMergeTag ? (e(), l(g, { key: 0 }, [u(Q), c("button", {
|
|
618
633
|
type: "button",
|
|
619
634
|
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)]",
|
|
@@ -649,25 +664,25 @@ var ke = ["data-tpl-theme", "aria-label"], Ae = { class: "tpl:flex tpl:items-cen
|
|
|
649
664
|
},
|
|
650
665
|
emits: ["done"],
|
|
651
666
|
setup(t, { emit: n }) {
|
|
652
|
-
let i = t, o = n, c = I(), d = a(N, null), f = S(d?.content?.value?.settings ?? { locale: "en" }) === "rtl" ? "right" : "left", { editor: p, EditorContent: m, isLoading: h, initError: g, retry: _, showLinkDialog: v, linkUrl: y, linkColor: b, linkDialogRef: x, canRequestMergeTag: C, canInsertLogicTag:
|
|
667
|
+
let i = t, o = n, c = I(), d = a(N, null), f = S(d?.content?.value?.settings ?? { locale: "en" }) === "rtl" ? "right" : "left", { editor: p, EditorContent: m, isLoading: h, initError: g, retry: _, showLinkDialog: v, linkUrl: y, linkColor: b, linkDialogRef: x, canRequestMergeTag: C, canInsertLogicTag: w, openLinkDialog: T, insertLink: O, removeLink: k, closeLinkDialog: A, handleLinkKeydown: j, handleAddMergeTag: M, handleAddLogicTag: P } = D({
|
|
653
668
|
blockId: () => i.block.id,
|
|
654
669
|
blockContent: () => i.block.content,
|
|
655
670
|
onDone: () => o("done"),
|
|
656
671
|
editorName: "ParagraphEditor",
|
|
657
672
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
658
673
|
let [{ Editor: a, EditorContent: o }, { default: s }, { default: l }, { default: u }, { default: d }, { default: p }, { default: m }, { TextStyle: h }, { default: g }, { default: _ }, { default: v }, { MergeTagNode: y, MergeTagSuggestion: b, LogicMergeTagNode: x, FontSize: S, LineHeight: C, LetterSpacing: w, LineBoundaryKeys: T }] = await Promise.all([
|
|
659
|
-
import("./dist-
|
|
660
|
-
import("./dist-
|
|
661
|
-
import("./dist-
|
|
662
|
-
import("./dist-
|
|
663
|
-
import("./dist-
|
|
664
|
-
import("./dist-
|
|
665
|
-
import("./dist-
|
|
666
|
-
import("./dist-
|
|
667
|
-
import("./dist-
|
|
668
|
-
import("./dist-
|
|
669
|
-
import("./dist-
|
|
670
|
-
import("./extensions-
|
|
674
|
+
import("./dist-DuufrR8O.js").then((e) => e.r),
|
|
675
|
+
import("./dist-Cr7RPxI9.js"),
|
|
676
|
+
import("./dist-3HpYixwF.js"),
|
|
677
|
+
import("./dist-CuLwJF7H.js"),
|
|
678
|
+
import("./dist-BC-ZEYLd.js"),
|
|
679
|
+
import("./dist-DXyGqIDE.js"),
|
|
680
|
+
import("./dist-CyBwSiAa.js"),
|
|
681
|
+
import("./dist-DPcf6XZ8.js"),
|
|
682
|
+
import("./dist-BPFcLKTw.js"),
|
|
683
|
+
import("./dist-D7Yj7E-F.js"),
|
|
684
|
+
import("./dist-DVNjPKsH.js"),
|
|
685
|
+
import("./extensions-pjO8VGkM.js")
|
|
671
686
|
]);
|
|
672
687
|
return {
|
|
673
688
|
TiptapEditor: a,
|
|
@@ -724,8 +739,8 @@ var ke = ["data-tpl-theme", "aria-label"], Ae = { class: "tpl:flex tpl:items-cen
|
|
|
724
739
|
"toolbar-position": t.toolbarPosition,
|
|
725
740
|
"is-loading": s(h),
|
|
726
741
|
"can-request-merge-tag": s(C),
|
|
727
|
-
"can-insert-logic-tag": s(
|
|
728
|
-
onOpenLinkDialog: s(
|
|
742
|
+
"can-insert-logic-tag": s(w),
|
|
743
|
+
onOpenLinkDialog: s(T),
|
|
729
744
|
onAddMergeTag: s(M),
|
|
730
745
|
onAddLogicTag: s(P)
|
|
731
746
|
}, null, 8, [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as e, B as t, at as n, c as r, d as i, g as a, h as o, jt as s, kt as c, l, u, v as d } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { t as f } from "./useI18n-
|
|
3
|
-
import { t as p } from "./loader-circle-
|
|
4
|
-
import { t as m } from "./triangle-alert-
|
|
5
|
-
import { d as h, v as g, x as _ } from "./styleConstants-
|
|
6
|
-
import { t as v } from "./TplModal-
|
|
1
|
+
import { A as e, B as t, at as n, c as r, d as i, g as a, h as o, jt as s, kt as c, l, u, v as d } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
2
|
+
import { t as f } from "./useI18n-CxVEpurs.js";
|
|
3
|
+
import { t as p } from "./loader-circle-uAwpvfys.js";
|
|
4
|
+
import { t as m } from "./triangle-alert-MRYSJ9T2.js";
|
|
5
|
+
import { d as h, v as g, x as _ } from "./styleConstants-D1Jz-TFU.js";
|
|
6
|
+
import { t as v } from "./TplModal-Bz4-IZ9R.js";
|
|
7
7
|
//#region src/components/RestoreVersionDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x = {
|
|
9
9
|
id: "tpl-restore-version-title",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as e, At as t, F as n, I as r, S as i, at as a, c as o, d as s, g as c, h as l, i as u, jt as d, l as f, s as p, u as m, v as h, w as g } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { c as _ } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { J as v, Z as y, g as b } from "./keys-
|
|
4
|
-
import { t as x } from "./useI18n-
|
|
5
|
-
import { n as S } from "./usePopoverPosition-
|
|
6
|
-
import { t as C } from "./createLucideIcon-
|
|
7
|
-
import { c as w } from "./LogicTagInsertButton-
|
|
8
|
-
import { t as T } from "./x-
|
|
9
|
-
import { t as E } from "./MergeTagInput-
|
|
1
|
+
import { A as e, At as t, F as n, I as r, S as i, at as a, c as o, d as s, g as c, h as l, i as u, jt as d, l as f, s as p, u as m, v as h, w as g } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
2
|
+
import { c as _ } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
|
|
3
|
+
import { J as v, Z as y, g as b } from "./keys-BKFq19a2.js";
|
|
4
|
+
import { t as x } from "./useI18n-CxVEpurs.js";
|
|
5
|
+
import { n as S } from "./usePopoverPosition-CwnH1o5g.js";
|
|
6
|
+
import { t as C } from "./createLucideIcon-CYHXK9hn.js";
|
|
7
|
+
import { c as w } from "./LogicTagInsertButton-B1_Wy0AN.js";
|
|
8
|
+
import { t as T } from "./x-Cd6SFw8r.js";
|
|
9
|
+
import { t as E } from "./MergeTagInput-fOewuF27.js";
|
|
10
10
|
var D = C({
|
|
11
11
|
name: "bold",
|
|
12
12
|
size: 24,
|
|
@@ -125,10 +125,10 @@ var D = C({
|
|
|
125
125
|
}
|
|
126
126
|
}), V = {
|
|
127
127
|
key: 0,
|
|
128
|
-
class: "tpl-text-editable
|
|
128
|
+
class: "tpl-text-editable"
|
|
129
129
|
}, H = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, U = {
|
|
130
130
|
key: 1,
|
|
131
|
-
class: "tpl-text-editable tpl
|
|
131
|
+
class: "tpl-text-editable tpl-text-editable--error tpl:p-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
132
132
|
}, W = /* @__PURE__ */ h({
|
|
133
133
|
__name: "RichTextEditorContent",
|
|
134
134
|
props: {
|
|
@@ -146,7 +146,7 @@ var D = C({
|
|
|
146
146
|
}, d(a(c).errors.retry), 1)])) : t.editorContent && t.editor ? (e(), f(n(t.editorContent), {
|
|
147
147
|
key: 2,
|
|
148
148
|
editor: t.editor,
|
|
149
|
-
class: "tpl-text-editable
|
|
149
|
+
class: "tpl-text-editable"
|
|
150
150
|
}, null, 8, ["editor"])) : m("", !0);
|
|
151
151
|
}
|
|
152
152
|
});
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { A as e, At as t, B as n, D as r, F as i, M as a, O as o, R as s, S as c, V as l, Z as u, at as d, c as f, d as p, g as m, h, jt as g, kt as _, l as v, r as y, s as b, u as x, v as S } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { $ as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { v as
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as R } from "./BlockPreviewCanvas-DIZ0KgUD.js";
|
|
1
|
+
import { A as e, At as t, B as n, D as r, F as i, M as a, O as o, R as s, S as c, V as l, Z as u, at as d, c as f, d as p, g as m, h, jt as g, kt as _, l as v, r as y, s as b, u as x, v as S } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
2
|
+
import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
|
|
3
|
+
import { S as E, c as D } from "./socialIcons-PTiwhLoC.js";
|
|
4
|
+
import { T as ee, s as O } from "./useEditorCore-PvErWWsp.js";
|
|
5
|
+
import { $ as k, U as A, g as te, p as j } from "./keys-BKFq19a2.js";
|
|
6
|
+
import { t as M } from "./useI18n-CxVEpurs.js";
|
|
7
|
+
import { t as N } from "./chevron-down-te6qn-zE.js";
|
|
8
|
+
import { t as P } from "./chevron-up-Bf5Zo7o4.js";
|
|
9
|
+
import { t as F } from "./loader-circle-uAwpvfys.js";
|
|
10
|
+
import { v as I } from "./styleConstants-D1Jz-TFU.js";
|
|
11
|
+
import { t as L } from "./TplModal-Bz4-IZ9R.js";
|
|
12
|
+
import { t as R } from "./BlockPreviewCanvas-tzAtDkXH.js";
|
|
14
13
|
//#region src/components/SavedBlockPreviewRow.vue?vue&type=script&setup=true&lang.ts
|
|
15
14
|
var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relative tpl:min-w-0 tpl:flex-1" }, H = {
|
|
16
15
|
key: 0,
|
|
@@ -27,21 +26,21 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
27
26
|
},
|
|
28
27
|
emits: ["move"],
|
|
29
28
|
setup(n, { emit: a }) {
|
|
30
|
-
let s = n, l = a, { t: _, format: y } =
|
|
29
|
+
let s = n, l = a, { t: _, format: y } = M(), S = c(j, []), C = c(te, null), O = b(() => D(C?.content.value.settings)), k = u(null), A = u(null), F = u(1), I = u(null), L = u(!1), G = null, K = b(() => I.value !== null && I.value > W), q = b(() => I.value === null ? null : L.value || !K.value ? I.value : W);
|
|
31
30
|
function J() {
|
|
32
|
-
let e =
|
|
31
|
+
let e = k.value, t = A.value;
|
|
33
32
|
if (!e || !t) return;
|
|
34
33
|
let n = e.clientWidth;
|
|
35
34
|
if (n <= 0) return;
|
|
36
|
-
let r = Math.min(1, n /
|
|
37
|
-
|
|
35
|
+
let r = Math.min(1, n / O.value);
|
|
36
|
+
F.value = r, I.value = t.offsetHeight * r;
|
|
38
37
|
}
|
|
39
38
|
o(() => {
|
|
40
|
-
J(), typeof ResizeObserver < "u" && (G = new ResizeObserver(() => J()),
|
|
39
|
+
J(), typeof ResizeObserver < "u" && (G = new ResizeObserver(() => J()), k.value && G.observe(k.value), A.value && G.observe(A.value));
|
|
41
40
|
}), r(() => {
|
|
42
41
|
G?.disconnect(), G = null;
|
|
43
42
|
});
|
|
44
|
-
let Y = b(() =>
|
|
43
|
+
let Y = b(() => E(s.block, _, S)), X = b(() => y(_.savedBlocks.reorderHandle, {
|
|
45
44
|
block: Y.value,
|
|
46
45
|
position: s.position,
|
|
47
46
|
total: s.total
|
|
@@ -58,21 +57,21 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
58
57
|
"aria-label": X.value,
|
|
59
58
|
title: d(_).savedBlocks.reorderHint,
|
|
60
59
|
onKeydown: [a[0] ||= T(w((e) => l("move", -1), ["prevent"]), ["up"]), a[1] ||= T(w((e) => l("move", 1), ["prevent"]), ["down"])]
|
|
61
|
-
}, [m(d(
|
|
60
|
+
}, [m(d(ee), {
|
|
62
61
|
size: 14,
|
|
63
62
|
"stroke-width": 1.5
|
|
64
63
|
})], 40, B), f("div", V, [
|
|
65
64
|
f("div", {
|
|
66
65
|
ref_key: "frameEl",
|
|
67
|
-
ref:
|
|
66
|
+
ref: k,
|
|
68
67
|
class: "tpl:overflow-hidden",
|
|
69
68
|
style: t({ height: q.value === null ? void 0 : `${q.value}px` })
|
|
70
69
|
}, [f("div", {
|
|
71
70
|
ref_key: "contentEl",
|
|
72
|
-
ref:
|
|
71
|
+
ref: A,
|
|
73
72
|
style: t({
|
|
74
|
-
width: `${
|
|
75
|
-
transform: `scale(${
|
|
73
|
+
width: `${O.value}px`,
|
|
74
|
+
transform: `scale(${F.value})`,
|
|
76
75
|
transformOrigin: "top left"
|
|
77
76
|
})
|
|
78
77
|
}, [m(R, { blocks: [n.block] }, null, 8, ["blocks"])], 4)], 4),
|
|
@@ -85,7 +84,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
85
84
|
"aria-label": Z.value,
|
|
86
85
|
"aria-expanded": L.value,
|
|
87
86
|
onClick: a[2] ||= (e) => L.value = !L.value
|
|
88
|
-
}, [(e(), v(i(L.value ? d(
|
|
87
|
+
}, [(e(), v(i(L.value ? d(P) : d(N)), {
|
|
89
88
|
size: 11,
|
|
90
89
|
"stroke-width": 2
|
|
91
90
|
})), h(" " + g(L.value ? d(_).savedBlocks.collapse : d(_).savedBlocks.expand), 1)], 8, U)) : x("", !0)
|
|
@@ -123,7 +122,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
123
122
|
},
|
|
124
123
|
emits: ["close", "saved"],
|
|
125
124
|
setup(t, { emit: r }) {
|
|
126
|
-
let i = t, o = r, { t: S, format: w } =
|
|
125
|
+
let i = t, o = r, { t: S, format: w } = M(), T = k(te, "SaveBlockDialog"), D = k(A, "SaveBlockDialog"), ee = c(j, []), N = u(""), P = u(""), R = u(!1), z = u(null), B = u(""), V = u([]), H = b(() => {
|
|
127
126
|
let e = new Map(T.content.value.blocks.map((e) => [e.id, e]));
|
|
128
127
|
return V.value.map((t) => e.get(t)).filter((e) => e !== void 0);
|
|
129
128
|
}), U = b({
|
|
@@ -144,11 +143,11 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
144
143
|
}) : "";
|
|
145
144
|
}
|
|
146
145
|
function Q(e) {
|
|
147
|
-
return
|
|
146
|
+
return E(e, S, ee);
|
|
148
147
|
}
|
|
149
148
|
let ge = b(() => H.value.map(Q).join(", "));
|
|
150
149
|
s(() => i.visible, (e) => {
|
|
151
|
-
e && (N.value = "",
|
|
150
|
+
e && (N.value = "", P.value = "", z.value = null, B.value = "", V.value = [...i.pickedIds]);
|
|
152
151
|
}, { immediate: !0 });
|
|
153
152
|
let _e = b(() => N.value.trim().length > 0 && H.value.length > 0 && !R.value);
|
|
154
153
|
async function ve() {
|
|
@@ -157,7 +156,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
157
156
|
if (e.length !== 0) {
|
|
158
157
|
R.value = !0, z.value = null;
|
|
159
158
|
try {
|
|
160
|
-
await
|
|
159
|
+
await D.create(N.value.trim(), e, P.value.trim() || void 0), o("saved"), o("close");
|
|
161
160
|
} catch (e) {
|
|
162
161
|
z.value = e.message;
|
|
163
162
|
} finally {
|
|
@@ -200,22 +199,22 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
200
199
|
f("label", ne, g(d(S).savedBlocks.category), 1),
|
|
201
200
|
l(f("input", {
|
|
202
201
|
id: "tpl-save-block-category",
|
|
203
|
-
"onUpdate:modelValue": i[1] ||= (e) =>
|
|
202
|
+
"onUpdate:modelValue": i[1] ||= (e) => P.value = e,
|
|
204
203
|
type: "text",
|
|
205
204
|
"data-testid": "saved-blocks-category-input",
|
|
206
205
|
list: "tpl-saved-block-categories",
|
|
207
206
|
placeholder: d(S).savedBlocks.categoryPlaceholder,
|
|
208
207
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
209
208
|
disabled: R.value
|
|
210
|
-
}, null, 8, re), [[C,
|
|
211
|
-
f("datalist", ie, [(e(!0), p(y, null, a(d(
|
|
209
|
+
}, null, 8, re), [[C, P.value]]),
|
|
210
|
+
f("datalist", ie, [(e(!0), p(y, null, a(d(D).categories.value, (t) => (e(), p("option", {
|
|
212
211
|
key: t,
|
|
213
212
|
value: t
|
|
214
213
|
}, null, 8, ae))), 128))])
|
|
215
214
|
]),
|
|
216
215
|
f("p", oe, [h(g(d(w)(d(S).savedBlocks.savingCount, { count: H.value.length })) + " ", 1), f("span", se, g(ge.value), 1)]),
|
|
217
216
|
H.value.length > 1 ? (e(), p("p", ce, g(d(S).savedBlocks.reorderHint), 1)) : x("", !0),
|
|
218
|
-
m(d(
|
|
217
|
+
m(d(O), {
|
|
219
218
|
modelValue: U.value,
|
|
220
219
|
"onUpdate:modelValue": i[2] ||= (e) => U.value = e,
|
|
221
220
|
"data-testid": "saved-blocks-reorder-list",
|
|
@@ -249,10 +248,10 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
249
248
|
onClick: $
|
|
250
249
|
}, g(d(S).savedBlocks.cancel), 11, fe), f("button", {
|
|
251
250
|
type: "button",
|
|
252
|
-
class: _(d(
|
|
251
|
+
class: _(d(I)),
|
|
253
252
|
disabled: !_e.value,
|
|
254
253
|
onClick: ve
|
|
255
|
-
}, [R.value ? (e(), p("span", me, [m(d(
|
|
254
|
+
}, [R.value ? (e(), p("span", me, [m(d(F), {
|
|
256
255
|
class: "tpl:animate-spin",
|
|
257
256
|
size: 12,
|
|
258
257
|
"stroke-width": 2
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { A as e, At as t, B as n, E as r, F as i, M as a, R as o, S as ee, V as s, Z as c, _ as te, at as l, c as u, d, g as f, jt as p, kt as ne, l as m, r as h, s as g, u as _, v } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as y, c as b, i as x, s as S } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import { $ as C, U as re, X as ie, g as ae } from "./keys-
|
|
5
|
-
import { t as oe } from "./useI18n-
|
|
6
|
-
import { t as w } from "./blockTypeIcons-
|
|
7
|
-
import { t as T } from "./package-
|
|
8
|
-
import { t as se } from "./pencil-
|
|
9
|
-
import { t as ce } from "./search-
|
|
10
|
-
import { t as le } from "./trash-
|
|
11
|
-
import { t as ue } from "./x-
|
|
12
|
-
import { v as de } from "./styleConstants-
|
|
1
|
+
import { A as e, At as t, B as n, E as r, F as i, M as a, R as o, S as ee, V as s, Z as c, _ as te, at as l, c as u, d, g as f, jt as p, kt as ne, l as m, r as h, s as g, u as _, v } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
2
|
+
import { a as y, c as b, i as x, s as S } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
|
|
3
|
+
import "./useEditorCore-PvErWWsp.js";
|
|
4
|
+
import { $ as C, U as re, X as ie, g as ae } from "./keys-BKFq19a2.js";
|
|
5
|
+
import { t as oe } from "./useI18n-CxVEpurs.js";
|
|
6
|
+
import { t as w } from "./blockTypeIcons-CEDZytqP.js";
|
|
7
|
+
import { t as T } from "./package-CbyG_yU_.js";
|
|
8
|
+
import { t as se } from "./pencil-BzoDcwKu.js";
|
|
9
|
+
import { t as ce } from "./search-CqgGq1gG.js";
|
|
10
|
+
import { t as le } from "./trash-vlINTx32.js";
|
|
11
|
+
import { t as ue } from "./x-Cd6SFw8r.js";
|
|
12
|
+
import { v as de } from "./styleConstants-D1Jz-TFU.js";
|
|
13
13
|
import { t as fe } from "./formatAbsoluteDateTime-DMmop3C-.js";
|
|
14
14
|
import { t as pe } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
15
|
-
import { t as me } from "./TplModal-
|
|
15
|
+
import { t as me } from "./TplModal-Bz4-IZ9R.js";
|
|
16
16
|
//#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
17
17
|
var he = {
|
|
18
18
|
role: "dialog",
|
|
@@ -75,7 +75,7 @@ var he = {
|
|
|
75
75
|
props: { visible: { type: Boolean } },
|
|
76
76
|
emits: ["close", "insert"],
|
|
77
77
|
setup(v, { emit: D }) {
|
|
78
|
-
let dt = v, O = D, ft = te(() => import("./BlockPreviewCanvas-
|
|
78
|
+
let dt = v, O = D, ft = te(() => import("./BlockPreviewCanvas-tzAtDkXH.js").then((e) => e.n)), { t: k, format: A } = oe(), j = C(re, "SavedBlocksBrowserModal"), M = C(ae, "SavedBlocksBrowserModal"), pt = ee(ie, void 0), N = c(""), P = c(""), F = c(null), I = c(null), L = c(null), R = c(""), z = c(""), B = c(null), V = c(null), H = c(null), U = c("end"), W = /* @__PURE__ */ new Map();
|
|
79
79
|
function mt(e, t) {
|
|
80
80
|
t ? W.set(e, t) : W.delete(e);
|
|
81
81
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as e, _ as t, at as n, d as r, l as i, r as a, u as o, v as s } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { A as e, _ as t, at as n, d as r, l as i, r as a, u as o, v as s } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region src/components/SavedBlocksPanels.vue
|
|
4
4
|
var c = /* @__PURE__ */ s({
|
|
5
5
|
__name: "SavedBlocksPanels",
|
|
6
6
|
props: { feature: {} },
|
|
7
7
|
setup(s) {
|
|
8
|
-
let c = s, l = t(() => import("./SavedBlocksPickBar-
|
|
8
|
+
let c = s, l = t(() => import("./SavedBlocksPickBar-DnEWBZJy.js")), u = t(() => import("./SaveBlockDialog-SJu0lecx.js")), d = t(() => import("./SavedBlocksBrowserModal-DbmIS5uK.js"));
|
|
9
9
|
function f(e, t) {
|
|
10
10
|
c.feature.insert(e, t);
|
|
11
11
|
}
|