@templatical/editor 0.23.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-Bru6-ziQ.js → AiChatSidebar-X4viKtvs.js} +14 -14
- package/dist/{AiFeatureMenu-CcqjRMFW.js → AiFeatureMenu-DDAamRaA.js} +7 -7
- package/dist/{BlockIssueBadge-Dmj9rVra.js → BlockIssueBadge-Qxrl7Ujl.js} +5 -5
- package/dist/BlockPreviewCanvas-Cf-kxbEr.js +117 -0
- package/dist/{CloudEditor-iK4vkpNm.js → CloudEditor-JIzhj1Xq.js} +134 -129
- package/dist/{CollaboratorBar-C_1SF7Xf.js → CollaboratorBar-tC7AACTb.js} +4 -4
- package/dist/{ColorPicker-s9GHXjZs.js → ColorPicker--_2PbzFk.js} +9 -11
- package/dist/{CommentsSidebar-DvNEdugN.js → CommentsSidebar-Ci2Ov8FG.js} +15 -15
- package/dist/{CountdownBlock-J_Q9JRQM.js → CountdownBlock-aZIKfBWY.js} +3 -3
- package/dist/{CountdownToolbar-DPRcv3Fu.js → CountdownToolbar-DHp6T0Q_.js} +4 -4
- package/dist/DesignReferenceSidebar-DQsC-3hB.js +264 -0
- package/dist/{IssuesPanel-CEnEGFtd.js → IssuesPanel-CoOfib44.js} +8 -8
- package/dist/{LoadingTrack-KIcREPlS.js → LoadingTrack-XK_eeUdq.js} +1 -1
- package/dist/MergeTagModeToggle-CiFiSV0C.js +180 -0
- package/dist/{MergeTagSuggestion-D9eCryMC.js → MergeTagSuggestion-D0OHRv7L.js} +9 -13
- package/dist/{NumberWithSuffix-CCPN_oCh.js → NumberWithSuffix-CXFbUqsx.js} +2 -2
- package/dist/{ParagraphEditor-MKJYyWN9.js → ParagraphEditor-Cy-bpEjI.js} +45 -45
- package/dist/{RichTextEditorContent-FbnWsh46.js → RichTextEditorContent-CYJko6id.js} +9 -9
- package/dist/{SaveBlockDialog-CFAJHP3v.js → SaveBlockDialog-CNTSaMEa.js} +11 -11
- package/dist/{SavedBlocksBrowserModal-C_-Xcm0Q.js → SavedBlocksBrowserModal-CvxS5-YX.js} +11 -11
- package/dist/{SavedBlocksPanels-CRf7zzFn.js → SavedBlocksPanels-CNdUxS89.js} +2 -2
- package/dist/{SavedBlocksPickBar-C1FTJP-I.js → SavedBlocksPickBar-BvXKhblL.js} +4 -4
- package/dist/{SnapshotHistory-DWlQ3Eh0.js → SnapshotHistory-BqPSIV9L.js} +10 -10
- package/dist/{TemplateScoringPanel-ifGGGWs5.js → TemplateScoringPanel-CMEuz9yF.js} +15 -15
- package/dist/{TestEmailModal-D90-3Yex.js → TestEmailModal-BDhnnCBx.js} +71 -59
- package/dist/{TestEmailPanel-B0u_Yd3X.js → TestEmailPanel--RwnwLn2.js} +2 -2
- package/dist/{TitleEditor-DzsPxKv4.js → TitleEditor-F7E_pU9H.js} +13 -13
- package/dist/TplModal-BIiS24Of.js +49 -0
- package/dist/{blockTypeIcons-CpKkI47V.js → blockTypeIcons-C6PnLMp7.js} +26 -26
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-D47BxSGu.js → ca-CO4nq6TX.js} +8 -1
- package/dist/cdn/chunks/{AiChatSidebar-BMnsF8G6.js → AiChatSidebar-UbF3ePzR.js} +15 -15
- package/dist/cdn/chunks/{AiChatSidebar-BMnsF8G6.js.map → AiChatSidebar-UbF3ePzR.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js → AiFeatureMenu-OIwoJzHG.js} +9 -9
- package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js.map → AiFeatureMenu-OIwoJzHG.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js → BlockIssueBadge-Bd2EuT1C.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js.map → BlockIssueBadge-Bd2EuT1C.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-C-ut8GkJ.js +119 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-C-ut8GkJ.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-S8zLHtKb.js → CloudEditor-D87qsqbZ.js} +133 -128
- package/dist/cdn/chunks/CloudEditor-D87qsqbZ.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js → CollaboratorBar-Br4RvNrA.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js.map → CollaboratorBar-Br4RvNrA.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js → ColorPicker-B-ymPPtU.js} +10 -12
- package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js.map → ColorPicker-B-ymPPtU.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js → CommentsSidebar-Tv_WTcJv.js} +19 -19
- package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js.map → CommentsSidebar-Tv_WTcJv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js → CountdownBlock-cEcXSK91.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js.map → CountdownBlock-cEcXSK91.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js → CountdownToolbar-CLp3_ebk.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js.map → CountdownToolbar-CLp3_ebk.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-CM-k15pd.js → DesignReferenceSidebar-YeqxSsxO.js} +33 -33
- package/dist/cdn/chunks/{DesignReferenceSidebar-CM-k15pd.js.map → DesignReferenceSidebar-YeqxSsxO.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-D80JedOj.js → IssuesPanel-BhsvC3XQ.js} +10 -10
- package/dist/cdn/chunks/{IssuesPanel-D80JedOj.js.map → IssuesPanel-BhsvC3XQ.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-D-CW2tUa.js → LoadingTrack-G2tuXqCJ.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-D-CW2tUa.js.map → LoadingTrack-G2tuXqCJ.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagModeToggle-DrdxQA0K.js +127 -0
- package/dist/cdn/chunks/MergeTagModeToggle-DrdxQA0K.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js → MergeTagSuggestion-Ces5Ua78.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js.map → MergeTagSuggestion-Ces5Ua78.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js → NumberWithSuffix-BK_Xh4w4.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js.map → NumberWithSuffix-BK_Xh4w4.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js → ParagraphEditor-DKz4vTWB.js} +128 -128
- package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js.map → ParagraphEditor-DKz4vTWB.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js → RichTextEditorContent-CJ2WVicQ.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js.map → RichTextEditorContent-CJ2WVicQ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Bi_Z3kuA.js → SaveBlockDialog-DTemkKPX.js} +9 -9
- package/dist/cdn/chunks/{SaveBlockDialog-Bi_Z3kuA.js.map → SaveBlockDialog-DTemkKPX.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CesYxFsH.js → SavedBlocksBrowserModal-DbMaIbeH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CesYxFsH.js.map → SavedBlocksBrowserModal-DbMaIbeH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BsSpJwrW.js → SavedBlocksPanels-CUffuDAC.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BsSpJwrW.js.map → SavedBlocksPanels-CUffuDAC.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js → SavedBlocksPickBar-D7SmNz2n.js} +7 -7
- package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js.map → SavedBlocksPickBar-D7SmNz2n.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js → SnapshotHistory-m5Z8bTej.js} +10 -10
- package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js.map → SnapshotHistory-m5Z8bTej.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js → TemplateScoringPanel-DgRU5fty.js} +53 -53
- package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js.map → TemplateScoringPanel-DgRU5fty.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailModal-Ce8-vzGh.js +174 -0
- package/dist/cdn/chunks/TestEmailModal-Ce8-vzGh.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-048m0kxX.js → TestEmailPanel-BlmIKKSL.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-048m0kxX.js.map → TestEmailPanel-BlmIKKSL.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.js → TitleEditor-C6_bQxYR.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.js.map → TitleEditor-C6_bQxYR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-D6bFON2K.js +50 -0
- package/dist/cdn/chunks/TplModal-D6bFON2K.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-B8s3_ahs.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-etMMQoVv.js.map → blockTypeIcons-B8s3_ahs.js.map} +1 -1
- package/dist/cdn/chunks/{ca-D47BxSGu.js → ca-CO4nq6TX.js} +9 -2
- package/dist/cdn/chunks/{ca-D47BxSGu.js.map → ca-CO4nq6TX.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-F-aVi9hj.js → cloud-CRlDc0Ev.js} +13 -17
- package/dist/cdn/chunks/{cloud-F-aVi9hj.js.map → cloud-CRlDc0Ev.js.map} +1 -1
- package/dist/{de-CnnxBwh7.js → cdn/chunks/de-CUeaFJph.js} +10 -1
- package/dist/cdn/chunks/{de-CnnxBwh7.js.map → de-CUeaFJph.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CxTt8FRE.js → dist-B8AX9np4.js} +16 -12
- package/dist/cdn/chunks/dist-B8AX9np4.js.map +1 -0
- package/dist/cdn/chunks/{dist-CiBEt0VR.js → dist-lZgXNk4G.js} +36 -20
- package/dist/cdn/chunks/dist-lZgXNk4G.js.map +1 -0
- package/dist/cdn/chunks/{draggable-D840DIZB.js → draggable-JcMTNF3U.js} +14 -15
- package/dist/cdn/chunks/{draggable-D840DIZB.js.map → draggable-JcMTNF3U.js.map} +1 -1
- package/dist/{en-5gW-bYy2.js → cdn/chunks/en-zCYIPAL5.js} +10 -1
- package/dist/cdn/chunks/{en-5gW-bYy2.js.map → en-zCYIPAL5.js.map} +1 -1
- package/dist/cdn/chunks/{es-sQ9SdI0l.js → es-BSiH7YkP.js} +9 -2
- package/dist/cdn/chunks/{es-sQ9SdI0l.js.map → es-BSiH7YkP.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-C49c51P1.js → extensions-CKMD_er_.js} +25 -21
- package/dist/cdn/chunks/{extensions-C49c51P1.js.map → extensions-CKMD_er_.js.map} +1 -1
- package/dist/{fr-DBZ5w21C.js → cdn/chunks/fr-DTVJ3det.js} +10 -1
- package/dist/cdn/chunks/fr-DTVJ3det.js.map +1 -0
- package/dist/cdn/chunks/{htmlparser-CZa2V5cF.js → htmlparser-CPhs2cYE.js} +3 -5
- package/dist/cdn/chunks/{htmlparser-CZa2V5cF.js.map → htmlparser-CPhs2cYE.js.map} +1 -1
- package/dist/cdn/chunks/{icons-CYWw8Xfp.js → icons-Cp4ZIJw-.js} +65 -44
- package/dist/cdn/chunks/icons-Cp4ZIJw-.js.map +1 -0
- package/dist/cdn/chunks/keys-CswSK7eb.js +12 -0
- package/dist/cdn/chunks/keys-CswSK7eb.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-BJOEu6Cg.js → liquid.browser-CZaQe87t.js} +756 -718
- package/dist/cdn/chunks/liquid.browser-CZaQe87t.js.map +1 -0
- package/dist/cdn/chunks/{nl-DOL7Fnfo.js → nl-BqSquFS3.js} +9 -2
- package/dist/cdn/chunks/nl-BqSquFS3.js.map +1 -0
- package/dist/{pt-BR-DRCdHX1d.js → cdn/chunks/pt-BR-CMljK37h.js} +10 -1
- package/dist/cdn/chunks/{pt-BR-DRCdHX1d.js.map → pt-BR-CMljK37h.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-R0v5p99W.js → pusher-kUlkqMvR.js} +21 -28
- package/dist/cdn/chunks/{pusher-R0v5p99W.js.map → pusher-kUlkqMvR.js.map} +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/cdn/chunks/{src-SluTVSz_.js → src-B3HKHglu.js} +19 -23
- package/dist/cdn/chunks/{src-SluTVSz_.js.map → src-B3HKHglu.js.map} +1 -1
- package/dist/cdn/chunks/{src-CM0gCvAS.js → src-B4UhYbI8.js} +253 -253
- package/dist/cdn/chunks/{src-CM0gCvAS.js.map → src-B4UhYbI8.js.map} +1 -1
- package/dist/cdn/chunks/{src-CzoMNRq4.js → src-CumZZNXZ.js} +542 -806
- package/dist/cdn/chunks/{src-CzoMNRq4.js.map → src-CumZZNXZ.js.map} +1 -1
- package/dist/cdn/chunks/{src-BKI1x1k7.js → src-D5mfLR4V.js} +183 -165
- package/dist/cdn/chunks/{src-BKI1x1k7.js.map → src-D5mfLR4V.js.map} +1 -1
- package/dist/cdn/chunks/{styles-BbfU2w9R.js → styles--m9OCb_Z.js} +730 -723
- package/dist/cdn/chunks/styles--m9OCb_Z.js.map +1 -0
- package/dist/cdn/chunks/timeouts-SsLMC4a3.js +6 -0
- package/dist/cdn/chunks/{timeouts-Bmi_yePw.js.map → timeouts-SsLMC4a3.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DUTbZTeR.js → tiptap-rsib432n.js} +136 -123
- package/dist/cdn/chunks/tiptap-rsib432n.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-aanU8uqB.js → useAliveFlag-CseYNikC.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-aanU8uqB.js.map → useAliveFlag-CseYNikC.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js → useCloudI18n-sx1pqEbY.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js.map → useCloudI18n-sx1pqEbY.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CzMhD6Gd.js → useEditorCore-ZqF7P99K.js} +457 -435
- package/dist/cdn/chunks/useEditorCore-ZqF7P99K.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js → useI18n-vD57BfVR.js} +3 -3
- package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js.map → useI18n-vD57BfVR.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js → useMergeTag-HatzNGgc.js} +5 -5
- package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js.map → useMergeTag-HatzNGgc.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js → usePopoverPosition-BdQ3Sv4B.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js.map → usePopoverPosition-BdQ3Sv4B.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +144 -139
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BpQDKiPz.js → check-CIhIDh4h.js} +1 -1
- package/dist/{chevron-down-j8GrdTyz.js → chevron-down-CZ0m6G3s.js} +1 -1
- package/dist/{chevron-up-BACyVhyC.js → chevron-up-BH_tJLeb.js} +1 -1
- package/dist/{circle-alert-CgtE46ND.js → circle-alert-DkEXnGPV.js} +1 -1
- package/dist/{clock-BzKLLW5L.js → clock-BDIJZUET.js} +1 -1
- package/dist/{cloud-CeZPgo1V.js → cloud-R8ci6yR1.js} +10 -14
- package/dist/{createLucideIcon-JWHwTI6N.js → createLucideIcon-AEltGIse.js} +3 -3
- package/dist/{cdn/chunks/de-CnnxBwh7.js → de-CUeaFJph.js} +8 -3
- package/dist/{dist-3DHaYEiT.js → dist-B6Px6GPj.js} +2 -2
- package/dist/{dist-BJbqgyPn.js → dist-Ba5Q-UX1.js} +106 -88
- package/dist/{dist-CL_CfQ3Q.js → dist-BxbTVeY0.js} +2 -2
- package/dist/{dist-DOtLGnLr.js → dist-CIqhVQ1O.js} +6 -6
- package/dist/{dist-CclnU_v0.js → dist-CRH880TV.js} +2 -2
- package/dist/{dist-3HenmYIg.js → dist-CcQFPJMF.js} +117 -101
- package/dist/dist-CkPvZCld.js +5 -0
- package/dist/{dist-BCnJcAQc.js → dist-DSIgxp0v.js} +2 -2
- package/dist/{dist-DYv_Pttj.js → dist-DT1XnEnj.js} +33 -17
- package/dist/{dist-Ih7ejWzn.js → dist-DX4x6mQ1.js} +4 -4
- package/dist/{dist-B_etKYyh.js → dist-Dx71pluS.js} +18 -13
- package/dist/{dist-bivrM-nS.js → dist-DyCHUyRR.js} +2 -2
- package/dist/dist-iCEDH3cC.js +5 -0
- package/dist/{dist-DKWoZJAV.js → dist-nR6mxyqI.js} +2 -2
- package/dist/{cdn/chunks/en-5gW-bYy2.js → en-zCYIPAL5.js} +8 -3
- package/dist/{es-sQ9SdI0l.js → es-BSiH7YkP.js} +8 -1
- package/dist/{extensions-3870a_3R.js → extensions-CGxj6-2o.js} +23 -19
- package/dist/{cdn/chunks/fr-DBZ5w21C.js → fr-DTVJ3det.js} +8 -3
- package/dist/{image-up-CQdtq8ge.js → image-up-8ktdYdaZ.js} +1 -1
- package/dist/{info-BUJBXoE6.js → info-CvrCgTLH.js} +1 -1
- package/dist/keys-uWpGv4Pq.js +10 -0
- package/dist/{liquid.browser-DZLtv26k.js → liquid.browser-BECWFL5Z.js} +755 -717
- package/dist/{list-checks-BGHaCSD5.js → list-checks-yzGT93ZL.js} +1 -1
- package/dist/{loader-circle-C-Z6kgI6.js → loader-circle-B6euendB.js} +1 -1
- package/dist/{message-circle-CEm5qckV.js → message-circle-BMldLVcA.js} +1 -1
- package/dist/{nl-DOL7Fnfo.js → nl-BqSquFS3.js} +8 -1
- package/dist/{pencil-DdwmkKLb.js → pencil-CkKkSd6N.js} +1 -1
- package/dist/{cdn/chunks/pt-BR-DRCdHX1d.js → pt-BR-CMljK37h.js} +8 -3
- package/dist/{refresh-cw-maKlg0dl.js → refresh-cw-fBPgB97G.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-GdMI8WqG.js → runtime-dom.esm-bundler-CBbDt7sw.js} +2 -2
- package/dist/{scan-line-BFgesTOY.js → scan-line-CRoEOUiK.js} +1 -1
- package/dist/{send-B70aQDrA.js → send-B9Tt2qBi.js} +1 -1
- package/dist/{shield-check-B7x5OKt5.js → shield-check-QfZkYeIo.js} +1 -1
- package/dist/{sparkles-DVlm1Ipp.js → sparkles-8UeMmZb8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-BWTIgN5L.js → styles-C9AMvkJk.js} +884 -877
- package/dist/templatical-editor.js +96 -91
- package/dist/{text-align-start-Vay3Kvo2.js → text-align-start-Dn8uIheW.js} +1 -1
- package/dist/{trash-2-DE8CmxAG.js → trash-2-DDyvqj0E.js} +1 -1
- package/dist/{triangle-alert-Djg6IG8N.js → triangle-alert-B3PydLzl.js} +1 -1
- package/dist/{upload-BwwE0U6G.js → upload-hE8ItfyG.js} +2 -2
- package/dist/{useAliveFlag-C43EhZFY.js → useAliveFlag-AfoTE_AY.js} +1 -1
- package/dist/{useCloudI18n-BmiygEM4.js → useCloudI18n-BC_QV2Z7.js} +2 -2
- package/dist/{useEditorCore-CuMMIfiS.js → useEditorCore-Dojb-P2f.js} +941 -921
- package/dist/{useI18n-D2L9Mkik.js → useI18n-DzOcl2wl.js} +2 -2
- package/dist/{useMergeTag-BTdDq5DC.js → useMergeTag-BFxXCv3p.js} +4 -4
- package/dist/{usePopoverPosition-BO2LNy5n.js → usePopoverPosition-Dtr1Mp1x.js} +13 -13
- package/dist/{vue.runtime.esm-bundler-B0xoGkDv.js → vue.runtime.esm-bundler-Xpz-L9Fn.js} +27 -22
- package/dist/{x-CkD6A1iB.js → x-C4lETLDx.js} +1 -1
- package/package.json +25 -25
- package/dist/BlockPreviewCanvas-MD9BGuXV.js +0 -115
- package/dist/DesignReferenceSidebar-BxPo0zyx.js +0 -264
- package/dist/TplModal-CykwWFhF.js +0 -49
- package/dist/ViewportToggle-BjmbNoao.js +0 -97
- package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js +0 -117
- package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-S8zLHtKb.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js +0 -162
- package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BN53d9Se.js +0 -50
- package/dist/cdn/chunks/TplModal-BN53d9Se.js.map +0 -1
- package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js +0 -66
- package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-etMMQoVv.js +0 -21
- package/dist/cdn/chunks/dist-CiBEt0VR.js.map +0 -1
- package/dist/cdn/chunks/dist-CxTt8FRE.js.map +0 -1
- package/dist/cdn/chunks/fr-DBZ5w21C.js.map +0 -1
- package/dist/cdn/chunks/icons-CYWw8Xfp.js.map +0 -1
- package/dist/cdn/chunks/keys-D7kUmfpE.js +0 -12
- package/dist/cdn/chunks/keys-D7kUmfpE.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +0 -1
- package/dist/cdn/chunks/nl-DOL7Fnfo.js.map +0 -1
- package/dist/cdn/chunks/styles-BbfU2w9R.js.map +0 -1
- package/dist/cdn/chunks/timeouts-Bmi_yePw.js +0 -6
- package/dist/cdn/chunks/tiptap-DUTbZTeR.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CzMhD6Gd.js.map +0 -1
- package/dist/dist-CcQLJeWV.js +0 -5
- package/dist/dist-DerdmERj.js +0 -5
- package/dist/keys-CHPcp-Nz.js +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { t as f } from "./createLucideIcon-
|
|
4
|
-
import { n as p } from "./useCloudI18n-
|
|
1
|
+
import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
|
+
import "./useEditorCore-Dojb-P2f.js";
|
|
3
|
+
import { t as f } from "./createLucideIcon-AEltGIse.js";
|
|
4
|
+
import { n as p } from "./useCloudI18n-BC_QV2Z7.js";
|
|
5
5
|
import { t as m } from "./readableTextColor-f8Kykfnh.js";
|
|
6
6
|
var h = f("wifi-off", [
|
|
7
7
|
["path", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as e, Dt as t, Et as n, O as r, R as i, Y as a, _ as o, c as s, d as c, h as l, i as ee, l as te, nt as u, r as ne, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { c as re, s as m, t as ie } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { a as ae, i as oe, n as se, r as h, s as ce, t as le } from "./usePopoverPosition-
|
|
4
|
-
import {
|
|
5
|
-
import { t as pe } from "./useI18n-
|
|
6
|
-
import { t as g } from "./x-
|
|
1
|
+
import { A as e, Dt as t, Et as n, O as r, R as i, Y as a, _ as o, c as s, d as c, h as l, i as ee, l as te, nt as u, r as ne, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
|
+
import { c as re, s as m, t as ie } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
|
|
3
|
+
import { a as ae, i as oe, n as se, r as h, s as ce, t as le } from "./usePopoverPosition-Dtr1Mp1x.js";
|
|
4
|
+
import { B as ue, R as de, l as fe } from "./keys-uWpGv4Pq.js";
|
|
5
|
+
import { t as pe } from "./useI18n-DzOcl2wl.js";
|
|
6
|
+
import { t as g } from "./x-C4lETLDx.js";
|
|
7
7
|
//#region src/constants/styleConstants.ts
|
|
8
8
|
var me = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]", _ = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", v = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-l-[var(--tpl-radius-sm)] tpl:rounded-r-none tpl:border-r-0 tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", y = "tpl:flex tpl:items-center tpl:px-2.5 tpl:text-xs tpl:border tpl:border-l-0 tpl:text-[var(--tpl-text-dim)] tpl:bg-[var(--tpl-bg-hover)] tpl:border-[var(--tpl-border)] tpl:rounded-r-[var(--tpl-radius-sm)]", b = "tpl:flex-1 tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-mono tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", x = "tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:border tpl:border-[var(--tpl-border)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)]", S = "tpl:flex tpl:size-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]", C = "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]", w = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-150 tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", T = "tpl-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3.5 tpl:py-2 tpl:text-sm tpl:font-medium tpl:whitespace-nowrap tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary)] hover:tpl:text-[var(--tpl-bg)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", E = [
|
|
9
9
|
"10px",
|
|
@@ -173,9 +173,7 @@ var P = (e) => V(F(e)), F = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
|
|
|
173
173
|
case "touchend":
|
|
174
174
|
this.dragging = !1;
|
|
175
175
|
break;
|
|
176
|
-
case "keydown":
|
|
177
|
-
_e(this, e);
|
|
178
|
-
break;
|
|
176
|
+
case "keydown": _e(this, e);
|
|
179
177
|
}
|
|
180
178
|
}
|
|
181
179
|
style(e) {
|
|
@@ -355,7 +353,7 @@ var Me = [
|
|
|
355
353
|
ce(S, () => {
|
|
356
354
|
x.value = !1;
|
|
357
355
|
}, { ignore: [C] });
|
|
358
|
-
let T = d(() => !_.modelValue), E = d(() => oe(_.modelValue)), D = d(() => oe(_.modelValue || _.seedColor)), O = d(() => !_.disabled && !T.value), k = p(
|
|
356
|
+
let T = d(() => !_.modelValue), E = d(() => oe(_.modelValue)), D = d(() => oe(_.modelValue || _.seedColor)), O = d(() => !_.disabled && !T.value), k = p(fe, ae), A = d(() => [...new Set(_.presets ?? k.presets)]), he = d(() => _.allowCustom ?? k.allowCustom), j = d(() => A.value.length > 0), M = d(() => he.value || !j.value), N = d(() => h(_.modelValue));
|
|
359
357
|
function P(e) {
|
|
360
358
|
return N.value !== "" && h(e) === N.value;
|
|
361
359
|
}
|
|
@@ -402,7 +400,7 @@ var Me = [
|
|
|
402
400
|
function G() {
|
|
403
401
|
v("update:modelValue", "");
|
|
404
402
|
}
|
|
405
|
-
let K = se(), { toLocal: q } = le(), J = p(
|
|
403
|
+
let K = se(), { toLocal: q } = le(), J = p(de, null), Y = p(ue, null), X = a({
|
|
406
404
|
top: 0,
|
|
407
405
|
left: 0
|
|
408
406
|
});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as ee, nt as p, r as m, s as h, u as g, w as te, z as _ } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as v, t as y } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { t as ae } from "./useI18n-
|
|
5
|
-
import { t as x } from "./createLucideIcon-
|
|
6
|
-
import { t as oe } from "./check-
|
|
7
|
-
import { t as se } from "./chevron-down-
|
|
8
|
-
import { t as ce } from "./chevron-up-
|
|
9
|
-
import { t as S } from "./loader-circle-
|
|
10
|
-
import { t as C } from "./message-circle-
|
|
11
|
-
import { t as w } from "./pencil-
|
|
12
|
-
import { t as T } from "./send-
|
|
13
|
-
import { t as E } from "./trash-2-
|
|
14
|
-
import { t as D } from "./x-
|
|
1
|
+
import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as ee, nt as p, r as m, s as h, u as g, w as te, z as _ } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
|
+
import { a as v, t as y } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
|
|
3
|
+
import { H as b, h as ne, r as re, u as ie } from "./keys-uWpGv4Pq.js";
|
|
4
|
+
import { t as ae } from "./useI18n-DzOcl2wl.js";
|
|
5
|
+
import { t as x } from "./createLucideIcon-AEltGIse.js";
|
|
6
|
+
import { t as oe } from "./check-CIhIDh4h.js";
|
|
7
|
+
import { t as se } from "./chevron-down-CZ0m6G3s.js";
|
|
8
|
+
import { t as ce } from "./chevron-up-BH_tJLeb.js";
|
|
9
|
+
import { t as S } from "./loader-circle-B6euendB.js";
|
|
10
|
+
import { t as C } from "./message-circle-BMldLVcA.js";
|
|
11
|
+
import { t as w } from "./pencil-CkKkSd6N.js";
|
|
12
|
+
import { t as T } from "./send-B9Tt2qBi.js";
|
|
13
|
+
import { t as E } from "./trash-2-DDyvqj0E.js";
|
|
14
|
+
import { t as D } from "./x-C4lETLDx.js";
|
|
15
15
|
import { t as le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
-
import { n as ue } from "./useCloudI18n-
|
|
16
|
+
import { n as ue } from "./useCloudI18n-BC_QV2Z7.js";
|
|
17
17
|
import { t as de } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
18
18
|
var fe = x("circle-check", [["circle", {
|
|
19
19
|
cx: "12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, Dt as t, O as n, Ot as r, Y as i, _ as a, c as o, d as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { p as f } from "./dist-
|
|
3
|
-
import { t as p } from "./useI18n-
|
|
1
|
+
import { A as e, Dt as t, O as n, Ot as r, Y as i, _ as a, c as o, d as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
|
+
import { p as f } from "./dist-DT1XnEnj.js";
|
|
3
|
+
import { t as p } from "./useI18n-DzOcl2wl.js";
|
|
4
4
|
//#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var m = {
|
|
6
6
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as e, Et as t, O as n, Ot as r, R as i, _ as a, c as o, d as s, h as c, l, nt as u, r as d, s as f } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { t as p } from "./useI18n-
|
|
3
|
-
import { f as m, t as h } from "./ColorPicker
|
|
4
|
-
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-
|
|
1
|
+
import { A as e, Et as t, O as n, Ot as r, R as i, _ as a, c as o, d as s, h as c, l, nt as u, r as d, s as f } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
|
+
import { t as p } from "./useI18n-DzOcl2wl.js";
|
|
3
|
+
import { f as m, t as h } from "./ColorPicker--_2PbzFk.js";
|
|
4
|
+
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-CXFbUqsx.js";
|
|
5
5
|
//#region src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var b = ["value"], x = ["value"], S = ["value"], C = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, w = ["value"], T = { value: "" }, E = ["value"], D = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, O = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, k = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, A = [
|
|
7
7
|
"value",
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { Dt as e, Et as t, I as n, O as r, Ot as i, R as ee, T as a, Y as o, _ as s, c, d as l, h as u, l as te, m as d, nt as f, s as ne, u as p, z as re } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
|
+
import { a as ie, t as ae } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
|
|
3
|
+
import { t as oe } from "./upload-hE8ItfyG.js";
|
|
4
|
+
import { H as m, h as se, r as ce } from "./keys-uWpGv4Pq.js";
|
|
5
|
+
import { t as h } from "./createLucideIcon-AEltGIse.js";
|
|
6
|
+
import { t as le } from "./circle-alert-DkEXnGPV.js";
|
|
7
|
+
import { t as g } from "./image-up-8ktdYdaZ.js";
|
|
8
|
+
import { t as _ } from "./x-C4lETLDx.js";
|
|
9
|
+
import { t as ue } from "./LoadingTrack-XK_eeUdq.js";
|
|
10
|
+
import { t as v } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
+
import { n as de } from "./useCloudI18n-BC_QV2Z7.js";
|
|
12
|
+
import { f as fe } from "./cloud-R8ci6yR1.js";
|
|
13
|
+
var pe = h("file-image", [
|
|
14
|
+
["path", {
|
|
15
|
+
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
16
|
+
key: "1oefj6"
|
|
17
|
+
}],
|
|
18
|
+
["path", {
|
|
19
|
+
d: "M14 2v5a1 1 0 0 0 1 1h5",
|
|
20
|
+
key: "wfsgrz"
|
|
21
|
+
}],
|
|
22
|
+
["circle", {
|
|
23
|
+
cx: "10",
|
|
24
|
+
cy: "12",
|
|
25
|
+
r: "2",
|
|
26
|
+
key: "737tya"
|
|
27
|
+
}],
|
|
28
|
+
["path", {
|
|
29
|
+
d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",
|
|
30
|
+
key: "wt3hpn"
|
|
31
|
+
}]
|
|
32
|
+
]), y = h("file-text", [
|
|
33
|
+
["path", {
|
|
34
|
+
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
35
|
+
key: "1oefj6"
|
|
36
|
+
}],
|
|
37
|
+
["path", {
|
|
38
|
+
d: "M14 2v5a1 1 0 0 0 1 1h5",
|
|
39
|
+
key: "wfsgrz"
|
|
40
|
+
}],
|
|
41
|
+
["path", {
|
|
42
|
+
d: "M10 9H8",
|
|
43
|
+
key: "b1mrlr"
|
|
44
|
+
}],
|
|
45
|
+
["path", {
|
|
46
|
+
d: "M16 13H8",
|
|
47
|
+
key: "t4e002"
|
|
48
|
+
}],
|
|
49
|
+
["path", {
|
|
50
|
+
d: "M16 17H8",
|
|
51
|
+
key: "z1uh3a"
|
|
52
|
+
}]
|
|
53
|
+
]), me = {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "tpl-design-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
56
|
+
}, he = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, ge = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, b = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, x = {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
59
|
+
}, S = { class: "tpl:flex tpl:w-full tpl:flex-col tpl:items-center tpl:gap-3" }, C = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, w = {
|
|
60
|
+
key: 1,
|
|
61
|
+
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
62
|
+
}, T = { class: "tpl:flex tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, E = {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
65
|
+
}, D = { class: "tpl:relative tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, O = ["src", "alt"], k = {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: "tpl:flex tpl:h-32 tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2"
|
|
68
|
+
}, A = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, j = { class: "tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, M = { class: "tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, N = ["accept"], P = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, F = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, I = ["placeholder"], L = {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:px-3 tpl:py-3 tpl:bg-[var(--tpl-warning-light)] tpl:border tpl:border-[var(--tpl-warning)]"
|
|
71
|
+
}, _e = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, ve = { class: "tpl:flex tpl:gap-2" }, ye = {
|
|
72
|
+
key: 1,
|
|
73
|
+
class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
74
|
+
}, be = ["disabled"], xe = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, R = /*#__PURE__*/ v(/* @__PURE__ */ s({
|
|
75
|
+
__name: "DesignReferenceSidebar",
|
|
76
|
+
props: {
|
|
77
|
+
visible: { type: Boolean },
|
|
78
|
+
hasExistingBlocks: { type: Boolean }
|
|
79
|
+
},
|
|
80
|
+
emits: ["close", "apply"],
|
|
81
|
+
setup(s, { emit: h }) {
|
|
82
|
+
let v = s, R = h, { t: z } = de(), Se = m(se, "DesignReferenceSidebar"), Ce = m(ce, "DesignReferenceSidebar"), B = fe({
|
|
83
|
+
authManager: Ce,
|
|
84
|
+
getTemplateId: () => Se.state.template?.id ?? null,
|
|
85
|
+
onApply: (e) => R("apply", e)
|
|
86
|
+
}), V = o(null), H = o("image"), U = o(null), W = o(""), G = o(null), K = o(!1), q = o(!1), J = ne(() => !B.isGenerating.value && U.value !== null);
|
|
87
|
+
function Y(e) {
|
|
88
|
+
H.value = e, Z();
|
|
89
|
+
}
|
|
90
|
+
function we(e) {
|
|
91
|
+
let t = e.target, n = t.files?.[0];
|
|
92
|
+
n && X(n), t.value = "";
|
|
93
|
+
}
|
|
94
|
+
function X(e) {
|
|
95
|
+
if (e.size > 10485760) {
|
|
96
|
+
B.error.value = z.designReference.fileTooLarge;
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (H.value === "image") {
|
|
100
|
+
if (![
|
|
101
|
+
"image/png",
|
|
102
|
+
"image/jpeg",
|
|
103
|
+
"image/jpg",
|
|
104
|
+
"image/webp"
|
|
105
|
+
].includes(e.type)) {
|
|
106
|
+
B.error.value = z.designReference.invalidFileType;
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
} else if (H.value === "pdf" && e.type !== "application/pdf") {
|
|
110
|
+
B.error.value = z.designReference.invalidFileType;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
U.value = e, B.error.value = null, G.value && URL.revokeObjectURL(G.value), e.type.startsWith("image/") ? G.value = URL.createObjectURL(e) : G.value = null;
|
|
114
|
+
}
|
|
115
|
+
function Z() {
|
|
116
|
+
G.value &&= (URL.revokeObjectURL(G.value), null), U.value = null;
|
|
117
|
+
}
|
|
118
|
+
function Q(e) {
|
|
119
|
+
e.preventDefault(), q.value = !0;
|
|
120
|
+
}
|
|
121
|
+
function Te() {
|
|
122
|
+
q.value = !1;
|
|
123
|
+
}
|
|
124
|
+
function Ee(e) {
|
|
125
|
+
e.preventDefault(), q.value = !1;
|
|
126
|
+
let t = e.dataTransfer?.files?.[0];
|
|
127
|
+
t && X(t);
|
|
128
|
+
}
|
|
129
|
+
function $() {
|
|
130
|
+
if (!J.value) return;
|
|
131
|
+
if (v.hasExistingBlocks && !K.value) {
|
|
132
|
+
K.value = !0;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
K.value = !1;
|
|
136
|
+
let e = {};
|
|
137
|
+
W.value.trim() && (e.prompt = W.value.trim()), H.value === "image" && U.value ? e.imageUpload = U.value : H.value === "pdf" && U.value && (e.pdfUpload = U.value), B.generate(e);
|
|
138
|
+
}
|
|
139
|
+
function De() {
|
|
140
|
+
K.value = !1;
|
|
141
|
+
}
|
|
142
|
+
return n(() => v.visible, (e) => {
|
|
143
|
+
e || (K.value = !1);
|
|
144
|
+
}), a(() => {
|
|
145
|
+
G.value &&= (URL.revokeObjectURL(G.value), null);
|
|
146
|
+
}), (n, a) => (r(), te(ae, {
|
|
147
|
+
"enter-active-class": "tpl-design-slide-enter-active",
|
|
148
|
+
"enter-from-class": "tpl:translate-x-full",
|
|
149
|
+
"enter-to-class": "tpl:translate-x-0",
|
|
150
|
+
"leave-active-class": "tpl-design-slide-leave-active",
|
|
151
|
+
"leave-from-class": "tpl:translate-x-0",
|
|
152
|
+
"leave-to-class": "tpl:translate-x-full"
|
|
153
|
+
}, {
|
|
154
|
+
default: ee(() => [s.visible ? (r(), l("div", me, [c("div", he, [c("div", ge, [u(f(g), {
|
|
155
|
+
size: 13,
|
|
156
|
+
"stroke-width": 2
|
|
157
|
+
}), c("span", null, i(f(z).designReference.title), 1)]), c("button", {
|
|
158
|
+
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
159
|
+
onClick: a[0] ||= (e) => R("close")
|
|
160
|
+
}, [u(f(_), {
|
|
161
|
+
size: 14,
|
|
162
|
+
"stroke-width": 2
|
|
163
|
+
})])]), c("div", b, [f(B).isGenerating.value ? (r(), l("div", x, [c("div", S, [u(ue), c("p", C, i(f(z).designReference.generating), 1)])])) : (r(), l("div", w, [
|
|
164
|
+
c("div", T, [c("button", {
|
|
165
|
+
class: "tpl:flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
166
|
+
style: e({
|
|
167
|
+
backgroundColor: H.value === "image" ? "var(--tpl-bg)" : "transparent",
|
|
168
|
+
color: H.value === "image" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
169
|
+
boxShadow: H.value === "image" ? "var(--tpl-shadow)" : "none"
|
|
170
|
+
}),
|
|
171
|
+
onClick: a[1] ||= (e) => Y("image")
|
|
172
|
+
}, [u(f(pe), {
|
|
173
|
+
size: 12,
|
|
174
|
+
"stroke-width": 2
|
|
175
|
+
}), d(" " + i(f(z).designReference.uploadImage), 1)], 4), c("button", {
|
|
176
|
+
class: "tpl:flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
177
|
+
style: e({
|
|
178
|
+
backgroundColor: H.value === "pdf" ? "var(--tpl-bg)" : "transparent",
|
|
179
|
+
color: H.value === "pdf" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
180
|
+
boxShadow: H.value === "pdf" ? "var(--tpl-shadow)" : "none"
|
|
181
|
+
}),
|
|
182
|
+
onClick: a[2] ||= (e) => Y("pdf")
|
|
183
|
+
}, [u(f(y), {
|
|
184
|
+
size: 12,
|
|
185
|
+
"stroke-width": 2
|
|
186
|
+
}), d(" " + i(f(z).designReference.uploadPdf), 1)], 4)]),
|
|
187
|
+
c("div", null, [U.value ? (r(), l("div", E, [c("div", D, [G.value ? (r(), l("img", {
|
|
188
|
+
key: 0,
|
|
189
|
+
src: G.value,
|
|
190
|
+
alt: U.value.name,
|
|
191
|
+
class: "tpl:h-auto tpl:max-h-48 tpl:w-full tpl:object-contain"
|
|
192
|
+
}, null, 8, O)) : (r(), l("div", k, [u(f(y), {
|
|
193
|
+
size: 32,
|
|
194
|
+
"stroke-width": 1.5,
|
|
195
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
196
|
+
}), c("span", A, i(U.value.name), 1)])), c("button", {
|
|
197
|
+
class: "tpl:absolute tpl:top-2 tpl:right-2 tpl:rounded-full tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow)]",
|
|
198
|
+
onClick: Z
|
|
199
|
+
}, [u(f(_), {
|
|
200
|
+
size: 12,
|
|
201
|
+
"stroke-width": 2
|
|
202
|
+
})])])])) : (r(), l("div", {
|
|
203
|
+
key: 1,
|
|
204
|
+
class: "tpl-design-dropzone tpl:flex tpl:cursor-pointer tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border-2 tpl:border-dashed tpl:px-4 tpl:py-8 tpl:transition-colors tpl:duration-150",
|
|
205
|
+
style: e({
|
|
206
|
+
borderColor: q.value ? "var(--tpl-primary)" : "var(--tpl-border-light)",
|
|
207
|
+
backgroundColor: q.value ? "var(--tpl-primary-light)" : "var(--tpl-bg)"
|
|
208
|
+
}),
|
|
209
|
+
onClick: a[3] ||= (e) => V.value?.click(),
|
|
210
|
+
onDragover: Q,
|
|
211
|
+
onDragleave: Te,
|
|
212
|
+
onDrop: Ee
|
|
213
|
+
}, [
|
|
214
|
+
u(f(oe), {
|
|
215
|
+
size: 24,
|
|
216
|
+
"stroke-width": 1.5,
|
|
217
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
218
|
+
}),
|
|
219
|
+
c("span", j, i(f(z).designReference.dropHint), 1),
|
|
220
|
+
c("span", M, i(H.value === "image" ? f(z).designReference.acceptedImages : f(z).designReference.acceptedPdf), 1)
|
|
221
|
+
], 36)), c("input", {
|
|
222
|
+
ref_key: "fileInput",
|
|
223
|
+
ref: V,
|
|
224
|
+
type: "file",
|
|
225
|
+
class: "tpl:hidden",
|
|
226
|
+
accept: H.value === "image" ? "image/png,image/jpeg,image/webp" : "application/pdf",
|
|
227
|
+
onChange: we
|
|
228
|
+
}, null, 40, N)]),
|
|
229
|
+
c("div", P, [c("label", F, i(f(z).designReference.promptLabel), 1), re(c("textarea", {
|
|
230
|
+
"onUpdate:modelValue": a[4] ||= (e) => W.value = e,
|
|
231
|
+
class: t(["tpl:min-h-[72px] tpl:w-full tpl:resize-none tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:font-sans tpl:text-sm tpl:outline-none tpl:transition-colors tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", ["tpl-design-prompt-input"]]),
|
|
232
|
+
placeholder: f(z).designReference.promptPlaceholder,
|
|
233
|
+
rows: "3"
|
|
234
|
+
}, null, 8, I), [[ie, W.value]])]),
|
|
235
|
+
K.value ? (r(), l("div", L, [c("p", _e, i(f(z).designReference.replaceWarning), 1), c("div", ve, [c("button", {
|
|
236
|
+
class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:text-[var(--tpl-text-muted)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
237
|
+
style: { "background-color": "transparent" },
|
|
238
|
+
onClick: De
|
|
239
|
+
}, i(f(z).designReference.replaceCancel), 1), c("button", {
|
|
240
|
+
class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
241
|
+
onClick: $
|
|
242
|
+
}, i(f(z).designReference.replaceConfirm), 1)])])) : p("", !0),
|
|
243
|
+
f(B).error.value ? (r(), l("div", ye, [u(f(le), {
|
|
244
|
+
size: 14,
|
|
245
|
+
"stroke-width": 2,
|
|
246
|
+
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
247
|
+
}), c("span", null, i(f(z).designReference.error), 1)])) : p("", !0),
|
|
248
|
+
K.value ? p("", !0) : (r(), l("button", {
|
|
249
|
+
key: 2,
|
|
250
|
+
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
251
|
+
disabled: !J.value,
|
|
252
|
+
onClick: $
|
|
253
|
+
}, [u(f(g), {
|
|
254
|
+
size: 16,
|
|
255
|
+
"stroke-width": 2
|
|
256
|
+
}), d(" " + i(f(z).designReference.generate), 1)], 8, be)),
|
|
257
|
+
c("p", xe, i(f(z).aiMenu.disclaimer), 1)
|
|
258
|
+
]))])])) : p("", !0)]),
|
|
259
|
+
_: 1
|
|
260
|
+
}));
|
|
261
|
+
}
|
|
262
|
+
}), [["__scopeId", "data-v-bdbf8d0d"]]);
|
|
263
|
+
//#endregion
|
|
264
|
+
export { R as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as e, Et as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, h as c, l, m as u, nt as d, r as f, s as p, u as m, x as h } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import {
|
|
3
|
-
import { t as v } from "./useI18n-
|
|
4
|
-
import { t as y } from "./createLucideIcon-
|
|
5
|
-
import { t as b } from "./circle-alert-
|
|
6
|
-
import { t as x } from "./info-
|
|
7
|
-
import { t as S } from "./list-checks-
|
|
8
|
-
import { t as C } from "./triangle-alert-
|
|
1
|
+
import { A as e, Et as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, h as c, l, m as u, nt as d, r as f, s as p, u as m, x as h } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
|
+
import { L as g, h as _ } from "./keys-uWpGv4Pq.js";
|
|
3
|
+
import { t as v } from "./useI18n-DzOcl2wl.js";
|
|
4
|
+
import { t as y } from "./createLucideIcon-AEltGIse.js";
|
|
5
|
+
import { t as b } from "./circle-alert-DkEXnGPV.js";
|
|
6
|
+
import { t as x } from "./info-CvrCgTLH.js";
|
|
7
|
+
import { t as S } from "./list-checks-yzGT93ZL.js";
|
|
8
|
+
import { t as C } from "./triangle-alert-B3PydLzl.js";
|
|
9
9
|
var w = y("arrow-right", [["path", {
|
|
10
10
|
d: "M5 12h14",
|
|
11
11
|
key: "1ays0h"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as e, d as t } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { O as e, d as t } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
//#region src/components/LoadingTrack.vue
|
|
4
4
|
var r = {}, i = { class: "tpl-loading-track" };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d, x as f } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
|
+
import { j as p } from "./dist-Ba5Q-UX1.js";
|
|
3
|
+
import { T as m } from "./keys-uWpGv4Pq.js";
|
|
4
|
+
import { t as h } from "./useI18n-DzOcl2wl.js";
|
|
5
|
+
import { t as g } from "./createLucideIcon-AEltGIse.js";
|
|
6
|
+
import { t as _ } from "./sparkles-8UeMmZb8.js";
|
|
7
|
+
var v = g("monitor", [
|
|
8
|
+
["rect", {
|
|
9
|
+
width: "20",
|
|
10
|
+
height: "14",
|
|
11
|
+
x: "2",
|
|
12
|
+
y: "3",
|
|
13
|
+
rx: "2",
|
|
14
|
+
key: "48i651"
|
|
15
|
+
}],
|
|
16
|
+
["line", {
|
|
17
|
+
x1: "8",
|
|
18
|
+
x2: "16",
|
|
19
|
+
y1: "21",
|
|
20
|
+
y2: "21",
|
|
21
|
+
key: "1svkeh"
|
|
22
|
+
}],
|
|
23
|
+
["line", {
|
|
24
|
+
x1: "12",
|
|
25
|
+
x2: "12",
|
|
26
|
+
y1: "17",
|
|
27
|
+
y2: "21",
|
|
28
|
+
key: "vw1qmm"
|
|
29
|
+
}]
|
|
30
|
+
]), y = g("smartphone", [["rect", {
|
|
31
|
+
width: "14",
|
|
32
|
+
height: "20",
|
|
33
|
+
x: "5",
|
|
34
|
+
y: "2",
|
|
35
|
+
rx: "2",
|
|
36
|
+
ry: "2",
|
|
37
|
+
key: "1yt0o3"
|
|
38
|
+
}], ["path", {
|
|
39
|
+
d: "M12 18h.01",
|
|
40
|
+
key: "mhygvu"
|
|
41
|
+
}]]), b = g("text-cursor-input", [
|
|
42
|
+
["path", {
|
|
43
|
+
d: "M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",
|
|
44
|
+
key: "1528k5"
|
|
45
|
+
}],
|
|
46
|
+
["path", {
|
|
47
|
+
d: "M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",
|
|
48
|
+
key: "13ksps"
|
|
49
|
+
}],
|
|
50
|
+
["path", {
|
|
51
|
+
d: "M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",
|
|
52
|
+
key: "1n9rhb"
|
|
53
|
+
}],
|
|
54
|
+
["path", {
|
|
55
|
+
d: "M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",
|
|
56
|
+
key: "1mj8rg"
|
|
57
|
+
}],
|
|
58
|
+
["path", {
|
|
59
|
+
d: "M9 6v12",
|
|
60
|
+
key: "velyjx"
|
|
61
|
+
}]
|
|
62
|
+
]), x = ["aria-label"], S = [
|
|
63
|
+
"aria-checked",
|
|
64
|
+
"aria-label",
|
|
65
|
+
"title",
|
|
66
|
+
"onClick"
|
|
67
|
+
], C = /* @__PURE__ */ i({
|
|
68
|
+
__name: "ViewportToggle",
|
|
69
|
+
props: { viewport: {} },
|
|
70
|
+
emits: ["change"],
|
|
71
|
+
setup(i, { emit: d }) {
|
|
72
|
+
let f = i, p = d, { t: m } = h(), g = u(() => [{
|
|
73
|
+
value: "desktop",
|
|
74
|
+
label: m.viewport.desktop
|
|
75
|
+
}, {
|
|
76
|
+
value: "mobile",
|
|
77
|
+
label: m.viewport.mobile
|
|
78
|
+
}]), _ = u(() => `translateX(${g.value.findIndex((e) => e.value === f.viewport) * 100}%)`);
|
|
79
|
+
return (u, d) => (n(), o("div", {
|
|
80
|
+
role: "radiogroup",
|
|
81
|
+
"aria-label": c(m).viewport.label,
|
|
82
|
+
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
83
|
+
style: t({
|
|
84
|
+
gridTemplateColumns: `repeat(${g.value.length}, 1fr)`,
|
|
85
|
+
backgroundColor: "var(--tpl-bg-hover)"
|
|
86
|
+
})
|
|
87
|
+
}, [a("div", {
|
|
88
|
+
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
89
|
+
style: t({
|
|
90
|
+
left: "4px",
|
|
91
|
+
width: `calc((100% - 8px) / ${g.value.length})`,
|
|
92
|
+
transform: _.value,
|
|
93
|
+
backgroundColor: "var(--tpl-bg)",
|
|
94
|
+
boxShadow: "var(--tpl-shadow)",
|
|
95
|
+
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
96
|
+
})
|
|
97
|
+
}, null, 4), (n(!0), o(l, null, e(g.value, (e) => (n(), o("button", {
|
|
98
|
+
key: e.value,
|
|
99
|
+
role: "radio",
|
|
100
|
+
"aria-checked": i.viewport === e.value,
|
|
101
|
+
"aria-label": e.label,
|
|
102
|
+
class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium",
|
|
103
|
+
style: t({
|
|
104
|
+
color: i.viewport === e.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
105
|
+
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
106
|
+
}),
|
|
107
|
+
title: e.label,
|
|
108
|
+
onClick: (t) => p("change", e.value)
|
|
109
|
+
}, [e.value === "desktop" ? (n(), s(c(v), {
|
|
110
|
+
key: 0,
|
|
111
|
+
size: 18,
|
|
112
|
+
"stroke-width": 1.5
|
|
113
|
+
})) : (n(), s(c(y), {
|
|
114
|
+
key: 1,
|
|
115
|
+
size: 18,
|
|
116
|
+
"stroke-width": 1.5
|
|
117
|
+
})), a("span", null, r(e.label), 1)], 12, S))), 128))], 12, x));
|
|
118
|
+
}
|
|
119
|
+
}), w = ["aria-label"], T = [
|
|
120
|
+
"aria-checked",
|
|
121
|
+
"aria-label",
|
|
122
|
+
"title",
|
|
123
|
+
"onClick"
|
|
124
|
+
], E = /* @__PURE__ */ i({
|
|
125
|
+
__name: "MergeTagModeToggle",
|
|
126
|
+
props: { sampleMode: { type: Boolean } },
|
|
127
|
+
emits: ["change"],
|
|
128
|
+
setup(i, { emit: g }) {
|
|
129
|
+
let v = i, y = g, { t: x } = h(), S = f(m, []), C = u(() => p(S)), E = u(() => [{
|
|
130
|
+
value: !0,
|
|
131
|
+
label: x.mergeTagPreview.sample
|
|
132
|
+
}, {
|
|
133
|
+
value: !1,
|
|
134
|
+
label: x.mergeTagPreview.labelView
|
|
135
|
+
}]), D = u(() => `translateX(${E.value.findIndex((e) => e.value === v.sampleMode) * 100}%)`);
|
|
136
|
+
return (u, f) => C.value ? (n(), o("div", {
|
|
137
|
+
key: 0,
|
|
138
|
+
role: "radiogroup",
|
|
139
|
+
"aria-label": c(x).mergeTagPreview.label,
|
|
140
|
+
"data-testid": "merge-tag-mode-toggle",
|
|
141
|
+
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
142
|
+
style: t({
|
|
143
|
+
gridTemplateColumns: `repeat(${E.value.length}, 1fr)`,
|
|
144
|
+
backgroundColor: "var(--tpl-bg-hover)"
|
|
145
|
+
})
|
|
146
|
+
}, [a("div", {
|
|
147
|
+
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
148
|
+
style: t({
|
|
149
|
+
left: "4px",
|
|
150
|
+
width: `calc((100% - 8px) / ${E.value.length})`,
|
|
151
|
+
transform: D.value,
|
|
152
|
+
backgroundColor: "var(--tpl-bg)",
|
|
153
|
+
boxShadow: "var(--tpl-shadow)",
|
|
154
|
+
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
155
|
+
})
|
|
156
|
+
}, null, 4), (n(!0), o(l, null, e(E.value, (e) => (n(), o("button", {
|
|
157
|
+
key: String(e.value),
|
|
158
|
+
role: "radio",
|
|
159
|
+
"aria-checked": i.sampleMode === e.value,
|
|
160
|
+
"aria-label": e.label,
|
|
161
|
+
class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium",
|
|
162
|
+
style: t({
|
|
163
|
+
color: i.sampleMode === e.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
164
|
+
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
165
|
+
}),
|
|
166
|
+
title: e.label,
|
|
167
|
+
onClick: (t) => y("change", e.value)
|
|
168
|
+
}, [e.value ? (n(), s(c(_), {
|
|
169
|
+
key: 0,
|
|
170
|
+
size: 18,
|
|
171
|
+
"stroke-width": 1.5
|
|
172
|
+
})) : (n(), s(c(b), {
|
|
173
|
+
key: 1,
|
|
174
|
+
size: 18,
|
|
175
|
+
"stroke-width": 1.5
|
|
176
|
+
})), a("span", null, r(e.label), 1)], 12, T))), 128))], 12, w)) : d("", !0);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
//#endregion
|
|
180
|
+
export { v as i, C as n, y as r, E as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, Et as t, O as n, Ot as r, Y as i, _ as a, c as o, d as s, r as c, u as l, y as u } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { c as d, n as f } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { F as p, Sn as m, i as h, vn as g, xn as _, yn as v } from "./dist-
|
|
1
|
+
import { A as e, Et as t, O as n, Ot as r, Y as i, _ as a, c as o, d as s, r as c, u as l, y as u } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
|
|
2
|
+
import { c as d, n as f } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
|
|
3
|
+
import { F as p, Sn as m, i as h, vn as g, xn as _, yn as v } from "./dist-CcQFPJMF.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
5
5
|
var y = Math.min, b = Math.max, x = Math.round, S = Math.floor, C = (e) => ({
|
|
6
6
|
x: e,
|
|
@@ -223,7 +223,7 @@ var fe = 50, pe = async (e, t, n) => {
|
|
|
223
223
|
overflows: w
|
|
224
224
|
}], !w.every((e) => e <= 0)) {
|
|
225
225
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
226
|
-
if (t && (
|
|
226
|
+
if (t && (u !== "alignment" || _ === A(t) || D.every((e) => A(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
227
227
|
data: {
|
|
228
228
|
index: e,
|
|
229
229
|
overflows: D
|
|
@@ -243,9 +243,7 @@ var fe = 50, pe = async (e, t, n) => {
|
|
|
243
243
|
e && (n = e);
|
|
244
244
|
break;
|
|
245
245
|
}
|
|
246
|
-
case "initialPlacement":
|
|
247
|
-
n = o;
|
|
248
|
-
break;
|
|
246
|
+
case "initialPlacement": n = o;
|
|
249
247
|
}
|
|
250
248
|
if (r !== n) return { reset: { placement: n } };
|
|
251
249
|
}
|
|
@@ -380,7 +378,8 @@ function Y(e, t, n) {
|
|
|
380
378
|
if (i) {
|
|
381
379
|
let e = De(a);
|
|
382
380
|
return t.concat(a, a.visualViewport || [], V(r) ? r : [], e && n ? Y(e) : []);
|
|
383
|
-
}
|
|
381
|
+
}
|
|
382
|
+
return t.concat(r, Y(r, [], n));
|
|
384
383
|
}
|
|
385
384
|
function De(e) {
|
|
386
385
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -704,7 +703,7 @@ var $e = _e, et = me, tt = (e, t, n) => {
|
|
|
704
703
|
});
|
|
705
704
|
};
|
|
706
705
|
//#endregion
|
|
707
|
-
//#region ../../node_modules/.pnpm/@tiptap+suggestion@3.29.
|
|
706
|
+
//#region ../../node_modules/.pnpm/@tiptap+suggestion@3.29.2_@floating-ui+dom@1.8.0_@tiptap+core@3.29.2_@tiptap+pm@3.29.2__@tiptap+pm@3.29.2/node_modules/@tiptap/suggestion/dist/index.js
|
|
708
707
|
function nt(e) {
|
|
709
708
|
let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = p(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), m = o.nodeBefore?.isText && o.nodeBefore.text;
|
|
710
709
|
if (!m) return null;
|
|
@@ -958,10 +957,7 @@ function mt({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
|
|
|
958
957
|
case "updated":
|
|
959
958
|
(i = r?.onUpdate) == null || i.call(r, t);
|
|
960
959
|
break;
|
|
961
|
-
case "stopped":
|
|
962
|
-
(a = r?.onExit) == null || a.call(r, t);
|
|
963
|
-
break;
|
|
964
|
-
default: break;
|
|
960
|
+
case "stopped": (a = r?.onExit) == null || a.call(r, t);
|
|
965
961
|
}
|
|
966
962
|
}
|
|
967
963
|
return {
|