@templatical/editor 0.49.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-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-B77z1iw4.js → src-BcTUmgLe.js} +113 -113
- package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-BcTUmgLe.js.map} +1 -1
- 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/{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,45 +0,0 @@
|
|
|
1
|
-
import { N as e, S as t, at as n, h as r, m as i, x as a } from "./draggable-akeQH_JP.js";
|
|
2
|
-
//#endregion
|
|
3
|
-
//#region src/components/MediaPanels.vue
|
|
4
|
-
var o = /* @__PURE__ */ t({
|
|
5
|
-
__name: "MediaPanels",
|
|
6
|
-
props: {
|
|
7
|
-
feature: {},
|
|
8
|
-
provider: {},
|
|
9
|
-
locale: {},
|
|
10
|
-
uiTheme: {},
|
|
11
|
-
popoverTarget: {}
|
|
12
|
-
},
|
|
13
|
-
setup(t) {
|
|
14
|
-
let o = t, s = a(async () => (await import("./editor-modal-HJBy9kLj.js")).MediaLibraryModal);
|
|
15
|
-
function c(e) {
|
|
16
|
-
o.feature.select(e);
|
|
17
|
-
}
|
|
18
|
-
return (a, o) => t.feature.isModalOpen.value ? (e(), i(n(s), {
|
|
19
|
-
key: 0,
|
|
20
|
-
visible: t.feature.isModalOpen.value,
|
|
21
|
-
provider: t.provider,
|
|
22
|
-
accept: t.feature.accept.value,
|
|
23
|
-
"popover-target": t.popoverTarget,
|
|
24
|
-
locale: t.locale,
|
|
25
|
-
"ui-theme": t.uiTheme,
|
|
26
|
-
"template-id": t.feature.templateId.value,
|
|
27
|
-
"on-error": t.feature.onError,
|
|
28
|
-
onSelect: c,
|
|
29
|
-
onClose: o[0] ||= (e) => t.feature.close()
|
|
30
|
-
}, null, 8, [
|
|
31
|
-
"visible",
|
|
32
|
-
"provider",
|
|
33
|
-
"accept",
|
|
34
|
-
"popover-target",
|
|
35
|
-
"locale",
|
|
36
|
-
"ui-theme",
|
|
37
|
-
"template-id",
|
|
38
|
-
"on-error"
|
|
39
|
-
])) : r("", !0);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
//#endregion
|
|
43
|
-
export { o as default };
|
|
44
|
-
|
|
45
|
-
//# sourceMappingURL=MediaPanels-CkdJ_kGp.js.map
|
|
@@ -1,632 +0,0 @@
|
|
|
1
|
-
import { E as e, F as t, N as n, Q as r, R as i, S as a, at as o, b as s, c, ct as l, d as u, f as d, g as f, h as p, l as m, lt as h, m as g, p as _, q as v, u as y, ut as b, y as x } from "./draggable-akeQH_JP.js";
|
|
2
|
-
import { J as S } from "./src-CvLTYGdO.js";
|
|
3
|
-
import { t as C } from "./dist-DdwjXLme.js";
|
|
4
|
-
import { S as w, v as T, x as E, y as D } from "./useEditorCore-DpCFvHg_.js";
|
|
5
|
-
import { $ as O, A as k, E as A, J as j, Z as M, g as N, v as P } from "./keys-UAWhQ3zW.js";
|
|
6
|
-
import { t as ee } from "./useI18n-DEqtEgOs.js";
|
|
7
|
-
import { n as te } from "./usePopoverPosition-Cz9-XiXR.js";
|
|
8
|
-
import { Bt as ne, C as re, F as ie, S as ae, Tt as F, Ut as oe, _ as se, at as ce, b as le, ft as ue, g as de, h as fe, lt as pe, ot as me, st as he, u as ge, v as _e, z as ve } from "./icons-CjlNV8xD.js";
|
|
9
|
-
import { t as I } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
10
|
-
import { a as ye, n as be, o as xe, s as Se } from "./styleConstants-v1dNKgJf.js";
|
|
11
|
-
import { c as L } from "./LogicTagInsertButton-BJ2t2vxC.js";
|
|
12
|
-
import { n as Ce, t as we } from "./withCurrentFont-D-f61ghC.js";
|
|
13
|
-
import { n as R, t as z } from "./RichTextEditorContent-BfE7Bkge.js";
|
|
14
|
-
//#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var B = [
|
|
16
|
-
"aria-label",
|
|
17
|
-
"title",
|
|
18
|
-
"aria-expanded"
|
|
19
|
-
], V = ["aria-label"], H = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, U = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, W = ["aria-label", "onClick"], Te = /* @__PURE__ */ a({
|
|
20
|
-
__name: "EmojiPickerDropdown",
|
|
21
|
-
emits: ["insert"],
|
|
22
|
-
setup(e, { emit: i }) {
|
|
23
|
-
let a = i, { categories: u, isOpen: h, toggle: g, close: v } = E(), { t: x, format: S } = ee(), T = r(null), D = r(null), O = d(() => h.value);
|
|
24
|
-
w(T, O), C(D, () => {
|
|
25
|
-
h.value && v();
|
|
26
|
-
});
|
|
27
|
-
function k(e) {
|
|
28
|
-
a("insert", e), v();
|
|
29
|
-
}
|
|
30
|
-
return (e, r) => (n(), f("div", {
|
|
31
|
-
ref_key: "rootRef",
|
|
32
|
-
ref: D,
|
|
33
|
-
class: "tpl:relative"
|
|
34
|
-
}, [_("button", {
|
|
35
|
-
type: "button",
|
|
36
|
-
class: l(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": o(h) }]),
|
|
37
|
-
"aria-label": o(x).paragraphEditor.insertEmoji,
|
|
38
|
-
title: o(x).paragraphEditor.insertEmoji,
|
|
39
|
-
"aria-expanded": o(h),
|
|
40
|
-
"aria-haspopup": "dialog",
|
|
41
|
-
"aria-controls": "tpl-emoji-picker",
|
|
42
|
-
onClick: r[0] ||= (...e) => o(g) && o(g)(...e)
|
|
43
|
-
}, [s(o(F), {
|
|
44
|
-
size: 16,
|
|
45
|
-
"stroke-width": 2
|
|
46
|
-
})], 10, B), o(h) ? (n(), f("div", {
|
|
47
|
-
key: 0,
|
|
48
|
-
id: "tpl-emoji-picker",
|
|
49
|
-
ref_key: "pickerRef",
|
|
50
|
-
ref: T,
|
|
51
|
-
role: "dialog",
|
|
52
|
-
"aria-modal": "false",
|
|
53
|
-
"aria-label": o(x).paragraphEditor.insertEmoji,
|
|
54
|
-
tabindex: "-1",
|
|
55
|
-
class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
56
|
-
onKeydown: r[1] ||= c(m((...e) => o(v) && o(v)(...e), ["stop", "prevent"]), ["esc"])
|
|
57
|
-
}, [(n(!0), f(y, null, t(o(u), (e) => (n(), f("div", {
|
|
58
|
-
key: e.key,
|
|
59
|
-
class: "tpl:mb-2 tpl:last:mb-0"
|
|
60
|
-
}, [_("div", H, b(o(x).emoji[e.key]), 1), _("div", U, [(n(!0), f(y, null, t(e.emojis, (e) => (n(), f("button", {
|
|
61
|
-
key: e,
|
|
62
|
-
type: "button",
|
|
63
|
-
"aria-label": o(S)(o(x).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
64
|
-
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
65
|
-
onClick: (t) => k(e)
|
|
66
|
-
}, b(e), 9, W))), 128))])]))), 128))], 40, V)) : p("", !0)], 512));
|
|
67
|
-
}
|
|
68
|
-
}), G = [
|
|
69
|
-
"aria-label",
|
|
70
|
-
"title",
|
|
71
|
-
"aria-pressed"
|
|
72
|
-
], K = /* @__PURE__ */ a({
|
|
73
|
-
__name: "ToolbarIconButton",
|
|
74
|
-
props: {
|
|
75
|
-
icon: {},
|
|
76
|
-
label: {},
|
|
77
|
-
active: { type: Boolean },
|
|
78
|
-
strokeWidth: {},
|
|
79
|
-
size: {}
|
|
80
|
-
},
|
|
81
|
-
setup(e) {
|
|
82
|
-
return (t, r) => (n(), f("button", {
|
|
83
|
-
type: "button",
|
|
84
|
-
class: l(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": e.active }]),
|
|
85
|
-
"aria-label": e.label,
|
|
86
|
-
title: e.label,
|
|
87
|
-
"aria-pressed": e.active ? "true" : "false"
|
|
88
|
-
}, [(n(), g(i(e.icon), {
|
|
89
|
-
size: e.size ?? 16,
|
|
90
|
-
"stroke-width": e.strokeWidth ?? 2
|
|
91
|
-
}, null, 8, ["size", "stroke-width"]))], 10, G));
|
|
92
|
-
}
|
|
93
|
-
}), q = {}, J = {
|
|
94
|
-
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
95
|
-
"aria-hidden": "true"
|
|
96
|
-
};
|
|
97
|
-
function Y(e, t) {
|
|
98
|
-
return n(), f("span", J);
|
|
99
|
-
}
|
|
100
|
-
var X = /*#__PURE__*/ I(q, [["render", Y]]), Z = [
|
|
101
|
-
"value",
|
|
102
|
-
"aria-label",
|
|
103
|
-
"title"
|
|
104
|
-
], Ee = { value: "" }, De = ["value"], Q = /* @__PURE__ */ a({
|
|
105
|
-
__name: "ToolbarSelect",
|
|
106
|
-
props: {
|
|
107
|
-
modelValue: {},
|
|
108
|
-
options: {},
|
|
109
|
-
label: {},
|
|
110
|
-
placeholder: {},
|
|
111
|
-
widthClass: {}
|
|
112
|
-
},
|
|
113
|
-
emits: ["update:modelValue"],
|
|
114
|
-
setup(e, { emit: r }) {
|
|
115
|
-
let i = e, a = r;
|
|
116
|
-
function o(e) {
|
|
117
|
-
a("update:modelValue", e.target.value);
|
|
118
|
-
}
|
|
119
|
-
function s(e) {
|
|
120
|
-
return typeof e == "string" ? e : e.value;
|
|
121
|
-
}
|
|
122
|
-
function c(e) {
|
|
123
|
-
return typeof e == "string" ? e : e.label;
|
|
124
|
-
}
|
|
125
|
-
let u = /* @__PURE__ */ new Set([
|
|
126
|
-
"inherit",
|
|
127
|
-
"initial",
|
|
128
|
-
"unset",
|
|
129
|
-
"revert",
|
|
130
|
-
"revert-layer"
|
|
131
|
-
]), p = d(() => u.has(i.modelValue) ? "" : i.modelValue), m = d(() => {
|
|
132
|
-
let e = p.value;
|
|
133
|
-
return e === "" || i.options.some((t) => s(t) === e) ? i.options : [e, ...i.options];
|
|
134
|
-
});
|
|
135
|
-
return (r, i) => (n(), f("select", {
|
|
136
|
-
class: l(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", e.widthClass ?? "tpl:w-20"]),
|
|
137
|
-
value: p.value,
|
|
138
|
-
"aria-label": e.label,
|
|
139
|
-
title: e.label,
|
|
140
|
-
onChange: o
|
|
141
|
-
}, [_("option", Ee, b(e.placeholder ?? ""), 1), (n(!0), f(y, null, t(m.value, (e) => (n(), f("option", {
|
|
142
|
-
key: s(e),
|
|
143
|
-
value: s(e)
|
|
144
|
-
}, b(c(e)), 9, De))), 128))], 42, Z));
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region src/utils/richTextColor.ts
|
|
149
|
-
function $(e, t) {
|
|
150
|
-
return e || t || "#000000";
|
|
151
|
-
}
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
154
|
-
var Oe = ["data-tpl-theme", "aria-label"], ke = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ae = { class: "tpl:flex tpl:items-center tpl:gap-1" }, je = ["aria-label", "title"], Me = ["aria-label", "title"], Ne = {
|
|
155
|
-
key: 1,
|
|
156
|
-
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
157
|
-
}, Pe = /* @__PURE__ */ a({
|
|
158
|
-
__name: "ParagraphToolbar",
|
|
159
|
-
props: {
|
|
160
|
-
editor: {},
|
|
161
|
-
toolbarPosition: {},
|
|
162
|
-
isLoading: { type: Boolean },
|
|
163
|
-
canRequestMergeTag: { type: Boolean },
|
|
164
|
-
canInsertLogicTag: { type: Boolean }
|
|
165
|
-
},
|
|
166
|
-
emits: [
|
|
167
|
-
"open-link-dialog",
|
|
168
|
-
"add-merge-tag",
|
|
169
|
-
"add-logic-tag"
|
|
170
|
-
],
|
|
171
|
-
setup(t, { emit: r }) {
|
|
172
|
-
let i = t, a = r, c = e(j, null), l = e(M, null), m = O(P, "ParagraphToolbar"), v = te(), S = e(k, null), C = e(A, null), w = e(N, null), T = d(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = ee(), D = m.fonts, F = xe.map((e) => ({
|
|
173
|
-
value: e,
|
|
174
|
-
label: e === "normal" ? E.paragraphEditor.letterSpacingNormal : e
|
|
175
|
-
}));
|
|
176
|
-
function I(e) {
|
|
177
|
-
i.editor?.chain().focus().insertContent(e).run();
|
|
178
|
-
}
|
|
179
|
-
function R(e) {
|
|
180
|
-
return i.editor?.getAttributes("textStyle")[e] || "";
|
|
181
|
-
}
|
|
182
|
-
function z(e) {
|
|
183
|
-
let t = i.editor?.chain().focus();
|
|
184
|
-
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
185
|
-
}
|
|
186
|
-
function B(e) {
|
|
187
|
-
let t = i.editor?.chain().focus();
|
|
188
|
-
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
189
|
-
}
|
|
190
|
-
function V() {
|
|
191
|
-
return i.editor?.isActive("link") ?? !1;
|
|
192
|
-
}
|
|
193
|
-
function H() {
|
|
194
|
-
return i.editor?.getAttributes("link").color || "";
|
|
195
|
-
}
|
|
196
|
-
function U(e) {
|
|
197
|
-
let t = i.editor?.chain().focus();
|
|
198
|
-
t && (V() ? (t.extendMarkRange("link").updateAttributes("link", { color: e || null }), e && t.unsetColor(), t.run()) : e ? t.setColor(e).updateAttributes("link", { color: e }).run() : t.unsetColor().run());
|
|
199
|
-
}
|
|
200
|
-
function W() {
|
|
201
|
-
let e = w?.content.value.settings;
|
|
202
|
-
return V() ? $(H(), e?.linkColor || e?.textColor) : $(R("color"), e?.textColor);
|
|
203
|
-
}
|
|
204
|
-
function G() {
|
|
205
|
-
return V() ? H() : R("color");
|
|
206
|
-
}
|
|
207
|
-
function q() {
|
|
208
|
-
return i.editor?.getAttributes("paragraph").lineHeight || "";
|
|
209
|
-
}
|
|
210
|
-
function J(e) {
|
|
211
|
-
let t = i.editor?.chain().focus();
|
|
212
|
-
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
213
|
-
}
|
|
214
|
-
function Y(e) {
|
|
215
|
-
let t = i.editor?.chain().focus();
|
|
216
|
-
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
217
|
-
}
|
|
218
|
-
function Z() {
|
|
219
|
-
return i.editor?.getAttributes("highlight").color || "";
|
|
220
|
-
}
|
|
221
|
-
function Ee(e) {
|
|
222
|
-
let t = i.editor?.chain().focus();
|
|
223
|
-
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
224
|
-
}
|
|
225
|
-
return (e, r) => o(v) && !T.value ? (n(), g(u, {
|
|
226
|
-
key: 0,
|
|
227
|
-
to: o(v)
|
|
228
|
-
}, [_("div", {
|
|
229
|
-
"data-tpl-theme": o(l),
|
|
230
|
-
role: "toolbar",
|
|
231
|
-
"aria-label": o(E).paragraphEditor.toolbar,
|
|
232
|
-
class: "tpl tpl-text-toolbar tpl:absolute tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
233
|
-
style: h({
|
|
234
|
-
...o(c),
|
|
235
|
-
top: `${t.toolbarPosition.top}px`,
|
|
236
|
-
left: `${t.toolbarPosition.left}px`,
|
|
237
|
-
transform: "translateY(-100%)",
|
|
238
|
-
flexDirection: "column"
|
|
239
|
-
})
|
|
240
|
-
}, [!t.isLoading && t.editor ? (n(), f(y, { key: 0 }, [_("div", ke, [
|
|
241
|
-
s(Q, {
|
|
242
|
-
"model-value": o(we)(R("fontFamily")),
|
|
243
|
-
options: o(Ce)(o(D), R("fontFamily")),
|
|
244
|
-
label: o(E).paragraphEditor.fontFamily,
|
|
245
|
-
placeholder: o(E).paragraphEditor.defaultFont,
|
|
246
|
-
"width-class": "tpl:w-32",
|
|
247
|
-
"onUpdate:modelValue": z
|
|
248
|
-
}, null, 8, [
|
|
249
|
-
"model-value",
|
|
250
|
-
"options",
|
|
251
|
-
"label",
|
|
252
|
-
"placeholder"
|
|
253
|
-
]),
|
|
254
|
-
s(Q, {
|
|
255
|
-
"model-value": R("fontSize"),
|
|
256
|
-
options: o(ye),
|
|
257
|
-
label: o(E).paragraphEditor.fontSize,
|
|
258
|
-
placeholder: o(E).paragraphEditor.defaultSize,
|
|
259
|
-
"width-class": "tpl:w-20",
|
|
260
|
-
"onUpdate:modelValue": B
|
|
261
|
-
}, null, 8, [
|
|
262
|
-
"model-value",
|
|
263
|
-
"options",
|
|
264
|
-
"label",
|
|
265
|
-
"placeholder"
|
|
266
|
-
]),
|
|
267
|
-
s(X),
|
|
268
|
-
s(L, {
|
|
269
|
-
"swatch-only": "",
|
|
270
|
-
size: "sm",
|
|
271
|
-
"data-testid": "text-color-picker",
|
|
272
|
-
"model-value": G(),
|
|
273
|
-
"seed-color": W(),
|
|
274
|
-
"aria-label": o(E).paragraphEditor.textColor,
|
|
275
|
-
"onUpdate:modelValue": U
|
|
276
|
-
}, null, 8, [
|
|
277
|
-
"model-value",
|
|
278
|
-
"seed-color",
|
|
279
|
-
"aria-label"
|
|
280
|
-
]),
|
|
281
|
-
s(L, {
|
|
282
|
-
"swatch-only": "",
|
|
283
|
-
size: "sm",
|
|
284
|
-
"data-testid": "highlight-color-picker",
|
|
285
|
-
"model-value": Z(),
|
|
286
|
-
"seed-color": o(be),
|
|
287
|
-
"aria-label": o(E).paragraphEditor.highlightColor,
|
|
288
|
-
"onUpdate:modelValue": Ee
|
|
289
|
-
}, null, 8, [
|
|
290
|
-
"model-value",
|
|
291
|
-
"seed-color",
|
|
292
|
-
"aria-label"
|
|
293
|
-
]),
|
|
294
|
-
s(X),
|
|
295
|
-
s(K, {
|
|
296
|
-
icon: o(oe),
|
|
297
|
-
label: o(E).paragraphEditor.bold,
|
|
298
|
-
active: t.editor.isActive("bold"),
|
|
299
|
-
"stroke-width": 2.5,
|
|
300
|
-
onClick: r[0] ||= (e) => t.editor.chain().focus().toggleBold().run()
|
|
301
|
-
}, null, 8, [
|
|
302
|
-
"icon",
|
|
303
|
-
"label",
|
|
304
|
-
"active"
|
|
305
|
-
]),
|
|
306
|
-
s(K, {
|
|
307
|
-
icon: o(ue),
|
|
308
|
-
label: o(E).paragraphEditor.italic,
|
|
309
|
-
active: t.editor.isActive("italic"),
|
|
310
|
-
onClick: r[1] ||= (e) => t.editor.chain().focus().toggleItalic().run()
|
|
311
|
-
}, null, 8, [
|
|
312
|
-
"icon",
|
|
313
|
-
"label",
|
|
314
|
-
"active"
|
|
315
|
-
]),
|
|
316
|
-
s(K, {
|
|
317
|
-
icon: o(ge),
|
|
318
|
-
label: o(E).paragraphEditor.underline,
|
|
319
|
-
active: t.editor.isActive("underline"),
|
|
320
|
-
onClick: r[2] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
|
|
321
|
-
}, null, 8, [
|
|
322
|
-
"icon",
|
|
323
|
-
"label",
|
|
324
|
-
"active"
|
|
325
|
-
]),
|
|
326
|
-
s(K, {
|
|
327
|
-
icon: o(re),
|
|
328
|
-
label: o(E).paragraphEditor.strikethrough,
|
|
329
|
-
active: t.editor.isActive("strike"),
|
|
330
|
-
onClick: r[3] ||= (e) => t.editor.chain().focus().toggleStrike().run()
|
|
331
|
-
}, null, 8, [
|
|
332
|
-
"icon",
|
|
333
|
-
"label",
|
|
334
|
-
"active"
|
|
335
|
-
]),
|
|
336
|
-
s(X),
|
|
337
|
-
s(K, {
|
|
338
|
-
icon: o(ae),
|
|
339
|
-
label: o(E).paragraphEditor.subscript,
|
|
340
|
-
active: t.editor.isActive("subscript"),
|
|
341
|
-
onClick: r[4] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
|
|
342
|
-
}, null, 8, [
|
|
343
|
-
"icon",
|
|
344
|
-
"label",
|
|
345
|
-
"active"
|
|
346
|
-
]),
|
|
347
|
-
s(K, {
|
|
348
|
-
icon: o(le),
|
|
349
|
-
label: o(E).paragraphEditor.superscript,
|
|
350
|
-
active: t.editor.isActive("superscript"),
|
|
351
|
-
onClick: r[5] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
|
|
352
|
-
}, null, 8, [
|
|
353
|
-
"icon",
|
|
354
|
-
"label",
|
|
355
|
-
"active"
|
|
356
|
-
]),
|
|
357
|
-
s(X),
|
|
358
|
-
s(K, {
|
|
359
|
-
icon: o(pe),
|
|
360
|
-
label: o(E).paragraphEditor.addLink,
|
|
361
|
-
active: t.editor.isActive("link"),
|
|
362
|
-
onClick: r[6] ||= (e) => a("open-link-dialog")
|
|
363
|
-
}, null, 8, [
|
|
364
|
-
"icon",
|
|
365
|
-
"label",
|
|
366
|
-
"active"
|
|
367
|
-
])
|
|
368
|
-
]), _("div", Ae, [
|
|
369
|
-
s(K, {
|
|
370
|
-
icon: o(me),
|
|
371
|
-
label: o(E).paragraphEditor.bulletList,
|
|
372
|
-
active: t.editor.isActive("bulletList"),
|
|
373
|
-
onClick: r[7] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
|
|
374
|
-
}, null, 8, [
|
|
375
|
-
"icon",
|
|
376
|
-
"label",
|
|
377
|
-
"active"
|
|
378
|
-
]),
|
|
379
|
-
s(K, {
|
|
380
|
-
icon: o(he),
|
|
381
|
-
label: o(E).paragraphEditor.numberedList,
|
|
382
|
-
active: t.editor.isActive("orderedList"),
|
|
383
|
-
onClick: r[8] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
|
|
384
|
-
}, null, 8, [
|
|
385
|
-
"icon",
|
|
386
|
-
"label",
|
|
387
|
-
"active"
|
|
388
|
-
]),
|
|
389
|
-
s(X),
|
|
390
|
-
s(K, {
|
|
391
|
-
icon: o(fe),
|
|
392
|
-
label: o(E).paragraphEditor.alignLeft,
|
|
393
|
-
active: t.editor.isActive({ textAlign: "left" }),
|
|
394
|
-
onClick: r[9] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
|
|
395
|
-
}, null, 8, [
|
|
396
|
-
"icon",
|
|
397
|
-
"label",
|
|
398
|
-
"active"
|
|
399
|
-
]),
|
|
400
|
-
s(K, {
|
|
401
|
-
icon: o(_e),
|
|
402
|
-
label: o(E).paragraphEditor.alignCenter,
|
|
403
|
-
active: t.editor.isActive({ textAlign: "center" }),
|
|
404
|
-
onClick: r[10] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
|
|
405
|
-
}, null, 8, [
|
|
406
|
-
"icon",
|
|
407
|
-
"label",
|
|
408
|
-
"active"
|
|
409
|
-
]),
|
|
410
|
-
s(K, {
|
|
411
|
-
icon: o(se),
|
|
412
|
-
label: o(E).paragraphEditor.alignRight,
|
|
413
|
-
active: t.editor.isActive({ textAlign: "right" }),
|
|
414
|
-
onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
|
|
415
|
-
}, null, 8, [
|
|
416
|
-
"icon",
|
|
417
|
-
"label",
|
|
418
|
-
"active"
|
|
419
|
-
]),
|
|
420
|
-
s(K, {
|
|
421
|
-
icon: o(de),
|
|
422
|
-
label: o(E).paragraphEditor.alignJustify,
|
|
423
|
-
active: t.editor.isActive({ textAlign: "justify" }),
|
|
424
|
-
onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("justify").run()
|
|
425
|
-
}, null, 8, [
|
|
426
|
-
"icon",
|
|
427
|
-
"label",
|
|
428
|
-
"active"
|
|
429
|
-
]),
|
|
430
|
-
s(X),
|
|
431
|
-
s(Q, {
|
|
432
|
-
"model-value": q(),
|
|
433
|
-
options: o(Se),
|
|
434
|
-
label: o(E).paragraphEditor.lineHeight,
|
|
435
|
-
placeholder: o(E).paragraphEditor.lineHeightShort,
|
|
436
|
-
"width-class": "tpl:w-16",
|
|
437
|
-
"onUpdate:modelValue": J
|
|
438
|
-
}, null, 8, [
|
|
439
|
-
"model-value",
|
|
440
|
-
"options",
|
|
441
|
-
"label",
|
|
442
|
-
"placeholder"
|
|
443
|
-
]),
|
|
444
|
-
s(Q, {
|
|
445
|
-
"model-value": R("letterSpacing"),
|
|
446
|
-
options: o(F),
|
|
447
|
-
label: o(E).paragraphEditor.letterSpacing,
|
|
448
|
-
placeholder: o(E).paragraphEditor.letterSpacingShort,
|
|
449
|
-
"width-class": "tpl:w-20",
|
|
450
|
-
"onUpdate:modelValue": Y
|
|
451
|
-
}, null, 8, [
|
|
452
|
-
"model-value",
|
|
453
|
-
"options",
|
|
454
|
-
"label",
|
|
455
|
-
"placeholder"
|
|
456
|
-
]),
|
|
457
|
-
s(X),
|
|
458
|
-
s(K, {
|
|
459
|
-
icon: o(ve),
|
|
460
|
-
label: o(E).paragraphEditor.clearFormatting,
|
|
461
|
-
onClick: r[13] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
462
|
-
}, null, 8, ["icon", "label"]),
|
|
463
|
-
s(X),
|
|
464
|
-
s(Te, { onInsert: I }),
|
|
465
|
-
t.canRequestMergeTag ? (n(), f(y, { key: 0 }, [s(X), _("button", {
|
|
466
|
-
type: "button",
|
|
467
|
-
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
468
|
-
"aria-label": o(E).mergeTag.insert,
|
|
469
|
-
title: o(E).mergeTag.insert,
|
|
470
|
-
onClick: r[14] ||= (e) => a("add-merge-tag")
|
|
471
|
-
}, [s(o(ie), {
|
|
472
|
-
size: 16,
|
|
473
|
-
"stroke-width": 2
|
|
474
|
-
}), x(" " + b(o(E).mergeTag.insertShort), 1)], 8, je)], 64)) : p("", !0),
|
|
475
|
-
t.canInsertLogicTag ? (n(), f(y, { key: 1 }, [s(X), _("button", {
|
|
476
|
-
type: "button",
|
|
477
|
-
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
478
|
-
"aria-label": o(E).logicTag.insert,
|
|
479
|
-
title: o(E).logicTag.insert,
|
|
480
|
-
"data-testid": "insert-logic-button",
|
|
481
|
-
onClick: r[15] ||= (e) => a("add-logic-tag")
|
|
482
|
-
}, [s(o(ne), {
|
|
483
|
-
size: 16,
|
|
484
|
-
"stroke-width": 2
|
|
485
|
-
}), x(" " + b(o(E).logicTag.insertShort), 1)], 8, Me)], 64)) : p("", !0)
|
|
486
|
-
])], 64)) : (n(), f("div", Ne, [s(o(ce), {
|
|
487
|
-
class: "tpl-spinner",
|
|
488
|
-
size: 14,
|
|
489
|
-
"stroke-width": 2
|
|
490
|
-
}), x(" " + b(o(E).errors.editorLoading), 1)]))], 12, Oe)], 8, ["to"])) : p("", !0);
|
|
491
|
-
}
|
|
492
|
-
}), Fe = { class: "tpl-text-editor-wrapper tpl:relative" }, Ie = /* @__PURE__ */ a({
|
|
493
|
-
__name: "ParagraphEditor",
|
|
494
|
-
props: {
|
|
495
|
-
block: {},
|
|
496
|
-
toolbarPosition: {}
|
|
497
|
-
},
|
|
498
|
-
emits: ["done"],
|
|
499
|
-
setup(t, { emit: r }) {
|
|
500
|
-
let i = t, a = r, c = te(), l = e(N, null), u = S(l?.content?.value?.settings ?? { locale: "en" }) === "rtl" ? "right" : "left", { editor: d, EditorContent: p, isLoading: m, initError: h, retry: g, showLinkDialog: _, linkUrl: y, linkColor: b, linkDialogRef: x, canRequestMergeTag: C, canInsertLogicTag: w, openLinkDialog: E, insertLink: O, removeLink: k, closeLinkDialog: A, handleLinkKeydown: j, handleAddMergeTag: M, handleAddLogicTag: P } = T({
|
|
501
|
-
blockId: () => i.block.id,
|
|
502
|
-
blockContent: () => i.block.content,
|
|
503
|
-
onDone: () => a("done"),
|
|
504
|
-
editorName: "ParagraphEditor",
|
|
505
|
-
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
506
|
-
let [{ Editor: a, EditorContent: o }, { default: s }, { default: l }, { default: d }, { default: f }, { default: p }, { default: m }, { TextStyle: h }, { default: g }, { default: _ }, { default: v }, { MergeTagNode: y, MergeTagSuggestion: b, LogicMergeTagNode: x, FontSize: S, LineHeight: C, LetterSpacing: w, LineBoundaryKeys: T }] = await Promise.all([
|
|
507
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.i),
|
|
508
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.a),
|
|
509
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.u),
|
|
510
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.o),
|
|
511
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.l),
|
|
512
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.c),
|
|
513
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.s),
|
|
514
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.m),
|
|
515
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.p),
|
|
516
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.f),
|
|
517
|
-
import("./tiptap-B1RfWFzB.js").then((e) => e.d),
|
|
518
|
-
import("./extensions-koOuDeZS.js")
|
|
519
|
-
]);
|
|
520
|
-
return {
|
|
521
|
-
TiptapEditor: a,
|
|
522
|
-
EC: o,
|
|
523
|
-
extensions: [
|
|
524
|
-
s.configure({
|
|
525
|
-
heading: !1,
|
|
526
|
-
codeBlock: !1,
|
|
527
|
-
blockquote: !1,
|
|
528
|
-
horizontalRule: !1,
|
|
529
|
-
link: !1,
|
|
530
|
-
underline: !1
|
|
531
|
-
}),
|
|
532
|
-
d,
|
|
533
|
-
f,
|
|
534
|
-
p,
|
|
535
|
-
D(l).configure({
|
|
536
|
-
openOnClick: !1,
|
|
537
|
-
HTMLAttributes: {
|
|
538
|
-
target: "_blank",
|
|
539
|
-
rel: "noopener noreferrer"
|
|
540
|
-
}
|
|
541
|
-
}),
|
|
542
|
-
m.configure({
|
|
543
|
-
types: ["paragraph"],
|
|
544
|
-
defaultAlignment: u
|
|
545
|
-
}),
|
|
546
|
-
h,
|
|
547
|
-
g,
|
|
548
|
-
_,
|
|
549
|
-
v.configure({ multicolor: !0 }),
|
|
550
|
-
S,
|
|
551
|
-
C,
|
|
552
|
-
w,
|
|
553
|
-
y.configure({
|
|
554
|
-
mergeTags: () => e.value,
|
|
555
|
-
syntax: t
|
|
556
|
-
}),
|
|
557
|
-
x.configure({ syntax: t }),
|
|
558
|
-
T,
|
|
559
|
-
...r && n && e.value.length > 0 ? [b.configure({
|
|
560
|
-
mergeTags: () => e.value,
|
|
561
|
-
char: n,
|
|
562
|
-
emptyText: i,
|
|
563
|
-
popoverRoot: c
|
|
564
|
-
})] : []
|
|
565
|
-
]
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
return (e, r) => (n(), f("div", Fe, [
|
|
570
|
-
s(Pe, {
|
|
571
|
-
editor: o(d),
|
|
572
|
-
"toolbar-position": t.toolbarPosition,
|
|
573
|
-
"is-loading": o(m),
|
|
574
|
-
"can-request-merge-tag": o(C),
|
|
575
|
-
"can-insert-logic-tag": o(w),
|
|
576
|
-
onOpenLinkDialog: o(E),
|
|
577
|
-
onAddMergeTag: o(M),
|
|
578
|
-
onAddLogicTag: o(P)
|
|
579
|
-
}, null, 8, [
|
|
580
|
-
"editor",
|
|
581
|
-
"toolbar-position",
|
|
582
|
-
"is-loading",
|
|
583
|
-
"can-request-merge-tag",
|
|
584
|
-
"can-insert-logic-tag",
|
|
585
|
-
"onOpenLinkDialog",
|
|
586
|
-
"onAddMergeTag",
|
|
587
|
-
"onAddLogicTag"
|
|
588
|
-
]),
|
|
589
|
-
s(z, {
|
|
590
|
-
editor: o(d),
|
|
591
|
-
"editor-content": o(p),
|
|
592
|
-
"is-loading": o(m),
|
|
593
|
-
"init-error": o(h),
|
|
594
|
-
onRetry: o(g)
|
|
595
|
-
}, null, 8, [
|
|
596
|
-
"editor",
|
|
597
|
-
"editor-content",
|
|
598
|
-
"is-loading",
|
|
599
|
-
"init-error",
|
|
600
|
-
"onRetry"
|
|
601
|
-
]),
|
|
602
|
-
s(R, {
|
|
603
|
-
visible: o(_),
|
|
604
|
-
"is-editing-link": o(d)?.isActive("link") ?? !1,
|
|
605
|
-
"dialog-ref": o(x),
|
|
606
|
-
"onUpdate:dialogRef": r[0] ||= (e) => v(x) ? x.value = e : null,
|
|
607
|
-
"link-url": o(y),
|
|
608
|
-
"onUpdate:linkUrl": r[1] ||= (e) => v(y) ? y.value = e : null,
|
|
609
|
-
"link-color": o(b),
|
|
610
|
-
"onUpdate:linkColor": r[2] ||= (e) => v(b) ? b.value = e : null,
|
|
611
|
-
onClose: o(A),
|
|
612
|
-
onInsert: o(O),
|
|
613
|
-
onRemove: o(k),
|
|
614
|
-
onKeydown: o(j)
|
|
615
|
-
}, null, 8, [
|
|
616
|
-
"visible",
|
|
617
|
-
"is-editing-link",
|
|
618
|
-
"dialog-ref",
|
|
619
|
-
"link-url",
|
|
620
|
-
"link-color",
|
|
621
|
-
"onClose",
|
|
622
|
-
"onInsert",
|
|
623
|
-
"onRemove",
|
|
624
|
-
"onKeydown"
|
|
625
|
-
])
|
|
626
|
-
]));
|
|
627
|
-
}
|
|
628
|
-
});
|
|
629
|
-
//#endregion
|
|
630
|
-
export { Ie as default };
|
|
631
|
-
|
|
632
|
-
//# sourceMappingURL=ParagraphEditor-CJQjRHXV.js.map
|