@wix/patterns-fields 1.129.0 → 1.130.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 (254) hide show
  1. package/dist/cjs/assets/locale/messages_ar.json +2 -2
  2. package/dist/cjs/assets/locale/messages_bg.json +2 -2
  3. package/dist/cjs/assets/locale/messages_ca.json +2 -2
  4. package/dist/cjs/assets/locale/messages_el.json +2 -2
  5. package/dist/cjs/assets/locale/messages_en.json +2 -2
  6. package/dist/cjs/assets/locale/messages_fi.json +2 -2
  7. package/dist/cjs/assets/locale/messages_he.json +2 -2
  8. package/dist/cjs/assets/locale/messages_hu.json +2 -2
  9. package/dist/cjs/assets/locale/messages_lt.json +2 -2
  10. package/dist/cjs/assets/locale/messages_ms.json +2 -2
  11. package/dist/cjs/assets/locale/messages_ro.json +2 -2
  12. package/dist/cjs/assets/locale/messages_sk.json +2 -2
  13. package/dist/cjs/assets/locale/messages_sl.json +2 -2
  14. package/dist/cjs/assets/locale/messages_tl.json +2 -2
  15. package/dist/cjs/assets/locale/version_file +1 -1
  16. package/dist/cjs/components/address/input/address-input.st.css.js +3 -3
  17. package/dist/cjs/components/address/input/address-input.st.css.js.map +1 -1
  18. package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js +3 -3
  19. package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
  20. package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js +4 -4
  21. package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
  22. package/dist/cjs/components/audio/audio-player/audio-player.st.css.js +2 -2
  23. package/dist/cjs/components/audio/audio-player/audio-player.st.css.js.map +1 -1
  24. package/dist/cjs/components/color-view/cell-color-view.st.css.js +3 -3
  25. package/dist/cjs/components/color-view/cell-color-view.st.css.js.map +1 -1
  26. package/dist/cjs/components/color-view/color-view.st.css.js +4 -4
  27. package/dist/cjs/components/color-view/color-view.st.css.js.map +1 -1
  28. package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js +3 -3
  29. package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
  30. package/dist/cjs/components/document/form-document-field.st.css.js +7 -7
  31. package/dist/cjs/components/document/form-document-field.st.css.js.map +1 -1
  32. package/dist/cjs/components/exclamation/exclamation.st.css.js +5 -5
  33. package/dist/cjs/components/exclamation/exclamation.st.css.js.map +1 -1
  34. package/dist/cjs/components/field-validation-settings/field-validation-settings-input.st.css.js +3 -3
  35. package/dist/cjs/components/field-validation-settings/field-validation-settings-input.st.css.js.map +1 -1
  36. package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js +5 -5
  37. package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
  38. package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js +3 -3
  39. package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
  40. package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js +2 -2
  41. package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js.map +1 -1
  42. package/dist/cjs/components/media-control/paste-url-button.st.css.js +4 -4
  43. package/dist/cjs/components/media-control/paste-url-button.st.css.js.map +1 -1
  44. package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js +10 -10
  45. package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
  46. package/dist/cjs/components/media-image/media-image.st.css.js +4 -4
  47. package/dist/cjs/components/media-image/media-image.st.css.js.map +1 -1
  48. package/dist/cjs/components/media-image/overlays/overlay.st.css.js +3 -3
  49. package/dist/cjs/components/media-image/overlays/overlay.st.css.js.map +1 -1
  50. package/dist/cjs/components/media-image-field/cell-media-image-edit.st.css.js +8 -8
  51. package/dist/cjs/components/media-image-field/cell-media-image-edit.st.css.js.map +1 -1
  52. package/dist/cjs/components/media-image-field/media-image-view.st.css.js +3 -3
  53. package/dist/cjs/components/media-image-field/media-image-view.st.css.js.map +1 -1
  54. package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
  55. package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
  56. package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js +3 -3
  57. package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js.map +1 -1
  58. package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js +5 -5
  59. package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
  60. package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js +2 -2
  61. package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
  62. package/dist/cjs/components/reference/cell-multi-reference-view.st.css.js +3 -3
  63. package/dist/cjs/components/reference/cell-multi-reference-view.st.css.js.map +1 -1
  64. package/dist/cjs/components/reference/cell-reference-input.st.css.js +3 -3
  65. package/dist/cjs/components/reference/cell-reference-input.st.css.js.map +1 -1
  66. package/dist/cjs/components/rich-content/cdn/load-ricos.js +1 -1
  67. package/dist/cjs/components/rich-content/cdn/load-ricos.js.map +1 -1
  68. package/dist/cjs/components/rich-content/cell-rich-content-input.js +24 -7
  69. package/dist/cjs/components/rich-content/cell-rich-content-input.js.map +1 -1
  70. package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +4 -4
  71. package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
  72. package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +3 -3
  73. package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
  74. package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
  75. 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
  76. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +3 -3
  77. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
  78. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +3 -3
  79. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
  80. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
  81. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
  82. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.js +17 -23
  83. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.js.map +1 -1
  84. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +7 -7
  85. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
  86. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +5 -5
  87. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
  88. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +4 -4
  89. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
  90. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +18 -18
  91. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
  92. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +4 -4
  93. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
  94. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +18 -18
  95. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
  96. package/dist/cjs/components/text/text-view.st.css.js +3 -3
  97. package/dist/cjs/components/text/text-view.st.css.js.map +1 -1
  98. package/dist/cjs/styles.global.css +1 -1
  99. package/dist/esm/assets/locale/messages_ar.json +2 -2
  100. package/dist/esm/assets/locale/messages_bg.json +2 -2
  101. package/dist/esm/assets/locale/messages_ca.json +2 -2
  102. package/dist/esm/assets/locale/messages_el.json +2 -2
  103. package/dist/esm/assets/locale/messages_en.json +2 -2
  104. package/dist/esm/assets/locale/messages_fi.json +2 -2
  105. package/dist/esm/assets/locale/messages_he.json +2 -2
  106. package/dist/esm/assets/locale/messages_hu.json +2 -2
  107. package/dist/esm/assets/locale/messages_lt.json +2 -2
  108. package/dist/esm/assets/locale/messages_ms.json +2 -2
  109. package/dist/esm/assets/locale/messages_ro.json +2 -2
  110. package/dist/esm/assets/locale/messages_sk.json +2 -2
  111. package/dist/esm/assets/locale/messages_sl.json +2 -2
  112. package/dist/esm/assets/locale/messages_tl.json +2 -2
  113. package/dist/esm/assets/locale/version_file +1 -1
  114. package/dist/esm/components/address/input/address-input.st.css.js +2 -2
  115. package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js +2 -2
  116. package/dist/esm/components/audio/audio-field/form-audio-field.st.css.js +2 -2
  117. package/dist/esm/components/audio/audio-player/audio-player.st.css.js +2 -2
  118. package/dist/esm/components/audio/audio-player/audio-player.st.css.js.map +1 -1
  119. package/dist/esm/components/color-view/cell-color-view.st.css.js +2 -2
  120. package/dist/esm/components/color-view/cell-color-view.st.css.js.map +1 -1
  121. package/dist/esm/components/color-view/color-view.st.css.js +2 -2
  122. package/dist/esm/components/delete-dialog/delete-dialog.st.css.js +2 -2
  123. package/dist/esm/components/document/form-document-field.st.css.js +2 -2
  124. package/dist/esm/components/document/form-document-field.st.css.js.map +1 -1
  125. package/dist/esm/components/exclamation/exclamation.st.css.js +2 -2
  126. package/dist/esm/components/field-validation-settings/field-validation-settings-input.st.css.js +2 -2
  127. package/dist/esm/components/highlighted-text/highlighted-text.st.css.js +3 -3
  128. package/dist/esm/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
  129. package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js +2 -2
  130. package/dist/esm/components/media-control/cell-media-edit-shell.st.css.js +2 -2
  131. package/dist/esm/components/media-control/paste-url-button.st.css.js +2 -2
  132. package/dist/esm/components/media-control/paste-url-button.st.css.js.map +1 -1
  133. package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js +2 -2
  134. package/dist/esm/components/media-image/media-image.st.css.js +3 -3
  135. package/dist/esm/components/media-image/overlays/overlay.st.css.js +2 -2
  136. package/dist/esm/components/media-image-field/cell-media-image-edit.st.css.js +2 -2
  137. package/dist/esm/components/media-image-field/cell-media-image-edit.st.css.js.map +1 -1
  138. package/dist/esm/components/media-image-field/media-image-view.st.css.js +2 -2
  139. package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
  140. package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
  141. package/dist/esm/components/multi-document/cell-multi-document-edit.st.css.js +2 -2
  142. package/dist/esm/components/multi-document/cell-multi-document-edit.st.css.js.map +1 -1
  143. package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js +2 -2
  144. package/dist/esm/components/reference/cell-multi-reference-input.st.css.js +2 -2
  145. package/dist/esm/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
  146. package/dist/esm/components/reference/cell-multi-reference-view.st.css.js +2 -2
  147. package/dist/esm/components/reference/cell-reference-input.st.css.js +2 -2
  148. package/dist/esm/components/rich-content/cdn/load-ricos.js +1 -1
  149. package/dist/esm/components/rich-content/cell-rich-content-input.js +13 -3
  150. package/dist/esm/components/rich-content/cell-rich-content-input.js.map +1 -1
  151. package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +2 -2
  152. package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
  153. package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +2 -2
  154. package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
  155. 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
  156. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +2 -2
  157. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
  158. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +2 -2
  159. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
  160. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.js +2 -8
  161. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.js.map +1 -1
  162. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +2 -2
  163. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
  164. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +2 -2
  165. package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +2 -2
  166. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +2 -2
  167. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
  168. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +2 -2
  169. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +2 -2
  170. package/dist/esm/components/text/text-view.st.css.js +2 -2
  171. package/dist/esm/styles.global.css +1 -1
  172. package/dist/types/components/audio/audio-player/audio-player.st.css.d.ts.map +1 -1
  173. package/dist/types/components/color-view/cell-color-view.st.css.d.ts.map +1 -1
  174. package/dist/types/components/document/form-document-field.st.css.d.ts.map +1 -1
  175. package/dist/types/components/field-validation-settings/field-validation-settings.uni.driver.d.ts +1 -0
  176. package/dist/types/components/field-validation-settings/field-validation-settings.uni.driver.d.ts.map +1 -1
  177. package/dist/types/components/highlighted-text/highlighted-text.st.css.d.ts.map +1 -1
  178. package/dist/types/components/media-control/paste-url-button.st.css.d.ts.map +1 -1
  179. package/dist/types/components/media-gallery/form-media-gallery-field.uni.driver.d.ts +4 -0
  180. package/dist/types/components/media-gallery/form-media-gallery-field.uni.driver.d.ts.map +1 -1
  181. package/dist/types/components/media-gallery/form-media-gallery.driver.d.ts +4 -0
  182. package/dist/types/components/media-gallery/form-media-gallery.driver.d.ts.map +1 -1
  183. package/dist/types/components/media-image-field/cell-media-image-edit.st.css.d.ts.map +1 -1
  184. package/dist/types/components/media-tag/web-media-tag/media-tag.st.css.d.ts.map +1 -1
  185. package/dist/types/components/multi-document/cell-multi-document-edit.st.css.d.ts.map +1 -1
  186. package/dist/types/components/reference/cell-multi-reference-input.st.css.d.ts.map +1 -1
  187. package/dist/types/components/rich-content/cell-rich-content-input.d.ts +2 -2
  188. package/dist/types/components/rich-content/cell-rich-content-input.d.ts.map +1 -1
  189. package/dist/types/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.d.ts.map +1 -1
  190. 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
  191. package/dist/types/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.d.ts.map +1 -1
  192. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.d.ts +0 -2
  193. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.d.ts.map +1 -1
  194. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.d.ts.map +1 -1
  195. package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.d.ts.map +1 -1
  196. package/package.json +4 -4
  197. package/src/__tests__/components/rich-content-editor.spec.tsx +64 -33
  198. package/src/assets/locale/messages_ar.json +2 -2
  199. package/src/assets/locale/messages_bg.json +2 -2
  200. package/src/assets/locale/messages_ca.json +2 -2
  201. package/src/assets/locale/messages_el.json +2 -2
  202. package/src/assets/locale/messages_en.json +2 -2
  203. package/src/assets/locale/messages_fi.json +2 -2
  204. package/src/assets/locale/messages_he.json +2 -2
  205. package/src/assets/locale/messages_hu.json +2 -2
  206. package/src/assets/locale/messages_lt.json +2 -2
  207. package/src/assets/locale/messages_ms.json +2 -2
  208. package/src/assets/locale/messages_ro.json +2 -2
  209. package/src/assets/locale/messages_sk.json +2 -2
  210. package/src/assets/locale/messages_sl.json +2 -2
  211. package/src/assets/locale/messages_tl.json +2 -2
  212. package/src/assets/locale/version_file +1 -1
  213. package/src/components/address/input/address-input.st.css.ts +2 -2
  214. package/src/components/audio/actions/actions-menu/actions-menu.st.css.ts +2 -2
  215. package/src/components/audio/audio-field/form-audio-field.st.css.ts +2 -2
  216. package/src/components/audio/audio-player/audio-player.st.css.ts +2 -2
  217. package/src/components/color-view/cell-color-view.st.css.ts +2 -2
  218. package/src/components/color-view/color-view.st.css.ts +2 -2
  219. package/src/components/delete-dialog/delete-dialog.st.css.ts +2 -2
  220. package/src/components/document/form-document-field.st.css.ts +2 -2
  221. package/src/components/exclamation/exclamation.st.css.ts +2 -2
  222. package/src/components/field-validation-settings/field-validation-settings-input.st.css.ts +2 -2
  223. package/src/components/highlighted-text/highlighted-text.st.css.ts +3 -3
  224. package/src/components/image/thumbnail-replace-overlay.st.css.ts +2 -2
  225. package/src/components/media-control/cell-media-edit-shell.st.css.ts +2 -2
  226. package/src/components/media-control/paste-url-button.st.css.ts +2 -2
  227. package/src/components/media-gallery/form-media-gallery-field.st.css.ts +2 -2
  228. package/src/components/media-image/media-image.st.css.ts +3 -3
  229. package/src/components/media-image/overlays/overlay.st.css.ts +2 -2
  230. package/src/components/media-image-field/cell-media-image-edit.st.css.ts +2 -2
  231. package/src/components/media-image-field/media-image-view.st.css.ts +2 -2
  232. package/src/components/media-tag/web-media-tag/media-tag.st.css.ts +2 -2
  233. package/src/components/multi-document/cell-multi-document-edit.st.css.ts +2 -2
  234. package/src/components/multi-document/multi-document-input/form-multi-document.st.css.ts +2 -2
  235. package/src/components/reference/cell-multi-reference-input.st.css.ts +2 -2
  236. package/src/components/reference/cell-multi-reference-view.st.css.ts +2 -2
  237. package/src/components/reference/cell-reference-input.st.css.ts +2 -2
  238. package/src/components/rich-content/cdn/load-ricos.ts +1 -1
  239. package/src/components/rich-content/cell-rich-content-input.tsx +22 -11
  240. package/src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts +2 -2
  241. package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts +2 -2
  242. package/src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts +2 -2
  243. package/src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts +2 -2
  244. package/src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts +2 -2
  245. package/src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts +2 -2
  246. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts +2 -2
  247. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.tsx +1 -9
  248. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts +2 -2
  249. package/src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.ts +2 -2
  250. package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts +2 -2
  251. package/src/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.ts +2 -2
  252. package/src/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.ts +2 -2
  253. package/src/components/text/text-view.st.css.ts +2 -2
  254. package/src/styles.global.css +1 -1
@@ -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_ = "cellreferenceinput1313473246";
8
+ var _namespace_ = "cellreferenceinput1540347298";
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": "cellreferenceinput1313473246__root",
16
- "autocomplete": "cellreferenceinput1313473246__autocomplete"
15
+ "root": "cellreferenceinput1540347298__root",
16
+ "autocomplete": "cellreferenceinput1540347298__autocomplete"
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/reference/cell-reference-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"cellreferenceinput1313473246\";\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\":\"cellreferenceinput1313473246__root\",\"autocomplete\":\"cellreferenceinput1313473246__autocomplete\"};\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,8BAA8B;AAChD,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,oCAAoC;EAAC,cAAc,EAAC;AAA4C,CAAC;AACvH,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/reference/cell-reference-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"cellreferenceinput1540347298\";\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\":\"cellreferenceinput1540347298__root\",\"autocomplete\":\"cellreferenceinput1540347298__autocomplete\"};\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,8BAA8B;AAChD,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,oCAAoC;EAAC,cAAc,EAAC;AAA4C,CAAC;AACvH,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":[]}
@@ -21,7 +21,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
21
21
  *
22
22
  * curl -s <url> | grep -c <ricos version> # ricos-schema/next-schema/version.js
23
23
  */
24
- const RICOS_STATICS_VERSION = '1.7.0';
24
+ const RICOS_STATICS_VERSION = '1.8.0';
25
25
  const RICOS_STATICS_URL = `https://static.parastorage.com/services/patterns-fields-ricos-statics/${RICOS_STATICS_VERSION}/ricos.umd.min.js`;
26
26
 
27
27
  /** UMD global declared by the statics bundle (`library: 'PatternsRicos'`). */
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactDom","_interopRequireDefault","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","RICOS_STATICS_VERSION","RICOS_STATICS_URL","GLOBAL_NAME","provideReactGlobals","win","react","React","reactDOM","ReactDOM","appendScript","url","Promise","resolve","reject","script","document","createElement","type","src","crossOrigin","onerror","Error","onload","head","appendChild","loadForTests","process","env","NODE_ENV","undefined","load","forTests","window","requirejs","fail","error","String","mod","pending","loadRicosFromCdn","exports","useRicosFromCdn","setMod","useState","useEffect","cancelled","then","loaded","console"],"sources":["../../../../../src/components/rich-content/cdn/load-ricos.ts"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport ReactDOM from 'react-dom';\n\nimport type { RicosCdnModule } from './types';\n\n/**\n * Pinned exactly, not to a range. The npm `@wix/ricos` used for the synchronous\n * content helpers and this artifact must not drift — two different ricos\n * versions in one page means two schema versions, and content written by one may\n * not validate in the other.\n *\n * This number is Falcon's build counter for wix-private/patterns-deps, not the\n * npm version of the same package. Falcon bumps it on every master build,\n * including builds that publish nothing, so the two drift apart and occasionally\n * coincide again — as they happen to right now. A wrong-but-existing version\n * returns 200 and silently loads a different ricos, so confirm the artifact\n * rather than the number:\n *\n * curl -s <url> | grep -c <ricos version> # ricos-schema/next-schema/version.js\n */\nconst RICOS_STATICS_VERSION = '1.7.0';\nconst RICOS_STATICS_URL =\n `https://static.parastorage.com/services/patterns-fields-ricos-statics/${RICOS_STATICS_VERSION}/ricos.umd.min.js` as const;\n\n/** UMD global declared by the statics bundle (`library: 'PatternsRicos'`). */\nconst GLOBAL_NAME = 'PatternsRicos';\n\ntype LoaderWindow = Window & {\n PatternsRicos?: RicosCdnModule;\n // The bundle's UMD externals. Business Manager may already provide these;\n // we fill them in from the host app's own copies when it does not.\n react?: typeof React;\n reactDOM?: typeof ReactDOM;\n requirejs?: (\n deps: string[],\n // Undefined when the requested id resolves to nothing — which is what asking\n // for this bundle by URL does, since its `define` is named.\n onOk: (mod: RicosCdnModule | undefined) => void,\n onErr: (error: Error) => void,\n ) => void;\n};\n\n/**\n * The bundle externalises react/react-dom. Its UMD wrapper resolves them as AMD\n * dependencies when requirejs is present, and off these globals when it is not —\n * without them it throws `undefined (reading 'createContext')` while evaluating\n * and never defines `PatternsRicos`. Pointing them at the host app's own copies\n * is also what keeps one React on the page; a second would make every hook\n * inside the editor throw.\n */\nconst provideReactGlobals = (win: LoaderWindow) => {\n win.react = win.react ?? React;\n win.reactDOM = win.reactDOM ?? ReactDOM;\n};\n\nconst appendScript = (url: string) =>\n new Promise<void>((resolve, reject) => {\n const script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = url;\n script.crossOrigin = 'anonymous';\n script.onerror = () => reject(new Error(`Failed to load ${url}`));\n script.onload = () => resolve();\n document.head.appendChild(script);\n });\n\n/**\n * jsdom cannot fetch the CDN, so under test we require the package the artifact\n * is built from — same export list, so the surface matches by construction.\n *\n * This `require` is dead-code-eliminated in production builds, which is the whole\n * point: the editor and viewer must never enter a consumer's graph. Verify with\n * `grep -r 'ricos' <consumer>/dist` after touching this.\n */\nconst loadForTests = (): RicosCdnModule | undefined => {\n // The `require`s must sit inside the consequent of a statically-false\n // condition. An early `return` for the non-test case leaves them as\n // unreachable code *after* the `if`, which webpack does not prune — that\n // silently puts the whole editor back in every consumer's graph.\n if (process.env.NODE_ENV === 'test') {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n return require('@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics') as RicosCdnModule;\n }\n return undefined;\n};\n\nconst load = async (): Promise<RicosCdnModule> => {\n const forTests = loadForTests();\n if (forTests) {\n return forTests;\n }\n\n const win = window as unknown as LoaderWindow;\n\n // The bundle is UMD with a named `define`, so under Business Manager's\n // requirejs it takes the AMD branch: it registers under GLOBAL_NAME and never\n // assigns the global. Asking for it by URL loads the file but resolves with\n // `undefined`, because nothing is defined under the URL's id — so fetch it,\n // then ask again by the name it registered itself as.\n if (win.requirejs) {\n return new Promise<RicosCdnModule>((resolve, reject) => {\n const fail = (error: unknown) =>\n reject(\n error instanceof Error\n ? error\n : new Error(\n `Failed to load ${RICOS_STATICS_URL}: ${String(error)}`,\n ),\n );\n\n win.requirejs!(\n [RICOS_STATICS_URL],\n () =>\n win.requirejs!(\n [GLOBAL_NAME],\n (mod) =>\n mod\n ? resolve(mod)\n : fail(\n new Error(\n `${RICOS_STATICS_URL} loaded but defined no \"${GLOBAL_NAME}\" module`,\n ),\n ),\n fail,\n ),\n fail,\n );\n });\n }\n\n provideReactGlobals(win);\n await appendScript(RICOS_STATICS_URL);\n\n const mod = win[GLOBAL_NAME];\n if (!mod) {\n throw new Error(\n `${RICOS_STATICS_URL} loaded but did not define window.${GLOBAL_NAME}`,\n );\n }\n return mod;\n};\n\nlet pending: Promise<RicosCdnModule> | undefined;\n\n/** Loads the bundle once per page; every caller shares the same promise. */\nexport const loadRicosFromCdn = (): Promise<RicosCdnModule> => {\n pending = pending ?? load();\n return pending;\n};\n\n/**\n * Returns the module once loaded, `undefined` while in flight. A caller must\n * render something in the meantime — `RCELoader` in the editor, `RCVLoader` in\n * the viewer. Returning `null` instead leaves a blank area for the duration of\n * the fetch.\n */\nexport const useRicosFromCdn = (): RicosCdnModule | undefined => {\n // Resolved on the first render under test, so specs see a mounted editor\n // rather than the pre-load `null`.\n const [mod, setMod] = useState<RicosCdnModule | undefined>(loadForTests);\n\n useEffect(() => {\n if (mod) {\n return;\n }\n let cancelled = false;\n loadRicosFromCdn().then(\n (loaded) => {\n if (!cancelled) {\n setMod(loaded);\n }\n },\n (error) => {\n // Nothing to fall back to — surface it rather than hanging on a spinner.\n console.error('[rich-content] failed to load ricos from CDN', error);\n },\n );\n return () => {\n cancelled = true;\n };\n }, [mod]);\n\n return mod;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAiC,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAA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;AACA;AACA;AACA;AALAE,OAAA,CAAAD,gBAAA,GAAAA,gBAAA;AAMO,MAAME,eAAe,GAAGA,CAAA,KAAkC;EAC/D;EACA;EACA,MAAM,CAACJ,GAAG,EAAEK,MAAM,CAAC,GAAG,IAAAC,eAAQ,EAA6BlB,YAAY,CAAC;EAExE,IAAAmB,gBAAS,EAAC,MAAM;IACd,IAAIP,GAAG,EAAE;MACP;IACF;IACA,IAAIQ,SAAS,GAAG,KAAK;IACrBN,gBAAgB,CAAC,CAAC,CAACO,IAAI,CACpBC,MAAM,IAAK;MACV,IAAI,CAACF,SAAS,EAAE;QACdH,MAAM,CAACK,MAAM,CAAC;MAChB;IACF,CAAC,EACAZ,KAAK,IAAK;MACT;MACAa,OAAO,CAACb,KAAK,CAAC,8CAA8C,EAAEA,KAAK,CAAC;IACtE,CACF,CAAC;IACD,OAAO,MAAM;MACXU,SAAS,GAAG,IAAI;IAClB,CAAC;EACH,CAAC,EAAE,CAACR,GAAG,CAAC,CAAC;EAET,OAAOA,GAAG;AACZ,CAAC;AAACG,OAAA,CAAAC,eAAA,GAAAA,eAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactDom","_interopRequireDefault","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","RICOS_STATICS_VERSION","RICOS_STATICS_URL","GLOBAL_NAME","provideReactGlobals","win","react","React","reactDOM","ReactDOM","appendScript","url","Promise","resolve","reject","script","document","createElement","type","src","crossOrigin","onerror","Error","onload","head","appendChild","loadForTests","process","env","NODE_ENV","undefined","load","forTests","window","requirejs","fail","error","String","mod","pending","loadRicosFromCdn","exports","useRicosFromCdn","setMod","useState","useEffect","cancelled","then","loaded","console"],"sources":["../../../../../src/components/rich-content/cdn/load-ricos.ts"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport ReactDOM from 'react-dom';\n\nimport type { RicosCdnModule } from './types';\n\n/**\n * Pinned exactly, not to a range. The npm `@wix/ricos` used for the synchronous\n * content helpers and this artifact must not drift — two different ricos\n * versions in one page means two schema versions, and content written by one may\n * not validate in the other.\n *\n * This number is Falcon's build counter for wix-private/patterns-deps, not the\n * npm version of the same package. Falcon bumps it on every master build,\n * including builds that publish nothing, so the two drift apart and occasionally\n * coincide again — as they happen to right now. A wrong-but-existing version\n * returns 200 and silently loads a different ricos, so confirm the artifact\n * rather than the number:\n *\n * curl -s <url> | grep -c <ricos version> # ricos-schema/next-schema/version.js\n */\nconst RICOS_STATICS_VERSION = '1.8.0';\nconst RICOS_STATICS_URL =\n `https://static.parastorage.com/services/patterns-fields-ricos-statics/${RICOS_STATICS_VERSION}/ricos.umd.min.js` as const;\n\n/** UMD global declared by the statics bundle (`library: 'PatternsRicos'`). */\nconst GLOBAL_NAME = 'PatternsRicos';\n\ntype LoaderWindow = Window & {\n PatternsRicos?: RicosCdnModule;\n // The bundle's UMD externals. Business Manager may already provide these;\n // we fill them in from the host app's own copies when it does not.\n react?: typeof React;\n reactDOM?: typeof ReactDOM;\n requirejs?: (\n deps: string[],\n // Undefined when the requested id resolves to nothing — which is what asking\n // for this bundle by URL does, since its `define` is named.\n onOk: (mod: RicosCdnModule | undefined) => void,\n onErr: (error: Error) => void,\n ) => void;\n};\n\n/**\n * The bundle externalises react/react-dom. Its UMD wrapper resolves them as AMD\n * dependencies when requirejs is present, and off these globals when it is not —\n * without them it throws `undefined (reading 'createContext')` while evaluating\n * and never defines `PatternsRicos`. Pointing them at the host app's own copies\n * is also what keeps one React on the page; a second would make every hook\n * inside the editor throw.\n */\nconst provideReactGlobals = (win: LoaderWindow) => {\n win.react = win.react ?? React;\n win.reactDOM = win.reactDOM ?? ReactDOM;\n};\n\nconst appendScript = (url: string) =>\n new Promise<void>((resolve, reject) => {\n const script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = url;\n script.crossOrigin = 'anonymous';\n script.onerror = () => reject(new Error(`Failed to load ${url}`));\n script.onload = () => resolve();\n document.head.appendChild(script);\n });\n\n/**\n * jsdom cannot fetch the CDN, so under test we require the package the artifact\n * is built from — same export list, so the surface matches by construction.\n *\n * This `require` is dead-code-eliminated in production builds, which is the whole\n * point: the editor and viewer must never enter a consumer's graph. Verify with\n * `grep -r 'ricos' <consumer>/dist` after touching this.\n */\nconst loadForTests = (): RicosCdnModule | undefined => {\n // The `require`s must sit inside the consequent of a statically-false\n // condition. An early `return` for the non-test case leaves them as\n // unreachable code *after* the `if`, which webpack does not prune — that\n // silently puts the whole editor back in every consumer's graph.\n if (process.env.NODE_ENV === 'test') {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n return require('@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics') as RicosCdnModule;\n }\n return undefined;\n};\n\nconst load = async (): Promise<RicosCdnModule> => {\n const forTests = loadForTests();\n if (forTests) {\n return forTests;\n }\n\n const win = window as unknown as LoaderWindow;\n\n // The bundle is UMD with a named `define`, so under Business Manager's\n // requirejs it takes the AMD branch: it registers under GLOBAL_NAME and never\n // assigns the global. Asking for it by URL loads the file but resolves with\n // `undefined`, because nothing is defined under the URL's id — so fetch it,\n // then ask again by the name it registered itself as.\n if (win.requirejs) {\n return new Promise<RicosCdnModule>((resolve, reject) => {\n const fail = (error: unknown) =>\n reject(\n error instanceof Error\n ? error\n : new Error(\n `Failed to load ${RICOS_STATICS_URL}: ${String(error)}`,\n ),\n );\n\n win.requirejs!(\n [RICOS_STATICS_URL],\n () =>\n win.requirejs!(\n [GLOBAL_NAME],\n (mod) =>\n mod\n ? resolve(mod)\n : fail(\n new Error(\n `${RICOS_STATICS_URL} loaded but defined no \"${GLOBAL_NAME}\" module`,\n ),\n ),\n fail,\n ),\n fail,\n );\n });\n }\n\n provideReactGlobals(win);\n await appendScript(RICOS_STATICS_URL);\n\n const mod = win[GLOBAL_NAME];\n if (!mod) {\n throw new Error(\n `${RICOS_STATICS_URL} loaded but did not define window.${GLOBAL_NAME}`,\n );\n }\n return mod;\n};\n\nlet pending: Promise<RicosCdnModule> | undefined;\n\n/** Loads the bundle once per page; every caller shares the same promise. */\nexport const loadRicosFromCdn = (): Promise<RicosCdnModule> => {\n pending = pending ?? load();\n return pending;\n};\n\n/**\n * Returns the module once loaded, `undefined` while in flight. A caller must\n * render something in the meantime — `RCELoader` in the editor, `RCVLoader` in\n * the viewer. Returning `null` instead leaves a blank area for the duration of\n * the fetch.\n */\nexport const useRicosFromCdn = (): RicosCdnModule | undefined => {\n // Resolved on the first render under test, so specs see a mounted editor\n // rather than the pre-load `null`.\n const [mod, setMod] = useState<RicosCdnModule | undefined>(loadForTests);\n\n useEffect(() => {\n if (mod) {\n return;\n }\n let cancelled = false;\n loadRicosFromCdn().then(\n (loaded) => {\n if (!cancelled) {\n setMod(loaded);\n }\n },\n (error) => {\n // Nothing to fall back to — surface it rather than hanging on a spinner.\n console.error('[rich-content] failed to load ricos from CDN', error);\n },\n );\n return () => {\n cancelled = true;\n };\n }, [mod]);\n\n return mod;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAiC,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GA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AAMK,YAAY,CAACR,iBAAiB,CAAC;EAErC,MAAMoC,GAAG,GAAGjC,GAAG,CAACF,WAAW,CAAC;EAC5B,IAAI,CAACmC,GAAG,EAAE;IACR,MAAM,IAAIhB,KAAK,CACb,GAAGpB,iBAAiB,qCAAqCC,WAAW,EACtE,CAAC;EACH;EACA,OAAOmC,GAAG;AACZ,CAAC;AAED,IAAIC,OAA4C;;AAEhD;AACO,MAAMC,gBAAgB,GAAGA,CAAA,KAA+B;EAC7DD,OAAO,GAAGA,OAAO,IAAIR,IAAI,CAAC,CAAC;EAC3B,OAAOQ,OAAO;AAChB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AALAE,OAAA,CAAAD,gBAAA,GAAAA,gBAAA;AAMO,MAAME,eAAe,GAAGA,CAAA,KAAkC;EAC/D;EACA;EACA,MAAM,CAACJ,GAAG,EAAEK,MAAM,CAAC,GAAG,IAAAC,eAAQ,EAA6BlB,YAAY,CAAC;EAExE,IAAAmB,gBAAS,EAAC,MAAM;IACd,IAAIP,GAAG,EAAE;MACP;IACF;IACA,IAAIQ,SAAS,GAAG,KAAK;IACrBN,gBAAgB,CAAC,CAAC,CAACO,IAAI,CACpBC,MAAM,IAAK;MACV,IAAI,CAACF,SAAS,EAAE;QACdH,MAAM,CAACK,MAAM,CAAC;MAChB;IACF,CAAC,EACAZ,KAAK,IAAK;MACT;MACAa,OAAO,CAACb,KAAK,CAAC,8CAA8C,EAAEA,KAAK,CAAC;IACtE,CACF,CAAC;IACD,OAAO,MAAM;MACXU,SAAS,GAAG,IAAI;IAClB,CAAC;EACH,CAAC,EAAE,CAACR,GAAG,CAAC,CAAC;EAET,OAAOA,GAAG;AACZ,CAAC;AAACG,OAAA,CAAAC,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -7,11 +7,21 @@ var _patternsFieldsBundledRicos = require("@wix/patterns-fields-utils/@wix/patte
7
7
  var _richContentEditor = require("./rich-content-input/rich-content-editor");
8
8
  var _richContentCommon = require("./rich-content-input/rich-content-common");
9
9
  var _richContent = require("../../validations/rich-content");
10
+ var _utils = require("../../utils");
10
11
  var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/fields/dist/cjs/components/rich-content/cell-rich-content-input.tsx";
11
12
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
+ // The editor renders in a portal, but its key events still bubble to the table,
14
+ // which closes the cell on Tab before the editor has reported its content.
15
+ // Only propagation is stopped: Tab still moves focus or indents inside the editor.
16
+ const keepTabInEditor = e => {
17
+ if (e.key === 'Tab') {
18
+ (0, _utils.stopEvent)(e);
19
+ }
20
+ };
21
+
12
22
  /** Full-screen Ricos editor for the richContent cell type.
13
- * Opens immediately in fullscreen mode. Saving (X button, Escape or Enter) calls onChange + onSave.
14
- * Shift+Enter adds a new line. */
23
+ * Opens immediately in fullscreen mode. Saving (X button or Escape) calls onChange + onSave.
24
+ * Unlike other cells, Enter and Tab do not save: Enter adds a new paragraph and Tab stays in the editor. */
15
25
  const CellRichContentInput = ({
16
26
  value,
17
27
  onChange,
@@ -50,21 +60,28 @@ const CellRichContentInput = ({
50
60
  }
51
61
  onSave();
52
62
  }, [onChange, onSave, initialTypedKey]);
53
- return /*#__PURE__*/_react.default.createElement(_richContentEditor.RichContentEditor, {
63
+ return /*#__PURE__*/_react.default.createElement("div", {
64
+ onKeyDown: keepTabInEditor,
65
+ __self: void 0,
66
+ __source: {
67
+ fileName: _jsxFileName,
68
+ lineNumber: 82,
69
+ columnNumber: 5
70
+ }
71
+ }, /*#__PURE__*/_react.default.createElement(_richContentEditor.RichContentEditor, {
54
72
  content: localValue,
55
73
  injectedContent: injectedValue,
56
74
  onChange: handleChange,
57
75
  onExitFullScreen: handleExitFullScreen,
58
76
  fullScreenOnly: true,
59
- closeOnEnter: true,
60
77
  autoFocus: true,
61
78
  __self: void 0,
62
79
  __source: {
63
80
  fileName: _jsxFileName,
64
- lineNumber: 72,
65
- columnNumber: 5
81
+ lineNumber: 83,
82
+ columnNumber: 7
66
83
  }
67
- });
84
+ }));
68
85
  };
69
86
  exports.CellRichContentInput = CellRichContentInput;
70
87
  CellRichContentInput.displayName = 'CellRichContentInput';
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_patternsFieldsBundledRicos","_richContentEditor","_richContentCommon","_richContent","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CellRichContentInput","value","onChange","onSave","initialTypedKey","hasSavedRef","useRef","initialContent","useMemo","existingText","toPlainTextSync","hardConvert","delimiter","fromPlainText","undefined","localValue","setLocalValue","injectedValue","useRichContentState","handleChange","useCallback","content","handleExitFullScreen","isContentChanged","current","createElement","RichContentEditor","injectedContent","onExitFullScreen","fullScreenOnly","closeOnEnter","autoFocus","__self","__source","fileName","lineNumber","columnNumber","exports","displayName"],"sources":["../../../../src/components/rich-content/cell-rich-content-input.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useRef } from 'react';\n\nimport type { RicosDocument } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport {\n fromPlainText,\n toPlainTextSync,\n} from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\n\nimport { RichContentEditor } from './rich-content-input/rich-content-editor';\nimport { useRichContentState } from './rich-content-input/rich-content-common';\nimport { hardConvert } from '../../validations/rich-content';\n\nexport interface CellRichContentInputProps {\n value?: unknown;\n onChange: (value: RicosDocument | undefined) => void;\n onSave: () => void;\n /** Typed key from type-to-edit — appended to a plain-text extraction of the existing content (formatting is lost). */\n initialTypedKey?: string;\n}\n\n/** Full-screen Ricos editor for the richContent cell type.\n * Opens immediately in fullscreen mode. Saving (X button, Escape or Enter) calls onChange + onSave.\n * Shift+Enter adds a new line. */\nexport const CellRichContentInput: React.FC<CellRichContentInputProps> = ({\n value,\n onChange,\n onSave,\n initialTypedKey,\n}) => {\n const hasSavedRef = useRef(false);\n\n // Compute initial editor content once on mount.\n // If there's a typed key, append it to the existing plain-text form of the content.\n const initialContent = useMemo((): RicosDocument | undefined => {\n if (initialTypedKey) {\n const existingText = value\n ? toPlainTextSync(hardConvert(value), { delimiter: '\\n' })\n : '';\n return fromPlainText(existingText + initialTypedKey);\n }\n return value === undefined ? undefined : hardConvert(value);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []); // Deliberately run only on mount — typed key is a one-shot initializer\n\n const [localValue, setLocalValue, injectedValue] =\n useRichContentState(initialContent);\n\n const handleChange = useCallback(\n (content: RicosDocument) => setLocalValue(content),\n [setLocalValue],\n );\n\n /** Commit the content (if it changed) and exit edit mode.\n * Guards against double-save (X button + Escape firing simultaneously). */\n const handleExitFullScreen = useCallback(\n (content?: RicosDocument, isContentChanged?: boolean) => {\n if (hasSavedRef.current) {\n return;\n }\n hasSavedRef.current = true;\n // Skipping onChange leaves the cell untouched, so nothing is saved. A\n // typed-to-edit key is a change even though the editor started with it.\n if (isContentChanged || initialTypedKey) {\n onChange(content);\n }\n onSave();\n },\n [onChange, onSave, initialTypedKey],\n );\n\n return (\n <RichContentEditor\n content={localValue}\n injectedContent={injectedValue}\n onChange={handleChange}\n onExitFullScreen={handleExitFullScreen}\n fullScreenOnly\n closeOnEnter\n autoFocus\n />\n );\n};\n\nCellRichContentInput.displayName = 'CellRichContentInput';\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,2BAAA,GAAAD,OAAA;AAKA,IAAAE,kB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S;IAAAC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAtD,YAAA;MAAAuD,UAAA;MAAAC,YAAA;IAAA;EAAA,CACV,CAAC;AAEN,CAAC;AAACC,OAAA,CAAArC,oBAAA,GAAAA,oBAAA;AAEFA,oBAAoB,CAACsC,WAAW,GAAG,sBAAsB","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_patternsFieldsBundledRicos","_richContentEditor","_richContentCommon","_richContent","_utils","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","keepTabInEditor","key","stopEvent","CellRichContentInput","value","onChange","onSave","initialTypedKey","hasSavedRef","useRef","initialContent","useMemo","existingText","toPlainTextSync","hardConvert","delimiter","fromPlainText","undefined","localValue","setLocalValue","injectedValue","useRichContentState","handleChange","useCallback","content","handleExitFullScreen","isContentChanged","current","createElement","onKeyDown","__self","__source","fileName","lineNumber","columnNumber","RichContentEditor","injectedContent","onExitFullScreen","fullScreenOnly","autoFocus","exports","displayName"],"sources":["../../../../src/components/rich-content/cell-rich-content-input.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useRef } from 'react';\n\nimport type { RicosDocument } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport {\n fromPlainText,\n toPlainTextSync,\n} from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\n\nimport { RichContentEditor } from './rich-content-input/rich-content-editor';\nimport { useRichContentState } from './rich-content-input/rich-content-common';\nimport { hardConvert } from '../../validations/rich-content';\nimport { stopEvent } from '../../utils';\n\nexport interface CellRichContentInputProps {\n value?: unknown;\n onChange: (value: RicosDocument | undefined) => void;\n onSave: () => void;\n /** Typed key from type-to-edit — appended to a plain-text extraction of the existing content (formatting is lost). */\n initialTypedKey?: string;\n}\n\n// The editor renders in a portal, but its key events still bubble to the table,\n// which closes the cell on Tab before the editor has reported its content.\n// Only propagation is stopped: Tab still moves focus or indents inside the editor.\nconst keepTabInEditor = (e: React.KeyboardEvent) => {\n if (e.key === 'Tab') {\n stopEvent(e);\n }\n};\n\n/** Full-screen Ricos editor for the richContent cell type.\n * Opens immediately in fullscreen mode. Saving (X button or Escape) calls onChange + onSave.\n * Unlike other cells, Enter and Tab do not save: Enter adds a new paragraph and Tab stays in the editor. */\nexport const CellRichContentInput: React.FC<CellRichContentInputProps> = ({\n value,\n onChange,\n onSave,\n initialTypedKey,\n}) => {\n const hasSavedRef = useRef(false);\n\n // Compute initial editor content once on mount.\n // If there's a typed key, append it to the existing plain-text form of the content.\n const initialContent = useMemo((): RicosDocument | undefined => {\n if (initialTypedKey) {\n const existingText = value\n ? toPlainTextSync(hardConvert(value), { delimiter: '\\n' })\n : '';\n return fromPlainText(existingText + initialTypedKey);\n }\n return value === undefined ? undefined : hardConvert(value);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []); // Deliberately run only on mount — typed key is a one-shot initializer\n\n const [localValue, setLocalValue, injectedValue] =\n useRichContentState(initialContent);\n\n const handleChange = useCallback(\n (content: RicosDocument) => setLocalValue(content),\n [setLocalValue],\n );\n\n /** Commit the content (if it changed) and exit edit mode.\n * Guards against double-save (X button + Escape firing simultaneously). */\n const handleExitFullScreen = useCallback(\n (content?: RicosDocument, isContentChanged?: boolean) => {\n if (hasSavedRef.current) {\n return;\n }\n hasSavedRef.current = true;\n // Skipping onChange leaves the cell untouched, so nothing is saved. A\n // typed-to-edit key is a change even though the editor started with it.\n if (isContentChanged || initialTypedKey) {\n onChange(content);\n }\n onSave();\n },\n [onChange, onSave, initialTypedKey],\n );\n\n return (\n <div onKeyDown={keepTabInEditor}>\n <RichContentEditor\n content={localValue}\n injectedContent={injectedValue}\n onChange={handleChange}\n onExitFullScreen={handleExitFullScreen}\n fullScreenOnly\n autoFocus\n />\n </div>\n );\n};\n\nCellRichContentInput.displayName = 'CellRichContentInput';\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBA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MAAM,EAAEC,eAAe,CACpC,CAAC;EAED,oBACEnC,MAAA,CAAAmB,OAAA,CAAAqC,aAAA;IAAKC,SAAS,EAAE7B,eAAgB;IAAA8B,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAApD,YAAA;MAAAqD,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAC9B9D,MAAA,CAAAmB,OAAA,CAAAqC,aAAA,CAACpD,kBAAA,CAAA2D,iBAAiB;IAChBX,OAAO,EAAEN,UAAW;IACpBkB,eAAe,EAAEhB,aAAc;IAC/Bf,QAAQ,EAAEiB,YAAa;IACvBe,gBAAgB,EAAEZ,oBAAqB;IACvCa,cAAc;IACdC,SAAS;IAAAT,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAApD,YAAA;MAAAqD,UAAA;MAAAC,YAAA;IAAA;EAAA,CACV,CACE,CAAC;AAEV,CAAC;AAACM,OAAA,CAAArC,oBAAA,GAAAA,oBAAA;AAEFA,oBAAoB,CAACsC,WAAW,GAAG,sBAAsB","ignoreList":[]}
@@ -5,16 +5,16 @@ 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_ = "richcontentdefaultvalueinput2371088795";
8
+ var _namespace_ = "richcontentdefaultvalueinput384255846";
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": "richcontentdefaultvalueinput2371088795__root",
16
- "richContentEditorContainer": "richcontentdefaultvalueinput2371088795__richContentEditorContainer",
17
- "editor": "richcontentdefaultvalueinput2371088795__editor"
15
+ "root": "richcontentdefaultvalueinput384255846__root",
16
+ "richContentEditorContainer": "richcontentdefaultvalueinput384255846__richContentEditorContainer",
17
+ "editor": "richcontentdefaultvalueinput384255846__editor"
18
18
  };
19
19
  var keyframes = exports.keyframes = {};
20
20
  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/default-value-input/rich-content-default-value-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentdefaultvalueinput2371088795\";\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\":\"richcontentdefaultvalueinput2371088795__root\",\"richContentEditorContainer\":\"richcontentdefaultvalueinput2371088795__richContentEditorContainer\",\"editor\":\"richcontentdefaultvalueinput2371088795__editor\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"topToolbarHeight\":\"--topToolbarHeight\",\"bottomToolbarHeight\":\"--bottomToolbarHeight\"}; \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,8CAA8C;EAAC,4BAA4B,EAAC,oEAAoE;EAAC,QAAQ,EAAC;AAAgD,CAAC;AACjO,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,kBAAkB,EAAC,oBAAoB;EAAC,qBAAqB,EAAC;AAAuB,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/default-value-input/rich-content-default-value-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentdefaultvalueinput384255846\";\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\":\"richcontentdefaultvalueinput384255846__root\",\"richContentEditorContainer\":\"richcontentdefaultvalueinput384255846__richContentEditorContainer\",\"editor\":\"richcontentdefaultvalueinput384255846__editor\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"topToolbarHeight\":\"--topToolbarHeight\",\"bottomToolbarHeight\":\"--bottomToolbarHeight\"}; \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,6CAA6C;EAAC,4BAA4B,EAAC,mEAAmE;EAAC,QAAQ,EAAC;AAA+C,CAAC;AAC9N,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,kBAAkB,EAAC,oBAAoB;EAAC,qBAAqB,EAAC;AAAuB,CAAC","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_ = "richcontentforminput1929203601";
8
+ var _namespace_ = "richcontentforminput2623724401";
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": "richcontentforminput1929203601__root",
16
- "editor": "richcontentforminput1929203601__editor"
15
+ "root": "richcontentforminput2623724401__root",
16
+ "editor": "richcontentforminput2623724401__editor"
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/form-input/rich-content-form-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentforminput1929203601\";\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\":\"richcontentforminput1929203601__root\",\"editor\":\"richcontentforminput1929203601__editor\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"topToolbarHeight\":\"--topToolbarHeight\",\"bottomToolbarHeight\":\"--bottomToolbarHeight\",\"wds-input-border-color\":\"--wds-input-border-color\",\"wds-input-border-color-focus\":\"--wds-input-border-color-focus\",\"wds-input-shadow-focus-standard\":\"--wds-input-shadow-focus-standard\",\"wds-input-border-radius-default-medium\":\"--wds-input-border-radius-default-medium\",\"wsr-color-B10\":\"--wsr-color-B10\",\"wsr-color-B40\":\"--wsr-color-B40\",\"wsr-color-F00\":\"--wsr-color-F00\",\"wsr-border-radius-06\":\"--wsr-border-radius-06\",\"wsr-color-D80\":\"--wsr-color-D80\",\"wds-input-background-fill-default\":\"--wds-input-background-fill-default\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,gCAAgC;AAClD,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,sCAAsC;EAAC,QAAQ,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,kBAAkB,EAAC,oBAAoB;EAAC,qBAAqB,EAAC,uBAAuB;EAAC,wBAAwB,EAAC,0BAA0B;EAAC,8BAA8B,EAAC,gCAAgC;EAAC,iCAAiC,EAAC,mCAAmC;EAAC,wCAAwC,EAAC,0CAA0C;EAAC,eAAe,EAAC,iBAAiB;EAAC,eAAe,EAAC,iBAAiB;EAAC,eAAe,EAAC,iBAAiB;EAAC,sBAAsB,EAAC,wBAAwB;EAAC,eAAe,EAAC,iBAAiB;EAAC,mCAAmC,EAAC;AAAqC,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-input/rich-content-form-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentforminput2623724401\";\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\":\"richcontentforminput2623724401__root\",\"editor\":\"richcontentforminput2623724401__editor\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"topToolbarHeight\":\"--topToolbarHeight\",\"bottomToolbarHeight\":\"--bottomToolbarHeight\",\"wds-input-border-color\":\"--wds-input-border-color\",\"wds-input-border-color-focus\":\"--wds-input-border-color-focus\",\"wds-input-shadow-focus-standard\":\"--wds-input-shadow-focus-standard\",\"wds-input-border-radius-default-medium\":\"--wds-input-border-radius-default-medium\",\"wsr-color-B10\":\"--wsr-color-B10\",\"wsr-color-B40\":\"--wsr-color-B40\",\"wsr-color-F00\":\"--wsr-color-F00\",\"wsr-border-radius-06\":\"--wsr-border-radius-06\",\"wsr-color-D80\":\"--wsr-color-D80\",\"wds-input-background-fill-default\":\"--wds-input-background-fill-default\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OA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espace =
5
5
  var _stylableEsmRuntime = require("../../../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "richcontentformreadonlyinput791216886";
8
+ var _namespace_ = "richcontentformreadonlyinput2036888546";
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": "richcontentformreadonlyinput791216886__root"
15
+ "root": "richcontentformreadonlyinput2036888546__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_ = \"richcontentformreadonlyinput791216886\";\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\":\"richcontentformreadonlyinput791216886__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":[]}
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_ = \"richcontentformreadonlyinput2036888546\";\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\":\"richcontentformreadonlyinput2036888546__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":[]}
@@ -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_ = "fullscreenmodal362884490";
8
+ var _namespace_ = "fullscreenmodal2593435262";
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": "fullscreenmodal362884490__root",
16
- "modalContent": "fullscreenmodal362884490__modalContent"
15
+ "root": "fullscreenmodal2593435262__root",
16
+ "modalContent": "fullscreenmodal2593435262__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_ = \"fullscreenmodal362884490\";\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\":\"fullscreenmodal362884490__root\",\"modalContent\":\"fullscreenmodal362884490__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,0BAA0B;AAC5C,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,gCAAgC;EAAC,cAAc,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,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_ = \"fullscreenmodal2593435262\";\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\":\"fullscreenmodal2593435262__root\",\"modalContent\":\"fullscreenmodal2593435262__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,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_ = "publishloader2200528177";
8
+ var _namespace_ = "publishloader1519157742";
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": "publishloader2200528177__root",
16
- "publishLoader": "publishloader2200528177__publishLoader"
15
+ "root": "publishloader1519157742__root",
16
+ "publishLoader": "publishloader1519157742__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_ = \"publishloader2200528177\";\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\":\"publishloader2200528177__root\",\"publishLoader\":\"publishloader2200528177__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_ = \"publishloader1519157742\";\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\":\"publishloader1519157742__root\",\"publishLoader\":\"publishloader1519157742__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_ = "togglefullscreenbutton1718382146";
8
+ var _namespace_ = "togglefullscreenbutton2869470931";
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": "togglefullscreenbutton1718382146__root"
15
+ "root": "togglefullscreenbutton2869470931__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_ = \"togglefullscreenbutton1718382146\";\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\":\"togglefullscreenbutton1718382146__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
+ {"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_ = \"togglefullscreenbutton2869470931\";\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\":\"togglefullscreenbutton2869470931__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":[]}
@@ -17,7 +17,6 @@ var _common = require("../../../common");
17
17
  var _richContentCommon = require("../rich-content-common");
18
18
  var _plugins = require("./plugins");
19
19
  var _richContentToolbar = require("./rich-content-toolbar");
20
- var _keyboard = require("../../../../utils/keyboard");
21
20
  var _richContentEditorStCss = require("./rich-content-editor.st.css.js");
22
21
  var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/fields/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.tsx";
23
22
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -217,7 +216,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
217
216
  __self: void 0,
218
217
  __source: {
219
218
  fileName: _jsxFileName,
220
- lineNumber: 309,
219
+ lineNumber: 308,
221
220
  columnNumber: 7
222
221
  }
223
222
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -225,7 +224,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
225
224
  __self: void 0,
226
225
  __source: {
227
226
  fileName: _jsxFileName,
228
- lineNumber: 320,
227
+ lineNumber: 319,
229
228
  columnNumber: 9
230
229
  }
231
230
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -234,7 +233,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
234
233
  __self: void 0,
235
234
  __source: {
236
235
  fileName: _jsxFileName,
237
- lineNumber: 321,
236
+ lineNumber: 320,
238
237
  columnNumber: 11
239
238
  }
240
239
  }), !hidden && isToolbarReady && /*#__PURE__*/_react.default.createElement(_richContentCommon.ToggleFullscreenButton, {
@@ -243,7 +242,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
243
242
  __self: void 0,
244
243
  __source: {
245
244
  fileName: _jsxFileName,
246
- lineNumber: 323,
245
+ lineNumber: 322,
247
246
  columnNumber: 13
248
247
  }
249
248
  })), editor && /*#__PURE__*/_react.default.createElement(InsertToolbarSync, {
@@ -253,7 +252,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
253
252
  __self: void 0,
254
253
  __source: {
255
254
  fileName: _jsxFileName,
256
- lineNumber: 331,
255
+ lineNumber: 330,
257
256
  columnNumber: 11
258
257
  }
259
258
  }), !hidden && RicosEditor ? /*#__PURE__*/_react.default.createElement("div", {
@@ -262,7 +261,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
262
261
  __self: void 0,
263
262
  __source: {
264
263
  fileName: _jsxFileName,
265
- lineNumber: 339,
264
+ lineNumber: 338,
266
265
  columnNumber: 11
267
266
  }
268
267
  }, /*#__PURE__*/_react.default.createElement(RicosEditor, (0, _extends2.default)({
@@ -278,14 +277,14 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
278
277
  __self: void 0,
279
278
  __source: {
280
279
  fileName: _jsxFileName,
281
- lineNumber: 340,
280
+ lineNumber: 339,
282
281
  columnNumber: 13
283
282
  }
284
283
  }))) : null, !isToolbarReady && /*#__PURE__*/_react.default.createElement(RCELoader, {
285
284
  __self: void 0,
286
285
  __source: {
287
286
  fileName: _jsxFileName,
288
- lineNumber: 355,
287
+ lineNumber: 354,
289
288
  columnNumber: 29
290
289
  }
291
290
  }), !hidden && isToolbarReady && /*#__PURE__*/_react.default.createElement("div", {
@@ -294,7 +293,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
294
293
  __self: void 0,
295
294
  __source: {
296
295
  fileName: _jsxFileName,
297
- lineNumber: 357,
296
+ lineNumber: 356,
298
297
  columnNumber: 11
299
298
  }
300
299
  }, /*#__PURE__*/_react.default.createElement(_richContentToolbar.ExternalToolbar, {
@@ -302,7 +301,7 @@ const RCE = /*#__PURE__*/(0, _react.forwardRef)(({
302
301
  __self: void 0,
303
302
  __source: {
304
303
  fileName: _jsxFileName,
305
- lineNumber: 361,
304
+ lineNumber: 360,
306
305
  columnNumber: 13
307
306
  }
308
307
  })));
@@ -318,7 +317,7 @@ const RCELoader = () => /*#__PURE__*/_react.default.createElement(_designSystem.
318
317
  __self: void 0,
319
318
  __source: {
320
319
  fileName: _jsxFileName,
321
- lineNumber: 371,
320
+ lineNumber: 370,
322
321
  columnNumber: 3
323
322
  }
324
323
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Loader, {
@@ -326,7 +325,7 @@ const RCELoader = () => /*#__PURE__*/_react.default.createElement(_designSystem.
326
325
  __self: void 0,
327
326
  __source: {
328
327
  fileName: _jsxFileName,
329
- lineNumber: 379,
328
+ lineNumber: 378,
330
329
  columnNumber: 5
331
330
  }
332
331
  }));
@@ -338,7 +337,6 @@ const RichContentEditor = ({
338
337
  onEnterFullScreen,
339
338
  onExitFullScreen,
340
339
  fullScreenOnly,
341
- closeOnEnter,
342
340
  onPublish,
343
341
  onChange,
344
342
  theme,
@@ -427,15 +425,11 @@ const RichContentEditor = ({
427
425
  if (e.key === 'Escape') {
428
426
  e.stopPropagation();
429
427
  void onClose();
430
- } else if (closeOnEnter && (0, _keyboard.isEnterInEditableText)(e)) {
431
- e.preventDefault();
432
- e.stopPropagation();
433
- void onClose();
434
428
  }
435
429
  };
436
430
  document.addEventListener('keydown', handleKeyDown, true);
437
431
  return () => document.removeEventListener('keydown', handleKeyDown, true);
438
- }, [isFullScreen, onClose, closeOnEnter]);
432
+ }, [isFullScreen, onClose]);
439
433
  const rceProps = {
440
434
  onChange: handleChange
441
435
  };
@@ -459,7 +453,7 @@ const RichContentEditor = ({
459
453
  __self: void 0,
460
454
  __source: {
461
455
  fileName: _jsxFileName,
462
- lineNumber: 582,
456
+ lineNumber: 574,
463
457
  columnNumber: 7
464
458
  }
465
459
  }), !fullScreenOnly && /*#__PURE__*/_react.default.createElement(RCE, (0, _extends2.default)({}, props, rceProps, {
@@ -474,7 +468,7 @@ const RichContentEditor = ({
474
468
  __self: void 0,
475
469
  __source: {
476
470
  fileName: _jsxFileName,
477
- lineNumber: 584,
471
+ lineNumber: 576,
478
472
  columnNumber: 9
479
473
  }
480
474
  })), /*#__PURE__*/_react.default.createElement(_richContentCommon.FullscreenModal, {
@@ -483,7 +477,7 @@ const RichContentEditor = ({
483
477
  __self: void 0,
484
478
  __source: {
485
479
  fileName: _jsxFileName,
486
- lineNumber: 597,
480
+ lineNumber: 589,
487
481
  columnNumber: 7
488
482
  }
489
483
  }, /*#__PURE__*/_react.default.createElement(RCE, (0, _extends2.default)({}, props, rceProps, {
@@ -497,7 +491,7 @@ const RichContentEditor = ({
497
491
  __self: void 0,
498
492
  __source: {
499
493
  fileName: _jsxFileName,
500
- lineNumber: 598,
494
+ lineNumber: 590,
501
495
  columnNumber: 9
502
496
  }
503
497
  }))));