@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
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { Z as E, et as D, ot as O, tt as k } from "./dist-
|
|
4
|
-
import { t as ne } from "./dist-
|
|
5
|
-
import { J as re, Y as A, Z as ie, d as ae } from "./keys-
|
|
6
|
-
import { t as j } from "./useI18n-
|
|
7
|
-
import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-
|
|
8
|
-
import { t as N } from "./createLucideIcon-
|
|
9
|
-
import { t as P } from "./pencil-
|
|
10
|
-
import { t as de } from "./x-
|
|
11
|
-
import { t as F } from "./useMergeTag-
|
|
12
|
-
import { t as I } from "./useLogicTag-
|
|
1
|
+
import { $ as e, C as t, D as n, H as r, J as i, K as a, Mt as o, N as s, Nt as c, X as l, _ as u, a as d, c as f, d as p, f as m, g as h, j as g, jt as _, l as v, r as y, st as b, u as x, x as S, y as C } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
+
import { Z as E, et as D, ot as O, tt as k } from "./dist-CKi_npZM.js";
|
|
4
|
+
import { t as ne } from "./dist-ByCWA2Tv.js";
|
|
5
|
+
import { J as re, Y as A, Z as ie, d as ae } from "./keys-BgRERHzu.js";
|
|
6
|
+
import { t as j } from "./useI18n-BBrHTdu8.js";
|
|
7
|
+
import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-DV1PxL66.js";
|
|
8
|
+
import { t as N } from "./createLucideIcon-CvhTA2KG.js";
|
|
9
|
+
import { t as P } from "./pencil-D3aFCL7c.js";
|
|
10
|
+
import { t as de } from "./x-BpfG7v9g.js";
|
|
11
|
+
import { t as F } from "./useMergeTag-BQ4qqWpQ.js";
|
|
12
|
+
import { t as I } from "./useLogicTag-ZPC39rfH.js";
|
|
13
13
|
import { u as fe } from "./styleConstants-B8xVRiwX.js";
|
|
14
14
|
var pe = N({
|
|
15
15
|
name: "braces",
|
|
@@ -344,23 +344,23 @@ var Ie = [
|
|
|
344
344
|
}
|
|
345
345
|
},
|
|
346
346
|
emits: ["update:modelValue"],
|
|
347
|
-
setup(n, { emit:
|
|
348
|
-
let
|
|
347
|
+
setup(n, { emit: i }) {
|
|
348
|
+
let a = n, l = i, { t: S } = j(), C = e(!1), T = e(), E = e(), D = e(!1);
|
|
349
349
|
ne(T, () => {
|
|
350
350
|
C.value = !1;
|
|
351
351
|
}, { ignore: [E] });
|
|
352
|
-
let O =
|
|
352
|
+
let O = f(() => !a.modelValue), k = f(() => a.modelValue.trim().toLowerCase() === "transparent"), A = f(() => oe(a.modelValue)), N = f(() => (a.modelValue ? M(a.modelValue) : null) || (M(a.seedColor) ?? "#ffffff")), P = f(() => !a.disabled && !O.value), F = t(ae, ce), I = f(() => [...new Set(a.presets ?? F.presets)]), pe = f(() => a.allowCustom ?? F.allowCustom), L = f(() => I.value.length > 0), R = f(() => pe.value || !L.value), z = f(() => le(a.modelValue));
|
|
353
353
|
function B(e) {
|
|
354
354
|
return z.value !== "" && le(e) === z.value;
|
|
355
355
|
}
|
|
356
356
|
function V(e) {
|
|
357
|
-
|
|
357
|
+
l("update:modelValue", e);
|
|
358
358
|
}
|
|
359
|
-
let H =
|
|
359
|
+
let H = f(() => L.value && !R.value);
|
|
360
360
|
function U(e) {
|
|
361
361
|
return H.value ? e + 1 : e;
|
|
362
362
|
}
|
|
363
|
-
let W =
|
|
363
|
+
let W = f(() => {
|
|
364
364
|
if (H.value && O.value) return 0;
|
|
365
365
|
let e = I.value.findIndex((e) => B(e));
|
|
366
366
|
return e === -1 ? 0 : U(e);
|
|
@@ -382,29 +382,29 @@ var Ie = [
|
|
|
382
382
|
i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
|
|
383
383
|
}
|
|
384
384
|
function ge(e) {
|
|
385
|
-
D.value = !0,
|
|
385
|
+
D.value = !0, l("update:modelValue", e.detail.value);
|
|
386
386
|
}
|
|
387
387
|
function _e() {
|
|
388
388
|
D.value = !1;
|
|
389
389
|
}
|
|
390
390
|
function ve() {
|
|
391
|
-
!D.value && O.value &&
|
|
391
|
+
!D.value && O.value && l("update:modelValue", N.value);
|
|
392
392
|
}
|
|
393
393
|
function K(e) {
|
|
394
|
-
|
|
394
|
+
l("update:modelValue", e.target.value);
|
|
395
395
|
}
|
|
396
396
|
function q() {
|
|
397
|
-
|
|
397
|
+
l("update:modelValue", "");
|
|
398
398
|
}
|
|
399
399
|
function J() {
|
|
400
|
-
|
|
400
|
+
l("update:modelValue", "transparent");
|
|
401
401
|
}
|
|
402
|
-
let Y = se(), { toLocal: X } = ue(), ye = t(re, null), be = t(ie, null), Z =
|
|
402
|
+
let Y = se(), { toLocal: X } = ue(), ye = t(re, null), be = t(ie, null), Z = e({
|
|
403
403
|
top: 0,
|
|
404
404
|
left: 0
|
|
405
405
|
});
|
|
406
406
|
function xe() {
|
|
407
|
-
if (!
|
|
407
|
+
if (!a.disabled) {
|
|
408
408
|
if (!C.value) {
|
|
409
409
|
let e = E.value?.getBoundingClientRect();
|
|
410
410
|
if (e) {
|
|
@@ -418,53 +418,53 @@ var Ie = [
|
|
|
418
418
|
C.value = !C.value;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
return (
|
|
422
|
-
|
|
421
|
+
return (e, t) => (g(), m("div", { class: _(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", n.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
422
|
+
v("button", {
|
|
423
423
|
ref_key: "swatchRef",
|
|
424
424
|
ref: E,
|
|
425
425
|
type: "button",
|
|
426
426
|
disabled: n.disabled,
|
|
427
|
-
"aria-label": n.ariaLabel ||
|
|
427
|
+
"aria-label": n.ariaLabel || b(S).colorPicker.pickColor,
|
|
428
428
|
title: n.ariaLabel || void 0,
|
|
429
429
|
"aria-expanded": C.value,
|
|
430
|
-
class:
|
|
430
|
+
class: _([
|
|
431
431
|
"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)]",
|
|
432
432
|
n.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
|
|
433
433
|
C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !n.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
|
|
434
434
|
n.size === "sm" ? "tpl:size-8" : "tpl:size-10"
|
|
435
435
|
]),
|
|
436
436
|
onClick: xe
|
|
437
|
-
}, [
|
|
438
|
-
class:
|
|
437
|
+
}, [v("span", {
|
|
438
|
+
class: _(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
|
|
439
439
|
"tpl-color-swatch-empty": O.value,
|
|
440
440
|
"tpl-color-swatch-transparent": k.value
|
|
441
441
|
}]),
|
|
442
|
-
style:
|
|
442
|
+
style: o(O.value || k.value ? void 0 : { backgroundColor: A.value })
|
|
443
443
|
}, null, 6)], 10, Ie),
|
|
444
|
-
!n.swatchOnly && R.value ? (
|
|
444
|
+
!n.swatchOnly && R.value ? (g(), m("div", Le, [v("input", {
|
|
445
445
|
type: "text",
|
|
446
|
-
class:
|
|
447
|
-
style:
|
|
446
|
+
class: _([b(fe), "tpl:w-full"]),
|
|
447
|
+
style: o(P.value ? { paddingRight: "2.25rem" } : void 0),
|
|
448
448
|
value: A.value,
|
|
449
|
-
placeholder: n.placeholder ||
|
|
449
|
+
placeholder: n.placeholder || b(S).colorPicker.notSet,
|
|
450
450
|
disabled: n.disabled,
|
|
451
|
-
"aria-label":
|
|
451
|
+
"aria-label": b(S).colorPicker.hexValue,
|
|
452
452
|
onInput: K
|
|
453
|
-
}, null, 46, Re), P.value ? (
|
|
453
|
+
}, null, 46, Re), P.value ? (g(), m("button", {
|
|
454
454
|
key: 0,
|
|
455
455
|
type: "button",
|
|
456
|
-
"aria-label":
|
|
457
|
-
title:
|
|
456
|
+
"aria-label": b(S).colorPicker.clear,
|
|
457
|
+
title: b(S).colorPicker.clear,
|
|
458
458
|
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)]",
|
|
459
459
|
onClick: q
|
|
460
|
-
}, [
|
|
460
|
+
}, [u(b(de), {
|
|
461
461
|
size: 14,
|
|
462
462
|
"stroke-width": 1.5
|
|
463
|
-
})], 8, ze)) :
|
|
464
|
-
(
|
|
465
|
-
to:
|
|
466
|
-
disabled: !
|
|
467
|
-
}, [
|
|
463
|
+
})], 8, ze)) : p("", !0)])) : p("", !0),
|
|
464
|
+
(g(), x(d, {
|
|
465
|
+
to: b(Y),
|
|
466
|
+
disabled: !b(Y)
|
|
467
|
+
}, [u(te, {
|
|
468
468
|
"enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
469
469
|
"enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
|
|
470
470
|
"enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
@@ -472,87 +472,87 @@ var Ie = [
|
|
|
472
472
|
"leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
473
473
|
"leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
|
|
474
474
|
}, {
|
|
475
|
-
default:
|
|
475
|
+
default: r(() => [C.value ? (g(), m("div", {
|
|
476
476
|
key: 0,
|
|
477
477
|
ref_key: "popoverRef",
|
|
478
478
|
ref: T,
|
|
479
|
-
"data-tpl-theme":
|
|
479
|
+
"data-tpl-theme": b(be),
|
|
480
480
|
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)]",
|
|
481
|
-
style:
|
|
481
|
+
style: o({
|
|
482
482
|
top: `${Z.value.top}px`,
|
|
483
483
|
left: `${Z.value.left}px`,
|
|
484
|
-
...
|
|
484
|
+
...b(ye)
|
|
485
485
|
})
|
|
486
486
|
}, [
|
|
487
|
-
n.allowTransparent ? (
|
|
487
|
+
n.allowTransparent ? (g(), m("button", {
|
|
488
488
|
key: 0,
|
|
489
489
|
type: "button",
|
|
490
490
|
"data-testid": "color-picker-transparent",
|
|
491
491
|
"aria-pressed": k.value,
|
|
492
|
-
"aria-label":
|
|
493
|
-
title:
|
|
494
|
-
class:
|
|
492
|
+
"aria-label": b(S).colorPicker.transparent,
|
|
493
|
+
title: b(S).colorPicker.transparent,
|
|
494
|
+
class: _(["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)]", k.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)]"]),
|
|
495
495
|
onClick: J
|
|
496
|
-
}, [
|
|
497
|
-
L.value ? (
|
|
496
|
+
}, [t[2] ||= v("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), h(" " + c(b(S).colorPicker.transparent), 1)], 10, Ve)) : p("", !0),
|
|
497
|
+
L.value ? (g(), m("div", {
|
|
498
498
|
key: 1,
|
|
499
499
|
role: "radiogroup",
|
|
500
|
-
"aria-label":
|
|
501
|
-
class:
|
|
500
|
+
"aria-label": b(S).colorPicker.presetColors,
|
|
501
|
+
class: _(["tpl:flex tpl:flex-wrap tpl:gap-1.5", R.value && "tpl:mb-2"]),
|
|
502
502
|
onKeydown: he
|
|
503
|
-
}, [H.value ? (
|
|
503
|
+
}, [H.value ? (g(), m("button", {
|
|
504
504
|
key: 0,
|
|
505
505
|
type: "button",
|
|
506
506
|
role: "radio",
|
|
507
|
-
"aria-label":
|
|
508
|
-
title:
|
|
507
|
+
"aria-label": b(S).colorPicker.clear,
|
|
508
|
+
title: b(S).colorPicker.clear,
|
|
509
509
|
"aria-checked": O.value,
|
|
510
510
|
tabindex: me(),
|
|
511
|
-
class:
|
|
511
|
+
class: _(["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)]", O.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)]"]),
|
|
512
512
|
onClick: q
|
|
513
|
-
}, null, 10, Ue)) :
|
|
514
|
-
key:
|
|
513
|
+
}, null, 10, Ue)) : p("", !0), (g(!0), m(y, null, s(I.value, (e, t) => (g(), m("button", {
|
|
514
|
+
key: e,
|
|
515
515
|
type: "button",
|
|
516
516
|
role: "radio",
|
|
517
|
-
"aria-label":
|
|
518
|
-
title:
|
|
519
|
-
"aria-checked": B(
|
|
520
|
-
tabindex: G(
|
|
521
|
-
style:
|
|
522
|
-
class:
|
|
523
|
-
onClick: (
|
|
524
|
-
}, null, 14, We))), 128))], 42, He)) :
|
|
525
|
-
R.value ? (
|
|
517
|
+
"aria-label": e,
|
|
518
|
+
title: e,
|
|
519
|
+
"aria-checked": B(e),
|
|
520
|
+
tabindex: G(t),
|
|
521
|
+
style: o({ backgroundColor: e }),
|
|
522
|
+
class: _(["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)]", B(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)]"]),
|
|
523
|
+
onClick: (t) => V(e)
|
|
524
|
+
}, null, 14, We))), 128))], 42, He)) : p("", !0),
|
|
525
|
+
R.value ? (g(), m("hex-color-picker", {
|
|
526
526
|
key: 2,
|
|
527
527
|
color: N.value,
|
|
528
|
-
"aria-label":
|
|
528
|
+
"aria-label": b(S).colorPicker.pickColor,
|
|
529
529
|
onColorChanged: ge,
|
|
530
530
|
onPointerdown: _e,
|
|
531
531
|
onPointerup: ve,
|
|
532
|
-
onKeydown:
|
|
533
|
-
}, null, 40, Ge)) :
|
|
534
|
-
n.swatchOnly && R.value ? (
|
|
532
|
+
onKeydown: t[0] ||= ee((e) => C.value = !1, ["escape"])
|
|
533
|
+
}, null, 40, Ge)) : p("", !0),
|
|
534
|
+
n.swatchOnly && R.value ? (g(), m("div", Ke, [v("input", {
|
|
535
535
|
type: "text",
|
|
536
|
-
class:
|
|
537
|
-
style:
|
|
536
|
+
class: _([b(fe), "tpl:w-full"]),
|
|
537
|
+
style: o(P.value ? { paddingRight: "2.25rem" } : void 0),
|
|
538
538
|
value: A.value,
|
|
539
|
-
placeholder: n.placeholder ||
|
|
539
|
+
placeholder: n.placeholder || b(S).colorPicker.notSet,
|
|
540
540
|
disabled: n.disabled,
|
|
541
|
-
"aria-label":
|
|
541
|
+
"aria-label": b(S).colorPicker.hexValue,
|
|
542
542
|
onChange: K,
|
|
543
|
-
onKeydown:
|
|
544
|
-
}, null, 46, qe), P.value ? (
|
|
543
|
+
onKeydown: t[1] ||= ee(w((e) => e.target.blur(), ["prevent"]), ["enter"])
|
|
544
|
+
}, null, 46, qe), P.value ? (g(), m("button", {
|
|
545
545
|
key: 0,
|
|
546
546
|
type: "button",
|
|
547
|
-
"aria-label":
|
|
548
|
-
title:
|
|
547
|
+
"aria-label": b(S).colorPicker.clear,
|
|
548
|
+
title: b(S).colorPicker.clear,
|
|
549
549
|
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)]",
|
|
550
550
|
onClick: q
|
|
551
|
-
}, [
|
|
551
|
+
}, [u(b(de), {
|
|
552
552
|
size: 14,
|
|
553
553
|
"stroke-width": 1.5
|
|
554
|
-
})], 8, Je)) :
|
|
555
|
-
], 12, Be)) :
|
|
554
|
+
})], 8, Je)) : p("", !0)])) : p("", !0)
|
|
555
|
+
], 12, Be)) : p("", !0)]),
|
|
556
556
|
_: 1
|
|
557
557
|
})], 8, ["to", "disabled"]))
|
|
558
558
|
], 2));
|
|
@@ -577,28 +577,28 @@ var Ie = [
|
|
|
577
577
|
listId: {}
|
|
578
578
|
},
|
|
579
579
|
emits: ["select", "hover"],
|
|
580
|
-
setup(
|
|
581
|
-
let
|
|
582
|
-
function
|
|
583
|
-
return
|
|
580
|
+
setup(e) {
|
|
581
|
+
let t = e;
|
|
582
|
+
function n(e) {
|
|
583
|
+
return t.listId ? `${t.listId}-opt-${e}` : void 0;
|
|
584
584
|
}
|
|
585
|
-
return (
|
|
586
|
-
id:
|
|
585
|
+
return (t, r) => (g(), m("div", {
|
|
586
|
+
id: e.listId,
|
|
587
587
|
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)]",
|
|
588
588
|
role: "listbox",
|
|
589
589
|
"data-testid": "merge-tag-suggestion-list"
|
|
590
|
-
}, [
|
|
591
|
-
key:
|
|
592
|
-
id:
|
|
590
|
+
}, [e.items.length === 0 ? (g(), m("div", Ze, c(e.emptyText), 1)) : p("", !0), (g(!0), m(y, null, s(e.items, (r, i) => (g(), m("button", {
|
|
591
|
+
key: r.value,
|
|
592
|
+
id: n(i),
|
|
593
593
|
type: "button",
|
|
594
594
|
role: "option",
|
|
595
|
-
"aria-selected":
|
|
596
|
-
"data-selected":
|
|
597
|
-
"data-merge-tag-value":
|
|
598
|
-
class:
|
|
599
|
-
onMousedown: w((e) =>
|
|
600
|
-
onMousemove: (
|
|
601
|
-
}, [
|
|
595
|
+
"aria-selected": i === e.selectedIndex,
|
|
596
|
+
"data-selected": i === e.selectedIndex ? "true" : "false",
|
|
597
|
+
"data-merge-tag-value": r.value,
|
|
598
|
+
class: _(["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)]"]),
|
|
599
|
+
onMousedown: w((e) => t.$emit("select", r), ["prevent", "stop"]),
|
|
600
|
+
onMousemove: (n) => i !== e.selectedIndex && t.$emit("hover", i)
|
|
601
|
+
}, [v("span", $e, c(r.label), 1), v("span", et, c(r.value), 1)], 42, Qe))), 128))], 8, Xe));
|
|
602
602
|
}
|
|
603
603
|
}), nt = 10, rt = 0;
|
|
604
604
|
function it(e, t) {
|
|
@@ -611,8 +611,8 @@ function it(e, t) {
|
|
|
611
611
|
function at(e, t, n, r) {
|
|
612
612
|
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;
|
|
613
613
|
}
|
|
614
|
-
function ot(
|
|
615
|
-
let
|
|
614
|
+
function ot(t, n) {
|
|
615
|
+
let r = null, i = null, a = null, o = e([]), s = e(0), c = null, l = `tpl-merge-tag-suggestion-${++rt}`, u = null, d = [], f = null;
|
|
616
616
|
function p() {
|
|
617
617
|
v(u?.() ?? null);
|
|
618
618
|
}
|
|
@@ -642,14 +642,14 @@ function ot(e, t) {
|
|
|
642
642
|
window.removeEventListener("resize", p), d = [];
|
|
643
643
|
}
|
|
644
644
|
function v(e) {
|
|
645
|
-
if (!
|
|
646
|
-
|
|
647
|
-
let t =
|
|
648
|
-
|
|
649
|
-
let a =
|
|
645
|
+
if (!i || !e || e.bottom < 0 || e.top > window.innerHeight) return;
|
|
646
|
+
i.style.position = "absolute", i.style.zIndex = "9999";
|
|
647
|
+
let t = i.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, r = t?.left ?? 0;
|
|
648
|
+
i.style.left = `${e.left - r}px`, i.style.top = `${e.bottom - n}px`;
|
|
649
|
+
let a = i.offsetHeight;
|
|
650
650
|
if (a !== 0 && window.innerHeight - e.bottom < a) {
|
|
651
651
|
let t = Math.max(0, e.top - a);
|
|
652
|
-
|
|
652
|
+
i.style.top = `${t - n}px`;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
function y(e, t) {
|
|
@@ -665,40 +665,40 @@ function ot(e, t) {
|
|
|
665
665
|
e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
|
|
666
666
|
}
|
|
667
667
|
function b(e) {
|
|
668
|
-
|
|
668
|
+
a && (e ? (a.setAttribute("role", "combobox"), a.setAttribute("aria-haspopup", "listbox"), a.setAttribute("aria-expanded", "true"), a.setAttribute("aria-controls", l)) : (a.removeAttribute("aria-expanded"), a.removeAttribute("aria-controls"), a.removeAttribute("aria-activedescendant"), a.removeAttribute("aria-haspopup"), a.removeAttribute("role")));
|
|
669
669
|
}
|
|
670
670
|
function x() {
|
|
671
|
-
|
|
671
|
+
a && (o.value.length === 0 ? a.removeAttribute("aria-activedescendant") : a.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
|
|
672
672
|
}
|
|
673
673
|
function C(e) {
|
|
674
674
|
c?.(e);
|
|
675
675
|
}
|
|
676
676
|
return {
|
|
677
|
-
open: ({ items:
|
|
678
|
-
|
|
677
|
+
open: ({ items: e, getRect: d, anchorEl: f, onCommand: p }) => {
|
|
678
|
+
o.value = e, s.value = 0, c = p, i = document.createElement("div"), i.setAttribute("data-testid", "merge-tag-suggestion-popup"), a = f, y(i, f), (n?.value ?? document.body).appendChild(i), r = T({ render() {
|
|
679
679
|
return S(tt, {
|
|
680
|
-
items:
|
|
680
|
+
items: o.value,
|
|
681
681
|
selectedIndex: s.value,
|
|
682
|
-
emptyText:
|
|
682
|
+
emptyText: t,
|
|
683
683
|
listId: l,
|
|
684
684
|
onSelect: (e) => C(e),
|
|
685
685
|
onHover: (e) => {
|
|
686
686
|
s.value = e, x();
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
|
-
} }),
|
|
689
|
+
} }), r.mount(i), b(!0), x(), u = d, m(), g(f);
|
|
690
690
|
},
|
|
691
691
|
update: ({ items: e, getRect: t, onCommand: n }) => {
|
|
692
|
-
|
|
692
|
+
o.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
|
|
693
693
|
},
|
|
694
694
|
handleKeyDown: (e) => {
|
|
695
|
-
let t = at(e,
|
|
695
|
+
let t = at(e, o.value, s, C);
|
|
696
696
|
return t && x(), t;
|
|
697
697
|
},
|
|
698
698
|
close: () => {
|
|
699
|
-
|
|
699
|
+
i !== null && (f !== null && (cancelAnimationFrame(f), f = null), _(), b(!1), r?.unmount(), i.remove(), r = null, i = null, a = null, c = null, u = null);
|
|
700
700
|
},
|
|
701
|
-
isOpen: () =>
|
|
701
|
+
isOpen: () => i !== null
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
704
|
// src/utils/mergeTagTrigger.ts
|
|
@@ -762,66 +762,66 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
762
762
|
"End"
|
|
763
763
|
]);
|
|
764
764
|
function pt(e) {
|
|
765
|
-
let { elementRef:
|
|
766
|
-
|
|
767
|
-
|
|
765
|
+
let { elementRef: r, modelValue: o, emit: s, mergeTags: c, syntax: u, enabled: d, onInsert: p } = e, m = k(u), h = D(u), g = f(() => d && m !== null && c.value.length > 0), _ = t(A, null), v = ot((i(_) ? _.value : _)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", se()), y = !1;
|
|
766
|
+
a() && l(() => {
|
|
767
|
+
y = !0, v.close();
|
|
768
768
|
});
|
|
769
769
|
function b(e) {
|
|
770
770
|
let t = e.value ?? "";
|
|
771
|
-
return st(t, e.selectionStart ?? t.length,
|
|
771
|
+
return st(t, e.selectionStart ?? t.length, m, h, u.value);
|
|
772
772
|
}
|
|
773
|
-
function x(e, t,
|
|
774
|
-
let
|
|
775
|
-
|
|
776
|
-
if (
|
|
777
|
-
let e =
|
|
778
|
-
e?.focus(), e?.setSelectionRange(
|
|
773
|
+
function x(e, t, i) {
|
|
774
|
+
let a = e.value ?? o(), c = a.slice(t.caret), l = h && c.startsWith(h) ? h.length : 0, u = a.slice(0, t.triggerStart), d = a.slice(t.caret + l), f = u + i.value + d, m = u.length + i.value.length;
|
|
775
|
+
p?.(), s(f), v.close(), n(() => {
|
|
776
|
+
if (y) return;
|
|
777
|
+
let e = r.value;
|
|
778
|
+
e?.focus(), e?.setSelectionRange(m, m);
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
781
|
function S() {
|
|
782
|
-
if (!
|
|
783
|
-
let e =
|
|
782
|
+
if (!g.value || y) return;
|
|
783
|
+
let e = r.value;
|
|
784
784
|
if (!e) {
|
|
785
|
-
|
|
785
|
+
v.close();
|
|
786
786
|
return;
|
|
787
787
|
}
|
|
788
788
|
let t = b(e);
|
|
789
789
|
if (!t) {
|
|
790
|
-
|
|
790
|
+
v.close();
|
|
791
791
|
return;
|
|
792
792
|
}
|
|
793
|
-
let n = it(
|
|
794
|
-
|
|
793
|
+
let n = it(c.value, t.query), i = () => dt(e, t.triggerStart), a = (n) => x(e, t, n);
|
|
794
|
+
v.isOpen() ? v.update({
|
|
795
795
|
items: n,
|
|
796
|
-
getRect:
|
|
796
|
+
getRect: i,
|
|
797
797
|
onCommand: a
|
|
798
|
-
}) :
|
|
798
|
+
}) : v.open({
|
|
799
799
|
items: n,
|
|
800
|
-
getRect:
|
|
800
|
+
getRect: i,
|
|
801
801
|
anchorEl: e,
|
|
802
802
|
onCommand: a
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
805
|
function C(e) {
|
|
806
|
-
return
|
|
806
|
+
return v.isOpen() ? e.key === "Escape" ? (v.close(), !0) : ft.has(e.key) ? (v.close(), !1) : v.handleKeyDown(e) : !1;
|
|
807
807
|
}
|
|
808
808
|
return {
|
|
809
|
-
available:
|
|
809
|
+
available: g,
|
|
810
810
|
refresh: S,
|
|
811
811
|
handleKeydown: C,
|
|
812
|
-
close: () =>
|
|
813
|
-
isOpen: () =>
|
|
812
|
+
close: () => v.close(),
|
|
813
|
+
isOpen: () => v.isOpen()
|
|
814
814
|
};
|
|
815
815
|
}
|
|
816
816
|
// src/composables/useMergeTagField.ts
|
|
817
|
-
function mt(
|
|
818
|
-
let { modelValue:
|
|
819
|
-
|
|
817
|
+
function mt(t) {
|
|
818
|
+
let { modelValue: r, emit: i, elementRef: o } = t, { mergeTags: s, canRequestMergeTag: c, isRequesting: u, isMergeTagValue: d, getMergeTagDisplayLabel: p, findMergeTag: m, requestMergeTag: h, syntax: g, autocomplete: _ } = F(), { canInsertLogicTag: v, isRequesting: y, requestLogicTag: b } = I(), x = e(!1), S = !1, C = !1;
|
|
819
|
+
a() && l(() => {
|
|
820
820
|
C = !0;
|
|
821
821
|
});
|
|
822
822
|
let w = pt({
|
|
823
|
-
elementRef:
|
|
824
|
-
modelValue:
|
|
823
|
+
elementRef: o,
|
|
824
|
+
modelValue: r,
|
|
825
825
|
emit: i,
|
|
826
826
|
mergeTags: s,
|
|
827
827
|
syntax: g,
|
|
@@ -829,39 +829,39 @@ function mt(e) {
|
|
|
829
829
|
onInsert: () => {
|
|
830
830
|
x.value = !0;
|
|
831
831
|
}
|
|
832
|
-
}), T =
|
|
833
|
-
let e =
|
|
832
|
+
}), T = f(() => {
|
|
833
|
+
let e = r();
|
|
834
834
|
if (!e) return [];
|
|
835
|
-
let
|
|
835
|
+
let t = [], n = `(${g.value.source}|${g.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
|
|
836
836
|
for (; (o = i.exec(e)) !== null;) {
|
|
837
|
-
o.index > a &&
|
|
837
|
+
o.index > a && t.push({
|
|
838
838
|
type: "text",
|
|
839
839
|
value: e.slice(a, o.index)
|
|
840
840
|
});
|
|
841
|
-
let
|
|
842
|
-
|
|
841
|
+
let n = o[0];
|
|
842
|
+
d(n) ? t.push({
|
|
843
843
|
type: "mergeTag",
|
|
844
|
-
value:
|
|
845
|
-
label: p(
|
|
846
|
-
}) : O(
|
|
844
|
+
value: n,
|
|
845
|
+
label: p(n)
|
|
846
|
+
}) : O(n, g) ? t.push({
|
|
847
847
|
type: "logicMergeTag",
|
|
848
|
-
value:
|
|
849
|
-
keyword: E(
|
|
850
|
-
}) :
|
|
848
|
+
value: n,
|
|
849
|
+
keyword: E(n, g)
|
|
850
|
+
}) : t.push({
|
|
851
851
|
type: "text",
|
|
852
|
-
value:
|
|
853
|
-
}), a = o.index +
|
|
852
|
+
value: n
|
|
853
|
+
}), a = o.index + n.length;
|
|
854
854
|
}
|
|
855
|
-
return a < e.length &&
|
|
855
|
+
return a < e.length && t.push({
|
|
856
856
|
type: "text",
|
|
857
857
|
value: e.slice(a)
|
|
858
|
-
}),
|
|
859
|
-
}), ee =
|
|
858
|
+
}), t;
|
|
859
|
+
}), ee = f(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
|
|
860
860
|
function te() {
|
|
861
861
|
x.value = !0, n(() => {
|
|
862
|
-
|
|
863
|
-
let e =
|
|
864
|
-
|
|
862
|
+
o.value?.focus();
|
|
863
|
+
let e = r()?.length || 0;
|
|
864
|
+
o.value?.setSelectionRange(e, e);
|
|
865
865
|
});
|
|
866
866
|
}
|
|
867
867
|
function D() {
|
|
@@ -883,20 +883,20 @@ function mt(e) {
|
|
|
883
883
|
i("");
|
|
884
884
|
}
|
|
885
885
|
async function ae() {
|
|
886
|
-
let e = x.value &&
|
|
886
|
+
let e = x.value && o.value ? o.value.selectionStart ?? r().length : r().length;
|
|
887
887
|
S = !0;
|
|
888
|
-
let
|
|
888
|
+
let t;
|
|
889
889
|
try {
|
|
890
|
-
|
|
890
|
+
t = await h();
|
|
891
891
|
} finally {
|
|
892
892
|
S = !1;
|
|
893
893
|
}
|
|
894
|
-
if (!C &&
|
|
895
|
-
let
|
|
894
|
+
if (!C && t) {
|
|
895
|
+
let a = r().slice(0, e), s = r().slice(e), c = a + t.value + s;
|
|
896
896
|
i(c), x.value = !0, n(() => {
|
|
897
897
|
if (C) return;
|
|
898
|
-
let
|
|
899
|
-
|
|
898
|
+
let n = e + t.value.length;
|
|
899
|
+
o.value?.focus(), o.value?.setSelectionRange(n, n);
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
902
|
}
|
|
@@ -916,7 +916,7 @@ function mt(e) {
|
|
|
916
916
|
!C && r && i(t.map((t, n) => n === e ? r.value : t.value).join(""));
|
|
917
917
|
}
|
|
918
918
|
async function M() {
|
|
919
|
-
let e =
|
|
919
|
+
let e = o.value, t = e?.selectionStart ?? r().length, a = e?.selectionEnd ?? t;
|
|
920
920
|
S = !0;
|
|
921
921
|
let s;
|
|
922
922
|
try {
|
|
@@ -925,15 +925,15 @@ function mt(e) {
|
|
|
925
925
|
S = !1;
|
|
926
926
|
}
|
|
927
927
|
if (C || !s) return;
|
|
928
|
-
let c =
|
|
929
|
-
"before" in s ? (l = c.slice(0,
|
|
930
|
-
C || (
|
|
928
|
+
let c = r(), l, u;
|
|
929
|
+
"before" in s ? (l = c.slice(0, t) + s.before + c.slice(t, a) + s.after + c.slice(a), u = t + s.before.length + (a - t)) : (l = c.slice(0, t) + s.value + c.slice(t), u = t + s.value.length), i(l), x.value = !0, n(() => {
|
|
930
|
+
C || (o.value?.focus(), o.value?.setSelectionRange(u, u));
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
933
|
return {
|
|
934
934
|
segments: T,
|
|
935
935
|
hasMergeTags: ee,
|
|
936
|
-
canRequestMergeTag:
|
|
936
|
+
canRequestMergeTag: c,
|
|
937
937
|
isRequestingMergeTag: u,
|
|
938
938
|
canInsertLogicTag: v,
|
|
939
939
|
isRequestingLogicTag: y,
|
|
@@ -971,66 +971,66 @@ var ht = ["aria-label"], gt = [
|
|
|
971
971
|
"clear",
|
|
972
972
|
"repick"
|
|
973
973
|
],
|
|
974
|
-
setup(
|
|
975
|
-
let
|
|
976
|
-
function
|
|
977
|
-
|
|
974
|
+
setup(e, { emit: t }) {
|
|
975
|
+
let n = t, { t: r, format: i } = j(), { canRepickMergeTag: a, showRawValue: o } = F();
|
|
976
|
+
function l() {
|
|
977
|
+
n("edit");
|
|
978
978
|
}
|
|
979
|
-
return (
|
|
979
|
+
return (t, d) => (g(), m("div", {
|
|
980
980
|
role: "group",
|
|
981
|
-
"aria-label":
|
|
982
|
-
class:
|
|
983
|
-
onClick:
|
|
981
|
+
"aria-label": b(r).mergeTag.fieldGroup,
|
|
982
|
+
class: _([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
|
|
983
|
+
onClick: l
|
|
984
984
|
}, [
|
|
985
|
-
(
|
|
985
|
+
(g(!0), m(y, null, s(e.segments, (e, t) => (g(), m(y, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && b(a)(e.value) ? (g(), m("button", {
|
|
986
986
|
key: 0,
|
|
987
987
|
type: "button",
|
|
988
|
-
class:
|
|
989
|
-
"data-tooltip":
|
|
990
|
-
"aria-label":
|
|
988
|
+
class: _(["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", b(o) ? "tpl-tooltip" : ""]),
|
|
989
|
+
"data-tooltip": b(o) ? e.value : void 0,
|
|
990
|
+
"aria-label": b(i)(b(r).mergeTag.changeTag, { label: e.label }),
|
|
991
991
|
"data-testid": "merge-tag-field-chip",
|
|
992
992
|
style: {
|
|
993
993
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
994
994
|
color: "var(--tpl-primary)"
|
|
995
995
|
},
|
|
996
|
-
onClick: w((e) =>
|
|
997
|
-
},
|
|
996
|
+
onClick: w((e) => n("repick", t), ["stop"])
|
|
997
|
+
}, c(e.label), 11, gt)) : e.type === "mergeTag" ? (g(), m("span", {
|
|
998
998
|
key: 1,
|
|
999
|
-
class:
|
|
1000
|
-
"data-tooltip":
|
|
999
|
+
class: _(["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", b(o) ? "tpl-tooltip" : ""]),
|
|
1000
|
+
"data-tooltip": b(o) ? e.value : void 0,
|
|
1001
1001
|
style: {
|
|
1002
1002
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
1003
1003
|
color: "var(--tpl-primary)"
|
|
1004
1004
|
}
|
|
1005
|
-
},
|
|
1005
|
+
}, c(e.label), 11, _t)) : e.type === "logicMergeTag" ? (g(), m("span", {
|
|
1006
1006
|
key: 2,
|
|
1007
1007
|
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",
|
|
1008
|
-
"data-tooltip":
|
|
1008
|
+
"data-tooltip": e.value,
|
|
1009
1009
|
style: {
|
|
1010
1010
|
"background-color": "transparent",
|
|
1011
1011
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
1012
1012
|
color: "var(--tpl-primary)"
|
|
1013
1013
|
}
|
|
1014
|
-
},
|
|
1015
|
-
|
|
1014
|
+
}, c(e.keyword), 9, vt)) : (g(), m("span", yt, c(e.value), 1))], 64))), 128)),
|
|
1015
|
+
v("button", {
|
|
1016
1016
|
type: "button",
|
|
1017
1017
|
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",
|
|
1018
|
-
"aria-label":
|
|
1019
|
-
title:
|
|
1018
|
+
"aria-label": b(r).mergeTag.editAsText,
|
|
1019
|
+
title: b(r).mergeTag.editAsText,
|
|
1020
1020
|
"data-testid": "merge-tag-field-edit",
|
|
1021
|
-
onClick: w(
|
|
1022
|
-
}, [
|
|
1021
|
+
onClick: w(l, ["stop"])
|
|
1022
|
+
}, [u(b(P), {
|
|
1023
1023
|
size: 12,
|
|
1024
1024
|
"stroke-width": 2
|
|
1025
1025
|
})], 8, bt),
|
|
1026
|
-
|
|
1026
|
+
v("button", {
|
|
1027
1027
|
type: "button",
|
|
1028
1028
|
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",
|
|
1029
|
-
"aria-label":
|
|
1030
|
-
title:
|
|
1029
|
+
"aria-label": b(r).mergeTag.remove,
|
|
1030
|
+
title: b(r).mergeTag.remove,
|
|
1031
1031
|
"data-testid": "merge-tag-field-clear",
|
|
1032
|
-
onClick:
|
|
1033
|
-
}, [
|
|
1032
|
+
onClick: d[0] ||= w((e) => n("clear"), ["stop"])
|
|
1033
|
+
}, [u(b(de), {
|
|
1034
1034
|
size: 12,
|
|
1035
1035
|
"stroke-width": 2.5
|
|
1036
1036
|
})], 8, xt)
|
|
@@ -1044,20 +1044,20 @@ var ht = ["aria-label"], gt = [
|
|
|
1044
1044
|
__name: "MergeTagInsertButton",
|
|
1045
1045
|
props: { disabled: { type: Boolean } },
|
|
1046
1046
|
emits: ["insert"],
|
|
1047
|
-
setup(
|
|
1048
|
-
let { t
|
|
1049
|
-
return (
|
|
1047
|
+
setup(e) {
|
|
1048
|
+
let { t } = j();
|
|
1049
|
+
return (n, r) => (g(), m("button", {
|
|
1050
1050
|
type: "button",
|
|
1051
|
-
class:
|
|
1052
|
-
"aria-label":
|
|
1053
|
-
title:
|
|
1054
|
-
disabled:
|
|
1055
|
-
onMousedown:
|
|
1056
|
-
onClick:
|
|
1057
|
-
}, [
|
|
1051
|
+
class: _([wt, "tpl:mt-1.5"]),
|
|
1052
|
+
"aria-label": b(t).mergeTag.insert,
|
|
1053
|
+
title: b(t).mergeTag.insert,
|
|
1054
|
+
disabled: e.disabled,
|
|
1055
|
+
onMousedown: r[0] ||= w(() => {}, ["prevent"]),
|
|
1056
|
+
onClick: r[1] ||= (e) => n.$emit("insert")
|
|
1057
|
+
}, [u(b(L), {
|
|
1058
1058
|
size: 12,
|
|
1059
1059
|
"stroke-width": 2
|
|
1060
|
-
}),
|
|
1060
|
+
}), h(" " + c(b(t).mergeTag.insertShort), 1)], 42, Ct));
|
|
1061
1061
|
}
|
|
1062
1062
|
}), Et = [
|
|
1063
1063
|
"aria-label",
|
|
@@ -1067,21 +1067,21 @@ var ht = ["aria-label"], gt = [
|
|
|
1067
1067
|
__name: "LogicTagInsertButton",
|
|
1068
1068
|
props: { disabled: { type: Boolean } },
|
|
1069
1069
|
emits: ["insert"],
|
|
1070
|
-
setup(
|
|
1071
|
-
let { t
|
|
1072
|
-
return (
|
|
1070
|
+
setup(e) {
|
|
1071
|
+
let { t } = j();
|
|
1072
|
+
return (n, r) => (g(), m("button", {
|
|
1073
1073
|
type: "button",
|
|
1074
|
-
class:
|
|
1075
|
-
"aria-label":
|
|
1076
|
-
title:
|
|
1077
|
-
disabled:
|
|
1074
|
+
class: _([Dt, "tpl:mt-1.5"]),
|
|
1075
|
+
"aria-label": b(t).logicTag.insert,
|
|
1076
|
+
title: b(t).logicTag.insert,
|
|
1077
|
+
disabled: e.disabled,
|
|
1078
1078
|
"data-testid": "field-insert-logic-button",
|
|
1079
|
-
onMousedown:
|
|
1080
|
-
onClick:
|
|
1081
|
-
}, [
|
|
1079
|
+
onMousedown: r[0] ||= w(() => {}, ["prevent"]),
|
|
1080
|
+
onClick: r[1] ||= (e) => n.$emit("insert")
|
|
1081
|
+
}, [u(b(pe), {
|
|
1082
1082
|
size: 12,
|
|
1083
1083
|
"stroke-width": 2
|
|
1084
|
-
}),
|
|
1084
|
+
}), h(" " + c(b(t).logicTag.insertShort), 1)], 42, Et));
|
|
1085
1085
|
}
|
|
1086
1086
|
});
|
|
1087
1087
|
export { ot as a, Ye as c, mt as i, L as l, Tt as n, it as o, St as r, at as s, Ot as t, pe as u };
|