@templatical/editor 0.47.0 → 0.49.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 +1 -1
- package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-CdjTb9ej.js} +14 -14
- package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-DKm7VYCs.js} +7 -7
- package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BdpJwim0.js} +5 -5
- package/dist/BlockPreviewCanvas-D_sowkf0.js +141 -0
- package/dist/CloudHeaderExtras-CI8RR9hG.js +55 -0
- package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-1hwFiJ0G.js} +39 -68
- package/dist/CollaborationNotices-BWpKzueF.js +73 -0
- package/dist/CollaboratorBar-D87phJsw.js +123 -0
- package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-BUvUzO3T.js} +2 -2
- package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-J65znlrH.js} +14 -14
- package/dist/{CountdownBlock-zx39Dyby.js → CountdownBlock-DPQXWRvU.js} +4 -4
- package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-CLMIwfK7.js} +7 -7
- package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BTwCFgz8.js} +13 -13
- package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-DeeVsfG7.js} +8 -8
- package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-BXOptf5g.js} +1 -1
- package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-CR5E4jSG.js} +17 -17
- package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-C_wxoUMG.js} +3 -3
- package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-BVXDkqtH.js} +2 -2
- package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-BEw_r0PJ.js} +3 -3
- package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-CJTpFmVd.js} +7 -7
- package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-zLV44z-R.js} +135 -135
- package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BaDpy3cL.js} +6 -6
- package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-CsvniFlI.js} +9 -9
- package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-DzWURF_e.js} +34 -35
- package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-B8DCFW7t.js} +14 -14
- package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-B3Af8ns2.js} +2 -2
- package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-Dj11-Lqp.js} +5 -5
- package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-Ba9sgvjS.js} +16 -16
- package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Cu5X9DgA.js} +11 -11
- package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-BeRYV3eg.js} +14 -14
- package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-B8c3fQi2.js} +2 -2
- package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-CvpNUoAp.js} +13 -13
- package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-DHweVJOr.js} +2 -2
- package/dist/Toolbar-BadDSkkF.js +3153 -0
- package/dist/{TplModal-CoczSDma.js → TplModal-BZgi9Tes.js} +5 -5
- package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-BRlcQ8wX.js} +10 -10
- package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-DGkllN3a.js} +2 -2
- package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-F-811aps.js} +4 -4
- package/dist/WrapperBlock-DiiaxpMb.js +45 -0
- package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CayLluou.js} +49 -19
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +40 -2
- package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-yXJ85Zcg.js} +12 -12
- package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-yXJ85Zcg.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-4ydjrhsQ.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-4ydjrhsQ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-D1VBS_6x.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-D1VBS_6x.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js +143 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-DEkRww7n.js} +16 -20
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-XufhBZYF.js} +38 -67
- package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +1 -0
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js +75 -0
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +1 -0
- package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js +72 -0
- package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-R8YLLO3v.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-R8YLLO3v.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-96NZHVq3.js} +16 -16
- package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-96NZHVq3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js → CountdownBlock-DB4JNdqh.js} +5 -5
- package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js.map → CountdownBlock-DB4JNdqh.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-tmiTPEXm.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-tmiTPEXm.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-D14IIu_P.js} +40 -40
- package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-D14IIu_P.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-BoPiCLGc.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-BoPiCLGc.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js → LoadingTrack-YU44CM8X.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js.map → LoadingTrack-YU44CM8X.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BJ2t2vxC.js} +98 -98
- package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BJ2t2vxC.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-DD0SZ-S3.js} +3 -3
- package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-DD0SZ-S3.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-CkdJ_kGp.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-CkdJ_kGp.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-7wXX71DH.js} +4 -4
- package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-7wXX71DH.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-r9vHH4u_.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-r9vHH4u_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-CJQjRHXV.js} +52 -52
- package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-CJQjRHXV.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-C5cxBRKi.js} +8 -8
- package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-C5cxBRKi.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-BfE7Bkge.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-BfE7Bkge.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BKbjUnPM.js} +25 -26
- package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BKbjUnPM.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-BMtyUrUP.js} +10 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-BMtyUrUP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-s_gxi1im.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-s_gxi1im.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-B8WHk5mI.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-B8WHk5mI.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BBPnHILC.js} +10 -10
- package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BBPnHILC.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-CtrzzQWl.js} +14 -14
- package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-CtrzzQWl.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-DuZKYMWD.js} +15 -15
- package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-DuZKYMWD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DERaCdpG.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DERaCdpG.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CEgxjtUX.js} +20 -20
- package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CEgxjtUX.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-DGQ7iRc-.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-DGQ7iRc-.js.map} +1 -1
- package/dist/cdn/chunks/Toolbar-GFIZQHzw.js +3070 -0
- package/dist/cdn/chunks/Toolbar-GFIZQHzw.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DDrbWJcE.js} +5 -5
- package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DDrbWJcE.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-MlxsUmuT.js} +11 -11
- package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-MlxsUmuT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DVOV8QLv.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DVOV8QLv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-BQwRKc6S.js} +5 -5
- package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-BQwRKc6S.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +47 -0
- package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +22 -0
- package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js.map +1 -0
- package/dist/cdn/chunks/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +41 -3
- package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +1 -0
- package/dist/{cloud-DwjaAdwK.js → cdn/chunks/cloud-CI_fgDyy.js} +116 -293
- package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-DiYCJ21w.js} +127 -169
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +1 -0
- package/dist/{de-DgAelLbM.js → cdn/chunks/de-CBE6O79z.js} +42 -2
- package/dist/cdn/chunks/de-CBE6O79z.js.map +1 -0
- package/dist/{de-mMY5yQJu.js → cdn/chunks/de-D_atmUVB.js} +2 -4
- package/dist/cdn/chunks/{de-mMY5yQJu.js.map → de-D_atmUVB.js.map} +1 -1
- package/dist/cdn/chunks/{dist-MNQYSEWU.js → dist-DdwjXLme.js} +3 -3
- package/dist/cdn/chunks/{dist-MNQYSEWU.js.map → dist-DdwjXLme.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CjL6JHML.js → dist-Doy3r07H.js} +2 -2
- package/dist/cdn/chunks/{dist-CjL6JHML.js.map → dist-Doy3r07H.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DrsNwZuB.js → draggable-akeQH_JP.js} +1682 -1683
- package/dist/cdn/chunks/draggable-akeQH_JP.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-HJBy9kLj.js} +69 -69
- package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-HJBy9kLj.js.map} +1 -1
- package/dist/cdn/chunks/{en-Dekrl7HA.js → en-CDexnk0p.js} +41 -3
- package/dist/cdn/chunks/en-CDexnk0p.js.map +1 -0
- package/dist/{en-ChVeGQBY.js → cdn/chunks/en-DhJLnaBx.js} +2 -4
- package/dist/cdn/chunks/en-DhJLnaBx.js.map +1 -0
- package/dist/cdn/chunks/en-Ve-PWSXu.js +1 -0
- package/dist/{es-BaZzyidV.js → cdn/chunks/es-BE42B6uN.js} +42 -2
- package/dist/cdn/chunks/es-BE42B6uN.js.map +1 -0
- package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-koOuDeZS.js} +23 -23
- package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-koOuDeZS.js.map} +1 -1
- package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-DlJFPDQR.js} +42 -2
- package/dist/cdn/chunks/fr-DlJFPDQR.js.map +1 -0
- package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-CjlNV8xD.js} +121 -92
- package/dist/cdn/chunks/icons-CjlNV8xD.js.map +1 -0
- package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-CUT8gkNI.js} +42 -2
- package/dist/cdn/chunks/ja-CUT8gkNI.js.map +1 -0
- package/dist/cdn/chunks/{keys-HI-INbkz.js → keys-UAWhQ3zW.js} +2 -2
- package/dist/cdn/chunks/{keys-HI-INbkz.js.map → keys-UAWhQ3zW.js.map} +1 -1
- package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-bXWqqRyS.js} +42 -2
- package/dist/cdn/chunks/nl-bXWqqRyS.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-DqKbdTJ8.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-DqKbdTJ8.js.map} +1 -1
- package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-2_H4-wlb.js} +42 -2
- package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +1 -0
- package/dist/{pt-BR-CoCwRUi0.js → cdn/chunks/pt-BR-BphMoUTw.js} +2 -4
- package/dist/cdn/chunks/{pt-BR-CoCwRUi0.js.map → pt-BR-BphMoUTw.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-C8DeiO2X.js → pusher-Cs4GGEtd.js} +2 -2
- package/dist/cdn/chunks/pusher-Cs4GGEtd.js.map +1 -0
- package/dist/cdn/chunks/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-Y_bBpyJl.js} +1 -1
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js +2091 -0
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +1 -0
- package/dist/cdn/chunks/{src-CHlVFp7r.js → src-B1e5SSYP.js} +312 -286
- package/dist/cdn/chunks/src-B1e5SSYP.js.map +1 -0
- package/dist/cdn/chunks/src-B77z1iw4.js +649 -0
- package/dist/cdn/chunks/src-B77z1iw4.js.map +1 -0
- package/dist/cdn/chunks/{src-BnJlDuyB.js → src-CvLTYGdO.js} +555 -283
- package/dist/cdn/chunks/src-CvLTYGdO.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +2 -4
- package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js.map → styleConstants-v1dNKgJf.js.map} +1 -1
- package/dist/cdn/chunks/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +2 -2
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BPigZk5G.js → tiptap-B1RfWFzB.js} +3 -3
- package/dist/cdn/chunks/tiptap-B1RfWFzB.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js → useAliveFlag-PuXh83UK.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js.map → useAliveFlag-PuXh83UK.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js → useCloudI18n-kp07GQmk.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js.map → useCloudI18n-kp07GQmk.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-DpCFvHg_.js} +758 -732
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-CTc6O8al.js.map → useEditorRoot-5SBqm90x.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js → useI18n-DEqtEgOs.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js.map → useI18n-DEqtEgOs.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-X8bc5qNl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-X8bc5qNl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-DFoOexIQ.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-DFoOexIQ.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js → usePopoverPosition-Cz9-XiXR.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js.map → usePopoverPosition-Cz9-XiXR.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js → useScrollToBlock-MNzurEZV.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js.map → useScrollToBlock-MNzurEZV.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-D-f61ghC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-D-f61ghC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1328 -1069
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-B5R4zXr7.js → check-DQQzkmIC.js} +1 -1
- package/dist/{chevron-down-BKyl85NV.js → chevron-down-CIF4bdon.js} +1 -1
- package/dist/{chevron-right-BmToZ8qX.js → chevron-right-Cg7Xu-ev.js} +1 -1
- package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Csu7ISD-.js} +1 -1
- package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-YUvIJAgY.js} +1 -1
- package/dist/{clock-Dv9bxsSH.js → clock-CnSIGKQW.js} +1 -1
- package/dist/{cdn/chunks/cloud-Cd7ptfhL.js → cloud-YUYDtdHt.js} +308 -569
- package/dist/{copy-BsKl4dcy.js → copy-CUC43md_.js} +1 -1
- package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-BMDRjL0k.js} +126 -168
- package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-BcP1sjdp.js} +6 -6
- package/dist/{cdn/chunks/de-DgAelLbM.js → de-CBE6O79z.js} +40 -4
- package/dist/{cdn/chunks/de-mMY5yQJu.js → de-D_atmUVB.js} +0 -6
- package/dist/{dist-CUWI-IvA.js → dist-Bv_GBr2l.js} +1 -1
- package/dist/{dist-DAAJogrx.js → dist-CCqn-RqE.js} +2 -2
- package/dist/{dist-DuufrR8O.js → dist-CNqjHA8e.js} +2 -2
- package/dist/{dist-C8koXLhl.js → dist-DBG3nh3k.js} +550 -284
- package/dist/{editor-modal-BwyIUnV_.js → editor-modal--7_9A6j-.js} +27 -27
- package/dist/en-BHCMzqib.js +1 -0
- package/dist/{en-Dekrl7HA.js → en-CDexnk0p.js} +40 -2
- package/dist/{cdn/chunks/en-ChVeGQBY.js → en-DhJLnaBx.js} +0 -6
- package/dist/{cdn/chunks/es-BaZzyidV.js → es-BE42B6uN.js} +40 -4
- package/dist/{extensions-DHyKjsNZ.js → extensions-zwsZlWjH.js} +23 -23
- package/dist/{eye-DQuinb9k.js → eye-B1bua-ck.js} +1 -1
- package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-DlJFPDQR.js} +40 -4
- package/dist/{image-up-yTfLjOrj.js → image-up-BqiO7KCO.js} +1 -1
- package/dist/index.d.ts +356 -38
- package/dist/{info-C7OjlS11.js → info-x26nGOo2.js} +1 -1
- package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-CUT8gkNI.js} +40 -4
- package/dist/{keys-BKFq19a2.js → keys-BymCnLHD.js} +1 -1
- package/dist/{link-CrUFaZ0t.js → link-CezhndyR.js} +1 -1
- package/dist/{list-CLgv6M-k.js → list-DQqdptI0.js} +1 -1
- package/dist/{loader-circle-BXM5VO0K.js → loader-circle-DCEeoYoi.js} +1 -1
- package/dist/{message-circle-BisdQ8H9.js → message-circle-BLGzfv_7.js} +1 -1
- package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-bXWqqRyS.js} +40 -4
- package/dist/{package-C1T4AxV1.js → package-D_kEQCMU.js} +1 -1
- package/dist/{pencil-oo2mwf4C.js → pencil-Dct8zGLy.js} +1 -1
- package/dist/{plus-BIilXopD.js → plus-BDd0gTEm.js} +1 -1
- package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-CtKJecE-.js} +1 -1
- package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-2_H4-wlb.js} +40 -4
- package/dist/{cdn/chunks/pt-BR-CoCwRUi0.js → pt-BR-BphMoUTw.js} +0 -6
- package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-tGMRDxr8.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-lFF-QG3j.js → runtime-dom.esm-bundler-DYn1z2Xf.js} +1 -1
- package/dist/{search-DNu9lImk.js → search-Bm2cCQpe.js} +1 -1
- package/dist/{send-DDNh3LoJ.js → send-sVLaKZ7f.js} +1 -1
- package/dist/{shield-check-aXM3o14f.js → shield-check-YhsbXfQc.js} +1 -1
- package/dist/{smartphone-isccgDee.js → smartphone-B2W81p02.js} +1 -1
- package/dist/socialIcons-Bwv-49EB.js +2167 -0
- package/dist/{sparkles-CIMfFxKv.js → sparkles-a1qkBZ8X.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +1 -3
- package/dist/templatical-editor.js +1448 -1189
- package/dist/{text-align-start-C4JFeqsq.js → text-align-start-CTuwQ5YW.js} +1 -1
- package/dist/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +1 -1
- package/dist/{trash-8ZD9pK_c.js → trash-I3D2peFQ.js} +1 -1
- package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-CenxmLRE.js} +1 -1
- package/dist/{upload-DrNFmVes.js → upload-uU2cK0Ce.js} +1 -1
- package/dist/{useAliveFlag-Dd06mRxe.js → useAliveFlag-BjP0Gxza.js} +1 -1
- package/dist/{useCloudI18n-Nwqo7pI_.js → useCloudI18n-CGVEZV3o.js} +2 -2
- package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-DRbMRe8F.js} +1103 -1076
- package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-BVm2-1N8.js} +2 -2
- package/dist/{useI18n-CxVEpurs.js → useI18n-CSh4gO5c.js} +2 -2
- package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-zcI6BWIf.js} +3 -3
- package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-C-iBLlp0.js} +5 -5
- package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-CMcsMBtK.js} +2 -2
- package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CdCQK9QQ.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CAzmrXdD.js → vue.runtime.esm-bundler-DV0Wx4r_.js} +1079 -1080
- package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-D62njRLu.js} +1 -1
- package/dist/{x-CBFKGLB1.js → x-KFQ4S-Kz.js} +1 -1
- package/package.json +12 -12
- package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
- package/dist/CloudHeaderExtras-gXsTYoGG.js +0 -59
- package/dist/CollaboratorBar-BazGNMqN.js +0 -103
- package/dist/Toolbar-OGakTBEg.js +0 -2851
- package/dist/WrapperBlock-BOABSX9W.js +0 -46
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DJXLTUHc.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-D1fPLjG8.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js +0 -52
- package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
- package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
- package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
- package/dist/cdn/chunks/cloud-Cd7ptfhL.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +0 -1
- package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
- package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
- package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
- package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
- package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
- package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
- package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
- package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
- package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
- package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js +0 -1103
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
- package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
- package/dist/cdn/chunks/src-Bu0qBpbf.js +0 -616
- package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
- package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
- package/dist/en-CC-57eC_.js +0 -1
- package/dist/socialIcons-BctavKBN.js +0 -1180
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ See the [Shadow DOM guide](https://docs.templatical.com/guide/shadow-dom) for tr
|
|
|
85
85
|
|
|
86
86
|
## Cloud features
|
|
87
87
|
|
|
88
|
-
AI rewrite
|
|
88
|
+
AI rewrite goes through `initCloud()`. Comments, version history, saved blocks, test email, rendering and real-time collaboration are **not** Cloud-only — configure each against your own backend with `init()`. See [Connect your backend](https://docs.templatical.com/backend/).
|
|
89
89
|
|
|
90
90
|
## Documentation
|
|
91
91
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { A as e, B as t, E as n, M as r, R as i, S as ee, V as te, Z as a, at as o, c as s, d as c, g as l, h as u, jt as d, kt as ne, l as f, r as p, u as m, v as h } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as re, t as ie } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { _ as ae, g as oe } from "./dist-
|
|
4
|
-
import { $ as g, F as _, O as se, g as ce, i as le, u as ue } from "./keys-
|
|
5
|
-
import { t as v } from "./createLucideIcon-
|
|
6
|
-
import { t as de } from "./circle-alert-
|
|
7
|
-
import { t as fe } from "./loader-circle-
|
|
8
|
-
import { t as pe } from "./send-
|
|
9
|
-
import { t as y } from "./sparkles-
|
|
10
|
-
import { t as me } from "./trash-
|
|
11
|
-
import { t as he } from "./x-
|
|
12
|
-
import { t as b } from "./LoadingTrack-
|
|
1
|
+
import { A as e, B as t, E as n, M as r, R as i, S as ee, V as te, Z as a, at as o, c as s, d as c, g as l, h as u, jt as d, kt as ne, l as f, r as p, u as m, v as h } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
+
import { a as re, t as ie } from "./runtime-dom.esm-bundler-DYn1z2Xf.js";
|
|
3
|
+
import { _ as ae, g as oe } from "./dist-Bv_GBr2l.js";
|
|
4
|
+
import { $ as g, F as _, O as se, g as ce, i as le, u as ue } from "./keys-BymCnLHD.js";
|
|
5
|
+
import { t as v } from "./createLucideIcon-BcP1sjdp.js";
|
|
6
|
+
import { t as de } from "./circle-alert-YUvIJAgY.js";
|
|
7
|
+
import { t as fe } from "./loader-circle-DCEeoYoi.js";
|
|
8
|
+
import { t as pe } from "./send-sVLaKZ7f.js";
|
|
9
|
+
import { t as y } from "./sparkles-a1qkBZ8X.js";
|
|
10
|
+
import { t as me } from "./trash-I3D2peFQ.js";
|
|
11
|
+
import { t as he } from "./x-KFQ4S-Kz.js";
|
|
12
|
+
import { t as b } from "./LoadingTrack-BXOptf5g.js";
|
|
13
13
|
import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
-
import { t as S } from "./useAliveFlag-
|
|
15
|
-
import { p as C } from "./cloud-
|
|
14
|
+
import { t as S } from "./useAliveFlag-BjP0Gxza.js";
|
|
15
|
+
import { p as C } from "./cloud-YUYDtdHt.js";
|
|
16
16
|
var w = v({
|
|
17
17
|
name: "redo-2",
|
|
18
18
|
size: 24,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as e, At as t, F as n, M as r, c as i, d as a, jt as o, l as s, r as c, s as l, v as u } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { $ as d, t as f } from "./keys-
|
|
4
|
-
import { t as p } from "./image-up-
|
|
5
|
-
import { t as m } from "./shield-check-
|
|
6
|
-
import { t as h } from "./sparkles-
|
|
1
|
+
import { A as e, At as t, F as n, M as r, c as i, d as a, jt as o, l as s, r as c, s as l, v as u } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
+
import "./useEditorCore-DRbMRe8F.js";
|
|
3
|
+
import { $ as d, t as f } from "./keys-BymCnLHD.js";
|
|
4
|
+
import { t as p } from "./image-up-BqiO7KCO.js";
|
|
5
|
+
import { t as m } from "./shield-check-YhsbXfQc.js";
|
|
6
|
+
import { t as h } from "./sparkles-a1qkBZ8X.js";
|
|
7
7
|
import { t as g } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
-
import { n as _ } from "./useCloudI18n-
|
|
8
|
+
import { n as _ } from "./useCloudI18n-CGVEZV3o.js";
|
|
9
9
|
//#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var v = { class: "tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]" }, y = ["onClick"], b = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, x = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, S = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]" }, C = /*#__PURE__*/ g(/* @__PURE__ */ u({
|
|
11
11
|
__name: "AiFeatureMenu",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as e, S as t, at as n, d as r, kt as i, l as a, s as o, u as s, v as c } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { K as l } from "./keys-
|
|
3
|
-
import { t as u } from "./useI18n-
|
|
4
|
-
import { t as d } from "./circle-alert-
|
|
5
|
-
import { t as f } from "./triangle-alert-
|
|
1
|
+
import { A as e, S as t, at as n, d as r, kt as i, l as a, s as o, u as s, v as c } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
+
import { K as l } from "./keys-BymCnLHD.js";
|
|
3
|
+
import { t as u } from "./useI18n-CSh4gO5c.js";
|
|
4
|
+
import { t as d } from "./circle-alert-YUvIJAgY.js";
|
|
5
|
+
import { t as f } from "./triangle-alert-CenxmLRE.js";
|
|
6
6
|
//#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
|
|
8
8
|
__name: "BlockIssueBadge",
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { A as t, At as n, F as r, M as i, P as a, S as o, at as s, c, d as l, j as u, l as d, r as f, s as p, v as m } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
3
|
+
import { d as h, ut as g } from "./dist-DBG3nh3k.js";
|
|
4
|
+
import { a as _, c as v, s as y } from "./socialIcons-Bwv-49EB.js";
|
|
5
|
+
import { A as b, M as x, O as S, P as C, _ as w, a as T, f as E, g as D, h as O, i as k, j as ee, m as A, n as j, p as M, r as N, u as P } from "./useEditorCore-DRbMRe8F.js";
|
|
6
|
+
import { $ as F, M as I, P as L, Q as R, f as te, g as ne, s as z, v as B, x as V } from "./keys-BymCnLHD.js";
|
|
7
|
+
import { t as H } from "./WrapperBlock-DiiaxpMb.js";
|
|
8
|
+
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var U = { class: "tpl:w-full" }, W = { class: "tpl:flex tpl:gap-0" }, G = /* @__PURE__ */ m({
|
|
10
|
+
name: "PreviewSectionBlock",
|
|
11
|
+
__name: "PreviewSectionBlock",
|
|
12
|
+
props: {
|
|
13
|
+
block: {},
|
|
14
|
+
viewport: {}
|
|
15
|
+
},
|
|
16
|
+
setup(e) {
|
|
17
|
+
let u = {
|
|
18
|
+
title: P,
|
|
19
|
+
paragraph: E,
|
|
20
|
+
image: A,
|
|
21
|
+
video: j,
|
|
22
|
+
button: S,
|
|
23
|
+
divider: D,
|
|
24
|
+
social: T,
|
|
25
|
+
menu: M,
|
|
26
|
+
table: N,
|
|
27
|
+
spacer: k,
|
|
28
|
+
html: O,
|
|
29
|
+
custom: w
|
|
30
|
+
}, m = e, h = o(z, null), g = p(() => {
|
|
31
|
+
switch (m.block.columns) {
|
|
32
|
+
case "2": return ["50%", "50%"];
|
|
33
|
+
case "3": return [
|
|
34
|
+
"33.33%",
|
|
35
|
+
"33.33%",
|
|
36
|
+
"33.33%"
|
|
37
|
+
];
|
|
38
|
+
case "1-2": return ["33.33%", "66.67%"];
|
|
39
|
+
case "2-1": return ["66.67%", "33.33%"];
|
|
40
|
+
default: return ["100%"];
|
|
41
|
+
}
|
|
42
|
+
}), _ = p(() => {
|
|
43
|
+
let e = g.value.length, t = [...m.block.children];
|
|
44
|
+
for (; t.length < e;) t.push([]);
|
|
45
|
+
return t.slice(0, e);
|
|
46
|
+
});
|
|
47
|
+
function v(e) {
|
|
48
|
+
return _.value[e] || [];
|
|
49
|
+
}
|
|
50
|
+
function y(e) {
|
|
51
|
+
return C(e, h, u);
|
|
52
|
+
}
|
|
53
|
+
return (e, o) => {
|
|
54
|
+
let u = a("PreviewSectionBlock", !0);
|
|
55
|
+
return t(), l("div", U, [c("div", W, [(t(!0), l(f, null, i(_.value, (e, a) => (t(), l("div", {
|
|
56
|
+
key: a,
|
|
57
|
+
style: n({ width: g.value[a] })
|
|
58
|
+
}, [(t(!0), l(f, null, i(v(a), (e) => (t(), l("div", {
|
|
59
|
+
key: e.id,
|
|
60
|
+
style: n(s(b)(e))
|
|
61
|
+
}, [e.type === "section" ? (t(), d(u, {
|
|
62
|
+
key: 0,
|
|
63
|
+
block: e,
|
|
64
|
+
viewport: "desktop"
|
|
65
|
+
}, null, 8, ["block"])) : (t(), d(r(y(e)), {
|
|
66
|
+
key: 1,
|
|
67
|
+
block: e,
|
|
68
|
+
viewport: "desktop"
|
|
69
|
+
}, null, 8, ["block"]))], 4))), 128))], 4))), 128))])]);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}), K = ["lang", "dir"], q = /*@__PURE__*/ m({
|
|
73
|
+
__name: "BlockPreviewCanvas",
|
|
74
|
+
props: {
|
|
75
|
+
blocks: {},
|
|
76
|
+
viewport: { default: "desktop" },
|
|
77
|
+
applyConditionFilter: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !0
|
|
80
|
+
},
|
|
81
|
+
settings: { default: void 0 }
|
|
82
|
+
},
|
|
83
|
+
setup(e) {
|
|
84
|
+
let a = e, m = o(z), b = o(ne, null), U = o(te, null), W = F(B, "BlockPreviewCanvas"), q = o(V, null), J = o(L, h.liquid), Y = o(I, null);
|
|
85
|
+
u(R, p(() => Y?.value ?? !1));
|
|
86
|
+
let X = p(() => a.applyConditionFilter ? a.blocks.filter((e) => !U?.isHidden(e.id)) : a.blocks), Z = p(() => a.settings ?? b?.content.value.settings), Q = p(() => v(Z.value, a.viewport)), re = p(() => Z.value ? x(Z.value, W.resolveFontFamily) : {}), ie = p(() => Z.value?.locale?.trim() || void 0), ae = p(() => g(Z.value ?? { locale: "en" })), oe = p(() => Z.value?.backgroundColor || "var(--tpl-canvas-bg)"), $ = p(() => Q.value + 192), se = {
|
|
87
|
+
section: G,
|
|
88
|
+
title: P,
|
|
89
|
+
paragraph: E,
|
|
90
|
+
image: A,
|
|
91
|
+
video: j,
|
|
92
|
+
button: S,
|
|
93
|
+
divider: D,
|
|
94
|
+
social: T,
|
|
95
|
+
menu: M,
|
|
96
|
+
table: N,
|
|
97
|
+
spacer: k,
|
|
98
|
+
html: O,
|
|
99
|
+
custom: w,
|
|
100
|
+
wrapper: H
|
|
101
|
+
};
|
|
102
|
+
function ce(e) {
|
|
103
|
+
return C(e, m, se);
|
|
104
|
+
}
|
|
105
|
+
function le(e) {
|
|
106
|
+
let t = Z.value;
|
|
107
|
+
return ee(e, q, J, _(e, t ? {
|
|
108
|
+
blocks: a.blocks,
|
|
109
|
+
settings: t
|
|
110
|
+
} : void 0));
|
|
111
|
+
}
|
|
112
|
+
return (a, o) => (t(), l("div", {
|
|
113
|
+
"data-testid": "block-preview-stage",
|
|
114
|
+
class: "tpl:pointer-events-none tpl:mx-auto tpl:flex tpl:select-none tpl:justify-center tpl:rounded-lg",
|
|
115
|
+
style: n({
|
|
116
|
+
width: `${$.value}px`,
|
|
117
|
+
minWidth: `${Q.value}px`,
|
|
118
|
+
maxWidth: "100%",
|
|
119
|
+
backgroundColor: oe.value,
|
|
120
|
+
boxShadow: "var(--tpl-shadow-sm)"
|
|
121
|
+
})
|
|
122
|
+
}, [c("div", {
|
|
123
|
+
"data-testid": "block-preview-canvas",
|
|
124
|
+
lang: ie.value,
|
|
125
|
+
dir: ae.value,
|
|
126
|
+
style: n({
|
|
127
|
+
width: `${Q.value}px`,
|
|
128
|
+
transition: s(y),
|
|
129
|
+
...re.value
|
|
130
|
+
})
|
|
131
|
+
}, [(t(!0), l(f, null, i(X.value, (i) => (t(), l("div", {
|
|
132
|
+
key: i.id,
|
|
133
|
+
style: n(le(i))
|
|
134
|
+
}, [(t(), d(r(ce(i)), {
|
|
135
|
+
block: i,
|
|
136
|
+
viewport: e.viewport
|
|
137
|
+
}, null, 8, ["block", "viewport"]))], 4))), 128))], 12, K)], 4));
|
|
138
|
+
}
|
|
139
|
+
}), J = /* @__PURE__ */ e({ default: () => Y }), Y = q;
|
|
140
|
+
//#endregion
|
|
141
|
+
export { J as n, Y as t };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { A as e, B as t, _ as n, at as r, c as i, d as a, g as o, h as s, jt as c, kt as l, r as u, u as d, v as f } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
+
import { c as p, t as m } from "./runtime-dom.esm-bundler-DYn1z2Xf.js";
|
|
3
|
+
import { t as h } from "./sparkles-a1qkBZ8X.js";
|
|
4
|
+
import { n as g } from "./useCloudI18n-CGVEZV3o.js";
|
|
5
|
+
//#region src/cloud/components/CloudHeaderExtras.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _ = {
|
|
7
|
+
key: 0,
|
|
8
|
+
"data-testid": "cloud-template-usage",
|
|
9
|
+
class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
|
|
10
|
+
}, v = ["aria-expanded"], y = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
|
|
13
|
+
}, b = /* @__PURE__ */ f({
|
|
14
|
+
__name: "CloudHeaderExtras",
|
|
15
|
+
props: {
|
|
16
|
+
part: {},
|
|
17
|
+
cloud: {}
|
|
18
|
+
},
|
|
19
|
+
setup(f) {
|
|
20
|
+
let b = n(() => import("./AiFeatureMenu-DKm7VYCs.js")), { t: x, format: S } = g();
|
|
21
|
+
return (n, g) => f.part === "left" ? (e(), a(u, { key: 0 }, [f.cloud.featureFlags.templateLimit.value === null ? d("", !0) : (e(), a("span", _, c(r(S)(r(x).header.templatesUsed, {
|
|
22
|
+
used: f.cloud.featureFlags.templateCount.value,
|
|
23
|
+
max: f.cloud.featureFlags.templateLimit.value
|
|
24
|
+
})), 1))], 64)) : f.part === "right" ? (e(), a(u, { key: 1 }, [f.cloud.featureFlags.canUseAiGeneration.value && f.cloud.featureFlags.hasTemplateSaved.value ? (e(), a("div", {
|
|
25
|
+
key: 0,
|
|
26
|
+
ref: (e) => f.cloud.panelState.aiMenuRef.value = e,
|
|
27
|
+
class: "tpl:relative"
|
|
28
|
+
}, [i("button", {
|
|
29
|
+
type: "button",
|
|
30
|
+
"data-testid": "ai-menu-trigger",
|
|
31
|
+
"aria-expanded": f.cloud.panelState.aiMenuOpen.value,
|
|
32
|
+
class: l(["tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200", f.cloud.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
|
|
33
|
+
onClick: g[0] ||= p((...e) => f.cloud.panelState.toggleAiMenu && f.cloud.panelState.toggleAiMenu(...e), ["stop"])
|
|
34
|
+
}, [o(r(h), {
|
|
35
|
+
size: 16,
|
|
36
|
+
"stroke-width": 2,
|
|
37
|
+
class: "tpl-ai-btn-icon"
|
|
38
|
+
}), s(" " + c(r(x).aiChat.button), 1)], 10, v), o(m, {
|
|
39
|
+
"enter-active-class": "tpl:transition-all tpl:ease-out",
|
|
40
|
+
"enter-from-class": "tpl:scale-95 tpl:opacity-0",
|
|
41
|
+
"enter-to-class": "tpl:scale-100 tpl:opacity-100",
|
|
42
|
+
"leave-active-class": "tpl:transition-all tpl:duration-100 tpl:ease-in",
|
|
43
|
+
"leave-from-class": "tpl:scale-100 tpl:opacity-100",
|
|
44
|
+
"leave-to-class": "tpl:scale-95 tpl:opacity-0"
|
|
45
|
+
}, {
|
|
46
|
+
default: t(() => [f.cloud.panelState.aiMenuOpen.value ? (e(), a("div", y, [o(r(b), {
|
|
47
|
+
"active-feature": f.cloud.panelState.activeAiFeature.value,
|
|
48
|
+
onSelect: f.cloud.panelState.handleAiFeatureSelect
|
|
49
|
+
}, null, 8, ["active-feature", "onSelect"])])) : d("", !0)]),
|
|
50
|
+
_: 1
|
|
51
|
+
})], 512)) : d("", !0)], 64)) : d("", !0);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { b as default };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { A as e, B as t, M as n, _ as r, at as i, c as a, d as o, g as s, jt as c, kt as l, l as u, m as d, r as f, u as p, v as m } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { t as h } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { t as g } from "./
|
|
4
|
-
import { t as _ } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as C } from "./TplModal-CoczSDma.js";
|
|
1
|
+
import { A as e, B as t, M as n, _ as r, at as i, c as a, d as o, g as s, jt as c, kt as l, l as u, m as d, r as f, u as p, v as m } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
+
import { t as h } from "./runtime-dom.esm-bundler-DYn1z2Xf.js";
|
|
3
|
+
import { t as g } from "./circle-alert-YUvIJAgY.js";
|
|
4
|
+
import { t as _ } from "./triangle-alert-CenxmLRE.js";
|
|
5
|
+
import { n as v } from "./useCloudI18n-CGVEZV3o.js";
|
|
6
|
+
import { d as y, v as b, x } from "./styleConstants-v1dNKgJf.js";
|
|
7
|
+
import { t as S } from "./TplModal-BZgi9Tes.js";
|
|
9
8
|
//#region src/cloud/components/CloudErrorOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
9
|
+
var C = {
|
|
11
10
|
key: 0,
|
|
12
11
|
role: "alert",
|
|
13
12
|
class: "tpl-error tpl:absolute tpl:inset-0 tpl:z-[100] tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-6 tpl:px-8 tpl:bg-[var(--tpl-bg)]"
|
|
14
|
-
},
|
|
13
|
+
}, w = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, T = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, E = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, D = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, O = /* @__PURE__ */ m({
|
|
15
14
|
__name: "CloudErrorOverlay",
|
|
16
15
|
props: {
|
|
17
16
|
error: {},
|
|
@@ -19,33 +18,33 @@ var w = {
|
|
|
19
18
|
},
|
|
20
19
|
emits: ["retry"],
|
|
21
20
|
setup(t, { emit: n }) {
|
|
22
|
-
let r = n, { t: u } =
|
|
21
|
+
let r = n, { t: u } = v();
|
|
23
22
|
function d(e) {
|
|
24
23
|
return "isUnauthorized" in e && e.isUnauthorized ? u.error.authFailed : "isNotFound" in e && e.isNotFound ? u.error.templateNotFound : u.error.defaultMessage;
|
|
25
24
|
}
|
|
26
25
|
function f(e) {
|
|
27
26
|
return "isNotFound" in e && !!e.isNotFound;
|
|
28
27
|
}
|
|
29
|
-
return (n, m) => t.visible && t.error ? (e(), o("div",
|
|
30
|
-
a("div",
|
|
28
|
+
return (n, m) => t.visible && t.error ? (e(), o("div", C, [
|
|
29
|
+
a("div", w, [s(i(g), {
|
|
31
30
|
size: 32,
|
|
32
31
|
"stroke-width": 1.5,
|
|
33
32
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
34
33
|
})]),
|
|
35
|
-
a("div",
|
|
34
|
+
a("div", T, [a("h2", E, c(i(u).error.title), 1), a("p", D, c(d(t.error)), 1)]),
|
|
36
35
|
f(t.error) ? p("", !0) : (e(), o("button", {
|
|
37
36
|
key: 0,
|
|
38
37
|
type: "button",
|
|
39
|
-
class: l(i(
|
|
38
|
+
class: l(i(b)),
|
|
40
39
|
onClick: m[0] ||= (e) => r("retry")
|
|
41
40
|
}, c(i(u).error.retry), 3))
|
|
42
41
|
])) : p("", !0);
|
|
43
42
|
}
|
|
44
|
-
}),
|
|
43
|
+
}), k = ["aria-label"], A = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, j = { class: "tpl:flex tpl:w-12 tpl:shrink-0 tpl:flex-col tpl:items-center tpl:gap-4 tpl:py-5 tpl:border-r tpl:border-[var(--tpl-border)]" }, M = /* @__PURE__ */ m({
|
|
45
44
|
__name: "CloudLoadingOverlay",
|
|
46
45
|
props: { visible: { type: Boolean } },
|
|
47
46
|
setup(t) {
|
|
48
|
-
let { t: r } =
|
|
47
|
+
let { t: r } = v();
|
|
49
48
|
return (s, c) => t.visible ? (e(), o("div", {
|
|
50
49
|
key: 0,
|
|
51
50
|
role: "status",
|
|
@@ -53,25 +52,25 @@ var w = {
|
|
|
53
52
|
"aria-busy": "true",
|
|
54
53
|
"aria-label": i(r).loading.initializing,
|
|
55
54
|
class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-[100] tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
|
|
56
|
-
}, [c[1] ||= d("<div class=\"tpl:flex tpl:h-14 tpl:shrink-0 tpl:items-center tpl:justify-between tpl:px-4 tpl:border-b tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl:flex tpl:gap-3\"><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div></div>", 1), a("div",
|
|
55
|
+
}, [c[1] ||= d("<div class=\"tpl:flex tpl:h-14 tpl:shrink-0 tpl:items-center tpl:justify-between tpl:px-4 tpl:border-b tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl:flex tpl:gap-3\"><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div></div>", 1), a("div", A, [a("div", j, [(e(), o(f, null, n(5, (e) => a("div", {
|
|
57
56
|
key: e,
|
|
58
57
|
class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
|
|
59
|
-
})), 64))]), c[0] ||= d("<div class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"><div class=\"tpl:w-full tpl:max-w-[600px] tpl:rounded-[var(--tpl-radius)] tpl:p-6 tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)]\"><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div></div><div class=\"tpl:py-4\"><div class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div></div><div class=\"tpl:flex tpl:justify-center tpl:py-4\"><div class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"></div></div></div></div><div class=\"tpl:flex tpl:w-[320px] tpl:shrink-0 tpl:flex-col tpl:gap-4 tpl:p-4 tpl:border-l tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div></div>", 2)])], 8,
|
|
58
|
+
})), 64))]), c[0] ||= d("<div class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"><div class=\"tpl:w-full tpl:max-w-[600px] tpl:rounded-[var(--tpl-radius)] tpl:p-6 tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)]\"><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div></div><div class=\"tpl:py-4\"><div class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div></div><div class=\"tpl:flex tpl:justify-center tpl:py-4\"><div class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"></div></div></div></div><div class=\"tpl:flex tpl:w-[320px] tpl:shrink-0 tpl:flex-col tpl:gap-4 tpl:p-4 tpl:border-l tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div></div>", 2)])], 8, k)) : p("", !0);
|
|
60
59
|
}
|
|
61
|
-
}),
|
|
60
|
+
}), N = {
|
|
62
61
|
role: "alertdialog",
|
|
63
62
|
"aria-modal": "true",
|
|
64
63
|
"aria-labelledby": "tpl-save-gate-title",
|
|
65
64
|
"aria-describedby": "tpl-save-gate-body",
|
|
66
65
|
"data-testid": "cloud-save-gate-dialog",
|
|
67
66
|
class: "tpl:flex tpl:max-h-[80%] tpl:w-full tpl:max-w-md tpl:flex-col tpl:gap-4 tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius-lg)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
68
|
-
},
|
|
67
|
+
}, P = { class: "tpl:flex tpl:items-center tpl:gap-2" }, F = {
|
|
69
68
|
id: "tpl-save-gate-title",
|
|
70
69
|
class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
71
|
-
},
|
|
70
|
+
}, I = {
|
|
72
71
|
id: "tpl-save-gate-body",
|
|
73
72
|
class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
74
|
-
},
|
|
73
|
+
}, L = { class: "tpl:m-0 tpl:flex tpl:max-h-64 tpl:list-none tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-2" }, R = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, z = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, B = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, V = /* @__PURE__ */ m({
|
|
75
74
|
__name: "CloudSaveGateModal",
|
|
76
75
|
props: {
|
|
77
76
|
open: { type: Boolean },
|
|
@@ -79,55 +78,38 @@ var w = {
|
|
|
79
78
|
},
|
|
80
79
|
emits: ["cancel", "confirm"],
|
|
81
80
|
setup(r, { emit: d }) {
|
|
82
|
-
let p = d, { t: m } =
|
|
83
|
-
return (d, h) => (e(), u(
|
|
81
|
+
let p = d, { t: m } = v();
|
|
82
|
+
return (d, h) => (e(), u(S, {
|
|
84
83
|
visible: r.open,
|
|
85
84
|
onClose: h[2] ||= (e) => p("cancel")
|
|
86
85
|
}, {
|
|
87
|
-
default: t(() => [a("div",
|
|
88
|
-
a("header",
|
|
86
|
+
default: t(() => [a("div", N, [
|
|
87
|
+
a("header", P, [s(i(_), {
|
|
89
88
|
size: 18,
|
|
90
89
|
"stroke-width": 2,
|
|
91
90
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
92
|
-
}), a("h2",
|
|
93
|
-
a("p",
|
|
94
|
-
a("ul",
|
|
91
|
+
}), a("h2", F, c(i(m).saveGate.title), 1)]),
|
|
92
|
+
a("p", I, c(i(m).saveGate.body), 1),
|
|
93
|
+
a("ul", L, [(e(!0), o(f, null, n(r.issues, (t) => (e(), o("li", {
|
|
95
94
|
key: `${t.ruleId}-${t.blockId ?? "template"}`,
|
|
96
95
|
class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
|
|
97
|
-
}, [a("span",
|
|
98
|
-
a("footer",
|
|
96
|
+
}, [a("span", R, c(t.message), 1), a("span", z, c(t.ruleId), 1)]))), 128))]),
|
|
97
|
+
a("footer", B, [a("button", {
|
|
99
98
|
type: "button",
|
|
100
99
|
"data-testid": "cloud-save-gate-cancel",
|
|
101
|
-
class: l(i(
|
|
100
|
+
class: l(i(x)),
|
|
102
101
|
onClick: h[0] ||= (e) => p("cancel")
|
|
103
102
|
}, c(i(m).saveGate.cancel), 3), a("button", {
|
|
104
103
|
type: "button",
|
|
105
104
|
"data-testid": "cloud-save-gate-confirm",
|
|
106
|
-
class: l(i(
|
|
105
|
+
class: l(i(y)),
|
|
107
106
|
onClick: h[1] ||= (e) => p("confirm")
|
|
108
107
|
}, c(i(m).saveGate.confirm), 3)])
|
|
109
108
|
])]),
|
|
110
109
|
_: 1
|
|
111
110
|
}, 8, ["visible"]));
|
|
112
111
|
}
|
|
113
|
-
}),
|
|
114
|
-
key: 0,
|
|
115
|
-
role: "status",
|
|
116
|
-
"aria-live": "polite",
|
|
117
|
-
class: "tpl:absolute tpl:top-16 tpl:left-1/2 tpl:z-[60] tpl:-translate-x-1/2 tpl:rounded-[var(--tpl-radius)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
118
|
-
style: {
|
|
119
|
-
"background-color": "var(--tpl-warning-light)",
|
|
120
|
-
color: "var(--tpl-text)",
|
|
121
|
-
border: "1px solid var(--tpl-warning)"
|
|
122
|
-
}
|
|
123
|
-
}, W = /* @__PURE__ */ m({
|
|
124
|
-
__name: "CollabUndoToast",
|
|
125
|
-
props: { visible: { type: Boolean } },
|
|
126
|
-
setup(t) {
|
|
127
|
-
let { t: n } = g();
|
|
128
|
-
return (r, a) => t.visible ? (e(), o("div", U, c(i(n).history.collabWarning), 1)) : p("", !0);
|
|
129
|
-
}
|
|
130
|
-
}), G = /* @__PURE__ */ m({
|
|
112
|
+
}), H = /* @__PURE__ */ m({
|
|
131
113
|
__name: "CloudPanels",
|
|
132
114
|
props: {
|
|
133
115
|
editor: {},
|
|
@@ -137,7 +119,7 @@ var w = {
|
|
|
137
119
|
ready: {}
|
|
138
120
|
},
|
|
139
121
|
setup(n) {
|
|
140
|
-
let a = r(() => import("./AiChatSidebar-
|
|
122
|
+
let a = r(() => import("./AiChatSidebar-CdjTb9ej.js")), c = r(() => import("./DesignReferenceSidebar-BTwCFgz8.js")), l = r(() => import("./TemplateScoringPanel-Ba9sgvjS.js")), u = n;
|
|
141
123
|
function d(e) {
|
|
142
124
|
u.core.history.record(), u.editor.setContent(e), u.core.conditionPreview.reset();
|
|
143
125
|
}
|
|
@@ -150,7 +132,7 @@ var w = {
|
|
|
150
132
|
"leave-from-class": "tpl:opacity-100",
|
|
151
133
|
"leave-to-class": "tpl:opacity-0"
|
|
152
134
|
}, {
|
|
153
|
-
default: t(() => [s(
|
|
135
|
+
default: t(() => [s(M, { visible: n.editor.state.isLoading }, null, 8, ["visible"])]),
|
|
154
136
|
_: 1
|
|
155
137
|
}),
|
|
156
138
|
s(h, {
|
|
@@ -161,7 +143,7 @@ var w = {
|
|
|
161
143
|
"leave-from-class": "tpl:opacity-100",
|
|
162
144
|
"leave-to-class": "tpl:opacity-0"
|
|
163
145
|
}, {
|
|
164
|
-
default: t(() => [s(
|
|
146
|
+
default: t(() => [s(O, {
|
|
165
147
|
error: n.ready.sessionError.value,
|
|
166
148
|
visible: !!n.ready.sessionError.value,
|
|
167
149
|
onRetry: n.ready.retry
|
|
@@ -172,7 +154,7 @@ var w = {
|
|
|
172
154
|
])]),
|
|
173
155
|
_: 1
|
|
174
156
|
}),
|
|
175
|
-
s(
|
|
157
|
+
s(V, {
|
|
176
158
|
open: n.ready.saveGate.modalOpen.value,
|
|
177
159
|
issues: n.ready.saveGate.blockingIssues.value,
|
|
178
160
|
onCancel: n.ready.saveGate.cancel,
|
|
@@ -183,17 +165,6 @@ var w = {
|
|
|
183
165
|
"onCancel",
|
|
184
166
|
"onConfirm"
|
|
185
167
|
]),
|
|
186
|
-
s(h, {
|
|
187
|
-
"enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
|
|
188
|
-
"enter-from-class": "tpl:translate-y-[-8px] tpl:opacity-0",
|
|
189
|
-
"enter-to-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
190
|
-
"leave-active-class": "tpl:transition-all tpl:duration-300 tpl:ease-in",
|
|
191
|
-
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
192
|
-
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
193
|
-
}, {
|
|
194
|
-
default: t(() => [s(W, { visible: n.ready.collabWarning.collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
195
|
-
_: 1
|
|
196
|
-
}),
|
|
197
168
|
s(i(a), {
|
|
198
169
|
visible: n.cloud.panelState.aiChatOpen.value,
|
|
199
170
|
"on-apply": d,
|
|
@@ -213,4 +184,4 @@ var w = {
|
|
|
213
184
|
}
|
|
214
185
|
});
|
|
215
186
|
//#endregion
|
|
216
|
-
export {
|
|
187
|
+
export { H as default };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { A as e, At as t, at as n, c as r, d as i, g as a, jt as o, s, u as c, v as l } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
|
|
2
|
+
import { t as u } from "./useI18n-CSh4gO5c.js";
|
|
3
|
+
import { t as d } from "./x-KFQ4S-Kz.js";
|
|
4
|
+
//#region src/components/collaboration/CollaborationNotices.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var f = { class: "tpl:pointer-events-none tpl:absolute tpl:top-16 tpl:left-1/2 tpl:z-[60] tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" }, p = ["data-kind", "data-tone"], m = ["aria-label", "title"], h = /* @__PURE__ */ l({
|
|
6
|
+
__name: "CollaborationNotices",
|
|
7
|
+
props: { feature: {} },
|
|
8
|
+
setup(l) {
|
|
9
|
+
let h = l, { t: g, format: _ } = u(), v = s(() => h.feature.notices.value.at(-1) ?? null), y = s(() => h.feature.connection.value === "reconnecting" || h.feature.connection.value === "offline"), b = s(() => v.value?.kind === "agentEdited" ? "info" : "warning"), x = {
|
|
10
|
+
warning: {
|
|
11
|
+
backgroundColor: "var(--tpl-warning-light)",
|
|
12
|
+
color: "var(--tpl-text)",
|
|
13
|
+
border: "1px solid var(--tpl-warning)"
|
|
14
|
+
},
|
|
15
|
+
info: {
|
|
16
|
+
backgroundColor: "var(--tpl-secondary-light)",
|
|
17
|
+
color: "var(--tpl-text)",
|
|
18
|
+
border: "1px solid var(--tpl-secondary)"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function S(e) {
|
|
22
|
+
return e.isGuest || !e.name ? g.collaboration.guest : e.name;
|
|
23
|
+
}
|
|
24
|
+
function C(e) {
|
|
25
|
+
let t = {
|
|
26
|
+
client: e.client ?? g.collaboration.anAgent,
|
|
27
|
+
name: S(e),
|
|
28
|
+
count: e.blocks
|
|
29
|
+
};
|
|
30
|
+
return e.templateUpdated ? _(g.collaboration.agentUpdatedTemplate, t) : e.settings && e.blocks > 1 ? _(g.collaboration.agentChangedBlocksAndSettings, t) : e.settings && e.blocks === 1 ? _(g.collaboration.agentChangedBlockAndSettings, t) : e.settings ? _(g.collaboration.agentChangedSettings, t) : e.blocks === 1 ? _(g.collaboration.agentChangedBlock, t) : _(g.collaboration.agentChangedBlocks, t);
|
|
31
|
+
}
|
|
32
|
+
function w(e) {
|
|
33
|
+
switch (e.kind) {
|
|
34
|
+
case "selectionRefused": return _(g.collaboration.selectionRefused, { name: S(e) });
|
|
35
|
+
case "editRefused": return e.code === "content_too_large" ? g.collaboration.editTooLarge : e.code === "lock_held" && (e.name || e.isGuest) ? _(g.collaboration.editRefusedLocked, { name: S(e) }) : g.collaboration.editRefused;
|
|
36
|
+
case "undoSkipped": return g.collaboration.undoSkipped;
|
|
37
|
+
case "replaceRefused": return _(g.collaboration.replaceRefused, { names: e.holders.map(S).join(", ") });
|
|
38
|
+
case "agentEdited": return C(e);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return (s, u) => (e(), i("div", f, [y.value ? (e(), i("div", {
|
|
42
|
+
key: 0,
|
|
43
|
+
"data-testid": "collaboration-notice",
|
|
44
|
+
"data-kind": "reconnecting",
|
|
45
|
+
"data-tone": "warning",
|
|
46
|
+
role: "status",
|
|
47
|
+
"aria-live": "polite",
|
|
48
|
+
class: "tpl:pointer-events-auto tpl:rounded-[var(--tpl-radius)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
49
|
+
style: t(x.warning)
|
|
50
|
+
}, o(n(g).collaboration.reconnectingNotice), 5)) : c("", !0), v.value ? (e(), i("div", {
|
|
51
|
+
key: v.value.id,
|
|
52
|
+
"data-testid": "collaboration-notice",
|
|
53
|
+
"data-kind": v.value.kind,
|
|
54
|
+
"data-tone": b.value,
|
|
55
|
+
role: "status",
|
|
56
|
+
"aria-live": "polite",
|
|
57
|
+
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
58
|
+
style: t(x[b.value])
|
|
59
|
+
}, [r("span", null, o(w(v.value)), 1), r("button", {
|
|
60
|
+
type: "button",
|
|
61
|
+
class: "tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)]",
|
|
62
|
+
"aria-label": n(g).collaboration.dismiss,
|
|
63
|
+
title: n(g).collaboration.dismiss,
|
|
64
|
+
onClick: u[0] ||= (e) => l.feature.dismissNotice(v.value.id)
|
|
65
|
+
}, [a(n(d), {
|
|
66
|
+
size: 14,
|
|
67
|
+
"stroke-width": 2,
|
|
68
|
+
"aria-hidden": "true"
|
|
69
|
+
})], 8, m)], 12, p)) : c("", !0)]));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
export { h as default };
|