@templatical/editor 0.26.2 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/{AiChatSidebar-CMBz6Wix.js → AiChatSidebar-iVJDzqjr.js} +60 -60
- package/dist/AiFeatureMenu-DvrK-dzj.js +57 -0
- package/dist/{BlockIssueBadge-Buk3_6QF.js → BlockIssueBadge-BHysq7XQ.js} +11 -11
- package/dist/BlockPreviewCanvas-GZbr0ph5.js +121 -0
- package/dist/CloudHeaderExtras-Cx8gFWu2.js +59 -0
- package/dist/CloudPanels-D0X449DD.js +227 -0
- package/dist/{CollaboratorBar-zvfvE7f-.js → CollaboratorBar-DMSWCrX3.js} +21 -21
- package/dist/ColorPicker-DCjFQCAg.js +501 -0
- package/dist/CommentsPanel-D5wQB1Kf.js +18 -0
- package/dist/CommentsSidebar-BoTIxpLE.js +481 -0
- package/dist/{cdn/chunks/CountdownBlock-vLTkTI9e.js → CountdownBlock-BFX8iU90.js} +19 -21
- package/dist/{cdn/chunks/CountdownToolbar-DPjcgcVR.js → CountdownToolbar-CSftc9Ma.js} +52 -53
- package/dist/{DesignReferenceSidebar-Bx96XFmK.js → DesignReferenceSidebar-DKsx2TiL.js} +72 -71
- package/dist/{IssuesPanel-Do7RLXsP.js → IssuesPanel-flKKwKpM.js} +38 -38
- package/dist/{LoadingTrack-BexpNuTV.js → LoadingTrack-C2T8ixEL.js} +3 -3
- package/dist/{MergeTagModeToggle-P-UguQHc.js → MergeTagModeToggle-PKCoKAoF.js} +43 -43
- package/dist/{MergeTagSuggestion-BJ43ihWR.js → MergeTagSuggestion-DGha0WRp.js} +46 -46
- package/dist/{cdn/chunks/NumberWithSuffix-BXrRdfq1.js → NumberWithSuffix-DdPCXfKf.js} +42 -44
- package/dist/{ParagraphEditor-CLvv5Ija.js → ParagraphEditor-vDU-5y6r.js} +202 -199
- package/dist/RestoreVersionDialog-DIn1muFD.js +86 -0
- package/dist/{RichTextEditorContent-fbYJXAio.js → RichTextEditorContent-I83k5DtQ.js} +44 -44
- package/dist/SaveBlockDialog-C_QvYAeL.js +266 -0
- package/dist/{SavedBlocksBrowserModal-KWlaiLlr.js → SavedBlocksBrowserModal-CefWWcdT.js} +116 -115
- package/dist/{cdn/chunks/SavedBlocksPanels-e4HyTZ8v.js → SavedBlocksPanels-DnQwO-7O.js} +9 -11
- package/dist/{SavedBlocksPickBar-C3h8oL3r.js → SavedBlocksPickBar-BsFubArH.js} +17 -17
- package/dist/{TemplateScoringPanel-BZUsb3FD.js → TemplateScoringPanel-Bv_bBsJi.js} +87 -87
- package/dist/TestEmailModal-STPWDP79.js +206 -0
- package/dist/{cdn/chunks/TestEmailPanel-CZAG1gQE.js → TestEmailPanel-HYVjApKZ.js} +4 -6
- package/dist/TitleEditor-DnB0EJ_g.js +198 -0
- package/dist/TplModal-chvLhXmC.js +49 -0
- package/dist/VersionHistoryMenu-Cq4rH56t.js +155 -0
- package/dist/VersionHistoryPanels-D7k_F7-9.js +46 -0
- package/dist/VersionPreviewBanner-DthyHe6C.js +38 -0
- package/dist/{blockTypeIcons-2_85L_CL.js → blockTypeIcons-B8r4jMBn.js} +6 -6
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-D1zgI9fQ.js → ca-Cqg9O8mx.js} +69 -6
- package/dist/cdn/chunks/{AiChatSidebar-CQ8KUmNB.js → AiChatSidebar-DTUoBH5a.js} +54 -54
- package/dist/cdn/chunks/AiChatSidebar-DTUoBH5a.js.map +1 -0
- package/dist/cdn/chunks/AiFeatureMenu-Dyh7mUMB.js +57 -0
- package/dist/cdn/chunks/AiFeatureMenu-Dyh7mUMB.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js → BlockIssueBadge-UzSSOM_2.js} +13 -13
- package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js.map → BlockIssueBadge-UzSSOM_2.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-DPtiMsVz.js → BlockPreviewCanvas-DStQFo9P.js} +42 -42
- package/dist/cdn/chunks/{BlockPreviewCanvas-DPtiMsVz.js.map → BlockPreviewCanvas-DStQFo9P.js.map} +1 -1
- package/dist/cdn/chunks/CloudHeaderExtras-BZVu7dnO.js +60 -0
- package/dist/cdn/chunks/CloudHeaderExtras-BZVu7dnO.js.map +1 -0
- package/dist/cdn/chunks/CloudPanels-CXbaBKHQ.js +227 -0
- package/dist/cdn/chunks/CloudPanels-CXbaBKHQ.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-BF469_AN.js → CollaboratorBar-BH_lZlat.js} +22 -22
- package/dist/cdn/chunks/CollaboratorBar-BH_lZlat.js.map +1 -0
- package/dist/cdn/chunks/ColorPicker-CStXen0Y.js +502 -0
- package/dist/cdn/chunks/ColorPicker-CStXen0Y.js.map +1 -0
- package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js +20 -0
- package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js.map +1 -0
- package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js +460 -0
- package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js.map +1 -0
- package/dist/{CountdownBlock-DuyvGcr8.js → cdn/chunks/CountdownBlock-BYSrJWxg.js} +25 -23
- package/dist/cdn/chunks/{CountdownBlock-vLTkTI9e.js.map → CountdownBlock-BYSrJWxg.js.map} +1 -1
- package/dist/{CountdownToolbar-CBE9wRaV.js → cdn/chunks/CountdownToolbar-CZPtQIb8.js} +66 -63
- package/dist/cdn/chunks/{CountdownToolbar-DPjcgcVR.js.map → CountdownToolbar-CZPtQIb8.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-B-HFXV0W.js → DesignReferenceSidebar-sZWciECR.js} +64 -64
- package/dist/cdn/chunks/DesignReferenceSidebar-sZWciECR.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-DKTS4QVb.js → IssuesPanel-CHtetM9i.js} +36 -36
- package/dist/cdn/chunks/IssuesPanel-CHtetM9i.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js → LoadingTrack-Dp_QZvAK.js} +3 -3
- package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js.map → LoadingTrack-Dp_QZvAK.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js → MergeTagModeToggle-ZwW-5EeN.js} +39 -39
- package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js.map → MergeTagModeToggle-ZwW-5EeN.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-Dn8dExNa.js → MergeTagSuggestion-DhllqTA3.js} +47 -47
- package/dist/cdn/chunks/MergeTagSuggestion-DhllqTA3.js.map +1 -0
- package/dist/{NumberWithSuffix-D37ZWiZh.js → cdn/chunks/NumberWithSuffix-yeQLcCyH.js} +37 -35
- package/dist/cdn/chunks/NumberWithSuffix-yeQLcCyH.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-Bzcma_Lm.js → ParagraphEditor-BJJ925sx.js} +235 -233
- package/dist/cdn/chunks/ParagraphEditor-BJJ925sx.js.map +1 -0
- package/dist/cdn/chunks/RestoreVersionDialog-B0Jadu6F.js +87 -0
- package/dist/cdn/chunks/RestoreVersionDialog-B0Jadu6F.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DtL49Jpo.js → RichTextEditorContent-CfSq2wPR.js} +44 -44
- package/dist/cdn/chunks/RichTextEditorContent-CfSq2wPR.js.map +1 -0
- package/dist/cdn/chunks/SaveBlockDialog-C1DXh6P9.js +265 -0
- package/dist/cdn/chunks/SaveBlockDialog-C1DXh6P9.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C59D4G5C.js → SavedBlocksBrowserModal-BerMxAUt.js} +114 -113
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BerMxAUt.js.map +1 -0
- package/dist/{SavedBlocksPanels-CQsZvWO_.js → cdn/chunks/SavedBlocksPanels-BUE4lzVP.js} +11 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-e4HyTZ8v.js.map → SavedBlocksPanels-BUE4lzVP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DMHxPCM4.js → SavedBlocksPickBar-4HrqQfvl.js} +17 -17
- package/dist/cdn/chunks/SavedBlocksPickBar-4HrqQfvl.js.map +1 -0
- package/dist/cdn/chunks/{TemplateScoringPanel-NucRtAP0.js → TemplateScoringPanel-Xdkp2EMY.js} +81 -81
- package/dist/cdn/chunks/TemplateScoringPanel-Xdkp2EMY.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-yfmFiavR.js +206 -0
- package/dist/cdn/chunks/TestEmailModal-yfmFiavR.js.map +1 -0
- package/dist/{TestEmailPanel-B6goIAxT.js → cdn/chunks/TestEmailPanel-DqTDh5ri.js} +6 -4
- package/dist/cdn/chunks/{TestEmailPanel-CZAG1gQE.js.map → TestEmailPanel-DqTDh5ri.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D0_LY2Ex.js → TitleEditor-nUAF7fKr.js} +85 -84
- package/dist/cdn/chunks/TitleEditor-nUAF7fKr.js.map +1 -0
- package/dist/cdn/chunks/TplModal-C0IqikoV.js +50 -0
- package/dist/cdn/chunks/TplModal-C0IqikoV.js.map +1 -0
- package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js +148 -0
- package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js.map +1 -0
- package/dist/cdn/chunks/VersionHistoryPanels-6Hz9w20W.js +48 -0
- package/dist/cdn/chunks/VersionHistoryPanels-6Hz9w20W.js.map +1 -0
- package/dist/cdn/chunks/VersionPreviewBanner-D098_6_I.js +40 -0
- package/dist/cdn/chunks/VersionPreviewBanner-D098_6_I.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js → blockTypeIcons-hX_W4dqo.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js.map → blockTypeIcons-hX_W4dqo.js.map} +1 -1
- package/dist/cdn/chunks/{ca-D1zgI9fQ.js → ca-Cqg9O8mx.js} +70 -7
- package/dist/cdn/chunks/ca-Cqg9O8mx.js.map +1 -0
- package/dist/{cloud-qINCmQbn.js → cdn/chunks/cloud-BA0OpRh-.js} +400 -609
- package/dist/cdn/chunks/cloud-BA0OpRh-.js.map +1 -0
- package/dist/cdn/chunks/createCloudRuntime-DmzV7OnU.js +344 -0
- package/dist/cdn/chunks/createCloudRuntime-DmzV7OnU.js.map +1 -0
- package/dist/{de-DHra3lvx.js → cdn/chunks/de-BXmeeFbX.js} +71 -6
- package/dist/cdn/chunks/de-BXmeeFbX.js.map +1 -0
- package/dist/{de-uVoSP1xF.js → cdn/chunks/de-Dbwm2cON.js} +3 -54
- package/dist/cdn/chunks/de-Dbwm2cON.js.map +1 -0
- package/dist/cdn/chunks/{dist-B2HKGHnc.js → dist-CM8TB0VD.js} +136 -136
- package/dist/cdn/chunks/{dist-B2HKGHnc.js.map → dist-CM8TB0VD.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C6z8AjBC.js → dist-CYLJiSiH.js} +63 -63
- package/dist/cdn/chunks/{dist-C6z8AjBC.js.map → dist-CYLJiSiH.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DCs9qL-b.js → draggable-BfpsXFg7.js} +916 -905
- package/dist/cdn/chunks/{draggable-DCs9qL-b.js.map → draggable-BfpsXFg7.js.map} +1 -1
- package/dist/cdn/chunks/{en-DlqX2YWZ.js → en-DbBNy67B.js} +70 -7
- package/dist/cdn/chunks/en-DbBNy67B.js.map +1 -0
- package/dist/{en-CjhsJxb-.js → cdn/chunks/en-Dzw4EqNI.js} +3 -54
- package/dist/cdn/chunks/en-Dzw4EqNI.js.map +1 -0
- package/dist/cdn/chunks/{es-Cuss2snv.js → es-JUsAjxWu.js} +70 -7
- package/dist/cdn/chunks/es-JUsAjxWu.js.map +1 -0
- package/dist/cdn/chunks/{extensions-C7h52yuk.js → extensions-CMcVw2uu.js} +81 -67
- package/dist/cdn/chunks/extensions-CMcVw2uu.js.map +1 -0
- package/dist/{fr-Cm85vB2g.js → cdn/chunks/fr-J3qgXH4h.js} +71 -6
- package/dist/cdn/chunks/fr-J3qgXH4h.js.map +1 -0
- package/dist/cdn/chunks/{icons-CvYN6zrM.js → icons-C36Ha5VU.js} +11 -11
- package/dist/cdn/chunks/{icons-CvYN6zrM.js.map → icons-C36Ha5VU.js.map} +1 -1
- package/dist/{keys-fwF3qZax.js → cdn/chunks/keys-CbQuRX85.js} +6 -4
- package/dist/cdn/chunks/keys-CbQuRX85.js.map +1 -0
- package/dist/cdn/chunks/logger-ByvdoAwq.js +23 -0
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +1 -0
- package/dist/cdn/chunks/{nl-dmiIX7oT.js → nl-D_4DkqOi.js} +70 -7
- package/dist/cdn/chunks/nl-D_4DkqOi.js.map +1 -0
- package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js +23 -0
- package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js.map +1 -0
- package/dist/{pt-BR-CTzHTqJD.js → cdn/chunks/pt-BR-BxzQzWGJ.js} +3 -54
- package/dist/cdn/chunks/pt-BR-BxzQzWGJ.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-CaIG-7EM.js → pt-BR-KGURyEEQ.js} +70 -7
- package/dist/cdn/chunks/pt-BR-KGURyEEQ.js.map +1 -0
- package/dist/cdn/chunks/{src-CUKUsRzX.js → src-BOjFLNf7.js} +148 -134
- package/dist/cdn/chunks/src-BOjFLNf7.js.map +1 -0
- package/dist/cdn/chunks/{src-xkGep9eN.js → src-Dq3fgSIx.js} +1448 -1458
- package/dist/cdn/chunks/src-Dq3fgSIx.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-ByDqaYj_.js +61 -0
- package/dist/cdn/chunks/styleConstants-ByDqaYj_.js.map +1 -0
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +6 -0
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C44S1Cmh.js → tiptap-DmpGap5g.js} +40 -40
- package/dist/cdn/chunks/{tiptap-C44S1Cmh.js.map → tiptap-DmpGap5g.js.map} +1 -1
- package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js → useAliveFlag-Dtm174fG.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js.map → useAliveFlag-Dtm174fG.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js → useCloudI18n-NVa1aeY8.js} +5 -5
- package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js.map → useCloudI18n-NVa1aeY8.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CKQ9gmoo.js → useEditorCore-CTu_qZ3W.js} +1434 -1147
- package/dist/cdn/chunks/useEditorCore-CTu_qZ3W.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-UMs0F71x.js → useI18n-DVWCJJFH.js} +5 -5
- package/dist/cdn/chunks/{useI18n-UMs0F71x.js.map → useI18n-DVWCJJFH.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js → useMergeTag-BfZBRPQp.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js.map → useMergeTag-BfZBRPQp.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js → usePopoverPosition-BC-HA7TK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js.map → usePopoverPosition-BC-HA7TK.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +5103 -284
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-On4TSac-.js → check-DZbmkMQe.js} +1 -1
- package/dist/{chevron-down-69EiBGoB.js → chevron-down-nYScOLeZ.js} +1 -1
- package/dist/{chevron-up-Dh3MG1Dw.js → chevron-up-CpYpDLnc.js} +1 -1
- package/dist/{circle-alert-cilwzafX.js → circle-alert-CuuK6thq.js} +1 -1
- package/dist/{clock-Dt0APH92.js → clock-DxkrtqOr.js} +1 -1
- package/dist/cloud-BAefVBb_.js +1444 -0
- package/dist/createCloudRuntime-Bt8W-ajI.js +342 -0
- package/dist/{createLucideIcon-C8WzBYCv.js → createLucideIcon-L-wQXW_R.js} +9 -9
- package/dist/{cdn/chunks/de-DHra3lvx.js → de-BXmeeFbX.js} +69 -8
- package/dist/{cdn/chunks/de-uVoSP1xF.js → de-Dbwm2cON.js} +1 -56
- package/dist/dist-B5iReTtK.js +251 -0
- package/dist/{dist-Cl8J0IES.js → dist-Ck9roB6K.js} +42 -42
- package/dist/{dist-BpKxrUi2.js → dist-CqcGTIiX.js} +46 -46
- package/dist/{en-DlqX2YWZ.js → en-DbBNy67B.js} +69 -6
- package/dist/{cdn/chunks/en-CjhsJxb-.js → en-Dzw4EqNI.js} +1 -56
- package/dist/{es-Cuss2snv.js → es-JUsAjxWu.js} +69 -6
- package/dist/{extensions-DzKNPITR.js → extensions-CX87G4aL.js} +71 -57
- package/dist/{cdn/chunks/fr-Cm85vB2g.js → fr-J3qgXH4h.js} +69 -8
- package/dist/{image-up-Ceggh_R3.js → image-up-DouZRGVt.js} +1 -1
- package/dist/index.d.ts +499 -23
- package/dist/{info-DO5odBcZ.js → info-puX5V6Iq.js} +1 -1
- package/dist/{cdn/chunks/keys-Cmc2Yl3D.js → keys-BxixS0TN.js} +4 -6
- package/dist/{list-checks-BSkPKbuI.js → list-checks-jw-ZlvWY.js} +1 -1
- package/dist/{loader-circle-bO7o7_HD.js → loader-circle-DqTxB7Kr.js} +1 -1
- package/dist/logger-BBlvSn6q.js +21 -0
- package/dist/{message-circle-BEkAk65X.js → message-circle-BZ7YpB22.js} +1 -1
- package/dist/{nl-dmiIX7oT.js → nl-D_4DkqOi.js} +69 -6
- package/dist/{pencil-t6m0EtKL.js → pencil-DmbRhTJu.js} +1 -1
- package/dist/preRenderCustomBlocks-BebjKtmw.js +21 -0
- package/dist/{cdn/chunks/pt-BR-CTzHTqJD.js → pt-BR-BxzQzWGJ.js} +1 -56
- package/dist/{pt-BR-CaIG-7EM.js → pt-BR-KGURyEEQ.js} +69 -6
- package/dist/{refresh-cw-CkOYVzK5.js → refresh-cw-OK_O-cL0.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CepEmvwF.js → runtime-dom.esm-bundler-BgKXIPLV.js} +144 -144
- package/dist/{scan-line-DwSVj25O.js → scan-line-DyaSTsJ5.js} +1 -1
- package/dist/{send-CWsWN8PQ.js → send-B-wasJJC.js} +1 -1
- package/dist/{shield-check-qje8Kufw.js → shield-check-DUIyRrTo.js} +1 -1
- package/dist/{sparkles-DumaWRW-.js → sparkles-DYEMATWC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styleConstants-ByDqaYj_.js +59 -0
- package/dist/templatical-editor.js +5303 -289
- package/dist/{text-align-start-Ir8Ah4mT.js → text-align-start-CzjLeBLe.js} +1 -1
- package/dist/timeouts-DHPZQ0G3.js +4 -0
- package/dist/{trash-2-CklAFCmO.js → trash-2-C0shEPry.js} +1 -1
- package/dist/{triangle-alert-BBi4n93g.js → triangle-alert-Fw0ce8oQ.js} +1 -1
- package/dist/{upload-sVqqppuv.js → upload-D69C2CBx.js} +3 -4
- package/dist/{useAliveFlag-cvyBxHp7.js → useAliveFlag-BGIAZii_.js} +1 -1
- package/dist/{useCloudI18n-DKVm6PCa.js → useCloudI18n-CAZTZ9_a.js} +2 -2
- package/dist/{useEditorCore-idmPLUeb.js → useEditorCore-B-kONNRw.js} +1604 -1320
- package/dist/{useI18n-DoVKdCTH.js → useI18n-BfXff_Sy.js} +2 -2
- package/dist/{useMergeTag-CYZk7dZD.js → useMergeTag-Dd4I7kge.js} +3 -3
- package/dist/usePopoverPosition-CxhCX3SQ.js +59 -0
- package/dist/{vue.runtime.esm-bundler-D1diBMsm.js → vue.runtime.esm-bundler-DzEsDRtY.js} +447 -436
- package/dist/{x-Mby7KlhS.js → x-BjTlFqRv.js} +1 -1
- package/package.json +7 -7
- package/dist/AiFeatureMenu-BY6mubnR.js +0 -63
- package/dist/BlockPreviewCanvas-DbNOqSI1.js +0 -121
- package/dist/CloudEditor-DEnMNMbm.js +0 -1188
- package/dist/ColorPicker-ClETsjA3.js +0 -550
- package/dist/CommentsSidebar-CdRCCSDD.js +0 -435
- package/dist/SaveBlockDialog-fVp_PwZi.js +0 -265
- package/dist/SnapshotHistory-DjA3Ej_i.js +0 -128
- package/dist/TestEmailModal-EM0RP_9L.js +0 -205
- package/dist/TitleEditor-JEaP9jVF.js +0 -197
- package/dist/TplModal-DoneXIj_.js +0 -49
- package/dist/cdn/chunks/AiChatSidebar-CQ8KUmNB.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-Cwj8afsi.js +0 -63
- package/dist/cdn/chunks/AiFeatureMenu-Cwj8afsi.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-CQ830jJt.js +0 -1166
- package/dist/cdn/chunks/CloudEditor-CQ830jJt.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-BF469_AN.js.map +0 -1
- package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js +0 -552
- package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js +0 -412
- package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js.map +0 -1
- package/dist/cdn/chunks/DesignReferenceSidebar-B-HFXV0W.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DKTS4QVb.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-Dn8dExNa.js.map +0 -1
- package/dist/cdn/chunks/NumberWithSuffix-BXrRdfq1.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-Bzcma_Lm.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-DtL49Jpo.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-BfNVeXXV.js +0 -264
- package/dist/cdn/chunks/SaveBlockDialog-BfNVeXXV.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-C59D4G5C.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-DMHxPCM4.js.map +0 -1
- package/dist/cdn/chunks/SnapshotHistory-80tAU_VX.js +0 -121
- package/dist/cdn/chunks/SnapshotHistory-80tAU_VX.js.map +0 -1
- package/dist/cdn/chunks/TemplateScoringPanel-NucRtAP0.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-DdWfAGNe.js +0 -205
- package/dist/cdn/chunks/TestEmailModal-DdWfAGNe.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-D0_LY2Ex.js.map +0 -1
- package/dist/cdn/chunks/TplModal-iCmoKB2k.js +0 -50
- package/dist/cdn/chunks/TplModal-iCmoKB2k.js.map +0 -1
- package/dist/cdn/chunks/ca-D1zgI9fQ.js.map +0 -1
- package/dist/cdn/chunks/cloud-DcC8bPwn.js +0 -1787
- package/dist/cdn/chunks/cloud-DcC8bPwn.js.map +0 -1
- package/dist/cdn/chunks/de-DHra3lvx.js.map +0 -1
- package/dist/cdn/chunks/de-uVoSP1xF.js.map +0 -1
- package/dist/cdn/chunks/en-CjhsJxb-.js.map +0 -1
- package/dist/cdn/chunks/en-DlqX2YWZ.js.map +0 -1
- package/dist/cdn/chunks/es-Cuss2snv.js.map +0 -1
- package/dist/cdn/chunks/extensions-C7h52yuk.js.map +0 -1
- package/dist/cdn/chunks/fr-Cm85vB2g.js.map +0 -1
- package/dist/cdn/chunks/keys-Cmc2Yl3D.js.map +0 -1
- package/dist/cdn/chunks/nl-dmiIX7oT.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +0 -1
- package/dist/cdn/chunks/src-CUKUsRzX.js.map +0 -1
- package/dist/cdn/chunks/src-xkGep9eN.js.map +0 -1
- package/dist/cdn/chunks/styles-CND3ey2g.js +0 -4140
- package/dist/cdn/chunks/styles-CND3ey2g.js.map +0 -1
- package/dist/cdn/chunks/timeouts-SsLMC4a3.js +0 -6
- package/dist/cdn/chunks/timeouts-SsLMC4a3.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CKQ9gmoo.js.map +0 -1
- package/dist/styles-BK36D1sy.js +0 -4318
- package/dist/usePopoverPosition-C0dPEF4X.js +0 -308
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
1
|
+
import { B as e, Dt as t, L as n, Ot as r, P as i, T as a, X as o, _ as ee, c as s, d as c, g as l, j as u, k as d, kt as f, l as p, r as m, rt as h, s as g, u as _, v, z as te } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
|
|
2
|
+
import { a as y, c as b, i as x, s as S } from "./runtime-dom.esm-bundler-BgKXIPLV.js";
|
|
3
|
+
import "./useEditorCore-B-kONNRw.js";
|
|
4
|
+
import { L as ne, W as C, h as re } from "./keys-BxixS0TN.js";
|
|
5
|
+
import { t as ie } from "./useI18n-BfXff_Sy.js";
|
|
6
|
+
import { n as ae, r as w, t as T } from "./blockTypeIcons-B8r4jMBn.js";
|
|
7
|
+
import { t as oe } from "./pencil-DmbRhTJu.js";
|
|
8
|
+
import { t as se } from "./trash-2-C0shEPry.js";
|
|
9
|
+
import { t as ce } from "./x-BjTlFqRv.js";
|
|
10
|
+
import { v as le } from "./styleConstants-ByDqaYj_.js";
|
|
11
|
+
import { t as ue } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
12
|
+
import { t as de } from "./TplModal-chvLhXmC.js";
|
|
12
13
|
//#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
13
14
|
var fe = {
|
|
14
15
|
role: "dialog",
|
|
@@ -24,51 +25,51 @@ var fe = {
|
|
|
24
25
|
}, pe = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, me = {
|
|
25
26
|
id: "tpl-saved-blocks-browser-title",
|
|
26
27
|
class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
27
|
-
}, he = ["aria-label"], ge = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, _e = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, ve = { class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:px-4 tpl:pt-4 tpl:pb-3" }, ye = { class: "tpl:relative" }, be = ["placeholder", "disabled"], xe = ["aria-label"], Se = { value: "" }, Ce = ["value"], we = { id: "tpl-saved-block-browser-categories" }, Te = ["value"],
|
|
28
|
+
}, he = ["aria-label"], ge = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, _e = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, ve = { class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:px-4 tpl:pt-4 tpl:pb-3" }, ye = { class: "tpl:relative" }, be = ["placeholder", "disabled"], xe = ["aria-label"], Se = { value: "" }, Ce = ["value"], we = { id: "tpl-saved-block-browser-categories" }, Te = ["value"], E = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:px-4 tpl:pb-4" }, D = ["aria-label"], O = {
|
|
28
29
|
key: 1,
|
|
29
30
|
class: "tpl:flex tpl:flex-col tpl:gap-1"
|
|
30
|
-
},
|
|
31
|
+
}, Ee = ["onFocusout"], De = ["aria-label", "onKeydown"], Oe = [
|
|
31
32
|
"aria-label",
|
|
32
33
|
"placeholder",
|
|
33
34
|
"onKeydown"
|
|
34
|
-
],
|
|
35
|
+
], ke = ["aria-pressed", "onClick"], Ae = { class: "tpl:flex tpl:items-center tpl:gap-2" }, je = { class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Me = { class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]" }, Ne = {
|
|
35
36
|
key: 0,
|
|
36
37
|
class: "tpl:mt-1 tpl:flex tpl:items-center"
|
|
37
|
-
},
|
|
38
|
+
}, Pe = {
|
|
38
39
|
"data-testid": "saved-block-category",
|
|
39
40
|
class: "tpl:max-w-full tpl:truncate tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]"
|
|
40
|
-
},
|
|
41
|
+
}, Fe = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, Ie = {
|
|
41
42
|
key: 0,
|
|
42
43
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
43
|
-
},
|
|
44
|
+
}, Le = ["title"], Re = ["aria-label", "onClick"], ze = [
|
|
44
45
|
"aria-label",
|
|
45
46
|
"title",
|
|
46
47
|
"onClick"
|
|
47
|
-
],
|
|
48
|
+
], Be = [
|
|
48
49
|
"aria-label",
|
|
49
50
|
"title",
|
|
50
51
|
"onClick"
|
|
51
|
-
],
|
|
52
|
+
], Ve = {
|
|
52
53
|
key: 2,
|
|
53
54
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
|
|
54
|
-
},
|
|
55
|
+
}, He = {
|
|
55
56
|
key: 0,
|
|
56
57
|
class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
57
|
-
},
|
|
58
|
+
}, Ue = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, We = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Ge = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, Ke = {
|
|
58
59
|
key: 0,
|
|
59
60
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
|
|
60
|
-
},
|
|
61
|
+
}, qe = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Je = {
|
|
61
62
|
key: 1,
|
|
62
63
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
|
|
63
|
-
},
|
|
64
|
+
}, Ye = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Xe = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, Ze = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Qe = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, $e = ["value"], k = { class: "tpl:flex tpl:gap-2" }, et = ["disabled"], A = /* @__PURE__ */ v({
|
|
64
65
|
__name: "SavedBlocksBrowserModal",
|
|
65
66
|
props: { visible: { type: Boolean } },
|
|
66
67
|
emits: ["close", "insert"],
|
|
67
|
-
setup(
|
|
68
|
-
let
|
|
68
|
+
setup(v, { emit: A }) {
|
|
69
|
+
let tt = v, j = A, nt = ee(() => import("./BlockPreviewCanvas-GZbr0ph5.js").then((e) => e.n)), { t: M, format: N } = ie(), P = C(ne, "SavedBlocksBrowserModal"), F = C(re, "SavedBlocksBrowserModal"), I = o(""), L = o(""), R = o(null), z = o(null), B = o(null), V = o(""), H = o(""), U = o(null), W = o("end"), G = g(() => {
|
|
69
70
|
let e = I.value.trim().toLowerCase(), t = L.value;
|
|
70
71
|
return P.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
|
|
71
|
-
}), K =
|
|
72
|
+
}), K = g(() => P.isLoading.value && P.savedBlocks.value.length === 0), rt = g(() => I.value.trim().length > 0 || L.value !== ""), q = g(() => R.value ? P.savedBlocks.value.find((e) => e.id === R.value) ?? null : null), it = g(() => {
|
|
72
73
|
let e = [{
|
|
73
74
|
value: "beginning",
|
|
74
75
|
label: M.savedBlocks.insertAtBeginning
|
|
@@ -84,13 +85,13 @@ var fe = {
|
|
|
84
85
|
value: "end",
|
|
85
86
|
label: M.savedBlocks.insertAtEnd
|
|
86
87
|
}), e;
|
|
87
|
-
}),
|
|
88
|
+
}), at = g(() => {
|
|
88
89
|
if (W.value === "end") return;
|
|
89
90
|
if (W.value === "beginning") return 0;
|
|
90
91
|
let e = F.content.value.blocks.findIndex((e) => e.id === W.value);
|
|
91
92
|
if (e !== -1) return e + 1;
|
|
92
93
|
});
|
|
93
|
-
|
|
94
|
+
n(() => tt.visible, (e) => {
|
|
94
95
|
if (e) {
|
|
95
96
|
I.value = "", L.value = "", R.value = null, z.value = null, B.value = null;
|
|
96
97
|
let e = F.state.selectedBlockId;
|
|
@@ -100,11 +101,11 @@ var fe = {
|
|
|
100
101
|
} else W.value = "end";
|
|
101
102
|
}
|
|
102
103
|
}, { immediate: !0 });
|
|
103
|
-
function
|
|
104
|
+
function ot(e) {
|
|
104
105
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
105
|
-
for (let r of e.content) if (!n.has(r.type) &&
|
|
106
|
+
for (let r of e.content) if (!n.has(r.type) && T[r.type] && (n.add(r.type), t.push({
|
|
106
107
|
type: r.type,
|
|
107
|
-
icon:
|
|
108
|
+
icon: T[r.type]
|
|
108
109
|
})), t.length >= 5) break;
|
|
109
110
|
return t;
|
|
110
111
|
}
|
|
@@ -114,23 +115,23 @@ var fe = {
|
|
|
114
115
|
}
|
|
115
116
|
function Y(e) {
|
|
116
117
|
let t = e.updatedAt ?? e.createdAt;
|
|
117
|
-
return t ?
|
|
118
|
+
return t ? ue(t, M.time, N) ?? "" : "";
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
+
function st(e) {
|
|
120
121
|
let t = e.updatedAt ?? e.createdAt;
|
|
121
122
|
if (!t) return "";
|
|
122
123
|
let n = new Date(t);
|
|
123
124
|
return Number.isNaN(n.getTime()) ? "" : n.toLocaleString();
|
|
124
125
|
}
|
|
125
|
-
async function
|
|
126
|
+
async function ct(e) {
|
|
126
127
|
try {
|
|
127
128
|
await P.remove(e), R.value === e && (R.value = null);
|
|
128
129
|
} finally {
|
|
129
130
|
z.value = null;
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
|
-
async function
|
|
133
|
-
P.canUpdateBlock(e) && (B.value = e.id, V.value = e.name, H.value = e.category ?? "", z.value = null, await
|
|
133
|
+
async function lt(e) {
|
|
134
|
+
P.canUpdateBlock(e) && (B.value = e.id, V.value = e.name, H.value = e.category ?? "", z.value = null, await a(), U.value?.focus(), U.value?.select());
|
|
134
135
|
}
|
|
135
136
|
function X() {
|
|
136
137
|
B.value = null, V.value = "", H.value = "";
|
|
@@ -148,172 +149,172 @@ var fe = {
|
|
|
148
149
|
X();
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
+
function ut(e, t) {
|
|
152
153
|
let n = e.currentTarget, r = e.relatedTarget;
|
|
153
154
|
r && n.contains(r) || Z(t);
|
|
154
155
|
}
|
|
155
156
|
function Q() {
|
|
156
|
-
q.value && j("insert", q.value,
|
|
157
|
+
q.value && j("insert", q.value, at.value);
|
|
157
158
|
}
|
|
158
159
|
function $() {
|
|
159
160
|
j("close");
|
|
160
161
|
}
|
|
161
|
-
function
|
|
162
|
+
function dt(e) {
|
|
162
163
|
B.value || (e.key === "Escape" && $(), e.key === "Enter" && q.value && (e.preventDefault(), Q()));
|
|
163
164
|
}
|
|
164
|
-
return (
|
|
165
|
-
visible:
|
|
165
|
+
return (n, a) => (d(), p(de, {
|
|
166
|
+
visible: v.visible,
|
|
166
167
|
onClose: $,
|
|
167
|
-
onKeydown:
|
|
168
|
+
onKeydown: dt
|
|
168
169
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
|
|
171
|
-
"aria-label":
|
|
172
|
-
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-1 tpl:transition-colors tpl:
|
|
170
|
+
default: te(() => [s("div", fe, [
|
|
171
|
+
s("div", pe, [s("h3", me, f(h(M).savedBlocks.browse), 1), s("button", {
|
|
172
|
+
"aria-label": h(M).savedBlocks.close,
|
|
173
|
+
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-1 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
|
|
173
174
|
onClick: $
|
|
174
|
-
}, [
|
|
175
|
+
}, [l(h(ce), {
|
|
175
176
|
size: 16,
|
|
176
177
|
"stroke-width": 2
|
|
177
178
|
})], 8, he)]),
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
s("div", ge, [s("div", _e, [
|
|
180
|
+
s("div", ve, [s("div", ye, [l(h(ae), {
|
|
180
181
|
size: 14,
|
|
181
182
|
"stroke-width": 2,
|
|
182
183
|
class: "tpl:pointer-events-none tpl:absolute tpl:left-3 tpl:top-1/2 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]"
|
|
183
|
-
}),
|
|
184
|
-
"onUpdate:modelValue":
|
|
184
|
+
}), e(s("input", {
|
|
185
|
+
"onUpdate:modelValue": a[0] ||= (e) => I.value = e,
|
|
185
186
|
type: "text",
|
|
186
|
-
placeholder:
|
|
187
|
+
placeholder: h(M).savedBlocks.search,
|
|
187
188
|
disabled: K.value,
|
|
188
189
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:pl-9 tpl:pr-3 tpl:text-sm tpl:outline-none tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
189
|
-
}, null, 8, be), [[
|
|
190
|
+
}, null, 8, be), [[y, I.value]])]), h(P).categories.value.length > 0 ? e((d(), c("select", {
|
|
190
191
|
key: 0,
|
|
191
|
-
"onUpdate:modelValue":
|
|
192
|
+
"onUpdate:modelValue": a[1] ||= (e) => L.value = e,
|
|
192
193
|
"data-testid": "saved-blocks-category-filter",
|
|
193
|
-
"aria-label":
|
|
194
|
+
"aria-label": h(M).savedBlocks.filterByCategory,
|
|
194
195
|
class: "tpl:h-8 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
195
|
-
}, [
|
|
196
|
+
}, [s("option", Se, f(h(M).savedBlocks.allCategories), 1), (d(!0), c(m, null, u(h(P).categories.value, (e) => (d(), c("option", {
|
|
196
197
|
key: e,
|
|
197
198
|
value: e
|
|
198
|
-
},
|
|
199
|
-
|
|
199
|
+
}, f(e), 9, Ce))), 128))], 8, xe)), [[x, L.value]]) : _("", !0)]),
|
|
200
|
+
s("datalist", we, [(d(!0), c(m, null, u(h(P).categories.value, (e) => (d(), c("option", {
|
|
200
201
|
key: e,
|
|
201
202
|
value: e
|
|
202
203
|
}, null, 8, Te))), 128))]),
|
|
203
|
-
|
|
204
|
+
s("div", E, [K.value ? (d(), c("div", {
|
|
204
205
|
key: 0,
|
|
205
206
|
"data-testid": "saved-blocks-loading",
|
|
206
207
|
class: "tpl:flex tpl:flex-col tpl:gap-1",
|
|
207
208
|
role: "status",
|
|
208
209
|
"aria-busy": "true",
|
|
209
|
-
"aria-label":
|
|
210
|
-
}, [(
|
|
210
|
+
"aria-label": h(M).savedBlocks.loading
|
|
211
|
+
}, [(d(), c(m, null, u(3, (e) => s("div", {
|
|
211
212
|
key: e,
|
|
212
213
|
"aria-hidden": "true",
|
|
213
214
|
class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
|
|
214
|
-
}, [...
|
|
215
|
+
}, [...a[7] ||= [s("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), s("div", { class: "tpl:mt-2 tpl:h-2.5 tpl:w-1/4 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1)]])), 64))], 8, D)) : G.value.length > 0 ? (d(), c("div", O, [(d(!0), c(m, null, u(G.value, (n) => (d(), c(m, { key: n.id }, [B.value === n.id ? (d(), c("div", {
|
|
215
216
|
key: 0,
|
|
216
217
|
class: "tpl:flex tpl:w-full tpl:flex-col tpl:gap-1 tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-primary)]",
|
|
217
218
|
style: { "background-color": "var(--tpl-primary-light)" },
|
|
218
|
-
onFocusout: (e) =>
|
|
219
|
-
}, [
|
|
219
|
+
onFocusout: (e) => ut(e, n.id)
|
|
220
|
+
}, [e(s("input", {
|
|
220
221
|
ref_for: !0,
|
|
221
222
|
ref: (e) => U.value = e,
|
|
222
|
-
"onUpdate:modelValue":
|
|
223
|
+
"onUpdate:modelValue": a[2] ||= (e) => V.value = e,
|
|
223
224
|
type: "text",
|
|
224
|
-
"aria-label":
|
|
225
|
+
"aria-label": h(M).savedBlocks.rename,
|
|
225
226
|
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
226
|
-
onKeydown: [
|
|
227
|
-
}, null, 40,
|
|
228
|
-
"onUpdate:modelValue":
|
|
227
|
+
onKeydown: [S(b((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), a[3] ||= S(b((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
228
|
+
}, null, 40, De), [[y, V.value]]), e(s("input", {
|
|
229
|
+
"onUpdate:modelValue": a[4] ||= (e) => H.value = e,
|
|
229
230
|
type: "text",
|
|
230
231
|
"data-testid": "saved-blocks-edit-category",
|
|
231
|
-
"aria-label":
|
|
232
|
-
placeholder:
|
|
232
|
+
"aria-label": h(M).savedBlocks.category,
|
|
233
|
+
placeholder: h(M).savedBlocks.categoryPlaceholder,
|
|
233
234
|
list: "tpl-saved-block-browser-categories",
|
|
234
235
|
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
235
|
-
onKeydown: [
|
|
236
|
-
}, null, 40,
|
|
236
|
+
onKeydown: [S(b((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), a[5] ||= S(b((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
237
|
+
}, null, 40, Oe), [[y, H.value]])], 40, Ee)) : (d(), c("button", {
|
|
237
238
|
key: 1,
|
|
238
239
|
type: "button",
|
|
239
240
|
"data-testid": "saved-block-card",
|
|
240
|
-
"aria-pressed": R.value ===
|
|
241
|
+
"aria-pressed": R.value === n.id,
|
|
241
242
|
class: "tpl:group/card tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
|
|
242
|
-
style:
|
|
243
|
-
borderColor: R.value ===
|
|
244
|
-
backgroundColor: R.value ===
|
|
243
|
+
style: r({
|
|
244
|
+
borderColor: R.value === n.id ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
245
|
+
backgroundColor: R.value === n.id ? "var(--tpl-primary-light)" : "transparent"
|
|
245
246
|
}),
|
|
246
|
-
onClick: (e) => R.value =
|
|
247
|
+
onClick: (e) => R.value = n.id
|
|
247
248
|
}, [
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
(
|
|
249
|
+
s("div", Ae, [s("span", je, f(n.name), 1), s("span", Me, f(h(N)(h(M).savedBlocks.blockCount, { count: n.content.length })), 1)]),
|
|
250
|
+
n.category ? (d(), c("div", Ne, [s("span", Pe, f(n.category), 1)])) : _("", !0),
|
|
251
|
+
s("div", Fe, [
|
|
252
|
+
(d(!0), c(m, null, u(ot(n), (e) => (d(), p(i(e.icon), {
|
|
252
253
|
key: e.type,
|
|
253
254
|
size: 14,
|
|
254
255
|
"stroke-width": 1.5,
|
|
255
256
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
256
257
|
}))), 128)),
|
|
257
|
-
J(
|
|
258
|
-
Y(
|
|
258
|
+
J(n) > 0 ? (d(), c("span", Ie, " +" + f(J(n)), 1)) : _("", !0),
|
|
259
|
+
Y(n) ? (d(), c("span", {
|
|
259
260
|
key: 1,
|
|
260
261
|
"data-testid": "saved-block-updated",
|
|
261
262
|
class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
|
|
262
|
-
title:
|
|
263
|
-
},
|
|
264
|
-
z.value ===
|
|
263
|
+
title: st(n)
|
|
264
|
+
}, f(Y(n)), 9, Le)) : _("", !0),
|
|
265
|
+
z.value === n.id ? (d(), c("button", {
|
|
265
266
|
key: 2,
|
|
266
|
-
"aria-label":
|
|
267
|
-
class: "tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:
|
|
267
|
+
"aria-label": h(M).savedBlocks.deleteConfirm,
|
|
268
|
+
class: "tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-danger)]",
|
|
268
269
|
style: { "background-color": "transparent" },
|
|
269
|
-
onClick:
|
|
270
|
-
},
|
|
270
|
+
onClick: b((e) => ct(n.id), ["stop"])
|
|
271
|
+
}, f(h(M).savedBlocks.deleteConfirm), 9, Re)) : (d(), c(m, { key: 3 }, [h(P).canUpdateBlock(n) ? (d(), c("button", {
|
|
271
272
|
key: 0,
|
|
272
|
-
class: "tpl-saved-block-rename-btn tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:
|
|
273
|
-
"aria-label":
|
|
274
|
-
title:
|
|
275
|
-
onClick:
|
|
276
|
-
}, [
|
|
273
|
+
class: "tpl-saved-block-rename-btn tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
|
|
274
|
+
"aria-label": h(M).savedBlocks.rename,
|
|
275
|
+
title: h(M).savedBlocks.rename,
|
|
276
|
+
onClick: b((e) => lt(n), ["stop"])
|
|
277
|
+
}, [l(h(oe), {
|
|
277
278
|
size: 12,
|
|
278
279
|
"stroke-width": 1.5
|
|
279
|
-
})], 8,
|
|
280
|
+
})], 8, ze)) : _("", !0), h(P).canDeleteBlock(n) ? (d(), c("button", {
|
|
280
281
|
key: 1,
|
|
281
|
-
class:
|
|
282
|
-
"aria-label":
|
|
283
|
-
title:
|
|
284
|
-
onClick:
|
|
285
|
-
}, [
|
|
282
|
+
class: t(["tpl-saved-block-delete-btn tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]", { "tpl:ml-auto": !h(P).canUpdateBlock(n) }]),
|
|
283
|
+
"aria-label": h(M).savedBlocks.delete,
|
|
284
|
+
title: h(M).savedBlocks.delete,
|
|
285
|
+
onClick: b((e) => z.value = n.id, ["stop"])
|
|
286
|
+
}, [l(h(se), {
|
|
286
287
|
size: 12,
|
|
287
288
|
"stroke-width": 1.5
|
|
288
|
-
})], 10,
|
|
289
|
+
})], 10, Be)) : _("", !0)], 64))
|
|
289
290
|
])
|
|
290
|
-
], 12,
|
|
291
|
+
], 12, ke))], 64))), 128))])) : (d(), c("div", Ve, [l(h(w), {
|
|
291
292
|
size: 32,
|
|
292
293
|
"stroke-width": 1,
|
|
293
294
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
294
|
-
}),
|
|
295
|
-
]),
|
|
295
|
+
}), rt.value ? (d(), c("p", He, f(h(M).savedBlocks.noResults), 1)) : (d(), c(m, { key: 1 }, [s("p", Ue, f(h(M).savedBlocks.empty), 1), s("p", We, f(h(M).savedBlocks.emptyHint), 1)], 64))]))])
|
|
296
|
+
]), s("div", Ge, [q.value ? (d(), c("div", Ke, [s("div", qe, [l(h(nt), { blocks: q.value.content }, null, 8, ["blocks"])])])) : (d(), c("div", Je, [l(h(w), {
|
|
296
297
|
size: 32,
|
|
297
298
|
"stroke-width": 1,
|
|
298
299
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
299
|
-
}),
|
|
300
|
-
|
|
301
|
-
"onUpdate:modelValue":
|
|
300
|
+
}), s("p", Ye, f(h(M).savedBlocks.selectToPreview), 1)]))])]),
|
|
301
|
+
s("div", Xe, [s("div", Ze, [s("label", Qe, f(h(M).savedBlocks.insertPosition), 1), e(s("select", {
|
|
302
|
+
"onUpdate:modelValue": a[6] ||= (e) => W.value = e,
|
|
302
303
|
class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
303
|
-
}, [(
|
|
304
|
+
}, [(d(!0), c(m, null, u(it.value, (e) => (d(), c("option", {
|
|
304
305
|
key: e.value,
|
|
305
306
|
value: e.value
|
|
306
|
-
},
|
|
307
|
+
}, f(e.label), 9, $e))), 128))], 512), [[x, W.value]])]), s("div", k, [s("button", {
|
|
307
308
|
type: "button",
|
|
308
309
|
"data-testid": "saved-blocks-browser-close",
|
|
309
|
-
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-
|
|
310
|
+
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-[var(--tpl-shadow-sm)] tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]",
|
|
310
311
|
onClick: $
|
|
311
|
-
},
|
|
312
|
+
}, f(h(M).savedBlocks.close), 1), s("button", {
|
|
312
313
|
type: "button",
|
|
313
|
-
class:
|
|
314
|
+
class: t(h(le)),
|
|
314
315
|
disabled: !q.value,
|
|
315
316
|
onClick: Q
|
|
316
|
-
},
|
|
317
|
+
}, f(h(M).savedBlocks.insert), 11, et)])])
|
|
317
318
|
])]),
|
|
318
319
|
_: 1
|
|
319
320
|
}, 8, ["visible"]));
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as e, d as t, k as n, l as r, r as i, rt as a, u as o, v as s } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region src/components/SavedBlocksPanels.vue
|
|
4
4
|
var c = /* @__PURE__ */ s({
|
|
5
5
|
__name: "SavedBlocksPanels",
|
|
6
6
|
props: { feature: {} },
|
|
7
7
|
setup(s) {
|
|
8
|
-
let c = s, l =
|
|
8
|
+
let c = s, l = e(() => import("./SavedBlocksPickBar-BsFubArH.js")), u = e(() => import("./SaveBlockDialog-C_QvYAeL.js")), d = e(() => import("./SavedBlocksBrowserModal-CefWWcdT.js"));
|
|
9
9
|
function f(e, t) {
|
|
10
10
|
c.feature.insert(e, t);
|
|
11
11
|
}
|
|
12
|
-
return (
|
|
13
|
-
s.feature.isPicking.value ? (
|
|
12
|
+
return (e, c) => (n(), t(i, null, [
|
|
13
|
+
s.feature.isPicking.value ? (n(), r(a(l), {
|
|
14
14
|
key: 0,
|
|
15
15
|
count: s.feature.pickedCount.value,
|
|
16
16
|
onConfirm: c[0] ||= (e) => s.feature.confirmPicking(),
|
|
17
17
|
onCancel: c[1] ||= (e) => s.feature.cancelPicking()
|
|
18
|
-
}, null, 8, ["count"])) :
|
|
19
|
-
s.feature.isSaveDialogOpen.value ? (
|
|
18
|
+
}, null, 8, ["count"])) : o("", !0),
|
|
19
|
+
s.feature.isSaveDialogOpen.value ? (n(), r(a(u), {
|
|
20
20
|
key: 1,
|
|
21
21
|
visible: s.feature.isSaveDialogOpen.value,
|
|
22
22
|
"picked-ids": [...s.feature.pickedIds.value],
|
|
23
23
|
onClose: c[2] ||= (e) => s.feature.closeSaveDialog(),
|
|
24
24
|
onSaved: c[3] ||= (e) => s.feature.refresh()
|
|
25
|
-
}, null, 8, ["visible", "picked-ids"])) :
|
|
26
|
-
s.feature.isBrowserOpen.value ? (
|
|
25
|
+
}, null, 8, ["visible", "picked-ids"])) : o("", !0),
|
|
26
|
+
s.feature.isBrowserOpen.value ? (n(), r(a(d), {
|
|
27
27
|
key: 2,
|
|
28
28
|
visible: s.feature.isBrowserOpen.value,
|
|
29
29
|
onClose: c[4] ||= (e) => s.feature.closeBrowser(),
|
|
30
30
|
onInsert: f
|
|
31
|
-
}, null, 8, ["visible"])) :
|
|
31
|
+
}, null, 8, ["visible"])) : o("", !0)
|
|
32
32
|
], 64));
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { c as default };
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=SavedBlocksPanels-e4HyTZ8v.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as l } from "./useI18n-
|
|
4
|
-
import { t as u } from "./x-
|
|
1
|
+
import { c as e, d as t, g as n, h as r, k as i, kt as a, rt as o, v as s } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
|
|
2
|
+
import { L as c } from "./useEditorCore-B-kONNRw.js";
|
|
3
|
+
import { t as l } from "./useI18n-BfXff_Sy.js";
|
|
4
|
+
import { t as u } from "./x-BjTlFqRv.js";
|
|
5
5
|
//#region src/components/SavedBlocksPickBar.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var d = {
|
|
7
7
|
"data-testid": "saved-blocks-pick-bar",
|
|
@@ -10,42 +10,42 @@ var d = {
|
|
|
10
10
|
}, f = ["aria-label"], p = { class: "tpl:flex tpl:flex-col" }, m = {
|
|
11
11
|
"data-testid": "saved-blocks-pick-count",
|
|
12
12
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]"
|
|
13
|
-
}, h = { class: "tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, g = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, _ = ["disabled"], v = /* @__PURE__ */
|
|
13
|
+
}, h = { class: "tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, g = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, _ = ["disabled"], v = /* @__PURE__ */ s({
|
|
14
14
|
__name: "SavedBlocksPickBar",
|
|
15
15
|
props: { count: {} },
|
|
16
16
|
emits: ["confirm", "cancel"],
|
|
17
|
-
setup(
|
|
18
|
-
let y =
|
|
17
|
+
setup(s, { emit: v }) {
|
|
18
|
+
let y = s, b = v, { t: x, format: S } = l();
|
|
19
19
|
function C() {
|
|
20
20
|
y.count > 0 && b("confirm");
|
|
21
21
|
}
|
|
22
|
-
return (l, v) => (
|
|
22
|
+
return (l, v) => (i(), t("div", d, [e("div", {
|
|
23
23
|
role: "toolbar",
|
|
24
|
-
"aria-label":
|
|
24
|
+
"aria-label": o(x).savedBlocks.pickToolbar,
|
|
25
25
|
class: "tpl-scale-in tpl:flex tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-lg)] tpl:border tpl:py-2 tpl:pl-4 tpl:pr-2 tpl:border-[var(--tpl-border)]",
|
|
26
26
|
style: {
|
|
27
27
|
"pointer-events": "auto",
|
|
28
28
|
"background-color": "var(--tpl-bg-elevated)",
|
|
29
29
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
30
30
|
}
|
|
31
|
-
}, [
|
|
31
|
+
}, [e("div", p, [e("span", m, a(o(S)(o(x).savedBlocks.pickCount, { count: s.count })), 1), e("span", h, a(o(x).savedBlocks.pickHint), 1)]), e("div", g, [e("button", {
|
|
32
32
|
type: "button",
|
|
33
33
|
"data-testid": "saved-blocks-pick-cancel",
|
|
34
|
-
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:
|
|
34
|
+
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]",
|
|
35
35
|
onClick: v[0] ||= (e) => b("cancel")
|
|
36
|
-
}, [
|
|
36
|
+
}, [n(o(u), {
|
|
37
37
|
size: 13,
|
|
38
38
|
"stroke-width": 2
|
|
39
|
-
}),
|
|
39
|
+
}), r(" " + a(o(x).savedBlocks.cancel), 1)]), e("button", {
|
|
40
40
|
type: "button",
|
|
41
41
|
"data-testid": "saved-blocks-pick-confirm",
|
|
42
|
-
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:px-2.5 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:
|
|
43
|
-
disabled:
|
|
42
|
+
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:px-2.5 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
|
|
43
|
+
disabled: s.count === 0,
|
|
44
44
|
onClick: C
|
|
45
|
-
}, [
|
|
45
|
+
}, [n(o(c), {
|
|
46
46
|
size: 13,
|
|
47
47
|
"stroke-width": 2
|
|
48
|
-
}),
|
|
48
|
+
}), r(" " + a(o(x).savedBlocks.save), 1)], 8, _)])], 8, f)]));
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|