@templatical/editor 0.52.0 → 0.52.1

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.
Files changed (261) hide show
  1. package/dist/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
  2. package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
  3. package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
  4. package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
  5. package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
  6. package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
  7. package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
  8. package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
  9. package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
  10. package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
  11. package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
  12. package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
  13. package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
  14. package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
  15. package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
  16. package/dist/IssuesPanel-4ykrf1ax.js +359 -0
  17. package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
  18. package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
  19. package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
  20. package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
  21. package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
  22. package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
  23. package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
  24. package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
  25. package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
  26. package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
  27. package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
  28. package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
  29. package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
  30. package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
  31. package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
  32. package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
  33. package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
  34. package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
  35. package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
  36. package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
  37. package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
  38. package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
  39. package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
  40. package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
  41. package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
  42. package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
  45. package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
  46. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
  47. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
  48. package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
  49. package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
  50. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
  51. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
  52. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
  53. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
  54. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
  55. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
  57. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
  58. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
  59. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
  60. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
  61. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
  62. package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
  63. package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
  64. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
  65. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
  66. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
  67. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
  68. package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
  69. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
  70. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
  71. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
  72. package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
  73. package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
  74. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
  75. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
  76. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
  77. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
  78. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
  79. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
  80. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
  81. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
  82. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
  83. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
  84. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
  85. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
  86. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
  87. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
  88. package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
  89. package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
  90. package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
  91. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
  92. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
  93. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
  94. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
  95. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
  96. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
  97. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
  99. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
  100. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
  101. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
  102. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
  103. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
  104. package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
  105. package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
  106. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
  107. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
  108. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
  109. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
  110. package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
  111. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
  112. package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
  113. package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
  114. package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
  115. package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
  116. package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
  117. package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
  118. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
  120. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
  121. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
  122. package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
  123. package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
  124. package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
  125. package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
  126. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
  127. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
  128. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
  129. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
  131. package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
  132. package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
  133. package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
  134. package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
  135. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
  137. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
  138. package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
  139. package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
  140. package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
  141. package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
  142. package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
  143. package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
  144. package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
  145. package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
  146. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  147. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
  148. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
  149. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
  150. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
  151. package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
  152. package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
  153. package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
  154. package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
  155. package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
  156. package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
  157. package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
  158. package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
  159. package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
  160. package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
  161. package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
  162. package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
  163. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
  164. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
  165. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
  166. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
  167. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
  168. package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
  169. package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
  170. package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
  171. package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
  172. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
  173. package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
  174. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
  175. package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
  176. package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
  177. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
  178. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
  179. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
  180. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
  181. package/dist/cdn/editor.css +1 -1
  182. package/dist/cdn/editor.js +1422 -1422
  183. package/dist/cdn/editor.js.map +1 -1
  184. package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
  185. package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
  186. package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
  187. package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
  188. package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
  189. package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
  190. package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
  191. package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
  192. package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
  193. package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
  194. package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
  195. package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
  196. package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
  197. package/dist/en-Db76vJbY.js +1 -0
  198. package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
  199. package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
  200. package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
  201. package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
  202. package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
  203. package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
  204. package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
  205. package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
  206. package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
  207. package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
  208. package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
  209. package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
  210. package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
  211. package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
  212. package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
  213. package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
  214. package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
  215. package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
  216. package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
  217. package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
  218. package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
  219. package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
  220. package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
  221. package/dist/style.css +1 -1
  222. package/dist/templatical-editor.js +1096 -1096
  223. package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
  224. package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
  225. package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
  226. package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
  227. package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
  228. package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
  229. package/dist/useEditorRoot-BMcoCLBx.js +7 -0
  230. package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
  231. package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
  232. package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
  233. package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
  234. package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
  235. package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
  236. package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
  237. package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
  238. package/package.json +10 -10
  239. package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
  240. package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
  241. package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
  242. package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
  243. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
  244. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
  245. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
  246. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
  247. package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
  248. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
  249. package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
  250. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
  251. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
  252. package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
  253. package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
  254. package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
  255. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
  256. package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
  257. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
  258. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
  259. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
  260. package/dist/en-CyEE7FPY.js +0 -1
  261. package/dist/useEditorRoot-BKr6nNkC.js +0 -7
@@ -1,8 +1,8 @@
1
- import { C as e, I as t, P as n, U as r, _ as i, dt as a, g as o, h as s, lt as c, m as l, n as u, ot as d, u as f, x as p, y as m } from "./draggable-B8hTTYFO.js";
2
- import { Pt as h, d as g } from "./icons-HCBP93Ch.js";
3
- import { t as _ } from "./useCloudI18n-RJXyVnIf.js";
1
+ import { C as e, I as t, P as n, W as r, _ as i, ft as a, g as o, h as s, m as c, n as l, st as u, u as d, ut as f, x as p, y as m } from "./draggable-Du8AUMFT.js";
2
+ import { Ft as h, d as g } from "./icons-okSPsLOa.js";
3
+ import { t as _ } from "./useCloudI18n-DY8_-ETE.js";
4
4
  import { d as v, v as y, x as b } from "./styleConstants-B8xVRiwX.js";
5
- import { t as x } from "./TplModal-BDyeS69p.js";
5
+ import { t as x } from "./TplModal-CFPDgbwQ.js";
6
6
  // src/cloud/components/CloudErrorOverlay.vue?vue&type=script&setup=true&lang.ts
7
7
  var S = {
8
8
  key: 0,
@@ -17,25 +17,25 @@ var S = {
17
17
  emits: ["retry"],
18
18
  setup(e, { emit: t }) {
19
19
  let r = t, { t: s } = _();
20
- function u(e) {
20
+ function l(e) {
21
21
  return "isUnauthorized" in e && e.isUnauthorized ? s.error.authFailed : "isNotFound" in e && e.isNotFound ? s.error.templateNotFound : s.error.defaultMessage;
22
22
  }
23
- function f(e) {
23
+ function d(e) {
24
24
  return "isNotFound" in e && !!e.isNotFound;
25
25
  }
26
26
  return (t, m) => e.visible && e.error ? (n(), i("div", S, [
27
- l("div", C, [p(d(h), {
27
+ c("div", C, [p(u(h), {
28
28
  size: 32,
29
29
  "stroke-width": 1.5,
30
30
  class: "tpl:text-[var(--tpl-danger)]"
31
31
  })]),
32
- l("div", w, [l("h2", T, a(d(s).error.title), 1), l("p", E, a(u(e.error)), 1)]),
33
- f(e.error) ? o("", !0) : (n(), i("button", {
32
+ c("div", w, [c("h2", T, a(u(s).error.title), 1), c("p", E, a(l(e.error)), 1)]),
33
+ d(e.error) ? o("", !0) : (n(), i("button", {
34
34
  key: 0,
35
35
  type: "button",
36
- class: c(d(y)),
36
+ class: f(u(y)),
37
37
  onClick: m[0] ||= (e) => r("retry")
38
- }, a(d(s).error.retry), 3))
38
+ }, a(u(s).error.retry), 3))
39
39
  ])) : o("", !0);
40
40
  }
41
41
  }), O = ["aria-label"], k = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, A = { 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)]" }, j = /* @__PURE__ */ e({
@@ -48,9 +48,9 @@ var S = {
48
48
  role: "status",
49
49
  "aria-live": "polite",
50
50
  "aria-busy": "true",
51
- "aria-label": d(r).loading.initializing,
51
+ "aria-label": u(r).loading.initializing,
52
52
  class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-[100] tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
53
- }, [s[1] ||= m("<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), l("div", k, [l("div", A, [(n(), i(f, null, t(5, (e) => l("div", {
53
+ }, [s[1] ||= m("<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), c("div", k, [c("div", A, [(n(), i(d, null, t(5, (e) => c("div", {
54
54
  key: e,
55
55
  class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
56
56
  })), 64))]), s[0] ||= m("<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, O)) : o("", !0);
@@ -76,33 +76,33 @@ var S = {
76
76
  },
77
77
  emits: ["cancel", "confirm"],
78
78
  setup(e, { emit: o }) {
79
- let u = o, { t: m } = _();
79
+ let l = o, { t: m } = _();
80
80
  return (o, h) => (n(), s(x, {
81
81
  visible: e.open,
82
- onClose: h[2] ||= (e) => u("cancel")
82
+ onClose: h[2] ||= (e) => l("cancel")
83
83
  }, {
84
- default: r(() => [l("div", M, [
85
- l("header", N, [p(d(g), {
84
+ default: r(() => [c("div", M, [
85
+ c("header", N, [p(u(g), {
86
86
  size: 18,
87
87
  "stroke-width": 2,
88
88
  class: "tpl:text-[var(--tpl-warning)]"
89
- }), l("h2", P, a(d(m).saveGate.title), 1)]),
90
- l("p", F, a(d(m).saveGate.body), 1),
91
- l("ul", I, [(n(!0), i(f, null, t(e.issues, (e) => (n(), i("li", {
89
+ }), c("h2", P, a(u(m).saveGate.title), 1)]),
90
+ c("p", F, a(u(m).saveGate.body), 1),
91
+ c("ul", I, [(n(!0), i(d, null, t(e.issues, (e) => (n(), i("li", {
92
92
  key: `${e.ruleId}-${e.blockId ?? "template"}`,
93
93
  class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
94
- }, [l("span", L, a(e.message), 1), l("span", R, a(e.ruleId), 1)]))), 128))]),
95
- l("footer", z, [l("button", {
94
+ }, [c("span", L, a(e.message), 1), c("span", R, a(e.ruleId), 1)]))), 128))]),
95
+ c("footer", z, [c("button", {
96
96
  type: "button",
97
97
  "data-testid": "cloud-save-gate-cancel",
98
- class: c(d(b)),
99
- onClick: h[0] ||= (e) => u("cancel")
100
- }, a(d(m).saveGate.cancel), 3), l("button", {
98
+ class: f(u(b)),
99
+ onClick: h[0] ||= (e) => l("cancel")
100
+ }, a(u(m).saveGate.cancel), 3), c("button", {
101
101
  type: "button",
102
102
  "data-testid": "cloud-save-gate-confirm",
103
- class: c(d(v)),
104
- onClick: h[1] ||= (e) => u("confirm")
105
- }, a(d(m).saveGate.confirm), 3)])
103
+ class: f(u(v)),
104
+ onClick: h[1] ||= (e) => l("confirm")
105
+ }, a(u(m).saveGate.confirm), 3)])
106
106
  ])]),
107
107
  _: 1
108
108
  }, 8, ["visible"]));
@@ -117,8 +117,8 @@ var S = {
117
117
  ready: {}
118
118
  },
119
119
  setup(e) {
120
- return (t, a) => (n(), i(f, null, [
121
- p(u, {
120
+ return (t, a) => (n(), i(d, null, [
121
+ p(l, {
122
122
  "enter-active-class": "tpl:transition-opacity tpl:duration-200",
123
123
  "enter-from-class": "tpl:opacity-100",
124
124
  "enter-to-class": "tpl:opacity-100",
@@ -129,7 +129,7 @@ var S = {
129
129
  default: r(() => [p(j, { visible: e.editor.state.isLoading }, null, 8, ["visible"])]),
130
130
  _: 1
131
131
  }),
132
- p(u, {
132
+ p(l, {
133
133
  "enter-active-class": "tpl:transition-opacity tpl:duration-200",
134
134
  "enter-from-class": "tpl:opacity-0",
135
135
  "enter-to-class": "tpl:opacity-100",
@@ -164,4 +164,4 @@ var S = {
164
164
  });
165
165
  export { V as default };
166
166
 
167
- //# sourceMappingURL=CloudPanels-BkmLc2Fl.js.map
167
+ //# sourceMappingURL=CloudPanels-JMWIoVWh.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloudPanels-BkmLc2Fl.js","names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_unref","_toDisplayString","_normalizeClass","_createCommentVNode","_sfc_main","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_unref","_createStaticVNode","_createElementVNode","_Fragment","_renderList","_createCommentVNode","_sfc_main","_openBlock","_createBlock","TplModal","_withCtx","_createElementVNode","_createVNode","_unref","AlertTriangle","_toDisplayString","_createElementBlock","_Fragment","_renderList","_normalizeClass","_sfc_main","_openBlock","_createElementBlock","_Fragment","_createVNode","_Transition","_withCtx","CloudLoadingOverlay","CloudErrorOverlay","CloudSaveGateModal","_sfc_main","defineComponent","renderList","openBlock","withCtx","createElementBlock","toDisplayString","createCommentVNode","createBlock","normalizeClass","createBaseVNode","Transition","unref","Fragment","createVNode","createStaticVNode","CircleAlert","TriangleAlert","useCloudI18nStrict","dangerBtnClass","primaryBtnClass","secondaryBtnClass","TplModal_default","_hoisted_1$2","_hoisted_2$2","_hoisted_3$2","_hoisted_4$1","_hoisted_5$1","CloudErrorOverlay_default","__emit","emit","cloudT","getErrorMessage","error","isNotFoundError","__props","_cache","_hoisted_1$1","_hoisted_2$1","_hoisted_3$1","CloudLoadingOverlay_default","n","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","CloudSaveGateModal_default","issue","CloudPanels_default"],"sources":["../../../src/cloud/components/CloudErrorOverlay.vue","../../../src/cloud/components/CloudErrorOverlay.vue","../../../src/cloud/components/CloudLoadingOverlay.vue","../../../src/cloud/components/CloudLoadingOverlay.vue","../../../src/cloud/components/CloudSaveGateModal.vue","../../../src/cloud/components/CloudSaveGateModal.vue","../../../src/cloud/components/CloudPanels.vue","../../../src/cloud/components/CloudPanels.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { CircleAlert } from \"@lucide/vue\";\nimport { primaryBtnClass } from \"../../constants/styleConstants\";\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\n\ndefineProps<{\n error: Error | null;\n visible: boolean;\n}>();\n\nconst emit = defineEmits<{\n (e: \"retry\"): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nfunction getErrorMessage(error: Error): string {\n if (\n \"isUnauthorized\" in error &&\n (error as { isUnauthorized: boolean }).isUnauthorized\n ) {\n return cloudT.error.authFailed;\n }\n if (\"isNotFound\" in error && (error as { isNotFound: boolean }).isNotFound) {\n return cloudT.error.templateNotFound;\n }\n return cloudT.error.defaultMessage;\n}\n\nfunction isNotFoundError(error: Error): boolean {\n return (\n \"isNotFound\" in error && !!(error as { isNotFound: boolean }).isNotFound\n );\n}\n</script>\n\n<template>\n <div\n v-if=\"visible && error\"\n role=\"alert\"\n 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)]\"\n >\n <div\n class=\"tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]\"\n >\n <CircleAlert\n :size=\"32\"\n :stroke-width=\"1.5\"\n class=\"tpl:text-[var(--tpl-danger)]\"\n />\n </div>\n <div\n class=\"tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center\"\n >\n <h2 class=\"tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]\">\n {{ cloudT.error.title }}\n </h2>\n <p class=\"tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]\">\n {{ getErrorMessage(error) }}\n </p>\n </div>\n <button\n v-if=\"!isNotFoundError(error)\"\n type=\"button\"\n :class=\"primaryBtnClass\"\n @click=\"emit('retry')\"\n >\n {{ cloudT.error.retry }}\n </button>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { CircleAlert } from \"@lucide/vue\";\nimport { primaryBtnClass } from \"../../constants/styleConstants\";\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\n\ndefineProps<{\n error: Error | null;\n visible: boolean;\n}>();\n\nconst emit = defineEmits<{\n (e: \"retry\"): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nfunction getErrorMessage(error: Error): string {\n if (\n \"isUnauthorized\" in error &&\n (error as { isUnauthorized: boolean }).isUnauthorized\n ) {\n return cloudT.error.authFailed;\n }\n if (\"isNotFound\" in error && (error as { isNotFound: boolean }).isNotFound) {\n return cloudT.error.templateNotFound;\n }\n return cloudT.error.defaultMessage;\n}\n\nfunction isNotFoundError(error: Error): boolean {\n return (\n \"isNotFound\" in error && !!(error as { isNotFound: boolean }).isNotFound\n );\n}\n</script>\n\n<template>\n <div\n v-if=\"visible && error\"\n role=\"alert\"\n 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)]\"\n >\n <div\n class=\"tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]\"\n >\n <CircleAlert\n :size=\"32\"\n :stroke-width=\"1.5\"\n class=\"tpl:text-[var(--tpl-danger)]\"\n />\n </div>\n <div\n class=\"tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center\"\n >\n <h2 class=\"tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]\">\n {{ cloudT.error.title }}\n </h2>\n <p class=\"tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]\">\n {{ getErrorMessage(error) }}\n </p>\n </div>\n <button\n v-if=\"!isNotFoundError(error)\"\n type=\"button\"\n :class=\"primaryBtnClass\"\n @click=\"emit('retry')\"\n >\n {{ cloudT.error.retry }}\n </button>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\n\ndefineProps<{\n visible: boolean;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n</script>\n\n<template>\n <div\n v-if=\"visible\"\n role=\"status\"\n aria-live=\"polite\"\n aria-busy=\"true\"\n :aria-label=\"cloudT.loading.initializing\"\n class=\"tpl-loading tpl:absolute tpl:inset-0 tpl:z-[100] tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]\"\n >\n <!-- Skeleton header -->\n <div\n 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)]\"\n >\n <div\n class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div class=\"tpl:flex tpl:gap-3\">\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n </div>\n <!-- Skeleton body -->\n <div class=\"tpl:flex tpl:flex-1 tpl:overflow-hidden\">\n <!-- Left sidebar rail -->\n <div\n 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)]\"\n >\n <div\n v-for=\"n in 5\"\n :key=\"n\"\n class=\"tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <!-- Canvas area -->\n <div\n class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"\n >\n <div\n 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)]\"\n >\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div>\n </div>\n <div class=\"tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div>\n </div>\n <div class=\"tpl:flex tpl:justify-center tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"\n ></div>\n <div\n class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"\n ></div>\n </div>\n </div>\n </div>\n <!-- Right panel -->\n <div\n 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)]\"\n >\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div>\n <div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div>\n </div>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\n\ndefineProps<{\n visible: boolean;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n</script>\n\n<template>\n <div\n v-if=\"visible\"\n role=\"status\"\n aria-live=\"polite\"\n aria-busy=\"true\"\n :aria-label=\"cloudT.loading.initializing\"\n class=\"tpl-loading tpl:absolute tpl:inset-0 tpl:z-[100] tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]\"\n >\n <!-- Skeleton header -->\n <div\n 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)]\"\n >\n <div\n class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div class=\"tpl:flex tpl:gap-3\">\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n </div>\n <!-- Skeleton body -->\n <div class=\"tpl:flex tpl:flex-1 tpl:overflow-hidden\">\n <!-- Left sidebar rail -->\n <div\n 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)]\"\n >\n <div\n v-for=\"n in 5\"\n :key=\"n\"\n class=\"tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <!-- Canvas area -->\n <div\n class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"\n >\n <div\n 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)]\"\n >\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div>\n </div>\n <div class=\"tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div>\n </div>\n <div class=\"tpl:flex tpl:justify-center tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"\n ></div>\n <div\n class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"\n ></div>\n </div>\n </div>\n </div>\n <!-- Right panel -->\n <div\n 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)]\"\n >\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div>\n <div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div>\n </div>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { AlertTriangle } from \"@lucide/vue\";\nimport {\n dangerBtnClass,\n secondaryBtnClass,\n} from \"../../constants/styleConstants\";\nimport TplModal from \"../../components/TplModal.vue\";\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\nimport type { LintIssue } from \"../../composables/useTemplateLint\";\n\ndefineProps<{\n open: boolean;\n issues: LintIssue[];\n}>();\n\nconst emit = defineEmits<{\n (e: \"cancel\"): void;\n (e: \"confirm\"): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n</script>\n\n<template>\n <TplModal :visible=\"open\" @close=\"emit('cancel')\">\n <div\n role=\"alertdialog\"\n aria-modal=\"true\"\n aria-labelledby=\"tpl-save-gate-title\"\n aria-describedby=\"tpl-save-gate-body\"\n data-testid=\"cloud-save-gate-dialog\"\n 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)]\"\n >\n <header class=\"tpl:flex tpl:items-center tpl:gap-2\">\n <AlertTriangle\n :size=\"18\"\n :stroke-width=\"2\"\n class=\"tpl:text-[var(--tpl-warning)]\"\n />\n <h2\n id=\"tpl-save-gate-title\"\n class=\"tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]\"\n >\n {{ cloudT.saveGate.title }}\n </h2>\n </header>\n\n <p\n id=\"tpl-save-gate-body\"\n class=\"tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ cloudT.saveGate.body }}\n </p>\n\n <ul\n 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\"\n >\n <li\n v-for=\"issue in issues\"\n :key=\"`${issue.ruleId}-${issue.blockId ?? 'template'}`\"\n class=\"tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5\"\n >\n <span class=\"tpl:text-xs tpl:text-[var(--tpl-text)]\">\n {{ issue.message }}\n </span>\n <span\n class=\"tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]\"\n >\n {{ issue.ruleId }}\n </span>\n </li>\n </ul>\n\n <footer class=\"tpl:flex tpl:justify-end tpl:gap-2\">\n <button\n type=\"button\"\n data-testid=\"cloud-save-gate-cancel\"\n :class=\"secondaryBtnClass\"\n @click=\"emit('cancel')\"\n >\n {{ cloudT.saveGate.cancel }}\n </button>\n <button\n type=\"button\"\n data-testid=\"cloud-save-gate-confirm\"\n :class=\"dangerBtnClass\"\n @click=\"emit('confirm')\"\n >\n {{ cloudT.saveGate.confirm }}\n </button>\n </footer>\n </div>\n </TplModal>\n</template>\n","<script setup lang=\"ts\">\nimport { AlertTriangle } from \"@lucide/vue\";\nimport {\n dangerBtnClass,\n secondaryBtnClass,\n} from \"../../constants/styleConstants\";\nimport TplModal from \"../../components/TplModal.vue\";\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\nimport type { LintIssue } from \"../../composables/useTemplateLint\";\n\ndefineProps<{\n open: boolean;\n issues: LintIssue[];\n}>();\n\nconst emit = defineEmits<{\n (e: \"cancel\"): void;\n (e: \"confirm\"): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n</script>\n\n<template>\n <TplModal :visible=\"open\" @close=\"emit('cancel')\">\n <div\n role=\"alertdialog\"\n aria-modal=\"true\"\n aria-labelledby=\"tpl-save-gate-title\"\n aria-describedby=\"tpl-save-gate-body\"\n data-testid=\"cloud-save-gate-dialog\"\n 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)]\"\n >\n <header class=\"tpl:flex tpl:items-center tpl:gap-2\">\n <AlertTriangle\n :size=\"18\"\n :stroke-width=\"2\"\n class=\"tpl:text-[var(--tpl-warning)]\"\n />\n <h2\n id=\"tpl-save-gate-title\"\n class=\"tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]\"\n >\n {{ cloudT.saveGate.title }}\n </h2>\n </header>\n\n <p\n id=\"tpl-save-gate-body\"\n class=\"tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ cloudT.saveGate.body }}\n </p>\n\n <ul\n 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\"\n >\n <li\n v-for=\"issue in issues\"\n :key=\"`${issue.ruleId}-${issue.blockId ?? 'template'}`\"\n class=\"tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5\"\n >\n <span class=\"tpl:text-xs tpl:text-[var(--tpl-text)]\">\n {{ issue.message }}\n </span>\n <span\n class=\"tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]\"\n >\n {{ issue.ruleId }}\n </span>\n </li>\n </ul>\n\n <footer class=\"tpl:flex tpl:justify-end tpl:gap-2\">\n <button\n type=\"button\"\n data-testid=\"cloud-save-gate-cancel\"\n :class=\"secondaryBtnClass\"\n @click=\"emit('cancel')\"\n >\n {{ cloudT.saveGate.cancel }}\n </button>\n <button\n type=\"button\"\n data-testid=\"cloud-save-gate-confirm\"\n :class=\"dangerBtnClass\"\n @click=\"emit('confirm')\"\n >\n {{ cloudT.saveGate.confirm }}\n </button>\n </footer>\n </div>\n </TplModal>\n</template>\n","<script setup lang=\"ts\">\nimport type { UseEditorReturn } from \"@templatical/core\";\n\nimport type { UseEditorCoreReturn } from \"../../composables/useEditorCore\";\nimport type { CloudAttachment, CloudReady, CloudRuntime } from \"../runtime\";\n\nimport CloudErrorOverlay from \"./CloudErrorOverlay.vue\";\nimport CloudLoadingOverlay from \"./CloudLoadingOverlay.vue\";\nimport CloudSaveGateModal from \"./CloudSaveGateModal.vue\";\n\n/**\n * Every piece of Cloud chrome that renders outside the header.\n *\n * `Editor.vue` mounts this behind one lazy `defineAsyncComponent` gated on a\n * cloud runtime being present, so an OSS consumer downloads none of it — the\n * `SavedBlocksPanels` / `TestEmailPanel` pattern.\n *\n * The overlays live here rather than in the shared editor deliberately: `init()`\n * cannot fail after it mounts, and OSS should not grow the ability.\n *\n * The comments sidebar is deliberately not here: it is shared, as `CommentsPanel`\n * in `Editor.vue` over a `CommentsProvider`. Its filter target lives on the shared\n * feature rather than being relayed through this component, so it survives the\n * lazy panel's mount without a runtime hop.\n *\n * The media library is not here either: it is shared, as `MediaPanels` in\n * `Editor.vue` over a `MediaProvider`. Cloud supplies that provider; it does\n * not mount a second modal.\n */\ndefineProps<{\n editor: UseEditorReturn;\n core: UseEditorCoreReturn;\n runtime: CloudRuntime;\n cloud: CloudAttachment;\n ready: CloudReady;\n}>();\n</script>\n\n<template>\n <!-- A template create / load in flight. Cloud reads its content from the\n server, so there is a real gap where the canvas shows the wrong thing. -->\n <Transition\n enter-active-class=\"tpl:transition-opacity tpl:duration-200\"\n enter-from-class=\"tpl:opacity-100\"\n enter-to-class=\"tpl:opacity-100\"\n leave-active-class=\"tpl:transition-opacity tpl:duration-300\"\n leave-from-class=\"tpl:opacity-100\"\n leave-to-class=\"tpl:opacity-0\"\n >\n <CloudLoadingOverlay :visible=\"editor.state.isLoading\" />\n </Transition>\n\n <!-- Session failure — an auth refresh that could not renew the token. The\n *bootstrap* has no overlay any more: it runs before the mount, so a\n failure there rejects `initCloud()` instead of mounting a dead editor. -->\n <Transition\n enter-active-class=\"tpl:transition-opacity tpl:duration-200\"\n enter-from-class=\"tpl:opacity-0\"\n enter-to-class=\"tpl:opacity-100\"\n leave-active-class=\"tpl:transition-opacity tpl:duration-300\"\n leave-from-class=\"tpl:opacity-100\"\n leave-to-class=\"tpl:opacity-0\"\n >\n <CloudErrorOverlay\n :error=\"ready.sessionError.value\"\n :visible=\"!!ready.sessionError.value\"\n @retry=\"ready.retry\"\n />\n </Transition>\n\n <CloudSaveGateModal\n :open=\"ready.saveGate.modalOpen.value\"\n :issues=\"ready.saveGate.blockingIssues.value\"\n @cancel=\"ready.saveGate.cancel\"\n @confirm=\"ready.saveGate.confirmAndSave\"\n />\n</template>\n","<script setup lang=\"ts\">\nimport type { UseEditorReturn } from \"@templatical/core\";\n\nimport type { UseEditorCoreReturn } from \"../../composables/useEditorCore\";\nimport type { CloudAttachment, CloudReady, CloudRuntime } from \"../runtime\";\n\nimport CloudErrorOverlay from \"./CloudErrorOverlay.vue\";\nimport CloudLoadingOverlay from \"./CloudLoadingOverlay.vue\";\nimport CloudSaveGateModal from \"./CloudSaveGateModal.vue\";\n\n/**\n * Every piece of Cloud chrome that renders outside the header.\n *\n * `Editor.vue` mounts this behind one lazy `defineAsyncComponent` gated on a\n * cloud runtime being present, so an OSS consumer downloads none of it — the\n * `SavedBlocksPanels` / `TestEmailPanel` pattern.\n *\n * The overlays live here rather than in the shared editor deliberately: `init()`\n * cannot fail after it mounts, and OSS should not grow the ability.\n *\n * The comments sidebar is deliberately not here: it is shared, as `CommentsPanel`\n * in `Editor.vue` over a `CommentsProvider`. Its filter target lives on the shared\n * feature rather than being relayed through this component, so it survives the\n * lazy panel's mount without a runtime hop.\n *\n * The media library is not here either: it is shared, as `MediaPanels` in\n * `Editor.vue` over a `MediaProvider`. Cloud supplies that provider; it does\n * not mount a second modal.\n */\ndefineProps<{\n editor: UseEditorReturn;\n core: UseEditorCoreReturn;\n runtime: CloudRuntime;\n cloud: CloudAttachment;\n ready: CloudReady;\n}>();\n</script>\n\n<template>\n <!-- A template create / load in flight. Cloud reads its content from the\n server, so there is a real gap where the canvas shows the wrong thing. -->\n <Transition\n enter-active-class=\"tpl:transition-opacity tpl:duration-200\"\n enter-from-class=\"tpl:opacity-100\"\n enter-to-class=\"tpl:opacity-100\"\n leave-active-class=\"tpl:transition-opacity tpl:duration-300\"\n leave-from-class=\"tpl:opacity-100\"\n leave-to-class=\"tpl:opacity-0\"\n >\n <CloudLoadingOverlay :visible=\"editor.state.isLoading\" />\n </Transition>\n\n <!-- Session failure — an auth refresh that could not renew the token. The\n *bootstrap* has no overlay any more: it runs before the mount, so a\n failure there rejects `initCloud()` instead of mounting a dead editor. -->\n <Transition\n enter-active-class=\"tpl:transition-opacity tpl:duration-200\"\n enter-from-class=\"tpl:opacity-0\"\n enter-to-class=\"tpl:opacity-100\"\n leave-active-class=\"tpl:transition-opacity tpl:duration-300\"\n leave-from-class=\"tpl:opacity-100\"\n leave-to-class=\"tpl:opacity-0\"\n >\n <CloudErrorOverlay\n :error=\"ready.sessionError.value\"\n :visible=\"!!ready.sessionError.value\"\n @retry=\"ready.retry\"\n />\n </Transition>\n\n <CloudSaveGateModal\n :open=\"ready.saveGate.modalOpen.value\"\n :issues=\"ready.saveGate.blockingIssues.value\"\n @cancel=\"ready.saveGate.cancel\"\n @confirm=\"ready.saveGate.confirmAndSave\"\n />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAUA,IAAM+E,IAAOD,GAIP,EAAE,GAAGE,MAAWb,EAAmB;EAEzC,SAASc,EAAgB,GAAs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,CAAA,C;;;;;;;;;;;;;;;;GE/ClCrC,EASaC,GAAA;IARX,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;IACf,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;;IAEf,SAAAC,QAAyD,CAAzDF,EAAyDG,GAAA,EAAnC,SAASsC,EAAA,OAAO,MAAM,U;;;GAM9CzC,EAaaC,GAAA;IAZX,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;IACf,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;;IAEf,SAAAC,QAIE,CAJFF,EAIEI,GAAA;KAHC,OAAOqC,EAAA,MAAM,aAAa;KAC1B,SAAO,CAAA,CAAIA,EAAA,MAAM,aAAa;KAC9B,SAAOA,EAAA,MAAM;;;;;;;;GAIlBzC,EAKEK,GAAA;IAJC,MAAMoC,EAAA,MAAM,SAAS,UAAU;IAC/B,QAAQA,EAAA,MAAM,SAAS,eAAe;IACtC,UAAQA,EAAA,MAAM,SAAS;IACvB,WAASA,EAAA,MAAM,SAAS"}
1
+ {"version":3,"file":"CloudPanels-JMWIoVWh.js","names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_unref","_toDisplayString","_normalizeClass","_createCommentVNode","_sfc_main","_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_unref","_createStaticVNode","_createElementVNode","_Fragment","_renderList","_createCommentVNode","_sfc_main","_openBlock","_createBlock","TplModal","_withCtx","_createElementVNode","_createVNode","_unref","AlertTriangle","_toDisplayString","_createElementBlock","_Fragment","_renderList","_normalizeClass","_sfc_main","_openBlock","_createElementBlock","_Fragment","_createVNode","_Transition","_withCtx","CloudLoadingOverlay","CloudErrorOverlay","CloudSaveGateModal","_sfc_main","defineComponent","renderList","openBlock","withCtx","createElementBlock","toDisplayString","createCommentVNode","createBlock","createBaseVNode","Transition","unref","Fragment","normalizeClass","createVNode","createStaticVNode","CircleAlert","TriangleAlert","useCloudI18nStrict","dangerBtnClass","primaryBtnClass","secondaryBtnClass","TplModal_default","_hoisted_1$2","_hoisted_2$2","_hoisted_3$2","_hoisted_4$1","_hoisted_5$1","CloudErrorOverlay_default","__emit","emit","cloudT","getErrorMessage","error","isNotFoundError","__props","_cache","_hoisted_1$1","_hoisted_2$1","_hoisted_3$1","CloudLoadingOverlay_default","n","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","CloudSaveGateModal_default","issue","CloudPanels_default"],"sources":["../../../src/cloud/components/CloudErrorOverlay.vue","../../../src/cloud/components/CloudErrorOverlay.vue","../../../src/cloud/components/CloudLoadingOverlay.vue","../../../src/cloud/components/CloudLoadingOverlay.vue","../../../src/cloud/components/CloudSaveGateModal.vue","../../../src/cloud/components/CloudSaveGateModal.vue","../../../src/cloud/components/CloudPanels.vue","../../../src/cloud/components/CloudPanels.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { CircleAlert } from \"@lucide/vue\";\nimport { primaryBtnClass } from \"../../constants/styleConstants\";\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\n\ndefineProps<{\n error: Error | null;\n visible: boolean;\n}>();\n\nconst emit = defineEmits<{\n (e: \"retry\"): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nfunction getErrorMessage(error: Error): string {\n if (\n \"isUnauthorized\" in error &&\n (error as { isUnauthorized: boolean }).isUnauthorized\n ) {\n return cloudT.error.authFailed;\n }\n if (\"isNotFound\" in error && (error as { isNotFound: boolean }).isNotFound) {\n return cloudT.error.templateNotFound;\n }\n return cloudT.error.defaultMessage;\n}\n\nfunction isNotFoundError(error: Error): boolean {\n return (\n \"isNotFound\" in error && !!(error as { isNotFound: boolean }).isNotFound\n );\n}\n</script>\n\n<template>\n <div\n v-if=\"visible && error\"\n role=\"alert\"\n 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)]\"\n >\n <div\n class=\"tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]\"\n >\n <CircleAlert\n :size=\"32\"\n :stroke-width=\"1.5\"\n class=\"tpl:text-[var(--tpl-danger)]\"\n />\n </div>\n <div\n class=\"tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center\"\n >\n <h2 class=\"tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]\">\n {{ cloudT.error.title }}\n </h2>\n <p class=\"tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]\">\n {{ getErrorMessage(error) }}\n </p>\n </div>\n <button\n v-if=\"!isNotFoundError(error)\"\n type=\"button\"\n :class=\"primaryBtnClass\"\n @click=\"emit('retry')\"\n >\n {{ cloudT.error.retry }}\n </button>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { CircleAlert } from \"@lucide/vue\";\nimport { primaryBtnClass } from \"../../constants/styleConstants\";\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\n\ndefineProps<{\n error: Error | null;\n visible: boolean;\n}>();\n\nconst emit = defineEmits<{\n (e: \"retry\"): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nfunction getErrorMessage(error: Error): string {\n if (\n \"isUnauthorized\" in error &&\n (error as { isUnauthorized: boolean }).isUnauthorized\n ) {\n return cloudT.error.authFailed;\n }\n if (\"isNotFound\" in error && (error as { isNotFound: boolean }).isNotFound) {\n return cloudT.error.templateNotFound;\n }\n return cloudT.error.defaultMessage;\n}\n\nfunction isNotFoundError(error: Error): boolean {\n return (\n \"isNotFound\" in error && !!(error as { isNotFound: boolean }).isNotFound\n );\n}\n</script>\n\n<template>\n <div\n v-if=\"visible && error\"\n role=\"alert\"\n 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)]\"\n >\n <div\n class=\"tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]\"\n >\n <CircleAlert\n :size=\"32\"\n :stroke-width=\"1.5\"\n class=\"tpl:text-[var(--tpl-danger)]\"\n />\n </div>\n <div\n class=\"tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center\"\n >\n <h2 class=\"tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]\">\n {{ cloudT.error.title }}\n </h2>\n <p class=\"tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]\">\n {{ getErrorMessage(error) }}\n </p>\n </div>\n <button\n v-if=\"!isNotFoundError(error)\"\n type=\"button\"\n :class=\"primaryBtnClass\"\n @click=\"emit('retry')\"\n >\n {{ cloudT.error.retry }}\n </button>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\n\ndefineProps<{\n visible: boolean;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n</script>\n\n<template>\n <div\n v-if=\"visible\"\n role=\"status\"\n aria-live=\"polite\"\n aria-busy=\"true\"\n :aria-label=\"cloudT.loading.initializing\"\n class=\"tpl-loading tpl:absolute tpl:inset-0 tpl:z-[100] tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]\"\n >\n <!-- Skeleton header -->\n <div\n 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)]\"\n >\n <div\n class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div class=\"tpl:flex tpl:gap-3\">\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n </div>\n <!-- Skeleton body -->\n <div class=\"tpl:flex tpl:flex-1 tpl:overflow-hidden\">\n <!-- Left sidebar rail -->\n <div\n 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)]\"\n >\n <div\n v-for=\"n in 5\"\n :key=\"n\"\n class=\"tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <!-- Canvas area -->\n <div\n class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"\n >\n <div\n 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)]\"\n >\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div>\n </div>\n <div class=\"tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div>\n </div>\n <div class=\"tpl:flex tpl:justify-center tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"\n ></div>\n <div\n class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"\n ></div>\n </div>\n </div>\n </div>\n <!-- Right panel -->\n <div\n 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)]\"\n >\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div>\n <div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div>\n </div>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\n\ndefineProps<{\n visible: boolean;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n</script>\n\n<template>\n <div\n v-if=\"visible\"\n role=\"status\"\n aria-live=\"polite\"\n aria-busy=\"true\"\n :aria-label=\"cloudT.loading.initializing\"\n class=\"tpl-loading tpl:absolute tpl:inset-0 tpl:z-[100] tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]\"\n >\n <!-- Skeleton header -->\n <div\n 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)]\"\n >\n <div\n class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div class=\"tpl:flex tpl:gap-3\">\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n </div>\n <!-- Skeleton body -->\n <div class=\"tpl:flex tpl:flex-1 tpl:overflow-hidden\">\n <!-- Left sidebar rail -->\n <div\n 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)]\"\n >\n <div\n v-for=\"n in 5\"\n :key=\"n\"\n class=\"tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <!-- Canvas area -->\n <div\n class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"\n >\n <div\n 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)]\"\n >\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div>\n </div>\n <div class=\"tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div>\n <div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div>\n </div>\n <div class=\"tpl:flex tpl:justify-center tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n </div>\n <div class=\"tpl:space-y-2 tpl:py-4\">\n <div\n class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"\n ></div>\n <div\n class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"\n ></div>\n </div>\n </div>\n </div>\n <!-- Right panel -->\n <div\n 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)]\"\n >\n <div\n class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"\n ></div>\n <div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div>\n <div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div>\n </div>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { AlertTriangle } from \"@lucide/vue\";\nimport {\n dangerBtnClass,\n secondaryBtnClass,\n} from \"../../constants/styleConstants\";\nimport TplModal from \"../../components/TplModal.vue\";\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\nimport type { LintIssue } from \"../../composables/useTemplateLint\";\n\ndefineProps<{\n open: boolean;\n issues: LintIssue[];\n}>();\n\nconst emit = defineEmits<{\n (e: \"cancel\"): void;\n (e: \"confirm\"): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n</script>\n\n<template>\n <TplModal :visible=\"open\" @close=\"emit('cancel')\">\n <div\n role=\"alertdialog\"\n aria-modal=\"true\"\n aria-labelledby=\"tpl-save-gate-title\"\n aria-describedby=\"tpl-save-gate-body\"\n data-testid=\"cloud-save-gate-dialog\"\n 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)]\"\n >\n <header class=\"tpl:flex tpl:items-center tpl:gap-2\">\n <AlertTriangle\n :size=\"18\"\n :stroke-width=\"2\"\n class=\"tpl:text-[var(--tpl-warning)]\"\n />\n <h2\n id=\"tpl-save-gate-title\"\n class=\"tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]\"\n >\n {{ cloudT.saveGate.title }}\n </h2>\n </header>\n\n <p\n id=\"tpl-save-gate-body\"\n class=\"tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ cloudT.saveGate.body }}\n </p>\n\n <ul\n 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\"\n >\n <li\n v-for=\"issue in issues\"\n :key=\"`${issue.ruleId}-${issue.blockId ?? 'template'}`\"\n class=\"tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5\"\n >\n <span class=\"tpl:text-xs tpl:text-[var(--tpl-text)]\">\n {{ issue.message }}\n </span>\n <span\n class=\"tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]\"\n >\n {{ issue.ruleId }}\n </span>\n </li>\n </ul>\n\n <footer class=\"tpl:flex tpl:justify-end tpl:gap-2\">\n <button\n type=\"button\"\n data-testid=\"cloud-save-gate-cancel\"\n :class=\"secondaryBtnClass\"\n @click=\"emit('cancel')\"\n >\n {{ cloudT.saveGate.cancel }}\n </button>\n <button\n type=\"button\"\n data-testid=\"cloud-save-gate-confirm\"\n :class=\"dangerBtnClass\"\n @click=\"emit('confirm')\"\n >\n {{ cloudT.saveGate.confirm }}\n </button>\n </footer>\n </div>\n </TplModal>\n</template>\n","<script setup lang=\"ts\">\nimport { AlertTriangle } from \"@lucide/vue\";\nimport {\n dangerBtnClass,\n secondaryBtnClass,\n} from \"../../constants/styleConstants\";\nimport TplModal from \"../../components/TplModal.vue\";\nimport { useCloudI18nStrict } from \"../../composables/useCloudI18n\";\nimport type { LintIssue } from \"../../composables/useTemplateLint\";\n\ndefineProps<{\n open: boolean;\n issues: LintIssue[];\n}>();\n\nconst emit = defineEmits<{\n (e: \"cancel\"): void;\n (e: \"confirm\"): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n</script>\n\n<template>\n <TplModal :visible=\"open\" @close=\"emit('cancel')\">\n <div\n role=\"alertdialog\"\n aria-modal=\"true\"\n aria-labelledby=\"tpl-save-gate-title\"\n aria-describedby=\"tpl-save-gate-body\"\n data-testid=\"cloud-save-gate-dialog\"\n 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)]\"\n >\n <header class=\"tpl:flex tpl:items-center tpl:gap-2\">\n <AlertTriangle\n :size=\"18\"\n :stroke-width=\"2\"\n class=\"tpl:text-[var(--tpl-warning)]\"\n />\n <h2\n id=\"tpl-save-gate-title\"\n class=\"tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]\"\n >\n {{ cloudT.saveGate.title }}\n </h2>\n </header>\n\n <p\n id=\"tpl-save-gate-body\"\n class=\"tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ cloudT.saveGate.body }}\n </p>\n\n <ul\n 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\"\n >\n <li\n v-for=\"issue in issues\"\n :key=\"`${issue.ruleId}-${issue.blockId ?? 'template'}`\"\n class=\"tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5\"\n >\n <span class=\"tpl:text-xs tpl:text-[var(--tpl-text)]\">\n {{ issue.message }}\n </span>\n <span\n class=\"tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]\"\n >\n {{ issue.ruleId }}\n </span>\n </li>\n </ul>\n\n <footer class=\"tpl:flex tpl:justify-end tpl:gap-2\">\n <button\n type=\"button\"\n data-testid=\"cloud-save-gate-cancel\"\n :class=\"secondaryBtnClass\"\n @click=\"emit('cancel')\"\n >\n {{ cloudT.saveGate.cancel }}\n </button>\n <button\n type=\"button\"\n data-testid=\"cloud-save-gate-confirm\"\n :class=\"dangerBtnClass\"\n @click=\"emit('confirm')\"\n >\n {{ cloudT.saveGate.confirm }}\n </button>\n </footer>\n </div>\n </TplModal>\n</template>\n","<script setup lang=\"ts\">\nimport type { UseEditorReturn } from \"@templatical/core\";\n\nimport type { UseEditorCoreReturn } from \"../../composables/useEditorCore\";\nimport type { CloudAttachment, CloudReady, CloudRuntime } from \"../runtime\";\n\nimport CloudErrorOverlay from \"./CloudErrorOverlay.vue\";\nimport CloudLoadingOverlay from \"./CloudLoadingOverlay.vue\";\nimport CloudSaveGateModal from \"./CloudSaveGateModal.vue\";\n\n/**\n * Every piece of Cloud chrome that renders outside the header.\n *\n * `Editor.vue` mounts this behind one lazy `defineAsyncComponent` gated on a\n * cloud runtime being present, so an OSS consumer downloads none of it — the\n * `SavedBlocksPanels` / `TestEmailPanel` pattern.\n *\n * The overlays live here rather than in the shared editor deliberately: `init()`\n * cannot fail after it mounts, and OSS should not grow the ability.\n *\n * The comments sidebar is deliberately not here: it is shared, as `CommentsPanel`\n * in `Editor.vue` over a `CommentsProvider`. Its filter target lives on the shared\n * feature rather than being relayed through this component, so it survives the\n * lazy panel's mount without a runtime hop.\n *\n * The media library is not here either: it is shared, as `MediaPanels` in\n * `Editor.vue` over a `MediaProvider`. Cloud supplies that provider; it does\n * not mount a second modal.\n */\ndefineProps<{\n editor: UseEditorReturn;\n core: UseEditorCoreReturn;\n runtime: CloudRuntime;\n cloud: CloudAttachment;\n ready: CloudReady;\n}>();\n</script>\n\n<template>\n <!-- A template create / load in flight. Cloud reads its content from the\n server, so there is a real gap where the canvas shows the wrong thing. -->\n <Transition\n enter-active-class=\"tpl:transition-opacity tpl:duration-200\"\n enter-from-class=\"tpl:opacity-100\"\n enter-to-class=\"tpl:opacity-100\"\n leave-active-class=\"tpl:transition-opacity tpl:duration-300\"\n leave-from-class=\"tpl:opacity-100\"\n leave-to-class=\"tpl:opacity-0\"\n >\n <CloudLoadingOverlay :visible=\"editor.state.isLoading\" />\n </Transition>\n\n <!-- Session failure — an auth refresh that could not renew the token. The\n *bootstrap* has no overlay any more: it runs before the mount, so a\n failure there rejects `initCloud()` instead of mounting a dead editor. -->\n <Transition\n enter-active-class=\"tpl:transition-opacity tpl:duration-200\"\n enter-from-class=\"tpl:opacity-0\"\n enter-to-class=\"tpl:opacity-100\"\n leave-active-class=\"tpl:transition-opacity tpl:duration-300\"\n leave-from-class=\"tpl:opacity-100\"\n leave-to-class=\"tpl:opacity-0\"\n >\n <CloudErrorOverlay\n :error=\"ready.sessionError.value\"\n :visible=\"!!ready.sessionError.value\"\n @retry=\"ready.retry\"\n />\n </Transition>\n\n <CloudSaveGateModal\n :open=\"ready.saveGate.modalOpen.value\"\n :issues=\"ready.saveGate.blockingIssues.value\"\n @cancel=\"ready.saveGate.cancel\"\n @confirm=\"ready.saveGate.confirmAndSave\"\n />\n</template>\n","<script setup lang=\"ts\">\nimport type { UseEditorReturn } from \"@templatical/core\";\n\nimport type { UseEditorCoreReturn } from \"../../composables/useEditorCore\";\nimport type { CloudAttachment, CloudReady, CloudRuntime } from \"../runtime\";\n\nimport CloudErrorOverlay from \"./CloudErrorOverlay.vue\";\nimport CloudLoadingOverlay from \"./CloudLoadingOverlay.vue\";\nimport CloudSaveGateModal from \"./CloudSaveGateModal.vue\";\n\n/**\n * Every piece of Cloud chrome that renders outside the header.\n *\n * `Editor.vue` mounts this behind one lazy `defineAsyncComponent` gated on a\n * cloud runtime being present, so an OSS consumer downloads none of it — the\n * `SavedBlocksPanels` / `TestEmailPanel` pattern.\n *\n * The overlays live here rather than in the shared editor deliberately: `init()`\n * cannot fail after it mounts, and OSS should not grow the ability.\n *\n * The comments sidebar is deliberately not here: it is shared, as `CommentsPanel`\n * in `Editor.vue` over a `CommentsProvider`. Its filter target lives on the shared\n * feature rather than being relayed through this component, so it survives the\n * lazy panel's mount without a runtime hop.\n *\n * The media library is not here either: it is shared, as `MediaPanels` in\n * `Editor.vue` over a `MediaProvider`. Cloud supplies that provider; it does\n * not mount a second modal.\n */\ndefineProps<{\n editor: UseEditorReturn;\n core: UseEditorCoreReturn;\n runtime: CloudRuntime;\n cloud: CloudAttachment;\n ready: CloudReady;\n}>();\n</script>\n\n<template>\n <!-- A template create / load in flight. Cloud reads its content from the\n server, so there is a real gap where the canvas shows the wrong thing. -->\n <Transition\n enter-active-class=\"tpl:transition-opacity tpl:duration-200\"\n enter-from-class=\"tpl:opacity-100\"\n enter-to-class=\"tpl:opacity-100\"\n leave-active-class=\"tpl:transition-opacity tpl:duration-300\"\n leave-from-class=\"tpl:opacity-100\"\n leave-to-class=\"tpl:opacity-0\"\n >\n <CloudLoadingOverlay :visible=\"editor.state.isLoading\" />\n </Transition>\n\n <!-- Session failure — an auth refresh that could not renew the token. The\n *bootstrap* has no overlay any more: it runs before the mount, so a\n failure there rejects `initCloud()` instead of mounting a dead editor. -->\n <Transition\n enter-active-class=\"tpl:transition-opacity tpl:duration-200\"\n enter-from-class=\"tpl:opacity-0\"\n enter-to-class=\"tpl:opacity-100\"\n leave-active-class=\"tpl:transition-opacity tpl:duration-300\"\n leave-from-class=\"tpl:opacity-100\"\n leave-to-class=\"tpl:opacity-0\"\n >\n <CloudErrorOverlay\n :error=\"ready.sessionError.value\"\n :visible=\"!!ready.sessionError.value\"\n @retry=\"ready.retry\"\n />\n </Transition>\n\n <CloudSaveGateModal\n :open=\"ready.saveGate.modalOpen.value\"\n :issues=\"ready.saveGate.blockingIssues.value\"\n @cancel=\"ready.saveGate.cancel\"\n @confirm=\"ready.saveGate.confirmAndSave\"\n />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;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MAAEN,EAAI,SAAA;IAET,GAAA7C,EAAAF,EAAAgD,CAAA,CAAM,CAAC,SAAS,OAAO,GAAA,CAAA,C;;;;;;;;;;;;;;;;GE/ClCrC,EASaC,GAAA;IARX,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;IACf,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;;IAEf,SAAAC,QAAyD,CAAzDF,EAAyDG,GAAA,EAAnC,SAASsC,EAAA,OAAO,MAAM,U;;;GAM9CzC,EAaaC,GAAA;IAZX,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;IACf,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;;IAEf,SAAAC,QAIE,CAJFF,EAIEI,GAAA;KAHC,OAAOqC,EAAA,MAAM,aAAa;KAC1B,SAAO,CAAA,CAAIA,EAAA,MAAM,aAAa;KAC9B,SAAOA,EAAA,MAAM;;;;;;;;GAIlBzC,EAKEK,GAAA;IAJC,MAAMoC,EAAA,MAAM,SAAS,UAAU;IAC/B,QAAQA,EAAA,MAAM,SAAS,eAAe;IACtC,UAAQA,EAAA,MAAM,SAAS;IACvB,WAASA,EAAA,MAAM,SAAS"}
@@ -1,6 +1,6 @@
1
- import { C as e, P as t, _ as n, dt as r, g as i, m as a, ot as o, p as s, ut as c, x as l } from "./draggable-B8hTTYFO.js";
2
- import { t as u } from "./useI18n-11iqzC6m.js";
3
- import { t as d } from "./icons-HCBP93Ch.js";
1
+ import { C as e, P as t, _ as n, dt as r, ft as i, g as a, m as o, p as s, st as c, x as l } from "./draggable-Du8AUMFT.js";
2
+ import { t as u } from "./useI18n-D8pY4LTq.js";
3
+ import { t as d } from "./icons-okSPsLOa.js";
4
4
  // src/components/collaboration/CollaborationNotices.vue?vue&type=script&setup=true&lang.ts
5
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__ */ e({
6
6
  __name: "CollaborationNotices",
@@ -49,8 +49,8 @@ var f = { class: "tpl:pointer-events-none tpl:absolute tpl:top-16 tpl:left-1/2 t
49
49
  role: "status",
50
50
  "aria-live": "polite",
51
51
  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)]",
52
- style: c(x.warning)
53
- }, r(o(g).collaboration.reconnectingNotice), 5)) : i("", !0), v.value ? (t(), n("div", {
52
+ style: r(x.warning)
53
+ }, i(c(g).collaboration.reconnectingNotice), 5)) : a("", !0), v.value ? (t(), n("div", {
54
54
  key: v.value.id,
55
55
  "data-testid": "collaboration-notice",
56
56
  "data-kind": v.value.kind,
@@ -58,20 +58,20 @@ var f = { class: "tpl:pointer-events-none tpl:absolute tpl:top-16 tpl:left-1/2 t
58
58
  role: "status",
59
59
  "aria-live": "polite",
60
60
  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)]",
61
- style: c(x[b.value])
62
- }, [a("span", null, r(w(v.value)), 1), a("button", {
61
+ style: r(x[b.value])
62
+ }, [o("span", null, i(w(v.value)), 1), o("button", {
63
63
  type: "button",
64
64
  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)]",
65
- "aria-label": o(g).collaboration.dismiss,
66
- title: o(g).collaboration.dismiss,
65
+ "aria-label": c(g).collaboration.dismiss,
66
+ title: c(g).collaboration.dismiss,
67
67
  onClick: u[0] ||= (t) => e.feature.dismissNotice(v.value.id)
68
- }, [l(o(d), {
68
+ }, [l(c(d), {
69
69
  size: 14,
70
70
  "stroke-width": 2,
71
71
  "aria-hidden": "true"
72
- })], 8, m)], 12, p)) : i("", !0)]));
72
+ })], 8, m)], 12, p)) : a("", !0)]));
73
73
  }
74
74
  });
75
75
  export { h as default };
76
76
 
77
- //# sourceMappingURL=CollaborationNotices-Hf8r08Sw.js.map
77
+ //# sourceMappingURL=CollaborationNotices-Bsf1rGW9.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CollaborationNotices-Hf8r08Sw.js","names":["_openBlock","_createElementBlock","_normalizeStyle","_toDisplayString","_unref","_createCommentVNode","_createElementVNode","_createVNode","_sfc_main","defineComponent","openBlock","createElementBlock","toDisplayString","createCommentVNode","createBaseVNode","unref","computed","normalizeStyle","createVNode","useI18n","X","_hoisted_1","_hoisted_2","_hoisted_3","CollaborationNotices_default","props","__props","notice","isReconnecting","tone","TONE_STYLES","nameOf","person","t","agentMessage","values","view","format","message","_cache"],"sources":["../../../src/components/collaboration/CollaborationNotices.vue","../../../src/components/collaboration/CollaborationNotices.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { X } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type {\n CollaborationNoticeView,\n UseCollaborationFeatureReturn,\n} from \"../../composables/useCollaborationFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\n\nconst props = defineProps<{\n feature: UseCollaborationFeatureReturn;\n}>();\n\nconst { t, format } = useI18n();\n\nconst notice = computed(() => props.feature.notices.value.at(-1) ?? null);\n\n/** Shown for as long as the socket is down; edits keep going over HTTP. */\nconst isReconnecting = computed(\n () =>\n props.feature.connection.value === \"reconnecting\" ||\n props.feature.connection.value === \"offline\",\n);\n\n/**\n * Refusals warn; an agent's or the AI's edit is information, so it takes\n * Compositor Teal. Amber stays for selection and intent.\n */\nconst tone = computed(() =>\n notice.value?.kind === \"agentEdited\" || notice.value?.kind === \"aiEdited\"\n ? \"info\"\n : \"warning\",\n);\nconst TONE_STYLES = {\n warning: {\n backgroundColor: \"var(--tpl-warning-light)\",\n color: \"var(--tpl-text)\",\n border: \"1px solid var(--tpl-warning)\",\n },\n info: {\n backgroundColor: \"var(--tpl-secondary-light)\",\n color: \"var(--tpl-text)\",\n border: \"1px solid var(--tpl-secondary)\",\n },\n} as const;\n\nfunction nameOf(person: { name?: string; isGuest?: boolean }): string {\n return person.isGuest || !person.name ? t.collaboration.guest : person.name;\n}\n\n/**\n * \"{who} changed …\", where `who` is \"Claude for Ada\" or \"AI (for Ada)\": an\n * updated template wins, then blocks with settings.\n */\nfunction agentMessage(\n view: Extract<CollaborationNoticeView, { kind: \"agentEdited\" | \"aiEdited\" }>,\n): string {\n const who =\n view.kind === \"aiEdited\"\n ? format(t.collaboration.aiFor, { name: nameOf(view) })\n : format(t.collaboration.agentFor, {\n client: view.client ?? t.collaboration.anAgent,\n name: nameOf(view),\n });\n const values = { who, count: view.blocks };\n if (view.templateUpdated)\n return format(t.collaboration.agentUpdatedTemplate, values);\n if (view.settings && view.blocks > 1)\n return format(t.collaboration.agentChangedBlocksAndSettings, values);\n if (view.settings && view.blocks === 1)\n return format(t.collaboration.agentChangedBlockAndSettings, values);\n if (view.settings)\n return format(t.collaboration.agentChangedSettings, values);\n if (view.blocks === 1)\n return format(t.collaboration.agentChangedBlock, values);\n return format(t.collaboration.agentChangedBlocks, values);\n}\n\nfunction message(view: CollaborationNoticeView): string {\n switch (view.kind) {\n case \"selectionRefused\":\n return format(t.collaboration.selectionRefused, { name: nameOf(view) });\n case \"editRefused\":\n if (view.code === \"content_too_large\")\n return t.collaboration.editTooLarge;\n return view.code === \"lock_held\" && (view.name || view.isGuest)\n ? format(t.collaboration.editRefusedLocked, { name: nameOf(view) })\n : t.collaboration.editRefused;\n case \"undoSkipped\":\n return t.collaboration.undoSkipped;\n case \"replaceRefused\":\n return format(t.collaboration.replaceRefused, {\n names: view.holders.map(nameOf).join(\", \"),\n });\n case \"agentEdited\":\n case \"aiEdited\":\n return agentMessage(view);\n }\n}\n</script>\n\n<template>\n <div\n 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\"\n >\n <div\n v-if=\"isReconnecting\"\n data-testid=\"collaboration-notice\"\n data-kind=\"reconnecting\"\n data-tone=\"warning\"\n role=\"status\"\n aria-live=\"polite\"\n 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)]\"\n :style=\"TONE_STYLES.warning\"\n >\n {{ t.collaboration.reconnectingNotice }}\n </div>\n <!-- `message()` is interpolated, never `v-html`: an agent's name comes\n from its own registration and is untrusted text. -->\n <div\n v-if=\"notice\"\n :key=\"notice.id\"\n data-testid=\"collaboration-notice\"\n :data-kind=\"notice.kind\"\n :data-tone=\"tone\"\n role=\"status\"\n aria-live=\"polite\"\n 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)]\"\n :style=\"TONE_STYLES[tone]\"\n >\n <span>{{ message(notice) }}</span>\n <button\n type=\"button\"\n 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)]\"\n :aria-label=\"t.collaboration.dismiss\"\n :title=\"t.collaboration.dismiss\"\n @click=\"feature.dismissNotice(notice.id)\"\n >\n <X :size=\"14\" :stroke-width=\"2\" aria-hidden=\"true\" />\n </button>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { X } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type {\n CollaborationNoticeView,\n UseCollaborationFeatureReturn,\n} from \"../../composables/useCollaborationFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\n\nconst props = defineProps<{\n feature: UseCollaborationFeatureReturn;\n}>();\n\nconst { t, format } = useI18n();\n\nconst notice = computed(() => props.feature.notices.value.at(-1) ?? null);\n\n/** Shown for as long as the socket is down; edits keep going over HTTP. */\nconst isReconnecting = computed(\n () =>\n props.feature.connection.value === \"reconnecting\" ||\n props.feature.connection.value === \"offline\",\n);\n\n/**\n * Refusals warn; an agent's or the AI's edit is information, so it takes\n * Compositor Teal. Amber stays for selection and intent.\n */\nconst tone = computed(() =>\n notice.value?.kind === \"agentEdited\" || notice.value?.kind === \"aiEdited\"\n ? \"info\"\n : \"warning\",\n);\nconst TONE_STYLES = {\n warning: {\n backgroundColor: \"var(--tpl-warning-light)\",\n color: \"var(--tpl-text)\",\n border: \"1px solid var(--tpl-warning)\",\n },\n info: {\n backgroundColor: \"var(--tpl-secondary-light)\",\n color: \"var(--tpl-text)\",\n border: \"1px solid var(--tpl-secondary)\",\n },\n} as const;\n\nfunction nameOf(person: { name?: string; isGuest?: boolean }): string {\n return person.isGuest || !person.name ? t.collaboration.guest : person.name;\n}\n\n/**\n * \"{who} changed …\", where `who` is \"Claude for Ada\" or \"AI (for Ada)\": an\n * updated template wins, then blocks with settings.\n */\nfunction agentMessage(\n view: Extract<CollaborationNoticeView, { kind: \"agentEdited\" | \"aiEdited\" }>,\n): string {\n const who =\n view.kind === \"aiEdited\"\n ? format(t.collaboration.aiFor, { name: nameOf(view) })\n : format(t.collaboration.agentFor, {\n client: view.client ?? t.collaboration.anAgent,\n name: nameOf(view),\n });\n const values = { who, count: view.blocks };\n if (view.templateUpdated)\n return format(t.collaboration.agentUpdatedTemplate, values);\n if (view.settings && view.blocks > 1)\n return format(t.collaboration.agentChangedBlocksAndSettings, values);\n if (view.settings && view.blocks === 1)\n return format(t.collaboration.agentChangedBlockAndSettings, values);\n if (view.settings)\n return format(t.collaboration.agentChangedSettings, values);\n if (view.blocks === 1)\n return format(t.collaboration.agentChangedBlock, values);\n return format(t.collaboration.agentChangedBlocks, values);\n}\n\nfunction message(view: CollaborationNoticeView): string {\n switch (view.kind) {\n case \"selectionRefused\":\n return format(t.collaboration.selectionRefused, { name: nameOf(view) });\n case \"editRefused\":\n if (view.code === \"content_too_large\")\n return t.collaboration.editTooLarge;\n return view.code === \"lock_held\" && (view.name || view.isGuest)\n ? format(t.collaboration.editRefusedLocked, { name: nameOf(view) })\n : t.collaboration.editRefused;\n case \"undoSkipped\":\n return t.collaboration.undoSkipped;\n case \"replaceRefused\":\n return format(t.collaboration.replaceRefused, {\n names: view.holders.map(nameOf).join(\", \"),\n });\n case \"agentEdited\":\n case \"aiEdited\":\n return agentMessage(view);\n }\n}\n</script>\n\n<template>\n <div\n 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\"\n >\n <div\n v-if=\"isReconnecting\"\n data-testid=\"collaboration-notice\"\n data-kind=\"reconnecting\"\n data-tone=\"warning\"\n role=\"status\"\n aria-live=\"polite\"\n 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)]\"\n :style=\"TONE_STYLES.warning\"\n >\n {{ t.collaboration.reconnectingNotice }}\n </div>\n <!-- `message()` is interpolated, never `v-html`: an agent's name comes\n from its own registration and is untrusted text. -->\n <div\n v-if=\"notice\"\n :key=\"notice.id\"\n data-testid=\"collaboration-notice\"\n :data-kind=\"notice.kind\"\n :data-tone=\"tone\"\n role=\"status\"\n aria-live=\"polite\"\n 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)]\"\n :style=\"TONE_STYLES[tone]\"\n >\n <span>{{ message(notice) }}</span>\n <button\n type=\"button\"\n 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)]\"\n :aria-label=\"t.collaboration.dismiss\"\n :title=\"t.collaboration.dismiss\"\n @click=\"feature.dismissNotice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AAEb,EAAA,QAAQ,cAAcC,EAAA,MAAO,EAAE;E,IAEvCpB,EAAqDH,EAAAgB,CAAA,GAAA;GAAjD,MAAM;GAAK,gBAAc;GAAG,eAAY"}
1
+ {"version":3,"file":"CollaborationNotices-Bsf1rGW9.js","names":["_openBlock","_createElementBlock","_normalizeStyle","_toDisplayString","_unref","_createCommentVNode","_createElementVNode","_createVNode","_sfc_main","defineComponent","openBlock","createElementBlock","normalizeStyle","toDisplayString","createCommentVNode","createBaseVNode","computed","unref","createVNode","useI18n","X","_hoisted_1","_hoisted_2","_hoisted_3","CollaborationNotices_default","props","__props","notice","isReconnecting","tone","TONE_STYLES","nameOf","person","t","agentMessage","values","view","format","message","_cache"],"sources":["../../../src/components/collaboration/CollaborationNotices.vue","../../../src/components/collaboration/CollaborationNotices.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { X } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type {\n CollaborationNoticeView,\n UseCollaborationFeatureReturn,\n} from \"../../composables/useCollaborationFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\n\nconst props = defineProps<{\n feature: UseCollaborationFeatureReturn;\n}>();\n\nconst { t, format } = useI18n();\n\nconst notice = computed(() => props.feature.notices.value.at(-1) ?? null);\n\n/** Shown for as long as the socket is down; edits keep going over HTTP. */\nconst isReconnecting = computed(\n () =>\n props.feature.connection.value === \"reconnecting\" ||\n props.feature.connection.value === \"offline\",\n);\n\n/**\n * Refusals warn; an agent's or the AI's edit is information, so it takes\n * Compositor Teal. Amber stays for selection and intent.\n */\nconst tone = computed(() =>\n notice.value?.kind === \"agentEdited\" || notice.value?.kind === \"aiEdited\"\n ? \"info\"\n : \"warning\",\n);\nconst TONE_STYLES = {\n warning: {\n backgroundColor: \"var(--tpl-warning-light)\",\n color: \"var(--tpl-text)\",\n border: \"1px solid var(--tpl-warning)\",\n },\n info: {\n backgroundColor: \"var(--tpl-secondary-light)\",\n color: \"var(--tpl-text)\",\n border: \"1px solid var(--tpl-secondary)\",\n },\n} as const;\n\nfunction nameOf(person: { name?: string; isGuest?: boolean }): string {\n return person.isGuest || !person.name ? t.collaboration.guest : person.name;\n}\n\n/**\n * \"{who} changed …\", where `who` is \"Claude for Ada\" or \"AI (for Ada)\": an\n * updated template wins, then blocks with settings.\n */\nfunction agentMessage(\n view: Extract<CollaborationNoticeView, { kind: \"agentEdited\" | \"aiEdited\" }>,\n): string {\n const who =\n view.kind === \"aiEdited\"\n ? format(t.collaboration.aiFor, { name: nameOf(view) })\n : format(t.collaboration.agentFor, {\n client: view.client ?? t.collaboration.anAgent,\n name: nameOf(view),\n });\n const values = { who, count: view.blocks };\n if (view.templateUpdated)\n return format(t.collaboration.agentUpdatedTemplate, values);\n if (view.settings && view.blocks > 1)\n return format(t.collaboration.agentChangedBlocksAndSettings, values);\n if (view.settings && view.blocks === 1)\n return format(t.collaboration.agentChangedBlockAndSettings, values);\n if (view.settings)\n return format(t.collaboration.agentChangedSettings, values);\n if (view.blocks === 1)\n return format(t.collaboration.agentChangedBlock, values);\n return format(t.collaboration.agentChangedBlocks, values);\n}\n\nfunction message(view: CollaborationNoticeView): string {\n switch (view.kind) {\n case \"selectionRefused\":\n return format(t.collaboration.selectionRefused, { name: nameOf(view) });\n case \"editRefused\":\n if (view.code === \"content_too_large\")\n return t.collaboration.editTooLarge;\n return view.code === \"lock_held\" && (view.name || view.isGuest)\n ? format(t.collaboration.editRefusedLocked, { name: nameOf(view) })\n : t.collaboration.editRefused;\n case \"undoSkipped\":\n return t.collaboration.undoSkipped;\n case \"replaceRefused\":\n return format(t.collaboration.replaceRefused, {\n names: view.holders.map(nameOf).join(\", \"),\n });\n case \"agentEdited\":\n case \"aiEdited\":\n return agentMessage(view);\n }\n}\n</script>\n\n<template>\n <div\n 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\"\n >\n <div\n v-if=\"isReconnecting\"\n data-testid=\"collaboration-notice\"\n data-kind=\"reconnecting\"\n data-tone=\"warning\"\n role=\"status\"\n aria-live=\"polite\"\n 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)]\"\n :style=\"TONE_STYLES.warning\"\n >\n {{ t.collaboration.reconnectingNotice }}\n </div>\n <!-- `message()` is interpolated, never `v-html`: an agent's name comes\n from its own registration and is untrusted text. -->\n <div\n v-if=\"notice\"\n :key=\"notice.id\"\n data-testid=\"collaboration-notice\"\n :data-kind=\"notice.kind\"\n :data-tone=\"tone\"\n role=\"status\"\n aria-live=\"polite\"\n 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)]\"\n :style=\"TONE_STYLES[tone]\"\n >\n <span>{{ message(notice) }}</span>\n <button\n type=\"button\"\n 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)]\"\n :aria-label=\"t.collaboration.dismiss\"\n :title=\"t.collaboration.dismiss\"\n @click=\"feature.dismissNotice(notice.id)\"\n >\n <X :size=\"14\" :stroke-width=\"2\" aria-hidden=\"true\" />\n </button>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { X } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type {\n CollaborationNoticeView,\n UseCollaborationFeatureReturn,\n} from \"../../composables/useCollaborationFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\n\nconst props = defineProps<{\n feature: UseCollaborationFeatureReturn;\n}>();\n\nconst { t, format } = useI18n();\n\nconst notice = computed(() => props.feature.notices.value.at(-1) ?? null);\n\n/** Shown for as long as the socket is down; edits keep going over HTTP. */\nconst isReconnecting = computed(\n () =>\n props.feature.connection.value === \"reconnecting\" ||\n props.feature.connection.value === \"offline\",\n);\n\n/**\n * Refusals warn; an agent's or the AI's edit is information, so it takes\n * Compositor Teal. Amber stays for selection and intent.\n */\nconst tone = computed(() =>\n notice.value?.kind === \"agentEdited\" || notice.value?.kind === \"aiEdited\"\n ? \"info\"\n : \"warning\",\n);\nconst TONE_STYLES = {\n warning: {\n backgroundColor: \"var(--tpl-warning-light)\",\n color: \"var(--tpl-text)\",\n border: \"1px solid var(--tpl-warning)\",\n },\n info: {\n backgroundColor: \"var(--tpl-secondary-light)\",\n color: \"var(--tpl-text)\",\n border: \"1px solid var(--tpl-secondary)\",\n },\n} as const;\n\nfunction nameOf(person: { name?: string; isGuest?: boolean }): string {\n return person.isGuest || !person.name ? t.collaboration.guest : person.name;\n}\n\n/**\n * \"{who} changed …\", where `who` is \"Claude for Ada\" or \"AI (for Ada)\": an\n * updated template wins, then blocks with settings.\n */\nfunction agentMessage(\n view: Extract<CollaborationNoticeView, { kind: \"agentEdited\" | \"aiEdited\" }>,\n): string {\n const who =\n view.kind === \"aiEdited\"\n ? format(t.collaboration.aiFor, { name: nameOf(view) })\n : format(t.collaboration.agentFor, {\n client: view.client ?? t.collaboration.anAgent,\n name: nameOf(view),\n });\n const values = { who, count: view.blocks };\n if (view.templateUpdated)\n return format(t.collaboration.agentUpdatedTemplate, values);\n if (view.settings && view.blocks > 1)\n return format(t.collaboration.agentChangedBlocksAndSettings, values);\n if (view.settings && view.blocks === 1)\n return format(t.collaboration.agentChangedBlockAndSettings, values);\n if (view.settings)\n return format(t.collaboration.agentChangedSettings, values);\n if (view.blocks === 1)\n return format(t.collaboration.agentChangedBlock, values);\n return format(t.collaboration.agentChangedBlocks, values);\n}\n\nfunction message(view: CollaborationNoticeView): string {\n switch (view.kind) {\n case \"selectionRefused\":\n return format(t.collaboration.selectionRefused, { name: nameOf(view) });\n case \"editRefused\":\n if (view.code === \"content_too_large\")\n return t.collaboration.editTooLarge;\n return view.code === \"lock_held\" && (view.name || view.isGuest)\n ? format(t.collaboration.editRefusedLocked, { name: nameOf(view) })\n : t.collaboration.editRefused;\n case \"undoSkipped\":\n return t.collaboration.undoSkipped;\n case \"replaceRefused\":\n return format(t.collaboration.replaceRefused, {\n names: view.holders.map(nameOf).join(\", \"),\n });\n case \"agentEdited\":\n case \"aiEdited\":\n return agentMessage(view);\n }\n}\n</script>\n\n<template>\n <div\n 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\"\n >\n <div\n v-if=\"isReconnecting\"\n data-testid=\"collaboration-notice\"\n data-kind=\"reconnecting\"\n data-tone=\"warning\"\n role=\"status\"\n aria-live=\"polite\"\n 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)]\"\n :style=\"TONE_STYLES.warning\"\n >\n {{ t.collaboration.reconnectingNotice }}\n </div>\n <!-- `message()` is interpolated, never `v-html`: an agent's name comes\n from its own registration and is untrusted text. -->\n <div\n v-if=\"notice\"\n :key=\"notice.id\"\n data-testid=\"collaboration-notice\"\n :data-kind=\"notice.kind\"\n :data-tone=\"tone\"\n role=\"status\"\n aria-live=\"polite\"\n 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)]\"\n :style=\"TONE_STYLES[tone]\"\n >\n <span>{{ message(notice) }}</span>\n <button\n type=\"button\"\n 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)]\"\n :aria-label=\"t.collaboration.dismiss\"\n :title=\"t.collaboration.dismiss\"\n @click=\"feature.dismissNotice(notice.id)\"\n >\n <X :size=\"14\" :stroke-width=\"2\" aria-hidden=\"true\" />\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AqDH,EAAAgB,CAAA,GAAA;GAAjD,MAAM;GAAK,gBAAc;GAAG,eAAY"}
@@ -1,6 +1,6 @@
1
- import { C as e, I as t, P as n, _ as r, dt as i, g as a, h as o, m as s, ot as c, p as l, u, ut as d } from "./draggable-B8hTTYFO.js";
2
- import { t as f } from "./useI18n-11iqzC6m.js";
3
- import { i as p, r as m } from "./icons-HCBP93Ch.js";
1
+ import { C as e, I as t, P as n, _ as r, dt as i, ft as a, g as o, h as s, m as c, p as l, st as u, u as d } from "./draggable-Du8AUMFT.js";
2
+ import { t as f } from "./useI18n-D8pY4LTq.js";
3
+ import { i as p, r as m } from "./icons-okSPsLOa.js";
4
4
  import { t as h } from "./readableTextColor-BfZUGnVj.js";
5
5
  // src/components/collaboration/CollaboratorBar.vue?vue&type=script&setup=true&lang.ts
6
6
  var g = ["aria-label"], _ = ["data-state", "title"], v = { class: "tpl:sr-only" }, y = { class: "tpl:flex tpl:items-center tpl:-space-x-1.5" }, b = ["data-person-type", "title"], x = ["src"], S = {
@@ -24,32 +24,32 @@ var g = ["aria-label"], _ = ["data-state", "title"], v = { class: "tpl:sr-only"
24
24
  return (l, f) => (n(), r("div", {
25
25
  "data-testid": "collaborator-bar",
26
26
  role: "group",
27
- "aria-label": c(D).collaboration.people,
27
+ "aria-label": u(D).collaboration.people,
28
28
  class: "tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2"
29
- }, [s("span", {
29
+ }, [c("span", {
30
30
  "data-testid": "collaborator-connection",
31
31
  "data-state": e.connection ?? "none",
32
32
  class: "tpl:flex tpl:items-center tpl:text-xs",
33
- style: d({ color: j.value ? "var(--tpl-success)" : "var(--tpl-text-muted)" }),
33
+ style: i({ color: j.value ? "var(--tpl-success)" : "var(--tpl-text-muted)" }),
34
34
  title: M.value
35
- }, [j.value ? (n(), o(c(m), {
35
+ }, [j.value ? (n(), s(u(m), {
36
36
  key: 0,
37
37
  size: 12,
38
38
  "stroke-width": 2,
39
39
  "aria-hidden": "true"
40
- })) : (n(), o(c(p), {
40
+ })) : (n(), s(u(p), {
41
41
  key: 1,
42
42
  size: 12,
43
43
  "stroke-width": 2,
44
44
  "aria-hidden": "true"
45
- })), s("span", v, i(M.value), 1)], 12, _), s("div", y, [(n(!0), r(u, null, t(O.value, (e) => (n(), r("span", {
45
+ })), c("span", v, a(M.value), 1)], 12, _), c("div", y, [(n(!0), r(d, null, t(O.value, (e) => (n(), r("span", {
46
46
  key: e.key,
47
47
  "data-testid": "collaborator-avatar",
48
48
  "data-person-type": e.type,
49
49
  class: "tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:overflow-hidden tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:hover:z-10 tpl:hover:scale-110",
50
- style: d({
50
+ style: i({
51
51
  backgroundColor: e.color,
52
- color: c(h)(e.color),
52
+ color: u(h)(e.color),
53
53
  boxShadow: `0 0 0 1px ${e.color}`
54
54
  }),
55
55
  title: N(e)
@@ -58,14 +58,14 @@ var g = ["aria-label"], _ = ["data-state", "title"], v = { class: "tpl:sr-only"
58
58
  src: e.avatarUrl,
59
59
  alt: "",
60
60
  class: "tpl:size-full tpl:object-cover"
61
- }, null, 8, x)) : (n(), r("span", S, i(P(e)), 1)), s("span", C, i(N(e)), 1)], 12, b))), 128)), k.value.length > 0 ? (n(), r("span", {
61
+ }, null, 8, x)) : (n(), r("span", S, a(P(e)), 1)), c("span", C, a(N(e)), 1)], 12, b))), 128)), k.value.length > 0 ? (n(), r("span", {
62
62
  key: 0,
63
63
  "data-testid": "collaborator-overflow",
64
64
  class: "tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[10px] tpl:font-bold tpl:text-[var(--tpl-text-muted)]",
65
65
  title: A.value
66
- }, " +" + i(k.value.length), 9, w)) : a("", !0)])], 8, g));
66
+ }, " +" + a(k.value.length), 9, w)) : o("", !0)])], 8, g));
67
67
  }
68
68
  });
69
69
  export { E as default };
70
70
 
71
- //# sourceMappingURL=CollaboratorBar-II8eYtKu.js.map
71
+ //# sourceMappingURL=CollaboratorBar-CXByAoUz.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CollaboratorBar-II8eYtKu.js","names":["_openBlock","_createElementBlock","_unref","_createElementVNode","_normalizeStyle","_createBlock","_toDisplayString","_Fragment","_renderList","_createCommentVNode","_sfc_main","defineComponent","renderList","openBlock","createElementBlock","toDisplayString","createCommentVNode","createBlock","createBaseVNode","unref","computed","normalizeStyle","useI18n","WifiOff","Wifi","readableTextColor","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","MAX_VISIBLE","CollaboratorBar_default","props","__props","visiblePeople","overflowPeople","overflowNames","displayName","isConnected","connectionLabel","t","person","initials","parts","Fragment"],"sources":["../../../src/components/collaboration/CollaboratorBar.vue","../../../src/components/collaboration/CollaboratorBar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { CollaborationConnectionState } from \"@templatical/types\";\nimport { Wifi, WifiOff } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type { CollaborationPerson } from \"../../composables/useCollaborationFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { readableTextColor } from \"../../utils/readableTextColor\";\n\nconst props = defineProps<{\n /** Everyone else with the template open, one entry per person. */\n people: CollaborationPerson[];\n /** `null` while no realtime join has happened. */\n connection: CollaborationConnectionState | null;\n}>();\n\nconst { t } = useI18n();\n\nconst MAX_VISIBLE = 3;\n\nconst visiblePeople = computed(() => props.people.slice(0, MAX_VISIBLE));\nconst overflowPeople = computed(() => props.people.slice(MAX_VISIBLE));\nconst overflowNames = computed(() =>\n overflowPeople.value.map(displayName).join(\"\\n\"),\n);\n\nconst isConnected = computed(() => props.connection === \"connected\");\nconst connectionLabel = computed(() => {\n if (props.connection === \"connected\") return t.collaboration.connected;\n if (props.connection === \"reconnecting\") return t.collaboration.reconnecting;\n return t.collaboration.offline;\n});\n\n/** A guest's name comes from the server in English; the bar uses its own word. */\nfunction displayName(person: CollaborationPerson): string {\n return person.type === \"guest\" || person.name.trim() === \"\"\n ? t.collaboration.guest\n : person.name;\n}\n\nfunction initials(person: CollaborationPerson): string {\n const parts = displayName(person).trim().split(/\\s+/);\n const first = parts[0]?.charAt(0) ?? \"\";\n const last = parts.length > 1 ? parts[parts.length - 1].charAt(0) : \"\";\n return (first + last).toUpperCase();\n}\n</script>\n\n<template>\n <div\n data-testid=\"collaborator-bar\"\n role=\"group\"\n :aria-label=\"t.collaboration.people\"\n class=\"tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2\"\n >\n <span\n data-testid=\"collaborator-connection\"\n :data-state=\"connection ?? 'none'\"\n class=\"tpl:flex tpl:items-center tpl:text-xs\"\n :style=\"{\n color: isConnected ? 'var(--tpl-success)' : 'var(--tpl-text-muted)',\n }\"\n :title=\"connectionLabel\"\n >\n <Wifi\n v-if=\"isConnected\"\n :size=\"12\"\n :stroke-width=\"2\"\n aria-hidden=\"true\"\n />\n <WifiOff v-else :size=\"12\" :stroke-width=\"2\" aria-hidden=\"true\" />\n <span class=\"tpl:sr-only\">{{ connectionLabel }}</span>\n </span>\n\n <div class=\"tpl:flex tpl:items-center tpl:-space-x-1.5\">\n <span\n v-for=\"person in visiblePeople\"\n :key=\"person.key\"\n data-testid=\"collaborator-avatar\"\n :data-person-type=\"person.type\"\n class=\"tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:overflow-hidden tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:hover:z-10 tpl:hover:scale-110\"\n :style=\"{\n backgroundColor: person.color,\n color: readableTextColor(person.color),\n boxShadow: `0 0 0 1px ${person.color}`,\n }\"\n :title=\"displayName(person)\"\n >\n <img\n v-if=\"person.avatarUrl\"\n :src=\"person.avatarUrl\"\n alt=\"\"\n class=\"tpl:size-full tpl:object-cover\"\n />\n <span v-else aria-hidden=\"true\">{{ initials(person) }}</span>\n <span class=\"tpl:sr-only\">{{ displayName(person) }}</span>\n </span>\n <span\n v-if=\"overflowPeople.length > 0\"\n data-testid=\"collaborator-overflow\"\n class=\"tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[10px] tpl:font-bold tpl:text-[var(--tpl-text-muted)]\"\n :title=\"overflowNames\"\n >\n +{{ overflowPeople.length }}\n </span>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport type { CollaborationConnectionState } from \"@templatical/types\";\nimport { Wifi, WifiOff } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type { CollaborationPerson } from \"../../composables/useCollaborationFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { readableTextColor } from \"../../utils/readableTextColor\";\n\nconst props = defineProps<{\n /** Everyone else with the template open, one entry per person. */\n people: CollaborationPerson[];\n /** `null` while no realtime join has happened. */\n connection: CollaborationConnectionState | null;\n}>();\n\nconst { t } = useI18n();\n\nconst MAX_VISIBLE = 3;\n\nconst visiblePeople = computed(() => props.people.slice(0, MAX_VISIBLE));\nconst overflowPeople = computed(() => props.people.slice(MAX_VISIBLE));\nconst overflowNames = computed(() =>\n overflowPeople.value.map(displayName).join(\"\\n\"),\n);\n\nconst isConnected = computed(() => props.connection === \"connected\");\nconst connectionLabel = computed(() => {\n if (props.connection === \"connected\") return t.collaboration.connected;\n if (props.connection === \"reconnecting\") return t.collaboration.reconnecting;\n return t.collaboration.offline;\n});\n\n/** A guest's name comes from the server in English; the bar uses its own word. */\nfunction displayName(person: CollaborationPerson): string {\n return person.type === \"guest\" || person.name.trim() === \"\"\n ? t.collaboration.guest\n : person.name;\n}\n\nfunction initials(person: CollaborationPerson): string {\n const parts = displayName(person).trim().split(/\\s+/);\n const first = parts[0]?.charAt(0) ?? \"\";\n const last = parts.length > 1 ? parts[parts.length - 1].charAt(0) : \"\";\n return (first + last).toUpperCase();\n}\n</script>\n\n<template>\n <div\n data-testid=\"collaborator-bar\"\n role=\"group\"\n :aria-label=\"t.collaboration.people\"\n class=\"tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2\"\n >\n <span\n data-testid=\"collaborator-connection\"\n :data-state=\"connection ?? 'none'\"\n class=\"tpl:flex tpl:items-center tpl:text-xs\"\n :style=\"{\n color: isConnected ? 'var(--tpl-success)' : 'var(--tpl-text-muted)',\n }\"\n :title=\"connectionLabel\"\n >\n <Wifi\n v-if=\"isConnected\"\n :size=\"12\"\n :stroke-width=\"2\"\n aria-hidden=\"true\"\n />\n <WifiOff v-else :size=\"12\" :stroke-width=\"2\" aria-hidden=\"true\" />\n <span class=\"tpl:sr-only\">{{ connectionLabel }}</span>\n </span>\n\n <div class=\"tpl:flex tpl:items-center tpl:-space-x-1.5\">\n <span\n v-for=\"person in visiblePeople\"\n :key=\"person.key\"\n data-testid=\"collaborator-avatar\"\n :data-person-type=\"person.type\"\n class=\"tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:overflow-hidden tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:hover:z-10 tpl:hover:scale-110\"\n :style=\"{\n backgroundColor: person.color,\n color: readableTextColor(person.color),\n boxShadow: `0 0 0 1px ${person.color}`,\n }\"\n :title=\"displayName(person)\"\n >\n <img\n v-if=\"person.avatarUrl\"\n :src=\"person.avatarUrl\"\n alt=\"\"\n class=\"tpl:size-full tpl:object-cover\"\n />\n <span v-else aria-hidden=\"true\">{{ initials(person) }}</span>\n <span class=\"tpl:sr-only\">{{ displayName(person) }}</span>\n </span>\n <span\n v-if=\"overflowPeople.length > 0\"\n data-testid=\"collaborator-overflow\"\n class=\"tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[10px] tpl:font-bold tpl:text-[var(--tpl-text-muted)]\"\n :title=\"overflowNames\"\n >\n +{{ overflowPeople.length }}\n </span>\n </div>\n </div>\n</template>\n"],"mappings":";;;;;;;;A,gDAiBMmC,IAAc,G;;;;;;;EATpB,IAAME,IAAQC,GAOR,EAAE,SAAMhB,EAAQ,GAIhBiB,IAAgBnB,QAAeiB,EAAM,OAAO,MAAM,GAAGF,CAAW,CAAC,GACjEK,IAAiBpB,QAAeiB,EAAM,OAAO,MAAMF,CAAW,CAAC,GAC/DM,IAAgBrB,QACpBoB,EAAe,MAAM,IAAIE,CAAW,CAAC,CAAC,KAAK,IAAI,CACjD,GAEMC,IAAcvB,QAAeiB,EAAM,eAAe,WAAW,GAC7DO,IAAkBxB,QAClBiB,EAAM,eAAe,cAAoBQ,EAAE,cAAc,YACzDR,EAAM,eAAe,iBAAuBQ,EAAE,cAAc,eACzDA,EAAE,cAAc,OACxB;EAGD,SAASH,EAAY,GAAqC;GACxD,OAAOI,EAAO,SAAS,WAAWA,EAAO,KAAK,KAAK,MAAM,KACrDD,EAAE,cAAc,QAChBC,EAAO;EACb;EAEA,SAASC,EAAS,GAAqC;GACrD,IAAMC,IAAQN,EAAYI,CAAM,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK;GAGpD,SAFcE,EAAM,EAAE,EAAE,OAAO,CAAC,KAAK,OACxBA,EAAM,SAAS,IAAIA,EAAMA,EAAM,SAAS,EAAE,CAAC,OAAO,CAAC,IAAI,IAAA,CAC9C,YAAY;EACpC;E,kBAIEhD,EAAA,GAAAC,EAyDM,OAAA;GAxDJ,eAAY;GACZ,MAAK;GACJ,cAAYC,EAAA2C,CAAA,CAAC,CAAC,cAAc;GAC7B,OAAM;E,IAEN1C,E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-CXByAoUz.js","names":["_openBlock","_createElementBlock","_unref","_createElementVNode","_normalizeStyle","_createBlock","_toDisplayString","_Fragment","_renderList","_createCommentVNode","_sfc_main","defineComponent","renderList","openBlock","createElementBlock","normalizeStyle","toDisplayString","createCommentVNode","createBlock","createBaseVNode","computed","unref","Fragment","useI18n","WifiOff","Wifi","readableTextColor","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","MAX_VISIBLE","CollaboratorBar_default","props","__props","visiblePeople","overflowPeople","overflowNames","displayName","isConnected","connectionLabel","t","person","initials","parts"],"sources":["../../../src/components/collaboration/CollaboratorBar.vue","../../../src/components/collaboration/CollaboratorBar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { CollaborationConnectionState } from \"@templatical/types\";\nimport { Wifi, WifiOff } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type { CollaborationPerson } from \"../../composables/useCollaborationFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { readableTextColor } from \"../../utils/readableTextColor\";\n\nconst props = defineProps<{\n /** Everyone else with the template open, one entry per person. */\n people: CollaborationPerson[];\n /** `null` while no realtime join has happened. */\n connection: CollaborationConnectionState | null;\n}>();\n\nconst { t } = useI18n();\n\nconst MAX_VISIBLE = 3;\n\nconst visiblePeople = computed(() => props.people.slice(0, MAX_VISIBLE));\nconst overflowPeople = computed(() => props.people.slice(MAX_VISIBLE));\nconst overflowNames = computed(() =>\n overflowPeople.value.map(displayName).join(\"\\n\"),\n);\n\nconst isConnected = computed(() => props.connection === \"connected\");\nconst connectionLabel = computed(() => {\n if (props.connection === \"connected\") return t.collaboration.connected;\n if (props.connection === \"reconnecting\") return t.collaboration.reconnecting;\n return t.collaboration.offline;\n});\n\n/** A guest's name comes from the server in English; the bar uses its own word. */\nfunction displayName(person: CollaborationPerson): string {\n return person.type === \"guest\" || person.name.trim() === \"\"\n ? t.collaboration.guest\n : person.name;\n}\n\nfunction initials(person: CollaborationPerson): string {\n const parts = displayName(person).trim().split(/\\s+/);\n const first = parts[0]?.charAt(0) ?? \"\";\n const last = parts.length > 1 ? parts[parts.length - 1].charAt(0) : \"\";\n return (first + last).toUpperCase();\n}\n</script>\n\n<template>\n <div\n data-testid=\"collaborator-bar\"\n role=\"group\"\n :aria-label=\"t.collaboration.people\"\n class=\"tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2\"\n >\n <span\n data-testid=\"collaborator-connection\"\n :data-state=\"connection ?? 'none'\"\n class=\"tpl:flex tpl:items-center tpl:text-xs\"\n :style=\"{\n color: isConnected ? 'var(--tpl-success)' : 'var(--tpl-text-muted)',\n }\"\n :title=\"connectionLabel\"\n >\n <Wifi\n v-if=\"isConnected\"\n :size=\"12\"\n :stroke-width=\"2\"\n aria-hidden=\"true\"\n />\n <WifiOff v-else :size=\"12\" :stroke-width=\"2\" aria-hidden=\"true\" />\n <span class=\"tpl:sr-only\">{{ connectionLabel }}</span>\n </span>\n\n <div class=\"tpl:flex tpl:items-center tpl:-space-x-1.5\">\n <span\n v-for=\"person in visiblePeople\"\n :key=\"person.key\"\n data-testid=\"collaborator-avatar\"\n :data-person-type=\"person.type\"\n class=\"tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:overflow-hidden tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:hover:z-10 tpl:hover:scale-110\"\n :style=\"{\n backgroundColor: person.color,\n color: readableTextColor(person.color),\n boxShadow: `0 0 0 1px ${person.color}`,\n }\"\n :title=\"displayName(person)\"\n >\n <img\n v-if=\"person.avatarUrl\"\n :src=\"person.avatarUrl\"\n alt=\"\"\n class=\"tpl:size-full tpl:object-cover\"\n />\n <span v-else aria-hidden=\"true\">{{ initials(person) }}</span>\n <span class=\"tpl:sr-only\">{{ displayName(person) }}</span>\n </span>\n <span\n v-if=\"overflowPeople.length > 0\"\n data-testid=\"collaborator-overflow\"\n class=\"tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[10px] tpl:font-bold tpl:text-[var(--tpl-text-muted)]\"\n :title=\"overflowNames\"\n >\n +{{ overflowPeople.length }}\n </span>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport type { CollaborationConnectionState } from \"@templatical/types\";\nimport { Wifi, WifiOff } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport type { CollaborationPerson } from \"../../composables/useCollaborationFeature\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { readableTextColor } from \"../../utils/readableTextColor\";\n\nconst props = defineProps<{\n /** Everyone else with the template open, one entry per person. */\n people: CollaborationPerson[];\n /** `null` while no realtime join has happened. */\n connection: CollaborationConnectionState | null;\n}>();\n\nconst { t } = useI18n();\n\nconst MAX_VISIBLE = 3;\n\nconst visiblePeople = computed(() => props.people.slice(0, MAX_VISIBLE));\nconst overflowPeople = computed(() => props.people.slice(MAX_VISIBLE));\nconst overflowNames = computed(() =>\n overflowPeople.value.map(displayName).join(\"\\n\"),\n);\n\nconst isConnected = computed(() => props.connection === \"connected\");\nconst connectionLabel = computed(() => {\n if (props.connection === \"connected\") return t.collaboration.connected;\n if (props.connection === \"reconnecting\") return t.collaboration.reconnecting;\n return t.collaboration.offline;\n});\n\n/** A guest's name comes from the server in English; the bar uses its own word. */\nfunction displayName(person: CollaborationPerson): string {\n return person.type === \"guest\" || person.name.trim() === \"\"\n ? t.collaboration.guest\n : person.name;\n}\n\nfunction initials(person: CollaborationPerson): string {\n const parts = displayName(person).trim().split(/\\s+/);\n const first = parts[0]?.charAt(0) ?? \"\";\n const last = parts.length > 1 ? parts[parts.length - 1].charAt(0) : \"\";\n return (first + last).toUpperCase();\n}\n</script>\n\n<template>\n <div\n data-testid=\"collaborator-bar\"\n role=\"group\"\n :aria-label=\"t.collaboration.people\"\n class=\"tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2\"\n >\n <span\n data-testid=\"collaborator-connection\"\n :data-state=\"connection ?? 'none'\"\n class=\"tpl:flex tpl:items-center tpl:text-xs\"\n :style=\"{\n color: isConnected ? 'var(--tpl-success)' : 'var(--tpl-text-muted)',\n }\"\n :title=\"connectionLabel\"\n >\n <Wifi\n v-if=\"isConnected\"\n :size=\"12\"\n :stroke-width=\"2\"\n aria-hidden=\"true\"\n />\n <WifiOff v-else :size=\"12\" :stroke-width=\"2\" aria-hidden=\"true\" />\n <span class=\"tpl:sr-only\">{{ connectionLabel }}</span>\n </span>\n\n <div class=\"tpl:flex tpl:items-center tpl:-space-x-1.5\">\n <span\n v-for=\"person in visiblePeople\"\n :key=\"person.key\"\n data-testid=\"collaborator-avatar\"\n :data-person-type=\"person.type\"\n class=\"tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:overflow-hidden tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:hover:z-10 tpl:hover:scale-110\"\n :style=\"{\n backgroundColor: person.color,\n color: readableTextColor(person.color),\n boxShadow: `0 0 0 1px ${person.color}`,\n }\"\n :title=\"displayName(person)\"\n >\n <img\n v-if=\"person.avatarUrl\"\n :src=\"person.avatarUrl\"\n alt=\"\"\n class=\"tpl:size-full tpl:object-cover\"\n />\n <span v-else aria-hidden=\"true\">{{ initials(person) }}</span>\n <span class=\"tpl:sr-only\">{{ displayName(person) }}</span>\n </span>\n <span\n v-if=\"overflowPeople.length > 0\"\n data-testid=\"collaborator-overflow\"\n class=\"tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[10px] tpl:font-bold tpl:text-[var(--tpl-text-muted)]\"\n :title=\"overflowNames\"\n >\n +{{ overfl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AAc;GACf,eAAY;E,OAEdzB,EAAA,GAAAK,EAAkEH,EAAAsB,CAAA,GAAA;;GAAjD,MAAM;GAAK,gBAAc;GAAG,eAAY;E,KACzDrB,EAAsD,QAAtD0B,GAAsDvB,EAAzBuC,EAAA,KAAe,GAAA,CAAA,C,WAG9C1C,EA+BM,OA/BN2B,GA+BM,EA9BJ9B,EAAA,EAAA,GAAAC,EAqBOM,GAAA,MAAAC,EApBYgC,EAAA,QAAV,OADTxC,EAAA,GAAAC,EAqBO,QAAA;GAnBJ,KAAK8C,EAAO;GACb,eAAY;GACX,oBAAkBA,EAAO;GAC1B,OAAM;GACL,OAAK3C,EAAA;IAA+B,iBAAA2C,EAAO;IAAwB,OAAA7C,EAAAwB,CAAA,CAAiB,CAACqB,EAAO,KAAK;IAAqC,WAAA,aAAAA,EAAO;;GAK7I,OAAOJ,EAAYI,CAAM;E,IAGlBA,EAAO,aADf/C,EAAA,GAAAC,EAKE,OAAA;;GAHC,KAAK8C,EAAO;GACb,KAAI;GACJ,OAAM;E,mBAER/C,EAAA,GAAAC,EAA6D,QAA7DgC,GAA6D3B,EAA1B0C,EAASD,CAAM,CAAA,GAAA,CAAA,IAClD5C,EAA0D,QAA1D+B,GAA0D5B,EAA7BqC,EAAYI,CAAM,CAAA,GAAA,CAAA,C,oBAGzCN,EAAA,MAAe,SAAM,KAD7BzC,EAAA,GAAAC,EAOO,QAAA;;GALL,eAAY;GACZ,OAAM;GACL,OAAOyC,EAAA;EACT,GAAA,OACEpC,EAAGmC,EAAA,MAAe,MAAM,GAAA,GAAAN,CAAA,K"}
@@ -1,10 +1,10 @@
1
- import { C as e, P as t, S as n, g as r, h as i, ot as a } from "./draggable-B8hTTYFO.js";
1
+ import { C as e, P as t, S as n, g as r, h as i, st as a } from "./draggable-Du8AUMFT.js";
2
2
  // src/components/CommentsPanel.vue
3
3
  var o = /* @__PURE__ */ e({
4
4
  __name: "CommentsPanel",
5
5
  props: { feature: {} },
6
6
  setup(e) {
7
- let o = n(() => import("./CommentsSidebar-Dj8sDiLN.js"));
7
+ let o = n(() => import("./CommentsSidebar-CUtgvdBC.js"));
8
8
  return (n, s) => e.feature.isOpen.value ? (t(), i(a(o), {
9
9
  key: 0,
10
10
  visible: e.feature.isOpen.value,
@@ -15,4 +15,4 @@ var o = /* @__PURE__ */ e({
15
15
  });
16
16
  export { o as default };
17
17
 
18
- //# sourceMappingURL=CommentsPanel-CAiwilM2.js.map
18
+ //# sourceMappingURL=CommentsPanel-DoJnKLXI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommentsPanel-CAiwilM2.js","names":["_openBlock","_createBlock","_unref","_createCommentVNode","_sfc_main","defineComponent","openBlock","defineAsyncComponent","createCommentVNode","createBlock","unref","CommentsPanel_default","CommentsSidebar","__props","_cache"],"sources":["../../../src/components/CommentsPanel.vue","../../../src/components/CommentsPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Mount point for the comments sidebar, shared by both entry points.\n *\n * The sidebar is `defineAsyncComponent` behind a `v-if` on its open state, so its\n * chunk is fetched only when the user actually opens the panel. `Editor.vue` in\n * turn lazy-loads *this* wrapper and renders it only when a `CommentsProvider` and\n * a `user` are configured, so a consumer with neither downloads none of it —\n * the `TestEmailPanel` / `SavedBlocksPanels` shape.\n *\n * Never static-import `CommentsSidebar` into `Editor.vue`: that collapses the\n * whole panel into the main entry for every consumer. Guarded by\n * `tests/cdn-chunk-granularity.test.ts`.\n */\nimport { defineAsyncComponent } from \"vue\";\nimport type { UseCommentsFeatureReturn } from \"../composables/useCommentsFeature\";\n\ndefineProps<{\n feature: UseCommentsFeatureReturn;\n}>();\n\nconst CommentsSidebar = defineAsyncComponent(\n () => import(\"./CommentsSidebar.vue\"),\n);\n</script>\n\n<template>\n <CommentsSidebar\n v-if=\"feature.isOpen.value\"\n :visible=\"feature.isOpen.value\"\n :feature=\"feature\"\n @close=\"feature.close()\"\n />\n</template>\n","<script setup lang=\"ts\">\n/**\n * Mount point for the comments sidebar, shared by both entry points.\n *\n * The sidebar is `defineAsyncComponent` behind a `v-if` on its open state, so its\n * chunk is fetched only when the user actually opens the panel. `Editor.vue` in\n * turn lazy-loads *this* wrapper and renders it only when a `CommentsProvider` and\n * a `user` are configured, so a consumer with neither downloads none of it —\n * the `TestEmailPanel` / `SavedBlocksPanels` shape.\n *\n * Never static-import `CommentsSidebar` into `Editor.vue`: that collapses the\n * whole panel into the main entry for every consumer. Guarded by\n * `tests/cdn-chunk-granularity.test.ts`.\n */\nimport { defineAsyncComponent } from \"vue\";\nimport type { UseCommentsFeatureReturn } from \"../composables/useCommentsFeature\";\n\ndefineProps<{\n feature: UseCommentsFeatureReturn;\n}>();\n\nconst CommentsSidebar = defineAsyncComponent(\n () => import(\"./CommentsSidebar.vue\"),\n);\n</script>\n\n<template>\n <CommentsSidebar\n v-if=\"feature.isOpen.value\"\n :visible=\"feature.isOpen.value\"\n :feature=\"feature\"\n @close=\"feature.close()\"\n />\n</template>\n"],"mappings":";;;;;;EAqBA,IAAMY,IAAkBL,QAChB,OAAO,gCACf;E,iBAKUM,EAAA,QAAQ,OAAO,SADvBb,EAAA,GAAAC,EAKEC,EAAAU,CAAA,GAAA;;GAHC,SAASC,EAAA,QAAQ,OAAO;GACxB,SAASA,EAAA;GACT,SAAK,AAAAC,EAAA,QAAA,MAAED,EAAA,QAAQ,MAAK"}
1
+ {"version":3,"file":"CommentsPanel-DoJnKLXI.js","names":["_openBlock","_createBlock","_unref","_createCommentVNode","_sfc_main","defineComponent","openBlock","defineAsyncComponent","createCommentVNode","createBlock","unref","CommentsPanel_default","CommentsSidebar","__props","_cache"],"sources":["../../../src/components/CommentsPanel.vue","../../../src/components/CommentsPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Mount point for the comments sidebar, shared by both entry points.\n *\n * The sidebar is `defineAsyncComponent` behind a `v-if` on its open state, so its\n * chunk is fetched only when the user actually opens the panel. `Editor.vue` in\n * turn lazy-loads *this* wrapper and renders it only when a `CommentsProvider` and\n * a `user` are configured, so a consumer with neither downloads none of it —\n * the `TestEmailPanel` / `SavedBlocksPanels` shape.\n *\n * Never static-import `CommentsSidebar` into `Editor.vue`: that collapses the\n * whole panel into the main entry for every consumer. Guarded by\n * `tests/cdn-chunk-granularity.test.ts`.\n */\nimport { defineAsyncComponent } from \"vue\";\nimport type { UseCommentsFeatureReturn } from \"../composables/useCommentsFeature\";\n\ndefineProps<{\n feature: UseCommentsFeatureReturn;\n}>();\n\nconst CommentsSidebar = defineAsyncComponent(\n () => import(\"./CommentsSidebar.vue\"),\n);\n</script>\n\n<template>\n <CommentsSidebar\n v-if=\"feature.isOpen.value\"\n :visible=\"feature.isOpen.value\"\n :feature=\"feature\"\n @close=\"feature.close()\"\n />\n</template>\n","<script setup lang=\"ts\">\n/**\n * Mount point for the comments sidebar, shared by both entry points.\n *\n * The sidebar is `defineAsyncComponent` behind a `v-if` on its open state, so its\n * chunk is fetched only when the user actually opens the panel. `Editor.vue` in\n * turn lazy-loads *this* wrapper and renders it only when a `CommentsProvider` and\n * a `user` are configured, so a consumer with neither downloads none of it —\n * the `TestEmailPanel` / `SavedBlocksPanels` shape.\n *\n * Never static-import `CommentsSidebar` into `Editor.vue`: that collapses the\n * whole panel into the main entry for every consumer. Guarded by\n * `tests/cdn-chunk-granularity.test.ts`.\n */\nimport { defineAsyncComponent } from \"vue\";\nimport type { UseCommentsFeatureReturn } from \"../composables/useCommentsFeature\";\n\ndefineProps<{\n feature: UseCommentsFeatureReturn;\n}>();\n\nconst CommentsSidebar = defineAsyncComponent(\n () => import(\"./CommentsSidebar.vue\"),\n);\n</script>\n\n<template>\n <CommentsSidebar\n v-if=\"feature.isOpen.value\"\n :visible=\"feature.isOpen.value\"\n :feature=\"feature\"\n @close=\"feature.close()\"\n />\n</template>\n"],"mappings":";;;;;;EAqBA,IAAMY,IAAkBL,QAChB,OAAO,gCACf;E,iBAKUM,EAAA,QAAQ,OAAO,SADvBb,EAAA,GAAAC,EAKEC,EAAAU,CAAA,GAAA;;GAHC,SAASC,EAAA,QAAQ,OAAO;GACxB,SAASA,EAAA;GACT,SAAK,AAAAC,EAAA,QAAA,MAAED,EAAA,QAAQ,MAAK"}