@wix/ricos 11.22.0 → 11.23.1

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 (1153) hide show
  1. package/css/all-plugins-viewer.css +179 -179
  2. package/css/plugin-audio-viewer.global.css +3 -3
  3. package/css/plugin-audio-viewer.global.inject.mjs +4 -4
  4. package/css/plugin-button-viewer.global.css +1 -1
  5. package/css/plugin-button-viewer.global.inject.mjs +2 -2
  6. package/css/plugin-card-viewer.global.css +1 -1
  7. package/css/plugin-card-viewer.global.inject.mjs +2 -2
  8. package/css/plugin-collapsible-list-viewer.global.css +1 -1
  9. package/css/plugin-collapsible-list-viewer.global.inject.mjs +2 -2
  10. package/css/plugin-divider-viewer.global.css +1 -1
  11. package/css/plugin-divider-viewer.global.inject.mjs +2 -2
  12. package/css/plugin-file-upload-viewer.global.css +1 -1
  13. package/css/plugin-file-upload-viewer.global.inject.mjs +2 -2
  14. package/css/plugin-gallery-viewer.global.css +1 -1
  15. package/css/plugin-gallery-viewer.global.inject.mjs +2 -2
  16. package/css/plugin-giphy-viewer.global.css +1 -1
  17. package/css/plugin-giphy-viewer.global.inject.mjs +2 -2
  18. package/css/plugin-hashtag-viewer.global.css +1 -1
  19. package/css/plugin-hashtag-viewer.global.inject.mjs +2 -2
  20. package/css/plugin-html-viewer.global.css +1 -1
  21. package/css/plugin-html-viewer.global.inject.mjs +2 -2
  22. package/css/plugin-image-viewer.global.css +1 -1
  23. package/css/plugin-image-viewer.global.inject.mjs +2 -2
  24. package/css/plugin-link-preview-viewer.global.css +2 -2
  25. package/css/plugin-link-preview-viewer.global.inject.mjs +3 -3
  26. package/css/plugin-link-viewer.global.css +1 -1
  27. package/css/plugin-link-viewer.global.inject.mjs +2 -2
  28. package/css/plugin-mentions-viewer.global.css +1 -1
  29. package/css/plugin-mentions-viewer.global.inject.mjs +2 -2
  30. package/css/plugin-paywall-viewer.global.css +1 -1
  31. package/css/plugin-paywall-viewer.global.inject.mjs +2 -2
  32. package/css/plugin-smart-block-viewer.global.css +1 -1
  33. package/css/plugin-smart-block-viewer.global.inject.mjs +2 -2
  34. package/css/plugin-social-polls-viewer.global.css +1 -1
  35. package/css/plugin-social-polls-viewer.global.inject.mjs +2 -2
  36. package/css/plugin-spoiler-viewer.global.css +1 -1
  37. package/css/plugin-spoiler-viewer.global.inject.mjs +2 -2
  38. package/css/plugin-table-viewer.global.css +3 -3
  39. package/css/plugin-table-viewer.global.inject.mjs +4 -4
  40. package/css/plugin-toc-viewer.global.css +1 -1
  41. package/css/plugin-toc-viewer.global.inject.mjs +2 -2
  42. package/css/plugin-vertical-embed-viewer.global.css +2 -2
  43. package/css/plugin-vertical-embed-viewer.global.inject.mjs +3 -3
  44. package/css/plugin-video-viewer.global.css +1 -1
  45. package/css/plugin-video-viewer.global.inject.mjs +2 -2
  46. package/css/ricos-viewer.global.css +1 -1
  47. package/css/ricos-viewer.global.inject.mjs +2 -2
  48. package/dist/cjs/_shared/dropdown-modal/dropdown-modal-scss.js +2 -2
  49. package/dist/cjs/_shared/dropdown-modal/dropdown-modal-scss.js.map +1 -1
  50. package/dist/cjs/_shared/editor-base-url/editor-base-url-context.js +14 -13
  51. package/dist/cjs/_shared/editor-base-url/editor-base-url-context.js.map +3 -3
  52. package/dist/cjs/_shared/figure/add-caption-button-scss.js +9 -9
  53. package/dist/cjs/_shared/figure/add-caption-button-scss.js.map +1 -1
  54. package/dist/cjs/_shared/figure/viewer-caption-scss.js +2 -2
  55. package/dist/cjs/_shared/figure/viewer-caption-scss.js.map +1 -1
  56. package/dist/cjs/_shared/figure/viewer-figure-scss.js +1 -1
  57. package/dist/cjs/_shared/figure/viewer-figure-scss.js.map +1 -1
  58. package/dist/cjs/_shared/font-weight.js +27 -0
  59. package/dist/cjs/_shared/font-weight.js.map +7 -0
  60. package/dist/cjs/_shared/get-common-marker-style.js +35 -0
  61. package/dist/cjs/_shared/get-common-marker-style.js.map +7 -0
  62. package/dist/cjs/_shared/get-decorations-marker-style.js +58 -0
  63. package/dist/cjs/_shared/get-decorations-marker-style.js.map +7 -0
  64. package/dist/cjs/_shared/get-list-marker-style.js +43 -0
  65. package/dist/cjs/_shared/get-list-marker-style.js.map +7 -0
  66. package/dist/cjs/_shared/link-modal/open-link-modal/site-pages/site-pages.js +2 -4
  67. package/dist/cjs/_shared/link-modal/open-link-modal/site-pages/site-pages.js.map +2 -2
  68. package/dist/cjs/_shared/list-item-divider/list-item-divider-scss.js +1 -1
  69. package/dist/cjs/_shared/list-item-divider/list-item-divider-scss.js.map +1 -1
  70. package/dist/cjs/_shared/list-item-select/list-item-select-scss.js +2 -2
  71. package/dist/cjs/_shared/list-item-select/list-item-select-scss.js.map +1 -1
  72. package/dist/cjs/_shared/list-item-toggle/list-item-toggle-scss.js +3 -3
  73. package/dist/cjs/_shared/list-item-toggle/list-item-toggle-scss.js.map +1 -1
  74. package/dist/cjs/_shared/{site-pages/serverless-types/serverless-types.js → list-marker-style-scss.js} +11 -3
  75. package/dist/cjs/_shared/list-marker-style-scss.js.map +7 -0
  76. package/dist/cjs/_shared/overlay-hoc/overlay-hoc-scss.js +1 -1
  77. package/dist/cjs/_shared/overlay-hoc/overlay-hoc-scss.js.map +1 -1
  78. package/dist/cjs/_shared/plugin-toolbar/create-settings-button.js +7 -1
  79. package/dist/cjs/_shared/plugin-toolbar/create-settings-button.js.map +2 -2
  80. package/dist/cjs/_shared/plugin-toolbar/separator/toolbar-button-separator-scss.js +2 -2
  81. package/dist/cjs/_shared/plugin-toolbar/separator/toolbar-button-separator-scss.js.map +1 -1
  82. package/dist/cjs/_shared/plugin-toolbar/url-link-button/url-link-button-scss.js +2 -2
  83. package/dist/cjs/_shared/plugin-toolbar/url-link-button/url-link-button-scss.js.map +1 -1
  84. package/dist/cjs/_shared/pm-node-types.js.map +2 -2
  85. package/dist/cjs/_shared/prompt-input-area/attachment-bar/attachment-bar-scss.js +7 -7
  86. package/dist/cjs/_shared/prompt-input-area/attachment-bar/attachment-bar-scss.js.map +1 -1
  87. package/dist/cjs/_shared/prompt-input-area/prompt-input-area-scss.js +13 -13
  88. package/dist/cjs/_shared/prompt-input-area/prompt-input-area-scss.js.map +1 -1
  89. package/dist/cjs/_shared/prompt-input-area/widget-prompt-input-area-scss.js +8 -8
  90. package/dist/cjs/_shared/prompt-input-area/widget-prompt-input-area-scss.js.map +1 -1
  91. package/dist/cjs/_shared/shape-select-modal/shape-select-modal-content-scss.js +7 -7
  92. package/dist/cjs/_shared/shape-select-modal/shape-select-modal-content-scss.js.map +1 -1
  93. package/dist/cjs/_shared/shape-view-renderer/shape-view-renderer-scss.js +2 -2
  94. package/dist/cjs/_shared/shape-view-renderer/shape-view-renderer-scss.js.map +1 -1
  95. package/dist/cjs/_shared/site-pages/site-pages-fetch-context/use-fetch-site-pages.js +93 -27
  96. package/dist/cjs/_shared/site-pages/site-pages-fetch-context/use-fetch-site-pages.js.map +3 -3
  97. package/dist/cjs/_shared/site-pages/site-pages-fetch-context.js +2 -6
  98. package/dist/cjs/_shared/site-pages/site-pages-fetch-context.js.map +2 -2
  99. package/dist/cjs/_shared/site-pages/types.js.map +2 -2
  100. package/dist/cjs/_shared/toolbar-button/toolbar-button-scss.js +3 -3
  101. package/dist/cjs/_shared/toolbar-button/toolbar-button-scss.js.map +1 -1
  102. package/dist/cjs/bundled-dependencies/ai-assistant-avatar.js +4 -4
  103. package/dist/cjs/bundled-dependencies/ai-assistant-avatar.js.map +1 -1
  104. package/dist/cjs/editor-common/statics/styles/general-scss.js +18 -18
  105. package/dist/cjs/editor-common/statics/styles/general-scss.js.map +1 -1
  106. package/dist/cjs/index.js.map +2 -2
  107. package/dist/cjs/internal.js.map +2 -2
  108. package/dist/cjs/legacy.js.map +2 -2
  109. package/dist/cjs/plugin-ai/ai-content-modal/ai-content-modal-scss.js +8 -8
  110. package/dist/cjs/plugin-ai/ai-content-modal/ai-content-modal-scss.js.map +1 -1
  111. package/dist/cjs/plugin-ai/ai-content-modal/feed/feed-scss.js +2 -2
  112. package/dist/cjs/plugin-ai/ai-content-modal/feed/feed-scss.js.map +1 -1
  113. package/dist/cjs/plugin-ai/ai-content-modal/no-selection-message/no-selection-message-scss.js +1 -1
  114. package/dist/cjs/plugin-ai/ai-content-modal/no-selection-message/no-selection-message-scss.js.map +1 -1
  115. package/dist/cjs/plugin-ai/ai-content-modal/text-cursor/text-cursor-scss.js +2 -2
  116. package/dist/cjs/plugin-ai/ai-content-modal/text-cursor/text-cursor-scss.js.map +1 -1
  117. package/dist/cjs/plugin-ai/ai-content-modal/textual-prompt-input-area/textual-prompt-input-area-scss.js +5 -5
  118. package/dist/cjs/plugin-ai/ai-content-modal/textual-prompt-input-area/textual-prompt-input-area-scss.js.map +1 -1
  119. package/dist/cjs/plugin-ai/ai-image-modal/ai-image-modal-scss.js +6 -6
  120. package/dist/cjs/plugin-ai/ai-image-modal/ai-image-modal-scss.js.map +1 -1
  121. package/dist/cjs/plugin-ai/ai-plus-button/ai-plus-button-scss.js +1 -1
  122. package/dist/cjs/plugin-ai/ai-plus-button/ai-plus-button-scss.js.map +1 -1
  123. package/dist/cjs/plugin-ai/error-message/error-message-scss.js +1 -1
  124. package/dist/cjs/plugin-ai/error-message/error-message-scss.js.map +1 -1
  125. package/dist/cjs/plugin-ai/prompt-input-area/prompt-input-area-scss.js +4 -4
  126. package/dist/cjs/plugin-ai/prompt-input-area/prompt-input-area-scss.js.map +1 -1
  127. package/dist/cjs/plugin-ai/toolbar/toolbar-button-scss.js +2 -2
  128. package/dist/cjs/plugin-ai/toolbar/toolbar-button-scss.js.map +1 -1
  129. package/dist/cjs/plugin-animation/animation-panel-scss.js +9 -9
  130. package/dist/cjs/plugin-animation/animation-panel-scss.js.map +1 -1
  131. package/dist/cjs/plugin-audio/statics/styles/audio-embed-scss.js +1 -1
  132. package/dist/cjs/plugin-audio/statics/styles/audio-embed-scss.js.map +1 -1
  133. package/dist/cjs/plugin-audio/statics/styles/audio-scss.js +21 -21
  134. package/dist/cjs/plugin-audio/statics/styles/audio-scss.js.map +1 -1
  135. package/dist/cjs/plugin-audio/statics/styles/icon-button-scss.js +1 -1
  136. package/dist/cjs/plugin-audio/statics/styles/icon-button-scss.js.map +1 -1
  137. package/dist/cjs/plugin-audio/statics/styles/settings-modal-scss.js +1 -1
  138. package/dist/cjs/plugin-audio/statics/styles/settings-modal-scss.js.map +1 -1
  139. package/dist/cjs/plugin-audio/statics/styles/sound-control-scss.js +2 -2
  140. package/dist/cjs/plugin-audio/statics/styles/sound-control-scss.js.map +1 -1
  141. package/dist/cjs/plugin-block-drag-handle/box-select.js +1 -0
  142. package/dist/cjs/plugin-block-drag-handle/box-select.js.map +2 -2
  143. package/dist/cjs/plugin-block-drag-handle/dom.js +20 -8
  144. package/dist/cjs/plugin-block-drag-handle/dom.js.map +2 -2
  145. package/dist/cjs/plugin-block-drag-handle/plugin.js +35 -4
  146. package/dist/cjs/plugin-block-drag-handle/plugin.js.map +2 -2
  147. package/dist/cjs/plugin-block-drag-handle/styles-scss.js +8 -8
  148. package/dist/cjs/plugin-block-drag-handle/styles-scss.js.map +1 -1
  149. package/dist/cjs/plugin-button/statics/styles/button-input-modal-scss.js +2 -2
  150. package/dist/cjs/plugin-button/statics/styles/button-input-modal-scss.js.map +1 -1
  151. package/dist/cjs/plugin-button/statics/styles/button-text-field-scss.js +1 -1
  152. package/dist/cjs/plugin-button/statics/styles/button-text-field-scss.js.map +1 -1
  153. package/dist/cjs/plugin-button/statics/styles/default-styles-scss.js +5 -5
  154. package/dist/cjs/plugin-button/statics/styles/default-styles-scss.js.map +1 -1
  155. package/dist/cjs/plugin-card/card-node-view.js +39 -35
  156. package/dist/cjs/plugin-card/card-node-view.js.map +2 -2
  157. package/dist/cjs/plugin-card/card-scss.js +20 -19
  158. package/dist/cjs/plugin-card/card-scss.js.map +2 -2
  159. package/dist/cjs/plugin-card/card-viewer-scss.js +6 -6
  160. package/dist/cjs/plugin-card/card-viewer-scss.js.map +1 -1
  161. package/dist/cjs/plugin-card/extension.js +3 -1
  162. package/dist/cjs/plugin-card/extension.js.map +2 -2
  163. package/dist/cjs/plugin-card/index.js.map +1 -1
  164. package/dist/cjs/plugin-card/page-gap.js +3 -1
  165. package/dist/cjs/plugin-card/page-gap.js.map +2 -2
  166. package/dist/cjs/plugin-card/types-next.js.map +1 -1
  167. package/dist/cjs/plugin-card/types.js.map +1 -1
  168. package/dist/cjs/plugin-code-block/statics/styles/code-block-scss.js +6 -6
  169. package/dist/cjs/plugin-code-block/statics/styles/code-block-scss.js.map +1 -1
  170. package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-component-scss.js +6 -6
  171. package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-component-scss.js.map +1 -1
  172. package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-pair-scss.js +18 -18
  173. package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-pair-scss.js.map +1 -1
  174. package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-settings-scss.js +2 -2
  175. package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-settings-scss.js.map +1 -1
  176. package/dist/cjs/plugin-collapsible-list/statics/styles/new-pair-button-scss.js +3 -3
  177. package/dist/cjs/plugin-collapsible-list/statics/styles/new-pair-button-scss.js.map +1 -1
  178. package/dist/cjs/plugin-divider/statics/styles/divider-viewer-scss.js +13 -13
  179. package/dist/cjs/plugin-divider/statics/styles/divider-viewer-scss.js.map +1 -1
  180. package/dist/cjs/plugin-divider/toolbar/modals/divider-design-panel-scss.js +1 -1
  181. package/dist/cjs/plugin-divider/toolbar/modals/divider-design-panel-scss.js.map +1 -1
  182. package/dist/cjs/plugin-emoji/modals/emoji-suggestions-modal-scss.js +1 -1
  183. package/dist/cjs/plugin-emoji/modals/emoji-suggestions-modal-scss.js.map +1 -1
  184. package/dist/cjs/plugin-figure/tiptap/caption-scss.js +3 -3
  185. package/dist/cjs/plugin-figure/tiptap/caption-scss.js.map +1 -1
  186. package/dist/cjs/plugin-figure/tiptap/figure-scss.js +3 -3
  187. package/dist/cjs/plugin-figure/tiptap/figure-scss.js.map +1 -1
  188. package/dist/cjs/plugin-file-upload/statics/styles/file-upload-viewer-scss.js +15 -15
  189. package/dist/cjs/plugin-file-upload/statics/styles/file-upload-viewer-scss.js.map +1 -1
  190. package/dist/cjs/plugin-gallery/modals/settings/gallery-settings-modal-scss.js +3 -3
  191. package/dist/cjs/plugin-gallery/modals/settings/gallery-settings-modal-scss.js.map +1 -1
  192. package/dist/cjs/plugin-gallery/modals/settings/layout-settings/layout-controls-section/image-ratio-control-scss.js +6 -6
  193. package/dist/cjs/plugin-gallery/modals/settings/layout-settings/layout-controls-section/image-ratio-control-scss.js.map +1 -1
  194. package/dist/cjs/plugin-gallery/modals/settings/layout-settings/layout-controls-section/thumbnail-alignment-control-scss.js +5 -5
  195. package/dist/cjs/plugin-gallery/modals/settings/layout-settings/layout-controls-section/thumbnail-alignment-control-scss.js.map +1 -1
  196. package/dist/cjs/plugin-gallery/modals/settings/media-settings/media-list/sortable-item-scss.js +1 -1
  197. package/dist/cjs/plugin-gallery/modals/settings/media-settings/media-list/sortable-item-scss.js.map +1 -1
  198. package/dist/cjs/plugin-gallery/modals/settings/media-settings/media-list/sortable-list-scss.js +3 -3
  199. package/dist/cjs/plugin-gallery/modals/settings/media-settings/media-list/sortable-list-scss.js.map +1 -1
  200. package/dist/cjs/plugin-gallery/statics/styles/gallery-component-scss.js +1 -1
  201. package/dist/cjs/plugin-gallery/statics/styles/gallery-component-scss.js.map +1 -1
  202. package/dist/cjs/plugin-gallery/statics/styles/gallery-media-scss.js +21 -21
  203. package/dist/cjs/plugin-gallery/statics/styles/gallery-media-scss.js.map +1 -1
  204. package/dist/cjs/plugin-gallery/statics/styles/viewer-scss.js +1 -1
  205. package/dist/cjs/plugin-gallery/statics/styles/viewer-scss.js.map +1 -1
  206. package/dist/cjs/plugin-gallery/viewer/layout-collage-scss.js +5 -5
  207. package/dist/cjs/plugin-gallery/viewer/layout-collage-scss.js.map +1 -1
  208. package/dist/cjs/plugin-gallery/viewer/layout-column-scss.js +4 -4
  209. package/dist/cjs/plugin-gallery/viewer/layout-column-scss.js.map +1 -1
  210. package/dist/cjs/plugin-gallery/viewer/layout-fullsize-scss.js +4 -4
  211. package/dist/cjs/plugin-gallery/viewer/layout-fullsize-scss.js.map +1 -1
  212. package/dist/cjs/plugin-gallery/viewer/layout-grid-scss.js +2 -2
  213. package/dist/cjs/plugin-gallery/viewer/layout-grid-scss.js.map +1 -1
  214. package/dist/cjs/plugin-gallery/viewer/layout-masonry-scss.js +7 -7
  215. package/dist/cjs/plugin-gallery/viewer/layout-masonry-scss.js.map +1 -1
  216. package/dist/cjs/plugin-gallery/viewer/layout-panorama-scss.js +1 -1
  217. package/dist/cjs/plugin-gallery/viewer/layout-panorama-scss.js.map +1 -1
  218. package/dist/cjs/plugin-gallery/viewer/layout-slider-scss.js +6 -6
  219. package/dist/cjs/plugin-gallery/viewer/layout-slider-scss.js.map +1 -1
  220. package/dist/cjs/plugin-gallery/viewer/layout-thumbnail-scss.js +11 -11
  221. package/dist/cjs/plugin-gallery/viewer/layout-thumbnail-scss.js.map +1 -1
  222. package/dist/cjs/plugin-giphy/components/giphy-selector-scss.js +9 -9
  223. package/dist/cjs/plugin-giphy/components/giphy-selector-scss.js.map +1 -1
  224. package/dist/cjs/plugin-giphy/viewer/giphy-viewer-scss.js +4 -4
  225. package/dist/cjs/plugin-giphy/viewer/giphy-viewer-scss.js.map +1 -1
  226. package/dist/cjs/plugin-giphy/viewer/play-icon-scss.js +2 -2
  227. package/dist/cjs/plugin-giphy/viewer/play-icon-scss.js.map +1 -1
  228. package/dist/cjs/plugin-hashtag/statics/hashtag-scss.js +2 -2
  229. package/dist/cjs/plugin-hashtag/statics/hashtag-scss.js.map +1 -1
  230. package/dist/cjs/plugin-headings/dropdown/headings-dropdown-scss.js +5 -5
  231. package/dist/cjs/plugin-headings/dropdown/headings-dropdown-scss.js.map +1 -1
  232. package/dist/cjs/plugin-html/statics/styles/HtmlComponent-scss.js +2 -2
  233. package/dist/cjs/plugin-html/statics/styles/HtmlComponent-scss.js.map +1 -1
  234. package/dist/cjs/plugin-html/statics/styles/Iframe-scss.js +1 -1
  235. package/dist/cjs/plugin-html/statics/styles/Iframe-scss.js.map +1 -1
  236. package/dist/cjs/plugin-html/tiptap/ai-widget-scss.js +2 -2
  237. package/dist/cjs/plugin-html/tiptap/ai-widget-scss.js.map +1 -1
  238. package/dist/cjs/plugin-html/tiptap/loader-scss.js +9 -9
  239. package/dist/cjs/plugin-html/tiptap/loader-scss.js.map +1 -1
  240. package/dist/cjs/plugin-html/tiptap/preset-bar/preset-bar-scss.js +2 -2
  241. package/dist/cjs/plugin-html/tiptap/preset-bar/preset-bar-scss.js.map +1 -1
  242. package/dist/cjs/plugin-image/components/corner-radius-handles-scss.js +4 -4
  243. package/dist/cjs/plugin-image/components/corner-radius-handles-scss.js.map +1 -1
  244. package/dist/cjs/plugin-image/components/crop-edge-handles-scss.js +1 -1
  245. package/dist/cjs/plugin-image/components/crop-edge-handles-scss.js.map +1 -1
  246. package/dist/cjs/plugin-image/crop-overlay/crop-overlay-scss.js +14 -14
  247. package/dist/cjs/plugin-image/crop-overlay/crop-overlay-scss.js.map +1 -1
  248. package/dist/cjs/plugin-image/statics/styles/image-viewer-scss.js +20 -20
  249. package/dist/cjs/plugin-image/statics/styles/image-viewer-scss.js.map +1 -1
  250. package/dist/cjs/plugin-image/statics/styles/settings-modal-scss.js +1 -1
  251. package/dist/cjs/plugin-image/statics/styles/settings-modal-scss.js.map +1 -1
  252. package/dist/cjs/plugin-image/toolbar/shape-crop-modal-scss.js +4 -4
  253. package/dist/cjs/plugin-image/toolbar/shape-crop-modal-scss.js.map +1 -1
  254. package/dist/cjs/plugin-inline-ai/ai-selection-tooltip-scss.js +10 -10
  255. package/dist/cjs/plugin-inline-ai/ai-selection-tooltip-scss.js.map +1 -1
  256. package/dist/cjs/plugin-inline-ai/aria-avatar-row-scss.js +1 -1
  257. package/dist/cjs/plugin-inline-ai/aria-avatar-row-scss.js.map +1 -1
  258. package/dist/cjs/plugin-inline-ai/aria-surface-row-scss.js +4 -4
  259. package/dist/cjs/plugin-inline-ai/aria-surface-row-scss.js.map +1 -1
  260. package/dist/cjs/plugin-inline-ai/html-placeholder-scss.js +3 -3
  261. package/dist/cjs/plugin-inline-ai/html-placeholder-scss.js.map +1 -1
  262. package/dist/cjs/plugin-inline-ai/modal-scss.js +9 -9
  263. package/dist/cjs/plugin-inline-ai/modal-scss.js.map +1 -1
  264. package/dist/cjs/plugin-inline-ai/pending-widget-placeholder-scss.js +12 -12
  265. package/dist/cjs/plugin-inline-ai/pending-widget-placeholder-scss.js.map +1 -1
  266. package/dist/cjs/plugin-inline-ai/spinner-scss.js +2 -2
  267. package/dist/cjs/plugin-inline-ai/spinner-scss.js.map +1 -1
  268. package/dist/cjs/plugin-inline-ai/toolbar/toolbar-button-scss.js +2 -2
  269. package/dist/cjs/plugin-inline-ai/toolbar/toolbar-button-scss.js.map +1 -1
  270. package/dist/cjs/plugin-line-spacing/custom-spacing-editor-modal/custom-spacing-editor-modal-scss.js +1 -1
  271. package/dist/cjs/plugin-line-spacing/custom-spacing-editor-modal/custom-spacing-editor-modal-scss.js.map +1 -1
  272. package/dist/cjs/plugin-link/editor.js +2 -2
  273. package/dist/cjs/plugin-link/editor.js.map +2 -2
  274. package/dist/cjs/plugin-link/statics/link-viewer-scss.js +4 -4
  275. package/dist/cjs/plugin-link/statics/link-viewer-scss.js.map +1 -1
  276. package/dist/cjs/plugin-link/toolbar/anchor-link-button-scss.js +1 -1
  277. package/dist/cjs/plugin-link/toolbar/anchor-link-button-scss.js.map +1 -1
  278. package/dist/cjs/plugin-link-preview/statics/styles/insert-modal-scss.js +1 -1
  279. package/dist/cjs/plugin-link-preview/statics/styles/insert-modal-scss.js.map +1 -1
  280. package/dist/cjs/plugin-link-preview/statics/styles/link-preview-scss.js +18 -18
  281. package/dist/cjs/plugin-link-preview/statics/styles/link-preview-scss.js.map +1 -1
  282. package/dist/cjs/plugin-link-preview/statics/styles/settings-modal-scss.js +1 -1
  283. package/dist/cjs/plugin-link-preview/statics/styles/settings-modal-scss.js.map +1 -1
  284. package/dist/cjs/plugin-mentions/statics/mention-list-scss.js +3 -3
  285. package/dist/cjs/plugin-mentions/statics/mention-list-scss.js.map +1 -1
  286. package/dist/cjs/plugin-mentions/statics/mentions-scss.js +4 -4
  287. package/dist/cjs/plugin-mentions/statics/mentions-scss.js.map +1 -1
  288. package/dist/cjs/plugin-paywall/paywall-fallback-scss.js +1 -1
  289. package/dist/cjs/plugin-paywall/paywall-fallback-scss.js.map +1 -1
  290. package/dist/cjs/plugin-paywall/plugin-paywall.js.map +2 -2
  291. package/dist/cjs/plugin-smart-block/components/cell-accessory-scss.js +22 -22
  292. package/dist/cjs/plugin-smart-block/components/cell-accessory-scss.js.map +1 -1
  293. package/dist/cjs/plugin-smart-block/components/cell-quote-glyph-scss.js +3 -3
  294. package/dist/cjs/plugin-smart-block/components/cell-quote-glyph-scss.js.map +1 -1
  295. package/dist/cjs/plugin-smart-block/components/cell-star-rating-scss.js +4 -4
  296. package/dist/cjs/plugin-smart-block/components/cell-star-rating-scss.js.map +1 -1
  297. package/dist/cjs/plugin-smart-block/components/cell-stat-scss.js +20 -20
  298. package/dist/cjs/plugin-smart-block/components/cell-stat-scss.js.map +1 -1
  299. package/dist/cjs/plugin-smart-block/components/circle-donut-scss.js +7 -7
  300. package/dist/cjs/plugin-smart-block/components/circle-donut-scss.js.map +1 -1
  301. package/dist/cjs/plugin-smart-block/components/shape-overlay-scss.js +1 -1
  302. package/dist/cjs/plugin-smart-block/components/shape-overlay-scss.js.map +1 -1
  303. package/dist/cjs/plugin-smart-block/components/smart-block-view-scss.js +50 -50
  304. package/dist/cjs/plugin-smart-block/components/smart-block-view-scss.js.map +1 -1
  305. package/dist/cjs/plugin-smart-block/components/stars-scss.js +8 -8
  306. package/dist/cjs/plugin-smart-block/components/stars-scss.js.map +1 -1
  307. package/dist/cjs/plugin-smart-block/modals/variant-picker-scss.js +7 -7
  308. package/dist/cjs/plugin-smart-block/modals/variant-picker-scss.js.map +1 -1
  309. package/dist/cjs/plugin-smart-block/tiptap/smart-block-editor-scss.js +13 -13
  310. package/dist/cjs/plugin-smart-block/tiptap/smart-block-editor-scss.js.map +1 -1
  311. package/dist/cjs/plugin-social-polls/components/image-upload/image-upload-scss.js +9 -9
  312. package/dist/cjs/plugin-social-polls/components/image-upload/image-upload-scss.js.map +1 -1
  313. package/dist/cjs/plugin-social-polls/components/insert-modal/insert-modal-scss.js +1 -1
  314. package/dist/cjs/plugin-social-polls/components/insert-modal/insert-modal-scss.js.map +1 -1
  315. package/dist/cjs/plugin-social-polls/components/poll-header/poll-header-scss.js +3 -3
  316. package/dist/cjs/plugin-social-polls/components/poll-header/poll-header-scss.js.map +1 -1
  317. package/dist/cjs/plugin-social-polls/components/poll-option/option-scss.js +23 -23
  318. package/dist/cjs/plugin-social-polls/components/poll-option/option-scss.js.map +1 -1
  319. package/dist/cjs/plugin-social-polls/components/poll-option/webview/option-webview-scss.js +24 -24
  320. package/dist/cjs/plugin-social-polls/components/poll-option/webview/option-webview-scss.js.map +1 -1
  321. package/dist/cjs/plugin-social-polls/components/poll-scss.js +19 -19
  322. package/dist/cjs/plugin-social-polls/components/poll-scss.js.map +1 -1
  323. package/dist/cjs/plugin-social-polls/components/settings-modal/settings-modal-scss.js +2 -2
  324. package/dist/cjs/plugin-social-polls/components/settings-modal/settings-modal-scss.js.map +1 -1
  325. package/dist/cjs/plugin-social-polls/components/text-field/text-field-scss.js +12 -12
  326. package/dist/cjs/plugin-social-polls/components/text-field/text-field-scss.js.map +1 -1
  327. package/dist/cjs/plugin-social-polls/components/voted-users/voted-users-scss.js +20 -20
  328. package/dist/cjs/plugin-social-polls/components/voted-users/voted-users-scss.js.map +1 -1
  329. package/dist/cjs/plugin-spoiler/get-text-buttons.js +2 -2
  330. package/dist/cjs/plugin-spoiler/get-text-buttons.js.map +2 -2
  331. package/dist/cjs/plugin-spoiler/statics/styles/spoiler-scss.js +18 -18
  332. package/dist/cjs/plugin-spoiler/statics/styles/spoiler-scss.js.map +1 -1
  333. package/dist/cjs/plugin-table/modals/table-grid-selector-scss.js +5 -5
  334. package/dist/cjs/plugin-table/modals/table-grid-selector-scss.js.map +1 -1
  335. package/dist/cjs/plugin-table/statics/styles/cell-scss.js +15 -15
  336. package/dist/cjs/plugin-table/statics/styles/cell-scss.js.map +1 -1
  337. package/dist/cjs/plugin-table/statics/styles/resizer-scss.js +18 -18
  338. package/dist/cjs/plugin-table/statics/styles/resizer-scss.js.map +1 -1
  339. package/dist/cjs/plugin-table/statics/styles/table-settings-modal-scss.js +1 -1
  340. package/dist/cjs/plugin-table/statics/styles/table-settings-modal-scss.js.map +1 -1
  341. package/dist/cjs/plugin-table/statics/styles/table-viewer-scss.js +6 -6
  342. package/dist/cjs/plugin-table/statics/styles/table-viewer-scss.js.map +1 -1
  343. package/dist/cjs/plugin-table/tiptap/decorations/tableHandles-scss.js +9 -9
  344. package/dist/cjs/plugin-table/tiptap/decorations/tableHandles-scss.js.map +1 -1
  345. package/dist/cjs/plugin-table/tiptap/plugins/table-scss.js +33 -33
  346. package/dist/cjs/plugin-table/tiptap/plugins/table-scss.js.map +1 -1
  347. package/dist/cjs/plugin-table/toolbar/modals/border-scope-selector-scss.js +2 -2
  348. package/dist/cjs/plugin-table/toolbar/modals/border-scope-selector-scss.js.map +1 -1
  349. package/dist/cjs/plugin-text-color/sketch/text-highlight-button.js +2 -2
  350. package/dist/cjs/plugin-text-color/sketch/text-highlight-button.js.map +2 -2
  351. package/dist/cjs/plugin-text-color/text-button-color-scss.js +2 -2
  352. package/dist/cjs/plugin-text-color/text-button-color-scss.js.map +1 -1
  353. package/dist/cjs/plugin-toc/toc-view-scss.js +2 -2
  354. package/dist/cjs/plugin-toc/toc-view-scss.js.map +1 -1
  355. package/dist/cjs/plugin-vertical-embed/components/Ribbon-scss.js +3 -3
  356. package/dist/cjs/plugin-vertical-embed/components/Ribbon-scss.js.map +1 -1
  357. package/dist/cjs/plugin-vertical-embed/components/card-content-scss.js +23 -23
  358. package/dist/cjs/plugin-vertical-embed/components/card-content-scss.js.map +1 -1
  359. package/dist/cjs/plugin-vertical-embed/components/card-scss.js +19 -19
  360. package/dist/cjs/plugin-vertical-embed/components/card-scss.js.map +1 -1
  361. package/dist/cjs/plugin-vertical-embed/components/description-scss.js +2 -2
  362. package/dist/cjs/plugin-vertical-embed/components/description-scss.js.map +1 -1
  363. package/dist/cjs/plugin-vertical-embed/modals/settings-modal-scss.js +2 -2
  364. package/dist/cjs/plugin-vertical-embed/modals/settings-modal-scss.js.map +1 -1
  365. package/dist/cjs/plugin-vertical-embed/tiptap/component-scss.js +10 -10
  366. package/dist/cjs/plugin-vertical-embed/tiptap/component-scss.js.map +1 -1
  367. package/dist/cjs/plugin-vertical-embed/toolbar/items-list-scss.js +1 -1
  368. package/dist/cjs/plugin-vertical-embed/toolbar/items-list-scss.js.map +1 -1
  369. package/dist/cjs/plugin-vertical-embed/viewer/vertical-embed-viewer-scss.js +6 -6
  370. package/dist/cjs/plugin-vertical-embed/viewer/vertical-embed-viewer-scss.js.map +1 -1
  371. package/dist/cjs/plugin-video/statics/styles/default-video-styles-scss.js +8 -8
  372. package/dist/cjs/plugin-video/statics/styles/default-video-styles-scss.js.map +1 -1
  373. package/dist/cjs/plugin-video/statics/styles/video-viewer-scss.js +3 -3
  374. package/dist/cjs/plugin-video/statics/styles/video-viewer-scss.js.map +1 -1
  375. package/dist/cjs/plugin-video/toolbar/embed-video-scss.js +1 -1
  376. package/dist/cjs/plugin-video/toolbar/embed-video-scss.js.map +1 -1
  377. package/dist/cjs/plugin-video/viewer/video.js +30 -2
  378. package/dist/cjs/plugin-video/viewer/video.js.map +3 -3
  379. package/dist/cjs/ricos-common-plugins/bold/extension.js +4 -5
  380. package/dist/cjs/ricos-common-plugins/bold/extension.js.map +2 -2
  381. package/dist/cjs/ricos-common-plugins/decoration-plugins/list-item-sizing.js +13 -1
  382. package/dist/cjs/ricos-common-plugins/decoration-plugins/list-item-sizing.js.map +2 -2
  383. package/dist/cjs/ricos-common-plugins/font-size/block-font-size-plugin.js +2 -1
  384. package/dist/cjs/ricos-common-plugins/font-size/block-font-size-plugin.js.map +2 -2
  385. package/dist/cjs/ricos-common-plugins/font-size/dropdown/font-size-dropdown-scss.js +1 -1
  386. package/dist/cjs/ricos-common-plugins/font-size/dropdown/font-size-dropdown-scss.js.map +1 -1
  387. package/dist/cjs/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js +8 -8
  388. package/dist/cjs/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js.map +1 -1
  389. package/dist/cjs/ricos-common-plugins/layout/layouts-scss.js +33 -33
  390. package/dist/cjs/ricos-common-plugins/layout/layouts-scss.js.map +1 -1
  391. package/dist/cjs/ricos-common-plugins/layout/paywall-toolbar-button.js +100 -0
  392. package/dist/cjs/ricos-common-plugins/layout/paywall-toolbar-button.js.map +7 -0
  393. package/dist/cjs/ricos-common-plugins/layout/plugin-layout.js +178 -173
  394. package/dist/cjs/ricos-common-plugins/layout/plugin-layout.js.map +2 -2
  395. package/dist/cjs/ricos-common-plugins/layout/section-dividers/section-dividers-panel-scss.js +2 -2
  396. package/dist/cjs/ricos-common-plugins/layout/section-dividers/section-dividers-panel-scss.js.map +1 -1
  397. package/dist/cjs/ricos-common-plugins/layout/section-dividers/section-dividers-scss.js +4 -4
  398. package/dist/cjs/ricos-common-plugins/layout/section-dividers/section-dividers-scss.js.map +1 -1
  399. package/dist/cjs/ricos-common-plugins/list-item/extension.js +9 -0
  400. package/dist/cjs/ricos-common-plugins/list-item/extension.js.map +2 -2
  401. package/dist/cjs/ricos-common-plugins/list-item/list-converters.js +5 -3
  402. package/dist/cjs/ricos-common-plugins/list-item/list-converters.js.map +2 -2
  403. package/dist/cjs/ricos-common-plugins/list-item/list-marker-selection.js +291 -0
  404. package/dist/cjs/ricos-common-plugins/list-item/list-marker-selection.js.map +7 -0
  405. package/dist/cjs/ricos-common-plugins/quick-actions/modal/modal-scss.js +2 -2
  406. package/dist/cjs/ricos-common-plugins/quick-actions/modal/modal-scss.js.map +1 -1
  407. package/dist/cjs/ricos-common-plugins/statics/styles-scss.js +18 -18
  408. package/dist/cjs/ricos-common-plugins/statics/styles-scss.js.map +1 -1
  409. package/dist/cjs/ricos-common-plugins/strikethrough/strikethrough.js +2 -2
  410. package/dist/cjs/ricos-common-plugins/strikethrough/strikethrough.js.map +2 -2
  411. package/dist/cjs/ricos-common-plugins/strikethrough/strikethrough.testkit.js +1 -0
  412. package/dist/cjs/ricos-common-plugins/strikethrough/strikethrough.testkit.js.map +2 -2
  413. package/dist/cjs/ricos-common-plugins/title/headings-scss.js +8 -8
  414. package/dist/cjs/ricos-common-plugins/title/headings-scss.js.map +1 -1
  415. package/dist/cjs/ricos-common-plugins/underline/underline.js +2 -2
  416. package/dist/cjs/ricos-common-plugins/underline/underline.js.map +2 -2
  417. package/dist/cjs/ricos-editor/statics/styles/editor-styles-scss.js +9 -9
  418. package/dist/cjs/ricos-editor/statics/styles/editor-styles-scss.js.map +1 -1
  419. package/dist/cjs/ricos-modals/statics/styles/drawer-scss.js +9 -9
  420. package/dist/cjs/ricos-modals/statics/styles/drawer-scss.js.map +1 -1
  421. package/dist/cjs/ricos-modals/statics/styles/fullscreen-scss.js +1 -1
  422. package/dist/cjs/ricos-modals/statics/styles/fullscreen-scss.js.map +1 -1
  423. package/dist/cjs/ricos-modals/statics/styles/popper-scss.js +3 -3
  424. package/dist/cjs/ricos-modals/statics/styles/popper-scss.js.map +1 -1
  425. package/dist/cjs/ricos-schema/next-schema/version.js +1 -1
  426. package/dist/cjs/ricos-schema/next-schema/version.js.map +1 -1
  427. package/dist/cjs/ricos-styles/statics/styles/style-presets-scss.js +4 -4
  428. package/dist/cjs/ricos-styles/statics/styles/style-presets-scss.js.map +1 -1
  429. package/dist/cjs/ricos-types/next/ricos-types.js.map +1 -1
  430. package/dist/cjs/ricos-types/ricos-types.js.map +1 -1
  431. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js +3 -3
  432. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js.map +1 -1
  433. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js +3 -3
  434. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js.map +1 -1
  435. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js +9 -9
  436. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js.map +1 -1
  437. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js +10 -10
  438. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js.map +1 -1
  439. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/lists/list-item.js +10 -1
  440. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/lists/list-item.js.map +2 -2
  441. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js +6 -6
  442. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js.map +1 -1
  443. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js +4 -4
  444. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js.map +1 -1
  445. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js +2 -2
  446. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js.map +1 -1
  447. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js +15 -15
  448. package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js.map +1 -1
  449. package/dist/cjs/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js +12 -12
  450. package/dist/cjs/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js.map +1 -1
  451. package/dist/cjs/ricos-viewer-next/statics/alignment-scss.js +16 -16
  452. package/dist/cjs/ricos-viewer-next/statics/alignment-scss.js.map +1 -1
  453. package/dist/cjs/ricos-viewer-next/statics/indentation-scss.js +7 -7
  454. package/dist/cjs/ricos-viewer-next/statics/indentation-scss.js.map +1 -1
  455. package/dist/cjs/ricos-viewer-next/statics/rich-content-viewer-scss.js +9 -9
  456. package/dist/cjs/ricos-viewer-next/statics/rich-content-viewer-scss.js.map +1 -1
  457. package/dist/cjs/ricos-viewer-next/statics/rtl-scss.js +2 -2
  458. package/dist/cjs/ricos-viewer-next/statics/rtl-scss.js.map +1 -1
  459. package/dist/cjs/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js +2 -2
  460. package/dist/cjs/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js.map +1 -1
  461. package/dist/cjs/tiptap/core/editor.js +5 -2
  462. package/dist/cjs/tiptap/core/editor.js.map +2 -2
  463. package/dist/cjs/tiptap-editor/statics/styles/tiptap-editor-styles-scss.js +13 -13
  464. package/dist/cjs/tiptap-editor/statics/styles/tiptap-editor-styles-scss.js.map +1 -1
  465. package/dist/cjs/tiptap-extensions/placeholder-scss.js +1 -1
  466. package/dist/cjs/tiptap-extensions/placeholder-scss.js.map +1 -1
  467. package/dist/cjs/tiptap-extensions/statics/styles-scss.js +4 -4
  468. package/dist/cjs/tiptap-extensions/statics/styles-scss.js.map +1 -1
  469. package/dist/cjs/toolbars-v3/components/InsertPluginToolbar/insert-plugin-toolbar-scss.js +1 -1
  470. package/dist/cjs/toolbars-v3/components/InsertPluginToolbar/insert-plugin-toolbar-scss.js.map +1 -1
  471. package/dist/cjs/toolbars-v3/components/MaxWidthCalculationWrapper/max-width-calculation-wrapper.js +2 -1
  472. package/dist/cjs/toolbars-v3/components/MaxWidthCalculationWrapper/max-width-calculation-wrapper.js.map +2 -2
  473. package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/OverflownButtons-scss.js +3 -3
  474. package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/OverflownButtons-scss.js.map +1 -1
  475. package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbar-scss.js +3 -3
  476. package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbar-scss.js.map +1 -1
  477. package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbarWrapper-scss.js +4 -4
  478. package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbarWrapper-scss.js.map +1 -1
  479. package/dist/cjs/toolbars-v3/components/Toolbar/RicosMobileToolbar/RicosMobileToolbar-scss.js +9 -9
  480. package/dist/cjs/toolbars-v3/components/Toolbar/RicosMobileToolbar/RicosMobileToolbar-scss.js.map +1 -1
  481. package/dist/cjs/toolbars-v3/components/Toolbar/RicosMobileToolbar/mobile-toolbar-overlay/mobile-toolbar-overlay-scss.js +1 -1
  482. package/dist/cjs/toolbars-v3/components/Toolbar/RicosMobileToolbar/mobile-toolbar-overlay/mobile-toolbar-overlay-scss.js.map +1 -1
  483. package/dist/cjs/toolbars-v3/components/buttons/AddPluginMenuButtons/AddPluginMenuMobileButton-scss.js +1 -1
  484. package/dist/cjs/toolbars-v3/components/buttons/AddPluginMenuButtons/AddPluginMenuMobileButton-scss.js.map +1 -1
  485. package/dist/cjs/toolbars-v3/components/buttons/FontSizeButton/FontSizeButton-scss.js +5 -5
  486. package/dist/cjs/toolbars-v3/components/buttons/FontSizeButton/FontSizeButton-scss.js.map +1 -1
  487. package/dist/cjs/toolbars-v3/modals/FloatingPluginMenu/styles/floating-add-plugin-menu-scss.js +6 -6
  488. package/dist/cjs/toolbars-v3/modals/FloatingPluginMenu/styles/floating-add-plugin-menu-scss.js.map +1 -1
  489. package/dist/cjs/toolbars-v3/ricos-toolbars/footer/FooterToolbar-scss.js +1 -1
  490. package/dist/cjs/toolbars-v3/ricos-toolbars/footer/FooterToolbar-scss.js.map +1 -1
  491. package/dist/cjs/toolbars-v3/ricos-toolbars/formatting/use-is-visible.js +4 -0
  492. package/dist/cjs/toolbars-v3/ricos-toolbars/formatting/use-is-visible.js.map +2 -2
  493. package/dist/cjs/ui-components/Components/Image-scss.js +1 -1
  494. package/dist/cjs/ui-components/Components/Image-scss.js.map +1 -1
  495. package/dist/cjs/ui-components/Components/double-loader-scss.js +4 -4
  496. package/dist/cjs/ui-components/Components/double-loader-scss.js.map +1 -1
  497. package/dist/cjs/ui-components/color-picker/button-color-swatches/button-color-swatches-scss.js +2 -2
  498. package/dist/cjs/ui-components/color-picker/button-color-swatches/button-color-swatches-scss.js.map +1 -1
  499. package/dist/cjs/ui-components/color-picker/new-color-picker/components/gradient-picker/gradient-picker-scss.js +13 -13
  500. package/dist/cjs/ui-components/color-picker/new-color-picker/components/gradient-picker/gradient-picker-scss.js.map +1 -1
  501. package/dist/cjs/ui-components/color-picker/new-color-picker/components/new-color-swatches/new-color-swatches-scss.js +1 -1
  502. package/dist/cjs/ui-components/color-picker/new-color-picker/components/new-color-swatches/new-color-swatches-scss.js.map +1 -1
  503. package/dist/cjs/ui-components/color-picker/new-color-picker/components/simple-color-picker/simple-color-picker-scss.js +2 -2
  504. package/dist/cjs/ui-components/color-picker/new-color-picker/components/simple-color-picker/simple-color-picker-scss.js.map +1 -1
  505. package/dist/cjs/ui-components/color-picker/new-color-picker/components/single-color-swatch/single-color-swatch-scss.js +2 -2
  506. package/dist/cjs/ui-components/color-picker/new-color-picker/components/single-color-swatch/single-color-swatch-scss.js.map +1 -1
  507. package/dist/cjs/ui-components/color-picker/new-color-picker/new-color-picker-scss.js +1 -1
  508. package/dist/cjs/ui-components/color-picker/new-color-picker/new-color-picker-scss.js.map +1 -1
  509. package/dist/cjs/ui-components/input-with-slider/input-with-slider-scss.js +1 -1
  510. package/dist/cjs/ui-components/input-with-slider/input-with-slider-scss.js.map +1 -1
  511. package/dist/cjs/ui-components/layout-background-loader/layout-background-loader-scss.js +3 -3
  512. package/dist/cjs/ui-components/layout-background-loader/layout-background-loader-scss.js.map +1 -1
  513. package/dist/cjs/ui-components/modal-layout/floating-layout/floating-desktop-layout-scss.js +1 -1
  514. package/dist/cjs/ui-components/modal-layout/floating-layout/floating-desktop-layout-scss.js.map +1 -1
  515. package/dist/cjs/ui-components/modal-layout/fullscreen-mobile-layout/fullscreen-mobile-layout-scss.js +4 -4
  516. package/dist/cjs/ui-components/modal-layout/fullscreen-mobile-layout/fullscreen-mobile-layout-scss.js.map +1 -1
  517. package/dist/cjs/ui-components/panel/panel-scss.js +2 -2
  518. package/dist/cjs/ui-components/panel/panel-scss.js.map +1 -1
  519. package/dist/cjs/ui-components/panel-header/panel-header-scss.js +1 -1
  520. package/dist/cjs/ui-components/panel-header/panel-header-scss.js.map +1 -1
  521. package/dist/cjs/ui-components/settings-panel-discard-modal/settings-panel-discard-modal-scss.js +1 -1
  522. package/dist/cjs/ui-components/settings-panel-discard-modal/settings-panel-discard-modal-scss.js.map +1 -1
  523. package/dist/cjs/ui-components/statics/styles/generic-error-scss.js +1 -1
  524. package/dist/cjs/ui-components/statics/styles/generic-error-scss.js.map +1 -1
  525. package/dist/cjs/ui-components/statics/styles/loaders-scss.js +8 -8
  526. package/dist/cjs/ui-components/statics/styles/loaders-scss.js.map +1 -1
  527. package/dist/cjs/ui-components/statics/styles/media-item-error-msg-scss.js +3 -3
  528. package/dist/cjs/ui-components/statics/styles/media-item-error-msg-scss.js.map +1 -1
  529. package/dist/cjs/ui-components/statics/styles/slider-scss.js +5 -5
  530. package/dist/cjs/ui-components/statics/styles/slider-scss.js.map +1 -1
  531. package/dist/cjs/ui-components/thumbnail-picker/thumbnail-picker-scss.js +1 -1
  532. package/dist/cjs/ui-components/thumbnail-picker/thumbnail-picker-scss.js.map +1 -1
  533. package/dist/cjs/ui-components/wixel-assistant/assistant-timeline-scss.js +16 -16
  534. package/dist/cjs/ui-components/wixel-assistant/assistant-timeline-scss.js.map +1 -1
  535. package/dist/cjs/wix-react-player/players/youtube.js +1 -0
  536. package/dist/cjs/wix-react-player/players/youtube.js.map +2 -2
  537. package/dist/cjs/wix-rich-content-common/statics/styles/fonts-scss.js +1 -1
  538. package/dist/cjs/wix-rich-content-common/statics/styles/fonts-scss.js.map +1 -1
  539. package/dist/cjs/wix-rich-content-common/statics/styles/general-scss.js +11 -11
  540. package/dist/cjs/wix-rich-content-common/statics/styles/general-scss.js.map +1 -1
  541. package/dist/docs/api-docs-reference.cjs +1 -1
  542. package/dist/docs/api-docs-reference.js +1 -1
  543. package/dist/docs/api-docs.md +2 -2
  544. package/dist/docs/sections/editor.md +2 -2
  545. package/dist/es/_shared/dropdown-modal/dropdown-modal-scss.js +5 -5
  546. package/dist/es/_shared/dropdown-modal/dropdown-modal-scss.js.map +1 -1
  547. package/dist/es/_shared/editor-base-url/editor-base-url-context.js +13 -12
  548. package/dist/es/_shared/editor-base-url/editor-base-url-context.js.map +2 -2
  549. package/dist/es/_shared/figure/add-caption-button-scss.js +11 -11
  550. package/dist/es/_shared/figure/add-caption-button-scss.js.map +1 -1
  551. package/dist/es/_shared/figure/viewer-caption-scss.js +2 -2
  552. package/dist/es/_shared/figure/viewer-caption-scss.js.map +1 -1
  553. package/dist/es/_shared/figure/viewer-figure-scss.js +1 -1
  554. package/dist/es/_shared/figure/viewer-figure-scss.js.map +1 -1
  555. package/dist/es/_shared/font-weight.js +7 -0
  556. package/dist/es/_shared/font-weight.js.map +7 -0
  557. package/dist/es/_shared/get-common-marker-style.js +15 -0
  558. package/dist/es/_shared/get-common-marker-style.js.map +7 -0
  559. package/dist/es/_shared/get-decorations-marker-style.js +41 -0
  560. package/dist/es/_shared/get-decorations-marker-style.js.map +7 -0
  561. package/dist/es/_shared/get-list-marker-style.js +23 -0
  562. package/dist/es/_shared/get-list-marker-style.js.map +7 -0
  563. package/dist/es/_shared/link-modal/open-link-modal/site-pages/site-pages.js +2 -4
  564. package/dist/es/_shared/link-modal/open-link-modal/site-pages/site-pages.js.map +2 -2
  565. package/dist/es/_shared/list-item-divider/list-item-divider-scss.js +3 -3
  566. package/dist/es/_shared/list-item-divider/list-item-divider-scss.js.map +1 -1
  567. package/dist/es/_shared/list-item-select/list-item-select-scss.js +4 -4
  568. package/dist/es/_shared/list-item-select/list-item-select-scss.js.map +1 -1
  569. package/dist/es/_shared/list-item-toggle/list-item-toggle-scss.js +5 -5
  570. package/dist/es/_shared/list-item-toggle/list-item-toggle-scss.js.map +1 -1
  571. package/dist/es/_shared/list-marker-style-scss.js +28 -0
  572. package/dist/es/_shared/list-marker-style-scss.js.map +7 -0
  573. package/dist/es/_shared/overlay-hoc/overlay-hoc-scss.js +3 -3
  574. package/dist/es/_shared/overlay-hoc/overlay-hoc-scss.js.map +1 -1
  575. package/dist/es/_shared/plugin-toolbar/create-settings-button.js +7 -1
  576. package/dist/es/_shared/plugin-toolbar/create-settings-button.js.map +2 -2
  577. package/dist/es/_shared/plugin-toolbar/separator/toolbar-button-separator-scss.js +4 -4
  578. package/dist/es/_shared/plugin-toolbar/separator/toolbar-button-separator-scss.js.map +1 -1
  579. package/dist/es/_shared/plugin-toolbar/url-link-button/url-link-button-scss.js +4 -4
  580. package/dist/es/_shared/plugin-toolbar/url-link-button/url-link-button-scss.js.map +1 -1
  581. package/dist/es/_shared/pm-node-types.js.map +2 -2
  582. package/dist/es/_shared/prompt-input-area/attachment-bar/attachment-bar-scss.js +9 -9
  583. package/dist/es/_shared/prompt-input-area/attachment-bar/attachment-bar-scss.js.map +1 -1
  584. package/dist/es/_shared/prompt-input-area/prompt-input-area-scss.js +15 -15
  585. package/dist/es/_shared/prompt-input-area/prompt-input-area-scss.js.map +1 -1
  586. package/dist/es/_shared/prompt-input-area/widget-prompt-input-area-scss.js +10 -10
  587. package/dist/es/_shared/prompt-input-area/widget-prompt-input-area-scss.js.map +1 -1
  588. package/dist/es/_shared/shape-select-modal/shape-select-modal-content-scss.js +9 -9
  589. package/dist/es/_shared/shape-select-modal/shape-select-modal-content-scss.js.map +1 -1
  590. package/dist/es/_shared/shape-view-renderer/shape-view-renderer-scss.js +4 -4
  591. package/dist/es/_shared/shape-view-renderer/shape-view-renderer-scss.js.map +1 -1
  592. package/dist/es/_shared/site-pages/site-pages-fetch-context/use-fetch-site-pages.js +82 -26
  593. package/dist/es/_shared/site-pages/site-pages-fetch-context/use-fetch-site-pages.js.map +3 -3
  594. package/dist/es/_shared/site-pages/site-pages-fetch-context.js +2 -6
  595. package/dist/es/_shared/site-pages/site-pages-fetch-context.js.map +2 -2
  596. package/dist/es/_shared/site-pages/types.js.map +2 -2
  597. package/dist/es/_shared/toolbar-button/toolbar-button-scss.js +5 -5
  598. package/dist/es/_shared/toolbar-button/toolbar-button-scss.js.map +1 -1
  599. package/dist/es/bundled-dependencies/ai-assistant-avatar.js +6 -6
  600. package/dist/es/bundled-dependencies/ai-assistant-avatar.js.map +1 -1
  601. package/dist/es/editor-common/statics/styles/general-scss.js +20 -20
  602. package/dist/es/editor-common/statics/styles/general-scss.js.map +1 -1
  603. package/dist/es/index.js.map +2 -2
  604. package/dist/es/internal.js.map +2 -2
  605. package/dist/es/legacy.js +3 -1
  606. package/dist/es/legacy.js.map +2 -2
  607. package/dist/es/plugin-ai/ai-content-modal/ai-content-modal-scss.js +10 -10
  608. package/dist/es/plugin-ai/ai-content-modal/ai-content-modal-scss.js.map +1 -1
  609. package/dist/es/plugin-ai/ai-content-modal/feed/feed-scss.js +4 -4
  610. package/dist/es/plugin-ai/ai-content-modal/feed/feed-scss.js.map +1 -1
  611. package/dist/es/plugin-ai/ai-content-modal/no-selection-message/no-selection-message-scss.js +3 -3
  612. package/dist/es/plugin-ai/ai-content-modal/no-selection-message/no-selection-message-scss.js.map +1 -1
  613. package/dist/es/plugin-ai/ai-content-modal/text-cursor/text-cursor-scss.js +4 -4
  614. package/dist/es/plugin-ai/ai-content-modal/text-cursor/text-cursor-scss.js.map +1 -1
  615. package/dist/es/plugin-ai/ai-content-modal/textual-prompt-input-area/textual-prompt-input-area-scss.js +7 -7
  616. package/dist/es/plugin-ai/ai-content-modal/textual-prompt-input-area/textual-prompt-input-area-scss.js.map +1 -1
  617. package/dist/es/plugin-ai/ai-image-modal/ai-image-modal-scss.js +8 -8
  618. package/dist/es/plugin-ai/ai-image-modal/ai-image-modal-scss.js.map +1 -1
  619. package/dist/es/plugin-ai/ai-plus-button/ai-plus-button-scss.js +3 -3
  620. package/dist/es/plugin-ai/ai-plus-button/ai-plus-button-scss.js.map +1 -1
  621. package/dist/es/plugin-ai/error-message/error-message-scss.js +3 -3
  622. package/dist/es/plugin-ai/error-message/error-message-scss.js.map +1 -1
  623. package/dist/es/plugin-ai/prompt-input-area/prompt-input-area-scss.js +6 -6
  624. package/dist/es/plugin-ai/prompt-input-area/prompt-input-area-scss.js.map +1 -1
  625. package/dist/es/plugin-ai/toolbar/toolbar-button-scss.js +4 -4
  626. package/dist/es/plugin-ai/toolbar/toolbar-button-scss.js.map +1 -1
  627. package/dist/es/plugin-animation/animation-panel-scss.js +11 -11
  628. package/dist/es/plugin-animation/animation-panel-scss.js.map +1 -1
  629. package/dist/es/plugin-audio/statics/styles/audio-embed-scss.js +3 -3
  630. package/dist/es/plugin-audio/statics/styles/audio-embed-scss.js.map +1 -1
  631. package/dist/es/plugin-audio/statics/styles/audio-scss.js +21 -21
  632. package/dist/es/plugin-audio/statics/styles/audio-scss.js.map +1 -1
  633. package/dist/es/plugin-audio/statics/styles/icon-button-scss.js +1 -1
  634. package/dist/es/plugin-audio/statics/styles/icon-button-scss.js.map +1 -1
  635. package/dist/es/plugin-audio/statics/styles/settings-modal-scss.js +3 -3
  636. package/dist/es/plugin-audio/statics/styles/settings-modal-scss.js.map +1 -1
  637. package/dist/es/plugin-audio/statics/styles/sound-control-scss.js +2 -2
  638. package/dist/es/plugin-audio/statics/styles/sound-control-scss.js.map +1 -1
  639. package/dist/es/plugin-audio/viewer-styles-inject.js +4 -4
  640. package/dist/es/plugin-block-drag-handle/box-select.js +1 -0
  641. package/dist/es/plugin-block-drag-handle/box-select.js.map +2 -2
  642. package/dist/es/plugin-block-drag-handle/dom.js +20 -8
  643. package/dist/es/plugin-block-drag-handle/dom.js.map +2 -2
  644. package/dist/es/plugin-block-drag-handle/plugin.js +37 -5
  645. package/dist/es/plugin-block-drag-handle/plugin.js.map +2 -2
  646. package/dist/es/plugin-block-drag-handle/styles-scss.js +10 -10
  647. package/dist/es/plugin-block-drag-handle/styles-scss.js.map +1 -1
  648. package/dist/es/plugin-button/statics/styles/button-input-modal-scss.js +4 -4
  649. package/dist/es/plugin-button/statics/styles/button-input-modal-scss.js.map +1 -1
  650. package/dist/es/plugin-button/statics/styles/button-text-field-scss.js +3 -3
  651. package/dist/es/plugin-button/statics/styles/button-text-field-scss.js.map +1 -1
  652. package/dist/es/plugin-button/statics/styles/default-styles-scss.js +5 -5
  653. package/dist/es/plugin-button/statics/styles/default-styles-scss.js.map +1 -1
  654. package/dist/es/plugin-button/viewer-styles-inject.js +2 -2
  655. package/dist/es/plugin-card/card-node-view.js +39 -35
  656. package/dist/es/plugin-card/card-node-view.js.map +2 -2
  657. package/dist/es/plugin-card/card-scss.js +20 -19
  658. package/dist/es/plugin-card/card-scss.js.map +2 -2
  659. package/dist/es/plugin-card/card-viewer-scss.js +6 -6
  660. package/dist/es/plugin-card/card-viewer-scss.js.map +1 -1
  661. package/dist/es/plugin-card/extension.js +3 -1
  662. package/dist/es/plugin-card/extension.js.map +2 -2
  663. package/dist/es/plugin-card/index.js.map +1 -1
  664. package/dist/es/plugin-card/page-gap.js +3 -1
  665. package/dist/es/plugin-card/page-gap.js.map +2 -2
  666. package/dist/es/plugin-card/viewer-styles-inject.js +2 -2
  667. package/dist/es/plugin-code-block/statics/styles/code-block-scss.js +8 -8
  668. package/dist/es/plugin-code-block/statics/styles/code-block-scss.js.map +1 -1
  669. package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-component-scss.js +6 -6
  670. package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-component-scss.js.map +1 -1
  671. package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-pair-scss.js +18 -18
  672. package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-pair-scss.js.map +1 -1
  673. package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-settings-scss.js +4 -4
  674. package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-settings-scss.js.map +1 -1
  675. package/dist/es/plugin-collapsible-list/statics/styles/new-pair-button-scss.js +5 -5
  676. package/dist/es/plugin-collapsible-list/statics/styles/new-pair-button-scss.js.map +1 -1
  677. package/dist/es/plugin-collapsible-list/viewer-styles-inject.js +2 -2
  678. package/dist/es/plugin-divider/statics/styles/divider-viewer-scss.js +13 -13
  679. package/dist/es/plugin-divider/statics/styles/divider-viewer-scss.js.map +1 -1
  680. package/dist/es/plugin-divider/toolbar/modals/divider-design-panel-scss.js +3 -3
  681. package/dist/es/plugin-divider/toolbar/modals/divider-design-panel-scss.js.map +1 -1
  682. package/dist/es/plugin-divider/viewer-styles-inject.js +2 -2
  683. package/dist/es/plugin-emoji/modals/emoji-suggestions-modal-scss.js +3 -3
  684. package/dist/es/plugin-emoji/modals/emoji-suggestions-modal-scss.js.map +1 -1
  685. package/dist/es/plugin-figure/tiptap/caption-scss.js +5 -5
  686. package/dist/es/plugin-figure/tiptap/caption-scss.js.map +1 -1
  687. package/dist/es/plugin-figure/tiptap/figure-scss.js +5 -5
  688. package/dist/es/plugin-figure/tiptap/figure-scss.js.map +1 -1
  689. package/dist/es/plugin-file-upload/statics/styles/file-upload-viewer-scss.js +15 -15
  690. package/dist/es/plugin-file-upload/statics/styles/file-upload-viewer-scss.js.map +1 -1
  691. package/dist/es/plugin-file-upload/viewer-styles-inject.js +2 -2
  692. package/dist/es/plugin-gallery/modals/settings/gallery-settings-modal-scss.js +5 -5
  693. package/dist/es/plugin-gallery/modals/settings/gallery-settings-modal-scss.js.map +1 -1
  694. package/dist/es/plugin-gallery/modals/settings/layout-settings/layout-controls-section/image-ratio-control-scss.js +8 -8
  695. package/dist/es/plugin-gallery/modals/settings/layout-settings/layout-controls-section/image-ratio-control-scss.js.map +1 -1
  696. package/dist/es/plugin-gallery/modals/settings/layout-settings/layout-controls-section/thumbnail-alignment-control-scss.js +7 -7
  697. package/dist/es/plugin-gallery/modals/settings/layout-settings/layout-controls-section/thumbnail-alignment-control-scss.js.map +1 -1
  698. package/dist/es/plugin-gallery/modals/settings/media-settings/media-list/sortable-item-scss.js +3 -3
  699. package/dist/es/plugin-gallery/modals/settings/media-settings/media-list/sortable-item-scss.js.map +1 -1
  700. package/dist/es/plugin-gallery/modals/settings/media-settings/media-list/sortable-list-scss.js +5 -5
  701. package/dist/es/plugin-gallery/modals/settings/media-settings/media-list/sortable-list-scss.js.map +1 -1
  702. package/dist/es/plugin-gallery/statics/styles/gallery-component-scss.js +3 -3
  703. package/dist/es/plugin-gallery/statics/styles/gallery-component-scss.js.map +1 -1
  704. package/dist/es/plugin-gallery/statics/styles/gallery-media-scss.js +21 -21
  705. package/dist/es/plugin-gallery/statics/styles/gallery-media-scss.js.map +1 -1
  706. package/dist/es/plugin-gallery/statics/styles/viewer-scss.js +1 -1
  707. package/dist/es/plugin-gallery/statics/styles/viewer-scss.js.map +1 -1
  708. package/dist/es/plugin-gallery/viewer/layout-collage-scss.js +5 -5
  709. package/dist/es/plugin-gallery/viewer/layout-collage-scss.js.map +1 -1
  710. package/dist/es/plugin-gallery/viewer/layout-column-scss.js +4 -4
  711. package/dist/es/plugin-gallery/viewer/layout-column-scss.js.map +1 -1
  712. package/dist/es/plugin-gallery/viewer/layout-fullsize-scss.js +4 -4
  713. package/dist/es/plugin-gallery/viewer/layout-fullsize-scss.js.map +1 -1
  714. package/dist/es/plugin-gallery/viewer/layout-grid-scss.js +2 -2
  715. package/dist/es/plugin-gallery/viewer/layout-grid-scss.js.map +1 -1
  716. package/dist/es/plugin-gallery/viewer/layout-masonry-scss.js +7 -7
  717. package/dist/es/plugin-gallery/viewer/layout-masonry-scss.js.map +1 -1
  718. package/dist/es/plugin-gallery/viewer/layout-panorama-scss.js +1 -1
  719. package/dist/es/plugin-gallery/viewer/layout-panorama-scss.js.map +1 -1
  720. package/dist/es/plugin-gallery/viewer/layout-slider-scss.js +6 -6
  721. package/dist/es/plugin-gallery/viewer/layout-slider-scss.js.map +1 -1
  722. package/dist/es/plugin-gallery/viewer/layout-thumbnail-scss.js +11 -11
  723. package/dist/es/plugin-gallery/viewer/layout-thumbnail-scss.js.map +1 -1
  724. package/dist/es/plugin-gallery/viewer-styles-inject.js +2 -2
  725. package/dist/es/plugin-giphy/components/giphy-selector-scss.js +11 -11
  726. package/dist/es/plugin-giphy/components/giphy-selector-scss.js.map +1 -1
  727. package/dist/es/plugin-giphy/viewer/giphy-viewer-scss.js +4 -4
  728. package/dist/es/plugin-giphy/viewer/giphy-viewer-scss.js.map +1 -1
  729. package/dist/es/plugin-giphy/viewer/play-icon-scss.js +2 -2
  730. package/dist/es/plugin-giphy/viewer/play-icon-scss.js.map +1 -1
  731. package/dist/es/plugin-giphy/viewer-styles-inject.js +2 -2
  732. package/dist/es/plugin-hashtag/statics/hashtag-scss.js +2 -2
  733. package/dist/es/plugin-hashtag/statics/hashtag-scss.js.map +1 -1
  734. package/dist/es/plugin-hashtag/viewer-styles-inject.js +2 -2
  735. package/dist/es/plugin-headings/dropdown/headings-dropdown-scss.js +9 -9
  736. package/dist/es/plugin-headings/dropdown/headings-dropdown-scss.js.map +1 -1
  737. package/dist/es/plugin-html/statics/styles/HtmlComponent-scss.js +2 -2
  738. package/dist/es/plugin-html/statics/styles/HtmlComponent-scss.js.map +1 -1
  739. package/dist/es/plugin-html/statics/styles/Iframe-scss.js +1 -1
  740. package/dist/es/plugin-html/statics/styles/Iframe-scss.js.map +1 -1
  741. package/dist/es/plugin-html/tiptap/ai-widget-scss.js +4 -4
  742. package/dist/es/plugin-html/tiptap/ai-widget-scss.js.map +1 -1
  743. package/dist/es/plugin-html/tiptap/loader-scss.js +11 -11
  744. package/dist/es/plugin-html/tiptap/loader-scss.js.map +1 -1
  745. package/dist/es/plugin-html/tiptap/preset-bar/preset-bar-scss.js +4 -4
  746. package/dist/es/plugin-html/tiptap/preset-bar/preset-bar-scss.js.map +1 -1
  747. package/dist/es/plugin-html/viewer-styles-inject.js +2 -2
  748. package/dist/es/plugin-image/components/corner-radius-handles-scss.js +6 -6
  749. package/dist/es/plugin-image/components/corner-radius-handles-scss.js.map +1 -1
  750. package/dist/es/plugin-image/components/crop-edge-handles-scss.js +3 -3
  751. package/dist/es/plugin-image/components/crop-edge-handles-scss.js.map +1 -1
  752. package/dist/es/plugin-image/crop-overlay/crop-overlay-scss.js +16 -16
  753. package/dist/es/plugin-image/crop-overlay/crop-overlay-scss.js.map +1 -1
  754. package/dist/es/plugin-image/statics/styles/image-viewer-scss.js +20 -20
  755. package/dist/es/plugin-image/statics/styles/image-viewer-scss.js.map +1 -1
  756. package/dist/es/plugin-image/statics/styles/settings-modal-scss.js +3 -3
  757. package/dist/es/plugin-image/statics/styles/settings-modal-scss.js.map +1 -1
  758. package/dist/es/plugin-image/toolbar/shape-crop-modal-scss.js +6 -6
  759. package/dist/es/plugin-image/toolbar/shape-crop-modal-scss.js.map +1 -1
  760. package/dist/es/plugin-image/viewer-styles-inject.js +2 -2
  761. package/dist/es/plugin-inline-ai/ai-selection-tooltip-scss.js +12 -12
  762. package/dist/es/plugin-inline-ai/ai-selection-tooltip-scss.js.map +1 -1
  763. package/dist/es/plugin-inline-ai/aria-avatar-row-scss.js +3 -3
  764. package/dist/es/plugin-inline-ai/aria-avatar-row-scss.js.map +1 -1
  765. package/dist/es/plugin-inline-ai/aria-surface-row-scss.js +6 -6
  766. package/dist/es/plugin-inline-ai/aria-surface-row-scss.js.map +1 -1
  767. package/dist/es/plugin-inline-ai/html-placeholder-scss.js +5 -5
  768. package/dist/es/plugin-inline-ai/html-placeholder-scss.js.map +1 -1
  769. package/dist/es/plugin-inline-ai/modal-scss.js +11 -11
  770. package/dist/es/plugin-inline-ai/modal-scss.js.map +1 -1
  771. package/dist/es/plugin-inline-ai/pending-widget-placeholder-scss.js +14 -14
  772. package/dist/es/plugin-inline-ai/pending-widget-placeholder-scss.js.map +1 -1
  773. package/dist/es/plugin-inline-ai/spinner-scss.js +4 -4
  774. package/dist/es/plugin-inline-ai/spinner-scss.js.map +1 -1
  775. package/dist/es/plugin-inline-ai/toolbar/toolbar-button-scss.js +4 -4
  776. package/dist/es/plugin-inline-ai/toolbar/toolbar-button-scss.js.map +1 -1
  777. package/dist/es/plugin-line-spacing/custom-spacing-editor-modal/custom-spacing-editor-modal-scss.js +3 -3
  778. package/dist/es/plugin-line-spacing/custom-spacing-editor-modal/custom-spacing-editor-modal-scss.js.map +1 -1
  779. package/dist/es/plugin-link/editor.js +2 -2
  780. package/dist/es/plugin-link/editor.js.map +2 -2
  781. package/dist/es/plugin-link/statics/link-viewer-scss.js +4 -4
  782. package/dist/es/plugin-link/statics/link-viewer-scss.js.map +1 -1
  783. package/dist/es/plugin-link/toolbar/anchor-link-button-scss.js +3 -3
  784. package/dist/es/plugin-link/toolbar/anchor-link-button-scss.js.map +1 -1
  785. package/dist/es/plugin-link/viewer-styles-inject.js +2 -2
  786. package/dist/es/plugin-link-preview/statics/styles/insert-modal-scss.js +3 -3
  787. package/dist/es/plugin-link-preview/statics/styles/insert-modal-scss.js.map +1 -1
  788. package/dist/es/plugin-link-preview/statics/styles/link-preview-scss.js +18 -18
  789. package/dist/es/plugin-link-preview/statics/styles/link-preview-scss.js.map +1 -1
  790. package/dist/es/plugin-link-preview/statics/styles/settings-modal-scss.js +3 -3
  791. package/dist/es/plugin-link-preview/statics/styles/settings-modal-scss.js.map +1 -1
  792. package/dist/es/plugin-link-preview/viewer-styles-inject.js +3 -3
  793. package/dist/es/plugin-mentions/statics/mention-list-scss.js +6 -6
  794. package/dist/es/plugin-mentions/statics/mention-list-scss.js.map +1 -1
  795. package/dist/es/plugin-mentions/statics/mentions-scss.js +4 -4
  796. package/dist/es/plugin-mentions/statics/mentions-scss.js.map +1 -1
  797. package/dist/es/plugin-mentions/viewer-styles-inject.js +2 -2
  798. package/dist/es/plugin-paywall/paywall-fallback-scss.js +1 -1
  799. package/dist/es/plugin-paywall/paywall-fallback-scss.js.map +1 -1
  800. package/dist/es/plugin-paywall/plugin-paywall.js.map +2 -2
  801. package/dist/es/plugin-smart-block/components/cell-accessory-scss.js +22 -22
  802. package/dist/es/plugin-smart-block/components/cell-accessory-scss.js.map +1 -1
  803. package/dist/es/plugin-smart-block/components/cell-quote-glyph-scss.js +3 -3
  804. package/dist/es/plugin-smart-block/components/cell-quote-glyph-scss.js.map +1 -1
  805. package/dist/es/plugin-smart-block/components/cell-star-rating-scss.js +4 -4
  806. package/dist/es/plugin-smart-block/components/cell-star-rating-scss.js.map +1 -1
  807. package/dist/es/plugin-smart-block/components/cell-stat-scss.js +20 -20
  808. package/dist/es/plugin-smart-block/components/cell-stat-scss.js.map +1 -1
  809. package/dist/es/plugin-smart-block/components/circle-donut-scss.js +7 -7
  810. package/dist/es/plugin-smart-block/components/circle-donut-scss.js.map +1 -1
  811. package/dist/es/plugin-smart-block/components/shape-overlay-scss.js +3 -3
  812. package/dist/es/plugin-smart-block/components/shape-overlay-scss.js.map +1 -1
  813. package/dist/es/plugin-smart-block/components/smart-block-view-scss.js +50 -50
  814. package/dist/es/plugin-smart-block/components/smart-block-view-scss.js.map +1 -1
  815. package/dist/es/plugin-smart-block/components/stars-scss.js +8 -8
  816. package/dist/es/plugin-smart-block/components/stars-scss.js.map +1 -1
  817. package/dist/es/plugin-smart-block/modals/variant-picker-scss.js +9 -9
  818. package/dist/es/plugin-smart-block/modals/variant-picker-scss.js.map +1 -1
  819. package/dist/es/plugin-smart-block/tiptap/smart-block-editor-scss.js +15 -15
  820. package/dist/es/plugin-smart-block/tiptap/smart-block-editor-scss.js.map +1 -1
  821. package/dist/es/plugin-smart-block/viewer-styles-inject.js +2 -2
  822. package/dist/es/plugin-social-polls/components/image-upload/image-upload-scss.js +9 -9
  823. package/dist/es/plugin-social-polls/components/image-upload/image-upload-scss.js.map +1 -1
  824. package/dist/es/plugin-social-polls/components/insert-modal/insert-modal-scss.js +3 -3
  825. package/dist/es/plugin-social-polls/components/insert-modal/insert-modal-scss.js.map +1 -1
  826. package/dist/es/plugin-social-polls/components/poll-header/poll-header-scss.js +3 -3
  827. package/dist/es/plugin-social-polls/components/poll-header/poll-header-scss.js.map +1 -1
  828. package/dist/es/plugin-social-polls/components/poll-option/option-scss.js +23 -23
  829. package/dist/es/plugin-social-polls/components/poll-option/option-scss.js.map +1 -1
  830. package/dist/es/plugin-social-polls/components/poll-option/webview/option-webview-scss.js +24 -24
  831. package/dist/es/plugin-social-polls/components/poll-option/webview/option-webview-scss.js.map +1 -1
  832. package/dist/es/plugin-social-polls/components/poll-scss.js +19 -19
  833. package/dist/es/plugin-social-polls/components/poll-scss.js.map +1 -1
  834. package/dist/es/plugin-social-polls/components/settings-modal/settings-modal-scss.js +4 -4
  835. package/dist/es/plugin-social-polls/components/settings-modal/settings-modal-scss.js.map +1 -1
  836. package/dist/es/plugin-social-polls/components/text-field/text-field-scss.js +12 -12
  837. package/dist/es/plugin-social-polls/components/text-field/text-field-scss.js.map +1 -1
  838. package/dist/es/plugin-social-polls/components/voted-users/voted-users-scss.js +20 -20
  839. package/dist/es/plugin-social-polls/components/voted-users/voted-users-scss.js.map +1 -1
  840. package/dist/es/plugin-social-polls/viewer-styles-inject.js +2 -2
  841. package/dist/es/plugin-spoiler/get-text-buttons.js +2 -2
  842. package/dist/es/plugin-spoiler/get-text-buttons.js.map +2 -2
  843. package/dist/es/plugin-spoiler/statics/styles/spoiler-scss.js +18 -18
  844. package/dist/es/plugin-spoiler/statics/styles/spoiler-scss.js.map +1 -1
  845. package/dist/es/plugin-spoiler/viewer-styles-inject.js +2 -2
  846. package/dist/es/plugin-table/modals/table-grid-selector-scss.js +7 -7
  847. package/dist/es/plugin-table/modals/table-grid-selector-scss.js.map +1 -1
  848. package/dist/es/plugin-table/statics/styles/cell-scss.js +15 -15
  849. package/dist/es/plugin-table/statics/styles/cell-scss.js.map +1 -1
  850. package/dist/es/plugin-table/statics/styles/resizer-scss.js +20 -20
  851. package/dist/es/plugin-table/statics/styles/resizer-scss.js.map +1 -1
  852. package/dist/es/plugin-table/statics/styles/table-settings-modal-scss.js +3 -3
  853. package/dist/es/plugin-table/statics/styles/table-settings-modal-scss.js.map +1 -1
  854. package/dist/es/plugin-table/statics/styles/table-viewer-scss.js +6 -6
  855. package/dist/es/plugin-table/statics/styles/table-viewer-scss.js.map +1 -1
  856. package/dist/es/plugin-table/tiptap/decorations/tableHandles-scss.js +11 -11
  857. package/dist/es/plugin-table/tiptap/decorations/tableHandles-scss.js.map +1 -1
  858. package/dist/es/plugin-table/tiptap/plugins/table-scss.js +35 -35
  859. package/dist/es/plugin-table/tiptap/plugins/table-scss.js.map +1 -1
  860. package/dist/es/plugin-table/toolbar/modals/border-scope-selector-scss.js +4 -4
  861. package/dist/es/plugin-table/toolbar/modals/border-scope-selector-scss.js.map +1 -1
  862. package/dist/es/plugin-table/viewer-styles-inject.js +4 -4
  863. package/dist/es/plugin-text-color/sketch/text-highlight-button.js +2 -2
  864. package/dist/es/plugin-text-color/sketch/text-highlight-button.js.map +2 -2
  865. package/dist/es/plugin-text-color/text-button-color-scss.js +4 -4
  866. package/dist/es/plugin-text-color/text-button-color-scss.js.map +1 -1
  867. package/dist/es/plugin-toc/toc-view-scss.js +2 -2
  868. package/dist/es/plugin-toc/toc-view-scss.js.map +1 -1
  869. package/dist/es/plugin-toc/viewer-styles-inject.js +2 -2
  870. package/dist/es/plugin-vertical-embed/components/Ribbon-scss.js +3 -3
  871. package/dist/es/plugin-vertical-embed/components/Ribbon-scss.js.map +1 -1
  872. package/dist/es/plugin-vertical-embed/components/card-content-scss.js +23 -23
  873. package/dist/es/plugin-vertical-embed/components/card-content-scss.js.map +1 -1
  874. package/dist/es/plugin-vertical-embed/components/card-scss.js +19 -19
  875. package/dist/es/plugin-vertical-embed/components/card-scss.js.map +1 -1
  876. package/dist/es/plugin-vertical-embed/components/description-scss.js +2 -2
  877. package/dist/es/plugin-vertical-embed/components/description-scss.js.map +1 -1
  878. package/dist/es/plugin-vertical-embed/modals/settings-modal-scss.js +4 -4
  879. package/dist/es/plugin-vertical-embed/modals/settings-modal-scss.js.map +1 -1
  880. package/dist/es/plugin-vertical-embed/tiptap/component-scss.js +12 -12
  881. package/dist/es/plugin-vertical-embed/tiptap/component-scss.js.map +1 -1
  882. package/dist/es/plugin-vertical-embed/toolbar/items-list-scss.js +3 -3
  883. package/dist/es/plugin-vertical-embed/toolbar/items-list-scss.js.map +1 -1
  884. package/dist/es/plugin-vertical-embed/viewer/vertical-embed-viewer-scss.js +6 -6
  885. package/dist/es/plugin-vertical-embed/viewer/vertical-embed-viewer-scss.js.map +1 -1
  886. package/dist/es/plugin-vertical-embed/viewer-styles-inject.js +3 -3
  887. package/dist/es/plugin-video/statics/styles/default-video-styles-scss.js +10 -10
  888. package/dist/es/plugin-video/statics/styles/default-video-styles-scss.js.map +1 -1
  889. package/dist/es/plugin-video/statics/styles/video-viewer-scss.js +3 -3
  890. package/dist/es/plugin-video/statics/styles/video-viewer-scss.js.map +1 -1
  891. package/dist/es/plugin-video/toolbar/embed-video-scss.js +3 -3
  892. package/dist/es/plugin-video/toolbar/embed-video-scss.js.map +1 -1
  893. package/dist/es/plugin-video/viewer/video.js +30 -2
  894. package/dist/es/plugin-video/viewer/video.js.map +2 -2
  895. package/dist/es/plugin-video/viewer-styles-inject.js +2 -2
  896. package/dist/es/ricos-common-plugins/bold/extension.js +1 -2
  897. package/dist/es/ricos-common-plugins/bold/extension.js.map +2 -2
  898. package/dist/es/ricos-common-plugins/decoration-plugins/list-item-sizing.js +13 -1
  899. package/dist/es/ricos-common-plugins/decoration-plugins/list-item-sizing.js.map +2 -2
  900. package/dist/es/ricos-common-plugins/font-size/block-font-size-plugin.js +2 -1
  901. package/dist/es/ricos-common-plugins/font-size/block-font-size-plugin.js.map +2 -2
  902. package/dist/es/ricos-common-plugins/font-size/dropdown/font-size-dropdown-scss.js +3 -3
  903. package/dist/es/ricos-common-plugins/font-size/dropdown/font-size-dropdown-scss.js.map +1 -1
  904. package/dist/es/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js +10 -10
  905. package/dist/es/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js.map +1 -1
  906. package/dist/es/ricos-common-plugins/layout/layouts-scss.js +35 -35
  907. package/dist/es/ricos-common-plugins/layout/layouts-scss.js.map +1 -1
  908. package/dist/es/ricos-common-plugins/layout/paywall-toolbar-button.js +74 -0
  909. package/dist/es/ricos-common-plugins/layout/paywall-toolbar-button.js.map +7 -0
  910. package/dist/es/ricos-common-plugins/layout/plugin-layout.js +178 -173
  911. package/dist/es/ricos-common-plugins/layout/plugin-layout.js.map +2 -2
  912. package/dist/es/ricos-common-plugins/layout/section-dividers/section-dividers-panel-scss.js +4 -4
  913. package/dist/es/ricos-common-plugins/layout/section-dividers/section-dividers-panel-scss.js.map +1 -1
  914. package/dist/es/ricos-common-plugins/layout/section-dividers/section-dividers-scss.js +6 -6
  915. package/dist/es/ricos-common-plugins/layout/section-dividers/section-dividers-scss.js.map +1 -1
  916. package/dist/es/ricos-common-plugins/list-item/extension.js +9 -0
  917. package/dist/es/ricos-common-plugins/list-item/extension.js.map +2 -2
  918. package/dist/es/ricos-common-plugins/list-item/list-converters.js +5 -3
  919. package/dist/es/ricos-common-plugins/list-item/list-converters.js.map +2 -2
  920. package/dist/es/ricos-common-plugins/list-item/list-marker-selection.js +274 -0
  921. package/dist/es/ricos-common-plugins/list-item/list-marker-selection.js.map +7 -0
  922. package/dist/es/ricos-common-plugins/quick-actions/modal/modal-scss.js +4 -4
  923. package/dist/es/ricos-common-plugins/quick-actions/modal/modal-scss.js.map +1 -1
  924. package/dist/es/ricos-common-plugins/statics/styles-scss.js +20 -20
  925. package/dist/es/ricos-common-plugins/statics/styles-scss.js.map +1 -1
  926. package/dist/es/ricos-common-plugins/strikethrough/strikethrough.js +2 -2
  927. package/dist/es/ricos-common-plugins/strikethrough/strikethrough.js.map +2 -2
  928. package/dist/es/ricos-common-plugins/strikethrough/strikethrough.testkit.js +1 -0
  929. package/dist/es/ricos-common-plugins/strikethrough/strikethrough.testkit.js.map +2 -2
  930. package/dist/es/ricos-common-plugins/title/headings-scss.js +10 -10
  931. package/dist/es/ricos-common-plugins/title/headings-scss.js.map +1 -1
  932. package/dist/es/ricos-common-plugins/underline/underline.js +2 -2
  933. package/dist/es/ricos-common-plugins/underline/underline.js.map +2 -2
  934. package/dist/es/ricos-editor/statics/styles/editor-styles-scss.js +11 -11
  935. package/dist/es/ricos-editor/statics/styles/editor-styles-scss.js.map +1 -1
  936. package/dist/es/ricos-modals/statics/styles/drawer-scss.js +11 -11
  937. package/dist/es/ricos-modals/statics/styles/drawer-scss.js.map +1 -1
  938. package/dist/es/ricos-modals/statics/styles/fullscreen-scss.js +3 -3
  939. package/dist/es/ricos-modals/statics/styles/fullscreen-scss.js.map +1 -1
  940. package/dist/es/ricos-modals/statics/styles/popper-scss.js +5 -5
  941. package/dist/es/ricos-modals/statics/styles/popper-scss.js.map +1 -1
  942. package/dist/es/ricos-schema/next-schema/version.js +1 -1
  943. package/dist/es/ricos-schema/next-schema/version.js.map +1 -1
  944. package/dist/es/ricos-styles/statics/styles/style-presets-scss.js +8 -8
  945. package/dist/es/ricos-styles/statics/styles/style-presets-scss.js.map +1 -1
  946. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js +3 -3
  947. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js.map +1 -1
  948. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js +3 -3
  949. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js.map +1 -1
  950. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js +9 -9
  951. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js.map +1 -1
  952. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js +10 -10
  953. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js.map +1 -1
  954. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/list-item.js +10 -1
  955. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/list-item.js.map +2 -2
  956. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js +6 -6
  957. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js.map +1 -1
  958. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js +4 -4
  959. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js.map +1 -1
  960. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js +2 -2
  961. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js.map +1 -1
  962. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js +15 -15
  963. package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js.map +1 -1
  964. package/dist/es/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js +14 -14
  965. package/dist/es/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js.map +1 -1
  966. package/dist/es/ricos-viewer-next/statics/alignment-scss.js +16 -16
  967. package/dist/es/ricos-viewer-next/statics/alignment-scss.js.map +1 -1
  968. package/dist/es/ricos-viewer-next/statics/indentation-scss.js +7 -7
  969. package/dist/es/ricos-viewer-next/statics/indentation-scss.js.map +1 -1
  970. package/dist/es/ricos-viewer-next/statics/rich-content-viewer-scss.js +9 -9
  971. package/dist/es/ricos-viewer-next/statics/rich-content-viewer-scss.js.map +1 -1
  972. package/dist/es/ricos-viewer-next/statics/rtl-scss.js +2 -2
  973. package/dist/es/ricos-viewer-next/statics/rtl-scss.js.map +1 -1
  974. package/dist/es/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js +4 -4
  975. package/dist/es/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js.map +1 -1
  976. package/dist/es/tiptap/core/editor.js +5 -2
  977. package/dist/es/tiptap/core/editor.js.map +2 -2
  978. package/dist/es/tiptap-editor/statics/styles/tiptap-editor-styles-scss.js +15 -15
  979. package/dist/es/tiptap-editor/statics/styles/tiptap-editor-styles-scss.js.map +1 -1
  980. package/dist/es/tiptap-extensions/placeholder-scss.js +3 -3
  981. package/dist/es/tiptap-extensions/placeholder-scss.js.map +1 -1
  982. package/dist/es/tiptap-extensions/statics/styles-scss.js +6 -6
  983. package/dist/es/tiptap-extensions/statics/styles-scss.js.map +1 -1
  984. package/dist/es/toolbars-v3/components/InsertPluginToolbar/insert-plugin-toolbar-scss.js +3 -3
  985. package/dist/es/toolbars-v3/components/InsertPluginToolbar/insert-plugin-toolbar-scss.js.map +1 -1
  986. package/dist/es/toolbars-v3/components/MaxWidthCalculationWrapper/max-width-calculation-wrapper.js +2 -1
  987. package/dist/es/toolbars-v3/components/MaxWidthCalculationWrapper/max-width-calculation-wrapper.js.map +2 -2
  988. package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/OverflownButtons-scss.js +5 -5
  989. package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/OverflownButtons-scss.js.map +1 -1
  990. package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbar-scss.js +5 -5
  991. package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbar-scss.js.map +1 -1
  992. package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbarWrapper-scss.js +6 -6
  993. package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbarWrapper-scss.js.map +1 -1
  994. package/dist/es/toolbars-v3/components/Toolbar/RicosMobileToolbar/RicosMobileToolbar-scss.js +11 -11
  995. package/dist/es/toolbars-v3/components/Toolbar/RicosMobileToolbar/RicosMobileToolbar-scss.js.map +1 -1
  996. package/dist/es/toolbars-v3/components/Toolbar/RicosMobileToolbar/mobile-toolbar-overlay/mobile-toolbar-overlay-scss.js +3 -3
  997. package/dist/es/toolbars-v3/components/Toolbar/RicosMobileToolbar/mobile-toolbar-overlay/mobile-toolbar-overlay-scss.js.map +1 -1
  998. package/dist/es/toolbars-v3/components/buttons/AddPluginMenuButtons/AddPluginMenuMobileButton-scss.js +5 -5
  999. package/dist/es/toolbars-v3/components/buttons/AddPluginMenuButtons/AddPluginMenuMobileButton-scss.js.map +1 -1
  1000. package/dist/es/toolbars-v3/components/buttons/FontSizeButton/FontSizeButton-scss.js +7 -7
  1001. package/dist/es/toolbars-v3/components/buttons/FontSizeButton/FontSizeButton-scss.js.map +1 -1
  1002. package/dist/es/toolbars-v3/modals/FloatingPluginMenu/styles/floating-add-plugin-menu-scss.js +8 -8
  1003. package/dist/es/toolbars-v3/modals/FloatingPluginMenu/styles/floating-add-plugin-menu-scss.js.map +1 -1
  1004. package/dist/es/toolbars-v3/ricos-toolbars/footer/FooterToolbar-scss.js +3 -3
  1005. package/dist/es/toolbars-v3/ricos-toolbars/footer/FooterToolbar-scss.js.map +1 -1
  1006. package/dist/es/toolbars-v3/ricos-toolbars/formatting/use-is-visible.js +4 -0
  1007. package/dist/es/toolbars-v3/ricos-toolbars/formatting/use-is-visible.js.map +2 -2
  1008. package/dist/es/ui-components/Components/Image-scss.js +3 -3
  1009. package/dist/es/ui-components/Components/Image-scss.js.map +1 -1
  1010. package/dist/es/ui-components/Components/double-loader-scss.js +6 -6
  1011. package/dist/es/ui-components/Components/double-loader-scss.js.map +1 -1
  1012. package/dist/es/ui-components/color-picker/button-color-swatches/button-color-swatches-scss.js +4 -4
  1013. package/dist/es/ui-components/color-picker/button-color-swatches/button-color-swatches-scss.js.map +1 -1
  1014. package/dist/es/ui-components/color-picker/new-color-picker/components/gradient-picker/gradient-picker-scss.js +15 -15
  1015. package/dist/es/ui-components/color-picker/new-color-picker/components/gradient-picker/gradient-picker-scss.js.map +1 -1
  1016. package/dist/es/ui-components/color-picker/new-color-picker/components/new-color-swatches/new-color-swatches-scss.js +3 -3
  1017. package/dist/es/ui-components/color-picker/new-color-picker/components/new-color-swatches/new-color-swatches-scss.js.map +1 -1
  1018. package/dist/es/ui-components/color-picker/new-color-picker/components/simple-color-picker/simple-color-picker-scss.js +4 -4
  1019. package/dist/es/ui-components/color-picker/new-color-picker/components/simple-color-picker/simple-color-picker-scss.js.map +1 -1
  1020. package/dist/es/ui-components/color-picker/new-color-picker/components/single-color-swatch/single-color-swatch-scss.js +4 -4
  1021. package/dist/es/ui-components/color-picker/new-color-picker/components/single-color-swatch/single-color-swatch-scss.js.map +1 -1
  1022. package/dist/es/ui-components/color-picker/new-color-picker/new-color-picker-scss.js +3 -3
  1023. package/dist/es/ui-components/color-picker/new-color-picker/new-color-picker-scss.js.map +1 -1
  1024. package/dist/es/ui-components/input-with-slider/input-with-slider-scss.js +3 -3
  1025. package/dist/es/ui-components/input-with-slider/input-with-slider-scss.js.map +1 -1
  1026. package/dist/es/ui-components/layout-background-loader/layout-background-loader-scss.js +5 -5
  1027. package/dist/es/ui-components/layout-background-loader/layout-background-loader-scss.js.map +1 -1
  1028. package/dist/es/ui-components/modal-layout/floating-layout/floating-desktop-layout-scss.js +3 -3
  1029. package/dist/es/ui-components/modal-layout/floating-layout/floating-desktop-layout-scss.js.map +1 -1
  1030. package/dist/es/ui-components/modal-layout/fullscreen-mobile-layout/fullscreen-mobile-layout-scss.js +6 -6
  1031. package/dist/es/ui-components/modal-layout/fullscreen-mobile-layout/fullscreen-mobile-layout-scss.js.map +1 -1
  1032. package/dist/es/ui-components/panel/panel-scss.js +4 -4
  1033. package/dist/es/ui-components/panel/panel-scss.js.map +1 -1
  1034. package/dist/es/ui-components/panel-header/panel-header-scss.js +3 -3
  1035. package/dist/es/ui-components/panel-header/panel-header-scss.js.map +1 -1
  1036. package/dist/es/ui-components/settings-panel-discard-modal/settings-panel-discard-modal-scss.js +3 -3
  1037. package/dist/es/ui-components/settings-panel-discard-modal/settings-panel-discard-modal-scss.js.map +1 -1
  1038. package/dist/es/ui-components/statics/styles/generic-error-scss.js +3 -3
  1039. package/dist/es/ui-components/statics/styles/generic-error-scss.js.map +1 -1
  1040. package/dist/es/ui-components/statics/styles/loaders-scss.js +10 -10
  1041. package/dist/es/ui-components/statics/styles/loaders-scss.js.map +1 -1
  1042. package/dist/es/ui-components/statics/styles/media-item-error-msg-scss.js +5 -5
  1043. package/dist/es/ui-components/statics/styles/media-item-error-msg-scss.js.map +1 -1
  1044. package/dist/es/ui-components/statics/styles/slider-scss.js +9 -9
  1045. package/dist/es/ui-components/statics/styles/slider-scss.js.map +1 -1
  1046. package/dist/es/ui-components/thumbnail-picker/thumbnail-picker-scss.js +3 -3
  1047. package/dist/es/ui-components/thumbnail-picker/thumbnail-picker-scss.js.map +1 -1
  1048. package/dist/es/ui-components/wixel-assistant/assistant-timeline-scss.js +18 -18
  1049. package/dist/es/ui-components/wixel-assistant/assistant-timeline-scss.js.map +1 -1
  1050. package/dist/es/wix-react-player/players/youtube.js +1 -0
  1051. package/dist/es/wix-react-player/players/youtube.js.map +2 -2
  1052. package/dist/es/wix-rich-content-common/statics/styles/fonts-scss.js +3 -3
  1053. package/dist/es/wix-rich-content-common/statics/styles/fonts-scss.js.map +1 -1
  1054. package/dist/es/wix-rich-content-common/statics/styles/general-scss.js +13 -13
  1055. package/dist/es/wix-rich-content-common/statics/styles/general-scss.js.map +1 -1
  1056. package/dist/src/_shared/editor-base-url/editor-base-url-context.d.ts.map +1 -1
  1057. package/dist/src/_shared/font-weight.d.ts +3 -0
  1058. package/dist/src/_shared/font-weight.d.ts.map +1 -0
  1059. package/dist/src/_shared/get-all-plugin-testkits.d.ts +1 -0
  1060. package/dist/src/_shared/get-all-plugin-testkits.d.ts.map +1 -1
  1061. package/dist/src/_shared/get-common-marker-style.d.ts +3 -0
  1062. package/dist/src/_shared/get-common-marker-style.d.ts.map +1 -0
  1063. package/dist/src/_shared/get-common-marker-style.spec.d.ts +2 -0
  1064. package/dist/src/_shared/get-common-marker-style.spec.d.ts.map +1 -0
  1065. package/dist/src/_shared/get-decorations-marker-style.d.ts +4 -0
  1066. package/dist/src/_shared/get-decorations-marker-style.d.ts.map +1 -0
  1067. package/dist/src/_shared/get-decorations-marker-style.spec.d.ts +2 -0
  1068. package/dist/src/_shared/get-decorations-marker-style.spec.d.ts.map +1 -0
  1069. package/dist/src/_shared/get-list-marker-style.d.ts +3 -0
  1070. package/dist/src/_shared/get-list-marker-style.d.ts.map +1 -0
  1071. package/dist/src/_shared/get-list-marker-style.spec.d.ts +2 -0
  1072. package/dist/src/_shared/get-list-marker-style.spec.d.ts.map +1 -0
  1073. package/dist/src/_shared/plugin-toolbar/create-settings-button.d.ts +2 -2
  1074. package/dist/src/_shared/plugin-toolbar/create-settings-button.d.ts.map +1 -1
  1075. package/dist/src/_shared/pm-node-types.d.ts +2 -1
  1076. package/dist/src/_shared/pm-node-types.d.ts.map +1 -1
  1077. package/dist/src/_shared/site-pages/site-pages-fetch-context/use-fetch-site-pages.d.ts +2 -0
  1078. package/dist/src/_shared/site-pages/site-pages-fetch-context/use-fetch-site-pages.d.ts.map +1 -1
  1079. package/dist/src/_shared/site-pages/site-pages-fetch-context/use-fetch-site-pages.spec.d.ts +2 -0
  1080. package/dist/src/_shared/site-pages/site-pages-fetch-context/use-fetch-site-pages.spec.d.ts.map +1 -0
  1081. package/dist/src/_shared/site-pages/site-pages-fetch-context.d.ts.map +1 -1
  1082. package/dist/src/_shared/site-pages/types.d.ts +24 -2
  1083. package/dist/src/_shared/site-pages/types.d.ts.map +1 -1
  1084. package/dist/src/index.d.ts +3 -2
  1085. package/dist/src/index.d.ts.map +1 -1
  1086. package/dist/src/internal.d.ts +1 -1
  1087. package/dist/src/internal.d.ts.map +1 -1
  1088. package/dist/src/legacy.d.ts +1 -1
  1089. package/dist/src/legacy.d.ts.map +1 -1
  1090. package/dist/src/plugin-block-drag-handle/box-select.d.ts +1 -0
  1091. package/dist/src/plugin-block-drag-handle/box-select.d.ts.map +1 -1
  1092. package/dist/src/plugin-block-drag-handle/dom.d.ts +1 -0
  1093. package/dist/src/plugin-block-drag-handle/dom.d.ts.map +1 -1
  1094. package/dist/src/plugin-block-drag-handle/plugin.d.ts.map +1 -1
  1095. package/dist/src/plugin-card/card-node-view.d.ts +3 -1
  1096. package/dist/src/plugin-card/card-node-view.d.ts.map +1 -1
  1097. package/dist/src/plugin-card/card-node-view.spec.d.ts +3 -0
  1098. package/dist/src/plugin-card/card-node-view.spec.d.ts.map +1 -0
  1099. package/dist/src/plugin-card/extension.d.ts.map +1 -1
  1100. package/dist/src/plugin-card/index.d.ts +1 -1
  1101. package/dist/src/plugin-card/index.d.ts.map +1 -1
  1102. package/dist/src/plugin-card/page-gap.d.ts +3 -0
  1103. package/dist/src/plugin-card/page-gap.d.ts.map +1 -1
  1104. package/dist/src/plugin-card/types-next.d.ts +12 -0
  1105. package/dist/src/plugin-card/types-next.d.ts.map +1 -1
  1106. package/dist/src/plugin-card/types.d.ts +12 -0
  1107. package/dist/src/plugin-card/types.d.ts.map +1 -1
  1108. package/dist/src/plugin-link/editor.d.ts.map +1 -1
  1109. package/dist/src/plugin-paywall/plugin-paywall.d.ts +27 -0
  1110. package/dist/src/plugin-paywall/plugin-paywall.d.ts.map +1 -1
  1111. package/dist/src/plugin-spoiler/get-text-buttons.d.ts.map +1 -1
  1112. package/dist/src/plugin-text-color/sketch/text-highlight-button.d.ts.map +1 -1
  1113. package/dist/src/plugin-video/viewer/video.d.ts.map +1 -1
  1114. package/dist/src/ricos-common-plugins/bold/extension.d.ts.map +1 -1
  1115. package/dist/src/ricos-common-plugins/decoration-plugins/list-item-sizing.d.ts +9 -7
  1116. package/dist/src/ricos-common-plugins/decoration-plugins/list-item-sizing.d.ts.map +1 -1
  1117. package/dist/src/ricos-common-plugins/font-size/block-font-size-plugin.d.ts.map +1 -1
  1118. package/dist/src/ricos-common-plugins/layout/paywall-toolbar-button.d.ts +6 -0
  1119. package/dist/src/ricos-common-plugins/layout/paywall-toolbar-button.d.ts.map +1 -0
  1120. package/dist/src/ricos-common-plugins/layout/paywall-toolbar-button.spec.d.ts +2 -0
  1121. package/dist/src/ricos-common-plugins/layout/paywall-toolbar-button.spec.d.ts.map +1 -0
  1122. package/dist/src/ricos-common-plugins/layout/plugin-layout.d.ts.map +1 -1
  1123. package/dist/src/ricos-common-plugins/list-item/extension.d.ts.map +1 -1
  1124. package/dist/src/ricos-common-plugins/list-item/list-converters.d.ts.map +1 -1
  1125. package/dist/src/ricos-common-plugins/list-item/list-marker-selection.d.ts +25 -0
  1126. package/dist/src/ricos-common-plugins/list-item/list-marker-selection.d.ts.map +1 -0
  1127. package/dist/src/ricos-common-plugins/list-item/list-marker-selection.spec.d.ts +2 -0
  1128. package/dist/src/ricos-common-plugins/list-item/list-marker-selection.spec.d.ts.map +1 -0
  1129. package/dist/src/ricos-common-plugins/strikethrough/strikethrough.testkit.d.ts +1 -0
  1130. package/dist/src/ricos-common-plugins/strikethrough/strikethrough.testkit.d.ts.map +1 -1
  1131. package/dist/src/ricos-common-plugins/testkit.d.ts +1 -0
  1132. package/dist/src/ricos-common-plugins/testkit.d.ts.map +1 -1
  1133. package/dist/src/ricos-schema/next-schema/version.d.ts +1 -1
  1134. package/dist/src/ricos-styles/tests/test-cases.d.ts +3 -3
  1135. package/dist/src/ricos-types/next/ricos-types.d.ts +1 -1
  1136. package/dist/src/ricos-types/ricos-types.d.ts +1 -1
  1137. package/dist/src/ricos-viewer-next/ContentViewer/rericos/renderers/lists/list-item.d.ts.map +1 -1
  1138. package/dist/src/testkit.d.ts +2 -0
  1139. package/dist/src/testkit.d.ts.map +1 -1
  1140. package/dist/src/tiptap/core/editor.d.ts.map +1 -1
  1141. package/dist/src/toolbars-v3/components/MaxWidthCalculationWrapper/max-width-calculation-wrapper.d.ts.map +1 -1
  1142. package/dist/src/toolbars-v3/components/MaxWidthCalculationWrapper/max-width-calculation-wrapper.spec.d.ts +2 -0
  1143. package/dist/src/toolbars-v3/components/MaxWidthCalculationWrapper/max-width-calculation-wrapper.spec.d.ts.map +1 -0
  1144. package/dist/src/toolbars-v3/ricos-toolbars/formatting/use-is-visible.d.ts.map +1 -1
  1145. package/dist/src/wix-react-player/players/youtube.d.ts +1 -0
  1146. package/dist/src/wix-react-player/players/youtube.d.ts.map +1 -1
  1147. package/generated/public.d.ts +54 -1
  1148. package/package.json +6 -6
  1149. package/dist/cjs/_shared/site-pages/serverless-types/serverless-types.js.map +0 -7
  1150. package/dist/es/_shared/site-pages/serverless-types/serverless-types.js +0 -1
  1151. package/dist/es/_shared/site-pages/serverless-types/serverless-types.js.map +0 -7
  1152. package/dist/src/_shared/site-pages/serverless-types/serverless-types.d.ts +0 -27
  1153. package/dist/src/_shared/site-pages/serverless-types/serverless-types.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/plugin-video/viewer/video.tsx"],
4
- "sourcesContent": ["import React, { useEffect, useRef, useState } from 'react';\n\nimport type { VideoData } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\nimport { isCustomUpload } from './../../_shared/is-custom-upload.js';\nimport { isDefined, isSSR } from './../../wix-rich-content-common/index.js';\n\nimport type { ReactPlayerWrapperProps } from '../react-player-wrapper.js';\nimport { ReactPlayerWrapper } from '../react-player-wrapper.js';\nimport styles from '../statics/styles/video-viewer-scss.js';\nimport type { VideoPluginEditorConfig } from '../types.js';\n\ntype Props = {\n config: VideoPluginEditorConfig;\n componentData: VideoData;\n nodeId: string;\n isLight: boolean;\n onReady?: ReactPlayerWrapperProps['onReady'];\n isLoaded?: boolean;\n seoMode?: boolean;\n jsdomMode?: boolean;\n muted?: boolean;\n onDuration?: (duration: number) => void;\n disabled?: boolean;\n onUpdateProcessing?: (processing: boolean) => void;\n};\n\ntype UrlState =\n | {\n type: 'INITIAL' | 'LOADING';\n loadedUrl: undefined;\n }\n | {\n type: 'ERROR';\n error: string;\n retryCount: number;\n loadedUrl: string;\n }\n | {\n type: 'PROCESSING';\n retryCount: number;\n loadedUrl: string;\n }\n | {\n type: 'READY';\n loadedUrl: string;\n };\n\ntype State = {\n videoUrl: UrlState;\n thumbnailUrl: UrlState;\n};\n\nexport const Video: React.FC<Props> = ({\n config,\n componentData,\n nodeId,\n isLight,\n onReady,\n isLoaded,\n seoMode,\n jsdomMode,\n muted,\n onDuration,\n disabled,\n onUpdateProcessing,\n}) => {\n const retryTimeoutRef = useRef<NodeJS.Timeout | null>(null);\n const [playerKey, setPlayerKey] = useState('');\n\n const [state, setState] = useState<State>(() => {\n const { src } = componentData.video || {};\n\n const getInitialVideoUrlState = (): UrlState => {\n if (src?.url) {\n const normalizedUrl = normalizeVideoUrl(src.url);\n return normalizedUrl\n ? { type: 'READY', loadedUrl: normalizedUrl }\n : { type: 'INITIAL', loadedUrl: undefined };\n }\n if (src?.id && config.getVideoUrl) {\n try {\n const url = config.getVideoUrl({ pathname: src.id });\n if (typeof url === 'string') {\n const normalizedUrl = normalizeVideoUrl(url);\n return normalizedUrl\n ? { type: 'READY', loadedUrl: normalizedUrl }\n : { type: 'INITIAL', loadedUrl: undefined };\n }\n } catch {}\n }\n return { type: 'INITIAL', loadedUrl: undefined };\n };\n\n const getInitialThumbnailUrlState = (): UrlState => {\n const thumbnailSrc = componentData?.thumbnail?.src?.url;\n return thumbnailSrc\n ? { type: 'READY', loadedUrl: thumbnailSrc }\n : { type: 'INITIAL', loadedUrl: undefined };\n };\n\n return {\n videoUrl: getInitialVideoUrlState(),\n thumbnailUrl: getInitialThumbnailUrlState(),\n };\n });\n\n useEffect(() => {\n return () => {\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n }\n };\n }, []);\n\n useEffect(() => {\n setPlayerKey('mounted'); //remounts reactPlayer after ssr. Fixes bug where internal player id changes in client\n }, []);\n\n const scheduleNextRetry = (currentAttempt: number, _videoUrl: string) => {\n const maxRetries = 20;\n const nextAttempt = currentAttempt + 1;\n\n if (nextAttempt > maxRetries) {\n setState(prev => {\n if (prev.videoUrl.type === 'PROCESSING') {\n onUpdateProcessing?.(false);\n return {\n ...prev,\n videoUrl: {\n type: 'ERROR',\n error: 'Max retries exceeded',\n retryCount: nextAttempt,\n loadedUrl: prev.videoUrl.loadedUrl,\n },\n };\n }\n return prev;\n });\n return;\n }\n\n setState(prev => {\n if (prev.videoUrl.type === 'PROCESSING') {\n return {\n ...prev,\n videoUrl: {\n ...prev.videoUrl,\n retryCount: nextAttempt,\n },\n };\n }\n return prev;\n });\n\n const delay = Math.min(1000 * Math.pow(2, nextAttempt - 1), 30000);\n\n retryTimeoutRef.current = setTimeout(() => {\n // Change the key to force player remount & refetch the video\n setPlayerKey(`retry-${nextAttempt}-${Date.now()}`);\n }, delay);\n };\n\n const retryVideoUrl = () => {\n setState(prevState => {\n // Don't retry if already processing, or if we don't have a loaded URL\n if (\n prevState.videoUrl.type === 'PROCESSING' ||\n prevState.videoUrl.type === 'INITIAL' ||\n prevState.videoUrl.type === 'LOADING'\n ) {\n return prevState;\n }\n\n const loadedUrl = prevState.videoUrl.loadedUrl!;\n\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n retryTimeoutRef.current = null;\n }\n\n onUpdateProcessing?.(true);\n scheduleNextRetry(0, loadedUrl);\n\n return {\n ...prevState,\n videoUrl: {\n type: 'PROCESSING' as const,\n retryCount: 1,\n loadedUrl,\n },\n };\n });\n };\n\n useEffect(() => {\n const { src } = componentData.video || {};\n\n // Prevent loading when already in loading or processing state\n if (state.videoUrl.type === 'LOADING' || state.videoUrl.type === 'PROCESSING') {\n return;\n }\n\n if (src?.url) {\n const normalizedUrl = normalizeVideoUrl(src.url);\n const currentUrl = state.videoUrl.loadedUrl;\n if (normalizedUrl && normalizedUrl !== currentUrl) {\n setState(prev => ({\n ...prev,\n videoUrl: { type: 'READY', loadedUrl: normalizedUrl },\n }));\n }\n return;\n }\n\n if (src?.id && config.getVideoUrl) {\n const loadVideo = async () => {\n if (!src.id) {\n return;\n }\n\n setState(prev => ({\n ...prev,\n videoUrl: { type: 'LOADING', loadedUrl: undefined },\n }));\n\n try {\n const url = await config.getVideoUrl!({ pathname: src.id });\n if (url) {\n const normalizedUrl = normalizeVideoUrl(url);\n if (normalizedUrl) {\n setState(prev => {\n if (prev.videoUrl.type === 'LOADING') {\n return {\n ...prev,\n videoUrl: { type: 'READY', loadedUrl: normalizedUrl },\n };\n }\n return prev;\n });\n return;\n }\n }\n } catch {\n retryVideoUrl();\n }\n };\n\n loadVideo();\n }\n }, [componentData.video?.src, config.getVideoUrl]);\n\n useEffect(() => {\n const { src } = componentData.thumbnail || {};\n const thumbnailId = src?.id;\n const thumbnailSrc = src?.url;\n const currentThumbnailUrl = state.thumbnailUrl.loadedUrl;\n\n if (thumbnailSrc && thumbnailSrc !== currentThumbnailUrl) {\n setState(prev => ({\n ...prev,\n thumbnailUrl: { type: 'READY', loadedUrl: thumbnailSrc },\n }));\n return;\n }\n // @ts-ignore TODO: (plugins-no-any) remove getThumbnailUrl when we make sure it's not used anymore\n if (thumbnailId && config.getThumbnailUrl && !currentThumbnailUrl) {\n const loadThumbnail = async () => {\n setState(prev => ({\n ...prev,\n thumbnailUrl: { type: 'LOADING', loadedUrl: undefined },\n }));\n\n try {\n // @ts-ignore TODO: (plugins-no-any) remove getThumbnailUrl when we make sure it's not used anymore\n const url = await config.getThumbnailUrl!({ pathname: thumbnailId });\n if (url) {\n setState(prev => ({\n ...prev,\n thumbnailUrl: { type: 'READY', loadedUrl: url },\n }));\n }\n } catch {\n // Thumbnail loading failed, continue without thumbnail\n setState(prev => ({\n ...prev,\n thumbnailUrl: {\n type: 'ERROR',\n error: 'Failed to load thumbnail',\n retryCount: 0,\n loadedUrl: '',\n },\n }));\n }\n };\n\n loadThumbnail();\n }\n // @ts-ignore TODO: (plugins-no-any) remove getThumbnailUrl when we make sure it's not used anymore\n }, [componentData.thumbnail?.src, config.getThumbnailUrl]);\n\n const onReactPlayerReady: ReactPlayerWrapperProps['onReady'] = player => {\n setState(prev => {\n if (prev.videoUrl.type === 'PROCESSING') {\n onUpdateProcessing?.(false);\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n retryTimeoutRef.current = null;\n }\n return {\n ...prev,\n videoUrl: {\n type: 'READY',\n loadedUrl: prev.videoUrl.loadedUrl,\n },\n };\n }\n\n if (prev.videoUrl.type === 'ERROR') {\n onUpdateProcessing?.(false);\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n retryTimeoutRef.current = null;\n }\n return {\n ...prev,\n videoUrl: {\n type: 'READY',\n loadedUrl: prev.videoUrl.loadedUrl,\n },\n };\n }\n\n const currentVideoUrl = prev.videoUrl.loadedUrl;\n if (!currentVideoUrl) {\n return prev;\n }\n\n return {\n ...prev,\n videoUrl: {\n type: 'READY',\n loadedUrl: currentVideoUrl,\n },\n };\n });\n\n if (onReady) {\n onReady(player);\n return;\n }\n };\n\n const onVideoError = () => {\n const { src } = componentData.video || {};\n const isCustomVideo = !!src?.id || isCustomUpload(src?.url);\n\n if (!isCustomVideo || !src?.id) {\n return;\n }\n\n if (state.videoUrl.type === 'READY') {\n return retryVideoUrl();\n }\n\n if (state.videoUrl.type === 'PROCESSING') {\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n retryTimeoutRef.current = null;\n }\n\n return scheduleNextRetry(state.videoUrl.retryCount, state.videoUrl.loadedUrl);\n }\n };\n\n const handleContextMenu = (e: React.MouseEvent) =>\n componentData.disableDownload && e.preventDefault();\n\n const getDownloadProps = () => {\n if (\n (isDefined(componentData?.disableDownload) && componentData.disableDownload) ||\n (isDefined(config?.disableDownloadDefault) && config.disableDownloadDefault)\n ) {\n return {\n config: {\n file: {\n attributes: {\n controlsList: 'nodownload',\n },\n },\n },\n };\n }\n\n return {\n config: {},\n };\n };\n\n const getLightProps = () => {\n if (!isLight) {\n return {\n isLight: false,\n } as const;\n }\n\n return {\n isLight: true,\n thumbnail: state.thumbnailUrl.loadedUrl,\n } as const;\n };\n\n const videoUrl = state.videoUrl.loadedUrl;\n if (!videoUrl) {\n return null;\n }\n\n const isCustomVideo = !!componentData.video?.src?.id;\n const shouldRenderSeoLink = (isSSR() || jsdomMode) && seoMode;\n const { autoPlay = false, playInLoop = false, showControls = true } = componentData.options || {};\n const poster = state.videoUrl.type === 'PROCESSING' ? state.thumbnailUrl.loadedUrl : undefined;\n\n if (shouldRenderSeoLink) {\n return (\n <a data-hook=\"video-ssr-viewer\" href={videoUrl} target=\"_blank\" rel=\"noopener noreferrer\">\n {videoUrl}\n </a>\n );\n }\n\n return (\n <ReactPlayerWrapper\n className={styles.video_player}\n onContextMenu={handleContextMenu}\n controls={isLoaded !== false && showControls}\n url={videoUrl}\n onReady={onReactPlayerReady}\n onError={onVideoError}\n disabled={disabled}\n width=\"100%\"\n height=\"100%\"\n key={playerKey}\n onDuration={onDuration}\n onProgress={progress => {\n // @ts-ignore TODO: (plugins-no-any) remove onprogress when we make sure it's not used anymore\n config.onProgress?.({ ...progress, id: nodeId });\n }}\n // @ts-ignore TODO: (plugins-no-any) remove progressInterval when we make sure it's not used anymore\n progressInterval={config.progressInterval || 1000}\n muted={muted || autoPlay}\n isLoaded={\n isLoaded ||\n state.videoUrl.type === 'READY' ||\n state.videoUrl.type === 'PROCESSING' ||\n state.videoUrl.type === 'ERROR'\n }\n autoPlay={autoPlay}\n loop={playInLoop}\n isCustomVideo={isCustomVideo}\n poster={poster}\n {...getLightProps()}\n {...getDownloadProps()}\n />\n );\n};\n\nconst normalizeVideoUrl = (url: string | undefined): string | undefined =>\n url ? (url.toLowerCase().indexOf('vimeo') === 0 ? 'https://' + url : url) : undefined; //vimeo player needs urls prefixed with http[s]\n"],
5
- "mappings": "AAAA,OAAO,SAAS,WAAW,QAAQ,gBAAgB;AAGnD,SAAS,sBAAsB;AAC/B,SAAS,WAAW,aAAa;AAGjC,SAAS,0BAA0B;AACnC,OAAO,YAAY;AA4CZ,MAAM,QAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,kBAAkB,OAA8B,IAAI;AAC1D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,EAAE;AAE7C,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAgB,MAAM;AAC9C,UAAM,EAAE,IAAI,IAAI,cAAc,SAAS,CAAC;AAExC,UAAM,0BAA0B,MAAgB;AAC9C,UAAI,KAAK,KAAK;AACZ,cAAM,gBAAgB,kBAAkB,IAAI,GAAG;AAC/C,eAAO,gBACH,EAAE,MAAM,SAAS,WAAW,cAAc,IAC1C,EAAE,MAAM,WAAW,WAAW,OAAU;AAAA,MAC9C;AACA,UAAI,KAAK,MAAM,OAAO,aAAa;AACjC,YAAI;AACF,gBAAM,MAAM,OAAO,YAAY,EAAE,UAAU,IAAI,GAAG,CAAC;AACnD,cAAI,OAAO,QAAQ,UAAU;AAC3B,kBAAM,gBAAgB,kBAAkB,GAAG;AAC3C,mBAAO,gBACH,EAAE,MAAM,SAAS,WAAW,cAAc,IAC1C,EAAE,MAAM,WAAW,WAAW,OAAU;AAAA,UAC9C;AAAA,QACF,QAAQ;AAAA,QAAC;AAAA,MACX;AACA,aAAO,EAAE,MAAM,WAAW,WAAW,OAAU;AAAA,IACjD;AAEA,UAAM,8BAA8B,MAAgB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,aAAa,SAAS;AAAA,MAChC,KAAK;AAAA,MACL,SAAS;AAAA,MACT,SAAS;AAAA,MACT;AAAA,MACA,OAAM;AAAA,MACN,QAAO;AAAA,MACP,KAAK;AAAA,MACL;AAAA,MACA,YAAY,cAAY;AAEtB,eAAO,aAAa,EAAE,GAAG,UAAU,IAAI,OAAO,CAAC;AAAA,MACjD;AAAA,MAEA,kBAAkB,OAAO,oBAAoB;AAAA,MAC7C,OAAO,SAAS;AAAA,MAChB,UACE,YACA,MAAM,SAAS,SAAS,WACxB,MAAM,SAAS,SAAS,gBACxB,MAAM,SAAS,SAAS;AAAA,MAE1B;AAAA,MACA,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACC,GAAG,cAAc;AAAA,MACjB,GAAG,iBAAiB;AAAA;AAAA,EACvB;AAEJ;AAEA,MAAM,oBAAoB,CAAC,QACzB,MAAO,IAAI,YAAY,EAAE,QAAQ,OAAO,MAAM,IAAI,aAAa,MAAM,MAAO;",
4
+ "sourcesContent": ["import React, { useEffect, useRef, useState } from 'react';\n\nimport type { VideoData } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\nimport { isCustomUpload } from './../../_shared/is-custom-upload.js';\nimport { MATCH_URL as MATCH_YOUTUBE_URL } from './../../wix-react-player/players/youtube.js';\nimport { isDefined, isSSR } from './../../wix-rich-content-common/index.js';\n\nimport type { ReactPlayerWrapperProps } from '../react-player-wrapper.js';\nimport { ReactPlayerWrapper } from '../react-player-wrapper.js';\nimport styles from '../statics/styles/video-viewer-scss.js';\nimport type { VideoPluginEditorConfig } from '../types.js';\n\ntype Props = {\n config: VideoPluginEditorConfig;\n componentData: VideoData;\n nodeId: string;\n isLight: boolean;\n onReady?: ReactPlayerWrapperProps['onReady'];\n isLoaded?: boolean;\n seoMode?: boolean;\n jsdomMode?: boolean;\n muted?: boolean;\n onDuration?: (duration: number) => void;\n disabled?: boolean;\n onUpdateProcessing?: (processing: boolean) => void;\n};\n\ntype UrlState =\n | {\n type: 'INITIAL' | 'LOADING';\n loadedUrl: undefined;\n }\n | {\n type: 'ERROR';\n error: string;\n retryCount: number;\n loadedUrl: string;\n }\n | {\n type: 'PROCESSING';\n retryCount: number;\n loadedUrl: string;\n }\n | {\n type: 'READY';\n loadedUrl: string;\n };\n\ntype State = {\n videoUrl: UrlState;\n thumbnailUrl: UrlState;\n};\n\nexport const Video: React.FC<Props> = ({\n config,\n componentData,\n nodeId,\n isLight,\n onReady,\n isLoaded,\n seoMode,\n jsdomMode,\n muted,\n onDuration,\n disabled,\n onUpdateProcessing,\n}) => {\n const retryTimeoutRef = useRef<NodeJS.Timeout | null>(null);\n const [playerKey, setPlayerKey] = useState('');\n\n const [state, setState] = useState<State>(() => {\n const { src } = componentData.video || {};\n\n const getInitialVideoUrlState = (): UrlState => {\n if (src?.url) {\n const normalizedUrl = normalizeVideoUrl(src.url);\n return normalizedUrl\n ? { type: 'READY', loadedUrl: normalizedUrl }\n : { type: 'INITIAL', loadedUrl: undefined };\n }\n if (src?.id && config.getVideoUrl) {\n try {\n const url = config.getVideoUrl({ pathname: src.id });\n if (typeof url === 'string') {\n const normalizedUrl = normalizeVideoUrl(url);\n return normalizedUrl\n ? { type: 'READY', loadedUrl: normalizedUrl }\n : { type: 'INITIAL', loadedUrl: undefined };\n }\n } catch {}\n }\n return { type: 'INITIAL', loadedUrl: undefined };\n };\n\n const getInitialThumbnailUrlState = (): UrlState => {\n const thumbnailSrc = componentData?.thumbnail?.src?.url;\n return thumbnailSrc\n ? { type: 'READY', loadedUrl: thumbnailSrc }\n : { type: 'INITIAL', loadedUrl: undefined };\n };\n\n return {\n videoUrl: getInitialVideoUrlState(),\n thumbnailUrl: getInitialThumbnailUrlState(),\n };\n });\n\n useEffect(() => {\n return () => {\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n }\n };\n }, []);\n\n useEffect(() => {\n setPlayerKey('mounted'); //remounts reactPlayer after ssr. Fixes bug where internal player id changes in client\n }, []);\n\n const scheduleNextRetry = (currentAttempt: number, _videoUrl: string) => {\n const maxRetries = 20;\n const nextAttempt = currentAttempt + 1;\n\n if (nextAttempt > maxRetries) {\n setState(prev => {\n if (prev.videoUrl.type === 'PROCESSING') {\n onUpdateProcessing?.(false);\n return {\n ...prev,\n videoUrl: {\n type: 'ERROR',\n error: 'Max retries exceeded',\n retryCount: nextAttempt,\n loadedUrl: prev.videoUrl.loadedUrl,\n },\n };\n }\n return prev;\n });\n return;\n }\n\n setState(prev => {\n if (prev.videoUrl.type === 'PROCESSING') {\n return {\n ...prev,\n videoUrl: {\n ...prev.videoUrl,\n retryCount: nextAttempt,\n },\n };\n }\n return prev;\n });\n\n const delay = Math.min(1000 * Math.pow(2, nextAttempt - 1), 30000);\n\n retryTimeoutRef.current = setTimeout(() => {\n // Change the key to force player remount & refetch the video\n setPlayerKey(`retry-${nextAttempt}-${Date.now()}`);\n }, delay);\n };\n\n const retryVideoUrl = () => {\n setState(prevState => {\n // Don't retry if already processing, or if we don't have a loaded URL\n if (\n prevState.videoUrl.type === 'PROCESSING' ||\n prevState.videoUrl.type === 'INITIAL' ||\n prevState.videoUrl.type === 'LOADING'\n ) {\n return prevState;\n }\n\n const loadedUrl = prevState.videoUrl.loadedUrl!;\n\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n retryTimeoutRef.current = null;\n }\n\n onUpdateProcessing?.(true);\n scheduleNextRetry(0, loadedUrl);\n\n return {\n ...prevState,\n videoUrl: {\n type: 'PROCESSING' as const,\n retryCount: 1,\n loadedUrl,\n },\n };\n });\n };\n\n useEffect(() => {\n const { src } = componentData.video || {};\n\n // Prevent loading when already in loading or processing state\n if (state.videoUrl.type === 'LOADING' || state.videoUrl.type === 'PROCESSING') {\n return;\n }\n\n if (src?.url) {\n const normalizedUrl = normalizeVideoUrl(src.url);\n const currentUrl = state.videoUrl.loadedUrl;\n if (normalizedUrl && normalizedUrl !== currentUrl) {\n setState(prev => ({\n ...prev,\n videoUrl: { type: 'READY', loadedUrl: normalizedUrl },\n }));\n }\n return;\n }\n\n if (src?.id && config.getVideoUrl) {\n const loadVideo = async () => {\n if (!src.id) {\n return;\n }\n\n setState(prev => ({\n ...prev,\n videoUrl: { type: 'LOADING', loadedUrl: undefined },\n }));\n\n try {\n const url = await config.getVideoUrl!({ pathname: src.id });\n if (url) {\n const normalizedUrl = normalizeVideoUrl(url);\n if (normalizedUrl) {\n setState(prev => {\n if (prev.videoUrl.type === 'LOADING') {\n return {\n ...prev,\n videoUrl: { type: 'READY', loadedUrl: normalizedUrl },\n };\n }\n return prev;\n });\n return;\n }\n }\n } catch {\n retryVideoUrl();\n }\n };\n\n loadVideo();\n }\n }, [componentData.video?.src, config.getVideoUrl]);\n\n useEffect(() => {\n const { src } = componentData.thumbnail || {};\n const thumbnailId = src?.id;\n const thumbnailSrc = src?.url;\n const currentThumbnailUrl = state.thumbnailUrl.loadedUrl;\n\n if (thumbnailSrc && thumbnailSrc !== currentThumbnailUrl) {\n setState(prev => ({\n ...prev,\n thumbnailUrl: { type: 'READY', loadedUrl: thumbnailSrc },\n }));\n return;\n }\n // @ts-ignore TODO: (plugins-no-any) remove getThumbnailUrl when we make sure it's not used anymore\n if (thumbnailId && config.getThumbnailUrl && !currentThumbnailUrl) {\n const loadThumbnail = async () => {\n setState(prev => ({\n ...prev,\n thumbnailUrl: { type: 'LOADING', loadedUrl: undefined },\n }));\n\n try {\n // @ts-ignore TODO: (plugins-no-any) remove getThumbnailUrl when we make sure it's not used anymore\n const url = await config.getThumbnailUrl!({ pathname: thumbnailId });\n if (url) {\n setState(prev => ({\n ...prev,\n thumbnailUrl: { type: 'READY', loadedUrl: url },\n }));\n }\n } catch {\n // Thumbnail loading failed, continue without thumbnail\n setState(prev => ({\n ...prev,\n thumbnailUrl: {\n type: 'ERROR',\n error: 'Failed to load thumbnail',\n retryCount: 0,\n loadedUrl: '',\n },\n }));\n }\n };\n\n loadThumbnail();\n }\n // @ts-ignore TODO: (plugins-no-any) remove getThumbnailUrl when we make sure it's not used anymore\n }, [componentData.thumbnail?.src, config.getThumbnailUrl]);\n\n const onReactPlayerReady: ReactPlayerWrapperProps['onReady'] = player => {\n setState(prev => {\n if (prev.videoUrl.type === 'PROCESSING') {\n onUpdateProcessing?.(false);\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n retryTimeoutRef.current = null;\n }\n return {\n ...prev,\n videoUrl: {\n type: 'READY',\n loadedUrl: prev.videoUrl.loadedUrl,\n },\n };\n }\n\n if (prev.videoUrl.type === 'ERROR') {\n onUpdateProcessing?.(false);\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n retryTimeoutRef.current = null;\n }\n return {\n ...prev,\n videoUrl: {\n type: 'READY',\n loadedUrl: prev.videoUrl.loadedUrl,\n },\n };\n }\n\n const currentVideoUrl = prev.videoUrl.loadedUrl;\n if (!currentVideoUrl) {\n return prev;\n }\n\n return {\n ...prev,\n videoUrl: {\n type: 'READY',\n loadedUrl: currentVideoUrl,\n },\n };\n });\n\n if (onReady) {\n onReady(player);\n return;\n }\n };\n\n const onVideoError = () => {\n const { src } = componentData.video || {};\n const isCustomVideo = !!src?.id || isCustomUpload(src?.url);\n\n if (!isCustomVideo || !src?.id) {\n return;\n }\n\n if (state.videoUrl.type === 'READY') {\n return retryVideoUrl();\n }\n\n if (state.videoUrl.type === 'PROCESSING') {\n if (retryTimeoutRef.current) {\n clearTimeout(retryTimeoutRef.current);\n retryTimeoutRef.current = null;\n }\n\n return scheduleNextRetry(state.videoUrl.retryCount, state.videoUrl.loadedUrl);\n }\n };\n\n const handleContextMenu = (e: React.MouseEvent) =>\n componentData.disableDownload && e.preventDefault();\n\n const getDownloadProps = () => {\n if (\n (isDefined(componentData?.disableDownload) && componentData.disableDownload) ||\n (isDefined(config?.disableDownloadDefault) && config.disableDownloadDefault)\n ) {\n return {\n config: {\n file: {\n attributes: {\n controlsList: 'nodownload',\n },\n },\n },\n };\n }\n\n return {\n config: {},\n };\n };\n\n const getLightProps = () => {\n if (!isLight) {\n return {\n isLight: false,\n } as const;\n }\n\n return {\n isLight: true,\n thumbnail: state.thumbnailUrl.loadedUrl,\n } as const;\n };\n\n const videoUrl = state.videoUrl.loadedUrl;\n if (!videoUrl) {\n return null;\n }\n\n const isCustomVideo = !!componentData.video?.src?.id;\n const shouldRenderSeoPlayer = (isSSR() || jsdomMode) && seoMode;\n const { autoPlay = false, playInLoop = false, showControls = true } = componentData.options || {};\n const poster = state.videoUrl.type === 'PROCESSING' ? state.thumbnailUrl.loadedUrl : undefined;\n\n // Google detects videos only from player elements (iframe/video), never from links.\n if (shouldRenderSeoPlayer) {\n const youtubeId = videoUrl.match(MATCH_YOUTUBE_URL)?.[1];\n if (youtubeId) {\n return (\n <iframe\n data-hook=\"video-ssr-viewer\"\n className={styles.video_player}\n title=\"YouTube video\"\n src={`https://www.youtube.com/embed/${youtubeId}`}\n allow=\"fullscreen\"\n allowFullScreen\n />\n );\n }\n if (isCustomVideo || isCustomUpload(videoUrl)) {\n return (\n <video\n data-hook=\"video-ssr-viewer\"\n className={styles.video_player}\n src={videoUrl}\n poster={state.thumbnailUrl.loadedUrl}\n controls\n preload=\"none\"\n />\n );\n }\n return (\n <a data-hook=\"video-ssr-viewer\" href={videoUrl} target=\"_blank\" rel=\"noopener noreferrer\">\n {videoUrl}\n </a>\n );\n }\n\n return (\n <ReactPlayerWrapper\n className={styles.video_player}\n onContextMenu={handleContextMenu}\n controls={isLoaded !== false && showControls}\n url={videoUrl}\n onReady={onReactPlayerReady}\n onError={onVideoError}\n disabled={disabled}\n width=\"100%\"\n height=\"100%\"\n key={playerKey}\n onDuration={onDuration}\n onProgress={progress => {\n // @ts-ignore TODO: (plugins-no-any) remove onprogress when we make sure it's not used anymore\n config.onProgress?.({ ...progress, id: nodeId });\n }}\n // @ts-ignore TODO: (plugins-no-any) remove progressInterval when we make sure it's not used anymore\n progressInterval={config.progressInterval || 1000}\n muted={muted || autoPlay}\n isLoaded={\n isLoaded ||\n state.videoUrl.type === 'READY' ||\n state.videoUrl.type === 'PROCESSING' ||\n state.videoUrl.type === 'ERROR'\n }\n autoPlay={autoPlay}\n loop={playInLoop}\n isCustomVideo={isCustomVideo}\n poster={poster}\n {...getLightProps()}\n {...getDownloadProps()}\n />\n );\n};\n\nconst normalizeVideoUrl = (url: string | undefined): string | undefined =>\n url ? (url.toLowerCase().indexOf('vimeo') === 0 ? 'https://' + url : url) : undefined; //vimeo player needs urls prefixed with http[s]\n"],
5
+ "mappings": "AAAA,OAAO,SAAS,WAAW,QAAQ,gBAAgB;AAGnD,SAAS,sBAAsB;AAC/B,SAAS,aAAa,yBAAyB;AAC/C,SAAS,WAAW,aAAa;AAGjC,SAAS,0BAA0B;AACnC,OAAO,YAAY;AA4CZ,MAAM,QAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,kBAAkB,OAA8B,IAAI;AAC1D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,EAAE;AAE7C,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAgB,MAAM;AAC9C,UAAM,EAAE,IAAI,IAAI,cAAc,SAAS,CAAC;AAExC,UAAM,0BAA0B,MAAgB;AAC9C,UAAI,KAAK,KAAK;AACZ,cAAM,gBAAgB,kBAAkB,IAAI,GAAG;AAC/C,eAAO,gBACH,EAAE,MAAM,SAAS,WAAW,cAAc,IAC1C,EAAE,MAAM,WAAW,WAAW,OAAU;AAAA,MAC9C;AACA,UAAI,KAAK,MAAM,OAAO,aAAa;AACjC,YAAI;AACF,gBAAM,MAAM,OAAO,YAAY,EAAE,UAAU,IAAI,GAAG,CAAC;AACnD,cAAI,OAAO,QAAQ,UAAU;AAC3B,kBAAM,gBAAgB,kBAAkB,GAAG;AAC3C,mBAAO,gBACH,EAAE,MAAM,SAAS,WAAW,cAAc,IAC1C,EAA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AM,MAAO;",
6
6
  "names": ["isCustomVideo"]
7
7
  }
@@ -1,6 +1,6 @@
1
- var styleDataHash = 'bf016194';
1
+ var styleDataHash = '9fef3934';
2
2
  export const injectCss = (() => {
3
- var css = `._8qHzo{border:0;height:100%;left:0;position:absolute;top:0;width:100%;z-index:0}.CwWOd{bottom:0;left:0;position:absolute;right:0;top:0;z-index:3}.W9v6v{height:0;overflow:hidden;padding-bottom:56.25%;position:relative;print-color-adjust:exact}.W9v6v .fb-video,.W9v6v .fb-video iframe,.W9v6v .fb-video span{height:100%!important;max-width:100%;width:100%!important}@supports not (contain:inline-size){@media only screen and (max-width:480px){.W9v6v{min-width:auto}}}@container (width < 480px){.W9v6v:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){min-width:auto}}@media (width < 480px){.W9v6v:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .W9v6v{min-width:auto}}.xxEgE{display:block!important;margin:0}.XnKEE{font-family:var(--ricos-font-family,unset)}.glob_fontElementMap{font-family:var(--ricos-font-family,unset)}.JwZx9{--ricos-custom-p-font-size:14px;color:var(--ricos-custom-p-color,unset);display:block;font-family:var(--ricos-custom-p-font-family,unset);font-size:var(--ricos-custom-p-font-size,unset);font-style:var(--ricos-custom-p-font-style,unset);font-weight:var(--ricos-custom-p-font-weight,unset);justify-content:center;letter-spacing:var(--ricos-custom-p-letter-spacing,unset);line-height:var(--ricos-custom-p-line-height,unset);min-height:var(--ricos-custom-p-min-height,unset);padding-inline:16px;print-color-adjust:exact;text-align:center;text-decoration:var(--ricos-custom-p-text-decoration,unset)}[data-ricos-font~=p] .JwZx9{font:var(--ricos-custom-p-font);font-feature-settings:inherit;font-kerning:inherit;font-language-override:inherit;font-optical-sizing:inherit;font-size:var(--ricos-custom-p-font-size,unset);font-size-adjust:inherit;font-stretch:inherit;font-style:var(--ricos-custom-p-font-style,unset);font-variant:inherit;font-variation-settings:inherit;font-weight:var(--ricos-custom-p-font-weight,unset);line-height:var(--ricos-custom-p-line-height,unset)}.JwZx9>span>a,.JwZx9>span>span{background-color:var(--ricos-custom-p-background-color,unset)}`;
3
+ var css = `.yVeKt{border:0;height:100%;left:0;position:absolute;top:0;width:100%;z-index:0}._8joAF{bottom:0;left:0;position:absolute;right:0;top:0;z-index:3}.vcExZ{height:0;overflow:hidden;padding-bottom:56.25%;position:relative;print-color-adjust:exact}.vcExZ .fb-video,.vcExZ .fb-video iframe,.vcExZ .fb-video span{height:100%!important;max-width:100%;width:100%!important}@supports not (contain:inline-size){@media only screen and (max-width:480px){.vcExZ{min-width:auto}}}@container (width < 480px){.vcExZ:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){min-width:auto}}@media (width < 480px){.vcExZ:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .vcExZ{min-width:auto}}.hqSaZ{display:block!important;margin:0}._86sv-{font-family:var(--ricos-font-family,unset)}.glob_fontElementMap{font-family:var(--ricos-font-family,unset)}.DeZnp{--ricos-custom-p-font-size:14px;color:var(--ricos-custom-p-color,unset);display:block;font-family:var(--ricos-custom-p-font-family,unset);font-size:var(--ricos-custom-p-font-size,unset);font-style:var(--ricos-custom-p-font-style,unset);font-weight:var(--ricos-custom-p-font-weight,unset);justify-content:center;letter-spacing:var(--ricos-custom-p-letter-spacing,unset);line-height:var(--ricos-custom-p-line-height,unset);min-height:var(--ricos-custom-p-min-height,unset);padding-inline:16px;print-color-adjust:exact;text-align:center;text-decoration:var(--ricos-custom-p-text-decoration,unset)}[data-ricos-font~=p] .DeZnp{font:var(--ricos-custom-p-font);font-feature-settings:inherit;font-kerning:inherit;font-language-override:inherit;font-optical-sizing:inherit;font-size:var(--ricos-custom-p-font-size,unset);font-size-adjust:inherit;font-stretch:inherit;font-style:var(--ricos-custom-p-font-style,unset);font-variant:inherit;font-variation-settings:inherit;font-weight:var(--ricos-custom-p-font-weight,unset);line-height:var(--ricos-custom-p-line-height,unset)}.DeZnp>span>a,.DeZnp>span>span{background-color:var(--ricos-custom-p-background-color,unset)}`;
4
4
  var isTest = typeof process !== 'undefined' && process.env && process.env['NODE_ENV'] === 'test';
5
5
 
6
6
  if (isTest || !css || typeof document === 'undefined') { return; }
@@ -1,4 +1,5 @@
1
1
  import { Decoration_Type } from "./../../ricos-schema/legacy/wix/rich_content/v1/index.js";
2
+ import { FONT_WEIGHT_BOLD, FONT_WEIGHT_NORMAL } from "./../../_shared/font-weight.js";
2
3
  import { isBoldFontWeight } from "./../../_shared/is-bold-font-weight.js";
3
4
  import { getSelectionTextRuns } from "./../../_shared/resolvers/get-selection-text-runs.js";
4
5
  import { isBoldTextRun } from "./../../_shared/resolvers/is-bold-text-run.js";
@@ -6,8 +7,6 @@ import { isMarkActive, mergeAttributes } from "./../../tiptap/index.js";
6
7
  import { getMarkAttributes, markInputRule, markPasteRule } from "./../../tiptap/core/index.js";
7
8
  import { createRicosMarkExtension } from "./../../plugin-commons/index.js";
8
9
  import { getStylesDecorationBySelectedNode } from "./../../tiptap-extensions/index.js";
9
- const FONT_WEIGHT_BOLD = 700;
10
- const FONT_WEIGHT_NORMAL = 400;
11
10
  const starInputRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/;
12
11
  const starPasteRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g;
13
12
  const underscoreInputRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/ricos-common-plugins/bold/extension.ts"],
4
- "sourcesContent": ["import type { Decoration } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\nimport { Decoration_Type } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\nimport type { DOMOutputSpec } from './../../ricos-types/index.js';\nimport { isBoldFontWeight } from './../../_shared/is-bold-font-weight.js';\nimport { getSelectionTextRuns } from './../../_shared/resolvers/get-selection-text-runs.js';\nimport { isBoldTextRun } from './../../_shared/resolvers/is-bold-text-run.js';\nimport { isMarkActive, mergeAttributes } from './../../tiptap/index.js';\nimport { getMarkAttributes, markInputRule, markPasteRule } from './../../tiptap/core/index.js';\nimport { createRicosMarkExtension } from './../../plugin-commons/index.js';\nimport { getStylesDecorationBySelectedNode } from './../../tiptap-extensions/index.js';\n\ndeclare module './../../tiptap/core' {\n interface Commands<ReturnType> {\n bold: {\n /**\n * Set a bold mark\n */\n setBold: () => ReturnType;\n /**\n * Toggle a bold mark\n */\n toggleBold: () => ReturnType;\n /**\n * Unset a bold mark\n */\n unsetBold: () => ReturnType;\n };\n }\n}\n\nconst FONT_WEIGHT_BOLD = 700;\nconst FONT_WEIGHT_NORMAL = 400;\n\nconst starInputRegex = /(?:^|\\s)((?:\\*\\*)((?:[^*]+))(?:\\*\\*))$/;\nconst starPasteRegex = /(?:^|\\s)((?:\\*\\*)((?:[^*]+))(?:\\*\\*))/g;\nconst underscoreInputRegex = /(?:^|\\s)((?:__)((?:[^__]+))(?:__))$/;\nconst underscorePasteRegex = /(?:^|\\s)((?:__)((?:[^__]+))(?:__))/g;\n\nconst name = Decoration_Type.BOLD;\n\nexport const bold = createRicosMarkExtension<{\n HTMLAttributes: Record<string, string>;\n}>({\n type: 'mark',\n groups: [],\n name: Decoration_Type.BOLD,\n reconfigure(config, _extensions, _ricosProps, _settings, services) {\n return {\n ...config,\n addCommands() {\n return {\n setBold:\n () =>\n ({ commands }) => {\n return commands.setMark(this.name);\n },\n toggleBold:\n () =>\n ({ commands, state, tr, dispatch }) => {\n if (!state.selection.empty) {\n // Same rule as the button (`isBoldInText`): bold only when every run is bold. A run\n // gets a mark only where its block style doesn't already give the toggled weight.\n const runs = getSelectionTextRuns(name, services, state);\n const makeBold = !runs.every(isBoldTextRun);\n if (dispatch) {\n const markType = state.schema.marks[this.name];\n runs.forEach(run => {\n tr.removeMark(run.from, run.to, markType);\n if (makeBold !== isBoldFontWeight(run.blockDecoration?.fontWeightValue)) {\n tr.addMark(\n run.from,\n run.to,\n markType.create({\n fontWeightValue: makeBold ? FONT_WEIGHT_BOLD : FONT_WEIGHT_NORMAL,\n })\n );\n }\n });\n }\n return runs.length > 0;\n }\n const decoration: Decoration | undefined = getStylesDecorationBySelectedNode(name, {\n state,\n styles: services.styles,\n pmConverters: services.converters,\n });\n const isBoldInStyle = isBoldFontWeight(decoration?.fontWeightValue);\n // At the cursor, a mark decides whatever its weight, otherwise the block style does.\n const isBold = isMarkActive(state, this.name)\n ? isBoldFontWeight(getMarkAttributes(state, this.name).fontWeightValue)\n : isBoldInStyle;\n\n if (isBold === isBoldInStyle) {\n return commands.setMark(this.name, {\n fontWeightValue: isBold ? FONT_WEIGHT_NORMAL : FONT_WEIGHT_BOLD,\n });\n }\n // The mark only differs from the block style: removing it gives the toggled state.\n return commands.unsetMark(this.name);\n },\n unsetBold:\n () =>\n ({ commands }) => {\n return commands.unsetMark(this.name);\n },\n };\n },\n };\n },\n createExtensionConfig() {\n return {\n name,\n addOptions() {\n return {\n HTMLAttributes: {},\n };\n },\n\n addAttributes() {\n return {\n fontWeightValue: { default: FONT_WEIGHT_BOLD },\n };\n },\n\n parseHTML() {\n return [\n {\n tag: 'strong',\n },\n {\n tag: 'b',\n getAttrs: node => (node as HTMLElement).style.fontWeight !== 'normal' && null,\n },\n {\n style: 'font-weight',\n getAttrs: value => /^(bold(er)?|[5-9]\\d{2,})$/.test(value as string) && null,\n },\n ];\n },\n\n renderHTML({ HTMLAttributes }) {\n const { fontWeightValue, ..._ } = mergeAttributes(\n this.options.HTMLAttributes,\n HTMLAttributes\n );\n\n return ['strong', { style: `font-weight: ${fontWeightValue}` }, 0] as DOMOutputSpec;\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-b': () => this.editor.commands.toggleBold(),\n };\n },\n\n addInputRules() {\n return [\n markInputRule({\n find: starInputRegex,\n type: this.type,\n }),\n markInputRule({\n find: underscoreInputRegex,\n type: this.type,\n }),\n ];\n },\n\n addPasteRules() {\n return [\n markPasteRule({\n find: starPasteRegex,\n type: this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E,IAAI;AAAA,UAChC,KAAK,QAAQ;AAAA,UACb;AAAA,QACF;AAEA,eAAO,CAAC,UAAU,EAAE,OAAO,gBAAgB,eAAe,GAAG,GAAG,CAAC;AAAA,MACnE;AAAA,MAEA,uBAAuB;AACrB,eAAO;AAAA,UACL,SAAS,MAAM,KAAK,OAAO,SAAS,WAAW;AAAA,QACjD;AAAA,MACF;AAAA,MAEA,gBAAgB;AACd,eAAO;AAAA,UACL,cAAc;AAAA,YACZ,MAAM;AAAA,YACN,MAAM,KAAK;AAAA,UACb,CAAC;AAAA,UACD,cAAc;AAAA,YACZ,MAAM;AAAA,YACN,MAAM,KAAK;AAAA,UACb,CAAC;AAAA,QACH;AAAA,MACF;AAAA,MAEA,gBAAgB;AACd,eAAO;AAAA,UACL,cAAc;AAAA,YACZ,MAAM;AAAA,YACN,MAAM,KAAK;AAAA,UACb,CAAC;AAAA,UACD,cAAc;AAAA,YACZ,MAAM;AAAA,YACN,MAAM,KAAK;AAAA,UACb,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
4
+ "sourcesContent": ["import type { Decoration } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\nimport { Decoration_Type } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\nimport type { DOMOutputSpec } from './../../ricos-types/index.js';\nimport { FONT_WEIGHT_BOLD, FONT_WEIGHT_NORMAL } from './../../_shared/font-weight.js';\nimport { isBoldFontWeight } from './../../_shared/is-bold-font-weight.js';\nimport { getSelectionTextRuns } from './../../_shared/resolvers/get-selection-text-runs.js';\nimport { isBoldTextRun } from './../../_shared/resolvers/is-bold-text-run.js';\nimport { isMarkActive, mergeAttributes } from './../../tiptap/index.js';\nimport { getMarkAttributes, markInputRule, markPasteRule } from './../../tiptap/core/index.js';\nimport { createRicosMarkExtension } from './../../plugin-commons/index.js';\nimport { getStylesDecorationBySelectedNode } from './../../tiptap-extensions/index.js';\n\ndeclare module './../../tiptap/core' {\n interface Commands<ReturnType> {\n bold: {\n /**\n * Set a bold mark\n */\n setBold: () => ReturnType;\n /**\n * Toggle a bold mark\n */\n toggleBold: () => ReturnType;\n /**\n * Unset a bold mark\n */\n unsetBold: () => ReturnType;\n };\n }\n}\n\nconst starInputRegex = /(?:^|\\s)((?:\\*\\*)((?:[^*]+))(?:\\*\\*))$/;\nconst starPasteRegex = /(?:^|\\s)((?:\\*\\*)((?:[^*]+))(?:\\*\\*))/g;\nconst underscoreInputRegex = /(?:^|\\s)((?:__)((?:[^__]+))(?:__))$/;\nconst underscorePasteRegex = /(?:^|\\s)((?:__)((?:[^__]+))(?:__))/g;\n\nconst name = Decoration_Type.BOLD;\n\nexport const bold = createRicosMarkExtension<{\n HTMLAttributes: Record<string, string>;\n}>({\n type: 'mark',\n groups: [],\n name: Decoration_Type.BOLD,\n reconfigure(config, _extensions, _ricosProps, _settings, services) {\n return {\n ...config,\n addCommands() {\n return {\n setBold:\n () =>\n ({ commands }) => {\n return commands.setMark(this.name);\n },\n toggleBold:\n () =>\n ({ commands, state, tr, dispatch }) => {\n if (!state.selection.empty) {\n // Same rule as the button (`isBoldInText`): bold only when every run is bold. A run\n // gets a mark only where its block style doesn't already give the toggled weight.\n const runs = getSelectionTextRuns(name, services, state);\n const makeBold = !runs.every(isBoldTextRun);\n if (dispatch) {\n const markType = state.schema.marks[this.name];\n runs.forEach(run => {\n tr.removeMark(run.from, run.to, markType);\n if (makeBold !== isBoldFontWeight(run.blockDecoration?.fontWeightValue)) {\n tr.addMark(\n run.from,\n run.to,\n markType.create({\n fontWeightValue: makeBold ? FONT_WEIGHT_BOLD : FONT_WEIGHT_NORMAL,\n })\n );\n }\n });\n }\n return runs.length > 0;\n }\n const decoration: Decoration | undefined = getStylesDecorationBySelectedNode(name, {\n state,\n styles: services.styles,\n pmConverters: services.converters,\n });\n const isBoldInStyle = isBoldFontWeight(decoration?.fontWeightValue);\n // At the cursor, a mark decides whatever its weight, otherwise the block style does.\n const isBold = isMarkActive(state, this.name)\n ? isBoldFontWeight(getMarkAttributes(state, this.name).fontWeightValue)\n : isBoldInStyle;\n\n if (isBold === isBoldInStyle) {\n return commands.setMark(this.name, {\n fontWeightValue: isBold ? FONT_WEIGHT_NORMAL : FONT_WEIGHT_BOLD,\n });\n }\n // The mark only differs from the block style: removing it gives the toggled state.\n return commands.unsetMark(this.name);\n },\n unsetBold:\n () =>\n ({ commands }) => {\n return commands.unsetMark(this.name);\n },\n };\n },\n };\n },\n createExtensionConfig() {\n return {\n name,\n addOptions() {\n return {\n HTMLAttributes: {},\n };\n },\n\n addAttributes() {\n return {\n fontWeightValue: { default: FONT_WEIGHT_BOLD },\n };\n },\n\n parseHTML() {\n return [\n {\n tag: 'strong',\n },\n {\n tag: 'b',\n getAttrs: node => (node as HTMLElement).style.fontWeight !== 'normal' && null,\n },\n {\n style: 'font-weight',\n getAttrs: value => /^(bold(er)?|[5-9]\\d{2,})$/.test(value as string) && null,\n },\n ];\n },\n\n renderHTML({ HTMLAttributes }) {\n const { fontWeightValue, ..._ } = mergeAttributes(\n this.options.HTMLAttributes,\n HTMLAttributes\n );\n\n return ['strong', { style: `font-weight: ${fontWeightValue}` }, 0] as DOMOutputSpec;\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-b': () => this.editor.commands.toggleBold(),\n };\n },\n\n addInputRules() {\n return [\n markInputRule({\n find: starInputRegex,\n type: this.type,\n }),\n markInputRule({\n find: underscoreInputRegex,\n type: this.type,\n }),\n ];\n },\n\n addPasteRules() {\n return [\n markPasteRule({\n find: starPasteRegex,\n type: this.type,\n }),\n markPasteRule({\n find: underscorePasteRegex,\n type: this.type,\n }),\n ];\n },\n };\n },\n});\n"],
5
+ "mappings": "AACA,SAAS,uBAAuB;AAEhC,SAAS,kBAAkB,0BAA0B;AACrD,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,cAAc,uBAAuB;AAC9C,SAAS,mBAAmB,eAAe,qBAAqB;AAChE,SAA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c;AAAA,YACZ,MAAM;AAAA,YACN,MAAM,KAAK;AAAA,UACb,CAAC;AAAA,UACD,cAAc;AAAA,YACZ,MAAM;AAAA,YACN,MAAM,KAAK;AAAA,UACb,CAAC;AAAA,QACH;AAAA,MACF;AAAA,MAEA,gBAAgB;AACd,eAAO;AAAA,UACL,cAAc;AAAA,YACZ,MAAM;AAAA,YACN,MAAM,KAAK;AAAA,UACb,CAAC;AAAA,UACD,cAAc;AAAA,YACZ,MAAM;AAAA,YACN,MAAM,KAAK;AAAA,UACb,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,12 +1,14 @@
1
1
  import { Node_Type } from "./../../ricos-schema/legacy/wix/rich_content/v1/index.js";
2
+ import { getListMarkerStyle } from "./../../_shared/get-list-marker-style.js";
2
3
  import { getPxFontSize } from "./../../_shared/get-px-font-size.js";
3
4
  import { getBlockDefaultFontSize } from "./../../_shared/list-checkbox/get-block-default-font-size.js";
4
5
  import { Plugin, PluginKey } from "./../../tiptap/pm/state.js";
5
6
  import { Decoration, DecorationSet } from "./../../tiptap/pm/view.js";
6
7
  import { toBlockFontSize } from "../font-size/block-font-size.js";
8
+ import { getContentMarkerStyle } from "../list-item/list-marker-selection.js";
7
9
  import { HEADER_NAMES } from "../title/header-names.js";
8
10
  import { onlyChangesUnrelatedAttrs } from "../transaction-predicates/only-changes-unrelated-attrs.js";
9
- const RELEVANT_ATTRS = /* @__PURE__ */ new Set(["level", "fontSize"]);
11
+ const RELEVANT_ATTRS = /* @__PURE__ */ new Set(["level", "fontSize", "markerStyle"]);
10
12
  const createListItemSizingDecorationPlugin = () => {
11
13
  const key = new PluginKey("list-item-sizing");
12
14
  return new Plugin({
@@ -66,6 +68,16 @@ const buildListItemSizingDecorations = (doc) => {
66
68
  })
67
69
  );
68
70
  }
71
+ const markerStyle = Object.entries(
72
+ getListMarkerStyle({ ...getContentMarkerStyle(node), ...node.attrs.markerStyle })
73
+ );
74
+ if (markerStyle.length) {
75
+ decorations.push(
76
+ Decoration.node(pos, pos + node.nodeSize, {
77
+ style: markerStyle.map(([property, value]) => `${property}: ${value}`).join("; ")
78
+ })
79
+ );
80
+ }
69
81
  });
70
82
  return DecorationSet.create(doc, decorations);
71
83
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/ricos-common-plugins/decoration-plugins/list-item-sizing.ts"],
4
- "sourcesContent": ["import { Node_Type } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\nimport { getPxFontSize } from './../../_shared/get-px-font-size.js';\nimport { getBlockDefaultFontSize } from './../../_shared/list-checkbox/get-block-default-font-size.js';\nimport type { Node as ProseMirrorNode } from './../../tiptap/pm/model.js';\nimport { Plugin, PluginKey } from './../../tiptap/pm/state.js';\nimport { Decoration, DecorationSet } from './../../tiptap/pm/view.js';\n\nimport { toBlockFontSize } from '../font-size/block-font-size.js';\nimport type { Level } from '../title/extension.js';\nimport { HEADER_NAMES } from '../title/header-names.js';\nimport { onlyChangesUnrelatedAttrs } from '../transaction-predicates/only-changes-unrelated-attrs.js';\n\n// Reads heading `attrs.level` and the block `attrs.fontSize` on the list\n// item's first child. Marks (font-size) come through `Add/RemoveMarkStep` —\n// non-attr — and correctly defeat the predicate without needing to be listed here.\nconst RELEVANT_ATTRS: ReadonlySet<string> = new Set(['level', 'fontSize']);\n\n/**\n * Adds, depending on the list item's first child:\n * - a font-size (so the list marker and paddings size with the text),\n * - a `data-child-font-fit` flag when that font-size is smaller than the block's\n * own default, so the child paragraph/heading shrinks its font to match (see\n * `list-checkbox.scss`),\n * - and/or a `data-heading-level` attribute (so a heading-first list item gets\n * heading styles).\n *\n * No `reuseWhen`: the decoration value depends on the first child's first\n * text node's marks / type, which inline-text edits can change (pasting\n * marked text in front of an unmarked first character, typing that changes\n * the first mark, etc.). Cache is still used across selection-only\n * transactions.\n */\nexport const createListItemSizingDecorationPlugin = () => {\n const key = new PluginKey<DecorationSet>('list-item-sizing');\n\n return new Plugin<DecorationSet>({\n key,\n state: {\n init: (_config, state) => buildListItemSizingDecorations(state.doc),\n // No `reuseWhen` predicate — see plugin docstring for why.\n apply: (tr, prev) => {\n if (!tr.docChanged) {\n return prev;\n }\n if (onlyChangesUnrelatedAttrs(tr, RELEVANT_ATTRS)) {\n return prev;\n }\n return buildListItemSizingDecorations(tr.doc);\n },\n },\n props: {\n decorations(state) {\n return key.getState(state);\n },\n },\n });\n};\n\n// An empty block sizes the item with its own font size, a block with text with its first text node's.\n// Only an absolute size can size the item: a relative one would compound with the same size on the\n// block inside it, which is relative to the item.\nconst getChildFontSize = (blockNode: ProseMirrorNode | null): number => {\n if (!blockNode) {\n return 0;\n }\n return (\n (blockNode.content.size\n ? toBlockFontSize(blockNode.firstChild?.marks)?.value\n : getPxFontSize(blockNode.attrs.fontSize)) ?? 0\n );\n};\n\nconst buildListItemSizingDecorations = (doc: ProseMirrorNode): DecorationSet => {\n const decorations: Decoration[] = [];\n\n doc.descendants((node, pos) => {\n // Text blocks (paragraph, heading, blockquote) cannot contain list items,\n // so skipping their subtree avoids visiting every text/mark node.\n // We cannot prune at LIST_ITEM because it may contain nested lists via\n // `listItemSecondChildContent`, and those nested list items still need\n // decorations.\n if (node.isTextblock) {\n return false;\n }\n\n if (node.type.name !== Node_Type.LIST_ITEM) {\n return;\n }\n\n const firstChildOfListItem = node.firstChild;\n const headingLevel: Level | undefined =\n firstChildOfListItem?.type.name === Node_Type.HEADING\n ? firstChildOfListItem?.attrs.level || 1\n : undefined;\n\n // Apply the child block's font-size to the list item as a decoration so\n // the list marker matches the text font-size.\n const childFontSize = getChildFontSize(firstChildOfListItem);\n if (childFontSize) {\n // When the chosen font is smaller than the block's own default, the\n // block's strut keeps the line (and marker) oversized; flag the item\n // so the child paragraph/heading shrinks its font to match — see\n // `list-checkbox.scss`.\n const childFontFit = childFontSize < getBlockDefaultFontSize(headingLevel);\n decorations.push(\n Decoration.node(pos, pos + node.nodeSize, {\n // No trailing `;` — see indentation-styling.ts.\n style: `font-size: ${childFontSize}px`,\n ...(childFontFit ? { 'data-child-font-fit': 'true' } : {}),\n })\n );\n }\n\n if (headingLevel !== undefined) {\n decorations.push(\n Decoration.node(pos, pos + node.nodeSize, {\n 'data-heading-level': `header${HEADER_NAMES[headingLevel - 1]}`,\n })\n );\n }\n });\n\n return DecorationSet.create(doc, decorations);\n};\n"],
5
- "mappings": "AAAA,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAC9B,SAAS,+BAA+B;AAExC,SAAS,QAAQ,iBAAiB;AAClC,SAAS,YAAY,qBAAqB;AAE1C,SAAS,uBAAuB;AAEhC,SAAS,oBAAoB;AAC7B,SAAS,iCAAiC;AAK1C,MAAM,iBAAsC,oBAAI,IAAI,CAAC,SAAS,UAAU,CAAC;AAiBlE,MAAM,uCAAuC,MAAM;AACxD,QAAM,MAAM,IAAI,UAAyB,kBAAkB;AAE3D,SAAO,IAAI,OAAsB;AAAA,IAC/B;AAAA,IACA,OAAO;AAAA,MACL,MAAM,CAAC,SAAS,UAAU,+BAA+B,MAAM,GAAG;AAAA;AAAA,MAElE,OAAO,CAAC,IAAI,SAAS;AACnB,YAAI,CAAC,GAAG,YAAY;AAClB,iBAAO;AAAA,QACT;AACA,YAAI,0BAA0B,IAAI,cAAc,GAAG;AACjD,iBAAO;AAAA,QACT;AACA,eAAO,+BAA+B,GAAG,GAAG;AAAA,MAC9C;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,YAAY,OAAO;AACjB,eAAO,IAAI,SAAS,KAAK;AAAA,MAC3B;AAAA,IACF;AAAA,EACF,CAAC;AACH;AAKA,MAAM,mBAAmB,CAAC,cAA8C;AACtE,MAAI,CAAC,WAAW;AACd,WAAO;AAAA,EACT;AACA,UACG,UAAU,QAAQ,OACf,gBAAgB,UAAU,YAAY,KAAK,GAAG,QAC9C,cAAc,UAAU,MAAM,QAAQ,MAAM;AAEpD;AAEA,MAAM,iCAAiC,CAAC,QAAwC;AAC9E,QAAM,cAA4B,CAAC;AAEnC,MAAI,YAAY,CAAC,MAAM,QAAQ;AAM7B,QAAI,KAAK,aAAa;AACpB,aAAO;AAAA,IACT;AAEA,QAAI,KAAK,KAAK,SAAS,UAAU,WAAW;AAC1C;AAAA,IACF;AAEA,UAAM,uBAAuB,KAAK;AAClC,UAAM,eACJ,sBAAsB,KAAK,SAAS,UAAU,UAC1C,sBAAsB,MAAM,SAAS,IACrC;AAIN,UAAM,gBAAgB,iBAAiB,oBAAoB;AAC3D,QAAI,eAAe;AAKjB,YAAM,eAAe,gBAAgB,wBAAwB,YAAY;AACzE,kBAAY;AAAA,QACV,WAAW,KAAK,KAAK,MAAM,KAAK,UAAU;AAAA;AAAA,UAExC,OAAO,cAAc,aAAa;AAAA,UAClC,GAAI,eAAe,EAAE,uBAAuB,OAAO,IAAI,CAAC;AAAA,QAC1D,CAAC;AAAA,MACH;AAAA,IACF;AAEA,QAAI,iBAAiB,QAAW;AAC9B,kBAAY;AAAA,QACV,WAAW,KAAK,KAAK,MAAM,KAAK,UAAU;AAAA,UACxC,sBAAsB,SAAS,aAAa,eAAe,CAAC,CAAC;AAAA,QAC/D,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,CAAC;AAED,SAAO,cAAc,OAAO,KAAK,WAAW;AAC9C;",
4
+ "sourcesContent": ["import { Node_Type } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\nimport { getListMarkerStyle } from './../../_shared/get-list-marker-style.js';\nimport { getPxFontSize } from './../../_shared/get-px-font-size.js';\nimport { getBlockDefaultFontSize } from './../../_shared/list-checkbox/get-block-default-font-size.js';\nimport type { Node as ProseMirrorNode } from './../../tiptap/pm/model.js';\nimport { Plugin, PluginKey } from './../../tiptap/pm/state.js';\nimport { Decoration, DecorationSet } from './../../tiptap/pm/view.js';\n\nimport { toBlockFontSize } from '../font-size/block-font-size.js';\nimport { getContentMarkerStyle } from '../list-item/list-marker-selection.js';\nimport type { Level } from '../title/extension.js';\nimport { HEADER_NAMES } from '../title/header-names.js';\nimport { onlyChangesUnrelatedAttrs } from '../transaction-predicates/only-changes-unrelated-attrs.js';\n\n// Reads the list item's `attrs.markerStyle`, and heading `attrs.level` and the\n// block `attrs.fontSize` on its first child. Marks (font-size) come through `Add/RemoveMarkStep` —\n// non-attr — and correctly defeat the predicate without needing to be listed here.\nconst RELEVANT_ATTRS: ReadonlySet<string> = new Set(['level', 'fontSize', 'markerStyle']);\n\n/**\n * Adds, depending on the list item's first child:\n * - a font-size (so the list marker and paddings size with the text),\n * - a `data-child-font-fit` flag when that font-size is smaller than the block's\n * own default, so the child paragraph/heading shrinks its font to match (see\n * `list-checkbox.scss`),\n * - a `data-heading-level` attribute (so a heading-first list item gets\n * heading styles),\n * - and/or the marker's style: its own over the style its whole text shares (see\n * `getListMarkerStyle`).\n *\n * No `reuseWhen`: the decoration value depends on the first child's type and\n * its text nodes' marks, which inline-text edits can change (pasting marked\n * text in front of an unmarked first character, typing that changes the first\n * mark, styling the whole text, etc.). Cache is still used across\n * selection-only transactions.\n */\nexport const createListItemSizingDecorationPlugin = () => {\n const key = new PluginKey<DecorationSet>('list-item-sizing');\n\n return new Plugin<DecorationSet>({\n key,\n state: {\n init: (_config, state) => buildListItemSizingDecorations(state.doc),\n // No `reuseWhen` predicate — see plugin docstring for why.\n apply: (tr, prev) => {\n if (!tr.docChanged) {\n return prev;\n }\n if (onlyChangesUnrelatedAttrs(tr, RELEVANT_ATTRS)) {\n return prev;\n }\n return buildListItemSizingDecorations(tr.doc);\n },\n },\n props: {\n decorations(state) {\n return key.getState(state);\n },\n },\n });\n};\n\n// An empty block sizes the item with its own font size, a block with text with its first text node's.\n// Only an absolute size can size the item: a relative one would compound with the same size on the\n// block inside it, which is relative to the item.\nconst getChildFontSize = (blockNode: ProseMirrorNode | null): number => {\n if (!blockNode) {\n return 0;\n }\n return (\n (blockNode.content.size\n ? toBlockFontSize(blockNode.firstChild?.marks)?.value\n : getPxFontSize(blockNode.attrs.fontSize)) ?? 0\n );\n};\n\nconst buildListItemSizingDecorations = (doc: ProseMirrorNode): DecorationSet => {\n const decorations: Decoration[] = [];\n\n doc.descendants((node, pos) => {\n // Text blocks (paragraph, heading, blockquote) cannot contain list items,\n // so skipping their subtree avoids visiting every text/mark node.\n // We cannot prune at LIST_ITEM because it may contain nested lists via\n // `listItemSecondChildContent`, and those nested list items still need\n // decorations.\n if (node.isTextblock) {\n return false;\n }\n\n if (node.type.name !== Node_Type.LIST_ITEM) {\n return;\n }\n\n const firstChildOfListItem = node.firstChild;\n const headingLevel: Level | undefined =\n firstChildOfListItem?.type.name === Node_Type.HEADING\n ? firstChildOfListItem?.attrs.level || 1\n : undefined;\n\n // Apply the child block's font-size to the list item as a decoration so\n // the list marker matches the text font-size.\n const childFontSize = getChildFontSize(firstChildOfListItem);\n if (childFontSize) {\n // When the chosen font is smaller than the block's own default, the\n // block's strut keeps the line (and marker) oversized; flag the item\n // so the child paragraph/heading shrinks its font to match — see\n // `list-checkbox.scss`.\n const childFontFit = childFontSize < getBlockDefaultFontSize(headingLevel);\n decorations.push(\n Decoration.node(pos, pos + node.nodeSize, {\n // No trailing `;` — see indentation-styling.ts.\n style: `font-size: ${childFontSize}px`,\n ...(childFontFit ? { 'data-child-font-fit': 'true' } : {}),\n })\n );\n }\n\n if (headingLevel !== undefined) {\n decorations.push(\n Decoration.node(pos, pos + node.nodeSize, {\n 'data-heading-level': `header${HEADER_NAMES[headingLevel - 1]}`,\n })\n );\n }\n\n const markerStyle = Object.entries(\n getListMarkerStyle({ ...getContentMarkerStyle(node), ...node.attrs.markerStyle })\n );\n if (markerStyle.length) {\n decorations.push(\n Decoration.node(pos, pos + node.nodeSize, {\n style: markerStyle.map(([property, value]) => `${property}: ${value}`).join('; '),\n })\n );\n }\n });\n\n return DecorationSet.create(doc, decorations);\n};\n"],
5
+ "mappings": "AAAA,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,qBAAqB;AAC9B,SAAS,+BAA+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,iBAAiB,oBAAoB;AAC3D,QAAI,eAAe;AAKjB,YAAM,eAAe,gBAAgB,wBAAwB,YAAY;AACzE,kBAAY;AAAA,QACV,WAAW,KAAK,KAAK,MAAM,KAAK,UAAU;AAAA;AAAA,UAExC,OAAO,cAAc,aAAa;AAAA,UAClC,GAAI,eAAe,EAAE,uBAAuB,OAAO,IAAI,CAAC;AAAA,QAC1D,CAAC;AAAA,MACH;AAAA,IACF;AAEA,QAAI,iBAAiB,QAAW;AAC9B,kBAAY;AAAA,QACV,WAAW,KAAK,KAAK,MAAM,KAAK,UAAU;AAAA,UACxC,sBAAsB,SAAS,aAAa,eAAe,CAAC,CAAC;AAAA,QAC/D,CAAC;AAAA,MACH;AAAA,IACF;AAEA,UAAM,cAAc,OAAO;AAAA,MACzB,mBAAmB,EAAE,GAAG,sBAAsB,IAAI,GAAG,GAAG,KAAK,MAAM,YAAY,CAAC;AAAA,IAClF;AACA,QAAI,YAAY,QAAQ;AACtB,kBAAY;AAAA,QACV,WAAW,KAAK,KAAK,MAAM,KAAK,UAAU;AAAA,UACxC,OAAO,YAAY,IAAI,CAAC,CAAC,UAAU,KAAK,MAAM,GAAG,QAAQ,KAAK,KAAK,EAAE,EAAE,KAAK,IAAI;AAAA,QAClF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,CAAC;AAED,SAAO,cAAc,OAAO,KAAK,WAAW;AAC9C;",
6
6
  "names": []
7
7
  }
@@ -3,6 +3,7 @@ import { formatFontSize } from "./../../_shared/format-font-size.js";
3
3
  import { combineTransactionSteps, getChangedRanges } from "./../../tiptap/core/index.js";
4
4
  import { Plugin, PluginKey } from "./../../tiptap/pm/state.js";
5
5
  import { Decoration, DecorationSet } from "./../../tiptap/pm/view.js";
6
+ import { ListMarkerSelection } from "../list-item/list-marker-selection.js";
6
7
  import { isSameBlockFontSize, isSizedTextblock, toBlockFontSize } from "./block-font-size.js";
7
8
  const createBlockFontSizePlugin = (config) => {
8
9
  const key = new PluginKey("block-font-size");
@@ -94,7 +95,7 @@ const leftBlockType = (oldState, cursorBlock, transform) => {
94
95
  const findEmptyCursorBlock = ({
95
96
  selection
96
97
  }) => {
97
- if (!selection.empty) {
98
+ if (!selection.empty || selection instanceof ListMarkerSelection) {
98
99
  return void 0;
99
100
  }
100
101
  const { parent } = selection.$from;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/ricos-common-plugins/font-size/block-font-size-plugin.ts"],
4
- "sourcesContent": ["import type { FontSizeData } from './../../ricos-schema/next-schema/index.js';\nimport { Mark_Type } from './../../ricos-types/index.js';\nimport { type FontSizeCommonConfig, formatFontSize } from './../../_shared/format-font-size.js';\nimport { combineTransactionSteps, getChangedRanges } from './../../tiptap/core/index.js';\nimport type { Node as ProseMirrorNode } from './../../tiptap/pm/model.js';\nimport type { EditorState, Transaction } from './../../tiptap/pm/state.js';\nimport { Plugin, PluginKey } from './../../tiptap/pm/state.js';\nimport type { Transform } from './../../tiptap/pm/transform.js';\nimport { Decoration, DecorationSet } from './../../tiptap/pm/view.js';\n\nimport { isSameBlockFontSize, isSizedTextblock, toBlockFontSize } from './block-font-size.js';\n\ntype Block = { node: ProseMirrorNode; pos: number };\n\n// Only blocks a transaction touched are visited, so loaded content is never rewritten\nexport const createBlockFontSizePlugin = (config?: FontSizeCommonConfig) => {\n const key = new PluginKey<DecorationSet>('block-font-size');\n\n return new Plugin<DecorationSet>({\n key,\n state: {\n init: (_config, state) => buildEmptyBlockDecorations(state.doc, config),\n apply: (tr, prev) => (tr.docChanged ? buildEmptyBlockDecorations(tr.doc, config) : prev),\n },\n props: {\n decorations(state) {\n return key.getState(state);\n },\n },\n appendTransaction: (transactions, oldState, newState) => {\n const tr = newState.tr;\n const transform = transactions.some(transaction => transaction.docChanged)\n ? combineTransactionSteps(oldState.doc, [...transactions])\n : undefined;\n\n if (transform) {\n sizeEmptiedBlocks(tr, oldState, newState, transform);\n }\n\n const cursorBlock = findEmptyCursorBlock(newState);\n let storedMarks = newState.storedMarks;\n\n if (cursorBlock && transform && leftBlockType(oldState, cursorBlock, transform)) {\n // The marks the new block would type at: the stored ones, or the ones `unique-id` carries\n // over from the old cursor when it ids the block (keep the fallback in sync with it).\n const { $from, $to } = oldState.selection;\n const carriedMarks = storedMarks ?? ($to.parentOffset ? $from.marks() : []);\n if (carriedMarks.some(mark => mark.type.name === Mark_Type.FONT_SIZE)) {\n storedMarks = carriedMarks.filter(mark => mark.type.name !== Mark_Type.FONT_SIZE);\n }\n if (cursorBlock.node.attrs.fontSize) {\n tr.setNodeAttribute(cursorBlock.pos, 'fontSize', null);\n }\n } else if (cursorBlock && transactions.some(transaction => transaction.storedMarksSet)) {\n const storedFontSize = toBlockFontSize(storedMarks);\n if (\n storedFontSize &&\n !isSameBlockFontSize(storedFontSize, cursorBlock.node.attrs.fontSize)\n ) {\n tr.setNodeAttribute(cursorBlock.pos, 'fontSize', storedFontSize);\n }\n }\n\n // Attribute steps keep positions, so the block can be re-read after `sizeEmptiedBlocks`\n const blockFontSize = cursorBlock && tr.doc.nodeAt(cursorBlock.pos)!.attrs.fontSize;\n const fontSizeMarkType = newState.schema.marks[Mark_Type.FONT_SIZE];\n if (blockFontSize && fontSizeMarkType && !fontSizeMarkType.isInSet(storedMarks ?? [])) {\n storedMarks = [...(storedMarks ?? []), fontSizeMarkType.create(blockFontSize)];\n }\n\n // Steps reset the transaction's stored marks; put back the ones the state already had.\n if (storedMarks && (tr.steps.length || storedMarks !== newState.storedMarks)) {\n tr.setStoredMarks(storedMarks);\n }\n\n return tr.steps.length || tr.storedMarksSet ? tr : undefined;\n },\n });\n};\n\n// Text renders at its own sizes, so only an empty block is styled with its own size\nconst buildEmptyBlockDecorations = (\n doc: ProseMirrorNode,\n config?: FontSizeCommonConfig\n): DecorationSet => {\n const decorations: Decoration[] = [];\n doc.descendants((node, pos) => {\n const fontSize: FontSizeData | null = node.attrs.fontSize;\n if (isSizedTextblock(node) && !node.content.size && fontSize) {\n decorations.push(\n Decoration.node(pos, pos + node.nodeSize, {\n // No trailing `;` — see indentation-styling.ts.\n style: `font-size: ${formatFontSize({ value: fontSize.value, unit: fontSize.unit?.toLowerCase() }, config)}`,\n })\n );\n }\n return !node.isTextblock;\n });\n return DecorationSet.create(doc, decorations);\n};\n\n// A block whose text was all deleted keeps the size its first character had; the block is looked up\n// from the old side, since a new empty block can sit where an old one started.\nconst sizeEmptiedBlocks = (\n tr: Transaction,\n oldState: EditorState,\n newState: EditorState,\n transform: Transform\n) => {\n const sized = new Set<number>();\n getChangedRanges(transform).forEach(({ oldRange }) => {\n oldState.doc.nodesBetween(oldRange.from, oldRange.to, (oldNode, oldPos) => {\n if (isSizedTextblock(oldNode) && oldNode.content.size) {\n const pos = transform.mapping.map(oldPos);\n const node = newState.doc.nodeAt(pos);\n if (node?.type === oldNode.type && !node.content.size && !sized.has(pos)) {\n sized.add(pos);\n const fontSize = toBlockFontSize(oldNode.firstChild?.marks);\n if (!isSameBlockFontSize(fontSize, node.attrs.fontSize)) {\n tr.setNodeAttribute(pos, 'fontSize', fontSize);\n }\n }\n }\n return !oldNode.isTextblock;\n });\n });\n};\n\n// Enter into a block of another type (heading → paragraph, blockquote → paragraph) starts at the\n// default size. The block the cursor left maps onto itself, so a toolbar toggle of the same block\n// or a split into the block's own type keeps the size.\nconst leftBlockType = (\n oldState: EditorState,\n cursorBlock: Block,\n transform: Transform\n): boolean => {\n const { $from } = oldState.selection;\n return (\n $from.depth > 0 &&\n transform.mapping.map($from.before()) !== cursorBlock.pos &&\n $from.parent.type !== cursorBlock.node.type\n );\n};\n\nexport const findEmptyCursorBlock = ({\n selection,\n}: Pick<EditorState, 'selection'>): Block | undefined => {\n if (!selection.empty) {\n return undefined;\n }\n const { parent } = selection.$from;\n if (!isSizedTextblock(parent) || parent.content.size !== 0) {\n return undefined;\n }\n return { node: parent, pos: selection.$from.before() };\n};\n"],
5
- "mappings": "AACA,SAAS,iBAAiB;AAC1B,SAAoC,sBAAsB;AAC1D,SAAS,yBAA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E,QAAQ,CAAC,EAAE,SAAS,MAAM;AACpD,aAAS,IAAI,aAAa,SAAS,MAAM,SAAS,IAAI,CAAC,SAAS,WAAW;AACzE,UAAI,iBAAiB,OAAO,KAAK,QAAQ,QAAQ,MAAM;AACrD,cAAM,MAAM,UAAU,QAAQ,IAAI,MAAM;AACxC,cAAM,OAAO,SAAS,IAAI,OAAO,GAAG;AACpC,YAAI,MAAM,SAAS,QAAQ,QAAQ,CAAC,KAAK,QAAQ,QAAQ,CAAC,MAAM,IAAI,GAAG,GAAG;AACxE,gBAAM,IAAI,GAAG;AACb,gBAAM,WAAW,gBAAgB,QAAQ,YAAY,KAAK;AAC1D,cAAI,CAAC,oBAAoB,UAAU,KAAK,MAAM,QAAQ,GAAG;AACvD,eAAG,iBAAiB,KAAK,YAAY,QAAQ;AAAA,UAC/C;AAAA,QACF;AAAA,MACF;AACA,aAAO,CAAC,QAAQ;AAAA,IAClB,CAAC;AAAA,EACH,CAAC;AACH;AAKA,MAAM,gBAAgB,CACpB,UACA,aACA,cACY;AACZ,QAAM,EAAE,MAAM,IAAI,SAAS;AAC3B,SACE,MAAM,QAAQ,KACd,UAAU,QAAQ,IAAI,MAAM,OAAO,CAAC,MAAM,YAAY,OACtD,MAAM,OAAO,SAAS,YAAY,KAAK;AAE3C;AAEO,MAAM,uBAAuB,CAAC;AAAA,EACnC;AACF,MAAyD;AACvD,MAAI,CAAC,UAAU,OAAO;AACpB,WAAO;AAAA,EACT;AACA,QAAM,EAAE,OAAO,IAAI,UAAU;AAC7B,MAAI,CAAC,iBAAiB,MAAM,KAAK,OAAO,QAAQ,SAAS,GAAG;AAC1D,WAAO;AAAA,EACT;AACA,SAAO,EAAE,MAAM,QAAQ,KAAK,UAAU,MAAM,OAAO,EAAE;AACvD;",
4
+ "sourcesContent": ["import type { FontSizeData } from './../../ricos-schema/next-schema/index.js';\nimport { Mark_Type } from './../../ricos-types/index.js';\nimport { type FontSizeCommonConfig, formatFontSize } from './../../_shared/format-font-size.js';\nimport { combineTransactionSteps, getChangedRanges } from './../../tiptap/core/index.js';\nimport type { Node as ProseMirrorNode } from './../../tiptap/pm/model.js';\nimport type { EditorState, Transaction } from './../../tiptap/pm/state.js';\nimport { Plugin, PluginKey } from './../../tiptap/pm/state.js';\nimport type { Transform } from './../../tiptap/pm/transform.js';\nimport { Decoration, DecorationSet } from './../../tiptap/pm/view.js';\n\nimport { ListMarkerSelection } from '../list-item/list-marker-selection.js';\nimport { isSameBlockFontSize, isSizedTextblock, toBlockFontSize } from './block-font-size.js';\n\ntype Block = { node: ProseMirrorNode; pos: number };\n\n// Only blocks a transaction touched are visited, so loaded content is never rewritten\nexport const createBlockFontSizePlugin = (config?: FontSizeCommonConfig) => {\n const key = new PluginKey<DecorationSet>('block-font-size');\n\n return new Plugin<DecorationSet>({\n key,\n state: {\n init: (_config, state) => buildEmptyBlockDecorations(state.doc, config),\n apply: (tr, prev) => (tr.docChanged ? buildEmptyBlockDecorations(tr.doc, config) : prev),\n },\n props: {\n decorations(state) {\n return key.getState(state);\n },\n },\n appendTransaction: (transactions, oldState, newState) => {\n const tr = newState.tr;\n const transform = transactions.some(transaction => transaction.docChanged)\n ? combineTransactionSteps(oldState.doc, [...transactions])\n : undefined;\n\n if (transform) {\n sizeEmptiedBlocks(tr, oldState, newState, transform);\n }\n\n const cursorBlock = findEmptyCursorBlock(newState);\n let storedMarks = newState.storedMarks;\n\n if (cursorBlock && transform && leftBlockType(oldState, cursorBlock, transform)) {\n // The marks the new block would type at: the stored ones, or the ones `unique-id` carries\n // over from the old cursor when it ids the block (keep the fallback in sync with it).\n const { $from, $to } = oldState.selection;\n const carriedMarks = storedMarks ?? ($to.parentOffset ? $from.marks() : []);\n if (carriedMarks.some(mark => mark.type.name === Mark_Type.FONT_SIZE)) {\n storedMarks = carriedMarks.filter(mark => mark.type.name !== Mark_Type.FONT_SIZE);\n }\n if (cursorBlock.node.attrs.fontSize) {\n tr.setNodeAttribute(cursorBlock.pos, 'fontSize', null);\n }\n } else if (cursorBlock && transactions.some(transaction => transaction.storedMarksSet)) {\n const storedFontSize = toBlockFontSize(storedMarks);\n if (\n storedFontSize &&\n !isSameBlockFontSize(storedFontSize, cursorBlock.node.attrs.fontSize)\n ) {\n tr.setNodeAttribute(cursorBlock.pos, 'fontSize', storedFontSize);\n }\n }\n\n // Attribute steps keep positions, so the block can be re-read after `sizeEmptiedBlocks`\n const blockFontSize = cursorBlock && tr.doc.nodeAt(cursorBlock.pos)!.attrs.fontSize;\n const fontSizeMarkType = newState.schema.marks[Mark_Type.FONT_SIZE];\n if (blockFontSize && fontSizeMarkType && !fontSizeMarkType.isInSet(storedMarks ?? [])) {\n storedMarks = [...(storedMarks ?? []), fontSizeMarkType.create(blockFontSize)];\n }\n\n // Steps reset the transaction's stored marks; put back the ones the state already had.\n if (storedMarks && (tr.steps.length || storedMarks !== newState.storedMarks)) {\n tr.setStoredMarks(storedMarks);\n }\n\n return tr.steps.length || tr.storedMarksSet ? tr : undefined;\n },\n });\n};\n\n// Text renders at its own sizes, so only an empty block is styled with its own size\nconst buildEmptyBlockDecorations = (\n doc: ProseMirrorNode,\n config?: FontSizeCommonConfig\n): DecorationSet => {\n const decorations: Decoration[] = [];\n doc.descendants((node, pos) => {\n const fontSize: FontSizeData | null = node.attrs.fontSize;\n if (isSizedTextblock(node) && !node.content.size && fontSize) {\n decorations.push(\n Decoration.node(pos, pos + node.nodeSize, {\n // No trailing `;` — see indentation-styling.ts.\n style: `font-size: ${formatFontSize({ value: fontSize.value, unit: fontSize.unit?.toLowerCase() }, config)}`,\n })\n );\n }\n return !node.isTextblock;\n });\n return DecorationSet.create(doc, decorations);\n};\n\n// A block whose text was all deleted keeps the size its first character had; the block is looked up\n// from the old side, since a new empty block can sit where an old one started.\nconst sizeEmptiedBlocks = (\n tr: Transaction,\n oldState: EditorState,\n newState: EditorState,\n transform: Transform\n) => {\n const sized = new Set<number>();\n getChangedRanges(transform).forEach(({ oldRange }) => {\n oldState.doc.nodesBetween(oldRange.from, oldRange.to, (oldNode, oldPos) => {\n if (isSizedTextblock(oldNode) && oldNode.content.size) {\n const pos = transform.mapping.map(oldPos);\n const node = newState.doc.nodeAt(pos);\n if (node?.type === oldNode.type && !node.content.size && !sized.has(pos)) {\n sized.add(pos);\n const fontSize = toBlockFontSize(oldNode.firstChild?.marks);\n if (!isSameBlockFontSize(fontSize, node.attrs.fontSize)) {\n tr.setNodeAttribute(pos, 'fontSize', fontSize);\n }\n }\n }\n return !oldNode.isTextblock;\n });\n });\n};\n\n// Enter into a block of another type (heading → paragraph, blockquote → paragraph) starts at the\n// default size. The block the cursor left maps onto itself, so a toolbar toggle of the same block\n// or a split into the block's own type keeps the size.\nconst leftBlockType = (\n oldState: EditorState,\n cursorBlock: Block,\n transform: Transform\n): boolean => {\n const { $from } = oldState.selection;\n return (\n $from.depth > 0 &&\n transform.mapping.map($from.before()) !== cursorBlock.pos &&\n $from.parent.type !== cursorBlock.node.type\n );\n};\n\nexport const findEmptyCursorBlock = ({\n selection,\n}: Pick<EditorState, 'selection'>): Block | undefined => {\n // A marker selection's stored marks are the marker's style, not the block's.\n if (!selection.empty || selection instanceof ListMarkerSelection) {\n return undefined;\n }\n const { parent } = selection.$from;\n if (!isSizedTextblock(parent) || parent.content.size !== 0) {\n return undefined;\n }\n return { node: parent, pos: selection.$from.before() };\n};\n"],
5
+ "mappings": "AACA,SAAS,iBAAiB;AAC1B,SAAoC,sBAAsB;AAC1D,SAAS,yBAAyB,wBAAwB;AAG1D,SAAS,QAAQ,iBAAiB;AAElC,SAAS,YAAY,qBAAqB;AAE1C,SAAS,2BAA2B;AACpC,SAAS,qBAAqB,kBAAkB,uBAAuB;AAKhE,MAAM,4BAA4B,CAAC,WAAkC;AAC1E,QAAM,MAAM,IAAI,UAAyB,iBAAiB;AAE1D,SAAO,IAAI,OAAsB;AAAA,IAC/B;AAAA,IACA,OAAO;AAAA,MACL,MAAM,CAAC,SAAS,UAAU,2BAA2B,MAAM,KAAK,MAAM;AAAA,MACtE,OAAO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AAI,GAAG,GAAG;AACxE,gBAAM,IAAI,GAAG;AACb,gBAAM,WAAW,gBAAgB,QAAQ,YAAY,KAAK;AAC1D,cAAI,CAAC,oBAAoB,UAAU,KAAK,MAAM,QAAQ,GAAG;AACvD,eAAG,iBAAiB,KAAK,YAAY,QAAQ;AAAA,UAC/C;AAAA,QACF;AAAA,MACF;AACA,aAAO,CAAC,QAAQ;AAAA,IAClB,CAAC;AAAA,EACH,CAAC;AACH;AAKA,MAAM,gBAAgB,CACpB,UACA,aACA,cACY;AACZ,QAAM,EAAE,MAAM,IAAI,SAAS;AAC3B,SACE,MAAM,QAAQ,KACd,UAAU,QAAQ,IAAI,MAAM,OAAO,CAAC,MAAM,YAAY,OACtD,MAAM,OAAO,SAAS,YAAY,KAAK;AAE3C;AAEO,MAAM,uBAAuB,CAAC;AAAA,EACnC;AACF,MAAyD;AAEvD,MAAI,CAAC,UAAU,SAAS,qBAAqB,qBAAqB;AAChE,WAAO;AAAA,EACT;AACA,QAAM,EAAE,OAAO,IAAI,UAAU;AAC7B,MAAI,CAAC,iBAAiB,MAAM,KAAK,OAAO,QAAQ,SAAS,GAAG;AAC1D,WAAO;AAAA,EACT;AACA,SAAO,EAAE,MAAM,QAAQ,KAAK,UAAU,MAAM,OAAO,EAAE;AACvD;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
- var styleDataHash = "3693b1df";
1
+ var styleDataHash = "890766c2";
2
2
  const injectCss = (() => {
3
- var css = `._18KTQ{--wds-list-item-select-padding-horizontal-small:6px;--wds-list-item-select-padding-horizontal-medium:6px;--wds-list-item-select-padding-right-small:6px;--wds-list-item-select-padding-right-medium:6px}`;
3
+ var css = `.UVUdR{--wds-list-item-select-padding-horizontal-small:6px;--wds-list-item-select-padding-horizontal-medium:6px;--wds-list-item-select-padding-right-small:6px;--wds-list-item-select-padding-right-medium:6px}`;
4
4
  var isTest = typeof process !== "undefined" && process.env && false;
5
5
  if (isTest || !css || typeof document === "undefined") {
6
6
  return;
@@ -21,7 +21,7 @@ const injectCss = (() => {
21
21
  });
22
22
  injectCss();
23
23
  var font_size_dropdown_default = {
24
- "dropdown": "_18KTQ"
24
+ "dropdown": "UVUdR"
25
25
  };
26
26
  export {
27
27
  font_size_dropdown_default as default,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/ricos-common-plugins/font-size/dropdown/font-size-dropdown.scss"],
4
- "sourcesContent": ["var styleDataHash = '3693b1df'; \nexport const injectCss = (() => {\n var css = `._18KTQ{--wds-list-item-select-padding-horizontal-small:6px;--wds-list-item-select-padding-horizontal-medium:6px;--wds-list-item-select-padding-right-small:6px;--wds-list-item-select-padding-right-medium:6px}`;\n var isTest = typeof process !== 'undefined' && process.env && process.env['NODE_ENV'] === 'test';\n\n if (isTest || !css || typeof document === 'undefined') { return; }\n if (document.querySelector('style[data-ricos-style-hash=\"' + styleDataHash + '\"]')) { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.setAttribute('data-ricos-style-hash', styleDataHash);\n style.type = 'text/css';\n\n head.appendChild(style);\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n});\n\ninjectCss();\n\n\n\nexport default {\n \"dropdown\": \"_18KTQ\"\n};"],
4
+ "sourcesContent": ["var styleDataHash = '890766c2'; \nexport const injectCss = (() => {\n var css = `.UVUdR{--wds-list-item-select-padding-horizontal-small:6px;--wds-list-item-select-padding-horizontal-medium:6px;--wds-list-item-select-padding-right-small:6px;--wds-list-item-select-padding-right-medium:6px}`;\n var isTest = typeof process !== 'undefined' && process.env && process.env['NODE_ENV'] === 'test';\n\n if (isTest || !css || typeof document === 'undefined') { return; }\n if (document.querySelector('style[data-ricos-style-hash=\"' + styleDataHash + '\"]')) { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.setAttribute('data-ricos-style-hash', styleDataHash);\n style.type = 'text/css';\n\n head.appendChild(style);\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n});\n\ninjectCss();\n\n\n\nexport default {\n \"dropdown\": \"UVUdR\"\n};"],
5
5
  "mappings": "AAAA,IAAI,gBAAgB;AACb,MAAM,aAAa,MAAM;AAC9B,MAAI,MAAM;AACV,MAAI,SAAS,OAAO,YAAY,eAAe,QAAQ,OAAO;AAE9D,MAAI,UAAU,CAAC,OAAO,OAAO,aAAa,aAAa;AAAE;AAAA,EAAQ;AACjE,MAAI,SAAS,cAAc,kCAAkC,gBAAgB,IAAI,GAAG;AAAE;AAAA,EAAQ;AAE9F,MAAI,OAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,MAAI,QAAQ,SAAS,cAAc,OAAO;AAC1C,QAAM,aAAa,yBAAyB,aAAa;AACzD,QAAM,OAAO;AAEb,OAAK,YAAY,KAAK;AAEtB,MAAI,MAAM,YAAY;AACpB,UAAM,WAAW,UAAU;AAAA,EAC7B,OAAO;AACL,UAAM,YAAY,SAAS,eAAe,GAAG,CAAC;AAAA,EAChD;AACF;AAEA,UAAU;AAIV,IAAO,6BAAQ;AAAA,EACb,YAAY;AACd;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
- var styleDataHash = "40cfa778";
1
+ var styleDataHash = "ecc8c27a";
2
2
  const injectCss = (() => {
3
- var css = `.u9tWd,.ufTTK{cursor:pointer;height:14px;margin:0;padding:0;pointer-events:auto;position:relative;width:100%}.u9tWd:not(.rHRUK):hover .JPYef,.ufTTK:not(.rHRUK):hover .JPYef{opacity:1}.rHRUK.ufTTK,.u9tWd.rHRUK{cursor:auto;height:0;pointer-events:none}.ufTTK{cursor:none;pointer-events:none}._7Z4hq .JPYef{opacity:1}.JPYef{background-color:#116dff;height:2px;opacity:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;width:100%;z-index:1000000}.JPYef:after,.JPYef:before{background-color:#116dff;content:"";height:3px;left:0;opacity:.3;position:absolute;width:100%}.JPYef:before{top:-3px}.JPYef:after{bottom:-3px}.ZTWYS{background:var(--wds-tooltip-background-fill,var(--wsr-color-D10,#000624));border-radius:var(--wds-tooltip-border-radius,8px);box-shadow:var(--wds-shadow-surface-overlay-dark,var(--wsr-shadow30,0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12)));color:var(--wds-tooltip-text-fill,var(--wsr-color-D80,#fff));font-family:var(--wds-font-family-default,var(--wsr-font-family,Madefor,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA","meiryo","\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif));font-size:var(--wds-font-size-body-tiny,var(--wsr-text-font-size-tiny,12px));font-weight:var(--wds-font-weight-regular,var(--wsr-font-weight-regular,400));letter-spacing:var(--wds-font-letter-spacing-0,unset);line-height:var(--wds-font-line-height-body-tiny,var(--wsr-text-line-height-tiny,15px));padding:var(--wds-tooltip-padding-vertical-small,8px) var(--wds-tooltip-padding-horizontal-small,12px) var(--wds-tooltip-padding-vertical-small,7px);position:absolute;word-wrap:break-word;border:none;max-width:180px;opacity:0;pointer-events:none;transform:translateX(-50%) translateY(-100%) scale(.8);transition:opacity .15s ease-out,transform .15s ease-out;word-break:break-word;z-index:1000000}._14CJn{display:none}@supports not (contain:inline-size){@media only screen and (max-width:480px){._14CJn{display:block}}}@container (width < 480px){._14CJn:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){display:block}}@media (width < 480px){._14CJn:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) ._14CJn{display:block}}.mrDgD{margin-top:14px}`;
3
+ var css = `.l6FGw,.u5XLW{cursor:pointer;height:14px;margin:0;padding:0;pointer-events:auto;position:relative;width:100%}.l6FGw:not(.uqgfF):hover .Sp23k,.u5XLW:not(.uqgfF):hover .Sp23k{opacity:1}.l6FGw.uqgfF,.uqgfF.u5XLW{cursor:auto;height:0;pointer-events:none}.u5XLW{cursor:none;pointer-events:none}.O-rOR .Sp23k{opacity:1}.Sp23k{background-color:#116dff;height:2px;opacity:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;width:100%;z-index:1000000}.Sp23k:after,.Sp23k:before{background-color:#116dff;content:"";height:3px;left:0;opacity:.3;position:absolute;width:100%}.Sp23k:before{top:-3px}.Sp23k:after{bottom:-3px}._7p5BX{background:var(--wds-tooltip-background-fill,var(--wsr-color-D10,#000624));border-radius:var(--wds-tooltip-border-radius,8px);box-shadow:var(--wds-shadow-surface-overlay-dark,var(--wsr-shadow30,0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12)));color:var(--wds-tooltip-text-fill,var(--wsr-color-D80,#fff));font-family:var(--wds-font-family-default,var(--wsr-font-family,Madefor,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA","meiryo","\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif));font-size:var(--wds-font-size-body-tiny,var(--wsr-text-font-size-tiny,12px));font-weight:var(--wds-font-weight-regular,var(--wsr-font-weight-regular,400));letter-spacing:var(--wds-font-letter-spacing-0,unset);line-height:var(--wds-font-line-height-body-tiny,var(--wsr-text-line-height-tiny,15px));padding:var(--wds-tooltip-padding-vertical-small,8px) var(--wds-tooltip-padding-horizontal-small,12px) var(--wds-tooltip-padding-vertical-small,7px);position:absolute;word-wrap:break-word;border:none;max-width:180px;opacity:0;pointer-events:none;transform:translateX(-50%) translateY(-100%) scale(.8);transition:opacity .15s ease-out,transform .15s ease-out;word-break:break-word;z-index:1000000}.wUldk{display:none}@supports not (contain:inline-size){@media only screen and (max-width:480px){.wUldk{display:block}}}@container (width < 480px){.wUldk:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){display:block}}@media (width < 480px){.wUldk:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .wUldk{display:block}}._7eKCz{margin-top:14px}`;
4
4
  var isTest = typeof process !== "undefined" && process.env && false;
5
5
  if (isTest || !css || typeof document === "undefined") {
6
6
  return;
@@ -21,14 +21,14 @@ const injectCss = (() => {
21
21
  });
22
22
  injectCss();
23
23
  var gap_spacer_styles_default = {
24
- "gapSpacerContainer": "u9tWd",
25
- "gapSpacerViewer": "ufTTK",
26
- "collapsed": "rHRUK",
27
- "gapSpacerLine": "JPYef",
28
- "gapSpacerFocused": "_7Z4hq",
29
- "gapSpacerTooltip": "ZTWYS",
30
- "betweenFloated": "_14CJn",
31
- "withTopMargin": "mrDgD"
24
+ "gapSpacerContainer": "l6FGw",
25
+ "gapSpacerViewer": "u5XLW",
26
+ "collapsed": "uqgfF",
27
+ "gapSpacerLine": "Sp23k",
28
+ "gapSpacerFocused": "O-rOR",
29
+ "gapSpacerTooltip": "_7p5BX",
30
+ "betweenFloated": "wUldk",
31
+ "withTopMargin": "_7eKCz"
32
32
  };
33
33
  export {
34
34
  gap_spacer_styles_default as default,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles.scss"],
4
- "sourcesContent": ["var styleDataHash = '40cfa778'; \nexport const injectCss = (() => {\n var css = `.u9tWd,.ufTTK{cursor:pointer;height:14px;margin:0;padding:0;pointer-events:auto;position:relative;width:100%}.u9tWd:not(.rHRUK):hover .JPYef,.ufTTK:not(.rHRUK):hover .JPYef{opacity:1}.rHRUK.ufTTK,.u9tWd.rHRUK{cursor:auto;height:0;pointer-events:none}.ufTTK{cursor:none;pointer-events:none}._7Z4hq .JPYef{opacity:1}.JPYef{background-color:#116dff;height:2px;opacity:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;width:100%;z-index:1000000}.JPYef:after,.JPYef:before{background-color:#116dff;content:\"\";height:3px;left:0;opacity:.3;position:absolute;width:100%}.JPYef:before{top:-3px}.JPYef:after{bottom:-3px}.ZTWYS{background:var(--wds-tooltip-background-fill,var(--wsr-color-D10,#000624));border-radius:var(--wds-tooltip-border-radius,8px);box-shadow:var(--wds-shadow-surface-overlay-dark,var(--wsr-shadow30,0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12)));color:var(--wds-tooltip-text-fill,var(--wsr-color-D80,#fff));font-family:var(--wds-font-family-default,var(--wsr-font-family,Madefor,\"Helvetica Neue\",Helvetica,Arial,\"\\\\30E1\\\\30A4\\\\30EA\\\\30AA\",\"meiryo\",\"\\\\30D2\\\\30E9\\\\30AE\\\\30CE\\\\89D2\\\\30B4 pro w3\",\"hiragino kaku gothic pro\",sans-serif));font-size:var(--wds-font-size-body-tiny,var(--wsr-text-font-size-tiny,12px));font-weight:var(--wds-font-weight-regular,var(--wsr-font-weight-regular,400));letter-spacing:var(--wds-font-letter-spacing-0,unset);line-height:var(--wds-font-line-height-body-tiny,var(--wsr-text-line-height-tiny,15px));padding:var(--wds-tooltip-padding-vertical-small,8px) var(--wds-tooltip-padding-horizontal-small,12px) var(--wds-tooltip-padding-vertical-small,7px);position:absolute;word-wrap:break-word;border:none;max-width:180px;opacity:0;pointer-events:none;transform:translateX(-50%) translateY(-100%) scale(.8);transition:opacity .15s ease-out,transform .15s ease-out;word-break:break-word;z-index:1000000}._14CJn{display:none}@supports not (contain:inline-size){@media only screen and (max-width:480px){._14CJn{display:block}}}@container (width < 480px){._14CJn:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){display:block}}@media (width < 480px){._14CJn:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) ._14CJn{display:block}}.mrDgD{margin-top:14px}`;\n var isTest = typeof process !== 'undefined' && process.env && process.env['NODE_ENV'] === 'test';\n\n if (isTest || !css || typeof document === 'undefined') { return; }\n if (document.querySelector('style[data-ricos-style-hash=\"' + styleDataHash + '\"]')) { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.setAttribute('data-ricos-style-hash', styleDataHash);\n style.type = 'text/css';\n\n head.appendChild(style);\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n});\n\ninjectCss();\n\n\n\nexport default {\n \"gapSpacerContainer\": \"u9tWd\",\n \"gapSpacerViewer\": \"ufTTK\",\n \"collapsed\": \"rHRUK\",\n \"gapSpacerLine\": \"JPYef\",\n \"gapSpacerFocused\": \"_7Z4hq\",\n \"gapSpacerTooltip\": \"ZTWYS\",\n \"betweenFloated\": \"_14CJn\",\n \"withTopMargin\": \"mrDgD\"\n};"],
4
+ "sourcesContent": ["var styleDataHash = 'ecc8c27a'; \nexport const injectCss = (() => {\n var css = `.l6FGw,.u5XLW{cursor:pointer;height:14px;margin:0;padding:0;pointer-events:auto;position:relative;width:100%}.l6FGw:not(.uqgfF):hover .Sp23k,.u5XLW:not(.uqgfF):hover .Sp23k{opacity:1}.l6FGw.uqgfF,.uqgfF.u5XLW{cursor:auto;height:0;pointer-events:none}.u5XLW{cursor:none;pointer-events:none}.O-rOR .Sp23k{opacity:1}.Sp23k{background-color:#116dff;height:2px;opacity:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;width:100%;z-index:1000000}.Sp23k:after,.Sp23k:before{background-color:#116dff;content:\"\";height:3px;left:0;opacity:.3;position:absolute;width:100%}.Sp23k:before{top:-3px}.Sp23k:after{bottom:-3px}._7p5BX{background:var(--wds-tooltip-background-fill,var(--wsr-color-D10,#000624));border-radius:var(--wds-tooltip-border-radius,8px);box-shadow:var(--wds-shadow-surface-overlay-dark,var(--wsr-shadow30,0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12)));color:var(--wds-tooltip-text-fill,var(--wsr-color-D80,#fff));font-family:var(--wds-font-family-default,var(--wsr-font-family,Madefor,\"Helvetica Neue\",Helvetica,Arial,\"\\\\30E1\\\\30A4\\\\30EA\\\\30AA\",\"meiryo\",\"\\\\30D2\\\\30E9\\\\30AE\\\\30CE\\\\89D2\\\\30B4 pro w3\",\"hiragino kaku gothic pro\",sans-serif));font-size:var(--wds-font-size-body-tiny,var(--wsr-text-font-size-tiny,12px));font-weight:var(--wds-font-weight-regular,var(--wsr-font-weight-regular,400));letter-spacing:var(--wds-font-letter-spacing-0,unset);line-height:var(--wds-font-line-height-body-tiny,var(--wsr-text-line-height-tiny,15px));padding:var(--wds-tooltip-padding-vertical-small,8px) var(--wds-tooltip-padding-horizontal-small,12px) var(--wds-tooltip-padding-vertical-small,7px);position:absolute;word-wrap:break-word;border:none;max-width:180px;opacity:0;pointer-events:none;transform:translateX(-50%) translateY(-100%) scale(.8);transition:opacity .15s ease-out,transform .15s ease-out;word-break:break-word;z-index:1000000}.wUldk{display:none}@supports not (contain:inline-size){@media only screen and (max-width:480px){.wUldk{display:block}}}@container (width < 480px){.wUldk:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){display:block}}@media (width < 480px){.wUldk:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .wUldk{display:block}}._7eKCz{margin-top:14px}`;\n var isTest = typeof process !== 'undefined' && process.env && process.env['NODE_ENV'] === 'test';\n\n if (isTest || !css || typeof document === 'undefined') { return; }\n if (document.querySelector('style[data-ricos-style-hash=\"' + styleDataHash + '\"]')) { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.setAttribute('data-ricos-style-hash', styleDataHash);\n style.type = 'text/css';\n\n head.appendChild(style);\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n});\n\ninjectCss();\n\n\n\nexport default {\n \"gapSpacerContainer\": \"l6FGw\",\n \"gapSpacerViewer\": \"u5XLW\",\n \"collapsed\": \"uqgfF\",\n \"gapSpacerLine\": \"Sp23k\",\n \"gapSpacerFocused\": \"O-rOR\",\n \"gapSpacerTooltip\": \"_7p5BX\",\n \"betweenFloated\": \"wUldk\",\n \"withTopMargin\": \"_7eKCz\"\n};"],
5
5
  "mappings": "AAAA,IAAI,gBAAgB;AACb,MAAM,aAAa,MAAM;AAC9B,MAAI,MAAM;AACV,MAAI,SAAS,OAAO,YAAY,eAAe,QAAQ,OAAO;AAE9D,MAAI,UAAU,CAAC,OAAO,OAAO,aAAa,aAAa;AAAE;AAAA,EAAQ;AACjE,MAAI,SAAS,cAAc,kCAAkC,gBAAgB,IAAI,GAAG;AAAE;AAAA,EAAQ;AAE9F,MAAI,OAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,MAAI,QAAQ,SAAS,cAAc,OAAO;AAC1C,QAAM,aAAa,yBAAyB,aAAa;AACzD,QAAM,OAAO;AAEb,OAAK,YAAY,KAAK;AAEtB,MAAI,MAAM,YAAY;AACpB,UAAM,WAAW,UAAU;AAAA,EAC7B,OAAO;AACL,UAAM,YAAY,SAAS,eAAe,GAAG,CAAC;AAAA,EAChD;AACF;AAEA,UAAU;AAIV,IAAO,4BAAQ;AAAA,EACb,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAClB,iBAAiB;AACnB;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
- var styleDataHash = "06f4c060";
1
+ var styleDataHash = "2374b84e";
2
2
  const injectCss = (() => {
3
- var css = `.fGySc{inset:0;overflow:hidden;pointer-events:none;position:absolute;z-index:1}.gJbC5{left:0;pointer-events:none;position:absolute;right:0}.ZlH1B{background-color:var(--ricos-internal-layout-top-divider-color,currentColor);top:0;transform:scale(var(--ricos-internal-layout-top-divider-flip,1),-1)}.mbQfT{background-color:var(--ricos-internal-layout-bottom-divider-color,currentColor);bottom:0;transform:scaleX(var(--ricos-internal-layout-bottom-divider-flip,1))}._2hEBU{--ricos-internal-layout-cell-outline-color:#a8caff;background:var(--ricos-internal-layout-backdrop-gradient,var(--ricos-internal-layout-backdrop-color,transparent));outline:1.5px solid transparent;padding-bottom:var(--ricos-internal-layout-backdrop-padding-bottom,0);padding-top:var(--ricos-internal-layout-backdrop-padding-top,0);position:relative}._2hEBU.dyS04,._2hEBU:hover{outline-color:var(--ricos-internal-layout-cell-outline-color)}._2hEBU:hover .hIoPS ._1RZ4g{outline-color:var(--ricos-internal-layout-cell-outline-color)}._2hEBU:before{background-image:var(--ricos-internal-layout-backdrop-image-src);background-position:var(--ricos-internal-layout-backdrop-image-position);background-repeat:no-repeat;background-size:var(--ricos-internal-layout-backdrop-image-scaling);bottom:0;clip-path:inset(0);content:"";filter:var(--ricos-internal-layout-backdrop-image-blur,none);left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:0}._2hEBU:after{background:var(--ricos-internal-layout-backdrop-overlay,transparent);bottom:0;clip-path:inset(0);content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}._2hEBU.Op-26{margin:0}*+._2hEBU{margin-top:20px}._2hEBU ._6JmnB{display:none}._2hEBU .k8eQt:has(.-kglS.E9VVp)+._6JmnB,._2hEBU .k8eQt:has(.-kglS.KUC93)+._6JmnB,._2hEBU .k8eQt:has(.-kglS.NC-1P)+._6JmnB,._2hEBU .k8eQt:has(.-kglS.OCcYb)+._6JmnB{display:block}._2hEBU ._1yrFl{align-items:center;background:#fff;border:1px solid #dfe5eb;border-radius:50%;bottom:-12px;box-shadow:0 2px 4px 0 rgba(23,25,28,.1);cursor:grab;display:flex;height:24px;justify-content:center;left:50%;padding:0;position:absolute;transform:translate(-50%,100%);width:24px;z-index:4}._2hEBU ._1yrFl:active{cursor:grabbing}._2hEBU.kQ1lV{margin-top:0}._2hEBU .hGb5r{background:#116dff;bottom:0;left:calc(var(--ricos-internal-layout-drop-cursor-position) - 1px);position:absolute;top:0;width:2px;z-index:5}._2hEBU .hGb5r:before{border:2px solid #116dff;border-radius:50%;content:"";height:6px;left:-2px;position:absolute;top:-5px;width:6px}._2hEBU.P9adx{outline-color:transparent!important}._2hEBU.P9adx:hover,._2hEBU.P9adx:hover .hIoPS ._1RZ4g{outline-color:transparent!important}._2hEBU.P9adx .TKPSi,._2hEBU.P9adx ._4Mqcv,._2hEBU.P9adx ._6JmnB{display:none!important}._2hEBU.AsoHU:has(.Oca1l){margin-bottom:40px}._2hEBU.AsoHU[data-breakout=normal]{--ricos-internal-paywall-divider-outer-start:var(--ricos-breakout-normal-padding-start,0);--ricos-internal-paywall-divider-outer-end:var(--ricos-breakout-normal-padding-end,0)}._2hEBU.AsoHU[data-breakout=fullWidth]{--ricos-internal-paywall-divider-outer-start:var(--ricos-breakout-full-width-padding-start,0);--ricos-internal-paywall-divider-outer-end:var(--ricos-breakout-full-width-padding-end,0)}._2hEBU.AsoHU .Oca1l{align-items:center;color:var(--ricos-text-color-low,#646464);display:flex;font-size:12px;font-weight:500;gap:6px;inset-inline-end:var(--ricos-internal-paywall-divider-outer-end,0);inset-inline-start:var(--ricos-internal-paywall-divider-outer-start,0);line-height:18px;margin-top:12px;padding-inline-end:var(--ricos-breakout-normal-padding-end,0);padding-inline-start:var(--ricos-breakout-normal-padding-start,0);pointer-events:none;position:absolute;text-transform:uppercase;top:100%;user-select:none}._2hEBU.AsoHU .Oca1l:after,._2hEBU.AsoHU .Oca1l:before{background:rgba(var(--ricos-text-color-tuple,33,33,33),.15);content:"";flex:1;height:1px}._2hEBU.AsoHU .z7g2X{align-items:center;display:flex;gap:3px;padding-inline-end:6px;white-space:nowrap}._2hEBU.AsoHU .I0xKQ{flex-shrink:0}.k8eQt{--ricos-internal-layout-display:grid;--ricos-internal-layout-handler-cursor:col-resize;--ricos-internal-layout-handler-color:#116dff;clear:both;margin:0 auto;position:relative;width:min(100%,var(--ricos-internal-resize-width,var(--ricos-internal-layout-width,initial)));z-index:2}.-kglS{display:var(--ricos-internal-layout-display,grid);flex-wrap:wrap;gap:var(--ricos-internal-layout-gap,20px);grid-template-columns:var(--ricos-internal-layout-grid-template,var(--ricos-internal-layout-column-template));justify-content:var(--ricos-internal-layout-justify-content,auto);position:relative;transition:grid-template-columns .1s ease-out;width:100%;will-change:grid-template-columns;z-index:2}[data-layout-banner] .-kglS{grid-template-columns:var(--ricos-internal-layout-column-template)!important}[data-layout-banner] .-kglS.KUC93{transition:none!important}.-kglS.L2WbI,.-kglS._37Xd6 .hIoPS{background:var(--ricos-internal-layout-background-gradient,var(--ricos-internal-layout-background-color,transparent));border:var(--ricos-internal-layout-border-width,0) solid var(--ricos-internal-layout-border-color);border-radius:var(--ricos-internal-layout-border-radius,0)}.-kglS.L2WbI:before,.-kglS._37Xd6 .hIoPS:before{background-image:var(--ricos-internal-layout-background-image-src);background-position:var(--ricos-internal-layout-background-image-position);background-repeat:no-repeat;background-size:var(--ricos-internal-layout-background-image-scaling);bottom:0;clip-path:inset(0 round var(--ricos-internal-layout-border-radius,0));content:"";filter:var(--ricos-internal-layout-background-image-blur,none);left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:0}.-kglS.L2WbI:after,.-kglS._37Xd6 .hIoPS:after{background:var(--ricos-internal-layout-background-overlay,transparent);bottom:0;clip-path:inset(0 round var(--ricos-internal-layout-border-radius,0));content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@supports not (contain:inline-size){@media only screen and (max-width:480px){.-kglS{gap:min(20px,var(--ricos-internal-layout-gap,20px))}}}@container (width < 480px){.-kglS:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){gap:min(20px,var(--ricos-internal-layout-gap,20px))}}@media (width < 480px){.-kglS:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .-kglS{gap:min(20px,var(--ricos-internal-layout-gap,20px))}}.-kglS.BVCHR{--ricos-internal-layout-display:flex;--ricos-internal-layout-justify-content:center;--ricos-internal-layout-cell-min-width:100%;--ricos-internal-layout-cell-height:auto}.-kglS.BVCHR .TKPSi{display:none}.-kglS.KUC93{transition:none!important}.-kglS.KUC93,.-kglS.KUC93 *{user-select:none!important}.-kglS.a227I{--ricos-layout-handler-color:#e62214;--ricos-layout-handler-cursor:e-resize}.-kglS.dJ3l8{--ricos-layout-handler-color:#e62214;--ricos-layout-handler-cursor:w-resize}.-kglS.KUC93 .hIoPS ._1RZ4g,.-kglS.NC-1P .hIoPS ._1RZ4g,.-kglS.OCcYb .hIoPS ._1RZ4g,.-kglS.ke7NY .hIoPS ._1RZ4g,.-kglS:focus .hIoPS ._1RZ4g,.-kglS:hover .hIoPS ._1RZ4g{outline-color:var(--ricos-internal-layout-cell-outline-color)}.-kglS .hIoPS{display:flex;flex-direction:column;height:var(--ricos-internal-layout-cell-height,100%);max-width:var(--ricos-internal-layout-cell-min-width,auto);min-width:min(100%,var(--ricos-internal-layout-cell-min-width,0));position:relative;z-index:3}.-kglS .hIoPS ._1RZ4g{display:flex;flex-direction:column;flex-grow:1;justify-content:var(--ricos-internal-layout-cell-vertical-alignment);outline:1.5px solid transparent;padding:var(--ricos-internal-layout-cell-padding-top,12px) var(--ricos-internal-layout-cell-padding-right,0) var(--ricos-internal-layout-cell-padding-bottom,12px) var(--ricos-internal-layout-cell-padding-left,0);position:relative;z-index:2}@supports not (contain:inline-size){@media only screen and (max-width:480px){.-kglS .hIoPS ._1RZ4g{padding:min(16px,var(--ricos-internal-layout-cell-padding-top,16px)) min(16px,var(--ricos-internal-layout-cell-padding-right,16px)) min(16px,var(--ricos-internal-layout-cell-padding-bottom,16px)) min(16px,var(--ricos-internal-layout-cell-padding-left,16px))}}}@container (width < 480px){.-kglS .hIoPS ._1RZ4g:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){padding:min(16px,var(--ricos-internal-layout-cell-padding-top,16px)) min(16px,var(--ricos-internal-layout-cell-padding-right,16px)) min(16px,var(--ricos-internal-layout-cell-padding-bottom,16px)) min(16px,var(--ricos-internal-layout-cell-padding-left,16px))}}@media (width < 480px){.-kglS .hIoPS ._1RZ4g:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .-kglS .hIoPS ._1RZ4g{padding:min(16px,var(--ricos-internal-layout-cell-padding-top,16px)) min(16px,var(--ricos-internal-layout-cell-padding-right,16px)) min(16px,var(--ricos-internal-layout-cell-padding-bottom,16px)) min(16px,var(--ricos-internal-layout-cell-padding-left,16px))}}.-kglS .hIoPS ._4Mqcv{align-items:center;background:#fff;border-radius:18px;box-shadow:0 0 6px rgba(0,6,36,.05);box-shadow:0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);color:#000624;cursor:grab;display:none;height:18px;justify-content:center;left:50%;margin:0;outline:1px solid rgba(0,6,36,.302);padding:0 12px;position:absolute;top:0;transform:translate(-50%,-50%);transition:color .15s ease,background-color .15s ease;width:42px;z-index:3}.-kglS .hIoPS ._4Mqcv:hover{background:#116dff;box-shadow:0 0 0 2px rgba(0,6,36,.1),0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);color:#fff;outline-color:#fff;outline-width:1.5px}.-kglS .hIoPS ._4Mqcv:active{background:#0f62e6;box-shadow:0 0 0 2px rgba(0,6,36,.1),0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);color:#fff;outline-color:#fff;outline-width:1.5px}.-kglS .hIoPS ._4Mqcv:active{cursor:grabbing}.-kglS .hIoPS ._4Mqcv:before{bottom:-1px;content:"";height:1px;left:0;position:absolute;right:0}.-kglS.OCcYb:after{background-color:rgba(17,109,255,.1);bottom:0;content:"";left:0;opacity:1;outline:1.5px solid #116dff;pointer-events:none;position:absolute;right:0;top:0;z-index:2}.-kglS.OCcYb .hIoPS ._1RZ4g{outline-color:rgba(17,109,255,.2)}.-kglS.OCcYb .hIoPS ._4Mqcv{display:none}.-kglS .hIoPS.l1-S5{background-color:rgba(17,109,255,.1);z-index:4}.-kglS .hIoPS.l1-S5 ._1RZ4g{outline-color:#116dff}.-kglS .hIoPS.l1-S5 ._4Mqcv{background:#116dff;box-shadow:0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);color:#fff;outline:none;transition:color .15s ease,background-color .15s ease}.-kglS .hIoPS.l1-S5 ._4Mqcv:hover{background:#0f62e6;color:#fff}.-kglS .hIoPS.l1-S5 ._4Mqcv:active{background:#084ebd;color:#fff}.-kglS .hIoPS.l1-S5 .ricos-selection,.-kglS .hIoPS.l1-S5 ::selection,.-kglS.KUC93 .hIoPS .ricos-selection,.-kglS.KUC93 .hIoPS ::selection,.-kglS.OCcYb .hIoPS .ricos-selection,.-kglS.OCcYb .hIoPS ::selection{background-color:transparent!important}.-kglS.KUC93 .ricos-selection,.-kglS.OCcYb .ricos-selection{background-color:transparent!important}.-kglS.KUC93 ._4Mqcv,.-kglS.NC-1P ._4Mqcv,.-kglS.OCcYb ._4Mqcv,.-kglS.ke7NY ._4Mqcv{display:flex;z-index:4}.TKPSi{--ricos-internal-resize-handler-width:max(15px,var(--ricos-internal-layout-gap,0px));--ricos-internal-resize-handler-background-start:calc(50% - 1px);--ricos-internal-resize-handler-background-end:calc(50% + 1px);bottom:-1px;display:flex;left:calc(var(--ricos-internal-resize-handler-width)/2*-1);position:absolute!important;top:0;transform:translateX(max(-50%,var(--ricos-internal-layout-gap,0px)/2 * -1));width:var(--ricos-internal-resize-handler-width);z-index:3}.-kglS:not(.KUC93) .TKPSi:hover,.TKPSi:active{background:linear-gradient(90deg,transparent,transparent var(--ricos-internal-resize-handler-background-start),var(--ricos-internal-layout-handler-color) var(--ricos-internal-resize-handler-background-start),var(--ricos-internal-layout-handler-color) var(--ricos-internal-resize-handler-background-end),transparent var(--ricos-internal-resize-handler-background-end));cursor:var(--ricos-internal-layout-handler-cursor)}`;
3
+ var css = `._66eB-{inset:0;overflow:hidden;pointer-events:none;position:absolute;z-index:1}.Riy07{left:0;pointer-events:none;position:absolute;right:0}.z9hDj{background-color:var(--ricos-internal-layout-top-divider-color,currentColor);top:0;transform:scale(var(--ricos-internal-layout-top-divider-flip,1),-1)}.-PfwV{background-color:var(--ricos-internal-layout-bottom-divider-color,currentColor);bottom:0;transform:scaleX(var(--ricos-internal-layout-bottom-divider-flip,1))}.g3jqy{--ricos-internal-layout-cell-outline-color:#a8caff;background:var(--ricos-internal-layout-backdrop-gradient,var(--ricos-internal-layout-backdrop-color,transparent));outline:1.5px solid transparent;padding-bottom:var(--ricos-internal-layout-backdrop-padding-bottom,0);padding-top:var(--ricos-internal-layout-backdrop-padding-top,0);position:relative}.g3jqy.NLxxy,.g3jqy:hover{outline-color:var(--ricos-internal-layout-cell-outline-color)}.g3jqy:hover .LXhQo .sJoD7{outline-color:var(--ricos-internal-layout-cell-outline-color)}.g3jqy:before{background-image:var(--ricos-internal-layout-backdrop-image-src);background-position:var(--ricos-internal-layout-backdrop-image-position);background-repeat:no-repeat;background-size:var(--ricos-internal-layout-backdrop-image-scaling);bottom:0;clip-path:inset(0);content:"";filter:var(--ricos-internal-layout-backdrop-image-blur,none);left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:0}.g3jqy:after{background:var(--ricos-internal-layout-backdrop-overlay,transparent);bottom:0;clip-path:inset(0);content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.g3jqy._1w-QL{margin:0}*+.g3jqy{margin-top:20px}.g3jqy ._0CXdh{display:none}.g3jqy .fo-2y:has(._86l-h.-TR33)+._0CXdh,.g3jqy .fo-2y:has(._86l-h.IOEk3)+._0CXdh,.g3jqy .fo-2y:has(._86l-h.qu8DS)+._0CXdh,.g3jqy .fo-2y:has(._86l-h.uPh5f)+._0CXdh{display:block}.g3jqy .R70Fl{align-items:center;background:#fff;border:1px solid #dfe5eb;border-radius:50%;bottom:-12px;box-shadow:0 2px 4px 0 rgba(23,25,28,.1);cursor:grab;display:flex;height:24px;justify-content:center;left:50%;padding:0;position:absolute;transform:translate(-50%,100%);width:24px;z-index:4}.g3jqy .R70Fl:active{cursor:grabbing}.g3jqy.V9g-a{margin-top:0}.g3jqy .WOvbV{background:#116dff;bottom:0;left:calc(var(--ricos-internal-layout-drop-cursor-position) - 1px);position:absolute;top:0;width:2px;z-index:5}.g3jqy .WOvbV:before{border:2px solid #116dff;border-radius:50%;content:"";height:6px;left:-2px;position:absolute;top:-5px;width:6px}.g3jqy.AkvId{outline-color:transparent!important}.g3jqy.AkvId:hover,.g3jqy.AkvId:hover .LXhQo .sJoD7{outline-color:transparent!important}.g3jqy.AkvId .TA2qb,.g3jqy.AkvId ._0CXdh,.g3jqy.AkvId .s-HOq{display:none!important}.g3jqy._0g1oE:has(.a6QWv){margin-bottom:40px}.g3jqy._0g1oE[data-breakout=normal]{--ricos-internal-paywall-divider-outer-start:var(--ricos-breakout-normal-padding-start,0);--ricos-internal-paywall-divider-outer-end:var(--ricos-breakout-normal-padding-end,0)}.g3jqy._0g1oE[data-breakout=fullWidth]{--ricos-internal-paywall-divider-outer-start:var(--ricos-breakout-full-width-padding-start,0);--ricos-internal-paywall-divider-outer-end:var(--ricos-breakout-full-width-padding-end,0)}.g3jqy._0g1oE .a6QWv{align-items:center;color:var(--ricos-text-color,#212121);display:flex;font-size:12px;font-weight:500;gap:6px;inset-inline-end:var(--ricos-internal-paywall-divider-outer-end,0);inset-inline-start:var(--ricos-internal-paywall-divider-outer-start,0);line-height:18px;margin-top:12px;padding-inline-end:var(--ricos-breakout-normal-padding-end,0);padding-inline-start:var(--ricos-breakout-normal-padding-start,0);pointer-events:none;position:absolute;text-transform:uppercase;top:100%;user-select:none}.g3jqy._0g1oE .a6QWv:after,.g3jqy._0g1oE .a6QWv:before{background:rgba(var(--ricos-text-color-tuple,33,33,33),.2);content:"";flex:1;height:1px}@supports (color:rgb(from #000 r g b/0.1)){.g3jqy._0g1oE .a6QWv:after,.g3jqy._0g1oE .a6QWv:before{background:rgb(from var(--ricos-text-color,#212121) r g b/.2)}}.g3jqy._0g1oE .xU84W{align-items:center;display:flex;gap:3px;padding-inline-end:6px;white-space:nowrap}.g3jqy._0g1oE .hMh-8{flex-shrink:0}.fo-2y{--ricos-internal-layout-display:grid;--ricos-internal-layout-handler-cursor:col-resize;--ricos-internal-layout-handler-color:#116dff;clear:both;margin:0 auto;position:relative;width:min(100%,var(--ricos-internal-resize-width,var(--ricos-internal-layout-width,initial)));z-index:2}._86l-h{display:var(--ricos-internal-layout-display,grid);flex-wrap:wrap;gap:var(--ricos-internal-layout-gap,20px);grid-template-columns:var(--ricos-internal-layout-grid-template,var(--ricos-internal-layout-column-template));justify-content:var(--ricos-internal-layout-justify-content,auto);position:relative;transition:grid-template-columns .1s ease-out;width:100%;will-change:grid-template-columns;z-index:2}[data-layout-banner] ._86l-h{grid-template-columns:var(--ricos-internal-layout-column-template)!important}[data-layout-banner] ._86l-h.uPh5f{transition:none!important}._86l-h._1-P2H,._86l-h.ay8D- .LXhQo{background:var(--ricos-internal-layout-background-gradient,var(--ricos-internal-layout-background-color,transparent));border:var(--ricos-internal-layout-border-width,0) solid var(--ricos-internal-layout-border-color);border-radius:var(--ricos-internal-layout-border-radius,0)}._86l-h._1-P2H:before,._86l-h.ay8D- .LXhQo:before{background-image:var(--ricos-internal-layout-background-image-src);background-position:var(--ricos-internal-layout-background-image-position);background-repeat:no-repeat;background-size:var(--ricos-internal-layout-background-image-scaling);bottom:0;clip-path:inset(0 round var(--ricos-internal-layout-border-radius,0));content:"";filter:var(--ricos-internal-layout-background-image-blur,none);left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:0}._86l-h._1-P2H:after,._86l-h.ay8D- .LXhQo:after{background:var(--ricos-internal-layout-background-overlay,transparent);bottom:0;clip-path:inset(0 round var(--ricos-internal-layout-border-radius,0));content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@supports not (contain:inline-size){@media only screen and (max-width:480px){._86l-h{gap:min(20px,var(--ricos-internal-layout-gap,20px))}}}@container (width < 480px){._86l-h:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){gap:min(20px,var(--ricos-internal-layout-gap,20px))}}@media (width < 480px){._86l-h:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) ._86l-h{gap:min(20px,var(--ricos-internal-layout-gap,20px))}}._86l-h._3Jo32{--ricos-internal-layout-display:flex;--ricos-internal-layout-justify-content:center;--ricos-internal-layout-cell-min-width:100%;--ricos-internal-layout-cell-height:auto}._86l-h._3Jo32 .TA2qb{display:none}._86l-h.uPh5f{transition:none!important}._86l-h.uPh5f,._86l-h.uPh5f *{user-select:none!important}._86l-h.jn62t{--ricos-layout-handler-color:#e62214;--ricos-layout-handler-cursor:e-resize}._86l-h.YAAdI{--ricos-layout-handler-color:#e62214;--ricos-layout-handler-cursor:w-resize}._86l-h.IOEk3 .LXhQo .sJoD7,._86l-h.qu8DS .LXhQo .sJoD7,._86l-h.u53D- .LXhQo .sJoD7,._86l-h.uPh5f .LXhQo .sJoD7,._86l-h:focus .LXhQo .sJoD7,._86l-h:hover .LXhQo .sJoD7{outline-color:var(--ricos-internal-layout-cell-outline-color)}._86l-h .LXhQo{display:flex;flex-direction:column;height:var(--ricos-internal-layout-cell-height,100%);max-width:var(--ricos-internal-layout-cell-min-width,auto);min-width:min(100%,var(--ricos-internal-layout-cell-min-width,0));position:relative;z-index:3}._86l-h .LXhQo .sJoD7{display:flex;flex-direction:column;flex-grow:1;justify-content:var(--ricos-internal-layout-cell-vertical-alignment);outline:1.5px solid transparent;padding:var(--ricos-internal-layout-cell-padding-top,12px) var(--ricos-internal-layout-cell-padding-right,0) var(--ricos-internal-layout-cell-padding-bottom,12px) var(--ricos-internal-layout-cell-padding-left,0);position:relative;z-index:2}@supports not (contain:inline-size){@media only screen and (max-width:480px){._86l-h .LXhQo .sJoD7{padding:min(16px,var(--ricos-internal-layout-cell-padding-top,16px)) min(16px,var(--ricos-internal-layout-cell-padding-right,16px)) min(16px,var(--ricos-internal-layout-cell-padding-bottom,16px)) min(16px,var(--ricos-internal-layout-cell-padding-left,16px))}}}@container (width < 480px){._86l-h .LXhQo .sJoD7:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){padding:min(16px,var(--ricos-internal-layout-cell-padding-top,16px)) min(16px,var(--ricos-internal-layout-cell-padding-right,16px)) min(16px,var(--ricos-internal-layout-cell-padding-bottom,16px)) min(16px,var(--ricos-internal-layout-cell-padding-left,16px))}}@media (width < 480px){._86l-h .LXhQo .sJoD7:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) ._86l-h .LXhQo .sJoD7{padding:min(16px,var(--ricos-internal-layout-cell-padding-top,16px)) min(16px,var(--ricos-internal-layout-cell-padding-right,16px)) min(16px,var(--ricos-internal-layout-cell-padding-bottom,16px)) min(16px,var(--ricos-internal-layout-cell-padding-left,16px))}}._86l-h .LXhQo .s-HOq{align-items:center;background:#fff;border-radius:18px;box-shadow:0 0 6px rgba(0,6,36,.05);box-shadow:0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);color:#000624;cursor:grab;display:none;height:18px;justify-content:center;left:50%;margin:0;outline:1px solid rgba(0,6,36,.302);padding:0 12px;position:absolute;top:0;transform:translate(-50%,-50%);transition:color .15s ease,background-color .15s ease;width:42px;z-index:3}._86l-h .LXhQo .s-HOq:hover{background:#116dff;box-shadow:0 0 0 2px rgba(0,6,36,.1),0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);color:#fff;outline-color:#fff;outline-width:1.5px}._86l-h .LXhQo .s-HOq:active{background:#0f62e6;box-shadow:0 0 0 2px rgba(0,6,36,.1),0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);color:#fff;outline-color:#fff;outline-width:1.5px}._86l-h .LXhQo .s-HOq:active{cursor:grabbing}._86l-h .LXhQo .s-HOq:before{bottom:-1px;content:"";height:1px;left:0;position:absolute;right:0}._86l-h.qu8DS:after{background-color:rgba(17,109,255,.1);bottom:0;content:"";left:0;opacity:1;outline:1.5px solid #116dff;pointer-events:none;position:absolute;right:0;top:0;z-index:2}._86l-h.qu8DS .LXhQo .sJoD7{outline-color:rgba(17,109,255,.2)}._86l-h.qu8DS .LXhQo .s-HOq{display:none}._86l-h .LXhQo.YJpPR{background-color:rgba(17,109,255,.1);z-index:4}._86l-h .LXhQo.YJpPR .sJoD7{outline-color:#116dff}._86l-h .LXhQo.YJpPR .s-HOq{background:#116dff;box-shadow:0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);color:#fff;outline:none;transition:color .15s ease,background-color .15s ease}._86l-h .LXhQo.YJpPR .s-HOq:hover{background:#0f62e6;color:#fff}._86l-h .LXhQo.YJpPR .s-HOq:active{background:#084ebd;color:#fff}._86l-h .LXhQo.YJpPR .ricos-selection,._86l-h .LXhQo.YJpPR ::selection,._86l-h.qu8DS .LXhQo .ricos-selection,._86l-h.qu8DS .LXhQo ::selection,._86l-h.uPh5f .LXhQo .ricos-selection,._86l-h.uPh5f .LXhQo ::selection{background-color:transparent!important}._86l-h.qu8DS .ricos-selection,._86l-h.uPh5f .ricos-selection{background-color:transparent!important}._86l-h.IOEk3 .s-HOq,._86l-h.qu8DS .s-HOq,._86l-h.u53D- .s-HOq,._86l-h.uPh5f .s-HOq{display:flex;z-index:4}.TA2qb{--ricos-internal-resize-handler-width:max(15px,var(--ricos-internal-layout-gap,0px));--ricos-internal-resize-handler-background-start:calc(50% - 1px);--ricos-internal-resize-handler-background-end:calc(50% + 1px);bottom:-1px;display:flex;left:calc(var(--ricos-internal-resize-handler-width)/2*-1);position:absolute!important;top:0;transform:translateX(max(-50%,var(--ricos-internal-layout-gap,0px)/2 * -1));width:var(--ricos-internal-resize-handler-width);z-index:3}.TA2qb:active,._86l-h:not(.uPh5f) .TA2qb:hover{background:linear-gradient(90deg,transparent,transparent var(--ricos-internal-resize-handler-background-start),var(--ricos-internal-layout-handler-color) var(--ricos-internal-resize-handler-background-start),var(--ricos-internal-layout-handler-color) var(--ricos-internal-resize-handler-background-end),transparent var(--ricos-internal-resize-handler-background-end));cursor:var(--ricos-internal-layout-handler-cursor)}`;
4
4
  var isTest = typeof process !== "undefined" && process.env && false;
5
5
  if (isTest || !css || typeof document === "undefined") {
6
6
  return;
@@ -21,39 +21,39 @@ const injectCss = (() => {
21
21
  });
22
22
  injectCss();
23
23
  var layouts_default = {
24
- "sectionDividerClip": "fGySc",
25
- "sectionDivider": "gJbC5",
26
- "sectionDividerTop": "ZlH1B",
27
- "sectionDividerBottom": "mbQfT",
28
- "layoutWrapper": "_2hEBU",
29
- "withVerticalResize": "dyS04",
30
- "cell": "hIoPS",
31
- "cellContent": "_1RZ4g",
32
- "breakoutMargin": "Op-26",
33
- "layoutHandlerWrapper": "_6JmnB",
34
- "layoutContainer": "k8eQt",
35
- "layout": "-kglS",
36
- "layoutSelected": "OCcYb",
37
- "dragging": "E9VVp",
38
- "resizing": "KUC93",
39
- "inLayout": "NC-1P",
40
- "layoutHandler": "_1yrFl",
41
- "bannerMargin": "kQ1lV",
42
- "dropCursor": "hGb5r",
43
- "disabled": "P9adx",
44
- "resizeHandler": "TKPSi",
45
- "columnHandlerContainer": "_4Mqcv",
46
- "paywall": "AsoHU",
47
- "paywallDivider": "Oca1l",
48
- "paywallDividerLabel": "z7g2X",
49
- "paywallDividerIcon": "I0xKQ",
50
- "designOnLayout": "L2WbI",
51
- "designOnCell": "_37Xd6",
52
- "mobile": "BVCHR",
53
- "invalidLeft": "a227I",
54
- "invalidRight": "dJ3l8",
55
- "draggingOver": "ke7NY",
56
- "cellSelected": "l1-S5"
24
+ "sectionDividerClip": "_66eB-",
25
+ "sectionDivider": "Riy07",
26
+ "sectionDividerTop": "z9hDj",
27
+ "sectionDividerBottom": "-PfwV",
28
+ "layoutWrapper": "g3jqy",
29
+ "withVerticalResize": "NLxxy",
30
+ "cell": "LXhQo",
31
+ "cellContent": "sJoD7",
32
+ "breakoutMargin": "_1w-QL",
33
+ "layoutHandlerWrapper": "_0CXdh",
34
+ "layoutContainer": "fo-2y",
35
+ "layout": "_86l-h",
36
+ "layoutSelected": "qu8DS",
37
+ "dragging": "-TR33",
38
+ "resizing": "uPh5f",
39
+ "inLayout": "IOEk3",
40
+ "layoutHandler": "R70Fl",
41
+ "bannerMargin": "V9g-a",
42
+ "dropCursor": "WOvbV",
43
+ "disabled": "AkvId",
44
+ "resizeHandler": "TA2qb",
45
+ "columnHandlerContainer": "s-HOq",
46
+ "paywall": "_0g1oE",
47
+ "paywallDivider": "a6QWv",
48
+ "paywallDividerLabel": "xU84W",
49
+ "paywallDividerIcon": "hMh-8",
50
+ "designOnLayout": "_1-P2H",
51
+ "designOnCell": "ay8D-",
52
+ "mobile": "_3Jo32",
53
+ "invalidLeft": "jn62t",
54
+ "invalidRight": "YAAdI",
55
+ "draggingOver": "u53D-",
56
+ "cellSelected": "YJpPR"
57
57
  };
58
58
  export {
59
59
  layouts_default as default,