@sparrowengg/twigs-editor-react 0.0.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 (739) hide show
  1. package/README.md +38 -0
  2. package/dist/cjs/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/cjs/_virtual/_commonjsHelpers.js.map +1 -0
  4. package/dist/cjs/_virtual/assertString.js +6 -0
  5. package/dist/cjs/_virtual/assertString.js.map +1 -0
  6. package/dist/cjs/_virtual/isFQDN.js +6 -0
  7. package/dist/cjs/_virtual/isFQDN.js.map +1 -0
  8. package/dist/cjs/_virtual/isIP.js +6 -0
  9. package/dist/cjs/_virtual/isIP.js.map +1 -0
  10. package/dist/cjs/_virtual/isURL.js +12 -0
  11. package/dist/cjs/_virtual/isURL.js.map +1 -0
  12. package/dist/cjs/_virtual/isURL2.js +6 -0
  13. package/dist/cjs/_virtual/isURL2.js.map +1 -0
  14. package/dist/cjs/_virtual/merge.js +6 -0
  15. package/dist/cjs/_virtual/merge.js.map +1 -0
  16. package/dist/cjs/components/base-dropdown/index.js +175 -0
  17. package/dist/cjs/components/base-dropdown/index.js.map +1 -0
  18. package/dist/cjs/components/dialog-link-editor/index.js +291 -0
  19. package/dist/cjs/components/dialog-link-editor/index.js.map +1 -0
  20. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js +199 -0
  21. package/dist/cjs/components/dialog-link-editor/link-editor-dialog.js.map +1 -0
  22. package/dist/cjs/components/dialog-link-editor/link-tooltip.js +122 -0
  23. package/dist/cjs/components/dialog-link-editor/link-tooltip.js.map +1 -0
  24. package/dist/cjs/components/floating-toolbar/floating-toolbar.js +302 -0
  25. package/dist/cjs/components/floating-toolbar/floating-toolbar.js.map +1 -0
  26. package/dist/cjs/components/rich-editor/index.js +142 -0
  27. package/dist/cjs/components/rich-editor/index.js.map +1 -0
  28. package/dist/cjs/components/toolbar/toolbar.js +76 -0
  29. package/dist/cjs/components/toolbar/toolbar.js.map +1 -0
  30. package/dist/cjs/components/toolbar/tools/bold.js +52 -0
  31. package/dist/cjs/components/toolbar/tools/bold.js.map +1 -0
  32. package/dist/cjs/components/toolbar/tools/code-block.js +79 -0
  33. package/dist/cjs/components/toolbar/tools/code-block.js.map +1 -0
  34. package/dist/cjs/components/toolbar/tools/code.js +54 -0
  35. package/dist/cjs/components/toolbar/tools/code.js.map +1 -0
  36. package/dist/cjs/components/toolbar/tools/commons.js +16 -0
  37. package/dist/cjs/components/toolbar/tools/commons.js.map +1 -0
  38. package/dist/cjs/components/toolbar/tools/format.js +136 -0
  39. package/dist/cjs/components/toolbar/tools/format.js.map +1 -0
  40. package/dist/cjs/components/toolbar/tools/italic.js +57 -0
  41. package/dist/cjs/components/toolbar/tools/italic.js.map +1 -0
  42. package/dist/cjs/components/toolbar/tools/link.js +71 -0
  43. package/dist/cjs/components/toolbar/tools/link.js.map +1 -0
  44. package/dist/cjs/components/toolbar/tools/ordered-list.js +62 -0
  45. package/dist/cjs/components/toolbar/tools/ordered-list.js.map +1 -0
  46. package/dist/cjs/components/toolbar/tools/text-align.js +82 -0
  47. package/dist/cjs/components/toolbar/tools/text-align.js.map +1 -0
  48. package/dist/cjs/components/toolbar/tools/underline.js +57 -0
  49. package/dist/cjs/components/toolbar/tools/underline.js.map +1 -0
  50. package/dist/cjs/components/toolbar/tools/unordered-list.js +62 -0
  51. package/dist/cjs/components/toolbar/tools/unordered-list.js.map +1 -0
  52. package/dist/cjs/components/toolbar-context/context.js +148 -0
  53. package/dist/cjs/components/toolbar-context/context.js.map +1 -0
  54. package/dist/cjs/components/toolbar-context/store.js +75 -0
  55. package/dist/cjs/components/toolbar-context/store.js.map +1 -0
  56. package/dist/cjs/components/toolbar-context/utils.js +6 -0
  57. package/dist/cjs/components/toolbar-context/utils.js.map +1 -0
  58. package/dist/cjs/editor.js +154 -0
  59. package/dist/cjs/editor.js.map +1 -0
  60. package/dist/cjs/index.js +86 -0
  61. package/dist/cjs/index.js.map +1 -0
  62. package/dist/cjs/nodes/emoji.js +86 -0
  63. package/dist/cjs/nodes/emoji.js.map +1 -0
  64. package/dist/cjs/nodes/hashtag.js +109 -0
  65. package/dist/cjs/nodes/hashtag.js.map +1 -0
  66. package/dist/cjs/nodes/image.js +215 -0
  67. package/dist/cjs/nodes/image.js.map +1 -0
  68. package/dist/cjs/nodes/kudos.js +110 -0
  69. package/dist/cjs/nodes/kudos.js.map +1 -0
  70. package/dist/cjs/nodes/mention.js +109 -0
  71. package/dist/cjs/nodes/mention.js.map +1 -0
  72. package/dist/cjs/nodes/variables.js +109 -0
  73. package/dist/cjs/nodes/variables.js.map +1 -0
  74. package/dist/cjs/plugins/data-management-plugin/index.js +40 -0
  75. package/dist/cjs/plugins/data-management-plugin/index.js.map +1 -0
  76. package/dist/cjs/plugins/emoji/emoji-list.js +16609 -0
  77. package/dist/cjs/plugins/emoji/emoji-list.js.map +1 -0
  78. package/dist/cjs/plugins/emoji/index.js +126 -0
  79. package/dist/cjs/plugins/emoji/index.js.map +1 -0
  80. package/dist/cjs/plugins/hashtag/index.js +100 -0
  81. package/dist/cjs/plugins/hashtag/index.js.map +1 -0
  82. package/dist/cjs/plugins/images/index.js +164 -0
  83. package/dist/cjs/plugins/images/index.js.map +1 -0
  84. package/dist/cjs/plugins/images/utils.js +10 -0
  85. package/dist/cjs/plugins/images/utils.js.map +1 -0
  86. package/dist/cjs/plugins/link/auto-link.js +21 -0
  87. package/dist/cjs/plugins/link/auto-link.js.map +1 -0
  88. package/dist/cjs/plugins/link/convert-selection-on-paste.js +34 -0
  89. package/dist/cjs/plugins/link/convert-selection-on-paste.js.map +1 -0
  90. package/dist/cjs/plugins/link/link.js +68 -0
  91. package/dist/cjs/plugins/link/link.js.map +1 -0
  92. package/dist/cjs/plugins/mentions/index.js +108 -0
  93. package/dist/cjs/plugins/mentions/index.js.map +1 -0
  94. package/dist/cjs/plugins/tab-focus/index.js +54 -0
  95. package/dist/cjs/plugins/tab-focus/index.js.map +1 -0
  96. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js +8 -0
  97. package/dist/cjs/react-components/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
  98. package/dist/cjs/react-components/dist/es/_virtual/index.js +6 -0
  99. package/dist/cjs/react-components/dist/es/_virtual/index.js.map +1 -0
  100. package/dist/cjs/react-components/dist/es/_virtual/index2.js +6 -0
  101. package/dist/cjs/react-components/dist/es/_virtual/index2.js.map +1 -0
  102. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js +6 -0
  103. package/dist/cjs/react-components/dist/es/_virtual/react-is.development.js.map +1 -0
  104. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js +6 -0
  105. package/dist/cjs/react-components/dist/es/_virtual/react-is.production.min.js.map +1 -0
  106. package/dist/cjs/react-components/dist/es/box/box.js +47 -0
  107. package/dist/cjs/react-components/dist/es/box/box.js.map +1 -0
  108. package/dist/cjs/react-components/dist/es/button/button.js +774 -0
  109. package/dist/cjs/react-components/dist/es/button/button.js.map +1 -0
  110. package/dist/cjs/react-components/dist/es/button/icon-button.js +77 -0
  111. package/dist/cjs/react-components/dist/es/button/icon-button.js.map +1 -0
  112. package/dist/cjs/react-components/dist/es/button/side-element.js +199 -0
  113. package/dist/cjs/react-components/dist/es/button/side-element.js.map +1 -0
  114. package/dist/cjs/react-components/dist/es/button/utils.js +105 -0
  115. package/dist/cjs/react-components/dist/es/button/utils.js.map +1 -0
  116. package/dist/cjs/react-components/dist/es/dialog/dialog.js +197 -0
  117. package/dist/cjs/react-components/dist/es/dialog/dialog.js.map +1 -0
  118. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js +195 -0
  119. package/dist/cjs/react-components/dist/es/dropdown/dropdown.js.map +1 -0
  120. package/dist/cjs/react-components/dist/es/flex/flex.js +98 -0
  121. package/dist/cjs/react-components/dist/es/flex/flex.js.map +1 -0
  122. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js +76 -0
  123. package/dist/cjs/react-components/dist/es/form-helper-text/form-helper-text.js.map +1 -0
  124. package/dist/cjs/react-components/dist/es/form-label/form-label.js +176 -0
  125. package/dist/cjs/react-components/dist/es/form-label/form-label.js.map +1 -0
  126. package/dist/cjs/react-components/dist/es/input/form-input.js +159 -0
  127. package/dist/cjs/react-components/dist/es/input/form-input.js.map +1 -0
  128. package/dist/cjs/react-components/dist/es/input/input.js +377 -0
  129. package/dist/cjs/react-components/dist/es/input/input.js.map +1 -0
  130. package/dist/cjs/react-components/dist/es/link/link.js +58 -0
  131. package/dist/cjs/react-components/dist/es/link/link.js.map +1 -0
  132. package/dist/cjs/react-components/dist/es/loader/circle.js +204 -0
  133. package/dist/cjs/react-components/dist/es/loader/circle.js.map +1 -0
  134. package/dist/cjs/react-components/dist/es/loader/line.js +130 -0
  135. package/dist/cjs/react-components/dist/es/loader/line.js.map +1 -0
  136. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +21 -0
  137. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  138. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +14 -0
  139. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  140. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +19 -0
  141. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  142. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +14 -0
  143. package/dist/cjs/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  144. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +788 -0
  145. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  146. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +612 -0
  147. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  148. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +299 -0
  149. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  150. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +146 -0
  151. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  152. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +148 -0
  153. package/dist/cjs/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +1 -0
  154. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +14 -0
  155. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  156. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +48 -0
  157. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  158. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +71 -0
  159. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  160. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +41 -0
  161. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  162. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +102 -0
  163. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  164. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +354 -0
  165. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
  166. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +33 -0
  167. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  168. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +234 -0
  169. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  170. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +303 -0
  171. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  172. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +48 -0
  173. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  174. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +229 -0
  175. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  176. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +37 -0
  177. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  178. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +47 -0
  179. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
  180. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +847 -0
  181. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  182. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +309 -0
  183. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  184. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +39 -0
  185. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  186. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +142 -0
  187. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  188. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +65 -0
  189. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  190. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +246 -0
  191. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  192. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +104 -0
  193. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  194. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +509 -0
  195. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
  196. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +34 -0
  197. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  198. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +68 -0
  199. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  200. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +40 -0
  201. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  202. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +29 -0
  203. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  204. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +62 -0
  205. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  206. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +58 -0
  207. package/dist/cjs/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
  208. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js +9 -0
  209. package/dist/cjs/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +1 -0
  210. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +134 -0
  211. package/dist/cjs/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  212. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +19 -0
  213. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +1 -0
  214. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +17 -0
  215. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +1 -0
  216. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +27 -0
  217. package/dist/cjs/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +1 -0
  218. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +11 -0
  219. package/dist/cjs/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  220. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js +102 -0
  221. package/dist/cjs/react-components/dist/es/node_modules/object-assign/index.js.map +1 -0
  222. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +118 -0
  223. package/dist/cjs/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +1 -0
  224. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +77 -0
  225. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  226. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +628 -0
  227. package/dist/cjs/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  228. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js +35 -0
  229. package/dist/cjs/react-components/dist/es/node_modules/prop-types/index.js.map +1 -0
  230. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +24 -0
  231. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  232. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js +14 -0
  233. package/dist/cjs/react-components/dist/es/node_modules/prop-types/lib/has.js.map +1 -0
  234. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +193 -0
  235. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  236. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +29 -0
  237. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  238. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +22 -0
  239. package/dist/cjs/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  240. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +34 -0
  241. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  242. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +184 -0
  243. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  244. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +60 -0
  245. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  246. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +24 -0
  247. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  248. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
  249. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  250. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +8 -0
  251. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  252. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +12 -0
  253. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  254. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +80 -0
  255. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  256. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +16 -0
  257. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  258. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +35 -0
  259. package/dist/cjs/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  260. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +22 -0
  261. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  262. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +47 -0
  263. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  264. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +54 -0
  265. package/dist/cjs/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  266. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +419 -0
  267. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -0
  268. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +637 -0
  269. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -0
  270. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +10 -0
  271. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -0
  272. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js +10 -0
  273. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +1 -0
  274. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +25 -0
  275. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -0
  276. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +8 -0
  277. package/dist/cjs/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -0
  278. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js +55 -0
  279. package/dist/cjs/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +1 -0
  280. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +27 -0
  281. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  282. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +25 -0
  283. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  284. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +45 -0
  285. package/dist/cjs/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  286. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +43 -0
  287. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  288. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +80 -0
  289. package/dist/cjs/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  290. package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js +9 -0
  291. package/dist/cjs/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +1 -0
  292. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +97 -0
  293. package/dist/cjs/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +1 -0
  294. package/dist/cjs/react-components/dist/es/stitches.config.js +392 -0
  295. package/dist/cjs/react-components/dist/es/stitches.config.js.map +1 -0
  296. package/dist/cjs/react-components/dist/es/text/text.js +117 -0
  297. package/dist/cjs/react-components/dist/es/text/text.js.map +1 -0
  298. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js +156 -0
  299. package/dist/cjs/react-components/dist/es/tooltip/tooltip.js.map +1 -0
  300. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js +10 -0
  301. package/dist/cjs/react-components/dist/es/utils/prefix-class-name.js.map +1 -0
  302. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js +9 -0
  303. package/dist/cjs/react-editor/node_modules/clsx/dist/clsx.js.map +1 -0
  304. package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js +75 -0
  305. package/dist/cjs/react-editor/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  306. package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js +58 -0
  307. package/dist/cjs/react-editor/node_modules/validator/es/lib/isIP.js.map +1 -0
  308. package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js +163 -0
  309. package/dist/cjs/react-editor/node_modules/validator/es/lib/isURL.js.map +1 -0
  310. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js +16 -0
  311. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  312. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js +17 -0
  313. package/dist/cjs/react-editor/node_modules/validator/es/lib/util/merge.js.map +1 -0
  314. package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js +93 -0
  315. package/dist/cjs/react-editor/node_modules/validator/lib/isFQDN.js.map +1 -0
  316. package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js +75 -0
  317. package/dist/cjs/react-editor/node_modules/validator/lib/isIP.js.map +1 -0
  318. package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js +182 -0
  319. package/dist/cjs/react-editor/node_modules/validator/lib/isURL.js.map +1 -0
  320. package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js +32 -0
  321. package/dist/cjs/react-editor/node_modules/validator/lib/util/assertString.js.map +1 -0
  322. package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js +33 -0
  323. package/dist/cjs/react-editor/node_modules/validator/lib/util/merge.js.map +1 -0
  324. package/dist/cjs/react-icons/dist/es/icons/bold.js +86 -0
  325. package/dist/cjs/react-icons/dist/es/icons/bold.js.map +1 -0
  326. package/dist/cjs/react-icons/dist/es/icons/close.js +86 -0
  327. package/dist/cjs/react-icons/dist/es/icons/close.js.map +1 -0
  328. package/dist/cjs/react-icons/dist/es/icons/code-block.js +78 -0
  329. package/dist/cjs/react-icons/dist/es/icons/code-block.js.map +1 -0
  330. package/dist/cjs/react-icons/dist/es/icons/code.js +96 -0
  331. package/dist/cjs/react-icons/dist/es/icons/code.js.map +1 -0
  332. package/dist/cjs/react-icons/dist/es/icons/delete.js +116 -0
  333. package/dist/cjs/react-icons/dist/es/icons/delete.js.map +1 -0
  334. package/dist/cjs/react-icons/dist/es/icons/italics.js +96 -0
  335. package/dist/cjs/react-icons/dist/es/icons/italics.js.map +1 -0
  336. package/dist/cjs/react-icons/dist/es/icons/link.js +86 -0
  337. package/dist/cjs/react-icons/dist/es/icons/link.js.map +1 -0
  338. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js +86 -0
  339. package/dist/cjs/react-icons/dist/es/icons/ordered-list.js.map +1 -0
  340. package/dist/cjs/react-icons/dist/es/icons/pencil.js +86 -0
  341. package/dist/cjs/react-icons/dist/es/icons/pencil.js.map +1 -0
  342. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js +74 -0
  343. package/dist/cjs/react-icons/dist/es/icons/text-align-center.js.map +1 -0
  344. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js +74 -0
  345. package/dist/cjs/react-icons/dist/es/icons/text-align-justify.js.map +1 -0
  346. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js +74 -0
  347. package/dist/cjs/react-icons/dist/es/icons/text-align-left.js.map +1 -0
  348. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js +74 -0
  349. package/dist/cjs/react-icons/dist/es/icons/text-align-right.js.map +1 -0
  350. package/dist/cjs/react-icons/dist/es/icons/text-format.js +78 -0
  351. package/dist/cjs/react-icons/dist/es/icons/text-format.js.map +1 -0
  352. package/dist/cjs/react-icons/dist/es/icons/underline.js +77 -0
  353. package/dist/cjs/react-icons/dist/es/icons/underline.js.map +1 -0
  354. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js +126 -0
  355. package/dist/cjs/react-icons/dist/es/icons/unordered-list.js.map +1 -0
  356. package/dist/cjs/utils/commands.js +8 -0
  357. package/dist/cjs/utils/commands.js.map +1 -0
  358. package/dist/cjs/utils/get-dom-range-rect.js +19 -0
  359. package/dist/cjs/utils/get-dom-range-rect.js.map +1 -0
  360. package/dist/cjs/utils/get-selected-node.js +21 -0
  361. package/dist/cjs/utils/get-selected-node.js.map +1 -0
  362. package/dist/cjs/utils/prefix-class-name.js +10 -0
  363. package/dist/cjs/utils/prefix-class-name.js.map +1 -0
  364. package/dist/cjs/utils/set-floating-elem-position-for-link-editor.js +30 -0
  365. package/dist/cjs/utils/set-floating-elem-position-for-link-editor.js.map +1 -0
  366. package/dist/cjs/utils/set-floating-elem-position.js +33 -0
  367. package/dist/cjs/utils/set-floating-elem-position.js.map +1 -0
  368. package/dist/cjs/utils/use-node-focus.js +35 -0
  369. package/dist/cjs/utils/use-node-focus.js.map +1 -0
  370. package/dist/es/_virtual/_commonjsHelpers.js +6 -0
  371. package/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
  372. package/dist/es/_virtual/assertString.js +4 -0
  373. package/dist/es/_virtual/assertString.js.map +1 -0
  374. package/dist/es/_virtual/isFQDN.js +4 -0
  375. package/dist/es/_virtual/isFQDN.js.map +1 -0
  376. package/dist/es/_virtual/isIP.js +4 -0
  377. package/dist/es/_virtual/isIP.js.map +1 -0
  378. package/dist/es/_virtual/isURL.js +8 -0
  379. package/dist/es/_virtual/isURL.js.map +1 -0
  380. package/dist/es/_virtual/isURL2.js +4 -0
  381. package/dist/es/_virtual/isURL2.js.map +1 -0
  382. package/dist/es/_virtual/merge.js +4 -0
  383. package/dist/es/_virtual/merge.js.map +1 -0
  384. package/dist/es/components/base-dropdown/index.js +173 -0
  385. package/dist/es/components/base-dropdown/index.js.map +1 -0
  386. package/dist/es/components/dialog-link-editor/index.js +289 -0
  387. package/dist/es/components/dialog-link-editor/index.js.map +1 -0
  388. package/dist/es/components/dialog-link-editor/link-editor-dialog.js +197 -0
  389. package/dist/es/components/dialog-link-editor/link-editor-dialog.js.map +1 -0
  390. package/dist/es/components/dialog-link-editor/link-tooltip.js +120 -0
  391. package/dist/es/components/dialog-link-editor/link-tooltip.js.map +1 -0
  392. package/dist/es/components/floating-toolbar/floating-toolbar.js +300 -0
  393. package/dist/es/components/floating-toolbar/floating-toolbar.js.map +1 -0
  394. package/dist/es/components/rich-editor/index.js +140 -0
  395. package/dist/es/components/rich-editor/index.js.map +1 -0
  396. package/dist/es/components/toolbar/toolbar.js +74 -0
  397. package/dist/es/components/toolbar/toolbar.js.map +1 -0
  398. package/dist/es/components/toolbar/tools/bold.js +50 -0
  399. package/dist/es/components/toolbar/tools/bold.js.map +1 -0
  400. package/dist/es/components/toolbar/tools/code-block.js +77 -0
  401. package/dist/es/components/toolbar/tools/code-block.js.map +1 -0
  402. package/dist/es/components/toolbar/tools/code.js +52 -0
  403. package/dist/es/components/toolbar/tools/code.js.map +1 -0
  404. package/dist/es/components/toolbar/tools/commons.js +14 -0
  405. package/dist/es/components/toolbar/tools/commons.js.map +1 -0
  406. package/dist/es/components/toolbar/tools/format.js +134 -0
  407. package/dist/es/components/toolbar/tools/format.js.map +1 -0
  408. package/dist/es/components/toolbar/tools/italic.js +55 -0
  409. package/dist/es/components/toolbar/tools/italic.js.map +1 -0
  410. package/dist/es/components/toolbar/tools/link.js +69 -0
  411. package/dist/es/components/toolbar/tools/link.js.map +1 -0
  412. package/dist/es/components/toolbar/tools/ordered-list.js +60 -0
  413. package/dist/es/components/toolbar/tools/ordered-list.js.map +1 -0
  414. package/dist/es/components/toolbar/tools/text-align.js +80 -0
  415. package/dist/es/components/toolbar/tools/text-align.js.map +1 -0
  416. package/dist/es/components/toolbar/tools/underline.js +55 -0
  417. package/dist/es/components/toolbar/tools/underline.js.map +1 -0
  418. package/dist/es/components/toolbar/tools/unordered-list.js +60 -0
  419. package/dist/es/components/toolbar/tools/unordered-list.js.map +1 -0
  420. package/dist/es/components/toolbar-context/context.js +145 -0
  421. package/dist/es/components/toolbar-context/context.js.map +1 -0
  422. package/dist/es/components/toolbar-context/store.js +72 -0
  423. package/dist/es/components/toolbar-context/store.js.map +1 -0
  424. package/dist/es/components/toolbar-context/utils.js +4 -0
  425. package/dist/es/components/toolbar-context/utils.js.map +1 -0
  426. package/dist/es/editor.js +152 -0
  427. package/dist/es/editor.js.map +1 -0
  428. package/dist/es/index.js +34 -0
  429. package/dist/es/index.js.map +1 -0
  430. package/dist/es/nodes/emoji.js +82 -0
  431. package/dist/es/nodes/emoji.js.map +1 -0
  432. package/dist/es/nodes/hashtag.js +105 -0
  433. package/dist/es/nodes/hashtag.js.map +1 -0
  434. package/dist/es/nodes/image.js +211 -0
  435. package/dist/es/nodes/image.js.map +1 -0
  436. package/dist/es/nodes/kudos.js +106 -0
  437. package/dist/es/nodes/kudos.js.map +1 -0
  438. package/dist/es/nodes/mention.js +105 -0
  439. package/dist/es/nodes/mention.js.map +1 -0
  440. package/dist/es/nodes/variables.js +105 -0
  441. package/dist/es/nodes/variables.js.map +1 -0
  442. package/dist/es/plugins/data-management-plugin/index.js +38 -0
  443. package/dist/es/plugins/data-management-plugin/index.js.map +1 -0
  444. package/dist/es/plugins/emoji/emoji-list.js +16605 -0
  445. package/dist/es/plugins/emoji/emoji-list.js.map +1 -0
  446. package/dist/es/plugins/emoji/index.js +124 -0
  447. package/dist/es/plugins/emoji/index.js.map +1 -0
  448. package/dist/es/plugins/hashtag/index.js +98 -0
  449. package/dist/es/plugins/hashtag/index.js.map +1 -0
  450. package/dist/es/plugins/images/index.js +162 -0
  451. package/dist/es/plugins/images/index.js.map +1 -0
  452. package/dist/es/plugins/images/utils.js +7 -0
  453. package/dist/es/plugins/images/utils.js.map +1 -0
  454. package/dist/es/plugins/link/auto-link.js +19 -0
  455. package/dist/es/plugins/link/auto-link.js.map +1 -0
  456. package/dist/es/plugins/link/convert-selection-on-paste.js +32 -0
  457. package/dist/es/plugins/link/convert-selection-on-paste.js.map +1 -0
  458. package/dist/es/plugins/link/link.js +66 -0
  459. package/dist/es/plugins/link/link.js.map +1 -0
  460. package/dist/es/plugins/mentions/index.js +106 -0
  461. package/dist/es/plugins/mentions/index.js.map +1 -0
  462. package/dist/es/plugins/tab-focus/index.js +52 -0
  463. package/dist/es/plugins/tab-focus/index.js.map +1 -0
  464. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js +6 -0
  465. package/dist/es/react-components/dist/es/_virtual/_commonjsHelpers.js.map +1 -0
  466. package/dist/es/react-components/dist/es/_virtual/index.js +4 -0
  467. package/dist/es/react-components/dist/es/_virtual/index.js.map +1 -0
  468. package/dist/es/react-components/dist/es/_virtual/index2.js +4 -0
  469. package/dist/es/react-components/dist/es/_virtual/index2.js.map +1 -0
  470. package/dist/es/react-components/dist/es/_virtual/react-is.development.js +4 -0
  471. package/dist/es/react-components/dist/es/_virtual/react-is.development.js.map +1 -0
  472. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js +4 -0
  473. package/dist/es/react-components/dist/es/_virtual/react-is.production.min.js.map +1 -0
  474. package/dist/es/react-components/dist/es/box/box.js +45 -0
  475. package/dist/es/react-components/dist/es/box/box.js.map +1 -0
  476. package/dist/es/react-components/dist/es/button/button.js +772 -0
  477. package/dist/es/react-components/dist/es/button/button.js.map +1 -0
  478. package/dist/es/react-components/dist/es/button/icon-button.js +75 -0
  479. package/dist/es/react-components/dist/es/button/icon-button.js.map +1 -0
  480. package/dist/es/react-components/dist/es/button/side-element.js +197 -0
  481. package/dist/es/react-components/dist/es/button/side-element.js.map +1 -0
  482. package/dist/es/react-components/dist/es/button/utils.js +100 -0
  483. package/dist/es/react-components/dist/es/button/utils.js.map +1 -0
  484. package/dist/es/react-components/dist/es/dialog/dialog.js +193 -0
  485. package/dist/es/react-components/dist/es/dialog/dialog.js.map +1 -0
  486. package/dist/es/react-components/dist/es/dropdown/dropdown.js +190 -0
  487. package/dist/es/react-components/dist/es/dropdown/dropdown.js.map +1 -0
  488. package/dist/es/react-components/dist/es/flex/flex.js +96 -0
  489. package/dist/es/react-components/dist/es/flex/flex.js.map +1 -0
  490. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js +74 -0
  491. package/dist/es/react-components/dist/es/form-helper-text/form-helper-text.js.map +1 -0
  492. package/dist/es/react-components/dist/es/form-label/form-label.js +174 -0
  493. package/dist/es/react-components/dist/es/form-label/form-label.js.map +1 -0
  494. package/dist/es/react-components/dist/es/input/form-input.js +157 -0
  495. package/dist/es/react-components/dist/es/input/form-input.js.map +1 -0
  496. package/dist/es/react-components/dist/es/input/input.js +374 -0
  497. package/dist/es/react-components/dist/es/input/input.js.map +1 -0
  498. package/dist/es/react-components/dist/es/link/link.js +56 -0
  499. package/dist/es/react-components/dist/es/link/link.js.map +1 -0
  500. package/dist/es/react-components/dist/es/loader/circle.js +202 -0
  501. package/dist/es/react-components/dist/es/loader/circle.js.map +1 -0
  502. package/dist/es/react-components/dist/es/loader/line.js +128 -0
  503. package/dist/es/react-components/dist/es/loader/line.js.map +1 -0
  504. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
  505. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  506. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +10 -0
  507. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  508. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
  509. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  510. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
  511. package/dist/es/react-components/dist/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  512. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +777 -0
  513. package/dist/es/react-components/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  514. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +600 -0
  515. package/dist/es/react-components/dist/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  516. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +269 -0
  517. package/dist/es/react-components/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  518. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +123 -0
  519. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  520. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js +129 -0
  521. package/dist/es/react-components/dist/es/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.js.map +1 -0
  522. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js +12 -0
  523. package/dist/es/react-components/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  524. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
  525. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  526. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js +69 -0
  527. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  528. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +19 -0
  529. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  530. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js +80 -0
  531. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  532. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +318 -0
  533. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
  534. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
  535. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  536. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +212 -0
  537. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  538. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +254 -0
  539. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  540. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +27 -0
  541. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  542. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +208 -0
  543. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  544. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js +16 -0
  545. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  546. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js +25 -0
  547. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
  548. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +796 -0
  549. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  550. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +280 -0
  551. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  552. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +18 -0
  553. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  554. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +120 -0
  555. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  556. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +42 -0
  557. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  558. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js +221 -0
  559. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  560. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +82 -0
  561. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  562. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js +476 -0
  563. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
  564. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
  565. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  566. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +47 -0
  567. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  568. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +19 -0
  569. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  570. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +8 -0
  571. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  572. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +41 -0
  573. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  574. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js +36 -0
  575. package/dist/es/react-components/dist/es/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
  576. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js +6 -0
  577. package/dist/es/react-components/dist/es/node_modules/@stitches/react/dist/index.js.map +1 -0
  578. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js +132 -0
  579. package/dist/es/react-components/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  580. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js +15 -0
  581. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/addClass.js.map +1 -0
  582. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js +13 -0
  583. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/hasClass.js.map +1 -0
  584. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js +23 -0
  585. package/dist/es/react-components/dist/es/node_modules/dom-helpers/esm/removeClass.js.map +1 -0
  586. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js +9 -0
  587. package/dist/es/react-components/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  588. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js +100 -0
  589. package/dist/es/react-components/dist/es/node_modules/object-assign/index.js.map +1 -0
  590. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js +116 -0
  591. package/dist/es/react-components/dist/es/node_modules/prop-types/checkPropTypes.js.map +1 -0
  592. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +75 -0
  593. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  594. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +626 -0
  595. package/dist/es/react-components/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  596. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js +31 -0
  597. package/dist/es/react-components/dist/es/node_modules/prop-types/index.js.map +1 -0
  598. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +22 -0
  599. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  600. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js +12 -0
  601. package/dist/es/react-components/dist/es/node_modules/prop-types/lib/has.js.map +1 -0
  602. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +191 -0
  603. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  604. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +27 -0
  605. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  606. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js +20 -0
  607. package/dist/es/react-components/dist/es/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  608. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  609. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  610. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +161 -0
  611. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  612. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
  613. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  614. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
  615. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  616. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +107 -0
  617. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  618. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
  619. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  620. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
  621. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  622. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
  623. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  624. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
  625. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  626. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +32 -0
  627. package/dist/es/react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  628. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +20 -0
  629. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  630. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +26 -0
  631. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  632. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +52 -0
  633. package/dist/es/react-components/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  634. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js +415 -0
  635. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -0
  636. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js +628 -0
  637. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -0
  638. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -0
  639. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -0
  640. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js +6 -0
  641. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/config.js.map +1 -0
  642. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js +22 -0
  643. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -0
  644. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js +6 -0
  645. package/dist/es/react-components/dist/es/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -0
  646. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js +52 -0
  647. package/dist/es/react-components/dist/es/node_modules/tslib/tslib.es6.js.map +1 -0
  648. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +25 -0
  649. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  650. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +23 -0
  651. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  652. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +43 -0
  653. package/dist/es/react-components/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  654. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
  655. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  656. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
  657. package/dist/es/react-components/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  658. package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js +4 -0
  659. package/dist/es/react-components/dist/es/packages/react-components/node_modules/clsx/dist/clsx.js.map +1 -0
  660. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js +95 -0
  661. package/dist/es/react-components/dist/es/packages/react-icons/dist/es/icons/info.js.map +1 -0
  662. package/dist/es/react-components/dist/es/stitches.config.js +379 -0
  663. package/dist/es/react-components/dist/es/stitches.config.js.map +1 -0
  664. package/dist/es/react-components/dist/es/text/text.js +115 -0
  665. package/dist/es/react-components/dist/es/text/text.js.map +1 -0
  666. package/dist/es/react-components/dist/es/tooltip/tooltip.js +153 -0
  667. package/dist/es/react-components/dist/es/tooltip/tooltip.js.map +1 -0
  668. package/dist/es/react-components/dist/es/utils/prefix-class-name.js +8 -0
  669. package/dist/es/react-components/dist/es/utils/prefix-class-name.js.map +1 -0
  670. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js +4 -0
  671. package/dist/es/react-editor/node_modules/clsx/dist/clsx.js.map +1 -0
  672. package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js +71 -0
  673. package/dist/es/react-editor/node_modules/validator/es/lib/isFQDN.js.map +1 -0
  674. package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js +54 -0
  675. package/dist/es/react-editor/node_modules/validator/es/lib/isIP.js.map +1 -0
  676. package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js +159 -0
  677. package/dist/es/react-editor/node_modules/validator/es/lib/isURL.js.map +1 -0
  678. package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js +12 -0
  679. package/dist/es/react-editor/node_modules/validator/es/lib/util/assertString.js.map +1 -0
  680. package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js +13 -0
  681. package/dist/es/react-editor/node_modules/validator/es/lib/util/merge.js.map +1 -0
  682. package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js +91 -0
  683. package/dist/es/react-editor/node_modules/validator/lib/isFQDN.js.map +1 -0
  684. package/dist/es/react-editor/node_modules/validator/lib/isIP.js +73 -0
  685. package/dist/es/react-editor/node_modules/validator/lib/isIP.js.map +1 -0
  686. package/dist/es/react-editor/node_modules/validator/lib/isURL.js +180 -0
  687. package/dist/es/react-editor/node_modules/validator/lib/isURL.js.map +1 -0
  688. package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js +30 -0
  689. package/dist/es/react-editor/node_modules/validator/lib/util/assertString.js.map +1 -0
  690. package/dist/es/react-editor/node_modules/validator/lib/util/merge.js +31 -0
  691. package/dist/es/react-editor/node_modules/validator/lib/util/merge.js.map +1 -0
  692. package/dist/es/react-icons/dist/es/icons/bold.js +84 -0
  693. package/dist/es/react-icons/dist/es/icons/bold.js.map +1 -0
  694. package/dist/es/react-icons/dist/es/icons/close.js +84 -0
  695. package/dist/es/react-icons/dist/es/icons/close.js.map +1 -0
  696. package/dist/es/react-icons/dist/es/icons/code-block.js +76 -0
  697. package/dist/es/react-icons/dist/es/icons/code-block.js.map +1 -0
  698. package/dist/es/react-icons/dist/es/icons/code.js +94 -0
  699. package/dist/es/react-icons/dist/es/icons/code.js.map +1 -0
  700. package/dist/es/react-icons/dist/es/icons/delete.js +114 -0
  701. package/dist/es/react-icons/dist/es/icons/delete.js.map +1 -0
  702. package/dist/es/react-icons/dist/es/icons/italics.js +94 -0
  703. package/dist/es/react-icons/dist/es/icons/italics.js.map +1 -0
  704. package/dist/es/react-icons/dist/es/icons/link.js +84 -0
  705. package/dist/es/react-icons/dist/es/icons/link.js.map +1 -0
  706. package/dist/es/react-icons/dist/es/icons/ordered-list.js +84 -0
  707. package/dist/es/react-icons/dist/es/icons/ordered-list.js.map +1 -0
  708. package/dist/es/react-icons/dist/es/icons/pencil.js +84 -0
  709. package/dist/es/react-icons/dist/es/icons/pencil.js.map +1 -0
  710. package/dist/es/react-icons/dist/es/icons/text-align-center.js +72 -0
  711. package/dist/es/react-icons/dist/es/icons/text-align-center.js.map +1 -0
  712. package/dist/es/react-icons/dist/es/icons/text-align-justify.js +72 -0
  713. package/dist/es/react-icons/dist/es/icons/text-align-justify.js.map +1 -0
  714. package/dist/es/react-icons/dist/es/icons/text-align-left.js +72 -0
  715. package/dist/es/react-icons/dist/es/icons/text-align-left.js.map +1 -0
  716. package/dist/es/react-icons/dist/es/icons/text-align-right.js +72 -0
  717. package/dist/es/react-icons/dist/es/icons/text-align-right.js.map +1 -0
  718. package/dist/es/react-icons/dist/es/icons/text-format.js +76 -0
  719. package/dist/es/react-icons/dist/es/icons/text-format.js.map +1 -0
  720. package/dist/es/react-icons/dist/es/icons/underline.js +75 -0
  721. package/dist/es/react-icons/dist/es/icons/underline.js.map +1 -0
  722. package/dist/es/react-icons/dist/es/icons/unordered-list.js +124 -0
  723. package/dist/es/react-icons/dist/es/icons/unordered-list.js.map +1 -0
  724. package/dist/es/utils/commands.js +6 -0
  725. package/dist/es/utils/commands.js.map +1 -0
  726. package/dist/es/utils/get-dom-range-rect.js +17 -0
  727. package/dist/es/utils/get-dom-range-rect.js.map +1 -0
  728. package/dist/es/utils/get-selected-node.js +19 -0
  729. package/dist/es/utils/get-selected-node.js.map +1 -0
  730. package/dist/es/utils/prefix-class-name.js +8 -0
  731. package/dist/es/utils/prefix-class-name.js.map +1 -0
  732. package/dist/es/utils/set-floating-elem-position-for-link-editor.js +28 -0
  733. package/dist/es/utils/set-floating-elem-position-for-link-editor.js.map +1 -0
  734. package/dist/es/utils/set-floating-elem-position.js +31 -0
  735. package/dist/es/utils/set-floating-elem-position.js.map +1 -0
  736. package/dist/es/utils/use-node-focus.js +33 -0
  737. package/dist/es/utils/use-node-focus.js.map +1 -0
  738. package/dist/index.d.ts +445 -0
  739. package/package.json +151 -0
@@ -0,0 +1,161 @@
1
+ import { __spreadArray } from '../../../tslib/tslib.es6.js';
2
+ import * as React from 'react';
3
+ import { RemoveScrollBar } from '../../../react-remove-scroll-bar/dist/es2015/component.js';
4
+ import { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';
5
+ import { nonPassive } from './aggresiveCapture.js';
6
+ import { locationCouldBeScrolled, handleScroll } from './handleScroll.js';
7
+
8
+ var getTouchXY = function (event) {
9
+ return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
10
+ };
11
+ var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
12
+ var extractRef = function (ref) {
13
+ return ref && 'current' in ref ? ref.current : ref;
14
+ };
15
+ var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
16
+ var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
17
+ var idCounter = 0;
18
+ var lockStack = [];
19
+ function RemoveScrollSideCar(props) {
20
+ var shouldPreventQueue = React.useRef([]);
21
+ var touchStartRef = React.useRef([0, 0]);
22
+ var activeAxis = React.useRef();
23
+ var id = React.useState(idCounter++)[0];
24
+ var Style = React.useState(styleSingleton)[0];
25
+ var lastProps = React.useRef(props);
26
+ React.useEffect(function () {
27
+ lastProps.current = props;
28
+ }, [props]);
29
+ React.useEffect(function () {
30
+ if (props.inert) {
31
+ document.body.classList.add("block-interactivity-".concat(id));
32
+ var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef)).filter(Boolean);
33
+ allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
34
+ return function () {
35
+ document.body.classList.remove("block-interactivity-".concat(id));
36
+ allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
37
+ };
38
+ }
39
+ return;
40
+ }, [props.inert, props.lockRef.current, props.shards]);
41
+ var shouldCancelEvent = React.useCallback(function (event, parent) {
42
+ if ('touches' in event && event.touches.length === 2) {
43
+ return !lastProps.current.allowPinchZoom;
44
+ }
45
+ var touch = getTouchXY(event);
46
+ var touchStart = touchStartRef.current;
47
+ var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
48
+ var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
49
+ var currentAxis;
50
+ var target = event.target;
51
+ var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
52
+ // allow horizontal touch move on Range inputs. They will not cause any scroll
53
+ if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
54
+ return false;
55
+ }
56
+ var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
57
+ if (!canBeScrolledInMainDirection) {
58
+ return true;
59
+ }
60
+ if (canBeScrolledInMainDirection) {
61
+ currentAxis = moveDirection;
62
+ }
63
+ else {
64
+ currentAxis = moveDirection === 'v' ? 'h' : 'v';
65
+ canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
66
+ // other axis might be not scrollable
67
+ }
68
+ if (!canBeScrolledInMainDirection) {
69
+ return false;
70
+ }
71
+ if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
72
+ activeAxis.current = currentAxis;
73
+ }
74
+ if (!currentAxis) {
75
+ return true;
76
+ }
77
+ var cancelingAxis = activeAxis.current || currentAxis;
78
+ return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY);
79
+ }, []);
80
+ var shouldPrevent = React.useCallback(function (_event) {
81
+ var event = _event;
82
+ if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
83
+ // not the last active
84
+ return;
85
+ }
86
+ var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
87
+ var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];
88
+ // self event, and should be canceled
89
+ if (sourceEvent && sourceEvent.should) {
90
+ if (event.cancelable) {
91
+ event.preventDefault();
92
+ }
93
+ return;
94
+ }
95
+ // outside or shard event
96
+ if (!sourceEvent) {
97
+ var shardNodes = (lastProps.current.shards || [])
98
+ .map(extractRef)
99
+ .filter(Boolean)
100
+ .filter(function (node) { return node.contains(event.target); });
101
+ var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
102
+ if (shouldStop) {
103
+ if (event.cancelable) {
104
+ event.preventDefault();
105
+ }
106
+ }
107
+ }
108
+ }, []);
109
+ var shouldCancel = React.useCallback(function (name, delta, target, should) {
110
+ var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };
111
+ shouldPreventQueue.current.push(event);
112
+ setTimeout(function () {
113
+ shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
114
+ }, 1);
115
+ }, []);
116
+ var scrollTouchStart = React.useCallback(function (event) {
117
+ touchStartRef.current = getTouchXY(event);
118
+ activeAxis.current = undefined;
119
+ }, []);
120
+ var scrollWheel = React.useCallback(function (event) {
121
+ shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
122
+ }, []);
123
+ var scrollTouchMove = React.useCallback(function (event) {
124
+ shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
125
+ }, []);
126
+ React.useEffect(function () {
127
+ lockStack.push(Style);
128
+ props.setCallbacks({
129
+ onScrollCapture: scrollWheel,
130
+ onWheelCapture: scrollWheel,
131
+ onTouchMoveCapture: scrollTouchMove,
132
+ });
133
+ document.addEventListener('wheel', shouldPrevent, nonPassive);
134
+ document.addEventListener('touchmove', shouldPrevent, nonPassive);
135
+ document.addEventListener('touchstart', scrollTouchStart, nonPassive);
136
+ return function () {
137
+ lockStack = lockStack.filter(function (inst) { return inst !== Style; });
138
+ document.removeEventListener('wheel', shouldPrevent, nonPassive);
139
+ document.removeEventListener('touchmove', shouldPrevent, nonPassive);
140
+ document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
141
+ };
142
+ }, []);
143
+ var removeScrollBar = props.removeScrollBar, inert = props.inert;
144
+ return (React.createElement(React.Fragment, null,
145
+ inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,
146
+ removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null));
147
+ }
148
+ function getOutermostShadowParent(node) {
149
+ var shadowParent = null;
150
+ while (node !== null) {
151
+ if (node instanceof ShadowRoot) {
152
+ shadowParent = node.host;
153
+ node = node.host;
154
+ }
155
+ node = node.parentNode;
156
+ }
157
+ return shadowParent;
158
+ }
159
+
160
+ export { RemoveScrollSideCar, getDeltaXY, getTouchXY };
161
+ //# sourceMappingURL=SideEffect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SideEffect.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from '../../../tslib/tslib.es6.js';\nimport * as React from 'react';\nimport { RemoveScrollBar } from '../../../react-remove-scroll-bar/dist/es2015/component.js';\nimport { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';\nimport { nonPassive } from './aggresiveCapture.js';\nimport { locationCouldBeScrolled, handleScroll } from './handleScroll.js';\n\nvar getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nvar getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nfunction RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if ('touches' in event && event.touches.length === 2) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n\nexport { RemoveScrollSideCar, getDeltaXY, getTouchXY };\n//# sourceMappingURL=SideEffect.js.map\n"],"names":[],"mappings":";;;;;;;AAOG,IAAC,UAAU,GAAG,UAAU,KAAK,EAAE;AAClC,IAAI,OAAO,gBAAgB,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAClH;AACG,IAAC,UAAU,GAAG,UAAU,KAAK,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AACxE,IAAI,UAAU,GAAG,UAAU,GAAG,EAAE;AAChC,IAAI,OAAO,GAAG,IAAI,SAAS,IAAI,GAAG,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG;AACtD,CAAC;AACD,IAAI,YAAY,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;AAC7E,IAAI,aAAa,GAAG,UAAU,EAAE,EAAE,EAAE,OAAO,2BAA2B,CAAC,MAAM,CAAC,EAAE,EAAE,mDAAmD,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,2BAA2B,CAAC,CAAC,EAAE;AACjL,IAAI,SAAS,GAAG,CAAC;AACjB,IAAI,SAAS,GAAG,EAAE;AACl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E,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,IAAI;AAChF,QAAQ,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;AAClG;AACA,SAAS,wBAAwB,CAAC,IAAI,EAAE;AACxC,IAAI,IAAI,YAAY,GAAG,IAAI;AAC3B,IAAI,OAAO,IAAI,KAAK,IAAI,EAAE;AAC1B,QAAQ,IAAI,IAAI,YAAY,UAAU,EAAE;AACxC,YAAY,YAAY,GAAG,IAAI,CAAC,IAAI;AACpC,YAAY,IAAI,GAAG,IAAI,CAAC,IAAI;AAC5B;AACA,QAAQ,IAAI,GAAG,IAAI,CAAC,UAAU;AAC9B;AACA,IAAI,OAAO,YAAY;AACvB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,39 @@
1
+ import { __rest, __assign } from '../../../tslib/tslib.es6.js';
2
+ import * as React from 'react';
3
+ import { zeroRightClassName, fullWidthClassName } from '../../../react-remove-scroll-bar/dist/es2015/constants.js';
4
+ import { effectCar } from './medium.js';
5
+ import { useMergeRefs } from '../../../use-callback-ref/dist/es2015/useMergeRef.js';
6
+
7
+ var nothing = function () {
8
+ return;
9
+ };
10
+ /**
11
+ * Removes scrollbar from the page and contain the scroll within the Lock
12
+ */
13
+ var RemoveScroll = React.forwardRef(function (props, parentRef) {
14
+ var ref = React.useRef(null);
15
+ var _a = React.useState({
16
+ onScrollCapture: nothing,
17
+ onWheelCapture: nothing,
18
+ onTouchMoveCapture: nothing,
19
+ }), callbacks = _a[0], setCallbacks = _a[1];
20
+ var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
21
+ var SideCar = sideCar;
22
+ var containerRef = useMergeRefs([ref, parentRef]);
23
+ var containerProps = __assign(__assign({}, rest), callbacks);
24
+ return (React.createElement(React.Fragment, null,
25
+ enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),
26
+ forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));
27
+ });
28
+ RemoveScroll.defaultProps = {
29
+ enabled: true,
30
+ removeScrollBar: true,
31
+ inert: false,
32
+ };
33
+ RemoveScroll.classNames = {
34
+ fullWidth: fullWidthClassName,
35
+ zeroRight: zeroRightClassName,
36
+ };
37
+
38
+ export { RemoveScroll };
39
+ //# sourceMappingURL=UI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UI.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js"],"sourcesContent":["import { __rest, __assign } from '../../../tslib/tslib.es6.js';\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from '../../../react-remove-scroll-bar/dist/es2015/constants.js';\nimport { effectCar } from './medium.js';\nimport { useMergeRefs } from '../../../use-callback-ref/dist/es2015/useMergeRef.js';\n\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\n\nexport { RemoveScroll };\n//# sourceMappingURL=UI.js.map\n"],"names":[],"mappings":";;;;;;AAMA,IAAI,OAAO,GAAG,YAAY;AAC1B,IAAI;AACJ,CAAC;AACD;AACA;AACA;AACG,IAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,KAAK,EAAE,SAAS,EAAE;AAChE,IAAI,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;AAChC,IAAI,IAAI,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;AAC5B,QAAQ,eAAe,EAAE,OAAO;AAChC,QAAQ,cAAc,EAAE,OAAO;AAC/B,QAAQ,kBAAkB,EAAE,OAAO;AACnC,KAAK,CAAC,EAAE,SAAS,GAAG,EAAE,CAAC,CAAC,CAA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AE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC,CAAC,cAAc,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AACjQ,QAAQ,YAAY,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;AAClQ,CAAC;AACD,YAAY,CAAC,YAAY,GAAG;AAC5B,IAAI,OAAO,EAAE,IAAI;AACjB,IAAI,eAAe,EAAE,IAAI;AACzB,IAAI,KAAK,EAAE,KAAK;AAChB,CAAC;AACD,YAAY,CAAC,UAAU,GAAG;AAC1B,IAAI,SAAS,EAAE,kBAAkB;AACjC,IAAI,SAAS,EAAE,kBAAkB;AACjC,CAAC;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,22 @@
1
+ var passiveSupported = false;
2
+ if (typeof window !== 'undefined') {
3
+ try {
4
+ var options = Object.defineProperty({}, 'passive', {
5
+ get: function () {
6
+ passiveSupported = true;
7
+ return true;
8
+ },
9
+ });
10
+ // @ts-ignore
11
+ window.addEventListener('test', options, options);
12
+ // @ts-ignore
13
+ window.removeEventListener('test', options, options);
14
+ }
15
+ catch (err) {
16
+ passiveSupported = false;
17
+ }
18
+ }
19
+ var nonPassive = passiveSupported ? { passive: false } : false;
20
+
21
+ export { nonPassive };
22
+ //# sourceMappingURL=aggresiveCapture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggresiveCapture.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nvar nonPassive = passiveSupported ? { passive: false } : false;\n\nexport { nonPassive };\n//# sourceMappingURL=aggresiveCapture.js.map\n"],"names":[],"mappings":"AAAA,IAAI,gBAAgB,GAAG,KAAK;AAC5B,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AACnC,IAAI,IAAI;AACR,QAAQ,IAAI,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE;AAC3D,YAAY,GAAG,EAAE,YAAY;AAC7B,gBAAgB,gBAAgB,GAAG,IAAI;AACvC,gBAAgB,OAAO,IAAI;AAC3B,aAAa;AACb,SAAS,CAAC;AACV;AACA,QAAQ,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACzD;AACA,QAAQ,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AAC5D;AACA,IAAI,OAAO,GAAG,EAAE;AAChB,QAAQ,gBAAgB,GAAG,KAAK;AAChC;AACA;AACG,IAAC,UAAU,GAAG,gBAAgB,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,107 @@
1
+ var alwaysContainsScroll = function (node) {
2
+ // textarea will always _contain_ scroll inside self. It only can be hidden
3
+ return node.tagName === 'TEXTAREA';
4
+ };
5
+ var elementCanBeScrolled = function (node, overflow) {
6
+ var styles = window.getComputedStyle(node);
7
+ return (
8
+ // not-not-scrollable
9
+ styles[overflow] !== 'hidden' &&
10
+ // contains scroll inside self
11
+ !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
12
+ };
13
+ var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
14
+ var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
15
+ var locationCouldBeScrolled = function (axis, node) {
16
+ var ownerDocument = node.ownerDocument;
17
+ var current = node;
18
+ do {
19
+ // Skip over shadow root
20
+ if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
21
+ current = current.host;
22
+ }
23
+ var isScrollable = elementCouldBeScrolled(axis, current);
24
+ if (isScrollable) {
25
+ var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];
26
+ if (s > d) {
27
+ return true;
28
+ }
29
+ }
30
+ current = current.parentNode;
31
+ } while (current && current !== ownerDocument.body);
32
+ return false;
33
+ };
34
+ var getVScrollVariables = function (_a) {
35
+ var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
36
+ return [
37
+ scrollTop,
38
+ scrollHeight,
39
+ clientHeight,
40
+ ];
41
+ };
42
+ var getHScrollVariables = function (_a) {
43
+ var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
44
+ return [
45
+ scrollLeft,
46
+ scrollWidth,
47
+ clientWidth,
48
+ ];
49
+ };
50
+ var elementCouldBeScrolled = function (axis, node) {
51
+ return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
52
+ };
53
+ var getScrollVariables = function (axis, node) {
54
+ return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
55
+ };
56
+ var getDirectionFactor = function (axis, direction) {
57
+ /**
58
+ * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
59
+ * and then increasingly negative as you scroll towards the end of the content.
60
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
61
+ */
62
+ return axis === 'h' && direction === 'rtl' ? -1 : 1;
63
+ };
64
+ var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
65
+ var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
66
+ var delta = directionFactor * sourceDelta;
67
+ // find scrollable target
68
+ var target = event.target;
69
+ var targetInLock = endTarget.contains(target);
70
+ var shouldCancelScroll = false;
71
+ var isDeltaPositive = delta > 0;
72
+ var availableScroll = 0;
73
+ var availableScrollTop = 0;
74
+ do {
75
+ var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
76
+ var elementScroll = scroll_1 - capacity - directionFactor * position;
77
+ if (position || elementScroll) {
78
+ if (elementCouldBeScrolled(axis, target)) {
79
+ availableScroll += elementScroll;
80
+ availableScrollTop += position;
81
+ }
82
+ }
83
+ if (target instanceof ShadowRoot) {
84
+ target = target.host;
85
+ }
86
+ else {
87
+ target = target.parentNode;
88
+ }
89
+ } while (
90
+ // portaled content
91
+ (!targetInLock && target !== document.body) ||
92
+ // self content
93
+ (targetInLock && (endTarget.contains(target) || endTarget === target)));
94
+ // handle epsilon around 0 (non standard zoom levels)
95
+ if (isDeltaPositive &&
96
+ ((Math.abs(availableScroll) < 1) || (false))) {
97
+ shouldCancelScroll = true;
98
+ }
99
+ else if (!isDeltaPositive &&
100
+ ((Math.abs(availableScrollTop) < 1) || (false))) {
101
+ shouldCancelScroll = true;
102
+ }
103
+ return shouldCancelScroll;
104
+ };
105
+
106
+ export { handleScroll, locationCouldBeScrolled };
107
+ //# sourceMappingURL=handleScroll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleScroll.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nvar locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];\n if (s > d) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nvar handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n\nexport { handleScroll, locationCouldBeScrolled };\n//# sourceMappingURL=handleScroll.js.map\n"],"names":[],"mappings":"AAAA,IAAI,oBAAoB,GAAG,UAAU,IAAI,EAAE;AAC3C;AACA,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,UAAU;AACtC,CAAC;AACD,IAAI,oBAAoB,GAAG,UAAU,IAAI,EAAE,QAAQ,EAAE;AACrD,IAAI,IAAI,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9C,IAAI;AACJ;AACA,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,QAAQ;AACjC;AACA,QAAQ,EAAE,MAAM,CAAC,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAS,CAAC;AACjH,CAAC;AACD,IAAI,uBAAuB,GAAG,UAAU,IAAI,EAAE,E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_ignoreList":[0]}
@@ -0,0 +1,6 @@
1
+ import { createSidecarMedium } from '../../../use-sidecar/dist/es2015/medium.js';
2
+
3
+ var effectCar = createSidecarMedium();
4
+
5
+ export { effectCar };
6
+ //# sourceMappingURL=medium.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"medium.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js"],"sourcesContent":["import { createSidecarMedium } from '../../../use-sidecar/dist/es2015/medium.js';\n\nvar effectCar = createSidecarMedium();\n\nexport { effectCar };\n//# sourceMappingURL=medium.js.map\n"],"names":[],"mappings":";;AAEG,IAAC,SAAS,GAAG,mBAAmB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,8 @@
1
+ import { RemoveScrollSideCar } from './SideEffect.js';
2
+ import { effectCar } from './medium.js';
3
+ import { exportSidecar } from '../../../use-sidecar/dist/es2015/exports.js';
4
+
5
+ var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
6
+
7
+ export { SideCar as default };
8
+ //# sourceMappingURL=sidecar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidecar.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js"],"sourcesContent":["import { RemoveScrollSideCar } from './SideEffect.js';\nimport { effectCar } from './medium.js';\nimport { exportSidecar } from '../../../use-sidecar/dist/es2015/exports.js';\n\nvar SideCar = exportSidecar(effectCar, RemoveScrollSideCar);\n\nexport { SideCar as default };\n//# sourceMappingURL=sidecar.js.map\n"],"names":[],"mappings":";;;;AAIG,IAAC,OAAO,GAAG,aAAa,CAAC,SAAS,EAAE,mBAAmB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,57 @@
1
+ import * as React from 'react';
2
+ import { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';
3
+ import { noScrollbarsClassName, zeroRightClassName, fullWidthClassName, removedBarSizeVariable } from './constants.js';
4
+ import { getGapWidth } from './utils.js';
5
+
6
+ var Style = styleSingleton();
7
+ var lockAttribute = 'data-scroll-locked';
8
+ // important tip - once we measure scrollBar width and remove them
9
+ // we could not repeat this operation
10
+ // thus we are using style-singleton - only the first "yet correct" style will be applied.
11
+ var getStyles = function (_a, allowRelative, gapMode, important) {
12
+ var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
13
+ if (gapMode === void 0) { gapMode = 'margin'; }
14
+ return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
15
+ allowRelative && "position: relative ".concat(important, ";"),
16
+ gapMode === 'margin' &&
17
+ "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
18
+ gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
19
+ ]
20
+ .filter(Boolean)
21
+ .join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
22
+ };
23
+ var getCurrentUseCounter = function () {
24
+ var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);
25
+ return isFinite(counter) ? counter : 0;
26
+ };
27
+ var useLockAttribute = function () {
28
+ React.useEffect(function () {
29
+ document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
30
+ return function () {
31
+ var newCounter = getCurrentUseCounter() - 1;
32
+ if (newCounter <= 0) {
33
+ document.body.removeAttribute(lockAttribute);
34
+ }
35
+ else {
36
+ document.body.setAttribute(lockAttribute, newCounter.toString());
37
+ }
38
+ };
39
+ }, []);
40
+ };
41
+ /**
42
+ * Removes page scrollbar and blocks page scroll when mounted
43
+ */
44
+ var RemoveScrollBar = function (_a) {
45
+ var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;
46
+ useLockAttribute();
47
+ /*
48
+ gap will be measured on every component mount
49
+ however it will be used only by the "first" invocation
50
+ due to singleton nature of <Style
51
+ */
52
+ var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
53
+ return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
54
+ };
55
+
56
+ export { RemoveScrollBar, lockAttribute, useLockAttribute };
57
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';\nimport { noScrollbarsClassName, zeroRightClassName, fullWidthClassName, removedBarSizeVariable } from './constants.js';\nimport { getGapWidth } from './utils.js';\n\nvar Style = styleSingleton();\nvar lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nvar useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nvar RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode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,EAAE,CAAC;AAC1F,QAAQ,OAAO,YAAY;AAC3B,YAAY,IAAI,UAAU,GAAG,oBAAoB,EAAE,GAAG,CAAC;AACvD,YAAY,IAAI,UAAU,IAAI,CAAC,EAAE;AACjC,gBAAgB,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC;AAC5D;AACA,iBAAiB;AACjB,gBAAgB,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC;AAChF;AACA,SAAS;AACT,KAAK,EAAE,EAAE,CAAC;AACV;AACA;AACA;AACA;AACG,IAAC,eAAe,GAAG,UAAU,EAAE,EAAE;AACpC,IAAI,IAAI,UAAU,GAAG,EAAE,CAAC,UAAU,EAAE,WAAW,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,EAAE,KAAK,MAAM,GAAG,QAAQ,GAAG,EAAE;AAC1H,IAAI,gBAAgB,EAAE;AACtB;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AACpF,IAAI,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC,WAAW,GAAG,YAAY,GAAG,EAAE,CAAC,EAAE,CAAC;AACzH;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,11 @@
1
+ var zeroRightClassName = 'right-scroll-bar-position';
2
+ var fullWidthClassName = 'width-before-scroll-bar';
3
+ var noScrollbarsClassName = 'with-scroll-bars-hidden';
4
+ /**
5
+ * Name of a CSS variable containing the amount of "hidden" scrollbar
6
+ * ! might be undefined ! use will fallback!
7
+ */
8
+ var removedBarSizeVariable = '--removed-body-scroll-bar-size';
9
+
10
+ export { fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, zeroRightClassName };
11
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["var zeroRightClassName = 'right-scroll-bar-position';\nvar fullWidthClassName = 'width-before-scroll-bar';\nvar noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nvar removedBarSizeVariable = '--removed-body-scroll-bar-size';\n\nexport { fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, zeroRightClassName };\n//# sourceMappingURL=constants.js.map\n"],"names":[],"mappings":"AAAG,IAAC,kBAAkB,GAAG;AACtB,IAAC,kBAAkB,GAAG;AACtB,IAAC,qBAAqB,GAAG;AAC5B;AACA;AACA;AACA;AACG,IAAC,sBAAsB,GAAG;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,32 @@
1
+ var zeroGap = {
2
+ left: 0,
3
+ top: 0,
4
+ right: 0,
5
+ gap: 0,
6
+ };
7
+ var parse = function (x) { return parseInt(x || '', 10) || 0; };
8
+ var getOffset = function (gapMode) {
9
+ var cs = window.getComputedStyle(document.body);
10
+ var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
11
+ var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
12
+ var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
13
+ return [parse(left), parse(top), parse(right)];
14
+ };
15
+ var getGapWidth = function (gapMode) {
16
+ if (gapMode === void 0) { gapMode = 'margin'; }
17
+ if (typeof window === 'undefined') {
18
+ return zeroGap;
19
+ }
20
+ var offsets = getOffset(gapMode);
21
+ var documentWidth = document.documentElement.clientWidth;
22
+ var windowWidth = window.innerWidth;
23
+ return {
24
+ left: offsets[0],
25
+ top: offsets[1],
26
+ right: offsets[2],
27
+ gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
28
+ };
29
+ };
30
+
31
+ export { getGapWidth, zeroGap };
32
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nvar getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n\nexport { getGapWidth, zeroGap };\n//# sourceMappingURL=utils.js.map\n"],"names":[],"mappings":"AAAG,IAAC,OAAO,GAAG;AACd,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,GAAG,EAAE,CAAC;AACV,IAAI,KAAK,EAAE,CAAC;AACZ,IAAI,GAAG,EAAE,CAAC;AACV;AACA,IAAI,KAAK,GAAG,UAAU,CAAC,EAAE,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE;AAC/D,IAAI,SAAS,GAAG,UAAU,OAAO,EAAE;AACnC,IAAI,IAAI,EAAE,GAAG,MAAM,CAAC,g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- styles are added when first instance is mounted
6
+ * - styles are removed when the last instance is unmounted
7
+ * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
8
+ */
9
+ var styleSingleton = function () {
10
+ var useStyle = styleHookSingleton();
11
+ var Sheet = function (_a) {
12
+ var styles = _a.styles, dynamic = _a.dynamic;
13
+ useStyle(styles, dynamic);
14
+ return null;
15
+ };
16
+ return Sheet;
17
+ };
18
+
19
+ export { styleSingleton };
20
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook.js';\n\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nvar styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n\nexport { styleSingleton };\n//# sourceMappingURL=component.js.map\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACG,IAAC,cAAc,GAAG,YAAY;AACjC,IAAI,IAAI,QAAQ,GAAG,kBAAkB,EAAE;AACvC,IAAI,IAAI,KAAK,GAAG,UAAU,EAAE,EAAE;AAC9B,QAAQ,IAAI,MAAM,GAAG,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,EAAE,CAAC,OAAO;AACpD,QAAQ,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;AACjC,QAAQ,OAAO,IAAI;AACnB,KAAK;AACL,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { stylesheetSingleton } from './singleton.js';
3
+
4
+ /**
5
+ * creates a hook to control style singleton
6
+ * @see {@link styleSingleton} for a safer component version
7
+ * @example
8
+ * ```tsx
9
+ * const useStyle = styleHookSingleton();
10
+ * ///
11
+ * useStyle('body { overflow: hidden}');
12
+ */
13
+ var styleHookSingleton = function () {
14
+ var sheet = stylesheetSingleton();
15
+ return function (styles, isDynamic) {
16
+ React.useEffect(function () {
17
+ sheet.add(styles);
18
+ return function () {
19
+ sheet.remove();
20
+ };
21
+ }, [styles && isDynamic]);
22
+ };
23
+ };
24
+
25
+ export { styleHookSingleton };
26
+ //# sourceMappingURL=hook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook.js","sources":["../../../../../../../../../../react-components/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton.js';\n\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nvar styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n\nexport { styleHookSingleton };\n//# sourceMappingURL=hook.js.map\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACG,IAAC,kBAAkB,GAAG,YAAY;AACrC,IAAI,IAAI,KAAK,GAAG,mBAAmB,EAAE;AACrC,IAAI,OAAO,UAAU,MAAM,EAAE,SAAS,EAAE;AACxC,QAAQ,KAAK,CAAC,SAAS,CAAC,YAAY;AACpC,YAAY,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC;AAC7B,YAAY,OAAO,YAAY;AAC/B,gBAAgB,KAAK,CAAC,MAAM,EAAE;AAC9B,aAAa;AACb,SAAS,EAAE,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC;AACjC,KAAK;AACL;;;;","x_google_ignoreList":[0]}