@wix/patterns-fields 1.66.0 → 1.68.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 (369) hide show
  1. package/dist/cjs/auto-field-types/validations.js +9 -13
  2. package/dist/cjs/auto-field-types/validations.js.map +1 -1
  3. package/dist/cjs/components/address/input/address-input.st.css.js +3 -3
  4. package/dist/cjs/components/address/input/address-input.st.css.js.map +1 -1
  5. package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js +3 -3
  6. package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
  7. package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js +4 -4
  8. package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
  9. package/dist/cjs/components/audio/audio-player/audio-player.st.css.js +2 -2
  10. package/dist/cjs/components/audio/audio-player/audio-player.st.css.js.map +1 -1
  11. package/dist/cjs/components/color-view/cell-color-view.js +10 -9
  12. package/dist/cjs/components/color-view/cell-color-view.js.map +1 -1
  13. package/dist/cjs/components/color-view/cell-color-view.st.css.js +3 -3
  14. package/dist/cjs/components/color-view/cell-color-view.st.css.js.map +1 -1
  15. package/dist/cjs/components/color-view/color-view.js +5 -3
  16. package/dist/cjs/components/color-view/color-view.js.map +1 -1
  17. package/dist/cjs/components/color-view/color-view.st.css.js +4 -4
  18. package/dist/cjs/components/color-view/color-view.st.css.js.map +1 -1
  19. package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js +3 -3
  20. package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
  21. package/dist/cjs/components/document/form-document-field.st.css.js +7 -7
  22. package/dist/cjs/components/document/form-document-field.st.css.js.map +1 -1
  23. package/dist/cjs/components/exclamation/exclamation.st.css.js +5 -5
  24. package/dist/cjs/components/exclamation/exclamation.st.css.js.map +1 -1
  25. package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js +5 -5
  26. package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
  27. package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js +3 -3
  28. package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
  29. package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js +2 -2
  30. package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js.map +1 -1
  31. package/dist/cjs/components/media-control/paste-url-button.st.css.js +4 -4
  32. package/dist/cjs/components/media-control/paste-url-button.st.css.js.map +1 -1
  33. package/dist/cjs/components/media-gallery/cell-media-gallery-view.js +3 -3
  34. package/dist/cjs/components/media-gallery/cell-media-gallery-view.js.map +1 -1
  35. package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js +10 -10
  36. package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
  37. package/dist/cjs/components/media-image/media-image.st.css.js +4 -4
  38. package/dist/cjs/components/media-image/media-image.st.css.js.map +1 -1
  39. package/dist/cjs/components/media-image/overlays/overlay.st.css.js +3 -3
  40. package/dist/cjs/components/media-image/overlays/overlay.st.css.js.map +1 -1
  41. package/dist/cjs/components/media-loader/media-loader.st.css.js +3 -3
  42. package/dist/cjs/components/media-loader/media-loader.st.css.js.map +1 -1
  43. package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
  44. package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
  45. package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js +3 -3
  46. package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js.map +1 -1
  47. package/dist/cjs/components/multi-document/cell-multi-document-view.js +1 -1
  48. package/dist/cjs/components/multi-document/cell-multi-document-view.js.map +1 -1
  49. package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js +5 -5
  50. package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
  51. package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js +2 -2
  52. package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
  53. package/dist/cjs/components/reference/cell-reference-input.st.css.js +3 -3
  54. package/dist/cjs/components/reference/cell-reference-input.st.css.js.map +1 -1
  55. package/dist/cjs/components/reference/reference-avatar.js +4 -2
  56. package/dist/cjs/components/reference/reference-avatar.js.map +1 -1
  57. package/dist/cjs/components/rich-content/cdn/load-ricos.js +135 -0
  58. package/dist/cjs/components/rich-content/cdn/load-ricos.js.map +1 -0
  59. package/dist/cjs/components/rich-content/cdn/types.js +4 -0
  60. package/dist/cjs/components/rich-content/cdn/types.js.map +1 -0
  61. package/dist/cjs/components/rich-content/cell-rich-content-input.js +3 -3
  62. package/dist/cjs/components/rich-content/cell-rich-content-input.js.map +1 -1
  63. package/dist/cjs/components/rich-content/cell-rich-content-view.js +2 -2
  64. package/dist/cjs/components/rich-content/cell-rich-content-view.js.map +1 -1
  65. package/dist/cjs/components/rich-content/editor.js.map +1 -1
  66. package/dist/cjs/components/rich-content/form-rich-content.js +2 -2
  67. package/dist/cjs/components/rich-content/form-rich-content.js.map +1 -1
  68. package/dist/cjs/components/rich-content/hooks/use-plain-text-rich-content.js +5 -3
  69. package/dist/cjs/components/rich-content/hooks/use-plain-text-rich-content.js.map +1 -1
  70. package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.js.map +1 -1
  71. package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +4 -4
  72. package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
  73. package/dist/cjs/components/rich-content/rich-content-input/default-value-read-only-input/rich-content-form-read-only-input.js.map +1 -1
  74. package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.js.map +1 -1
  75. package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +3 -3
  76. package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
  77. package/dist/cjs/components/rich-content/rich-content-input/form-input/use-rich-content-form-input.js.map +1 -1
  78. package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.js.map +1 -1
  79. package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
  80. package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
  81. package/dist/cjs/components/rich-content/rich-content-input/hooks.js +7 -8
  82. package/dist/cjs/components/rich-content/rich-content-input/hooks.js.map +1 -1
  83. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +3 -3
  84. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
  85. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/hooks.js +15 -3
  86. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/hooks.js.map +1 -1
  87. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +3 -3
  88. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
  89. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
  90. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
  91. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/types.js.map +1 -1
  92. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/plugins.js +38 -31
  93. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/plugins.js.map +1 -1
  94. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.js +27 -22
  95. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.js.map +1 -1
  96. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +7 -7
  97. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
  98. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.js +10 -9
  99. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.js.map +1 -1
  100. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +5 -5
  101. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
  102. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/plugins.js +11 -17
  103. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/plugins.js.map +1 -1
  104. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.js +47 -15
  105. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.js.map +1 -1
  106. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +4 -4
  107. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
  108. package/dist/cjs/components/rich-content/rich-content-input/services/rich-content-document-http-service.js.map +1 -1
  109. package/dist/cjs/components/rich-content/rich-content-input/services/types.js.map +1 -1
  110. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +18 -18
  111. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
  112. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +4 -4
  113. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
  114. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +18 -18
  115. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
  116. package/dist/cjs/components/text/text-view.st.css.js +3 -3
  117. package/dist/cjs/components/text/text-view.st.css.js.map +1 -1
  118. package/dist/cjs/components/url/url-view.js +10 -9
  119. package/dist/cjs/components/url/url-view.js.map +1 -1
  120. package/dist/cjs/exports/ricos-statics-legacy.js +10 -0
  121. package/dist/cjs/exports/ricos-statics-legacy.js.map +1 -0
  122. package/dist/cjs/exports/ricos-statics.js +10 -0
  123. package/dist/cjs/exports/ricos-statics.js.map +1 -0
  124. package/dist/cjs/styles.global.css +1 -1
  125. package/dist/cjs/utils/request-idle-callback.js +4 -1
  126. package/dist/cjs/utils/request-idle-callback.js.map +1 -1
  127. package/dist/cjs/validations/rich-content.js +26 -6
  128. package/dist/cjs/validations/rich-content.js.map +1 -1
  129. package/dist/esm/auto-field-types/validations.js +10 -13
  130. package/dist/esm/auto-field-types/validations.js.map +1 -1
  131. package/dist/esm/components/address/input/address-input.st.css.js +2 -2
  132. package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js +2 -2
  133. package/dist/esm/components/audio/audio-field/form-audio-field.st.css.js +2 -2
  134. package/dist/esm/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
  135. package/dist/esm/components/audio/audio-player/audio-player.st.css.js +2 -2
  136. package/dist/esm/components/color-view/cell-color-view.js +4 -3
  137. package/dist/esm/components/color-view/cell-color-view.js.map +1 -1
  138. package/dist/esm/components/color-view/cell-color-view.st.css.js +2 -2
  139. package/dist/esm/components/color-view/color-view.js +3 -2
  140. package/dist/esm/components/color-view/color-view.js.map +1 -1
  141. package/dist/esm/components/color-view/color-view.st.css.js +2 -2
  142. package/dist/esm/components/delete-dialog/delete-dialog.st.css.js +2 -2
  143. package/dist/esm/components/document/form-document-field.st.css.js +2 -2
  144. package/dist/esm/components/document/form-document-field.st.css.js.map +1 -1
  145. package/dist/esm/components/exclamation/exclamation.st.css.js +2 -2
  146. package/dist/esm/components/highlighted-text/highlighted-text.st.css.js +3 -3
  147. package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js +2 -2
  148. package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
  149. package/dist/esm/components/media-control/cell-media-edit-shell.st.css.js +2 -2
  150. package/dist/esm/components/media-control/paste-url-button.st.css.js +2 -2
  151. package/dist/esm/components/media-gallery/cell-media-gallery-view.js +3 -1
  152. package/dist/esm/components/media-gallery/cell-media-gallery-view.js.map +1 -1
  153. package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js +2 -2
  154. package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
  155. package/dist/esm/components/media-image/media-image.st.css.js +3 -3
  156. package/dist/esm/components/media-image/media-image.st.css.js.map +1 -1
  157. package/dist/esm/components/media-image/overlays/overlay.st.css.js +2 -2
  158. package/dist/esm/components/media-loader/media-loader.st.css.js +2 -2
  159. package/dist/esm/components/media-loader/media-loader.st.css.js.map +1 -1
  160. package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
  161. package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
  162. package/dist/esm/components/multi-document/cell-multi-document-edit.st.css.js +2 -2
  163. package/dist/esm/components/multi-document/cell-multi-document-view.js +1 -1
  164. package/dist/esm/components/multi-document/cell-multi-document-view.js.map +1 -1
  165. package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js +2 -2
  166. package/dist/esm/components/reference/cell-multi-reference-input.st.css.js +2 -2
  167. package/dist/esm/components/reference/cell-reference-input.st.css.js +2 -2
  168. package/dist/esm/components/reference/reference-avatar.js +2 -1
  169. package/dist/esm/components/reference/reference-avatar.js.map +1 -1
  170. package/dist/esm/components/rich-content/cdn/load-ricos.js +126 -0
  171. package/dist/esm/components/rich-content/cdn/load-ricos.js.map +1 -0
  172. package/dist/esm/components/rich-content/cdn/types.js +2 -0
  173. package/dist/esm/components/rich-content/cdn/types.js.map +1 -0
  174. package/dist/esm/components/rich-content/cell-rich-content-input.js +1 -1
  175. package/dist/esm/components/rich-content/cell-rich-content-input.js.map +1 -1
  176. package/dist/esm/components/rich-content/cell-rich-content-view.js +1 -1
  177. package/dist/esm/components/rich-content/cell-rich-content-view.js.map +1 -1
  178. package/dist/esm/components/rich-content/editor.js +1 -1
  179. package/dist/esm/components/rich-content/editor.js.map +1 -1
  180. package/dist/esm/components/rich-content/form-rich-content.js +1 -1
  181. package/dist/esm/components/rich-content/form-rich-content.js.map +1 -1
  182. package/dist/esm/components/rich-content/hooks/use-plain-text-rich-content.js +3 -2
  183. package/dist/esm/components/rich-content/hooks/use-plain-text-rich-content.js.map +1 -1
  184. package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +2 -2
  185. package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +2 -2
  186. package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
  187. package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
  188. package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
  189. package/dist/esm/components/rich-content/rich-content-input/hooks.js +4 -7
  190. package/dist/esm/components/rich-content/rich-content-input/hooks.js.map +1 -1
  191. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +2 -2
  192. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/hooks.js +14 -2
  193. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/hooks.js.map +1 -1
  194. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +2 -2
  195. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
  196. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
  197. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/plugins.js +49 -41
  198. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/plugins.js.map +1 -1
  199. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.js +10 -5
  200. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.js.map +1 -1
  201. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +2 -2
  202. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
  203. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.js +3 -1
  204. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.js.map +1 -1
  205. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +2 -2
  206. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
  207. package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/plugins.js +31 -37
  208. package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/plugins.js.map +1 -1
  209. package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.js +11 -5
  210. package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.js.map +1 -1
  211. package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +2 -2
  212. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +2 -2
  213. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +2 -2
  214. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +2 -2
  215. package/dist/esm/components/text/text-view.st.css.js +2 -2
  216. package/dist/esm/components/text/text-view.st.css.js.map +1 -1
  217. package/dist/esm/components/url/url-view.js +3 -2
  218. package/dist/esm/components/url/url-view.js.map +1 -1
  219. package/dist/esm/exports/ricos-statics-legacy.js +6 -0
  220. package/dist/esm/exports/ricos-statics-legacy.js.map +1 -0
  221. package/dist/esm/exports/ricos-statics.js +10 -0
  222. package/dist/esm/exports/ricos-statics.js.map +1 -0
  223. package/dist/esm/styles.global.css +1 -1
  224. package/dist/esm/utils/request-idle-callback.js +6 -1
  225. package/dist/esm/utils/request-idle-callback.js.map +1 -1
  226. package/dist/esm/validations/rich-content.js +18 -1
  227. package/dist/esm/validations/rich-content.js.map +1 -1
  228. package/dist/types/auto-field-types/validations.d.ts +8 -0
  229. package/dist/types/auto-field-types/validations.d.ts.map +1 -1
  230. package/dist/types/components/audio/audio-field/form-audio-field.st.css.d.ts.map +1 -1
  231. package/dist/types/components/color-view/cell-color-view.d.ts.map +1 -1
  232. package/dist/types/components/color-view/color-view.d.ts.map +1 -1
  233. package/dist/types/components/document/form-document-field.st.css.d.ts.map +1 -1
  234. package/dist/types/components/image/thumbnail-replace-overlay.st.css.d.ts.map +1 -1
  235. package/dist/types/components/media-gallery/cell-media-gallery-view.d.ts.map +1 -1
  236. package/dist/types/components/media-gallery/form-media-gallery-field.st.css.d.ts.map +1 -1
  237. package/dist/types/components/media-image/media-image.st.css.d.ts.map +1 -1
  238. package/dist/types/components/media-loader/media-loader.st.css.d.ts.map +1 -1
  239. package/dist/types/components/media-tag/web-media-tag/media-tag.st.css.d.ts.map +1 -1
  240. package/dist/types/components/reference/reference-avatar.d.ts.map +1 -1
  241. package/dist/types/components/rich-content/cdn/load-ricos.d.ts +11 -0
  242. package/dist/types/components/rich-content/cdn/load-ricos.d.ts.map +1 -0
  243. package/dist/types/components/rich-content/cdn/types.d.ts +20 -0
  244. package/dist/types/components/rich-content/cdn/types.d.ts.map +1 -0
  245. package/dist/types/components/rich-content/cell-rich-content-input.d.ts +1 -1
  246. package/dist/types/components/rich-content/cell-rich-content-input.d.ts.map +1 -1
  247. package/dist/types/components/rich-content/form-rich-content.d.ts +1 -1
  248. package/dist/types/components/rich-content/form-rich-content.d.ts.map +1 -1
  249. package/dist/types/components/rich-content/hooks/use-plain-text-rich-content.d.ts +1 -1
  250. package/dist/types/components/rich-content/hooks/use-plain-text-rich-content.d.ts.map +1 -1
  251. package/dist/types/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.d.ts +1 -1
  252. package/dist/types/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.d.ts.map +1 -1
  253. package/dist/types/components/rich-content/rich-content-input/default-value-read-only-input/rich-content-form-read-only-input.d.ts +1 -1
  254. package/dist/types/components/rich-content/rich-content-input/default-value-read-only-input/rich-content-form-read-only-input.d.ts.map +1 -1
  255. package/dist/types/components/rich-content/rich-content-input/form-input/rich-content-form-input.d.ts +1 -1
  256. package/dist/types/components/rich-content/rich-content-input/form-input/rich-content-form-input.d.ts.map +1 -1
  257. package/dist/types/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.d.ts.map +1 -1
  258. package/dist/types/components/rich-content/rich-content-input/form-input/use-rich-content-form-input.d.ts +3 -3
  259. package/dist/types/components/rich-content/rich-content-input/form-input/use-rich-content-form-input.d.ts.map +1 -1
  260. package/dist/types/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.d.ts +1 -1
  261. package/dist/types/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.d.ts.map +1 -1
  262. package/dist/types/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.d.ts.map +1 -1
  263. package/dist/types/components/rich-content/rich-content-input/hooks.d.ts +2 -2
  264. package/dist/types/components/rich-content/rich-content-input/hooks.d.ts.map +1 -1
  265. package/dist/types/components/rich-content/rich-content-input/rich-content-common/hooks.d.ts +11 -1
  266. package/dist/types/components/rich-content/rich-content-input/rich-content-common/hooks.d.ts.map +1 -1
  267. package/dist/types/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.d.ts.map +1 -1
  268. package/dist/types/components/rich-content/rich-content-input/rich-content-common/types.d.ts +1 -1
  269. package/dist/types/components/rich-content/rich-content-input/rich-content-common/types.d.ts.map +1 -1
  270. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/plugins.d.ts +7 -2
  271. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/plugins.d.ts.map +1 -1
  272. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.d.ts +2 -1
  273. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.d.ts.map +1 -1
  274. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.d.ts.map +1 -1
  275. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.d.ts +1 -1
  276. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.d.ts.map +1 -1
  277. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.d.ts.map +1 -1
  278. package/dist/types/components/rich-content/rich-content-input/rich-content-viewer/plugins.d.ts +6 -15
  279. package/dist/types/components/rich-content/rich-content-input/rich-content-viewer/plugins.d.ts.map +1 -1
  280. package/dist/types/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.d.ts +2 -2
  281. package/dist/types/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.d.ts.map +1 -1
  282. package/dist/types/components/rich-content/rich-content-input/services/types.d.ts +1 -1
  283. package/dist/types/components/rich-content/rich-content-input/services/types.d.ts.map +1 -1
  284. package/dist/types/components/text/text-view.st.css.d.ts.map +1 -1
  285. package/dist/types/components/url/url-view.d.ts.map +1 -1
  286. package/dist/types/exports/ricos-statics-legacy.d.ts +6 -0
  287. package/dist/types/exports/ricos-statics-legacy.d.ts.map +1 -0
  288. package/dist/types/exports/ricos-statics.d.ts +10 -0
  289. package/dist/types/exports/ricos-statics.d.ts.map +1 -0
  290. package/dist/types/utils/request-idle-callback.d.ts.map +1 -1
  291. package/dist/types/validations/rich-content.d.ts +9 -1
  292. package/dist/types/validations/rich-content.d.ts.map +1 -1
  293. package/package.json +24 -7
  294. package/src/__tests__/components/rich-content/form-rich-content.spec.tsx +1 -1
  295. package/src/__tests__/components/rich-content/load-ricos.spec.ts +17 -0
  296. package/src/__tests__/components/rich-content-editor.spec.tsx +40 -32
  297. package/src/__tests__/utils/request-idle-callback.spec.ts +20 -0
  298. package/src/__tests__/validations/rich-content.spec.ts +1 -1
  299. package/src/auto-field-types/validations.ts +25 -13
  300. package/src/components/address/input/address-input.st.css.ts +2 -2
  301. package/src/components/audio/actions/actions-menu/actions-menu.st.css.ts +2 -2
  302. package/src/components/audio/audio-field/form-audio-field.st.css.ts +2 -2
  303. package/src/components/audio/audio-player/audio-player.st.css.ts +2 -2
  304. package/src/components/color-view/cell-color-view.st.css.ts +2 -2
  305. package/src/components/color-view/cell-color-view.tsx +4 -3
  306. package/src/components/color-view/color-view.st.css.ts +2 -2
  307. package/src/components/color-view/color-view.tsx +4 -2
  308. package/src/components/delete-dialog/delete-dialog.st.css.ts +2 -2
  309. package/src/components/document/form-document-field.st.css.ts +2 -2
  310. package/src/components/exclamation/exclamation.st.css.ts +2 -2
  311. package/src/components/highlighted-text/highlighted-text.st.css.ts +3 -3
  312. package/src/components/image/thumbnail-replace-overlay.st.css.ts +2 -2
  313. package/src/components/media-control/cell-media-edit-shell.st.css.ts +2 -2
  314. package/src/components/media-control/paste-url-button.st.css.ts +2 -2
  315. package/src/components/media-gallery/cell-media-gallery-view.tsx +5 -3
  316. package/src/components/media-gallery/form-media-gallery-field.st.css.ts +2 -2
  317. package/src/components/media-image/media-image.st.css.ts +3 -3
  318. package/src/components/media-image/overlays/overlay.st.css.ts +2 -2
  319. package/src/components/media-loader/media-loader.st.css.ts +2 -2
  320. package/src/components/media-tag/web-media-tag/media-tag.st.css.ts +2 -2
  321. package/src/components/multi-document/cell-multi-document-edit.st.css.ts +2 -2
  322. package/src/components/multi-document/cell-multi-document-view.tsx +1 -1
  323. package/src/components/multi-document/multi-document-input/form-multi-document.st.css.ts +2 -2
  324. package/src/components/reference/cell-multi-reference-input.st.css.ts +2 -2
  325. package/src/components/reference/cell-reference-input.st.css.ts +2 -2
  326. package/src/components/reference/reference-avatar.tsx +3 -1
  327. package/src/components/rich-content/cdn/load-ricos.ts +184 -0
  328. package/src/components/rich-content/cdn/types.ts +21 -0
  329. package/src/components/rich-content/cell-rich-content-input.tsx +2 -2
  330. package/src/components/rich-content/cell-rich-content-view.tsx +1 -1
  331. package/src/components/rich-content/editor.ts +1 -1
  332. package/src/components/rich-content/form-rich-content.tsx +2 -2
  333. package/src/components/rich-content/hooks/use-plain-text-rich-content.ts +4 -3
  334. package/src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts +2 -2
  335. package/src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.tsx +1 -1
  336. package/src/components/rich-content/rich-content-input/default-value-read-only-input/rich-content-form-read-only-input.tsx +1 -1
  337. package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts +2 -2
  338. package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.tsx +1 -1
  339. package/src/components/rich-content/rich-content-input/form-input/use-rich-content-form-input.ts +1 -1
  340. package/src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts +2 -2
  341. package/src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.tsx +1 -1
  342. package/src/components/rich-content/rich-content-input/hooks.ts +5 -8
  343. package/src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts +2 -2
  344. package/src/components/rich-content/rich-content-input/rich-content-common/hooks.ts +15 -3
  345. package/src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts +2 -2
  346. package/src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts +2 -2
  347. package/src/components/rich-content/rich-content-input/rich-content-common/types.ts +1 -1
  348. package/src/components/rich-content/rich-content-input/rich-content-editor/plugins.ts +59 -72
  349. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts +2 -2
  350. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.tsx +11 -7
  351. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts +2 -2
  352. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.tsx +4 -2
  353. package/src/components/rich-content/rich-content-input/rich-content-viewer/plugins.ts +33 -63
  354. package/src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.ts +2 -2
  355. package/src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.tsx +26 -10
  356. package/src/components/rich-content/rich-content-input/services/rich-content-document-http-service.ts +1 -1
  357. package/src/components/rich-content/rich-content-input/services/types.ts +1 -1
  358. package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts +2 -2
  359. package/src/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.ts +2 -2
  360. package/src/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.ts +2 -2
  361. package/src/components/text/text-view.st.css.ts +2 -2
  362. package/src/components/url/url-view.tsx +3 -2
  363. package/src/exports/ricos-statics-legacy.ts +5 -0
  364. package/src/exports/ricos-statics.ts +9 -0
  365. package/src/styles.global.css +1 -1
  366. package/src/utils/request-idle-callback.ts +7 -1
  367. package/src/validations/rich-content.ts +20 -2
  368. package/utils/@wix/patterns-fields-ricos-statics/legacy/package.json +5 -0
  369. package/utils/@wix/patterns-fields-ricos-statics/package.json +5 -0
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "richcontentformreadonlyinput1245446135";
8
+ var _namespace_ = "richcontentformreadonlyinput636004872";
9
9
  var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
10
10
  var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
11
11
  var style = exports.style = _style_;
12
12
  var st = exports.st = _style_;
13
13
  var namespace = exports.namespace = _namespace_;
14
14
  var classes = exports.classes = {
15
- "root": "richcontentformreadonlyinput1245446135__root"
15
+ "root": "richcontentformreadonlyinput636004872__root"
16
16
  };
17
17
  var keyframes = exports.keyframes = {};
18
18
  var layers = exports.layers = {};
@@ -1 +1 @@
1
- {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentformreadonlyinput1245446135\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"richcontentformreadonlyinput1245446135__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-black-600\":\"--wds-color-black-600\",\"wds-border-radius-300\":\"--wds-border-radius-300\",\"wds-color-blue-100\":\"--wds-color-blue-100\",\"wds-input-shadow-focus-standard\":\"--wds-input-shadow-focus-standard\",\"wds-color-blue-300\":\"--wds-color-blue-300\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,wCAAwC;AAC1D,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAA8C,CAAC;AACrE,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,qBAAqB,EAAC,uBAAuB;EAAC,uBAAuB,EAAC,yBAAyB;EAAC,oBAAoB,EAAC,sBAAsB;EAAC,iCAAiC,EAAC,mCAAmC;EAAC,oBAAoB,EAAC;AAAsB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentformreadonlyinput636004872\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"richcontentformreadonlyinput636004872__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-black-600\":\"--wds-color-black-600\",\"wds-border-radius-300\":\"--wds-border-radius-300\",\"wds-color-blue-100\":\"--wds-color-blue-100\",\"wds-input-shadow-focus-standard\":\"--wds-input-shadow-focus-standard\",\"wds-color-blue-300\":\"--wds-color-blue-300\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,uCAAuC;AACzD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAA6C,CAAC;AACpE,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,qBAAqB,EAAC,uBAAuB;EAAC,uBAAuB,EAAC,yBAAyB;EAAC,oBAAoB,EAAC,sBAAsB;EAAC,iCAAiC,EAAC,mCAAmC;EAAC,oBAAoB,EAAC;AAAsB,CAAC","ignoreList":[]}
@@ -3,9 +3,8 @@
3
3
  exports.__esModule = true;
4
4
  exports.useRichContentAutofix = exports.useRCEPublishPromises = void 0;
5
5
  var _react = require("react");
6
- var _content = require("@wix/ricos/content");
7
- var _autoFieldTypes = require("../../../auto-field-types");
8
- var _wixDataSchemaTypes = require("@wix/patterns-fields-utils/@wix/wix-data-schema-types");
6
+ var _loadRicos = require("../cdn/load-ricos");
7
+ var _richContent = require("../../../validations/rich-content");
9
8
  var _utils = require("../../../utils");
10
9
  var _services = require("./services");
11
10
  const useRCEPublishPromises = () => {
@@ -38,17 +37,17 @@ const useRichContentAutofix = ({
38
37
  if (!data) {
39
38
  return;
40
39
  }
41
- const isStrictValid = (0, _autoFieldTypes.isDataValid)(data, _wixDataSchemaTypes.FieldType.richContent, {
42
- strict: true
43
- });
44
- if (isStrictValid) {
40
+ if (await (0, _richContent.isStrictValidAsync)(data)) {
45
41
  return;
46
42
  }
47
43
  const fixedData = await richContentDocumentService.convertToRichContent(data);
48
44
  if (!fixedData) {
49
45
  return;
50
46
  }
51
- const [plainText, fixedPlainText] = await Promise.all([(0, _content.toPlainText)(data), (0, _content.toPlainText)(fixedData)]);
47
+ const {
48
+ toPlainText
49
+ } = await (0, _loadRicos.loadRicosFromCdn)();
50
+ const [plainText, fixedPlainText] = await Promise.all([toPlainText(data), toPlainText(fixedData)]);
52
51
  if (plainText !== fixedPlainText) {
53
52
  return;
54
53
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_content","_autoFieldTypes","_wixDataSchemaTypes","_utils","_services","useRCEPublishPromises","rcePublishPromises","useRef","useMemo","push","promise","current","clean","getAll","allSettled","Promise","exports","useRichContentAutofix","data","onChange","richContentDocumentService","useRichContentDocumentService","useEffect","autofixRichContent","isStrictValid","isDataValid","FieldType","richContent","strict","fixedData","convertToRichContent","plainText","fixedPlainText","all","toPlainText","catch","noop"],"sources":["../../../../../src/components/rich-content/rich-content-input/hooks.ts"],"sourcesContent":["import { useEffect, useMemo, useRef } from 'react';\n\nimport { toPlainText, type RichContent } from '@wix/ricos/content';\nimport { isDataValid } from '../../../auto-field-types';\nimport { FieldType } from '@wix/patterns-fields-utils/@wix/wix-data-schema-types';\n\nimport { noop } from '../../../utils';\n\nimport { useRichContentDocumentService } from './services';\nimport type { RichContentInputProps } from './rich-content-common';\n\ntype RCEPublishPromise = Promise<RichContent>;\n\nexport const useRCEPublishPromises = () => {\n const rcePublishPromises = useRef<RCEPublishPromise[]>([]);\n\n return useMemo(() => {\n const push = (promise: RCEPublishPromise) => {\n rcePublishPromises.current.push(promise);\n };\n\n const clean = () => {\n rcePublishPromises.current = [];\n };\n\n const getAll = () => rcePublishPromises.current;\n\n const allSettled = () => Promise.allSettled(getAll());\n\n return {\n push,\n clean,\n getAll,\n allSettled,\n };\n }, []);\n};\n\nexport const useRichContentAutofix = ({\n data,\n onChange,\n}: Pick<RichContentInputProps, 'data' | 'onChange'>) => {\n const richContentDocumentService = useRichContentDocumentService();\n\n useEffect(() => {\n const autofixRichContent = async () => {\n if (!data) {\n return;\n }\n\n const isStrictValid = isDataValid(data, FieldType.richContent, {\n strict: true,\n });\n\n if (isStrictValid) {\n return;\n }\n\n const fixedData = await richContentDocumentService.convertToRichContent(\n data,\n );\n\n if (!fixedData) {\n return;\n }\n\n const [plainText, fixedPlainText] = await Promise.all([\n toPlainText(data),\n toPlainText(fixedData),\n ]);\n\n if (plainText !== fixedPlainText) {\n return;\n }\n\n onChange(fixedData);\n };\n\n autofixRichContent().catch(noop);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAL,OAAA;AAKO,MAAMM,qBAAqB,GAAGA,CAAA,KAAM;EACzC,MAAMC,kBAAkB,GAAG,IAAAC,aAAM,EAAsB,EAAE,CAAC;EAE1D,OAAO,IAAAC,cAAO,EAAC,MAAM;IACnB,MAAMC,IAAI,GAAIC,OAA0B,IAAK;MAC3CJ,kBAAkB,CAACK,OAAO,CAACF,IAAI,CAACC,OAAO,CAAC;IAC1C,CAAC;IAED,MAAME,KAAK,GAAGA,CAAA,KAAM;MAClBN,kBAAkB,CAACK,OAAO,GAAG,EAAE;IACjC,CAAC;IAED,MAAME,MAAM,GAAGA,CAAA,KAAMP,kBAAkB,CAACK,OAAO;IAE/C,MAAMG,UAAU,GAAGA,CAAA,KAAMC,OAAO,CAACD,UAAU,CAACD,MAAM,CAAC,CAAC,CAAC;IAErD,OAAO;MACLJ,IAAI;MACJG,KAAK;MACLC,MAAM;MACNC;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAACE,OAAA,CAAAX,qBAAA,GAAAA,qBAAA;AAEK,MAAMY,qBAAqB,GAAGA,CAAC;EACpCC,IAAI;EACJC;AACgD,CAAC,KAAK;EACtD,MAAMC,0BAA0B,GAAG,IAAAC,uCAA6B,EAAC,CAAC;EAElE,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,kBAAkB,GAAG,MAAAA,CAAA,KAAY;MACrC,IAAI,CAACL,IAAI,EAAE;QACT;MACF;MAEA,MAAMM,aAAa,GAAG,IAAAC,2BAAW,EAACP,IAAI,EAAEQ,6BAAS,CAACC,WAAW,EAAE;QAC7DC,MAAM,EAAE;MACV,CAAC,CAAC;MAEF,IAAIJ,aAAa,EAAE;QACjB;MACF;MAEA,MAAMK,SAAS,GAAG,MAAMT,0BAA0B,CAACU,oBAAoB,CACrEZ,IACF,CAAC;MAED,IAAI,CAACW,SAAS,EAAE;QACd;MACF;MAEA,MAAM,CAACE,SAAS,EAAEC,cAAc,CAAC,GAAG,MAAMjB,OAAO,CAACkB,GAAG,CAAC,CACpD,IAAAC,oBAAW,EAAChB,IAAI,CAAC,EACjB,IAAAgB,oBAAW,EAACL,SAAS,CAAC,CACvB,CAAC;MAEF,IAAIE,SAAS,KAAKC,cAAc,EAAE;QAChC;MACF;MAEAb,QAAQ,CAACU,SAAS,CAAC;IACrB,CAAC;IAEDN,kBAAkB,CAAC,CAAC,CAACY,KAAK,CAACC,WAAI,CAAC;IAChC;EACF,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAACpB,OAAA,CAAAC,qBAAA,GAAAA,qBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_loadRicos","_richContent","_utils","_services","useRCEPublishPromises","rcePublishPromises","useRef","useMemo","push","promise","current","clean","getAll","allSettled","Promise","exports","useRichContentAutofix","data","onChange","richContentDocumentService","useRichContentDocumentService","useEffect","autofixRichContent","isStrictValidAsync","fixedData","convertToRichContent","toPlainText","loadRicosFromCdn","plainText","fixedPlainText","all","catch","noop"],"sources":["../../../../../src/components/rich-content/rich-content-input/hooks.ts"],"sourcesContent":["import { useEffect, useMemo, useRef } from 'react';\n\nimport type { RichContent } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\n\nimport { loadRicosFromCdn } from '../cdn/load-ricos';\nimport { isStrictValidAsync } from '../../../validations/rich-content';\nimport { noop } from '../../../utils';\n\nimport { useRichContentDocumentService } from './services';\nimport type { RichContentInputProps } from './rich-content-common';\n\ntype RCEPublishPromise = Promise<RichContent>;\n\nexport const useRCEPublishPromises = () => {\n const rcePublishPromises = useRef<RCEPublishPromise[]>([]);\n\n return useMemo(() => {\n const push = (promise: RCEPublishPromise) => {\n rcePublishPromises.current.push(promise);\n };\n\n const clean = () => {\n rcePublishPromises.current = [];\n };\n\n const getAll = () => rcePublishPromises.current;\n\n const allSettled = () => Promise.allSettled(getAll());\n\n return {\n push,\n clean,\n getAll,\n allSettled,\n };\n }, []);\n};\n\nexport const useRichContentAutofix = ({\n data,\n onChange,\n}: Pick<RichContentInputProps, 'data' | 'onChange'>) => {\n const richContentDocumentService = useRichContentDocumentService();\n\n useEffect(() => {\n const autofixRichContent = async () => {\n if (!data) {\n return;\n }\n\n if (await isStrictValidAsync(data)) {\n return;\n }\n\n const fixedData = await richContentDocumentService.convertToRichContent(\n data,\n );\n\n if (!fixedData) {\n return;\n }\n\n const { toPlainText } = await loadRicosFromCdn();\n const [plainText, fixedPlainText] = await Promise.all([\n toPlainText(data),\n toPlainText(fixedData),\n ]);\n\n if (plainText !== fixedPlainText) {\n return;\n }\n\n onChange(fixedData);\n };\n\n autofixRichContent().catch(noop);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,SAAA,GAAAJ,OAAA;AAKO,MAAMK,qBAAqB,GAAGA,CAAA,KAAM;EACzC,MAAMC,kBAAkB,GAAG,IAAAC,aAAM,EAAsB,EAAE,CAAC;EAE1D,OAAO,IAAAC,cAAO,EAAC,MAAM;IACnB,MAAMC,IAAI,GAAIC,OAA0B,IAAK;MAC3CJ,kBAAkB,CAACK,OAAO,CAACF,IAAI,CAACC,OAAO,CAAC;IAC1C,CAAC;IAED,MAAME,KAAK,GAAGA,CAAA,KAAM;MAClBN,kBAAkB,CAACK,OAAO,GAAG,EAAE;IACjC,CAAC;IAED,MAAME,MAAM,GAAGA,CAAA,KAAMP,kBAAkB,CAACK,OAAO;IAE/C,MAAMG,UAAU,GAAGA,CAAA,KAAMC,OAAO,CAACD,UAAU,CAACD,MAAM,CAAC,CAAC,CAAC;IAErD,OAAO;MACLJ,IAAI;MACJG,KAAK;MACLC,MAAM;MACNC;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAACE,OAAA,CAAAX,qBAAA,GAAAA,qBAAA;AAEK,MAAMY,qBAAqB,GAAGA,CAAC;EACpCC,IAAI;EACJC;AACgD,CAAC,KAAK;EACtD,MAAMC,0BAA0B,GAAG,IAAAC,uCAA6B,EAAC,CAAC;EAElE,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,kBAAkB,GAAG,MAAAA,CAAA,KAAY;MACrC,IAAI,CAACL,IAAI,EAAE;QACT;MACF;MAEA,IAAI,MAAM,IAAAM,+BAAkB,EAACN,IAAI,CAAC,EAAE;QAClC;MACF;MAEA,MAAMO,SAAS,GAAG,MAAML,0BAA0B,CAACM,oBAAoB,CACrER,IACF,CAAC;MAED,IAAI,CAACO,SAAS,EAAE;QACd;MACF;MAEA,MAAM;QAAEE;MAAY,CAAC,GAAG,MAAM,IAAAC,2BAAgB,EAAC,CAAC;MAChD,MAAM,CAACC,SAAS,EAAEC,cAAc,CAAC,GAAG,MAAMf,OAAO,CAACgB,GAAG,CAAC,CACpDJ,WAAW,CAACT,IAAI,CAAC,EACjBS,WAAW,CAACF,SAAS,CAAC,CACvB,CAAC;MAEF,IAAII,SAAS,KAAKC,cAAc,EAAE;QAChC;MACF;MAEAX,QAAQ,CAACM,SAAS,CAAC;IACrB,CAAC;IAEDF,kBAAkB,CAAC,CAAC,CAACS,KAAK,CAACC,WAAI,CAAC;IAChC;EACF,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAACjB,OAAA,CAAAC,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../../../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "fullscreenmodal4273271827";
8
+ var _namespace_ = "fullscreenmodal4177253419";
9
9
  var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
10
10
  var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
11
11
  var style = exports.style = _style_;
12
12
  var st = exports.st = _style_;
13
13
  var namespace = exports.namespace = _namespace_;
14
14
  var classes = exports.classes = {
15
- "root": "fullscreenmodal4273271827__root",
16
- "modalContent": "fullscreenmodal4273271827__modalContent"
15
+ "root": "fullscreenmodal4177253419__root",
16
+ "modalContent": "fullscreenmodal4177253419__modalContent"
17
17
  };
18
18
  var keyframes = exports.keyframes = {};
19
19
  var layers = exports.layers = {};
@@ -1 +1 @@
1
- {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"fullscreenmodal4273271827\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"fullscreenmodal4273271827__root\",\"modalContent\":\"fullscreenmodal4273271827__modalContent\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-white\":\"--wds-color-white\",\"wsr-color-D80\":\"--wsr-color-D80\",\"wds-border-radius-300\":\"--wds-border-radius-300\",\"wsr-border-radius-06\":\"--wsr-border-radius-06\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,2BAA2B;AAC7C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,iCAAiC;EAAC,cAAc,EAAC;AAAyC,CAAC;AACjH,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,iBAAiB,EAAC,mBAAmB;EAAC,eAAe,EAAC,iBAAiB;EAAC,uBAAuB,EAAC,yBAAyB;EAAC,sBAAsB,EAAC;AAAwB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"fullscreenmodal4177253419\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"fullscreenmodal4177253419__root\",\"modalContent\":\"fullscreenmodal4177253419__modalContent\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-white\":\"--wds-color-white\",\"wsr-color-D80\":\"--wsr-color-D80\",\"wds-border-radius-300\":\"--wds-border-radius-300\",\"wsr-border-radius-06\":\"--wsr-border-radius-06\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,2BAA2B;AAC7C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,iCAAiC;EAAC,cAAc,EAAC;AAAyC,CAAC;AACjH,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,iBAAiB,EAAC,mBAAmB;EAAC,eAAe,EAAC,iBAAiB;EAAC,uBAAuB,EAAC,yBAAyB;EAAC,sBAAsB,EAAC;AAAwB,CAAC","ignoreList":[]}
@@ -5,11 +5,23 @@ exports.__esModule = true;
5
5
  exports.useWixRicosProps = exports.useRicosBISettings = exports.useRichContentState = exports.INITIAL_INJECTED_RICH_CONTENT = void 0;
6
6
  var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
7
7
  var _react = require("react");
8
- var _ricos = require("@wix/ricos");
8
+ var _patternsFieldsBundledRicos = require("@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos");
9
9
  var _react2 = require("@wix/bex-core/react");
10
10
  var _consts = require("../consts");
11
- const INITIAL_INJECTED_RICH_CONTENT = exports.INITIAL_INJECTED_RICH_CONTENT = (0, _ricos.fromPlainText)('');
12
- const ensureRichContent = content => content && (0, _ricos.ensureContentId)(content);
11
+ /**
12
+ * Sentinel for "nothing has been injected into the editor yet".
13
+ *
14
+ * A plain frozen literal rather than `fromPlainText('')`: every use is either an
15
+ * identity comparison against this exact object (`isEqual` in
16
+ * `rich-content-editor.tsx`, which the effect uses to skip injecting) or an empty
17
+ * fallback returned from an async publish that failed. It is never handed to
18
+ * ricos as content, so it does not need ricos to build it — and building it
19
+ * eagerly is what forced the content helpers into module scope.
20
+ */
21
+ const INITIAL_INJECTED_RICH_CONTENT = exports.INITIAL_INJECTED_RICH_CONTENT = Object.freeze({
22
+ nodes: []
23
+ });
24
+ const ensureRichContent = content => content && (0, _patternsFieldsBundledRicos.ensureContentId)(content);
13
25
  const useRichContentState = propsContent => {
14
26
  const [content, setContent] = (0, _react.useState)(ensureRichContent(propsContent));
15
27
  const [injectedContent, setInjectedContent] = (0, _react.useState)(INITIAL_INJECTED_RICH_CONTENT);
@@ -1 +1 @@
1
- {"version":3,"names":["_isEqual","_interopRequireDefault","require","_react","_ricos","_react2","_consts","INITIAL_INJECTED_RICH_CONTENT","exports","fromPlainText","ensureRichContent","content","ensureContentId","useRichContentState","propsContent","setContent","useState","injectedContent","setInjectedContent","prevContentRef","useRef","useEffect","isEqual","current","richContent","injectedRichContent","useWixRicosProps","patternsContainer","useWixPatternsContainer","locale","environment","language","CMS_RICOS_CONSUMER","CMS_RICOS_PLATFORM","useRicosBISettings","usage","itemId","useMemo","containerId","CMS_RICOS_APP_ID","consumer","platform","postId"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/hooks.ts"],"sourcesContent":["import isEqual from 'lodash/isEqual';\nimport { useRef, useMemo, useState, useEffect } from 'react';\n\nimport type { BISettings, RicosDocument } from '@wix/ricos';\nimport { ensureContentId, fromPlainText } from '@wix/ricos';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\n\nimport { CMS_RICOS_APP_ID } from '../consts';\n\nexport const INITIAL_INJECTED_RICH_CONTENT = fromPlainText('');\n\nconst ensureRichContent = (content?: RicosDocument) =>\n content && ensureContentId(content);\n\nexport const useRichContentState = (propsContent?: RicosDocument) => {\n const [content, setContent] = useState(ensureRichContent(propsContent));\n const [injectedContent, setInjectedContent] = useState(\n INITIAL_INJECTED_RICH_CONTENT,\n );\n\n const prevContentRef = useRef(propsContent);\n useEffect(() => {\n if (isEqual(propsContent, prevContentRef.current)) {\n return;\n }\n\n const richContent = ensureRichContent(propsContent);\n\n setContent(richContent);\n setInjectedContent((injectedRichContent) => {\n if (!richContent) {\n return INITIAL_INJECTED_RICH_CONTENT;\n }\n\n return !isEqual(richContent, injectedRichContent)\n ? richContent\n : injectedRichContent;\n });\n\n prevContentRef.current = propsContent;\n }, [propsContent]);\n\n return [content, setContent, injectedContent] as const;\n};\n\nexport const useWixRicosProps = () => {\n const patternsContainer = useWixPatternsContainer();\n // console.log('[Rich Content] environment:', patternsContainer.environment);\n const locale = patternsContainer.environment.language || 'en';\n\n return { locale };\n};\n\nconst CMS_RICOS_CONSUMER = 'wix-data-editor';\nconst CMS_RICOS_PLATFORM = 'BM';\n\nexport const useRicosBISettings = (usage?: string, itemId = '$new') =>\n useMemo<BISettings>(\n () => ({\n containerId: CMS_RICOS_APP_ID,\n consumer: CMS_RICOS_CONSUMER,\n platform: CMS_RICOS_PLATFORM,\n postId: itemId,\n usage,\n }),\n [usage, itemId],\n );\n"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAEO,MAAMK,6BAA6B,GAAAC,OAAA,CAAAD,6BAAA,GAAG,IAAAE,oBAAa,EAAC,EAAE,CAAC;AAE9D,MAAMC,iBAAiB,GAAIC,OAAuB,IAChDA,OAAO,IAAI,IAAAC,sBAAe,EAACD,OAAO,CAAC;AAE9B,MAAME,mBAAmB,GAAIC,YAA4B,IAAK;EACnE,MAAM,CAACH,OAAO,EAAEI,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAACN,iBAAiB,CAACI,YAAY,CAAC,CAAC;EACvE,MAAM,CAACG,eAAe,EAAEC,kBAAkB,CAAC,GAAG,IAAAF,eAAQ,EACpDT,6BACF,CAAC;EAED,MAAMY,cAAc,GAAG,IAAAC,aAAM,EAACN,YAAY,CAAC;EAC3C,IAAAO,gBAAS,EAAC,MAAM;IACd,IAAI,IAAAC,gBAAO,EAACR,YAAY,EAAEK,cAAc,CAACI,OAAO,CAAC,EAAE;MACjD;IACF;IAEA,MAAMC,WAAW,GAAGd,iBAAiB,CAACI,YAAY,CAAC;IAEnDC,UAAU,CAACS,WAAW,CAAC;IACvBN,kBAAkB,CAAEO,mBAAmB,IAAK;MAC1C,IAAI,CAACD,WAAW,EAAE;QAChB,OAAOjB,6BAA6B;MACtC;MAEA,OAAO,CAAC,IAAAe,gBAAO,EAACE,WAAW,EAAEC,mBAAmB,CAAC,GAC7CD,WAAW,GACXC,mBAAmB;IACzB,CAAC,CAAC;IAEFN,cAAc,CAACI,OAAO,GAAGT,YAAY;EACvC,CAAC,EAAE,CAACA,YAAY,CAAC,CAAC;EAElB,OAAO,CAACH,OAAO,EAAEI,UAAU,EAAEE,eAAe,CAAC;AAC/C,CAAC;AAACT,OAAA,CAAAK,mBAAA,GAAAA,mBAAA;AAEK,MAAMa,gBAAgB,GAAGA,CAAA,KAAM;EACpC,MAAMC,iBAAiB,GAAG,IAAAC,+BAAuB,EAAC,CAAC;EACnD;EACA,MAAMC,MAAM,GAAGF,iBAAiB,CAACG,WAAW,CAACC,QAAQ,IAAI,IAAI;EAE7D,OAAO;IAAEF;EAAO,CAAC;AACnB,CAAC;AAACrB,OAAA,CAAAkB,gBAAA,GAAAA,gBAAA;AAEF,MAAMM,kBAAkB,GAAG,iBAAiB;AAC5C,MAAMC,kBAAkB,GAAG,IAAI;AAExB,MAAMC,kBAAkB,GAAGA,CAACC,KAAc,EAAEC,MAAM,GAAG,MAAM,KAChE,IAAAC,cAAO,EACL,OAAO;EACLC,WAAW,EAAEC,wBAAgB;EAC7BC,QAAQ,EAAER,kBAAkB;EAC5BS,QAAQ,EAAER,kBAAkB;EAC5BS,MAAM,EAAEN,MAAM;EACdD;AACF,CAAC,CAAC,EACF,CAACA,KAAK,EAAEC,MAAM,CAChB,CAAC;AAAC5B,OAAA,CAAA0B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_isEqual","_interopRequireDefault","require","_react","_patternsFieldsBundledRicos","_react2","_consts","INITIAL_INJECTED_RICH_CONTENT","exports","Object","freeze","nodes","ensureRichContent","content","ensureContentId","useRichContentState","propsContent","setContent","useState","injectedContent","setInjectedContent","prevContentRef","useRef","useEffect","isEqual","current","richContent","injectedRichContent","useWixRicosProps","patternsContainer","useWixPatternsContainer","locale","environment","language","CMS_RICOS_CONSUMER","CMS_RICOS_PLATFORM","useRicosBISettings","usage","itemId","useMemo","containerId","CMS_RICOS_APP_ID","consumer","platform","postId"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/hooks.ts"],"sourcesContent":["import isEqual from 'lodash/isEqual';\nimport { useRef, useMemo, useState, useEffect } from 'react';\n\nimport type { BISettings, RicosDocument } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport { ensureContentId } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\n\nimport { CMS_RICOS_APP_ID } from '../consts';\n\n/**\n * Sentinel for \"nothing has been injected into the editor yet\".\n *\n * A plain frozen literal rather than `fromPlainText('')`: every use is either an\n * identity comparison against this exact object (`isEqual` in\n * `rich-content-editor.tsx`, which the effect uses to skip injecting) or an empty\n * fallback returned from an async publish that failed. It is never handed to\n * ricos as content, so it does not need ricos to build it — and building it\n * eagerly is what forced the content helpers into module scope.\n */\nexport const INITIAL_INJECTED_RICH_CONTENT = Object.freeze({\n nodes: [],\n}) as RicosDocument;\n\nconst ensureRichContent = (content?: RicosDocument) =>\n content && ensureContentId(content);\n\nexport const useRichContentState = (propsContent?: RicosDocument) => {\n const [content, setContent] = useState(ensureRichContent(propsContent));\n const [injectedContent, setInjectedContent] = useState(\n INITIAL_INJECTED_RICH_CONTENT,\n );\n\n const prevContentRef = useRef(propsContent);\n useEffect(() => {\n if (isEqual(propsContent, prevContentRef.current)) {\n return;\n }\n\n const richContent = ensureRichContent(propsContent);\n\n setContent(richContent);\n setInjectedContent((injectedRichContent) => {\n if (!richContent) {\n return INITIAL_INJECTED_RICH_CONTENT;\n }\n\n return !isEqual(richContent, injectedRichContent)\n ? richContent\n : injectedRichContent;\n });\n\n prevContentRef.current = propsContent;\n }, [propsContent]);\n\n return [content, setContent, injectedContent] as const;\n};\n\nexport const useWixRicosProps = () => {\n const patternsContainer = useWixPatternsContainer();\n // console.log('[Rich Content] environment:', patternsContainer.environment);\n const locale = patternsContainer.environment.language || 'en';\n\n return { locale };\n};\n\nconst CMS_RICOS_CONSUMER = 'wix-data-editor';\nconst CMS_RICOS_PLATFORM = 'BM';\n\nexport const useRicosBISettings = (usage?: string, itemId = '$new') =>\n useMemo<BISettings>(\n () => ({\n containerId: CMS_RICOS_APP_ID,\n consumer: CMS_RICOS_CONSUMER,\n platform: CMS_RICOS_PLATFORM,\n postId: itemId,\n usage,\n }),\n [usage, itemId],\n );\n"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,2BAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMK,6BAA6B,GAAAC,OAAA,CAAAD,6BAAA,GAAGE,MAAM,CAACC,MAAM,CAAC;EACzDC,KAAK,EAAE;AACT,CAAC,CAAkB;AAEnB,MAAMC,iBAAiB,GAAIC,OAAuB,IAChDA,OAAO,IAAI,IAAAC,2CAAe,EAACD,OAAO,CAAC;AAE9B,MAAME,mBAAmB,GAAIC,YAA4B,IAAK;EACnE,MAAM,CAACH,OAAO,EAAEI,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAACN,iBAAiB,CAACI,YAAY,CAAC,CAAC;EACvE,MAAM,CAACG,eAAe,EAAEC,kBAAkB,CAAC,GAAG,IAAAF,eAAQ,EACpDX,6BACF,CAAC;EAED,MAAMc,cAAc,GAAG,IAAAC,aAAM,EAACN,YAAY,CAAC;EAC3C,IAAAO,gBAAS,EAAC,MAAM;IACd,IAAI,IAAAC,gBAAO,EAACR,YAAY,EAAEK,cAAc,CAACI,OAAO,CAAC,EAAE;MACjD;IACF;IAEA,MAAMC,WAAW,GAAGd,iBAAiB,CAACI,YAAY,CAAC;IAEnDC,UAAU,CAACS,WAAW,CAAC;IACvBN,kBAAkB,CAAEO,mBAAmB,IAAK;MAC1C,IAAI,CAACD,WAAW,EAAE;QAChB,OAAOnB,6BAA6B;MACtC;MAEA,OAAO,CAAC,IAAAiB,gBAAO,EAACE,WAAW,EAAEC,mBAAmB,CAAC,GAC7CD,WAAW,GACXC,mBAAmB;IACzB,CAAC,CAAC;IAEFN,cAAc,CAACI,OAAO,GAAGT,YAAY;EACvC,CAAC,EAAE,CAACA,YAAY,CAAC,CAAC;EAElB,OAAO,CAACH,OAAO,EAAEI,UAAU,EAAEE,eAAe,CAAC;AAC/C,CAAC;AAACX,OAAA,CAAAO,mBAAA,GAAAA,mBAAA;AAEK,MAAMa,gBAAgB,GAAGA,CAAA,KAAM;EACpC,MAAMC,iBAAiB,GAAG,IAAAC,+BAAuB,EAAC,CAAC;EACnD;EACA,MAAMC,MAAM,GAAGF,iBAAiB,CAACG,WAAW,CAACC,QAAQ,IAAI,IAAI;EAE7D,OAAO;IAAEF;EAAO,CAAC;AACnB,CAAC;AAACvB,OAAA,CAAAoB,gBAAA,GAAAA,gBAAA;AAEF,MAAMM,kBAAkB,GAAG,iBAAiB;AAC5C,MAAMC,kBAAkB,GAAG,IAAI;AAExB,MAAMC,kBAAkB,GAAGA,CAACC,KAAc,EAAEC,MAAM,GAAG,MAAM,KAChE,IAAAC,cAAO,EACL,OAAO;EACLC,WAAW,EAAEC,wBAAgB;EAC7BC,QAAQ,EAAER,kBAAkB;EAC5BS,QAAQ,EAAER,kBAAkB;EAC5BS,MAAM,EAAEN,MAAM;EACdD;AACF,CAAC,CAAC,EACF,CAACA,KAAK,EAAEC,MAAM,CAChB,CAAC;AAAC9B,OAAA,CAAA4B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../../../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "publishloader4160359936";
8
+ var _namespace_ = "publishloader2154525844";
9
9
  var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
10
10
  var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
11
11
  var style = exports.style = _style_;
12
12
  var st = exports.st = _style_;
13
13
  var namespace = exports.namespace = _namespace_;
14
14
  var classes = exports.classes = {
15
- "root": "publishloader4160359936__root",
16
- "publishLoader": "publishloader4160359936__publishLoader"
15
+ "root": "publishloader2154525844__root",
16
+ "publishLoader": "publishloader2154525844__publishLoader"
17
17
  };
18
18
  var keyframes = exports.keyframes = {};
19
19
  var layers = exports.layers = {};
@@ -1 +1 @@
1
- {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"publishloader4160359936\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"publishloader4160359936__root\",\"publishLoader\":\"publishloader4160359936__publishLoader\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-white\":\"--wds-color-white\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,yBAAyB;AAC3C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,+BAA+B;EAAC,eAAe,EAAC;AAAwC,CAAC;AAC/G,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,iBAAiB,EAAC;AAAmB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"publishloader2154525844\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"publishloader2154525844__root\",\"publishLoader\":\"publishloader2154525844__publishLoader\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-white\":\"--wds-color-white\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,yBAAyB;AAC3C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,+BAA+B;EAAC,eAAe,EAAC;AAAwC,CAAC;AAC/G,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,iBAAiB,EAAC;AAAmB,CAAC","ignoreList":[]}
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../../../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "togglefullscreenbutton230730659";
8
+ var _namespace_ = "togglefullscreenbutton3469017194";
9
9
  var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
10
10
  var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
11
11
  var style = exports.style = _style_;
12
12
  var st = exports.st = _style_;
13
13
  var namespace = exports.namespace = _namespace_;
14
14
  var classes = exports.classes = {
15
- "root": "togglefullscreenbutton230730659__root"
15
+ "root": "togglefullscreenbutton3469017194__root"
16
16
  };
17
17
  var keyframes = exports.keyframes = {};
18
18
  var layers = exports.layers = {};
@@ -1 +1 @@
1
- {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"togglefullscreenbutton230730659\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"togglefullscreenbutton230730659__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,iCAAiC;AACnD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAuC,CAAC;AAC9D,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"togglefullscreenbutton3469017194\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"togglefullscreenbutton3469017194__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,kCAAkC;AACpD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAwC,CAAC;AAC/D,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/types.ts"],"sourcesContent":["import type Experiments from '@wix/wix-experiments';\nimport type { RichContent, RicosTheme } from '@wix/ricos';\n\nimport type { ColorScheme } from '../../types';\n\nexport interface RichContentInputProps {\n theme: RicosTheme;\n colorScheme?: ColorScheme;\n experiments: Experiments;\n data?: RichContent;\n onChange: (data?: RichContent) => void;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/types.ts"],"sourcesContent":["import type Experiments from '@wix/wix-experiments';\nimport type { RichContent, RicosTheme } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\n\nimport type { ColorScheme } from '../../types';\n\nexport interface RichContentInputProps {\n theme: RicosTheme;\n colorScheme?: ColorScheme;\n experiments: Experiments;\n data?: RichContent;\n onChange: (data?: RichContent) => void;\n}\n"],"mappings":"","ignoreList":[]}
@@ -3,44 +3,51 @@
3
3
  exports.__esModule = true;
4
4
  exports.usePlugins = void 0;
5
5
  var _react = require("react");
6
- var _ricos = require("@wix/ricos");
7
6
  var _utils = require("../../../../utils");
8
7
  var _consts = require("../consts");
9
- const {
10
- Instagram,
11
- Twitter,
12
- TikTok
13
- } = _ricos.LinkPreviewProviders;
14
- const {
15
- event,
16
- booking,
17
- product
18
- } = _ricos.verticalEmbedProviders;
19
8
  const layoutPlugin = {
20
9
  type: 'LAYOUT',
21
10
  showInQuickActions: true,
22
11
  showInToolbars: true
23
12
  };
24
- const usePlugins = colorScheme => {
25
- return (0, _react.useMemo)(() => [(0, _ricos.pluginHeadings)({
26
- inlinePopups: true
27
- }), (0, _ricos.pluginTextColor)({
28
- inlinePopups: true,
29
- colorScheme
30
- }), (0, _ricos.pluginTextHighlight)({
31
- inlinePopups: true,
32
- colorScheme
33
- }), (0, _ricos.pluginLineSpacing)({
34
- inlinePopups: true
35
- }), (0, _ricos.pluginIndent)(), (0, _ricos.pluginLink)(), (0, _ricos.pluginImage)(), (0, _ricos.pluginVideo)(), (0, _ricos.pluginGallery)(), (0, _ricos.pluginDivider)(), (0, _ricos.pluginTable)({
36
- toolbar: {}
37
- }), (0, _ricos.pluginAi)({
38
- appDefId: _consts.CMS_RICOS_APP_ID
39
- }), (0, _ricos.pluginFileUpload)(), (0, _ricos.pluginHtml)(), (0, _ricos.pluginLinkPreview)({
40
- exposeEmbedButtons: [Instagram, Twitter, TikTok]
41
- }), (0, _ricos.pluginVerticalEmbed)({
42
- exposeEmbedButtons: [event, booking, product]
43
- }), (0, _ricos.pluginCodeBlock)(), (0, _ricos.pluginEmoji)(), (0, _ricos.pluginSpoiler)(), (0, _ricos.pluginGiphy)(), (0, _ricos.pluginCollapsibleList)(), (0, _ricos.pluginLinkButton)(), layoutPlugin].filter(_utils.isTruthy), [colorScheme]);
13
+
14
+ /**
15
+ * Plugin creators come from the CDN module, so this returns an empty list until
16
+ * it has loaded. The editor is not rendered before then, so nothing sees it.
17
+ */
18
+ const usePlugins = (ricos, colorScheme) => {
19
+ return (0, _react.useMemo)(() => {
20
+ if (!ricos) {
21
+ return [];
22
+ }
23
+ const {
24
+ Instagram,
25
+ Twitter,
26
+ TikTok
27
+ } = ricos.LinkPreviewProviders;
28
+ const {
29
+ event,
30
+ booking,
31
+ product
32
+ } = ricos.verticalEmbedProviders;
33
+ return [ricos.pluginHeadings(), ricos.pluginTextColor({
34
+ inlinePopups: true,
35
+ colorScheme
36
+ }), ricos.pluginTextHighlight({
37
+ inlinePopups: true,
38
+ colorScheme
39
+ }), ricos.pluginLineSpacing({
40
+ inlinePopups: true
41
+ }), ricos.pluginIndent(), ricos.pluginLink(), ricos.pluginImage(), ricos.pluginVideo(), ricos.pluginGallery(), ricos.pluginDivider(), ricos.pluginTable({
42
+ toolbar: {}
43
+ }), ricos.pluginAi({
44
+ appDefId: _consts.CMS_RICOS_APP_ID
45
+ }), ricos.pluginFileUpload(), ricos.pluginHtml(), ricos.pluginLinkPreview({
46
+ exposeEmbedButtons: [Instagram, Twitter, TikTok]
47
+ }), ricos.pluginVerticalEmbed({
48
+ exposeEmbedButtons: [event, booking, product]
49
+ }), ricos.pluginCodeBlock(), ricos.pluginEmoji(), ricos.pluginSpoiler(), ricos.pluginGiphy(), ricos.pluginCollapsibleList(), ricos.pluginLinkButton(), layoutPlugin].filter(_utils.isTruthy);
50
+ }, [ricos, colorScheme]);
44
51
  };
45
52
  exports.usePlugins = usePlugins;
46
53
  //# sourceMappingURL=plugins.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_ricos","_utils","_consts","Instagram","Twitter","TikTok","LinkPreviewProviders","event","booking","product","verticalEmbedProviders","layoutPlugin","type","showInQuickActions","showInToolbars","usePlugins","colorScheme","useMemo","pluginHeadings","inlinePopups","pluginTextColor","pluginTextHighlight","pluginLineSpacing","pluginIndent","pluginLink","pluginImage","pluginVideo","pluginGallery","pluginDivider","pluginTable","toolbar","pluginAi","appDefId","CMS_RICOS_APP_ID","pluginFileUpload","pluginHtml","pluginLinkPreview","exposeEmbedButtons","pluginVerticalEmbed","pluginCodeBlock","pluginEmoji","pluginSpoiler","pluginGiphy","pluginCollapsibleList","pluginLinkButton","filter","isTruthy","exports"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/plugins.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport type { EditorPlugin, EditorPluginOptions } from '@wix/ricos';\nimport {\n pluginTextColor,\n pluginTextHighlight,\n pluginHeadings,\n pluginLink,\n pluginLineSpacing,\n pluginImage,\n pluginVideo,\n pluginDivider,\n pluginFileUpload,\n pluginHtml,\n pluginLinkPreview,\n LinkPreviewProviders,\n pluginVerticalEmbed,\n verticalEmbedProviders,\n pluginEmoji,\n pluginSpoiler,\n pluginGiphy,\n pluginCodeBlock,\n pluginGallery,\n pluginCollapsibleList,\n pluginIndent,\n pluginTable,\n pluginLinkButton,\n pluginAi,\n} from '@wix/ricos';\n\nimport { isTruthy } from '../../../../utils';\nimport type { ColorScheme } from '../../types';\nimport { CMS_RICOS_APP_ID } from '../consts';\n\nconst { Instagram, Twitter, TikTok } = LinkPreviewProviders;\nconst { event, booking, product } = verticalEmbedProviders;\n\nconst layoutPlugin: EditorPluginOptions = {\n type: 'LAYOUT',\n showInQuickActions: true,\n showInToolbars: true,\n};\n\nexport const usePlugins = (colorScheme?: ColorScheme) => {\n return useMemo<(EditorPlugin | EditorPluginOptions)[]>(\n () =>\n [\n pluginHeadings({ inlinePopups: true }),\n pluginTextColor({\n inlinePopups: true,\n colorScheme,\n }),\n pluginTextHighlight({\n inlinePopups: true,\n colorScheme,\n }),\n pluginLineSpacing({ inlinePopups: true }),\n pluginIndent(),\n pluginLink(),\n pluginImage(),\n pluginVideo(),\n pluginGallery(),\n pluginDivider(),\n pluginTable({ toolbar: {} }),\n pluginAi({\n appDefId: CMS_RICOS_APP_ID,\n }) as unknown as EditorPlugin,\n pluginFileUpload(),\n pluginHtml(),\n pluginLinkPreview({\n exposeEmbedButtons: [Instagram, Twitter, TikTok],\n }),\n pluginVerticalEmbed({\n exposeEmbedButtons: [event, booking, product],\n }),\n pluginCodeBlock(),\n pluginEmoji(),\n pluginSpoiler(),\n pluginGiphy(),\n pluginCollapsibleList(),\n pluginLinkButton(),\n layoutPlugin,\n ].filter(isTruthy),\n [colorScheme],\n );\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AA2BA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAEA,MAAM;EAAEI,SAAS;EAAEC,OAAO;EAAEC;AAAO,CAAC,GAAGC,2BAAoB;AAC3D,MAAM;EAAEC,KAAK;EAAEC,OAAO;EAAEC;AAAQ,CAAC,GAAGC,6BAAsB;AAE1D,MAAMC,YAAiC,GAAG;EACxCC,IAAI,EAAE,QAAQ;EACdC,kBAAkB,EAAE,IAAI;EACxBC,cAAc,EAAE;AAClB,CAAC;AAEM,MAAMC,UAAU,GAAIC,WAAyB,IAAK;EACvD,OAAO,IAAAC,cAAO,EACZ,MACE,CACE,IAAAC,qBAAc,EAAC;IAAEC,YAAY,EAAE;EAAK,CAAC,CAAC,EACtC,IAAAC,sBAAe,EAAC;IACdD,YAAY,EAAE,IAAI;IAClBH;EACF,CAAC,CAAC,EACF,IAAAK,0BAAmB,EAAC;IAClBF,YAAY,EAAE,IAAI;IAClBH;EACF,CAAC,CAAC,EACF,IAAAM,wBAAiB,EAAC;IAAEH,YAAY,EAAE;EAAK,CAAC,CAAC,EACzC,IAAAI,mBAAY,EAAC,CAAC,EACd,IAAAC,iBAAU,EAAC,CAAC,EACZ,IAAAC,kBAAW,EAAC,CAAC,EACb,IAAAC,kBAAW,EAAC,CAAC,EACb,IAAAC,oBAAa,EAAC,CAAC,EACf,IAAAC,oBAAa,EAAC,CAAC,EACf,IAAAC,kBAAW,EAAC;IAAEC,OAAO,EAAE,CAAC;EAAE,CAAC,CAAC,EAC5B,IAAAC,eAAQ,EAAC;IACPC,QAAQ,EAAEC;EACZ,CAAC,CAAC,EACF,IAAAC,uBAAgB,EAAC,CAAC,EAClB,IAAAC,iBAAU,EAAC,CAAC,EACZ,IAAAC,wBAAiB,EAAC;IAChBC,kBAAkB,EAAE,CAAClC,SAAS,EAAEC,OAAO,EAAEC,MAAM;EACjD,CAAC,CAAC,EACF,IAAAiC,0BAAmB,EAAC;IAClBD,kBAAkB,EAAE,CAAC9B,KAAK,EAAEC,OAAO,EAAEC,OAAO;EAC9C,CAAC,CAAC,EACF,IAAA8B,sBAAe,EAAC,CAAC,EACjB,IAAAC,kBAAW,EAAC,CAAC,EACb,IAAAC,oBAAa,EAAC,CAAC,EACf,IAAAC,kBAAW,EAAC,CAAC,EACb,IAAAC,4BAAqB,EAAC,CAAC,EACvB,IAAAC,uBAAgB,EAAC,CAAC,EAClBjC,YAAY,CACb,CAACkC,MAAM,CAACC,eAAQ,CAAC,EACpB,CAAC9B,WAAW,CACd,CAAC;AACH,CAAC;AAAC+B,OAAA,CAAAhC,UAAA,GAAAA,UAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_utils","_consts","layoutPlugin","type","showInQuickActions","showInToolbars","usePlugins","ricos","colorScheme","useMemo","Instagram","Twitter","TikTok","LinkPreviewProviders","event","booking","product","verticalEmbedProviders","pluginHeadings","pluginTextColor","inlinePopups","pluginTextHighlight","pluginLineSpacing","pluginIndent","pluginLink","pluginImage","pluginVideo","pluginGallery","pluginDivider","pluginTable","toolbar","pluginAi","appDefId","CMS_RICOS_APP_ID","pluginFileUpload","pluginHtml","pluginLinkPreview","exposeEmbedButtons","pluginVerticalEmbed","pluginCodeBlock","pluginEmoji","pluginSpoiler","pluginGiphy","pluginCollapsibleList","pluginLinkButton","filter","isTruthy","exports"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/plugins.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport type {\n EditorPlugin,\n EditorPluginOptions,\n} from '@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics';\n\nimport type { RicosCdnModule } from '../../cdn/types';\nimport { isTruthy } from '../../../../utils';\nimport type { ColorScheme } from '../../types';\nimport { CMS_RICOS_APP_ID } from '../consts';\n\nconst layoutPlugin: EditorPluginOptions = {\n type: 'LAYOUT',\n showInQuickActions: true,\n showInToolbars: true,\n};\n\n/**\n * Plugin creators come from the CDN module, so this returns an empty list until\n * it has loaded. The editor is not rendered before then, so nothing sees it.\n */\nexport const usePlugins = (\n ricos: RicosCdnModule | undefined,\n colorScheme?: ColorScheme,\n) => {\n return useMemo<(EditorPlugin | EditorPluginOptions)[]>(() => {\n if (!ricos) {\n return [];\n }\n\n const { Instagram, Twitter, TikTok } = ricos.LinkPreviewProviders;\n const { event, booking, product } = ricos.verticalEmbedProviders;\n\n return [\n ricos.pluginHeadings(),\n ricos.pluginTextColor({\n inlinePopups: true,\n colorScheme,\n }),\n ricos.pluginTextHighlight({\n inlinePopups: true,\n colorScheme,\n }),\n ricos.pluginLineSpacing({ inlinePopups: true }),\n ricos.pluginIndent(),\n ricos.pluginLink(),\n ricos.pluginImage(),\n ricos.pluginVideo(),\n ricos.pluginGallery(),\n ricos.pluginDivider(),\n ricos.pluginTable({ toolbar: {} }),\n ricos.pluginAi({\n appDefId: CMS_RICOS_APP_ID,\n }) as unknown as EditorPlugin,\n ricos.pluginFileUpload(),\n ricos.pluginHtml(),\n ricos.pluginLinkPreview({\n exposeEmbedButtons: [Instagram, Twitter, TikTok],\n }),\n ricos.pluginVerticalEmbed({\n exposeEmbedButtons: [event, booking, product],\n }),\n ricos.pluginCodeBlock(),\n ricos.pluginEmoji(),\n ricos.pluginSpoiler(),\n ricos.pluginGiphy(),\n ricos.pluginCollapsibleList(),\n ricos.pluginLinkButton(),\n layoutPlugin,\n ].filter(isTruthy);\n }, [ricos, colorScheme]);\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAEA,MAAMG,YAAiC,GAAG;EACxCC,IAAI,EAAE,QAAQ;EACdC,kBAAkB,EAAE,IAAI;EACxBC,cAAc,EAAE;AAClB,CAAC;;AAED;AACA;AACA;AACA;AACO,MAAMC,UAAU,GAAGA,CACxBC,KAAiC,EACjCC,WAAyB,KACtB;EACH,OAAO,IAAAC,cAAO,EAAyC,MAAM;IAC3D,IAAI,CAACF,KAAK,EAAE;MACV,OAAO,EAAE;IACX;IAEA,MAAM;MAAEG,SAAS;MAAEC,OAAO;MAAEC;IAAO,CAAC,GAAGL,KAAK,CAACM,oBAAoB;IACjE,MAAM;MAAEC,KAAK;MAAEC,OAAO;MAAEC;IAAQ,CAAC,GAAGT,KAAK,CAACU,sBAAsB;IAEhE,OAAO,CACLV,KAAK,CAACW,cAAc,CAAC,CAAC,EACtBX,KAAK,CAACY,eAAe,CAAC;MACpBC,YAAY,EAAE,IAAI;MAClBZ;IACF,CAAC,CAAC,EACFD,KAAK,CAACc,mBAAmB,CAAC;MACxBD,YAAY,EAAE,IAAI;MAClBZ;IACF,CAAC,CAAC,EACFD,KAAK,CAACe,iBAAiB,CAAC;MAAEF,YAAY,EAAE;IAAK,CAAC,CAAC,EAC/Cb,KAAK,CAACgB,YAAY,CAAC,CAAC,EACpBhB,KAAK,CAACiB,UAAU,CAAC,CAAC,EAClBjB,KAAK,CAACkB,WAAW,CAAC,CAAC,EACnBlB,KAAK,CAACmB,WAAW,CAAC,CAAC,EACnBnB,KAAK,CAACoB,aAAa,CAAC,CAAC,EACrBpB,KAAK,CAACqB,aAAa,CAAC,CAAC,EACrBrB,KAAK,CAACsB,WAAW,CAAC;MAAEC,OAAO,EAAE,CAAC;IAAE,CAAC,CAAC,EAClCvB,KAAK,CAACwB,QAAQ,CAAC;MACbC,QAAQ,EAAEC;IACZ,CAAC,CAAC,EACF1B,KAAK,CAAC2B,gBAAgB,CAAC,CAAC,EACxB3B,KAAK,CAAC4B,UAAU,CAAC,CAAC,EAClB5B,KAAK,CAAC6B,iBAAiB,CAAC;MACtBC,kBAAkB,EAAE,CAAC3B,SAAS,EAAEC,OAAO,EAAEC,MAAM;IACjD,CAAC,CAAC,EACFL,KAAK,CAAC+B,mBAAmB,CAAC;MACxBD,kBAAkB,EAAE,CAACvB,KAAK,EAAEC,OAAO,EAAEC,OAAO;IAC9C,CAAC,CAAC,EACFT,KAAK,CAACgC,eAAe,CAAC,CAAC,EACvBhC,KAAK,CAACiC,WAAW,CAAC,CAAC,EACnBjC,KAAK,CAACkC,aAAa,CAAC,CAAC,EACrBlC,KAAK,CAACmC,WAAW,CAAC,CAAC,EACnBnC,KAAK,CAACoC,qBAAqB,CAAC,CAAC,EAC7BpC,KAAK,CAACqC,gBAAgB,CAAC,CAAC,EACxB1C,YAAY,CACb,CAAC2C,MAAM,CAACC,eAAQ,CAAC;EACpB,CAAC,EAAE,CAACvC,KAAK,EAAEC,WAAW,CAAC,CAAC;AAC1B,CAAC;AAACuC,OAAA,CAAAzC,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -9,7 +9,7 @@ var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
9
9
  var _defaultsDeep = _interopRequireDefault(require("lodash/defaultsDeep"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _designSystem = require("@wix/design-system");
12
- var _ricos = require("@wix/ricos");
12
+ var _loadRicos = require("../../cdn/load-ricos");
13
13
  var _hooks = require("../../../../hooks");
14
14
  var _utils = require("../../../../utils");
15
15
  var _userSiteFonts = require("../../../user-site-fonts");
@@ -32,7 +32,7 @@ const InsertToolbarSync = ({
32
32
  // Ricos 11's next-runtime proxy is supposed to convert the legacy
33
33
  // `Record<string, ToolbarButtonProps>` into a v2 `ExternalToolbarButton[]`,
34
34
  // but some consumer bundles end up calling through to the inner adapter
35
- // (duplicate `@wix/ricos` copies / unwrapped ref) and we receive the
35
+ // (duplicate ricos copies / unwrapped ref) and we receive the
36
36
  // record shape. Normalize to an array so `.map` is safe, and treat the
37
37
  // non-array (record) shape as ready — otherwise the absolute-positioned
38
38
  // RCELoader overlay stays mounted and the editor row becomes unclickable.
@@ -48,7 +48,10 @@ const InsertToolbarSync = ({
48
48
  return null;
49
49
  };
50
50
  InsertToolbarSync.displayName = 'InsertToolbarSync';
51
- const filterStaticToolbarButtons = button => button !== _ricos.FORMATTING_BUTTONS.CODE_BLOCK;
51
+ const filterStaticToolbarButtons = button =>
52
+ // Inlined rather than read off the CDN module's `FORMATTING_BUTTONS`: this is
53
+ // a plain string constant and the filter runs before the module has loaded.
54
+ button !== 'CODE_BLOCK';
52
55
  const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
53
56
  content,
54
57
  injectedContent,
@@ -197,7 +200,9 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
197
200
  }
198
201
  }, [triggerBlur, requestEditorBlur]);
199
202
  const wixRicosProps = (0, _richContentCommon.useWixRicosProps)();
200
- const plugins = (0, _plugins.usePlugins)(colorScheme);
203
+ const ricos = (0, _loadRicos.useRicosFromCdn)();
204
+ const plugins = (0, _plugins.usePlugins)(ricos, colorScheme);
205
+ const RicosEditor = ricos == null ? void 0 : ricos.RicosEditor;
201
206
  return /*#__PURE__*/_react.default.createElement("div", {
202
207
  ref: containerRef,
203
208
  "data-hook": "rich-content.editor",
@@ -211,7 +216,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
211
216
  __self: void 0,
212
217
  __source: {
213
218
  fileName: _jsxFileName,
214
- lineNumber: 304,
219
+ lineNumber: 308,
215
220
  columnNumber: 7
216
221
  }
217
222
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -219,7 +224,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
219
224
  __self: void 0,
220
225
  __source: {
221
226
  fileName: _jsxFileName,
222
- lineNumber: 315,
227
+ lineNumber: 319,
223
228
  columnNumber: 9
224
229
  }
225
230
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -228,7 +233,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
228
233
  __self: void 0,
229
234
  __source: {
230
235
  fileName: _jsxFileName,
231
- lineNumber: 316,
236
+ lineNumber: 320,
232
237
  columnNumber: 11
233
238
  }
234
239
  }), !hidden && isToolbarReady && /*#__PURE__*/_react.default.createElement(_richContentCommon.ToggleFullscreenButton, {
@@ -237,7 +242,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
237
242
  __self: void 0,
238
243
  __source: {
239
244
  fileName: _jsxFileName,
240
- lineNumber: 318,
245
+ lineNumber: 322,
241
246
  columnNumber: 13
242
247
  }
243
248
  })), editor && /*#__PURE__*/_react.default.createElement(InsertToolbarSync, {
@@ -247,19 +252,19 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
247
252
  __self: void 0,
248
253
  __source: {
249
254
  fileName: _jsxFileName,
250
- lineNumber: 326,
255
+ lineNumber: 330,
251
256
  columnNumber: 11
252
257
  }
253
- }), !hidden ? /*#__PURE__*/_react.default.createElement("div", {
258
+ }), !hidden && RicosEditor ? /*#__PURE__*/_react.default.createElement("div", {
254
259
  "data-hook": dataHook,
255
260
  className: _richContentEditorStCss.classes.editor,
256
261
  __self: void 0,
257
262
  __source: {
258
263
  fileName: _jsxFileName,
259
- lineNumber: 334,
264
+ lineNumber: 338,
260
265
  columnNumber: 11
261
266
  }
262
- }, /*#__PURE__*/_react.default.createElement(_ricos.RicosEditor, (0, _extends2.default)({
267
+ }, /*#__PURE__*/_react.default.createElement(RicosEditor, (0, _extends2.default)({
263
268
  ref: setEditorInstance,
264
269
  plugins: plugins,
265
270
  initialContent: content,
@@ -272,14 +277,14 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
272
277
  __self: void 0,
273
278
  __source: {
274
279
  fileName: _jsxFileName,
275
- lineNumber: 335,
280
+ lineNumber: 339,
276
281
  columnNumber: 13
277
282
  }
278
283
  }))) : null, !isToolbarReady && /*#__PURE__*/_react.default.createElement(RCELoader, {
279
284
  __self: void 0,
280
285
  __source: {
281
286
  fileName: _jsxFileName,
282
- lineNumber: 350,
287
+ lineNumber: 354,
283
288
  columnNumber: 29
284
289
  }
285
290
  }), !hidden && isToolbarReady && /*#__PURE__*/_react.default.createElement("div", {
@@ -288,7 +293,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
288
293
  __self: void 0,
289
294
  __source: {
290
295
  fileName: _jsxFileName,
291
- lineNumber: 352,
296
+ lineNumber: 356,
292
297
  columnNumber: 11
293
298
  }
294
299
  }, /*#__PURE__*/_react.default.createElement(_richContentToolbar.ExternalToolbar, {
@@ -296,7 +301,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
296
301
  __self: void 0,
297
302
  __source: {
298
303
  fileName: _jsxFileName,
299
- lineNumber: 356,
304
+ lineNumber: 360,
300
305
  columnNumber: 13
301
306
  }
302
307
  })));
@@ -312,7 +317,7 @@ const RCELoader = () => /*#__PURE__*/_react.default.createElement(_designSystem.
312
317
  __self: void 0,
313
318
  __source: {
314
319
  fileName: _jsxFileName,
315
- lineNumber: 366,
320
+ lineNumber: 370,
316
321
  columnNumber: 3
317
322
  }
318
323
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Loader, {
@@ -320,7 +325,7 @@ const RCELoader = () => /*#__PURE__*/_react.default.createElement(_designSystem.
320
325
  __self: void 0,
321
326
  __source: {
322
327
  fileName: _jsxFileName,
323
- lineNumber: 374,
328
+ lineNumber: 378,
324
329
  columnNumber: 5
325
330
  }
326
331
  }));
@@ -448,7 +453,7 @@ const RichContentEditor = ({
448
453
  __self: void 0,
449
454
  __source: {
450
455
  fileName: _jsxFileName,
451
- lineNumber: 570,
456
+ lineNumber: 574,
452
457
  columnNumber: 7
453
458
  }
454
459
  }), !fullScreenOnly && /*#__PURE__*/_react.default.createElement(RCE, (0, _extends2.default)({}, props, rceProps, {
@@ -463,7 +468,7 @@ const RichContentEditor = ({
463
468
  __self: void 0,
464
469
  __source: {
465
470
  fileName: _jsxFileName,
466
- lineNumber: 572,
471
+ lineNumber: 576,
467
472
  columnNumber: 9
468
473
  }
469
474
  })), /*#__PURE__*/_react.default.createElement(_richContentCommon.FullscreenModal, {
@@ -472,7 +477,7 @@ const RichContentEditor = ({
472
477
  __self: void 0,
473
478
  __source: {
474
479
  fileName: _jsxFileName,
475
- lineNumber: 585,
480
+ lineNumber: 589,
476
481
  columnNumber: 7
477
482
  }
478
483
  }, /*#__PURE__*/_react.default.createElement(RCE, (0, _extends2.default)({}, props, rceProps, {
@@ -486,7 +491,7 @@ const RichContentEditor = ({
486
491
  __self: void 0,
487
492
  __source: {
488
493
  fileName: _jsxFileName,
489
- lineNumber: 586,
494
+ lineNumber: 590,
490
495
  columnNumber: 9
491
496
  }
492
497
  }))));