@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
@@ -0,0 +1,501 @@
1
+ import { Dt as e, Ot as t, S as n, X as r, c as i, d as a, g as o, i as s, j as c, k as l, l as ee, r as te, rt as u, s as d, u as f, v as p, z as ne } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
2
+ import { c as re, s as m, t as ie } from "./runtime-dom.esm-bundler-BgKXIPLV.js";
3
+ import { t as ae } from "./dist-B5iReTtK.js";
4
+ import { B as oe, H as se, u as ce } from "./keys-BxixS0TN.js";
5
+ import { t as le } from "./useI18n-BfXff_Sy.js";
6
+ import { a as ue, i as h, n as de, r as g, t as fe } from "./usePopoverPosition-CxhCX3SQ.js";
7
+ import { t as _ } from "./x-BjTlFqRv.js";
8
+ import { u as v } from "./styleConstants-ByDqaYj_.js";
9
+ //#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
10
+ var y = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, b = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
11
+ 360 / (Math.PI * 2);
12
+ var x = (e) => k(S(e)), S = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
13
+ r: parseInt(e[0] + e[0], 16),
14
+ g: parseInt(e[1] + e[1], 16),
15
+ b: parseInt(e[2] + e[2], 16),
16
+ a: e.length === 4 ? b(parseInt(e[3] + e[3], 16) / 255, 2) : 1
17
+ } : {
18
+ r: parseInt(e.substring(0, 2), 16),
19
+ g: parseInt(e.substring(2, 4), 16),
20
+ b: parseInt(e.substring(4, 6), 16),
21
+ a: e.length === 8 ? b(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
22
+ }), C = (e) => O(E(e)), w = ({ h: e, s: t, v: n, a: r }) => {
23
+ let i = (200 - t) * n / 100;
24
+ return {
25
+ h: b(e),
26
+ s: b(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
27
+ l: b(i / 2),
28
+ a: b(r, 2)
29
+ };
30
+ }, T = (e) => {
31
+ let { h: t, s: n, l: r } = w(e);
32
+ return `hsl(${t}, ${n}%, ${r}%)`;
33
+ }, E = ({ h: e, s: t, v: n, a: r }) => {
34
+ e = e / 360 * 6, t /= 100, n /= 100;
35
+ let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
36
+ return {
37
+ r: b([
38
+ n,
39
+ o,
40
+ a,
41
+ a,
42
+ s,
43
+ n
44
+ ][c] * 255),
45
+ g: b([
46
+ s,
47
+ n,
48
+ n,
49
+ o,
50
+ a,
51
+ a
52
+ ][c] * 255),
53
+ b: b([
54
+ a,
55
+ a,
56
+ s,
57
+ n,
58
+ n,
59
+ o
60
+ ][c] * 255),
61
+ a: b(r, 2)
62
+ };
63
+ }, D = (e) => {
64
+ let t = e.toString(16);
65
+ return t.length < 2 ? "0" + t : t;
66
+ }, O = ({ r: e, g: t, b: n, a: r }) => {
67
+ let i = r < 1 ? D(b(r * 255)) : "";
68
+ return "#" + D(e) + D(t) + D(n) + i;
69
+ }, k = ({ r: e, g: t, b: n, a: r }) => {
70
+ let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
71
+ return {
72
+ h: b(60 * (o < 0 ? o + 6 : o)),
73
+ s: b(i ? a / i * 100 : 0),
74
+ v: b(i / 255 * 100),
75
+ a: r
76
+ };
77
+ }, A = (e, t) => {
78
+ if (e === t) return !0;
79
+ for (let n in e) if (e[n] !== t[n]) return !1;
80
+ return !0;
81
+ }, j = (e, t) => e.toLowerCase() === t.toLowerCase() || A(S(e), S(t)), M = {}, N = (e) => {
82
+ let t = M[e];
83
+ return t || (t = document.createElement("template"), t.innerHTML = e, M[e] = t), t;
84
+ }, P = (e, t, n) => {
85
+ e.dispatchEvent(new CustomEvent(t, {
86
+ bubbles: !0,
87
+ detail: n
88
+ }));
89
+ }, F = !1, I = (e) => "touches" in e, L = (e) => F && !I(e) ? !1 : (F ||= I(e), !0), R = (e, t) => {
90
+ let n = I(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
91
+ P(e.el, "move", e.getMove({
92
+ x: y((n.pageX - (r.left + window.pageXOffset)) / r.width),
93
+ y: y((n.pageY - (r.top + window.pageYOffset)) / r.height)
94
+ }));
95
+ }, z = (e, t) => {
96
+ let n = t.keyCode;
97
+ n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), P(e.el, "move", e.getMove({
98
+ x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
99
+ y: n === 40 ? .01 : n === 38 ? -.01 : 0
100
+ }, !0)));
101
+ }, B = class {
102
+ constructor(e, t, n, r) {
103
+ let i = N(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
104
+ e.appendChild(i.content.cloneNode(!0));
105
+ let a = e.querySelector(`[part=${t}]`);
106
+ a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
107
+ }
108
+ set dragging(e) {
109
+ let t = e ? document.addEventListener : document.removeEventListener;
110
+ t(F ? "touchmove" : "mousemove", this), t(F ? "touchend" : "mouseup", this);
111
+ }
112
+ handleEvent(e) {
113
+ switch (e.type) {
114
+ case "mousedown":
115
+ case "touchstart":
116
+ if (e.preventDefault(), !L(e) || !F && e.button != 0) return;
117
+ this.el.focus(), R(this, e), this.dragging = !0;
118
+ break;
119
+ case "mousemove":
120
+ case "touchmove":
121
+ e.preventDefault(), R(this, e);
122
+ break;
123
+ case "mouseup":
124
+ case "touchend":
125
+ this.dragging = !1;
126
+ break;
127
+ case "keydown": z(this, e);
128
+ }
129
+ }
130
+ style(e) {
131
+ e.forEach((e, t) => {
132
+ for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
133
+ });
134
+ }
135
+ }, V = class extends B {
136
+ constructor(e) {
137
+ super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
138
+ }
139
+ update({ h: e }) {
140
+ this.h = e, this.style([{
141
+ left: `${e / 360 * 100}%`,
142
+ color: T({
143
+ h: e,
144
+ s: 100,
145
+ v: 100,
146
+ a: 1
147
+ })
148
+ }]), this.el.setAttribute("aria-valuenow", `${b(e)}`);
149
+ }
150
+ getMove(e, t) {
151
+ return { h: t ? y(this.h + e.x * 360, 0, 360) : 360 * e.x };
152
+ }
153
+ }, H = class extends B {
154
+ constructor(e) {
155
+ super(e, "saturation", "aria-label=\"Color\"", !0);
156
+ }
157
+ update(e) {
158
+ this.hsva = e, this.style([{
159
+ top: `${100 - e.v}%`,
160
+ left: `${e.s}%`,
161
+ color: T(e)
162
+ }, { "background-color": T({
163
+ h: e.h,
164
+ s: 100,
165
+ v: 100,
166
+ a: 1
167
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${b(e.s)}%, Brightness ${b(e.v)}%`);
168
+ }
169
+ getMove(e, t) {
170
+ return {
171
+ s: t ? y(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
172
+ v: t ? y(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
173
+ };
174
+ }
175
+ }, U = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", W = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", G = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", K = Symbol("same"), q = Symbol("color"), J = Symbol("hsva"), Y = Symbol("update"), X = Symbol("parts"), Z = Symbol("css"), Q = Symbol("sliders"), pe = class extends HTMLElement {
176
+ static get observedAttributes() {
177
+ return ["color"];
178
+ }
179
+ get [Z]() {
180
+ return [
181
+ U,
182
+ W,
183
+ G
184
+ ];
185
+ }
186
+ get [Q]() {
187
+ return [H, V];
188
+ }
189
+ get color() {
190
+ return this[q];
191
+ }
192
+ set color(e) {
193
+ if (!this[K](e)) {
194
+ let t = this.colorModel.toHsva(e);
195
+ this[Y](t), this[q] = e;
196
+ }
197
+ }
198
+ constructor() {
199
+ super();
200
+ let e = N(`<style>${this[Z].join("")}</style>`), t = this.attachShadow({ mode: "open" });
201
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[X] = this[Q].map((e) => new e(t));
202
+ }
203
+ connectedCallback() {
204
+ if (this.hasOwnProperty("color")) {
205
+ let e = this.color;
206
+ delete this.color, this.color = e;
207
+ } else this.color ||= this.colorModel.defaultColor;
208
+ }
209
+ attributeChangedCallback(e, t, n) {
210
+ let r = this.colorModel.fromAttr(n);
211
+ this[K](r) || (this.color = r);
212
+ }
213
+ handleEvent(e) {
214
+ let t = this[J], n = {
215
+ ...t,
216
+ ...e.detail
217
+ };
218
+ this[Y](n);
219
+ let r;
220
+ !A(n, t) && !this[K](r = this.colorModel.fromHsva(n)) && (this[q] = r, P(this, "color-changed", { value: r }));
221
+ }
222
+ [K](e) {
223
+ return this.color && this.colorModel.equal(e, this.color);
224
+ }
225
+ [Y](e) {
226
+ this[J] = e, this[X].forEach((t) => t.update(e));
227
+ }
228
+ }, $ = {
229
+ defaultColor: "#000",
230
+ toHsva: x,
231
+ fromHsva: ({ h: e, s: t, v: n }) => C({
232
+ h: e,
233
+ s: t,
234
+ v: n,
235
+ a: 1
236
+ }),
237
+ equal: j,
238
+ fromAttr: (e) => e
239
+ }, me = class extends pe {
240
+ get colorModel() {
241
+ return $;
242
+ }
243
+ }, he = class extends me {};
244
+ customElements.define("hex-color-picker", he);
245
+ //#endregion
246
+ //#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
247
+ var ge = [
248
+ "disabled",
249
+ "aria-label",
250
+ "title",
251
+ "aria-expanded"
252
+ ], _e = {
253
+ key: 0,
254
+ class: "tpl:relative tpl:flex-1"
255
+ }, ve = [
256
+ "value",
257
+ "placeholder",
258
+ "disabled",
259
+ "aria-label"
260
+ ], ye = ["aria-label", "title"], be = ["data-tpl-theme"], xe = ["aria-label"], Se = [
261
+ "aria-label",
262
+ "title",
263
+ "aria-checked",
264
+ "tabindex"
265
+ ], Ce = [
266
+ "aria-label",
267
+ "title",
268
+ "aria-checked",
269
+ "tabindex",
270
+ "onClick"
271
+ ], we = ["color", "aria-label"], Te = {
272
+ key: 2,
273
+ class: "tpl:relative tpl:mt-2"
274
+ }, Ee = [
275
+ "value",
276
+ "placeholder",
277
+ "disabled",
278
+ "aria-label"
279
+ ], De = ["aria-label", "title"], Oe = /* @__PURE__ */ p({
280
+ __name: "ColorPicker",
281
+ props: {
282
+ modelValue: {},
283
+ placeholder: { default: "" },
284
+ seedColor: { default: "#ffffff" },
285
+ swatchOnly: {
286
+ type: Boolean,
287
+ default: !1
288
+ },
289
+ disabled: {
290
+ type: Boolean,
291
+ default: !1
292
+ },
293
+ size: { default: "md" },
294
+ ariaLabel: { default: "" },
295
+ presets: { default: void 0 },
296
+ allowCustom: {
297
+ type: Boolean,
298
+ default: void 0
299
+ }
300
+ },
301
+ emits: ["update:modelValue"],
302
+ setup(p, { emit: y }) {
303
+ let b = p, x = y, { t: S } = le(), C = r(!1), w = r(), T = r(), E = r(!1);
304
+ ae(w, () => {
305
+ C.value = !1;
306
+ }, { ignore: [T] });
307
+ let D = d(() => !b.modelValue), O = d(() => h(b.modelValue)), k = d(() => h(b.modelValue || b.seedColor)), A = d(() => !b.disabled && !D.value), j = n(ce, ue), M = d(() => [...new Set(b.presets ?? j.presets)]), N = d(() => b.allowCustom ?? j.allowCustom), P = d(() => M.value.length > 0), F = d(() => N.value || !P.value), I = d(() => g(b.modelValue));
308
+ function L(e) {
309
+ return I.value !== "" && g(e) === I.value;
310
+ }
311
+ function R(e) {
312
+ x("update:modelValue", e);
313
+ }
314
+ let z = d(() => P.value && !F.value);
315
+ function B(e) {
316
+ return z.value ? e + 1 : e;
317
+ }
318
+ let V = d(() => {
319
+ if (z.value && D.value) return 0;
320
+ let e = M.value.findIndex((e) => L(e));
321
+ return e === -1 ? 0 : B(e);
322
+ });
323
+ function H() {
324
+ return V.value === 0 ? 0 : -1;
325
+ }
326
+ function U(e) {
327
+ return B(e) === V.value ? 0 : -1;
328
+ }
329
+ function W(e) {
330
+ if (![
331
+ "ArrowRight",
332
+ "ArrowDown",
333
+ "ArrowLeft",
334
+ "ArrowUp"
335
+ ].includes(e.key)) return;
336
+ let t = e.currentTarget, n = Array.from(t.querySelectorAll("[role=\"radio\"]")), r = e.target.closest("[role=\"radio\"]"), i = r ? n.indexOf(r) : -1;
337
+ i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
338
+ }
339
+ function G(e) {
340
+ E.value = !0, x("update:modelValue", e.detail.value);
341
+ }
342
+ function K() {
343
+ E.value = !1;
344
+ }
345
+ function q() {
346
+ !E.value && D.value && x("update:modelValue", k.value);
347
+ }
348
+ function J(e) {
349
+ x("update:modelValue", e.target.value);
350
+ }
351
+ function Y() {
352
+ x("update:modelValue", "");
353
+ }
354
+ let X = de(), { toLocal: Z } = fe(), Q = n(oe, null), pe = n(se, null), $ = r({
355
+ top: 0,
356
+ left: 0
357
+ });
358
+ function me() {
359
+ if (!b.disabled) {
360
+ if (!C.value) {
361
+ let e = T.value?.getBoundingClientRect();
362
+ if (e) {
363
+ let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
364
+ $.value = Z({
365
+ top: t,
366
+ left: e.left
367
+ });
368
+ }
369
+ }
370
+ C.value = !C.value;
371
+ }
372
+ }
373
+ return (n, r) => (l(), a("div", { class: e(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", p.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
374
+ i("button", {
375
+ ref_key: "swatchRef",
376
+ ref: T,
377
+ type: "button",
378
+ disabled: p.disabled,
379
+ "aria-label": p.ariaLabel || u(S).colorPicker.pickColor,
380
+ title: p.ariaLabel || void 0,
381
+ "aria-expanded": C.value,
382
+ class: e([
383
+ "tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
384
+ p.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
385
+ C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !p.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
386
+ p.size === "sm" ? "tpl:size-8" : "tpl:size-10"
387
+ ]),
388
+ onClick: me
389
+ }, [i("span", {
390
+ class: e(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": D.value }]),
391
+ style: t(D.value ? void 0 : { backgroundColor: O.value })
392
+ }, null, 6)], 10, ge),
393
+ !p.swatchOnly && F.value ? (l(), a("div", _e, [i("input", {
394
+ type: "text",
395
+ class: e([u(v), "tpl:w-full"]),
396
+ style: t(A.value ? { paddingRight: "2.25rem" } : void 0),
397
+ value: O.value,
398
+ placeholder: p.placeholder || u(S).colorPicker.notSet,
399
+ disabled: p.disabled,
400
+ "aria-label": u(S).colorPicker.hexValue,
401
+ onInput: J
402
+ }, null, 46, ve), A.value ? (l(), a("button", {
403
+ key: 0,
404
+ type: "button",
405
+ "aria-label": u(S).colorPicker.clear,
406
+ title: u(S).colorPicker.clear,
407
+ class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
408
+ onClick: Y
409
+ }, [o(u(_), {
410
+ size: 14,
411
+ "stroke-width": 1.5
412
+ })], 8, ye)) : f("", !0)])) : f("", !0),
413
+ (l(), ee(s, {
414
+ to: u(X),
415
+ disabled: !u(X)
416
+ }, [o(ie, {
417
+ "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
418
+ "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
419
+ "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
420
+ "leave-active-class": "tpl:transition-all tpl:duration-[80ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
421
+ "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
422
+ "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
423
+ }, {
424
+ default: ne(() => [C.value ? (l(), a("div", {
425
+ key: 0,
426
+ ref_key: "popoverRef",
427
+ ref: w,
428
+ "data-tpl-theme": u(pe),
429
+ class: "tpl-color-popover tpl:absolute tpl:z-modal tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]",
430
+ style: t({
431
+ top: `${$.value.top}px`,
432
+ left: `${$.value.left}px`,
433
+ ...u(Q)
434
+ })
435
+ }, [
436
+ P.value ? (l(), a("div", {
437
+ key: 0,
438
+ role: "radiogroup",
439
+ "aria-label": u(S).colorPicker.presetColors,
440
+ class: e(["tpl:flex tpl:flex-wrap tpl:gap-1.5", F.value && "tpl:mb-2"]),
441
+ onKeydown: W
442
+ }, [z.value ? (l(), a("button", {
443
+ key: 0,
444
+ type: "button",
445
+ role: "radio",
446
+ "aria-label": u(S).colorPicker.clear,
447
+ title: u(S).colorPicker.clear,
448
+ "aria-checked": D.value,
449
+ tabindex: H(),
450
+ class: e(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", D.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
451
+ onClick: Y
452
+ }, null, 10, Se)) : f("", !0), (l(!0), a(te, null, c(M.value, (n, r) => (l(), a("button", {
453
+ key: n,
454
+ type: "button",
455
+ role: "radio",
456
+ "aria-label": n,
457
+ title: n,
458
+ "aria-checked": L(n),
459
+ tabindex: U(r),
460
+ style: t({ backgroundColor: n }),
461
+ class: e(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", L(n) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
462
+ onClick: (e) => R(n)
463
+ }, null, 14, Ce))), 128))], 42, xe)) : f("", !0),
464
+ F.value ? (l(), a("hex-color-picker", {
465
+ key: 1,
466
+ color: k.value,
467
+ "aria-label": u(S).colorPicker.pickColor,
468
+ onColorChanged: G,
469
+ onPointerdown: K,
470
+ onPointerup: q,
471
+ onKeydown: r[0] ||= m((e) => C.value = !1, ["escape"])
472
+ }, null, 40, we)) : f("", !0),
473
+ p.swatchOnly && F.value ? (l(), a("div", Te, [i("input", {
474
+ type: "text",
475
+ class: e([u(v), "tpl:w-full"]),
476
+ style: t(A.value ? { paddingRight: "2.25rem" } : void 0),
477
+ value: O.value,
478
+ placeholder: p.placeholder || u(S).colorPicker.notSet,
479
+ disabled: p.disabled,
480
+ "aria-label": u(S).colorPicker.hexValue,
481
+ onChange: J,
482
+ onKeydown: r[1] ||= m(re((e) => e.target.blur(), ["prevent"]), ["enter"])
483
+ }, null, 46, Ee), A.value ? (l(), a("button", {
484
+ key: 0,
485
+ type: "button",
486
+ "aria-label": u(S).colorPicker.clear,
487
+ title: u(S).colorPicker.clear,
488
+ class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
489
+ onClick: Y
490
+ }, [o(u(_), {
491
+ size: 14,
492
+ "stroke-width": 1.5
493
+ })], 8, De)) : f("", !0)])) : f("", !0)
494
+ ], 12, be)) : f("", !0)]),
495
+ _: 1
496
+ })], 8, ["to", "disabled"]))
497
+ ], 2));
498
+ }
499
+ });
500
+ //#endregion
501
+ export { Oe as t };
@@ -0,0 +1,18 @@
1
+ import { _ as e, k as t, l as n, rt as r, u as i, v as a } from "./vue.runtime.esm-bundler-DzEsDRtY.js";
2
+ //#endregion
3
+ //#region src/components/CommentsPanel.vue
4
+ var o = /* @__PURE__ */ a({
5
+ __name: "CommentsPanel",
6
+ props: { feature: {} },
7
+ setup(a) {
8
+ let o = e(() => import("./CommentsSidebar-BoTIxpLE.js"));
9
+ return (e, s) => a.feature.isOpen.value ? (t(), n(r(o), {
10
+ key: 0,
11
+ visible: a.feature.isOpen.value,
12
+ feature: a.feature,
13
+ onClose: s[0] ||= (e) => a.feature.close()
14
+ }, null, 8, ["visible", "feature"])) : i("", !0);
15
+ }
16
+ });
17
+ //#endregion
18
+ export { o as default };