@templatical/editor 0.56.0 → 0.57.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 +1 -1
- package/dist/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-BjClNscQ.js} +6 -6
- package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-DeMdVbtT.js} +7 -7
- package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cros4ZCM.js} +64 -67
- package/dist/AiPanels-D_CdHqFZ.js +26 -0
- package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-BSzj1dKC.js} +53 -53
- package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-i2cZy5PB.js} +6 -6
- package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-D-If_vd_.js} +58 -58
- package/dist/{CloudHeaderExtras-Cqhw-jMz.js → CloudHeaderExtras-CJsXi4Ku.js} +2 -2
- package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-DPeK_siQ.js} +14 -14
- package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-DkYX-ose.js} +9 -9
- package/dist/{CollaboratorBar-CLQjksX-.js → CollaboratorBar-xDweDvB6.js} +3 -3
- package/dist/CommentsPanel-t3w16YUl.js +23 -0
- package/dist/CommentsSidebar-B3M90RY_.js +516 -0
- package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-BrR2uqM3.js} +7 -7
- package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-DBu2ZqC6.js} +32 -32
- package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-BnUut-p-.js} +89 -89
- package/dist/LanguageMenu-DfTxrbvp.js +403 -0
- package/dist/{LoadingTrack-BG8cg9xi.js → LoadingTrack-c4SeD16s.js} +1 -1
- package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-D6zk-QCL.js} +11 -11
- package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-CJ1Jk6jv.js} +65 -65
- package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-BxbwZxnf.js} +10 -10
- package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-BiUxsTMM.js} +2 -2
- package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-CV-z85s9.js} +13 -13
- package/dist/{MergeTagModeToggle-DXvb80OE.js → MergeTagModeToggle-CixgX5C_.js} +7 -7
- package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-B1zOC_Nr.js} +9 -9
- package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-C9UhWvRB.js} +174 -174
- package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-Do7fZWpT.js} +13 -13
- package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-wW_SMun2.js} +10 -10
- package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CCHIUfR-.js} +49 -49
- package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-DtPHhfw9.js} +26 -26
- package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-CYIby5pR.js} +2 -2
- package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-CCwBugqN.js} +10 -10
- package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-B8IVy5q9.js} +42 -42
- package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-CS5JoKRH.js} +22 -22
- package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-sOIZfKzc.js} +2 -2
- package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-ZlBcq9_P.js} +22 -22
- package/dist/{ToggleSwitch-R3wCCYE6.js → ToggleSwitch-BIPdFWUr.js} +1 -1
- package/dist/{Toolbar-XT-uGA9J.js → Toolbar-c4_rLLJT.js} +659 -659
- package/dist/{TplModal-7NQq5-VW.js → TplModal-DnFFEulp.js} +6 -6
- package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu-Cd2IaHgT.js} +19 -19
- package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-TdGaMaa_.js} +2 -2
- package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-lkAf7tc8.js} +8 -8
- package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-BiW4ye3w.js} +12 -12
- package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-D1aYMC1M.js} +3 -3
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-CfGJNBOb.js} +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-CfGJNBOb.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-PKe31R_g.js} +7 -7
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-PKe31R_g.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-DNCUpV8n.js} +112 -115
- package/dist/cdn/chunks/AiChatPanel-DNCUpV8n.js.map +1 -0
- package/dist/cdn/chunks/AiPanels-IV0VEkBL.js +27 -0
- package/dist/cdn/chunks/AiPanels-IV0VEkBL.js.map +1 -0
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-ZDBwReuU.js} +61 -61
- package/dist/cdn/chunks/AiRewriteMenu-ZDBwReuU.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DIlFDDwh.js} +6 -6
- package/dist/cdn/chunks/BlockIssueBadge-DIlFDDwh.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-D7U6nQ7t.js +156 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-D7U6nQ7t.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js → CloudHeaderExtras-CazfMn6A.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js.map → CloudHeaderExtras-CazfMn6A.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-EXXNMLbs.js} +5 -5
- package/dist/cdn/chunks/CloudPanels-EXXNMLbs.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-DGA8XRZJ.js} +10 -10
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-DGA8XRZJ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js → CollaboratorBar-BWL1Shc1.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js.map → CollaboratorBar-BWL1Shc1.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js +24 -0
- package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js.map +1 -0
- package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js +486 -0
- package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-Do6oItNW.js} +8 -8
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-Do6oItNW.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-BN2_zvRj.js} +52 -52
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-BN2_zvRj.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-BDwegn0s.js} +14 -14
- package/dist/cdn/chunks/IssuesPanel-BDwegn0s.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-DXq9cXUd.js} +58 -58
- package/dist/cdn/chunks/LanguageMenu-DXq9cXUd.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js → LoadingTrack-o-89hApJ.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js.map → LoadingTrack-o-89hApJ.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-CUN5K5QJ.js} +11 -11
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-CUN5K5QJ.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-BEArlbra.js} +12 -12
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-BEArlbra.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-BHTMNHx0.js} +10 -10
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-BHTMNHx0.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BlianNRh.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BlianNRh.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-B3SLXXzL.js} +14 -14
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-B3SLXXzL.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js → MergeTagModeToggle-Dywp9ntA.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js.map → MergeTagModeToggle-Dywp9ntA.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B9TM7FgM.js} +7 -7
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B9TM7FgM.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-CVGtTYta.js} +107 -107
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-CVGtTYta.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-Dt_0qOOW.js} +13 -13
- package/dist/cdn/chunks/RestoreVersionDialog-Dt_0qOOW.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-BjN4mnzL.js} +9 -9
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-BjN4mnzL.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-D9eBjE99.js} +51 -51
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-D9eBjE99.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-ClsTpkdk.js} +24 -24
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-ClsTpkdk.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-CxlNHhUs.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-CxlNHhUs.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-C7_Z8phX.js} +12 -12
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-C7_Z8phX.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-B6zDtjSs.js} +102 -102
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-B6zDtjSs.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-CJ_QYFua.js} +21 -21
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-CJ_QYFua.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-CsFrTq_a.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-CsFrTq_a.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CuKJptyw.js} +20 -20
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CuKJptyw.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js → ToggleSwitch-C0w0srN_.js} +2 -2
- package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js.map → ToggleSwitch-C0w0srN_.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-TS2WwlPW.js} +542 -542
- package/dist/cdn/chunks/Toolbar-TS2WwlPW.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-CsadClrH.js} +7 -7
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-CsadClrH.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-BNPxnWiO.js} +16 -16
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-BNPxnWiO.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CieY91f0.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CieY91f0.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-BldFvgxJ.js} +9 -9
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-BldFvgxJ.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-DtnRuKWE.js} +13 -13
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-DtnRuKWE.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js → blockTypeIcons-19xd5ZPi.js} +6 -6
- package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js.map → blockTypeIcons-19xd5ZPi.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-CUIiW9OD.js} +1190 -1170
- package/dist/cdn/chunks/composables-CUIiW9OD.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-B7D04wKf.js} +161 -147
- package/dist/cdn/chunks/createCloudRuntime-B7D04wKf.js.map +1 -0
- package/dist/cdn/chunks/da-CYWJkrTg.js +97 -0
- package/dist/cdn/chunks/da-CYWJkrTg.js.map +1 -0
- package/dist/cdn/chunks/da-qQzj0QGy.js +950 -0
- package/dist/cdn/chunks/da-qQzj0QGy.js.map +1 -0
- package/dist/cdn/chunks/{dist-BzXULHvI.js → dist-BtWMy7UQ.js} +3 -3
- package/dist/cdn/chunks/{dist-BzXULHvI.js.map → dist-BtWMy7UQ.js.map} +1 -1
- package/dist/cdn/chunks/dist-zu1jwYIS.js +405 -0
- package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-zu1jwYIS.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DepKdldn.js → draggable-IRVFEZ-b.js} +1535 -1500
- package/dist/cdn/chunks/draggable-IRVFEZ-b.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CarOiAYJ.js} +137 -136
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CarOiAYJ.js.map} +1 -1
- package/dist/cdn/chunks/en-B4s_0ryk.js +1 -0
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-Cbvk9i08.js} +96 -96
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-Cbvk9i08.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DHExFLlT.js → icons-Cl4oR2mf.js} +73 -73
- package/dist/cdn/chunks/icons-Cl4oR2mf.js.map +1 -0
- package/dist/cdn/chunks/keys-BQqbBUag.js +11 -0
- package/dist/cdn/chunks/keys-BQqbBUag.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js → normalizeMergeTagMarkup-BJ-MnCqF.js} +55 -55
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js.map → normalizeMergeTagMarkup-BJ-MnCqF.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js → preRenderCustomBlocks-D2wISRHq.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js.map → preRenderCustomBlocks-D2wISRHq.js.map} +1 -1
- package/dist/cdn/chunks/sanitizeHtml-CB7fjHFs.js +72 -0
- package/dist/cdn/chunks/sanitizeHtml-CB7fjHFs.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-C_yggK1_.js} +575 -524
- package/dist/cdn/chunks/socialIcons-C_yggK1_.js.map +1 -0
- package/dist/cdn/chunks/{src-C9JWWxAk.js → src-Bp7bZcuD.js} +108 -95
- package/dist/cdn/chunks/src-Bp7bZcuD.js.map +1 -0
- package/dist/cdn/chunks/{src-mXG-Of9A.js → src-CdVAke9t.js} +721 -696
- package/dist/cdn/chunks/src-CdVAke9t.js.map +1 -0
- package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-D-URHI0Z.js} +232 -228
- package/dist/cdn/chunks/src-D-URHI0Z.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-BPiZqxCt.js} +42 -33
- package/dist/cdn/chunks/tiptap-BPiZqxCt.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js → useCloudI18n-Dr4S2TRW.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js.map → useCloudI18n-Dr4S2TRW.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-B_kf_k-g.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-Beau2Z_T.js.map → useEditorRoot-B_kf_k-g.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8s7HtTn.js → useI18n-CSf-ZpcM.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8s7HtTn.js.map → useI18n-CSf-ZpcM.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-slFOCPrh.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-Bgg4qpev.js.map → useLocalizedDisplay-slFOCPrh.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-lPjCGeGC.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-lPjCGeGC.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BKNBwIry.js} +8 -8
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BKNBwIry.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js → usePopoverPosition-BJFFi8x6.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js.map → usePopoverPosition-BJFFi8x6.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js → useScrollToBlock-MI4PP5lk.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js.map → useScrollToBlock-MI4PP5lk.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js → withCurrentFont-CzTFFaJA.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js.map → withCurrentFont-CzTFFaJA.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +784 -762
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CcuCoJDh.js → check-C7ua4TAK.js} +1 -1
- package/dist/{chevron-down-BfYIbFbC.js → chevron-down-DftQrAkI.js} +1 -1
- package/dist/{chevron-right-DyjFqY35.js → chevron-right-B-DULGbg.js} +1 -1
- package/dist/{chevron-up-BHEIxuS-.js → chevron-up-CeYsyD8c.js} +1 -1
- package/dist/{circle-alert-Tq7kAh9S.js → circle-exclamation-point-DHjORV_I.js} +3 -3
- package/dist/{clock-Df0ZiXwQ.js → clock-CajOtLEZ.js} +1 -1
- package/dist/{composables-CRX6rncm.js → composables-DbjgUQlV.js} +1663 -1643
- package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-Cnh2M6iT.js} +54 -40
- package/dist/{createLucideIcon-CfBdtoUw.js → createLucideIcon-D-mELTSY.js} +6 -6
- package/dist/da-CYWJkrTg.js +95 -0
- package/dist/da-qQzj0QGy.js +948 -0
- package/dist/{dist-CX7skkvG.js → dist-A328tG0Z.js} +2 -2
- package/dist/{dist-B8dY8drK.js → dist-B15BvV94.js} +2 -2
- package/dist/{dist-TAv500j6.js → dist-B3G4Yvpd.js} +3 -3
- package/dist/dist-B6ptxfPo.js +406 -0
- package/dist/{dist-ChOb5XHW.js → dist-BmV-2uBJ.js} +2 -2
- package/dist/{dist-fqSers8_.js → dist-BxKFi2h_.js} +199 -199
- package/dist/{dist-BMUUt3zJ.js → dist-CAvsz9cW.js} +680 -655
- package/dist/{dist-D_XrUEET.js → dist-CMBOqk9I.js} +7 -7
- package/dist/{dist-DZ3X-uB8.js → dist-CXTsTO5h.js} +2 -2
- package/dist/{dist-B9a7iVye.js → dist-D5BUcCjv.js} +2 -2
- package/dist/dist-D9cbSSSx.js +4 -0
- package/dist/{dist-54VCNoC0.js → dist-DAdrn64r.js} +2 -2
- package/dist/{dist-BWflWcpW.js → dist-DENg3ORe.js} +33 -24
- package/dist/{dist-C3hu_C3w.js → dist-DI_8rB1X.js} +2 -2
- package/dist/dist-ELLEk-lS.js +4 -0
- package/dist/{editor-modal-D9HT9bD6.js → editor-modal-CgsaLpwB.js} +110 -109
- package/dist/en-DBLcB-CW.js +1 -0
- package/dist/{extensions-Cm6K4SRX.js → extensions-7fb-XtNJ.js} +180 -180
- package/dist/{eye-B3psrAqd.js → eye-fe5sKF_K.js} +1 -1
- package/dist/{image-C3yuPDxx.js → image-CUC7SZiW.js} +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/{info-DKja7A68.js → info-DDbLU4pT.js} +1 -1
- package/dist/keys-D9oKZN1h.js +9 -0
- package/dist/{link-DhzPI4Hn.js → link-C2icj0iH.js} +1 -1
- package/dist/{list-DVGn7Ik2.js → list-KYC_Jb5A.js} +1 -1
- package/dist/{loader-circle-DqKWsMHO.js → loader-circle-DmyagWpc.js} +1 -1
- package/dist/{message-circle-C4TonoBs.js → message-circle-ijyWn6UJ.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-Da9JAgx7.js → normalizeMergeTagMarkup-GrXJfXsQ.js} +82 -82
- package/dist/{package-9OkiEO4S.js → package-CKYm_jQY.js} +1 -1
- package/dist/{pencil-M9vkOB7C.js → pencil-C2TRSR-Y.js} +1 -1
- package/dist/{plus-DxZiv9YC.js → plus-CotJVDxb.js} +1 -1
- package/dist/{preRenderCustomBlocks-CdqSp2P7.js → preRenderCustomBlocks-DuXtzD-F.js} +3 -3
- package/dist/{refresh-cw-UY8_sdFG.js → refresh-cw-CuCRV6D5.js} +1 -1
- package/dist/{rotate-ccw-BFTGCpHn.js → rotate-ccw-BlnQ3y6R.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-DlHp8xgy.js → runtime-dom.esm-bundler-nN-jsqr1.js} +20 -20
- package/dist/{sanitizeHtml-wBibnBF4.js → sanitizeHtml-eV4_BpI6.js} +25 -14
- package/dist/{search-RuGJnMEn.js → search-Dxw6oFrZ.js} +1 -1
- package/dist/{send-DGB1ar02.js → send-C-blQBZ9.js} +1 -1
- package/dist/{smartphone-CVA29CU_.js → smartphone-rLz4X-Dd.js} +1 -1
- package/dist/{socialIcons-CJD6OsI7.js → socialIcons-brRkK9Om.js} +600 -549
- package/dist/{sparkles-IHfEwEcd.js → sparkles-JWQlUiSn.js} +1 -1
- package/dist/{square-_Cl44UU6.js → square-DshDy1Il.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +976 -954
- package/dist/{text-align-start-Dqk2Xt_Q.js → text-align-start-CyasaQtr.js} +13 -13
- package/dist/{trash-Cr7rD5Hh.js → trash-B1lZp2Tv.js} +1 -1
- package/dist/{triangle-alert-CKcpwtUj.js → triangle-exclamation-point-BhJvBEoT.js} +3 -3
- package/dist/{upload-DR9pqVON.js → upload-CNK8JX38.js} +1 -1
- package/dist/{useCloudI18n-BczJoFf4.js → useCloudI18n-HhCZYRV6.js} +2 -2
- package/dist/useEditorRoot-B0Njczhx.js +7 -0
- package/dist/{useI18n-zeWYtWSv.js → useI18n-CM9vKbYc.js} +2 -2
- package/dist/{cdn/chunks/useLocalizedDisplay-Bgg4qpev.js → useLocalizedDisplay-DoaT7nWk.js} +2 -4
- package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-cTC2KbWd.js} +4 -4
- package/dist/{useMergeTag-IoWOO679.js → useMergeTag-D2YDZ8vR.js} +8 -8
- package/dist/{usePopoverPosition-Br3zt_MQ.js → usePopoverPosition-CVRzzLkC.js} +2 -2
- package/dist/{useScrollToBlock-BfOzc1Z6.js → useScrollToBlock-vf_KD0FM.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-BJXc_Mri.js → vue.runtime.esm-bundler-BE5V8ADU.js} +414 -362
- package/dist/{withCurrentFont-m_PHcOD0.js → withCurrentFont-DAmED4fN.js} +1 -1
- package/dist/{x-DZSFHafL.js → x-DbLX5Qdm.js} +1 -1
- package/package.json +23 -23
- package/dist/AiPanels-DAsnX-a3.js +0 -31
- package/dist/CommentsPanel-C5qG17Ki.js +0 -16
- package/dist/CommentsSidebar-C7CWcUYZ.js +0 -526
- package/dist/LanguageMenu-B981Av-6.js +0 -403
- package/dist/cdn/chunks/AiChatPanel-DKDu9cs7.js.map +0 -1
- package/dist/cdn/chunks/AiPanels-jMLVaiKx.js +0 -32
- package/dist/cdn/chunks/AiPanels-jMLVaiKx.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-s79rmHFy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-Bnmq_M4G.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
- package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-DQnlH_YJ.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-EtdTzTmq.js +0 -18
- package/dist/cdn/chunks/CommentsPanel-EtdTzTmq.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Qmj049QX.js +0 -496
- package/dist/cdn/chunks/CommentsSidebar-Qmj049QX.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DnSnEh1X.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-C2I_yTL5.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-DqbULAbc.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +0 -1
- package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-PpIFCDfj.js.map +0 -1
- package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +0 -1
- package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
- package/dist/cdn/chunks/icons-DHExFLlT.js.map +0 -1
- package/dist/cdn/chunks/keys-BUmIvYy3.js +0 -11
- package/dist/cdn/chunks/keys-BUmIvYy3.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-DJI7vvET.js +0 -61
- package/dist/cdn/chunks/sanitizeHtml-DJI7vvET.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-Qw9rHc8C.js.map +0 -1
- package/dist/cdn/chunks/src-Bfj1jHnn.js.map +0 -1
- package/dist/cdn/chunks/src-C9JWWxAk.js.map +0 -1
- package/dist/cdn/chunks/src-mXG-Of9A.js.map +0 -1
- package/dist/cdn/chunks/tiptap-Dipw_zOQ.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-Beau2Z_T.js +0 -9
- package/dist/dist-0alKVRc_.js +0 -406
- package/dist/dist-6DU0me3E.js +0 -4
- package/dist/dist-CcOn7WCo.js +0 -4
- package/dist/en-De3uAutQ.js +0 -1
- package/dist/keys-w_VRjoMu.js +0 -9
- package/dist/useEditorRoot-BcXKhM_8.js +0 -7
- package/dist/useLocalizedDisplay-Cbhx208c.js +0 -31
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { B as e, Ft as t, I as n, M as r, Mt as i, N as a, P as o, Pt as s, U as c, W as l, Y as u, Z as d, _ as f, a as p, c as m, ct as h, d as g, et as _, f as v, g as y, it as b, k as x, l as S, ot as C, r as w, u as T, v as E, w as D, y as O } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as k, c as A, s as j, t as M } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { t as N } from "./
|
|
4
|
-
import { t as P } from "./createLucideIcon-
|
|
5
|
-
import { t as F } from "./
|
|
6
|
-
import { t as I } from "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { h as
|
|
18
|
-
import {
|
|
1
|
+
import { B as e, Ft as t, I as n, M as r, Mt as i, N as a, P as o, Pt as s, U as c, W as l, Y as u, Z as d, _ as f, a as p, c as m, ct as h, d as g, et as _, f as v, g as y, it as b, k as x, l as S, ot as C, r as w, u as T, v as E, w as D, y as O } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
2
|
+
import { a as k, c as A, s as j, t as M } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
|
|
3
|
+
import { t as N } from "./chevron-right-B-DULGbg.js";
|
|
4
|
+
import { t as P } from "./createLucideIcon-D-mELTSY.js";
|
|
5
|
+
import { t as F } from "./pencil-C2TRSR-Y.js";
|
|
6
|
+
import { t as I } from "./plus-CotJVDxb.js";
|
|
7
|
+
import { t as ee } from "./trash-B1lZp2Tv.js";
|
|
8
|
+
import { a as L, n as R, o as te, r as ne, s as z, t as re } from "./dist-B6ptxfPo.js";
|
|
9
|
+
import { t as B } from "./check-C7ua4TAK.js";
|
|
10
|
+
import { t as V } from "./loader-circle-DmyagWpc.js";
|
|
11
|
+
import { t as H } from "./refresh-cw-CuCRV6D5.js";
|
|
12
|
+
import { t as U } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
13
|
+
import { n as ie, t as W } from "./upload-CNK8JX38.js";
|
|
14
|
+
import { t as ae } from "./link-C2icj0iH.js";
|
|
15
|
+
import { t as oe } from "./list-KYC_Jb5A.js";
|
|
16
|
+
import { t as se } from "./search-Dxw6oFrZ.js";
|
|
17
|
+
import { h as ce } from "./dist-A328tG0Z.js";
|
|
18
|
+
import { t as le } from "./x-DbLX5Qdm.js";
|
|
19
19
|
var G = P({
|
|
20
20
|
name: "file",
|
|
21
21
|
size: 24,
|
|
@@ -255,7 +255,7 @@ function _e(t, n) {
|
|
|
255
255
|
a = null;
|
|
256
256
|
let e = s();
|
|
257
257
|
e.length > 0 && (t.value?.querySelector("[autofocus], input:not([disabled])") ?? e[0]).focus();
|
|
258
|
-
}), i =
|
|
258
|
+
}), i = L(t, "keydown", c);
|
|
259
259
|
}
|
|
260
260
|
function u(e = {}) {
|
|
261
261
|
let t = e.restoreFocus !== !1;
|
|
@@ -300,7 +300,7 @@ var ve = {
|
|
|
300
300
|
class: "tpl:transition-colors tpl:duration-150 tpl:hover:underline",
|
|
301
301
|
style: { color: "var(--tpl-primary)" },
|
|
302
302
|
onClick: n[0] ||= (e) => a("navigate", null)
|
|
303
|
-
}, t(h(s).mediaLibrary.allFiles), 1), (r(!0), v(w, null, o(c.value, (e, n) => (r(), v(w, { key: e.id }, [f(h(
|
|
303
|
+
}, t(h(s).mediaLibrary.allFiles), 1), (r(!0), v(w, null, o(c.value, (e, n) => (r(), v(w, { key: e.id }, [f(h(N), {
|
|
304
304
|
size: 12,
|
|
305
305
|
"stroke-width": 2
|
|
306
306
|
}), n < c.value.length - 1 ? (r(), v("button", {
|
|
@@ -333,31 +333,31 @@ var ve = {
|
|
|
333
333
|
"deleteFolder"
|
|
334
334
|
],
|
|
335
335
|
setup(e, { emit: a }) {
|
|
336
|
-
let c = e, u = a, { t: d } = Z(), p = _(!1), y = _(!1), b = _(""), x = _(!1), C = _(""), E = _(!1), D = m(() => c.folder.children.length > 0), O = m(() => c.depth < 4), M = m(() => c.currentFolderId === c.folder.id),
|
|
337
|
-
function
|
|
338
|
-
for (let n of e) if (n.id === t ||
|
|
336
|
+
let c = e, u = a, { t: d } = Z(), p = _(!1), y = _(!1), b = _(""), x = _(!1), C = _(""), E = _(!1), D = m(() => c.folder.children.length > 0), O = m(() => c.depth < 4), M = m(() => c.currentFolderId === c.folder.id), P = m(() => c.currentFolderId ? R(c.folder.children, c.currentFolderId) : !1), L = m(() => p.value || P.value);
|
|
337
|
+
function R(e, t) {
|
|
338
|
+
for (let n of e) if (n.id === t || R(n.children, t)) return !0;
|
|
339
339
|
return !1;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function te() {
|
|
342
342
|
p.value = !p.value;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ne() {
|
|
345
345
|
y.value = !0, b.value = c.folder.name;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function z() {
|
|
348
348
|
let e = b.value.trim();
|
|
349
349
|
e && e !== c.folder.name && u("renameFolder", c.folder.id, e), y.value = !1, b.value = "";
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function re() {
|
|
352
352
|
y.value = !1, b.value = "";
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function B() {
|
|
355
355
|
x.value = !0, C.value = "", p.value = !0;
|
|
356
356
|
}
|
|
357
357
|
function V() {
|
|
358
358
|
C.value.trim() && u("createFolder", C.value.trim(), c.folder.id), x.value = !1, C.value = "";
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function H() {
|
|
361
361
|
x.value = !1, C.value = "";
|
|
362
362
|
}
|
|
363
363
|
function U() {
|
|
@@ -382,11 +382,11 @@ var ve = {
|
|
|
382
382
|
key: 0,
|
|
383
383
|
type: "button",
|
|
384
384
|
class: "tpl:flex tpl:size-4 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
385
|
-
"aria-expanded":
|
|
386
|
-
"aria-label":
|
|
387
|
-
onClick: A(
|
|
388
|
-
}, [f(h(
|
|
389
|
-
class: i(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90":
|
|
385
|
+
"aria-expanded": L.value,
|
|
386
|
+
"aria-label": L.value ? h(d).mediaLibrary.collapseFolder : h(d).mediaLibrary.expandFolder,
|
|
387
|
+
onClick: A(te, ["stop"])
|
|
388
|
+
}, [f(h(N), {
|
|
389
|
+
class: i(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90": L.value }]),
|
|
390
390
|
size: 10,
|
|
391
391
|
"stroke-width": 2
|
|
392
392
|
}, null, 8, ["class"])], 8, Se)) : (r(), v("span", Ce)),
|
|
@@ -410,8 +410,8 @@ var ve = {
|
|
|
410
410
|
color: "var(--tpl-text)"
|
|
411
411
|
},
|
|
412
412
|
autofocus: "",
|
|
413
|
-
onKeydown: [j(
|
|
414
|
-
onBlur:
|
|
413
|
+
onKeydown: [j(z, ["enter"]), j(A(re, ["stop"]), ["escape"])],
|
|
414
|
+
onBlur: z,
|
|
415
415
|
onClick: c[2] ||= A(() => {}, ["stop"])
|
|
416
416
|
}, null, 40, Te)), [[k, b.value]]) : g("", !0),
|
|
417
417
|
y.value ? g("", !0) : (r(), v("span", {
|
|
@@ -424,8 +424,8 @@ var ve = {
|
|
|
424
424
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
425
425
|
title: h(d).mediaLibrary.addSubfolder,
|
|
426
426
|
"aria-label": h(d).mediaLibrary.addSubfolder,
|
|
427
|
-
onClick: A(
|
|
428
|
-
}, [f(h(
|
|
427
|
+
onClick: A(B, ["stop"])
|
|
428
|
+
}, [f(h(I), {
|
|
429
429
|
size: 12,
|
|
430
430
|
"stroke-width": 2
|
|
431
431
|
})], 8, Ee)) : g("", !0),
|
|
@@ -435,8 +435,8 @@ var ve = {
|
|
|
435
435
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
436
436
|
title: h(d).mediaLibrary.renameFolder,
|
|
437
437
|
"aria-label": h(d).mediaLibrary.renameFolder,
|
|
438
|
-
onClick: A(
|
|
439
|
-
}, [f(h(
|
|
438
|
+
onClick: A(ne, ["stop"])
|
|
439
|
+
}, [f(h(F), {
|
|
440
440
|
size: 12,
|
|
441
441
|
"stroke-width": 2
|
|
442
442
|
})], 8, De)) : g("", !0),
|
|
@@ -448,13 +448,13 @@ var ve = {
|
|
|
448
448
|
title: E.value ? h(d).mediaLibrary.deleteFolderConfirm : h(d).mediaLibrary.deleteFolder,
|
|
449
449
|
"aria-label": E.value ? h(d).mediaLibrary.deleteFolderConfirm : h(d).mediaLibrary.deleteFolder,
|
|
450
450
|
onClick: A(U, ["stop"])
|
|
451
|
-
}, [f(h(
|
|
451
|
+
}, [f(h(ee), {
|
|
452
452
|
size: 12,
|
|
453
453
|
"stroke-width": 2,
|
|
454
454
|
style: { color: "var(--tpl-danger)" }
|
|
455
455
|
})], 8, Oe)) : g("", !0)
|
|
456
456
|
], 2))
|
|
457
|
-
], 36),
|
|
457
|
+
], 36), L.value ? (r(), v("div", ke, [(r(!0), v(w, null, o(e.folder.children, (t) => (r(), T(p, {
|
|
458
458
|
key: t.id,
|
|
459
459
|
folder: t,
|
|
460
460
|
"current-folder-id": e.currentFolderId,
|
|
@@ -488,7 +488,7 @@ var ve = {
|
|
|
488
488
|
},
|
|
489
489
|
placeholder: h(d).mediaLibrary.subfolderName,
|
|
490
490
|
autofocus: "",
|
|
491
|
-
onKeydown: [j(V, ["enter"]), j(A(
|
|
491
|
+
onKeydown: [j(V, ["enter"]), j(A(H, ["stop"]), ["escape"])],
|
|
492
492
|
onBlur: V
|
|
493
493
|
}, null, 40, Ae), [[k, C.value]])], 4)) : g("", !0)])) : g("", !0)]);
|
|
494
494
|
};
|
|
@@ -578,7 +578,7 @@ var ve = {
|
|
|
578
578
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:transition-all tpl:duration-150",
|
|
579
579
|
style: { color: "var(--tpl-text-muted)" },
|
|
580
580
|
onClick: d
|
|
581
|
-
}, [f(h(
|
|
581
|
+
}, [f(h(I), {
|
|
582
582
|
size: 14,
|
|
583
583
|
"stroke-width": 1.5
|
|
584
584
|
}), y(" " + t(h(a).mediaLibrary.newFolder), 1)])) : g("", !0),
|
|
@@ -870,7 +870,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
870
870
|
}, ft = {
|
|
871
871
|
key: 4,
|
|
872
872
|
class: "tpl:flex tpl:justify-center tpl:py-4"
|
|
873
|
-
}, pt = /*#__PURE__*/
|
|
873
|
+
}, pt = /*#__PURE__*/ U(/* @__PURE__ */ O({
|
|
874
874
|
__name: "MediaGrid",
|
|
875
875
|
props: {
|
|
876
876
|
items: {},
|
|
@@ -924,7 +924,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
924
924
|
return k(e) ? "tpl:opacity-100" : "tpl:opacity-0 tpl:group-hover:opacity-100 tpl:group-focus-within:opacity-100";
|
|
925
925
|
}
|
|
926
926
|
let { t: M } = Z(), N = D(X, null), P = _(null);
|
|
927
|
-
|
|
927
|
+
z(P, ([{ isIntersecting: e }]) => {
|
|
928
928
|
e && a.hasMore && !a.isLoading && c("loadMore");
|
|
929
929
|
}, { threshold: .1 });
|
|
930
930
|
function I(e) {
|
|
@@ -992,7 +992,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
992
992
|
title: h(M).mediaLibrary.editFile,
|
|
993
993
|
"aria-label": h(M).mediaLibrary.editFile,
|
|
994
994
|
onClick: A((t) => c("edit", e), ["stop"])
|
|
995
|
-
}, [f(h(
|
|
995
|
+
}, [f(h(F), {
|
|
996
996
|
size: 12,
|
|
997
997
|
"stroke-width": 2
|
|
998
998
|
})], 8, lt)) : g("", !0), x(e) ? (r(), v("button", {
|
|
@@ -1004,11 +1004,11 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1004
1004
|
title: h(M).mediaLibrary.replaceFile,
|
|
1005
1005
|
"aria-label": h(M).mediaLibrary.replaceFile,
|
|
1006
1006
|
onClick: A((t) => c("replace", e), ["stop"])
|
|
1007
|
-
}, [f(h(
|
|
1007
|
+
}, [f(h(H), {
|
|
1008
1008
|
size: 12,
|
|
1009
1009
|
"stroke-width": 2
|
|
1010
1010
|
})], 8, ut)) : g("", !0)], 2),
|
|
1011
|
-
k(e) ? (r(), v("div", dt, [f(h(
|
|
1011
|
+
k(e) ? (r(), v("div", dt, [f(h(B), {
|
|
1012
1012
|
size: 12,
|
|
1013
1013
|
"stroke-width": 3
|
|
1014
1014
|
})])) : g("", !0)
|
|
@@ -1062,7 +1062,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1062
1062
|
title: h(M).mediaLibrary.editFile,
|
|
1063
1063
|
"aria-label": h(M).mediaLibrary.editFile,
|
|
1064
1064
|
onClick: A((t) => c("edit", e), ["stop"])
|
|
1065
|
-
}, [f(h(
|
|
1065
|
+
}, [f(h(F), {
|
|
1066
1066
|
size: 11,
|
|
1067
1067
|
"stroke-width": 2
|
|
1068
1068
|
})], 8, Qe)) : g("", !0), x(e) ? (r(), v("button", {
|
|
@@ -1077,11 +1077,11 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1077
1077
|
title: h(M).mediaLibrary.replaceFile,
|
|
1078
1078
|
"aria-label": h(M).mediaLibrary.replaceFile,
|
|
1079
1079
|
onClick: A((t) => c("replace", e), ["stop"])
|
|
1080
|
-
}, [f(h(
|
|
1080
|
+
}, [f(h(H), {
|
|
1081
1081
|
size: 11,
|
|
1082
1082
|
"stroke-width": 2
|
|
1083
1083
|
})], 8, $e)) : g("", !0)], 2),
|
|
1084
|
-
k(e) ? (r(), v("div", et, [f(h(
|
|
1084
|
+
k(e) ? (r(), v("div", et, [f(h(B), {
|
|
1085
1085
|
size: 12,
|
|
1086
1086
|
"stroke-width": 3
|
|
1087
1087
|
})])) : g("", !0)
|
|
@@ -1091,7 +1091,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1091
1091
|
ref: P,
|
|
1092
1092
|
class: "tpl:h-4"
|
|
1093
1093
|
}, null, 512),
|
|
1094
|
-
e.isLoading && e.items.length > 0 ? (r(), v("div", ft, [f(h(
|
|
1094
|
+
e.isLoading && e.items.length > 0 ? (r(), v("div", ft, [f(h(V), {
|
|
1095
1095
|
class: "tpl-spinner",
|
|
1096
1096
|
size: 20,
|
|
1097
1097
|
"stroke-width": 2,
|
|
@@ -1202,7 +1202,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1202
1202
|
},
|
|
1203
1203
|
disabled: !x.value.trim() || n.isImporting,
|
|
1204
1204
|
onClick: C
|
|
1205
|
-
}, [n.isImporting ? (r(), v("span", St, [f(h(
|
|
1205
|
+
}, [n.isImporting ? (r(), v("span", St, [f(h(V), {
|
|
1206
1206
|
class: "tpl:animate-spin",
|
|
1207
1207
|
size: 12,
|
|
1208
1208
|
"stroke-width": 2
|
|
@@ -1233,7 +1233,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1233
1233
|
}), r.children.length && n.push(...l(r.children, t + 1));
|
|
1234
1234
|
return n;
|
|
1235
1235
|
}
|
|
1236
|
-
return
|
|
1236
|
+
return re(c, () => {
|
|
1237
1237
|
i("close");
|
|
1238
1238
|
}), (n, u) => (r(), v("div", {
|
|
1239
1239
|
ref_key: "pickerRef",
|
|
@@ -1283,7 +1283,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1283
1283
|
}, Ft = {
|
|
1284
1284
|
class: "tpl:mt-0.5 tpl:text-[10px]",
|
|
1285
1285
|
style: { color: "var(--tpl-text-muted)" }
|
|
1286
|
-
}, It = /*#__PURE__*/
|
|
1286
|
+
}, It = /*#__PURE__*/ U(/* @__PURE__ */ O({
|
|
1287
1287
|
__name: "MediaPreviewPanel",
|
|
1288
1288
|
props: {
|
|
1289
1289
|
item: {},
|
|
@@ -1538,9 +1538,9 @@ var Qt = [
|
|
|
1538
1538
|
for (let r of Array.from(e)) y(r) ? t.push(r) : n.push(r.name);
|
|
1539
1539
|
C.value = n, t.length && a("upload", t);
|
|
1540
1540
|
}
|
|
1541
|
-
let { isOverDropZone: O } =
|
|
1541
|
+
let { isOverDropZone: O } = ne(T, { onDrop: (e) => {
|
|
1542
1542
|
e?.length && E(e);
|
|
1543
|
-
} }), { open: k, onChange: A } =
|
|
1543
|
+
} }), { open: k, onChange: A } = te({
|
|
1544
1544
|
accept: l.value,
|
|
1545
1545
|
multiple: !0
|
|
1546
1546
|
});
|
|
@@ -1560,7 +1560,7 @@ var Qt = [
|
|
|
1560
1560
|
"background-color": "var(--tpl-bg)"
|
|
1561
1561
|
},
|
|
1562
1562
|
onClick: a[0] ||= (e) => h(k)()
|
|
1563
|
-
}, [e.isUploading ? (r(), v("div", $t, [f(h(
|
|
1563
|
+
}, [e.isUploading ? (r(), v("div", $t, [f(h(V), {
|
|
1564
1564
|
class: "tpl-spinner",
|
|
1565
1565
|
size: 20,
|
|
1566
1566
|
"stroke-width": 2,
|
|
@@ -1569,7 +1569,7 @@ var Qt = [
|
|
|
1569
1569
|
current: e.uploadProgress.current,
|
|
1570
1570
|
total: e.uploadProgress.total
|
|
1571
1571
|
}) : h(o).mediaLibrary.uploading), 1)])) : (r(), v(w, { key: 1 }, [
|
|
1572
|
-
f(h(
|
|
1572
|
+
f(h(W), {
|
|
1573
1573
|
class: "tpl:mb-2",
|
|
1574
1574
|
size: 24,
|
|
1575
1575
|
"stroke-width": 1.5,
|
|
@@ -1696,13 +1696,13 @@ function pn(t) {
|
|
|
1696
1696
|
e(o, (e) => {
|
|
1697
1697
|
e && n.loadFolders();
|
|
1698
1698
|
});
|
|
1699
|
-
let b =
|
|
1699
|
+
let b = ce((e) => {
|
|
1700
1700
|
n.search(e);
|
|
1701
1701
|
}, 300);
|
|
1702
1702
|
function x(e) {
|
|
1703
1703
|
s.value = e, b(e);
|
|
1704
1704
|
}
|
|
1705
|
-
let { copy: S, copied: C } =
|
|
1705
|
+
let { copy: S, copied: C } = R({
|
|
1706
1706
|
copiedDuring: 2e3,
|
|
1707
1707
|
legacy: !0
|
|
1708
1708
|
});
|
|
@@ -1835,13 +1835,13 @@ function mn(e) {
|
|
|
1835
1835
|
async function L(e) {
|
|
1836
1836
|
s.value = e, await F();
|
|
1837
1837
|
}
|
|
1838
|
-
async function
|
|
1838
|
+
async function R(e) {
|
|
1839
1839
|
c.value = e, await F();
|
|
1840
1840
|
}
|
|
1841
|
-
async function
|
|
1841
|
+
async function te(e) {
|
|
1842
1842
|
a.value = "files", i.value = e, o.value = "", m.value = /* @__PURE__ */ new Set(), h.value = null, await F();
|
|
1843
1843
|
}
|
|
1844
|
-
async function
|
|
1844
|
+
async function ne() {
|
|
1845
1845
|
a.value = "frequently-used", i.value = null, o.value = "", m.value = /* @__PURE__ */ new Set(), h.value = null, await W();
|
|
1846
1846
|
}
|
|
1847
1847
|
async function z(r) {
|
|
@@ -1861,7 +1861,7 @@ function mn(e) {
|
|
|
1861
1861
|
u.value = !1;
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
|
-
async function
|
|
1864
|
+
async function re(r) {
|
|
1865
1865
|
let { create: a } = t;
|
|
1866
1866
|
if (typeof a == "function") {
|
|
1867
1867
|
u.value = !0, p.value = {
|
|
@@ -1890,7 +1890,7 @@ function mn(e) {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
|
-
async function
|
|
1893
|
+
async function B(t) {
|
|
1894
1894
|
if (m.value.size === 0) return;
|
|
1895
1895
|
let { move: r } = M() ?? { move: !1 };
|
|
1896
1896
|
if (typeof r == "function") try {
|
|
@@ -1904,7 +1904,7 @@ function mn(e) {
|
|
|
1904
1904
|
e.onError?.(t);
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
|
-
async function
|
|
1907
|
+
async function V(r, i, a) {
|
|
1908
1908
|
let { update: o } = t;
|
|
1909
1909
|
if (typeof o != "function") return !1;
|
|
1910
1910
|
try {
|
|
@@ -2107,13 +2107,13 @@ function mn(e) {
|
|
|
2107
2107
|
loadMore: I,
|
|
2108
2108
|
search: ee,
|
|
2109
2109
|
filterByCategory: L,
|
|
2110
|
-
sortBy:
|
|
2111
|
-
navigateToFolder:
|
|
2112
|
-
showFrequentlyUsed:
|
|
2110
|
+
sortBy: R,
|
|
2111
|
+
navigateToFolder: te,
|
|
2112
|
+
showFrequentlyUsed: ne,
|
|
2113
2113
|
uploadFile: z,
|
|
2114
|
-
uploadFiles:
|
|
2115
|
-
moveSelected:
|
|
2116
|
-
updateFile:
|
|
2114
|
+
uploadFiles: re,
|
|
2115
|
+
moveSelected: B,
|
|
2116
|
+
updateFile: V,
|
|
2117
2117
|
deleteSelected: ie,
|
|
2118
2118
|
isImportingFromUrl: x,
|
|
2119
2119
|
importFromUrlError: S,
|
|
@@ -2237,7 +2237,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2237
2237
|
"ready"
|
|
2238
2238
|
],
|
|
2239
2239
|
setup(n, { expose: l, emit: u }) {
|
|
2240
|
-
let d = n, p = u, _ = E(() => import("./MediaEditModal-
|
|
2240
|
+
let d = n, p = u, _ = E(() => import("./MediaEditModal-BxbwZxnf.js")), b = m(() => d.translations), C = m(() => d.confirmTestId ?? "media-confirm"), D = {
|
|
2241
2241
|
get maxFileSize() {
|
|
2242
2242
|
return d.provider.maxFileSize;
|
|
2243
2243
|
},
|
|
@@ -2256,32 +2256,32 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2256
2256
|
}), N = pn({
|
|
2257
2257
|
library: j,
|
|
2258
2258
|
translations: b
|
|
2259
|
-
}), P = m(() => typeof d.provider.create == "function"),
|
|
2259
|
+
}), P = m(() => typeof d.provider.create == "function"), F = m(() => d.provider.folders !== !1), I = m(() => typeof d.provider.importFromUrl == "function"), ee = m(() => typeof d.provider.delete == "function"), L = m(() => typeof d.provider.update == "function"), R = m(() => typeof d.provider.replace == "function"), te = m(() => typeof d.provider.frequentlyUsed == "function"), ne = m(() => {
|
|
2260
2260
|
let e = d.provider.folders;
|
|
2261
2261
|
return e !== !1 && typeof e.move == "function";
|
|
2262
|
-
}),
|
|
2262
|
+
}), z = m(() => {
|
|
2263
2263
|
let e = d.provider.folders;
|
|
2264
2264
|
return e !== !1 && typeof e.create == "function";
|
|
2265
|
-
}),
|
|
2265
|
+
}), re = m(() => {
|
|
2266
2266
|
let e = d.provider.folders;
|
|
2267
2267
|
return e !== !1 && typeof e.update == "function";
|
|
2268
|
-
}),
|
|
2268
|
+
}), V = m(() => {
|
|
2269
2269
|
let e = d.provider.folders;
|
|
2270
2270
|
return e !== !1 && typeof e.delete == "function";
|
|
2271
|
-
}),
|
|
2271
|
+
}), H = m(() => j.isLoading.value && N.displayItems.value.length === 0), U = m(() => {
|
|
2272
2272
|
let e = j.previewItem.value;
|
|
2273
2273
|
return e ? !d.accept?.length || O(e.mimeType ?? "", d.accept) : !1;
|
|
2274
|
-
}),
|
|
2275
|
-
if (!
|
|
2274
|
+
}), W = m(() => {
|
|
2275
|
+
if (!ee.value) return 0;
|
|
2276
2276
|
let e = 0;
|
|
2277
2277
|
for (let t of j.selectedItems.value) N.displayItems.value.find((e) => e.id === t)?.canDelete !== !1 && (e += 1);
|
|
2278
2278
|
return e;
|
|
2279
|
-
}),
|
|
2279
|
+
}), ce = m(() => N.showImportUrlModal.value || N.editingItem.value !== null || j.showReplaceWarning.value);
|
|
2280
2280
|
function G() {
|
|
2281
|
-
return
|
|
2281
|
+
return ce.value ? !0 : N.showMovePicker.value ? (N.showMovePicker.value = !1, !0) : j.showDeleteWarning.value ? (j.cancelDelete(), !0) : !1;
|
|
2282
2282
|
}
|
|
2283
2283
|
function K() {
|
|
2284
|
-
|
|
2284
|
+
U.value && j.previewItem.value && p("confirm", j.previewItem.value);
|
|
2285
2285
|
}
|
|
2286
2286
|
function de(e) {
|
|
2287
2287
|
let t = e.target.value;
|
|
@@ -2297,7 +2297,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2297
2297
|
}, { immediate: !0 }), j.loadItems(), j.loadFrequentlyUsed(), j.loadStorage(), p("ready"), x(() => {
|
|
2298
2298
|
N.resetUI();
|
|
2299
2299
|
}), l({
|
|
2300
|
-
nestedDialogOpen:
|
|
2300
|
+
nestedDialogOpen: ce,
|
|
2301
2301
|
handleEscape: G,
|
|
2302
2302
|
library: j,
|
|
2303
2303
|
ui: N
|
|
@@ -2312,7 +2312,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2312
2312
|
S("div", yn, [S("input", {
|
|
2313
2313
|
value: h(N).searchInput.value,
|
|
2314
2314
|
type: "search",
|
|
2315
|
-
disabled:
|
|
2315
|
+
disabled: H.value,
|
|
2316
2316
|
"aria-label": b.value.mediaLibrary.searchAriaLabel,
|
|
2317
2317
|
class: "tpl:w-52 tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-xs tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:outline-none tpl:focus:shadow-[var(--tpl-ring)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
|
|
2318
2318
|
style: {
|
|
@@ -2322,7 +2322,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2322
2322
|
},
|
|
2323
2323
|
placeholder: b.value.mediaLibrary.searchPlaceholder,
|
|
2324
2324
|
onInput: a[0] ||= (e) => h(N).handleSearchInput(e.target.value)
|
|
2325
|
-
}, null, 40, bn), f(h(
|
|
2325
|
+
}, null, 40, bn), f(h(se), {
|
|
2326
2326
|
class: "tpl:absolute tpl:top-1/2 tpl:left-2.5 tpl:-translate-y-1/2",
|
|
2327
2327
|
size: 13,
|
|
2328
2328
|
"stroke-width": 2,
|
|
@@ -2335,7 +2335,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2335
2335
|
class: "tpl:flex tpl:size-7 tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
|
|
2336
2336
|
style: { color: "var(--tpl-text-muted)" },
|
|
2337
2337
|
onClick: a[1] ||= (e) => p("close")
|
|
2338
|
-
}, [f(h(
|
|
2338
|
+
}, [f(h(le), {
|
|
2339
2339
|
size: 18,
|
|
2340
2340
|
"stroke-width": 2
|
|
2341
2341
|
})], 8, xn)) : g("", !0)
|
|
@@ -2348,14 +2348,14 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2348
2348
|
"leave-from-class": "tpl:ml-0 tpl:opacity-100",
|
|
2349
2349
|
"leave-to-class": "tpl:-ml-48 tpl:opacity-0"
|
|
2350
2350
|
}, {
|
|
2351
|
-
default: c(() => [
|
|
2351
|
+
default: c(() => [F.value && h(N).showSidebar.value ? (r(), v("div", Cn, [f(Fe, {
|
|
2352
2352
|
folders: h(N).folderTree.value,
|
|
2353
2353
|
"current-folder-id": h(j).currentFolderId.value,
|
|
2354
2354
|
"view-mode": h(j).viewMode.value,
|
|
2355
|
-
"has-frequently-used":
|
|
2356
|
-
"can-create-folder":
|
|
2357
|
-
"can-rename-folder":
|
|
2358
|
-
"can-delete-folder":
|
|
2355
|
+
"has-frequently-used": te.value && h(N).hasFrequentlyUsed.value,
|
|
2356
|
+
"can-create-folder": z.value,
|
|
2357
|
+
"can-rename-folder": re.value,
|
|
2358
|
+
"can-delete-folder": V.value,
|
|
2359
2359
|
onNavigate: h(j).navigateToFolder,
|
|
2360
2360
|
onCreateFolder: h(N).handleCreateFolder,
|
|
2361
2361
|
onRenameFolder: h(N).handleRenameFolder,
|
|
@@ -2377,7 +2377,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2377
2377
|
])])) : g("", !0)]),
|
|
2378
2378
|
_: 1
|
|
2379
2379
|
}), S("div", wn, [S("div", Tn, [S("div", En, [
|
|
2380
|
-
|
|
2380
|
+
F.value ? (r(), v("button", {
|
|
2381
2381
|
key: 0,
|
|
2382
2382
|
type: "button",
|
|
2383
2383
|
"data-testid": "media-folder-toggle",
|
|
@@ -2430,7 +2430,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2430
2430
|
"aria-label": b.value.mediaLibrary.viewList,
|
|
2431
2431
|
"aria-pressed": h(N).layoutMode.value === "list",
|
|
2432
2432
|
onClick: a[4] ||= (e) => h(N).layoutMode.value = "list"
|
|
2433
|
-
}, [f(h(
|
|
2433
|
+
}, [f(h(oe), {
|
|
2434
2434
|
size: 14,
|
|
2435
2435
|
"stroke-width": 2
|
|
2436
2436
|
})], 12, jn)])
|
|
@@ -2448,7 +2448,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2448
2448
|
}, [S("option", Pn, t(b.value.mediaLibrary.filterAll), 1), (r(!0), v(w, null, o(h(k), (e) => (r(), v("option", {
|
|
2449
2449
|
key: e,
|
|
2450
2450
|
value: e
|
|
2451
|
-
}, t(h(N).getCategoryLabel(e)), 9, Fn))), 128))], 40, Nn)) : g("", !0)])]), S("div", In, [h(j).viewMode.value === "files" && (P.value ||
|
|
2451
|
+
}, t(h(N).getCategoryLabel(e)), 9, Fn))), 128))], 40, Nn)) : g("", !0)])]), S("div", In, [h(j).viewMode.value === "files" && (P.value || I.value) ? (r(), v("div", Ln, [P.value ? (r(), T(an, {
|
|
2452
2452
|
key: 0,
|
|
2453
2453
|
"is-uploading": h(j).isUploading.value,
|
|
2454
2454
|
"upload-progress": h(j).uploadProgress.value,
|
|
@@ -2457,7 +2457,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2457
2457
|
"is-uploading",
|
|
2458
2458
|
"upload-progress",
|
|
2459
2459
|
"onUpload"
|
|
2460
|
-
])) : g("", !0),
|
|
2460
|
+
])) : g("", !0), I.value ? (r(), v("button", {
|
|
2461
2461
|
key: 1,
|
|
2462
2462
|
"data-testid": "media-import-url",
|
|
2463
2463
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
@@ -2467,7 +2467,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2467
2467
|
"background-color": "var(--tpl-bg)"
|
|
2468
2468
|
},
|
|
2469
2469
|
onClick: a[5] ||= (e) => h(N).showImportUrlModal.value = !0
|
|
2470
|
-
}, [f(h(
|
|
2470
|
+
}, [f(h(ae), {
|
|
2471
2471
|
size: 14,
|
|
2472
2472
|
"stroke-width": 2
|
|
2473
2473
|
}), y(" " + t(b.value.mediaLibrary.importFromUrl), 1)])) : g("", !0)])) : g("", !0), f(pt, {
|
|
@@ -2478,8 +2478,8 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2478
2478
|
accept: n.accept,
|
|
2479
2479
|
layout: h(N).layoutMode.value,
|
|
2480
2480
|
"search-query": h(j).searchQuery.value,
|
|
2481
|
-
"can-update":
|
|
2482
|
-
"can-replace":
|
|
2481
|
+
"can-update": L.value,
|
|
2482
|
+
"can-replace": R.value,
|
|
2483
2483
|
onSelect: h(N).handleSelect,
|
|
2484
2484
|
onToggle: h(j).toggleSelection,
|
|
2485
2485
|
onLoadMore: h(j).loadMore,
|
|
@@ -2519,7 +2519,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2519
2519
|
visible: !0,
|
|
2520
2520
|
item: h(N).editingItem.value,
|
|
2521
2521
|
save: h(N).handleEditSave,
|
|
2522
|
-
"can-crop":
|
|
2522
|
+
"can-crop": R.value && h(N).editingItem.value.canUpdate !== !1,
|
|
2523
2523
|
onClose: a[7] ||= (e) => h(N).editingItem.value = null
|
|
2524
2524
|
}, null, 8, [
|
|
2525
2525
|
"item",
|
|
@@ -2608,15 +2608,15 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2608
2608
|
backgroundColor: "var(--tpl-bg)"
|
|
2609
2609
|
}),
|
|
2610
2610
|
onClick: a[11] ||= (e) => h(N).copy(h(N).selectedUrl.value)
|
|
2611
|
-
}, [h(N).copied.value ? (r(), T(h(
|
|
2611
|
+
}, [h(N).copied.value ? (r(), T(h(B), {
|
|
2612
2612
|
key: 1,
|
|
2613
2613
|
size: 12,
|
|
2614
2614
|
"stroke-width": 2
|
|
2615
|
-
})) : (r(), T(h(
|
|
2615
|
+
})) : (r(), T(h(ie), {
|
|
2616
2616
|
key: 0,
|
|
2617
2617
|
size: 12,
|
|
2618
2618
|
"stroke-width": 2
|
|
2619
|
-
})), y(" " + t(h(N).copied.value ? b.value.mediaLibrary.copied : b.value.mediaLibrary.copyUrl), 1)], 4)) : g("", !0),
|
|
2619
|
+
})), y(" " + t(h(N).copied.value ? b.value.mediaLibrary.copied : b.value.mediaLibrary.copyUrl), 1)], 4)) : g("", !0), ne.value ? (r(), v("div", Yn, [S("button", {
|
|
2620
2620
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
2621
2621
|
style: {
|
|
2622
2622
|
"border-color": "var(--tpl-border)",
|
|
@@ -2634,7 +2634,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2634
2634
|
"folders",
|
|
2635
2635
|
"current-folder-id",
|
|
2636
2636
|
"onSelect"
|
|
2637
|
-
])) : g("", !0)])) : g("", !0)])) : g("", !0), S("div", Xn, [
|
|
2637
|
+
])) : g("", !0)])) : g("", !0)])) : g("", !0), S("div", Xn, [W.value > 0 ? (r(), v("button", {
|
|
2638
2638
|
key: 0,
|
|
2639
2639
|
"data-testid": "media-delete",
|
|
2640
2640
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
@@ -2652,15 +2652,16 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2652
2652
|
"background-color": "var(--tpl-primary)",
|
|
2653
2653
|
color: "var(--tpl-on-primary)"
|
|
2654
2654
|
},
|
|
2655
|
-
disabled: !
|
|
2655
|
+
disabled: !U.value,
|
|
2656
2656
|
onClick: K
|
|
2657
2657
|
}, t(n.accept?.length ? b.value.mediaLibrary.selectImage : b.value.mediaLibrary.selectFile), 9, Zn)) : g("", !0)])])])
|
|
2658
2658
|
]));
|
|
2659
2659
|
}
|
|
2660
2660
|
}), $n = /* #__PURE__ */ Object.assign({
|
|
2661
2661
|
"./locales/ca.ts": () => import("./ca-Cc6eL0ZS.js"),
|
|
2662
|
+
"./locales/da.ts": () => import("./da-CYWJkrTg.js"),
|
|
2662
2663
|
"./locales/de.ts": () => import("./de-DtrXVcuY.js"),
|
|
2663
|
-
"./locales/en.ts": () => import("./en-
|
|
2664
|
+
"./locales/en.ts": () => import("./en-DBLcB-CW.js"),
|
|
2664
2665
|
"./locales/es.ts": () => import("./es-Dw_h7Oll.js"),
|
|
2665
2666
|
"./locales/fr.ts": () => import("./fr-BJaeKu_8.js"),
|
|
2666
2667
|
"./locales/ja.ts": () => import("./ja-Cu2HdYaK.js"),
|
|
@@ -2716,7 +2717,7 @@ var sr = ["data-tpl-theme"], cr = /* @__PURE__ */ O({
|
|
|
2716
2717
|
function x(e) {
|
|
2717
2718
|
e.key === "Escape" && (y.value?.handleEscape() ? e.preventDefault() : s("close"));
|
|
2718
2719
|
}
|
|
2719
|
-
|
|
2720
|
+
L(document, "keydown", x);
|
|
2720
2721
|
function C(e) {
|
|
2721
2722
|
s("select", e), s("close");
|
|
2722
2723
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as default } from "./editor-modal-CgsaLpwB.js";
|