@templatical/editor 0.26.2 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/README.md +3 -1
  2. package/dist/{AiChatSidebar-CMBz6Wix.js → AiChatSidebar-iVJDzqjr.js} +60 -60
  3. package/dist/AiFeatureMenu-DvrK-dzj.js +57 -0
  4. package/dist/{BlockIssueBadge-Buk3_6QF.js → BlockIssueBadge-BHysq7XQ.js} +11 -11
  5. package/dist/BlockPreviewCanvas-GZbr0ph5.js +121 -0
  6. package/dist/CloudHeaderExtras-Cx8gFWu2.js +59 -0
  7. package/dist/CloudPanels-D0X449DD.js +227 -0
  8. package/dist/{CollaboratorBar-zvfvE7f-.js → CollaboratorBar-DMSWCrX3.js} +21 -21
  9. package/dist/ColorPicker-DCjFQCAg.js +501 -0
  10. package/dist/CommentsPanel-D5wQB1Kf.js +18 -0
  11. package/dist/CommentsSidebar-BoTIxpLE.js +481 -0
  12. package/dist/{cdn/chunks/CountdownBlock-vLTkTI9e.js → CountdownBlock-BFX8iU90.js} +19 -21
  13. package/dist/{cdn/chunks/CountdownToolbar-DPjcgcVR.js → CountdownToolbar-CSftc9Ma.js} +52 -53
  14. package/dist/{DesignReferenceSidebar-Bx96XFmK.js → DesignReferenceSidebar-DKsx2TiL.js} +72 -71
  15. package/dist/{IssuesPanel-Do7RLXsP.js → IssuesPanel-flKKwKpM.js} +38 -38
  16. package/dist/{LoadingTrack-BexpNuTV.js → LoadingTrack-C2T8ixEL.js} +3 -3
  17. package/dist/{MergeTagModeToggle-P-UguQHc.js → MergeTagModeToggle-PKCoKAoF.js} +43 -43
  18. package/dist/{MergeTagSuggestion-BJ43ihWR.js → MergeTagSuggestion-DGha0WRp.js} +46 -46
  19. package/dist/{cdn/chunks/NumberWithSuffix-BXrRdfq1.js → NumberWithSuffix-DdPCXfKf.js} +42 -44
  20. package/dist/{ParagraphEditor-CLvv5Ija.js → ParagraphEditor-vDU-5y6r.js} +202 -199
  21. package/dist/RestoreVersionDialog-DIn1muFD.js +86 -0
  22. package/dist/{RichTextEditorContent-fbYJXAio.js → RichTextEditorContent-I83k5DtQ.js} +44 -44
  23. package/dist/SaveBlockDialog-C_QvYAeL.js +266 -0
  24. package/dist/{SavedBlocksBrowserModal-KWlaiLlr.js → SavedBlocksBrowserModal-CefWWcdT.js} +116 -115
  25. package/dist/{cdn/chunks/SavedBlocksPanels-e4HyTZ8v.js → SavedBlocksPanels-DnQwO-7O.js} +9 -11
  26. package/dist/{SavedBlocksPickBar-C3h8oL3r.js → SavedBlocksPickBar-BsFubArH.js} +17 -17
  27. package/dist/{TemplateScoringPanel-BZUsb3FD.js → TemplateScoringPanel-Bv_bBsJi.js} +87 -87
  28. package/dist/TestEmailModal-STPWDP79.js +206 -0
  29. package/dist/{cdn/chunks/TestEmailPanel-CZAG1gQE.js → TestEmailPanel-HYVjApKZ.js} +4 -6
  30. package/dist/TitleEditor-DnB0EJ_g.js +198 -0
  31. package/dist/TplModal-chvLhXmC.js +49 -0
  32. package/dist/VersionHistoryMenu-Cq4rH56t.js +155 -0
  33. package/dist/VersionHistoryPanels-D7k_F7-9.js +46 -0
  34. package/dist/VersionPreviewBanner-DthyHe6C.js +38 -0
  35. package/dist/{blockTypeIcons-2_85L_CL.js → blockTypeIcons-B8r4jMBn.js} +6 -6
  36. package/dist/bundle-stats.json +8 -8
  37. package/dist/{ca-D1zgI9fQ.js → ca-Cqg9O8mx.js} +69 -6
  38. package/dist/cdn/chunks/{AiChatSidebar-CQ8KUmNB.js → AiChatSidebar-DTUoBH5a.js} +54 -54
  39. package/dist/cdn/chunks/AiChatSidebar-DTUoBH5a.js.map +1 -0
  40. package/dist/cdn/chunks/AiFeatureMenu-Dyh7mUMB.js +57 -0
  41. package/dist/cdn/chunks/AiFeatureMenu-Dyh7mUMB.js.map +1 -0
  42. package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js → BlockIssueBadge-UzSSOM_2.js} +13 -13
  43. package/dist/cdn/chunks/{BlockIssueBadge-BEEY9o2o.js.map → BlockIssueBadge-UzSSOM_2.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockPreviewCanvas-DPtiMsVz.js → BlockPreviewCanvas-DStQFo9P.js} +42 -42
  45. package/dist/cdn/chunks/{BlockPreviewCanvas-DPtiMsVz.js.map → BlockPreviewCanvas-DStQFo9P.js.map} +1 -1
  46. package/dist/cdn/chunks/CloudHeaderExtras-BZVu7dnO.js +60 -0
  47. package/dist/cdn/chunks/CloudHeaderExtras-BZVu7dnO.js.map +1 -0
  48. package/dist/cdn/chunks/CloudPanels-CXbaBKHQ.js +227 -0
  49. package/dist/cdn/chunks/CloudPanels-CXbaBKHQ.js.map +1 -0
  50. package/dist/cdn/chunks/{CollaboratorBar-BF469_AN.js → CollaboratorBar-BH_lZlat.js} +22 -22
  51. package/dist/cdn/chunks/CollaboratorBar-BH_lZlat.js.map +1 -0
  52. package/dist/cdn/chunks/ColorPicker-CStXen0Y.js +502 -0
  53. package/dist/cdn/chunks/ColorPicker-CStXen0Y.js.map +1 -0
  54. package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js +20 -0
  55. package/dist/cdn/chunks/CommentsPanel-jzZ2X0P4.js.map +1 -0
  56. package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js +460 -0
  57. package/dist/cdn/chunks/CommentsSidebar-Dxke-vUP.js.map +1 -0
  58. package/dist/{CountdownBlock-DuyvGcr8.js → cdn/chunks/CountdownBlock-BYSrJWxg.js} +25 -23
  59. package/dist/cdn/chunks/{CountdownBlock-vLTkTI9e.js.map → CountdownBlock-BYSrJWxg.js.map} +1 -1
  60. package/dist/{CountdownToolbar-CBE9wRaV.js → cdn/chunks/CountdownToolbar-CZPtQIb8.js} +66 -63
  61. package/dist/cdn/chunks/{CountdownToolbar-DPjcgcVR.js.map → CountdownToolbar-CZPtQIb8.js.map} +1 -1
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-B-HFXV0W.js → DesignReferenceSidebar-sZWciECR.js} +64 -64
  63. package/dist/cdn/chunks/DesignReferenceSidebar-sZWciECR.js.map +1 -0
  64. package/dist/cdn/chunks/{IssuesPanel-DKTS4QVb.js → IssuesPanel-CHtetM9i.js} +36 -36
  65. package/dist/cdn/chunks/IssuesPanel-CHtetM9i.js.map +1 -0
  66. package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js → LoadingTrack-Dp_QZvAK.js} +3 -3
  67. package/dist/cdn/chunks/{LoadingTrack-C52ZGL5q.js.map → LoadingTrack-Dp_QZvAK.js.map} +1 -1
  68. package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js → MergeTagModeToggle-ZwW-5EeN.js} +39 -39
  69. package/dist/cdn/chunks/{MergeTagModeToggle-DQ79SqQc.js.map → MergeTagModeToggle-ZwW-5EeN.js.map} +1 -1
  70. package/dist/cdn/chunks/{MergeTagSuggestion-Dn8dExNa.js → MergeTagSuggestion-DhllqTA3.js} +47 -47
  71. package/dist/cdn/chunks/MergeTagSuggestion-DhllqTA3.js.map +1 -0
  72. package/dist/{NumberWithSuffix-D37ZWiZh.js → cdn/chunks/NumberWithSuffix-yeQLcCyH.js} +37 -35
  73. package/dist/cdn/chunks/NumberWithSuffix-yeQLcCyH.js.map +1 -0
  74. package/dist/cdn/chunks/{ParagraphEditor-Bzcma_Lm.js → ParagraphEditor-BJJ925sx.js} +235 -233
  75. package/dist/cdn/chunks/ParagraphEditor-BJJ925sx.js.map +1 -0
  76. package/dist/cdn/chunks/RestoreVersionDialog-B0Jadu6F.js +87 -0
  77. package/dist/cdn/chunks/RestoreVersionDialog-B0Jadu6F.js.map +1 -0
  78. package/dist/cdn/chunks/{RichTextEditorContent-DtL49Jpo.js → RichTextEditorContent-CfSq2wPR.js} +44 -44
  79. package/dist/cdn/chunks/RichTextEditorContent-CfSq2wPR.js.map +1 -0
  80. package/dist/cdn/chunks/SaveBlockDialog-C1DXh6P9.js +265 -0
  81. package/dist/cdn/chunks/SaveBlockDialog-C1DXh6P9.js.map +1 -0
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C59D4G5C.js → SavedBlocksBrowserModal-BerMxAUt.js} +114 -113
  83. package/dist/cdn/chunks/SavedBlocksBrowserModal-BerMxAUt.js.map +1 -0
  84. package/dist/{SavedBlocksPanels-CQsZvWO_.js → cdn/chunks/SavedBlocksPanels-BUE4lzVP.js} +11 -9
  85. package/dist/cdn/chunks/{SavedBlocksPanels-e4HyTZ8v.js.map → SavedBlocksPanels-BUE4lzVP.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-DMHxPCM4.js → SavedBlocksPickBar-4HrqQfvl.js} +17 -17
  87. package/dist/cdn/chunks/SavedBlocksPickBar-4HrqQfvl.js.map +1 -0
  88. package/dist/cdn/chunks/{TemplateScoringPanel-NucRtAP0.js → TemplateScoringPanel-Xdkp2EMY.js} +81 -81
  89. package/dist/cdn/chunks/TemplateScoringPanel-Xdkp2EMY.js.map +1 -0
  90. package/dist/cdn/chunks/TestEmailModal-yfmFiavR.js +206 -0
  91. package/dist/cdn/chunks/TestEmailModal-yfmFiavR.js.map +1 -0
  92. package/dist/{TestEmailPanel-B6goIAxT.js → cdn/chunks/TestEmailPanel-DqTDh5ri.js} +6 -4
  93. package/dist/cdn/chunks/{TestEmailPanel-CZAG1gQE.js.map → TestEmailPanel-DqTDh5ri.js.map} +1 -1
  94. package/dist/cdn/chunks/{TitleEditor-D0_LY2Ex.js → TitleEditor-nUAF7fKr.js} +85 -84
  95. package/dist/cdn/chunks/TitleEditor-nUAF7fKr.js.map +1 -0
  96. package/dist/cdn/chunks/TplModal-C0IqikoV.js +50 -0
  97. package/dist/cdn/chunks/TplModal-C0IqikoV.js.map +1 -0
  98. package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js +148 -0
  99. package/dist/cdn/chunks/VersionHistoryMenu-_MAj3qZj.js.map +1 -0
  100. package/dist/cdn/chunks/VersionHistoryPanels-6Hz9w20W.js +48 -0
  101. package/dist/cdn/chunks/VersionHistoryPanels-6Hz9w20W.js.map +1 -0
  102. package/dist/cdn/chunks/VersionPreviewBanner-D098_6_I.js +40 -0
  103. package/dist/cdn/chunks/VersionPreviewBanner-D098_6_I.js.map +1 -0
  104. package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js → blockTypeIcons-hX_W4dqo.js} +2 -2
  105. package/dist/cdn/chunks/{blockTypeIcons-FXlMM3PL.js.map → blockTypeIcons-hX_W4dqo.js.map} +1 -1
  106. package/dist/cdn/chunks/{ca-D1zgI9fQ.js → ca-Cqg9O8mx.js} +70 -7
  107. package/dist/cdn/chunks/ca-Cqg9O8mx.js.map +1 -0
  108. package/dist/{cloud-qINCmQbn.js → cdn/chunks/cloud-BA0OpRh-.js} +400 -609
  109. package/dist/cdn/chunks/cloud-BA0OpRh-.js.map +1 -0
  110. package/dist/cdn/chunks/createCloudRuntime-DmzV7OnU.js +344 -0
  111. package/dist/cdn/chunks/createCloudRuntime-DmzV7OnU.js.map +1 -0
  112. package/dist/{de-DHra3lvx.js → cdn/chunks/de-BXmeeFbX.js} +71 -6
  113. package/dist/cdn/chunks/de-BXmeeFbX.js.map +1 -0
  114. package/dist/{de-uVoSP1xF.js → cdn/chunks/de-Dbwm2cON.js} +3 -54
  115. package/dist/cdn/chunks/de-Dbwm2cON.js.map +1 -0
  116. package/dist/cdn/chunks/{dist-B2HKGHnc.js → dist-CM8TB0VD.js} +136 -136
  117. package/dist/cdn/chunks/{dist-B2HKGHnc.js.map → dist-CM8TB0VD.js.map} +1 -1
  118. package/dist/cdn/chunks/{dist-C6z8AjBC.js → dist-CYLJiSiH.js} +63 -63
  119. package/dist/cdn/chunks/{dist-C6z8AjBC.js.map → dist-CYLJiSiH.js.map} +1 -1
  120. package/dist/cdn/chunks/{draggable-DCs9qL-b.js → draggable-BfpsXFg7.js} +916 -905
  121. package/dist/cdn/chunks/{draggable-DCs9qL-b.js.map → draggable-BfpsXFg7.js.map} +1 -1
  122. package/dist/cdn/chunks/{en-DlqX2YWZ.js → en-DbBNy67B.js} +70 -7
  123. package/dist/cdn/chunks/en-DbBNy67B.js.map +1 -0
  124. package/dist/{en-CjhsJxb-.js → cdn/chunks/en-Dzw4EqNI.js} +3 -54
  125. package/dist/cdn/chunks/en-Dzw4EqNI.js.map +1 -0
  126. package/dist/cdn/chunks/{es-Cuss2snv.js → es-JUsAjxWu.js} +70 -7
  127. package/dist/cdn/chunks/es-JUsAjxWu.js.map +1 -0
  128. package/dist/cdn/chunks/{extensions-C7h52yuk.js → extensions-CMcVw2uu.js} +81 -67
  129. package/dist/cdn/chunks/extensions-CMcVw2uu.js.map +1 -0
  130. package/dist/{fr-Cm85vB2g.js → cdn/chunks/fr-J3qgXH4h.js} +71 -6
  131. package/dist/cdn/chunks/fr-J3qgXH4h.js.map +1 -0
  132. package/dist/cdn/chunks/{icons-CvYN6zrM.js → icons-C36Ha5VU.js} +11 -11
  133. package/dist/cdn/chunks/{icons-CvYN6zrM.js.map → icons-C36Ha5VU.js.map} +1 -1
  134. package/dist/{keys-fwF3qZax.js → cdn/chunks/keys-CbQuRX85.js} +6 -4
  135. package/dist/cdn/chunks/keys-CbQuRX85.js.map +1 -0
  136. package/dist/cdn/chunks/logger-ByvdoAwq.js +23 -0
  137. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +1 -0
  138. package/dist/cdn/chunks/{nl-dmiIX7oT.js → nl-D_4DkqOi.js} +70 -7
  139. package/dist/cdn/chunks/nl-D_4DkqOi.js.map +1 -0
  140. package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js +23 -0
  141. package/dist/cdn/chunks/preRenderCustomBlocks-CbA3RcAy.js.map +1 -0
  142. package/dist/{pt-BR-CTzHTqJD.js → cdn/chunks/pt-BR-BxzQzWGJ.js} +3 -54
  143. package/dist/cdn/chunks/pt-BR-BxzQzWGJ.js.map +1 -0
  144. package/dist/cdn/chunks/{pt-BR-CaIG-7EM.js → pt-BR-KGURyEEQ.js} +70 -7
  145. package/dist/cdn/chunks/pt-BR-KGURyEEQ.js.map +1 -0
  146. package/dist/cdn/chunks/{src-CUKUsRzX.js → src-BOjFLNf7.js} +148 -134
  147. package/dist/cdn/chunks/src-BOjFLNf7.js.map +1 -0
  148. package/dist/cdn/chunks/{src-xkGep9eN.js → src-Dq3fgSIx.js} +1448 -1458
  149. package/dist/cdn/chunks/src-Dq3fgSIx.js.map +1 -0
  150. package/dist/cdn/chunks/styleConstants-ByDqaYj_.js +61 -0
  151. package/dist/cdn/chunks/styleConstants-ByDqaYj_.js.map +1 -0
  152. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +6 -0
  153. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +1 -0
  154. package/dist/cdn/chunks/{tiptap-C44S1Cmh.js → tiptap-DmpGap5g.js} +40 -40
  155. package/dist/cdn/chunks/{tiptap-C44S1Cmh.js.map → tiptap-DmpGap5g.js.map} +1 -1
  156. package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js → useAliveFlag-Dtm174fG.js} +2 -2
  157. package/dist/cdn/chunks/{useAliveFlag-Dxwgo6P4.js.map → useAliveFlag-Dtm174fG.js.map} +1 -1
  158. package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js → useCloudI18n-NVa1aeY8.js} +5 -5
  159. package/dist/cdn/chunks/{useCloudI18n-8wkJtuJD.js.map → useCloudI18n-NVa1aeY8.js.map} +1 -1
  160. package/dist/cdn/chunks/{useEditorCore-CKQ9gmoo.js → useEditorCore-CTu_qZ3W.js} +1434 -1147
  161. package/dist/cdn/chunks/useEditorCore-CTu_qZ3W.js.map +1 -0
  162. package/dist/cdn/chunks/{useI18n-UMs0F71x.js → useI18n-DVWCJJFH.js} +5 -5
  163. package/dist/cdn/chunks/{useI18n-UMs0F71x.js.map → useI18n-DVWCJJFH.js.map} +1 -1
  164. package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js → useMergeTag-BfZBRPQp.js} +4 -4
  165. package/dist/cdn/chunks/{useMergeTag-JmXOtpln.js.map → useMergeTag-BfZBRPQp.js.map} +1 -1
  166. package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js → usePopoverPosition-BC-HA7TK.js} +3 -3
  167. package/dist/cdn/chunks/{usePopoverPosition-cf8Y-ynK.js.map → usePopoverPosition-BC-HA7TK.js.map} +1 -1
  168. package/dist/cdn/editor.css +1 -1
  169. package/dist/cdn/editor.js +5103 -284
  170. package/dist/cdn/editor.js.map +1 -1
  171. package/dist/{check-On4TSac-.js → check-DZbmkMQe.js} +1 -1
  172. package/dist/{chevron-down-69EiBGoB.js → chevron-down-nYScOLeZ.js} +1 -1
  173. package/dist/{chevron-up-Dh3MG1Dw.js → chevron-up-CpYpDLnc.js} +1 -1
  174. package/dist/{circle-alert-cilwzafX.js → circle-alert-CuuK6thq.js} +1 -1
  175. package/dist/{clock-Dt0APH92.js → clock-DxkrtqOr.js} +1 -1
  176. package/dist/cloud-BAefVBb_.js +1444 -0
  177. package/dist/createCloudRuntime-Bt8W-ajI.js +342 -0
  178. package/dist/{createLucideIcon-C8WzBYCv.js → createLucideIcon-L-wQXW_R.js} +9 -9
  179. package/dist/{cdn/chunks/de-DHra3lvx.js → de-BXmeeFbX.js} +69 -8
  180. package/dist/{cdn/chunks/de-uVoSP1xF.js → de-Dbwm2cON.js} +1 -56
  181. package/dist/dist-B5iReTtK.js +251 -0
  182. package/dist/{dist-Cl8J0IES.js → dist-Ck9roB6K.js} +42 -42
  183. package/dist/{dist-BpKxrUi2.js → dist-CqcGTIiX.js} +46 -46
  184. package/dist/{en-DlqX2YWZ.js → en-DbBNy67B.js} +69 -6
  185. package/dist/{cdn/chunks/en-CjhsJxb-.js → en-Dzw4EqNI.js} +1 -56
  186. package/dist/{es-Cuss2snv.js → es-JUsAjxWu.js} +69 -6
  187. package/dist/{extensions-DzKNPITR.js → extensions-CX87G4aL.js} +71 -57
  188. package/dist/{cdn/chunks/fr-Cm85vB2g.js → fr-J3qgXH4h.js} +69 -8
  189. package/dist/{image-up-Ceggh_R3.js → image-up-DouZRGVt.js} +1 -1
  190. package/dist/index.d.ts +499 -23
  191. package/dist/{info-DO5odBcZ.js → info-puX5V6Iq.js} +1 -1
  192. package/dist/{cdn/chunks/keys-Cmc2Yl3D.js → keys-BxixS0TN.js} +4 -6
  193. package/dist/{list-checks-BSkPKbuI.js → list-checks-jw-ZlvWY.js} +1 -1
  194. package/dist/{loader-circle-bO7o7_HD.js → loader-circle-DqTxB7Kr.js} +1 -1
  195. package/dist/logger-BBlvSn6q.js +21 -0
  196. package/dist/{message-circle-BEkAk65X.js → message-circle-BZ7YpB22.js} +1 -1
  197. package/dist/{nl-dmiIX7oT.js → nl-D_4DkqOi.js} +69 -6
  198. package/dist/{pencil-t6m0EtKL.js → pencil-DmbRhTJu.js} +1 -1
  199. package/dist/preRenderCustomBlocks-BebjKtmw.js +21 -0
  200. package/dist/{cdn/chunks/pt-BR-CTzHTqJD.js → pt-BR-BxzQzWGJ.js} +1 -56
  201. package/dist/{pt-BR-CaIG-7EM.js → pt-BR-KGURyEEQ.js} +69 -6
  202. package/dist/{refresh-cw-CkOYVzK5.js → refresh-cw-OK_O-cL0.js} +1 -1
  203. package/dist/{runtime-dom.esm-bundler-CepEmvwF.js → runtime-dom.esm-bundler-BgKXIPLV.js} +144 -144
  204. package/dist/{scan-line-DwSVj25O.js → scan-line-DyaSTsJ5.js} +1 -1
  205. package/dist/{send-CWsWN8PQ.js → send-B-wasJJC.js} +1 -1
  206. package/dist/{shield-check-qje8Kufw.js → shield-check-DUIyRrTo.js} +1 -1
  207. package/dist/{sparkles-DumaWRW-.js → sparkles-DYEMATWC.js} +1 -1
  208. package/dist/style.css +1 -1
  209. package/dist/styleConstants-ByDqaYj_.js +59 -0
  210. package/dist/templatical-editor.js +5303 -289
  211. package/dist/{text-align-start-Ir8Ah4mT.js → text-align-start-CzjLeBLe.js} +1 -1
  212. package/dist/timeouts-DHPZQ0G3.js +4 -0
  213. package/dist/{trash-2-CklAFCmO.js → trash-2-C0shEPry.js} +1 -1
  214. package/dist/{triangle-alert-BBi4n93g.js → triangle-alert-Fw0ce8oQ.js} +1 -1
  215. package/dist/{upload-sVqqppuv.js → upload-D69C2CBx.js} +3 -4
  216. package/dist/{useAliveFlag-cvyBxHp7.js → useAliveFlag-BGIAZii_.js} +1 -1
  217. package/dist/{useCloudI18n-DKVm6PCa.js → useCloudI18n-CAZTZ9_a.js} +2 -2
  218. package/dist/{useEditorCore-idmPLUeb.js → useEditorCore-B-kONNRw.js} +1604 -1320
  219. package/dist/{useI18n-DoVKdCTH.js → useI18n-BfXff_Sy.js} +2 -2
  220. package/dist/{useMergeTag-CYZk7dZD.js → useMergeTag-Dd4I7kge.js} +3 -3
  221. package/dist/usePopoverPosition-CxhCX3SQ.js +59 -0
  222. package/dist/{vue.runtime.esm-bundler-D1diBMsm.js → vue.runtime.esm-bundler-DzEsDRtY.js} +447 -436
  223. package/dist/{x-Mby7KlhS.js → x-BjTlFqRv.js} +1 -1
  224. package/package.json +7 -7
  225. package/dist/AiFeatureMenu-BY6mubnR.js +0 -63
  226. package/dist/BlockPreviewCanvas-DbNOqSI1.js +0 -121
  227. package/dist/CloudEditor-DEnMNMbm.js +0 -1188
  228. package/dist/ColorPicker-ClETsjA3.js +0 -550
  229. package/dist/CommentsSidebar-CdRCCSDD.js +0 -435
  230. package/dist/SaveBlockDialog-fVp_PwZi.js +0 -265
  231. package/dist/SnapshotHistory-DjA3Ej_i.js +0 -128
  232. package/dist/TestEmailModal-EM0RP_9L.js +0 -205
  233. package/dist/TitleEditor-JEaP9jVF.js +0 -197
  234. package/dist/TplModal-DoneXIj_.js +0 -49
  235. package/dist/cdn/chunks/AiChatSidebar-CQ8KUmNB.js.map +0 -1
  236. package/dist/cdn/chunks/AiFeatureMenu-Cwj8afsi.js +0 -63
  237. package/dist/cdn/chunks/AiFeatureMenu-Cwj8afsi.js.map +0 -1
  238. package/dist/cdn/chunks/CloudEditor-CQ830jJt.js +0 -1166
  239. package/dist/cdn/chunks/CloudEditor-CQ830jJt.js.map +0 -1
  240. package/dist/cdn/chunks/CollaboratorBar-BF469_AN.js.map +0 -1
  241. package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js +0 -552
  242. package/dist/cdn/chunks/ColorPicker-W_UyiVGc.js.map +0 -1
  243. package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js +0 -412
  244. package/dist/cdn/chunks/CommentsSidebar-BLRZRSSC.js.map +0 -1
  245. package/dist/cdn/chunks/DesignReferenceSidebar-B-HFXV0W.js.map +0 -1
  246. package/dist/cdn/chunks/IssuesPanel-DKTS4QVb.js.map +0 -1
  247. package/dist/cdn/chunks/MergeTagSuggestion-Dn8dExNa.js.map +0 -1
  248. package/dist/cdn/chunks/NumberWithSuffix-BXrRdfq1.js.map +0 -1
  249. package/dist/cdn/chunks/ParagraphEditor-Bzcma_Lm.js.map +0 -1
  250. package/dist/cdn/chunks/RichTextEditorContent-DtL49Jpo.js.map +0 -1
  251. package/dist/cdn/chunks/SaveBlockDialog-BfNVeXXV.js +0 -264
  252. package/dist/cdn/chunks/SaveBlockDialog-BfNVeXXV.js.map +0 -1
  253. package/dist/cdn/chunks/SavedBlocksBrowserModal-C59D4G5C.js.map +0 -1
  254. package/dist/cdn/chunks/SavedBlocksPickBar-DMHxPCM4.js.map +0 -1
  255. package/dist/cdn/chunks/SnapshotHistory-80tAU_VX.js +0 -121
  256. package/dist/cdn/chunks/SnapshotHistory-80tAU_VX.js.map +0 -1
  257. package/dist/cdn/chunks/TemplateScoringPanel-NucRtAP0.js.map +0 -1
  258. package/dist/cdn/chunks/TestEmailModal-DdWfAGNe.js +0 -205
  259. package/dist/cdn/chunks/TestEmailModal-DdWfAGNe.js.map +0 -1
  260. package/dist/cdn/chunks/TitleEditor-D0_LY2Ex.js.map +0 -1
  261. package/dist/cdn/chunks/TplModal-iCmoKB2k.js +0 -50
  262. package/dist/cdn/chunks/TplModal-iCmoKB2k.js.map +0 -1
  263. package/dist/cdn/chunks/ca-D1zgI9fQ.js.map +0 -1
  264. package/dist/cdn/chunks/cloud-DcC8bPwn.js +0 -1787
  265. package/dist/cdn/chunks/cloud-DcC8bPwn.js.map +0 -1
  266. package/dist/cdn/chunks/de-DHra3lvx.js.map +0 -1
  267. package/dist/cdn/chunks/de-uVoSP1xF.js.map +0 -1
  268. package/dist/cdn/chunks/en-CjhsJxb-.js.map +0 -1
  269. package/dist/cdn/chunks/en-DlqX2YWZ.js.map +0 -1
  270. package/dist/cdn/chunks/es-Cuss2snv.js.map +0 -1
  271. package/dist/cdn/chunks/extensions-C7h52yuk.js.map +0 -1
  272. package/dist/cdn/chunks/fr-Cm85vB2g.js.map +0 -1
  273. package/dist/cdn/chunks/keys-Cmc2Yl3D.js.map +0 -1
  274. package/dist/cdn/chunks/nl-dmiIX7oT.js.map +0 -1
  275. package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +0 -1
  276. package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +0 -1
  277. package/dist/cdn/chunks/src-CUKUsRzX.js.map +0 -1
  278. package/dist/cdn/chunks/src-xkGep9eN.js.map +0 -1
  279. package/dist/cdn/chunks/styles-CND3ey2g.js +0 -4140
  280. package/dist/cdn/chunks/styles-CND3ey2g.js.map +0 -1
  281. package/dist/cdn/chunks/timeouts-SsLMC4a3.js +0 -6
  282. package/dist/cdn/chunks/timeouts-SsLMC4a3.js.map +0 -1
  283. package/dist/cdn/chunks/useEditorCore-CKQ9gmoo.js.map +0 -1
  284. package/dist/styles-BK36D1sy.js +0 -4318
  285. package/dist/usePopoverPosition-C0dPEF4X.js +0 -308
@@ -1,435 +0,0 @@
1
- import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as ee, nt as p, r as m, s as h, u as g, w as te, z as _ } from "./vue.runtime.esm-bundler-D1diBMsm.js";
2
- import { a as v, t as y } from "./runtime-dom.esm-bundler-CepEmvwF.js";
3
- import { G as b, d as ne, g as re, i as ie } from "./keys-fwF3qZax.js";
4
- import { t as ae } from "./useI18n-DoVKdCTH.js";
5
- import { t as x } from "./createLucideIcon-C8WzBYCv.js";
6
- import { t as oe } from "./check-On4TSac-.js";
7
- import { t as se } from "./chevron-down-69EiBGoB.js";
8
- import { t as ce } from "./chevron-up-Dh3MG1Dw.js";
9
- import { t as S } from "./loader-circle-bO7o7_HD.js";
10
- import { t as C } from "./message-circle-BEkAk65X.js";
11
- import { t as w } from "./pencil-t6m0EtKL.js";
12
- import { t as T } from "./send-CWsWN8PQ.js";
13
- import { t as E } from "./trash-2-CklAFCmO.js";
14
- import { t as D } from "./x-Mby7KlhS.js";
15
- import { t as le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { n as ue } from "./useCloudI18n-DKVm6PCa.js";
17
- import { t as de } from "./formatRelativeTime-CtUU-QZ8.js";
18
- var fe = x("circle-check", [["circle", {
19
- cx: "12",
20
- cy: "12",
21
- r: "10",
22
- key: "1mglay"
23
- }], ["path", {
24
- d: "m9 12 2 2 4-4",
25
- key: "dzmm74"
26
- }]]), pe = x("reply", [["path", {
27
- d: "M20 18v-2a4 4 0 0 0-4-4H4",
28
- key: "5vmcpk"
29
- }], ["path", {
30
- d: "m9 17-5-5 5-5",
31
- key: "nvlc11"
32
- }]]), me = {
33
- key: 0,
34
- class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
35
- }, he = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, ge = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, _e = {
36
- key: 0,
37
- class: "tpl:ml-1 tpl:inline-flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]"
38
- }, ve = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, ye = { class: "tpl:flex-1 tpl:overflow-y-auto" }, be = {
39
- key: 0,
40
- class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
41
- }, xe = {
42
- key: 1,
43
- class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
44
- }, Se = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ce = {
45
- key: 2,
46
- class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
47
- }, we = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Te = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, De = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Oe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ke = {
48
- key: 0,
49
- class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
50
- }, Ae = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, je = ["title", "onClick"], Me = ["title", "onClick"], Ne = ["title", "onClick"], Pe = {
51
- key: 0,
52
- class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
53
- }, Fe = {
54
- key: 0,
55
- class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
56
- }, Ie = ["onClick"], Le = {
57
- key: 2,
58
- class: "tpl:mt-2"
59
- }, Re = ["onKeydown"], ze = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Be = ["disabled", "onClick"], Ve = {
60
- key: 3,
61
- class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
62
- }, He = {
63
- key: 4,
64
- class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
65
- }, Ue = { class: "tpl:flex-1" }, We = ["onClick"], Ge = {
66
- key: 5,
67
- class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
68
- }, Ke = ["title", "onClick"], qe = ["onClick"], Je = {
69
- key: 0,
70
- class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
71
- }, Ye = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Xe = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Ze = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Qe = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $e = {
72
- key: 0,
73
- class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
74
- }, et = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, tt = ["title", "onClick"], nt = ["title", "onClick"], rt = {
75
- key: 0,
76
- class: "tpl:mt-1.5"
77
- }, it = ["onKeydown"], at = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, ot = ["disabled", "onClick"], st = {
78
- key: 1,
79
- class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
80
- }, ct = {
81
- key: 2,
82
- class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
83
- }, lt = { class: "tpl:flex-1" }, ut = ["onClick"], dt = {
84
- key: 0,
85
- class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
86
- }, ft = { class: "tpl:flex tpl:items-end tpl:gap-2" }, pt = ["placeholder", "onKeydown"], mt = { class: "tpl:flex tpl:shrink-0 tpl:flex-col tpl:gap-1" }, ht = ["disabled", "onClick"], gt = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, _t = {
87
- key: 0,
88
- class: "tpl:flex tpl:min-h-[68px] tpl:items-center tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
89
- }, vt = {
90
- key: 1,
91
- class: "tpl-comments-input-wrapper tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
92
- }, yt = ["placeholder", "disabled"], bt = ["disabled"], O = /*#__PURE__*/ le(/* @__PURE__ */ c({
93
- __name: "CommentsSidebar",
94
- props: { visible: { type: Boolean } },
95
- emits: ["close", "filterBlock"],
96
- setup(c, { expose: x, emit: le }) {
97
- let O = c, k = le, { format: A } = ae(), { t: j } = ue(), M = b(re, "CommentsSidebar"), xt = b(ie, "CommentsSidebar"), N = b(ne, "CommentsSidebar"), P = s("unresolved"), F = s(null), I = s(""), L = s(null), R = s(""), z = s(null), B = s(""), V = s(/* @__PURE__ */ new Set()), H = s(null), U = s(null), St = h(() => xt.userConfig?.id ?? null), Ct = h(() => {
98
- let e = /* @__PURE__ */ new Set();
99
- for (let t of M.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
100
- return e;
101
- });
102
- function wt(e) {
103
- return e ? !Ct.value.has(e) : !1;
104
- }
105
- let Tt = h(() => P.value !== "block" || !F.value ? !1 : !(M.savedBlockIds?.value.has(F.value) ?? !0)), W = h(() => {
106
- let e = N.comments.value;
107
- return P.value === "unresolved" ? e = e.filter((e) => !e.resolved_at) : P.value === "block" && F.value && (e = e.filter((e) => e.block_id === F.value)), e;
108
- });
109
- r(() => O.visible, (e) => {
110
- e && N.loadComments();
111
- }), r(() => M.state.selectedBlockId, (e) => {
112
- P.value === "block" && e && (F.value = e);
113
- });
114
- function G(e, t) {
115
- P.value = e, F.value = e === "block" ? t ?? null : null;
116
- }
117
- function Et(e) {
118
- G("block", e), k("filterBlock", e);
119
- }
120
- function Dt(e) {
121
- V.value.has(e) ? V.value.delete(e) : V.value.add(e);
122
- }
123
- function Ot(e) {
124
- L.value = e, R.value = "", z.value = null, V.value.has(e) || V.value.add(e);
125
- }
126
- function kt() {
127
- L.value = null, R.value = "";
128
- }
129
- function K(e) {
130
- z.value = e.id, B.value = e.body, L.value = null;
131
- }
132
- function q() {
133
- z.value = null, B.value = "";
134
- }
135
- function J(e) {
136
- H.value = e;
137
- }
138
- function Y() {
139
- H.value = null;
140
- }
141
- async function X() {
142
- let e = I.value.trim();
143
- if (!e) return;
144
- let t = P.value === "block" ? F.value : void 0;
145
- await N.addComment(e, t ?? void 0), I.value = "";
146
- }
147
- async function At(e) {
148
- let t = R.value.trim();
149
- if (!t) return;
150
- let n = N.comments.value.find((t) => t.id === e);
151
- await N.addComment(t, n?.block_id ?? void 0, e), L.value = null, R.value = "";
152
- }
153
- async function Z(e) {
154
- let t = B.value.trim();
155
- t && (await N.editComment(e, t), z.value = null, B.value = "");
156
- }
157
- async function jt(e) {
158
- await N.removeComment(e), H.value = null;
159
- }
160
- async function Mt(e) {
161
- await N.toggleResolve(e);
162
- }
163
- function Q(e) {
164
- return e.author_identifier === St.value;
165
- }
166
- function Nt(e) {
167
- return de(e, j.snapshotHistory) ?? e;
168
- }
169
- function Pt(e) {
170
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), X());
171
- }
172
- function Ft(e, t) {
173
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), At(t));
174
- }
175
- function $(e, t) {
176
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t)), e.key === "Escape" && q();
177
- }
178
- function It() {
179
- te(() => {
180
- U.value?.focus();
181
- });
182
- }
183
- return x({
184
- filterByBlock: Et,
185
- focusNewComment: It
186
- }), (r, s) => (i(), f(y, {
187
- "enter-active-class": "tpl-comments-slide-enter-active",
188
- "enter-from-class": "tpl:translate-x-full",
189
- "enter-to-class": "tpl:translate-x-0",
190
- "leave-active-class": "tpl-comments-slide-leave-active",
191
- "leave-from-class": "tpl:translate-x-0",
192
- "leave-to-class": "tpl:translate-x-full"
193
- }, {
194
- default: o(() => [c.visible ? (i(), u("div", me, [
195
- l("div", he, [l("div", ge, [
196
- d(p(C), {
197
- size: 13,
198
- "stroke-width": 2
199
- }),
200
- l("span", null, a(p(j).comments.title), 1),
201
- p(N).unresolvedCount.value > 0 ? (i(), u("span", _e, a(p(N).unresolvedCount.value), 1)) : g("", !0)
202
- ]), l("button", {
203
- class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
204
- onClick: s[0] ||= (e) => k("close")
205
- }, [d(p(D), {
206
- size: 14,
207
- "stroke-width": 2
208
- })])]),
209
- l("div", ve, [
210
- l("button", {
211
- class: n(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", P.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
212
- onClick: s[1] ||= (e) => G("unresolved")
213
- }, a(p(j).comments.filterUnresolved), 3),
214
- l("button", {
215
- class: n(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", P.value === "all" ? "tpl-comment-filter--active" : ""]),
216
- onClick: s[2] ||= (e) => G("all")
217
- }, a(p(j).comments.filterAll), 3),
218
- p(M).state.selectedBlockId ? (i(), u("button", {
219
- key: 0,
220
- class: n(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", P.value === "block" ? "tpl-comment-filter--active" : ""]),
221
- onClick: s[3] ||= (e) => G("block", p(M).state.selectedBlockId ?? void 0)
222
- }, a(p(j).comments.filterBlock), 3)) : g("", !0)
223
- ]),
224
- l("div", ye, [p(N).isLoading.value ? (i(), u("div", be, [d(p(S), {
225
- class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
226
- size: 24,
227
- "stroke-width": 2
228
- })])) : W.value.length === 0 ? (i(), u("div", xe, [d(p(C), {
229
- size: 32,
230
- "stroke-width": 1.5,
231
- class: "tpl:text-[var(--tpl-text-dim)]"
232
- }), l("p", Se, a(P.value === "all" ? p(j).comments.noCommentsHint : p(j).comments.noComments), 1)])) : (i(), u("div", Ce, [(i(!0), u(m, null, e(W.value, (r) => (i(), u("div", {
233
- key: r.id,
234
- class: "tpl-comment-thread"
235
- }, [
236
- l("div", we, [
237
- l("div", Te, [l("div", Ee, [
238
- l("span", De, a(Q(r) ? p(j).comments.ownedByYou : r.author_name), 1),
239
- l("span", Oe, a(Nt(r.created_at)), 1),
240
- r.updated_at === r.created_at ? g("", !0) : (i(), u("span", ke, " (" + a(p(j).comments.edited) + ") ", 1))
241
- ]), l("div", Ae, [
242
- l("button", {
243
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
244
- title: r.resolved_at ? p(j).comments.unresolve : p(j).comments.resolve,
245
- onClick: (e) => Mt(r.id)
246
- }, [d(p(fe), {
247
- size: 13,
248
- "stroke-width": 2,
249
- class: "tpl-resolve-icon",
250
- style: t({ color: r.resolved_at ? "var(--tpl-primary)" : void 0 })
251
- }, null, 8, ["style"])], 8, je),
252
- Q(r) ? (i(), u("button", {
253
- key: 0,
254
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
255
- title: p(j).comments.edit,
256
- onClick: (e) => K(r)
257
- }, [d(p(w), {
258
- size: 12,
259
- "stroke-width": 2
260
- })], 8, Me)) : g("", !0),
261
- Q(r) ? (i(), u("button", {
262
- key: 1,
263
- class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
264
- title: p(j).comments.delete,
265
- onClick: (e) => J(r.id)
266
- }, [d(p(E), {
267
- size: 12,
268
- "stroke-width": 2
269
- })], 8, Ne)) : g("", !0)
270
- ])]),
271
- d(y, { name: "tpl-resolve" }, {
272
- default: o(() => [r.resolved_at ? (i(), u("div", Pe, [d(p(oe), {
273
- size: 10,
274
- "stroke-width": 2.5
275
- }), l("span", null, a(p(A)(p(j).comments.resolvedBy, { name: r.resolved_by_name ?? "" })), 1)])) : g("", !0)]),
276
- _: 2
277
- }, 1024),
278
- r.block_id && wt(r.block_id) ? (i(), u("span", Fe, a(p(j).comments.missingBlock), 1)) : r.block_id ? (i(), u("button", {
279
- key: 1,
280
- class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
281
- onClick: (e) => p(M).selectBlock(r.block_id ?? "")
282
- }, " Block ", 8, Ie)) : g("", !0),
283
- z.value === r.id ? (i(), u("div", Le, [_(l("textarea", {
284
- "onUpdate:modelValue": s[4] ||= (e) => B.value = e,
285
- class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
286
- rows: "3",
287
- onKeydown: (e) => $(e, r.id)
288
- }, null, 40, Re), [[v, B.value]]), l("div", ze, [l("button", {
289
- class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
290
- disabled: !B.value.trim() || p(N).isSubmitting.value,
291
- onClick: (e) => Z(r.id)
292
- }, a(p(j).comments.save), 9, Be), l("button", {
293
- class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
294
- onClick: s[5] ||= (e) => q()
295
- }, a(p(j).comments.cancel), 1)])])) : (i(), u("p", Ve, a(r.body), 1)),
296
- H.value === r.id ? (i(), u("div", He, [
297
- l("span", Ue, a(p(j).comments.deleteConfirm), 1),
298
- l("button", {
299
- class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
300
- onClick: (e) => jt(r.id)
301
- }, a(p(j).comments.delete), 9, We),
302
- l("button", {
303
- class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
304
- onClick: s[6] ||= (e) => Y()
305
- }, a(p(j).comments.cancel), 1)
306
- ])) : g("", !0),
307
- z.value !== r.id && H.value !== r.id ? (i(), u("div", Ge, [l("button", {
308
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
309
- title: p(j).comments.reply,
310
- onClick: (e) => Ot(r.id)
311
- }, [d(p(pe), {
312
- size: 13,
313
- "stroke-width": 2,
314
- class: "tpl:text-[var(--tpl-primary)]"
315
- })], 8, Ke), (r.replies?.length ?? 0) > 0 ? (i(), u("button", {
316
- key: 0,
317
- class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-[11px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
318
- onClick: (e) => Dt(r.id)
319
- }, [V.value.has(r.id) ? (i(), f(p(ce), {
320
- key: 0,
321
- size: 11,
322
- "stroke-width": 2
323
- })) : (i(), f(p(se), {
324
- key: 1,
325
- size: 11,
326
- "stroke-width": 2
327
- })), ee(" " + a((r.replies?.length ?? 0) === 1 ? p(A)(p(j).comments.replyOne, { count: String(r.replies?.length ?? 0) }) : p(A)(p(j).comments.replyMany, { count: String(r.replies?.length ?? 0) })), 1)], 8, qe)) : g("", !0)])) : g("", !0)
328
- ]),
329
- d(y, { name: "tpl-replies" }, {
330
- default: o(() => [V.value.has(r.id) && (r.replies?.length ?? 0) > 0 ? (i(), u("div", Je, [(i(!0), u(m, null, e(r.replies, (e, t) => (i(), u("div", {
331
- key: e.id,
332
- class: n(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", t < (r.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
333
- }, [
334
- l("div", Ye, [l("div", Xe, [
335
- l("span", Ze, a(Q(e) ? p(j).comments.ownedByYou : e.author_name), 1),
336
- l("span", Qe, a(Nt(e.created_at)), 1),
337
- e.updated_at === e.created_at ? g("", !0) : (i(), u("span", $e, " (" + a(p(j).comments.edited) + ") ", 1))
338
- ]), l("div", et, [Q(e) ? (i(), u("button", {
339
- key: 0,
340
- class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
341
- title: p(j).comments.edit,
342
- onClick: (t) => K(e)
343
- }, [d(p(w), {
344
- size: 11,
345
- "stroke-width": 2
346
- })], 8, tt)) : g("", !0), Q(e) ? (i(), u("button", {
347
- key: 1,
348
- class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
349
- title: p(j).comments.delete,
350
- onClick: (t) => J(e.id)
351
- }, [d(p(E), {
352
- size: 11,
353
- "stroke-width": 2
354
- })], 8, nt)) : g("", !0)])]),
355
- z.value === e.id ? (i(), u("div", rt, [_(l("textarea", {
356
- "onUpdate:modelValue": s[7] ||= (e) => B.value = e,
357
- class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
358
- rows: "2",
359
- onKeydown: (t) => $(t, e.id)
360
- }, null, 40, it), [[v, B.value]]), l("div", at, [l("button", {
361
- class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
362
- disabled: !B.value.trim() || p(N).isSubmitting.value,
363
- onClick: (t) => Z(e.id)
364
- }, a(p(j).comments.save), 9, ot), l("button", {
365
- class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
366
- onClick: s[8] ||= (e) => q()
367
- }, a(p(j).comments.cancel), 1)])])) : (i(), u("p", st, a(e.body), 1)),
368
- H.value === e.id ? (i(), u("div", ct, [
369
- l("span", lt, a(p(j).comments.deleteConfirm), 1),
370
- l("button", {
371
- class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
372
- onClick: (t) => jt(e.id)
373
- }, a(p(j).comments.delete), 9, ut),
374
- l("button", {
375
- class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
376
- onClick: s[9] ||= (e) => Y()
377
- }, a(p(j).comments.cancel), 1)
378
- ])) : g("", !0)
379
- ], 2))), 128))])) : g("", !0)]),
380
- _: 2
381
- }, 1024),
382
- d(y, { name: "tpl-replies" }, {
383
- default: o(() => [L.value === r.id ? (i(), u("div", dt, [l("div", ft, [_(l("textarea", {
384
- "onUpdate:modelValue": s[10] ||= (e) => R.value = e,
385
- class: "tpl:flex-1 tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
386
- placeholder: p(j).comments.replyPlaceholder,
387
- rows: "2",
388
- onKeydown: (e) => Ft(e, r.id)
389
- }, null, 40, pt), [[v, R.value]]), l("div", mt, [l("button", {
390
- class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
391
- disabled: !R.value.trim() || p(N).isSubmitting.value,
392
- onClick: (e) => At(r.id)
393
- }, [d(p(T), {
394
- size: 14,
395
- "stroke-width": 2
396
- })], 8, ht), l("button", {
397
- class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
398
- onClick: s[11] ||= (e) => kt()
399
- }, [d(p(D), {
400
- size: 14,
401
- "stroke-width": 2
402
- })])])])])) : g("", !0)]),
403
- _: 2
404
- }, 1024)
405
- ]))), 128))]))]),
406
- l("div", gt, [Tt.value ? (i(), u("div", _t, a(p(j).comments.saveTemplateFirst), 1)) : (i(), u("div", vt, [_(l("textarea", {
407
- ref_key: "newCommentInput",
408
- ref: U,
409
- "onUpdate:modelValue": s[12] ||= (e) => I.value = e,
410
- class: "tpl:max-h-24 tpl:min-h-[48px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
411
- placeholder: p(j).comments.placeholder,
412
- disabled: p(N).isSubmitting.value,
413
- rows: "2",
414
- onKeydown: Pt
415
- }, null, 40, yt), [[v, I.value]]), l("button", {
416
- class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
417
- disabled: !I.value.trim() || p(N).isSubmitting.value,
418
- onClick: X
419
- }, [p(N).isSubmitting.value ? (i(), f(p(S), {
420
- key: 0,
421
- class: "tpl-spinner",
422
- size: 16,
423
- "stroke-width": 2
424
- })) : (i(), f(p(T), {
425
- key: 1,
426
- size: 16,
427
- "stroke-width": 2
428
- }))], 8, bt)]))])
429
- ])) : g("", !0)]),
430
- _: 1
431
- }));
432
- }
433
- }), [["__scopeId", "data-v-d204f573"]]);
434
- //#endregion
435
- export { O as default };