@templatical/editor 0.34.3 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/dist/{AiChatSidebar-CkHJ28sf.js → AiChatSidebar-tu4eLcf_.js} +78 -70
  2. package/dist/{AiFeatureMenu-DWdKguDN.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
  3. package/dist/{BlockIssueBadge-DcyHTAqw.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
  4. package/dist/BlockPreviewCanvas-DDCmMram.js +131 -0
  5. package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
  6. package/dist/{CloudPanels-BGz9ygo6.js → CloudPanels-Iwnky0iA.js} +78 -108
  7. package/dist/CollaboratorBar-DAITu0hz.js +103 -0
  8. package/dist/{ColorPicker-C6EOwtHC.js → ColorPicker-BqlZ_TqG.js} +193 -193
  9. package/dist/{CommentsPanel-DmWh8f08.js → CommentsPanel-CDvgmWP1.js} +3 -3
  10. package/dist/{CommentsSidebar-CL_tffzT.js → CommentsSidebar-X_xqM3dR.js} +182 -173
  11. package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
  12. package/dist/{CountdownToolbar-B8J4i5Xp.js → CountdownToolbar-DBFoG3a6.js} +67 -67
  13. package/dist/{DesignReferenceSidebar-BDhEeaAh.js → DesignReferenceSidebar--QtXjLrw.js} +103 -95
  14. package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
  15. package/dist/IssuesPanel-BLbNFMSX.js +117 -0
  16. package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
  17. package/dist/MediaPanels-CMTAhDXB.js +43 -0
  18. package/dist/{MergeTagInput-RytOlh1A.js → MergeTagInput-BEjzj4Iu.js} +153 -144
  19. package/dist/{MergeTagModeToggle-Bi-FydXj.js → MergeTagModeToggle-DKN6ihI5.js} +108 -96
  20. package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
  21. package/dist/ParagraphEditor-1E9yzOfk.js +782 -0
  22. package/dist/{RestoreVersionDialog-Db5rZRMA.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
  23. package/dist/RichTextEditorContent-BnxbQUV9.js +154 -0
  24. package/dist/{SaveBlockDialog-CDCzx6Bo.js → SaveBlockDialog-WKASpCCT.js} +78 -78
  25. package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
  26. package/dist/{SavedBlocksPanels-DFzV0CRD.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
  27. package/dist/{SavedBlocksPickBar-XyXmnSnO.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
  28. package/dist/TemplateScoringPanel-CSin43YM.js +267 -0
  29. package/dist/{TestEmailModal-DIfJy9eE.js → TestEmailModal-BxizsRCd.js} +59 -59
  30. package/dist/{TestEmailPanel-C8Wx5yPS.js → TestEmailPanel-vd2e5HzT.js} +3 -3
  31. package/dist/TitleEditor-CLJ68Ty4.js +199 -0
  32. package/dist/TplModal-Q9fDgS1M.js +51 -0
  33. package/dist/{VersionHistoryMenu-CV90OhXs.js → VersionHistoryMenu-eGYVhM4H.js} +48 -46
  34. package/dist/{VersionHistoryPanels-BE3pplJG.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
  35. package/dist/{VersionPreviewBanner-BwUWBtlH.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
  36. package/dist/blockTypeIcons-5qD4bB76.js +163 -0
  37. package/dist/bundle-stats.json +8 -8
  38. package/dist/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +2 -0
  39. package/dist/ca-Jx2CDwtn.js +83 -0
  40. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js → AiChatSidebar-dyqqHAcI.js} +4 -4
  41. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
  43. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
  45. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
  46. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js +133 -0
  47. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
  49. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js → CloudPanels-DkmR05nB.js} +15 -45
  51. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
  53. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
  54. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js → ColorPicker-LcrzgMoW.js} +7 -7
  55. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js → CommentsPanel-CntwwocI.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js → CommentsSidebar-BLDKnKy7.js} +4 -4
  59. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
  61. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js → CountdownToolbar-CA1dpuOI.js} +3 -3
  63. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js → IssuesPanel-Q62LTqvd.js} +5 -5
  67. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
  68. package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
  69. package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
  70. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js → MergeTagInput-l7paaAml.js} +8 -8
  71. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js → MergeTagModeToggle-DYxkAGtA.js} +5 -5
  73. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js → ParagraphEditor-Bd-GQXee.js} +176 -172
  75. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
  77. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
  79. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js → SaveBlockDialog-CufdTomT.js} +15 -15
  81. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
  85. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
  89. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
  90. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js → TestEmailModal-BTNlSW6f.js} +11 -11
  91. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
  93. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
  94. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js → TitleEditor-CrnuIq62.js} +9 -9
  95. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
  96. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js → TplModal-DYXrTz42.js} +5 -5
  97. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js.map → TplModal-DYXrTz42.js.map} +1 -1
  98. package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js → VersionHistoryMenu-bDGnE4hb.js} +6 -6
  99. package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
  100. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
  101. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
  102. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
  103. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
  104. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js → blockTypeIcons-CNjJSFun.js} +2 -2
  105. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
  106. package/dist/cdn/chunks/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +3 -1
  107. package/dist/cdn/chunks/{ca-C0hfqt4U.js.map → ca-D9S-UCfZ.js.map} +1 -1
  108. package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
  109. package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
  110. package/dist/cdn/chunks/{cloud-BP5-6__d.js → cloud-BLgCKP7Z.js} +453 -228
  111. package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
  112. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
  113. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
  114. package/dist/{de-C6J2Iae8.js → cdn/chunks/de-BUPszLpi.js} +4 -0
  115. package/dist/cdn/chunks/{de-C6J2Iae8.js.map → de-BUPszLpi.js.map} +1 -1
  116. package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
  117. package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
  118. package/dist/cdn/chunks/{src-Cxl-9O-L.js → editor-modal-MXgtarMl.js} +1473 -1934
  119. package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
  120. package/dist/cdn/chunks/{en-BaUYOQi8.js → en-BbOC5x3w.js} +3 -1
  121. package/dist/cdn/chunks/en-BbOC5x3w.js.map +1 -0
  122. package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
  123. package/dist/cdn/chunks/{es-CKDYfJYn.js → es-0bCDcT9p.js} +3 -1
  124. package/dist/cdn/chunks/{es-CKDYfJYn.js.map → es-0bCDcT9p.js.map} +1 -1
  125. package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
  126. package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
  127. package/dist/cdn/chunks/{extensions-7z04EIGg.js → extensions-B8_jnIkD.js} +4 -4
  128. package/dist/cdn/chunks/{extensions-7z04EIGg.js.map → extensions-B8_jnIkD.js.map} +1 -1
  129. package/dist/{fr-L8DR73mK.js → cdn/chunks/fr-Brr8mJ9e.js} +4 -0
  130. package/dist/cdn/chunks/fr-Brr8mJ9e.js.map +1 -0
  131. package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
  132. package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
  133. package/dist/cdn/chunks/icons-BUlqGSgd.js +1675 -0
  134. package/dist/cdn/chunks/icons-BUlqGSgd.js.map +1 -0
  135. package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
  136. package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
  137. package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
  138. package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
  139. package/dist/{nl-GDWeuX18.js → cdn/chunks/nl-Co3_RL0M.js} +4 -0
  140. package/dist/cdn/chunks/nl-Co3_RL0M.js.map +1 -0
  141. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js → preRenderCustomBlocks-Bdpiiw4A.js} +2 -2
  142. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js.map → preRenderCustomBlocks-Bdpiiw4A.js.map} +1 -1
  143. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +3 -1
  144. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js.map → pt-BR-BECez5b0.js.map} +1 -1
  145. package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
  146. package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
  147. package/dist/cdn/chunks/{src-BM3f9I7t.js → src-CUvZWL6Y.js} +83 -83
  148. package/dist/cdn/chunks/src-CUvZWL6Y.js.map +1 -0
  149. package/dist/cdn/chunks/{src-BDvZrpFH.js → src-DZ0C9mH7.js} +161 -160
  150. package/dist/cdn/chunks/src-DZ0C9mH7.js.map +1 -0
  151. package/dist/cdn/chunks/{src-CLoCCDfs.js → src-Dwgq7hf4.js} +71 -48
  152. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -0
  153. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
  154. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
  155. package/dist/cdn/chunks/{useEditorCore-ehUSEsbw.js → useEditorCore-Cs7rYVBo.js} +614 -522
  156. package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
  157. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
  158. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
  159. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
  160. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
  161. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js → useMergeTag-BYAifvh8.js} +4 -4
  162. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
  163. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
  164. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
  165. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
  166. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
  167. package/dist/cdn/editor.css +1 -1
  168. package/dist/cdn/editor.js +1195 -1095
  169. package/dist/cdn/editor.js.map +1 -1
  170. package/dist/check-DWtkBzBU.js +11 -0
  171. package/dist/chevron-down-C-Fjxcqj.js +11 -0
  172. package/dist/chevron-right-SOkn2d4P.js +11 -0
  173. package/dist/chevron-up-lntU1ypp.js +11 -0
  174. package/dist/circle-alert-CjzUTwy3.js +30 -0
  175. package/dist/clock-pB2QKPsJ.js +16 -0
  176. package/dist/{cloud-BMzRKCbk.js → cloud-DdidMW6f.js} +446 -201
  177. package/dist/copy-CId1E038.js +19 -0
  178. package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
  179. package/dist/createLucideIcon-Cwf_nTzE.js +96 -0
  180. package/dist/{cdn/chunks/de-C6J2Iae8.js → de-BUPszLpi.js} +2 -2
  181. package/dist/de-Ck0pBGHu.js +83 -0
  182. package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
  183. package/dist/dist-D8i1ixHK.js +177 -0
  184. package/dist/dist-DBirAJIs.js +410 -0
  185. package/dist/{dist-PL6vP4SC.js → dist-tGkjkX-v.js} +143 -122
  186. package/dist/editor-modal-B_LaQf0s.js +5998 -0
  187. package/dist/{en-BaUYOQi8.js → en-BbOC5x3w.js} +2 -0
  188. package/dist/en-DcmpWV53.js +2 -0
  189. package/dist/{es-CKDYfJYn.js → es-0bCDcT9p.js} +2 -0
  190. package/dist/es-lagTvUfX.js +83 -0
  191. package/dist/{extensions-Mf8iHey9.js → extensions-CHOBZRab.js} +43 -43
  192. package/dist/eye-BuGtFUoJ.js +16 -0
  193. package/dist/{cdn/chunks/fr-L8DR73mK.js → fr-Brr8mJ9e.js} +2 -2
  194. package/dist/fr-C4hVl5Lk.js +83 -0
  195. package/dist/image-up-gH4JEpU5.js +27 -0
  196. package/dist/index.d.ts +77 -11
  197. package/dist/info-BQ60P82u.js +23 -0
  198. package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
  199. package/dist/link-3R8it3J7.js +14 -0
  200. package/dist/list-Ccdgj46T.js +33 -0
  201. package/dist/loader-circle-B_tAD4k6.js +12 -0
  202. package/dist/message-circle-P-KSc6V0.js +11 -0
  203. package/dist/nl-CReD7Apd.js +83 -0
  204. package/dist/{cdn/chunks/nl-GDWeuX18.js → nl-Co3_RL0M.js} +2 -2
  205. package/dist/pencil-9ZiwqS4r.js +14 -0
  206. package/dist/plus-BwJEzCaO.js +14 -0
  207. package/dist/{preRenderCustomBlocks-CSIF-HyJ.js → preRenderCustomBlocks-DFXH54Zr.js} +1 -1
  208. package/dist/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +2 -0
  209. package/dist/pt-BR-BRA0-vGP.js +83 -0
  210. package/dist/refresh-cw-DEgfb2FK.js +25 -0
  211. package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
  212. package/dist/search-DqQ8Li5E.js +16 -0
  213. package/dist/send-CE6uvqop.js +14 -0
  214. package/dist/shield-check-DhD1Z3rd.js +14 -0
  215. package/dist/sparkles-R0ZQHa6F.js +28 -0
  216. package/dist/style.css +1 -1
  217. package/dist/templatical-editor.js +2742 -2590
  218. package/dist/text-align-start-DSux2UNn.js +58 -0
  219. package/dist/trash-Cf_SqsER.js +30 -0
  220. package/dist/triangle-alert-C6tGa6jw.js +22 -0
  221. package/dist/upload-DusKjpVr.js +21 -0
  222. package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
  223. package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
  224. package/dist/{useEditorCore-DdkQuTHl.js → useEditorCore-DhlKOYwe.js} +1780 -1651
  225. package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
  226. package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
  227. package/dist/{useMergeTag-gSuYus-M.js → useMergeTag-DlvOBW_B.js} +4 -4
  228. package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
  229. package/dist/useScrollToBlock-BTFw0b9O.js +48 -0
  230. package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
  231. package/dist/x-D_-42Ukq.js +14 -0
  232. package/package.json +9 -12
  233. package/dist/BlockPreviewCanvas-B621ANn9.js +0 -129
  234. package/dist/CloudHeaderExtras-BJ3Cebhv.js +0 -59
  235. package/dist/CollaboratorBar-KphmSQeZ.js +0 -95
  236. package/dist/IssuesPanel-CiOjeRFI.js +0 -109
  237. package/dist/ParagraphEditor-C87tkmtE.js +0 -767
  238. package/dist/RichTextEditorContent-BmTcV2-a.js +0 -152
  239. package/dist/SavedBlocksBrowserModal-DQR6kJB1.js +0 -322
  240. package/dist/TemplateScoringPanel-CpyEKMzC.js +0 -257
  241. package/dist/TitleEditor-iNFOisr4.js +0 -198
  242. package/dist/TplModal-CowM3o_F.js +0 -51
  243. package/dist/blockTypeIcons-DQsKtHik.js +0 -134
  244. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js +0 -131
  245. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js.map +0 -1
  246. package/dist/cdn/chunks/VersionHistoryMenu-DDjIBvad.js.map +0 -1
  247. package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
  248. package/dist/cdn/chunks/cloud-BP5-6__d.js.map +0 -1
  249. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js +0 -443
  250. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js.map +0 -1
  251. package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
  252. package/dist/cdn/chunks/en-BaUYOQi8.js.map +0 -1
  253. package/dist/cdn/chunks/en-mEKGL1PX.js +0 -2
  254. package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
  255. package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
  256. package/dist/cdn/chunks/fr-L8DR73mK.js.map +0 -1
  257. package/dist/cdn/chunks/icons-SP5Itd-A.js +0 -1218
  258. package/dist/cdn/chunks/icons-SP5Itd-A.js.map +0 -1
  259. package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
  260. package/dist/cdn/chunks/nl-GDWeuX18.js.map +0 -1
  261. package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
  262. package/dist/cdn/chunks/src-BDvZrpFH.js.map +0 -1
  263. package/dist/cdn/chunks/src-BM3f9I7t.js.map +0 -1
  264. package/dist/cdn/chunks/src-CLoCCDfs.js.map +0 -1
  265. package/dist/cdn/chunks/src-Cxl-9O-L.js.map +0 -1
  266. package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +0 -1
  267. package/dist/check-JK8Uacq0.js +0 -7
  268. package/dist/chevron-down-a-fb_Ijn.js +0 -7
  269. package/dist/chevron-up-x4l0et_Y.js +0 -7
  270. package/dist/circle-alert-CJDW5LZo.js +0 -25
  271. package/dist/clock-BW6rXk2f.js +0 -12
  272. package/dist/createCloudRuntime-DbTFm1ES.js +0 -441
  273. package/dist/createLucideIcon-Bvw1Zx56.js +0 -43
  274. package/dist/dist-dNiknO7j.js +0 -251
  275. package/dist/dist-heatwAdo.js +0 -150
  276. package/dist/image-up-CuzFc1mu.js +0 -23
  277. package/dist/info-DybAwcA3.js +0 -19
  278. package/dist/loader-circle-t-SVgmJ3.js +0 -7
  279. package/dist/message-circle-DtwKrlhN.js +0 -7
  280. package/dist/pencil-2qhC-Y4q.js +0 -10
  281. package/dist/refresh-cw-C8SBuPdg.js +0 -29
  282. package/dist/send-BoqJliF6.js +0 -10
  283. package/dist/shield-check-D0dMaHtE.js +0 -10
  284. package/dist/sparkles-Dy2BJjiX.js +0 -23
  285. package/dist/text-align-start-DrxjxvIy.js +0 -43
  286. package/dist/trash-rYMzzHZd.js +0 -25
  287. package/dist/triangle-alert-DxnFj4-B.js +0 -17
  288. package/dist/upload-DZu1adQz.js +0 -17
  289. package/dist/useScrollToBlock-CdI8fGqt.js +0 -44
  290. package/dist/x-DJOd1hS4.js +0 -10
@@ -1,767 +0,0 @@
1
- import { Dt as e, G as t, Ot as n, P as r, S as i, X as a, c as o, d as s, g as c, h as l, i as u, j as d, k as f, kt as p, l 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";
3
- import { C as S, D as C, E as w, S as T } from "./useEditorCore-DdkQuTHl.js";
4
- import { t as E } from "./dist-dNiknO7j.js";
5
- import { J as D, K as O, O as k, U as ee, _ as te, h as ne, w as re } from "./keys-C3P1yxnr.js";
6
- import { t as A } from "./useI18n-CL6RfPzK.js";
7
- import { n as j } from "./usePopoverPosition-CWxaIWd3.js";
8
- import { t as M } from "./createLucideIcon-Bvw1Zx56.js";
9
- import { a as N, i as ie, n as P, r as ae, t as F } from "./RichTextEditorContent-BmTcV2-a.js";
10
- import { o as oe, s as se } from "./MergeTagInput-RytOlh1A.js";
11
- import { t as ce } from "./loader-circle-t-SVgmJ3.js";
12
- import { n as le, r as ue, t as de } from "./text-align-start-DrxjxvIy.js";
13
- import { t as I } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { a as fe, n as pe, o as me, s as he } from "./styleConstants-C_YAPdQS.js";
15
- import { t as L } from "./ColorPicker-C6EOwtHC.js";
16
- var R = M("face-slightly-smiling", [
17
- ["path", {
18
- d: "M15 10V9",
19
- key: "4dkmfx"
20
- }],
21
- ["path", {
22
- d: "M16.472 15a6 6 0 01-8.943 0",
23
- key: "7qomzy"
24
- }],
25
- ["path", {
26
- d: "M9 10V9",
27
- key: "1lazqi"
28
- }],
29
- ["circle", {
30
- cx: "12",
31
- cy: "12",
32
- r: "10",
33
- key: "1mglay"
34
- }]
35
- ]), ge = M("list-ordered", [
36
- ["path", {
37
- d: "M11 5h10",
38
- key: "1cz7ny"
39
- }],
40
- ["path", {
41
- d: "M11 12h10",
42
- key: "1438ji"
43
- }],
44
- ["path", {
45
- d: "M11 19h10",
46
- key: "11t30w"
47
- }],
48
- ["path", {
49
- d: "M4 4h1v5",
50
- key: "10yrso"
51
- }],
52
- ["path", {
53
- d: "M4 9h2",
54
- key: "r1h2o0"
55
- }],
56
- ["path", {
57
- d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
58
- key: "xtkcd5"
59
- }]
60
- ]), _e = M("list", [
61
- ["path", {
62
- d: "M3 5h.01",
63
- key: "18ugdj"
64
- }],
65
- ["path", {
66
- d: "M3 12h.01",
67
- key: "nlz23k"
68
- }],
69
- ["path", {
70
- d: "M3 19h.01",
71
- key: "noohij"
72
- }],
73
- ["path", {
74
- d: "M8 5h13",
75
- key: "1pao27"
76
- }],
77
- ["path", {
78
- d: "M8 12h13",
79
- key: "1za7za"
80
- }],
81
- ["path", {
82
- d: "M8 19h13",
83
- key: "m83p4d"
84
- }]
85
- ]), ve = M("remove-formatting", [
86
- ["path", {
87
- d: "M4 7V4h16v3",
88
- key: "9msm58"
89
- }],
90
- ["path", {
91
- d: "M5 20h6",
92
- key: "1h6pxn"
93
- }],
94
- ["path", {
95
- d: "M13 4 8 20",
96
- key: "kqq6aj"
97
- }],
98
- ["path", {
99
- d: "m15 15 5 5",
100
- key: "me55sn"
101
- }],
102
- ["path", {
103
- d: "m20 15-5 5",
104
- key: "11p7ol"
105
- }]
106
- ]), ye = M("strikethrough", [
107
- ["path", {
108
- d: "M16 4H9a3 3 0 0 0-2.83 4",
109
- key: "43sutm"
110
- }],
111
- ["path", {
112
- d: "M14 12a4 4 0 0 1 0 8H6",
113
- key: "nlfj13"
114
- }],
115
- ["line", {
116
- x1: "4",
117
- x2: "20",
118
- y1: "12",
119
- y2: "12",
120
- key: "1e0a9i"
121
- }]
122
- ]), be = M("subscript", [
123
- ["path", {
124
- d: "m4 5 8 8",
125
- key: "1eunvl"
126
- }],
127
- ["path", {
128
- d: "m12 5-8 8",
129
- key: "1ah0jp"
130
- }],
131
- ["path", {
132
- 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",
133
- key: "e8ta8j"
134
- }]
135
- ]), xe = M("superscript", [
136
- ["path", {
137
- d: "m4 19 8-8",
138
- key: "hr47gm"
139
- }],
140
- ["path", {
141
- d: "m12 19-8-8",
142
- key: "1dhhmo"
143
- }],
144
- ["path", {
145
- 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",
146
- key: "1dfcux"
147
- }]
148
- ]), Se = M("text-align-justify", [
149
- ["path", {
150
- d: "M3 5h18",
151
- key: "1u36vt"
152
- }],
153
- ["path", {
154
- d: "M3 12h18",
155
- key: "1i2n21"
156
- }],
157
- ["path", {
158
- d: "M3 19h18",
159
- key: "awlh7x"
160
- }]
161
- ]), Ce = M("underline", [["path", {
162
- d: "M6 4v6a6 6 0 0 0 12 0V4",
163
- key: "9kb039"
164
- }], ["line", {
165
- x1: "4",
166
- x2: "20",
167
- y1: "20",
168
- y2: "20",
169
- key: "nun2al"
170
- }]]), z = [
171
- "aria-label",
172
- "title",
173
- "aria-expanded"
174
- ], B = ["aria-label"], V = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, H = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, U = ["aria-label", "onClick"], we = /* @__PURE__ */ y({
175
- __name: "EmojiPickerDropdown",
176
- emits: ["insert"],
177
- setup(t, { emit: n }) {
178
- let r = n, { categories: i, isOpen: l, toggle: u, close: m } = w(), { t: y, format: S } = A(), T = a(null), D = a(null), O = _(() => l.value);
179
- C(T, O), E(D, () => {
180
- l.value && m();
181
- });
182
- function k(e) {
183
- r("insert", e), m();
184
- }
185
- return (t, n) => (f(), s("div", {
186
- ref_key: "rootRef",
187
- ref: D,
188
- class: "tpl:relative"
189
- }, [o("button", {
190
- type: "button",
191
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": g(l) }]),
192
- "aria-label": g(y).paragraphEditor.insertEmoji,
193
- title: g(y).paragraphEditor.insertEmoji,
194
- "aria-expanded": g(l),
195
- "aria-haspopup": "dialog",
196
- "aria-controls": "tpl-emoji-picker",
197
- onClick: n[0] ||= (...e) => g(u) && g(u)(...e)
198
- }, [c(g(R), {
199
- size: 16,
200
- "stroke-width": 2
201
- })], 10, z), g(l) ? (f(), s("div", {
202
- key: 0,
203
- id: "tpl-emoji-picker",
204
- ref_key: "pickerRef",
205
- ref: T,
206
- role: "dialog",
207
- "aria-modal": "false",
208
- "aria-label": g(y).paragraphEditor.insertEmoji,
209
- tabindex: "-1",
210
- 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)]",
211
- onKeydown: n[1] ||= x(b((...e) => g(m) && g(m)(...e), ["stop", "prevent"]), ["esc"])
212
- }, [(f(!0), s(h, null, d(g(i), (e) => (f(), s("div", {
213
- key: e.key,
214
- class: "tpl:mb-2 tpl:last:mb-0"
215
- }, [o("div", V, p(g(y).emoji[e.key]), 1), o("div", H, [(f(!0), s(h, null, d(e.emojis, (e) => (f(), s("button", {
216
- key: e,
217
- type: "button",
218
- "aria-label": g(S)(g(y).paragraphEditor.emojiItemLabel, { emoji: e }),
219
- 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)]",
220
- onClick: (t) => k(e)
221
- }, p(e), 9, U))), 128))])]))), 128))], 40, B)) : v("", !0)], 512));
222
- }
223
- }), W = [
224
- "aria-label",
225
- "title",
226
- "aria-pressed"
227
- ], G = /* @__PURE__ */ y({
228
- __name: "ToolbarIconButton",
229
- props: {
230
- icon: {},
231
- label: {},
232
- active: { type: Boolean },
233
- strokeWidth: {},
234
- size: {}
235
- },
236
- setup(t) {
237
- return (n, i) => (f(), s("button", {
238
- type: "button",
239
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": t.active }]),
240
- "aria-label": t.label,
241
- title: t.label,
242
- "aria-pressed": t.active ? "true" : "false"
243
- }, [(f(), m(r(t.icon), {
244
- size: t.size ?? 16,
245
- "stroke-width": t.strokeWidth ?? 2
246
- }, null, 8, ["size", "stroke-width"]))], 10, W));
247
- }
248
- }), K = {}, q = {
249
- class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
250
- "aria-hidden": "true"
251
- };
252
- function J(e, t) {
253
- return f(), s("span", q);
254
- }
255
- var Y = /*#__PURE__*/ I(K, [["render", J]]), X = [
256
- "value",
257
- "aria-label",
258
- "title"
259
- ], Te = { value: "" }, Ee = ["value"], Z = /* @__PURE__ */ y({
260
- __name: "ToolbarSelect",
261
- props: {
262
- modelValue: {},
263
- options: {},
264
- label: {},
265
- placeholder: {},
266
- widthClass: {}
267
- },
268
- emits: ["update:modelValue"],
269
- setup(t, { emit: n }) {
270
- let r = n;
271
- function i(e) {
272
- r("update:modelValue", e.target.value);
273
- }
274
- function a(e) {
275
- return typeof e == "string" ? e : e.value;
276
- }
277
- function c(e) {
278
- return typeof e == "string" ? e : e.label;
279
- }
280
- return (n, r) => (f(), s("select", {
281
- class: e(["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"]),
282
- value: t.modelValue,
283
- "aria-label": t.label,
284
- title: t.label,
285
- onChange: i
286
- }, [o("option", Te, p(t.placeholder ?? ""), 1), (f(!0), s(h, null, d(t.options, (e) => (f(), s("option", {
287
- key: a(e),
288
- value: a(e)
289
- }, p(c(e)), 9, Ee))), 128))], 42, X));
290
- }
291
- });
292
- //#endregion
293
- //#region src/utils/richTextColor.ts
294
- function Q(e, t) {
295
- return e || t || "#000000";
296
- }
297
- //#endregion
298
- //#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
299
- var De = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Oe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ke = ["aria-label", "title"], Ae = ["aria-label", "title"], je = {
300
- key: 1,
301
- class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
302
- }, Me = /* @__PURE__ */ y({
303
- __name: "ParagraphToolbar",
304
- props: {
305
- editor: {},
306
- toolbarPosition: {},
307
- isLoading: { type: Boolean },
308
- canRequestMergeTag: { type: Boolean },
309
- canInsertLogicTag: { type: Boolean }
310
- },
311
- emits: [
312
- "open-link-dialog",
313
- "add-merge-tag",
314
- "add-logic-tag"
315
- ],
316
- setup(e, { emit: t }) {
317
- let r = e, a = t, d = i(ee, null), y = i(O, null), b = D(te, "ParagraphToolbar"), x = j(), S = i(k, null), C = i(re, null), w = i(ne, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = A(), M = b.fonts;
318
- function P(e) {
319
- r.editor?.chain().focus().insertContent(e).run();
320
- }
321
- function F(e) {
322
- return r.editor?.getAttributes("textStyle")[e] || "";
323
- }
324
- function I(e) {
325
- let t = r.editor?.chain().focus();
326
- e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
327
- }
328
- function R(e) {
329
- let t = r.editor?.chain().focus();
330
- e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
331
- }
332
- function z() {
333
- return r.editor?.isActive("link") ?? !1;
334
- }
335
- function B() {
336
- return r.editor?.getAttributes("link").color || "";
337
- }
338
- function V(e) {
339
- let t = r.editor?.chain().focus();
340
- t && (z() ? (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());
341
- }
342
- function H() {
343
- let e = w?.content.value.settings;
344
- return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(F("color"), e?.textColor);
345
- }
346
- function U() {
347
- return z() ? B() : F("color");
348
- }
349
- function W() {
350
- return r.editor?.getAttributes("paragraph").lineHeight || "";
351
- }
352
- function K(e) {
353
- let t = r.editor?.chain().focus();
354
- e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
355
- }
356
- function q(e) {
357
- let t = r.editor?.chain().focus();
358
- e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
359
- }
360
- function J() {
361
- return r.editor?.getAttributes("highlight").color || "";
362
- }
363
- function X(e) {
364
- let t = r.editor?.chain().focus();
365
- e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
366
- }
367
- return (t, r) => g(x) && !T.value ? (f(), m(u, {
368
- key: 0,
369
- to: g(x)
370
- }, [o("div", {
371
- "data-tpl-theme": g(y),
372
- role: "toolbar",
373
- "aria-label": g(E).paragraphEditor.toolbar,
374
- 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)]",
375
- style: n({
376
- ...g(d),
377
- top: `${e.toolbarPosition.top}px`,
378
- left: `${e.toolbarPosition.left}px`,
379
- transform: "translateY(-100%)",
380
- flexDirection: "column"
381
- })
382
- }, [!e.isLoading && e.editor ? (f(), s(h, { key: 0 }, [o("div", $, [
383
- c(Z, {
384
- "model-value": F("fontFamily"),
385
- options: g(M),
386
- label: g(E).paragraphEditor.fontFamily,
387
- placeholder: g(E).paragraphEditor.defaultFont,
388
- "width-class": "tpl:w-32",
389
- "onUpdate:modelValue": I
390
- }, null, 8, [
391
- "model-value",
392
- "options",
393
- "label",
394
- "placeholder"
395
- ]),
396
- c(Z, {
397
- "model-value": F("fontSize"),
398
- options: g(fe),
399
- label: g(E).paragraphEditor.fontSize,
400
- placeholder: g(E).paragraphEditor.defaultSize,
401
- "width-class": "tpl:w-20",
402
- "onUpdate:modelValue": R
403
- }, null, 8, [
404
- "model-value",
405
- "options",
406
- "label",
407
- "placeholder"
408
- ]),
409
- c(Y),
410
- c(L, {
411
- "swatch-only": "",
412
- size: "sm",
413
- "data-testid": "text-color-picker",
414
- "model-value": U(),
415
- "seed-color": H(),
416
- "aria-label": g(E).paragraphEditor.textColor,
417
- "onUpdate:modelValue": V
418
- }, null, 8, [
419
- "model-value",
420
- "seed-color",
421
- "aria-label"
422
- ]),
423
- c(L, {
424
- "swatch-only": "",
425
- size: "sm",
426
- "data-testid": "highlight-color-picker",
427
- "model-value": J(),
428
- "seed-color": g(pe),
429
- "aria-label": g(E).paragraphEditor.highlightColor,
430
- "onUpdate:modelValue": X
431
- }, null, 8, [
432
- "model-value",
433
- "seed-color",
434
- "aria-label"
435
- ]),
436
- c(Y),
437
- c(G, {
438
- icon: g(N),
439
- label: g(E).paragraphEditor.bold,
440
- active: e.editor.isActive("bold"),
441
- "stroke-width": 2.5,
442
- onClick: r[0] ||= (t) => e.editor.chain().focus().toggleBold().run()
443
- }, null, 8, [
444
- "icon",
445
- "label",
446
- "active"
447
- ]),
448
- c(G, {
449
- icon: g(ie),
450
- label: g(E).paragraphEditor.italic,
451
- active: e.editor.isActive("italic"),
452
- onClick: r[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
453
- }, null, 8, [
454
- "icon",
455
- "label",
456
- "active"
457
- ]),
458
- c(G, {
459
- icon: g(Ce),
460
- label: g(E).paragraphEditor.underline,
461
- active: e.editor.isActive("underline"),
462
- onClick: r[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
463
- }, null, 8, [
464
- "icon",
465
- "label",
466
- "active"
467
- ]),
468
- c(G, {
469
- icon: g(ye),
470
- label: g(E).paragraphEditor.strikethrough,
471
- active: e.editor.isActive("strike"),
472
- onClick: r[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
473
- }, null, 8, [
474
- "icon",
475
- "label",
476
- "active"
477
- ]),
478
- c(Y),
479
- c(G, {
480
- icon: g(be),
481
- label: g(E).paragraphEditor.subscript,
482
- active: e.editor.isActive("subscript"),
483
- onClick: r[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
484
- }, null, 8, [
485
- "icon",
486
- "label",
487
- "active"
488
- ]),
489
- c(G, {
490
- icon: g(xe),
491
- label: g(E).paragraphEditor.superscript,
492
- active: e.editor.isActive("superscript"),
493
- onClick: r[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
494
- }, null, 8, [
495
- "icon",
496
- "label",
497
- "active"
498
- ]),
499
- c(Y),
500
- c(G, {
501
- icon: g(ae),
502
- label: g(E).paragraphEditor.addLink,
503
- active: e.editor.isActive("link"),
504
- onClick: r[6] ||= (e) => a("open-link-dialog")
505
- }, null, 8, [
506
- "icon",
507
- "label",
508
- "active"
509
- ])
510
- ]), o("div", Oe, [
511
- c(G, {
512
- icon: g(_e),
513
- label: g(E).paragraphEditor.bulletList,
514
- active: e.editor.isActive("bulletList"),
515
- onClick: r[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
516
- }, null, 8, [
517
- "icon",
518
- "label",
519
- "active"
520
- ]),
521
- c(G, {
522
- icon: g(ge),
523
- label: g(E).paragraphEditor.numberedList,
524
- active: e.editor.isActive("orderedList"),
525
- onClick: r[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
526
- }, null, 8, [
527
- "icon",
528
- "label",
529
- "active"
530
- ]),
531
- c(Y),
532
- c(G, {
533
- icon: g(de),
534
- label: g(E).paragraphEditor.alignLeft,
535
- active: e.editor.isActive({ textAlign: "left" }),
536
- onClick: r[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
537
- }, null, 8, [
538
- "icon",
539
- "label",
540
- "active"
541
- ]),
542
- c(G, {
543
- icon: g(ue),
544
- label: g(E).paragraphEditor.alignCenter,
545
- active: e.editor.isActive({ textAlign: "center" }),
546
- onClick: r[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
547
- }, null, 8, [
548
- "icon",
549
- "label",
550
- "active"
551
- ]),
552
- c(G, {
553
- icon: g(le),
554
- label: g(E).paragraphEditor.alignRight,
555
- active: e.editor.isActive({ textAlign: "right" }),
556
- onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
557
- }, null, 8, [
558
- "icon",
559
- "label",
560
- "active"
561
- ]),
562
- c(G, {
563
- icon: g(Se),
564
- label: g(E).paragraphEditor.alignJustify,
565
- active: e.editor.isActive({ textAlign: "justify" }),
566
- onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("justify").run()
567
- }, null, 8, [
568
- "icon",
569
- "label",
570
- "active"
571
- ]),
572
- c(Y),
573
- c(Z, {
574
- "model-value": W(),
575
- options: g(he),
576
- label: g(E).paragraphEditor.lineHeight,
577
- placeholder: "LH",
578
- "width-class": "tpl:w-16",
579
- "onUpdate:modelValue": K
580
- }, null, 8, [
581
- "model-value",
582
- "options",
583
- "label"
584
- ]),
585
- c(Z, {
586
- "model-value": F("letterSpacing"),
587
- options: g(me),
588
- label: g(E).paragraphEditor.letterSpacing,
589
- placeholder: "LS",
590
- "width-class": "tpl:w-20",
591
- "onUpdate:modelValue": q
592
- }, null, 8, [
593
- "model-value",
594
- "options",
595
- "label"
596
- ]),
597
- c(Y),
598
- c(G, {
599
- icon: g(ve),
600
- label: g(E).paragraphEditor.clearFormatting,
601
- onClick: r[13] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
602
- }, null, 8, ["icon", "label"]),
603
- c(Y),
604
- c(we, { onInsert: P }),
605
- e.canRequestMergeTag ? (f(), s(h, { key: 0 }, [c(Y), o("button", {
606
- type: "button",
607
- 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)]",
608
- "aria-label": g(E).mergeTag.insert,
609
- title: g(E).mergeTag.insert,
610
- onClick: r[14] ||= (e) => a("add-merge-tag")
611
- }, [c(g(oe), {
612
- size: 16,
613
- "stroke-width": 2
614
- }), l(" " + p(g(E).mergeTag.insertShort), 1)], 8, ke)], 64)) : v("", !0),
615
- e.canInsertLogicTag ? (f(), s(h, { key: 1 }, [c(Y), o("button", {
616
- type: "button",
617
- 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)]",
618
- "aria-label": g(E).logicTag.insert,
619
- title: g(E).logicTag.insert,
620
- "data-testid": "insert-logic-button",
621
- onClick: r[15] ||= (e) => a("add-logic-tag")
622
- }, [c(g(se), {
623
- size: 16,
624
- "stroke-width": 2
625
- }), l(" " + p(g(E).logicTag.insertShort), 1)], 8, Ae)], 64)) : v("", !0)
626
- ])], 64)) : (f(), s("div", je, [c(g(ce), {
627
- class: "tpl-spinner",
628
- size: 14,
629
- "stroke-width": 2
630
- }), l(" " + p(g(E).errors.editorLoading), 1)]))], 12, De)], 8, ["to"])) : v("", !0);
631
- }
632
- }), Ne = { class: "tpl-text-editor-wrapper tpl:relative" }, Pe = /* @__PURE__ */ y({
633
- __name: "ParagraphEditor",
634
- props: {
635
- block: {},
636
- toolbarPosition: {}
637
- },
638
- emits: ["done"],
639
- setup(e, { emit: n }) {
640
- let r = e, i = n, a = j(), { editor: o, EditorContent: l, isLoading: u, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkColor: _, linkDialogRef: v, canRequestMergeTag: y, canInsertLogicTag: b, openLinkDialog: x, insertLink: C, removeLink: w, closeLinkDialog: E, handleLinkKeydown: D, handleAddMergeTag: O, handleAddLogicTag: k } = T({
641
- blockId: () => r.block.id,
642
- blockContent: () => r.block.content,
643
- onDone: () => i("done"),
644
- editorName: "ParagraphEditor",
645
- async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
646
- let [{ Editor: o, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: C, LetterSpacing: w, LineBoundaryKeys: T }] = await Promise.all([
647
- import("./dist-BxFbxpgW.js").then((e) => e.r),
648
- import("./dist-DkcA6epL.js"),
649
- import("./dist-C1tsW_99.js"),
650
- import("./dist-DC-3T0ED.js"),
651
- import("./dist-ByT5fgKq.js"),
652
- import("./dist-CtMXAH7a.js"),
653
- import("./dist-CtF9STPS.js"),
654
- import("./dist-D7WY8VPq.js"),
655
- import("./dist-D08oVYhr.js"),
656
- import("./dist-DzdeVn-W.js"),
657
- import("./dist-f7HXo6j6.js"),
658
- import("./extensions-Mf8iHey9.js")
659
- ]);
660
- return {
661
- TiptapEditor: o,
662
- EC: s,
663
- extensions: [
664
- c.configure({
665
- heading: !1,
666
- codeBlock: !1,
667
- blockquote: !1,
668
- horizontalRule: !1,
669
- link: !1,
670
- underline: !1
671
- }),
672
- u,
673
- d,
674
- f,
675
- S(l).configure({
676
- openOnClick: !1,
677
- HTMLAttributes: {
678
- target: "_blank",
679
- rel: "noopener noreferrer"
680
- }
681
- }),
682
- p.configure({ types: ["paragraph"] }),
683
- m,
684
- h,
685
- g,
686
- _.configure({ multicolor: !0 }),
687
- x,
688
- C,
689
- w,
690
- v.configure({
691
- mergeTags: e,
692
- syntax: t
693
- }),
694
- b.configure({ syntax: t }),
695
- T,
696
- ...r && n && e.length > 0 ? [y.configure({
697
- mergeTags: e,
698
- char: n,
699
- emptyText: i,
700
- popoverRoot: a
701
- })] : []
702
- ]
703
- };
704
- }
705
- });
706
- return (n, r) => (f(), s("div", Ne, [
707
- c(Me, {
708
- editor: g(o),
709
- "toolbar-position": e.toolbarPosition,
710
- "is-loading": g(u),
711
- "can-request-merge-tag": g(y),
712
- "can-insert-logic-tag": g(b),
713
- onOpenLinkDialog: g(x),
714
- onAddMergeTag: g(O),
715
- onAddLogicTag: g(k)
716
- }, null, 8, [
717
- "editor",
718
- "toolbar-position",
719
- "is-loading",
720
- "can-request-merge-tag",
721
- "can-insert-logic-tag",
722
- "onOpenLinkDialog",
723
- "onAddMergeTag",
724
- "onAddLogicTag"
725
- ]),
726
- c(F, {
727
- editor: g(o),
728
- "editor-content": g(l),
729
- "is-loading": g(u),
730
- "init-error": g(d),
731
- onRetry: g(p)
732
- }, null, 8, [
733
- "editor",
734
- "editor-content",
735
- "is-loading",
736
- "init-error",
737
- "onRetry"
738
- ]),
739
- c(P, {
740
- visible: g(m),
741
- "is-editing-link": g(o)?.isActive("link") ?? !1,
742
- "dialog-ref": g(v),
743
- "onUpdate:dialogRef": r[0] ||= (e) => t(v) ? v.value = e : null,
744
- "link-url": g(h),
745
- "onUpdate:linkUrl": r[1] ||= (e) => t(h) ? h.value = e : null,
746
- "link-color": g(_),
747
- "onUpdate:linkColor": r[2] ||= (e) => t(_) ? _.value = e : null,
748
- onClose: g(E),
749
- onInsert: g(C),
750
- onRemove: g(w),
751
- onKeydown: g(D)
752
- }, null, 8, [
753
- "visible",
754
- "is-editing-link",
755
- "dialog-ref",
756
- "link-url",
757
- "link-color",
758
- "onClose",
759
- "onInsert",
760
- "onRemove",
761
- "onKeydown"
762
- ])
763
- ]));
764
- }
765
- });
766
- //#endregion
767
- export { Pe as default };