@templatical/editor 0.39.0 → 0.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -4
- package/dist/{AiChatSidebar-jVlXXND3.js → AiChatSidebar-pOxCZWz9.js} +14 -14
- package/dist/{AiFeatureMenu-C1HCntyQ.js → AiFeatureMenu-Bljk6Qjv.js} +7 -7
- package/dist/{BlockIssueBadge-JhNgcUmZ.js → BlockIssueBadge-D5oGxOQP.js} +5 -5
- package/dist/{BlockPreviewCanvas-C_rA5LJN.js → BlockPreviewCanvas-DXGjUECG.js} +27 -27
- package/dist/{CloudHeaderExtras-DvYyNsPB.js → CloudHeaderExtras-DaocwNmy.js} +5 -5
- package/dist/{CloudPanels-CDPhPVdd.js → CloudPanels-CyZAnSJY.js} +7 -7
- package/dist/{CollaboratorBar-Co9UPoB0.js → CollaboratorBar-C7Zca3g1.js} +4 -4
- package/dist/{CommentsPanel-CRcVN9Ri.js → CommentsPanel-CNOb7YCm.js} +2 -2
- package/dist/{CommentsSidebar-gDU977br.js → CommentsSidebar-VmwjU9va.js} +14 -14
- package/dist/{CountdownBlock-CEzrfe5R.js → CountdownBlock-DSvbf3qU.js} +3 -3
- package/dist/{CountdownToolbar-B00zhkNJ.js → CountdownToolbar-C2kfS6Oy.js} +31 -30
- package/dist/{DesignReferenceSidebar-DedivZZl.js → DesignReferenceSidebar-QC4gEUWp.js} +11 -11
- package/dist/{IssuesPanel-C-PjdmAV.js → IssuesPanel-DL2Xr14_.js} +8 -8
- package/dist/{LoadingTrack-BlTL4zFv.js → LoadingTrack-C2jKCU2d.js} +1 -1
- package/dist/LogicTagInsertButton-D8IwH-9Z.js +1071 -0
- package/dist/{MediaPanels-BpQNY8YX.js → MediaPanels-Cc4UkfG1.js} +2 -2
- package/dist/MergeTagInput-QI-5KG2R.js +81 -0
- package/dist/{MergeTagModeToggle-DGuzSAdX.js → MergeTagModeToggle-D793Bj_E.js} +14 -55
- package/dist/{ParagraphEditor-jMKLLTa8.js → ParagraphEditor-DkkPSexG.js} +65 -66
- package/dist/{RestoreVersionDialog-DG1jUdBM.js → RestoreVersionDialog-BgueZnZr.js} +5 -5
- package/dist/{RichTextEditorContent-JrNEg0kv.js → RichTextEditorContent-BC5UTVnb.js} +11 -11
- package/dist/{SaveBlockDialog-C0KC-OKs.js → SaveBlockDialog-BuTuVlLr.js} +12 -11
- package/dist/{SavedBlocksBrowserModal-zyOiRgWZ.js → SavedBlocksBrowserModal-Srhix8BB.js} +17 -16
- package/dist/{SavedBlocksPanels-epMd799w.js → SavedBlocksPanels-B2iScCS-.js} +2 -2
- package/dist/{SavedBlocksPickBar-CJqqQ3jd.js → SavedBlocksPickBar-cI7bDQQi.js} +4 -4
- package/dist/{TemplateScoringPanel-m2FOeaai.js → TemplateScoringPanel-C2Rdlyn6.js} +16 -16
- package/dist/TemplateSettings-C_5leDdF.js +245 -0
- package/dist/{TestEmailModal-D58kYkMV.js → TestEmailModal-DJ5q_u4N.js} +10 -10
- package/dist/{TestEmailPanel-BmFVBIQt.js → TestEmailPanel-CP24UGst.js} +2 -2
- package/dist/{TitleEditor-C4BGPXnf.js → TitleEditor-QBBOXtxx.js} +15 -15
- package/dist/ToggleSwitch-JvQ_CmI1.js +102 -0
- package/dist/Toolbar-COD2TW20.js +2426 -0
- package/dist/{TplModal-BIDJw4Kj.js → TplModal-C8xGjC1l.js} +5 -5
- package/dist/{VersionHistoryMenu-dt_aZQfh.js → VersionHistoryMenu-BVQityes.js} +10 -10
- package/dist/{VersionHistoryPanels-B_5SBRrr.js → VersionHistoryPanels-BrK6na4A.js} +2 -2
- package/dist/{VersionPreviewBanner-DttvOkwd.js → VersionPreviewBanner-BaMSgA1O.js} +3 -3
- package/dist/{blockTypeIcons-CzTizYmK.js → blockTypeIcons-CdXugKyV.js} +16 -37
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiChatSidebar-DeZl9Tk0.js → AiChatSidebar-CjSEoK4x.js} +8 -8
- package/dist/cdn/chunks/{AiChatSidebar-DeZl9Tk0.js.map → AiChatSidebar-CjSEoK4x.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-Bv8jMu9p.js → AiFeatureMenu-l0K5TOSn.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-Bv8jMu9p.js.map → AiFeatureMenu-l0K5TOSn.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-B6PpoOPv.js → BlockIssueBadge-9hHpaXb9.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-B6PpoOPv.js.map → BlockIssueBadge-9hHpaXb9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-DfEtDosD.js → BlockPreviewCanvas-lQrAdgG3.js} +30 -30
- package/dist/cdn/chunks/{BlockPreviewCanvas-DfEtDosD.js.map → BlockPreviewCanvas-lQrAdgG3.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-Hk98ub-C.js → CloudHeaderExtras-CXNe7Q-4.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-Hk98ub-C.js.map → CloudHeaderExtras-CXNe7Q-4.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-Ba3GLmvF.js → CloudPanels-bHhh9AUA.js} +6 -6
- package/dist/cdn/chunks/{CloudPanels-Ba3GLmvF.js.map → CloudPanels-bHhh9AUA.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-D2dCQ9gg.js → CollaboratorBar-DgqcaGGI.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-D2dCQ9gg.js.map → CollaboratorBar-DgqcaGGI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CV2HveQk.js → CommentsPanel-Cy4TlTHC.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CV2HveQk.js.map → CommentsPanel-Cy4TlTHC.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Dok_vaRc.js → CommentsSidebar-C7oAP3Mx.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-Dok_vaRc.js.map → CommentsSidebar-C7oAP3Mx.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DGDl3ota.js → CountdownBlock-DdC8Lg5F.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-DGDl3ota.js.map → CountdownBlock-DdC8Lg5F.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-B9Rin64t.js → CountdownToolbar-CN9h4nlC.js} +22 -21
- package/dist/cdn/chunks/{CountdownToolbar-B9Rin64t.js.map → CountdownToolbar-CN9h4nlC.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-eCuTFak2.js → DesignReferenceSidebar-Bjo0M-AY.js} +7 -7
- package/dist/cdn/chunks/{DesignReferenceSidebar-eCuTFak2.js.map → DesignReferenceSidebar-Bjo0M-AY.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CP7FEzw7.js → IssuesPanel-DdFk-Blf.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-CP7FEzw7.js.map → IssuesPanel-DdFk-Blf.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-Cm3TDKb3.js → LoadingTrack-Ba5xh5HD.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-Cm3TDKb3.js.map → LoadingTrack-Ba5xh5HD.js.map} +1 -1
- package/dist/cdn/chunks/LogicTagInsertButton-DpyPozop.js +1035 -0
- package/dist/cdn/chunks/LogicTagInsertButton-DpyPozop.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-TYrKKHX5.js → MediaPanels-kX9AZQ7K.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-TYrKKHX5.js.map → MediaPanels-kX9AZQ7K.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagInput-ERJr7bP_.js +83 -0
- package/dist/cdn/chunks/MergeTagInput-ERJr7bP_.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagModeToggle-QGTUIWWo.js → MergeTagModeToggle-n3nvSNeQ.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-QGTUIWWo.js.map → MergeTagModeToggle-n3nvSNeQ.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-D1tsPv4v.js → ParagraphEditor-DO4RzP8l.js} +40 -40
- package/dist/cdn/chunks/{ParagraphEditor-D1tsPv4v.js.map → ParagraphEditor-DO4RzP8l.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BeCxNPLS.js → RestoreVersionDialog-CzZ_sFnz.js} +5 -5
- package/dist/cdn/chunks/{RestoreVersionDialog-BeCxNPLS.js.map → RestoreVersionDialog-CzZ_sFnz.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BBxzACFQ.js → RichTextEditorContent-Ch5zeyZ7.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-BBxzACFQ.js.map → RichTextEditorContent-Ch5zeyZ7.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CLgh_g7H.js → SaveBlockDialog-LgxYrXyx.js} +10 -9
- package/dist/cdn/chunks/{SaveBlockDialog-CLgh_g7H.js.map → SaveBlockDialog-LgxYrXyx.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B4TcUJJe.js → SavedBlocksBrowserModal-CdeSsTpb.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B4TcUJJe.js.map → SavedBlocksBrowserModal-CdeSsTpb.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-CaBsHoRC.js → SavedBlocksPanels-B5hakNJj.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-CaBsHoRC.js.map → SavedBlocksPanels-B5hakNJj.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-iG35XCDx.js → SavedBlocksPickBar-Cl6PLwwV.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-iG35XCDx.js.map → SavedBlocksPickBar-Cl6PLwwV.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-DuQJBykq.js → TemplateScoringPanel--JxR6CsQ.js} +6 -6
- package/dist/cdn/chunks/{TemplateScoringPanel-DuQJBykq.js.map → TemplateScoringPanel--JxR6CsQ.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-DjXiiiNr.js +207 -0
- package/dist/cdn/chunks/TemplateSettings-DjXiiiNr.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-D6Woss3r.js → TestEmailModal-BAuDxJtD.js} +9 -9
- package/dist/cdn/chunks/{TestEmailModal-D6Woss3r.js.map → TestEmailModal-BAuDxJtD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-CWQFB7J3.js → TestEmailPanel-GUGZisLp.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-CWQFB7J3.js.map → TestEmailPanel-GUGZisLp.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CbY1tgSl.js → TitleEditor-uKu33Nwr.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-CbY1tgSl.js.map → TitleEditor-uKu33Nwr.js.map} +1 -1
- package/dist/cdn/chunks/ToggleSwitch-CDy8OfcB.js +104 -0
- package/dist/cdn/chunks/ToggleSwitch-CDy8OfcB.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-dxDYwN5E.js +2385 -0
- package/dist/cdn/chunks/Toolbar-dxDYwN5E.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CGpp-d_r.js → TplModal-DuwS2ifK.js} +5 -5
- package/dist/cdn/chunks/{TplModal-CGpp-d_r.js.map → TplModal-DuwS2ifK.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-ByVJXDbK.js → VersionHistoryMenu-Dij1pTEb.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-ByVJXDbK.js.map → VersionHistoryMenu-Dij1pTEb.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-CQJ5OggF.js → VersionHistoryPanels-GeR6MStB.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-CQJ5OggF.js.map → VersionHistoryPanels-GeR6MStB.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-G4lLbfr8.js → VersionPreviewBanner-Df3FVlig.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-G4lLbfr8.js.map → VersionPreviewBanner-Df3FVlig.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-CQY-vxdM.js → blockTypeIcons-raBjStuv.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-CQY-vxdM.js.map → blockTypeIcons-raBjStuv.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-BLgCKP7Z.js → cloud-eaXyxZ8l.js} +2 -2
- package/dist/cdn/chunks/{cloud-BLgCKP7Z.js.map → cloud-eaXyxZ8l.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-ClvtMBF1.js → createCloudRuntime-D5bXzcTe.js} +6 -6
- package/dist/cdn/chunks/{createCloudRuntime-ClvtMBF1.js.map → createCloudRuntime-D5bXzcTe.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BW6Y49zE.js → dist-BRZhN8qJ.js} +4 -4
- package/dist/cdn/chunks/dist-BRZhN8qJ.js.map +1 -0
- package/dist/cdn/chunks/{dist-CAFTQ6Y2.js → dist-CXB2_kBa.js} +27 -22
- package/dist/cdn/chunks/dist-CXB2_kBa.js.map +1 -0
- package/dist/cdn/chunks/{draggable-kbOhCgnk.js → draggable-IB4x6w2O.js} +1477 -1470
- package/dist/cdn/chunks/draggable-IB4x6w2O.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-B6IdQWlf.js → editor-modal-C_xYN_66.js} +7 -7
- package/dist/cdn/chunks/{editor-modal-B6IdQWlf.js.map → editor-modal-C_xYN_66.js.map} +1 -1
- package/dist/cdn/chunks/en-BwfjKb4M.js +2 -0
- package/dist/cdn/chunks/{extensions-D2YIhF7u.js → extensions-Bhu8UEE5.js} +105 -45
- package/dist/cdn/chunks/extensions-Bhu8UEE5.js.map +1 -0
- package/dist/cdn/chunks/{icons-DdrAicM2.js → icons-BKkJ-5xF.js} +43 -43
- package/dist/cdn/chunks/{icons-DdrAicM2.js.map → icons-BKkJ-5xF.js.map} +1 -1
- package/dist/cdn/chunks/{keys-DXYJTLZF.js → keys-dJbD1QPs.js} +2 -2
- package/dist/cdn/chunks/{keys-DXYJTLZF.js.map → keys-dJbD1QPs.js.map} +1 -1
- package/dist/cdn/chunks/socialIcons-9VrG8X3m.js +1054 -0
- package/dist/cdn/chunks/socialIcons-9VrG8X3m.js.map +1 -0
- package/dist/cdn/chunks/{src-fn7uy1FD.js → src-CZ-W8YBa.js} +3 -3
- package/dist/cdn/chunks/{src-fn7uy1FD.js.map → src-CZ-W8YBa.js.map} +1 -1
- package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js +36 -0
- package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-Epe8m3Vo.js → tiptap-DhLuKyDc.js} +2776 -2773
- package/dist/cdn/chunks/tiptap-DhLuKyDc.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-CT9gjvO_.js → useAliveFlag-DAlQLbM2.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-CT9gjvO_.js.map → useAliveFlag-DAlQLbM2.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-OezCj0cx.js → useCloudI18n-C09JcFS0.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-OezCj0cx.js.map → useCloudI18n-C09JcFS0.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BHmIp1hW.js +2592 -0
- package/dist/cdn/chunks/useEditorCore-BHmIp1hW.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-DFx2fXJP.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-ByHPMqYT.js.map → useEditorRoot-DFx2fXJP.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-BhE7ndNr.js → useI18n-DTZ9sIcv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-BhE7ndNr.js.map → useI18n-DTZ9sIcv.js.map} +1 -1
- package/dist/cdn/chunks/useLogicTag-E2V0Xdcb.js +38 -0
- package/dist/cdn/chunks/useLogicTag-E2V0Xdcb.js.map +1 -0
- package/dist/cdn/chunks/{useMergeTag-DE2mpy1w.js → useMergeTag-BE8oDoha.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-DE2mpy1w.js.map → useMergeTag-BE8oDoha.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BPL891uG.js → usePopoverPosition-gB9q-ql7.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-BPL891uG.js.map → usePopoverPosition-gB9q-ql7.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-DwF4pVur.js → useScrollToBlock-CtTXwmiU.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-DwF4pVur.js.map → useScrollToBlock-CtTXwmiU.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +809 -3337
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-9xX6RVHz.js → check-eqb2JhqU.js} +1 -1
- package/dist/{chevron-down-J5hFJ6TL.js → chevron-down-Dkr-7Ywl.js} +1 -1
- package/dist/{chevron-right-BJuo5PQ-.js → chevron-right-Bge4XF_B.js} +1 -1
- package/dist/{chevron-up-Qfi5k52_.js → chevron-up-CQAyl0kC.js} +1 -1
- package/dist/{circle-alert-BiArYmkB.js → circle-alert-CYgTHKWr.js} +1 -1
- package/dist/{clock-BkYJZ7Y0.js → clock-BgSJZJP5.js} +1 -1
- package/dist/{cloud-DdidMW6f.js → cloud-C9xWZXhg.js} +1 -1
- package/dist/{copy-BRLUNHwF.js → copy-mw6PVnOJ.js} +1 -1
- package/dist/{createCloudRuntime-CNFXaTNQ.js → createCloudRuntime-BGd5--Bq.js} +5 -5
- package/dist/{createLucideIcon-CDDkF1Tm.js → createLucideIcon-BxY5yz5u.js} +6 -6
- package/dist/{dist-D8i1ixHK.js → dist-8VFzbeu9.js} +3 -3
- package/dist/{dist-DBirAJIs.js → dist-BDuPwOyn.js} +26 -21
- package/dist/{dist-CtF9STPS.js → dist-BJM3eFyT.js} +1 -1
- package/dist/{dist-DkcA6epL.js → dist-BdHF7nyq.js} +3 -3
- package/dist/{dist-ByT5fgKq.js → dist-Bl4rxpX9.js} +1 -1
- package/dist/{dist-BVqAYoRB.js → dist-BmsLcnrO.js} +4 -4
- package/dist/{dist-CtMXAH7a.js → dist-BxVnMgXZ.js} +1 -1
- package/dist/{dist-DC-3T0ED.js → dist-CQSVro7b.js} +1 -1
- package/dist/{dist-f7HXo6j6.js → dist-DQbOebGW.js} +1 -1
- package/dist/{dist-DL9334yz.js → dist-DerFNpDY.js} +3 -3
- package/dist/{dist-D08oVYhr.js → dist-Djmzp6wi.js} +1 -1
- package/dist/{dist-D7WY8VPq.js → dist-DyrEOKEJ.js} +1 -1
- package/dist/{dist-DzdeVn-W.js → dist-EDkj3Ub1.js} +1 -1
- package/dist/{dist-C1tsW_99.js → dist-wyXxj3R1.js} +1 -1
- package/dist/{editor-modal-uAEB6xKz.js → editor-modal-OPhP71YO.js} +20 -20
- package/dist/en-CjNopehs.js +2 -0
- package/dist/extensions-DRN-elXT.js +1645 -0
- package/dist/{eye-DwhBOaV8.js → eye-DphkRtAD.js} +1 -1
- package/dist/{image-up-CiyQNZBt.js → image-up-Qi2BXD7T.js} +1 -1
- package/dist/{info-D6A1qEiF.js → info-VSyAs02q.js} +1 -1
- package/dist/{keys-DD1rl72F.js → keys-BdoSgsz9.js} +1 -1
- package/dist/{link-tKGmYWsB.js → link-CNuozGqD.js} +1 -1
- package/dist/{list-DjZQRpeI.js → list-BA0I5Wmu.js} +1 -1
- package/dist/{loader-circle-D9ZL3Sv0.js → loader-circle-z5eeqasv.js} +1 -1
- package/dist/{message-circle-KTHxCcpB.js → message-circle-BsQ9hEup.js} +1 -1
- package/dist/package-OkXfuRoO.js +25 -0
- package/dist/{pencil-Bq-nbQ7F.js → pencil-DFVFA7Dj.js} +1 -1
- package/dist/{plus-CRMnR4IG.js → plus-D8bkVjZ7.js} +1 -1
- package/dist/{refresh-cw-D7bYS5tm.js → refresh-cw-DPB7YFuz.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-PnoZU512.js → runtime-dom.esm-bundler-BGbPz4-g.js} +2 -2
- package/dist/{search-DUo0YwPz.js → search-C-dCgqIa.js} +1 -1
- package/dist/{send-DaVMQphu.js → send-Cm2fy2zm.js} +1 -1
- package/dist/{shield-check-DxaaurL9.js → shield-check-COgBYFDF.js} +1 -1
- package/dist/smartphone-v0u_MOEV.js +46 -0
- package/dist/socialIcons-DkGcpEwC.js +1130 -0
- package/dist/{sparkles-D6T6k30e.js → sparkles-Ds0RF8Iu.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templateSettingsFields-YCFVBVYh.js +34 -0
- package/dist/templatical-editor.js +895 -3498
- package/dist/{text-align-start-vreFpmCX.js → text-align-start-DiavaIm6.js} +1 -1
- package/dist/{trash-DBv8MGY6.js → trash-DnOkfu2V.js} +1 -1
- package/dist/{triangle-alert-CmNS2LLv.js → triangle-alert-DGLAyXnh.js} +1 -1
- package/dist/{upload-DDB9Fs0P.js → upload-BBDme2cy.js} +1 -1
- package/dist/{useAliveFlag-oyByIcjy.js → useAliveFlag-BkKyhkwZ.js} +1 -1
- package/dist/{useCloudI18n-C1wuXik6.js → useCloudI18n-D1iedlP3.js} +2 -2
- package/dist/{useEditorCore-jfwgLThK.js → useEditorCore-C5APBjjV.js} +1140 -2325
- package/dist/{useEditorRoot-eVv4doqZ.js → useEditorRoot-BOxn5EfP.js} +2 -2
- package/dist/{useI18n-VOtdfENx.js → useI18n-Ds_-druD.js} +2 -2
- package/dist/useLogicTag-DoHfc08B.js +36 -0
- package/dist/{useMergeTag-CQM9pFca.js → useMergeTag-DXyum3kG.js} +2 -2
- package/dist/{usePopoverPosition-gZjRywai.js → usePopoverPosition-Du-Ah8E9.js} +2 -2
- package/dist/{useScrollToBlock-C0Ehnyl4.js → useScrollToBlock-DXQYPCnJ.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-DShF3P6k.js → vue.runtime.esm-bundler-CyqhBwpY.js} +1133 -1126
- package/dist/{x-B7sgO_z8.js → x-3BHV3Q6K.js} +1 -1
- package/package.json +14 -14
- package/dist/ColorPicker-BTtN94te.js +0 -501
- package/dist/FieldRow-C8nOknr_.js +0 -128
- package/dist/MergeTagInput-Cw1RoMly.js +0 -509
- package/dist/MergeTagSuggestion-BXO3UIXW.js +0 -1329
- package/dist/cdn/chunks/ColorPicker-BaonTCAQ.js +0 -502
- package/dist/cdn/chunks/ColorPicker-BaonTCAQ.js.map +0 -1
- package/dist/cdn/chunks/FieldRow-D9OJhYeb.js +0 -130
- package/dist/cdn/chunks/FieldRow-D9OJhYeb.js.map +0 -1
- package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js +0 -470
- package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-CY6WK8Eb.js +0 -215
- package/dist/cdn/chunks/MergeTagSuggestion-CY6WK8Eb.js.map +0 -1
- package/dist/cdn/chunks/dist-BW6Y49zE.js.map +0 -1
- package/dist/cdn/chunks/dist-CAFTQ6Y2.js.map +0 -1
- package/dist/cdn/chunks/draggable-kbOhCgnk.js.map +0 -1
- package/dist/cdn/chunks/en-DjunooBz.js +0 -2
- package/dist/cdn/chunks/extensions-D2YIhF7u.js.map +0 -1
- package/dist/cdn/chunks/tiptap-Epe8m3Vo.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-06PtcUi1.js +0 -3698
- package/dist/cdn/chunks/useEditorCore-06PtcUi1.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-ByHPMqYT.js +0 -10
- package/dist/en-CQWkDCpm.js +0 -2
- package/dist/extensions-CcGj7OfS.js +0 -470
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { E as e } from "./draggable-kbOhCgnk.js";
|
|
2
|
-
import { _ as t } from "./keys-DXYJTLZF.js";
|
|
3
|
-
//#region src/composables/useEditorRoot.ts
|
|
4
|
-
function n() {
|
|
5
|
-
return e(t, document) ?? document;
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { n as t };
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=useEditorRoot-ByHPMqYT.js.map
|
package/dist/en-CQWkDCpm.js
DELETED
|
@@ -1,470 +0,0 @@
|
|
|
1
|
-
import { A as e, At as t, B as n, E as r, J as i, V as a, Z as o, at as s, c, d as l, jt as u, kt as d, l as f, s as p, u as m, v as h } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
-
import { a as g, c as _, s as v } from "./runtime-dom.esm-bundler-PnoZU512.js";
|
|
3
|
-
import { F as y, O as b, k as x, o as S } from "./dist-tGkjkX-v.js";
|
|
4
|
-
import { t as C } from "./useI18n-VOtdfENx.js";
|
|
5
|
-
import { t as w } from "./useMergeTag-CQM9pFca.js";
|
|
6
|
-
import { gn as T, m as E, s as D, u as O, v as k } from "./dist-DL9334yz.js";
|
|
7
|
-
import { i as A, r as j, t as M } from "./MergeTagSuggestion-BXO3UIXW.js";
|
|
8
|
-
import { n as N, t as P } from "./dist-BVqAYoRB.js";
|
|
9
|
-
//#region src/extensions/FontSize.ts
|
|
10
|
-
var F = D.create({
|
|
11
|
-
name: "fontSize",
|
|
12
|
-
addOptions() {
|
|
13
|
-
return { types: ["textStyle"] };
|
|
14
|
-
},
|
|
15
|
-
addGlobalAttributes() {
|
|
16
|
-
return [{
|
|
17
|
-
types: this.options.types,
|
|
18
|
-
attributes: { fontSize: {
|
|
19
|
-
default: null,
|
|
20
|
-
parseHTML: (e) => e.style.fontSize?.replace(/['"]+/g, "") || null,
|
|
21
|
-
renderHTML: (e) => e.fontSize ? { style: `font-size: ${e.fontSize}` } : {}
|
|
22
|
-
} }
|
|
23
|
-
}];
|
|
24
|
-
},
|
|
25
|
-
addCommands() {
|
|
26
|
-
return {
|
|
27
|
-
setFontSize: (e) => ({ chain: t }) => t().setMark("textStyle", { fontSize: e }).run(),
|
|
28
|
-
unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}), I = D.create({
|
|
32
|
-
name: "letterSpacing",
|
|
33
|
-
addOptions() {
|
|
34
|
-
return { types: ["textStyle"] };
|
|
35
|
-
},
|
|
36
|
-
addGlobalAttributes() {
|
|
37
|
-
return [{
|
|
38
|
-
types: this.options.types,
|
|
39
|
-
attributes: { letterSpacing: {
|
|
40
|
-
default: null,
|
|
41
|
-
parseHTML: (e) => e.style.letterSpacing?.replace(/['"]+/g, "") || null,
|
|
42
|
-
renderHTML: (e) => e.letterSpacing ? { style: `letter-spacing: ${e.letterSpacing}` } : {}
|
|
43
|
-
} }
|
|
44
|
-
}];
|
|
45
|
-
},
|
|
46
|
-
addCommands() {
|
|
47
|
-
return {
|
|
48
|
-
setLetterSpacing: (e) => ({ chain: t }) => t().setMark("textStyle", { letterSpacing: e }).run(),
|
|
49
|
-
unsetLetterSpacing: () => ({ chain: e }) => e().setMark("textStyle", { letterSpacing: null }).removeEmptyTextStyle().run()
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}), L = D.create({
|
|
53
|
-
name: "lineBoundaryKeys",
|
|
54
|
-
addKeyboardShortcuts() {
|
|
55
|
-
let e = (e) => ({ editor: t }) => {
|
|
56
|
-
let n = t.view;
|
|
57
|
-
if (!n || n.composing) return !1;
|
|
58
|
-
let r = typeof n.root?.getSelection == "function" ? n.root.getSelection() : n.dom?.ownerDocument?.getSelection?.() ?? null;
|
|
59
|
-
return !r || typeof r.modify != "function" || !r.anchorNode || !n.dom.contains(r.anchorNode) ? !1 : (r.modify("move", e, "lineboundary"), !0);
|
|
60
|
-
};
|
|
61
|
-
return {
|
|
62
|
-
End: e("forward"),
|
|
63
|
-
Home: e("backward")
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
}), R = D.create({
|
|
67
|
-
name: "lineHeight",
|
|
68
|
-
addOptions() {
|
|
69
|
-
return {
|
|
70
|
-
types: ["paragraph"],
|
|
71
|
-
defaultLineHeight: "1.5"
|
|
72
|
-
};
|
|
73
|
-
},
|
|
74
|
-
addGlobalAttributes() {
|
|
75
|
-
return [{
|
|
76
|
-
types: this.options.types,
|
|
77
|
-
attributes: { lineHeight: {
|
|
78
|
-
default: null,
|
|
79
|
-
parseHTML: (e) => e.style.lineHeight || null,
|
|
80
|
-
renderHTML: (e) => e.lineHeight ? { style: `line-height: ${e.lineHeight}` } : {}
|
|
81
|
-
} }
|
|
82
|
-
}];
|
|
83
|
-
},
|
|
84
|
-
addCommands() {
|
|
85
|
-
return {
|
|
86
|
-
setLineHeight: (e) => ({ commands: t }) => this.options.types.every((n) => t.updateAttributes(n, { lineHeight: e })),
|
|
87
|
-
unsetLineHeight: () => ({ commands: e }) => this.options.types.every((t) => e.resetAttributes(t, "lineHeight"))
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
}), z = [
|
|
91
|
-
"aria-label",
|
|
92
|
-
"data-tooltip",
|
|
93
|
-
"onKeydown"
|
|
94
|
-
], B = ["aria-label", "onKeydown"], V = ["aria-label"], H = /* @__PURE__ */ h({
|
|
95
|
-
__name: "LogicMergeTagNodeView",
|
|
96
|
-
props: {
|
|
97
|
-
node: {},
|
|
98
|
-
editor: {},
|
|
99
|
-
getPos: { type: Function },
|
|
100
|
-
deleteNode: { type: Function },
|
|
101
|
-
updateAttributes: { type: Function }
|
|
102
|
-
},
|
|
103
|
-
setup(i) {
|
|
104
|
-
let h = i, { syntax: x } = w(), { t: S } = C(), T = p(() => y(h.node.attrs.value, x)), E = p(() => b(h.node.attrs.value, x)), D = o(!1), O = o(""), k = o(null), A = !1;
|
|
105
|
-
function j() {
|
|
106
|
-
O.value = h.node.attrs.value, A = !1, D.value = !0, r(() => {
|
|
107
|
-
k.value?.focus(), k.value?.select();
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function M() {
|
|
111
|
-
if (A) return;
|
|
112
|
-
A = !0;
|
|
113
|
-
let e = O.value.trim();
|
|
114
|
-
if (!e) {
|
|
115
|
-
D.value = !1;
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
e !== h.node.attrs.value && h.updateAttributes({
|
|
119
|
-
value: e,
|
|
120
|
-
keyword: y(e, x) ? b(e, x) : ""
|
|
121
|
-
}), D.value = !1;
|
|
122
|
-
}
|
|
123
|
-
function N(e) {
|
|
124
|
-
e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (D.value = !1);
|
|
125
|
-
}
|
|
126
|
-
return (r, o) => (e(), f(s(P), {
|
|
127
|
-
as: "span",
|
|
128
|
-
class: d(T.value ? "tpl-logic-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase tpl:select-none" : ""),
|
|
129
|
-
style: t(T.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
|
|
130
|
-
contenteditable: "false"
|
|
131
|
-
}, {
|
|
132
|
-
default: n(() => [D.value ? a((e(), l("input", {
|
|
133
|
-
key: 0,
|
|
134
|
-
ref_key: "inputRef",
|
|
135
|
-
ref: k,
|
|
136
|
-
"onUpdate:modelValue": o[0] ||= (e) => O.value = e,
|
|
137
|
-
type: "text",
|
|
138
|
-
class: "tpl:w-40 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:normal-case tpl:outline-none tpl:text-[var(--tpl-primary)]",
|
|
139
|
-
onBlur: M,
|
|
140
|
-
onKeydown: N
|
|
141
|
-
}, null, 544)), [[g, O.value]]) : T.value ? (e(), l("span", {
|
|
142
|
-
key: 1,
|
|
143
|
-
role: "button",
|
|
144
|
-
tabindex: "0",
|
|
145
|
-
"aria-label": s(S).mergeTag.editValue,
|
|
146
|
-
class: "tpl-tooltip tpl:cursor-pointer",
|
|
147
|
-
"data-tooltip": i.node.attrs.value,
|
|
148
|
-
onClick: _(j, ["stop"]),
|
|
149
|
-
onKeydown: [v(_(j, ["stop"]), ["enter"]), v(_(j, ["prevent", "stop"]), ["space"])]
|
|
150
|
-
}, u(E.value), 41, z)) : (e(), l("span", {
|
|
151
|
-
key: 2,
|
|
152
|
-
role: "button",
|
|
153
|
-
tabindex: "0",
|
|
154
|
-
"aria-label": s(S).mergeTag.editValue,
|
|
155
|
-
onClick: _(j, ["stop"]),
|
|
156
|
-
onKeydown: [v(_(j, ["stop"]), ["enter"]), v(_(j, ["prevent", "stop"]), ["space"])]
|
|
157
|
-
}, u(i.node.attrs.value), 41, B)), T.value ? (e(), l("button", {
|
|
158
|
-
key: 3,
|
|
159
|
-
type: "button",
|
|
160
|
-
"aria-label": s(S).mergeTag.deleteMergeTag,
|
|
161
|
-
class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all tpl:hover:opacity-100 tpl:text-[var(--tpl-primary)]",
|
|
162
|
-
contenteditable: "false",
|
|
163
|
-
onClick: o[1] ||= _((...e) => i.deleteNode && i.deleteNode(...e), ["stop", "prevent"])
|
|
164
|
-
}, [...o[2] ||= [c("svg", {
|
|
165
|
-
width: "10",
|
|
166
|
-
height: "10",
|
|
167
|
-
viewBox: "0 0 24 24",
|
|
168
|
-
fill: "none",
|
|
169
|
-
stroke: "currentColor",
|
|
170
|
-
"stroke-width": "3",
|
|
171
|
-
"aria-hidden": "true"
|
|
172
|
-
}, [c("line", {
|
|
173
|
-
x1: "18",
|
|
174
|
-
y1: "6",
|
|
175
|
-
x2: "6",
|
|
176
|
-
y2: "18"
|
|
177
|
-
}), c("line", {
|
|
178
|
-
x1: "6",
|
|
179
|
-
y1: "6",
|
|
180
|
-
x2: "18",
|
|
181
|
-
y2: "18"
|
|
182
|
-
})], -1)]], 8, V)) : m("", !0)]),
|
|
183
|
-
_: 1
|
|
184
|
-
}, 8, ["class", "style"]));
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region src/extensions/isNodeSelected.ts
|
|
189
|
-
function U(e, t) {
|
|
190
|
-
let { $from: n, $to: r } = e.state.selection;
|
|
191
|
-
return n.pos === r.pos ? n.pos > 0 && n.nodeBefore?.type.name === t || n.nodeAfter?.type.name === t : !1;
|
|
192
|
-
}
|
|
193
|
-
//#endregion
|
|
194
|
-
//#region src/extensions/renderVueNodeView.ts
|
|
195
|
-
function W(e) {
|
|
196
|
-
return N(e);
|
|
197
|
-
}
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region src/extensions/LogicMergeTagNode.ts
|
|
200
|
-
var G = E.create({
|
|
201
|
-
name: "logicMergeTagNode",
|
|
202
|
-
group: "inline",
|
|
203
|
-
inline: !0,
|
|
204
|
-
atom: !0,
|
|
205
|
-
addOptions() {
|
|
206
|
-
return { syntax: S.liquid };
|
|
207
|
-
},
|
|
208
|
-
addAttributes() {
|
|
209
|
-
return {
|
|
210
|
-
value: {
|
|
211
|
-
default: "",
|
|
212
|
-
rendered: !1,
|
|
213
|
-
parseHTML: (e) => e.getAttribute("data-logic-merge-tag") || ""
|
|
214
|
-
},
|
|
215
|
-
keyword: {
|
|
216
|
-
default: "",
|
|
217
|
-
rendered: !1,
|
|
218
|
-
parseHTML: (e) => e.getAttribute("data-keyword") || e.textContent || ""
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
},
|
|
222
|
-
parseHTML() {
|
|
223
|
-
return [{ tag: "span[data-logic-merge-tag]" }];
|
|
224
|
-
},
|
|
225
|
-
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
226
|
-
if (!y(e.attrs.value, this.options.syntax)) return [
|
|
227
|
-
"span",
|
|
228
|
-
{},
|
|
229
|
-
e.attrs.value
|
|
230
|
-
];
|
|
231
|
-
let n = b(e.attrs.value, this.options.syntax);
|
|
232
|
-
return [
|
|
233
|
-
"span",
|
|
234
|
-
T(t, {
|
|
235
|
-
"data-logic-merge-tag": e.attrs.value,
|
|
236
|
-
"data-keyword": n
|
|
237
|
-
}),
|
|
238
|
-
n
|
|
239
|
-
];
|
|
240
|
-
},
|
|
241
|
-
addNodeView() {
|
|
242
|
-
return W(H);
|
|
243
|
-
},
|
|
244
|
-
addKeyboardShortcuts() {
|
|
245
|
-
return {
|
|
246
|
-
Backspace: () => U(this.editor, this.name),
|
|
247
|
-
Delete: () => U(this.editor, this.name)
|
|
248
|
-
};
|
|
249
|
-
},
|
|
250
|
-
addInputRules() {
|
|
251
|
-
let e = RegExp(this.options.syntax.logic.source + "$", "");
|
|
252
|
-
return [new O({
|
|
253
|
-
find: e,
|
|
254
|
-
handler: ({ state: e, range: t, match: n }) => {
|
|
255
|
-
let r = n[0];
|
|
256
|
-
if (!y(r, this.options.syntax)) return;
|
|
257
|
-
let i = b(r, this.options.syntax), a = this.type.create({
|
|
258
|
-
value: r,
|
|
259
|
-
keyword: i
|
|
260
|
-
});
|
|
261
|
-
e.tr.replaceWith(t.from, t.to, a);
|
|
262
|
-
}
|
|
263
|
-
})];
|
|
264
|
-
},
|
|
265
|
-
addPasteRules() {
|
|
266
|
-
let e = new RegExp(this.options.syntax.logic.source, "g");
|
|
267
|
-
return [new k({
|
|
268
|
-
find: e,
|
|
269
|
-
handler: ({ state: e, range: t, match: n }) => {
|
|
270
|
-
let r = n[0];
|
|
271
|
-
if (!y(r, this.options.syntax)) return;
|
|
272
|
-
let i = b(r, this.options.syntax), a = this.type.create({
|
|
273
|
-
value: r,
|
|
274
|
-
keyword: i
|
|
275
|
-
});
|
|
276
|
-
e.tr.replaceWith(t.from, t.to, a);
|
|
277
|
-
}
|
|
278
|
-
})];
|
|
279
|
-
}
|
|
280
|
-
}), K = ["aria-invalid"], q = [
|
|
281
|
-
"aria-label",
|
|
282
|
-
"data-tooltip",
|
|
283
|
-
"onKeydown"
|
|
284
|
-
], J = ["aria-label"], Y = /* @__PURE__ */ h({
|
|
285
|
-
__name: "MergeTagNodeView",
|
|
286
|
-
props: {
|
|
287
|
-
node: {},
|
|
288
|
-
deleteNode: { type: Function },
|
|
289
|
-
updateAttributes: { type: Function }
|
|
290
|
-
},
|
|
291
|
-
setup(t) {
|
|
292
|
-
let m = t, { getMergeTagLabel: h, getMergeTagDisplayLabel: y, findMergeTag: b, canRepickMergeTag: x, showRawValue: S, isMergeTagValue: T, requestMergeTag: E } = w(), { t: D, format: O } = C(), k = p(() => y(m.node.attrs.value, m.node.attrs.label)), A = p(() => x(m.node.attrs.value)), j = o(!1), M = o(""), N = o(null), F = !1;
|
|
293
|
-
i(() => {
|
|
294
|
-
F = !0;
|
|
295
|
-
});
|
|
296
|
-
let I = p(() => M.value.trim() === "" || T(M.value.trim()));
|
|
297
|
-
async function L() {
|
|
298
|
-
let e = await E({
|
|
299
|
-
reason: "edit",
|
|
300
|
-
current: b(m.node.attrs.value)
|
|
301
|
-
});
|
|
302
|
-
!F && e && m.updateAttributes({
|
|
303
|
-
value: e.value,
|
|
304
|
-
label: e.label
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
function R() {
|
|
308
|
-
M.value = m.node.attrs.value, j.value = !0, r(() => {
|
|
309
|
-
N.value?.focus(), N.value?.select();
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
function z() {
|
|
313
|
-
if (A.value) {
|
|
314
|
-
L();
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
R();
|
|
318
|
-
}
|
|
319
|
-
function B() {
|
|
320
|
-
let e = M.value.trim();
|
|
321
|
-
e && e !== m.node.attrs.value && T(e) && m.updateAttributes({
|
|
322
|
-
value: e,
|
|
323
|
-
label: h(e)
|
|
324
|
-
}), j.value = !1;
|
|
325
|
-
}
|
|
326
|
-
function V(e) {
|
|
327
|
-
if (e.key === "Enter") {
|
|
328
|
-
if (e.preventDefault(), !I.value) return;
|
|
329
|
-
B();
|
|
330
|
-
} else e.key === "Escape" && (j.value = !1);
|
|
331
|
-
}
|
|
332
|
-
return (r, i) => (e(), f(s(P), {
|
|
333
|
-
as: "span",
|
|
334
|
-
class: "tpl-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium tpl:select-none tpl:text-[var(--tpl-primary)]",
|
|
335
|
-
style: { "background-color": "color-mix(in srgb, var(--tpl-primary) 20%, transparent)" },
|
|
336
|
-
contenteditable: "false"
|
|
337
|
-
}, {
|
|
338
|
-
default: n(() => [j.value ? a((e(), l("input", {
|
|
339
|
-
key: 0,
|
|
340
|
-
ref_key: "inputRef",
|
|
341
|
-
ref: N,
|
|
342
|
-
"onUpdate:modelValue": i[0] ||= (e) => M.value = e,
|
|
343
|
-
type: "text",
|
|
344
|
-
"aria-invalid": I.value ? void 0 : "true",
|
|
345
|
-
class: d(["tpl:w-32 tpl:rounded tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:outline-none tpl:text-[var(--tpl-primary)]", I.value ? "tpl:border-none" : "tpl:border tpl:border-[var(--tpl-danger)]"]),
|
|
346
|
-
onBlur: B,
|
|
347
|
-
onKeydown: V
|
|
348
|
-
}, null, 42, K)), [[g, M.value]]) : (e(), l("span", {
|
|
349
|
-
key: 1,
|
|
350
|
-
role: "button",
|
|
351
|
-
tabindex: "0",
|
|
352
|
-
"aria-label": A.value ? s(O)(s(D).mergeTag.changeTag, { label: k.value }) : s(D).mergeTag.editValue,
|
|
353
|
-
class: d(["tpl:cursor-pointer", s(S) ? "tpl-tooltip" : ""]),
|
|
354
|
-
"data-tooltip": s(S) ? t.node.attrs.value : void 0,
|
|
355
|
-
onClick: _(z, ["stop"]),
|
|
356
|
-
onKeydown: [v(_(z, ["stop"]), ["enter"]), v(_(z, ["prevent", "stop"]), ["space"])]
|
|
357
|
-
}, u(k.value), 43, q)), c("button", {
|
|
358
|
-
type: "button",
|
|
359
|
-
"aria-label": s(D).mergeTag.deleteMergeTag,
|
|
360
|
-
class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all tpl:hover:opacity-100 tpl:text-[var(--tpl-primary)]",
|
|
361
|
-
contenteditable: "false",
|
|
362
|
-
onClick: i[1] ||= _((...e) => t.deleteNode && t.deleteNode(...e), ["stop", "prevent"])
|
|
363
|
-
}, [...i[2] ||= [c("svg", {
|
|
364
|
-
width: "10",
|
|
365
|
-
height: "10",
|
|
366
|
-
viewBox: "0 0 24 24",
|
|
367
|
-
fill: "none",
|
|
368
|
-
stroke: "currentColor",
|
|
369
|
-
"stroke-width": "3",
|
|
370
|
-
"aria-hidden": "true"
|
|
371
|
-
}, [c("line", {
|
|
372
|
-
x1: "18",
|
|
373
|
-
y1: "6",
|
|
374
|
-
x2: "6",
|
|
375
|
-
y2: "18"
|
|
376
|
-
}), c("line", {
|
|
377
|
-
x1: "6",
|
|
378
|
-
y1: "6",
|
|
379
|
-
x2: "18",
|
|
380
|
-
y2: "18"
|
|
381
|
-
})], -1)]], 8, J)]),
|
|
382
|
-
_: 1
|
|
383
|
-
}));
|
|
384
|
-
}
|
|
385
|
-
}), X = E.create({
|
|
386
|
-
name: "mergeTagNode",
|
|
387
|
-
group: "inline",
|
|
388
|
-
inline: !0,
|
|
389
|
-
atom: !0,
|
|
390
|
-
addOptions() {
|
|
391
|
-
return {
|
|
392
|
-
mergeTags: () => [],
|
|
393
|
-
syntax: S.liquid
|
|
394
|
-
};
|
|
395
|
-
},
|
|
396
|
-
addAttributes() {
|
|
397
|
-
return {
|
|
398
|
-
label: {
|
|
399
|
-
default: "",
|
|
400
|
-
rendered: !1,
|
|
401
|
-
parseHTML: (e) => e.getAttribute("data-label") || e.textContent || ""
|
|
402
|
-
},
|
|
403
|
-
value: {
|
|
404
|
-
default: "",
|
|
405
|
-
rendered: !1,
|
|
406
|
-
parseHTML: (e) => e.getAttribute("data-merge-tag") || ""
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
},
|
|
410
|
-
parseHTML() {
|
|
411
|
-
return [{ tag: "span[data-merge-tag]" }];
|
|
412
|
-
},
|
|
413
|
-
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
414
|
-
let n = x(e.attrs.value, this.options.mergeTags());
|
|
415
|
-
return [
|
|
416
|
-
"span",
|
|
417
|
-
T(t, {
|
|
418
|
-
"data-merge-tag": e.attrs.value,
|
|
419
|
-
"data-label": n
|
|
420
|
-
}),
|
|
421
|
-
n
|
|
422
|
-
];
|
|
423
|
-
},
|
|
424
|
-
addNodeView() {
|
|
425
|
-
return W(Y);
|
|
426
|
-
},
|
|
427
|
-
addCommands() {
|
|
428
|
-
return { insertMergeTag: (e) => ({ commands: t }) => t.insertContent({
|
|
429
|
-
type: this.name,
|
|
430
|
-
attrs: {
|
|
431
|
-
label: e.label,
|
|
432
|
-
value: e.value
|
|
433
|
-
}
|
|
434
|
-
}) };
|
|
435
|
-
},
|
|
436
|
-
addKeyboardShortcuts() {
|
|
437
|
-
return {
|
|
438
|
-
Backspace: () => U(this.editor, this.name),
|
|
439
|
-
Delete: () => U(this.editor, this.name)
|
|
440
|
-
};
|
|
441
|
-
},
|
|
442
|
-
addInputRules() {
|
|
443
|
-
let e = RegExp(this.options.syntax.value.source + "$", "");
|
|
444
|
-
return [new O({
|
|
445
|
-
find: e,
|
|
446
|
-
handler: ({ state: e, range: t, match: n }) => {
|
|
447
|
-
let r = n[0], i = x(r, this.options.mergeTags()), a = this.type.create({
|
|
448
|
-
label: i,
|
|
449
|
-
value: r
|
|
450
|
-
});
|
|
451
|
-
e.tr.replaceWith(t.from, t.to, a);
|
|
452
|
-
}
|
|
453
|
-
})];
|
|
454
|
-
},
|
|
455
|
-
addPasteRules() {
|
|
456
|
-
let e = new RegExp(this.options.syntax.value.source, "g");
|
|
457
|
-
return [new k({
|
|
458
|
-
find: e,
|
|
459
|
-
handler: ({ state: e, range: t, match: n }) => {
|
|
460
|
-
let r = n[0], i = x(r, this.options.mergeTags()), a = this.type.create({
|
|
461
|
-
label: i,
|
|
462
|
-
value: r
|
|
463
|
-
});
|
|
464
|
-
e.tr.replaceWith(t.from, t.to, a);
|
|
465
|
-
}
|
|
466
|
-
})];
|
|
467
|
-
}
|
|
468
|
-
});
|
|
469
|
-
//#endregion
|
|
470
|
-
export { F as FontSize, I as LetterSpacing, L as LineBoundaryKeys, R as LineHeight, G as LogicMergeTagNode, X as MergeTagNode, M as MergeTagSuggestion, j as filterMergeTags, A as handleSuggestionKeyDown };
|