@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
@@ -1 +1 @@
1
- {"version":3,"file":"rich-content-form-read-only-input.st.css.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;CAA0D,CAAC;AAC7E,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI;;;;;;CAAkQ,CAAC"}
1
+ {"version":3,"file":"rich-content-form-read-only-input.st.css.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;CAAyD,CAAC;AAC5E,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI;;;;;;CAAkQ,CAAC"}
@@ -1,11 +1,11 @@
1
- import { type RichContent } from '@wix/ricos/content';
1
+ import type { RichContent } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
2
2
  import type { RichContentInputProps } from './rich-content-common';
3
3
  type RCEPublishPromise = Promise<RichContent>;
4
4
  export declare const useRCEPublishPromises: () => {
5
5
  push: (promise: RCEPublishPromise) => void;
6
6
  clean: () => void;
7
7
  getAll: () => RCEPublishPromise[];
8
- allSettled: () => Promise<PromiseSettledResult<import("@wix/ricos/content").RicosDocument>[]>;
8
+ allSettled: () => Promise<PromiseSettledResult<import("@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos").RicosDocument>[]>;
9
9
  };
10
10
  export declare const useRichContentAutofix: ({ data, onChange, }: Pick<RichContentInputProps, 'data' | 'onChange'>) => void;
11
11
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/rich-content/rich-content-input/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAOnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,KAAK,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAE9C,eAAO,MAAM,qBAAqB;;;;;CAuBjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,wBAG/B,KAAK,qBAAqB,EAAE,MAAM,GAAG,UAAU,CAAC,SAwClD,CAAC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/rich-content/rich-content-input/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+DAA+D,CAAC;AAOjG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,KAAK,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAE9C,eAAO,MAAM,qBAAqB;;;;;CAuBjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,wBAG/B,KAAK,qBAAqB,EAAE,MAAM,GAAG,UAAU,CAAC,SAqClD,CAAC"}
@@ -1,5 +1,15 @@
1
1
  /// <reference types="react" />
2
- import type { BISettings, RicosDocument } from '@wix/ricos';
2
+ import type { BISettings, RicosDocument } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
3
+ /**
4
+ * Sentinel for "nothing has been injected into the editor yet".
5
+ *
6
+ * A plain frozen literal rather than `fromPlainText('')`: every use is either an
7
+ * identity comparison against this exact object (`isEqual` in
8
+ * `rich-content-editor.tsx`, which the effect uses to skip injecting) or an empty
9
+ * fallback returned from an async publish that failed. It is never handed to
10
+ * ricos as content, so it does not need ricos to build it — and building it
11
+ * eagerly is what forced the content helpers into module scope.
12
+ */
3
13
  export declare const INITIAL_INJECTED_RICH_CONTENT: RicosDocument;
4
14
  export declare const useRichContentState: (propsContent?: RicosDocument) => readonly [RicosDocument | undefined, import("react").Dispatch<import("react").SetStateAction<RicosDocument | undefined>>, RicosDocument];
5
15
  export declare const useWixRicosProps: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/hooks.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAM5D,eAAO,MAAM,6BAA6B,eAAoB,CAAC;AAK/D,eAAO,MAAM,mBAAmB,kBAAmB,aAAa,6IA6B/D,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAM5B,CAAC;AAKF,eAAO,MAAM,kBAAkB,WAAY,MAAM,gCAU9C,CAAC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/hooks.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAM/G;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,eAEvB,CAAC;AAKpB,eAAO,MAAM,mBAAmB,kBAAmB,aAAa,6IA6B/D,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAM5B,CAAC;AAKF,eAAO,MAAM,kBAAkB,WAAY,MAAM,gCAU9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-fullscreen-button.st.css.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;CAAmD,CAAC;AACtE,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI,IAAK,CAAC"}
1
+ {"version":3,"file":"toggle-fullscreen-button.st.css.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;CAAoD,CAAC;AACvE,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI,IAAK,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type Experiments from '@wix/wix-experiments';
2
- import type { RichContent, RicosTheme } from '@wix/ricos';
2
+ import type { RichContent, RicosTheme } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
3
3
  import type { ColorScheme } from '../../types';
4
4
  export interface RichContentInputProps {
5
5
  theme: RicosTheme;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;IACzB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,+DAA+D,CAAC;AAE7G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;IACzB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC"}
@@ -1,4 +1,9 @@
1
- import type { EditorPlugin } from '@wix/ricos';
1
+ import type { EditorPlugin } from '@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics';
2
+ import type { RicosCdnModule } from '../../cdn/types';
2
3
  import type { ColorScheme } from '../../types';
3
- export declare const usePlugins: (colorScheme?: ColorScheme) => EditorPlugin[];
4
+ /**
5
+ * Plugin creators come from the CDN module, so this returns an empty list until
6
+ * it has loaded. The editor is not rendered before then, so nothing sees it.
7
+ */
8
+ export declare const usePlugins: (ricos: RicosCdnModule | undefined, colorScheme?: ColorScheme) => EditorPlugin[];
4
9
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/plugins.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAuB,MAAM,YAAY,CAAC;AA6BpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAY/C,eAAO,MAAM,UAAU,iBAAkB,WAAW,mBA0CnD,CAAC"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/plugins.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,+DAA+D,CAAC;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS/C;;;GAGG;AACH,eAAO,MAAM,UAAU,UACd,cAAc,GAAG,SAAS,gBACnB,WAAW,mBAgD1B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { FC } from 'react';
2
- import type { RicosDocument, RicosEditorProps } from '@wix/ricos';
2
+ import type { RicosDocument } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
3
+ import type { RicosEditorProps } from '@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics';
3
4
  import type { ColorScheme } from '../../types';
4
5
  type RicosProps = Pick<RicosEditorProps, 'biSettings' | 'theme'> & {
5
6
  wixExperiments?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"rich-content-editor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAYnD,OAAO,KAAK,EAEV,aAAa,EAEb,gBAAgB,EAEjB,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAc/C,KAAK,UAAU,GAAG,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAQF,UAAU,QAAS,SAAQ,UAAU;IACnC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA2TD,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG;IAChE,iBAAiB,CAAC,EAAE,CAClB,OAAO,CAAC,EAAE,aAAa,EACvB,gBAAgB,CAAC,EAAE,OAAO,KACvB,IAAI,CAAC;IACV,gBAAgB,CAAC,EAAE,CACjB,OAAO,CAAC,EAAE,aAAa,EACvB,gBAAgB,CAAC,EAAE,OAAO,KACvB,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,gBAAgB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACxE,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA6MxD,CAAC"}
1
+ {"version":3,"file":"rich-content-editor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAYnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AACnG,OAAO,KAAK,EAGV,gBAAgB,EAEjB,MAAM,+DAA+D,CAAC;AAQvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAc/C,KAAK,UAAU,GAAG,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAQF,UAAU,QAAS,SAAQ,UAAU;IACnC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA+TD,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG;IAChE,iBAAiB,CAAC,EAAE,CAClB,OAAO,CAAC,EAAE,aAAa,EACvB,gBAAgB,CAAC,EAAE,OAAO,KACvB,IAAI,CAAC;IACV,gBAAgB,CAAC,EAAE,CACjB,OAAO,CAAC,EAAE,aAAa,EACvB,gBAAgB,CAAC,EAAE,OAAO,KACvB,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,gBAAgB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACxE,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA6MxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"rich-content-editor.st.css.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;;;;;;CAA8Y,CAAC;AACja,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI;;CAA0D,CAAC"}
1
+ {"version":3,"file":"rich-content-editor.st.css.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;;;;;;CAAwY,CAAC;AAC3Z,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI;;CAA0D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import type { ExternalToolbarButton as RicosExternalToolbarButton } from '@wix/ricos';
2
+ import type { ExternalToolbarButton as RicosExternalToolbarButton } from '@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics';
3
3
  export interface ExternalToolbarProps {
4
4
  buttons?: readonly RicosExternalToolbarButton[];
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rich-content-toolbar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAE,qBAAqB,IAAI,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAKtF,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,SAAS,0BAA0B,EAAE,CAAC;CACjD;AAED,qBAAa,eAAgB,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IAClE,OAAO,CAAC,WAAW,CAAuD;IAE1E,OAAO,CAAC,YAAY,CAwClB;IAEK,MAAM;CAOd"}
1
+ {"version":3,"file":"rich-content-toolbar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAE,qBAAqB,IAAI,0BAA0B,EAAE,MAAM,+DAA+D,CAAC;AAOzI,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,SAAS,0BAA0B,EAAE,CAAC;CACjD;AAED,qBAAa,eAAgB,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IAClE,OAAO,CAAC,WAAW,CAAuD;IAE1E,OAAO,CAAC,YAAY,CAwClB;IAEK,MAAM;CAOd"}
@@ -1 +1 @@
1
- {"version":3,"file":"rich-content-toolbar.st.css.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;;;;CAAsN,CAAC;AACzO,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI,IAAK,CAAC"}
1
+ {"version":3,"file":"rich-content-toolbar.st.css.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;;;;CAAkN,CAAC;AACrO,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI,IAAK,CAAC"}
@@ -1,16 +1,7 @@
1
- import '@wix/ricos/css/plugin-link-viewer.global.css';
2
- import '@wix/ricos/css/plugin-image-viewer.global.css';
3
- import '@wix/ricos/css/plugin-video-viewer.global.css';
4
- import '@wix/ricos/css/plugin-divider-viewer.global.css';
5
- import '@wix/ricos/css/plugin-file-upload-viewer.global.css';
6
- import '@wix/ricos/css/plugin-html-viewer.global.css';
7
- import '@wix/ricos/css/plugin-link-preview-viewer.global.css';
8
- import '@wix/ricos/css/plugin-vertical-embed-viewer.global.css';
9
- import '@wix/ricos/css/plugin-spoiler-viewer.global.css';
10
- import '@wix/ricos/css/plugin-giphy-viewer.global.css';
11
- import '@wix/ricos/css/plugin-gallery-viewer.global.css';
12
- import '@wix/ricos/css/plugin-collapsible-list-viewer.global.css';
13
- import '@wix/ricos/css/plugin-table-viewer.global.css';
14
- import '@wix/ricos/css/plugin-button-viewer.global.css';
15
- export declare const usePlugins: () => import("@wix/ricos/dist/src/ricos-types/next").ViewerPlugin<Record<string, any>>[];
1
+ import type { RicosCdnModule, ViewerPlugin } from '../../cdn/types';
2
+ /**
3
+ * Viewer plugin creators come from the CDN module, so this returns an empty list
4
+ * until it has loaded. The viewer is not rendered before then.
5
+ */
6
+ export declare const usePlugins: (ricos: RicosCdnModule | undefined) => ViewerPlugin[];
16
7
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/plugins.ts"],"names":[],"mappings":"AAwBA,OAAO,8CAA8C,CAAC;AACtD,OAAO,+CAA+C,CAAC;AACvD,OAAO,+CAA+C,CAAC;AACvD,OAAO,iDAAiD,CAAC;AACzD,OAAO,qDAAqD,CAAC;AAC7D,OAAO,8CAA8C,CAAC;AACtD,OAAO,sDAAsD,CAAC;AAC9D,OAAO,wDAAwD,CAAC;AAChE,OAAO,iDAAiD,CAAC;AACzD,OAAO,+CAA+C,CAAC;AACvD,OAAO,iDAAiD,CAAC;AACzD,OAAO,0DAA0D,CAAC;AAClE,OAAO,+CAA+C,CAAC;AACvD,OAAO,gDAAgD,CAAC;AAIxD,eAAO,MAAM,UAAU,0FA0BtB,CAAC"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/plugins.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpE;;;GAGG;AACH,eAAO,MAAM,UAAU,UAAW,cAAc,GAAG,SAAS,KAAG,YAAY,EA4B1E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { RicosDocument, RicosViewerProps } from '@wix/ricos';
3
- import '@wix/ricos/css/ricos-viewer.global.css';
2
+ import type { RicosDocument } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
3
+ import type { RicosViewerProps } from '@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics';
4
4
  type RicosProps = Pick<RicosViewerProps, 'biSettings' | 'children' | 'theme'> & {
5
5
  wixExperiments?: unknown;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rich-content-viewer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAElE,OAAO,wCAAwC,CAAC;AAchD,KAAK,UAAU,GAAG,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,UAAU,GAAG,OAAO,CAAC,GAAG;IAC9E,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,UAAU,QAAS,SAAQ,UAAU;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAuCD,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,QAAQ,EAAE,cAAc,GAAG,oBAAoB,CAAC;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAuC9D,CAAC"}
1
+ {"version":3,"file":"rich-content-viewer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAEnG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AAetG,KAAK,UAAU,GAAG,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,UAAU,GAAG,OAAO,CAAC,GAAG;IAC9E,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,UAAU,QAAS,SAAQ,UAAU;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAqDD,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,QAAQ,EAAE,cAAc,GAAG,oBAAoB,CAAC;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAuC9D,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { RichContent } from '@wix/ricos';
1
+ import type { RichContent } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
2
2
  export interface RichContentDocumentService {
3
3
  convertToRichContent(document: unknown): Promise<RichContent | undefined>;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,WAAW,0BAA0B;IACzC,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;CAC3E"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/rich-content/rich-content-input/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+DAA+D,CAAC;AAEjG,MAAM,WAAW,0BAA0B;IACzC,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;CAC3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"text-view.st.css.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text-view.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;;CAAgF,CAAC;AACnG,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI,IAAK,CAAC"}
1
+ {"version":3,"file":"text-view.st.css.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text-view.st.css.ts"],"names":[],"mappings":"AAUA,eAAO,IAAI,SAAS,+BAAwC,CAAC;AAC7D,eAAO,IAAI,KAAK,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AACnE,eAAO,IAAI,EAAE,EAAE,OAAO,mBAAmB,EAAE,UAAoB,CAAC;AAEhE,eAAO,IAAI,SAAS,QAAc,CAAC;AACnC,eAAO,IAAI,OAAO;;;CAA4E,CAAC;AAC/F,eAAO,IAAI,SAAS,IAAK,CAAC;AAC1B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,UAAU,IAAK,CAAC;AAC3B,eAAO,IAAI,MAAM,IAAK,CAAC;AACvB,eAAO,IAAI,IAAI,IAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"url-view.d.ts","sourceRoot":"","sources":["../../../../src/components/url/url-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA+C1C,CAAC"}
1
+ {"version":3,"file":"url-view.d.ts","sourceRoot":"","sources":["../../../../src/components/url/url-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAgD1C,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Draft-content interop (`ensureRicosContent`), for reading rows written before
3
+ * the ricos schema. Tests only — it pulls the draft converter.
4
+ */
5
+ export * from '@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics/legacy';
6
+ //# sourceMappingURL=ricos-statics-legacy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ricos-statics-legacy.d.ts","sourceRoot":"","sources":["../../../src/exports/ricos-statics-legacy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,sEAAsE,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The ricos surface the CDN artifact exposes, re-exported so consumers reach it
3
+ * through this package instead of depending on `patterns-fields-ricos-statics`
4
+ * themselves.
5
+ *
6
+ * Types only. The values here are the whole editor — importing one puts it in
7
+ * the consumer's graph, which is what the CDN loading exists to prevent.
8
+ */
9
+ export * from '@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics';
10
+ //# sourceMappingURL=ricos-statics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ricos-statics.d.ts","sourceRoot":"","sources":["../../../src/exports/ricos-statics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,+DAA+D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"request-idle-callback.d.ts","sourceRoot":"","sources":["../../../src/utils/request-idle-callback.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,+HAGqB,CAAC;AACtD,eAAO,MAAM,kBAAkB,mEAGqB,CAAC"}
1
+ {"version":3,"file":"request-idle-callback.d.ts","sourceRoot":"","sources":["../../../src/utils/request-idle-callback.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,+HAGqB,CAAC;AACtD,eAAO,MAAM,kBAAkB,mEAGqB,CAAC"}
@@ -1,4 +1,12 @@
1
- import type { RicosDocument } from '@wix/ricos';
1
+ import type { RicosDocument } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
2
2
  export declare const isValid: (data: unknown) => data is RicosDocument;
3
3
  export declare const hardConvert: (data: unknown) => RicosDocument;
4
+ /**
5
+ * Full schema validation, as opposed to the shape check `isValid` does.
6
+ *
7
+ * Async because `validateRicosDocument` is exposed only on `@wix/ricos`'s root
8
+ * barrel, so reaching it synchronously would pull the whole editor graph back
9
+ * into every consumer's build. It comes from the CDN bundle instead.
10
+ */
11
+ export declare const isStrictValidAsync: (data: unknown) => Promise<boolean>;
4
12
  //# sourceMappingURL=rich-content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rich-content.d.ts","sourceRoot":"","sources":["../../../src/validations/rich-content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,eAAO,MAAM,OAAO,SAAU,OAAO,0BAIc,CAAC;AAEpD,eAAO,MAAM,WAAW,SAAU,OAAO,KAAG,aAkB3C,CAAC"}
1
+ {"version":3,"file":"rich-content.d.ts","sourceRoot":"","sources":["../../../src/validations/rich-content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAKnG,eAAO,MAAM,OAAO,SAAU,OAAO,0BAIc,CAAC;AAEpD,eAAO,MAAM,WAAW,SAAU,OAAO,KAAG,aAkB3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,SAAgB,OAAO,KAAG,QAAQ,OAAO,CAOvE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/patterns-fields",
3
- "version": "1.66.0",
3
+ "version": "1.68.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Kobi",
@@ -71,6 +71,16 @@
71
71
  "import": "./dist/esm/exports/providers.js",
72
72
  "require": "./dist/cjs/exports/providers.js"
73
73
  },
74
+ "./utils/@wix/patterns-fields-ricos-statics": {
75
+ "types": "./dist/types/exports/ricos-statics.d.ts",
76
+ "import": "./dist/esm/exports/ricos-statics.js",
77
+ "require": "./dist/cjs/exports/ricos-statics.js"
78
+ },
79
+ "./utils/@wix/patterns-fields-ricos-statics/legacy": {
80
+ "types": "./dist/types/exports/ricos-statics-legacy.d.ts",
81
+ "import": "./dist/esm/exports/ricos-statics-legacy.js",
82
+ "require": "./dist/cjs/exports/ricos-statics-legacy.js"
83
+ },
74
84
  "./src/styles.global.css": {
75
85
  "default": "./src/styles.global.css"
76
86
  }
@@ -90,7 +100,8 @@
90
100
  "form-media-gallery-field",
91
101
  "form-rich-content-input",
92
102
  "cell-rich-content-input",
93
- "providers"
103
+ "providers",
104
+ "utils"
94
105
  ],
95
106
  "scripts": {
96
107
  "build": "yarn stc:all && yarn generate-translation-keys && yarn build:translations && yoshi-library build",
@@ -113,9 +124,8 @@
113
124
  "@wix/atlas": "^1.0.35",
114
125
  "@wix/data": "^1.0.323",
115
126
  "@wix/media": "^1.0.231",
116
- "@wix/patterns-fields-utils": "1.47.0",
127
+ "@wix/patterns-fields-utils": "1.49.0",
117
128
  "@wix/rich-content": "1.0.37",
118
- "@wix/ricos": "^11.2.0",
119
129
  "@wix/sdk": "^1.17.2",
120
130
  "@wix/wix-ui-icons-common": "^3.187.0",
121
131
  "color": "^2.0.1",
@@ -142,7 +152,7 @@
142
152
  "@types/lodash": "^4.17.20",
143
153
  "@types/react": "^16.14.68",
144
154
  "@wix/babel-cli": "^1.11.0",
145
- "@wix/bex-core": "2.344.0",
155
+ "@wix/bex-core": "2.346.0",
146
156
  "@wix/design-system": "^1.307.0",
147
157
  "@wix/eslint-config-yoshi": "^6.74.0",
148
158
  "@wix/jest-yoshi-preset": "^6.74.0",
@@ -152,6 +162,7 @@
152
162
  "@wix/yoshi-style-dependencies": "^6.74.0",
153
163
  "globby": "^11.0.0",
154
164
  "react": "16.14.0",
165
+ "react-dom": "16.14.0",
155
166
  "ts-node": "^10.9.1",
156
167
  "typescript": "~4.9.5"
157
168
  },
@@ -159,7 +170,8 @@
159
170
  "@wix/bex-core": "^2.284.0",
160
171
  "@wix/design-system": "^1.307.0",
161
172
  "mobx": "^6.1.8",
162
- "react": "^16.8.0 || ^18.0.0"
173
+ "react": "^16.8.0 || ^18.0.0",
174
+ "react-dom": "^16.8.0 || ^18.0.0"
163
175
  },
164
176
  "publishConfig": {
165
177
  "registry": "https://registry.npmjs.org/",
@@ -195,5 +207,10 @@
195
207
  "type": "yoshi-flow-library"
196
208
  }
197
209
  },
198
- "falconPackageHash": "5141641f5ae1991e00047f9fcabc6bee1c8787745c8211c8e9c1855f"
210
+ "peerDependenciesMeta": {
211
+ "react-dom": {
212
+ "optional": true
213
+ }
214
+ },
215
+ "falconPackageHash": "522a6533dbe7051f270170fb0f77b6a73c051effbc833cc04869b541"
199
216
  }
@@ -1,6 +1,6 @@
1
1
  import '../../../testkit/test-polyfills';
2
2
 
3
- import { fromPlainText } from '@wix/ricos';
3
+ import { fromPlainText } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
4
4
  import type { Field } from '@wix/bex-core';
5
5
 
6
6
  import { FormRichContent } from '../../../components/rich-content/form-rich-content';
@@ -0,0 +1,17 @@
1
+ import { loadRicosFromCdn } from '../../../components/rich-content/cdn/load-ricos';
2
+
3
+ /**
4
+ * Guards the `process.env.NODE_ENV === 'test'` branch in the loader. Without it
5
+ * every spec that mounts the editor or viewer silently renders nothing, because
6
+ * jsdom cannot fetch the CDN bundle.
7
+ */
8
+ describe('loadRicosFromCdn', () => {
9
+ it('resolves ricos from npm under test, without touching the network', async () => {
10
+ const mod = await loadRicosFromCdn();
11
+
12
+ expect(mod.RicosEditor).toBeDefined();
13
+ expect(mod.RicosViewer).toBeDefined();
14
+ expect(typeof mod.pluginImage).toBe('function');
15
+ expect(typeof mod.pluginImageViewer).toBe('function');
16
+ });
17
+ });
@@ -9,7 +9,7 @@ import { RichContentEditor } from '../../components/rich-content/editor';
9
9
  import { nextRender } from '../test-utils';
10
10
 
11
11
  // Import the mocked fromPlainText
12
- import { fromPlainText } from '@wix/ricos';
12
+ import { fromPlainText } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
13
13
 
14
14
  import { PatternsFieldsTestProvider } from '../../testkit/patterns-fields-test-provider';
15
15
 
@@ -65,9 +65,9 @@ const mockEditorRefObject = {
65
65
 
66
66
  const mockPublishFn = jest.fn().mockResolvedValue({});
67
67
 
68
- jest.mock('@wix/ricos', () => {
69
- const mockReact = require('react');
70
- return {
68
+ jest.mock(
69
+ '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos',
70
+ () => ({
71
71
  // Mock fromPlainText function
72
72
  fromPlainText: (text: string) => ({
73
73
  nodes: [
@@ -78,37 +78,45 @@ jest.mock('@wix/ricos', () => {
78
78
  ],
79
79
  metadata: { version: 1 },
80
80
  }),
81
- // Mock RicosEditor component
82
- RicosEditor: mockReact.forwardRef(function MockRicosEditor(
83
- props: { initialContent?: unknown },
84
- ref: React.Ref<typeof mockEditorRefObject>,
85
- ) {
86
- mockEditorRefObject.prePublish.mockImplementation(mockPublishFn);
87
- mockReact.useImperativeHandle(ref, () => mockEditorRefObject);
88
-
89
- return mockReact.createElement(
81
+ }),
82
+ );
83
+
84
+ // The editor is fetched from the CDN at runtime, which jsdom cannot do — mock
85
+ // the loader so the module resolves synchronously.
86
+ jest.mock('../../components/rich-content/cdn/load-ricos', () => {
87
+ const mockReact = require('react');
88
+
89
+ const MockRicosEditor = mockReact.forwardRef(function MockRicosEditor(
90
+ props: { initialContent?: unknown },
91
+ ref: React.Ref<typeof mockEditorRefObject>,
92
+ ) {
93
+ mockEditorRefObject.prePublish.mockImplementation(mockPublishFn);
94
+ mockReact.useImperativeHandle(ref, () => mockEditorRefObject);
95
+
96
+ return mockReact.createElement(
97
+ 'div',
98
+ {
99
+ 'data-hook': 'mock-ricos-editor',
100
+ 'data-testid': 'ricos-editor',
101
+ },
102
+ mockReact.createElement(
90
103
  'div',
91
104
  {
92
- 'data-hook': 'mock-ricos-editor',
93
- 'data-testid': 'ricos-editor',
105
+ contentEditable: true,
106
+ 'data-hook': 'rich-content-editable',
94
107
  },
95
- mockReact.createElement(
96
- 'div',
97
- {
98
- contentEditable: true,
99
- 'data-hook': 'rich-content-editable',
100
- },
101
- props.initialContent
102
- ? JSON.stringify(props.initialContent)
103
- : 'Empty content',
104
- ),
105
- );
106
- }),
107
- FORMATTING_BUTTONS: {
108
- CODE_BLOCK: 'CODE_BLOCK',
109
- },
110
- // Mock Tooltip component
111
- Tooltip: ({ children }: { children: React.ReactNode }) => children,
108
+ props.initialContent
109
+ ? JSON.stringify(props.initialContent)
110
+ : 'Empty content',
111
+ ),
112
+ );
113
+ });
114
+
115
+ const mod = { RicosEditor: MockRicosEditor };
116
+
117
+ return {
118
+ useRicosFromCdn: () => mod,
119
+ loadRicosFromCdn: () => Promise.resolve(mod),
112
120
  };
113
121
  });
114
122
 
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @jest-environment node
3
+ */
4
+
5
+ describe('request-idle-callback (no window)', () => {
6
+ it('can be imported where window is undeclared', () => {
7
+ expect(typeof window).toBe('undefined');
8
+ expect(() => require('../../utils/request-idle-callback')).not.toThrow();
9
+ });
10
+
11
+ it('exposes no callbacks where window is undeclared', () => {
12
+ const {
13
+ requestIdleCallback,
14
+ cancelIdleCallback,
15
+ } = require('../../utils/request-idle-callback');
16
+
17
+ expect(requestIdleCallback).toBeUndefined();
18
+ expect(cancelIdleCallback).toBeUndefined();
19
+ });
20
+ });
@@ -1,4 +1,4 @@
1
- import { fromPlainText } from '@wix/ricos';
1
+ import { fromPlainText } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
2
2
  import { isValid, hardConvert } from '../../validations/rich-content';
3
3
 
4
4
  describe('rich-content validation', () => {
@@ -1,8 +1,19 @@
1
- import { validateRicosDocument, RichContent, toPlainTextSync } from '@wix/ricos';
1
+ import {
2
+ RichContent,
3
+ toPlainTextSync,
4
+ } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';
2
5
 
3
6
  import { isRicosLikeObject } from './utils';
4
7
 
5
8
  interface ValidationOptions {
9
+ /**
10
+ * @deprecated Strict validation is asynchronous now — use
11
+ * `richContentValidation.isStrictValidAsync` from `@wix/patterns-fields/validations`.
12
+ *
13
+ * `validateRicosDocument` is exposed only on `@wix/ricos`'s root barrel, and
14
+ * reaching it synchronously pulled ricos's entire editor graph into every
15
+ * consumer's build. Passing `strict` now falls back to the shape check below.
16
+ */
6
17
  strict?: boolean;
7
18
  }
8
19
 
@@ -18,21 +29,14 @@ const richContentModule = {
18
29
  return false;
19
30
  }
20
31
  },
21
- isStrictValid: (data: unknown): data is RichContent => {
22
- try {
23
- const validationResult = validateRicosDocument(data);
24
- return validationResult.type === 'ok';
25
- } catch {
26
- return false;
27
- }
28
- },
29
32
  };
30
33
 
31
34
  type TypeModule = {
32
35
  isValid?: (data: unknown) => boolean;
33
- isStrictValid?: (data: unknown) => boolean;
34
36
  };
35
37
 
38
+ let warnedAboutStrict = false;
39
+
36
40
  const getModule = (type: string): TypeModule | null => {
37
41
  switch (type) {
38
42
  case 'rich-content':
@@ -47,9 +51,17 @@ export const isDataValid = (
47
51
  type: string,
48
52
  { strict }: ValidationOptions = {},
49
53
  ): boolean => {
50
- const module = getModule(type);
51
- if (strict && module?.isStrictValid) {
52
- return module.isStrictValid(data);
54
+ if (strict && !warnedAboutStrict && process.env.NODE_ENV !== 'production') {
55
+ warnedAboutStrict = true;
56
+ // Warn rather than weaken silently: callers asked for strict validation and
57
+ // are getting the shape check instead.
58
+ console.warn(
59
+ '[patterns-fields] isDataValid({ strict: true }) no longer performs schema ' +
60
+ 'validation — it falls back to a shape check. Use ' +
61
+ "richContentValidation.isStrictValidAsync from '@wix/patterns-fields/validations'.",
62
+ );
53
63
  }
64
+
65
+ const module = getModule(type);
54
66
  return module?.isValid ? module.isValid(data) : true;
55
67
  };
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js"
5
5
 
6
6
 
7
7
 
8
- var _namespace_ = "addressinput3221247034";
8
+ var _namespace_ = "addressinput2483819239";
9
9
  var _style_ = classesRuntime.bind(null, _namespace_);
10
10
 
11
11
  export var cssStates = statesRuntime.bind(null, _namespace_);
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
13
13
  export var st: import("@stylable/runtime").STFunction = _style_;
14
14
 
15
15
  export var namespace = _namespace_;
16
- export var classes = {"root":"addressinput3221247034__root","tableAddressInput":"addressinput3221247034__tableAddressInput"};
16
+ export var classes = {"root":"addressinput2483819239__root","tableAddressInput":"addressinput2483819239__tableAddressInput"};
17
17
  export var keyframes = {};
18
18
  export var layers = {};
19
19
  export var containers = {};
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
5
5
 
6
6
 
7
7
 
8
- var _namespace_ = "actionsmenu1280508940";
8
+ var _namespace_ = "actionsmenu1490408158";
9
9
  var _style_ = classesRuntime.bind(null, _namespace_);
10
10
 
11
11
  export var cssStates = statesRuntime.bind(null, _namespace_);
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
13
13
  export var st: import("@stylable/runtime").STFunction = _style_;
14
14
 
15
15
  export var namespace = _namespace_;
16
- export var classes = {"root":"actionsmenu1280508940__root","action":"actionsmenu1280508940__action"};
16
+ export var classes = {"root":"actionsmenu1490408158__root","action":"actionsmenu1490408158__action"};
17
17
  export var keyframes = {};
18
18
  export var layers = {};
19
19
  export var containers = {};