@templatical/editor 0.40.0 → 0.42.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 (195) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-a8TPBAl2.js → AiChatSidebar-DqSoJAXx.js} +1 -1
  3. package/dist/{AiFeatureMenu-CbgDjLqk.js → AiFeatureMenu-CoBvE72q.js} +1 -1
  4. package/dist/{BlockPreviewCanvas-XNV83YGg.js → BlockPreviewCanvas-W6-MRpWz.js} +33 -33
  5. package/dist/{CloudHeaderExtras-C-tbLyfE.js → CloudHeaderExtras-AbsNuL9T.js} +1 -1
  6. package/dist/{CloudPanels-DnWDrgnQ.js → CloudPanels-BNL6rSeB.js} +2 -2
  7. package/dist/{CollaboratorBar-DUmeCkyD.js → CollaboratorBar-DlZ-wOL_.js} +1 -1
  8. package/dist/{CountdownToolbar-DkC-qSgq.js → CountdownToolbar-Bnq25sR-.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-OoiYJAKS.js → DesignReferenceSidebar-Cl5eE8Kn.js} +1 -1
  10. package/dist/{LogicTagInsertButton-BimKobaG.js → LogicTagInsertButton-SI6irEtn.js} +243 -219
  11. package/dist/{MediaEditModal-BFWmufJK.js → MediaEditModal-C-InB-H2.js} +1 -1
  12. package/dist/{MediaPanels-BmDda5rY.js → MediaPanels-CTosUpeo.js} +1 -1
  13. package/dist/{MergeTagInput-DqpVzhy7.js → MergeTagInput-BMQGNh1k.js} +1 -1
  14. package/dist/{MergeTagModeToggle-BkIiAgpQ.js → MergeTagModeToggle-Cm9s-w6o.js} +1 -1
  15. package/dist/{ParagraphEditor-D67Cqh-T.js → ParagraphEditor-CnBPQCVo.js} +19 -19
  16. package/dist/{RestoreVersionDialog-BaKDuPCX.js → RestoreVersionDialog-B13whpxH.js} +1 -1
  17. package/dist/{RichTextEditorContent-AEtfKvLz.js → RichTextEditorContent-DOvhgc-7.js} +3 -3
  18. package/dist/{SaveBlockDialog-BxkI52fN.js → SaveBlockDialog-b5yrQfoN.js} +5 -5
  19. package/dist/{SavedBlocksBrowserModal-C4_25Kvn.js → SavedBlocksBrowserModal-DpqK4Zqp.js} +4 -4
  20. package/dist/{SavedBlocksPanels-DQ0w9G1O.js → SavedBlocksPanels-C2wURIlT.js} +1 -1
  21. package/dist/{SavedBlocksPickBar-CtH-sfxh.js → SavedBlocksPickBar-Bx9_SXVA.js} +1 -1
  22. package/dist/{TemplateSettings-BD1WNP4C.js → TemplateSettings-Gn9ps1R6.js} +3 -3
  23. package/dist/{TestEmailModal-DZi58FU9.js → TestEmailModal-DaIaklcg.js} +5 -5
  24. package/dist/{TestEmailPanel-D__9Wvgz.js → TestEmailPanel-CKSvzakC.js} +1 -1
  25. package/dist/{TitleEditor-v5p89Djs.js → TitleEditor-C66Jk73n.js} +7 -7
  26. package/dist/{ToggleSwitch-CJfQ8u57.js → ToggleSwitch-BqttX9lY.js} +1 -1
  27. package/dist/{Toolbar-C7SjilzH.js → Toolbar-DVsKYQaC.js} +846 -553
  28. package/dist/{TplModal-B8uLyoXE.js → TplModal-DRQln7xH.js} +2 -2
  29. package/dist/{VersionHistoryPanels-DfNrRT6y.js → VersionHistoryPanels-Df5WjNah.js} +1 -1
  30. package/dist/{WrapperBlock-yGmKw0T-.js → WrapperBlock-B0cUORGz.js} +4 -4
  31. package/dist/{blockTypeIcons-B0Bq1WT1.js → blockTypeIcons-DfQNZnl7.js} +1 -1
  32. package/dist/bundle-stats.json +7 -7
  33. package/dist/{ca-Ckgw9yd0.js → ca--zGWn9AU.js} +14 -0
  34. package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js → AiChatSidebar-DD17BwXn.js} +10 -10
  35. package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js.map → AiChatSidebar-DD17BwXn.js.map} +1 -1
  36. package/dist/cdn/chunks/{AiFeatureMenu-23HCL517.js → AiFeatureMenu-Di381OsL.js} +5 -5
  37. package/dist/cdn/chunks/{AiFeatureMenu-23HCL517.js.map → AiFeatureMenu-Di381OsL.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js → BlockIssueBadge-BR_N3nRh.js} +2 -2
  39. package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js.map → BlockIssueBadge-BR_N3nRh.js.map} +1 -1
  40. package/dist/cdn/chunks/{BlockPreviewCanvas-DObWyQfh.js → BlockPreviewCanvas-BXpcAiiY.js} +28 -28
  41. package/dist/cdn/chunks/{BlockPreviewCanvas-DObWyQfh.js.map → BlockPreviewCanvas-BXpcAiiY.js.map} +1 -1
  42. package/dist/cdn/chunks/{CloudHeaderExtras-DOB_uWpt.js → CloudHeaderExtras-BEM2eWfF.js} +3 -3
  43. package/dist/cdn/chunks/{CloudHeaderExtras-DOB_uWpt.js.map → CloudHeaderExtras-BEM2eWfF.js.map} +1 -1
  44. package/dist/cdn/chunks/{CloudPanels-DcAn5QW7.js → CloudPanels-D7nK1-bm.js} +4 -4
  45. package/dist/cdn/chunks/{CloudPanels-DcAn5QW7.js.map → CloudPanels-D7nK1-bm.js.map} +1 -1
  46. package/dist/cdn/chunks/{CollaboratorBar-C0M8c2Vv.js → CollaboratorBar-D1SUwahw.js} +3 -3
  47. package/dist/cdn/chunks/{CollaboratorBar-C0M8c2Vv.js.map → CollaboratorBar-D1SUwahw.js.map} +1 -1
  48. package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js → CommentsPanel-qsLMAlJU.js} +2 -2
  49. package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js.map → CommentsPanel-qsLMAlJU.js.map} +1 -1
  50. package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js → CommentsSidebar-CTwEE-s_.js} +16 -16
  51. package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js.map → CommentsSidebar-CTwEE-s_.js.map} +1 -1
  52. package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js → CountdownToolbar-BJTcnIQ-.js} +4 -4
  53. package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js.map → CountdownToolbar-BJTcnIQ-.js.map} +1 -1
  54. package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js → DesignReferenceSidebar-Dl3eEGtS.js} +9 -9
  55. package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js.map → DesignReferenceSidebar-Dl3eEGtS.js.map} +1 -1
  56. package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js → IssuesPanel-L9Gq_T8n.js} +8 -8
  57. package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js.map → IssuesPanel-L9Gq_T8n.js.map} +1 -1
  58. package/dist/cdn/chunks/{LogicTagInsertButton-CHc1yZ9v.js → LogicTagInsertButton-3pIbVE9p.js} +250 -226
  59. package/dist/cdn/chunks/LogicTagInsertButton-3pIbVE9p.js.map +1 -0
  60. package/dist/cdn/chunks/{MediaEditModal-CZBZviu2.js → MediaEditModal-rTjYl-fV.js} +2 -2
  61. package/dist/cdn/chunks/{MediaEditModal-CZBZviu2.js.map → MediaEditModal-rTjYl-fV.js.map} +1 -1
  62. package/dist/cdn/chunks/{MediaPanels-Bq5b-XJM.js → MediaPanels-DMXRQVqg.js} +2 -2
  63. package/dist/cdn/chunks/{MediaPanels-Bq5b-XJM.js.map → MediaPanels-DMXRQVqg.js.map} +1 -1
  64. package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js → MergeTagInput-JcBzr77a.js} +2 -2
  65. package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js.map → MergeTagInput-JcBzr77a.js.map} +1 -1
  66. package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js → MergeTagModeToggle-CYmueXS2.js} +10 -10
  67. package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js.map → MergeTagModeToggle-CYmueXS2.js.map} +1 -1
  68. package/dist/cdn/chunks/{ParagraphEditor-BilbVtrG.js → ParagraphEditor-DbjFDnYm.js} +39 -39
  69. package/dist/cdn/chunks/{ParagraphEditor-BilbVtrG.js.map → ParagraphEditor-DbjFDnYm.js.map} +1 -1
  70. package/dist/cdn/chunks/{RestoreVersionDialog-Q-a44Vjv.js → RestoreVersionDialog-pANCWcce.js} +3 -3
  71. package/dist/cdn/chunks/{RestoreVersionDialog-Q-a44Vjv.js.map → RestoreVersionDialog-pANCWcce.js.map} +1 -1
  72. package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js → RichTextEditorContent-BtM1or8A.js} +5 -5
  73. package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js.map → RichTextEditorContent-BtM1or8A.js.map} +1 -1
  74. package/dist/cdn/chunks/{SaveBlockDialog-DeW_M6kh.js → SaveBlockDialog-CGM3mrGj.js} +38 -38
  75. package/dist/cdn/chunks/{SaveBlockDialog-DeW_M6kh.js.map → SaveBlockDialog-CGM3mrGj.js.map} +1 -1
  76. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BzQWibKG.js → SavedBlocksBrowserModal-C6Z8AvtD.js} +10 -10
  77. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BzQWibKG.js.map → SavedBlocksBrowserModal-C6Z8AvtD.js.map} +1 -1
  78. package/dist/cdn/chunks/{SavedBlocksPanels-Ce1RePjk.js → SavedBlocksPanels-DNwKmnhp.js} +2 -2
  79. package/dist/cdn/chunks/{SavedBlocksPanels-Ce1RePjk.js.map → SavedBlocksPanels-DNwKmnhp.js.map} +1 -1
  80. package/dist/cdn/chunks/{SavedBlocksPickBar-DIDl6xfy.js → SavedBlocksPickBar-D2p1ufB4.js} +3 -3
  81. package/dist/cdn/chunks/{SavedBlocksPickBar-DIDl6xfy.js.map → SavedBlocksPickBar-D2p1ufB4.js.map} +1 -1
  82. package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js → TemplateScoringPanel-BDB4RErx.js} +19 -19
  83. package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js.map → TemplateScoringPanel-BDB4RErx.js.map} +1 -1
  84. package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js → TemplateSettings-DVN1t3yF.js} +9 -9
  85. package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js.map → TemplateSettings-DVN1t3yF.js.map} +1 -1
  86. package/dist/cdn/chunks/{TestEmailModal-CWTmaJuT.js → TestEmailModal-DZBCmBtT.js} +7 -7
  87. package/dist/cdn/chunks/{TestEmailModal-CWTmaJuT.js.map → TestEmailModal-DZBCmBtT.js.map} +1 -1
  88. package/dist/cdn/chunks/{TestEmailPanel-BdYsVHXA.js → TestEmailPanel-1ibwYCUl.js} +2 -2
  89. package/dist/cdn/chunks/{TestEmailPanel-BdYsVHXA.js.map → TestEmailPanel-1ibwYCUl.js.map} +1 -1
  90. package/dist/cdn/chunks/{TitleEditor-pJeeZ-PX.js → TitleEditor-BRl2qKbd.js} +13 -13
  91. package/dist/cdn/chunks/{TitleEditor-pJeeZ-PX.js.map → TitleEditor-BRl2qKbd.js.map} +1 -1
  92. package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js → ToggleSwitch-niSL2uog.js} +2 -2
  93. package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js.map → ToggleSwitch-niSL2uog.js.map} +1 -1
  94. package/dist/cdn/chunks/{Toolbar-BsiHW9gY.js → Toolbar-tTl0P-rr.js} +814 -566
  95. package/dist/cdn/chunks/Toolbar-tTl0P-rr.js.map +1 -0
  96. package/dist/cdn/chunks/{TplModal-CEuGD7pt.js → TplModal-C_eIPykE.js} +3 -3
  97. package/dist/cdn/chunks/{TplModal-CEuGD7pt.js.map → TplModal-C_eIPykE.js.map} +1 -1
  98. package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js → VersionHistoryMenu-Ww57XAzj.js} +7 -7
  99. package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js.map → VersionHistoryMenu-Ww57XAzj.js.map} +1 -1
  100. package/dist/cdn/chunks/{VersionHistoryPanels-C1yck5gT.js → VersionHistoryPanels-w0EG_qVW.js} +2 -2
  101. package/dist/cdn/chunks/{VersionHistoryPanels-C1yck5gT.js.map → VersionHistoryPanels-w0EG_qVW.js.map} +1 -1
  102. package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js → VersionPreviewBanner-Bbd4C-AN.js} +2 -2
  103. package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js.map → VersionPreviewBanner-Bbd4C-AN.js.map} +1 -1
  104. package/dist/cdn/chunks/{WrapperBlock-DGkbmj06.js → WrapperBlock-Ch4KeMIb.js} +4 -4
  105. package/dist/cdn/chunks/{WrapperBlock-DGkbmj06.js.map → WrapperBlock-Ch4KeMIb.js.map} +1 -1
  106. package/dist/cdn/chunks/blockTypeIcons-CyPXFh7L.js +21 -0
  107. package/dist/cdn/chunks/{blockTypeIcons-raBjStuv.js.map → blockTypeIcons-CyPXFh7L.js.map} +1 -1
  108. package/dist/cdn/chunks/{ca-Ckgw9yd0.js → ca--zGWn9AU.js} +15 -1
  109. package/dist/cdn/chunks/ca--zGWn9AU.js.map +1 -0
  110. package/dist/cdn/chunks/{cloud-CIT4yPp4.js → cloud-De-eh1u6.js} +2 -2
  111. package/dist/cdn/chunks/{cloud-CIT4yPp4.js.map → cloud-De-eh1u6.js.map} +1 -1
  112. package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js → createCloudRuntime-DsaUaWvr.js} +3 -3
  113. package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js.map → createCloudRuntime-DsaUaWvr.js.map} +1 -1
  114. package/dist/cdn/chunks/{de-D4dweQw8.js → de-BRNLKcDl.js} +15 -1
  115. package/dist/cdn/chunks/de-BRNLKcDl.js.map +1 -0
  116. package/dist/cdn/chunks/{editor-modal-zxvWz8R6.js → editor-modal-BdI0iA5r.js} +89 -88
  117. package/dist/cdn/chunks/{editor-modal-zxvWz8R6.js.map → editor-modal-BdI0iA5r.js.map} +1 -1
  118. package/dist/cdn/chunks/en-Cs-nw16K.js +2 -0
  119. package/dist/{en-VE7R7NyL.js → cdn/chunks/en-JJjqHMjy.js} +16 -0
  120. package/dist/cdn/chunks/en-JJjqHMjy.js.map +1 -0
  121. package/dist/cdn/chunks/{es-B9OhP8H3.js → es-BIh8BxV9.js} +15 -1
  122. package/dist/cdn/chunks/es-BIh8BxV9.js.map +1 -0
  123. package/dist/cdn/chunks/{extensions-CafoGF65.js → extensions-DK_9-6Bd.js} +4 -4
  124. package/dist/cdn/chunks/{extensions-CafoGF65.js.map → extensions-DK_9-6Bd.js.map} +1 -1
  125. package/dist/{fr-wrXhIi00.js → cdn/chunks/fr-C5VUZogP.js} +16 -0
  126. package/dist/cdn/chunks/fr-C5VUZogP.js.map +1 -0
  127. package/dist/cdn/chunks/{icons-BKkJ-5xF.js → icons-Bad3WZ3G.js} +49 -8
  128. package/dist/cdn/chunks/icons-Bad3WZ3G.js.map +1 -0
  129. package/dist/cdn/chunks/ja-DhlWUfke.js +94 -0
  130. package/dist/cdn/chunks/ja-DhlWUfke.js.map +1 -0
  131. package/dist/cdn/chunks/ja-x5JYxaCW.js +639 -0
  132. package/dist/cdn/chunks/ja-x5JYxaCW.js.map +1 -0
  133. package/dist/cdn/chunks/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +15 -1
  134. package/dist/cdn/chunks/{nl-DeFatKJe.js.map → nl-UXxFyXV6.js.map} +1 -1
  135. package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js → preRenderCustomBlocks-h4ZFBKbD.js} +2 -2
  136. package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js.map → preRenderCustomBlocks-h4ZFBKbD.js.map} +1 -1
  137. package/dist/cdn/chunks/{pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +15 -1
  138. package/dist/cdn/chunks/pt-BR-DHm3SP6W.js.map +1 -0
  139. package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js → socialIcons-ZOCwCCyn.js} +3 -3
  140. package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js.map → socialIcons-ZOCwCCyn.js.map} +1 -1
  141. package/dist/cdn/chunks/{src-DveVYoWS.js → src-BR3I3gOW.js} +265 -224
  142. package/dist/cdn/chunks/src-BR3I3gOW.js.map +1 -0
  143. package/dist/cdn/chunks/{src-CbGCES0u.js → src-BxoLKnkl.js} +178 -165
  144. package/dist/cdn/chunks/src-BxoLKnkl.js.map +1 -0
  145. package/dist/cdn/chunks/{src-Cnc5E71L.js → src-fZSLjhjy.js} +12 -12
  146. package/dist/cdn/chunks/{src-Cnc5E71L.js.map → src-fZSLjhjy.js.map} +1 -1
  147. package/dist/cdn/chunks/{useEditorCore-CQraU2s_.js → useEditorCore-yd40TFKy.js} +467 -446
  148. package/dist/cdn/chunks/useEditorCore-yd40TFKy.js.map +1 -0
  149. package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js → useLogicTag-J_i_hvZg.js} +2 -2
  150. package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js.map → useLogicTag-J_i_hvZg.js.map} +1 -1
  151. package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js → useMergeTag-C5MyHYxJ.js} +2 -2
  152. package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js.map → useMergeTag-C5MyHYxJ.js.map} +1 -1
  153. package/dist/cdn/chunks/{usePopoverPosition-BJRvAb-h.js → usePopoverPosition-DGXjXKjM.js} +25 -12
  154. package/dist/cdn/chunks/usePopoverPosition-DGXjXKjM.js.map +1 -0
  155. package/dist/cdn/editor.css +1 -1
  156. package/dist/cdn/editor.js +64 -64
  157. package/dist/{cloud-DsqqUfzh.js → cloud-AO_X8T9g.js} +1 -1
  158. package/dist/{createCloudRuntime-iLflkYzP.js → createCloudRuntime-D641nhri.js} +2 -2
  159. package/dist/{de-D4dweQw8.js → de-BRNLKcDl.js} +14 -0
  160. package/dist/{dist-DbUZvK04.js → dist-iLUVPysa.js} +263 -222
  161. package/dist/{editor-modal-Czq1I8oC.js → editor-modal-qzmEVcIk.js} +3 -2
  162. package/dist/en-1tgLzB8q.js +2 -0
  163. package/dist/{cdn/chunks/en-VE7R7NyL.js → en-JJjqHMjy.js} +14 -2
  164. package/dist/{es-B9OhP8H3.js → es-BIh8BxV9.js} +14 -0
  165. package/dist/{extensions-DDhjuVKy.js → extensions-DoT2-_pz.js} +11 -11
  166. package/dist/{cdn/chunks/fr-wrXhIi00.js → fr-C5VUZogP.js} +14 -2
  167. package/dist/ja-DhlWUfke.js +92 -0
  168. package/dist/ja-x5JYxaCW.js +637 -0
  169. package/dist/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +14 -0
  170. package/dist/{preRenderCustomBlocks-BBSqQgke.js → preRenderCustomBlocks-CTstI3Q-.js} +4 -4
  171. package/dist/{pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +14 -0
  172. package/dist/{socialIcons-O7PZCW2P.js → socialIcons-CACVa6m_.js} +46 -46
  173. package/dist/style.css +1 -1
  174. package/dist/templatical-editor.js +109 -109
  175. package/dist/{useEditorCore-Dt_VWNqX.js → useEditorCore-LyNoGs0m.js} +902 -881
  176. package/dist/{useLogicTag-D9pvgxQR.js → useLogicTag-BaH8gey0.js} +1 -1
  177. package/dist/{useMergeTag-BaVFPdlq.js → useMergeTag-Cyad1yBE.js} +1 -1
  178. package/dist/{usePopoverPosition-DH7z3Ghm.js → usePopoverPosition-BYmd-lhR.js} +24 -11
  179. package/package.json +8 -8
  180. package/dist/cdn/chunks/LogicTagInsertButton-CHc1yZ9v.js.map +0 -1
  181. package/dist/cdn/chunks/Toolbar-BsiHW9gY.js.map +0 -1
  182. package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js +0 -21
  183. package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +0 -1
  184. package/dist/cdn/chunks/de-D4dweQw8.js.map +0 -1
  185. package/dist/cdn/chunks/en-BcQ9ovQu.js +0 -2
  186. package/dist/cdn/chunks/en-VE7R7NyL.js.map +0 -1
  187. package/dist/cdn/chunks/es-B9OhP8H3.js.map +0 -1
  188. package/dist/cdn/chunks/fr-wrXhIi00.js.map +0 -1
  189. package/dist/cdn/chunks/icons-BKkJ-5xF.js.map +0 -1
  190. package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +0 -1
  191. package/dist/cdn/chunks/src-CbGCES0u.js.map +0 -1
  192. package/dist/cdn/chunks/src-DveVYoWS.js.map +0 -1
  193. package/dist/cdn/chunks/useEditorCore-CQraU2s_.js.map +0 -1
  194. package/dist/cdn/chunks/usePopoverPosition-BJRvAb-h.js.map +0 -1
  195. package/dist/en-DQqmtndQ.js +0 -2
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePopoverPosition-BJRvAb-h.js","names":[],"sources":["../../../src/utils/resolveColorsConfig.ts","../../../src/utils/color.ts","../../../src/composables/usePopoverRoot.ts","../../../src/composables/usePopoverPosition.ts"],"sourcesContent":["import type { ColorsConfig } from \"@templatical/types\";\n\n/**\n * Normalized color-picker configuration handed to the provide/inject layer and\n * to `ColorPicker`. `presets` defaults to an empty array and `allowCustom` to\n * `true`, so consumers never branch on `undefined`.\n *\n * `allowCustomIgnored` is a validation signal, not a rendered value: it is\n * `true` when `allowCustom: false` was requested but forced back to `true`\n * because there were no presets to fall back on. This util stays pure — it\n * never logs; the consumer that owns the config surface emits the warning\n * (today that is `useEditorCore` for the editor-level config), the same split\n * `resolvePaletteBlocks` / `Sidebar.vue` use.\n */\nexport interface ResolvedColors {\n presets: string[];\n allowCustom: boolean;\n allowCustomIgnored: boolean;\n /**\n * Preset entries dropped because they are not a valid `#rgb` / `#rrggbb` hex\n * string (see the validity rule on {@link resolveColorsConfig}). Collected —\n * not logged — so the config-owning consumer can warn once listing them,\n * exactly as `allowCustomIgnored` is surfaced. Reflects THIS resolution's\n * `colors.presets` input only: when a `fallback`'s already-resolved (already\n * filtered) presets are inherited, its invalids are never re-reported here.\n */\n invalidPresets: string[];\n}\n\n/**\n * The unconfigured baseline: no presets, free-form entry allowed — i.e. the\n * picker behaves exactly as it did before the `colors` option existed. Used as\n * the inject default and as the fallback for the top-level resolution.\n */\nexport const DEFAULT_RESOLVED_COLORS: ResolvedColors = {\n presets: [],\n allowCustom: true,\n allowCustomIgnored: false,\n invalidPresets: [],\n};\n\n/**\n * A valid preset is a `#rgb` or `#rrggbb` hex string. 4-/8-digit alpha hex is\n * deliberately rejected: the wheel (vanilla-colorful) is RGB-only,\n * `normalizeColorToHex` drops alpha on the DOM round-trip so a selected alpha\n * preset would never read back as selected, and alpha degrades unpredictably\n * across email clients.\n */\nconst VALID_PRESET_HEX = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;\n\n/**\n * Resolve a `ColorsConfig` against an already-resolved `fallback`, applying\n * precedence per property (`input` → `fallback` → default) plus the shared\n * validation rule.\n *\n * The editor-level call passes no `fallback` (it defaults to\n * {@link DEFAULT_RESOLVED_COLORS}) and its result is provided via `COLORS_KEY`.\n * The `fallback` parameter is the nested-resolution seam: a narrower config can\n * be resolved against a broader already-resolved one, inheriting whichever\n * property it does not set.\n *\n * Validation: entries in `colors.presets` that aren't valid hex\n * ({@link VALID_PRESET_HEX}) are dropped from `presets` and collected into\n * `invalidPresets` for the caller to warn about. Separately, `allowCustom:\n * false` with no presets anywhere in the chain is ignored — forced back to\n * `true`, with `allowCustomIgnored` set so the caller can warn — because\n * hiding the wheel and hex input without a preset grid would leave the picker\n * unable to set a color. Filtering runs BEFORE that guard, so an all-invalid\n * list with `allowCustom: false` cascades into the forced-true path. This\n * mirrors how `paletteBlocks` is resolved: `resolvePaletteBlocks` collects the\n * offending entries and the consumer warns; this util stays pure the same way.\n */\nexport function resolveColorsConfig(\n colors: ColorsConfig | undefined,\n fallback: ResolvedColors = DEFAULT_RESOLVED_COLORS,\n): ResolvedColors {\n // Validate only presets this resolution actually supplies. When it inherits\n // `fallback.presets`, those were already resolved (already filtered), so\n // re-validating would double-report an upstream invalid entry.\n let presets: string[];\n let invalidPresets: string[];\n if (colors?.presets === undefined) {\n presets = fallback.presets;\n invalidPresets = [];\n } else {\n presets = [];\n invalidPresets = [];\n for (const entry of colors.presets) {\n if (VALID_PRESET_HEX.test(entry)) {\n presets.push(entry);\n } else {\n invalidPresets.push(entry);\n }\n }\n }\n\n const requestedAllowCustom = colors?.allowCustom ?? fallback.allowCustom;\n\n const allowCustomIgnored = !requestedAllowCustom && presets.length === 0;\n const allowCustom = allowCustomIgnored ? true : requestedAllowCustom;\n\n return { presets, allowCustom, allowCustomIgnored, invalidPresets };\n}\n","/**\n * Normalize a browser-serialized `rgb()/rgba()` color to `#rrggbb`. The browser\n * serializes an inline `style=\"color:#hex\"` to `rgb(...)`, so reading a stored\n * color back via `element.style.color` (e.g. a TipTap textStyle/highlight mark,\n * or a saved link color) surfaces `rgb(...)` — mismatching the hex used\n * everywhere else, and unparseable by the hex-only picker (`vanilla-colorful`)\n * and the native `<input type=\"color\">`. Non-rgb input (already hex, a keyword,\n * or empty) is returned unchanged.\n */\nexport function normalizeColorToHex(value: string): string {\n const m = /^rgba?\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)/i.exec(value.trim());\n if (!m) return value;\n const toHex = (n: string) => Number(n).toString(16).padStart(2, \"0\");\n return `#${toHex(m[1])}${toHex(m[2])}${toHex(m[3])}`;\n}\n\n/**\n * Canonicalize a hex color to the lowercase 6-digit form used for preset\n * membership tests. Runs {@link normalizeColorToHex} first (so a\n * browser-serialized `rgb(...)` round-trip collapses to hex), then expands a\n * 3-digit shorthand (`#abc` → `#aabbcc`) and lowercases it. Non-hex input (a\n * keyword, or empty) is returned unchanged after that rgb normalization —\n * the caller decides whether that counts as a member.\n *\n * Kept separate from `normalizeColorToHex` (which is left untouched) because a\n * configured preset may be `#abc` while the browser round-trips the selected\n * value to `#aabbcc`, and a factory default may be `#FFFFFF` while the preset\n * is `#ffffff` — bare equality misses both. Preset-selection display\n * (`ColorPicker`) and the off-palette defaults audit (`collectOffPaletteDefaults`)\n * both compare through this one function so the two membership tests can't drift.\n */\nexport function canonicalizeHexColor(value: string): string {\n const hex = normalizeColorToHex(value);\n const short = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(hex);\n if (short) {\n return `#${short[1]}${short[1]}${short[2]}${short[2]}${short[3]}${short[3]}`.toLowerCase();\n }\n if (/^#[0-9a-f]{6}$/i.test(hex)) {\n return hex.toLowerCase();\n }\n return hex;\n}\n","import { inject, ref, type Ref } from \"vue\";\nimport { POPOVER_ROOT_KEY } from \"../keys\";\n\n/**\n * Returns the editor's shared popover mount ref — the `<div\n * class=\"tpl-popover-root\" />` rendered at the top level of `Editor.vue`.\n * Every teleport target (RichTextLinkDialog, TitleEditor\n * toolbar, ParagraphToolbar, TplModal) injects this and teleports to\n * `popoverRoot.value` rather than `to=\"body\"`, so popups stay inside the\n * editor's effective DOM root (shadow-aware).\n *\n * Falls back to a never-resolving `ref(null)` when no provider is in scope.\n * Components must guard with `v-if=\"popoverRoot\"` before teleporting —\n * with the fallback, isolated component tests that don't mount the editor\n * shell simply render nothing rather than blow up.\n *\n * Internal — not exported from the package entry.\n */\nexport function usePopoverRoot(): Ref<HTMLElement | null> {\n return inject(POPOVER_ROOT_KEY, ref<HTMLElement | null>(null));\n}\n","import { usePopoverRoot } from \"./usePopoverRoot\";\n\n/**\n * Coordinate helper for popovers that teleport into the shared popover root\n * (`.tpl-popover-root`, `position: relative`) and position themselves with\n * `position: absolute`.\n *\n * Callers compute a target point in **viewport** space — from\n * `getBoundingClientRect()`, `useElementBounding`, or a TipTap caret rect —\n * and `toLocal` converts it to coordinates **local to the popover root** by\n * subtracting the root's own viewport rect.\n *\n * Why this exists: a `position: fixed` popover resolves its coordinates\n * against the nearest ancestor that establishes a containing block — and any\n * `transform` / `filter` / `will-change` on an ancestor of the editor (a\n * consumer's scroll-parallax wrapper, route-transition, reveal animation…)\n * does exactly that, even while its computed `transform` reads `none` (a\n * running/animated transform still promotes the element). The fixed popover\n * would then be offset by that ancestor's position. Anchoring `absolute`\n * inside the (positioned) popover root instead makes the placement immune:\n * both points are read in viewport space, so the subtraction cancels the\n * ancestor offset, and the popover tracks the editor if the ancestor moves.\n *\n * Read `toLocal` inside a `computed` for a reactive result (recomputes with\n * its viewport-coordinate dependencies), or call it once when a popover opens.\n * Falls back to the viewport coordinates unchanged when no popover root is in\n * scope (isolated component tests / headless callers).\n *\n * Internal — not exported from the package entry.\n */\nexport function usePopoverPosition(): {\n toLocal: (viewport: { top: number; left: number }) => {\n top: number;\n left: number;\n };\n} {\n const popoverRoot = usePopoverRoot();\n function toLocal(viewport: { top: number; left: number }): {\n top: number;\n left: number;\n } {\n const rect = popoverRoot.value?.getBoundingClientRect();\n if (!rect) return { top: viewport.top, left: viewport.left };\n return { top: viewport.top - rect.top, left: viewport.left - rect.left };\n }\n return { toLocal };\n}\n"],"mappings":";;;AAkCA,IAAa,IAA0C;CACrD,SAAS,CAAC;CACV,aAAa;CACb,oBAAoB;CACpB,gBAAgB,CAAC;AACnB,GASM,IAAmB;AAwBzB,SAAgB,EACd,GACA,IAA2B,GACX;CAIhB,IAAI,GACA;CACJ,IAAI,GAAQ,YAAY,KAAA,GAEtB,AADA,IAAU,EAAS,SACnB,IAAiB,CAAC;MACb;EAEL,AADA,IAAU,CAAC,GACX,IAAiB,CAAC;EAClB,KAAK,IAAM,KAAS,EAAO,SACzB,AAAI,EAAiB,KAAK,CAAK,IAC7B,EAAQ,KAAK,CAAK,IAElB,EAAe,KAAK,CAAK;CAG/B;CAEA,IAAM,IAAuB,GAAQ,eAAe,EAAS,aAEvD,IAAqB,CAAC,KAAwB,EAAQ,WAAW;CAGvE,OAAO;EAAE;EAAS,aAFE,IAAqB,KAAO;EAEjB;EAAoB;CAAe;AACpE;;;AC7FA,SAAgB,EAAoB,GAAuB;CACzD,IAAM,IAAI,4CAA4C,KAAK,EAAM,KAAK,CAAC;CACvE,IAAI,CAAC,GAAG,OAAO;CACf,IAAM,KAAS,MAAc,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG;CACnE,OAAO,IAAI,EAAM,EAAE,EAAE,IAAI,EAAM,EAAE,EAAE,IAAI,EAAM,EAAE,EAAE;AACnD;AAiBA,SAAgB,EAAqB,GAAuB;CAC1D,IAAM,IAAM,EAAoB,CAAK,GAC/B,IAAQ,qCAAqC,KAAK,CAAG;CAO3D,OANI,IACK,IAAI,EAAM,KAAK,EAAM,KAAK,EAAM,KAAK,EAAM,KAAK,EAAM,KAAK,EAAM,KAAK,YAAY,IAEvF,kBAAkB,KAAK,CAAG,IACrB,EAAI,YAAY,IAElB;AACT;;;ACvBA,SAAgB,IAA0C;CACxD,OAAO,EAAO,GAAkB,EAAwB,IAAI,CAAC;AAC/D;;;ACUA,SAAgB,IAKd;CACA,IAAM,IAAc,EAAe;CACnC,SAAS,EAAQ,GAGf;EACA,IAAM,IAAO,EAAY,OAAO,sBAAsB;EAEtD,OADK,IACE;GAAE,KAAK,EAAS,MAAM,EAAK;GAAK,MAAM,EAAS,OAAO,EAAK;EAAK,IADrD;GAAE,KAAK,EAAS;GAAK,MAAM,EAAS;EAAK;CAE7D;CACA,OAAO,EAAE,WAAQ;AACnB"}
@@ -1,2 +0,0 @@
1
- import { i as e } from "./editor-modal-Czq1I8oC.js";
2
- export { e as default };