@templatical/editor 0.49.0 → 0.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
- package/dist/AiAltTextReview-DoBEudnE.js +206 -0
- package/dist/AiChatPanel-Bs6sES3b.js +550 -0
- package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
- package/dist/AiPanels-CfN7A-ZA.js +33 -0
- package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
- package/dist/{BlockIssueBadge-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
- package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
- package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
- package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
- package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
- package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
- package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
- package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
- package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
- package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
- package/dist/IssuesPanel-C8nMUccy.js +360 -0
- package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
- package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
- package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
- package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
- package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
- package/dist/{MergeTagModeToggle-CJTpFmVd.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
- package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
- package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
- package/dist/{RestoreVersionDialog-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
- package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
- package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
- package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
- package/dist/TemplateSettings-BVBWpiDU.js +237 -0
- package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
- package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
- package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
- package/dist/ToggleSwitch-D51U9cmR.js +37 -0
- package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
- package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
- package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
- package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
- package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
- package/dist/WrapperBlock-BO619LAb.js +45 -0
- package/dist/aiErrors-D5UOoYOt.js +41 -0
- package/dist/aiImageContext-BH4Ss1h3.js +48 -0
- package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
- package/dist/{blockTypeIcons-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
- package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
- package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
- package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
- package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
- package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
- package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
- package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
- package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
- package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
- package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
- package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
- package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
- package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
- package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
- package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
- package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
- package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
- package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
- package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
- package/dist/{MediaEditModal-C_wxoUMG.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
- package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
- package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
- package/dist/cdn/chunks/{MediaPanels-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
- package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
- package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
- package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
- package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
- package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BMtyUrUP.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
- package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
- package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
- package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
- package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
- package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
- package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
- package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
- package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
- package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
- package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
- package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
- package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
- package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
- package/dist/cdn/chunks/{WrapperBlock-CFuP4R0c.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
- package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
- package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
- package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
- package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
- package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
- package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
- package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
- package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
- package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
- package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
- package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
- package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
- package/dist/{de-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
- package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
- package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
- package/dist/cdn/chunks/{dist-Doy3r07H.js.map → dist-Bo8Thh8v.js.map} +1 -1
- package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
- package/dist/cdn/chunks/{dist-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
- package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
- package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
- package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
- package/dist/{en-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
- package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
- package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
- package/dist/{es-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
- package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
- package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
- package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
- package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
- package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
- package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
- package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
- package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
- package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
- package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
- package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
- package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
- package/dist/{nl-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
- package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
- package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
- package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
- package/dist/{pt-BR-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
- package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
- package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
- package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
- package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
- package/dist/cdn/chunks/{src-B77z1iw4.js → src-K6fw_35b.js} +113 -113
- package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-K6fw_35b.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
- package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
- package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
- package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
- package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
- package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2151 -1480
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
- package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
- package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
- package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
- package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
- package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
- package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
- package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
- package/dist/de-DBOTcDj2.js +20 -0
- package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
- package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
- package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
- package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
- package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
- package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
- package/dist/en-CDhWRrF_.js +20 -0
- package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
- package/dist/en-DwV15ltA.js +1 -0
- package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
- package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
- package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
- package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
- package/dist/image-DesWjcZ4.js +28 -0
- package/dist/index.d.ts +361 -24
- package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
- package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
- package/dist/keys-Zd9KWRD1.js +10 -0
- package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
- package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
- package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
- package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
- package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
- package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
- package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
- package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
- package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
- package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
- package/dist/pt-BR-CHM-ZKvE.js +20 -0
- package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
- package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
- package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
- package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
- package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
- package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
- package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
- package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
- package/dist/square-BWlolnXe.js +15 -0
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +2114 -1422
- package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
- package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
- package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
- package/dist/upload-BJfvdIrD.js +36 -0
- package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
- package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
- package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
- package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
- package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
- package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
- package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
- package/dist/useScrollToBlock-FmNMALM_.js +74 -0
- package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
- package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
- package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
- package/package.json +14 -12
- package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
- package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
- package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
- package/dist/CommentsSidebar-J65znlrH.js +0 -500
- package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
- package/dist/IssuesPanel-DeeVsfG7.js +0 -117
- package/dist/ParagraphEditor-zLV44z-R.js +0 -797
- package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
- package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
- package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
- package/dist/ToggleSwitch-DHweVJOr.js +0 -102
- package/dist/WrapperBlock-DiiaxpMb.js +0 -45
- package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
- package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
- package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
- package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
- package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
- package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
- package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
- package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
- package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
- package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
- package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
- package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
- package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
- package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
- package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
- package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
- package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
- package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
- package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
- package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
- package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
- package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
- package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
- package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
- package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
- package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
- package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
- package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
- package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
- package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
- package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
- package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
- package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
- package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
- package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
- package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
- package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
- package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
- package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
- package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
- package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
- package/dist/copy-CUC43md_.js +0 -19
- package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
- package/dist/de-D_atmUVB.js +0 -87
- package/dist/dist-CCqn-RqE.js +0 -407
- package/dist/en-BHCMzqib.js +0 -1
- package/dist/en-DhJLnaBx.js +0 -87
- package/dist/image-up-BqiO7KCO.js +0 -27
- package/dist/keys-BymCnLHD.js +0 -10
- package/dist/plus-BDd0gTEm.js +0 -14
- package/dist/pt-BR-BphMoUTw.js +0 -87
- package/dist/shield-check-YhsbXfQc.js +0 -14
- package/dist/socialIcons-Bwv-49EB.js +0 -2167
- package/dist/timeouts-o5Y9BuqI.js +0 -4
- package/dist/upload-uU2cK0Ce.js +0 -21
- package/dist/useAliveFlag-BjP0Gxza.js +0 -10
- package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { A as e, At as t, M as n, S as ee, at as r, c as i, d as a, g as o, jt as s, kt as c, r as l, s as u, u as d, v as f } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
-
import { ut as te } from "./dist-DBG3nh3k.js";
|
|
3
|
-
import { $ as ne, q as re, v as ie } from "./keys-BymCnLHD.js";
|
|
4
|
-
import { t as p } from "./useI18n-CSh4gO5c.js";
|
|
5
|
-
import { n as ae, t as m } from "./templateSettingsFields-YCFVBVYh.js";
|
|
6
|
-
import { t as h } from "./createLucideIcon-BcP1sjdp.js";
|
|
7
|
-
import { c as g } from "./LogicTagInsertButton-CR5E4jSG.js";
|
|
8
|
-
import { t as _ } from "./eye-B1bua-ck.js";
|
|
9
|
-
import { t as oe } from "./info-x26nGOo2.js";
|
|
10
|
-
import { g as v, h as se, l as ce, m as le, p as y, t as b } from "./styleConstants-v1dNKgJf.js";
|
|
11
|
-
import { n as x, t as S } from "./ToggleSwitch-DHweVJOr.js";
|
|
12
|
-
import { n as C, t as w } from "./withCurrentFont-D62njRLu.js";
|
|
13
|
-
var T = h({
|
|
14
|
-
name: "circle",
|
|
15
|
-
size: 24,
|
|
16
|
-
node: [["circle", {
|
|
17
|
-
cx: "12",
|
|
18
|
-
cy: "12",
|
|
19
|
-
r: "10",
|
|
20
|
-
key: "1mglay"
|
|
21
|
-
}]]
|
|
22
|
-
}), E = h({
|
|
23
|
-
name: "globe",
|
|
24
|
-
size: 24,
|
|
25
|
-
node: [
|
|
26
|
-
["circle", {
|
|
27
|
-
cx: "12",
|
|
28
|
-
cy: "12",
|
|
29
|
-
r: "10",
|
|
30
|
-
key: "1mglay"
|
|
31
|
-
}],
|
|
32
|
-
["path", {
|
|
33
|
-
d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",
|
|
34
|
-
key: "13o1zl"
|
|
35
|
-
}],
|
|
36
|
-
["path", {
|
|
37
|
-
d: "M2 12h20",
|
|
38
|
-
key: "9i4pu4"
|
|
39
|
-
}]
|
|
40
|
-
]
|
|
41
|
-
}), D = h({
|
|
42
|
-
name: "square",
|
|
43
|
-
size: 24,
|
|
44
|
-
node: [["rect", {
|
|
45
|
-
width: "18",
|
|
46
|
-
height: "18",
|
|
47
|
-
x: "3",
|
|
48
|
-
y: "3",
|
|
49
|
-
rx: "2",
|
|
50
|
-
key: "afitv7"
|
|
51
|
-
}]]
|
|
52
|
-
}), O = {
|
|
53
|
-
"data-testid": "template-settings",
|
|
54
|
-
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
55
|
-
}, k = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, A = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, j = {
|
|
56
|
-
key: 0,
|
|
57
|
-
"data-testid": "template-settings-width-preset"
|
|
58
|
-
}, M = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, N = ["onClick"], P = {
|
|
59
|
-
key: 1,
|
|
60
|
-
"data-testid": "template-settings-width-custom"
|
|
61
|
-
}, F = { class: "tpl:flex tpl:items-stretch" }, I = ["value"], L = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, R = {
|
|
62
|
-
key: 0,
|
|
63
|
-
"data-testid": "template-settings-background"
|
|
64
|
-
}, z = {
|
|
65
|
-
key: 1,
|
|
66
|
-
"data-testid": "template-settings-text-color"
|
|
67
|
-
}, B = {
|
|
68
|
-
key: 2,
|
|
69
|
-
"data-testid": "template-settings-link-color"
|
|
70
|
-
}, V = {
|
|
71
|
-
key: 3,
|
|
72
|
-
"data-testid": "template-settings-link-underline"
|
|
73
|
-
}, H = {
|
|
74
|
-
key: 4,
|
|
75
|
-
"data-testid": "template-settings-font-family"
|
|
76
|
-
}, U = ["value"], W = ["value"], ue = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, de = {
|
|
77
|
-
key: 0,
|
|
78
|
-
"data-testid": "template-settings-locale"
|
|
79
|
-
}, fe = ["value"], pe = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, me = {
|
|
80
|
-
key: 1,
|
|
81
|
-
"data-testid": "template-settings-direction"
|
|
82
|
-
}, he = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, ge = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _e = {
|
|
83
|
-
key: 0,
|
|
84
|
-
"data-testid": "template-settings-preheader"
|
|
85
|
-
}, ve = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, ye = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, be = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, xe = {
|
|
86
|
-
key: 4,
|
|
87
|
-
class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3",
|
|
88
|
-
"data-testid": "template-settings-card-tips"
|
|
89
|
-
}, Se = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, Ce = { class: "tpl:m-0 tpl:list-disc tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, we = { class: "tpl:mb-1 tpl:last:mb-0" }, Te = { class: "tpl:mb-1 tpl:last:mb-0" }, Ee = { class: "tpl:mb-1 tpl:last:mb-0" }, De = 150, G = /* @__PURE__ */ f({
|
|
90
|
-
__name: "TemplateSettings",
|
|
91
|
-
props: { settings: {} },
|
|
92
|
-
emits: ["update"],
|
|
93
|
-
setup(f, { emit: h }) {
|
|
94
|
-
let G = f, K = h, { t: q } = p(), J = ne(ie, "TemplateSettings"), Y = u(() => w(G.settings.fontFamily).trim() || J.defaultFont.value), Oe = u(() => C(J.fonts.value, Y.value)), ke = [
|
|
95
|
-
{
|
|
96
|
-
value: 480,
|
|
97
|
-
label: "480px"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
value: 600,
|
|
101
|
-
label: "600px"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
value: 700,
|
|
105
|
-
label: "700px"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
value: 800,
|
|
109
|
-
label: "800px"
|
|
110
|
-
}
|
|
111
|
-
], X = ee(re, new Set(m));
|
|
112
|
-
function Z(e) {
|
|
113
|
-
return X.has(e);
|
|
114
|
-
}
|
|
115
|
-
function Q(e) {
|
|
116
|
-
return m.some((t) => ae[t] === e && Z(t));
|
|
117
|
-
}
|
|
118
|
-
let Ae = X.size > 0, je = u(() => te(G.settings) === "rtl"), $ = `${ce} tpl:flex tpl:flex-col tpl:gap-3.5`;
|
|
119
|
-
return (ee, u) => (e(), a("aside", O, [i("div", k, [
|
|
120
|
-
Q("layout") ? (e(), a("div", {
|
|
121
|
-
key: 0,
|
|
122
|
-
class: c($),
|
|
123
|
-
"data-testid": "template-settings-card-layout"
|
|
124
|
-
}, [
|
|
125
|
-
i("div", A, [o(r(D), {
|
|
126
|
-
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
127
|
-
size: 14,
|
|
128
|
-
"stroke-width": 2
|
|
129
|
-
}), i("span", null, s(r(q).templateSettings.layout), 1)]),
|
|
130
|
-
Z("width") ? (e(), a("div", j, [i("label", { class: c(r(v)) }, s(r(q).templateSettings.widthPreset), 3), i("div", M, [(e(), a(l, null, n(ke, (e) => i("button", {
|
|
131
|
-
key: e.value,
|
|
132
|
-
class: "tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
133
|
-
style: t({
|
|
134
|
-
backgroundColor: f.settings.width === e.value ? "var(--tpl-bg)" : "transparent",
|
|
135
|
-
color: f.settings.width === e.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
136
|
-
boxShadow: f.settings.width === e.value ? "var(--tpl-shadow)" : "none"
|
|
137
|
-
}),
|
|
138
|
-
onClick: (t) => K("update", { width: e.value })
|
|
139
|
-
}, s(e.label), 13, N)), 64))])])) : d("", !0),
|
|
140
|
-
Z("width") ? (e(), a("div", P, [i("label", { class: c(r(v)) }, s(r(q).templateSettings.customWidth), 3), i("div", F, [i("input", {
|
|
141
|
-
type: "number",
|
|
142
|
-
class: c(r(le)),
|
|
143
|
-
value: f.settings.width,
|
|
144
|
-
min: "300",
|
|
145
|
-
max: "900",
|
|
146
|
-
onInput: u[0] ||= (e) => K("update", { width: Number(e.target.value) })
|
|
147
|
-
}, null, 42, I), i("span", { class: c(r(se)) }, "px", 2)])])) : d("", !0)
|
|
148
|
-
])) : d("", !0),
|
|
149
|
-
Q("appearance") ? (e(), a("div", {
|
|
150
|
-
key: 1,
|
|
151
|
-
class: c($),
|
|
152
|
-
"data-testid": "template-settings-card-appearance"
|
|
153
|
-
}, [
|
|
154
|
-
i("div", L, [o(r(T), {
|
|
155
|
-
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
156
|
-
size: 14,
|
|
157
|
-
"stroke-width": 2
|
|
158
|
-
}), i("span", null, s(r(q).templateSettings.appearance), 1)]),
|
|
159
|
-
Z("backgroundColor") ? (e(), a("div", R, [i("label", { class: c(r(v)) }, s(r(q).templateSettings.backgroundColor), 3), o(g, {
|
|
160
|
-
"model-value": f.settings.backgroundColor,
|
|
161
|
-
placeholder: r(b),
|
|
162
|
-
"onUpdate:modelValue": u[1] ||= (e) => K("update", { backgroundColor: e })
|
|
163
|
-
}, null, 8, ["model-value", "placeholder"])])) : d("", !0),
|
|
164
|
-
Z("textColor") ? (e(), a("div", z, [i("label", { class: c(r(v)) }, s(r(q).templateSettings.textColor), 3), o(g, {
|
|
165
|
-
"model-value": f.settings.textColor ?? "",
|
|
166
|
-
"seed-color": "#1a1a1a",
|
|
167
|
-
"onUpdate:modelValue": u[2] ||= (e) => K("update", { textColor: e })
|
|
168
|
-
}, null, 8, ["model-value"])])) : d("", !0),
|
|
169
|
-
Z("linkColor") ? (e(), a("div", B, [i("label", { class: c(r(v)) }, s(r(q).templateSettings.linkColor), 3), o(g, {
|
|
170
|
-
"model-value": f.settings.linkColor ?? "",
|
|
171
|
-
"seed-color": "#0066cc",
|
|
172
|
-
"onUpdate:modelValue": u[3] ||= (e) => K("update", { linkColor: e || void 0 })
|
|
173
|
-
}, null, 8, ["model-value"])])) : d("", !0),
|
|
174
|
-
Z("linkUnderline") ? (e(), a("div", V, [o(S, {
|
|
175
|
-
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
176
|
-
"model-value": f.settings.linkUnderline,
|
|
177
|
-
label: r(q).templateSettings.linkUnderline,
|
|
178
|
-
"onUpdate:modelValue": u[4] ||= (e) => K("update", { linkUnderline: e })
|
|
179
|
-
}, null, 8, ["model-value", "label"])])) : d("", !0),
|
|
180
|
-
Z("fontFamily") ? (e(), a("div", H, [i("label", { class: c(r(v)) }, s(r(q).templateSettings.fontFamily), 3), i("select", {
|
|
181
|
-
class: c(r(y)),
|
|
182
|
-
value: Y.value,
|
|
183
|
-
onChange: u[5] ||= (e) => K("update", { fontFamily: e.target.value })
|
|
184
|
-
}, [(e(!0), a(l, null, n(Oe.value, (t) => (e(), a("option", {
|
|
185
|
-
key: t.value,
|
|
186
|
-
value: t.value
|
|
187
|
-
}, s(t.label), 9, W))), 128))], 42, U)])) : d("", !0)
|
|
188
|
-
])) : d("", !0),
|
|
189
|
-
Q("language") ? (e(), a("div", {
|
|
190
|
-
key: 2,
|
|
191
|
-
class: c($),
|
|
192
|
-
"data-testid": "template-settings-card-language"
|
|
193
|
-
}, [
|
|
194
|
-
i("div", ue, [o(r(E), {
|
|
195
|
-
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
196
|
-
size: 14,
|
|
197
|
-
"stroke-width": 2
|
|
198
|
-
}), i("span", null, s(r(q).templateSettings.language), 1)]),
|
|
199
|
-
Z("locale") ? (e(), a("div", de, [
|
|
200
|
-
i("label", { class: c(r(v)) }, s(r(q).templateSettings.contentLocale), 3),
|
|
201
|
-
i("input", {
|
|
202
|
-
type: "text",
|
|
203
|
-
class: c(r(y)),
|
|
204
|
-
value: f.settings.locale ?? "",
|
|
205
|
-
placeholder: "en",
|
|
206
|
-
spellcheck: "false",
|
|
207
|
-
autocapitalize: "off",
|
|
208
|
-
autocomplete: "off",
|
|
209
|
-
onInput: u[6] ||= (e) => K("update", { locale: e.target.value.trim() || void 0 })
|
|
210
|
-
}, null, 42, fe),
|
|
211
|
-
i("p", pe, s(r(q).templateSettings.contentLocaleHint), 1)
|
|
212
|
-
])) : d("", !0),
|
|
213
|
-
Z("direction") ? (e(), a("div", me, [o(S, {
|
|
214
|
-
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
215
|
-
"model-value": je.value,
|
|
216
|
-
label: r(q).templateSettings.contentDirection,
|
|
217
|
-
"onUpdate:modelValue": u[7] ||= (e) => K("update", { direction: e ? "rtl" : "ltr" })
|
|
218
|
-
}, null, 8, ["model-value", "label"]), i("p", he, s(r(q).templateSettings.contentDirectionHint), 1)])) : d("", !0)
|
|
219
|
-
])) : d("", !0),
|
|
220
|
-
Q("preheader") ? (e(), a("div", {
|
|
221
|
-
key: 3,
|
|
222
|
-
class: c($),
|
|
223
|
-
"data-testid": "template-settings-card-preheader"
|
|
224
|
-
}, [i("div", ge, [o(r(_), {
|
|
225
|
-
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
226
|
-
size: 14,
|
|
227
|
-
"stroke-width": 2
|
|
228
|
-
}), i("span", null, s(r(q).templateSettings.preheaderText), 1)]), Z("preheaderText") ? (e(), a("div", _e, [o(x, {
|
|
229
|
-
"model-value": f.settings.preheaderText ?? "",
|
|
230
|
-
placeholder: r(q).templateSettings.preheaderTextPlaceholder,
|
|
231
|
-
rows: 2,
|
|
232
|
-
"onUpdate:modelValue": u[8] ||= (e) => K("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
233
|
-
}, null, 8, ["model-value", "placeholder"]), i("div", ve, [i("span", ye, s(r(q).templateSettings.preheaderTextHint), 1), i("span", be, s((f.settings.preheaderText ?? "").length) + "/" + s(De), 1)])])) : d("", !0)])) : d("", !0),
|
|
234
|
-
Ae ? (e(), a("div", xe, [i("div", Se, [o(r(oe), {
|
|
235
|
-
size: 14,
|
|
236
|
-
"stroke-width": 2
|
|
237
|
-
}), i("span", null, s(r(q).templateSettings.tips), 1)]), i("ul", Ce, [
|
|
238
|
-
i("li", we, s(r(q).templateSettings.tip1), 1),
|
|
239
|
-
i("li", Te, s(r(q).templateSettings.tip2), 1),
|
|
240
|
-
i("li", Ee, s(r(q).templateSettings.tip3), 1)
|
|
241
|
-
])])) : d("", !0)
|
|
242
|
-
])]));
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
//#endregion
|
|
246
|
-
export { G as default };
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { A as e, N as t, Z as n, at as r, c as i, d as a, g as o, h as s, jt as c, kt as l, l as u, u as d, v as f } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
-
import { i as p, n as m, r as h, t as g } from "./LogicTagInsertButton-CR5E4jSG.js";
|
|
3
|
-
//#region src/components/MergeTagTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var _ = { key: 0 }, v = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
7
|
-
}, y = { key: 1 }, b = [
|
|
8
|
-
"value",
|
|
9
|
-
"placeholder",
|
|
10
|
-
"rows"
|
|
11
|
-
], x = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
14
|
-
}, S = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", C = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", w = /* @__PURE__ */ f({
|
|
15
|
-
__name: "MergeTagTextarea",
|
|
16
|
-
props: {
|
|
17
|
-
modelValue: {},
|
|
18
|
-
placeholder: { default: "" },
|
|
19
|
-
rows: { default: 3 }
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:modelValue"],
|
|
22
|
-
setup(t, { emit: s }) {
|
|
23
|
-
let c = t, f = s, w = n(null), { segments: T, hasMergeTags: E, canRequestMergeTag: D, isRequestingMergeTag: O, canInsertLogicTag: k, isRequestingLogicTag: A, isEditing: j, startEditing: M, handleInput: N, handleKeydown: P, handleClick: F, handleBlur: I, clearValue: L, insertMergeTag: R, insertLogicTag: z, replaceMergeTagAt: B } = p({
|
|
24
|
-
modelValue: () => c.modelValue,
|
|
25
|
-
emit: (e) => f("update:modelValue", e),
|
|
26
|
-
elementRef: w
|
|
27
|
-
});
|
|
28
|
-
return (n, s) => r(E) && !r(j) ? (e(), a("div", _, [o(h, {
|
|
29
|
-
segments: r(T),
|
|
30
|
-
"display-class": C,
|
|
31
|
-
onEdit: r(M),
|
|
32
|
-
onClear: r(L),
|
|
33
|
-
onRepick: r(B)
|
|
34
|
-
}, null, 8, [
|
|
35
|
-
"segments",
|
|
36
|
-
"onEdit",
|
|
37
|
-
"onClear",
|
|
38
|
-
"onRepick"
|
|
39
|
-
]), r(D) || r(k) ? (e(), a("div", v, [r(D) ? (e(), u(m, {
|
|
40
|
-
key: 0,
|
|
41
|
-
disabled: r(O),
|
|
42
|
-
onInsert: r(R)
|
|
43
|
-
}, null, 8, ["disabled", "onInsert"])) : d("", !0), r(k) ? (e(), u(g, {
|
|
44
|
-
key: 1,
|
|
45
|
-
disabled: r(A),
|
|
46
|
-
onInsert: r(z)
|
|
47
|
-
}, null, 8, ["disabled", "onInsert"])) : d("", !0)])) : d("", !0)])) : (e(), a("div", y, [i("textarea", {
|
|
48
|
-
ref_key: "textareaRef",
|
|
49
|
-
ref: w,
|
|
50
|
-
class: l(S),
|
|
51
|
-
value: t.modelValue,
|
|
52
|
-
placeholder: t.placeholder,
|
|
53
|
-
rows: t.rows,
|
|
54
|
-
onInput: s[0] ||= (...e) => r(N) && r(N)(...e),
|
|
55
|
-
onKeydown: s[1] ||= (...e) => r(P) && r(P)(...e),
|
|
56
|
-
onClick: s[2] ||= (...e) => r(F) && r(F)(...e),
|
|
57
|
-
onBlur: s[3] ||= (...e) => r(I) && r(I)(...e)
|
|
58
|
-
}, null, 40, b), r(D) || r(k) ? (e(), a("div", x, [r(D) ? (e(), u(m, {
|
|
59
|
-
key: 0,
|
|
60
|
-
disabled: r(O),
|
|
61
|
-
onInsert: r(R)
|
|
62
|
-
}, null, 8, ["disabled", "onInsert"])) : d("", !0), r(k) ? (e(), u(g, {
|
|
63
|
-
key: 1,
|
|
64
|
-
disabled: r(A),
|
|
65
|
-
onInsert: r(z)
|
|
66
|
-
}, null, 8, ["disabled", "onInsert"])) : d("", !0)])) : d("", !0)]));
|
|
67
|
-
}
|
|
68
|
-
}), T = { key: 0 }, E = {
|
|
69
|
-
key: 0,
|
|
70
|
-
class: "tpl:text-[var(--tpl-danger)]"
|
|
71
|
-
}, D = [
|
|
72
|
-
"aria-checked",
|
|
73
|
-
"aria-label",
|
|
74
|
-
"disabled"
|
|
75
|
-
], O = /* @__PURE__ */ f({
|
|
76
|
-
__name: "ToggleSwitch",
|
|
77
|
-
props: {
|
|
78
|
-
modelValue: { type: Boolean },
|
|
79
|
-
label: {},
|
|
80
|
-
disabled: { type: Boolean },
|
|
81
|
-
required: { type: Boolean }
|
|
82
|
-
},
|
|
83
|
-
emits: ["update:modelValue"],
|
|
84
|
-
setup(n, { emit: r }) {
|
|
85
|
-
let o = r;
|
|
86
|
-
return (r, u) => (e(), a("label", { class: l(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", n.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [r.$slots.default || n.label || n.required ? (e(), a("span", T, [t(r.$slots, "default", {}, () => [s(c(n.label), 1)]), n.required ? (e(), a("span", E, " *")) : d("", !0)])) : d("", !0), i("button", {
|
|
87
|
-
type: "button",
|
|
88
|
-
role: "switch",
|
|
89
|
-
"aria-checked": n.modelValue,
|
|
90
|
-
"aria-label": n.label,
|
|
91
|
-
disabled: n.disabled,
|
|
92
|
-
class: l([
|
|
93
|
-
"tpl:relative tpl:inline-flex tpl:h-5 tpl:w-9 tpl:shrink-0 tpl:rounded-full tpl:border-2 tpl:border-transparent tpl:transition-colors tpl:duration-200",
|
|
94
|
-
n.modelValue ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]",
|
|
95
|
-
n.disabled ? "tpl:cursor-not-allowed tpl:opacity-60" : "tpl:cursor-pointer"
|
|
96
|
-
]),
|
|
97
|
-
onClick: u[0] ||= (e) => !n.disabled && o("update:modelValue", !n.modelValue)
|
|
98
|
-
}, [i("span", { class: l(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow)] tpl:transition-transform tpl:duration-200", n.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, D)], 2));
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
//#endregion
|
|
102
|
-
export { w as n, O as t };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { A as e, At as t, F as n, M as r, R as i, S as a, at as o, d as s, kt as c, l, r as u, s as d, v as f } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
-
import { d as p } from "./dist-DBG3nh3k.js";
|
|
3
|
-
import { D as m, T as h, a as g } from "./socialIcons-Bwv-49EB.js";
|
|
4
|
-
import { N as _, P as v, j as y, k as b } from "./useEditorCore-DRbMRe8F.js";
|
|
5
|
-
import { C as x, P as S, g as C, s as w, x as T } from "./keys-BymCnLHD.js";
|
|
6
|
-
//#region src/components/blocks/WrapperBlock.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var E = ["data-block-id"], D = /* @__PURE__ */ f({
|
|
8
|
-
name: "WrapperBlock",
|
|
9
|
-
__name: "WrapperBlock",
|
|
10
|
-
props: {
|
|
11
|
-
block: {},
|
|
12
|
-
viewport: {}
|
|
13
|
-
},
|
|
14
|
-
setup(f) {
|
|
15
|
-
let D = f, O = a(w, null), k = a(T, null), A = a(S, p.liquid), j = a(C, null), M = a(x, void 0), N = m(() => D.block.backgroundImage), P = d(() => _(D.block, { backgroundImageUrl: N.value }) ?? {}), F = d(() => D.block.children.flatMap((e) => {
|
|
16
|
-
let t = e.type === "section" ? h(e.backgroundImage, A) : void 0;
|
|
17
|
-
return t ? [t] : [];
|
|
18
|
-
}));
|
|
19
|
-
k && i(F, (e) => {
|
|
20
|
-
for (let t of e) k.lookup(t);
|
|
21
|
-
}, { immediate: !0 });
|
|
22
|
-
let I = d(() => D.block.children.map((e) => ({
|
|
23
|
-
child: e,
|
|
24
|
-
style: y(e, k, A, g(e, j?.content.value, M))
|
|
25
|
-
})));
|
|
26
|
-
function L(e) {
|
|
27
|
-
return v(e, O, {});
|
|
28
|
-
}
|
|
29
|
-
return (i, a) => (e(), s("div", {
|
|
30
|
-
"data-testid": "layout-wrapper",
|
|
31
|
-
class: c(["tpl-email-surface tpl:w-full", o(b)(P.value)]),
|
|
32
|
-
style: t(P.value)
|
|
33
|
-
}, [(e(!0), s(u, null, r(I.value, ({ child: r, style: i }) => (e(), s("div", {
|
|
34
|
-
key: r.id,
|
|
35
|
-
"data-block-id": r.id,
|
|
36
|
-
style: t(i),
|
|
37
|
-
class: c(o(b)(i))
|
|
38
|
-
}, [(e(), l(n(L(r)), {
|
|
39
|
-
block: r,
|
|
40
|
-
viewport: f.viewport
|
|
41
|
-
}, null, 8, ["block", "viewport"]))], 14, E))), 128))], 6));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
//#endregion
|
|
45
|
-
export { D as t };
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { B as e, E as t, F as n, H as r, N as i, Q as a, S as o, U as ee, at as s, b as c, ct as te, g as l, h as u, k as ne, m as d, n as re, o as ie, p as f, u as p, ut as m, y as h } from "./draggable-akeQH_JP.js";
|
|
2
|
-
import { _ as g, g as ae } from "./dist-Doy3r07H.js";
|
|
3
|
-
import { $ as _, F as oe, O as se, g as ce, i as le, u as ue } from "./keys-UAWhQ3zW.js";
|
|
4
|
-
import { D as v, N as de, Pt as fe, V as pe, at as me, f as y, l as b, n as x } from "./icons-CjlNV8xD.js";
|
|
5
|
-
import { t as S } from "./LoadingTrack-YU44CM8X.js";
|
|
6
|
-
import { t as C } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
-
import { t as w } from "./useAliveFlag-PuXh83UK.js";
|
|
8
|
-
import { _ as T } from "./cloud-CI_fgDyy.js";
|
|
9
|
-
//#region src/cloud/components/AiChatSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var E = ["aria-label"], D = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, O = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, k = { class: "tpl:flex tpl:items-center tpl:gap-1" }, A = ["aria-label", "title"], j = ["aria-label"], M = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" }, N = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
13
|
-
}, P = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, F = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
16
|
-
}, I = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, L = {
|
|
17
|
-
key: 2,
|
|
18
|
-
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
19
|
-
}, R = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "tpl:self-end tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm",
|
|
22
|
-
style: {
|
|
23
|
-
"background-color": "var(--tpl-primary-light)",
|
|
24
|
-
color: "var(--tpl-text)",
|
|
25
|
-
"max-width": "85%",
|
|
26
|
-
"box-shadow": "var(--tpl-shadow)"
|
|
27
|
-
}
|
|
28
|
-
}, z = {
|
|
29
|
-
key: 1,
|
|
30
|
-
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
31
|
-
}, he = {
|
|
32
|
-
key: 1,
|
|
33
|
-
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
|
|
34
|
-
style: {
|
|
35
|
-
"max-width": "85%",
|
|
36
|
-
"background-color": "var(--tpl-bg)",
|
|
37
|
-
color: "var(--tpl-text)",
|
|
38
|
-
"box-shadow": "var(--tpl-shadow)"
|
|
39
|
-
}
|
|
40
|
-
}, ge = {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "tpl:mx-3 tpl:mb-2 tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs",
|
|
43
|
-
style: {
|
|
44
|
-
"background-color": "var(--tpl-danger-light)",
|
|
45
|
-
color: "var(--tpl-danger)"
|
|
46
|
-
}
|
|
47
|
-
}, _e = {
|
|
48
|
-
key: 1,
|
|
49
|
-
class: "tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3",
|
|
50
|
-
style: {
|
|
51
|
-
"background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 50%,\n transparent\n )",
|
|
52
|
-
"backdrop-filter": "blur(2px)"
|
|
53
|
-
}
|
|
54
|
-
}, ve = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, ye = ["onClick"], be = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, xe = { class: "tpl-ai-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)]" }, Se = ["placeholder", "disabled"], Ce = ["disabled"], we = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, B = /*#__PURE__*/ C(/* @__PURE__ */ o({
|
|
55
|
-
__name: "AiChatSidebar",
|
|
56
|
-
props: {
|
|
57
|
-
visible: { type: Boolean },
|
|
58
|
-
onApply: { type: Function }
|
|
59
|
-
},
|
|
60
|
-
emits: ["close"],
|
|
61
|
-
setup(o, { emit: C }) {
|
|
62
|
-
let B = o, Te = C, V = _(ue, "AiChatSidebar"), H = _(ce, "AiChatSidebar"), Ee = _(le, "AiChatSidebar"), U = t(se, oe), W = w(), G = T({
|
|
63
|
-
authManager: Ee,
|
|
64
|
-
getTemplateId: () => H.state.template?.id ?? null,
|
|
65
|
-
onApply: B.onApply,
|
|
66
|
-
onError: void 0
|
|
67
|
-
}), K = a(""), q = a(null), J = a(!1), Y = a(0), { pause: X, resume: De } = ae(() => {
|
|
68
|
-
Y.value < (G.suggestions.value?.length ?? 0) ? Y.value++ : X();
|
|
69
|
-
}, 150, { immediate: !1 }), { start: Oe } = g(() => De(), 100, { immediate: !1 });
|
|
70
|
-
e(() => G.suggestions.value?.length ?? 0, (e) => {
|
|
71
|
-
X(), e === 0 ? Y.value = 0 : (Y.value = 0, Oe());
|
|
72
|
-
});
|
|
73
|
-
function Z() {
|
|
74
|
-
ne(() => {
|
|
75
|
-
q.value && (q.value.scrollTop = q.value.scrollHeight);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
e(() => G.messages.value?.length ?? 0, () => Z()), e(() => B.visible, async (e) => {
|
|
79
|
-
if (e && !J.value) {
|
|
80
|
-
if (J.value = !0, await G.loadConversation(), !W.alive) return;
|
|
81
|
-
(G.messages.value?.length ?? 0) === 0 && H.content.value.blocks.length === 0 && G.loadSuggestions(H.content.value, U.value);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
async function Q() {
|
|
85
|
-
let e = K.value.trim();
|
|
86
|
-
e && !G.isGenerating.value && (K.value = "", G.error.value = null, G.failedPrompt.value = null, Z(), await G.sendPrompt(e, H.content.value, U.value), W.alive && (G.failedPrompt.value && (K.value = G.failedPrompt.value), Z()));
|
|
87
|
-
}
|
|
88
|
-
function $(e) {
|
|
89
|
-
return e.replace(/```json[\s\S]*?```/g, "").replace(/```json[\s\S]*/g, "").trim();
|
|
90
|
-
}
|
|
91
|
-
function ke(e) {
|
|
92
|
-
X(), K.value = e, Q();
|
|
93
|
-
}
|
|
94
|
-
function Ae(e) {
|
|
95
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q());
|
|
96
|
-
}
|
|
97
|
-
return (e, t) => (i(), d(re, {
|
|
98
|
-
"enter-active-class": "tpl-ai-slide-enter-active",
|
|
99
|
-
"enter-from-class": "tpl:translate-x-full",
|
|
100
|
-
"enter-to-class": "tpl:translate-x-0",
|
|
101
|
-
"leave-active-class": "tpl-ai-slide-leave-active",
|
|
102
|
-
"leave-from-class": "tpl:translate-x-0",
|
|
103
|
-
"leave-to-class": "tpl:translate-x-full"
|
|
104
|
-
}, {
|
|
105
|
-
default: r(() => [o.visible ? (i(), l("div", {
|
|
106
|
-
key: 0,
|
|
107
|
-
role: "complementary",
|
|
108
|
-
"aria-label": s(V).aiChat.title,
|
|
109
|
-
class: "tpl-ai-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)]"
|
|
110
|
-
}, [
|
|
111
|
-
f("div", D, [f("div", O, [c(s(v), {
|
|
112
|
-
size: 13,
|
|
113
|
-
"stroke-width": 2
|
|
114
|
-
}), f("span", null, m(s(V).aiChat.title), 1)]), f("div", k, [(s(G).messages.value?.length ?? 0) > 0 ? (i(), l("button", {
|
|
115
|
-
key: 0,
|
|
116
|
-
type: "button",
|
|
117
|
-
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
118
|
-
"aria-label": s(V).aiChat.clear,
|
|
119
|
-
title: s(V).aiChat.clear,
|
|
120
|
-
onClick: t[0] ||= (e) => s(G).clearChat()
|
|
121
|
-
}, [c(s(y), {
|
|
122
|
-
size: 14,
|
|
123
|
-
"stroke-width": 2
|
|
124
|
-
})], 8, A)) : u("", !0), f("button", {
|
|
125
|
-
type: "button",
|
|
126
|
-
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
127
|
-
"aria-label": s(V).aiChat.close,
|
|
128
|
-
onClick: t[1] ||= (e) => Te("close")
|
|
129
|
-
}, [c(s(x), {
|
|
130
|
-
size: 14,
|
|
131
|
-
"stroke-width": 2
|
|
132
|
-
})], 8, j)])]),
|
|
133
|
-
f("div", M, [
|
|
134
|
-
f("div", {
|
|
135
|
-
ref_key: "messagesContainer",
|
|
136
|
-
ref: q,
|
|
137
|
-
class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
|
|
138
|
-
}, [s(G).isLoadingHistory.value ? (i(), l("div", N, [c(s(me), {
|
|
139
|
-
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
140
|
-
size: 24,
|
|
141
|
-
"stroke-width": 2
|
|
142
|
-
}), f("p", P, m(s(V).aiChat.loadingHistory), 1)])) : (s(G).messages.value?.length ?? 0) === 0 ? (i(), l("div", F, [c(s(v), {
|
|
143
|
-
size: 32,
|
|
144
|
-
"stroke-width": 1.5,
|
|
145
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
146
|
-
}), f("p", I, m(s(V).aiChat.placeholder), 1)])) : (i(), l("div", L, [(i(!0), l(p, null, n(s(G).messages.value, (e, n) => (i(), l("div", {
|
|
147
|
-
key: e.id,
|
|
148
|
-
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
149
|
-
}, [e.role === "user" ? (i(), l("div", R, m(e.content), 1)) : (i(), l("div", z, [!$(e.content) && s(G).isGenerating.value && n === (s(G).messages.value?.length ?? 0) - 1 ? (i(), d(S, { key: 0 })) : (i(), l("div", he, m($(e.content) || s(V).aiChat.applied), 1)), e.id === s(G).lastApplyMessageId.value && !s(G).isGenerating.value ? (i(), l("button", {
|
|
150
|
-
key: 2,
|
|
151
|
-
class: "tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:self-start tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all",
|
|
152
|
-
style: {
|
|
153
|
-
"border-color": "var(--tpl-border)",
|
|
154
|
-
color: "var(--tpl-text-muted)",
|
|
155
|
-
"background-color": "transparent"
|
|
156
|
-
},
|
|
157
|
-
onClick: t[2] ||= (e) => s(G).toggleLastRevert()
|
|
158
|
-
}, [s(G).isLastChangeReverted.value ? (i(), l(p, { key: 0 }, [c(s(pe), {
|
|
159
|
-
size: 12,
|
|
160
|
-
"stroke-width": 2
|
|
161
|
-
}), h(" " + m(s(V).aiChat.reapply), 1)], 64)) : (i(), l(p, { key: 1 }, [c(s(b), {
|
|
162
|
-
size: 12,
|
|
163
|
-
"stroke-width": 2
|
|
164
|
-
}), h(" " + m(s(V).aiChat.revert), 1)], 64))])) : u("", !0)]))]))), 128))]))], 512),
|
|
165
|
-
s(G).error.value ? (i(), l("div", ge, [c(s(fe), {
|
|
166
|
-
size: 14,
|
|
167
|
-
"stroke-width": 2,
|
|
168
|
-
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
169
|
-
}), f("span", null, m(s(G).error.value === "ai_apply_failed" ? s(V).aiChat.applyFailed : s(V).aiChat.error), 1)])) : u("", !0),
|
|
170
|
-
(s(G).suggestions.value?.length ?? 0) > 0 ? (i(), l("div", _e, [f("div", ve, [(i(!0), l(p, null, n(s(G).suggestions.value ?? [], (e, t) => (i(), l("button", {
|
|
171
|
-
key: t,
|
|
172
|
-
class: te(["tpl-suggestion-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", (s(G).suggestions.value?.length ?? 0) - 1 - t < Y.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
|
|
173
|
-
style: {
|
|
174
|
-
"border-color": "var(--tpl-border)",
|
|
175
|
-
color: "var(--tpl-primary)",
|
|
176
|
-
"background-color": "var(--tpl-bg)",
|
|
177
|
-
"box-shadow": "var(--tpl-shadow)"
|
|
178
|
-
},
|
|
179
|
-
onClick: (t) => ke(e)
|
|
180
|
-
}, m(e), 11, ye))), 128))])])) : u("", !0)
|
|
181
|
-
]),
|
|
182
|
-
f("div", be, [f("div", xe, [ee(f("textarea", {
|
|
183
|
-
"onUpdate:modelValue": t[3] ||= (e) => K.value = e,
|
|
184
|
-
class: "tpl:max-h-32 tpl:min-h-[64px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-sm tpl:outline-none tpl:text-[var(--tpl-text)]",
|
|
185
|
-
placeholder: s(V).aiChat.inputPlaceholder,
|
|
186
|
-
disabled: s(G).isGenerating.value,
|
|
187
|
-
rows: "3",
|
|
188
|
-
onKeydown: Ae
|
|
189
|
-
}, null, 40, Se), [[ie, K.value]]), f("button", {
|
|
190
|
-
class: "tpl-ai-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)]",
|
|
191
|
-
disabled: !K.value.trim() || s(G).isGenerating.value,
|
|
192
|
-
onClick: Q
|
|
193
|
-
}, [c(s(de), {
|
|
194
|
-
size: 16,
|
|
195
|
-
"stroke-width": 2
|
|
196
|
-
})], 8, Ce)]), f("p", we, m(s(V).aiMenu.disclaimer), 1)])
|
|
197
|
-
], 8, E)) : u("", !0)]),
|
|
198
|
-
_: 1
|
|
199
|
-
}));
|
|
200
|
-
}
|
|
201
|
-
}), [["__scopeId", "data-v-0a3b048c"]]);
|
|
202
|
-
//#endregion
|
|
203
|
-
export { B as default };
|
|
204
|
-
|
|
205
|
-
//# sourceMappingURL=AiChatSidebar-yXJ85Zcg.js.map
|