@templatical/editor 0.26.3 → 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 (284) 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-BGwbg9aN.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-6WN5jmXr.js → ParagraphEditor-vDU-5y6r.js} +200 -198
  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-GMrajvfV.js → SavedBlocksBrowserModal-CefWWcdT.js} +116 -115
  25. package/dist/{cdn/chunks/SavedBlocksPanels-CUtYoi5Z.js → SavedBlocksPanels-DnQwO-7O.js} +9 -11
  26. package/dist/{SavedBlocksPickBar-Dk_IaMO9.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-B8y7JabA.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-C7wRSaT3.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-msj619wT.js → BlockPreviewCanvas-DStQFo9P.js} +42 -42
  45. package/dist/cdn/chunks/{BlockPreviewCanvas-msj619wT.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-G_sZDZXw.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-CZ5Z6AgG.js → ParagraphEditor-BJJ925sx.js} +234 -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-BkQXEUE2.js → SavedBlocksBrowserModal-BerMxAUt.js} +114 -113
  83. package/dist/cdn/chunks/SavedBlocksBrowserModal-BerMxAUt.js.map +1 -0
  84. package/dist/{SavedBlocksPanels-DEPmNhi6.js → cdn/chunks/SavedBlocksPanels-BUE4lzVP.js} +11 -9
  85. package/dist/cdn/chunks/{SavedBlocksPanels-CUtYoi5Z.js.map → SavedBlocksPanels-BUE4lzVP.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-C80qJykl.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-DubocPxf.js → cdn/chunks/TestEmailPanel-DqTDh5ri.js} +6 -4
  93. package/dist/cdn/chunks/{TestEmailPanel-B8y7JabA.js.map → TestEmailPanel-DqTDh5ri.js.map} +1 -1
  94. package/dist/cdn/chunks/{TitleEditor-C8WDXf4P.js → TitleEditor-nUAF7fKr.js} +83 -83
  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/{en-DlqX2YWZ.js → cdn/chunks/en-DbBNy67B.js} +71 -6
  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-qhcN3RMT.js → extensions-CMcVw2uu.js} +53 -53
  129. package/dist/cdn/chunks/{extensions-qhcN3RMT.js.map → extensions-CMcVw2uu.js.map} +1 -1
  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-BwbnXShT.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-CcgxY-Gy.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/{cdn/chunks/en-DlqX2YWZ.js → en-DbBNy67B.js} +69 -8
  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-Cwg9S-0f.js → extensions-CX87G4aL.js} +42 -42
  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-P4UkhcyS.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-Cy-PVrNT.js +0 -63
  226. package/dist/BlockPreviewCanvas-BZKslwGI.js +0 -121
  227. package/dist/CloudEditor-CPRkQCRa.js +0 -1188
  228. package/dist/ColorPicker-ClETsjA3.js +0 -550
  229. package/dist/CommentsSidebar-CdRCCSDD.js +0 -435
  230. package/dist/SaveBlockDialog-21vDlEBS.js +0 -265
  231. package/dist/SnapshotHistory-Cb4WW2gf.js +0 -128
  232. package/dist/TestEmailModal-BHDKmd6B.js +0 -205
  233. package/dist/TitleEditor-Cy4B3UNe.js +0 -198
  234. package/dist/TplModal-Dv9zgSWI.js +0 -49
  235. package/dist/cdn/chunks/AiChatSidebar-CQ8KUmNB.js.map +0 -1
  236. package/dist/cdn/chunks/AiFeatureMenu-Cb9gaRBn.js +0 -63
  237. package/dist/cdn/chunks/AiFeatureMenu-Cb9gaRBn.js.map +0 -1
  238. package/dist/cdn/chunks/CloudEditor-DbyEsIxu.js +0 -1166
  239. package/dist/cdn/chunks/CloudEditor-DbyEsIxu.js.map +0 -1
  240. package/dist/cdn/chunks/CollaboratorBar-G_sZDZXw.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-CZ5Z6AgG.js.map +0 -1
  250. package/dist/cdn/chunks/RichTextEditorContent-DtL49Jpo.js.map +0 -1
  251. package/dist/cdn/chunks/SaveBlockDialog-CVIVZEuy.js +0 -264
  252. package/dist/cdn/chunks/SaveBlockDialog-CVIVZEuy.js.map +0 -1
  253. package/dist/cdn/chunks/SavedBlocksBrowserModal-BkQXEUE2.js.map +0 -1
  254. package/dist/cdn/chunks/SavedBlocksPickBar-C80qJykl.js.map +0 -1
  255. package/dist/cdn/chunks/SnapshotHistory-DFinMrg_.js +0 -121
  256. package/dist/cdn/chunks/SnapshotHistory-DFinMrg_.js.map +0 -1
  257. package/dist/cdn/chunks/TemplateScoringPanel-NucRtAP0.js.map +0 -1
  258. package/dist/cdn/chunks/TestEmailModal-IxS-QjeH.js +0 -205
  259. package/dist/cdn/chunks/TestEmailModal-IxS-QjeH.js.map +0 -1
  260. package/dist/cdn/chunks/TitleEditor-C8WDXf4P.js.map +0 -1
  261. package/dist/cdn/chunks/TplModal-Ce0QuHyo.js +0 -50
  262. package/dist/cdn/chunks/TplModal-Ce0QuHyo.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/fr-Cm85vB2g.js.map +0 -1
  272. package/dist/cdn/chunks/keys-Cmc2Yl3D.js.map +0 -1
  273. package/dist/cdn/chunks/nl-dmiIX7oT.js.map +0 -1
  274. package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +0 -1
  275. package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +0 -1
  276. package/dist/cdn/chunks/src-BwbnXShT.js.map +0 -1
  277. package/dist/cdn/chunks/src-xkGep9eN.js.map +0 -1
  278. package/dist/cdn/chunks/styles-DLAfU4Uf.js +0 -4140
  279. package/dist/cdn/chunks/styles-DLAfU4Uf.js.map +0 -1
  280. package/dist/cdn/chunks/timeouts-SsLMC4a3.js +0 -6
  281. package/dist/cdn/chunks/timeouts-SsLMC4a3.js.map +0 -1
  282. package/dist/cdn/chunks/useEditorCore-CcgxY-Gy.js.map +0 -1
  283. package/dist/styles-Dx__pP9O.js +0 -4318
  284. package/dist/usePopoverPosition-C0dPEF4X.js +0 -308
@@ -1,9 +1,9 @@
1
- import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d, x as f } from "./vue.runtime.esm-bundler-D1diBMsm.js";
1
+ import { Ot as e, S as t, c as n, d as r, j as i, k as a, kt as o, l as s, r as c, rt as l, s as u, u as d, v as f } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
2
2
  import { j as p } from "./dist-B1kLn1rs.js";
3
- import { E as m } from "./keys-fwF3qZax.js";
4
- import { t as h } from "./useI18n-DoVKdCTH.js";
5
- import { t as g } from "./createLucideIcon-C8WzBYCv.js";
6
- import { t as _ } from "./sparkles-DumaWRW-.js";
3
+ import { T as m } from "./keys-BxixS0TN.js";
4
+ import { t as h } from "./useI18n-BfXff_Sy.js";
5
+ import { t as g } from "./createLucideIcon-L-wQXW_R.js";
6
+ import { t as _ } from "./sparkles-DYEMATWC.js";
7
7
  var v = g("monitor", [
8
8
  ["rect", {
9
9
  width: "20",
@@ -64,29 +64,29 @@ var v = g("monitor", [
64
64
  "aria-label",
65
65
  "title",
66
66
  "onClick"
67
- ], C = /* @__PURE__ */ i({
67
+ ], C = /* @__PURE__ */ f({
68
68
  __name: "ViewportToggle",
69
69
  props: { viewport: {} },
70
70
  emits: ["change"],
71
- setup(i, { emit: d }) {
72
- let f = i, p = d, { t: m } = h(), g = u(() => [{
71
+ setup(t, { emit: d }) {
72
+ let f = t, p = d, { t: m } = h(), g = u(() => [{
73
73
  value: "desktop",
74
74
  label: m.viewport.desktop
75
75
  }, {
76
76
  value: "mobile",
77
77
  label: m.viewport.mobile
78
78
  }]), _ = u(() => `translateX(${g.value.findIndex((e) => e.value === f.viewport) * 100}%)`);
79
- return (u, d) => (n(), o("div", {
79
+ return (u, d) => (a(), r("div", {
80
80
  role: "radiogroup",
81
- "aria-label": c(m).viewport.label,
81
+ "aria-label": l(m).viewport.label,
82
82
  class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
83
- style: t({
83
+ style: e({
84
84
  gridTemplateColumns: `repeat(${g.value.length}, 1fr)`,
85
85
  backgroundColor: "var(--tpl-bg-hover)"
86
86
  })
87
- }, [a("div", {
87
+ }, [n("div", {
88
88
  class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
89
- style: t({
89
+ style: e({
90
90
  left: "4px",
91
91
  width: `calc((100% - 8px) / ${g.value.length})`,
92
92
  transform: _.value,
@@ -94,58 +94,58 @@ var v = g("monitor", [
94
94
  boxShadow: "var(--tpl-shadow)",
95
95
  transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
96
96
  })
97
- }, null, 4), (n(!0), o(l, null, e(g.value, (e) => (n(), o("button", {
98
- key: e.value,
97
+ }, null, 4), (a(!0), r(c, null, i(g.value, (i) => (a(), r("button", {
98
+ key: i.value,
99
99
  role: "radio",
100
- "aria-checked": i.viewport === e.value,
101
- "aria-label": e.label,
100
+ "aria-checked": t.viewport === i.value,
101
+ "aria-label": i.label,
102
102
  class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium",
103
- style: t({
104
- color: i.viewport === e.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
103
+ style: e({
104
+ color: t.viewport === i.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
105
105
  transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
106
106
  }),
107
- title: e.label,
108
- onClick: (t) => p("change", e.value)
109
- }, [e.value === "desktop" ? (n(), s(c(v), {
107
+ title: i.label,
108
+ onClick: (e) => p("change", i.value)
109
+ }, [i.value === "desktop" ? (a(), s(l(v), {
110
110
  key: 0,
111
111
  size: 18,
112
112
  "stroke-width": 1.5
113
- })) : (n(), s(c(y), {
113
+ })) : (a(), s(l(y), {
114
114
  key: 1,
115
115
  size: 18,
116
116
  "stroke-width": 1.5
117
- })), a("span", null, r(e.label), 1)], 12, S))), 128))], 12, x));
117
+ })), n("span", null, o(i.label), 1)], 12, S))), 128))], 12, x));
118
118
  }
119
119
  }), w = ["aria-label"], T = [
120
120
  "aria-checked",
121
121
  "aria-label",
122
122
  "title",
123
123
  "onClick"
124
- ], E = /* @__PURE__ */ i({
124
+ ], E = /* @__PURE__ */ f({
125
125
  __name: "MergeTagModeToggle",
126
126
  props: { sampleMode: { type: Boolean } },
127
127
  emits: ["change"],
128
- setup(i, { emit: g }) {
129
- let v = i, y = g, { t: x } = h(), S = f(m, []), C = u(() => p(S)), E = u(() => [{
128
+ setup(f, { emit: g }) {
129
+ let v = f, y = g, { t: x } = h(), S = t(m, []), C = u(() => p(S)), E = u(() => [{
130
130
  value: !0,
131
131
  label: x.mergeTagPreview.sample
132
132
  }, {
133
133
  value: !1,
134
134
  label: x.mergeTagPreview.labelView
135
135
  }]), D = u(() => `translateX(${E.value.findIndex((e) => e.value === v.sampleMode) * 100}%)`);
136
- return (u, f) => C.value ? (n(), o("div", {
136
+ return (t, u) => C.value ? (a(), r("div", {
137
137
  key: 0,
138
138
  role: "radiogroup",
139
- "aria-label": c(x).mergeTagPreview.label,
139
+ "aria-label": l(x).mergeTagPreview.label,
140
140
  "data-testid": "merge-tag-mode-toggle",
141
141
  class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
142
- style: t({
142
+ style: e({
143
143
  gridTemplateColumns: `repeat(${E.value.length}, 1fr)`,
144
144
  backgroundColor: "var(--tpl-bg-hover)"
145
145
  })
146
- }, [a("div", {
146
+ }, [n("div", {
147
147
  class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
148
- style: t({
148
+ style: e({
149
149
  left: "4px",
150
150
  width: `calc((100% - 8px) / ${E.value.length})`,
151
151
  transform: D.value,
@@ -153,27 +153,27 @@ var v = g("monitor", [
153
153
  boxShadow: "var(--tpl-shadow)",
154
154
  transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
155
155
  })
156
- }, null, 4), (n(!0), o(l, null, e(E.value, (e) => (n(), o("button", {
157
- key: String(e.value),
156
+ }, null, 4), (a(!0), r(c, null, i(E.value, (t) => (a(), r("button", {
157
+ key: String(t.value),
158
158
  role: "radio",
159
- "aria-checked": i.sampleMode === e.value,
160
- "aria-label": e.label,
159
+ "aria-checked": f.sampleMode === t.value,
160
+ "aria-label": t.label,
161
161
  class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium",
162
- style: t({
163
- color: i.sampleMode === e.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
162
+ style: e({
163
+ color: f.sampleMode === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
164
164
  transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
165
165
  }),
166
- title: e.label,
167
- onClick: (t) => y("change", e.value)
168
- }, [e.value ? (n(), s(c(_), {
166
+ title: t.label,
167
+ onClick: (e) => y("change", t.value)
168
+ }, [t.value ? (a(), s(l(_), {
169
169
  key: 0,
170
170
  size: 18,
171
171
  "stroke-width": 1.5
172
- })) : (n(), s(c(b), {
172
+ })) : (a(), s(l(b), {
173
173
  key: 1,
174
174
  size: 18,
175
175
  "stroke-width": 1.5
176
- })), a("span", null, r(e.label), 1)], 12, T))), 128))], 12, w)) : d("", !0);
176
+ })), n("span", null, o(t.label), 1)], 12, T))), 128))], 12, w)) : d("", !0);
177
177
  }
178
178
  });
179
179
  //#endregion
@@ -1,5 +1,5 @@
1
- import { A as e, Et as t, O as n, Ot as r, Y as i, _ as a, c as o, d as s, r as c, u as l, y as u } from "./vue.runtime.esm-bundler-D1diBMsm.js";
2
- import { c as d, n as f } from "./runtime-dom.esm-bundler-CepEmvwF.js";
1
+ import { Dt as e, X as t, b as n, c as r, d as i, j as a, k as o, kt as s, r as c, u as l, v as u } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
2
+ import { c as d, n as f } from "./runtime-dom.esm-bundler-BgKXIPLV.js";
3
3
  import { Gn as p, H as m, Hn as h, Vn as g, Wn as _, s as v } from "./dist-ChYLhoJ4.js";
4
4
  //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
5
5
  var y = Math.min, b = Math.max, x = Math.round, S = Math.floor, C = (e) => ({
@@ -1111,7 +1111,7 @@ var _t = gt, vt = ["id"], yt = {
1111
1111
  "data-merge-tag-value",
1112
1112
  "onMousedown",
1113
1113
  "onMousemove"
1114
- ], xt = { class: "tpl:font-medium" }, St = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, Ct = /* @__PURE__ */ a({
1114
+ ], xt = { class: "tpl:font-medium" }, St = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, Ct = /* @__PURE__ */ u({
1115
1115
  __name: "MergeTagSuggestionList",
1116
1116
  props: {
1117
1117
  items: {},
@@ -1120,28 +1120,28 @@ var _t = gt, vt = ["id"], yt = {
1120
1120
  listId: {}
1121
1121
  },
1122
1122
  emits: ["select", "hover"],
1123
- setup(i) {
1124
- let a = i;
1123
+ setup(t) {
1124
+ let n = t;
1125
1125
  function u(e) {
1126
- return a.listId ? `${a.listId}-opt-${e}` : void 0;
1126
+ return n.listId ? `${n.listId}-opt-${e}` : void 0;
1127
1127
  }
1128
- return (a, f) => (n(), s("div", {
1129
- id: i.listId,
1130
- class: "tpl:min-w-[200px] tpl:max-w-[320px] tpl:max-h-[50vh] tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:py-1 tpl:shadow-lg",
1128
+ return (n, f) => (o(), i("div", {
1129
+ id: t.listId,
1130
+ class: "tpl:min-w-[200px] tpl:max-w-[320px] tpl:max-h-[50vh] tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1 tpl:shadow-[var(--tpl-shadow-lg)]",
1131
1131
  role: "listbox",
1132
1132
  "data-testid": "merge-tag-suggestion-list"
1133
- }, [i.items.length === 0 ? (n(), s("div", yt, r(i.emptyText), 1)) : l("", !0), (n(!0), s(c, null, e(i.items, (e, c) => (n(), s("button", {
1134
- key: e.value,
1133
+ }, [t.items.length === 0 ? (o(), i("div", yt, s(t.emptyText), 1)) : l("", !0), (o(!0), i(c, null, a(t.items, (a, c) => (o(), i("button", {
1134
+ key: a.value,
1135
1135
  id: u(c),
1136
1136
  type: "button",
1137
1137
  role: "option",
1138
- "aria-selected": c === i.selectedIndex,
1139
- "data-selected": c === i.selectedIndex ? "true" : "false",
1140
- "data-merge-tag-value": e.value,
1141
- class: t(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", c === i.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
1142
- onMousedown: d((t) => a.$emit("select", e), ["prevent", "stop"]),
1143
- onMousemove: (e) => c !== i.selectedIndex && a.$emit("hover", c)
1144
- }, [o("span", xt, r(e.label), 1), o("span", St, r(e.value), 1)], 42, bt))), 128))], 8, vt));
1138
+ "aria-selected": c === t.selectedIndex,
1139
+ "data-selected": c === t.selectedIndex ? "true" : "false",
1140
+ "data-merge-tag-value": a.value,
1141
+ class: e(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", c === t.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
1142
+ onMousedown: d((e) => n.$emit("select", a), ["prevent", "stop"]),
1143
+ onMousemove: (e) => c !== t.selectedIndex && n.$emit("hover", c)
1144
+ }, [r("span", xt, s(a.label), 1), r("span", St, s(a.value), 1)], 42, bt))), 128))], 8, vt));
1145
1145
  }
1146
1146
  }), wt = 10, Tt = 0;
1147
1147
  function Et(e, t) {
@@ -1154,8 +1154,8 @@ function Et(e, t) {
1154
1154
  function Dt(e, t, n, r) {
1155
1155
  return t.length === 0 ? e.key === "Enter" || e.key === "Tab" : e.key === "ArrowDown" ? (n.value = (n.value + 1) % t.length, !0) : e.key === "ArrowUp" ? (n.value = (n.value - 1 + t.length) % t.length, !0) : e.key === "Enter" || e.key === "Tab" ? (r(t[n.value]), !0) : !1;
1156
1156
  }
1157
- function Ot(e, t) {
1158
- let n = null, r = null, a = null, o = i([]), s = i(0), c = null, l = `tpl-merge-tag-suggestion-${++Tt}`, d = null, p = [], m = null;
1157
+ function Ot(e, r) {
1158
+ let i = null, a = null, o = null, s = t([]), c = t(0), l = null, u = `tpl-merge-tag-suggestion-${++Tt}`, d = null, p = [], m = null;
1159
1159
  function h() {
1160
1160
  b(d?.() ?? null);
1161
1161
  }
@@ -1185,14 +1185,14 @@ function Ot(e, t) {
1185
1185
  window.removeEventListener("resize", h), p = [];
1186
1186
  }
1187
1187
  function b(e) {
1188
- if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
1189
- r.style.position = "absolute", r.style.zIndex = "9999";
1190
- let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, i = t?.left ?? 0;
1191
- r.style.left = `${e.left - i}px`, r.style.top = `${e.bottom - n}px`;
1192
- let a = r.offsetHeight;
1193
- if (a !== 0 && window.innerHeight - e.bottom < a) {
1194
- let t = Math.max(0, e.top - a);
1195
- r.style.top = `${t - n}px`;
1188
+ if (!a || !e || e.bottom < 0 || e.top > window.innerHeight) return;
1189
+ a.style.position = "absolute", a.style.zIndex = "9999";
1190
+ let t = a.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, r = t?.left ?? 0;
1191
+ a.style.left = `${e.left - r}px`, a.style.top = `${e.bottom - n}px`;
1192
+ let i = a.offsetHeight;
1193
+ if (i !== 0 && window.innerHeight - e.bottom < i) {
1194
+ let t = Math.max(0, e.top - i);
1195
+ a.style.top = `${t - n}px`;
1196
1196
  }
1197
1197
  }
1198
1198
  function x(e, t) {
@@ -1208,46 +1208,46 @@ function Ot(e, t) {
1208
1208
  e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
1209
1209
  }
1210
1210
  function S(e) {
1211
- a && (e ? (a.setAttribute("role", "combobox"), a.setAttribute("aria-haspopup", "listbox"), a.setAttribute("aria-expanded", "true"), a.setAttribute("aria-controls", l)) : (a.removeAttribute("aria-expanded"), a.removeAttribute("aria-controls"), a.removeAttribute("aria-activedescendant"), a.removeAttribute("aria-haspopup"), a.removeAttribute("role")));
1211
+ o && (e ? (o.setAttribute("role", "combobox"), o.setAttribute("aria-haspopup", "listbox"), o.setAttribute("aria-expanded", "true"), o.setAttribute("aria-controls", u)) : (o.removeAttribute("aria-expanded"), o.removeAttribute("aria-controls"), o.removeAttribute("aria-activedescendant"), o.removeAttribute("aria-haspopup"), o.removeAttribute("role")));
1212
1212
  }
1213
1213
  function C() {
1214
- if (a) {
1215
- if (o.value.length === 0) {
1216
- a.removeAttribute("aria-activedescendant");
1214
+ if (o) {
1215
+ if (s.value.length === 0) {
1216
+ o.removeAttribute("aria-activedescendant");
1217
1217
  return;
1218
1218
  }
1219
- a.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`);
1219
+ o.setAttribute("aria-activedescendant", `${u}-opt-${c.value}`);
1220
1220
  }
1221
1221
  }
1222
1222
  function w(e) {
1223
- c?.(e);
1223
+ l?.(e);
1224
1224
  }
1225
1225
  return {
1226
- open: ({ items: i, getRect: p, anchorEl: m, onCommand: h }) => {
1227
- o.value = i, s.value = 0, c = h, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), a = m, x(r, m), (t?.value ?? document.body).appendChild(r), n = f({ render() {
1228
- return u(Ct, {
1229
- items: o.value,
1230
- selectedIndex: s.value,
1226
+ open: ({ items: t, getRect: p, anchorEl: m, onCommand: h }) => {
1227
+ s.value = t, c.value = 0, l = h, a = document.createElement("div"), a.setAttribute("data-testid", "merge-tag-suggestion-popup"), o = m, x(a, m), (r?.value ?? document.body).appendChild(a), i = f({ render() {
1228
+ return n(Ct, {
1229
+ items: s.value,
1230
+ selectedIndex: c.value,
1231
1231
  emptyText: e,
1232
- listId: l,
1232
+ listId: u,
1233
1233
  onSelect: (e) => w(e),
1234
1234
  onHover: (e) => {
1235
- s.value = e, C();
1235
+ c.value = e, C();
1236
1236
  }
1237
1237
  });
1238
- } }), n.mount(r), S(!0), C(), d = p, g(), v(m);
1238
+ } }), i.mount(a), S(!0), C(), d = p, g(), v(m);
1239
1239
  },
1240
1240
  update: ({ items: e, getRect: t, onCommand: n }) => {
1241
- o.value = e, s.value >= e.length && (s.value = 0), c = n, C(), d = t, g();
1241
+ s.value = e, c.value >= e.length && (c.value = 0), l = n, C(), d = t, g();
1242
1242
  },
1243
1243
  handleKeyDown: (e) => {
1244
- let t = Dt(e, o.value, s, w);
1244
+ let t = Dt(e, s.value, c, w);
1245
1245
  return t && C(), t;
1246
1246
  },
1247
1247
  close: () => {
1248
- r !== null && (m !== null && (cancelAnimationFrame(m), m = null), y(), S(!1), n?.unmount(), r.remove(), n = null, r = null, a = null, c = null, d = null);
1248
+ a !== null && (m !== null && (cancelAnimationFrame(m), m = null), y(), S(!1), i?.unmount(), a.remove(), i = null, a = null, o = null, l = null, d = null);
1249
1249
  },
1250
- isOpen: () => r !== null
1250
+ isOpen: () => a !== null
1251
1251
  };
1252
1252
  }
1253
1253
  function kt(e, t) {
@@ -1,5 +1,5 @@
1
- import { F as e, L as t, M as n, P as r, ct as i, f as a, g as o, h as s, it as c, lt as l, m as u, p as d, st as f, u as p, v as m, x as h } from "./draggable-DCs9qL-b.js";
2
- import { h as g, m as _, p as v } from "./ColorPicker-W_UyiVGc.js";
1
+ import { Dt as e, M as t, Ot as n, P as r, c as i, d as a, h as o, j as s, k as c, kt as l, l as u, r as d, rt as f, s as p, u as m, v as h } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
2
+ import { g, h as _, m as v } from "./styleConstants-ByDqaYj_.js";
3
3
  //#region src/components/ToggleSwitch.vue?vue&type=script&setup=true&lang.ts
4
4
  var y = { key: 0 }, b = {
5
5
  key: 0,
@@ -17,21 +17,21 @@ var y = { key: 0 }, b = {
17
17
  required: { type: Boolean }
18
18
  },
19
19
  emits: ["update:modelValue"],
20
- setup(t, { emit: r }) {
21
- let i = r;
22
- return (r, a) => (n(), o("label", { class: f(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", t.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [r.$slots.default || t.label || t.required ? (n(), o("span", y, [e(r.$slots, "default", {}, () => [m(l(t.label), 1)]), t.required ? (n(), o("span", b, " *")) : s("", !0)])) : s("", !0), d("button", {
20
+ setup(n, { emit: r }) {
21
+ let s = r;
22
+ return (r, u) => (c(), a("label", { class: e(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", n.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [r.$slots.default || n.label || n.required ? (c(), a("span", y, [t(r.$slots, "default", {}, () => [o(l(n.label), 1)]), n.required ? (c(), a("span", b, " *")) : m("", !0)])) : m("", !0), i("button", {
23
23
  type: "button",
24
24
  role: "switch",
25
- "aria-checked": t.modelValue,
26
- "aria-label": t.label,
27
- disabled: t.disabled,
28
- class: f([
25
+ "aria-checked": n.modelValue,
26
+ "aria-label": n.label,
27
+ disabled: n.disabled,
28
+ class: e([
29
29
  "tpl:relative tpl:inline-flex tpl:h-5 tpl:w-9 tpl:shrink-0 tpl:rounded-full tpl:border-2 tpl:border-transparent tpl:transition-colors tpl:duration-200",
30
- t.modelValue ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]",
31
- t.disabled ? "tpl:cursor-not-allowed tpl:opacity-60" : "tpl:cursor-pointer"
30
+ n.modelValue ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]",
31
+ n.disabled ? "tpl:cursor-not-allowed tpl:opacity-60" : "tpl:cursor-pointer"
32
32
  ]),
33
- onClick: a[0] ||= (e) => !t.disabled && i("update:modelValue", !t.modelValue)
34
- }, [d("span", { class: f(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", t.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, x)], 2));
33
+ onClick: u[0] ||= (e) => !n.disabled && s("update:modelValue", !n.modelValue)
34
+ }, [i("span", { class: e(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow)] tpl:transition-transform tpl:duration-200", n.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, x)], 2));
35
35
  }
36
36
  }), C = [
37
37
  "aria-checked",
@@ -45,19 +45,19 @@ var y = { key: 0 }, b = {
45
45
  modelValue: {}
46
46
  },
47
47
  emits: ["update:modelValue"],
48
- setup(e, { emit: c }) {
49
- let d = e, f = c, m = a(() => d.options.findIndex((e) => e.value === d.modelValue)), h = a(() => `translateX(${Math.max(m.value, 0) * 100}%)`);
50
- return (a, c) => (n(), o("div", {
48
+ setup(e, { emit: t }) {
49
+ let i = e, o = t, f = p(() => i.options.findIndex((e) => e.value === i.modelValue)), h = p(() => `translateX(${Math.max(f.value, 0) * 100}%)`);
50
+ return (t, i) => (c(), a("div", {
51
51
  role: "radiogroup",
52
52
  class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
53
- style: i({
53
+ style: n({
54
54
  gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
55
55
  backgroundColor: "var(--tpl-bg-hover)"
56
56
  })
57
- }, [m.value >= 0 ? (n(), o("div", {
57
+ }, [f.value >= 0 ? (c(), a("div", {
58
58
  key: 0,
59
59
  class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
60
- style: i({
60
+ style: n({
61
61
  left: "4px",
62
62
  width: `calc((100% - 8px) / ${e.options.length})`,
63
63
  transform: h.value,
@@ -65,32 +65,32 @@ var y = { key: 0 }, b = {
65
65
  boxShadow: "var(--tpl-shadow)",
66
66
  transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
67
67
  })
68
- }, null, 4)) : s("", !0), (n(!0), o(p, null, r(e.options, (r) => (n(), o("button", {
69
- key: r.value,
68
+ }, null, 4)) : m("", !0), (c(!0), a(d, null, s(e.options, (t) => (c(), a("button", {
69
+ key: t.value,
70
70
  role: "radio",
71
- "aria-checked": e.modelValue === r.value,
72
- "aria-label": r.label,
71
+ "aria-checked": e.modelValue === t.value,
72
+ "aria-label": t.label,
73
73
  class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:py-[5px] tpl:text-xs tpl:font-medium",
74
- style: i({
75
- color: e.modelValue === r.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
74
+ style: n({
75
+ color: e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
76
76
  transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
77
77
  }),
78
- title: r.label,
79
- onClick: (e) => f("update:modelValue", r.value)
80
- }, [r.icon ? (n(), u(t(r.icon), {
78
+ title: t.label,
79
+ onClick: (e) => o("update:modelValue", t.value)
80
+ }, [t.icon ? (c(), u(r(t.icon), {
81
81
  key: 0,
82
82
  size: 14,
83
83
  "stroke-width": 2
84
- })) : (n(), o("span", w, l(r.label), 1))], 12, C))), 128))], 4));
84
+ })) : (c(), a("span", w, l(t.label), 1))], 12, C))), 128))], 4));
85
85
  }
86
86
  }), E = { class: "tpl:mb-3.5" }, D = /* @__PURE__ */ h({
87
87
  __name: "FieldRow",
88
88
  props: { label: {} },
89
- setup(t) {
90
- return (r, i) => (n(), o("div", E, [t.label ? (n(), o("label", {
89
+ setup(n) {
90
+ return (r, i) => (c(), a("div", E, [n.label ? (c(), a("label", {
91
91
  key: 0,
92
- class: f(c(g))
93
- }, l(t.label), 3)) : s("", !0), e(r.$slots, "default")]));
92
+ class: e(f(g))
93
+ }, l(n.label), 3)) : m("", !0), t(r.$slots, "default")]));
94
94
  }
95
95
  }), O = { class: "tpl:flex tpl:items-stretch" }, k = [
96
96
  "value",
@@ -105,19 +105,17 @@ var y = { key: 0 }, b = {
105
105
  suffix: {}
106
106
  },
107
107
  emits: ["update:modelValue"],
108
- setup(e, { emit: t }) {
109
- let r = t;
110
- return (t, i) => (n(), o("div", O, [d("input", {
108
+ setup(t, { emit: n }) {
109
+ let r = n;
110
+ return (n, o) => (c(), a("div", O, [i("input", {
111
111
  type: "number",
112
- class: f(c(v)),
113
- value: e.modelValue,
114
- min: e.min,
115
- max: e.max,
116
- onInput: i[0] ||= (e) => r("update:modelValue", Number(e.target.value))
117
- }, null, 42, k), d("span", { class: f(c(_)) }, l(e.suffix), 3)]));
112
+ class: e(f(v)),
113
+ value: t.modelValue,
114
+ min: t.min,
115
+ max: t.max,
116
+ onInput: o[0] ||= (e) => r("update:modelValue", Number(e.target.value))
117
+ }, null, 42, k), i("span", { class: e(f(_)) }, l(t.suffix), 3)]));
118
118
  }
119
119
  });
120
120
  //#endregion
121
121
  export { S as i, D as n, T as r, A as t };
122
-
123
- //# sourceMappingURL=NumberWithSuffix-BXrRdfq1.js.map