@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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { C as e, F as t, G as n, S as r, ct as i, g as a, h as o, n as s } from "./draggable-IRVFEZ-b.js";
|
|
2
|
+
// src/components/CommentsPanel.vue
|
|
3
|
+
var c = /* @__PURE__ */ e({
|
|
4
|
+
__name: "CommentsPanel",
|
|
5
|
+
props: { feature: {} },
|
|
6
|
+
setup(e) {
|
|
7
|
+
let c = r(() => import("./CommentsSidebar-BJ87vc7i.js"));
|
|
8
|
+
return (r, l) => (t(), o(s, {
|
|
9
|
+
"enter-active-class": "tpl-panel-enter-active",
|
|
10
|
+
"leave-active-class": "tpl-panel-leave-active"
|
|
11
|
+
}, {
|
|
12
|
+
default: n(() => [e.feature.isOpen.value ? (t(), o(i(c), {
|
|
13
|
+
key: 0,
|
|
14
|
+
visible: e.feature.isOpen.value,
|
|
15
|
+
feature: e.feature,
|
|
16
|
+
onClose: l[0] ||= (t) => e.feature.close()
|
|
17
|
+
}, null, 8, ["visible", "feature"])) : a("", !0)]),
|
|
18
|
+
_: 1
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export { c as default };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=CommentsPanel-4mrl4zMK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentsPanel-4mrl4zMK.js","names":["_openBlock","_createBlock","_Transition","_withCtx","_unref","_createCommentVNode","_sfc_main","defineComponent","openBlock","withCtx","defineAsyncComponent","unref","createCommentVNode","createBlock","Transition","CommentsPanel_default","CommentsSidebar","__props","_cache"],"sources":["../../../src/components/CommentsPanel.vue","../../../src/components/CommentsPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Mount point for the comments sidebar, shared by both entry points.\n *\n * The sidebar is `defineAsyncComponent` behind a `v-if` on its open state, so its\n * chunk is fetched only when the user actually opens the panel. `Editor.vue` in\n * turn lazy-loads *this* wrapper and renders it only when a `CommentsProvider` and\n * a `user` are configured, so a consumer with neither downloads none of it —\n * the `TestEmailPanel` / `SavedBlocksPanels` shape.\n *\n * Never static-import `CommentsSidebar` into `Editor.vue`: that collapses the\n * whole panel into the main entry for every consumer. Guarded by\n * `tests/cdn-chunk-granularity.test.ts`.\n */\nimport { defineAsyncComponent } from \"vue\";\nimport type { UseCommentsFeatureReturn } from \"../composables/useCommentsFeature\";\n\ndefineProps<{\n feature: UseCommentsFeatureReturn;\n}>();\n\n// The slide lives here, around the `v-if`: inside the sidebar it would mount\n// already visible (no enter) and unmount with it (no leave).\nconst CommentsSidebar = defineAsyncComponent(\n () => import(\"./CommentsSidebar.vue\"),\n);\n</script>\n\n<template>\n <Transition\n enter-active-class=\"tpl-panel-enter-active\"\n leave-active-class=\"tpl-panel-leave-active\"\n >\n <CommentsSidebar\n v-if=\"feature.isOpen.value\"\n :visible=\"feature.isOpen.value\"\n :feature=\"feature\"\n @close=\"feature.close()\"\n />\n </Transition>\n</template>\n","<script setup lang=\"ts\">\n/**\n * Mount point for the comments sidebar, shared by both entry points.\n *\n * The sidebar is `defineAsyncComponent` behind a `v-if` on its open state, so its\n * chunk is fetched only when the user actually opens the panel. `Editor.vue` in\n * turn lazy-loads *this* wrapper and renders it only when a `CommentsProvider` and\n * a `user` are configured, so a consumer with neither downloads none of it —\n * the `TestEmailPanel` / `SavedBlocksPanels` shape.\n *\n * Never static-import `CommentsSidebar` into `Editor.vue`: that collapses the\n * whole panel into the main entry for every consumer. Guarded by\n * `tests/cdn-chunk-granularity.test.ts`.\n */\nimport { defineAsyncComponent } from \"vue\";\nimport type { UseCommentsFeatureReturn } from \"../composables/useCommentsFeature\";\n\ndefineProps<{\n feature: UseCommentsFeatureReturn;\n}>();\n\n// The slide lives here, around the `v-if`: inside the sidebar it would mount\n// already visible (no enter) and unmount with it (no leave).\nconst CommentsSidebar = defineAsyncComponent(\n () => import(\"./CommentsSidebar.vue\"),\n);\n</script>\n\n<template>\n <Transition\n enter-active-class=\"tpl-panel-enter-active\"\n leave-active-class=\"tpl-panel-leave-active\"\n >\n <CommentsSidebar\n v-if=\"feature.isOpen.value\"\n :visible=\"feature.isOpen.value\"\n :feature=\"feature\"\n @close=\"feature.close()\"\n />\n </Transition>\n</template>\n"],"mappings":";;;;;;EAuBA,IAAMgB,IAAkBN,QAChB,OAAO,gCACf;E,kBAIEV,EAAA,GAAAC,EAUaC,GAAA;GATX,sBAAmB;GACnB,sBAAmB;;GAEnB,SAAAC,QAKE,CAJMc,EAAA,QAAQ,OAAO,SADvBjB,EAAA,GAAAC,EAKEG,EAAAY,CAAA,GAAA;;IAHC,SAASC,EAAA,QAAQ,OAAO;IACxB,SAASA,EAAA;IACT,SAAK,AAAAC,EAAA,QAAA,MAAED,EAAA,QAAQ,MAAK"}
|
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { C as e, F as t, G as n, H as r, K as i, L as a, O as o, _ as s, b as ee, ct as c, dt as l, g as u, h as d, j as te, m as f, mt as p, n as m, o as h, p as g, pt as ne, tt as _, u as v, x as y } from "./draggable-IRVFEZ-b.js";
|
|
2
|
+
import { u as b } from "./styleConstants-CgiNKdnc.js";
|
|
3
|
+
import { t as x } from "./languageName-DEEOhDWI.js";
|
|
4
|
+
import { t as re } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
5
|
+
import { O as ie, ct as ae, v as oe } from "./keys-BQqbBUag.js";
|
|
6
|
+
import { t as se } from "./useI18n-CSf-ZpcM.js";
|
|
7
|
+
import { Bt as ce, G as S, I as le, It as ue, Lt as de, Vt as fe, at as C, f as pe, j as me, nt as w, t as T } from "./icons-Cl4oR2mf.js";
|
|
8
|
+
import { t as E } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
9
|
+
// src/components/CommentsSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var he = ["aria-label"], ge = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, _e = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, ve = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "tpl:ml-1 tpl:inline-flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]"
|
|
13
|
+
}, ye = ["aria-label"], be = { class: "tpl:flex tpl:flex-wrap tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, xe = ["aria-pressed"], Se = ["aria-pressed"], Ce = ["aria-pressed"], we = ["aria-pressed"], Te = { class: "tpl:flex-1 tpl:overflow-y-auto" }, Ee = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
16
|
+
}, De = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
|
|
19
|
+
}, Oe = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ke = {
|
|
20
|
+
key: 2,
|
|
21
|
+
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
22
|
+
}, Ae = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, je = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Me = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, Ne = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Pe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Fe = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
25
|
+
}, Ie = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Le = ["title", "onClick"], Re = ["title", "onClick"], ze = ["title", "onClick"], Be = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
|
|
28
|
+
}, Ve = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
|
|
31
|
+
}, He = ["onClick"], Ue = {
|
|
32
|
+
key: 2,
|
|
33
|
+
class: "tpl:mt-2"
|
|
34
|
+
}, We = ["onKeydown"], Ge = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Ke = ["disabled", "onClick"], qe = {
|
|
35
|
+
key: 3,
|
|
36
|
+
class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
37
|
+
}, Je = {
|
|
38
|
+
key: 4,
|
|
39
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
40
|
+
}, Ye = { class: "tpl:flex-1" }, Xe = ["onClick"], Ze = {
|
|
41
|
+
key: 5,
|
|
42
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
43
|
+
}, Qe = ["title", "onClick"], $e = ["onClick"], et = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
46
|
+
}, tt = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, nt = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, rt = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, it = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, at = {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
49
|
+
}, ot = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, st = ["title", "onClick"], ct = ["title", "onClick"], lt = {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "tpl:mt-1.5"
|
|
52
|
+
}, ut = ["onKeydown"], dt = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, ft = ["disabled", "onClick"], pt = {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
55
|
+
}, mt = {
|
|
56
|
+
key: 2,
|
|
57
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
58
|
+
}, ht = { class: "tpl:flex-1" }, gt = ["onClick"], _t = {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
61
|
+
}, vt = { class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, yt = ["placeholder", "onKeydown"], bt = ["disabled", "onClick"], xt = {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
|
|
64
|
+
}, St = {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "tpl:flex tpl:min-h-[68px] tpl:items-center tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
|
|
67
|
+
}, Ct = {
|
|
68
|
+
key: 1,
|
|
69
|
+
class: "tpl-comments-input-wrapper tpl-focus-ring-host tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
|
|
70
|
+
}, wt = ["placeholder", "disabled"], Tt = ["disabled"], D = /*#__PURE__*/ E(/* @__PURE__ */ e({
|
|
71
|
+
__name: "CommentsSidebar",
|
|
72
|
+
props: {
|
|
73
|
+
visible: { type: Boolean },
|
|
74
|
+
feature: {}
|
|
75
|
+
},
|
|
76
|
+
emits: ["close"],
|
|
77
|
+
setup(e, { expose: E, emit: D }) {
|
|
78
|
+
let O = e, Et = D, { t: k, format: A } = se(), j = ae(oe, "CommentsSidebar"), M = g(() => O.feature.headless), N = _("unresolved"), P = o(ie, void 0), F = _(!1), Dt = g(() => j.activeLocale?.value ?? j.content.value.settings.locale);
|
|
79
|
+
function I(e) {
|
|
80
|
+
return e.locale ?? j.content.value.settings.locale;
|
|
81
|
+
}
|
|
82
|
+
let L = _(""), R = _(null), z = _(""), B = _(null), V = _(""), H = _(/* @__PURE__ */ new Set()), U = _(null), W = _(null), G = g(() => O.feature.filterBlockId.value);
|
|
83
|
+
r(G, (e) => {
|
|
84
|
+
e && (N.value = "block");
|
|
85
|
+
}, { immediate: !0 });
|
|
86
|
+
let Ot = g(() => M.value.isLoading.value && M.value.comments.value.length === 0), kt = g(() => {
|
|
87
|
+
let e = /* @__PURE__ */ new Set();
|
|
88
|
+
for (let t of j.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
|
|
89
|
+
return e;
|
|
90
|
+
});
|
|
91
|
+
function At(e) {
|
|
92
|
+
return e ? !kt.value.has(e) : !1;
|
|
93
|
+
}
|
|
94
|
+
let jt = g(() => N.value !== "block" || !G.value ? !1 : O.feature.capability.isBlockSaved(G.value) === !1), K = g(() => {
|
|
95
|
+
let e = M.value.comments.value;
|
|
96
|
+
return N.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : N.value === "block" && G.value && (e = e.filter((e) => e.blockId === G.value)), F.value && (e = e.filter((e) => [e, ...e.replies ?? []].some((e) => I(e) === Dt.value))), e;
|
|
97
|
+
});
|
|
98
|
+
r(() => j.state.selectedBlockId, (e) => {
|
|
99
|
+
N.value === "block" && e && (O.feature.filterBlockId.value = e);
|
|
100
|
+
});
|
|
101
|
+
function q(e, t) {
|
|
102
|
+
N.value = e, O.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
103
|
+
}
|
|
104
|
+
function Mt(e) {
|
|
105
|
+
q("block", e);
|
|
106
|
+
}
|
|
107
|
+
function Nt(e) {
|
|
108
|
+
H.value.has(e) ? H.value.delete(e) : H.value.add(e);
|
|
109
|
+
}
|
|
110
|
+
function Pt(e) {
|
|
111
|
+
R.value = e, z.value = "", B.value = null, H.value.has(e) || H.value.add(e);
|
|
112
|
+
}
|
|
113
|
+
function Ft() {
|
|
114
|
+
R.value = null, z.value = "";
|
|
115
|
+
}
|
|
116
|
+
function J(e) {
|
|
117
|
+
B.value = e.id, V.value = e.body, R.value = null;
|
|
118
|
+
}
|
|
119
|
+
function Y() {
|
|
120
|
+
B.value = null, V.value = "";
|
|
121
|
+
}
|
|
122
|
+
function X(e) {
|
|
123
|
+
U.value = e;
|
|
124
|
+
}
|
|
125
|
+
function Z() {
|
|
126
|
+
U.value = null;
|
|
127
|
+
}
|
|
128
|
+
async function It() {
|
|
129
|
+
let e = L.value.trim();
|
|
130
|
+
if (!e || !M.value.canCreate.value) return;
|
|
131
|
+
let t = N.value === "block" ? G.value : void 0;
|
|
132
|
+
try {
|
|
133
|
+
await M.value.create({
|
|
134
|
+
body: e,
|
|
135
|
+
blockId: t ?? void 0,
|
|
136
|
+
locale: j.activeLocale?.value ?? j.content.value.settings.locale
|
|
137
|
+
}), L.value = "";
|
|
138
|
+
} catch {}
|
|
139
|
+
}
|
|
140
|
+
async function Lt(e) {
|
|
141
|
+
let t = z.value.trim();
|
|
142
|
+
if (!t || !M.value.canCreate.value) return;
|
|
143
|
+
let n = M.value.find(e);
|
|
144
|
+
try {
|
|
145
|
+
await M.value.create({
|
|
146
|
+
body: t,
|
|
147
|
+
blockId: n?.blockId ?? void 0,
|
|
148
|
+
parentId: e,
|
|
149
|
+
locale: j.activeLocale?.value ?? j.content.value.settings.locale
|
|
150
|
+
}), R.value = null, z.value = "";
|
|
151
|
+
} catch {}
|
|
152
|
+
}
|
|
153
|
+
async function Q(e) {
|
|
154
|
+
let t = V.value.trim();
|
|
155
|
+
if (t) try {
|
|
156
|
+
await M.value.update(e, { body: t }), B.value = null, V.value = "";
|
|
157
|
+
} catch {}
|
|
158
|
+
}
|
|
159
|
+
async function Rt(e) {
|
|
160
|
+
try {
|
|
161
|
+
await M.value.remove(e);
|
|
162
|
+
} catch {}
|
|
163
|
+
U.value = null;
|
|
164
|
+
}
|
|
165
|
+
async function zt(e) {
|
|
166
|
+
try {
|
|
167
|
+
await M.value.setResolved(e.id, !e.resolvedAt);
|
|
168
|
+
} catch {}
|
|
169
|
+
}
|
|
170
|
+
function $(e) {
|
|
171
|
+
return M.value.canUpdate.value && M.value.isOwn(e);
|
|
172
|
+
}
|
|
173
|
+
function Bt(e) {
|
|
174
|
+
return M.value.canDelete.value && M.value.isOwn(e);
|
|
175
|
+
}
|
|
176
|
+
function Vt(e) {
|
|
177
|
+
return re(e, k.time) ?? e;
|
|
178
|
+
}
|
|
179
|
+
function Ht(e) {
|
|
180
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), It());
|
|
181
|
+
}
|
|
182
|
+
function Ut(e, t) {
|
|
183
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Lt(t));
|
|
184
|
+
}
|
|
185
|
+
function Wt(e, t) {
|
|
186
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && Y();
|
|
187
|
+
}
|
|
188
|
+
function Gt() {
|
|
189
|
+
te(() => {
|
|
190
|
+
W.value?.focus();
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
return E({
|
|
194
|
+
filterByBlock: Mt,
|
|
195
|
+
focusNewComment: Gt
|
|
196
|
+
}), (r, o) => e.visible ? (t(), s("div", {
|
|
197
|
+
key: 0,
|
|
198
|
+
role: "complementary",
|
|
199
|
+
"aria-label": c(k).comments.title,
|
|
200
|
+
"data-testid": "comments-sidebar",
|
|
201
|
+
class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
202
|
+
}, [
|
|
203
|
+
f("div", ge, [f("div", _e, [
|
|
204
|
+
y(c(w), {
|
|
205
|
+
size: 13,
|
|
206
|
+
"stroke-width": 2
|
|
207
|
+
}),
|
|
208
|
+
f("span", null, p(c(k).comments.title), 1),
|
|
209
|
+
e.feature.unresolvedCount.value > 0 ? (t(), s("span", ve, p(e.feature.unresolvedCount.value), 1)) : u("", !0)
|
|
210
|
+
]), f("button", {
|
|
211
|
+
type: "button",
|
|
212
|
+
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
213
|
+
"aria-label": c(k).comments.close,
|
|
214
|
+
onClick: o[0] ||= (e) => Et("close")
|
|
215
|
+
}, [y(c(T), {
|
|
216
|
+
size: 14,
|
|
217
|
+
"stroke-width": 2
|
|
218
|
+
})], 8, ye)]),
|
|
219
|
+
f("div", be, [
|
|
220
|
+
f("button", {
|
|
221
|
+
type: "button",
|
|
222
|
+
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", N.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
|
|
223
|
+
"aria-pressed": N.value === "unresolved",
|
|
224
|
+
"data-testid": "comments-filter-unresolved",
|
|
225
|
+
onClick: o[1] ||= (e) => q("unresolved")
|
|
226
|
+
}, p(c(k).comments.filterUnresolved), 11, xe),
|
|
227
|
+
f("button", {
|
|
228
|
+
type: "button",
|
|
229
|
+
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", N.value === "all" ? "tpl-comment-filter--active" : ""]),
|
|
230
|
+
"aria-pressed": N.value === "all",
|
|
231
|
+
"data-testid": "comments-filter-all",
|
|
232
|
+
onClick: o[2] ||= (e) => q("all")
|
|
233
|
+
}, p(c(k).comments.filterAll), 11, Se),
|
|
234
|
+
c(j).state.selectedBlockId ? (t(), s("button", {
|
|
235
|
+
key: 0,
|
|
236
|
+
type: "button",
|
|
237
|
+
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", N.value === "block" ? "tpl-comment-filter--active" : ""]),
|
|
238
|
+
"aria-pressed": N.value === "block",
|
|
239
|
+
"data-testid": "comments-filter-block",
|
|
240
|
+
onClick: o[3] ||= (e) => q("block", c(j).state.selectedBlockId ?? void 0)
|
|
241
|
+
}, p(c(k).comments.filterBlock), 11, Ce)) : u("", !0),
|
|
242
|
+
c(P) ? (t(), s("button", {
|
|
243
|
+
key: 1,
|
|
244
|
+
type: "button",
|
|
245
|
+
"data-testid": "comments-filter-language",
|
|
246
|
+
class: l(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]", F.value ? "tpl-comment-filter--active" : ""]),
|
|
247
|
+
"aria-pressed": F.value,
|
|
248
|
+
onClick: o[4] ||= (e) => F.value = !F.value
|
|
249
|
+
}, p(c(k).comments.filterLanguage), 11, we)) : u("", !0)
|
|
250
|
+
]),
|
|
251
|
+
f("div", Te, [Ot.value ? (t(), s("div", Ee, [y(c(C), {
|
|
252
|
+
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
253
|
+
size: 24,
|
|
254
|
+
"stroke-width": 2
|
|
255
|
+
})])) : K.value.length === 0 ? (t(), s("div", De, [y(c(w), {
|
|
256
|
+
size: 32,
|
|
257
|
+
"stroke-width": 1.5,
|
|
258
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
259
|
+
}), f("p", Oe, p(N.value === "all" ? c(k).comments.noCommentsHint : c(k).comments.noComments), 1)])) : (t(), s("div", ke, [(t(!0), s(v, null, a(K.value, (e) => (t(), s("div", {
|
|
260
|
+
key: e.id,
|
|
261
|
+
class: "tpl-comment-thread",
|
|
262
|
+
"data-testid": "comment-thread"
|
|
263
|
+
}, [
|
|
264
|
+
f("div", Ae, [
|
|
265
|
+
f("div", je, [f("div", Me, [
|
|
266
|
+
f("span", Ne, p(M.value.isOwn(e) ? c(k).comments.ownedByYou : e.author.name), 1),
|
|
267
|
+
f("span", Pe, p(Vt(e.createdAt)), 1),
|
|
268
|
+
c(P) ? (t(), s("span", {
|
|
269
|
+
key: 0,
|
|
270
|
+
"data-testid": "comment-locale-badge",
|
|
271
|
+
class: l(c(b))
|
|
272
|
+
}, p(c(x)(I(e))), 3)) : u("", !0),
|
|
273
|
+
e.updatedAt ? (t(), s("span", Fe, " (" + p(c(k).comments.edited) + ") ", 1)) : u("", !0)
|
|
274
|
+
]), f("div", Ie, [
|
|
275
|
+
M.value.canResolve.value ? (t(), s("button", {
|
|
276
|
+
key: 0,
|
|
277
|
+
"data-testid": "comment-resolve",
|
|
278
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
279
|
+
title: e.resolvedAt ? c(k).comments.unresolve : c(k).comments.resolve,
|
|
280
|
+
onClick: (t) => zt(e)
|
|
281
|
+
}, [y(c(ue), {
|
|
282
|
+
size: 13,
|
|
283
|
+
"stroke-width": 2,
|
|
284
|
+
class: "tpl-resolve-icon",
|
|
285
|
+
style: ne({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
286
|
+
}, null, 8, ["style"])], 8, Le)) : u("", !0),
|
|
287
|
+
$(e) ? (t(), s("button", {
|
|
288
|
+
key: 1,
|
|
289
|
+
"data-testid": "comment-edit",
|
|
290
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
291
|
+
title: c(k).comments.edit,
|
|
292
|
+
onClick: (t) => J(e)
|
|
293
|
+
}, [y(c(S), {
|
|
294
|
+
size: 12,
|
|
295
|
+
"stroke-width": 2
|
|
296
|
+
})], 8, Re)) : u("", !0),
|
|
297
|
+
Bt(e) ? (t(), s("button", {
|
|
298
|
+
key: 2,
|
|
299
|
+
"data-testid": "comment-delete",
|
|
300
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
301
|
+
title: c(k).comments.delete,
|
|
302
|
+
onClick: (t) => X(e.id)
|
|
303
|
+
}, [y(c(pe), {
|
|
304
|
+
size: 12,
|
|
305
|
+
"stroke-width": 2
|
|
306
|
+
})], 8, ze)) : u("", !0)
|
|
307
|
+
])]),
|
|
308
|
+
y(m, { name: "tpl-resolve" }, {
|
|
309
|
+
default: n(() => [e.resolvedAt ? (t(), s("div", Be, [y(c(fe), {
|
|
310
|
+
size: 10,
|
|
311
|
+
"stroke-width": 2.5
|
|
312
|
+
}), f("span", null, p(c(A)(c(k).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : u("", !0)]),
|
|
313
|
+
_: 2
|
|
314
|
+
}, 1024),
|
|
315
|
+
e.blockId && At(e.blockId) ? (t(), s("span", Ve, p(c(k).comments.missingBlock), 1)) : e.blockId ? (t(), s("button", {
|
|
316
|
+
key: 1,
|
|
317
|
+
class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
318
|
+
onClick: (t) => c(j).selectBlock(e.blockId ?? "")
|
|
319
|
+
}, p(c(k).comments.jumpToBlock), 9, He)) : u("", !0),
|
|
320
|
+
B.value === e.id ? (t(), s("div", Ue, [i(f("textarea", {
|
|
321
|
+
"onUpdate:modelValue": o[5] ||= (e) => V.value = e,
|
|
322
|
+
class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
|
|
323
|
+
rows: "3",
|
|
324
|
+
onKeydown: (t) => Wt(t, e.id)
|
|
325
|
+
}, null, 40, We), [[h, V.value]]), f("div", Ge, [f("button", {
|
|
326
|
+
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
|
|
327
|
+
disabled: !V.value.trim() || M.value.isSubmitting.value,
|
|
328
|
+
onClick: (t) => Q(e.id)
|
|
329
|
+
}, p(c(k).comments.save), 9, Ke), f("button", {
|
|
330
|
+
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
331
|
+
onClick: o[6] ||= (e) => Y()
|
|
332
|
+
}, p(c(k).comments.cancel), 1)])])) : (t(), s("p", qe, p(e.body), 1)),
|
|
333
|
+
U.value === e.id ? (t(), s("div", Je, [
|
|
334
|
+
f("span", Ye, p(c(k).comments.deleteConfirm), 1),
|
|
335
|
+
f("button", {
|
|
336
|
+
class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
|
|
337
|
+
"data-testid": "comment-delete-confirm",
|
|
338
|
+
onClick: (t) => Rt(e.id)
|
|
339
|
+
}, p(c(k).comments.delete), 9, Xe),
|
|
340
|
+
f("button", {
|
|
341
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
342
|
+
onClick: o[7] ||= (e) => Z()
|
|
343
|
+
}, p(c(k).comments.cancel), 1)
|
|
344
|
+
])) : u("", !0),
|
|
345
|
+
B.value !== e.id && U.value !== e.id ? (t(), s("div", Ze, [M.value.canCreate.value ? (t(), s("button", {
|
|
346
|
+
key: 0,
|
|
347
|
+
"data-testid": "comment-reply",
|
|
348
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
349
|
+
title: c(k).comments.reply,
|
|
350
|
+
onClick: (t) => Pt(e.id)
|
|
351
|
+
}, [y(c(le), {
|
|
352
|
+
size: 13,
|
|
353
|
+
"stroke-width": 2,
|
|
354
|
+
class: "tpl:text-[var(--tpl-primary)]"
|
|
355
|
+
})], 8, Qe)) : u("", !0), (e.replies?.length ?? 0) > 0 ? (t(), s("button", {
|
|
356
|
+
key: 1,
|
|
357
|
+
class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
358
|
+
onClick: (t) => Nt(e.id)
|
|
359
|
+
}, [H.value.has(e.id) ? (t(), d(c(de), {
|
|
360
|
+
key: 0,
|
|
361
|
+
size: 11,
|
|
362
|
+
"stroke-width": 2
|
|
363
|
+
})) : (t(), d(c(ce), {
|
|
364
|
+
key: 1,
|
|
365
|
+
size: 11,
|
|
366
|
+
"stroke-width": 2
|
|
367
|
+
})), ee(" " + p((e.replies?.length ?? 0) === 1 ? c(A)(c(k).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : c(A)(c(k).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, $e)) : u("", !0)])) : u("", !0)
|
|
368
|
+
]),
|
|
369
|
+
y(m, { name: "tpl-replies" }, {
|
|
370
|
+
default: n(() => [H.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (t(), s("div", et, [(t(!0), s(v, null, a(e.replies, (n, r) => (t(), s("div", {
|
|
371
|
+
key: n.id,
|
|
372
|
+
class: l(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", r < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
|
|
373
|
+
}, [
|
|
374
|
+
f("div", tt, [f("div", nt, [
|
|
375
|
+
f("span", rt, p(M.value.isOwn(n) ? c(k).comments.ownedByYou : n.author.name), 1),
|
|
376
|
+
f("span", it, p(Vt(n.createdAt)), 1),
|
|
377
|
+
c(P) ? (t(), s("span", {
|
|
378
|
+
key: 0,
|
|
379
|
+
"data-testid": "comment-locale-badge",
|
|
380
|
+
class: l(c(b))
|
|
381
|
+
}, p(c(x)(I(n))), 3)) : u("", !0),
|
|
382
|
+
n.updatedAt ? (t(), s("span", at, " (" + p(c(k).comments.edited) + ") ", 1)) : u("", !0)
|
|
383
|
+
]), f("div", ot, [$(n) ? (t(), s("button", {
|
|
384
|
+
key: 0,
|
|
385
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
386
|
+
title: c(k).comments.edit,
|
|
387
|
+
onClick: (e) => J(n)
|
|
388
|
+
}, [y(c(S), {
|
|
389
|
+
size: 11,
|
|
390
|
+
"stroke-width": 2
|
|
391
|
+
})], 8, st)) : u("", !0), Bt(n) ? (t(), s("button", {
|
|
392
|
+
key: 1,
|
|
393
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
394
|
+
title: c(k).comments.delete,
|
|
395
|
+
onClick: (e) => X(n.id)
|
|
396
|
+
}, [y(c(pe), {
|
|
397
|
+
size: 11,
|
|
398
|
+
"stroke-width": 2
|
|
399
|
+
})], 8, ct)) : u("", !0)])]),
|
|
400
|
+
B.value === n.id ? (t(), s("div", lt, [i(f("textarea", {
|
|
401
|
+
"onUpdate:modelValue": o[8] ||= (e) => V.value = e,
|
|
402
|
+
class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
|
|
403
|
+
rows: "2",
|
|
404
|
+
onKeydown: (e) => Wt(e, n.id)
|
|
405
|
+
}, null, 40, ut), [[h, V.value]]), f("div", dt, [f("button", {
|
|
406
|
+
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
|
|
407
|
+
disabled: !V.value.trim() || M.value.isSubmitting.value,
|
|
408
|
+
onClick: (e) => Q(n.id)
|
|
409
|
+
}, p(c(k).comments.save), 9, ft), f("button", {
|
|
410
|
+
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
411
|
+
onClick: o[9] ||= (e) => Y()
|
|
412
|
+
}, p(c(k).comments.cancel), 1)])])) : (t(), s("p", pt, p(n.body), 1)),
|
|
413
|
+
U.value === n.id ? (t(), s("div", mt, [
|
|
414
|
+
f("span", ht, p(c(k).comments.deleteConfirm), 1),
|
|
415
|
+
f("button", {
|
|
416
|
+
class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
|
|
417
|
+
"data-testid": "comment-delete-confirm",
|
|
418
|
+
onClick: (e) => Rt(n.id)
|
|
419
|
+
}, p(c(k).comments.delete), 9, gt),
|
|
420
|
+
f("button", {
|
|
421
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
422
|
+
onClick: o[10] ||= (e) => Z()
|
|
423
|
+
}, p(c(k).comments.cancel), 1)
|
|
424
|
+
])) : u("", !0)
|
|
425
|
+
], 2))), 128))])) : u("", !0)]),
|
|
426
|
+
_: 2
|
|
427
|
+
}, 1024),
|
|
428
|
+
y(m, { name: "tpl-replies" }, {
|
|
429
|
+
default: n(() => [R.value === e.id ? (t(), s("div", _t, [f("div", vt, [
|
|
430
|
+
i(f("textarea", {
|
|
431
|
+
"onUpdate:modelValue": o[11] ||= (e) => z.value = e,
|
|
432
|
+
class: "tpl:max-h-24 tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
|
|
433
|
+
placeholder: c(k).comments.replyPlaceholder,
|
|
434
|
+
rows: "2",
|
|
435
|
+
onKeydown: (t) => Ut(t, e.id)
|
|
436
|
+
}, null, 40, yt), [[h, z.value]]),
|
|
437
|
+
f("button", {
|
|
438
|
+
class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
439
|
+
disabled: !z.value.trim() || M.value.isSubmitting.value,
|
|
440
|
+
onClick: (t) => Lt(e.id)
|
|
441
|
+
}, [y(c(me), {
|
|
442
|
+
size: 14,
|
|
443
|
+
"stroke-width": 2
|
|
444
|
+
})], 8, bt),
|
|
445
|
+
f("button", {
|
|
446
|
+
class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:text-[var(--tpl-text-muted)]",
|
|
447
|
+
onClick: o[12] ||= (e) => Ft()
|
|
448
|
+
}, [y(c(T), {
|
|
449
|
+
size: 14,
|
|
450
|
+
"stroke-width": 2
|
|
451
|
+
})])
|
|
452
|
+
])])) : u("", !0)]),
|
|
453
|
+
_: 2
|
|
454
|
+
}, 1024)
|
|
455
|
+
]))), 128))]))]),
|
|
456
|
+
M.value.canCreate.value ? (t(), s("div", xt, [jt.value ? (t(), s("div", St, p(c(k).comments.saveTemplateFirst), 1)) : (t(), s("div", Ct, [i(f("textarea", {
|
|
457
|
+
ref_key: "newCommentInput",
|
|
458
|
+
ref: W,
|
|
459
|
+
"onUpdate:modelValue": o[13] ||= (e) => L.value = e,
|
|
460
|
+
class: "tpl:max-h-24 tpl:min-h-[48px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
|
|
461
|
+
"data-testid": "comments-input",
|
|
462
|
+
placeholder: c(k).comments.placeholder,
|
|
463
|
+
disabled: M.value.isSubmitting.value,
|
|
464
|
+
rows: "2",
|
|
465
|
+
onKeydown: Ht
|
|
466
|
+
}, null, 40, wt), [[h, L.value]]), f("button", {
|
|
467
|
+
class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
468
|
+
"data-testid": "comments-send",
|
|
469
|
+
disabled: !L.value.trim() || M.value.isSubmitting.value,
|
|
470
|
+
onClick: It
|
|
471
|
+
}, [M.value.isSubmitting.value ? (t(), d(c(C), {
|
|
472
|
+
key: 0,
|
|
473
|
+
class: "tpl-spinner",
|
|
474
|
+
size: 16,
|
|
475
|
+
"stroke-width": 2
|
|
476
|
+
})) : (t(), d(c(me), {
|
|
477
|
+
key: 1,
|
|
478
|
+
size: 16,
|
|
479
|
+
"stroke-width": 2
|
|
480
|
+
}))], 8, Tt)]))])) : u("", !0)
|
|
481
|
+
], 8, he)) : u("", !0);
|
|
482
|
+
}
|
|
483
|
+
}), [["__scopeId", "data-v-75eacb94"]]);
|
|
484
|
+
export { D as default };
|
|
485
|
+
|
|
486
|
+
//# sourceMappingURL=CommentsSidebar-BJ87vc7i.js.map
|