@templatical/editor 0.60.4 → 0.62.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/LICENSE +21 -109
- package/README.md +3 -3
- package/dist/{AiAltTextPopover-DSA1wiiW.js → AiAltTextPopover-C1Ike67q.js} +3 -4
- package/dist/{AiAltTextReview-B9-vfzCj.js → AiAltTextReview-BjT7_PoG.js} +2 -3
- package/dist/{AiChatPanel-CjUnhJGB.js → AiChatPanel-C82fJozf.js} +165 -166
- package/dist/{AiPanels-DwI9KjjI.js → AiPanels-sam_GMNs.js} +1 -1
- package/dist/{AiRewriteMenu-Bh1cIX8F.js → AiRewriteMenu-CpBcT6QL.js} +3 -4
- package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
- package/dist/{BlockPreviewCanvas-C_N6f_FS.js → BlockPreviewCanvas-BHRmnq0w.js} +6 -6
- package/dist/{CollaborationNotices-BM35YG72.js → CollaborationNotices-Cmc7Ziuf.js} +1 -1
- package/dist/{CollaboratorBar-DMsEOndt.js → CollaboratorBar-DVtWefk1.js} +1 -1
- package/dist/{CommentsPanel-BSLk23YP.js → CommentsPanel-BSt22Zw9.js} +1 -1
- package/dist/{CommentsSidebar-L-DgP_kM.js → CommentsSidebar-C8qbxjyN.js} +177 -184
- package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
- package/dist/{CountdownToolbar-B6erqTbz.js → CountdownToolbar-CJbPEVV5.js} +4 -4
- package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
- package/dist/{LanguageMenu-DsfCHdVi.js → LanguageMenu-BFOEQEPy.js} +124 -125
- package/dist/{LocaleNotices-BxR3xcLl.js → LocaleNotices-24UYFxo2.js} +12 -13
- package/dist/{LogicTagInsertButton-BzEZUTRZ.js → LogicTagInsertButton-DdaafrjI.js} +95 -96
- package/dist/{MergeTagInput-By2FSStk.js → MergeTagInput-BXM6-eF-.js} +1 -1
- package/dist/{MergeTagModeToggle-DtjOZhoD.js → MergeTagModeToggle-ooA_Ytfq.js} +2 -3
- package/dist/{MergeTagTextarea-q6eeDD2l.js → MergeTagTextarea-B86MPY89.js} +14 -15
- package/dist/{ParagraphEditor-25SNi_8O.js → ParagraphEditor-C15Glzy_.js} +78 -79
- package/dist/{RestoreVersionDialog-BXtCxJF1.js → RestoreVersionDialog-C13Bo4b0.js} +2 -2
- package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
- package/dist/{SaveBlockDialog-k1lxEBVW.js → SaveBlockDialog-lm_1-2w2.js} +23 -24
- package/dist/{SavedBlocksBrowserModal-CV-8mDPj.js → SavedBlocksBrowserModal-BjUZG5_S.js} +8 -9
- package/dist/{SavedBlocksPanels-9nZj1jG_.js → SavedBlocksPanels-Bj3LAXcL.js} +1 -1
- package/dist/{SavedBlocksPickBar-Dy6NN9tm.js → SavedBlocksPickBar-DOTr0Imx.js} +2 -2
- package/dist/{TemplateSettings-DWxdUdM5.js → TemplateSettings-Z-i-_xF5.js} +19 -20
- package/dist/{TestEmailModal-BAkkZTaZ.js → TestEmailModal-ClEnoNEB.js} +17 -18
- package/dist/{TestEmailPanel-ccT2E3em.js → TestEmailPanel-CVmrt-d9.js} +1 -1
- package/dist/{TitleEditor-B19dYnER.js → TitleEditor-BHZF5C6q.js} +8 -9
- package/dist/{Toolbar-DxlZq_36.js → Toolbar-bwAdFK4A.js} +217 -219
- package/dist/{TplModal-Bp2qPmQw.js → TplModal-QWmSO1nR.js} +4 -4
- package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
- package/dist/{VersionHistoryPanels-wAVDmhnP.js → VersionHistoryPanels-D82hgc2v.js} +1 -1
- package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
- package/dist/{WrapperBlock-DHnD6Exl.js → WrapperBlock-32v93A9w.js} +4 -4
- package/dist/{blockTypeIcons-C691ZY1l.js → blockTypeIcons-C1S2wVx8.js} +4 -4
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-C8N05sCU.js → ca-BIseSbs-.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js → AiAltTextPopover-mDx_knAl.js} +4 -5
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js.map → AiAltTextPopover-mDx_knAl.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js → AiAltTextReview-Dmg8iVWD.js} +3 -4
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js.map → AiAltTextReview-Dmg8iVWD.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DTYmFRwb.js → AiChatPanel-CEDr_x8G.js} +147 -148
- package/dist/cdn/chunks/AiChatPanel-CEDr_x8G.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js → AiPanels-qJgLTYPs.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js → AiRewriteMenu-2a9WjizC.js} +4 -5
- package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js.map → AiRewriteMenu-2a9WjizC.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js → BlockIssueBadge-D87CYoPw.js} +3 -4
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js.map → BlockIssueBadge-D87CYoPw.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js → BlockPreviewCanvas-DDDKuWJz.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js.map → BlockPreviewCanvas-DDDKuWJz.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js → CollaborationNotices-DyzhN_Ns.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js.map → CollaborationNotices-DyzhN_Ns.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js → CollaboratorBar-bNFuQxxP.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js.map → CollaboratorBar-bNFuQxxP.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js → CommentsPanel-D-D2qsS6.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-C81N5Hwr.js → CommentsSidebar-CCVp8M2T.js} +163 -170
- package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js → CountdownBlock-5hUzymeP.js} +4 -5
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js.map → CountdownBlock-5hUzymeP.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js → CountdownToolbar-DaGxwKfG.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js.map → CountdownToolbar-DaGxwKfG.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DgxiS3hF.js → IssuesPanel-DQQo1B1z.js} +10 -11
- package/dist/cdn/chunks/IssuesPanel-DQQo1B1z.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-CJp7XdfG.js → LanguageMenu-2Er64H2b.js} +106 -107
- package/dist/cdn/chunks/LanguageMenu-2Er64H2b.js.map +1 -0
- package/dist/cdn/chunks/{LocaleNotices-D5vZzcUj.js → LocaleNotices-DSfOyyyf.js} +13 -14
- package/dist/cdn/chunks/LocaleNotices-DSfOyyyf.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js → LogicTagInsertButton-CumMM1rP.js} +7 -8
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js.map → LogicTagInsertButton-CumMM1rP.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js → MergeTagInput-Dm_QiG96.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js.map → MergeTagInput-Dm_QiG96.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js → MergeTagModeToggle-Bir7lkLe.js} +3 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js.map → MergeTagModeToggle-Bir7lkLe.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DMXZgGUF.js → MergeTagTextarea-B_IFeWfZ.js} +15 -16
- package/dist/cdn/chunks/MergeTagTextarea-B_IFeWfZ.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js → ParagraphEditor-CWjMxuy0.js} +135 -136
- package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js.map → ParagraphEditor-CWjMxuy0.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js → RestoreVersionDialog-BsfulSK7.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js.map → RestoreVersionDialog-BsfulSK7.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js → RichTextEditorContent-CuvFVxEq.js} +6 -7
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js.map → RichTextEditorContent-CuvFVxEq.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js → SaveBlockDialog-8zxJlHw2.js} +25 -26
- package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js.map → SaveBlockDialog-8zxJlHw2.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js → SavedBlocksBrowserModal-DtaGW2H4.js} +9 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js.map → SavedBlocksBrowserModal-DtaGW2H4.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js → SavedBlocksPanels-CtDhdbiD.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js.map → SavedBlocksPanels-CtDhdbiD.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js → SavedBlocksPickBar-DovcCaoW.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js.map → SavedBlocksPickBar-DovcCaoW.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js → TemplateSettings-B8Ch5ps8.js} +20 -21
- package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js → TestEmailModal-D1EuQSgA.js} +16 -17
- package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js.map → TestEmailModal-D1EuQSgA.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js → TestEmailPanel-0iG-utN7.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js.map → TestEmailPanel-0iG-utN7.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js → TitleEditor-k2vSwKxN.js} +17 -18
- package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js.map → TitleEditor-k2vSwKxN.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-BxzyS69X.js → Toolbar-BnTSuZQb.js} +307 -309
- package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js → TplModal-iRdN04Sa.js} +5 -5
- package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js.map → TplModal-iRdN04Sa.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js → VersionHistoryMenu-DlPr3twf.js} +7 -8
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js.map → VersionHistoryMenu-DlPr3twf.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js → VersionHistoryPanels-Bw5UHEvo.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js.map → VersionHistoryPanels-Bw5UHEvo.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C1H_fYAr.js → VersionPreviewBanner-anJgZOcw.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-anJgZOcw.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js → WrapperBlock-CFjCtyvx.js} +5 -5
- package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js.map → WrapperBlock-CFjCtyvx.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C8N05sCU.js → ca-BIseSbs-.js} +2 -3
- package/dist/cdn/chunks/{ca-C8N05sCU.js.map → ca-BIseSbs-.js.map} +1 -1
- package/dist/cdn/chunks/{composables-C77dGo-I.js → composables-Nir0umYc.js} +551 -571
- package/dist/cdn/chunks/composables-Nir0umYc.js.map +1 -0
- package/dist/{da-Dno_4nGy.js → cdn/chunks/da-DN46iRXS.js} +3 -2
- package/dist/cdn/chunks/{da-Dno_4nGy.js.map → da-DN46iRXS.js.map} +1 -1
- package/dist/{de-DRR5JSkh.js → cdn/chunks/de-Dyk8PPCm.js} +3 -2
- package/dist/cdn/chunks/{de-DRR5JSkh.js.map → de-Dyk8PPCm.js.map} +1 -1
- package/dist/{en-DAcLbbpg.js → cdn/chunks/en-BzMbMmgz.js} +3 -2
- package/dist/cdn/chunks/{en-DAcLbbpg.js.map → en-BzMbMmgz.js.map} +1 -1
- package/dist/{es-BcEQLQxe.js → cdn/chunks/es-KSHEXYyf.js} +3 -2
- package/dist/cdn/chunks/{es-BcEQLQxe.js.map → es-KSHEXYyf.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js → extensions-Br2hHeiR.js} +5 -5
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js.map → extensions-Br2hHeiR.js.map} +1 -1
- package/dist/{fr-CNQG7ESr.js → cdn/chunks/fr-DtKHfZyk.js} +3 -2
- package/dist/cdn/chunks/{fr-CNQG7ESr.js.map → fr-DtKHfZyk.js.map} +1 -1
- package/dist/{ja-CMxWxqSH.js → cdn/chunks/ja-DUSaDVPA.js} +3 -2
- package/dist/cdn/chunks/{ja-CMxWxqSH.js.map → ja-DUSaDVPA.js.map} +1 -1
- package/dist/{nl-BjyYZDkC.js → cdn/chunks/nl-DQbuxzD6.js} +3 -2
- package/dist/cdn/chunks/{nl-BjyYZDkC.js.map → nl-DQbuxzD6.js.map} +1 -1
- package/dist/{pt-BR-DC2A3C0v.js → cdn/chunks/pt-BR-CxpxBtvc.js} +3 -2
- package/dist/cdn/chunks/{pt-BR-DC2A3C0v.js.map → pt-BR-CxpxBtvc.js.map} +1 -1
- package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
- package/dist/cdn/chunks/{socialIcons-CSe4YJ52.js → socialIcons-CXQfKLUV.js} +156 -136
- package/dist/cdn/chunks/socialIcons-CXQfKLUV.js.map +1 -0
- package/dist/cdn/chunks/{src-1MSPRtI8.js → src-9e0wFfHH.js} +4 -2
- package/dist/cdn/chunks/src-9e0wFfHH.js.map +1 -0
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -1
- package/dist/cdn/chunks/{src-edESkGqO.js → src-C9jjLNMg.js} +2 -2
- package/dist/cdn/chunks/{src-edESkGqO.js.map → src-C9jjLNMg.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DDhueoan.js → tiptap-DLW5XdqI.js} +2 -2
- package/dist/cdn/chunks/{tiptap-DDhueoan.js.map → tiptap-DLW5XdqI.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js → useEditorRoot-BPVxLYFD.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js.map → useEditorRoot-BPVxLYFD.js.map} +1 -1
- package/dist/cdn/chunks/useI18n-DwP1ksBW.js +24 -0
- package/dist/cdn/chunks/useI18n-DwP1ksBW.js.map +1 -0
- package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js +41 -0
- package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js → useLogicTag-gphGbQfy.js} +3 -3
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js.map → useLogicTag-gphGbQfy.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js → useMergeTag-QM-tkBc6.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js.map → useMergeTag-QM-tkBc6.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js → usePopoverPosition-Cg8LR0W4.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js.map → usePopoverPosition-Cg8LR0W4.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js → useScrollToBlock-CS7zo4oQ.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js.map → useScrollToBlock-CS7zo4oQ.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +910 -1006
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-Bu_OmyjT.js → composables-6SKZrQs-.js} +1335 -1355
- package/dist/{cdn/chunks/da-Dno_4nGy.js → da-DN46iRXS.js} +1 -4
- package/dist/{cdn/chunks/de-DRR5JSkh.js → de-Dyk8PPCm.js} +1 -4
- package/dist/{cdn/chunks/en-DAcLbbpg.js → en-BzMbMmgz.js} +1 -4
- package/dist/{cdn/chunks/es-BcEQLQxe.js → es-KSHEXYyf.js} +1 -4
- package/dist/{extensions-zHf8YFRw.js → extensions-D74nAP73.js} +3 -3
- package/dist/{cdn/chunks/fr-CNQG7ESr.js → fr-DtKHfZyk.js} +1 -4
- package/dist/index.d.ts +38 -406
- package/dist/{cdn/chunks/ja-CMxWxqSH.js → ja-DUSaDVPA.js} +1 -4
- package/dist/{cdn/chunks/nl-BjyYZDkC.js → nl-DQbuxzD6.js} +1 -4
- package/dist/{cdn/chunks/pt-BR-DC2A3C0v.js → pt-BR-CxpxBtvc.js} +1 -4
- package/dist/{socialIcons-mWE33bOn.js → socialIcons-K89pe-h2.js} +84 -64
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1087 -1183
- package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
- package/dist/useI18n-B05qsAsl.js +22 -0
- package/dist/useLanguageName-CnpG7FD5.js +39 -0
- package/dist/{useLogicTag-K5CPoMTk.js → useLogicTag-DSa1si4o.js} +2 -2
- package/dist/{useMergeTag-tsU_Sw2x.js → useMergeTag-DwxbvRZI.js} +2 -2
- package/dist/{usePopoverPosition-DF0ZYH7g.js → usePopoverPosition-B8CXTr8v.js} +1 -1
- package/dist/{useScrollToBlock-eZXiGa8o.js → useScrollToBlock-ZZBBGFan.js} +1 -1
- package/package.json +12 -14
- package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
- package/dist/CloudPanels-BS49EsuN.js +0 -167
- package/dist/cdn/chunks/AiChatPanel-DTYmFRwb.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js +0 -24
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-D4dslsyk.js +0 -167
- package/dist/cdn/chunks/CloudPanels-D4dslsyk.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-C81N5Hwr.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-CJp7XdfG.js.map +0 -1
- package/dist/cdn/chunks/LocaleNotices-D5vZzcUj.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-DMXZgGUF.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BxzyS69X.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
- package/dist/cdn/chunks/composables-C77dGo-I.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js +0 -1405
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js.map +0 -1
- package/dist/cdn/chunks/de-6M4JoHoD.js +0 -21
- package/dist/cdn/chunks/de-6M4JoHoD.js.map +0 -1
- package/dist/cdn/chunks/en-FzUuJ8HW.js +0 -21
- package/dist/cdn/chunks/en-FzUuJ8HW.js.map +0 -1
- package/dist/cdn/chunks/keys-ywH4jHJ2.js +0 -11
- package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +0 -1
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +0 -12
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +0 -1
- package/dist/cdn/chunks/logger-CqQTfJGx.js +0 -26
- package/dist/cdn/chunks/logger-CqQTfJGx.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js +0 -22
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js +0 -21
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js.map +0 -1
- package/dist/cdn/chunks/pusher-x9rNqzon.js +0 -2473
- package/dist/cdn/chunks/pusher-x9rNqzon.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-QGRDbDUS.js +0 -19
- package/dist/cdn/chunks/socialIcons-CSe4YJ52.js.map +0 -1
- package/dist/cdn/chunks/src-1MSPRtI8.js.map +0 -1
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js +0 -24
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js.map +0 -1
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js +0 -18
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js.map +0 -1
- package/dist/createCloudRuntime-CiEo0wkr.js +0 -1389
- package/dist/de-6M4JoHoD.js +0 -19
- package/dist/en-FzUuJ8HW.js +0 -19
- package/dist/keys-B4DimcgX.js +0 -9
- package/dist/languageName-DEEOhDWI.js +0 -10
- package/dist/logger-BOu7oEtk.js +0 -24
- package/dist/preRenderCustomBlocks-6CLw2rP6.js +0 -20
- package/dist/pt-BR-Bp92Fc6J.js +0 -19
- package/dist/useCloudI18n-BnuOL1YS.js +0 -22
- package/dist/useI18n-Cx9W7OWb.js +0 -16
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Ft as e, M as t, P as n, Pt as r, c as i, ct as a, d as o, et as s, f as c, l, r as u, y as d } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
2
|
import { g as f } from "./dist-A328tG0Z.js";
|
|
3
|
-
import {
|
|
4
|
-
import { b as m, ut as h } from "./keys-B4DimcgX.js";
|
|
3
|
+
import { lt as p, t as m, y as h } from "./useI18n-B05qsAsl.js";
|
|
5
4
|
// src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
5
|
var g = {
|
|
7
6
|
key: 0,
|
|
@@ -16,7 +15,7 @@ var g = {
|
|
|
16
15
|
viewport: {}
|
|
17
16
|
},
|
|
18
17
|
setup(d) {
|
|
19
|
-
let y = d, { t: b } =
|
|
18
|
+
let y = d, { t: b } = m(), x = s(Date.now());
|
|
20
19
|
f(() => {
|
|
21
20
|
x.value = Date.now();
|
|
22
21
|
}, 1e3);
|
|
@@ -53,7 +52,7 @@ var g = {
|
|
|
53
52
|
value: String(w.value.seconds).padStart(2, "0"),
|
|
54
53
|
label: y.block.labelSeconds
|
|
55
54
|
}), e;
|
|
56
|
-
}), E = h
|
|
55
|
+
}), E = p(h, "CountdownBlock"), D = i(() => y.block.fontFamily ? E.resolveFontFamily(y.block.fontFamily) : "inherit"), O = i(() => ({
|
|
57
56
|
backgroundColor: y.block.backgroundColor,
|
|
58
57
|
fontFamily: D.value
|
|
59
58
|
})), k = i(() => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Ft as e, M as t, Mt as n, P as r, U as i, _ as a, c as o, ct as s, f as c, l, r as u, u as d, y as f } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
-
import { c as p } from "./LogicTagInsertButton-
|
|
3
|
-
import { n as m, r as h } from "./Toolbar-
|
|
4
|
-
import { n as g } from "./MergeTagTextarea-
|
|
2
|
+
import { c as p } from "./LogicTagInsertButton-DdaafrjI.js";
|
|
3
|
+
import { n as m, r as h } from "./Toolbar-bwAdFK4A.js";
|
|
4
|
+
import { n as g } from "./MergeTagTextarea-B86MPY89.js";
|
|
5
5
|
import { t as _ } from "./ToggleSwitch-BIPdFWUr.js";
|
|
6
|
-
import { t as v } from "./useI18n-
|
|
6
|
+
import { t as v } from "./useI18n-B05qsAsl.js";
|
|
7
7
|
import { h as y } from "./styleConstants-Br6CIRoS.js";
|
|
8
8
|
import { t as b } from "./withCurrentFont-C-_IYTqP.js";
|
|
9
9
|
// src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as e, Ft as t, L as n, M as r, Mt as ee, O as i, P as te, _ as a, c as o, ct as s, d as c, et as l, f as u, g as d, j as ne, l as f, r as p, u as m, v as h, w as g, y as re } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
-
import { a as ie, n as ae, o as oe, r as se, t as ce } from "./useScrollToBlock-
|
|
2
|
+
import { a as ie, n as ae, o as oe, r as se, t as ce } from "./useScrollToBlock-ZZBBGFan.js";
|
|
3
3
|
import { t as le } from "./circle-exclamation-point-BCx1tR91.js";
|
|
4
4
|
import { t as ue } from "./triangle-exclamation-point-Bi7ZKTZU.js";
|
|
5
5
|
import { t as de } from "./info-DXij4QjB.js";
|
|
@@ -7,8 +7,7 @@ import { t as _ } from "./createLucideIcon-BKeRiObH.js";
|
|
|
7
7
|
import { t as fe } from "./check-8ZykoWzl.js";
|
|
8
8
|
import { t as v } from "./sparkles-zWGR8hrs.js";
|
|
9
9
|
import { t as pe } from "./square--3H462TJ.js";
|
|
10
|
-
import {
|
|
11
|
-
import { D as he, n as ge, nt as _e, st as ve, tt as ye, v as be } from "./keys-B4DimcgX.js";
|
|
10
|
+
import { E as me, _ as he, et as ge, ot as _e, r as ve, t as ye, tt as be } from "./useI18n-B05qsAsl.js";
|
|
12
11
|
var xe = _({
|
|
13
12
|
name: "arrow-right",
|
|
14
13
|
size: 24,
|
|
@@ -62,7 +61,7 @@ var xe = _({
|
|
|
62
61
|
}, y = /* @__PURE__ */ re({
|
|
63
62
|
__name: "IssuesPanel",
|
|
64
63
|
setup(re) {
|
|
65
|
-
let _ = h(() => import("./AiAltTextPopover-
|
|
64
|
+
let _ = h(() => import("./AiAltTextPopover-C1Ike67q.js")), y = h(() => import("./AiAltTextReview-BjT7_PoG.js")), b = l(null), x = l(null);
|
|
66
65
|
function Ye() {
|
|
67
66
|
j && !j.busy.value && (O(), b.value = [...Q.value]);
|
|
68
67
|
}
|
|
@@ -90,7 +89,7 @@ var xe = _({
|
|
|
90
89
|
function Qe(e, t) {
|
|
91
90
|
D(e) && (w.value = t);
|
|
92
91
|
}
|
|
93
|
-
let { t: k, format: A } =
|
|
92
|
+
let { t: k, format: A } = ye(), j = g(ve, null), M = g(be, null), N = g(he, null), P = g(ge, null), $e = g(_e, "en"), et = ce(), tt = g(me, null), nt = o(() => !!P && P.canRenderHtml() && P.options.disabled !== !0 && P.options.compatibility !== !1 && P.options.compatibility?.rules?.["compat.gmail-clipping"] !== "off"), F = l(!1), I = l(null), L = l(null), R = l(""), z = l(!1), B = 0, V = !1;
|
|
94
93
|
N && e(N.content, () => {
|
|
95
94
|
B++, I.value !== null && (z.value = !0);
|
|
96
95
|
}, { deep: !0 }), ne(() => {
|
|
@@ -2,21 +2,20 @@ import { B as e, Ft as t, M as n, Mt as r, O as i, P as a, U as ee, _ as o, c as
|
|
|
2
2
|
import { t as te } from "./dist-B6ptxfPo.js";
|
|
3
3
|
import { t as v } from "./triangle-exclamation-point-Bi7ZKTZU.js";
|
|
4
4
|
import { t as y } from "./createLucideIcon-BKeRiObH.js";
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { Ft as
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { E as pe, h as me, st as he, t as ge } from "./keys-B4DimcgX.js";
|
|
5
|
+
import { t as b } from "./check-8ZykoWzl.js";
|
|
6
|
+
import { t as ne } from "./chevron-down-D_CUJHwi.js";
|
|
7
|
+
import { t as re } from "./chevron-right-B2WYkQtG.js";
|
|
8
|
+
import { t as ie } from "./plus-PzFvtj-Z.js";
|
|
9
|
+
import { t as ae } from "./trash-CJsobpw0.js";
|
|
10
|
+
import { Ft as oe, It as se, at as ce, ft as le, ot as ue } from "./dist-DX_IQgcU.js";
|
|
11
|
+
import { T as de, m as fe, n as pe, ot as me, t as he } from "./useI18n-B05qsAsl.js";
|
|
12
|
+
import { t as ge } from "./useLocalizedDisplay-DfiE-KjV.js";
|
|
14
13
|
import { t as x } from "./plural-CyxrJXL1.js";
|
|
15
|
-
import { t as
|
|
16
|
-
import { C as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
var
|
|
14
|
+
import { t as _e } from "./useLanguageName-CnpG7FD5.js";
|
|
15
|
+
import { C as ve, b as ye, f as be, u as xe, w as Se } from "./styleConstants-Br6CIRoS.js";
|
|
16
|
+
import { t as Ce } from "./TplModal-QWmSO1nR.js";
|
|
17
|
+
import { t as S } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
18
|
+
var we = y({
|
|
20
19
|
name: "arrow-up-to-line",
|
|
21
20
|
size: 24,
|
|
22
21
|
node: [
|
|
@@ -33,7 +32,7 @@ var Ce = y({
|
|
|
33
32
|
key: "1akyts"
|
|
34
33
|
}]
|
|
35
34
|
]
|
|
36
|
-
}),
|
|
35
|
+
}), Te = y({
|
|
37
36
|
name: "ellipsis",
|
|
38
37
|
size: 24,
|
|
39
38
|
node: [
|
|
@@ -57,87 +56,87 @@ var Ce = y({
|
|
|
57
56
|
}]
|
|
58
57
|
],
|
|
59
58
|
aliases: ["more-horizontal"]
|
|
60
|
-
}),
|
|
59
|
+
}), Ee = [
|
|
61
60
|
"aria-expanded",
|
|
62
61
|
"title",
|
|
63
62
|
"aria-label"
|
|
64
|
-
],
|
|
63
|
+
], De = { class: "tpl-language-name" }, Oe = {
|
|
65
64
|
class: "tpl-language-tag tpl:truncate",
|
|
66
65
|
"aria-hidden": "true"
|
|
67
|
-
},
|
|
66
|
+
}, ke = { class: "tpl-language-count tpl:shrink-0 tpl:tabular-nums" }, Ae = ["aria-label"], je = { class: "tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Me = { class: "tpl:max-h-64 tpl:overflow-y-auto" }, Ne = ["data-active"], Pe = [
|
|
68
67
|
"aria-checked",
|
|
69
68
|
"data-testid",
|
|
70
69
|
"onClick"
|
|
71
|
-
],
|
|
70
|
+
], Fe = { class: "tpl:flex tpl:w-3 tpl:shrink-0" }, Ie = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, Le = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Re = ["data-testid"], ze = [
|
|
72
71
|
"data-testid",
|
|
73
72
|
"aria-expanded",
|
|
74
73
|
"aria-label",
|
|
75
74
|
"onClick"
|
|
76
|
-
],
|
|
75
|
+
], Be = ["aria-label"], Ve = [
|
|
77
76
|
"data-testid",
|
|
78
77
|
"aria-disabled",
|
|
79
78
|
"aria-label",
|
|
80
79
|
"aria-describedby",
|
|
81
80
|
"onClick"
|
|
82
|
-
],
|
|
81
|
+
], He = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-1" }, Ue = ["data-testid", "onClick"], We = {
|
|
83
82
|
key: 0,
|
|
84
83
|
class: "tpl:relative tpl:border-t tpl:border-[var(--tpl-border)]"
|
|
85
|
-
},
|
|
84
|
+
}, Ge = ["aria-expanded"], Ke = ["aria-label"], qe = ["data-testid", "onClick"], Je = ["aria-label"], Ye = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Xe = {
|
|
86
85
|
key: 0,
|
|
87
86
|
class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
88
|
-
},
|
|
87
|
+
}, Ze = {
|
|
89
88
|
key: 1,
|
|
90
89
|
class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
91
|
-
},
|
|
90
|
+
}, Qe = {
|
|
92
91
|
key: 2,
|
|
93
92
|
role: "alert",
|
|
94
93
|
"data-testid": "language-default-error",
|
|
95
94
|
class: "tpl:mb-4 tpl:flex tpl:items-start tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-danger)]"
|
|
96
|
-
},
|
|
95
|
+
}, $e = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, et = ["data-testid"], tt = ["data-testid", "disabled"], C = "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:border-0 tpl:bg-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:text-xs tpl:transition-colors tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", w = "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:shadow-[var(--tpl-shadow-md)]", T = /*#__PURE__*/ S(/* @__PURE__ */ _({
|
|
97
96
|
__name: "LanguageMenu",
|
|
98
97
|
props: {
|
|
99
98
|
editor: {},
|
|
100
99
|
locales: {}
|
|
101
100
|
},
|
|
102
101
|
setup(_) {
|
|
103
|
-
let y = _, { t:
|
|
102
|
+
let y = _, S = _e(y.editor), { t: T, format: E } = he(), D = g(me, void 0) ?? "en", nt = g(de, null), O = g(fe, []), k = u(null), A = u(null), j = `tpl-language-reason-${le()}`, M = u(!1), N = u(null), P = u(null), F = u(null), I = u(null), L = u(null), R = s(() => ue(y.editor.content.value)), z = s(() => y.editor.activeLocale?.value ?? R.value), B = s(() => y.editor.content.value.settings.locales ?? []), V = s(() => y.locales.filter((e) => e !== R.value && !B.value.includes(e))), H = s(() => z.value === R.value || y.locales.includes(z.value)), U = g(pe, null) ?? ge(y.editor, O), W = s(() => M.value ? [R.value, ...B.value].map((e) => ({
|
|
104
103
|
locale: e,
|
|
105
|
-
coverage: e === R.value ? null : e === z.value ? U.value :
|
|
106
|
-
})) : []),
|
|
104
|
+
coverage: e === R.value ? null : e === z.value ? U.value : oe(y.editor.content.value, e, O)
|
|
105
|
+
})) : []), rt = s(() => N.value && B.value.includes(N.value) && H.value && y.locales.includes(N.value) ? se(y.editor.content.value, N.value) : []), G = s(() => y.locales.includes(R.value)), K = s(() => rt.value.length > 0 || !G.value), q = s(() => (U.value?.missing.length ?? 0) + (U.value?.stale.length ?? 0)), it = s(() => q.value ? E(T.localization.gapTooltip, {
|
|
107
106
|
missing: U.value.missing.length,
|
|
108
107
|
stale: U.value.stale.length
|
|
109
|
-
}) : S(z.value)),
|
|
110
|
-
function
|
|
108
|
+
}) : S(z.value)), at = s(() => q.value ? `${S(z.value)} ${q.value} (${z.value}), ${it.value}` : `${S(z.value)} (${z.value})`);
|
|
109
|
+
function ot(e) {
|
|
111
110
|
let t = [];
|
|
112
|
-
return e.missing.length && t.push(x(
|
|
111
|
+
return e.missing.length && t.push(x(T.localization.missingCount, e.missing.length, D)), e.stale.length && t.push(x(T.localization.staleCount, e.stale.length, D)), t.join(" · ") || T.localization.complete;
|
|
113
112
|
}
|
|
114
|
-
function
|
|
113
|
+
function J() {
|
|
115
114
|
M.value = !1, N.value = null, i(() => A.value?.focus());
|
|
116
115
|
}
|
|
117
|
-
async function
|
|
118
|
-
M.value ?
|
|
116
|
+
async function st() {
|
|
117
|
+
M.value ? J() : (M.value = !0, await i(), k.value?.querySelector("[role=\"menuitemradio\"]")?.focus());
|
|
119
118
|
}
|
|
120
|
-
async function
|
|
119
|
+
async function Y(e) {
|
|
121
120
|
N.value = N.value === e ? null : e, await i(), k.value?.querySelector("[data-language-submenu] [role=\"menuitem\"]:not(:disabled)")?.focus();
|
|
122
121
|
}
|
|
123
|
-
function
|
|
122
|
+
function ct() {
|
|
124
123
|
let e = N.value;
|
|
125
124
|
N.value = null, k.value?.querySelector(`[data-testid="${e === "add" ? "language-add" : `language-actions-${e}`}"]`)?.focus();
|
|
126
125
|
}
|
|
127
|
-
function
|
|
126
|
+
function lt(e) {
|
|
128
127
|
let t = e.target;
|
|
129
128
|
if (t.closest("[role=\"dialog\"]")) return;
|
|
130
129
|
if (e.key === "Escape" || e.key === "ArrowLeft" && N.value) {
|
|
131
|
-
e.preventDefault(), e.stopPropagation(), N.value ?
|
|
130
|
+
e.preventDefault(), e.stopPropagation(), N.value ? ct() : J();
|
|
132
131
|
return;
|
|
133
132
|
}
|
|
134
133
|
if (t === A.value && ["ArrowDown", "ArrowUp"].includes(e.key)) {
|
|
135
|
-
e.preventDefault(), M.value ||
|
|
134
|
+
e.preventDefault(), M.value || st();
|
|
136
135
|
return;
|
|
137
136
|
}
|
|
138
137
|
if (e.key === "ArrowRight" && !t.closest("[data-language-submenu]")) {
|
|
139
138
|
let n = t.dataset.testid ?? "", r = n.replace(/^language-(option|actions)-/, "");
|
|
140
|
-
(n === "language-add" || r !== R.value && H.value && y.locales.includes(r)) && (e.preventDefault(),
|
|
139
|
+
(n === "language-add" || r !== R.value && H.value && y.locales.includes(r)) && (e.preventDefault(), Y(n === "language-add" ? "add" : r));
|
|
141
140
|
return;
|
|
142
141
|
}
|
|
143
142
|
if (![
|
|
@@ -150,31 +149,31 @@ var Ce = y({
|
|
|
150
149
|
let n = t.closest("[role=\"menu\"]"), r = Array.from(n?.querySelectorAll("[role^=\"menuitem\"]:not(:disabled)") ?? []).filter((e) => e.closest("[role=\"menu\"]") === n), i = r.indexOf(t);
|
|
151
150
|
r[e.key === "Home" ? 0 : e.key === "End" ? r.length - 1 : (i + (e.key === "ArrowDown" ? 1 : -1) + r.length) % r.length]?.focus();
|
|
152
151
|
}
|
|
153
|
-
function
|
|
154
|
-
y.editor.setActiveLocale?.(e === R.value ? null : e),
|
|
152
|
+
function ut(e) {
|
|
153
|
+
y.editor.setActiveLocale?.(e === R.value ? null : e), J();
|
|
155
154
|
}
|
|
156
|
-
function
|
|
157
|
-
H.value && V.value.includes(e) && (y.editor.addLocale?.(e),
|
|
155
|
+
function dt(e) {
|
|
156
|
+
H.value && V.value.includes(e) && (y.editor.addLocale?.(e), J());
|
|
158
157
|
}
|
|
159
|
-
function
|
|
158
|
+
function X() {
|
|
160
159
|
I.value = null, L.value = {
|
|
161
160
|
templateId: y.editor.state.template?.id ?? null,
|
|
162
161
|
loadVersion: y.editor.loadVersion?.value
|
|
163
162
|
};
|
|
164
163
|
}
|
|
165
|
-
function
|
|
164
|
+
function ft() {
|
|
166
165
|
return L.value !== null && L.value.templateId === (y.editor.state.template?.id ?? null) && L.value.loadVersion === y.editor.loadVersion?.value;
|
|
167
166
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
167
|
+
function pt(e) {
|
|
168
|
+
X(), P.value = e, N.value = null;
|
|
170
169
|
}
|
|
171
170
|
function Z(e) {
|
|
172
|
-
return H.value && B.value.includes(e) && y.locales.includes(e) && G.value &&
|
|
171
|
+
return H.value && B.value.includes(e) && y.locales.includes(e) && G.value && se(y.editor.content.value, e).length === 0;
|
|
173
172
|
}
|
|
174
|
-
function
|
|
175
|
-
Z(e) && (
|
|
173
|
+
function mt(e) {
|
|
174
|
+
Z(e) && (X(), F.value = { locale: e }, N.value = null);
|
|
176
175
|
}
|
|
177
|
-
let
|
|
176
|
+
let ht = s(() => F.value ? ce(y.editor.content.value, F.value.locale, O).length : 0), Q = s(() => F.value ? E(T.localization.makeDefaultConfirmation, { language: S(F.value.locale) }) : E(T.localization.removeConfirmation, { language: S(P.value ?? R.value) }));
|
|
178
177
|
function $() {
|
|
179
178
|
let e = F.value?.locale ?? P.value;
|
|
180
179
|
L.value = null, I.value = null, F.value = null, P.value = null, i(() => {
|
|
@@ -186,36 +185,36 @@ var Ce = y({
|
|
|
186
185
|
k.value?.querySelector(`[data-testid="${t}"]`)?.focus();
|
|
187
186
|
});
|
|
188
187
|
}
|
|
189
|
-
function
|
|
190
|
-
if (!
|
|
188
|
+
function gt() {
|
|
189
|
+
if (!ft()) $(), J();
|
|
191
190
|
else if (H.value) {
|
|
192
191
|
if (F.value) {
|
|
193
192
|
let e = F.value.locale;
|
|
194
193
|
if (!Z(e)) return;
|
|
195
|
-
let t =
|
|
194
|
+
let t = nt?.setDefaultLocale(e);
|
|
196
195
|
if (!t) return;
|
|
197
196
|
if (!t.applied) {
|
|
198
|
-
I.value = E(
|
|
197
|
+
I.value = E(T.localization.defaultRefused, {
|
|
199
198
|
language: S(e),
|
|
200
|
-
reason: t.error.code === "locked_by_others" || t.error.code === "lock_held" ?
|
|
199
|
+
reason: t.error.code === "locked_by_others" || t.error.code === "lock_held" ? T.localization.defaultLockedReason : t.error.message
|
|
201
200
|
});
|
|
202
201
|
return;
|
|
203
202
|
}
|
|
204
203
|
} else P.value && y.locales.includes(P.value) && y.editor.removeLocale?.(P.value);
|
|
205
|
-
$(),
|
|
204
|
+
$(), J();
|
|
206
205
|
}
|
|
207
206
|
}
|
|
208
207
|
return e([() => y.editor.state.template?.id ?? null, () => y.editor.loadVersion?.value], () => {
|
|
209
|
-
(M.value || L.value !== null) && ($(),
|
|
208
|
+
(M.value || L.value !== null) && ($(), J());
|
|
210
209
|
}, { flush: "sync" }), e(() => F.value !== null && !Z(F.value.locale), (e) => {
|
|
211
|
-
e && ($(),
|
|
210
|
+
e && ($(), J());
|
|
212
211
|
}), te(k, () => {
|
|
213
212
|
M.value = !1, N.value = null;
|
|
214
213
|
}), (e, i) => (n(), d("div", {
|
|
215
214
|
ref_key: "root",
|
|
216
215
|
ref: k,
|
|
217
216
|
class: "tpl-language-control tpl:relative tpl:min-w-0 tpl:shrink-0",
|
|
218
|
-
onKeydown:
|
|
217
|
+
onKeydown: lt
|
|
219
218
|
}, [
|
|
220
219
|
p("button", {
|
|
221
220
|
ref_key: "trigger",
|
|
@@ -224,32 +223,32 @@ var Ce = y({
|
|
|
224
223
|
"data-testid": "language-menu",
|
|
225
224
|
"aria-haspopup": "menu",
|
|
226
225
|
"aria-expanded": M.value,
|
|
227
|
-
title:
|
|
228
|
-
"aria-label":
|
|
229
|
-
class: r([c(
|
|
230
|
-
onClick:
|
|
226
|
+
title: it.value,
|
|
227
|
+
"aria-label": at.value,
|
|
228
|
+
class: r([c(Se), "tpl-language-trigger"]),
|
|
229
|
+
onClick: st
|
|
231
230
|
}, [
|
|
232
|
-
p("span",
|
|
233
|
-
p("span",
|
|
231
|
+
p("span", De, t(c(S)(z.value)), 1),
|
|
232
|
+
p("span", Oe, t(z.value), 1),
|
|
234
233
|
q.value ? (n(), d(m, { key: 0 }, [o(c(v), {
|
|
235
234
|
size: 12,
|
|
236
235
|
"aria-hidden": "true",
|
|
237
236
|
class: "tpl:shrink-0 tpl:text-[var(--tpl-warning)]"
|
|
238
|
-
}), p("span",
|
|
239
|
-
o(c(
|
|
237
|
+
}), p("span", ke, t(q.value), 1)], 64)) : l("", !0),
|
|
238
|
+
o(c(ne), {
|
|
240
239
|
size: 12,
|
|
241
240
|
"aria-hidden": "true",
|
|
242
241
|
class: "tpl-language-chevron tpl:shrink-0"
|
|
243
242
|
})
|
|
244
|
-
], 10,
|
|
243
|
+
], 10, Ee),
|
|
245
244
|
M.value ? (n(), d("div", {
|
|
246
245
|
key: 0,
|
|
247
246
|
role: "menu",
|
|
248
|
-
"aria-label": c(
|
|
249
|
-
class: r([
|
|
247
|
+
"aria-label": c(T).localization.languages,
|
|
248
|
+
class: r([w, "tpl:absolute tpl:left-0 tpl:top-full tpl:z-50 tpl:mt-2 tpl:w-72"])
|
|
250
249
|
}, [
|
|
251
|
-
p("div",
|
|
252
|
-
p("div",
|
|
250
|
+
p("div", je, t(c(T).localization.languages), 1),
|
|
251
|
+
p("div", Me, [(n(!0), d(m, null, a(W.value, (e) => (n(), d("div", {
|
|
253
252
|
key: e.locale,
|
|
254
253
|
class: "tpl-language-row tpl:flex tpl:items-center",
|
|
255
254
|
"data-active": z.value === e.locale
|
|
@@ -258,16 +257,16 @@ var Ce = y({
|
|
|
258
257
|
role: "menuitemradio",
|
|
259
258
|
"aria-checked": z.value === e.locale,
|
|
260
259
|
"data-testid": `language-option-${e.locale}`,
|
|
261
|
-
class: r(
|
|
262
|
-
onClick: (t) =>
|
|
263
|
-
}, [p("span",
|
|
260
|
+
class: r(C),
|
|
261
|
+
onClick: (t) => ut(e.locale)
|
|
262
|
+
}, [p("span", Fe, [z.value === e.locale ? (n(), h(c(b), {
|
|
264
263
|
key: 0,
|
|
265
264
|
size: 12,
|
|
266
265
|
"aria-hidden": "true"
|
|
267
|
-
})) : l("", !0)]), p("span",
|
|
266
|
+
})) : l("", !0)]), p("span", Ie, [p("span", Le, [p("span", null, t(c(S)(e.locale)), 1), e.locale === R.value || !_.locales.includes(e.locale) ? (n(), d("span", {
|
|
268
267
|
key: 0,
|
|
269
|
-
class: r(["tpl-language-pill", c(
|
|
270
|
-
}, t(e.locale === R.value ? c(
|
|
268
|
+
class: r(["tpl-language-pill", c(xe)])
|
|
269
|
+
}, t(e.locale === R.value ? c(T).localization.default : c(T).localization.notEnabled), 3)) : l("", !0)]), e.coverage ? (n(), d("span", {
|
|
271
270
|
key: 0,
|
|
272
271
|
"data-testid": `language-status-${e.locale}`,
|
|
273
272
|
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
@@ -276,92 +275,92 @@ var Ce = y({
|
|
|
276
275
|
size: 10,
|
|
277
276
|
"aria-hidden": "true",
|
|
278
277
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
279
|
-
})) : (n(), h(c(
|
|
278
|
+
})) : (n(), h(c(b), {
|
|
280
279
|
key: 1,
|
|
281
280
|
size: 10,
|
|
282
281
|
"aria-hidden": "true",
|
|
283
282
|
class: "tpl:text-[var(--tpl-success)]"
|
|
284
|
-
})), f(" " + t(
|
|
283
|
+
})), f(" " + t(ot(e.coverage)), 1)], 8, Re)) : l("", !0)])], 8, Pe), e.locale !== R.value && H.value && _.locales.includes(e.locale) ? (n(), d("button", {
|
|
285
284
|
key: 0,
|
|
286
285
|
type: "button",
|
|
287
286
|
"data-testid": `language-actions-${e.locale}`,
|
|
288
287
|
"aria-haspopup": "menu",
|
|
289
288
|
"aria-expanded": N.value === e.locale,
|
|
290
|
-
"aria-label": c(E)(c(
|
|
289
|
+
"aria-label": c(E)(c(T).localization.moreActions, { language: c(S)(e.locale) }),
|
|
291
290
|
class: "tpl-language-actions tpl:mr-2 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-0 tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]",
|
|
292
|
-
onClick: (t) =>
|
|
293
|
-
}, [o(c(
|
|
291
|
+
onClick: (t) => Y(e.locale)
|
|
292
|
+
}, [o(c(Te), {
|
|
294
293
|
size: 14,
|
|
295
294
|
"aria-hidden": "true"
|
|
296
|
-
})], 8,
|
|
295
|
+
})], 8, ze)) : l("", !0)], 8, Ne))), 128))]),
|
|
297
296
|
(n(!0), d(m, null, a(W.value.filter((e) => e.locale === N.value && H.value && _.locales.includes(e.locale)), (e) => (n(), d("div", {
|
|
298
297
|
key: e.locale,
|
|
299
298
|
role: "menu",
|
|
300
299
|
"data-language-submenu": "",
|
|
301
|
-
"aria-label": c(E)(c(
|
|
302
|
-
class: r([
|
|
300
|
+
"aria-label": c(E)(c(T).localization.moreActions, { language: c(S)(e.locale) }),
|
|
301
|
+
class: r([w, "tpl-language-submenu tpl:absolute tpl:left-full tpl:top-0 tpl:ml-1 tpl:w-64 tpl:overflow-hidden"])
|
|
303
302
|
}, [p("button", {
|
|
304
303
|
type: "button",
|
|
305
304
|
role: "menuitem",
|
|
306
305
|
"data-testid": `language-make-default-${e.locale}`,
|
|
307
|
-
class: r(
|
|
306
|
+
class: r(C),
|
|
308
307
|
"aria-disabled": K.value,
|
|
309
|
-
"aria-label": c(
|
|
308
|
+
"aria-label": c(T).localization.makeDefaultLanguage,
|
|
310
309
|
"aria-describedby": K.value ? j : void 0,
|
|
311
|
-
onClick: (t) =>
|
|
312
|
-
}, [o(c(
|
|
310
|
+
onClick: (t) => mt(e.locale)
|
|
311
|
+
}, [o(c(we), {
|
|
313
312
|
size: 14,
|
|
314
313
|
"aria-hidden": "true",
|
|
315
314
|
class: "tpl:shrink-0"
|
|
316
|
-
}), p("span",
|
|
315
|
+
}), p("span", He, [p("span", null, t(c(T).localization.makeDefaultLanguage), 1), K.value ? (n(), d("span", {
|
|
317
316
|
key: 0,
|
|
318
317
|
id: j,
|
|
319
318
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
320
|
-
}, t(G.value ? c(x)(c(
|
|
319
|
+
}, t(G.value ? c(x)(c(T).localization.hiddenBeforeDefault, rt.value.length, c(D), { language: c(S)(e.locale) }) : c(E)(c(T).localization.defaultNotEnabled, { default: c(S)(R.value) })), 1)) : l("", !0)])], 8, Ve), p("button", {
|
|
321
320
|
type: "button",
|
|
322
321
|
role: "menuitem",
|
|
323
322
|
"data-testid": `language-remove-${e.locale}`,
|
|
324
|
-
class: r([
|
|
325
|
-
onClick: (t) =>
|
|
326
|
-
}, [o(c(
|
|
323
|
+
class: r([C, "tpl:text-[var(--tpl-danger)]"]),
|
|
324
|
+
onClick: (t) => pt(e.locale)
|
|
325
|
+
}, [o(c(ae), {
|
|
327
326
|
size: 14,
|
|
328
327
|
"aria-hidden": "true"
|
|
329
|
-
}), f(t(c(E)(c(
|
|
330
|
-
V.value.length && H.value ? (n(), d("div",
|
|
328
|
+
}), f(t(c(E)(c(T).localization.removeLanguage, { language: c(S)(e.locale) })) + "… ", 1)], 8, Ue)], 8, Be))), 128)),
|
|
329
|
+
V.value.length && H.value ? (n(), d("div", We, [p("button", {
|
|
331
330
|
type: "button",
|
|
332
331
|
role: "menuitem",
|
|
333
332
|
"data-testid": "language-add",
|
|
334
333
|
"aria-haspopup": "menu",
|
|
335
334
|
"aria-expanded": N.value === "add",
|
|
336
|
-
class: r(
|
|
337
|
-
onClick: i[0] ||= (e) =>
|
|
335
|
+
class: r(C),
|
|
336
|
+
onClick: i[0] ||= (e) => Y("add")
|
|
338
337
|
}, [
|
|
339
|
-
o(c(
|
|
338
|
+
o(c(ie), {
|
|
340
339
|
size: 14,
|
|
341
340
|
"aria-hidden": "true"
|
|
342
341
|
}),
|
|
343
|
-
f(t(c(
|
|
344
|
-
o(c(
|
|
342
|
+
f(t(c(T).localization.addLanguage), 1),
|
|
343
|
+
o(c(re), {
|
|
345
344
|
size: 12,
|
|
346
345
|
"aria-hidden": "true",
|
|
347
346
|
class: "tpl:ml-auto"
|
|
348
347
|
})
|
|
349
|
-
], 8,
|
|
348
|
+
], 8, Ge), N.value === "add" ? (n(), d("div", {
|
|
350
349
|
key: 0,
|
|
351
350
|
role: "menu",
|
|
352
351
|
"data-language-submenu": "",
|
|
353
|
-
"aria-label": c(
|
|
354
|
-
class: r([
|
|
352
|
+
"aria-label": c(T).localization.addLanguage,
|
|
353
|
+
class: r([w, "tpl-language-submenu tpl:absolute tpl:left-full tpl:bottom-0 tpl:ml-1 tpl:max-h-64 tpl:w-48 tpl:overflow-y-auto"])
|
|
355
354
|
}, [(n(!0), d(m, null, a(V.value, (e) => (n(), d("button", {
|
|
356
355
|
key: e,
|
|
357
356
|
type: "button",
|
|
358
357
|
role: "menuitem",
|
|
359
358
|
"data-testid": `language-add-${e}`,
|
|
360
|
-
class: r(
|
|
361
|
-
onClick: (t) =>
|
|
362
|
-
}, t(c(S)(e)), 9,
|
|
363
|
-
], 8,
|
|
364
|
-
o(
|
|
359
|
+
class: r(C),
|
|
360
|
+
onClick: (t) => dt(e)
|
|
361
|
+
}, t(c(S)(e)), 9, qe))), 128))], 8, Ke)) : l("", !0)])) : l("", !0)
|
|
362
|
+
], 8, Ae)) : l("", !0),
|
|
363
|
+
o(Ce, {
|
|
365
364
|
visible: P.value !== null || F.value !== null,
|
|
366
365
|
onClose: $
|
|
367
366
|
}, {
|
|
@@ -371,33 +370,33 @@ var Ce = y({
|
|
|
371
370
|
"aria-label": Q.value,
|
|
372
371
|
class: "tpl:w-80 tpl:max-w-full tpl:max-h-[90%] tpl:overflow-y-auto tpl:box-border tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
373
372
|
}, [
|
|
374
|
-
p("h3",
|
|
375
|
-
F.value &&
|
|
373
|
+
p("h3", Ye, t(Q.value), 1),
|
|
374
|
+
F.value && ht.value ? (n(), d("p", Xe, t(c(x)(c(T).localization.defaultGaps, ht.value, c(D), {
|
|
376
375
|
language: c(S)(F.value.locale),
|
|
377
376
|
default: c(S)(R.value)
|
|
378
377
|
})), 1)) : l("", !0),
|
|
379
|
-
P.value ? (n(), d("p",
|
|
380
|
-
I.value ? (n(), d("p",
|
|
378
|
+
P.value ? (n(), d("p", Ze, t(c(E)(c(T).localization.removeDescription, { language: c(S)(P.value) })), 1)) : l("", !0),
|
|
379
|
+
I.value ? (n(), d("p", Qe, [o(c(v), {
|
|
381
380
|
size: 14,
|
|
382
381
|
"aria-hidden": "true",
|
|
383
382
|
class: "tpl:shrink-0"
|
|
384
383
|
}), p("span", null, t(I.value), 1)])) : l("", !0),
|
|
385
|
-
p("div",
|
|
384
|
+
p("div", $e, [p("button", {
|
|
386
385
|
type: "button",
|
|
387
386
|
"data-testid": F.value ? "language-default-cancel" : "language-remove-cancel",
|
|
388
|
-
class: r(c(
|
|
387
|
+
class: r(c(ve)),
|
|
389
388
|
onClick: $
|
|
390
|
-
}, t(c(
|
|
389
|
+
}, t(c(T).localization.cancel), 11, et), p("button", {
|
|
391
390
|
type: "button",
|
|
392
391
|
"data-testid": F.value ? "language-default-confirm" : "language-remove-confirm",
|
|
393
|
-
class: r(P.value ? c(
|
|
392
|
+
class: r(P.value ? c(be) : c(ye)),
|
|
394
393
|
disabled: !H.value,
|
|
395
|
-
onClick:
|
|
396
|
-
}, t(F.value ? c(
|
|
397
|
-
], 8,
|
|
394
|
+
onClick: gt
|
|
395
|
+
}, t(F.value ? c(T).localization.makeDefault : c(E)(c(T).localization.removeLanguage, { language: c(S)(P.value ?? R.value) })), 11, tt)])
|
|
396
|
+
], 8, Je)]),
|
|
398
397
|
_: 1
|
|
399
398
|
}, 8, ["visible"])
|
|
400
399
|
], 544));
|
|
401
400
|
}
|
|
402
|
-
}), [["__scopeId", "data-v-
|
|
403
|
-
export {
|
|
401
|
+
}), [["__scopeId", "data-v-e6e34300"]]);
|
|
402
|
+
export { T as default };
|
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
import { Ft as e, M as t, Pt as n, _ as r, c as i, ct as a, f as o, l as s, w as c, y as l } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
2
|
import { t as u } from "./check-8ZykoWzl.js";
|
|
3
3
|
import { t as d } from "./x-CuyPLm0U.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as g } from "./languageName-DEEOhDWI.js";
|
|
4
|
+
import { ot as f, t as p } from "./useI18n-B05qsAsl.js";
|
|
5
|
+
import { t as m } from "./noticeTones-D7BPu-Le.js";
|
|
6
|
+
import { t as h } from "./plural-CyxrJXL1.js";
|
|
7
|
+
import { t as g } from "./useLanguageName-CnpG7FD5.js";
|
|
9
8
|
// src/components/localization/LocaleNotices.vue?vue&type=script&setup=true&lang.ts
|
|
10
9
|
var _ = ["aria-label", "title"], v = /* @__PURE__ */ l({
|
|
11
10
|
__name: "LocaleNotices",
|
|
12
11
|
props: { notice: {} },
|
|
13
12
|
emits: ["dismiss"],
|
|
14
13
|
setup(l, { emit: v }) {
|
|
15
|
-
let y = l, b = v, { t:
|
|
16
|
-
let { notice: e } = y, t = [S
|
|
17
|
-
return e.count && t.push(
|
|
14
|
+
let y = l, b = g(), x = v, { t: S, format: C } = p(), w = c(f, void 0) ?? "en", T = i(() => {
|
|
15
|
+
let { notice: e } = y, t = [C(S.localization.defaultChanged, { language: b(e.language) })];
|
|
16
|
+
return e.count && t.push(h(S.localization.defaultRemaining, e.count, w, { old: b(e.old) })), t.join(" ");
|
|
18
17
|
});
|
|
19
18
|
return (i, c) => (t(), o("div", {
|
|
20
19
|
"data-testid": "locale-notice",
|
|
21
20
|
role: "status",
|
|
22
21
|
"aria-live": "polite",
|
|
23
22
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
24
|
-
style: n(a(
|
|
23
|
+
style: n(a(m).info)
|
|
25
24
|
}, [
|
|
26
25
|
r(a(u), {
|
|
27
26
|
size: 14,
|
|
28
27
|
"aria-hidden": "true",
|
|
29
28
|
class: "tpl:shrink-0"
|
|
30
29
|
}),
|
|
31
|
-
s("span", null, e(
|
|
30
|
+
s("span", null, e(T.value), 1),
|
|
32
31
|
s("button", {
|
|
33
32
|
type: "button",
|
|
34
33
|
class: "tpl:flex tpl:size-5 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)] tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]",
|
|
35
|
-
"aria-label": a(
|
|
36
|
-
title: a(
|
|
37
|
-
onClick: c[0] ||= (e) =>
|
|
34
|
+
"aria-label": a(S).localization.dismiss,
|
|
35
|
+
title: a(S).localization.dismiss,
|
|
36
|
+
onClick: c[0] ||= (e) => x("dismiss")
|
|
38
37
|
}, [r(a(d), {
|
|
39
38
|
size: 14,
|
|
40
39
|
"stroke-width": 2,
|