@templatical/editor 0.48.0 → 0.50.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-BShkuJis.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
- package/dist/{BlockPreviewCanvas-tzAtDkXH.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
- package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
- package/dist/CloudPanels-B4F5m7vy.js +168 -0
- package/dist/CollaborationNotices-CNuDp7Y2.js +76 -0
- package/dist/CollaboratorBar-BtHPiuHq.js +123 -0
- package/dist/{CommentsPanel-DiWzYtnZ.js → CommentsPanel-CyCM-BvT.js} +4 -4
- package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
- package/dist/{cdn/chunks/CountdownBlock-Dasj191h.js → CountdownBlock-DR4Xm2-T.js} +24 -26
- package/dist/{CountdownToolbar-C4y3Ft7H.js → CountdownToolbar-CEIMPojJ.js} +56 -56
- package/dist/IssuesPanel-C8nMUccy.js +360 -0
- package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-B0RKQWq3.js} +2 -2
- package/dist/{LogicTagInsertButton-B1_Wy0AN.js → LogicTagInsertButton-CqfU52CO.js} +272 -267
- package/dist/{cdn/chunks/MediaEditModal-zXfcArr4.js → MediaEditModal-DHtkZ4OU.js} +202 -186
- package/dist/{MediaPanels-9mDBv4aL.js → MediaPanels-CGcOB2pR.js} +4 -4
- package/dist/{MergeTagInput-fOewuF27.js → MergeTagInput-YnEkorTZ.js} +26 -26
- package/dist/{MergeTagModeToggle-BXamLcv7.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
- package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
- package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
- package/dist/{RestoreVersionDialog-BEKXx9xk.js → RestoreVersionDialog-Bq_IGOLJ.js} +22 -22
- package/dist/{RichTextEditorContent-D7kp7iig.js → RichTextEditorContent-AOM6fylS.js} +48 -48
- package/dist/{SaveBlockDialog-SJu0lecx.js → SaveBlockDialog-C8GngfQx.js} +88 -88
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-CtnB58p_.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
- package/dist/{SavedBlocksPanels-Dr5Fxx9Z.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
- package/dist/{SavedBlocksPickBar-DnEWBZJy.js → SavedBlocksPickBar-BjcTiV87.js} +14 -14
- package/dist/TemplateSettings-BVBWpiDU.js +237 -0
- package/dist/{TestEmailModal-CbRY8HQx.js → TestEmailModal-SyhO9bn3.js} +57 -57
- package/dist/{TestEmailPanel-NAOmt3xi.js → TestEmailPanel-BDd2Rtav.js} +4 -4
- package/dist/{TitleEditor-Cc3DHbuN.js → TitleEditor-pxD53y_l.js} +75 -75
- package/dist/ToggleSwitch-D51U9cmR.js +37 -0
- package/dist/Toolbar-CZSPZYbj.js +3153 -0
- package/dist/{TplModal-Bz4-IZ9R.js → TplModal-DCzBzicE.js} +19 -19
- package/dist/{VersionHistoryMenu-CjV1d1zk.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
- package/dist/{VersionHistoryPanels-BtwxrKJn.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
- package/dist/{VersionPreviewBanner-BLAei1kj.js → VersionPreviewBanner-DUGF0tUJ.js} +10 -10
- 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-CEDZytqP.js → blockTypeIcons-NzaYvAI4.js} +15 -14
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CbNzJM3I.js → ca-C7mTzW1r.js} +147 -8
- 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-C7sdnkrF.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
- package/dist/cdn/chunks/{BlockIssueBadge-C7sdnkrF.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.js → BlockPreviewCanvas-D0--EQkP.js} +39 -39
- package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.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-awqHfJqC.js → CloudPanels-C3jsxo_f.js} +52 -100
- package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
- package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js +78 -0
- package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
- package/dist/cdn/chunks/CollaboratorBar-Dfzm6A9A.js +72 -0
- package/dist/cdn/chunks/CollaboratorBar-Dfzm6A9A.js.map +1 -0
- package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
- package/dist/cdn/chunks/{CommentsPanel-CbzxwsyI.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
- package/dist/cdn/chunks/{CommentsSidebar-DWPHZuQm.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
- package/dist/{CountdownBlock-zx39Dyby.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
- package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cqg8FUH-.js → CountdownToolbar-Cjud2Tos.js} +71 -71
- package/dist/cdn/chunks/{CountdownToolbar-Cqg8FUH-.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-DbH97JR9.js → LoadingTrack-BIcL4NiY.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BMB9vShs.js → LogicTagInsertButton-CsL2JDOG.js} +374 -369
- package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
- package/dist/{MediaEditModal-ByOvznRC.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-Cp4XB_dH.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js → MergeTagInput-C8U-7LxL.js} +34 -34
- package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
- package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.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-BgR6RXSb.js → RestoreVersionDialog-CdA5osuA.js} +26 -26
- package/dist/cdn/chunks/{RestoreVersionDialog-BgR6RXSb.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
- package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js → SaveBlockDialog-CijargAy.js} +78 -78
- package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CtnB58p_.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-BhEOMzEQ.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js → SavedBlocksPickBar-BPRaJBv3.js} +19 -19
- package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
- package/dist/cdn/chunks/{TemplateSettings-BkkWTDHD.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js → TestEmailModal-BUVTj3Ic.js} +54 -54
- package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
- package/dist/cdn/chunks/{TestEmailPanel-DxrKuctP.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
- package/dist/cdn/chunks/{TitleEditor-CsZiG3TT.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-C_x2TfFk.js → Toolbar-DoprRgTn.js} +1097 -1101
- package/dist/cdn/chunks/Toolbar-DoprRgTn.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DC_eodTV.js → TplModal-BXQzmsJX.js} +21 -21
- package/dist/cdn/chunks/{TplModal-DC_eodTV.js.map → TplModal-BXQzmsJX.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
- package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
- package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-DXSqmaLS.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js → VersionPreviewBanner-BaGcn-b1.js} +13 -13
- package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
- package/dist/cdn/chunks/{WrapperBlock-gG_Bleug.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-HrMJDfVg.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
- package/dist/{ca-CbNzJM3I.js → cdn/chunks/ca-C7mTzW1r.js} +149 -6
- package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
- package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js +1408 -0
- 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-DMquBpZM.js → cdn/chunks/de-DNuYQTmS.js} +149 -6
- package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
- package/dist/{dist-CUWI-IvA.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
- package/dist/cdn/chunks/{dist-CjL6JHML.js.map → dist-Bo8Thh8v.js.map} +1 -1
- package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
- package/dist/cdn/chunks/{dist-MNQYSEWU.js.map → dist-S-rLGqax.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DrsNwZuB.js → draggable-DZ0gwUJ6.js} +1359 -1266
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-vEEmZ8Tu.js → editor-modal-CI6EfeMd.js} +881 -881
- package/dist/cdn/chunks/{editor-modal-vEEmZ8Tu.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-C8Mp71sO.js → cdn/chunks/en-CW71OK66.js} +149 -6
- package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
- package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
- package/dist/{es-Byq4tthI.js → cdn/chunks/es-DdK7zQfi.js} +149 -6
- package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
- package/dist/cdn/chunks/{extensions-hJ9VqzDc.js → extensions-taJTZlLK.js} +71 -71
- package/dist/cdn/chunks/{extensions-hJ9VqzDc.js.map → extensions-taJTZlLK.js.map} +1 -1
- package/dist/{fr-B3j35HEw.js → cdn/chunks/fr-Dz5Bgb7-.js} +149 -6
- package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
- package/dist/cdn/chunks/{icons-aTYwH5-g.js → icons-DNX6StSs.js} +183 -150
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
- package/dist/{ja-D7txAuGS.js → cdn/chunks/ja-Di-zJiT8.js} +149 -6
- 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-ClJ3BY3F.js → cdn/chunks/nl-CvVuHYFL.js} +149 -6
- package/dist/cdn/chunks/nl-CvVuHYFL.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.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-DibcXcmv.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +149 -6
- package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
- package/dist/cdn/chunks/{pusher-C8DeiO2X.js → pusher-Cs4GGEtd.js} +2 -2
- package/dist/cdn/chunks/pusher-Cs4GGEtd.js.map +1 -0
- package/dist/cdn/chunks/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-Y_bBpyJl.js} +1 -1
- 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/cdn/chunks/{src-DYCDeBDM.js → src-BNFnxfrA.js} +694 -329
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
- package/dist/cdn/chunks/{src-dZ4D_tuP.js → src-BcTUmgLe.js} +181 -181
- package/dist/cdn/chunks/src-BcTUmgLe.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/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +2 -4
- package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js.map → styleConstants-v1dNKgJf.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-BPigZk5G.js → tiptap-CtVrAViq.js} +44 -44
- package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js → useCloudI18n-AVXhzbhQ.js} +4 -4
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.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-CTc6O8al.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js → useI18n-CbVubQhM.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js.map → useI18n-CbVubQhM.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-HsyUCQtl.js → useLogicTag-B49Nc53Y.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-HsyUCQtl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.js → useMergeTag-B0KryMj8.js} +7 -7
- package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js → usePopoverPosition-C829ps5i.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.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-oLcATrQ8.js → withCurrentFont-DFPXeVfG.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-oLcATrQ8.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2235 -1311
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ClwqRMgv.js → check-yYsp5Xpk.js} +1 -1
- package/dist/{chevron-down-te6qn-zE.js → chevron-down-DTmD06_j.js} +1 -1
- package/dist/{chevron-right-W2hbH1FM.js → chevron-right-BSeYZOxc.js} +1 -1
- package/dist/{chevron-up-Bf5Zo7o4.js → chevron-up-BOApwrxi.js} +1 -1
- package/dist/{circle-alert-CIEGV5DN.js → circle-alert-BMszY8im.js} +1 -1
- package/dist/{clock-Y4cx0gkJ.js → clock-HADxnl6-.js} +1 -1
- package/dist/createCloudRuntime-DVQI_ReU.js +1379 -0
- package/dist/{createLucideIcon-CYHXK9hn.js → createLucideIcon-0lYYH3EW.js} +6 -6
- package/dist/de-DBOTcDj2.js +20 -0
- package/dist/{cdn/chunks/de-DMquBpZM.js → de-DNuYQTmS.js} +147 -8
- package/dist/{cdn/chunks/dist-CjL6JHML.js → dist-C7EtxNCb.js} +49 -51
- package/dist/{dist-DuufrR8O.js → dist-C_dV9QAx.js} +130 -130
- package/dist/{cdn/chunks/dist-MNQYSEWU.js → dist-DI4_YSnG.js} +111 -110
- package/dist/{dist-tsmnQugO.js → dist-DtOF3bDW.js} +648 -294
- package/dist/{editor-modal-AlVLkU91.js → editor-modal-Bzhl-PgI.js} +832 -834
- package/dist/en-CDhWRrF_.js +20 -0
- package/dist/{cdn/chunks/en-C8Mp71sO.js → en-CW71OK66.js} +147 -8
- package/dist/en-DwV15ltA.js +1 -0
- package/dist/{cdn/chunks/es-Byq4tthI.js → es-DdK7zQfi.js} +147 -8
- package/dist/{extensions-pjO8VGkM.js → extensions-CdyweA50.js} +54 -54
- package/dist/{eye-Ddnz8nnm.js → eye-DWkSvYpj.js} +1 -1
- package/dist/{cdn/chunks/fr-B3j35HEw.js → fr-Dz5Bgb7-.js} +147 -8
- package/dist/image-DesWjcZ4.js +28 -0
- package/dist/index.d.ts +640 -48
- package/dist/{info-DXLmzoeY.js → info-ClWJGoZy.js} +1 -1
- package/dist/{cdn/chunks/ja-D7txAuGS.js → ja-Di-zJiT8.js} +147 -8
- package/dist/keys-Zd9KWRD1.js +10 -0
- package/dist/{link-Cel46wgo.js → link-BqRicFTA.js} +1 -1
- package/dist/{list-Cl0GwiV9.js → list-bojQr9bn.js} +1 -1
- package/dist/{loader-circle-uAwpvfys.js → loader-circle-B2B8LbUu.js} +1 -1
- package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
- package/dist/{message-circle-DWU1pTM_.js → message-circle-BEuiNsyZ.js} +1 -1
- package/dist/{cdn/chunks/nl-ClJ3BY3F.js → nl-CvVuHYFL.js} +147 -8
- package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
- package/dist/{package-CbyG_yU_.js → package-DCROB4aM.js} +1 -1
- package/dist/{pencil-BzoDcwKu.js → pencil-CEotCKbf.js} +1 -1
- package/dist/{preRenderCustomBlocks-DMP5RuHl.js → preRenderCustomBlocks-D8rr61_z.js} +3 -3
- package/dist/pt-BR-CHM-ZKvE.js +20 -0
- package/dist/{cdn/chunks/pt-BR-DibcXcmv.js → pt-BR-ZhO4vgyq.js} +147 -8
- package/dist/{refresh-cw-9WinWixo.js → refresh-cw-C6M2mHNC.js} +12 -2
- package/dist/{runtime-dom.esm-bundler-lFF-QG3j.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
- package/dist/{search-CqgGq1gG.js → search-Cy99zPYf.js} +1 -1
- package/dist/{send-Ceo3c9Db.js → send-BDLJFsf3.js} +1 -1
- package/dist/{smartphone-CcLaCpGK.js → smartphone-CVvQaNA4.js} +1 -1
- package/dist/socialIcons-Dd-jRiVe.js +2086 -0
- package/dist/{sparkles-Do9XjAuT.js → sparkles-Ce0Qz0ox.js} +1 -1
- package/dist/square-BWlolnXe.js +15 -0
- package/dist/style.css +1 -1
- package/dist/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +1 -3
- package/dist/templatical-editor.js +2272 -1327
- package/dist/{text-align-start-DvzC0HQA.js → text-align-start-D1V5gPTy.js} +1 -1
- package/dist/{trash-vlINTx32.js → trash-CZfiUFmw.js} +1 -1
- package/dist/{triangle-alert-MRYSJ9T2.js → triangle-alert-CFDzyFC7.js} +1 -1
- package/dist/upload-BJfvdIrD.js +36 -0
- package/dist/{useCloudI18n-Nwqo7pI_.js → useCloudI18n-Dcjua65H.js} +5 -5
- package/dist/{useEditorCore-PvErWWsp.js → useEditorCore-BTLeAVlM.js} +1534 -1549
- package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-DUy67lJu.js} +2 -2
- package/dist/{useI18n-CxVEpurs.js → useI18n-BdoY7xDE.js} +4 -4
- package/dist/{useLogicTag-BHn67tDd.js → useLogicTag-DKLZ1T9H.js} +3 -3
- package/dist/{useMergeTag-CRkm5Ig6.js → useMergeTag-Bhdx7AKk.js} +5 -5
- package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-BZea45XK.js} +2 -2
- package/dist/useScrollToBlock-FmNMALM_.js +74 -0
- package/dist/{vue.runtime.esm-bundler-CAzmrXdD.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1182 -1087
- package/dist/{withCurrentFont-CxRGeHO3.js → withCurrentFont-BATJHNve.js} +1 -1
- package/dist/{x-Cd6SFw8r.js → x-CZ0Js0hA.js} +1 -1
- package/package.json +17 -15
- package/dist/AiChatSidebar-DxPHFNoT.js +0 -230
- package/dist/AiFeatureMenu-C8GVqu1d.js +0 -57
- package/dist/CloudHeaderExtras-CUSftQdm.js +0 -59
- package/dist/CloudPanels-Dgw7tb4R.js +0 -216
- package/dist/CollaboratorBar-5rfopCPx.js +0 -103
- package/dist/CommentsSidebar-BOqj16Al.js +0 -500
- package/dist/DesignReferenceSidebar-BWAi3eQQ.js +0 -279
- package/dist/IssuesPanel-C-x3I012.js +0 -117
- package/dist/ParagraphEditor-BVjOwwHx.js +0 -797
- package/dist/SavedBlocksBrowserModal-DbmIS5uK.js +0 -360
- package/dist/TemplateScoringPanel-ynbGl-sr.js +0 -273
- package/dist/TemplateSettings-Bi01S3H3.js +0 -246
- package/dist/ToggleSwitch-Ozc7YU38.js +0 -102
- package/dist/Toolbar-B-2lO0I8.js +0 -3156
- package/dist/WrapperBlock-D0qgNqjD.js +0 -45
- package/dist/cdn/chunks/AiChatSidebar-Dk0rJBQN.js +0 -205
- package/dist/cdn/chunks/AiChatSidebar-Dk0rJBQN.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-B7b0w8ZS.js +0 -57
- package/dist/cdn/chunks/AiFeatureMenu-B7b0w8ZS.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-B4fhuwc_.js +0 -60
- package/dist/cdn/chunks/CloudHeaderExtras-B4fhuwc_.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-awqHfJqC.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js +0 -52
- package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-CbzxwsyI.js +0 -20
- package/dist/cdn/chunks/CommentsSidebar-DWPHZuQm.js +0 -470
- package/dist/cdn/chunks/DesignReferenceSidebar-BW9cHnA9.js +0 -229
- package/dist/cdn/chunks/DesignReferenceSidebar-BW9cHnA9.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-cXf9ywA4.js +0 -100
- package/dist/cdn/chunks/IssuesPanel-cXf9ywA4.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BMB9vShs.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-zXfcArr4.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-Cp4XB_dH.js +0 -45
- package/dist/cdn/chunks/ParagraphEditor-D4aq9eeC.js +0 -632
- package/dist/cdn/chunks/ParagraphEditor-D4aq9eeC.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-BhEOMzEQ.js +0 -38
- package/dist/cdn/chunks/TemplateScoringPanel-BrWqJCSP.js +0 -237
- package/dist/cdn/chunks/TemplateScoringPanel-BrWqJCSP.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-BkkWTDHD.js +0 -208
- package/dist/cdn/chunks/TestEmailPanel-DxrKuctP.js +0 -35
- package/dist/cdn/chunks/TitleEditor-CsZiG3TT.js +0 -199
- package/dist/cdn/chunks/ToggleSwitch-BB-bQADJ.js +0 -104
- package/dist/cdn/chunks/ToggleSwitch-BB-bQADJ.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-DXSqmaLS.js +0 -48
- package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +0 -47
- package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +0 -22
- package/dist/cdn/chunks/ca-CbNzJM3I.js.map +0 -1
- package/dist/cdn/chunks/cloud-BHClP3e2.js +0 -1736
- package/dist/cdn/chunks/cloud-BHClP3e2.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js +0 -400
- package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js.map +0 -1
- package/dist/cdn/chunks/de-DMquBpZM.js.map +0 -1
- package/dist/cdn/chunks/de-mMY5yQJu.js +0 -93
- package/dist/cdn/chunks/de-mMY5yQJu.js.map +0 -1
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
- package/dist/cdn/chunks/en-C8Mp71sO.js.map +0 -1
- package/dist/cdn/chunks/en-ChVeGQBY.js +0 -93
- package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
- package/dist/cdn/chunks/en-eWpiXyZu.js +0 -1
- package/dist/cdn/chunks/es-Byq4tthI.js.map +0 -1
- package/dist/cdn/chunks/fr-B3j35HEw.js.map +0 -1
- package/dist/cdn/chunks/icons-aTYwH5-g.js.map +0 -1
- package/dist/cdn/chunks/ja-D7txAuGS.js.map +0 -1
- package/dist/cdn/chunks/keys-HI-INbkz.js +0 -12
- package/dist/cdn/chunks/keys-HI-INbkz.js.map +0 -1
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
- package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CoCwRUi0.js +0 -93
- package/dist/cdn/chunks/pt-BR-CoCwRUi0.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +0 -1
- package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js +0 -1279
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +0 -1
- package/dist/cdn/chunks/src-DYCDeBDM.js.map +0 -1
- package/dist/cdn/chunks/src-DlFlC9Tt.js +0 -1272
- package/dist/cdn/chunks/src-DlFlC9Tt.js.map +0 -1
- package/dist/cdn/chunks/src-dZ4D_tuP.js.map +0 -1
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js +0 -6
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
- package/dist/cdn/chunks/useAliveFlag-DCB96vzR.js +0 -12
- package/dist/cdn/chunks/useAliveFlag-DCB96vzR.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js +0 -2602
- package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
- package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js +0 -21
- package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js.map +0 -1
- package/dist/cloud-B5xwm_4X.js +0 -1689
- package/dist/copy-BEcsAlfB.js +0 -19
- package/dist/createCloudRuntime-zNPkF6T9.js +0 -398
- package/dist/de-mMY5yQJu.js +0 -91
- package/dist/dist-DAAJogrx.js +0 -407
- package/dist/en-B0FUfNwz.js +0 -1
- package/dist/en-ChVeGQBY.js +0 -91
- package/dist/image-up-CM_HC0Dx.js +0 -27
- package/dist/keys-BKFq19a2.js +0 -10
- package/dist/plus-8cDvoCjZ.js +0 -14
- package/dist/pt-BR-CoCwRUi0.js +0 -91
- package/dist/shield-check-uDAwur5D.js +0 -14
- package/dist/socialIcons-PTiwhLoC.js +0 -1359
- package/dist/timeouts-Cv2jvusx.js +0 -4
- package/dist/upload-CtNOI6J2.js +0 -21
- package/dist/useAliveFlag-Dd06mRxe.js +0 -10
- package/dist/useScrollToBlock-CXmcHQQN.js +0 -47
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
import { At as e, D as t, H as n, Mt as r, N as i, Q as a, V as o, _ as s, c, d as l, f as u, g as ee, j as d, jt as te, l as f, ot as p, r as m, u as h, y as g, z as _ } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
|
|
2
|
+
import { a as v, t as y } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
|
|
3
|
+
import { $ as ne, g as re } from "./keys-Zd9KWRD1.js";
|
|
4
|
+
import { t as ie } from "./useI18n-BdoY7xDE.js";
|
|
5
|
+
import { t as b } from "./createLucideIcon-0lYYH3EW.js";
|
|
6
|
+
import { t as ae } from "./check-yYsp5Xpk.js";
|
|
7
|
+
import { t as oe } from "./chevron-down-DTmD06_j.js";
|
|
8
|
+
import { t as se } from "./chevron-up-BOApwrxi.js";
|
|
9
|
+
import { t as x } from "./loader-circle-B2B8LbUu.js";
|
|
10
|
+
import { t as S } from "./message-circle-BEuiNsyZ.js";
|
|
11
|
+
import { t as C } from "./pencil-CEotCKbf.js";
|
|
12
|
+
import { t as w } from "./send-BDLJFsf3.js";
|
|
13
|
+
import { t as T } from "./trash-CZfiUFmw.js";
|
|
14
|
+
import { t as E } from "./x-CZ0Js0hA.js";
|
|
15
|
+
import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { t as ce } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
17
|
+
var le = b({
|
|
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
|
+
}), ue = b({
|
|
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
|
+
}), 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 = {
|
|
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
|
+
}, 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 = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
46
|
+
}, Se = {
|
|
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
|
+
}, Ce = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, we = {
|
|
50
|
+
key: 2,
|
|
51
|
+
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
52
|
+
}, 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 = {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
55
|
+
}, je = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Me = ["title", "onClick"], Ne = ["title", "onClick"], Pe = ["title", "onClick"], Fe = {
|
|
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
|
+
}, Ie = {
|
|
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
|
+
}, Le = ["onClick"], Re = {
|
|
62
|
+
key: 2,
|
|
63
|
+
class: "tpl:mt-2"
|
|
64
|
+
}, ze = ["onKeydown"], Be = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Ve = ["disabled", "onClick"], He = {
|
|
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
|
+
}, Ue = {
|
|
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
|
+
}, We = { class: "tpl:flex-1" }, Ge = ["onClick"], Ke = {
|
|
71
|
+
key: 5,
|
|
72
|
+
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
73
|
+
}, qe = ["title", "onClick"], Je = ["onClick"], Ye = {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
76
|
+
}, 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 = {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
79
|
+
}, tt = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, nt = ["title", "onClick"], rt = ["title", "onClick"], it = {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "tpl:mt-1.5"
|
|
82
|
+
}, at = ["onKeydown"], ot = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, st = ["disabled", "onClick"], ct = {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
85
|
+
}, lt = {
|
|
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
|
+
}, ut = { class: "tpl:flex-1" }, dt = ["onClick"], ft = {
|
|
89
|
+
key: 0,
|
|
90
|
+
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
91
|
+
}, 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 = {
|
|
92
|
+
key: 0,
|
|
93
|
+
class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]"
|
|
94
|
+
}, _t = {
|
|
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
|
+
}, vt = {
|
|
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
|
+
}, yt = ["placeholder", "disabled"], bt = ["disabled"], O = /*#__PURE__*/ D(/* @__PURE__ */ g({
|
|
101
|
+
__name: "CommentsSidebar",
|
|
102
|
+
props: {
|
|
103
|
+
visible: { type: Boolean },
|
|
104
|
+
feature: {}
|
|
105
|
+
},
|
|
106
|
+
emits: ["close"],
|
|
107
|
+
setup(g, { expose: b, emit: D }) {
|
|
108
|
+
let O = g, xt = D, { t: k, format: A } = ie(), j = ne(re, "CommentsSidebar"), M = c(() => O.feature.headless), N = a("unresolved"), P = a(""), F = a(null), I = a(""), L = a(null), R = a(""), z = a(/* @__PURE__ */ new Set()), B = a(null), V = a(null), H = c(() => O.feature.filterBlockId.value);
|
|
109
|
+
_(H, (e) => {
|
|
110
|
+
e && (N.value = "block");
|
|
111
|
+
}, { immediate: !0 });
|
|
112
|
+
let St = c(() => M.value.isLoading.value && M.value.comments.value.length === 0), Ct = c(() => {
|
|
113
|
+
let e = /* @__PURE__ */ new Set();
|
|
114
|
+
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);
|
|
115
|
+
return e;
|
|
116
|
+
});
|
|
117
|
+
function wt(e) {
|
|
118
|
+
return e ? !Ct.value.has(e) : !1;
|
|
119
|
+
}
|
|
120
|
+
let Tt = c(() => N.value !== "block" || !H.value ? !1 : O.feature.capability.isBlockSaved(H.value) === !1), U = c(() => {
|
|
121
|
+
let e = M.value.comments.value;
|
|
122
|
+
return N.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : N.value === "block" && H.value && (e = e.filter((e) => e.blockId === H.value)), e;
|
|
123
|
+
});
|
|
124
|
+
_(() => j.state.selectedBlockId, (e) => {
|
|
125
|
+
N.value === "block" && e && (O.feature.filterBlockId.value = e);
|
|
126
|
+
});
|
|
127
|
+
function W(e, t) {
|
|
128
|
+
N.value = e, O.feature.filterBlockId.value = e === "block" ? t ?? null : null;
|
|
129
|
+
}
|
|
130
|
+
function Et(e) {
|
|
131
|
+
W("block", e);
|
|
132
|
+
}
|
|
133
|
+
function Dt(e) {
|
|
134
|
+
z.value.has(e) ? z.value.delete(e) : z.value.add(e);
|
|
135
|
+
}
|
|
136
|
+
function Ot(e) {
|
|
137
|
+
F.value = e, I.value = "", L.value = null, z.value.has(e) || z.value.add(e);
|
|
138
|
+
}
|
|
139
|
+
function kt() {
|
|
140
|
+
F.value = null, I.value = "";
|
|
141
|
+
}
|
|
142
|
+
function G(e) {
|
|
143
|
+
L.value = e.id, R.value = e.body, F.value = null;
|
|
144
|
+
}
|
|
145
|
+
function K() {
|
|
146
|
+
L.value = null, R.value = "";
|
|
147
|
+
}
|
|
148
|
+
function q(e) {
|
|
149
|
+
B.value = e;
|
|
150
|
+
}
|
|
151
|
+
function J() {
|
|
152
|
+
B.value = null;
|
|
153
|
+
}
|
|
154
|
+
async function Y() {
|
|
155
|
+
let e = P.value.trim();
|
|
156
|
+
if (!e || !M.value.canCreate.value) return;
|
|
157
|
+
let t = N.value === "block" ? H.value : void 0;
|
|
158
|
+
try {
|
|
159
|
+
await M.value.create({
|
|
160
|
+
body: e,
|
|
161
|
+
blockId: t ?? void 0
|
|
162
|
+
}), P.value = "";
|
|
163
|
+
} catch {}
|
|
164
|
+
}
|
|
165
|
+
async function X(e) {
|
|
166
|
+
let t = I.value.trim();
|
|
167
|
+
if (!t || !M.value.canCreate.value) return;
|
|
168
|
+
let n = M.value.find(e);
|
|
169
|
+
try {
|
|
170
|
+
await M.value.create({
|
|
171
|
+
body: t,
|
|
172
|
+
blockId: n?.blockId ?? void 0,
|
|
173
|
+
parentId: e
|
|
174
|
+
}), F.value = null, I.value = "";
|
|
175
|
+
} catch {}
|
|
176
|
+
}
|
|
177
|
+
async function Z(e) {
|
|
178
|
+
let t = R.value.trim();
|
|
179
|
+
if (t) try {
|
|
180
|
+
await M.value.update(e, { body: t }), L.value = null, R.value = "";
|
|
181
|
+
} catch {}
|
|
182
|
+
}
|
|
183
|
+
async function Q(e) {
|
|
184
|
+
try {
|
|
185
|
+
await M.value.remove(e);
|
|
186
|
+
} catch {}
|
|
187
|
+
B.value = null;
|
|
188
|
+
}
|
|
189
|
+
async function At(e) {
|
|
190
|
+
try {
|
|
191
|
+
await M.value.setResolved(e.id, !e.resolvedAt);
|
|
192
|
+
} catch {}
|
|
193
|
+
}
|
|
194
|
+
function jt(e) {
|
|
195
|
+
return M.value.canUpdate.value && M.value.isOwn(e);
|
|
196
|
+
}
|
|
197
|
+
function Mt(e) {
|
|
198
|
+
return M.value.canDelete.value && M.value.isOwn(e);
|
|
199
|
+
}
|
|
200
|
+
function Nt(e) {
|
|
201
|
+
return ce(e, k.time) ?? e;
|
|
202
|
+
}
|
|
203
|
+
function Pt(e) {
|
|
204
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Y());
|
|
205
|
+
}
|
|
206
|
+
function Ft(e, t) {
|
|
207
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), X(t));
|
|
208
|
+
}
|
|
209
|
+
function $(e, t) {
|
|
210
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t)), e.key === "Escape" && K();
|
|
211
|
+
}
|
|
212
|
+
function It() {
|
|
213
|
+
t(() => {
|
|
214
|
+
V.value?.focus();
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
return b({
|
|
218
|
+
filterByBlock: Et,
|
|
219
|
+
focusNewComment: It
|
|
220
|
+
}), (t, a) => (d(), h(y, {
|
|
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: o(() => [g.visible ? (d(), u("div", {
|
|
229
|
+
key: 0,
|
|
230
|
+
role: "complementary",
|
|
231
|
+
"aria-label": p(k).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
|
+
f("div", fe, [f("div", pe, [
|
|
236
|
+
s(p(S), {
|
|
237
|
+
size: 13,
|
|
238
|
+
"stroke-width": 2
|
|
239
|
+
}),
|
|
240
|
+
f("span", null, r(p(k).comments.title), 1),
|
|
241
|
+
g.feature.unresolvedCount.value > 0 ? (d(), u("span", me, r(g.feature.unresolvedCount.value), 1)) : l("", !0)
|
|
242
|
+
]), f("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": p(k).comments.close,
|
|
246
|
+
onClick: a[0] ||= (e) => xt("close")
|
|
247
|
+
}, [s(p(E), {
|
|
248
|
+
size: 14,
|
|
249
|
+
"stroke-width": 2
|
|
250
|
+
})], 8, he)]),
|
|
251
|
+
f("div", ge, [
|
|
252
|
+
f("button", {
|
|
253
|
+
type: "button",
|
|
254
|
+
class: e(["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" : ""]),
|
|
255
|
+
"aria-pressed": N.value === "unresolved",
|
|
256
|
+
"data-testid": "comments-filter-unresolved",
|
|
257
|
+
onClick: a[1] ||= (e) => W("unresolved")
|
|
258
|
+
}, r(p(k).comments.filterUnresolved), 11, _e),
|
|
259
|
+
f("button", {
|
|
260
|
+
type: "button",
|
|
261
|
+
class: e(["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" : ""]),
|
|
262
|
+
"aria-pressed": N.value === "all",
|
|
263
|
+
"data-testid": "comments-filter-all",
|
|
264
|
+
onClick: a[2] ||= (e) => W("all")
|
|
265
|
+
}, r(p(k).comments.filterAll), 11, ve),
|
|
266
|
+
p(j).state.selectedBlockId ? (d(), u("button", {
|
|
267
|
+
key: 0,
|
|
268
|
+
type: "button",
|
|
269
|
+
class: e(["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" : ""]),
|
|
270
|
+
"aria-pressed": N.value === "block",
|
|
271
|
+
onClick: a[3] ||= (e) => W("block", p(j).state.selectedBlockId ?? void 0)
|
|
272
|
+
}, r(p(k).comments.filterBlock), 11, ye)) : l("", !0)
|
|
273
|
+
]),
|
|
274
|
+
f("div", be, [St.value ? (d(), u("div", xe, [s(p(x), {
|
|
275
|
+
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
276
|
+
size: 24,
|
|
277
|
+
"stroke-width": 2
|
|
278
|
+
})])) : U.value.length === 0 ? (d(), u("div", Se, [s(p(S), {
|
|
279
|
+
size: 32,
|
|
280
|
+
"stroke-width": 1.5,
|
|
281
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
282
|
+
}), f("p", Ce, r(N.value === "all" ? p(k).comments.noCommentsHint : p(k).comments.noComments), 1)])) : (d(), u("div", we, [(d(!0), u(m, null, i(U.value, (t) => (d(), u("div", {
|
|
283
|
+
key: t.id,
|
|
284
|
+
class: "tpl-comment-thread",
|
|
285
|
+
"data-testid": "comment-thread"
|
|
286
|
+
}, [
|
|
287
|
+
f("div", Te, [
|
|
288
|
+
f("div", Ee, [f("div", De, [
|
|
289
|
+
f("span", Oe, r(M.value.isOwn(t) ? p(k).comments.ownedByYou : t.author.name), 1),
|
|
290
|
+
f("span", ke, r(Nt(t.createdAt)), 1),
|
|
291
|
+
t.updatedAt ? (d(), u("span", Ae, " (" + r(p(k).comments.edited) + ") ", 1)) : l("", !0)
|
|
292
|
+
]), f("div", je, [
|
|
293
|
+
M.value.canResolve.value ? (d(), 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: t.resolvedAt ? p(k).comments.unresolve : p(k).comments.resolve,
|
|
298
|
+
onClick: (e) => At(t)
|
|
299
|
+
}, [s(p(le), {
|
|
300
|
+
size: 13,
|
|
301
|
+
"stroke-width": 2,
|
|
302
|
+
class: "tpl-resolve-icon",
|
|
303
|
+
style: te({ color: t.resolvedAt ? "var(--tpl-primary)" : void 0 })
|
|
304
|
+
}, null, 8, ["style"])], 8, Me)) : l("", !0),
|
|
305
|
+
jt(t) ? (d(), 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: p(k).comments.edit,
|
|
310
|
+
onClick: (e) => G(t)
|
|
311
|
+
}, [s(p(C), {
|
|
312
|
+
size: 12,
|
|
313
|
+
"stroke-width": 2
|
|
314
|
+
})], 8, Ne)) : l("", !0),
|
|
315
|
+
Mt(t) ? (d(), 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: p(k).comments.delete,
|
|
320
|
+
onClick: (e) => q(t.id)
|
|
321
|
+
}, [s(p(T), {
|
|
322
|
+
size: 12,
|
|
323
|
+
"stroke-width": 2
|
|
324
|
+
})], 8, Pe)) : l("", !0)
|
|
325
|
+
])]),
|
|
326
|
+
s(y, { name: "tpl-resolve" }, {
|
|
327
|
+
default: o(() => [t.resolvedAt ? (d(), u("div", Fe, [s(p(ae), {
|
|
328
|
+
size: 10,
|
|
329
|
+
"stroke-width": 2.5
|
|
330
|
+
}), f("span", null, r(p(A)(p(k).comments.resolvedBy, { name: t.resolvedBy?.name ?? "" })), 1)])) : l("", !0)]),
|
|
331
|
+
_: 2
|
|
332
|
+
}, 1024),
|
|
333
|
+
t.blockId && wt(t.blockId) ? (d(), u("span", Ie, r(p(k).comments.missingBlock), 1)) : t.blockId ? (d(), 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) => p(j).selectBlock(t.blockId ?? "")
|
|
337
|
+
}, r(p(k).comments.jumpToBlock), 9, Le)) : l("", !0),
|
|
338
|
+
L.value === t.id ? (d(), u("div", Re, [n(f("textarea", {
|
|
339
|
+
"onUpdate:modelValue": a[4] ||= (e) => R.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, t.id)
|
|
343
|
+
}, null, 40, ze), [[v, R.value]]), f("div", Be, [f("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: !R.value.trim() || M.value.isSubmitting.value,
|
|
346
|
+
onClick: (e) => Z(t.id)
|
|
347
|
+
}, r(p(k).comments.save), 9, Ve), f("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) => K()
|
|
350
|
+
}, r(p(k).comments.cancel), 1)])])) : (d(), u("p", He, r(t.body), 1)),
|
|
351
|
+
B.value === t.id ? (d(), u("div", Ue, [
|
|
352
|
+
f("span", We, r(p(k).comments.deleteConfirm), 1),
|
|
353
|
+
f("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) => Q(t.id)
|
|
357
|
+
}, r(p(k).comments.delete), 9, Ge),
|
|
358
|
+
f("button", {
|
|
359
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
360
|
+
onClick: a[6] ||= (e) => J()
|
|
361
|
+
}, r(p(k).comments.cancel), 1)
|
|
362
|
+
])) : l("", !0),
|
|
363
|
+
L.value !== t.id && B.value !== t.id ? (d(), u("div", Ke, [M.value.canCreate.value ? (d(), 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: p(k).comments.reply,
|
|
368
|
+
onClick: (e) => Ot(t.id)
|
|
369
|
+
}, [s(p(ue), {
|
|
370
|
+
size: 13,
|
|
371
|
+
"stroke-width": 2,
|
|
372
|
+
class: "tpl:text-[var(--tpl-primary)]"
|
|
373
|
+
})], 8, qe)) : l("", !0), (t.replies?.length ?? 0) > 0 ? (d(), 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) => Dt(t.id)
|
|
377
|
+
}, [z.value.has(t.id) ? (d(), h(p(se), {
|
|
378
|
+
key: 0,
|
|
379
|
+
size: 11,
|
|
380
|
+
"stroke-width": 2
|
|
381
|
+
})) : (d(), h(p(oe), {
|
|
382
|
+
key: 1,
|
|
383
|
+
size: 11,
|
|
384
|
+
"stroke-width": 2
|
|
385
|
+
})), ee(" " + r((t.replies?.length ?? 0) === 1 ? p(A)(p(k).comments.replyOne, { count: String(t.replies?.length ?? 0) }) : p(A)(p(k).comments.replyMany, { count: String(t.replies?.length ?? 0) })), 1)], 8, Je)) : l("", !0)])) : l("", !0)
|
|
386
|
+
]),
|
|
387
|
+
s(y, { name: "tpl-replies" }, {
|
|
388
|
+
default: o(() => [z.value.has(t.id) && (t.replies?.length ?? 0) > 0 ? (d(), u("div", Ye, [(d(!0), u(m, null, i(t.replies, (i, o) => (d(), u("div", {
|
|
389
|
+
key: i.id,
|
|
390
|
+
class: e(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", o < (t.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
|
|
391
|
+
}, [
|
|
392
|
+
f("div", Xe, [f("div", Ze, [
|
|
393
|
+
f("span", Qe, r(M.value.isOwn(i) ? p(k).comments.ownedByYou : i.author.name), 1),
|
|
394
|
+
f("span", $e, r(Nt(i.createdAt)), 1),
|
|
395
|
+
i.updatedAt ? (d(), u("span", et, " (" + r(p(k).comments.edited) + ") ", 1)) : l("", !0)
|
|
396
|
+
]), f("div", tt, [jt(i) ? (d(), u("button", {
|
|
397
|
+
key: 0,
|
|
398
|
+
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
399
|
+
title: p(k).comments.edit,
|
|
400
|
+
onClick: (e) => G(i)
|
|
401
|
+
}, [s(p(C), {
|
|
402
|
+
size: 11,
|
|
403
|
+
"stroke-width": 2
|
|
404
|
+
})], 8, nt)) : l("", !0), Mt(i) ? (d(), u("button", {
|
|
405
|
+
key: 1,
|
|
406
|
+
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
|
|
407
|
+
title: p(k).comments.delete,
|
|
408
|
+
onClick: (e) => q(i.id)
|
|
409
|
+
}, [s(p(T), {
|
|
410
|
+
size: 11,
|
|
411
|
+
"stroke-width": 2
|
|
412
|
+
})], 8, rt)) : l("", !0)])]),
|
|
413
|
+
L.value === i.id ? (d(), u("div", it, [n(f("textarea", {
|
|
414
|
+
"onUpdate:modelValue": a[7] ||= (e) => R.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, i.id)
|
|
418
|
+
}, null, 40, at), [[v, R.value]]), f("div", ot, [f("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: !R.value.trim() || M.value.isSubmitting.value,
|
|
421
|
+
onClick: (e) => Z(i.id)
|
|
422
|
+
}, r(p(k).comments.save), 9, st), f("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) => K()
|
|
425
|
+
}, r(p(k).comments.cancel), 1)])])) : (d(), u("p", ct, r(i.body), 1)),
|
|
426
|
+
B.value === i.id ? (d(), u("div", lt, [
|
|
427
|
+
f("span", ut, r(p(k).comments.deleteConfirm), 1),
|
|
428
|
+
f("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) => Q(i.id)
|
|
432
|
+
}, r(p(k).comments.delete), 9, dt),
|
|
433
|
+
f("button", {
|
|
434
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
435
|
+
onClick: a[9] ||= (e) => J()
|
|
436
|
+
}, r(p(k).comments.cancel), 1)
|
|
437
|
+
])) : l("", !0)
|
|
438
|
+
], 2))), 128))])) : l("", !0)]),
|
|
439
|
+
_: 2
|
|
440
|
+
}, 1024),
|
|
441
|
+
s(y, { name: "tpl-replies" }, {
|
|
442
|
+
default: o(() => [F.value === t.id ? (d(), u("div", ft, [f("div", pt, [
|
|
443
|
+
n(f("textarea", {
|
|
444
|
+
"onUpdate:modelValue": a[10] ||= (e) => I.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: p(k).comments.replyPlaceholder,
|
|
447
|
+
rows: "2",
|
|
448
|
+
onKeydown: (e) => Ft(e, t.id)
|
|
449
|
+
}, null, 40, mt), [[v, I.value]]),
|
|
450
|
+
f("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: !I.value.trim() || M.value.isSubmitting.value,
|
|
453
|
+
onClick: (e) => X(t.id)
|
|
454
|
+
}, [s(p(w), {
|
|
455
|
+
size: 14,
|
|
456
|
+
"stroke-width": 2
|
|
457
|
+
})], 8, ht),
|
|
458
|
+
f("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) => kt()
|
|
461
|
+
}, [s(p(E), {
|
|
462
|
+
size: 14,
|
|
463
|
+
"stroke-width": 2
|
|
464
|
+
})])
|
|
465
|
+
])])) : l("", !0)]),
|
|
466
|
+
_: 2
|
|
467
|
+
}, 1024)
|
|
468
|
+
]))), 128))]))]),
|
|
469
|
+
M.value.canCreate.value ? (d(), u("div", gt, [Tt.value ? (d(), u("div", _t, r(p(k).comments.saveTemplateFirst), 1)) : (d(), u("div", vt, [n(f("textarea", {
|
|
470
|
+
ref_key: "newCommentInput",
|
|
471
|
+
ref: V,
|
|
472
|
+
"onUpdate:modelValue": a[12] ||= (e) => P.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: p(k).comments.placeholder,
|
|
476
|
+
disabled: M.value.isSubmitting.value,
|
|
477
|
+
rows: "2",
|
|
478
|
+
onKeydown: Pt
|
|
479
|
+
}, null, 40, yt), [[v, P.value]]), f("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: !P.value.trim() || M.value.isSubmitting.value,
|
|
483
|
+
onClick: Y
|
|
484
|
+
}, [M.value.isSubmitting.value ? (d(), h(p(x), {
|
|
485
|
+
key: 0,
|
|
486
|
+
class: "tpl-spinner",
|
|
487
|
+
size: 16,
|
|
488
|
+
"stroke-width": 2
|
|
489
|
+
})) : (d(), h(p(w), {
|
|
490
|
+
key: 1,
|
|
491
|
+
size: 16,
|
|
492
|
+
"stroke-width": 2
|
|
493
|
+
}))], 8, bt)]))])) : l("", !0)
|
|
494
|
+
], 8, de)) : l("", !0)]),
|
|
495
|
+
_: 1
|
|
496
|
+
}));
|
|
497
|
+
}
|
|
498
|
+
}), [["__scopeId", "data-v-32af5912"]]);
|
|
499
|
+
//#endregion
|
|
500
|
+
export { O as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as f } from "./dist-
|
|
3
|
-
import { $ as p, v as m } from "./keys-
|
|
4
|
-
import { t as h } from "./useI18n-
|
|
1
|
+
import { Mt as e, N as t, Q as n, c as r, d as i, f as a, j as o, jt as s, l as c, ot as l, r as u, y as d } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
|
|
2
|
+
import { g as f } from "./dist-C7EtxNCb.js";
|
|
3
|
+
import { $ as p, v as m } from "./keys-Zd9KWRD1.js";
|
|
4
|
+
import { t as h } from "./useI18n-BdoY7xDE.js";
|
|
5
5
|
//#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var g = {
|
|
7
7
|
key: 0,
|
|
@@ -9,22 +9,22 @@ var g = {
|
|
|
9
9
|
}, _ = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-4 tpl:text-xs tpl:text-[var(--tpl-text-dim)] tpl:opacity-50"
|
|
12
|
-
}, v = { class: "tpl:text-center" }, y = /* @__PURE__ */
|
|
12
|
+
}, v = { class: "tpl:text-center" }, y = /* @__PURE__ */ d({
|
|
13
13
|
__name: "CountdownBlock",
|
|
14
14
|
props: {
|
|
15
15
|
block: {},
|
|
16
16
|
viewport: {}
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
let y =
|
|
18
|
+
setup(d) {
|
|
19
|
+
let y = d, { t: b } = h(), x = n(Date.now());
|
|
20
20
|
f(() => {
|
|
21
21
|
x.value = Date.now();
|
|
22
22
|
}, 1e3);
|
|
23
|
-
let S =
|
|
23
|
+
let S = r(() => {
|
|
24
24
|
if (!y.block.targetDate) return null;
|
|
25
25
|
let e = new Date(y.block.targetDate);
|
|
26
26
|
return isNaN(e.getTime()) ? null : e.getTime();
|
|
27
|
-
}), C =
|
|
27
|
+
}), C = r(() => S.value ? x.value >= S.value : !1), w = r(() => {
|
|
28
28
|
if (!S.value || C.value) return {
|
|
29
29
|
days: 0,
|
|
30
30
|
hours: 0,
|
|
@@ -38,7 +38,7 @@ var g = {
|
|
|
38
38
|
minutes: Math.floor(t % 3600 / 60),
|
|
39
39
|
seconds: t % 60
|
|
40
40
|
};
|
|
41
|
-
}), T =
|
|
41
|
+
}), T = r(() => {
|
|
42
42
|
let e = [];
|
|
43
43
|
return y.block.showDays && e.push({
|
|
44
44
|
value: String(w.value.days).padStart(2, "0"),
|
|
@@ -53,42 +53,40 @@ var g = {
|
|
|
53
53
|
value: String(w.value.seconds).padStart(2, "0"),
|
|
54
54
|
label: y.block.labelSeconds
|
|
55
55
|
}), e;
|
|
56
|
-
}), E = p(m, "CountdownBlock"), D =
|
|
56
|
+
}), E = p(m, "CountdownBlock"), D = r(() => y.block.fontFamily ? E.resolveFontFamily(y.block.fontFamily) : "inherit"), O = r(() => ({
|
|
57
57
|
backgroundColor: y.block.backgroundColor,
|
|
58
58
|
fontFamily: D.value
|
|
59
|
-
})), k =
|
|
59
|
+
})), k = r(() => ({
|
|
60
60
|
fontSize: `${y.block.digitFontSize}px`,
|
|
61
61
|
fontWeight: "bold",
|
|
62
62
|
color: y.block.digitColor,
|
|
63
63
|
lineHeight: "1.2"
|
|
64
|
-
})), A =
|
|
64
|
+
})), A = r(() => ({
|
|
65
65
|
fontSize: `${y.block.labelFontSize}px`,
|
|
66
66
|
color: y.block.labelColor,
|
|
67
67
|
marginTop: "4px"
|
|
68
|
-
})), j =
|
|
68
|
+
})), j = r(() => ({
|
|
69
69
|
fontSize: `${y.block.digitFontSize}px`,
|
|
70
70
|
color: y.block.digitColor,
|
|
71
71
|
fontFamily: D.value
|
|
72
72
|
}));
|
|
73
|
-
return (n,
|
|
73
|
+
return (n, r) => d.block.targetDate ? C.value && d.block.hideOnExpiry ? (o(), a("div", _, e(l(b).countdown.hidden), 1)) : C.value ? (o(), a("div", {
|
|
74
74
|
key: 2,
|
|
75
|
-
style:
|
|
75
|
+
style: s(O.value),
|
|
76
76
|
class: "tpl:py-4 tpl:text-center"
|
|
77
|
-
}, [
|
|
78
|
-
fontSize: `${
|
|
79
|
-
color:
|
|
80
|
-
}) }, d
|
|
77
|
+
}, [c("span", { style: s({
|
|
78
|
+
fontSize: `${d.block.digitFontSize}px`,
|
|
79
|
+
color: d.block.digitColor
|
|
80
|
+
}) }, e(d.block.expiredMessage), 5)], 4)) : (o(), a("div", {
|
|
81
81
|
key: 3,
|
|
82
|
-
style:
|
|
82
|
+
style: s(O.value),
|
|
83
83
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:py-4"
|
|
84
|
-
}, [(
|
|
84
|
+
}, [(o(!0), a(u, null, t(T.value, (t, n) => (o(), a(u, { key: t.label }, [n > 0 ? (o(), a("span", {
|
|
85
85
|
key: 0,
|
|
86
|
-
style:
|
|
86
|
+
style: s(j.value),
|
|
87
87
|
class: "tpl:self-start"
|
|
88
|
-
}, d
|
|
88
|
+
}, e(d.block.separator), 5)) : i("", !0), c("div", v, [c("div", { style: s(k.value) }, e(t.value), 5), c("div", { style: s(A.value) }, e(t.label), 5)])], 64))), 128))], 4)) : (o(), a("div", g, e(l(b).countdown.setDate), 1));
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
//#endregion
|
|
92
92
|
export { y as default };
|
|
93
|
-
|
|
94
|
-
//# sourceMappingURL=CountdownBlock-Dasj191h.js.map
|