@templatical/editor 0.49.0 → 0.51.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 +4 -2
- package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
- package/dist/AiAltTextReview-DoBEudnE.js +206 -0
- package/dist/AiChatPanel-Bs6sES3b.js +550 -0
- package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
- package/dist/AiPanels-CfN7A-ZA.js +33 -0
- package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
- package/dist/{BlockIssueBadge-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
- package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
- package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
- package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
- package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
- package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
- package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
- package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
- package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
- package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
- package/dist/IssuesPanel-C8nMUccy.js +360 -0
- package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
- package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
- package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
- package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
- package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
- package/dist/{MergeTagModeToggle-CJTpFmVd.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
- package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
- package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
- package/dist/{RestoreVersionDialog-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
- package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
- package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
- package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
- package/dist/TemplateSettings-BVBWpiDU.js +237 -0
- package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
- package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
- package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
- package/dist/ToggleSwitch-D51U9cmR.js +37 -0
- package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
- package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
- package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
- package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
- package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
- package/dist/WrapperBlock-BO619LAb.js +45 -0
- package/dist/aiErrors-D5UOoYOt.js +41 -0
- package/dist/aiImageContext-BH4Ss1h3.js +48 -0
- package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
- package/dist/{blockTypeIcons-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
- package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
- package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
- package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
- package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
- package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
- package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
- package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
- package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
- package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
- package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
- package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
- package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
- package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
- package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
- package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
- package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
- package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
- package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
- package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
- package/dist/{MediaEditModal-C_wxoUMG.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
- package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
- package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
- package/dist/cdn/chunks/{MediaPanels-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
- package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
- package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
- package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
- package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
- package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BMtyUrUP.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
- package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
- package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
- package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
- package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
- package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
- package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
- package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
- package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
- package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
- package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
- package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
- package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
- package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
- package/dist/cdn/chunks/{WrapperBlock-CFuP4R0c.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
- package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
- package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
- package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
- package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
- package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
- package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
- package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
- package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
- package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
- package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
- package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
- package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
- package/dist/{de-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
- package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
- package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
- package/dist/cdn/chunks/{dist-Doy3r07H.js.map → dist-Bo8Thh8v.js.map} +1 -1
- package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
- package/dist/cdn/chunks/{dist-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
- package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
- package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
- package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
- package/dist/{en-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
- package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
- package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
- package/dist/{es-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
- package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
- package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
- package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
- package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
- package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
- package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
- package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
- package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
- package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
- package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
- package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
- package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
- package/dist/{nl-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
- package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
- package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
- package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
- package/dist/{pt-BR-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
- package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
- package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
- package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
- package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
- package/dist/cdn/chunks/{src-B77z1iw4.js → src-K6fw_35b.js} +113 -113
- package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-K6fw_35b.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
- package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
- package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
- package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
- package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
- package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2151 -1480
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
- package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
- package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
- package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
- package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
- package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
- package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
- package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
- package/dist/de-DBOTcDj2.js +20 -0
- package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
- package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
- package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
- package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
- package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
- package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
- package/dist/en-CDhWRrF_.js +20 -0
- package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
- package/dist/en-DwV15ltA.js +1 -0
- package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
- package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
- package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
- package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
- package/dist/image-DesWjcZ4.js +28 -0
- package/dist/index.d.ts +361 -24
- package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
- package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
- package/dist/keys-Zd9KWRD1.js +10 -0
- package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
- package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
- package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
- package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
- package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
- package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
- package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
- package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
- package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
- package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
- package/dist/pt-BR-CHM-ZKvE.js +20 -0
- package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
- package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
- package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
- package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
- package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
- package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
- package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
- package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
- package/dist/square-BWlolnXe.js +15 -0
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +2114 -1422
- package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
- package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
- package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
- package/dist/upload-BJfvdIrD.js +36 -0
- package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
- package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
- package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
- package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
- package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
- package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
- package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
- package/dist/useScrollToBlock-FmNMALM_.js +74 -0
- package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
- package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
- package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
- package/package.json +14 -12
- package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
- package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
- package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
- package/dist/CommentsSidebar-J65znlrH.js +0 -500
- package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
- package/dist/IssuesPanel-DeeVsfG7.js +0 -117
- package/dist/ParagraphEditor-zLV44z-R.js +0 -797
- package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
- package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
- package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
- package/dist/ToggleSwitch-DHweVJOr.js +0 -102
- package/dist/WrapperBlock-DiiaxpMb.js +0 -45
- package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
- package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
- package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
- package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
- package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
- package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
- package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
- package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
- package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
- package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
- package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
- package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
- package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
- package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
- package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
- package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
- package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
- package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
- package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
- package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
- package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
- package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
- package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
- package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
- package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
- package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
- package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
- package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
- package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
- package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
- package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
- package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
- package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
- package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
- package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
- package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
- package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
- package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
- package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
- package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
- package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
- package/dist/copy-CUC43md_.js +0 -19
- package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
- package/dist/de-D_atmUVB.js +0 -87
- package/dist/dist-CCqn-RqE.js +0 -407
- package/dist/en-BHCMzqib.js +0 -1
- package/dist/en-DhJLnaBx.js +0 -87
- package/dist/image-up-BqiO7KCO.js +0 -27
- package/dist/keys-BymCnLHD.js +0 -10
- package/dist/plus-BDd0gTEm.js +0 -14
- package/dist/pt-BR-BphMoUTw.js +0 -87
- package/dist/shield-check-YhsbXfQc.js +0 -14
- package/dist/socialIcons-Bwv-49EB.js +0 -2167
- package/dist/timeouts-o5Y9BuqI.js +0 -4
- package/dist/upload-uU2cK0Ce.js +0 -21
- package/dist/useAliveFlag-BjP0Gxza.js +0 -10
- package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import { $ as e, A as t, C as n, I as r, P as i, U as a, V as o, W as s, _ as c, b as ee, dt as l, g as u, h as d, lt as f, m as p, n as m, o as h, ot as g, p as _, u as v, ut as te, x as y } from "./draggable-DZ0gwUJ6.js";
|
|
2
|
+
import { $ as ne, g as re } from "./keys-BTpmg2Tt.js";
|
|
3
|
+
import { t as ie } from "./useI18n-CbVubQhM.js";
|
|
4
|
+
import { Ft as ae, G as b, I as oe, Nt as se, Rt as ce, f as x, j as S, nt as C, ot as w, t as T, zt as le } from "./icons-DNX6StSs.js";
|
|
5
|
+
import { t as E } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
+
import { t as ue } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
7
|
+
//#region src/components/CommentsSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var de = ["aria-label"], fe = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, pe = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, me = {
|
|
9
|
+
key: 0,
|
|
10
|
+
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)]"
|
|
11
|
+
}, he = ["aria-label"], ge = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, _e = ["aria-pressed"], ve = ["aria-pressed"], ye = ["aria-pressed"], be = { class: "tpl:flex-1 tpl:overflow-y-auto" }, xe = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
14
|
+
}, Se = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
|
|
17
|
+
}, Ce = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, we = {
|
|
18
|
+
key: 2,
|
|
19
|
+
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
20
|
+
}, Te = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Ee = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, De = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Oe = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ke = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Ae = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
23
|
+
}, je = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Me = ["title", "onClick"], Ne = ["title", "onClick"], Pe = ["title", "onClick"], Fe = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
|
|
26
|
+
}, Ie = {
|
|
27
|
+
key: 0,
|
|
28
|
+
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)]"
|
|
29
|
+
}, Le = ["onClick"], Re = {
|
|
30
|
+
key: 2,
|
|
31
|
+
class: "tpl:mt-2"
|
|
32
|
+
}, ze = ["onKeydown"], Be = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Ve = ["disabled", "onClick"], He = {
|
|
33
|
+
key: 3,
|
|
34
|
+
class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
35
|
+
}, Ue = {
|
|
36
|
+
key: 4,
|
|
37
|
+
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)]"
|
|
38
|
+
}, We = { class: "tpl:flex-1" }, Ge = ["onClick"], Ke = {
|
|
39
|
+
key: 5,
|
|
40
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
41
|
+
}, qe = ["title", "onClick"], Je = ["onClick"], Ye = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
44
|
+
}, Xe = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ze = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Qe = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $e = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, et = {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
47
|
+
}, tt = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, nt = ["title", "onClick"], rt = ["title", "onClick"], it = {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: "tpl:mt-1.5"
|
|
50
|
+
}, at = ["onKeydown"], ot = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, st = ["disabled", "onClick"], ct = {
|
|
51
|
+
key: 1,
|
|
52
|
+
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
53
|
+
}, lt = {
|
|
54
|
+
key: 2,
|
|
55
|
+
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)]"
|
|
56
|
+
}, ut = { class: "tpl:flex-1" }, dt = ["onClick"], ft = {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
59
|
+
}, pt = { 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)]" }, mt = ["placeholder", "onKeydown"], ht = ["disabled", "onClick"], gt = {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
|
|
62
|
+
}, _t = {
|
|
63
|
+
key: 0,
|
|
64
|
+
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)]"
|
|
65
|
+
}, vt = {
|
|
66
|
+
key: 1,
|
|
67
|
+
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)]"
|
|
68
|
+
}, yt = ["placeholder", "disabled"], bt = ["disabled"], D = /*#__PURE__*/ E(/* @__PURE__ */ n({
|
|
69
|
+
__name: "CommentsSidebar",
|
|
70
|
+
props: {
|
|
71
|
+
visible: { type: Boolean },
|
|
72
|
+
feature: {}
|
|
73
|
+
},
|
|
74
|
+
emits: ["close"],
|
|
75
|
+
setup(n, { expose: E, emit: D }) {
|
|
76
|
+
let O = n, xt = D, { t: k, format: A } = ie(), j = ne(re, "CommentsSidebar"), M = _(() => O.feature.headless), N = e("unresolved"), P = e(""), F = e(null), I = e(""), L = e(null), R = e(""), z = e(/* @__PURE__ */ new Set()), B = e(null), V = e(null), H = _(() => O.feature.filterBlockId.value);
|
|
77
|
+
o(H, (e) => {
|
|
78
|
+
e && (N.value = "block");
|
|
79
|
+
}, { immediate: !0 });
|
|
80
|
+
let St = _(() => M.value.isLoading.value && M.value.comments.value.length === 0), Ct = _(() => {
|
|
81
|
+
let e = /* @__PURE__ */ new Set();
|
|
82
|
+
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);
|
|
83
|
+
return e;
|
|
84
|
+
});
|
|
85
|
+
function wt(e) {
|
|
86
|
+
return e ? !Ct.value.has(e) : !1;
|
|
87
|
+
}
|
|
88
|
+
let Tt = _(() => N.value !== "block" || !H.value ? !1 : O.feature.capability.isBlockSaved(H.value) === !1), U = _(() => {
|
|
89
|
+
let e = M.value.comments.value;
|
|
90
|
+
return N.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : N.value === "block" && H.value && (e = e.filter((e) => e.blockId === H.value)), e;
|
|
91
|
+
});
|
|
92
|
+
o(() => j.state.selectedBlockId, (e) => {
|
|
93
|
+
N.value === "block" && e && (O.feature.filterBlockId.value = e);
|
|
94
|
+
});
|
|
95
|
+
function W(e, t) {
|
|
96
|
+
N.value = e, O.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
97
|
+
}
|
|
98
|
+
function Et(e) {
|
|
99
|
+
W("block", e);
|
|
100
|
+
}
|
|
101
|
+
function Dt(e) {
|
|
102
|
+
z.value.has(e) ? z.value.delete(e) : z.value.add(e);
|
|
103
|
+
}
|
|
104
|
+
function Ot(e) {
|
|
105
|
+
F.value = e, I.value = "", L.value = null, z.value.has(e) || z.value.add(e);
|
|
106
|
+
}
|
|
107
|
+
function kt() {
|
|
108
|
+
F.value = null, I.value = "";
|
|
109
|
+
}
|
|
110
|
+
function G(e) {
|
|
111
|
+
L.value = e.id, R.value = e.body, F.value = null;
|
|
112
|
+
}
|
|
113
|
+
function K() {
|
|
114
|
+
L.value = null, R.value = "";
|
|
115
|
+
}
|
|
116
|
+
function q(e) {
|
|
117
|
+
B.value = e;
|
|
118
|
+
}
|
|
119
|
+
function J() {
|
|
120
|
+
B.value = null;
|
|
121
|
+
}
|
|
122
|
+
async function Y() {
|
|
123
|
+
let e = P.value.trim();
|
|
124
|
+
if (!e || !M.value.canCreate.value) return;
|
|
125
|
+
let t = N.value === "block" ? H.value : void 0;
|
|
126
|
+
try {
|
|
127
|
+
await M.value.create({
|
|
128
|
+
body: e,
|
|
129
|
+
blockId: t ?? void 0
|
|
130
|
+
}), P.value = "";
|
|
131
|
+
} catch {}
|
|
132
|
+
}
|
|
133
|
+
async function X(e) {
|
|
134
|
+
let t = I.value.trim();
|
|
135
|
+
if (!t || !M.value.canCreate.value) return;
|
|
136
|
+
let n = M.value.find(e);
|
|
137
|
+
try {
|
|
138
|
+
await M.value.create({
|
|
139
|
+
body: t,
|
|
140
|
+
blockId: n?.blockId ?? void 0,
|
|
141
|
+
parentId: e
|
|
142
|
+
}), F.value = null, I.value = "";
|
|
143
|
+
} catch {}
|
|
144
|
+
}
|
|
145
|
+
async function Z(e) {
|
|
146
|
+
let t = R.value.trim();
|
|
147
|
+
if (t) try {
|
|
148
|
+
await M.value.update(e, { body: t }), L.value = null, R.value = "";
|
|
149
|
+
} catch {}
|
|
150
|
+
}
|
|
151
|
+
async function Q(e) {
|
|
152
|
+
try {
|
|
153
|
+
await M.value.remove(e);
|
|
154
|
+
} catch {}
|
|
155
|
+
B.value = null;
|
|
156
|
+
}
|
|
157
|
+
async function At(e) {
|
|
158
|
+
try {
|
|
159
|
+
await M.value.setResolved(e.id, !e.resolvedAt);
|
|
160
|
+
} catch {}
|
|
161
|
+
}
|
|
162
|
+
function jt(e) {
|
|
163
|
+
return M.value.canUpdate.value && M.value.isOwn(e);
|
|
164
|
+
}
|
|
165
|
+
function Mt(e) {
|
|
166
|
+
return M.value.canDelete.value && M.value.isOwn(e);
|
|
167
|
+
}
|
|
168
|
+
function Nt(e) {
|
|
169
|
+
return ue(e, k.time) ?? e;
|
|
170
|
+
}
|
|
171
|
+
function Pt(e) {
|
|
172
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Y());
|
|
173
|
+
}
|
|
174
|
+
function Ft(e, t) {
|
|
175
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), X(t));
|
|
176
|
+
}
|
|
177
|
+
function $(e, t) {
|
|
178
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t)), e.key === "Escape" && K();
|
|
179
|
+
}
|
|
180
|
+
function It() {
|
|
181
|
+
t(() => {
|
|
182
|
+
V.value?.focus();
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
return E({
|
|
186
|
+
filterByBlock: Et,
|
|
187
|
+
focusNewComment: It
|
|
188
|
+
}), (e, t) => (i(), d(m, {
|
|
189
|
+
"enter-active-class": "tpl-comments-slide-enter-active",
|
|
190
|
+
"enter-from-class": "tpl:translate-x-full",
|
|
191
|
+
"enter-to-class": "tpl:translate-x-0",
|
|
192
|
+
"leave-active-class": "tpl-comments-slide-leave-active",
|
|
193
|
+
"leave-from-class": "tpl:translate-x-0",
|
|
194
|
+
"leave-to-class": "tpl:translate-x-full"
|
|
195
|
+
}, {
|
|
196
|
+
default: a(() => [n.visible ? (i(), c("div", {
|
|
197
|
+
key: 0,
|
|
198
|
+
role: "complementary",
|
|
199
|
+
"aria-label": g(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
|
+
p("div", fe, [p("div", pe, [
|
|
204
|
+
y(g(C), {
|
|
205
|
+
size: 13,
|
|
206
|
+
"stroke-width": 2
|
|
207
|
+
}),
|
|
208
|
+
p("span", null, l(g(k).comments.title), 1),
|
|
209
|
+
n.feature.unresolvedCount.value > 0 ? (i(), c("span", me, l(n.feature.unresolvedCount.value), 1)) : u("", !0)
|
|
210
|
+
]), p("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": g(k).comments.close,
|
|
214
|
+
onClick: t[0] ||= (e) => xt("close")
|
|
215
|
+
}, [y(g(T), {
|
|
216
|
+
size: 14,
|
|
217
|
+
"stroke-width": 2
|
|
218
|
+
})], 8, he)]),
|
|
219
|
+
p("div", ge, [
|
|
220
|
+
p("button", {
|
|
221
|
+
type: "button",
|
|
222
|
+
class: f(["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: t[1] ||= (e) => W("unresolved")
|
|
226
|
+
}, l(g(k).comments.filterUnresolved), 11, _e),
|
|
227
|
+
p("button", {
|
|
228
|
+
type: "button",
|
|
229
|
+
class: f(["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: t[2] ||= (e) => W("all")
|
|
233
|
+
}, l(g(k).comments.filterAll), 11, ve),
|
|
234
|
+
g(j).state.selectedBlockId ? (i(), c("button", {
|
|
235
|
+
key: 0,
|
|
236
|
+
type: "button",
|
|
237
|
+
class: f(["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
|
+
onClick: t[3] ||= (e) => W("block", g(j).state.selectedBlockId ?? void 0)
|
|
240
|
+
}, l(g(k).comments.filterBlock), 11, ye)) : u("", !0)
|
|
241
|
+
]),
|
|
242
|
+
p("div", be, [St.value ? (i(), c("div", xe, [y(g(w), {
|
|
243
|
+
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
244
|
+
size: 24,
|
|
245
|
+
"stroke-width": 2
|
|
246
|
+
})])) : U.value.length === 0 ? (i(), c("div", Se, [y(g(C), {
|
|
247
|
+
size: 32,
|
|
248
|
+
"stroke-width": 1.5,
|
|
249
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
250
|
+
}), p("p", Ce, l(N.value === "all" ? g(k).comments.noCommentsHint : g(k).comments.noComments), 1)])) : (i(), c("div", we, [(i(!0), c(v, null, r(U.value, (e) => (i(), c("div", {
|
|
251
|
+
key: e.id,
|
|
252
|
+
class: "tpl-comment-thread",
|
|
253
|
+
"data-testid": "comment-thread"
|
|
254
|
+
}, [
|
|
255
|
+
p("div", Te, [
|
|
256
|
+
p("div", Ee, [p("div", De, [
|
|
257
|
+
p("span", Oe, l(M.value.isOwn(e) ? g(k).comments.ownedByYou : e.author.name), 1),
|
|
258
|
+
p("span", ke, l(Nt(e.createdAt)), 1),
|
|
259
|
+
e.updatedAt ? (i(), c("span", Ae, " (" + l(g(k).comments.edited) + ") ", 1)) : u("", !0)
|
|
260
|
+
]), p("div", je, [
|
|
261
|
+
M.value.canResolve.value ? (i(), c("button", {
|
|
262
|
+
key: 0,
|
|
263
|
+
"data-testid": "comment-resolve",
|
|
264
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
265
|
+
title: e.resolvedAt ? g(k).comments.unresolve : g(k).comments.resolve,
|
|
266
|
+
onClick: (t) => At(e)
|
|
267
|
+
}, [y(g(se), {
|
|
268
|
+
size: 13,
|
|
269
|
+
"stroke-width": 2,
|
|
270
|
+
class: "tpl-resolve-icon",
|
|
271
|
+
style: te({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
272
|
+
}, null, 8, ["style"])], 8, Me)) : u("", !0),
|
|
273
|
+
jt(e) ? (i(), c("button", {
|
|
274
|
+
key: 1,
|
|
275
|
+
"data-testid": "comment-edit",
|
|
276
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
277
|
+
title: g(k).comments.edit,
|
|
278
|
+
onClick: (t) => G(e)
|
|
279
|
+
}, [y(g(b), {
|
|
280
|
+
size: 12,
|
|
281
|
+
"stroke-width": 2
|
|
282
|
+
})], 8, Ne)) : u("", !0),
|
|
283
|
+
Mt(e) ? (i(), c("button", {
|
|
284
|
+
key: 2,
|
|
285
|
+
"data-testid": "comment-delete",
|
|
286
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
287
|
+
title: g(k).comments.delete,
|
|
288
|
+
onClick: (t) => q(e.id)
|
|
289
|
+
}, [y(g(x), {
|
|
290
|
+
size: 12,
|
|
291
|
+
"stroke-width": 2
|
|
292
|
+
})], 8, Pe)) : u("", !0)
|
|
293
|
+
])]),
|
|
294
|
+
y(m, { name: "tpl-resolve" }, {
|
|
295
|
+
default: a(() => [e.resolvedAt ? (i(), c("div", Fe, [y(g(le), {
|
|
296
|
+
size: 10,
|
|
297
|
+
"stroke-width": 2.5
|
|
298
|
+
}), p("span", null, l(g(A)(g(k).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : u("", !0)]),
|
|
299
|
+
_: 2
|
|
300
|
+
}, 1024),
|
|
301
|
+
e.blockId && wt(e.blockId) ? (i(), c("span", Ie, l(g(k).comments.missingBlock), 1)) : e.blockId ? (i(), c("button", {
|
|
302
|
+
key: 1,
|
|
303
|
+
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)]",
|
|
304
|
+
onClick: (t) => g(j).selectBlock(e.blockId ?? "")
|
|
305
|
+
}, l(g(k).comments.jumpToBlock), 9, Le)) : u("", !0),
|
|
306
|
+
L.value === e.id ? (i(), c("div", Re, [s(p("textarea", {
|
|
307
|
+
"onUpdate:modelValue": t[4] ||= (e) => R.value = e,
|
|
308
|
+
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)]",
|
|
309
|
+
rows: "3",
|
|
310
|
+
onKeydown: (t) => $(t, e.id)
|
|
311
|
+
}, null, 40, ze), [[h, R.value]]), p("div", Be, [p("button", {
|
|
312
|
+
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)]",
|
|
313
|
+
disabled: !R.value.trim() || M.value.isSubmitting.value,
|
|
314
|
+
onClick: (t) => Z(e.id)
|
|
315
|
+
}, l(g(k).comments.save), 9, Ve), p("button", {
|
|
316
|
+
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)]",
|
|
317
|
+
onClick: t[5] ||= (e) => K()
|
|
318
|
+
}, l(g(k).comments.cancel), 1)])])) : (i(), c("p", He, l(e.body), 1)),
|
|
319
|
+
B.value === e.id ? (i(), c("div", Ue, [
|
|
320
|
+
p("span", We, l(g(k).comments.deleteConfirm), 1),
|
|
321
|
+
p("button", {
|
|
322
|
+
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)]",
|
|
323
|
+
"data-testid": "comment-delete-confirm",
|
|
324
|
+
onClick: (t) => Q(e.id)
|
|
325
|
+
}, l(g(k).comments.delete), 9, Ge),
|
|
326
|
+
p("button", {
|
|
327
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
328
|
+
onClick: t[6] ||= (e) => J()
|
|
329
|
+
}, l(g(k).comments.cancel), 1)
|
|
330
|
+
])) : u("", !0),
|
|
331
|
+
L.value !== e.id && B.value !== e.id ? (i(), c("div", Ke, [M.value.canCreate.value ? (i(), c("button", {
|
|
332
|
+
key: 0,
|
|
333
|
+
"data-testid": "comment-reply",
|
|
334
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
335
|
+
title: g(k).comments.reply,
|
|
336
|
+
onClick: (t) => Ot(e.id)
|
|
337
|
+
}, [y(g(oe), {
|
|
338
|
+
size: 13,
|
|
339
|
+
"stroke-width": 2,
|
|
340
|
+
class: "tpl:text-[var(--tpl-primary)]"
|
|
341
|
+
})], 8, qe)) : u("", !0), (e.replies?.length ?? 0) > 0 ? (i(), c("button", {
|
|
342
|
+
key: 1,
|
|
343
|
+
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)]",
|
|
344
|
+
onClick: (t) => Dt(e.id)
|
|
345
|
+
}, [z.value.has(e.id) ? (i(), d(g(ae), {
|
|
346
|
+
key: 0,
|
|
347
|
+
size: 11,
|
|
348
|
+
"stroke-width": 2
|
|
349
|
+
})) : (i(), d(g(ce), {
|
|
350
|
+
key: 1,
|
|
351
|
+
size: 11,
|
|
352
|
+
"stroke-width": 2
|
|
353
|
+
})), ee(" " + l((e.replies?.length ?? 0) === 1 ? g(A)(g(k).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : g(A)(g(k).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, Je)) : u("", !0)])) : u("", !0)
|
|
354
|
+
]),
|
|
355
|
+
y(m, { name: "tpl-replies" }, {
|
|
356
|
+
default: a(() => [z.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (i(), c("div", Ye, [(i(!0), c(v, null, r(e.replies, (n, r) => (i(), c("div", {
|
|
357
|
+
key: n.id,
|
|
358
|
+
class: f(["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" : ""])
|
|
359
|
+
}, [
|
|
360
|
+
p("div", Xe, [p("div", Ze, [
|
|
361
|
+
p("span", Qe, l(M.value.isOwn(n) ? g(k).comments.ownedByYou : n.author.name), 1),
|
|
362
|
+
p("span", $e, l(Nt(n.createdAt)), 1),
|
|
363
|
+
n.updatedAt ? (i(), c("span", et, " (" + l(g(k).comments.edited) + ") ", 1)) : u("", !0)
|
|
364
|
+
]), p("div", tt, [jt(n) ? (i(), c("button", {
|
|
365
|
+
key: 0,
|
|
366
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
367
|
+
title: g(k).comments.edit,
|
|
368
|
+
onClick: (e) => G(n)
|
|
369
|
+
}, [y(g(b), {
|
|
370
|
+
size: 11,
|
|
371
|
+
"stroke-width": 2
|
|
372
|
+
})], 8, nt)) : u("", !0), Mt(n) ? (i(), c("button", {
|
|
373
|
+
key: 1,
|
|
374
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
375
|
+
title: g(k).comments.delete,
|
|
376
|
+
onClick: (e) => q(n.id)
|
|
377
|
+
}, [y(g(x), {
|
|
378
|
+
size: 11,
|
|
379
|
+
"stroke-width": 2
|
|
380
|
+
})], 8, rt)) : u("", !0)])]),
|
|
381
|
+
L.value === n.id ? (i(), c("div", it, [s(p("textarea", {
|
|
382
|
+
"onUpdate:modelValue": t[7] ||= (e) => R.value = e,
|
|
383
|
+
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)]",
|
|
384
|
+
rows: "2",
|
|
385
|
+
onKeydown: (e) => $(e, n.id)
|
|
386
|
+
}, null, 40, at), [[h, R.value]]), p("div", ot, [p("button", {
|
|
387
|
+
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)]",
|
|
388
|
+
disabled: !R.value.trim() || M.value.isSubmitting.value,
|
|
389
|
+
onClick: (e) => Z(n.id)
|
|
390
|
+
}, l(g(k).comments.save), 9, st), p("button", {
|
|
391
|
+
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
392
|
+
onClick: t[8] ||= (e) => K()
|
|
393
|
+
}, l(g(k).comments.cancel), 1)])])) : (i(), c("p", ct, l(n.body), 1)),
|
|
394
|
+
B.value === n.id ? (i(), c("div", lt, [
|
|
395
|
+
p("span", ut, l(g(k).comments.deleteConfirm), 1),
|
|
396
|
+
p("button", {
|
|
397
|
+
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)]",
|
|
398
|
+
"data-testid": "comment-delete-confirm",
|
|
399
|
+
onClick: (e) => Q(n.id)
|
|
400
|
+
}, l(g(k).comments.delete), 9, dt),
|
|
401
|
+
p("button", {
|
|
402
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
403
|
+
onClick: t[9] ||= (e) => J()
|
|
404
|
+
}, l(g(k).comments.cancel), 1)
|
|
405
|
+
])) : u("", !0)
|
|
406
|
+
], 2))), 128))])) : u("", !0)]),
|
|
407
|
+
_: 2
|
|
408
|
+
}, 1024),
|
|
409
|
+
y(m, { name: "tpl-replies" }, {
|
|
410
|
+
default: a(() => [F.value === e.id ? (i(), c("div", ft, [p("div", pt, [
|
|
411
|
+
s(p("textarea", {
|
|
412
|
+
"onUpdate:modelValue": t[10] ||= (e) => I.value = e,
|
|
413
|
+
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)]",
|
|
414
|
+
placeholder: g(k).comments.replyPlaceholder,
|
|
415
|
+
rows: "2",
|
|
416
|
+
onKeydown: (t) => Ft(t, e.id)
|
|
417
|
+
}, null, 40, mt), [[h, I.value]]),
|
|
418
|
+
p("button", {
|
|
419
|
+
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)]",
|
|
420
|
+
disabled: !I.value.trim() || M.value.isSubmitting.value,
|
|
421
|
+
onClick: (t) => X(e.id)
|
|
422
|
+
}, [y(g(S), {
|
|
423
|
+
size: 14,
|
|
424
|
+
"stroke-width": 2
|
|
425
|
+
})], 8, ht),
|
|
426
|
+
p("button", {
|
|
427
|
+
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)]",
|
|
428
|
+
onClick: t[11] ||= (e) => kt()
|
|
429
|
+
}, [y(g(T), {
|
|
430
|
+
size: 14,
|
|
431
|
+
"stroke-width": 2
|
|
432
|
+
})])
|
|
433
|
+
])])) : u("", !0)]),
|
|
434
|
+
_: 2
|
|
435
|
+
}, 1024)
|
|
436
|
+
]))), 128))]))]),
|
|
437
|
+
M.value.canCreate.value ? (i(), c("div", gt, [Tt.value ? (i(), c("div", _t, l(g(k).comments.saveTemplateFirst), 1)) : (i(), c("div", vt, [s(p("textarea", {
|
|
438
|
+
ref_key: "newCommentInput",
|
|
439
|
+
ref: V,
|
|
440
|
+
"onUpdate:modelValue": t[12] ||= (e) => P.value = e,
|
|
441
|
+
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)]",
|
|
442
|
+
"data-testid": "comments-input",
|
|
443
|
+
placeholder: g(k).comments.placeholder,
|
|
444
|
+
disabled: M.value.isSubmitting.value,
|
|
445
|
+
rows: "2",
|
|
446
|
+
onKeydown: Pt
|
|
447
|
+
}, null, 40, yt), [[h, P.value]]), p("button", {
|
|
448
|
+
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)]",
|
|
449
|
+
"data-testid": "comments-send",
|
|
450
|
+
disabled: !P.value.trim() || M.value.isSubmitting.value,
|
|
451
|
+
onClick: Y
|
|
452
|
+
}, [M.value.isSubmitting.value ? (i(), d(g(w), {
|
|
453
|
+
key: 0,
|
|
454
|
+
class: "tpl-spinner",
|
|
455
|
+
size: 16,
|
|
456
|
+
"stroke-width": 2
|
|
457
|
+
})) : (i(), d(g(S), {
|
|
458
|
+
key: 1,
|
|
459
|
+
size: 16,
|
|
460
|
+
"stroke-width": 2
|
|
461
|
+
}))], 8, bt)]))])) : u("", !0)
|
|
462
|
+
], 8, de)) : u("", !0)]),
|
|
463
|
+
_: 1
|
|
464
|
+
}));
|
|
465
|
+
}
|
|
466
|
+
}), [["__scopeId", "data-v-32af5912"]]);
|
|
467
|
+
//#endregion
|
|
468
|
+
export { D as default };
|
|
469
|
+
|
|
470
|
+
//# sourceMappingURL=CommentsSidebar-CCvplq1Z.js.map
|