@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
@@ -0,0 +1,782 @@
1
+ import { A as e, At as t, F as n, K as r, M as i, S as a, Z as o, at as s, c, d as l, g as u, h as d, i 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
+ import { R as S } from "./dist-tGkjkX-v.js";
4
+ import { C, D as w, E as T, S as E } from "./useEditorCore-DhlKOYwe.js";
5
+ import { t as D } from "./dist-DBirAJIs.js";
6
+ import { T as O, W as k, Y as A, g as j, k as M, q as N, v as ee } from "./keys-DQA2i1k1.js";
7
+ import { t as P } from "./useI18n-BbdxxpOE.js";
8
+ import { n as F } from "./usePopoverPosition-CprM5p-c.js";
9
+ import { t as I } from "./createLucideIcon-Cwf_nTzE.js";
10
+ import { i as te, n as L, r as ne, t as R } from "./RichTextEditorContent-BnxbQUV9.js";
11
+ import { o as re, s as ie } from "./MergeTagInput-BEjzj4Iu.js";
12
+ import { t as ae } from "./link-3R8it3J7.js";
13
+ import { t as oe } from "./list-Ccdgj46T.js";
14
+ import { t as se } from "./loader-circle-B_tAD4k6.js";
15
+ import { n as ce, r as le, t as ue } from "./text-align-start-DSux2UNn.js";
16
+ import { t as z } from "./_plugin-vue_export-helper-B3ysoDQm.js";
17
+ import { a as de, n as fe, o as pe, s as me } from "./styleConstants-C_YAPdQS.js";
18
+ import { t as B } from "./ColorPicker-BqlZ_TqG.js";
19
+ var V = I({
20
+ name: "face-slightly-smiling",
21
+ size: 24,
22
+ node: [
23
+ ["path", {
24
+ d: "M15 10V9",
25
+ key: "4dkmfx"
26
+ }],
27
+ ["path", {
28
+ d: "M16.472 15a6 6 0 01-8.943 0",
29
+ key: "7qomzy"
30
+ }],
31
+ ["path", {
32
+ d: "M9 10V9",
33
+ key: "1lazqi"
34
+ }],
35
+ ["circle", {
36
+ cx: "12",
37
+ cy: "12",
38
+ r: "10",
39
+ key: "1mglay"
40
+ }]
41
+ ],
42
+ aliases: ["smile"]
43
+ }), he = I({
44
+ name: "list-ordered",
45
+ size: 24,
46
+ node: [
47
+ ["path", {
48
+ d: "M11 5h10",
49
+ key: "1cz7ny"
50
+ }],
51
+ ["path", {
52
+ d: "M11 12h10",
53
+ key: "1438ji"
54
+ }],
55
+ ["path", {
56
+ d: "M11 19h10",
57
+ key: "11t30w"
58
+ }],
59
+ ["path", {
60
+ d: "M4 4h1v5",
61
+ key: "10yrso"
62
+ }],
63
+ ["path", {
64
+ d: "M4 9h2",
65
+ key: "r1h2o0"
66
+ }],
67
+ ["path", {
68
+ d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
69
+ key: "xtkcd5"
70
+ }]
71
+ ]
72
+ }), ge = I({
73
+ name: "remove-formatting",
74
+ size: 24,
75
+ node: [
76
+ ["path", {
77
+ d: "M4 7V4h16v3",
78
+ key: "9msm58"
79
+ }],
80
+ ["path", {
81
+ d: "M5 20h6",
82
+ key: "1h6pxn"
83
+ }],
84
+ ["path", {
85
+ d: "M13 4 8 20",
86
+ key: "kqq6aj"
87
+ }],
88
+ ["path", {
89
+ d: "m15 15 5 5",
90
+ key: "me55sn"
91
+ }],
92
+ ["path", {
93
+ d: "m20 15-5 5",
94
+ key: "11p7ol"
95
+ }]
96
+ ]
97
+ }), _e = I({
98
+ name: "strikethrough",
99
+ size: 24,
100
+ node: [
101
+ ["path", {
102
+ d: "M16 4H9a3 3 0 0 0-2.83 4",
103
+ key: "43sutm"
104
+ }],
105
+ ["path", {
106
+ d: "M14 12a4 4 0 0 1 0 8H6",
107
+ key: "nlfj13"
108
+ }],
109
+ ["line", {
110
+ x1: "4",
111
+ x2: "20",
112
+ y1: "12",
113
+ y2: "12",
114
+ key: "1e0a9i"
115
+ }]
116
+ ]
117
+ }), ve = I({
118
+ name: "subscript",
119
+ size: 24,
120
+ node: [
121
+ ["path", {
122
+ d: "m4 5 8 8",
123
+ key: "1eunvl"
124
+ }],
125
+ ["path", {
126
+ d: "m12 5-8 8",
127
+ key: "1ah0jp"
128
+ }],
129
+ ["path", {
130
+ d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
131
+ key: "e8ta8j"
132
+ }]
133
+ ]
134
+ }), ye = I({
135
+ name: "superscript",
136
+ size: 24,
137
+ node: [
138
+ ["path", {
139
+ d: "m4 19 8-8",
140
+ key: "hr47gm"
141
+ }],
142
+ ["path", {
143
+ d: "m12 19-8-8",
144
+ key: "1dhhmo"
145
+ }],
146
+ ["path", {
147
+ d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
148
+ key: "1dfcux"
149
+ }]
150
+ ]
151
+ }), be = I({
152
+ name: "text-align-justify",
153
+ size: 24,
154
+ node: [
155
+ ["path", {
156
+ d: "M3 5h18",
157
+ key: "1u36vt"
158
+ }],
159
+ ["path", {
160
+ d: "M3 12h18",
161
+ key: "1i2n21"
162
+ }],
163
+ ["path", {
164
+ d: "M3 19h18",
165
+ key: "awlh7x"
166
+ }]
167
+ ],
168
+ aliases: ["align-justify"]
169
+ }), xe = I({
170
+ name: "underline",
171
+ size: 24,
172
+ node: [["path", {
173
+ d: "M6 4v6a6 6 0 0 0 12 0V4",
174
+ key: "9kb039"
175
+ }], ["line", {
176
+ x1: "4",
177
+ x2: "20",
178
+ y1: "20",
179
+ y2: "20",
180
+ key: "nun2al"
181
+ }]]
182
+ }), H = [
183
+ "aria-label",
184
+ "title",
185
+ "aria-expanded"
186
+ ], U = ["aria-label"], W = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, G = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, K = ["aria-label", "onClick"], Se = /* @__PURE__ */ y({
187
+ __name: "EmojiPickerDropdown",
188
+ emits: ["insert"],
189
+ setup(t, { emit: n }) {
190
+ let r = n, { categories: a, isOpen: d, toggle: f, close: h } = T(), { t: y, format: S } = P(), C = o(null), E = o(null), O = _(() => d.value);
191
+ w(C, O), D(E, () => {
192
+ d.value && h();
193
+ });
194
+ function k(e) {
195
+ r("insert", e), h();
196
+ }
197
+ return (t, n) => (e(), l("div", {
198
+ ref_key: "rootRef",
199
+ ref: E,
200
+ class: "tpl:relative"
201
+ }, [c("button", {
202
+ type: "button",
203
+ class: m(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": s(d) }]),
204
+ "aria-label": s(y).paragraphEditor.insertEmoji,
205
+ title: s(y).paragraphEditor.insertEmoji,
206
+ "aria-expanded": s(d),
207
+ "aria-haspopup": "dialog",
208
+ "aria-controls": "tpl-emoji-picker",
209
+ onClick: n[0] ||= (...e) => s(f) && s(f)(...e)
210
+ }, [u(s(V), {
211
+ size: 16,
212
+ "stroke-width": 2
213
+ })], 10, H), s(d) ? (e(), l("div", {
214
+ key: 0,
215
+ id: "tpl-emoji-picker",
216
+ ref_key: "pickerRef",
217
+ ref: C,
218
+ role: "dialog",
219
+ "aria-modal": "false",
220
+ "aria-label": s(y).paragraphEditor.insertEmoji,
221
+ tabindex: "-1",
222
+ class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-[var(--tpl-shadow-lg)]",
223
+ onKeydown: n[1] ||= x(b((...e) => s(h) && s(h)(...e), ["stop", "prevent"]), ["esc"])
224
+ }, [(e(!0), l(g, null, i(s(a), (t) => (e(), l("div", {
225
+ key: t.key,
226
+ class: "tpl:mb-2 tpl:last:mb-0"
227
+ }, [c("div", W, p(s(y).emoji[t.key]), 1), c("div", G, [(e(!0), l(g, null, i(t.emojis, (t) => (e(), l("button", {
228
+ key: t,
229
+ type: "button",
230
+ "aria-label": s(S)(s(y).paragraphEditor.emojiItemLabel, { emoji: t }),
231
+ class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
232
+ onClick: (e) => k(t)
233
+ }, p(t), 9, K))), 128))])]))), 128))], 40, U)) : v("", !0)], 512));
234
+ }
235
+ }), q = [
236
+ "aria-label",
237
+ "title",
238
+ "aria-pressed"
239
+ ], J = /* @__PURE__ */ y({
240
+ __name: "ToolbarIconButton",
241
+ props: {
242
+ icon: {},
243
+ label: {},
244
+ active: { type: Boolean },
245
+ strokeWidth: {},
246
+ size: {}
247
+ },
248
+ setup(t) {
249
+ return (r, i) => (e(), l("button", {
250
+ type: "button",
251
+ class: m(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": t.active }]),
252
+ "aria-label": t.label,
253
+ title: t.label,
254
+ "aria-pressed": t.active ? "true" : "false"
255
+ }, [(e(), h(n(t.icon), {
256
+ size: t.size ?? 16,
257
+ "stroke-width": t.strokeWidth ?? 2
258
+ }, null, 8, ["size", "stroke-width"]))], 10, q));
259
+ }
260
+ }), Y = {}, X = {
261
+ class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
262
+ "aria-hidden": "true"
263
+ };
264
+ function Z(t, n) {
265
+ return e(), l("span", X);
266
+ }
267
+ var Q = /*#__PURE__*/ z(Y, [["render", Z]]), Ce = [
268
+ "value",
269
+ "aria-label",
270
+ "title"
271
+ ], we = { value: "" }, Te = ["value"], $ = /* @__PURE__ */ y({
272
+ __name: "ToolbarSelect",
273
+ props: {
274
+ modelValue: {},
275
+ options: {},
276
+ label: {},
277
+ placeholder: {},
278
+ widthClass: {}
279
+ },
280
+ emits: ["update:modelValue"],
281
+ setup(t, { emit: n }) {
282
+ let r = n;
283
+ function a(e) {
284
+ r("update:modelValue", e.target.value);
285
+ }
286
+ function o(e) {
287
+ return typeof e == "string" ? e : e.value;
288
+ }
289
+ function s(e) {
290
+ return typeof e == "string" ? e : e.label;
291
+ }
292
+ return (n, r) => (e(), l("select", {
293
+ class: m(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none", t.widthClass ?? "tpl:w-20"]),
294
+ value: t.modelValue,
295
+ "aria-label": t.label,
296
+ title: t.label,
297
+ onChange: a
298
+ }, [c("option", we, p(t.placeholder ?? ""), 1), (e(!0), l(g, null, i(t.options, (t) => (e(), l("option", {
299
+ key: o(t),
300
+ value: o(t)
301
+ }, p(s(t)), 9, Te))), 128))], 42, Ce));
302
+ }
303
+ });
304
+ //#endregion
305
+ //#region src/utils/richTextColor.ts
306
+ function Ee(e, t) {
307
+ return e || t || "#000000";
308
+ }
309
+ //#endregion
310
+ //#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
311
+ var De = ["data-tpl-theme", "aria-label"], Oe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ke = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ae = ["aria-label", "title"], je = ["aria-label", "title"], Me = {
312
+ key: 1,
313
+ class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
314
+ }, Ne = /* @__PURE__ */ y({
315
+ __name: "ParagraphToolbar",
316
+ props: {
317
+ editor: {},
318
+ toolbarPosition: {},
319
+ isLoading: { type: Boolean },
320
+ canRequestMergeTag: { type: Boolean },
321
+ canInsertLogicTag: { type: Boolean }
322
+ },
323
+ emits: [
324
+ "open-link-dialog",
325
+ "add-merge-tag",
326
+ "add-logic-tag"
327
+ ],
328
+ setup(n, { emit: r }) {
329
+ let i = n, o = r, m = a(k, null), y = a(N, null), b = A(ee, "ParagraphToolbar"), x = F(), S = a(M, null), C = a(O, null), w = a(j, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = P(), D = b.fonts;
330
+ function I(e) {
331
+ i.editor?.chain().focus().insertContent(e).run();
332
+ }
333
+ function L(e) {
334
+ return i.editor?.getAttributes("textStyle")[e] || "";
335
+ }
336
+ function R(e) {
337
+ let t = i.editor?.chain().focus();
338
+ e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
339
+ }
340
+ function z(e) {
341
+ let t = i.editor?.chain().focus();
342
+ e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
343
+ }
344
+ function V() {
345
+ return i.editor?.isActive("link") ?? !1;
346
+ }
347
+ function H() {
348
+ return i.editor?.getAttributes("link").color || "";
349
+ }
350
+ function U(e) {
351
+ let t = i.editor?.chain().focus();
352
+ t && (V() ? (t.extendMarkRange("link").updateAttributes("link", { color: e || null }), e && t.unsetColor(), t.run()) : e ? t.setColor(e).updateAttributes("link", { color: e }).run() : t.unsetColor().run());
353
+ }
354
+ function W() {
355
+ let e = w?.content.value.settings;
356
+ return V() ? Ee(H(), e?.linkColor || e?.textColor) : Ee(L("color"), e?.textColor);
357
+ }
358
+ function G() {
359
+ return V() ? H() : L("color");
360
+ }
361
+ function K() {
362
+ return i.editor?.getAttributes("paragraph").lineHeight || "";
363
+ }
364
+ function q(e) {
365
+ let t = i.editor?.chain().focus();
366
+ e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
367
+ }
368
+ function Y(e) {
369
+ let t = i.editor?.chain().focus();
370
+ e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
371
+ }
372
+ function X() {
373
+ return i.editor?.getAttributes("highlight").color || "";
374
+ }
375
+ function Z(e) {
376
+ let t = i.editor?.chain().focus();
377
+ e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
378
+ }
379
+ return (r, i) => s(x) && !T.value ? (e(), h(f, {
380
+ key: 0,
381
+ to: s(x)
382
+ }, [c("div", {
383
+ "data-tpl-theme": s(y),
384
+ role: "toolbar",
385
+ "aria-label": s(E).paragraphEditor.toolbar,
386
+ class: "tpl tpl-text-toolbar tpl:absolute tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-[var(--tpl-shadow-lg)]",
387
+ style: t({
388
+ ...s(m),
389
+ top: `${n.toolbarPosition.top}px`,
390
+ left: `${n.toolbarPosition.left}px`,
391
+ transform: "translateY(-100%)",
392
+ flexDirection: "column"
393
+ })
394
+ }, [!n.isLoading && n.editor ? (e(), l(g, { key: 0 }, [c("div", Oe, [
395
+ u($, {
396
+ "model-value": L("fontFamily"),
397
+ options: s(D),
398
+ label: s(E).paragraphEditor.fontFamily,
399
+ placeholder: s(E).paragraphEditor.defaultFont,
400
+ "width-class": "tpl:w-32",
401
+ "onUpdate:modelValue": R
402
+ }, null, 8, [
403
+ "model-value",
404
+ "options",
405
+ "label",
406
+ "placeholder"
407
+ ]),
408
+ u($, {
409
+ "model-value": L("fontSize"),
410
+ options: s(de),
411
+ label: s(E).paragraphEditor.fontSize,
412
+ placeholder: s(E).paragraphEditor.defaultSize,
413
+ "width-class": "tpl:w-20",
414
+ "onUpdate:modelValue": z
415
+ }, null, 8, [
416
+ "model-value",
417
+ "options",
418
+ "label",
419
+ "placeholder"
420
+ ]),
421
+ u(Q),
422
+ u(B, {
423
+ "swatch-only": "",
424
+ size: "sm",
425
+ "data-testid": "text-color-picker",
426
+ "model-value": G(),
427
+ "seed-color": W(),
428
+ "aria-label": s(E).paragraphEditor.textColor,
429
+ "onUpdate:modelValue": U
430
+ }, null, 8, [
431
+ "model-value",
432
+ "seed-color",
433
+ "aria-label"
434
+ ]),
435
+ u(B, {
436
+ "swatch-only": "",
437
+ size: "sm",
438
+ "data-testid": "highlight-color-picker",
439
+ "model-value": X(),
440
+ "seed-color": s(fe),
441
+ "aria-label": s(E).paragraphEditor.highlightColor,
442
+ "onUpdate:modelValue": Z
443
+ }, null, 8, [
444
+ "model-value",
445
+ "seed-color",
446
+ "aria-label"
447
+ ]),
448
+ u(Q),
449
+ u(J, {
450
+ icon: s(te),
451
+ label: s(E).paragraphEditor.bold,
452
+ active: n.editor.isActive("bold"),
453
+ "stroke-width": 2.5,
454
+ onClick: i[0] ||= (e) => n.editor.chain().focus().toggleBold().run()
455
+ }, null, 8, [
456
+ "icon",
457
+ "label",
458
+ "active"
459
+ ]),
460
+ u(J, {
461
+ icon: s(ne),
462
+ label: s(E).paragraphEditor.italic,
463
+ active: n.editor.isActive("italic"),
464
+ onClick: i[1] ||= (e) => n.editor.chain().focus().toggleItalic().run()
465
+ }, null, 8, [
466
+ "icon",
467
+ "label",
468
+ "active"
469
+ ]),
470
+ u(J, {
471
+ icon: s(xe),
472
+ label: s(E).paragraphEditor.underline,
473
+ active: n.editor.isActive("underline"),
474
+ onClick: i[2] ||= (e) => n.editor.chain().focus().toggleUnderline().run()
475
+ }, null, 8, [
476
+ "icon",
477
+ "label",
478
+ "active"
479
+ ]),
480
+ u(J, {
481
+ icon: s(_e),
482
+ label: s(E).paragraphEditor.strikethrough,
483
+ active: n.editor.isActive("strike"),
484
+ onClick: i[3] ||= (e) => n.editor.chain().focus().toggleStrike().run()
485
+ }, null, 8, [
486
+ "icon",
487
+ "label",
488
+ "active"
489
+ ]),
490
+ u(Q),
491
+ u(J, {
492
+ icon: s(ve),
493
+ label: s(E).paragraphEditor.subscript,
494
+ active: n.editor.isActive("subscript"),
495
+ onClick: i[4] ||= (e) => n.editor.chain().focus().toggleSubscript().run()
496
+ }, null, 8, [
497
+ "icon",
498
+ "label",
499
+ "active"
500
+ ]),
501
+ u(J, {
502
+ icon: s(ye),
503
+ label: s(E).paragraphEditor.superscript,
504
+ active: n.editor.isActive("superscript"),
505
+ onClick: i[5] ||= (e) => n.editor.chain().focus().toggleSuperscript().run()
506
+ }, null, 8, [
507
+ "icon",
508
+ "label",
509
+ "active"
510
+ ]),
511
+ u(Q),
512
+ u(J, {
513
+ icon: s(ae),
514
+ label: s(E).paragraphEditor.addLink,
515
+ active: n.editor.isActive("link"),
516
+ onClick: i[6] ||= (e) => o("open-link-dialog")
517
+ }, null, 8, [
518
+ "icon",
519
+ "label",
520
+ "active"
521
+ ])
522
+ ]), c("div", ke, [
523
+ u(J, {
524
+ icon: s(oe),
525
+ label: s(E).paragraphEditor.bulletList,
526
+ active: n.editor.isActive("bulletList"),
527
+ onClick: i[7] ||= (e) => n.editor.chain().focus().toggleBulletList().run()
528
+ }, null, 8, [
529
+ "icon",
530
+ "label",
531
+ "active"
532
+ ]),
533
+ u(J, {
534
+ icon: s(he),
535
+ label: s(E).paragraphEditor.numberedList,
536
+ active: n.editor.isActive("orderedList"),
537
+ onClick: i[8] ||= (e) => n.editor.chain().focus().toggleOrderedList().run()
538
+ }, null, 8, [
539
+ "icon",
540
+ "label",
541
+ "active"
542
+ ]),
543
+ u(Q),
544
+ u(J, {
545
+ icon: s(ue),
546
+ label: s(E).paragraphEditor.alignLeft,
547
+ active: n.editor.isActive({ textAlign: "left" }),
548
+ onClick: i[9] ||= (e) => n.editor.chain().focus().setTextAlign("left").run()
549
+ }, null, 8, [
550
+ "icon",
551
+ "label",
552
+ "active"
553
+ ]),
554
+ u(J, {
555
+ icon: s(le),
556
+ label: s(E).paragraphEditor.alignCenter,
557
+ active: n.editor.isActive({ textAlign: "center" }),
558
+ onClick: i[10] ||= (e) => n.editor.chain().focus().setTextAlign("center").run()
559
+ }, null, 8, [
560
+ "icon",
561
+ "label",
562
+ "active"
563
+ ]),
564
+ u(J, {
565
+ icon: s(ce),
566
+ label: s(E).paragraphEditor.alignRight,
567
+ active: n.editor.isActive({ textAlign: "right" }),
568
+ onClick: i[11] ||= (e) => n.editor.chain().focus().setTextAlign("right").run()
569
+ }, null, 8, [
570
+ "icon",
571
+ "label",
572
+ "active"
573
+ ]),
574
+ u(J, {
575
+ icon: s(be),
576
+ label: s(E).paragraphEditor.alignJustify,
577
+ active: n.editor.isActive({ textAlign: "justify" }),
578
+ onClick: i[12] ||= (e) => n.editor.chain().focus().setTextAlign("justify").run()
579
+ }, null, 8, [
580
+ "icon",
581
+ "label",
582
+ "active"
583
+ ]),
584
+ u(Q),
585
+ u($, {
586
+ "model-value": K(),
587
+ options: s(me),
588
+ label: s(E).paragraphEditor.lineHeight,
589
+ placeholder: "LH",
590
+ "width-class": "tpl:w-16",
591
+ "onUpdate:modelValue": q
592
+ }, null, 8, [
593
+ "model-value",
594
+ "options",
595
+ "label"
596
+ ]),
597
+ u($, {
598
+ "model-value": L("letterSpacing"),
599
+ options: s(pe),
600
+ label: s(E).paragraphEditor.letterSpacing,
601
+ placeholder: "LS",
602
+ "width-class": "tpl:w-20",
603
+ "onUpdate:modelValue": Y
604
+ }, null, 8, [
605
+ "model-value",
606
+ "options",
607
+ "label"
608
+ ]),
609
+ u(Q),
610
+ u(J, {
611
+ icon: s(ge),
612
+ label: s(E).paragraphEditor.clearFormatting,
613
+ onClick: i[13] ||= (e) => n.editor.chain().focus().clearNodes().unsetAllMarks().run()
614
+ }, null, 8, ["icon", "label"]),
615
+ u(Q),
616
+ u(Se, { onInsert: I }),
617
+ n.canRequestMergeTag ? (e(), l(g, { key: 0 }, [u(Q), c("button", {
618
+ type: "button",
619
+ class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
620
+ "aria-label": s(E).mergeTag.insert,
621
+ title: s(E).mergeTag.insert,
622
+ onClick: i[14] ||= (e) => o("add-merge-tag")
623
+ }, [u(s(re), {
624
+ size: 16,
625
+ "stroke-width": 2
626
+ }), d(" " + p(s(E).mergeTag.insertShort), 1)], 8, Ae)], 64)) : v("", !0),
627
+ n.canInsertLogicTag ? (e(), l(g, { key: 1 }, [u(Q), c("button", {
628
+ type: "button",
629
+ class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
630
+ "aria-label": s(E).logicTag.insert,
631
+ title: s(E).logicTag.insert,
632
+ "data-testid": "insert-logic-button",
633
+ onClick: i[15] ||= (e) => o("add-logic-tag")
634
+ }, [u(s(ie), {
635
+ size: 16,
636
+ "stroke-width": 2
637
+ }), d(" " + p(s(E).logicTag.insertShort), 1)], 8, je)], 64)) : v("", !0)
638
+ ])], 64)) : (e(), l("div", Me, [u(s(se), {
639
+ class: "tpl-spinner",
640
+ size: 14,
641
+ "stroke-width": 2
642
+ }), d(" " + p(s(E).errors.editorLoading), 1)]))], 12, De)], 8, ["to"])) : v("", !0);
643
+ }
644
+ }), Pe = { class: "tpl-text-editor-wrapper tpl:relative" }, Fe = /* @__PURE__ */ y({
645
+ __name: "ParagraphEditor",
646
+ props: {
647
+ block: {},
648
+ toolbarPosition: {}
649
+ },
650
+ emits: ["done"],
651
+ setup(t, { emit: n }) {
652
+ let i = t, o = n, c = F(), d = a(j, null), f = S(d?.content?.value?.settings ?? { locale: "en" }) === "rtl" ? "right" : "left", { editor: p, EditorContent: m, isLoading: h, initError: g, retry: _, showLinkDialog: v, linkUrl: y, linkColor: b, linkDialogRef: x, canRequestMergeTag: w, canInsertLogicTag: T, openLinkDialog: D, insertLink: O, removeLink: k, closeLinkDialog: A, handleLinkKeydown: M, handleAddMergeTag: N, handleAddLogicTag: ee } = E({
653
+ blockId: () => i.block.id,
654
+ blockContent: () => i.block.content,
655
+ onDone: () => o("done"),
656
+ editorName: "ParagraphEditor",
657
+ async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
658
+ let [{ Editor: a, EditorContent: o }, { default: s }, { default: l }, { default: u }, { default: d }, { default: p }, { default: m }, { TextStyle: h }, { default: g }, { default: _ }, { default: v }, { MergeTagNode: y, MergeTagSuggestion: b, LogicMergeTagNode: x, FontSize: S, LineHeight: w, LetterSpacing: T, LineBoundaryKeys: E }] = await Promise.all([
659
+ import("./dist-BVqAYoRB.js").then((e) => e.r),
660
+ import("./dist-DkcA6epL.js"),
661
+ import("./dist-C1tsW_99.js"),
662
+ import("./dist-DC-3T0ED.js"),
663
+ import("./dist-ByT5fgKq.js"),
664
+ import("./dist-CtMXAH7a.js"),
665
+ import("./dist-CtF9STPS.js"),
666
+ import("./dist-D7WY8VPq.js"),
667
+ import("./dist-D08oVYhr.js"),
668
+ import("./dist-DzdeVn-W.js"),
669
+ import("./dist-f7HXo6j6.js"),
670
+ import("./extensions-CHOBZRab.js")
671
+ ]);
672
+ return {
673
+ TiptapEditor: a,
674
+ EC: o,
675
+ extensions: [
676
+ s.configure({
677
+ heading: !1,
678
+ codeBlock: !1,
679
+ blockquote: !1,
680
+ horizontalRule: !1,
681
+ link: !1,
682
+ underline: !1
683
+ }),
684
+ u,
685
+ d,
686
+ p,
687
+ C(l).configure({
688
+ openOnClick: !1,
689
+ HTMLAttributes: {
690
+ target: "_blank",
691
+ rel: "noopener noreferrer"
692
+ }
693
+ }),
694
+ m.configure({
695
+ types: ["paragraph"],
696
+ defaultAlignment: f
697
+ }),
698
+ h,
699
+ g,
700
+ _,
701
+ v.configure({ multicolor: !0 }),
702
+ S,
703
+ w,
704
+ T,
705
+ y.configure({
706
+ mergeTags: e,
707
+ syntax: t
708
+ }),
709
+ x.configure({ syntax: t }),
710
+ E,
711
+ ...r && n && e.length > 0 ? [b.configure({
712
+ mergeTags: e,
713
+ char: n,
714
+ emptyText: i,
715
+ popoverRoot: c
716
+ })] : []
717
+ ]
718
+ };
719
+ }
720
+ });
721
+ return (n, i) => (e(), l("div", Pe, [
722
+ u(Ne, {
723
+ editor: s(p),
724
+ "toolbar-position": t.toolbarPosition,
725
+ "is-loading": s(h),
726
+ "can-request-merge-tag": s(w),
727
+ "can-insert-logic-tag": s(T),
728
+ onOpenLinkDialog: s(D),
729
+ onAddMergeTag: s(N),
730
+ onAddLogicTag: s(ee)
731
+ }, null, 8, [
732
+ "editor",
733
+ "toolbar-position",
734
+ "is-loading",
735
+ "can-request-merge-tag",
736
+ "can-insert-logic-tag",
737
+ "onOpenLinkDialog",
738
+ "onAddMergeTag",
739
+ "onAddLogicTag"
740
+ ]),
741
+ u(R, {
742
+ editor: s(p),
743
+ "editor-content": s(m),
744
+ "is-loading": s(h),
745
+ "init-error": s(g),
746
+ onRetry: s(_)
747
+ }, null, 8, [
748
+ "editor",
749
+ "editor-content",
750
+ "is-loading",
751
+ "init-error",
752
+ "onRetry"
753
+ ]),
754
+ u(L, {
755
+ visible: s(v),
756
+ "is-editing-link": s(p)?.isActive("link") ?? !1,
757
+ "dialog-ref": s(x),
758
+ "onUpdate:dialogRef": i[0] ||= (e) => r(x) ? x.value = e : null,
759
+ "link-url": s(y),
760
+ "onUpdate:linkUrl": i[1] ||= (e) => r(y) ? y.value = e : null,
761
+ "link-color": s(b),
762
+ "onUpdate:linkColor": i[2] ||= (e) => r(b) ? b.value = e : null,
763
+ onClose: s(A),
764
+ onInsert: s(O),
765
+ onRemove: s(k),
766
+ onKeydown: s(M)
767
+ }, null, 8, [
768
+ "visible",
769
+ "is-editing-link",
770
+ "dialog-ref",
771
+ "link-url",
772
+ "link-color",
773
+ "onClose",
774
+ "onInsert",
775
+ "onRemove",
776
+ "onKeydown"
777
+ ])
778
+ ]));
779
+ }
780
+ });
781
+ //#endregion
782
+ export { Fe as default };