@templatical/editor 0.52.0 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
- package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
- package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
- package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
- package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
- package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
- package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
- package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
- package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
- package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
- package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
- package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
- package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
- package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
- package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
- package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
- package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
- package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
- package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
- package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
- package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
- package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
- package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
- package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
- package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
- package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
- package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
- package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
- package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
- package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
- package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
- package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
- package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
- package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
- package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
- package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
- package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
- package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
- package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
- package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
- package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
- package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1422 -1422
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
- package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
- package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
- package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
- package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
- package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
- package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
- package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
- package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
- package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
- package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
- package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
- package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
- package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
- package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
- package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
- package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
- package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
- package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
- package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
- package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
- package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
- package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
- package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
- package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
- package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
- package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
- package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
- package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
- package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
- package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
- package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
- package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1096 -1096
- package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
- package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
- package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
- package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
- package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
- package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
- package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
- package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
- package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
- package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
- package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
- package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
- package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
- package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
- package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
- package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
- package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
- package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
- package/dist/en-CyEE7FPY.js +0 -1
- package/dist/useEditorRoot-BKr6nNkC.js +0 -7
package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as O, i as k, s as A, u as j } from "./src-
|
|
3
|
-
import { t as ee } from "./dist-
|
|
4
|
-
import { J as te, Y as M, Z as ne, d as re } from "./keys-
|
|
5
|
-
import { t as N } from "./useI18n-
|
|
6
|
-
import { a as P, i as ie, n as ae, o as oe, r as se, t as ce } from "./usePopoverPosition-
|
|
7
|
-
import {
|
|
8
|
-
import { t as R } from "./useMergeTag-
|
|
9
|
-
import { t as ue } from "./useLogicTag-
|
|
1
|
+
import { A as e, C as t, D as n, I as r, J as i, P as a, T as o, W as s, Y as c, Z as l, _ as u, b as d, c as f, dt as p, et as m, f as h, ft as g, g as _, h as v, l as y, m as b, n as x, p as S, r as C, st as w, u as T, ut as E, x as D } from "./draggable-Du8AUMFT.js";
|
|
2
|
+
import { c as O, i as k, s as A, u as j } from "./src-DwWrYnUj.js";
|
|
3
|
+
import { t as ee } from "./dist-BMzNabtD.js";
|
|
4
|
+
import { J as te, Y as M, Z as ne, d as re } from "./keys-CUj6UA38.js";
|
|
5
|
+
import { t as N } from "./useI18n-D8pY4LTq.js";
|
|
6
|
+
import { a as P, i as ie, n as ae, o as oe, r as se, t as ce } from "./usePopoverPosition-DSMtmu2W.js";
|
|
7
|
+
import { G as le, N as F, Vt as I, t as L } from "./icons-okSPsLOa.js";
|
|
8
|
+
import { t as R } from "./useMergeTag-B-aG--s1.js";
|
|
9
|
+
import { t as ue } from "./useLogicTag-DBJDtpKA.js";
|
|
10
10
|
import { u as de } from "./styleConstants-B8xVRiwX.js";
|
|
11
11
|
// ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
|
|
12
12
|
var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, V = (e) => me(H(e)), H = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
@@ -279,7 +279,7 @@ var Pe = [
|
|
|
279
279
|
"placeholder",
|
|
280
280
|
"disabled",
|
|
281
281
|
"aria-label"
|
|
282
|
-
], Ke = ["aria-label", "title"], qe = /* @__PURE__ */
|
|
282
|
+
], Ke = ["aria-label", "title"], qe = /* @__PURE__ */ t({
|
|
283
283
|
__name: "ColorPicker",
|
|
284
284
|
props: {
|
|
285
285
|
modelValue: {},
|
|
@@ -306,17 +306,17 @@ var Pe = [
|
|
|
306
306
|
}
|
|
307
307
|
},
|
|
308
308
|
emits: ["update:modelValue"],
|
|
309
|
-
setup(
|
|
310
|
-
let
|
|
311
|
-
ee(
|
|
312
|
-
|
|
309
|
+
setup(e, { emit: t }) {
|
|
310
|
+
let i = e, o = t, { t: c } = N(), l = m(!1), C = m(), O = m(), k = m(!1);
|
|
311
|
+
ee(C, () => {
|
|
312
|
+
l.value = !1;
|
|
313
313
|
}, { ignore: [O] });
|
|
314
|
-
let A = S(() => !
|
|
314
|
+
let A = S(() => !i.modelValue), j = S(() => i.modelValue.trim().toLowerCase() === "transparent"), M = S(() => ie(i.modelValue)), le = S(() => (i.modelValue ? P(i.modelValue) : null) || (P(i.seedColor) ?? "#ffffff")), F = S(() => !i.disabled && !A.value), I = n(re, oe), R = S(() => [...new Set(i.presets ?? I.presets)]), ue = S(() => i.allowCustom ?? I.allowCustom), z = S(() => R.value.length > 0), B = S(() => ue.value || !z.value), V = S(() => se(i.modelValue));
|
|
315
315
|
function H(e) {
|
|
316
316
|
return V.value !== "" && se(e) === V.value;
|
|
317
317
|
}
|
|
318
318
|
function fe(e) {
|
|
319
|
-
|
|
319
|
+
o("update:modelValue", e);
|
|
320
320
|
}
|
|
321
321
|
let U = S(() => z.value && !B.value);
|
|
322
322
|
function W(e) {
|
|
@@ -344,30 +344,30 @@ var Pe = [
|
|
|
344
344
|
r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
|
|
345
345
|
}
|
|
346
346
|
function q(e) {
|
|
347
|
-
k.value = !0,
|
|
347
|
+
k.value = !0, o("update:modelValue", e.detail.value);
|
|
348
348
|
}
|
|
349
349
|
function he() {
|
|
350
350
|
k.value = !1;
|
|
351
351
|
}
|
|
352
352
|
function ge() {
|
|
353
|
-
!k.value && A.value &&
|
|
353
|
+
!k.value && A.value && o("update:modelValue", le.value);
|
|
354
354
|
}
|
|
355
355
|
function J(e) {
|
|
356
|
-
|
|
356
|
+
o("update:modelValue", e.target.value);
|
|
357
357
|
}
|
|
358
358
|
function Y() {
|
|
359
|
-
|
|
359
|
+
o("update:modelValue", "");
|
|
360
360
|
}
|
|
361
361
|
function X() {
|
|
362
|
-
|
|
362
|
+
o("update:modelValue", "transparent");
|
|
363
363
|
}
|
|
364
|
-
let Z = ae(), { toLocal: _e } = ce(), ve =
|
|
364
|
+
let Z = ae(), { toLocal: _e } = ce(), ve = n(te, null), ye = n(ne, null), Q = m({
|
|
365
365
|
top: 0,
|
|
366
366
|
left: 0
|
|
367
367
|
});
|
|
368
368
|
function be() {
|
|
369
|
-
if (!
|
|
370
|
-
if (!
|
|
369
|
+
if (!i.disabled) {
|
|
370
|
+
if (!l.value) {
|
|
371
371
|
let e = O.value?.getBoundingClientRect();
|
|
372
372
|
if (e) {
|
|
373
373
|
let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
|
|
@@ -377,56 +377,56 @@ var Pe = [
|
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
|
|
380
|
+
l.value = !l.value;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
return (
|
|
384
|
-
|
|
383
|
+
return (t, n) => (a(), u("div", { class: E(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", e.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
384
|
+
b("button", {
|
|
385
385
|
ref_key: "swatchRef",
|
|
386
386
|
ref: O,
|
|
387
387
|
type: "button",
|
|
388
|
-
disabled:
|
|
389
|
-
"aria-label":
|
|
390
|
-
title:
|
|
391
|
-
"aria-expanded":
|
|
392
|
-
class:
|
|
388
|
+
disabled: e.disabled,
|
|
389
|
+
"aria-label": e.ariaLabel || w(c).colorPicker.pickColor,
|
|
390
|
+
title: e.ariaLabel || void 0,
|
|
391
|
+
"aria-expanded": l.value,
|
|
392
|
+
class: E([
|
|
393
393
|
"tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
394
|
+
e.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
|
|
395
|
+
l.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !e.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
|
|
396
|
+
e.size === "sm" ? "tpl:size-8" : "tpl:size-10"
|
|
397
397
|
]),
|
|
398
398
|
onClick: be
|
|
399
|
-
}, [
|
|
400
|
-
class:
|
|
399
|
+
}, [b("span", {
|
|
400
|
+
class: E(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
|
|
401
401
|
"tpl-color-swatch-empty": A.value,
|
|
402
402
|
"tpl-color-swatch-transparent": j.value
|
|
403
403
|
}]),
|
|
404
|
-
style:
|
|
404
|
+
style: p(A.value || j.value ? void 0 : { backgroundColor: M.value })
|
|
405
405
|
}, null, 6)], 10, Pe),
|
|
406
|
-
!
|
|
406
|
+
!e.swatchOnly && B.value ? (a(), u("div", Fe, [b("input", {
|
|
407
407
|
type: "text",
|
|
408
|
-
class:
|
|
409
|
-
style:
|
|
408
|
+
class: E([w(de), "tpl:w-full"]),
|
|
409
|
+
style: p(F.value ? { paddingRight: "2.25rem" } : void 0),
|
|
410
410
|
value: M.value,
|
|
411
|
-
placeholder:
|
|
412
|
-
disabled:
|
|
413
|
-
"aria-label":
|
|
411
|
+
placeholder: e.placeholder || w(c).colorPicker.notSet,
|
|
412
|
+
disabled: e.disabled,
|
|
413
|
+
"aria-label": w(c).colorPicker.hexValue,
|
|
414
414
|
onInput: J
|
|
415
|
-
}, null, 46, Ie), F.value ? (
|
|
415
|
+
}, null, 46, Ie), F.value ? (a(), u("button", {
|
|
416
416
|
key: 0,
|
|
417
417
|
type: "button",
|
|
418
|
-
"aria-label":
|
|
419
|
-
title:
|
|
418
|
+
"aria-label": w(c).colorPicker.clear,
|
|
419
|
+
title: w(c).colorPicker.clear,
|
|
420
420
|
class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
421
421
|
onClick: Y
|
|
422
|
-
}, [D(
|
|
422
|
+
}, [D(w(L), {
|
|
423
423
|
size: 14,
|
|
424
424
|
"stroke-width": 1.5
|
|
425
|
-
})], 8, Le)) :
|
|
426
|
-
(
|
|
427
|
-
to:
|
|
428
|
-
disabled: !
|
|
429
|
-
}, [D(
|
|
425
|
+
})], 8, Le)) : _("", !0)])) : _("", !0),
|
|
426
|
+
(a(), v(h, {
|
|
427
|
+
to: w(Z),
|
|
428
|
+
disabled: !w(Z)
|
|
429
|
+
}, [D(x, {
|
|
430
430
|
"enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
431
431
|
"enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
|
|
432
432
|
"enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
@@ -434,45 +434,45 @@ var Pe = [
|
|
|
434
434
|
"leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
435
435
|
"leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
|
|
436
436
|
}, {
|
|
437
|
-
default:
|
|
437
|
+
default: s(() => [l.value ? (a(), u("div", {
|
|
438
438
|
key: 0,
|
|
439
439
|
ref_key: "popoverRef",
|
|
440
|
-
ref:
|
|
441
|
-
"data-tpl-theme":
|
|
440
|
+
ref: C,
|
|
441
|
+
"data-tpl-theme": w(ye),
|
|
442
442
|
class: "tpl-color-popover tpl:absolute tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
443
|
-
style:
|
|
443
|
+
style: p({
|
|
444
444
|
top: `${Q.value.top}px`,
|
|
445
445
|
left: `${Q.value.left}px`,
|
|
446
|
-
...
|
|
446
|
+
...w(ve)
|
|
447
447
|
})
|
|
448
448
|
}, [
|
|
449
|
-
|
|
449
|
+
e.allowTransparent ? (a(), u("button", {
|
|
450
450
|
key: 0,
|
|
451
451
|
type: "button",
|
|
452
452
|
"data-testid": "color-picker-transparent",
|
|
453
453
|
"aria-pressed": j.value,
|
|
454
|
-
"aria-label":
|
|
455
|
-
title:
|
|
456
|
-
class:
|
|
454
|
+
"aria-label": w(c).colorPicker.transparent,
|
|
455
|
+
title: w(c).colorPicker.transparent,
|
|
456
|
+
class: E(["tpl:mb-2 tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-left tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)]", j.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
457
457
|
onClick: X
|
|
458
|
-
}, [n[2] ||=
|
|
459
|
-
z.value ? (
|
|
458
|
+
}, [n[2] ||= b("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), d(" " + g(w(c).colorPicker.transparent), 1)], 10, ze)) : _("", !0),
|
|
459
|
+
z.value ? (a(), u("div", {
|
|
460
460
|
key: 1,
|
|
461
461
|
role: "radiogroup",
|
|
462
|
-
"aria-label":
|
|
463
|
-
class:
|
|
462
|
+
"aria-label": w(c).colorPicker.presetColors,
|
|
463
|
+
class: E(["tpl:flex tpl:flex-wrap tpl:gap-1.5", B.value && "tpl:mb-2"]),
|
|
464
464
|
onKeydown: me
|
|
465
|
-
}, [U.value ? (
|
|
465
|
+
}, [U.value ? (a(), u("button", {
|
|
466
466
|
key: 0,
|
|
467
467
|
type: "button",
|
|
468
468
|
role: "radio",
|
|
469
|
-
"aria-label":
|
|
470
|
-
title:
|
|
469
|
+
"aria-label": w(c).colorPicker.clear,
|
|
470
|
+
title: w(c).colorPicker.clear,
|
|
471
471
|
"aria-checked": A.value,
|
|
472
472
|
tabindex: K(),
|
|
473
|
-
class:
|
|
473
|
+
class: E(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", A.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
474
474
|
onClick: Y
|
|
475
|
-
}, null, 10, Ve)) :
|
|
475
|
+
}, null, 10, Ve)) : _("", !0), (a(!0), u(T, null, r(R.value, (e, t) => (a(), u("button", {
|
|
476
476
|
key: e,
|
|
477
477
|
type: "button",
|
|
478
478
|
role: "radio",
|
|
@@ -480,41 +480,41 @@ var Pe = [
|
|
|
480
480
|
title: e,
|
|
481
481
|
"aria-checked": H(e),
|
|
482
482
|
tabindex: pe(t),
|
|
483
|
-
style:
|
|
484
|
-
class:
|
|
483
|
+
style: p({ backgroundColor: e }),
|
|
484
|
+
class: E(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", H(e) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
485
485
|
onClick: (t) => fe(e)
|
|
486
|
-
}, null, 14, He))), 128))], 42, Be)) :
|
|
487
|
-
B.value ? (
|
|
486
|
+
}, null, 14, He))), 128))], 42, Be)) : _("", !0),
|
|
487
|
+
B.value ? (a(), u("hex-color-picker", {
|
|
488
488
|
key: 2,
|
|
489
489
|
color: le.value,
|
|
490
|
-
"aria-label":
|
|
490
|
+
"aria-label": w(c).colorPicker.pickColor,
|
|
491
491
|
onColorChanged: q,
|
|
492
492
|
onPointerdown: he,
|
|
493
493
|
onPointerup: ge,
|
|
494
|
-
onKeydown: n[0] ||= f((e) =>
|
|
495
|
-
}, null, 40, Ue)) :
|
|
496
|
-
|
|
494
|
+
onKeydown: n[0] ||= f((e) => l.value = !1, ["escape"])
|
|
495
|
+
}, null, 40, Ue)) : _("", !0),
|
|
496
|
+
e.swatchOnly && B.value ? (a(), u("div", We, [b("input", {
|
|
497
497
|
type: "text",
|
|
498
|
-
class:
|
|
499
|
-
style:
|
|
498
|
+
class: E([w(de), "tpl:w-full"]),
|
|
499
|
+
style: p(F.value ? { paddingRight: "2.25rem" } : void 0),
|
|
500
500
|
value: M.value,
|
|
501
|
-
placeholder:
|
|
502
|
-
disabled:
|
|
503
|
-
"aria-label":
|
|
501
|
+
placeholder: e.placeholder || w(c).colorPicker.notSet,
|
|
502
|
+
disabled: e.disabled,
|
|
503
|
+
"aria-label": w(c).colorPicker.hexValue,
|
|
504
504
|
onChange: J,
|
|
505
|
-
onKeydown: n[1] ||= f(
|
|
506
|
-
}, null, 46, Ge), F.value ? (
|
|
505
|
+
onKeydown: n[1] ||= f(y((e) => e.target.blur(), ["prevent"]), ["enter"])
|
|
506
|
+
}, null, 46, Ge), F.value ? (a(), u("button", {
|
|
507
507
|
key: 0,
|
|
508
508
|
type: "button",
|
|
509
|
-
"aria-label":
|
|
510
|
-
title:
|
|
509
|
+
"aria-label": w(c).colorPicker.clear,
|
|
510
|
+
title: w(c).colorPicker.clear,
|
|
511
511
|
class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
512
512
|
onClick: Y
|
|
513
|
-
}, [D(
|
|
513
|
+
}, [D(w(L), {
|
|
514
514
|
size: 14,
|
|
515
515
|
"stroke-width": 1.5
|
|
516
|
-
})], 8, Ke)) :
|
|
517
|
-
], 12, Re)) :
|
|
516
|
+
})], 8, Ke)) : _("", !0)])) : _("", !0)
|
|
517
|
+
], 12, Re)) : _("", !0)]),
|
|
518
518
|
_: 1
|
|
519
519
|
})], 8, ["to", "disabled"]))
|
|
520
520
|
], 2));
|
|
@@ -530,7 +530,7 @@ var Pe = [
|
|
|
530
530
|
"data-merge-tag-value",
|
|
531
531
|
"onMousedown",
|
|
532
532
|
"onMousemove"
|
|
533
|
-
], Ze = { class: "tpl:font-medium" }, Qe = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, $e = /* @__PURE__ */
|
|
533
|
+
], Ze = { class: "tpl:font-medium" }, Qe = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, $e = /* @__PURE__ */ t({
|
|
534
534
|
__name: "MergeTagSuggestionList",
|
|
535
535
|
props: {
|
|
536
536
|
items: {},
|
|
@@ -544,12 +544,12 @@ var Pe = [
|
|
|
544
544
|
function n(e) {
|
|
545
545
|
return t.listId ? `${t.listId}-opt-${e}` : void 0;
|
|
546
546
|
}
|
|
547
|
-
return (t,
|
|
547
|
+
return (t, i) => (a(), u("div", {
|
|
548
548
|
id: e.listId,
|
|
549
549
|
class: "tpl:min-w-[200px] tpl:max-w-[320px] tpl:max-h-[50vh] tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
550
550
|
role: "listbox",
|
|
551
551
|
"data-testid": "merge-tag-suggestion-list"
|
|
552
|
-
}, [e.items.length === 0 ? (
|
|
552
|
+
}, [e.items.length === 0 ? (a(), u("div", Ye, g(e.emptyText), 1)) : _("", !0), (a(!0), u(T, null, r(e.items, (r, i) => (a(), u("button", {
|
|
553
553
|
key: r.value,
|
|
554
554
|
id: n(i),
|
|
555
555
|
type: "button",
|
|
@@ -557,10 +557,10 @@ var Pe = [
|
|
|
557
557
|
"aria-selected": i === e.selectedIndex,
|
|
558
558
|
"data-selected": i === e.selectedIndex ? "true" : "false",
|
|
559
559
|
"data-merge-tag-value": r.value,
|
|
560
|
-
class:
|
|
561
|
-
onMousedown:
|
|
560
|
+
class: E(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", i === e.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
561
|
+
onMousedown: y((e) => t.$emit("select", r), ["prevent", "stop"]),
|
|
562
562
|
onMousemove: (n) => i !== e.selectedIndex && t.$emit("hover", i)
|
|
563
|
-
}, [
|
|
563
|
+
}, [b("span", Ze, g(r.label), 1), b("span", Qe, g(r.value), 1)], 42, Xe))), 128))], 8, Je));
|
|
564
564
|
}
|
|
565
565
|
}), et = 10, tt = 0;
|
|
566
566
|
function nt(e, t) {
|
|
@@ -573,14 +573,14 @@ function nt(e, t) {
|
|
|
573
573
|
function rt(e, t, n, r) {
|
|
574
574
|
return t.length === 0 ? e.key === "Enter" || e.key === "Tab" : e.key === "ArrowDown" ? (n.value = (n.value + 1) % t.length, !0) : e.key === "ArrowUp" ? (n.value = (n.value - 1 + t.length) % t.length, !0) : e.key === "Enter" || e.key === "Tab" ? (r(t[n.value]), !0) : !1;
|
|
575
575
|
}
|
|
576
|
-
function it(
|
|
577
|
-
let
|
|
578
|
-
function
|
|
579
|
-
y(
|
|
576
|
+
function it(e, t) {
|
|
577
|
+
let n = null, r = null, i = null, a = m([]), s = m(0), c = null, l = `tpl-merge-tag-suggestion-${++tt}`, u = null, d = [], f = null;
|
|
578
|
+
function p() {
|
|
579
|
+
y(u?.() ?? null);
|
|
580
580
|
}
|
|
581
581
|
function h() {
|
|
582
|
-
|
|
583
|
-
|
|
582
|
+
p(), f !== null && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
583
|
+
f = null, p();
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
function g(e) {
|
|
@@ -592,26 +592,26 @@ function it(t, n) {
|
|
|
592
592
|
return t;
|
|
593
593
|
}
|
|
594
594
|
function _(e) {
|
|
595
|
-
|
|
596
|
-
for (let e of
|
|
595
|
+
d = [window, ...g(e)];
|
|
596
|
+
for (let e of d) e.addEventListener("scroll", p, {
|
|
597
597
|
passive: !0,
|
|
598
598
|
capture: !0
|
|
599
599
|
});
|
|
600
|
-
window.addEventListener("resize",
|
|
600
|
+
window.addEventListener("resize", p, { passive: !0 });
|
|
601
601
|
}
|
|
602
602
|
function v() {
|
|
603
|
-
for (let e of
|
|
604
|
-
window.removeEventListener("resize",
|
|
603
|
+
for (let e of d) e.removeEventListener("scroll", p, { capture: !0 });
|
|
604
|
+
window.removeEventListener("resize", p), d = [];
|
|
605
605
|
}
|
|
606
606
|
function y(e) {
|
|
607
|
-
if (!
|
|
608
|
-
|
|
609
|
-
let t =
|
|
610
|
-
|
|
611
|
-
let
|
|
612
|
-
if (
|
|
613
|
-
let t = Math.max(0, e.top -
|
|
614
|
-
|
|
607
|
+
if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
|
|
608
|
+
r.style.position = "absolute", r.style.zIndex = "9999";
|
|
609
|
+
let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0;
|
|
610
|
+
r.style.left = `${e.left - (t?.left ?? 0)}px`, r.style.top = `${e.bottom - n}px`;
|
|
611
|
+
let i = r.offsetHeight;
|
|
612
|
+
if (i !== 0 && window.innerHeight - e.bottom < i) {
|
|
613
|
+
let t = Math.max(0, e.top - i);
|
|
614
|
+
r.style.top = `${t - n}px`;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
function b(e, t) {
|
|
@@ -627,40 +627,40 @@ function it(t, n) {
|
|
|
627
627
|
e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
|
|
628
628
|
}
|
|
629
629
|
function x(e) {
|
|
630
|
-
|
|
630
|
+
i && (e ? (i.setAttribute("role", "combobox"), i.setAttribute("aria-haspopup", "listbox"), i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-controls", l)) : (i.removeAttribute("aria-expanded"), i.removeAttribute("aria-controls"), i.removeAttribute("aria-activedescendant"), i.removeAttribute("aria-haspopup"), i.removeAttribute("role")));
|
|
631
631
|
}
|
|
632
632
|
function S() {
|
|
633
|
-
|
|
633
|
+
i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
|
|
635
|
+
function w(e) {
|
|
636
|
+
c?.(e);
|
|
637
637
|
}
|
|
638
638
|
return {
|
|
639
|
-
open: ({ items:
|
|
640
|
-
|
|
641
|
-
return
|
|
642
|
-
items:
|
|
643
|
-
selectedIndex:
|
|
644
|
-
emptyText:
|
|
645
|
-
listId:
|
|
646
|
-
onSelect: (e) =>
|
|
639
|
+
open: ({ items: d, getRect: f, anchorEl: p, onCommand: m }) => {
|
|
640
|
+
a.value = d, s.value = 0, c = m, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), i = p, b(r, p), (t?.value ?? document.body).appendChild(r), n = C({ render() {
|
|
641
|
+
return o($e, {
|
|
642
|
+
items: a.value,
|
|
643
|
+
selectedIndex: s.value,
|
|
644
|
+
emptyText: e,
|
|
645
|
+
listId: l,
|
|
646
|
+
onSelect: (e) => w(e),
|
|
647
647
|
onHover: (e) => {
|
|
648
|
-
|
|
648
|
+
s.value = e, S();
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
|
-
} }),
|
|
651
|
+
} }), n.mount(r), x(!0), S(), u = f, h(), _(p);
|
|
652
652
|
},
|
|
653
653
|
update: ({ items: e, getRect: t, onCommand: n }) => {
|
|
654
|
-
|
|
654
|
+
a.value = e, s.value >= e.length && (s.value = 0), c = n, S(), u = t, h();
|
|
655
655
|
},
|
|
656
656
|
handleKeyDown: (e) => {
|
|
657
|
-
let t = rt(e,
|
|
657
|
+
let t = rt(e, a.value, s, w);
|
|
658
658
|
return t && S(), t;
|
|
659
659
|
},
|
|
660
660
|
close: () => {
|
|
661
|
-
|
|
661
|
+
r !== null && (f !== null && (cancelAnimationFrame(f), f = null), v(), x(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, c = null, u = null);
|
|
662
662
|
},
|
|
663
|
-
isOpen: () =>
|
|
663
|
+
isOpen: () => r !== null
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
666
|
// src/utils/mergeTagTrigger.ts
|
|
@@ -723,78 +723,78 @@ var ut = /* @__PURE__ */ new Set([
|
|
|
723
723
|
"Home",
|
|
724
724
|
"End"
|
|
725
725
|
]);
|
|
726
|
-
function dt(
|
|
727
|
-
let { elementRef:
|
|
728
|
-
|
|
729
|
-
|
|
726
|
+
function dt(t) {
|
|
727
|
+
let { elementRef: r, modelValue: a, emit: o, mergeTags: s, syntax: u, enabled: d, onInsert: f } = t, p = O(u), m = A(u), h = S(() => d && p !== null && s.value.length > 0), g = n(M, null), _ = it((c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ae()), v = !1;
|
|
728
|
+
i() && l(() => {
|
|
729
|
+
v = !0, _.close();
|
|
730
730
|
});
|
|
731
|
-
function
|
|
731
|
+
function y(e) {
|
|
732
732
|
let t = e.value ?? "";
|
|
733
|
-
return at(t, e.selectionStart ?? t.length,
|
|
733
|
+
return at(t, e.selectionStart ?? t.length, p, m, u.value);
|
|
734
734
|
}
|
|
735
|
-
function
|
|
736
|
-
let s =
|
|
737
|
-
|
|
738
|
-
if (
|
|
739
|
-
let e =
|
|
735
|
+
function b(t, n, i) {
|
|
736
|
+
let s = t.value ?? a(), c = s.slice(n.caret), l = m && c.startsWith(m) ? m.length : 0, u = s.slice(0, n.triggerStart), d = s.slice(n.caret + l), p = u + i.value + d, h = u.length + i.value.length;
|
|
737
|
+
f?.(), o(p), _.close(), e(() => {
|
|
738
|
+
if (v) return;
|
|
739
|
+
let e = r.value;
|
|
740
740
|
e?.focus(), e?.setSelectionRange(h, h);
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
|
-
function
|
|
744
|
-
if (!
|
|
745
|
-
let e =
|
|
743
|
+
function x() {
|
|
744
|
+
if (!h.value || v) return;
|
|
745
|
+
let e = r.value;
|
|
746
746
|
if (!e) {
|
|
747
|
-
|
|
747
|
+
_.close();
|
|
748
748
|
return;
|
|
749
749
|
}
|
|
750
|
-
let t =
|
|
750
|
+
let t = y(e);
|
|
751
751
|
if (!t) {
|
|
752
|
-
|
|
752
|
+
_.close();
|
|
753
753
|
return;
|
|
754
754
|
}
|
|
755
|
-
let
|
|
756
|
-
|
|
757
|
-
items:
|
|
755
|
+
let n = nt(s.value, t.query), i = () => lt(e, t.triggerStart), a = (n) => b(e, t, n);
|
|
756
|
+
_.isOpen() ? _.update({
|
|
757
|
+
items: n,
|
|
758
758
|
getRect: i,
|
|
759
759
|
onCommand: a
|
|
760
|
-
}) :
|
|
761
|
-
items:
|
|
760
|
+
}) : _.open({
|
|
761
|
+
items: n,
|
|
762
762
|
getRect: i,
|
|
763
763
|
anchorEl: e,
|
|
764
764
|
onCommand: a
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
return
|
|
767
|
+
function C(e) {
|
|
768
|
+
return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : ut.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
|
|
769
769
|
}
|
|
770
770
|
return {
|
|
771
|
-
available:
|
|
772
|
-
refresh:
|
|
773
|
-
handleKeydown:
|
|
774
|
-
close: () =>
|
|
775
|
-
isOpen: () =>
|
|
771
|
+
available: h,
|
|
772
|
+
refresh: x,
|
|
773
|
+
handleKeydown: C,
|
|
774
|
+
close: () => _.close(),
|
|
775
|
+
isOpen: () => _.isOpen()
|
|
776
776
|
};
|
|
777
777
|
}
|
|
778
778
|
// src/composables/useMergeTagField.ts
|
|
779
|
-
function ft(
|
|
780
|
-
let { modelValue:
|
|
781
|
-
|
|
782
|
-
|
|
779
|
+
function ft(t) {
|
|
780
|
+
let { modelValue: n, emit: r, elementRef: a } = t, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: u, getMergeTagDisplayLabel: d, findMergeTag: f, requestMergeTag: p, syntax: h, autocomplete: g } = R(), { canInsertLogicTag: _, isRequesting: v, requestLogicTag: y } = ue(), b = m(!1), x = !1, C = !1;
|
|
781
|
+
i() && l(() => {
|
|
782
|
+
C = !0;
|
|
783
783
|
});
|
|
784
784
|
let w = dt({
|
|
785
785
|
elementRef: a,
|
|
786
|
-
modelValue:
|
|
787
|
-
emit:
|
|
786
|
+
modelValue: n,
|
|
787
|
+
emit: r,
|
|
788
788
|
mergeTags: o,
|
|
789
|
-
syntax:
|
|
790
|
-
enabled:
|
|
789
|
+
syntax: h,
|
|
790
|
+
enabled: g,
|
|
791
791
|
onInsert: () => {
|
|
792
|
-
|
|
792
|
+
b.value = !0;
|
|
793
793
|
}
|
|
794
794
|
}), T = S(() => {
|
|
795
|
-
let e =
|
|
795
|
+
let e = n();
|
|
796
796
|
if (!e) return [];
|
|
797
|
-
let t = [],
|
|
797
|
+
let t = [], r = `(${h.value.source}|${h.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
|
|
798
798
|
for (; (o = i.exec(e)) !== null;) {
|
|
799
799
|
o.index > a && t.push({
|
|
800
800
|
type: "text",
|
|
@@ -805,10 +805,10 @@ function ft(n) {
|
|
|
805
805
|
type: "mergeTag",
|
|
806
806
|
value: n,
|
|
807
807
|
label: d(n)
|
|
808
|
-
}) : j(n,
|
|
808
|
+
}) : j(n, h) ? t.push({
|
|
809
809
|
type: "logicMergeTag",
|
|
810
810
|
value: n,
|
|
811
|
-
keyword: k(n,
|
|
811
|
+
keyword: k(n, h)
|
|
812
812
|
}) : t.push({
|
|
813
813
|
type: "text",
|
|
814
814
|
value: n
|
|
@@ -820,17 +820,17 @@ function ft(n) {
|
|
|
820
820
|
}), t;
|
|
821
821
|
}), E = S(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
|
|
822
822
|
function D() {
|
|
823
|
-
|
|
823
|
+
b.value = !0, e(() => {
|
|
824
824
|
a.value?.focus();
|
|
825
|
-
let e =
|
|
825
|
+
let e = n()?.length || 0;
|
|
826
826
|
a.value?.setSelectionRange(e, e);
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
829
|
function O() {
|
|
830
|
-
|
|
830
|
+
x || (b.value = !1);
|
|
831
831
|
}
|
|
832
832
|
function A(e) {
|
|
833
|
-
|
|
833
|
+
r(e.target.value), w.refresh();
|
|
834
834
|
}
|
|
835
835
|
function ee(e) {
|
|
836
836
|
return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
|
|
@@ -842,54 +842,54 @@ function ft(n) {
|
|
|
842
842
|
w.close(), O();
|
|
843
843
|
}
|
|
844
844
|
function ne() {
|
|
845
|
-
|
|
845
|
+
r("");
|
|
846
846
|
}
|
|
847
847
|
async function re() {
|
|
848
|
-
let
|
|
849
|
-
|
|
850
|
-
let
|
|
848
|
+
let t = b.value && a.value ? a.value.selectionStart ?? n().length : n().length;
|
|
849
|
+
x = !0;
|
|
850
|
+
let i;
|
|
851
851
|
try {
|
|
852
|
-
|
|
852
|
+
i = await p();
|
|
853
853
|
} finally {
|
|
854
|
-
|
|
854
|
+
x = !1;
|
|
855
855
|
}
|
|
856
|
-
if (!
|
|
857
|
-
let o =
|
|
858
|
-
|
|
859
|
-
if (
|
|
860
|
-
let
|
|
861
|
-
a.value?.focus(), a.value?.setSelectionRange(
|
|
856
|
+
if (!C && i) {
|
|
857
|
+
let o = n().slice(0, t), s = n().slice(t), c = o + i.value + s;
|
|
858
|
+
r(c), b.value = !0, e(() => {
|
|
859
|
+
if (C) return;
|
|
860
|
+
let e = t + i.value.length;
|
|
861
|
+
a.value?.focus(), a.value?.setSelectionRange(e, e);
|
|
862
862
|
});
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
async function N(e) {
|
|
866
866
|
let t = T.value, n = t[e];
|
|
867
867
|
if (n?.type !== "mergeTag") return;
|
|
868
|
-
|
|
869
|
-
let
|
|
868
|
+
x = !0;
|
|
869
|
+
let i;
|
|
870
870
|
try {
|
|
871
|
-
|
|
871
|
+
i = await p({
|
|
872
872
|
reason: "edit",
|
|
873
873
|
current: f(n.value)
|
|
874
874
|
});
|
|
875
875
|
} finally {
|
|
876
|
-
|
|
876
|
+
x = !1;
|
|
877
877
|
}
|
|
878
|
-
!
|
|
878
|
+
!C && i && r(t.map((t, n) => n === e ? i.value : t.value).join(""));
|
|
879
879
|
}
|
|
880
880
|
async function P() {
|
|
881
|
-
let
|
|
882
|
-
|
|
881
|
+
let t = a.value, i = t?.selectionStart ?? n().length, o = t?.selectionEnd ?? i;
|
|
882
|
+
x = !0;
|
|
883
883
|
let s;
|
|
884
884
|
try {
|
|
885
|
-
s = await
|
|
885
|
+
s = await y();
|
|
886
886
|
} finally {
|
|
887
|
-
|
|
887
|
+
x = !1;
|
|
888
888
|
}
|
|
889
|
-
if (
|
|
890
|
-
let c =
|
|
891
|
-
"before" in s ? (l = c.slice(0,
|
|
892
|
-
|
|
889
|
+
if (C || !s) return;
|
|
890
|
+
let c = n(), l, u;
|
|
891
|
+
"before" in s ? (l = c.slice(0, i) + s.before + c.slice(i, o) + s.after + c.slice(o), u = i + s.before.length + (o - i)) : (l = c.slice(0, i) + s.value + c.slice(i), u = i + s.value.length), r(l), b.value = !0, e(() => {
|
|
892
|
+
C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
895
|
return {
|
|
@@ -897,9 +897,9 @@ function ft(n) {
|
|
|
897
897
|
hasMergeTags: E,
|
|
898
898
|
canRequestMergeTag: s,
|
|
899
899
|
isRequestingMergeTag: c,
|
|
900
|
-
canInsertLogicTag:
|
|
901
|
-
isRequestingLogicTag:
|
|
902
|
-
isEditing:
|
|
900
|
+
canInsertLogicTag: _,
|
|
901
|
+
isRequestingLogicTag: v,
|
|
902
|
+
isEditing: b,
|
|
903
903
|
startEditing: D,
|
|
904
904
|
stopEditing: O,
|
|
905
905
|
handleInput: A,
|
|
@@ -921,7 +921,7 @@ var pt = ["aria-label"], mt = [
|
|
|
921
921
|
], ht = ["data-tooltip"], gt = ["data-tooltip"], _t = {
|
|
922
922
|
key: 3,
|
|
923
923
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
924
|
-
}, vt = ["aria-label", "title"], yt = ["aria-label", "title"], bt = /* @__PURE__ */
|
|
924
|
+
}, vt = ["aria-label", "title"], yt = ["aria-label", "title"], bt = /* @__PURE__ */ t({
|
|
925
925
|
__name: "MergeTagSegments",
|
|
926
926
|
props: {
|
|
927
927
|
segments: {},
|
|
@@ -934,37 +934,37 @@ var pt = ["aria-label"], mt = [
|
|
|
934
934
|
"repick"
|
|
935
935
|
],
|
|
936
936
|
setup(e, { emit: t }) {
|
|
937
|
-
let n = t, { t:
|
|
937
|
+
let n = t, { t: i, format: o } = N(), { canRepickMergeTag: s, showRawValue: c } = R();
|
|
938
938
|
function l() {
|
|
939
939
|
n("edit");
|
|
940
940
|
}
|
|
941
|
-
return (t, d) => (
|
|
941
|
+
return (t, d) => (a(), u("div", {
|
|
942
942
|
role: "group",
|
|
943
|
-
"aria-label":
|
|
944
|
-
class:
|
|
943
|
+
"aria-label": w(i).mergeTag.fieldGroup,
|
|
944
|
+
class: E([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
|
|
945
945
|
onClick: l
|
|
946
946
|
}, [
|
|
947
|
-
(
|
|
947
|
+
(a(!0), u(T, null, r(e.segments, (e, t) => (a(), u(T, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && w(s)(e.value) ? (a(), u("button", {
|
|
948
948
|
key: 0,
|
|
949
949
|
type: "button",
|
|
950
|
-
class:
|
|
951
|
-
"data-tooltip":
|
|
952
|
-
"aria-label":
|
|
950
|
+
class: E(["tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded tpl:border-none tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", w(c) ? "tpl-tooltip" : ""]),
|
|
951
|
+
"data-tooltip": w(c) ? e.value : void 0,
|
|
952
|
+
"aria-label": w(o)(w(i).mergeTag.changeTag, { label: e.label }),
|
|
953
953
|
"data-testid": "merge-tag-field-chip",
|
|
954
954
|
style: {
|
|
955
955
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
956
956
|
color: "var(--tpl-primary)"
|
|
957
957
|
},
|
|
958
|
-
onClick:
|
|
959
|
-
},
|
|
958
|
+
onClick: y((e) => n("repick", t), ["stop"])
|
|
959
|
+
}, g(e.label), 11, mt)) : e.type === "mergeTag" ? (a(), u("span", {
|
|
960
960
|
key: 1,
|
|
961
|
-
class:
|
|
962
|
-
"data-tooltip":
|
|
961
|
+
class: E(["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", w(c) ? "tpl-tooltip" : ""]),
|
|
962
|
+
"data-tooltip": w(c) ? e.value : void 0,
|
|
963
963
|
style: {
|
|
964
964
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
965
965
|
color: "var(--tpl-primary)"
|
|
966
966
|
}
|
|
967
|
-
},
|
|
967
|
+
}, g(e.label), 11, ht)) : e.type === "logicMergeTag" ? (a(), u("span", {
|
|
968
968
|
key: 2,
|
|
969
969
|
class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
970
970
|
"data-tooltip": e.value,
|
|
@@ -973,26 +973,26 @@ var pt = ["aria-label"], mt = [
|
|
|
973
973
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
974
974
|
color: "var(--tpl-primary)"
|
|
975
975
|
}
|
|
976
|
-
},
|
|
977
|
-
|
|
976
|
+
}, g(e.keyword), 9, gt)) : (a(), u("span", _t, g(e.value), 1))], 64))), 128)),
|
|
977
|
+
b("button", {
|
|
978
978
|
type: "button",
|
|
979
979
|
class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-primary)] tpl:hover:opacity-100",
|
|
980
|
-
"aria-label":
|
|
981
|
-
title:
|
|
980
|
+
"aria-label": w(i).mergeTag.editAsText,
|
|
981
|
+
title: w(i).mergeTag.editAsText,
|
|
982
982
|
"data-testid": "merge-tag-field-edit",
|
|
983
|
-
onClick:
|
|
984
|
-
}, [D(
|
|
983
|
+
onClick: y(l, ["stop"])
|
|
984
|
+
}, [D(w(le), {
|
|
985
985
|
size: 12,
|
|
986
986
|
"stroke-width": 2
|
|
987
987
|
})], 8, vt),
|
|
988
|
-
|
|
988
|
+
b("button", {
|
|
989
989
|
type: "button",
|
|
990
990
|
class: "tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-danger)] tpl:hover:opacity-100",
|
|
991
|
-
"aria-label":
|
|
992
|
-
title:
|
|
991
|
+
"aria-label": w(i).mergeTag.remove,
|
|
992
|
+
title: w(i).mergeTag.remove,
|
|
993
993
|
"data-testid": "merge-tag-field-clear",
|
|
994
|
-
onClick: d[0] ||=
|
|
995
|
-
}, [D(
|
|
994
|
+
onClick: d[0] ||= y((e) => n("clear"), ["stop"])
|
|
995
|
+
}, [D(w(L), {
|
|
996
996
|
size: 12,
|
|
997
997
|
"stroke-width": 2.5
|
|
998
998
|
})], 8, yt)
|
|
@@ -1002,50 +1002,50 @@ var pt = ["aria-label"], mt = [
|
|
|
1002
1002
|
"aria-label",
|
|
1003
1003
|
"title",
|
|
1004
1004
|
"disabled"
|
|
1005
|
-
], St = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Ct = /* @__PURE__ */
|
|
1005
|
+
], St = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Ct = /* @__PURE__ */ t({
|
|
1006
1006
|
__name: "MergeTagInsertButton",
|
|
1007
1007
|
props: { disabled: { type: Boolean } },
|
|
1008
1008
|
emits: ["insert"],
|
|
1009
1009
|
setup(e) {
|
|
1010
1010
|
let { t } = N();
|
|
1011
|
-
return (n, r) => (
|
|
1011
|
+
return (n, r) => (a(), u("button", {
|
|
1012
1012
|
type: "button",
|
|
1013
|
-
class:
|
|
1014
|
-
"aria-label":
|
|
1015
|
-
title:
|
|
1013
|
+
class: E([St, "tpl:mt-1.5"]),
|
|
1014
|
+
"aria-label": w(t).mergeTag.insert,
|
|
1015
|
+
title: w(t).mergeTag.insert,
|
|
1016
1016
|
disabled: e.disabled,
|
|
1017
|
-
onMousedown: r[0] ||=
|
|
1017
|
+
onMousedown: r[0] ||= y(() => {}, ["prevent"]),
|
|
1018
1018
|
onClick: r[1] ||= (e) => n.$emit("insert")
|
|
1019
|
-
}, [D(
|
|
1019
|
+
}, [D(w(F), {
|
|
1020
1020
|
size: 12,
|
|
1021
1021
|
"stroke-width": 2
|
|
1022
|
-
}), d(" " +
|
|
1022
|
+
}), d(" " + g(w(t).mergeTag.insertShort), 1)], 42, xt));
|
|
1023
1023
|
}
|
|
1024
1024
|
}), wt = [
|
|
1025
1025
|
"aria-label",
|
|
1026
1026
|
"title",
|
|
1027
1027
|
"disabled"
|
|
1028
|
-
], Tt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Et = /* @__PURE__ */
|
|
1028
|
+
], Tt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Et = /* @__PURE__ */ t({
|
|
1029
1029
|
__name: "LogicTagInsertButton",
|
|
1030
1030
|
props: { disabled: { type: Boolean } },
|
|
1031
1031
|
emits: ["insert"],
|
|
1032
1032
|
setup(e) {
|
|
1033
1033
|
let { t } = N();
|
|
1034
|
-
return (n, r) => (
|
|
1034
|
+
return (n, r) => (a(), u("button", {
|
|
1035
1035
|
type: "button",
|
|
1036
|
-
class:
|
|
1037
|
-
"aria-label":
|
|
1038
|
-
title:
|
|
1036
|
+
class: E([Tt, "tpl:mt-1.5"]),
|
|
1037
|
+
"aria-label": w(t).logicTag.insert,
|
|
1038
|
+
title: w(t).logicTag.insert,
|
|
1039
1039
|
disabled: e.disabled,
|
|
1040
1040
|
"data-testid": "field-insert-logic-button",
|
|
1041
|
-
onMousedown: r[0] ||=
|
|
1041
|
+
onMousedown: r[0] ||= y(() => {}, ["prevent"]),
|
|
1042
1042
|
onClick: r[1] ||= (e) => n.$emit("insert")
|
|
1043
|
-
}, [D(
|
|
1043
|
+
}, [D(w(I), {
|
|
1044
1044
|
size: 12,
|
|
1045
1045
|
"stroke-width": 2
|
|
1046
|
-
}), d(" " +
|
|
1046
|
+
}), d(" " + g(w(t).logicTag.insertShort), 1)], 42, wt));
|
|
1047
1047
|
}
|
|
1048
1048
|
});
|
|
1049
1049
|
export { it as a, qe as c, ft as i, Ct as n, nt as o, bt as r, rt as s, Et as t };
|
|
1050
1050
|
|
|
1051
|
-
//# sourceMappingURL=LogicTagInsertButton-
|
|
1051
|
+
//# sourceMappingURL=LogicTagInsertButton-BIi05UQu.js.map
|