@templatical/editor 0.34.3 → 0.36.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 (290) hide show
  1. package/dist/{AiChatSidebar-CkHJ28sf.js → AiChatSidebar-tu4eLcf_.js} +78 -70
  2. package/dist/{AiFeatureMenu-DWdKguDN.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
  3. package/dist/{BlockIssueBadge-DcyHTAqw.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
  4. package/dist/BlockPreviewCanvas-DDCmMram.js +131 -0
  5. package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
  6. package/dist/{CloudPanels-BGz9ygo6.js → CloudPanels-Iwnky0iA.js} +78 -108
  7. package/dist/CollaboratorBar-DAITu0hz.js +103 -0
  8. package/dist/{ColorPicker-C6EOwtHC.js → ColorPicker-BqlZ_TqG.js} +193 -193
  9. package/dist/{CommentsPanel-DmWh8f08.js → CommentsPanel-CDvgmWP1.js} +3 -3
  10. package/dist/{CommentsSidebar-CL_tffzT.js → CommentsSidebar-X_xqM3dR.js} +182 -173
  11. package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
  12. package/dist/{CountdownToolbar-B8J4i5Xp.js → CountdownToolbar-DBFoG3a6.js} +67 -67
  13. package/dist/{DesignReferenceSidebar-BDhEeaAh.js → DesignReferenceSidebar--QtXjLrw.js} +103 -95
  14. package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
  15. package/dist/IssuesPanel-BLbNFMSX.js +117 -0
  16. package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
  17. package/dist/MediaPanels-CMTAhDXB.js +43 -0
  18. package/dist/{MergeTagInput-RytOlh1A.js → MergeTagInput-BEjzj4Iu.js} +153 -144
  19. package/dist/{MergeTagModeToggle-Bi-FydXj.js → MergeTagModeToggle-DKN6ihI5.js} +108 -96
  20. package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
  21. package/dist/ParagraphEditor-1E9yzOfk.js +782 -0
  22. package/dist/{RestoreVersionDialog-Db5rZRMA.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
  23. package/dist/RichTextEditorContent-BnxbQUV9.js +154 -0
  24. package/dist/{SaveBlockDialog-CDCzx6Bo.js → SaveBlockDialog-WKASpCCT.js} +78 -78
  25. package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
  26. package/dist/{SavedBlocksPanels-DFzV0CRD.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
  27. package/dist/{SavedBlocksPickBar-XyXmnSnO.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
  28. package/dist/TemplateScoringPanel-CSin43YM.js +267 -0
  29. package/dist/{TestEmailModal-DIfJy9eE.js → TestEmailModal-BxizsRCd.js} +59 -59
  30. package/dist/{TestEmailPanel-C8Wx5yPS.js → TestEmailPanel-vd2e5HzT.js} +3 -3
  31. package/dist/TitleEditor-CLJ68Ty4.js +199 -0
  32. package/dist/TplModal-Q9fDgS1M.js +51 -0
  33. package/dist/{VersionHistoryMenu-CV90OhXs.js → VersionHistoryMenu-eGYVhM4H.js} +48 -46
  34. package/dist/{VersionHistoryPanels-BE3pplJG.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
  35. package/dist/{VersionPreviewBanner-BwUWBtlH.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
  36. package/dist/blockTypeIcons-5qD4bB76.js +163 -0
  37. package/dist/bundle-stats.json +8 -8
  38. package/dist/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +2 -0
  39. package/dist/ca-Jx2CDwtn.js +83 -0
  40. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js → AiChatSidebar-dyqqHAcI.js} +4 -4
  41. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
  43. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
  45. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
  46. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js +133 -0
  47. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
  49. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js → CloudPanels-DkmR05nB.js} +15 -45
  51. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
  53. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
  54. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js → ColorPicker-LcrzgMoW.js} +7 -7
  55. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js → CommentsPanel-CntwwocI.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js → CommentsSidebar-BLDKnKy7.js} +4 -4
  59. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
  61. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js → CountdownToolbar-CA1dpuOI.js} +3 -3
  63. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js → IssuesPanel-Q62LTqvd.js} +5 -5
  67. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
  68. package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
  69. package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
  70. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js → MergeTagInput-l7paaAml.js} +8 -8
  71. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js → MergeTagModeToggle-DYxkAGtA.js} +5 -5
  73. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js → ParagraphEditor-Bd-GQXee.js} +176 -172
  75. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
  77. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
  79. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js → SaveBlockDialog-CufdTomT.js} +15 -15
  81. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
  85. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
  89. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
  90. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js → TestEmailModal-BTNlSW6f.js} +11 -11
  91. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
  93. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
  94. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js → TitleEditor-CrnuIq62.js} +9 -9
  95. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
  96. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js → TplModal-DYXrTz42.js} +5 -5
  97. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js.map → TplModal-DYXrTz42.js.map} +1 -1
  98. package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js → VersionHistoryMenu-bDGnE4hb.js} +6 -6
  99. package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
  100. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
  101. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
  102. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
  103. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
  104. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js → blockTypeIcons-CNjJSFun.js} +2 -2
  105. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
  106. package/dist/cdn/chunks/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +3 -1
  107. package/dist/cdn/chunks/{ca-C0hfqt4U.js.map → ca-D9S-UCfZ.js.map} +1 -1
  108. package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
  109. package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
  110. package/dist/cdn/chunks/{cloud-BP5-6__d.js → cloud-BLgCKP7Z.js} +453 -228
  111. package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
  112. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
  113. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
  114. package/dist/{de-C6J2Iae8.js → cdn/chunks/de-BUPszLpi.js} +4 -0
  115. package/dist/cdn/chunks/{de-C6J2Iae8.js.map → de-BUPszLpi.js.map} +1 -1
  116. package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
  117. package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
  118. package/dist/cdn/chunks/{src-Cxl-9O-L.js → editor-modal-MXgtarMl.js} +1473 -1934
  119. package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
  120. package/dist/cdn/chunks/{en-BaUYOQi8.js → en-BbOC5x3w.js} +3 -1
  121. package/dist/cdn/chunks/en-BbOC5x3w.js.map +1 -0
  122. package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
  123. package/dist/cdn/chunks/{es-CKDYfJYn.js → es-0bCDcT9p.js} +3 -1
  124. package/dist/cdn/chunks/{es-CKDYfJYn.js.map → es-0bCDcT9p.js.map} +1 -1
  125. package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
  126. package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
  127. package/dist/cdn/chunks/{extensions-7z04EIGg.js → extensions-B8_jnIkD.js} +4 -4
  128. package/dist/cdn/chunks/{extensions-7z04EIGg.js.map → extensions-B8_jnIkD.js.map} +1 -1
  129. package/dist/{fr-L8DR73mK.js → cdn/chunks/fr-Brr8mJ9e.js} +4 -0
  130. package/dist/cdn/chunks/fr-Brr8mJ9e.js.map +1 -0
  131. package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
  132. package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
  133. package/dist/cdn/chunks/icons-BUlqGSgd.js +1675 -0
  134. package/dist/cdn/chunks/icons-BUlqGSgd.js.map +1 -0
  135. package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
  136. package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
  137. package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
  138. package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
  139. package/dist/{nl-GDWeuX18.js → cdn/chunks/nl-Co3_RL0M.js} +4 -0
  140. package/dist/cdn/chunks/nl-Co3_RL0M.js.map +1 -0
  141. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js → preRenderCustomBlocks-Bdpiiw4A.js} +2 -2
  142. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js.map → preRenderCustomBlocks-Bdpiiw4A.js.map} +1 -1
  143. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +3 -1
  144. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js.map → pt-BR-BECez5b0.js.map} +1 -1
  145. package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
  146. package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
  147. package/dist/cdn/chunks/{src-BM3f9I7t.js → src-CUvZWL6Y.js} +83 -83
  148. package/dist/cdn/chunks/src-CUvZWL6Y.js.map +1 -0
  149. package/dist/cdn/chunks/{src-BDvZrpFH.js → src-DZ0C9mH7.js} +161 -160
  150. package/dist/cdn/chunks/src-DZ0C9mH7.js.map +1 -0
  151. package/dist/cdn/chunks/{src-CLoCCDfs.js → src-Dwgq7hf4.js} +71 -48
  152. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -0
  153. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
  154. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
  155. package/dist/cdn/chunks/{useEditorCore-ehUSEsbw.js → useEditorCore-Cs7rYVBo.js} +614 -522
  156. package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
  157. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
  158. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
  159. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
  160. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
  161. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js → useMergeTag-BYAifvh8.js} +4 -4
  162. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
  163. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
  164. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
  165. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
  166. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
  167. package/dist/cdn/editor.css +1 -1
  168. package/dist/cdn/editor.js +1195 -1095
  169. package/dist/cdn/editor.js.map +1 -1
  170. package/dist/check-DWtkBzBU.js +11 -0
  171. package/dist/chevron-down-C-Fjxcqj.js +11 -0
  172. package/dist/chevron-right-SOkn2d4P.js +11 -0
  173. package/dist/chevron-up-lntU1ypp.js +11 -0
  174. package/dist/circle-alert-CjzUTwy3.js +30 -0
  175. package/dist/clock-pB2QKPsJ.js +16 -0
  176. package/dist/{cloud-BMzRKCbk.js → cloud-DdidMW6f.js} +446 -201
  177. package/dist/copy-CId1E038.js +19 -0
  178. package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
  179. package/dist/createLucideIcon-Cwf_nTzE.js +96 -0
  180. package/dist/{cdn/chunks/de-C6J2Iae8.js → de-BUPszLpi.js} +2 -2
  181. package/dist/de-Ck0pBGHu.js +83 -0
  182. package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
  183. package/dist/dist-D8i1ixHK.js +177 -0
  184. package/dist/dist-DBirAJIs.js +410 -0
  185. package/dist/{dist-PL6vP4SC.js → dist-tGkjkX-v.js} +143 -122
  186. package/dist/editor-modal-B_LaQf0s.js +5998 -0
  187. package/dist/{en-BaUYOQi8.js → en-BbOC5x3w.js} +2 -0
  188. package/dist/en-DcmpWV53.js +2 -0
  189. package/dist/{es-CKDYfJYn.js → es-0bCDcT9p.js} +2 -0
  190. package/dist/es-lagTvUfX.js +83 -0
  191. package/dist/{extensions-Mf8iHey9.js → extensions-CHOBZRab.js} +43 -43
  192. package/dist/eye-BuGtFUoJ.js +16 -0
  193. package/dist/{cdn/chunks/fr-L8DR73mK.js → fr-Brr8mJ9e.js} +2 -2
  194. package/dist/fr-C4hVl5Lk.js +83 -0
  195. package/dist/image-up-gH4JEpU5.js +27 -0
  196. package/dist/index.d.ts +77 -11
  197. package/dist/info-BQ60P82u.js +23 -0
  198. package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
  199. package/dist/link-3R8it3J7.js +14 -0
  200. package/dist/list-Ccdgj46T.js +33 -0
  201. package/dist/loader-circle-B_tAD4k6.js +12 -0
  202. package/dist/message-circle-P-KSc6V0.js +11 -0
  203. package/dist/nl-CReD7Apd.js +83 -0
  204. package/dist/{cdn/chunks/nl-GDWeuX18.js → nl-Co3_RL0M.js} +2 -2
  205. package/dist/pencil-9ZiwqS4r.js +14 -0
  206. package/dist/plus-BwJEzCaO.js +14 -0
  207. package/dist/{preRenderCustomBlocks-CSIF-HyJ.js → preRenderCustomBlocks-DFXH54Zr.js} +1 -1
  208. package/dist/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +2 -0
  209. package/dist/pt-BR-BRA0-vGP.js +83 -0
  210. package/dist/refresh-cw-DEgfb2FK.js +25 -0
  211. package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
  212. package/dist/search-DqQ8Li5E.js +16 -0
  213. package/dist/send-CE6uvqop.js +14 -0
  214. package/dist/shield-check-DhD1Z3rd.js +14 -0
  215. package/dist/sparkles-R0ZQHa6F.js +28 -0
  216. package/dist/style.css +1 -1
  217. package/dist/templatical-editor.js +2742 -2590
  218. package/dist/text-align-start-DSux2UNn.js +58 -0
  219. package/dist/trash-Cf_SqsER.js +30 -0
  220. package/dist/triangle-alert-C6tGa6jw.js +22 -0
  221. package/dist/upload-DusKjpVr.js +21 -0
  222. package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
  223. package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
  224. package/dist/{useEditorCore-DdkQuTHl.js → useEditorCore-DhlKOYwe.js} +1780 -1651
  225. package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
  226. package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
  227. package/dist/{useMergeTag-gSuYus-M.js → useMergeTag-DlvOBW_B.js} +4 -4
  228. package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
  229. package/dist/useScrollToBlock-BTFw0b9O.js +48 -0
  230. package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
  231. package/dist/x-D_-42Ukq.js +14 -0
  232. package/package.json +9 -12
  233. package/dist/BlockPreviewCanvas-B621ANn9.js +0 -129
  234. package/dist/CloudHeaderExtras-BJ3Cebhv.js +0 -59
  235. package/dist/CollaboratorBar-KphmSQeZ.js +0 -95
  236. package/dist/IssuesPanel-CiOjeRFI.js +0 -109
  237. package/dist/ParagraphEditor-C87tkmtE.js +0 -767
  238. package/dist/RichTextEditorContent-BmTcV2-a.js +0 -152
  239. package/dist/SavedBlocksBrowserModal-DQR6kJB1.js +0 -322
  240. package/dist/TemplateScoringPanel-CpyEKMzC.js +0 -257
  241. package/dist/TitleEditor-iNFOisr4.js +0 -198
  242. package/dist/TplModal-CowM3o_F.js +0 -51
  243. package/dist/blockTypeIcons-DQsKtHik.js +0 -134
  244. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js +0 -131
  245. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js.map +0 -1
  246. package/dist/cdn/chunks/VersionHistoryMenu-DDjIBvad.js.map +0 -1
  247. package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
  248. package/dist/cdn/chunks/cloud-BP5-6__d.js.map +0 -1
  249. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js +0 -443
  250. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js.map +0 -1
  251. package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
  252. package/dist/cdn/chunks/en-BaUYOQi8.js.map +0 -1
  253. package/dist/cdn/chunks/en-mEKGL1PX.js +0 -2
  254. package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
  255. package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
  256. package/dist/cdn/chunks/fr-L8DR73mK.js.map +0 -1
  257. package/dist/cdn/chunks/icons-SP5Itd-A.js +0 -1218
  258. package/dist/cdn/chunks/icons-SP5Itd-A.js.map +0 -1
  259. package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
  260. package/dist/cdn/chunks/nl-GDWeuX18.js.map +0 -1
  261. package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
  262. package/dist/cdn/chunks/src-BDvZrpFH.js.map +0 -1
  263. package/dist/cdn/chunks/src-BM3f9I7t.js.map +0 -1
  264. package/dist/cdn/chunks/src-CLoCCDfs.js.map +0 -1
  265. package/dist/cdn/chunks/src-Cxl-9O-L.js.map +0 -1
  266. package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +0 -1
  267. package/dist/check-JK8Uacq0.js +0 -7
  268. package/dist/chevron-down-a-fb_Ijn.js +0 -7
  269. package/dist/chevron-up-x4l0et_Y.js +0 -7
  270. package/dist/circle-alert-CJDW5LZo.js +0 -25
  271. package/dist/clock-BW6rXk2f.js +0 -12
  272. package/dist/createCloudRuntime-DbTFm1ES.js +0 -441
  273. package/dist/createLucideIcon-Bvw1Zx56.js +0 -43
  274. package/dist/dist-dNiknO7j.js +0 -251
  275. package/dist/dist-heatwAdo.js +0 -150
  276. package/dist/image-up-CuzFc1mu.js +0 -23
  277. package/dist/info-DybAwcA3.js +0 -19
  278. package/dist/loader-circle-t-SVgmJ3.js +0 -7
  279. package/dist/message-circle-DtwKrlhN.js +0 -7
  280. package/dist/pencil-2qhC-Y4q.js +0 -10
  281. package/dist/refresh-cw-C8SBuPdg.js +0 -29
  282. package/dist/send-BoqJliF6.js +0 -10
  283. package/dist/shield-check-D0dMaHtE.js +0 -10
  284. package/dist/sparkles-Dy2BJjiX.js +0 -23
  285. package/dist/text-align-start-DrxjxvIy.js +0 -43
  286. package/dist/trash-rYMzzHZd.js +0 -25
  287. package/dist/triangle-alert-DxnFj4-B.js +0 -17
  288. package/dist/upload-DZu1adQz.js +0 -17
  289. package/dist/useScrollToBlock-CdI8fGqt.js +0 -44
  290. package/dist/x-DJOd1hS4.js +0 -10
@@ -1,40 +1,40 @@
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-D9JUcKrV.js";
2
- import { c as re, s as m, t as ie } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
- import { t as ae } from "./dist-dNiknO7j.js";
4
- import { K as oe, U as se, u as ce } from "./keys-C3P1yxnr.js";
5
- import { t as le } from "./useI18n-CL6RfPzK.js";
6
- import { a as ue, i as h, n as de, r as g, t as fe } from "./usePopoverPosition-CWxaIWd3.js";
7
- import { t as _ } from "./x-DJOd1hS4.js";
8
- import { u as v } from "./styleConstants-C_YAPdQS.js";
1
+ import { A as e, At as t, B as n, M as r, S as i, Z as a, at as o, c as s, d as c, g as l, i as ee, kt as u, l as te, r as ne, s as d, u as f, v as p } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ import { c as re, s as m, t as ie } from "./runtime-dom.esm-bundler-PnoZU512.js";
3
+ import { t as ae } from "./dist-DBirAJIs.js";
4
+ import { W as oe, d as se, q as ce } from "./keys-DQA2i1k1.js";
5
+ import { t as le } from "./useI18n-BbdxxpOE.js";
6
+ import { a as ue, i as h, n as de, r as g, t as fe } from "./usePopoverPosition-CprM5p-c.js";
7
+ import { t as _ } from "./x-D_-42Ukq.js";
8
+ import { u as pe } from "./styleConstants-C_YAPdQS.js";
9
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;
10
+ var v = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, y = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
11
11
  360 / (Math.PI * 2);
12
- var x = (e) => k(S(e)), S = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
12
+ var b = (e) => O(x(e)), x = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
13
13
  r: parseInt(e[0] + e[0], 16),
14
14
  g: parseInt(e[1] + e[1], 16),
15
15
  b: parseInt(e[2] + e[2], 16),
16
- a: e.length === 4 ? b(parseInt(e[3] + e[3], 16) / 255, 2) : 1
16
+ a: e.length === 4 ? y(parseInt(e[3] + e[3], 16) / 255, 2) : 1
17
17
  } : {
18
18
  r: parseInt(e.substring(0, 2), 16),
19
19
  g: parseInt(e.substring(2, 4), 16),
20
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 }) => {
21
+ a: e.length === 8 ? y(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
22
+ }), S = (e) => D(T(e)), C = ({ h: e, s: t, v: n, a: r }) => {
23
23
  let i = (200 - t) * n / 100;
24
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)
25
+ h: y(e),
26
+ s: y(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
27
+ l: y(i / 2),
28
+ a: y(r, 2)
29
29
  };
30
- }, T = (e) => {
31
- let { h: t, s: n, l: r } = w(e);
30
+ }, w = (e) => {
31
+ let { h: t, s: n, l: r } = C(e);
32
32
  return `hsl(${t}, ${n}%, ${r}%)`;
33
- }, E = ({ h: e, s: t, v: n, a: r }) => {
33
+ }, T = ({ h: e, s: t, v: n, a: r }) => {
34
34
  e = e / 360 * 6, t /= 100, n /= 100;
35
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
36
  return {
37
- r: b([
37
+ r: y([
38
38
  n,
39
39
  o,
40
40
  a,
@@ -42,7 +42,7 @@ var x = (e) => k(S(e)), S = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
42
42
  s,
43
43
  n
44
44
  ][c] * 255),
45
- g: b([
45
+ g: y([
46
46
  s,
47
47
  n,
48
48
  n,
@@ -50,7 +50,7 @@ var x = (e) => k(S(e)), S = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
50
50
  a,
51
51
  a
52
52
  ][c] * 255),
53
- b: b([
53
+ b: y([
54
54
  a,
55
55
  a,
56
56
  s,
@@ -58,73 +58,73 @@ var x = (e) => k(S(e)), S = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
58
58
  n,
59
59
  o
60
60
  ][c] * 255),
61
- a: b(r, 2)
61
+ a: y(r, 2)
62
62
  };
63
- }, D = (e) => {
63
+ }, E = (e) => {
64
64
  let t = e.toString(16);
65
65
  return t.length < 2 ? "0" + t : t;
66
+ }, D = ({ r: e, g: t, b: n, a: r }) => {
67
+ let i = r < 1 ? E(y(r * 255)) : "";
68
+ return "#" + E(e) + E(t) + E(n) + i;
66
69
  }, 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
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
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),
72
+ h: y(60 * (o < 0 ? o + 6 : o)),
73
+ s: y(i ? a / i * 100 : 0),
74
+ v: y(i / 255 * 100),
75
75
  a: r
76
76
  };
77
- }, A = (e, t) => {
77
+ }, k = (e, t) => {
78
78
  if (e === t) return !0;
79
79
  for (let n in e) if (e[n] !== t[n]) return !1;
80
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) => {
81
+ }, A = (e, t) => e.toLowerCase() === t.toLowerCase() || k(x(e), x(t)), j = {}, M = (e) => {
82
+ let t = j[e];
83
+ return t || (t = document.createElement("template"), t.innerHTML = e, j[e] = t), t;
84
+ }, N = (e, t, n) => {
85
85
  e.dispatchEvent(new CustomEvent(t, {
86
86
  bubbles: !0,
87
87
  detail: n
88
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)
89
+ }, P = !1, F = (e) => "touches" in e, I = (e) => P && !F(e) ? !1 : (P ||= F(e), !0), L = (e, t) => {
90
+ let n = F(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
91
+ N(e.el, "move", e.getMove({
92
+ x: v((n.pageX - (r.left + window.pageXOffset)) / r.width),
93
+ y: v((n.pageY - (r.top + window.pageYOffset)) / r.height)
94
94
  }));
95
- }, z = (e, t) => {
95
+ }, R = (e, t) => {
96
96
  let n = t.keyCode;
97
- n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), P(e.el, "move", e.getMove({
97
+ n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), N(e.el, "move", e.getMove({
98
98
  x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
99
99
  y: n === 40 ? .01 : n === 38 ? -.01 : 0
100
100
  }, !0)));
101
- }, B = class {
101
+ }, z = class {
102
102
  constructor(e, t, n, r) {
103
- let i = N(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
103
+ let i = M(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
104
104
  e.appendChild(i.content.cloneNode(!0));
105
105
  let a = e.querySelector(`[part=${t}]`);
106
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
107
  }
108
108
  set dragging(e) {
109
109
  let t = e ? document.addEventListener : document.removeEventListener;
110
- t(F ? "touchmove" : "mousemove", this), t(F ? "touchend" : "mouseup", this);
110
+ t(P ? "touchmove" : "mousemove", this), t(P ? "touchend" : "mouseup", this);
111
111
  }
112
112
  handleEvent(e) {
113
113
  switch (e.type) {
114
114
  case "mousedown":
115
115
  case "touchstart":
116
- if (e.preventDefault(), !L(e) || !F && e.button != 0) return;
117
- this.el.focus(), R(this, e), this.dragging = !0;
116
+ if (e.preventDefault(), !I(e) || !P && e.button != 0) return;
117
+ this.el.focus(), L(this, e), this.dragging = !0;
118
118
  break;
119
119
  case "mousemove":
120
120
  case "touchmove":
121
- e.preventDefault(), R(this, e);
121
+ e.preventDefault(), L(this, e);
122
122
  break;
123
123
  case "mouseup":
124
124
  case "touchend":
125
125
  this.dragging = !1;
126
126
  break;
127
- case "keydown": z(this, e);
127
+ case "keydown": R(this, e);
128
128
  }
129
129
  }
130
130
  style(e) {
@@ -132,25 +132,25 @@ var x = (e) => k(S(e)), S = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
132
132
  for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
133
133
  });
134
134
  }
135
- }, V = class extends B {
135
+ }, B = class extends z {
136
136
  constructor(e) {
137
137
  super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
138
138
  }
139
139
  update({ h: e }) {
140
140
  this.h = e, this.style([{
141
141
  left: `${e / 360 * 100}%`,
142
- color: T({
142
+ color: w({
143
143
  h: e,
144
144
  s: 100,
145
145
  v: 100,
146
146
  a: 1
147
147
  })
148
- }]), this.el.setAttribute("aria-valuenow", `${b(e)}`);
148
+ }]), this.el.setAttribute("aria-valuenow", `${y(e)}`);
149
149
  }
150
150
  getMove(e, t) {
151
- return { h: t ? y(this.h + e.x * 360, 0, 360) : 360 * e.x };
151
+ return { h: t ? v(this.h + e.x * 360, 0, 360) : 360 * e.x };
152
152
  }
153
- }, H = class extends B {
153
+ }, V = class extends z {
154
154
  constructor(e) {
155
155
  super(e, "saturation", "aria-label=\"Color\"", !0);
156
156
  }
@@ -158,47 +158,47 @@ var x = (e) => k(S(e)), S = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
158
158
  this.hsva = e, this.style([{
159
159
  top: `${100 - e.v}%`,
160
160
  left: `${e.s}%`,
161
- color: T(e)
162
- }, { "background-color": T({
161
+ color: w(e)
162
+ }, { "background-color": w({
163
163
  h: e.h,
164
164
  s: 100,
165
165
  v: 100,
166
166
  a: 1
167
- }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${b(e.s)}%, Brightness ${b(e.v)}%`);
167
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${y(e.s)}%, Brightness ${y(e.v)}%`);
168
168
  }
169
169
  getMove(e, t) {
170
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)
171
+ s: t ? v(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
172
+ v: t ? v(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
173
173
  };
174
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 {
175
+ }, H = ":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)}", U = "[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}", W = "[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}", G = Symbol("same"), K = Symbol("color"), q = Symbol("hsva"), J = Symbol("update"), Y = Symbol("parts"), X = Symbol("css"), Z = Symbol("sliders"), me = class extends HTMLElement {
176
176
  static get observedAttributes() {
177
177
  return ["color"];
178
178
  }
179
- get [Z]() {
179
+ get [X]() {
180
180
  return [
181
+ H,
181
182
  U,
182
- W,
183
- G
183
+ W
184
184
  ];
185
185
  }
186
- get [Q]() {
187
- return [H, V];
186
+ get [Z]() {
187
+ return [V, B];
188
188
  }
189
189
  get color() {
190
- return this[q];
190
+ return this[K];
191
191
  }
192
192
  set color(e) {
193
- if (!this[K](e)) {
193
+ if (!this[G](e)) {
194
194
  let t = this.colorModel.toHsva(e);
195
- this[Y](t), this[q] = e;
195
+ this[J](t), this[K] = e;
196
196
  }
197
197
  }
198
198
  constructor() {
199
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));
200
+ let e = M(`<style>${this[X].join("")}</style>`), t = this.attachShadow({ mode: "open" });
201
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Y] = this[Z].map((e) => new e(t));
202
202
  }
203
203
  connectedCallback() {
204
204
  if (this.hasOwnProperty("color")) {
@@ -208,39 +208,39 @@ var x = (e) => k(S(e)), S = (e) => (e[0] === "#" && (e = e.substring(1)), e.leng
208
208
  }
209
209
  attributeChangedCallback(e, t, n) {
210
210
  let r = this.colorModel.fromAttr(n);
211
- this[K](r) || (this.color = r);
211
+ this[G](r) || (this.color = r);
212
212
  }
213
213
  handleEvent(e) {
214
- let t = this[J], n = {
214
+ let t = this[q], n = {
215
215
  ...t,
216
216
  ...e.detail
217
217
  };
218
- this[Y](n);
218
+ this[J](n);
219
219
  let r;
220
- !A(n, t) && !this[K](r = this.colorModel.fromHsva(n)) && (this[q] = r, P(this, "color-changed", { value: r }));
220
+ !k(n, t) && !this[G](r = this.colorModel.fromHsva(n)) && (this[K] = r, N(this, "color-changed", { value: r }));
221
221
  }
222
- [K](e) {
222
+ [G](e) {
223
223
  return this.color && this.colorModel.equal(e, this.color);
224
224
  }
225
- [Y](e) {
226
- this[J] = e, this[X].forEach((t) => t.update(e));
225
+ [J](e) {
226
+ this[q] = e, this[Y].forEach((t) => t.update(e));
227
227
  }
228
- }, $ = {
228
+ }, Q = {
229
229
  defaultColor: "#000",
230
- toHsva: x,
231
- fromHsva: ({ h: e, s: t, v: n }) => C({
230
+ toHsva: b,
231
+ fromHsva: ({ h: e, s: t, v: n }) => S({
232
232
  h: e,
233
233
  s: t,
234
234
  v: n,
235
235
  a: 1
236
236
  }),
237
- equal: j,
237
+ equal: A,
238
238
  fromAttr: (e) => e
239
- }, me = class extends pe {
239
+ }, $ = class extends me {
240
240
  get colorModel() {
241
- return $;
241
+ return Q;
242
242
  }
243
- }, he = class extends me {};
243
+ }, he = class extends $ {};
244
244
  customElements.define("hex-color-picker", he);
245
245
  //#endregion
246
246
  //#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
@@ -299,34 +299,34 @@ var ge = [
299
299
  }
300
300
  },
301
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;
302
+ setup(p, { emit: v }) {
303
+ let y = p, b = v, { t: x } = le(), S = a(!1), C = a(), w = a(), T = a(!1);
304
+ ae(C, () => {
305
+ S.value = !1;
306
+ }, { ignore: [w] });
307
+ let E = d(() => !y.modelValue), D = d(() => h(y.modelValue)), O = d(() => h(y.modelValue || y.seedColor)), k = d(() => !y.disabled && !E.value), A = i(se, ue), j = d(() => [...new Set(y.presets ?? A.presets)]), M = d(() => y.allowCustom ?? A.allowCustom), N = d(() => j.value.length > 0), P = d(() => M.value || !N.value), F = d(() => g(y.modelValue));
308
+ function I(e) {
309
+ return F.value !== "" && g(e) === F.value;
310
310
  }
311
- function R(e) {
312
- x("update:modelValue", e);
311
+ function L(e) {
312
+ b("update:modelValue", e);
313
313
  }
314
- let z = d(() => P.value && !F.value);
315
- function B(e) {
316
- return z.value ? e + 1 : e;
314
+ let R = d(() => N.value && !P.value);
315
+ function z(e) {
316
+ return R.value ? e + 1 : e;
317
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);
318
+ let B = d(() => {
319
+ if (R.value && E.value) return 0;
320
+ let e = j.value.findIndex((e) => I(e));
321
+ return e === -1 ? 0 : z(e);
322
322
  });
323
- function H() {
324
- return V.value === 0 ? 0 : -1;
323
+ function V() {
324
+ return B.value === 0 ? 0 : -1;
325
325
  }
326
- function U(e) {
327
- return B(e) === V.value ? 0 : -1;
326
+ function H(e) {
327
+ return z(e) === B.value ? 0 : -1;
328
328
  }
329
- function W(e) {
329
+ function U(e) {
330
330
  if (![
331
331
  "ArrowRight",
332
332
  "ArrowDown",
@@ -336,84 +336,84 @@ var ge = [
336
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
337
  i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
338
338
  }
339
- function G(e) {
340
- E.value = !0, x("update:modelValue", e.detail.value);
339
+ function W(e) {
340
+ T.value = !0, b("update:modelValue", e.detail.value);
341
341
  }
342
- function K() {
343
- E.value = !1;
342
+ function G() {
343
+ T.value = !1;
344
344
  }
345
- function q() {
346
- !E.value && D.value && x("update:modelValue", k.value);
345
+ function K() {
346
+ !T.value && E.value && b("update:modelValue", O.value);
347
347
  }
348
- function J(e) {
349
- x("update:modelValue", e.target.value);
348
+ function q(e) {
349
+ b("update:modelValue", e.target.value);
350
350
  }
351
- function Y() {
352
- x("update:modelValue", "");
351
+ function J() {
352
+ b("update:modelValue", "");
353
353
  }
354
- let X = de(), { toLocal: Z } = fe(), Q = n(se, null), pe = n(oe, null), $ = r({
354
+ let Y = de(), { toLocal: X } = fe(), Z = i(oe, null), me = i(ce, null), Q = a({
355
355
  top: 0,
356
356
  left: 0
357
357
  });
358
- function me() {
359
- if (!b.disabled) {
360
- if (!C.value) {
361
- let e = T.value?.getBoundingClientRect();
358
+ function $() {
359
+ if (!y.disabled) {
360
+ if (!S.value) {
361
+ let e = w.value?.getBoundingClientRect();
362
362
  if (e) {
363
363
  let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
364
- $.value = Z({
364
+ Q.value = X({
365
365
  top: t,
366
366
  left: e.left
367
367
  });
368
368
  }
369
369
  }
370
- C.value = !C.value;
370
+ S.value = !S.value;
371
371
  }
372
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", {
373
+ return (i, a) => (e(), c("div", { class: u(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", p.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
374
+ s("button", {
375
375
  ref_key: "swatchRef",
376
- ref: T,
376
+ ref: w,
377
377
  type: "button",
378
378
  disabled: p.disabled,
379
- "aria-label": p.ariaLabel || u(S).colorPicker.pickColor,
379
+ "aria-label": p.ariaLabel || o(x).colorPicker.pickColor,
380
380
  title: p.ariaLabel || void 0,
381
- "aria-expanded": C.value,
382
- class: e([
381
+ "aria-expanded": S.value,
382
+ class: u([
383
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
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)]",
385
+ S.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !p.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
386
386
  p.size === "sm" ? "tpl:size-8" : "tpl:size-10"
387
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 })
388
+ onClick: $
389
+ }, [s("span", {
390
+ class: u(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": E.value }]),
391
+ style: t(E.value ? void 0 : { backgroundColor: D.value })
392
392
  }, null, 6)], 10, ge),
393
- !p.swatchOnly && F.value ? (l(), a("div", _e, [i("input", {
393
+ !p.swatchOnly && P.value ? (e(), c("div", _e, [s("input", {
394
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,
395
+ class: u([o(pe), "tpl:w-full"]),
396
+ style: t(k.value ? { paddingRight: "2.25rem" } : void 0),
397
+ value: D.value,
398
+ placeholder: p.placeholder || o(x).colorPicker.notSet,
399
399
  disabled: p.disabled,
400
- "aria-label": u(S).colorPicker.hexValue,
401
- onInput: J
402
- }, null, 46, ve), A.value ? (l(), a("button", {
400
+ "aria-label": o(x).colorPicker.hexValue,
401
+ onInput: q
402
+ }, null, 46, ve), k.value ? (e(), c("button", {
403
403
  key: 0,
404
404
  type: "button",
405
- "aria-label": u(S).colorPicker.clear,
406
- title: u(S).colorPicker.clear,
405
+ "aria-label": o(x).colorPicker.clear,
406
+ title: o(x).colorPicker.clear,
407
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(_), {
408
+ onClick: J
409
+ }, [l(o(_), {
410
410
  size: 14,
411
411
  "stroke-width": 1.5
412
412
  })], 8, ye)) : f("", !0)])) : f("", !0),
413
- (l(), ee(s, {
414
- to: u(X),
415
- disabled: !u(X)
416
- }, [o(ie, {
413
+ (e(), te(ee, {
414
+ to: o(Y),
415
+ disabled: !o(Y)
416
+ }, [l(ie, {
417
417
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
418
418
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
419
419
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -421,73 +421,73 @@ var ge = [
421
421
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
422
422
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
423
423
  }, {
424
- default: ne(() => [C.value ? (l(), a("div", {
424
+ default: n(() => [S.value ? (e(), c("div", {
425
425
  key: 0,
426
426
  ref_key: "popoverRef",
427
- ref: w,
428
- "data-tpl-theme": u(pe),
427
+ ref: C,
428
+ "data-tpl-theme": o(me),
429
429
  class: "tpl-color-popover tpl:absolute 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
430
  style: t({
431
- top: `${$.value.top}px`,
432
- left: `${$.value.left}px`,
433
- ...u(Q)
431
+ top: `${Q.value.top}px`,
432
+ left: `${Q.value.left}px`,
433
+ ...o(Z)
434
434
  })
435
435
  }, [
436
- P.value ? (l(), a("div", {
436
+ N.value ? (e(), c("div", {
437
437
  key: 0,
438
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", {
439
+ "aria-label": o(x).colorPicker.presetColors,
440
+ class: u(["tpl:flex tpl:flex-wrap tpl:gap-1.5", P.value && "tpl:mb-2"]),
441
+ onKeydown: U
442
+ }, [R.value ? (e(), c("button", {
443
443
  key: 0,
444
444
  type: "button",
445
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", {
446
+ "aria-label": o(x).colorPicker.clear,
447
+ title: o(x).colorPicker.clear,
448
+ "aria-checked": E.value,
449
+ tabindex: V(),
450
+ class: u(["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)]", E.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: J
452
+ }, null, 10, Se)) : f("", !0), (e(!0), c(ne, null, r(j.value, (n, r) => (e(), c("button", {
453
453
  key: n,
454
454
  type: "button",
455
455
  role: "radio",
456
456
  "aria-label": n,
457
457
  title: n,
458
- "aria-checked": L(n),
459
- tabindex: U(r),
458
+ "aria-checked": I(n),
459
+ tabindex: H(r),
460
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)
461
+ class: u(["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)]", I(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) => L(n)
463
463
  }, null, 14, Ce))), 128))], 42, xe)) : f("", !0),
464
- F.value ? (l(), a("hex-color-picker", {
464
+ P.value ? (e(), c("hex-color-picker", {
465
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"])
466
+ color: O.value,
467
+ "aria-label": o(x).colorPicker.pickColor,
468
+ onColorChanged: W,
469
+ onPointerdown: G,
470
+ onPointerup: K,
471
+ onKeydown: a[0] ||= m((e) => S.value = !1, ["escape"])
472
472
  }, null, 40, we)) : f("", !0),
473
- p.swatchOnly && F.value ? (l(), a("div", Te, [i("input", {
473
+ p.swatchOnly && P.value ? (e(), c("div", Te, [s("input", {
474
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,
475
+ class: u([o(pe), "tpl:w-full"]),
476
+ style: t(k.value ? { paddingRight: "2.25rem" } : void 0),
477
+ value: D.value,
478
+ placeholder: p.placeholder || o(x).colorPicker.notSet,
479
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", {
480
+ "aria-label": o(x).colorPicker.hexValue,
481
+ onChange: q,
482
+ onKeydown: a[1] ||= m(re((e) => e.target.blur(), ["prevent"]), ["enter"])
483
+ }, null, 46, Ee), k.value ? (e(), c("button", {
484
484
  key: 0,
485
485
  type: "button",
486
- "aria-label": u(S).colorPicker.clear,
487
- title: u(S).colorPicker.clear,
486
+ "aria-label": o(x).colorPicker.clear,
487
+ title: o(x).colorPicker.clear,
488
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(_), {
489
+ onClick: J
490
+ }, [l(o(_), {
491
491
  size: 14,
492
492
  "stroke-width": 1.5
493
493
  })], 8, De)) : f("", !0)])) : f("", !0)