@templatical/editor 0.35.0 → 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 (223) hide show
  1. package/dist/{AiChatSidebar-DPHbCGu4.js → AiChatSidebar-tu4eLcf_.js} +57 -57
  2. package/dist/{AiFeatureMenu--8z7qvg1.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
  3. package/dist/{BlockIssueBadge-BGCsJqqM.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
  4. package/dist/{BlockPreviewCanvas-DKspIy8V.js → BlockPreviewCanvas-DDCmMram.js} +28 -28
  5. package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
  6. package/dist/{CloudPanels-Bp5gFtaL.js → CloudPanels-Iwnky0iA.js} +78 -108
  7. package/dist/{CollaboratorBar-DvwZm5u7.js → CollaboratorBar-DAITu0hz.js} +17 -17
  8. package/dist/{ColorPicker-DtozuN75.js → ColorPicker-BqlZ_TqG.js} +193 -193
  9. package/dist/{CommentsPanel-3C-DsEjy.js → CommentsPanel-CDvgmWP1.js} +3 -3
  10. package/dist/{CommentsSidebar-go1FnjDW.js → CommentsSidebar-X_xqM3dR.js} +158 -158
  11. package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
  12. package/dist/{CountdownToolbar-SLBuij7Q.js → CountdownToolbar-DBFoG3a6.js} +67 -67
  13. package/dist/{DesignReferenceSidebar-rcE_BvUd.js → DesignReferenceSidebar--QtXjLrw.js} +57 -57
  14. package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
  15. package/dist/{IssuesPanel-Cig46N1i.js → IssuesPanel-BLbNFMSX.js} +38 -38
  16. package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
  17. package/dist/MediaPanels-CMTAhDXB.js +43 -0
  18. package/dist/{MergeTagInput-D1hzsn2b.js → MergeTagInput-BEjzj4Iu.js} +115 -115
  19. package/dist/{MergeTagModeToggle-CH9wR5YF.js → MergeTagModeToggle-DKN6ihI5.js} +40 -40
  20. package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
  21. package/dist/{ParagraphEditor-CT2AdMdZ.js → ParagraphEditor-1E9yzOfk.js} +231 -258
  22. package/dist/{RestoreVersionDialog-mdqgQxFR.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
  23. package/dist/{RichTextEditorContent-riOB-rKD.js → RichTextEditorContent-BnxbQUV9.js} +49 -59
  24. package/dist/{SaveBlockDialog-Cn2v4Lpj.js → SaveBlockDialog-WKASpCCT.js} +78 -78
  25. package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
  26. package/dist/{SavedBlocksPanels-ffBnWuVU.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
  27. package/dist/{SavedBlocksPickBar-BmQC2tWN.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
  28. package/dist/{TemplateScoringPanel-CxAtdreR.js → TemplateScoringPanel-CSin43YM.js} +99 -98
  29. package/dist/{TestEmailModal-Cjn1padY.js → TestEmailModal-BxizsRCd.js} +59 -59
  30. package/dist/{TestEmailPanel-Bf3XZ1jn.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-CrNrGsaa.js → VersionHistoryMenu-eGYVhM4H.js} +41 -47
  34. package/dist/{VersionHistoryPanels-CsuQk6W3.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
  35. package/dist/{VersionPreviewBanner-BqbO0Zss.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
  36. package/dist/{blockTypeIcons-D_4HdaY9.js → blockTypeIcons-5qD4bB76.js} +5 -17
  37. package/dist/bundle-stats.json +8 -8
  38. package/dist/ca-Jx2CDwtn.js +83 -0
  39. package/dist/cdn/chunks/{AiChatSidebar-D0f74_nS.js → AiChatSidebar-dyqqHAcI.js} +4 -4
  40. package/dist/cdn/chunks/{AiChatSidebar-D0f74_nS.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
  41. package/dist/cdn/chunks/{AiFeatureMenu-DwGb3eF9.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
  42. package/dist/cdn/chunks/{AiFeatureMenu-DwGb3eF9.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
  43. package/dist/cdn/chunks/{BlockIssueBadge-CosQgeJ-.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
  44. package/dist/cdn/chunks/{BlockIssueBadge-CosQgeJ-.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
  45. package/dist/cdn/chunks/{BlockPreviewCanvas-CIpZ2a6g.js → BlockPreviewCanvas-B5f26eLE.js} +5 -5
  46. package/dist/cdn/chunks/{BlockPreviewCanvas-CIpZ2a6g.js.map → BlockPreviewCanvas-B5f26eLE.js.map} +1 -1
  47. package/dist/cdn/chunks/{CloudHeaderExtras-CQzQwKFB.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
  48. package/dist/cdn/chunks/{CloudHeaderExtras-CQzQwKFB.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
  49. package/dist/cdn/chunks/{CloudPanels-BmexuLOU.js → CloudPanels-DkmR05nB.js} +15 -45
  50. package/dist/cdn/chunks/{CloudPanels-BmexuLOU.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
  51. package/dist/cdn/chunks/{CollaboratorBar-DEICobpp.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
  52. package/dist/cdn/chunks/{CollaboratorBar-DEICobpp.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
  53. package/dist/cdn/chunks/{ColorPicker-C7yC58FK.js → ColorPicker-LcrzgMoW.js} +7 -7
  54. package/dist/cdn/chunks/{ColorPicker-C7yC58FK.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsPanel-OjmKxLL7.js → CommentsPanel-CntwwocI.js} +2 -2
  56. package/dist/cdn/chunks/{CommentsPanel-OjmKxLL7.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
  57. package/dist/cdn/chunks/{CommentsSidebar-C4pWZGpy.js → CommentsSidebar-BLDKnKy7.js} +4 -4
  58. package/dist/cdn/chunks/{CommentsSidebar-C4pWZGpy.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
  59. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
  60. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
  61. package/dist/cdn/chunks/{CountdownToolbar-wlJOxyAl.js → CountdownToolbar-CA1dpuOI.js} +3 -3
  62. package/dist/cdn/chunks/{CountdownToolbar-wlJOxyAl.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
  63. package/dist/cdn/chunks/{DesignReferenceSidebar-DELhnh8h.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-DELhnh8h.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
  65. package/dist/cdn/chunks/{IssuesPanel-C9i3o8aE.js → IssuesPanel-Q62LTqvd.js} +5 -5
  66. package/dist/cdn/chunks/{IssuesPanel-C9i3o8aE.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
  67. package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
  68. package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
  69. package/dist/cdn/chunks/{MergeTagInput-D76Kyvgu.js → MergeTagInput-l7paaAml.js} +7 -7
  70. package/dist/cdn/chunks/{MergeTagInput-D76Kyvgu.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
  71. package/dist/cdn/chunks/{MergeTagModeToggle-Dz3gxN2y.js → MergeTagModeToggle-DYxkAGtA.js} +4 -4
  72. package/dist/cdn/chunks/{MergeTagModeToggle-Dz3gxN2y.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
  73. package/dist/cdn/chunks/{ParagraphEditor-DQn0HMfV.js → ParagraphEditor-Bd-GQXee.js} +15 -15
  74. package/dist/cdn/chunks/{ParagraphEditor-DQn0HMfV.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
  75. package/dist/cdn/chunks/{RestoreVersionDialog-BdjOL8Oy.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BdjOL8Oy.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
  77. package/dist/cdn/chunks/{RichTextEditorContent-Drzwgh0J.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
  78. package/dist/cdn/chunks/{RichTextEditorContent-Drzwgh0J.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
  79. package/dist/cdn/chunks/{SaveBlockDialog-B3rbmXSM.js → SaveBlockDialog-CufdTomT.js} +15 -15
  80. package/dist/cdn/chunks/{SaveBlockDialog-B3rbmXSM.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
  81. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CkUXlnd2.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CkUXlnd2.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
  83. package/dist/cdn/chunks/{SavedBlocksPanels-BPi3PZKP.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
  84. package/dist/cdn/chunks/{SavedBlocksPanels-BPi3PZKP.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
  85. package/dist/cdn/chunks/{SavedBlocksPickBar-BvB9A5W2.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-BvB9A5W2.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
  87. package/dist/cdn/chunks/{TemplateScoringPanel-BBCyLnOi.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
  88. package/dist/cdn/chunks/{TemplateScoringPanel-BBCyLnOi.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
  89. package/dist/cdn/chunks/{TestEmailModal-DAGTsBqi.js → TestEmailModal-BTNlSW6f.js} +10 -10
  90. package/dist/cdn/chunks/{TestEmailModal-DAGTsBqi.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
  91. package/dist/cdn/chunks/{TestEmailPanel-BfenVvfx.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
  92. package/dist/cdn/chunks/{TestEmailPanel-BfenVvfx.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
  93. package/dist/cdn/chunks/{TitleEditor-oQ4gr6wS.js → TitleEditor-CrnuIq62.js} +9 -9
  94. package/dist/cdn/chunks/{TitleEditor-oQ4gr6wS.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
  95. package/dist/cdn/chunks/{TplModal-DxOMcVwp.js → TplModal-DYXrTz42.js} +5 -5
  96. package/dist/cdn/chunks/{TplModal-DxOMcVwp.js.map → TplModal-DYXrTz42.js.map} +1 -1
  97. package/dist/cdn/chunks/{VersionHistoryMenu-BfVUvWHT.js → VersionHistoryMenu-bDGnE4hb.js} +4 -4
  98. package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
  99. package/dist/cdn/chunks/{VersionHistoryPanels-NpDb641L.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
  100. package/dist/cdn/chunks/{VersionHistoryPanels-NpDb641L.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
  101. package/dist/cdn/chunks/{VersionPreviewBanner-Cpgt4xHc.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
  102. package/dist/cdn/chunks/{VersionPreviewBanner-Cpgt4xHc.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
  103. package/dist/cdn/chunks/{blockTypeIcons-t9vvaiuH.js → blockTypeIcons-CNjJSFun.js} +2 -2
  104. package/dist/cdn/chunks/{blockTypeIcons-t9vvaiuH.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
  105. package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
  106. package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
  107. package/dist/cdn/chunks/{cloud-CullB76F.js → cloud-BLgCKP7Z.js} +452 -227
  108. package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
  109. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
  110. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
  111. package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
  112. package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
  113. package/dist/cdn/chunks/{src-CaXeO-gG.js → editor-modal-MXgtarMl.js} +1474 -1935
  114. package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
  115. package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
  116. package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
  117. package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
  118. package/dist/cdn/chunks/{extensions-BpXY7jO5.js → extensions-B8_jnIkD.js} +3 -3
  119. package/dist/cdn/chunks/{extensions-BpXY7jO5.js.map → extensions-B8_jnIkD.js.map} +1 -1
  120. package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
  121. package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
  122. package/dist/cdn/chunks/{icons-BLxcQUck.js → icons-BUlqGSgd.js} +24 -24
  123. package/dist/cdn/chunks/{icons-BLxcQUck.js.map → icons-BUlqGSgd.js.map} +1 -1
  124. package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
  125. package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
  126. package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
  127. package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
  128. package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
  129. package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
  130. package/dist/cdn/chunks/{src-BC-eolWY.js → src-DZ0C9mH7.js} +2 -2
  131. package/dist/cdn/chunks/{src-BC-eolWY.js.map → src-DZ0C9mH7.js.map} +1 -1
  132. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
  133. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
  134. package/dist/cdn/chunks/{useEditorCore-D4MytYB9.js → useEditorCore-Cs7rYVBo.js} +488 -406
  135. package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
  136. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
  137. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
  138. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
  139. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
  140. package/dist/cdn/chunks/{useMergeTag-CSocWpxV.js → useMergeTag-BYAifvh8.js} +3 -3
  141. package/dist/cdn/chunks/{useMergeTag-CSocWpxV.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
  142. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
  143. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
  144. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
  145. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
  146. package/dist/cdn/editor.css +1 -1
  147. package/dist/cdn/editor.js +1091 -1004
  148. package/dist/cdn/editor.js.map +1 -1
  149. package/dist/{check-CY-Ec6FV.js → check-DWtkBzBU.js} +1 -1
  150. package/dist/{chevron-down-BghbWA9p.js → chevron-down-C-Fjxcqj.js} +1 -1
  151. package/dist/chevron-right-SOkn2d4P.js +11 -0
  152. package/dist/{chevron-up-n3qFAPS3.js → chevron-up-lntU1ypp.js} +1 -1
  153. package/dist/{circle-alert-L5uGGFRP.js → circle-alert-CjzUTwy3.js} +1 -1
  154. package/dist/{clock-Dgnwp18n.js → clock-pB2QKPsJ.js} +1 -1
  155. package/dist/{cloud-B1c4XIsn.js → cloud-DdidMW6f.js} +445 -200
  156. package/dist/copy-CId1E038.js +19 -0
  157. package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
  158. package/dist/{createLucideIcon-05lB8iWe.js → createLucideIcon-Cwf_nTzE.js} +6 -6
  159. package/dist/de-Ck0pBGHu.js +83 -0
  160. package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
  161. package/dist/dist-D8i1ixHK.js +177 -0
  162. package/dist/dist-DBirAJIs.js +410 -0
  163. package/dist/editor-modal-B_LaQf0s.js +5998 -0
  164. package/dist/en-DcmpWV53.js +2 -0
  165. package/dist/es-lagTvUfX.js +83 -0
  166. package/dist/{extensions-Bawm4BOM.js → extensions-CHOBZRab.js} +42 -42
  167. package/dist/eye-BuGtFUoJ.js +16 -0
  168. package/dist/fr-C4hVl5Lk.js +83 -0
  169. package/dist/{image-up-ovhjl9u9.js → image-up-gH4JEpU5.js} +1 -1
  170. package/dist/index.d.ts +77 -11
  171. package/dist/{info-c3KI927I.js → info-BQ60P82u.js} +1 -1
  172. package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
  173. package/dist/link-3R8it3J7.js +14 -0
  174. package/dist/list-Ccdgj46T.js +33 -0
  175. package/dist/{loader-circle-B2Y8xZQb.js → loader-circle-B_tAD4k6.js} +1 -1
  176. package/dist/{message-circle-B7K-naUa.js → message-circle-P-KSc6V0.js} +1 -1
  177. package/dist/nl-CReD7Apd.js +83 -0
  178. package/dist/{pencil-BhWTFcp4.js → pencil-9ZiwqS4r.js} +1 -1
  179. package/dist/plus-BwJEzCaO.js +14 -0
  180. package/dist/pt-BR-BRA0-vGP.js +83 -0
  181. package/dist/{refresh-cw-BqUR5vgO.js → refresh-cw-DEgfb2FK.js} +2 -14
  182. package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
  183. package/dist/search-DqQ8Li5E.js +16 -0
  184. package/dist/{send-D1vvuW79.js → send-CE6uvqop.js} +1 -1
  185. package/dist/{shield-check-DjK54PnW.js → shield-check-DhD1Z3rd.js} +1 -1
  186. package/dist/{sparkles-DNdS9V_3.js → sparkles-R0ZQHa6F.js} +1 -1
  187. package/dist/style.css +1 -1
  188. package/dist/templatical-editor.js +2488 -2407
  189. package/dist/{text-align-start-Bcmo_VUY.js → text-align-start-DSux2UNn.js} +1 -1
  190. package/dist/{trash-C9bMXvw4.js → trash-Cf_SqsER.js} +1 -1
  191. package/dist/{triangle-alert-Bn8Bd2Yv.js → triangle-alert-C6tGa6jw.js} +1 -1
  192. package/dist/{upload-DKgg1gno.js → upload-DusKjpVr.js} +1 -1
  193. package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
  194. package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
  195. package/dist/{useEditorCore-CYGvurZa.js → useEditorCore-DhlKOYwe.js} +1552 -1486
  196. package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
  197. package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
  198. package/dist/{useMergeTag-C9GEpljB.js → useMergeTag-DlvOBW_B.js} +3 -3
  199. package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
  200. package/dist/{useScrollToBlock-oUx1HIZ2.js → useScrollToBlock-BTFw0b9O.js} +3 -3
  201. package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
  202. package/dist/{x-BPKoRPTG.js → x-D_-42Ukq.js} +1 -1
  203. package/package.json +9 -12
  204. package/dist/CloudHeaderExtras-CRUQvgSV.js +0 -59
  205. package/dist/SavedBlocksBrowserModal-BORqqASb.js +0 -322
  206. package/dist/TitleEditor-pYEUX6lR.js +0 -198
  207. package/dist/TplModal-DRx4ytx8.js +0 -51
  208. package/dist/cdn/chunks/VersionHistoryMenu-BfVUvWHT.js.map +0 -1
  209. package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
  210. package/dist/cdn/chunks/cloud-CullB76F.js.map +0 -1
  211. package/dist/cdn/chunks/createCloudRuntime-Cx2JpUYU.js +0 -443
  212. package/dist/cdn/chunks/createCloudRuntime-Cx2JpUYU.js.map +0 -1
  213. package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
  214. package/dist/cdn/chunks/en-rGHphLWo.js +0 -2
  215. package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
  216. package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
  217. package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
  218. package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
  219. package/dist/cdn/chunks/src-CaXeO-gG.js.map +0 -1
  220. package/dist/cdn/chunks/useEditorCore-D4MytYB9.js.map +0 -1
  221. package/dist/createCloudRuntime-PevFSH74.js +0 -441
  222. package/dist/dist-dNiknO7j.js +0 -251
  223. package/dist/dist-heatwAdo.js +0 -150
@@ -1,11 +1,11 @@
1
- import { Dt as e, P as t, S as n, c as r, d as i, g as a, h as o, j as s, k as c, kt as l, l as u, r as d, rt as f, s as p, u as m, v as h } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { V as g, h as _ } from "./keys-C3P1yxnr.js";
3
- import { t as v } from "./useI18n-CL6RfPzK.js";
4
- import { t as y } from "./createLucideIcon-05lB8iWe.js";
5
- import { t as b } from "./circle-alert-L5uGGFRP.js";
6
- import { t as x } from "./info-c3KI927I.js";
7
- import { n as S, t as C } from "./useScrollToBlock-oUx1HIZ2.js";
8
- import { t as w } from "./triangle-alert-Bn8Bd2Yv.js";
1
+ import { A as e, F as t, M as n, S as r, at as i, c as a, d as o, g as s, h as c, jt as l, kt as u, l as d, r as f, s as p, u as m, v as h } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ import { H as g, g as _ } from "./keys-DQA2i1k1.js";
3
+ import { t as v } from "./useI18n-BbdxxpOE.js";
4
+ import { t as y } from "./createLucideIcon-Cwf_nTzE.js";
5
+ import { t as b } from "./circle-alert-CjzUTwy3.js";
6
+ import { t as x } from "./info-BQ60P82u.js";
7
+ import { n as S, t as C } from "./useScrollToBlock-BTFw0b9O.js";
8
+ import { t as w } from "./triangle-alert-C6tGa6jw.js";
9
9
  var T = y({
10
10
  name: "arrow-right",
11
11
  size: 24,
@@ -35,81 +35,81 @@ var T = y({
35
35
  }, F = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, I = { class: "tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, L = { class: "tpl:flex tpl:gap-1.5" }, R = ["onClick"], z = ["title", "onClick"], B = /* @__PURE__ */ h({
36
36
  __name: "IssuesPanel",
37
37
  setup(h) {
38
- let { t: y, format: B } = v(), V = n(g, null), H = n(_, null), U = C(), W = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "error")), G = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "warning")), K = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "info")), q = p(() => W.value.length + G.value.length + K.value.length);
38
+ let { t: y, format: B } = v(), V = r(g, null), H = r(_, null), U = C(), W = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "error")), G = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "warning")), K = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "info")), q = p(() => W.value.length + G.value.length + K.value.length);
39
39
  function J(e) {
40
40
  H && e.blockId && (H.selectBlock(e.blockId), U(e.blockId));
41
41
  }
42
42
  function Y(e) {
43
43
  V?.applyFix(e);
44
44
  }
45
- return (n, p) => (c(), i("div", D, [r("header", O, [
46
- a(f(S), {
45
+ return (r, p) => (e(), o("div", D, [a("header", O, [
46
+ s(i(S), {
47
47
  size: 16,
48
48
  "stroke-width": 1.5
49
49
  }),
50
- r("h3", k, l(f(y).issues.panelTitle), 1),
51
- q.value > 0 ? (c(), i("span", {
50
+ a("h3", k, l(i(y).issues.panelTitle), 1),
51
+ q.value > 0 ? (e(), o("span", {
52
52
  key: 0,
53
53
  class: "tpl:ml-auto tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-0.5 tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]",
54
- title: f(B)(f(y).issues.issueCountTooltip, { count: q.value })
54
+ title: i(B)(i(y).issues.issueCountTooltip, { count: q.value })
55
55
  }, l(q.value), 9, A)) : m("", !0)
56
- ]), !f(V) || f(V).unavailable.value ? (c(), i("div", j)) : q.value === 0 ? (c(), i("div", M, l(f(y).issues.emptyState), 1)) : (c(!0), i(d, { key: 2 }, s([
56
+ ]), !i(V) || i(V).unavailable.value ? (e(), o("div", j)) : q.value === 0 ? (e(), o("div", M, l(i(y).issues.emptyState), 1)) : (e(!0), o(f, { key: 2 }, n([
57
57
  {
58
58
  key: "errors",
59
- title: f(y).issues.groupErrors,
60
- icon: f(b),
59
+ title: i(y).issues.groupErrors,
60
+ icon: i(b),
61
61
  items: W.value,
62
62
  tone: "tpl:text-[var(--tpl-danger)]"
63
63
  },
64
64
  {
65
65
  key: "warnings",
66
- title: f(y).issues.groupWarnings,
67
- icon: f(w),
66
+ title: i(y).issues.groupWarnings,
67
+ icon: i(w),
68
68
  items: G.value,
69
69
  tone: "tpl:text-[var(--tpl-warning)]"
70
70
  },
71
71
  {
72
72
  key: "info",
73
- title: f(y).issues.groupInfo,
74
- icon: f(x),
73
+ title: i(y).issues.groupInfo,
74
+ icon: i(x),
75
75
  items: K.value,
76
76
  tone: "tpl:text-[var(--tpl-text-muted)]"
77
77
  }
78
- ], (n) => (c(), i("section", { key: n.key }, [n.items.length > 0 ? (c(), i("header", {
78
+ ], (r) => (e(), o("section", { key: r.key }, [r.items.length > 0 ? (e(), o("header", {
79
79
  key: 0,
80
- class: e(["tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-[11px] tpl:font-semibold tpl:uppercase tpl:tracking-wide", n.tone])
80
+ class: u(["tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-[11px] tpl:font-semibold tpl:uppercase tpl:tracking-wide", r.tone])
81
81
  }, [
82
- (c(), u(t(n.icon), {
82
+ (e(), d(t(r.icon), {
83
83
  size: 12,
84
84
  "stroke-width": 2
85
85
  })),
86
- o(" " + l(n.title) + " ", 1),
87
- r("span", N, l(n.items.length), 1)
88
- ], 2)) : m("", !0), n.items.length > 0 ? (c(), i("ul", P, [(c(!0), i(d, null, s(n.items, (e) => (c(), i("li", {
89
- key: `${e.ruleId}-${e.blockId ?? "template"}`,
86
+ c(" " + l(r.title) + " ", 1),
87
+ a("span", N, l(r.items.length), 1)
88
+ ], 2)) : m("", !0), r.items.length > 0 ? (e(), o("ul", P, [(e(!0), o(f, null, n(r.items, (t) => (e(), o("li", {
89
+ key: `${t.ruleId}-${t.blockId ?? "template"}`,
90
90
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3"
91
91
  }, [
92
- r("p", F, l(e.message), 1),
93
- r("p", I, l(e.ruleId), 1),
94
- r("div", L, [e.blockId ? (c(), i("button", {
92
+ a("p", F, l(t.message), 1),
93
+ a("p", I, l(t.ruleId), 1),
94
+ a("div", L, [t.blockId ? (e(), o("button", {
95
95
  key: 0,
96
96
  type: "button",
97
97
  "data-testid": "issue-jump",
98
98
  class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text)]",
99
- onClick: (t) => J(e)
100
- }, [a(f(T), {
99
+ onClick: (e) => J(t)
100
+ }, [s(i(T), {
101
101
  size: 10,
102
102
  "stroke-width": 2
103
- }), o(" " + l(f(y).issues.jump), 1)], 8, R)) : m("", !0), e.fix ? (c(), i("button", {
103
+ }), c(" " + l(i(y).issues.jump), 1)], 8, R)) : m("", !0), t.fix ? (e(), o("button", {
104
104
  key: 1,
105
105
  type: "button",
106
106
  class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-on-primary)]",
107
- title: e.fix.description,
108
- onClick: (t) => Y(e)
109
- }, [a(f(E), {
107
+ title: t.fix.description,
108
+ onClick: (e) => Y(t)
109
+ }, [s(i(E), {
110
110
  size: 10,
111
111
  "stroke-width": 2
112
- }), o(" " + l(f(y).issues.fix), 1)], 8, z)) : m("", !0)])
112
+ }), c(" " + l(i(y).issues.fix), 1)], 8, z)) : m("", !0)])
113
113
  ]))), 128))])) : m("", !0)]))), 128))]));
114
114
  }
115
115
  });
@@ -1,9 +1,9 @@
1
- import { d as e, k as t } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
1
+ import { A as e, d as t } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  //#region src/components/LoadingTrack.vue
4
4
  var r = {}, i = { class: "tpl-loading-track" };
5
5
  function a(n, r) {
6
- return t(), e("div", i);
6
+ return e(), t("div", i);
7
7
  }
8
8
  var o = /*#__PURE__*/ n(r, [["render", a], ["__scopeId", "data-v-c3d50014"]]);
9
9
  //#endregion
@@ -0,0 +1,43 @@
1
+ import { A as e, _ as t, at as n, l as r, u as i, v as a } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ //#endregion
3
+ //#region src/components/MediaPanels.vue
4
+ var o = /* @__PURE__ */ a({
5
+ __name: "MediaPanels",
6
+ props: {
7
+ feature: {},
8
+ provider: {},
9
+ locale: {},
10
+ uiTheme: {},
11
+ popoverTarget: {}
12
+ },
13
+ setup(a) {
14
+ let o = a, s = t(async () => (await import("./editor-modal-B_LaQf0s.js")).MediaLibraryModal);
15
+ function c(e) {
16
+ o.feature.select(e);
17
+ }
18
+ return (t, o) => a.feature.isModalOpen.value ? (e(), r(n(s), {
19
+ key: 0,
20
+ visible: a.feature.isModalOpen.value,
21
+ provider: a.provider,
22
+ accept: a.feature.accept.value,
23
+ "popover-target": a.popoverTarget,
24
+ locale: a.locale,
25
+ "ui-theme": a.uiTheme,
26
+ "template-id": a.feature.templateId.value,
27
+ "on-error": a.feature.onError,
28
+ onSelect: c,
29
+ onClose: o[0] ||= (e) => a.feature.close()
30
+ }, null, 8, [
31
+ "visible",
32
+ "provider",
33
+ "accept",
34
+ "popover-target",
35
+ "locale",
36
+ "ui-theme",
37
+ "template-id",
38
+ "on-error"
39
+ ])) : i("", !0);
40
+ }
41
+ });
42
+ //#endregion
43
+ export { o as default };
@@ -1,16 +1,16 @@
1
- import { Dt as e, G as t, S as n, T as r, U as i, X as a, c as o, d as s, g as c, h as l, j as u, k as d, kt as f, l as p, q as m, r as h, rt as g, s as _, u as v, v as y } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { c as b, s as x } from "./runtime-dom.esm-bundler-BuG03jBM.js";
1
+ import { A as e, E as t, J as n, K as r, M as i, S as a, W as o, Z as s, at as c, c as l, d as u, g as d, h as f, jt as p, kt as m, l as h, r as g, s as _, u as v, v as y } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ import { c as b, s as x } from "./runtime-dom.esm-bundler-PnoZU512.js";
3
3
  import { F as S, M as C, O as w, j as T } from "./dist-tGkjkX-v.js";
4
- import { w as E } from "./useEditorCore-CYGvurZa.js";
5
- import { W as D } from "./keys-C3P1yxnr.js";
6
- import { t as O } from "./useI18n-CL6RfPzK.js";
7
- import { n as k } from "./usePopoverPosition-CWxaIWd3.js";
8
- import { t as A } from "./createLucideIcon-05lB8iWe.js";
9
- import { t as j } from "./x-BPKoRPTG.js";
4
+ import { w as E } from "./useEditorCore-DhlKOYwe.js";
5
+ import { G as D } from "./keys-DQA2i1k1.js";
6
+ import { t as O } from "./useI18n-BbdxxpOE.js";
7
+ import { n as k } from "./usePopoverPosition-CprM5p-c.js";
8
+ import { t as A } from "./createLucideIcon-Cwf_nTzE.js";
9
+ import { t as j } from "./x-D_-42Ukq.js";
10
10
  import { t as M } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { t as N } from "./useMergeTag-C9GEpljB.js";
11
+ import { t as N } from "./useMergeTag-DlvOBW_B.js";
12
12
  import { p as P } from "./styleConstants-C_YAPdQS.js";
13
- import { n as F, r as I } from "./MergeTagSuggestion-CoCuzEmW.js";
13
+ import { n as F, r as I } from "./MergeTagSuggestion-DKoLEeoj.js";
14
14
  var L = A({
15
15
  name: "braces",
16
16
  size: 24,
@@ -107,25 +107,25 @@ var U = /* @__PURE__ */ new Set([
107
107
  "End"
108
108
  ]);
109
109
  function W(e) {
110
- let { elementRef: a, modelValue: o, emit: s, mergeTags: c, syntax: l, enabled: u, onInsert: d } = e, f = C(l), p = T(l), h = u && f !== null && c.length > 0, g = n(D, null), _ = (t(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = k(), y = F(_, v), b = !1;
111
- i() && m(() => {
110
+ let { elementRef: i, modelValue: s, emit: c, mergeTags: l, syntax: u, enabled: d, onInsert: f } = e, p = C(u), m = T(u), h = d && p !== null && l.length > 0, g = a(D, null), _ = (r(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = k(), y = F(_, v), b = !1;
111
+ o() && n(() => {
112
112
  b = !0, y.close();
113
113
  });
114
114
  function x(e) {
115
115
  let t = e.value ?? "";
116
- return z(t, e.selectionStart ?? t.length, f, p);
116
+ return z(t, e.selectionStart ?? t.length, p, m);
117
117
  }
118
- function S(e, t, n) {
119
- let i = e.value ?? o(), c = i.slice(t.caret), l = p && c.startsWith(p) ? p.length : 0, u = i.slice(0, t.triggerStart), f = i.slice(t.caret + l), m = u + n.value + f, h = u.length + n.value.length;
120
- d?.(), s(m), y.close(), r(() => {
118
+ function S(e, n, r) {
119
+ let a = e.value ?? s(), o = a.slice(n.caret), l = m && o.startsWith(m) ? m.length : 0, u = a.slice(0, n.triggerStart), d = a.slice(n.caret + l), p = u + r.value + d, h = u.length + r.value.length;
120
+ f?.(), c(p), y.close(), t(() => {
121
121
  if (b) return;
122
- let e = a.value;
122
+ let e = i.value;
123
123
  e?.focus(), e?.setSelectionRange(h, h);
124
124
  });
125
125
  }
126
126
  function w() {
127
127
  if (!h || b) return;
128
- let e = a.value;
128
+ let e = i.value;
129
129
  if (!e) {
130
130
  y.close();
131
131
  return;
@@ -135,16 +135,16 @@ function W(e) {
135
135
  y.close();
136
136
  return;
137
137
  }
138
- let n = I(c, t.query), r = () => H(e, t.triggerStart), i = (n) => S(e, t, n);
138
+ let n = I(l, t.query), r = () => H(e, t.triggerStart), a = (n) => S(e, t, n);
139
139
  y.isOpen() ? y.update({
140
140
  items: n,
141
141
  getRect: r,
142
- onCommand: i
142
+ onCommand: a
143
143
  }) : y.open({
144
144
  items: n,
145
145
  getRect: r,
146
146
  anchorEl: e,
147
- onCommand: i
147
+ onCommand: a
148
148
  });
149
149
  }
150
150
  function E(e) {
@@ -161,60 +161,60 @@ function W(e) {
161
161
  //#endregion
162
162
  //#region src/composables/useMergeTagField.ts
163
163
  function G(e) {
164
- let { modelValue: t, emit: n, elementRef: o } = e, { mergeTags: s, canRequestMergeTag: c, isRequesting: l, isMergeTagValue: u, getMergeTagLabel: d, requestMergeTag: f, syntax: p, autocomplete: h } = N(), { canInsertLogicTag: g, isRequesting: v, requestLogicTag: y } = E(), b = a(!1), x = !1, C = !1;
165
- i() && m(() => {
164
+ let { modelValue: r, emit: i, elementRef: a } = e, { mergeTags: c, canRequestMergeTag: l, isRequesting: u, isMergeTagValue: d, getMergeTagLabel: f, requestMergeTag: p, syntax: m, autocomplete: h } = N(), { canInsertLogicTag: g, isRequesting: v, requestLogicTag: y } = E(), b = s(!1), x = !1, C = !1;
165
+ o() && n(() => {
166
166
  C = !0;
167
167
  });
168
168
  let T = W({
169
- elementRef: o,
170
- modelValue: t,
171
- emit: n,
172
- mergeTags: s,
173
- syntax: p,
169
+ elementRef: a,
170
+ modelValue: r,
171
+ emit: i,
172
+ mergeTags: c,
173
+ syntax: m,
174
174
  enabled: h,
175
175
  onInsert: () => {
176
176
  b.value = !0;
177
177
  }
178
178
  }), D = _(() => {
179
- let e = t();
179
+ let e = r();
180
180
  if (!e) return [];
181
- let n = [], r = `(${p.value.source}|${p.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
181
+ let t = [], n = `(${m.value.source}|${m.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
182
182
  for (; (o = i.exec(e)) !== null;) {
183
- o.index > a && n.push({
183
+ o.index > a && t.push({
184
184
  type: "text",
185
185
  value: e.slice(a, o.index)
186
186
  });
187
- let t = o[0];
188
- u(t) ? n.push({
187
+ let n = o[0];
188
+ d(n) ? t.push({
189
189
  type: "mergeTag",
190
- value: t,
191
- label: d(t)
192
- }) : S(t, p) ? n.push({
190
+ value: n,
191
+ label: f(n)
192
+ }) : S(n, m) ? t.push({
193
193
  type: "logicMergeTag",
194
- value: t,
195
- keyword: w(t, p)
196
- }) : n.push({
194
+ value: n,
195
+ keyword: w(n, m)
196
+ }) : t.push({
197
197
  type: "text",
198
- value: t
199
- }), a = o.index + t.length;
198
+ value: n
199
+ }), a = o.index + n.length;
200
200
  }
201
- return a < e.length && n.push({
201
+ return a < e.length && t.push({
202
202
  type: "text",
203
203
  value: e.slice(a)
204
- }), n;
204
+ }), t;
205
205
  }), O = _(() => D.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
206
206
  function k() {
207
- b.value = !0, r(() => {
208
- o.value?.focus();
209
- let e = t()?.length || 0;
210
- o.value?.setSelectionRange(e, e);
207
+ b.value = !0, t(() => {
208
+ a.value?.focus();
209
+ let e = r()?.length || 0;
210
+ a.value?.setSelectionRange(e, e);
211
211
  });
212
212
  }
213
213
  function A() {
214
214
  x || (b.value = !1);
215
215
  }
216
216
  function j(e) {
217
- n(e.target.value), T.refresh();
217
+ i(e.target.value), T.refresh();
218
218
  }
219
219
  function M(e) {
220
220
  return T.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && A(), !1);
@@ -226,28 +226,28 @@ function G(e) {
226
226
  T.close(), A();
227
227
  }
228
228
  function I() {
229
- n("");
229
+ i("");
230
230
  }
231
231
  async function L() {
232
- let e = b.value && o.value ? o.value.selectionStart ?? t().length : t().length;
232
+ let e = b.value && a.value ? a.value.selectionStart ?? r().length : r().length;
233
233
  x = !0;
234
- let i;
234
+ let n;
235
235
  try {
236
- i = await f();
236
+ n = await p();
237
237
  } finally {
238
238
  x = !1;
239
239
  }
240
- if (!C && i) {
241
- let a = t().slice(0, e), s = t().slice(e), c = a + i.value + s;
242
- n(c), b.value = !0, r(() => {
240
+ if (!C && n) {
241
+ let o = r().slice(0, e), s = r().slice(e), c = o + n.value + s;
242
+ i(c), b.value = !0, t(() => {
243
243
  if (C) return;
244
- let t = e + i.value.length;
245
- o.value?.focus(), o.value?.setSelectionRange(t, t);
244
+ let t = e + n.value.length;
245
+ a.value?.focus(), a.value?.setSelectionRange(t, t);
246
246
  });
247
247
  }
248
248
  }
249
249
  async function R() {
250
- let e = o.value, i = e?.selectionStart ?? t().length, a = e?.selectionEnd ?? i;
250
+ let e = a.value, n = e?.selectionStart ?? r().length, o = e?.selectionEnd ?? n;
251
251
  x = !0;
252
252
  let s;
253
253
  try {
@@ -256,16 +256,16 @@ function G(e) {
256
256
  x = !1;
257
257
  }
258
258
  if (C || !s) return;
259
- let c = t(), l, u;
260
- "before" in s ? (l = c.slice(0, i) + s.before + c.slice(i, a) + s.after + c.slice(a), u = i + s.before.length + (a - i)) : (l = c.slice(0, i) + s.value + c.slice(i), u = i + s.value.length), n(l), b.value = !0, r(() => {
261
- C || (o.value?.focus(), o.value?.setSelectionRange(u, u));
259
+ let c = r(), l, u;
260
+ "before" in s ? (l = c.slice(0, n) + s.before + c.slice(n, o) + s.after + c.slice(o), u = n + s.before.length + (o - n)) : (l = c.slice(0, n) + s.value + c.slice(n), u = n + s.value.length), i(l), b.value = !0, t(() => {
261
+ C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
262
262
  });
263
263
  }
264
264
  return {
265
265
  segments: D,
266
266
  hasMergeTags: O,
267
- canRequestMergeTag: c,
268
- isRequestingMergeTag: l,
267
+ canRequestMergeTag: l,
268
+ isRequestingMergeTag: u,
269
269
  canInsertLogicTag: g,
270
270
  isRequestingLogicTag: v,
271
271
  isEditing: b,
@@ -295,41 +295,41 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
295
295
  },
296
296
  emits: ["edit", "clear"],
297
297
  setup(t, { emit: n }) {
298
- let r = n, { t: i } = O();
299
- function a() {
298
+ let r = n, { t: a } = O();
299
+ function o() {
300
300
  r("edit");
301
301
  }
302
- return (n, l) => (d(), s("div", {
302
+ return (n, s) => (e(), u("div", {
303
303
  role: "button",
304
304
  tabindex: "0",
305
- "aria-label": g(i).mergeTag.clickToEdit,
306
- class: e([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
307
- onClick: a,
308
- onKeydown: [x(a, ["enter"]), x(b(a, ["prevent"]), ["space"])]
309
- }, [(d(!0), s(h, null, u(t.segments, (e, t) => (d(), s(h, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" ? (d(), s("span", {
305
+ "aria-label": c(a).mergeTag.clickToEdit,
306
+ class: m([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
307
+ onClick: o,
308
+ onKeydown: [x(o, ["enter"]), x(b(o, ["prevent"]), ["space"])]
309
+ }, [(e(!0), u(g, null, i(t.segments, (t, n) => (e(), u(g, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" ? (e(), u("span", {
310
310
  key: 0,
311
311
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium",
312
- "data-tooltip": e.value,
312
+ "data-tooltip": t.value,
313
313
  style: {
314
314
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
315
315
  color: "var(--tpl-primary)"
316
316
  }
317
- }, f(e.label), 9, q)) : e.type === "logicMergeTag" ? (d(), s("span", {
317
+ }, p(t.label), 9, q)) : t.type === "logicMergeTag" ? (e(), u("span", {
318
318
  key: 1,
319
319
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
320
- "data-tooltip": e.value,
320
+ "data-tooltip": t.value,
321
321
  style: {
322
322
  "background-color": "transparent",
323
323
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
324
324
  color: "var(--tpl-primary)"
325
325
  }
326
- }, f(e.keyword), 9, J)) : (d(), s("span", Y, f(e.value), 1))], 64))), 128)), o("button", {
326
+ }, p(t.keyword), 9, J)) : (e(), u("span", Y, p(t.value), 1))], 64))), 128)), l("button", {
327
327
  type: "button",
328
328
  class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-danger)] tpl:hover:opacity-100",
329
- "aria-label": g(i).mergeTag.remove,
330
- title: g(i).mergeTag.remove,
331
- onClick: l[0] ||= b((e) => r("clear"), ["stop"])
332
- }, [c(g(j), {
329
+ "aria-label": c(a).mergeTag.remove,
330
+ title: c(a).mergeTag.remove,
331
+ onClick: s[0] ||= b((e) => r("clear"), ["stop"])
332
+ }, [d(c(j), {
333
333
  size: 12,
334
334
  "stroke-width": 2.5
335
335
  })], 8, X)], 42, K));
@@ -344,18 +344,18 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
344
344
  emits: ["insert"],
345
345
  setup(t) {
346
346
  let { t: n } = O();
347
- return (r, i) => (d(), s("button", {
347
+ return (r, i) => (e(), u("button", {
348
348
  type: "button",
349
- class: e([te, "tpl:mt-1.5"]),
350
- "aria-label": g(n).mergeTag.insert,
351
- title: g(n).mergeTag.insert,
349
+ class: m([te, "tpl:mt-1.5"]),
350
+ "aria-label": c(n).mergeTag.insert,
351
+ title: c(n).mergeTag.insert,
352
352
  disabled: t.disabled,
353
353
  onMousedown: i[0] ||= b(() => {}, ["prevent"]),
354
354
  onClick: i[1] ||= (e) => r.$emit("insert")
355
- }, [c(g(R), {
355
+ }, [d(c(R), {
356
356
  size: 12,
357
357
  "stroke-width": 2
358
- }), l(" " + f(g(n).mergeTag.insertShort), 1)], 42, ee));
358
+ }), f(" " + p(c(n).mergeTag.insertShort), 1)], 42, ee));
359
359
  }
360
360
  }), ne = [
361
361
  "aria-label",
@@ -367,19 +367,19 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
367
367
  emits: ["insert"],
368
368
  setup(t) {
369
369
  let { t: n } = O();
370
- return (r, i) => (d(), s("button", {
370
+ return (r, i) => (e(), u("button", {
371
371
  type: "button",
372
- class: e([re, "tpl:mt-1.5"]),
373
- "aria-label": g(n).logicTag.insert,
374
- title: g(n).logicTag.insert,
372
+ class: m([re, "tpl:mt-1.5"]),
373
+ "aria-label": c(n).logicTag.insert,
374
+ title: c(n).logicTag.insert,
375
375
  disabled: t.disabled,
376
376
  "data-testid": "field-insert-logic-button",
377
377
  onMousedown: i[0] ||= b(() => {}, ["prevent"]),
378
378
  onClick: i[1] ||= (e) => r.$emit("insert")
379
- }, [c(g(L), {
379
+ }, [d(c(L), {
380
380
  size: 12,
381
381
  "stroke-width": 2
382
- }), l(" " + f(g(n).logicTag.insertShort), 1)], 42, ne));
382
+ }), f(" " + p(c(n).logicTag.insertShort), 1)], 42, ne));
383
383
  }
384
384
  }), ie = { key: 0 }, ae = {
385
385
  key: 0,
@@ -404,52 +404,52 @@ var K = ["aria-label", "onKeydown"], q = ["data-tooltip"], J = ["data-tooltip"],
404
404
  },
405
405
  emits: ["update:modelValue", "keydown"],
406
406
  setup(t, { emit: n }) {
407
- let r = t, i = n, l = a(null), { segments: u, hasMergeTags: f, canRequestMergeTag: m, isRequestingMergeTag: h, canInsertLogicTag: _, isRequestingLogicTag: y, isEditing: b, startEditing: x, handleInput: S, handleKeydown: C, handleClick: w, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = G({
407
+ let r = t, i = n, a = s(null), { segments: o, hasMergeTags: f, canRequestMergeTag: p, isRequestingMergeTag: g, canInsertLogicTag: _, isRequestingLogicTag: y, isEditing: b, startEditing: x, handleInput: S, handleKeydown: C, handleClick: w, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = G({
408
408
  modelValue: () => r.modelValue,
409
409
  emit: (e) => i("update:modelValue", e),
410
- elementRef: l
410
+ elementRef: a
411
411
  });
412
412
  function k(e) {
413
413
  C(e) || i("keydown", e);
414
414
  }
415
- return (n, r) => g(f) && !g(b) ? (d(), s("div", ie, [c(Z, {
416
- segments: g(u),
415
+ return (n, r) => c(f) && !c(b) ? (e(), u("div", ie, [d(Z, {
416
+ segments: c(o),
417
417
  "display-class": le,
418
418
  pulse: t.pulse,
419
- onEdit: g(x),
420
- onClear: g(E)
419
+ onEdit: c(x),
420
+ onClear: c(E)
421
421
  }, null, 8, [
422
422
  "segments",
423
423
  "pulse",
424
424
  "onEdit",
425
425
  "onClear"
426
- ]), g(m) || g(_) ? (d(), s("div", ae, [g(m) ? (d(), p(Q, {
426
+ ]), c(p) || c(_) ? (e(), u("div", ae, [c(p) ? (e(), h(Q, {
427
427
  key: 0,
428
- disabled: g(h),
429
- onInsert: g(D)
430
- }, null, 8, ["disabled", "onInsert"])) : v("", !0), g(_) ? (d(), p($, {
428
+ disabled: c(g),
429
+ onInsert: c(D)
430
+ }, null, 8, ["disabled", "onInsert"])) : v("", !0), c(_) ? (e(), h($, {
431
431
  key: 1,
432
- disabled: g(y),
433
- onInsert: g(O)
434
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)])) : (d(), s("div", oe, [o("input", {
432
+ disabled: c(y),
433
+ onInsert: c(O)
434
+ }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)])) : (e(), u("div", oe, [l("input", {
435
435
  ref_key: "inputRef",
436
- ref: l,
436
+ ref: a,
437
437
  type: t.type,
438
- class: e([g(P), { "tpl-pulse-fill": t.pulse }]),
438
+ class: m([c(P), { "tpl-pulse-fill": t.pulse }]),
439
439
  value: t.modelValue,
440
440
  placeholder: t.placeholder,
441
- onInput: r[0] ||= (...e) => g(S) && g(S)(...e),
441
+ onInput: r[0] ||= (...e) => c(S) && c(S)(...e),
442
442
  onKeydown: k,
443
- onClick: r[1] ||= (...e) => g(w) && g(w)(...e),
444
- onBlur: r[2] ||= (...e) => g(T) && g(T)(...e)
445
- }, null, 42, se), g(m) || g(_) ? (d(), s("div", ce, [g(m) ? (d(), p(Q, {
443
+ onClick: r[1] ||= (...e) => c(w) && c(w)(...e),
444
+ onBlur: r[2] ||= (...e) => c(T) && c(T)(...e)
445
+ }, null, 42, se), c(p) || c(_) ? (e(), u("div", ce, [c(p) ? (e(), h(Q, {
446
446
  key: 0,
447
- disabled: g(h),
448
- onInsert: g(D)
449
- }, null, 8, ["disabled", "onInsert"])) : v("", !0), g(_) ? (d(), p($, {
447
+ disabled: c(g),
448
+ onInsert: c(D)
449
+ }, null, 8, ["disabled", "onInsert"])) : v("", !0), c(_) ? (e(), h($, {
450
450
  key: 1,
451
- disabled: g(y),
452
- onInsert: g(O)
451
+ disabled: c(y),
452
+ onInsert: c(O)
453
453
  }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : v("", !0)]));
454
454
  }
455
455
  }), [["__scopeId", "data-v-31b31866"]]);