@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
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
import { A as e, At as t, B as n, E as r, M as i, R as a, V as o, Z as s, at as c, c as l, d as u, g as d, h as ee, jt as f, kt as p, l as m, r as h, s as g, u as _, v } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
-
import { a as y, t as b } from "./runtime-dom.esm-bundler-DYn1z2Xf.js";
|
|
3
|
-
import { $ as te, g as ne } from "./keys-BymCnLHD.js";
|
|
4
|
-
import { t as re } from "./useI18n-CSh4gO5c.js";
|
|
5
|
-
import { t as x } from "./createLucideIcon-BcP1sjdp.js";
|
|
6
|
-
import { t as ie } from "./check-DQQzkmIC.js";
|
|
7
|
-
import { t as ae } from "./chevron-down-CIF4bdon.js";
|
|
8
|
-
import { t as oe } from "./chevron-up-Csu7ISD-.js";
|
|
9
|
-
import { t as S } from "./loader-circle-DCEeoYoi.js";
|
|
10
|
-
import { t as C } from "./message-circle-BLGzfv_7.js";
|
|
11
|
-
import { t as w } from "./pencil-Dct8zGLy.js";
|
|
12
|
-
import { t as T } from "./send-sVLaKZ7f.js";
|
|
13
|
-
import { t as E } from "./trash-I3D2peFQ.js";
|
|
14
|
-
import { t as D } from "./x-KFQ4S-Kz.js";
|
|
15
|
-
import { t as O } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
-
import { t as se } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
17
|
-
var ce = x({
|
|
18
|
-
name: "circle-check",
|
|
19
|
-
size: 24,
|
|
20
|
-
node: [["circle", {
|
|
21
|
-
cx: "12",
|
|
22
|
-
cy: "12",
|
|
23
|
-
r: "10",
|
|
24
|
-
key: "1mglay"
|
|
25
|
-
}], ["path", {
|
|
26
|
-
d: "m16 9-5.5 5.5L8 12",
|
|
27
|
-
key: "xofnsj"
|
|
28
|
-
}]],
|
|
29
|
-
aliases: ["check-circle-2"]
|
|
30
|
-
}), le = x({
|
|
31
|
-
name: "reply",
|
|
32
|
-
size: 24,
|
|
33
|
-
node: [["path", {
|
|
34
|
-
d: "M20 18v-2a4 4 0 0 0-4-4H4",
|
|
35
|
-
key: "5vmcpk"
|
|
36
|
-
}], ["path", {
|
|
37
|
-
d: "m9 17-5-5 5-5",
|
|
38
|
-
key: "nvlc11"
|
|
39
|
-
}]]
|
|
40
|
-
}), ue = ["aria-label"], de = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, fe = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, pe = {
|
|
41
|
-
key: 0,
|
|
42
|
-
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)]"
|
|
43
|
-
}, me = ["aria-label"], he = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, ge = ["aria-pressed"], _e = ["aria-pressed"], ve = ["aria-pressed"], ye = { class: "tpl:flex-1 tpl:overflow-y-auto" }, be = {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
46
|
-
}, xe = {
|
|
47
|
-
key: 1,
|
|
48
|
-
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
|
|
49
|
-
}, Se = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ce = {
|
|
50
|
-
key: 2,
|
|
51
|
-
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
52
|
-
}, we = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Te = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, De = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Oe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ke = {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
55
|
-
}, Ae = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, je = ["title", "onClick"], Me = ["title", "onClick"], Ne = ["title", "onClick"], Pe = {
|
|
56
|
-
key: 0,
|
|
57
|
-
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
|
|
58
|
-
}, Fe = {
|
|
59
|
-
key: 0,
|
|
60
|
-
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)]"
|
|
61
|
-
}, Ie = ["onClick"], Le = {
|
|
62
|
-
key: 2,
|
|
63
|
-
class: "tpl:mt-2"
|
|
64
|
-
}, Re = ["onKeydown"], ze = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Be = ["disabled", "onClick"], Ve = {
|
|
65
|
-
key: 3,
|
|
66
|
-
class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
67
|
-
}, He = {
|
|
68
|
-
key: 4,
|
|
69
|
-
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)]"
|
|
70
|
-
}, Ue = { class: "tpl:flex-1" }, We = ["onClick"], Ge = {
|
|
71
|
-
key: 5,
|
|
72
|
-
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
73
|
-
}, Ke = ["title", "onClick"], qe = ["onClick"], Je = {
|
|
74
|
-
key: 0,
|
|
75
|
-
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
76
|
-
}, Ye = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Xe = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Ze = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Qe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $e = {
|
|
77
|
-
key: 0,
|
|
78
|
-
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
79
|
-
}, et = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, tt = ["title", "onClick"], nt = ["title", "onClick"], rt = {
|
|
80
|
-
key: 0,
|
|
81
|
-
class: "tpl:mt-1.5"
|
|
82
|
-
}, it = ["onKeydown"], at = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, ot = ["disabled", "onClick"], st = {
|
|
83
|
-
key: 1,
|
|
84
|
-
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
85
|
-
}, ct = {
|
|
86
|
-
key: 2,
|
|
87
|
-
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)]"
|
|
88
|
-
}, lt = { class: "tpl:flex-1" }, ut = ["onClick"], dt = {
|
|
89
|
-
key: 0,
|
|
90
|
-
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
91
|
-
}, ft = { 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)]" }, pt = ["placeholder", "onKeydown"], mt = ["disabled", "onClick"], ht = {
|
|
92
|
-
key: 0,
|
|
93
|
-
class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
|
|
94
|
-
}, gt = {
|
|
95
|
-
key: 0,
|
|
96
|
-
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)]"
|
|
97
|
-
}, _t = {
|
|
98
|
-
key: 1,
|
|
99
|
-
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)]"
|
|
100
|
-
}, vt = ["placeholder", "disabled"], yt = ["disabled"], k = /*#__PURE__*/ O(/* @__PURE__ */ v({
|
|
101
|
-
__name: "CommentsSidebar",
|
|
102
|
-
props: {
|
|
103
|
-
visible: { type: Boolean },
|
|
104
|
-
feature: {}
|
|
105
|
-
},
|
|
106
|
-
emits: ["close"],
|
|
107
|
-
setup(v, { expose: x, emit: O }) {
|
|
108
|
-
let k = v, bt = O, { t: A, format: j } = re(), M = te(ne, "CommentsSidebar"), N = g(() => k.feature.headless), P = s("unresolved"), F = s(""), I = s(null), L = s(""), R = s(null), z = s(""), B = s(/* @__PURE__ */ new Set()), V = s(null), H = s(null), U = g(() => k.feature.filterBlockId.value);
|
|
109
|
-
a(U, (e) => {
|
|
110
|
-
e && (P.value = "block");
|
|
111
|
-
}, { immediate: !0 });
|
|
112
|
-
let xt = g(() => N.value.isLoading.value && N.value.comments.value.length === 0), St = g(() => {
|
|
113
|
-
let e = /* @__PURE__ */ new Set();
|
|
114
|
-
for (let t of M.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);
|
|
115
|
-
return e;
|
|
116
|
-
});
|
|
117
|
-
function Ct(e) {
|
|
118
|
-
return e ? !St.value.has(e) : !1;
|
|
119
|
-
}
|
|
120
|
-
let wt = g(() => P.value !== "block" || !U.value ? !1 : k.feature.capability.isBlockSaved(U.value) === !1), W = g(() => {
|
|
121
|
-
let e = N.value.comments.value;
|
|
122
|
-
return P.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : P.value === "block" && U.value && (e = e.filter((e) => e.blockId === U.value)), e;
|
|
123
|
-
});
|
|
124
|
-
a(() => M.state.selectedBlockId, (e) => {
|
|
125
|
-
P.value === "block" && e && (k.feature.filterBlockId.value = e);
|
|
126
|
-
});
|
|
127
|
-
function G(e, t) {
|
|
128
|
-
P.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
129
|
-
}
|
|
130
|
-
function Tt(e) {
|
|
131
|
-
G("block", e);
|
|
132
|
-
}
|
|
133
|
-
function Et(e) {
|
|
134
|
-
B.value.has(e) ? B.value.delete(e) : B.value.add(e);
|
|
135
|
-
}
|
|
136
|
-
function Dt(e) {
|
|
137
|
-
I.value = e, L.value = "", R.value = null, B.value.has(e) || B.value.add(e);
|
|
138
|
-
}
|
|
139
|
-
function Ot() {
|
|
140
|
-
I.value = null, L.value = "";
|
|
141
|
-
}
|
|
142
|
-
function K(e) {
|
|
143
|
-
R.value = e.id, z.value = e.body, I.value = null;
|
|
144
|
-
}
|
|
145
|
-
function q() {
|
|
146
|
-
R.value = null, z.value = "";
|
|
147
|
-
}
|
|
148
|
-
function J(e) {
|
|
149
|
-
V.value = e;
|
|
150
|
-
}
|
|
151
|
-
function Y() {
|
|
152
|
-
V.value = null;
|
|
153
|
-
}
|
|
154
|
-
async function X() {
|
|
155
|
-
let e = F.value.trim();
|
|
156
|
-
if (!e || !N.value.canCreate.value) return;
|
|
157
|
-
let t = P.value === "block" ? U.value : void 0;
|
|
158
|
-
try {
|
|
159
|
-
await N.value.create({
|
|
160
|
-
body: e,
|
|
161
|
-
blockId: t ?? void 0
|
|
162
|
-
}), F.value = "";
|
|
163
|
-
} catch {}
|
|
164
|
-
}
|
|
165
|
-
async function Z(e) {
|
|
166
|
-
let t = L.value.trim();
|
|
167
|
-
if (!t || !N.value.canCreate.value) return;
|
|
168
|
-
let n = N.value.find(e);
|
|
169
|
-
try {
|
|
170
|
-
await N.value.create({
|
|
171
|
-
body: t,
|
|
172
|
-
blockId: n?.blockId ?? void 0,
|
|
173
|
-
parentId: e
|
|
174
|
-
}), I.value = null, L.value = "";
|
|
175
|
-
} catch {}
|
|
176
|
-
}
|
|
177
|
-
async function Q(e) {
|
|
178
|
-
let t = z.value.trim();
|
|
179
|
-
if (t) try {
|
|
180
|
-
await N.value.update(e, { body: t }), R.value = null, z.value = "";
|
|
181
|
-
} catch {}
|
|
182
|
-
}
|
|
183
|
-
async function kt(e) {
|
|
184
|
-
try {
|
|
185
|
-
await N.value.remove(e);
|
|
186
|
-
} catch {}
|
|
187
|
-
V.value = null;
|
|
188
|
-
}
|
|
189
|
-
async function At(e) {
|
|
190
|
-
try {
|
|
191
|
-
await N.value.setResolved(e.id, !e.resolvedAt);
|
|
192
|
-
} catch {}
|
|
193
|
-
}
|
|
194
|
-
function jt(e) {
|
|
195
|
-
return N.value.canUpdate.value && N.value.isOwn(e);
|
|
196
|
-
}
|
|
197
|
-
function Mt(e) {
|
|
198
|
-
return N.value.canDelete.value && N.value.isOwn(e);
|
|
199
|
-
}
|
|
200
|
-
function Nt(e) {
|
|
201
|
-
return se(e, A.time) ?? e;
|
|
202
|
-
}
|
|
203
|
-
function Pt(e) {
|
|
204
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), X());
|
|
205
|
-
}
|
|
206
|
-
function Ft(e, t) {
|
|
207
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t));
|
|
208
|
-
}
|
|
209
|
-
function $(e, t) {
|
|
210
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && q();
|
|
211
|
-
}
|
|
212
|
-
function It() {
|
|
213
|
-
r(() => {
|
|
214
|
-
H.value?.focus();
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
return x({
|
|
218
|
-
filterByBlock: Tt,
|
|
219
|
-
focusNewComment: It
|
|
220
|
-
}), (r, a) => (e(), m(b, {
|
|
221
|
-
"enter-active-class": "tpl-comments-slide-enter-active",
|
|
222
|
-
"enter-from-class": "tpl:translate-x-full",
|
|
223
|
-
"enter-to-class": "tpl:translate-x-0",
|
|
224
|
-
"leave-active-class": "tpl-comments-slide-leave-active",
|
|
225
|
-
"leave-from-class": "tpl:translate-x-0",
|
|
226
|
-
"leave-to-class": "tpl:translate-x-full"
|
|
227
|
-
}, {
|
|
228
|
-
default: n(() => [v.visible ? (e(), u("div", {
|
|
229
|
-
key: 0,
|
|
230
|
-
role: "complementary",
|
|
231
|
-
"aria-label": c(A).comments.title,
|
|
232
|
-
"data-testid": "comments-sidebar",
|
|
233
|
-
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)]"
|
|
234
|
-
}, [
|
|
235
|
-
l("div", de, [l("div", fe, [
|
|
236
|
-
d(c(C), {
|
|
237
|
-
size: 13,
|
|
238
|
-
"stroke-width": 2
|
|
239
|
-
}),
|
|
240
|
-
l("span", null, f(c(A).comments.title), 1),
|
|
241
|
-
v.feature.unresolvedCount.value > 0 ? (e(), u("span", pe, f(v.feature.unresolvedCount.value), 1)) : _("", !0)
|
|
242
|
-
]), l("button", {
|
|
243
|
-
type: "button",
|
|
244
|
-
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
245
|
-
"aria-label": c(A).comments.close,
|
|
246
|
-
onClick: a[0] ||= (e) => bt("close")
|
|
247
|
-
}, [d(c(D), {
|
|
248
|
-
size: 14,
|
|
249
|
-
"stroke-width": 2
|
|
250
|
-
})], 8, me)]),
|
|
251
|
-
l("div", he, [
|
|
252
|
-
l("button", {
|
|
253
|
-
type: "button",
|
|
254
|
-
class: p(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
|
|
255
|
-
"aria-pressed": P.value === "unresolved",
|
|
256
|
-
"data-testid": "comments-filter-unresolved",
|
|
257
|
-
onClick: a[1] ||= (e) => G("unresolved")
|
|
258
|
-
}, f(c(A).comments.filterUnresolved), 11, ge),
|
|
259
|
-
l("button", {
|
|
260
|
-
type: "button",
|
|
261
|
-
class: p(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "all" ? "tpl-comment-filter--active" : ""]),
|
|
262
|
-
"aria-pressed": P.value === "all",
|
|
263
|
-
"data-testid": "comments-filter-all",
|
|
264
|
-
onClick: a[2] ||= (e) => G("all")
|
|
265
|
-
}, f(c(A).comments.filterAll), 11, _e),
|
|
266
|
-
c(M).state.selectedBlockId ? (e(), u("button", {
|
|
267
|
-
key: 0,
|
|
268
|
-
type: "button",
|
|
269
|
-
class: p(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "block" ? "tpl-comment-filter--active" : ""]),
|
|
270
|
-
"aria-pressed": P.value === "block",
|
|
271
|
-
onClick: a[3] ||= (e) => G("block", c(M).state.selectedBlockId ?? void 0)
|
|
272
|
-
}, f(c(A).comments.filterBlock), 11, ve)) : _("", !0)
|
|
273
|
-
]),
|
|
274
|
-
l("div", ye, [xt.value ? (e(), u("div", be, [d(c(S), {
|
|
275
|
-
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
276
|
-
size: 24,
|
|
277
|
-
"stroke-width": 2
|
|
278
|
-
})])) : W.value.length === 0 ? (e(), u("div", xe, [d(c(C), {
|
|
279
|
-
size: 32,
|
|
280
|
-
"stroke-width": 1.5,
|
|
281
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
282
|
-
}), l("p", Se, f(P.value === "all" ? c(A).comments.noCommentsHint : c(A).comments.noComments), 1)])) : (e(), u("div", Ce, [(e(!0), u(h, null, i(W.value, (r) => (e(), u("div", {
|
|
283
|
-
key: r.id,
|
|
284
|
-
class: "tpl-comment-thread",
|
|
285
|
-
"data-testid": "comment-thread"
|
|
286
|
-
}, [
|
|
287
|
-
l("div", we, [
|
|
288
|
-
l("div", Te, [l("div", Ee, [
|
|
289
|
-
l("span", De, f(N.value.isOwn(r) ? c(A).comments.ownedByYou : r.author.name), 1),
|
|
290
|
-
l("span", Oe, f(Nt(r.createdAt)), 1),
|
|
291
|
-
r.updatedAt ? (e(), u("span", ke, " (" + f(c(A).comments.edited) + ") ", 1)) : _("", !0)
|
|
292
|
-
]), l("div", Ae, [
|
|
293
|
-
N.value.canResolve.value ? (e(), u("button", {
|
|
294
|
-
key: 0,
|
|
295
|
-
"data-testid": "comment-resolve",
|
|
296
|
-
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
297
|
-
title: r.resolvedAt ? c(A).comments.unresolve : c(A).comments.resolve,
|
|
298
|
-
onClick: (e) => At(r)
|
|
299
|
-
}, [d(c(ce), {
|
|
300
|
-
size: 13,
|
|
301
|
-
"stroke-width": 2,
|
|
302
|
-
class: "tpl-resolve-icon",
|
|
303
|
-
style: t({ color: r.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
304
|
-
}, null, 8, ["style"])], 8, je)) : _("", !0),
|
|
305
|
-
jt(r) ? (e(), u("button", {
|
|
306
|
-
key: 1,
|
|
307
|
-
"data-testid": "comment-edit",
|
|
308
|
-
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
309
|
-
title: c(A).comments.edit,
|
|
310
|
-
onClick: (e) => K(r)
|
|
311
|
-
}, [d(c(w), {
|
|
312
|
-
size: 12,
|
|
313
|
-
"stroke-width": 2
|
|
314
|
-
})], 8, Me)) : _("", !0),
|
|
315
|
-
Mt(r) ? (e(), u("button", {
|
|
316
|
-
key: 2,
|
|
317
|
-
"data-testid": "comment-delete",
|
|
318
|
-
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
319
|
-
title: c(A).comments.delete,
|
|
320
|
-
onClick: (e) => J(r.id)
|
|
321
|
-
}, [d(c(E), {
|
|
322
|
-
size: 12,
|
|
323
|
-
"stroke-width": 2
|
|
324
|
-
})], 8, Ne)) : _("", !0)
|
|
325
|
-
])]),
|
|
326
|
-
d(b, { name: "tpl-resolve" }, {
|
|
327
|
-
default: n(() => [r.resolvedAt ? (e(), u("div", Pe, [d(c(ie), {
|
|
328
|
-
size: 10,
|
|
329
|
-
"stroke-width": 2.5
|
|
330
|
-
}), l("span", null, f(c(j)(c(A).comments.resolvedBy, { name: r.resolvedBy?.name ?? "" })), 1)])) : _("", !0)]),
|
|
331
|
-
_: 2
|
|
332
|
-
}, 1024),
|
|
333
|
-
r.blockId && Ct(r.blockId) ? (e(), u("span", Fe, f(c(A).comments.missingBlock), 1)) : r.blockId ? (e(), u("button", {
|
|
334
|
-
key: 1,
|
|
335
|
-
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)]",
|
|
336
|
-
onClick: (e) => c(M).selectBlock(r.blockId ?? "")
|
|
337
|
-
}, f(c(A).comments.jumpToBlock), 9, Ie)) : _("", !0),
|
|
338
|
-
R.value === r.id ? (e(), u("div", Le, [o(l("textarea", {
|
|
339
|
-
"onUpdate:modelValue": a[4] ||= (e) => z.value = e,
|
|
340
|
-
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)]",
|
|
341
|
-
rows: "3",
|
|
342
|
-
onKeydown: (e) => $(e, r.id)
|
|
343
|
-
}, null, 40, Re), [[y, z.value]]), l("div", ze, [l("button", {
|
|
344
|
-
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)]",
|
|
345
|
-
disabled: !z.value.trim() || N.value.isSubmitting.value,
|
|
346
|
-
onClick: (e) => Q(r.id)
|
|
347
|
-
}, f(c(A).comments.save), 9, Be), l("button", {
|
|
348
|
-
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)]",
|
|
349
|
-
onClick: a[5] ||= (e) => q()
|
|
350
|
-
}, f(c(A).comments.cancel), 1)])])) : (e(), u("p", Ve, f(r.body), 1)),
|
|
351
|
-
V.value === r.id ? (e(), u("div", He, [
|
|
352
|
-
l("span", Ue, f(c(A).comments.deleteConfirm), 1),
|
|
353
|
-
l("button", {
|
|
354
|
-
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)]",
|
|
355
|
-
"data-testid": "comment-delete-confirm",
|
|
356
|
-
onClick: (e) => kt(r.id)
|
|
357
|
-
}, f(c(A).comments.delete), 9, We),
|
|
358
|
-
l("button", {
|
|
359
|
-
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
360
|
-
onClick: a[6] ||= (e) => Y()
|
|
361
|
-
}, f(c(A).comments.cancel), 1)
|
|
362
|
-
])) : _("", !0),
|
|
363
|
-
R.value !== r.id && V.value !== r.id ? (e(), u("div", Ge, [N.value.canCreate.value ? (e(), u("button", {
|
|
364
|
-
key: 0,
|
|
365
|
-
"data-testid": "comment-reply",
|
|
366
|
-
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
367
|
-
title: c(A).comments.reply,
|
|
368
|
-
onClick: (e) => Dt(r.id)
|
|
369
|
-
}, [d(c(le), {
|
|
370
|
-
size: 13,
|
|
371
|
-
"stroke-width": 2,
|
|
372
|
-
class: "tpl:text-[var(--tpl-primary)]"
|
|
373
|
-
})], 8, Ke)) : _("", !0), (r.replies?.length ?? 0) > 0 ? (e(), u("button", {
|
|
374
|
-
key: 1,
|
|
375
|
-
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)]",
|
|
376
|
-
onClick: (e) => Et(r.id)
|
|
377
|
-
}, [B.value.has(r.id) ? (e(), m(c(oe), {
|
|
378
|
-
key: 0,
|
|
379
|
-
size: 11,
|
|
380
|
-
"stroke-width": 2
|
|
381
|
-
})) : (e(), m(c(ae), {
|
|
382
|
-
key: 1,
|
|
383
|
-
size: 11,
|
|
384
|
-
"stroke-width": 2
|
|
385
|
-
})), ee(" " + f((r.replies?.length ?? 0) === 1 ? c(j)(c(A).comments.replyOne, { count: String(r.replies?.length ?? 0) }) : c(j)(c(A).comments.replyMany, { count: String(r.replies?.length ?? 0) })), 1)], 8, qe)) : _("", !0)])) : _("", !0)
|
|
386
|
-
]),
|
|
387
|
-
d(b, { name: "tpl-replies" }, {
|
|
388
|
-
default: n(() => [B.value.has(r.id) && (r.replies?.length ?? 0) > 0 ? (e(), u("div", Je, [(e(!0), u(h, null, i(r.replies, (t, n) => (e(), u("div", {
|
|
389
|
-
key: t.id,
|
|
390
|
-
class: p(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", n < (r.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
|
|
391
|
-
}, [
|
|
392
|
-
l("div", Ye, [l("div", Xe, [
|
|
393
|
-
l("span", Ze, f(N.value.isOwn(t) ? c(A).comments.ownedByYou : t.author.name), 1),
|
|
394
|
-
l("span", Qe, f(Nt(t.createdAt)), 1),
|
|
395
|
-
t.updatedAt ? (e(), u("span", $e, " (" + f(c(A).comments.edited) + ") ", 1)) : _("", !0)
|
|
396
|
-
]), l("div", et, [jt(t) ? (e(), u("button", {
|
|
397
|
-
key: 0,
|
|
398
|
-
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
399
|
-
title: c(A).comments.edit,
|
|
400
|
-
onClick: (e) => K(t)
|
|
401
|
-
}, [d(c(w), {
|
|
402
|
-
size: 11,
|
|
403
|
-
"stroke-width": 2
|
|
404
|
-
})], 8, tt)) : _("", !0), Mt(t) ? (e(), u("button", {
|
|
405
|
-
key: 1,
|
|
406
|
-
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
407
|
-
title: c(A).comments.delete,
|
|
408
|
-
onClick: (e) => J(t.id)
|
|
409
|
-
}, [d(c(E), {
|
|
410
|
-
size: 11,
|
|
411
|
-
"stroke-width": 2
|
|
412
|
-
})], 8, nt)) : _("", !0)])]),
|
|
413
|
-
R.value === t.id ? (e(), u("div", rt, [o(l("textarea", {
|
|
414
|
-
"onUpdate:modelValue": a[7] ||= (e) => z.value = e,
|
|
415
|
-
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)]",
|
|
416
|
-
rows: "2",
|
|
417
|
-
onKeydown: (e) => $(e, t.id)
|
|
418
|
-
}, null, 40, it), [[y, z.value]]), l("div", at, [l("button", {
|
|
419
|
-
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)]",
|
|
420
|
-
disabled: !z.value.trim() || N.value.isSubmitting.value,
|
|
421
|
-
onClick: (e) => Q(t.id)
|
|
422
|
-
}, f(c(A).comments.save), 9, ot), l("button", {
|
|
423
|
-
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
424
|
-
onClick: a[8] ||= (e) => q()
|
|
425
|
-
}, f(c(A).comments.cancel), 1)])])) : (e(), u("p", st, f(t.body), 1)),
|
|
426
|
-
V.value === t.id ? (e(), u("div", ct, [
|
|
427
|
-
l("span", lt, f(c(A).comments.deleteConfirm), 1),
|
|
428
|
-
l("button", {
|
|
429
|
-
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)]",
|
|
430
|
-
"data-testid": "comment-delete-confirm",
|
|
431
|
-
onClick: (e) => kt(t.id)
|
|
432
|
-
}, f(c(A).comments.delete), 9, ut),
|
|
433
|
-
l("button", {
|
|
434
|
-
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
435
|
-
onClick: a[9] ||= (e) => Y()
|
|
436
|
-
}, f(c(A).comments.cancel), 1)
|
|
437
|
-
])) : _("", !0)
|
|
438
|
-
], 2))), 128))])) : _("", !0)]),
|
|
439
|
-
_: 2
|
|
440
|
-
}, 1024),
|
|
441
|
-
d(b, { name: "tpl-replies" }, {
|
|
442
|
-
default: n(() => [I.value === r.id ? (e(), u("div", dt, [l("div", ft, [
|
|
443
|
-
o(l("textarea", {
|
|
444
|
-
"onUpdate:modelValue": a[10] ||= (e) => L.value = e,
|
|
445
|
-
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)]",
|
|
446
|
-
placeholder: c(A).comments.replyPlaceholder,
|
|
447
|
-
rows: "2",
|
|
448
|
-
onKeydown: (e) => Ft(e, r.id)
|
|
449
|
-
}, null, 40, pt), [[y, L.value]]),
|
|
450
|
-
l("button", {
|
|
451
|
-
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)]",
|
|
452
|
-
disabled: !L.value.trim() || N.value.isSubmitting.value,
|
|
453
|
-
onClick: (e) => Z(r.id)
|
|
454
|
-
}, [d(c(T), {
|
|
455
|
-
size: 14,
|
|
456
|
-
"stroke-width": 2
|
|
457
|
-
})], 8, mt),
|
|
458
|
-
l("button", {
|
|
459
|
-
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)]",
|
|
460
|
-
onClick: a[11] ||= (e) => Ot()
|
|
461
|
-
}, [d(c(D), {
|
|
462
|
-
size: 14,
|
|
463
|
-
"stroke-width": 2
|
|
464
|
-
})])
|
|
465
|
-
])])) : _("", !0)]),
|
|
466
|
-
_: 2
|
|
467
|
-
}, 1024)
|
|
468
|
-
]))), 128))]))]),
|
|
469
|
-
N.value.canCreate.value ? (e(), u("div", ht, [wt.value ? (e(), u("div", gt, f(c(A).comments.saveTemplateFirst), 1)) : (e(), u("div", _t, [o(l("textarea", {
|
|
470
|
-
ref_key: "newCommentInput",
|
|
471
|
-
ref: H,
|
|
472
|
-
"onUpdate:modelValue": a[12] ||= (e) => F.value = e,
|
|
473
|
-
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)]",
|
|
474
|
-
"data-testid": "comments-input",
|
|
475
|
-
placeholder: c(A).comments.placeholder,
|
|
476
|
-
disabled: N.value.isSubmitting.value,
|
|
477
|
-
rows: "2",
|
|
478
|
-
onKeydown: Pt
|
|
479
|
-
}, null, 40, vt), [[y, F.value]]), l("button", {
|
|
480
|
-
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)]",
|
|
481
|
-
"data-testid": "comments-send",
|
|
482
|
-
disabled: !F.value.trim() || N.value.isSubmitting.value,
|
|
483
|
-
onClick: X
|
|
484
|
-
}, [N.value.isSubmitting.value ? (e(), m(c(S), {
|
|
485
|
-
key: 0,
|
|
486
|
-
class: "tpl-spinner",
|
|
487
|
-
size: 16,
|
|
488
|
-
"stroke-width": 2
|
|
489
|
-
})) : (e(), m(c(T), {
|
|
490
|
-
key: 1,
|
|
491
|
-
size: 16,
|
|
492
|
-
"stroke-width": 2
|
|
493
|
-
}))], 8, yt)]))])) : _("", !0)
|
|
494
|
-
], 8, ue)) : _("", !0)]),
|
|
495
|
-
_: 1
|
|
496
|
-
}));
|
|
497
|
-
}
|
|
498
|
-
}), [["__scopeId", "data-v-32af5912"]]);
|
|
499
|
-
//#endregion
|
|
500
|
-
export { k as default };
|