@soul-refiner/design-system 2.0.0-alpha.20 → 2.0.0-alpha.21

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 (934) hide show
  1. package/dist/index.js +11881 -0
  2. package/package.json +3 -4
  3. package/dist/_virtual/_cloneBuffer.js +0 -5
  4. package/dist/_virtual/_commonjsHelpers.js +0 -10
  5. package/dist/_virtual/_nodeUtil.js +0 -5
  6. package/dist/_virtual/index.js +0 -5
  7. package/dist/_virtual/index2.js +0 -5
  8. package/dist/_virtual/index3.js +0 -5
  9. package/dist/_virtual/isBuffer.js +0 -5
  10. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
  11. package/dist/_virtual/use-sync-external-store-shim.production.min.js +0 -5
  12. package/dist/_virtual/util.js +0 -5
  13. package/dist/_virtual/with-selector.development.js +0 -5
  14. package/dist/_virtual/with-selector.js +0 -5
  15. package/dist/_virtual/with-selector.production.min.js +0 -5
  16. package/dist/node_modules/@udecode/plate-alignment/dist/index.js +0 -98
  17. package/dist/node_modules/@udecode/plate-core/dist/index.js +0 -2656
  18. package/dist/node_modules/@udecode/plate-link/dist/index.js +0 -585
  19. package/dist/node_modules/@udecode/plate-media/dist/index.js +0 -211
  20. package/dist/node_modules/@udecode/plate-normalizers/dist/index.js +0 -20
  21. package/dist/node_modules/@udecode/plate-resizable/dist/index.js +0 -334
  22. package/dist/node_modules/@udecode/plate-table/dist/index.js +0 -1371
  23. package/dist/node_modules/@udecode/plate-utils/dist/index.js +0 -127
  24. package/dist/node_modules/@udecode/slate/dist/index.js +0 -316
  25. package/dist/node_modules/@udecode/slate-react/dist/index.js +0 -35
  26. package/dist/node_modules/@udecode/slate-utils/dist/index.js +0 -230
  27. package/dist/node_modules/@udecode/utils/dist/index.js +0 -61
  28. package/dist/node_modules/clsx/dist/clsx.m.js +0 -8
  29. package/dist/node_modules/dequal/dist/index.js +0 -88
  30. package/dist/node_modules/immer/dist/immer.js +0 -968
  31. package/dist/node_modules/is-hotkey/lib/index.js +0 -253
  32. package/dist/node_modules/jotai/esm/react/utils.js +0 -29
  33. package/dist/node_modules/jotai/esm/react.js +0 -116
  34. package/dist/node_modules/jotai/esm/vanilla/utils.js +0 -44
  35. package/dist/node_modules/jotai/esm/vanilla.js +0 -602
  36. package/dist/node_modules/jotai-optics/dist/index.modern.js +0 -8
  37. package/dist/node_modules/jotai-x/dist/index.js +0 -259
  38. package/dist/node_modules/js-video-url-parser/lib/base.js +0 -9
  39. package/dist/node_modules/js-video-url-parser/lib/provider/allocine.js +0 -38
  40. package/dist/node_modules/js-video-url-parser/lib/provider/canalplus.js +0 -50
  41. package/dist/node_modules/js-video-url-parser/lib/provider/coub.js +0 -58
  42. package/dist/node_modules/js-video-url-parser/lib/provider/dailymotion.js +0 -74
  43. package/dist/node_modules/js-video-url-parser/lib/provider/facebook.js +0 -82
  44. package/dist/node_modules/js-video-url-parser/lib/provider/loom.js +0 -55
  45. package/dist/node_modules/js-video-url-parser/lib/provider/soundcloud.js +0 -129
  46. package/dist/node_modules/js-video-url-parser/lib/provider/teachertube.js +0 -114
  47. package/dist/node_modules/js-video-url-parser/lib/provider/ted.js +0 -100
  48. package/dist/node_modules/js-video-url-parser/lib/provider/tiktok.js +0 -54
  49. package/dist/node_modules/js-video-url-parser/lib/provider/twitch.js +0 -154
  50. package/dist/node_modules/js-video-url-parser/lib/provider/vimeo.js +0 -93
  51. package/dist/node_modules/js-video-url-parser/lib/provider/wistia.js +0 -116
  52. package/dist/node_modules/js-video-url-parser/lib/provider/youku.js +0 -87
  53. package/dist/node_modules/js-video-url-parser/lib/provider/youtube.js +0 -209
  54. package/dist/node_modules/js-video-url-parser/lib/urlParser.js +0 -88
  55. package/dist/node_modules/js-video-url-parser/lib/util.js +0 -112
  56. package/dist/node_modules/lodash/_DataView.js +0 -14
  57. package/dist/node_modules/lodash/_Hash.js +0 -42
  58. package/dist/node_modules/lodash/_ListCache.js +0 -42
  59. package/dist/node_modules/lodash/_Map.js +0 -14
  60. package/dist/node_modules/lodash/_MapCache.js +0 -42
  61. package/dist/node_modules/lodash/_Promise.js +0 -14
  62. package/dist/node_modules/lodash/_Set.js +0 -14
  63. package/dist/node_modules/lodash/_SetCache.js +0 -35
  64. package/dist/node_modules/lodash/_Stack.js +0 -38
  65. package/dist/node_modules/lodash/_Symbol.js +0 -12
  66. package/dist/node_modules/lodash/_Uint8Array.js +0 -12
  67. package/dist/node_modules/lodash/_WeakMap.js +0 -14
  68. package/dist/node_modules/lodash/_apply.js +0 -26
  69. package/dist/node_modules/lodash/_arrayAggregator.js +0 -27
  70. package/dist/node_modules/lodash/_arrayEach.js +0 -27
  71. package/dist/node_modules/lodash/_arrayFilter.js +0 -30
  72. package/dist/node_modules/lodash/_arrayLikeKeys.js +0 -60
  73. package/dist/node_modules/lodash/_arrayMap.js +0 -26
  74. package/dist/node_modules/lodash/_arrayPush.js +0 -25
  75. package/dist/node_modules/lodash/_arraySome.js +0 -28
  76. package/dist/node_modules/lodash/_assignMergeValue.js +0 -27
  77. package/dist/node_modules/lodash/_assignValue.js +0 -35
  78. package/dist/node_modules/lodash/_assocIndexOf.js +0 -27
  79. package/dist/node_modules/lodash/_baseAggregator.js +0 -27
  80. package/dist/node_modules/lodash/_baseAssign.js +0 -24
  81. package/dist/node_modules/lodash/_baseAssignIn.js +0 -24
  82. package/dist/node_modules/lodash/_baseAssignValue.js +0 -31
  83. package/dist/node_modules/lodash/_baseClone.js +0 -193
  84. package/dist/node_modules/lodash/_baseCreate.js +0 -36
  85. package/dist/node_modules/lodash/_baseEach.js +0 -21
  86. package/dist/node_modules/lodash/_baseFlatten.js +0 -45
  87. package/dist/node_modules/lodash/_baseFor.js +0 -22
  88. package/dist/node_modules/lodash/_baseForOwn.js +0 -23
  89. package/dist/node_modules/lodash/_baseGet.js +0 -31
  90. package/dist/node_modules/lodash/_baseGetAllKeys.js +0 -27
  91. package/dist/node_modules/lodash/_baseGetTag.js +0 -36
  92. package/dist/node_modules/lodash/_baseHasIn.js +0 -18
  93. package/dist/node_modules/lodash/_baseIsArguments.js +0 -25
  94. package/dist/node_modules/lodash/_baseIsEqual.js +0 -35
  95. package/dist/node_modules/lodash/_baseIsEqualDeep.js +0 -96
  96. package/dist/node_modules/lodash/_baseIsMap.js +0 -25
  97. package/dist/node_modules/lodash/_baseIsMatch.js +0 -69
  98. package/dist/node_modules/lodash/_baseIsNative.js +0 -56
  99. package/dist/node_modules/lodash/_baseIsSet.js +0 -25
  100. package/dist/node_modules/lodash/_baseIsTypedArray.js +0 -68
  101. package/dist/node_modules/lodash/_baseIteratee.js +0 -41
  102. package/dist/node_modules/lodash/_baseKeys.js +0 -37
  103. package/dist/node_modules/lodash/_baseKeysIn.js +0 -41
  104. package/dist/node_modules/lodash/_baseMap.js +0 -29
  105. package/dist/node_modules/lodash/_baseMatches.js +0 -30
  106. package/dist/node_modules/lodash/_baseMatchesProperty.js +0 -45
  107. package/dist/node_modules/lodash/_baseMerge.js +0 -54
  108. package/dist/node_modules/lodash/_baseMergeDeep.js +0 -114
  109. package/dist/node_modules/lodash/_baseProperty.js +0 -19
  110. package/dist/node_modules/lodash/_basePropertyDeep.js +0 -22
  111. package/dist/node_modules/lodash/_baseRest.js +0 -25
  112. package/dist/node_modules/lodash/_baseSetToString.js +0 -30
  113. package/dist/node_modules/lodash/_baseSlice.js +0 -36
  114. package/dist/node_modules/lodash/_baseTimes.js +0 -25
  115. package/dist/node_modules/lodash/_baseToString.js +0 -46
  116. package/dist/node_modules/lodash/_baseUnary.js +0 -19
  117. package/dist/node_modules/lodash/_baseUnset.js +0 -29
  118. package/dist/node_modules/lodash/_baseValues.js +0 -25
  119. package/dist/node_modules/lodash/_cacheHas.js +0 -18
  120. package/dist/node_modules/lodash/_castPath.js +0 -30
  121. package/dist/node_modules/lodash/_cloneArrayBuffer.js +0 -22
  122. package/dist/node_modules/lodash/_cloneBuffer.js +0 -48
  123. package/dist/node_modules/lodash/_cloneDataView.js +0 -22
  124. package/dist/node_modules/lodash/_cloneRegExp.js +0 -22
  125. package/dist/node_modules/lodash/_cloneSymbol.js +0 -24
  126. package/dist/node_modules/lodash/_cloneTypedArray.js +0 -22
  127. package/dist/node_modules/lodash/_copyArray.js +0 -25
  128. package/dist/node_modules/lodash/_copyObject.js +0 -47
  129. package/dist/node_modules/lodash/_copySymbols.js +0 -23
  130. package/dist/node_modules/lodash/_copySymbolsIn.js +0 -23
  131. package/dist/node_modules/lodash/_coreJsData.js +0 -12
  132. package/dist/node_modules/lodash/_createAggregator.js +0 -32
  133. package/dist/node_modules/lodash/_createAssigner.js +0 -44
  134. package/dist/node_modules/lodash/_createBaseEach.js +0 -38
  135. package/dist/node_modules/lodash/_createBaseFor.js +0 -30
  136. package/dist/node_modules/lodash/_customDefaultsMerge.js +0 -35
  137. package/dist/node_modules/lodash/_customOmitClone.js +0 -22
  138. package/dist/node_modules/lodash/_defineProperty.js +0 -17
  139. package/dist/node_modules/lodash/_equalArrays.js +0 -92
  140. package/dist/node_modules/lodash/_equalByTag.js +0 -123
  141. package/dist/node_modules/lodash/_equalObjects.js +0 -96
  142. package/dist/node_modules/lodash/_flatRest.js +0 -24
  143. package/dist/node_modules/lodash/_freeGlobal.js +0 -11
  144. package/dist/node_modules/lodash/_getAllKeys.js +0 -24
  145. package/dist/node_modules/lodash/_getAllKeysIn.js +0 -25
  146. package/dist/node_modules/lodash/_getMapData.js +0 -24
  147. package/dist/node_modules/lodash/_getMatchData.js +0 -31
  148. package/dist/node_modules/lodash/_getNative.js +0 -24
  149. package/dist/node_modules/lodash/_getPrototype.js +0 -12
  150. package/dist/node_modules/lodash/_getRawTag.js +0 -52
  151. package/dist/node_modules/lodash/_getSymbols.js +0 -37
  152. package/dist/node_modules/lodash/_getSymbolsIn.js +0 -34
  153. package/dist/node_modules/lodash/_getTag.js +0 -70
  154. package/dist/node_modules/lodash/_getValue.js +0 -18
  155. package/dist/node_modules/lodash/_hasPath.js +0 -50
  156. package/dist/node_modules/lodash/_hashClear.js +0 -21
  157. package/dist/node_modules/lodash/_hashDelete.js +0 -22
  158. package/dist/node_modules/lodash/_hashGet.js +0 -36
  159. package/dist/node_modules/lodash/_hashHas.js +0 -29
  160. package/dist/node_modules/lodash/_hashSet.js +0 -29
  161. package/dist/node_modules/lodash/_initCloneArray.js +0 -31
  162. package/dist/node_modules/lodash/_initCloneByTag.js +0 -87
  163. package/dist/node_modules/lodash/_initCloneObject.js +0 -26
  164. package/dist/node_modules/lodash/_isFlattenable.js +0 -28
  165. package/dist/node_modules/lodash/_isIndex.js +0 -30
  166. package/dist/node_modules/lodash/_isIterateeCall.js +0 -39
  167. package/dist/node_modules/lodash/_isKey.js +0 -36
  168. package/dist/node_modules/lodash/_isKeyable.js +0 -20
  169. package/dist/node_modules/lodash/_isMasked.js +0 -26
  170. package/dist/node_modules/lodash/_isPrototype.js +0 -23
  171. package/dist/node_modules/lodash/_isStrictComparable.js +0 -21
  172. package/dist/node_modules/lodash/_listCacheClear.js +0 -18
  173. package/dist/node_modules/lodash/_listCacheDelete.js +0 -41
  174. package/dist/node_modules/lodash/_listCacheGet.js +0 -25
  175. package/dist/node_modules/lodash/_listCacheHas.js +0 -22
  176. package/dist/node_modules/lodash/_listCacheSet.js +0 -32
  177. package/dist/node_modules/lodash/_mapCacheClear.js +0 -29
  178. package/dist/node_modules/lodash/_mapCacheDelete.js +0 -24
  179. package/dist/node_modules/lodash/_mapCacheGet.js +0 -22
  180. package/dist/node_modules/lodash/_mapCacheHas.js +0 -22
  181. package/dist/node_modules/lodash/_mapCacheSet.js +0 -28
  182. package/dist/node_modules/lodash/_mapToArray.js +0 -23
  183. package/dist/node_modules/lodash/_matchesStrictComparable.js +0 -25
  184. package/dist/node_modules/lodash/_memoizeCapped.js +0 -32
  185. package/dist/node_modules/lodash/_nativeCreate.js +0 -12
  186. package/dist/node_modules/lodash/_nativeKeys.js +0 -12
  187. package/dist/node_modules/lodash/_nativeKeysIn.js +0 -25
  188. package/dist/node_modules/lodash/_nodeUtil.js +0 -43
  189. package/dist/node_modules/lodash/_objectToString.js +0 -27
  190. package/dist/node_modules/lodash/_overArg.js +0 -20
  191. package/dist/node_modules/lodash/_overRest.js +0 -42
  192. package/dist/node_modules/lodash/_parent.js +0 -23
  193. package/dist/node_modules/lodash/_root.js +0 -15
  194. package/dist/node_modules/lodash/_safeGet.js +0 -26
  195. package/dist/node_modules/lodash/_setCacheAdd.js +0 -24
  196. package/dist/node_modules/lodash/_setCacheHas.js +0 -19
  197. package/dist/node_modules/lodash/_setToArray.js +0 -23
  198. package/dist/node_modules/lodash/_setToString.js +0 -21
  199. package/dist/node_modules/lodash/_shortOut.js +0 -42
  200. package/dist/node_modules/lodash/_stackClear.js +0 -21
  201. package/dist/node_modules/lodash/_stackDelete.js +0 -23
  202. package/dist/node_modules/lodash/_stackGet.js +0 -19
  203. package/dist/node_modules/lodash/_stackHas.js +0 -19
  204. package/dist/node_modules/lodash/_stackSet.js +0 -42
  205. package/dist/node_modules/lodash/_stringToPath.js +0 -33
  206. package/dist/node_modules/lodash/_toKey.js +0 -27
  207. package/dist/node_modules/lodash/_toSource.js +0 -31
  208. package/dist/node_modules/lodash/castArray.js +0 -55
  209. package/dist/node_modules/lodash/cloneDeep.js +0 -40
  210. package/dist/node_modules/lodash/constant.js +0 -31
  211. package/dist/node_modules/lodash/defaults.js +0 -69
  212. package/dist/node_modules/lodash/defaultsDeep.js +0 -44
  213. package/dist/node_modules/lodash/eq.js +0 -42
  214. package/dist/node_modules/lodash/flatten.js +0 -28
  215. package/dist/node_modules/lodash/get.js +0 -39
  216. package/dist/node_modules/lodash/hasIn.js +0 -41
  217. package/dist/node_modules/lodash/identity.js +0 -26
  218. package/dist/node_modules/lodash/isArguments.js +0 -43
  219. package/dist/node_modules/lodash/isArray.js +0 -31
  220. package/dist/node_modules/lodash/isArrayLike.js +0 -40
  221. package/dist/node_modules/lodash/isArrayLikeObject.js +0 -40
  222. package/dist/node_modules/lodash/isBuffer.js +0 -52
  223. package/dist/node_modules/lodash/isFunction.js +0 -44
  224. package/dist/node_modules/lodash/isLength.js +0 -40
  225. package/dist/node_modules/lodash/isMap.js +0 -35
  226. package/dist/node_modules/lodash/isObject.js +0 -36
  227. package/dist/node_modules/lodash/isObjectLike.js +0 -34
  228. package/dist/node_modules/lodash/isPlainObject.js +0 -70
  229. package/dist/node_modules/lodash/isSet.js +0 -35
  230. package/dist/node_modules/lodash/isSymbol.js +0 -36
  231. package/dist/node_modules/lodash/isTypedArray.js +0 -35
  232. package/dist/node_modules/lodash/keyBy.js +0 -48
  233. package/dist/node_modules/lodash/keys.js +0 -45
  234. package/dist/node_modules/lodash/keysIn.js +0 -40
  235. package/dist/node_modules/lodash/last.js +0 -25
  236. package/dist/node_modules/lodash/map.js +0 -67
  237. package/dist/node_modules/lodash/memoize.js +0 -79
  238. package/dist/node_modules/lodash/merge.js +0 -51
  239. package/dist/node_modules/lodash/mergeWith.js +0 -46
  240. package/dist/node_modules/lodash/omit.js +0 -75
  241. package/dist/node_modules/lodash/property.js +0 -41
  242. package/dist/node_modules/lodash/stubArray.js +0 -28
  243. package/dist/node_modules/lodash/stubFalse.js +0 -23
  244. package/dist/node_modules/lodash/toPlainObject.js +0 -39
  245. package/dist/node_modules/lodash/toString.js +0 -34
  246. package/dist/node_modules/lodash/values.js +0 -46
  247. package/dist/node_modules/lodash.mapvalues/index.js +0 -2290
  248. package/dist/node_modules/optics-ts/dist/mjs/index.js +0 -31
  249. package/dist/node_modules/optics-ts/dist/mjs/internals.js +0 -460
  250. package/dist/node_modules/proxy-compare/dist/index.modern.js +0 -7
  251. package/dist/node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js +0 -395
  252. package/dist/node_modules/react-tracked/dist/index.modern.js +0 -48
  253. package/dist/node_modules/use-deep-compare/dist-web/index.js +0 -35
  254. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -181
  255. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +0 -32
  256. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -254
  257. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +0 -30
  258. package/dist/node_modules/use-sync-external-store/shim/index.js +0 -21
  259. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -19
  260. package/dist/node_modules/zustand/esm/middleware.js +0 -551
  261. package/dist/node_modules/zustand/esm/traditional.js +0 -25
  262. package/dist/node_modules/zustand/esm/vanilla.js +0 -34
  263. package/dist/node_modules/zustand-x/dist/index.js +0 -217
  264. package/dist/src/common/colors.js +0 -140
  265. package/dist/src/common/date.js +0 -34
  266. package/dist/src/common/styles.js +0 -66
  267. package/dist/src/components/actions/button/button.js +0 -330
  268. package/dist/src/components/actions/dropdown/dropdown.js +0 -237
  269. package/dist/src/components/actions/rate/rate.js +0 -56
  270. package/dist/src/components/actions/switch/switch.js +0 -81
  271. package/dist/src/components/actions/toggle/toggle.js +0 -67
  272. package/dist/src/components/actions/upload/upload.js +0 -170
  273. package/dist/src/components/atoms/box/box.js +0 -26
  274. package/dist/src/components/atoms/hide/hide.js +0 -18
  275. package/dist/src/components/atoms/seconds_to_duration/seconds_to_duration.js +0 -36
  276. package/dist/src/components/atoms/time_ago/time_ago.js +0 -40
  277. package/dist/src/components/atoms/typography/display.js +0 -19
  278. package/dist/src/components/atoms/typography/heading.js +0 -44
  279. package/dist/src/components/atoms/typography/paragraph.js +0 -27
  280. package/dist/src/components/atoms/typography/typography.js +0 -17
  281. package/dist/src/components/card/action/action.js +0 -84
  282. package/dist/src/components/card/audio/audio.js +0 -143
  283. package/dist/src/components/card/card.js +0 -34
  284. package/dist/src/components/card/feature/feature.js +0 -204
  285. package/dist/src/components/card/meeting/meeting.js +0 -152
  286. package/dist/src/components/card/person/person.js +0 -83
  287. package/dist/src/components/card/price/price.js +0 -89
  288. package/dist/src/components/card/regular/regular.js +0 -43
  289. package/dist/src/components/card/styles.js +0 -16
  290. package/dist/src/components/card/video/video.js +0 -140
  291. package/dist/src/components/card/written/written.js +0 -143
  292. package/dist/src/components/custom/courses_selection/courses_selection.js +0 -143
  293. package/dist/src/components/custom/users_selection/users_selection.js +0 -134
  294. package/dist/src/components/editor/constants.js +0 -195
  295. package/dist/src/components/editor/context.js +0 -17
  296. package/dist/src/components/editor/editor.js +0 -114
  297. package/dist/src/components/editor/icons/border-all.js +0 -12
  298. package/dist/src/components/editor/icons/border-bottom.js +0 -12
  299. package/dist/src/components/editor/icons/border-left.js +0 -12
  300. package/dist/src/components/editor/icons/border-none.js +0 -12
  301. package/dist/src/components/editor/icons/border-right.js +0 -12
  302. package/dist/src/components/editor/icons/border-top.js +0 -12
  303. package/dist/src/components/editor/navbar/alignment_dropdown.js +0 -106
  304. package/dist/src/components/editor/navbar/button_modal.js +0 -70
  305. package/dist/src/components/editor/navbar/navbar.js +0 -225
  306. package/dist/src/components/editor/navbar/style_dropdown.js +0 -74
  307. package/dist/src/components/editor/plugins/blocks/blockquote.js +0 -17
  308. package/dist/src/components/editor/plugins/blocks/blocks.js +0 -54
  309. package/dist/src/components/editor/plugins/blocks/buttons.js +0 -91
  310. package/dist/src/components/editor/plugins/blocks/dropdown-menu.js +0 -78
  311. package/dist/src/components/editor/plugins/blocks/image.js +0 -61
  312. package/dist/src/components/editor/plugins/blocks/list.js +0 -26
  313. package/dist/src/components/editor/plugins/blocks/media-popover.js +0 -43
  314. package/dist/src/components/editor/plugins/blocks/plate-button.js +0 -63
  315. package/dist/src/components/editor/plugins/blocks/popover.js +0 -39
  316. package/dist/src/components/editor/plugins/blocks/qa.js +0 -55
  317. package/dist/src/components/editor/plugins/blocks/resizable.js +0 -48
  318. package/dist/src/components/editor/plugins/blocks/separator.js +0 -44
  319. package/dist/src/components/editor/plugins/blocks/table-cell.js +0 -48
  320. package/dist/src/components/editor/plugins/blocks/table-row.js +0 -16
  321. package/dist/src/components/editor/plugins/blocks/table.js +0 -100
  322. package/dist/src/components/editor/plugins/blocks/text.js +0 -103
  323. package/dist/src/components/editor/plugins/blocks/video.js +0 -42
  324. package/dist/src/components/editor/plugins/leafs/leafs.js +0 -37
  325. package/dist/src/components/editor/plugins/leafs/link.js +0 -86
  326. package/dist/src/components/editor/plugins/marks/marks.js +0 -17
  327. package/dist/src/components/editor/plugins/plate.js +0 -43
  328. package/dist/src/components/editor/plugins/utils/exitBreak.js +0 -36
  329. package/dist/src/components/editor/plugins/utils/resetBlockType.js +0 -26
  330. package/dist/src/components/editor/plugins/utils/selectOnBackspace.js +0 -11
  331. package/dist/src/components/editor/plugins/utils/softBreak.js +0 -19
  332. package/dist/src/components/editor/plugins/utils/utils.js +0 -17
  333. package/dist/src/components/editor/simple_editor/navbar.js +0 -128
  334. package/dist/src/components/editor/simple_editor/plugins.js +0 -93
  335. package/dist/src/components/editor/simple_editor/simple_editor.js +0 -98
  336. package/dist/src/components/editor/styles/menu_button.js +0 -36
  337. package/dist/src/components/feedback/animated_toast/animated_toast.js +0 -64
  338. package/dist/src/components/feedback/badge/badge.js +0 -75
  339. package/dist/src/components/feedback/banner/banner.js +0 -95
  340. package/dist/src/components/feedback/chip/chip.js +0 -103
  341. package/dist/src/components/feedback/loader/loader.js +0 -44
  342. package/dist/src/components/feedback/notification/notification.js +0 -87
  343. package/dist/src/components/feedback/progress/progress.js +0 -101
  344. package/dist/src/components/feedback/toast/toast.js +0 -126
  345. package/dist/src/components/feedback/tooltip/tooltip.js +0 -35
  346. package/dist/src/components/iconography/avatar/avatar.js +0 -190
  347. package/dist/src/components/iconography/avatar/icons/approved.js +0 -14
  348. package/dist/src/components/iconography/avatar/icons/busy.js +0 -14
  349. package/dist/src/components/iconography/avatar/icons/declined.js +0 -14
  350. package/dist/src/components/iconography/avatar/icons/default.js +0 -13
  351. package/dist/src/components/iconography/avatar/icons/focus.js +0 -14
  352. package/dist/src/components/iconography/avatar/icons/locked.js +0 -14
  353. package/dist/src/components/iconography/avatar/icons/offline.js +0 -14
  354. package/dist/src/components/iconography/avatar/icons/online.js +0 -13
  355. package/dist/src/components/iconography/avatar/icons/subscribed.js +0 -18
  356. package/dist/src/components/iconography/icon/icon.js +0 -19
  357. package/dist/src/components/input/calendar/calendar.js +0 -267
  358. package/dist/src/components/input/checkbox/checkbox.js +0 -32
  359. package/dist/src/components/input/date/date.js +0 -529
  360. package/dist/src/components/input/filter/filter.js +0 -332
  361. package/dist/src/components/input/filter/filter_option.js +0 -82
  362. package/dist/src/components/input/radio/radio.js +0 -92
  363. package/dist/src/components/input/search/search.js +0 -148
  364. package/dist/src/components/input/select/select.js +0 -56
  365. package/dist/src/components/input/text_area/text_area.js +0 -120
  366. package/dist/src/components/input/text_input/text_input.js +0 -157
  367. package/dist/src/components/input/time/time.js +0 -80
  368. package/dist/src/components/media/video/video.js +0 -42
  369. package/dist/src/components/media/video-player/playlist-item.js +0 -48
  370. package/dist/src/components/media/video-player/video.js +0 -210
  371. package/dist/src/components/navigation/breadcrumb/breadcrumb.js +0 -119
  372. package/dist/src/components/navigation/inner/inner.js +0 -199
  373. package/dist/src/components/navigation/tabs/tabs.js +0 -159
  374. package/dist/src/components/surfaces/accordion/accordion.js +0 -56
  375. package/dist/src/components/surfaces/calendar_date/calendar_date.js +0 -55
  376. package/dist/src/components/surfaces/carousel/card/card.js +0 -106
  377. package/dist/src/components/surfaces/comment/comment.js +0 -211
  378. package/dist/src/components/surfaces/comment/helpers.js +0 -30
  379. package/dist/src/components/surfaces/drawer/drawer.js +0 -140
  380. package/dist/src/components/surfaces/message/message.js +0 -56
  381. package/dist/src/components/surfaces/modal/modal.js +0 -135
  382. package/dist/src/components/surfaces/portal/portal.js +0 -36
  383. package/dist/src/components/surfaces/post/post.js +0 -246
  384. package/dist/src/components/table/table/table.js +0 -192
  385. package/dist/src/emoji/emojis.json.js +0 -36331
  386. package/dist/src/icons/arrow/arrow_all.js +0 -15
  387. package/dist/src/icons/arrow/arrow_all_diagonal.js +0 -15
  388. package/dist/src/icons/arrow/arrow_both_downwards.js +0 -15
  389. package/dist/src/icons/arrow/arrow_both_upwards.js +0 -15
  390. package/dist/src/icons/arrow/arrow_circle_left.js +0 -15
  391. package/dist/src/icons/arrow/arrow_circle_left_double.js +0 -15
  392. package/dist/src/icons/arrow/arrow_circle_left_double_alert.js +0 -17
  393. package/dist/src/icons/arrow/arrow_circle_right.js +0 -15
  394. package/dist/src/icons/arrow/arrow_circle_right_double.js +0 -15
  395. package/dist/src/icons/arrow/arrow_circle_right_double_alert.js +0 -15
  396. package/dist/src/icons/arrow/arrow_diagonal_down_left.js +0 -15
  397. package/dist/src/icons/arrow/arrow_diagonal_down_left_circle.js +0 -15
  398. package/dist/src/icons/arrow/arrow_diagonal_down_right.js +0 -15
  399. package/dist/src/icons/arrow/arrow_diagonal_down_right_circle.js +0 -15
  400. package/dist/src/icons/arrow/arrow_diagonal_up_left.js +0 -15
  401. package/dist/src/icons/arrow/arrow_diagonal_up_left_circle.js +0 -15
  402. package/dist/src/icons/arrow/arrow_diagonal_up_right.js +0 -15
  403. package/dist/src/icons/arrow/arrow_diagonal_up_right_circle.js +0 -15
  404. package/dist/src/icons/arrow/arrow_down.js +0 -15
  405. package/dist/src/icons/arrow/arrow_down_bold.js +0 -15
  406. package/dist/src/icons/arrow/arrow_down_circle.js +0 -15
  407. package/dist/src/icons/arrow/arrow_left.js +0 -15
  408. package/dist/src/icons/arrow/arrow_left_bold.js +0 -15
  409. package/dist/src/icons/arrow/arrow_left_circle.js +0 -15
  410. package/dist/src/icons/arrow/arrow_left_curved.js +0 -15
  411. package/dist/src/icons/arrow/arrow_left_curved_circle.js +0 -15
  412. package/dist/src/icons/arrow/arrow_right.js +0 -15
  413. package/dist/src/icons/arrow/arrow_right_bold.js +0 -15
  414. package/dist/src/icons/arrow/arrow_right_circle.js +0 -15
  415. package/dist/src/icons/arrow/arrow_right_curved.js +0 -15
  416. package/dist/src/icons/arrow/arrow_right_curved_circle.js +0 -15
  417. package/dist/src/icons/arrow/arrow_up.js +0 -15
  418. package/dist/src/icons/arrow/arrow_up_bold.js +0 -15
  419. package/dist/src/icons/arrow/arrow_up_circle.js +0 -15
  420. package/dist/src/icons/arrow/chevron_down.js +0 -15
  421. package/dist/src/icons/arrow/chevron_down_circle.js +0 -15
  422. package/dist/src/icons/arrow/chevron_down_double.js +0 -15
  423. package/dist/src/icons/arrow/chevron_down_double_circle.js +0 -15
  424. package/dist/src/icons/arrow/chevron_left.js +0 -15
  425. package/dist/src/icons/arrow/chevron_left_circle.js +0 -15
  426. package/dist/src/icons/arrow/chevron_left_double.js +0 -15
  427. package/dist/src/icons/arrow/chevron_left_double_circle.js +0 -15
  428. package/dist/src/icons/arrow/chevron_right.js +0 -15
  429. package/dist/src/icons/arrow/chevron_right_circle.js +0 -15
  430. package/dist/src/icons/arrow/chevron_right_double.js +0 -15
  431. package/dist/src/icons/arrow/chevron_right_double_circle.js +0 -15
  432. package/dist/src/icons/arrow/chevron_scroll.js +0 -15
  433. package/dist/src/icons/arrow/chevron_up.js +0 -15
  434. package/dist/src/icons/arrow/chevron_up_circle.js +0 -15
  435. package/dist/src/icons/arrow/chevron_up_double.js +0 -15
  436. package/dist/src/icons/arrow/chevron_up_double_circle.js +0 -15
  437. package/dist/src/icons/arrow/forward_all.js +0 -15
  438. package/dist/src/icons/arrow/forward_all_bold.js +0 -15
  439. package/dist/src/icons/arrow/forward_bold.js +0 -15
  440. package/dist/src/icons/arrow/redo.js +0 -15
  441. package/dist/src/icons/arrow/redo_bold.js +0 -15
  442. package/dist/src/icons/arrow/reply.js +0 -15
  443. package/dist/src/icons/arrow/reply_all.js +0 -15
  444. package/dist/src/icons/arrow/reply_all_bold.js +0 -15
  445. package/dist/src/icons/arrow/reply_bold.js +0 -15
  446. package/dist/src/icons/arrow/undo.js +0 -15
  447. package/dist/src/icons/arrow/undo_bold.js +0 -15
  448. package/dist/src/icons/audio_video/drag_indicator.js +0 -15
  449. package/dist/src/icons/audio_video/eject.js +0 -15
  450. package/dist/src/icons/audio_video/equalizer.js +0 -15
  451. package/dist/src/icons/audio_video/fast_forward.js +0 -15
  452. package/dist/src/icons/audio_video/fast_forward_30.js +0 -15
  453. package/dist/src/icons/audio_video/fullscreen.js +0 -15
  454. package/dist/src/icons/audio_video/headphones.js +0 -15
  455. package/dist/src/icons/audio_video/library_add.js +0 -15
  456. package/dist/src/icons/audio_video/library_music.js +0 -15
  457. package/dist/src/icons/audio_video/microphone.js +0 -15
  458. package/dist/src/icons/audio_video/musical_note.js +0 -15
  459. package/dist/src/icons/audio_video/next.js +0 -15
  460. package/dist/src/icons/audio_video/pause.js +0 -15
  461. package/dist/src/icons/audio_video/pause_circle.js +0 -15
  462. package/dist/src/icons/audio_video/play.js +0 -15
  463. package/dist/src/icons/audio_video/play_circle.js +0 -15
  464. package/dist/src/icons/audio_video/play_display.js +0 -15
  465. package/dist/src/icons/audio_video/play_pause.js +0 -15
  466. package/dist/src/icons/audio_video/play_solid.js +0 -15
  467. package/dist/src/icons/audio_video/player_list.js +0 -15
  468. package/dist/src/icons/audio_video/player_list_add.js +0 -15
  469. package/dist/src/icons/audio_video/player_list_play.js +0 -15
  470. package/dist/src/icons/audio_video/previous.js +0 -15
  471. package/dist/src/icons/audio_video/radio.js +0 -15
  472. package/dist/src/icons/audio_video/record.js +0 -15
  473. package/dist/src/icons/audio_video/repeat.js +0 -15
  474. package/dist/src/icons/audio_video/rewind.js +0 -15
  475. package/dist/src/icons/audio_video/rewind_30.js +0 -15
  476. package/dist/src/icons/audio_video/shuffle.js +0 -15
  477. package/dist/src/icons/audio_video/sound_wave.js +0 -15
  478. package/dist/src/icons/audio_video/stop.js +0 -15
  479. package/dist/src/icons/audio_video/stop_circle.js +0 -15
  480. package/dist/src/icons/audio_video/subscriptions.js +0 -15
  481. package/dist/src/icons/audio_video/tuner.js +0 -15
  482. package/dist/src/icons/audio_video/volume.js +0 -15
  483. package/dist/src/icons/audio_video/volume_high.js +0 -15
  484. package/dist/src/icons/audio_video/volume_low.js +0 -15
  485. package/dist/src/icons/audio_video/volume_slash.js +0 -15
  486. package/dist/src/icons/basic/aa_sansserif.js +0 -16
  487. package/dist/src/icons/basic/aa_serif.js +0 -16
  488. package/dist/src/icons/basic/anchor.js +0 -17
  489. package/dist/src/icons/basic/bible.js +0 -15
  490. package/dist/src/icons/basic/bold.js +0 -15
  491. package/dist/src/icons/basic/book.js +0 -15
  492. package/dist/src/icons/basic/book_open.js +0 -15
  493. package/dist/src/icons/basic/bookmark.js +0 -15
  494. package/dist/src/icons/basic/bookmark_add.js +0 -15
  495. package/dist/src/icons/basic/bookmark_slash.js +0 -15
  496. package/dist/src/icons/basic/bookmarks.js +0 -15
  497. package/dist/src/icons/basic/books.js +0 -18
  498. package/dist/src/icons/basic/box.js +0 -15
  499. package/dist/src/icons/basic/briefcase.js +0 -15
  500. package/dist/src/icons/basic/browse_activity.js +0 -15
  501. package/dist/src/icons/basic/browser.js +0 -15
  502. package/dist/src/icons/basic/browser_slash.js +0 -15
  503. package/dist/src/icons/basic/calculator.js +0 -15
  504. package/dist/src/icons/basic/camera.js +0 -15
  505. package/dist/src/icons/basic/camera_add.js +0 -15
  506. package/dist/src/icons/basic/camera_slash.js +0 -15
  507. package/dist/src/icons/basic/checkmark.js +0 -15
  508. package/dist/src/icons/basic/checkmark_circle.js +0 -17
  509. package/dist/src/icons/basic/checkmark_filled.js +0 -15
  510. package/dist/src/icons/basic/checkmarks.js +0 -15
  511. package/dist/src/icons/basic/circle.js +0 -15
  512. package/dist/src/icons/basic/circle_slash.js +0 -17
  513. package/dist/src/icons/basic/clear_text_style.js +0 -15
  514. package/dist/src/icons/basic/close.js +0 -15
  515. package/dist/src/icons/basic/close_circle.js +0 -15
  516. package/dist/src/icons/basic/close_filled.js +0 -15
  517. package/dist/src/icons/basic/copy.js +0 -15
  518. package/dist/src/icons/basic/delete.js +0 -15
  519. package/dist/src/icons/basic/detail.js +0 -15
  520. package/dist/src/icons/basic/dot.js +0 -15
  521. package/dist/src/icons/basic/download.js +0 -15
  522. package/dist/src/icons/basic/download_arrow.js +0 -15
  523. package/dist/src/icons/basic/droplet.js +0 -17
  524. package/dist/src/icons/basic/ellipsis_horizontal.js +0 -15
  525. package/dist/src/icons/basic/ellipsis_horizontal_circle.js +0 -15
  526. package/dist/src/icons/basic/ellipsis_vertical.js +0 -15
  527. package/dist/src/icons/basic/ellipsis_vertical_circle.js +0 -15
  528. package/dist/src/icons/basic/eye.js +0 -15
  529. package/dist/src/icons/basic/eye_slash.js +0 -15
  530. package/dist/src/icons/basic/fingerprint.js +0 -15
  531. package/dist/src/icons/basic/flag.js +0 -15
  532. package/dist/src/icons/basic/flag_wave.js +0 -15
  533. package/dist/src/icons/basic/flag_wave_filled.js +0 -15
  534. package/dist/src/icons/basic/flame.js +0 -15
  535. package/dist/src/icons/basic/gauge.js +0 -15
  536. package/dist/src/icons/basic/glasses.js +0 -15
  537. package/dist/src/icons/basic/graduation_cap.js +0 -15
  538. package/dist/src/icons/basic/hashmark.js +0 -15
  539. package/dist/src/icons/basic/heart.js +0 -15
  540. package/dist/src/icons/basic/heart_slash.js +0 -15
  541. package/dist/src/icons/basic/highlighter.js +0 -15
  542. package/dist/src/icons/basic/home.js +0 -15
  543. package/dist/src/icons/basic/image.js +0 -15
  544. package/dist/src/icons/basic/inbox.js +0 -15
  545. package/dist/src/icons/basic/italic.js +0 -15
  546. package/dist/src/icons/basic/layers.js +0 -15
  547. package/dist/src/icons/basic/lightening.js +0 -15
  548. package/dist/src/icons/basic/lightening_slash.js +0 -15
  549. package/dist/src/icons/basic/link.js +0 -15
  550. package/dist/src/icons/basic/link_slash.js +0 -15
  551. package/dist/src/icons/basic/loudspeaker.js +0 -15
  552. package/dist/src/icons/basic/maximize.js +0 -15
  553. package/dist/src/icons/basic/menu.js +0 -15
  554. package/dist/src/icons/basic/menu_circle.js +0 -15
  555. package/dist/src/icons/basic/menu_dots.js +0 -15
  556. package/dist/src/icons/basic/microphone_slash.js +0 -15
  557. package/dist/src/icons/basic/minimize.js +0 -15
  558. package/dist/src/icons/basic/minus.js +0 -15
  559. package/dist/src/icons/basic/minus_circle.js +0 -15
  560. package/dist/src/icons/basic/move_item.js +0 -15
  561. package/dist/src/icons/basic/new.js +0 -15
  562. package/dist/src/icons/basic/newspaper.js +0 -15
  563. package/dist/src/icons/basic/node.js +0 -15
  564. package/dist/src/icons/basic/note_pad.js +0 -16
  565. package/dist/src/icons/basic/options.js +0 -15
  566. package/dist/src/icons/basic/paint_brush.js +0 -15
  567. package/dist/src/icons/basic/paperclip.js +0 -15
  568. package/dist/src/icons/basic/paperclip_slash.js +0 -15
  569. package/dist/src/icons/basic/pencil.js +0 -15
  570. package/dist/src/icons/basic/pencil_pad.js +0 -15
  571. package/dist/src/icons/basic/plus.js +0 -15
  572. package/dist/src/icons/basic/plus_circle.js +0 -15
  573. package/dist/src/icons/basic/presentation.js +0 -15
  574. package/dist/src/icons/basic/printer.js +0 -15
  575. package/dist/src/icons/basic/profile.js +0 -15
  576. package/dist/src/icons/basic/profile_check.js +0 -15
  577. package/dist/src/icons/basic/pulse.js +0 -15
  578. package/dist/src/icons/basic/qr_code.js +0 -15
  579. package/dist/src/icons/basic/resize.js +0 -17
  580. package/dist/src/icons/basic/scan.js +0 -15
  581. package/dist/src/icons/basic/scissors.js +0 -15
  582. package/dist/src/icons/basic/screenshot.js +0 -15
  583. package/dist/src/icons/basic/search.js +0 -15
  584. package/dist/src/icons/basic/select_item.js +0 -16
  585. package/dist/src/icons/basic/settings.js +0 -15
  586. package/dist/src/icons/basic/share.js +0 -15
  587. package/dist/src/icons/basic/share_external.js +0 -15
  588. package/dist/src/icons/basic/square.js +0 -15
  589. package/dist/src/icons/basic/star.js +0 -15
  590. package/dist/src/icons/basic/star_circle.js +0 -15
  591. package/dist/src/icons/basic/star_filled.js +0 -15
  592. package/dist/src/icons/basic/star_filled_half.js +0 -15
  593. package/dist/src/icons/basic/star_slash.js +0 -15
  594. package/dist/src/icons/basic/sticker.js +0 -15
  595. package/dist/src/icons/basic/strikethrough.js +0 -15
  596. package/dist/src/icons/basic/subtask.js +0 -16
  597. package/dist/src/icons/basic/tax.js +0 -18
  598. package/dist/src/icons/basic/text_bg_color.js +0 -15
  599. package/dist/src/icons/basic/text_color.js +0 -15
  600. package/dist/src/icons/basic/textbox.js +0 -15
  601. package/dist/src/icons/basic/thumbs_down.js +0 -15
  602. package/dist/src/icons/basic/thumbs_up.js +0 -15
  603. package/dist/src/icons/basic/thumbs_up_filled.js +0 -15
  604. package/dist/src/icons/basic/toggle_left.js +0 -15
  605. package/dist/src/icons/basic/toggle_right.js +0 -15
  606. package/dist/src/icons/basic/translate.js +0 -15
  607. package/dist/src/icons/basic/trash.js +0 -15
  608. package/dist/src/icons/basic/trash_slash.js +0 -15
  609. package/dist/src/icons/basic/underline.js +0 -15
  610. package/dist/src/icons/basic/upload.js +0 -15
  611. package/dist/src/icons/basic/video.js +0 -15
  612. package/dist/src/icons/basic/video_add.js +0 -16
  613. package/dist/src/icons/basic/video_slash.js +0 -15
  614. package/dist/src/icons/basic/wrench.js +0 -15
  615. package/dist/src/icons/basic/zoom_in.js +0 -15
  616. package/dist/src/icons/basic/zoom_out.js +0 -15
  617. package/dist/src/icons/data/bar_chart.js +0 -15
  618. package/dist/src/icons/data/bar_chart_downward.js +0 -15
  619. package/dist/src/icons/data/bar_chart_downward_outline.js +0 -15
  620. package/dist/src/icons/data/bar_chart_upward.js +0 -15
  621. package/dist/src/icons/data/bar_chart_upward_outline.js +0 -15
  622. package/dist/src/icons/data/candlestick_chart.js +0 -15
  623. package/dist/src/icons/data/four_circles.js +0 -15
  624. package/dist/src/icons/data/legend_toggle.js +0 -15
  625. package/dist/src/icons/data/line_chart.js +0 -15
  626. package/dist/src/icons/data/line_chart_area.js +0 -15
  627. package/dist/src/icons/data/line_chart_area_shaded.js +0 -15
  628. package/dist/src/icons/data/line_chart_double.js +0 -15
  629. package/dist/src/icons/data/line_chart_downward.js +0 -15
  630. package/dist/src/icons/data/line_chart_node.js +0 -15
  631. package/dist/src/icons/data/line_chart_outline.js +0 -15
  632. package/dist/src/icons/data/line_chart_search.js +0 -15
  633. package/dist/src/icons/data/line_chart_stars.js +0 -15
  634. package/dist/src/icons/data/line_chart_upward.js +0 -15
  635. package/dist/src/icons/data/pie_chart.js +0 -16
  636. package/dist/src/icons/data/tree.js +0 -15
  637. package/dist/src/icons/email/mail.js +0 -15
  638. package/dist/src/icons/email/mail_check.js +0 -15
  639. package/dist/src/icons/email/mail_minus.js +0 -15
  640. package/dist/src/icons/email/mail_send.js +0 -15
  641. package/dist/src/icons/email/send.js +0 -15
  642. package/dist/src/icons/email/send_close.js +0 -15
  643. package/dist/src/icons/email/send_schedule.js +0 -15
  644. package/dist/src/icons/email/send_text.js +0 -15
  645. package/dist/src/icons/emoji/emoji_add.js +0 -15
  646. package/dist/src/icons/emoji/laughing.js +0 -15
  647. package/dist/src/icons/emoji/neutral.js +0 -15
  648. package/dist/src/icons/emoji/sad.js +0 -15
  649. package/dist/src/icons/emoji/shocked.js +0 -15
  650. package/dist/src/icons/emoji/smile.js +0 -15
  651. package/dist/src/icons/file/clipboard.js +0 -15
  652. package/dist/src/icons/file/clipboard_check.js +0 -15
  653. package/dist/src/icons/file/clipboard_close.js +0 -15
  654. package/dist/src/icons/file/clipboard_minus.js +0 -15
  655. package/dist/src/icons/file/clipboard_plus.js +0 -15
  656. package/dist/src/icons/file/clipboard_text.js +0 -15
  657. package/dist/src/icons/file/file.js +0 -15
  658. package/dist/src/icons/file/file_add.js +0 -15
  659. package/dist/src/icons/file/file_check.js +0 -15
  660. package/dist/src/icons/file/file_close.js +0 -15
  661. package/dist/src/icons/file/file_code.js +0 -15
  662. package/dist/src/icons/file/file_download.js +0 -15
  663. package/dist/src/icons/file/file_draft.js +0 -15
  664. package/dist/src/icons/file/file_gear.js +0 -16
  665. package/dist/src/icons/file/file_minus.js +0 -15
  666. package/dist/src/icons/file/file_plus.js +0 -15
  667. package/dist/src/icons/file/file_scan.js +0 -15
  668. package/dist/src/icons/file/file_shred.js +0 -15
  669. package/dist/src/icons/file/file_text.js +0 -15
  670. package/dist/src/icons/file/file_upload.js +0 -15
  671. package/dist/src/icons/file/folder.js +0 -15
  672. package/dist/src/icons/file/folder_add.js +0 -15
  673. package/dist/src/icons/file/folder_arrow.js +0 -15
  674. package/dist/src/icons/file/folder_check.js +0 -15
  675. package/dist/src/icons/file/folder_close.js +0 -15
  676. package/dist/src/icons/file/folder_cloud.js +0 -15
  677. package/dist/src/icons/file/folder_gear.js +0 -16
  678. package/dist/src/icons/file/folder_minus.js +0 -15
  679. package/dist/src/icons/file/folder_music.js +0 -15
  680. package/dist/src/icons/file/folder_open.js +0 -15
  681. package/dist/src/icons/file/folder_plus.js +0 -15
  682. package/dist/src/icons/file/folder_zip.js +0 -15
  683. package/dist/src/icons/file/note.js +0 -15
  684. package/dist/src/icons/file/note_text.js +0 -15
  685. package/dist/src/icons/file/pdf.js +0 -15
  686. package/dist/src/icons/file/photo.js +0 -15
  687. package/dist/src/icons/finance/bitcoin.js +0 -15
  688. package/dist/src/icons/finance/coins.js +0 -19
  689. package/dist/src/icons/finance/credit_card.js +0 -15
  690. package/dist/src/icons/finance/credit_card_add.js +0 -15
  691. package/dist/src/icons/finance/credit_card_face.js +0 -15
  692. package/dist/src/icons/finance/credit_card_member.js +0 -15
  693. package/dist/src/icons/finance/credit_card_outcome.js +0 -15
  694. package/dist/src/icons/finance/credit_card_scan.js +0 -15
  695. package/dist/src/icons/finance/credit_card_share.js +0 -15
  696. package/dist/src/icons/finance/credit_card_slash.js +0 -15
  697. package/dist/src/icons/finance/currency_exchange.js +0 -15
  698. package/dist/src/icons/finance/dollar.js +0 -15
  699. package/dist/src/icons/finance/ethereum.js +0 -15
  700. package/dist/src/icons/finance/paypass.js +0 -15
  701. package/dist/src/icons/finance/strongbox.js +0 -15
  702. package/dist/src/icons/finance/wallet.js +0 -15
  703. package/dist/src/icons/index.js +0 -1095
  704. package/dist/src/icons/layout/block_align_bottom.js +0 -15
  705. package/dist/src/icons/layout/block_align_center.js +0 -15
  706. package/dist/src/icons/layout/block_align_left.js +0 -15
  707. package/dist/src/icons/layout/block_align_middle.js +0 -15
  708. package/dist/src/icons/layout/block_align_right.js +0 -15
  709. package/dist/src/icons/layout/block_align_top.js +0 -15
  710. package/dist/src/icons/layout/block_horizontal.js +0 -15
  711. package/dist/src/icons/layout/block_vertical.js +0 -15
  712. package/dist/src/icons/layout/edit_shape.js +0 -15
  713. package/dist/src/icons/layout/elements.js +0 -15
  714. package/dist/src/icons/layout/elements_add.js +0 -15
  715. package/dist/src/icons/layout/elements_filled.js +0 -15
  716. package/dist/src/icons/layout/elements_masonry.js +0 -15
  717. package/dist/src/icons/layout/frame.js +0 -15
  718. package/dist/src/icons/layout/frame_stack.js +0 -15
  719. package/dist/src/icons/layout/grid.js +0 -15
  720. package/dist/src/icons/layout/grid_column_three.js +0 -15
  721. package/dist/src/icons/layout/grid_column_two.js +0 -15
  722. package/dist/src/icons/layout/grid_dynamic.js +0 -15
  723. package/dist/src/icons/layout/grid_frame.js +0 -15
  724. package/dist/src/icons/layout/grid_row_three.js +0 -15
  725. package/dist/src/icons/layout/grid_row_two.js +0 -15
  726. package/dist/src/icons/layout/grid_six.js +0 -15
  727. package/dist/src/icons/layout/grid_small.js +0 -15
  728. package/dist/src/icons/layout/iframe.js +0 -15
  729. package/dist/src/icons/layout/kanban.js +0 -15
  730. package/dist/src/icons/layout/layout.js +0 -15
  731. package/dist/src/icons/layout/list.js +0 -15
  732. package/dist/src/icons/layout/list_filled.js +0 -20
  733. package/dist/src/icons/layout/padding.js +0 -15
  734. package/dist/src/icons/layout/page_break.js +0 -15
  735. package/dist/src/icons/layout/rotate_left.js +0 -15
  736. package/dist/src/icons/layout/rotate_right.js +0 -15
  737. package/dist/src/icons/layout/ruler.js +0 -15
  738. package/dist/src/icons/layout/segment.js +0 -15
  739. package/dist/src/icons/layout/select_area.js +0 -15
  740. package/dist/src/icons/layout/select_boundary.js +0 -15
  741. package/dist/src/icons/layout/sidebar_left.js +0 -15
  742. package/dist/src/icons/layout/sidebar_right.js +0 -15
  743. package/dist/src/icons/layout/slides.js +0 -15
  744. package/dist/src/icons/layout/slides_horizontal.js +0 -15
  745. package/dist/src/icons/layout/slides_vertical.js +0 -20
  746. package/dist/src/icons/layout/stack.js +0 -15
  747. package/dist/src/icons/layout/text.js +0 -15
  748. package/dist/src/icons/maps/atlas.js +0 -15
  749. package/dist/src/icons/maps/compass.js +0 -15
  750. package/dist/src/icons/maps/direction.js +0 -15
  751. package/dist/src/icons/maps/direction_angled.js +0 -15
  752. package/dist/src/icons/maps/globe.js +0 -15
  753. package/dist/src/icons/maps/globe_slash.js +0 -15
  754. package/dist/src/icons/maps/location.js +0 -15
  755. package/dist/src/icons/maps/location_slash.js +0 -15
  756. package/dist/src/icons/maps/map.js +0 -15
  757. package/dist/src/icons/maps/marker.js +0 -15
  758. package/dist/src/icons/maps/panorama.js +0 -15
  759. package/dist/src/icons/maps/pin.js +0 -15
  760. package/dist/src/icons/maps/pin_arrow.js +0 -15
  761. package/dist/src/icons/maps/pin_location.js +0 -15
  762. package/dist/src/icons/maps/pin_plus.js +0 -15
  763. package/dist/src/icons/maps/pin_question.js +0 -15
  764. package/dist/src/icons/maps/pin_slash.js +0 -15
  765. package/dist/src/icons/maps/push_pin.js +0 -15
  766. package/dist/src/icons/maps/push_pin_filled.js +0 -15
  767. package/dist/src/icons/maps/push_pin_slash.js +0 -15
  768. package/dist/src/icons/maps/radar.js +0 -15
  769. package/dist/src/icons/maps/route.js +0 -15
  770. package/dist/src/icons/message/bubble.js +0 -15
  771. package/dist/src/icons/message/bubble_question.js +0 -15
  772. package/dist/src/icons/message/comment.js +0 -15
  773. package/dist/src/icons/message/comment_add.js +0 -15
  774. package/dist/src/icons/message/comment_check.js +0 -15
  775. package/dist/src/icons/message/comment_close.js +0 -15
  776. package/dist/src/icons/message/comment_minus.js +0 -15
  777. package/dist/src/icons/message/comment_text.js +0 -15
  778. package/dist/src/icons/misc/advertisement.js +0 -15
  779. package/dist/src/icons/misc/atom.js +0 -15
  780. package/dist/src/icons/misc/bone.js +0 -15
  781. package/dist/src/icons/misc/brightness_high.js +0 -15
  782. package/dist/src/icons/misc/brightness_low.js +0 -15
  783. package/dist/src/icons/misc/contrast.js +0 -15
  784. package/dist/src/icons/misc/crosshairs.js +0 -15
  785. package/dist/src/icons/misc/crown.js +0 -15
  786. package/dist/src/icons/misc/footprint.js +0 -15
  787. package/dist/src/icons/misc/form.js +0 -15
  788. package/dist/src/icons/misc/funnel.js +0 -15
  789. package/dist/src/icons/misc/infinite.js +0 -15
  790. package/dist/src/icons/misc/insert_button.js +0 -15
  791. package/dist/src/icons/misc/light_bulb.js +0 -15
  792. package/dist/src/icons/misc/moon.js +0 -15
  793. package/dist/src/icons/misc/nut.js +0 -15
  794. package/dist/src/icons/misc/planet.js +0 -15
  795. package/dist/src/icons/misc/plus_thick.js +0 -15
  796. package/dist/src/icons/misc/pocket.js +0 -15
  797. package/dist/src/icons/misc/rocket.js +0 -15
  798. package/dist/src/icons/misc/soup.js +0 -19
  799. package/dist/src/icons/misc/sun.js +0 -15
  800. package/dist/src/icons/misc/toy_horse.js +0 -15
  801. package/dist/src/icons/misc/trophy.js +0 -15
  802. package/dist/src/icons/misc/watercloset.js +0 -15
  803. package/dist/src/icons/notifications/alert_circle.js +0 -15
  804. package/dist/src/icons/notifications/alert_octogon.js +0 -15
  805. package/dist/src/icons/notifications/alert_triangle.js +0 -15
  806. package/dist/src/icons/notifications/app_notification.js +0 -15
  807. package/dist/src/icons/notifications/bell.js +0 -15
  808. package/dist/src/icons/notifications/bell_alert.js +0 -15
  809. package/dist/src/icons/notifications/bell_checkmark.js +0 -15
  810. package/dist/src/icons/notifications/bell_minus.js +0 -15
  811. package/dist/src/icons/notifications/bell_plus.js +0 -15
  812. package/dist/src/icons/notifications/bell_ring.js +0 -17
  813. package/dist/src/icons/notifications/bell_slash.js +0 -15
  814. package/dist/src/icons/notifications/information.js +0 -15
  815. package/dist/src/icons/notifications/minus_octogon.js +0 -15
  816. package/dist/src/icons/notifications/question_circle.js +0 -15
  817. package/dist/src/icons/people/group.js +0 -15
  818. package/dist/src/icons/people/group_add.js +0 -15
  819. package/dist/src/icons/people/group_chat.js +0 -17
  820. package/dist/src/icons/people/group_remove.js +0 -15
  821. package/dist/src/icons/people/group_send.js +0 -16
  822. package/dist/src/icons/people/groups.js +0 -15
  823. package/dist/src/icons/people/person.js +0 -15
  824. package/dist/src/icons/people/person_add.js +0 -15
  825. package/dist/src/icons/people/person_checkmark.js +0 -15
  826. package/dist/src/icons/people/person_circle.js +0 -17
  827. package/dist/src/icons/people/person_close.js +0 -17
  828. package/dist/src/icons/people/person_remove.js +0 -15
  829. package/dist/src/icons/people/person_slash.js +0 -17
  830. package/dist/src/icons/phone/keypad.js +0 -15
  831. package/dist/src/icons/phone/phone.js +0 -15
  832. package/dist/src/icons/phone/phone_add.js +0 -15
  833. package/dist/src/icons/phone/phone_calling.js +0 -15
  834. package/dist/src/icons/phone/phone_check.js +0 -15
  835. package/dist/src/icons/phone/phone_close.js +0 -15
  836. package/dist/src/icons/phone/phone_decline.js +0 -15
  837. package/dist/src/icons/phone/phone_forwarded.js +0 -15
  838. package/dist/src/icons/phone/phone_hash.js +0 -15
  839. package/dist/src/icons/phone/phone_incoming.js +0 -15
  840. package/dist/src/icons/phone/phone_outgoing.js +0 -15
  841. package/dist/src/icons/phone/phone_pause.js +0 -15
  842. package/dist/src/icons/phone/phone_slash.js +0 -15
  843. package/dist/src/icons/phone/voicemail.js +0 -15
  844. package/dist/src/icons/security/key.js +0 -15
  845. package/dist/src/icons/security/key_slash.js +0 -15
  846. package/dist/src/icons/security/lock.js +0 -15
  847. package/dist/src/icons/security/lock_circle.js +0 -15
  848. package/dist/src/icons/security/lock_open.js +0 -15
  849. package/dist/src/icons/security/lock_slash.js +0 -15
  850. package/dist/src/icons/security/shield.js +0 -15
  851. package/dist/src/icons/security/shield_checkmark.js +0 -15
  852. package/dist/src/icons/security/shield_lock.js +0 -15
  853. package/dist/src/icons/security/shield_slash.js +0 -15
  854. package/dist/src/icons/security/verified.js +0 -15
  855. package/dist/src/icons/shopping/basket.js +0 -15
  856. package/dist/src/icons/shopping/cart.js +0 -15
  857. package/dist/src/icons/shopping/cart_filled.js +0 -15
  858. package/dist/src/icons/shopping/coupon.js +0 -15
  859. package/dist/src/icons/shopping/coupon_cut.js +0 -15
  860. package/dist/src/icons/shopping/delivery.js +0 -15
  861. package/dist/src/icons/shopping/discount.js +0 -15
  862. package/dist/src/icons/shopping/gift.js +0 -15
  863. package/dist/src/icons/shopping/gift_bag.js +0 -15
  864. package/dist/src/icons/shopping/inventory.js +0 -15
  865. package/dist/src/icons/shopping/point_of_sale.js +0 -15
  866. package/dist/src/icons/shopping/shirt.js +0 -15
  867. package/dist/src/icons/shopping/tag.js +0 -15
  868. package/dist/src/icons/shopping/tag_diagonal.js +0 -15
  869. package/dist/src/icons/shopping/tote.js +0 -15
  870. package/dist/src/icons/special/upload_audio.js +0 -20
  871. package/dist/src/icons/special/upload_file.js +0 -15
  872. package/dist/src/icons/special/upload_image.js +0 -17
  873. package/dist/src/icons/special/upload_video.js +0 -18
  874. package/dist/src/icons/symbols/at.js +0 -15
  875. package/dist/src/icons/symbols/cc.js +0 -15
  876. package/dist/src/icons/symbols/cmd.js +0 -15
  877. package/dist/src/icons/symbols/facebook.js +0 -15
  878. package/dist/src/icons/symbols/google.js +0 -18
  879. package/dist/src/icons/symbols/hash.js +0 -15
  880. package/dist/src/icons/symbols/instagram.js +0 -27
  881. package/dist/src/icons/symbols/messenger.js +0 -21
  882. package/dist/src/icons/symbols/twitter.js +0 -15
  883. package/dist/src/icons/technology/battery.js +0 -15
  884. package/dist/src/icons/technology/battery_100.js +0 -15
  885. package/dist/src/icons/technology/battery_20.js +0 -15
  886. package/dist/src/icons/technology/battery_40.js +0 -15
  887. package/dist/src/icons/technology/battery_60.js +0 -15
  888. package/dist/src/icons/technology/battery_80.js +0 -15
  889. package/dist/src/icons/technology/battery_charging.js +0 -15
  890. package/dist/src/icons/technology/battery_slash.js +0 -15
  891. package/dist/src/icons/technology/devices.js +0 -15
  892. package/dist/src/icons/technology/floppy_disk.js +0 -15
  893. package/dist/src/icons/technology/iphone.js +0 -15
  894. package/dist/src/icons/technology/laptop.js +0 -15
  895. package/dist/src/icons/technology/mobile.js +0 -15
  896. package/dist/src/icons/technology/monitor.js +0 -15
  897. package/dist/src/icons/technology/server.js +0 -15
  898. package/dist/src/icons/technology/sim_card.js +0 -15
  899. package/dist/src/icons/technology/usb_stick.js +0 -15
  900. package/dist/src/icons/text/align_center.js +0 -15
  901. package/dist/src/icons/text/align_justified.js +0 -15
  902. package/dist/src/icons/text/align_left.js +0 -15
  903. package/dist/src/icons/text/align_right.js +0 -15
  904. package/dist/src/icons/text/code_block.js +0 -15
  905. package/dist/src/icons/text/divider.js +0 -15
  906. package/dist/src/icons/text/footnote.js +0 -17
  907. package/dist/src/icons/text/indent_decrease.js +0 -15
  908. package/dist/src/icons/text/indent_increase.js +0 -15
  909. package/dist/src/icons/text/list_ordered.js +0 -15
  910. package/dist/src/icons/text/list_unordered.js +0 -15
  911. package/dist/src/icons/text/quote.js +0 -15
  912. package/dist/src/icons/text/table.js +0 -15
  913. package/dist/src/icons/time/alarm.js +0 -15
  914. package/dist/src/icons/time/alarm_checkmark.js +0 -15
  915. package/dist/src/icons/time/alarm_minus.js +0 -15
  916. package/dist/src/icons/time/alarm_plus.js +0 -15
  917. package/dist/src/icons/time/alarm_slash.js +0 -15
  918. package/dist/src/icons/time/alarm_snooze.js +0 -15
  919. package/dist/src/icons/time/calendar.js +0 -15
  920. package/dist/src/icons/time/calendar_add.js +0 -15
  921. package/dist/src/icons/time/calendar_checkmark.js +0 -15
  922. package/dist/src/icons/time/calendar_close.js +0 -15
  923. package/dist/src/icons/time/calendar_dates.js +0 -15
  924. package/dist/src/icons/time/calendar_minus.js +0 -15
  925. package/dist/src/icons/time/calendar_plus.js +0 -15
  926. package/dist/src/icons/time/calendar_scroll.js +0 -17
  927. package/dist/src/icons/time/clock.js +0 -15
  928. package/dist/src/icons/time/clock_history.js +0 -15
  929. package/dist/src/icons/time/stopwatch.js +0 -15
  930. package/dist/src/icons/time/timer.js +0 -15
  931. package/dist/src/icons/time/watch.js +0 -15
  932. package/dist/src/index.js +0 -115
  933. package/dist/src/utils/date.js +0 -73
  934. package/dist/src/utils/function.js +0 -5
@@ -1,1371 +0,0 @@
1
- 'use strict';
2
-
3
- var slate = require('slate');
4
- var cloneDeep = require('../../../lodash/cloneDeep.js');
5
- var React = require('react');
6
- var index$3 = require('../../plate-resizable/dist/index.js');
7
- var slateReact = require('slate-react');
8
- var index$1 = require('../../plate-core/dist/index.js');
9
- var index$4 = require('../../slate/dist/index.js');
10
- var index$5 = require('../../slate-utils/dist/index.js');
11
- var index = require('../../../jotai-x/dist/index.js');
12
- var vanilla = require('../../../jotai/esm/vanilla.js');
13
- var index$2 = require('../../slate-react/dist/index.js');
14
-
15
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
16
-
17
- var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
-
19
- var __defProp = Object.defineProperty;
20
- var __defProps = Object.defineProperties;
21
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
22
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
23
- var __hasOwnProp = Object.prototype.hasOwnProperty;
24
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
25
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
26
- var __spreadValues = (a, b) => {
27
- for (var prop in b || (b = {}))
28
- if (__hasOwnProp.call(b, prop))
29
- __defNormalProp(a, prop, b[prop]);
30
- if (__getOwnPropSymbols)
31
- for (var prop of __getOwnPropSymbols(b)) {
32
- if (__propIsEnum.call(b, prop))
33
- __defNormalProp(a, prop, b[prop]);
34
- }
35
- return a;
36
- };
37
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
38
- var __objRest = (source, exclude) => {
39
- var target = {};
40
- for (var prop in source)
41
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
42
- target[prop] = source[prop];
43
- if (source != null && __getOwnPropSymbols)
44
- for (var prop of __getOwnPropSymbols(source)) {
45
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
46
- target[prop] = source[prop];
47
- }
48
- return target;
49
- };
50
-
51
- // src/queries/getColSpan.ts
52
- var getColSpan = (cellElem) => {
53
- var _a;
54
- return cellElem.colSpan || Number((_a = cellElem.attributes) == null ? void 0 : _a.colspan) || 1;
55
- };
56
- var getCellTypes = (editor) => index$1.getPluginTypes(editor, [ELEMENT_TD, ELEMENT_TH]);
57
- var getEmptyCellNode = (editor, { header, newCellChildren = [editor.blockFactory()] }) => {
58
- return {
59
- type: header ? index$1.getPluginType(editor, ELEMENT_TH) : index$1.getPluginType(editor, ELEMENT_TD),
60
- children: newCellChildren
61
- };
62
- };
63
- var getEmptyRowNode = (editor, _a = {}) => {
64
- var _b = _a, { colCount = 1 } = _b, options = __objRest(_b, ["colCount"]);
65
- return {
66
- type: index$1.getPluginType(editor, ELEMENT_TR),
67
- children: Array.from({ length: colCount }).fill(colCount).map(() => getEmptyCellNode(editor, options))
68
- };
69
- };
70
- var getEmptyTableNode = (editor, {
71
- header,
72
- rowCount = 0,
73
- colCount,
74
- newCellChildren
75
- } = {}) => {
76
- const rows = Array.from({ length: rowCount }).fill(rowCount).map(() => getEmptyRowNode(editor, { header, colCount, newCellChildren }));
77
- return {
78
- type: index$1.getPluginType(editor, ELEMENT_TABLE),
79
- children: rows
80
- };
81
- };
82
-
83
- // src/queries/getLeftTableCell.ts
84
- var getLeftTableCell = (editor, {
85
- at: cellPath
86
- } = {}) => {
87
- var _a;
88
- if (!cellPath) {
89
- cellPath = (_a = index$4.findNode(editor, {
90
- match: { type: getCellTypes(editor) }
91
- })) == null ? void 0 : _a[1];
92
- if (!cellPath)
93
- return;
94
- }
95
- const cellIndex = cellPath.at(-1);
96
- if (!cellIndex)
97
- return;
98
- const prevCellPath = slate.Path.previous(cellPath);
99
- return index$4.getNodeEntry(editor, prevCellPath);
100
- };
101
-
102
- // src/queries/getRowSpan.ts
103
- var getRowSpan = (cellElem) => {
104
- var _a;
105
- return cellElem.rowSpan || Number((_a = cellElem.attributes) == null ? void 0 : _a.rowspan) || 1;
106
- };
107
-
108
- // src/queries/getTableColumnCount.ts
109
- var getTableColumnCount = (tableNode) => {
110
- var _a, _b, _c, _d;
111
- return (_d = (_c = (_b = (_a = tableNode.children) == null ? void 0 : _a[0]) == null ? void 0 : _b.children) == null ? void 0 : _c.length) != null ? _d : 0;
112
- };
113
- var getTableColumnIndex = (editor, cellNode) => {
114
- var _a;
115
- const path = index$2.findNodePath(editor, cellNode);
116
- if (!path)
117
- return 0;
118
- const [trNode] = (_a = index$4.getParentNode(editor, path)) != null ? _a : [];
119
- if (!trNode)
120
- return 0;
121
- let colIndex = 0;
122
- trNode.children.some((item, index) => {
123
- if (item === cellNode) {
124
- colIndex = index;
125
- return true;
126
- }
127
- return false;
128
- });
129
- return colIndex;
130
- };
131
- function computeCellIndices(editor, tableEl, cellEl) {
132
- var _a;
133
- const options = index$1.getPluginOptions(editor, ELEMENT_TABLE);
134
- const tableNodes = tableEl.children;
135
- let rowIndex = -1;
136
- let colIndex = -1;
137
- for (let r = 0; r < tableNodes.length; r++) {
138
- const row = tableNodes[r];
139
- let cIndex = 0;
140
- for (let c = 0; c < row.children.length; c++) {
141
- const cell = row.children[c];
142
- if (cellEl === cell) {
143
- colIndex = cIndex;
144
- rowIndex = r;
145
- break;
146
- }
147
- cIndex += cell.colSpan || 1;
148
- }
149
- }
150
- tableNodes.slice(0, rowIndex).forEach((pR, _rowIndex) => {
151
- const prevRow = pR;
152
- prevRow.children.forEach((pC) => {
153
- var _a2;
154
- const prevCell = pC;
155
- const prevIndices = (_a2 = options == null ? void 0 : options._cellIndices) == null ? void 0 : _a2.get(prevCell);
156
- const _rowSpan = getRowSpan(prevCell);
157
- if (prevIndices) {
158
- const { col: prevColIndex } = prevIndices;
159
- if (
160
- // colIndex affects
161
- prevColIndex <= colIndex && // rowSpan affects
162
- _rowSpan && _rowSpan > 1 && rowIndex - _rowIndex < _rowSpan
163
- ) {
164
- colIndex += prevCell.colSpan || 1;
165
- }
166
- }
167
- });
168
- });
169
- if (rowIndex === -1 || colIndex === -1) {
170
- return null;
171
- }
172
- const indices = { row: rowIndex, col: colIndex };
173
- (_a = options == null ? void 0 : options._cellIndices) == null ? void 0 : _a.set(cellEl, indices);
174
- return indices;
175
- }
176
- var computeAllCellIndices = (editor, tableNode) => {
177
- var _a;
178
- const options = index$1.getPluginOptions(editor, ELEMENT_TABLE);
179
- for (let r = 0; r < tableNode.children.length; r++) {
180
- const row = tableNode.children[r];
181
- for (let c = 0; c < row.children.length; c++) {
182
- const cell = row.children[c];
183
- const indices = computeCellIndices(editor, tableNode, cell);
184
- if (indices) {
185
- (_a = options._cellIndices) == null ? void 0 : _a.set(cell, indices);
186
- }
187
- }
188
- }
189
- };
190
-
191
- // src/merge/getCellIndices.ts
192
- var getCellIndices = (cellIndices, startCell) => {
193
- return cellIndices == null ? void 0 : cellIndices.get(startCell);
194
- };
195
-
196
- // src/merge/getCellIndicesWithSpans.ts
197
- var getCellIndicesWithSpans = ({ col, row }, endCell) => {
198
- return {
199
- row: row + getRowSpan(endCell) - 1,
200
- col: col + getColSpan(endCell) - 1
201
- };
202
- };
203
-
204
- // src/merge/findCellByIndexes.ts
205
- var findCellByIndexes = (editor, table, searchRowIndex, searchColIndex) => {
206
- const { _cellIndices: cellIndices } = index$1.getPluginOptions(
207
- editor,
208
- ELEMENT_TABLE
209
- );
210
- const allCells = table.children.flatMap(
211
- (current) => current.children
212
- );
213
- const foundCell = allCells.find((cell) => {
214
- const cellElement = cell;
215
- const indices = getCellIndices(cellIndices, cellElement) || computeCellIndices(editor, table, cellElement);
216
- const { col: _startColIndex, row: _startRowIndex } = indices;
217
- const { row: _endRowIndex, col: _endColIndex } = getCellIndicesWithSpans(
218
- indices,
219
- cellElement
220
- );
221
- if (searchColIndex >= _startColIndex && searchColIndex <= _endColIndex && searchRowIndex >= _startRowIndex && searchRowIndex <= _endRowIndex) {
222
- return true;
223
- }
224
- return false;
225
- });
226
- return foundCell;
227
- };
228
-
229
- // src/merge/getTableGridByRange.ts
230
- var getTableMergeGridByRange = (editor, { at, format }) => {
231
- var _a;
232
- const { _cellIndices: cellIndices } = index$1.getPluginOptions(
233
- editor,
234
- ELEMENT_TABLE
235
- );
236
- const startCellEntry = index$4.findNode(editor, {
237
- at: at.anchor.path,
238
- match: { type: getCellTypes(editor) }
239
- });
240
- const endCellEntry = index$4.findNode(editor, {
241
- at: at.focus.path,
242
- match: { type: getCellTypes(editor) }
243
- });
244
- const startCell = startCellEntry[0];
245
- const endCell = endCellEntry[0];
246
- const startCellPath = at.anchor.path;
247
- const tablePath = startCellPath.slice(0, -2);
248
- const tableEntry = index$4.findNode(editor, {
249
- at: tablePath,
250
- match: { type: index$1.getPluginType(editor, ELEMENT_TABLE) }
251
- });
252
- const realTable = tableEntry[0];
253
- const { col: _startColIndex, row: _startRowIndex } = getCellIndices(cellIndices, startCell) || computeCellIndices(editor, realTable, startCell);
254
- const { row: _endRowIndex, col: _endColIndex } = getCellIndicesWithSpans(
255
- getCellIndices(cellIndices, endCell) || computeCellIndices(editor, realTable, endCell),
256
- endCell
257
- );
258
- const startRowIndex = Math.min(_startRowIndex, _endRowIndex);
259
- const endRowIndex = Math.max(_startRowIndex, _endRowIndex);
260
- const startColIndex = Math.min(_startColIndex, _endColIndex);
261
- const endColIndex = Math.max(_startColIndex, _endColIndex);
262
- const relativeRowIndex = endRowIndex - startRowIndex;
263
- const relativeColIndex = endColIndex - startColIndex;
264
- const table = getEmptyTableNode(editor, {
265
- rowCount: relativeRowIndex + 1,
266
- colCount: relativeColIndex + 1,
267
- newCellChildren: []
268
- });
269
- const cellEntries = [];
270
- const cellsSet = /* @__PURE__ */ new WeakSet();
271
- let rowIndex = startRowIndex;
272
- let colIndex = startColIndex;
273
- while (true) {
274
- const cell = findCellByIndexes(editor, realTable, rowIndex, colIndex);
275
- if (!cell) {
276
- break;
277
- }
278
- if (!cellsSet.has(cell)) {
279
- cellsSet.add(cell);
280
- const rows = table.children[rowIndex - startRowIndex].children;
281
- rows[colIndex - startColIndex] = cell;
282
- const cellPath = index$2.findNodePath(editor, cell);
283
- cellEntries.push([cell, cellPath]);
284
- }
285
- if (colIndex + 1 <= endColIndex) {
286
- colIndex = colIndex + 1;
287
- } else if (rowIndex + 1 <= endRowIndex) {
288
- colIndex = startColIndex;
289
- rowIndex = rowIndex + 1;
290
- } else {
291
- break;
292
- }
293
- }
294
- const formatType = format || "table";
295
- if (formatType === "cell") {
296
- return cellEntries;
297
- }
298
- (_a = table.children) == null ? void 0 : _a.forEach((rowEl) => {
299
- var _a2;
300
- const rowElement = rowEl;
301
- const filteredChildren = (_a2 = rowElement.children) == null ? void 0 : _a2.filter((cellEl) => {
302
- const cellElement = cellEl;
303
- return !!(cellElement == null ? void 0 : cellElement.children.length);
304
- });
305
- rowElement.children = filteredChildren;
306
- });
307
- if (formatType === "table") {
308
- return [[table, tablePath]];
309
- }
310
- return {
311
- tableEntries: [[table, tablePath]],
312
- cellEntries
313
- };
314
- };
315
-
316
- // src/queries/getTableGridByRange.ts
317
- var getTableGridByRange = (editor, { at, format = "table" }) => {
318
- const { enableMerging } = index$1.getPluginOptions(
319
- editor,
320
- ELEMENT_TABLE
321
- );
322
- if (enableMerging) {
323
- return getTableMergeGridByRange(editor, { at, format });
324
- }
325
- const startCellPath = at.anchor.path;
326
- const endCellPath = at.focus.path;
327
- const _startRowIndex = startCellPath.at(-2);
328
- const _endRowIndex = endCellPath.at(-2);
329
- const _startColIndex = startCellPath.at(-1);
330
- const _endColIndex = endCellPath.at(-1);
331
- const startRowIndex = Math.min(_startRowIndex, _endRowIndex);
332
- const endRowIndex = Math.max(_startRowIndex, _endRowIndex);
333
- const startColIndex = Math.min(_startColIndex, _endColIndex);
334
- const endColIndex = Math.max(_startColIndex, _endColIndex);
335
- const tablePath = startCellPath.slice(0, -2);
336
- const relativeRowIndex = endRowIndex - startRowIndex;
337
- const relativeColIndex = endColIndex - startColIndex;
338
- const table = getEmptyTableNode(editor, {
339
- rowCount: relativeRowIndex + 1,
340
- colCount: relativeColIndex + 1,
341
- newCellChildren: []
342
- });
343
- let rowIndex = startRowIndex;
344
- let colIndex = startColIndex;
345
- const cellEntries = [];
346
- while (true) {
347
- const cellPath = tablePath.concat([rowIndex, colIndex]);
348
- const cell = index$4.getNode(editor, cellPath);
349
- if (!cell)
350
- break;
351
- const rows = table.children[rowIndex - startRowIndex].children;
352
- rows[colIndex - startColIndex] = cell;
353
- cellEntries.push([cell, cellPath]);
354
- if (colIndex + 1 <= endColIndex) {
355
- colIndex += 1;
356
- } else if (rowIndex + 1 <= endRowIndex) {
357
- colIndex = startColIndex;
358
- rowIndex += 1;
359
- } else {
360
- break;
361
- }
362
- }
363
- if (format === "cell") {
364
- return cellEntries;
365
- }
366
- return [[table, tablePath]];
367
- };
368
-
369
- // src/queries/getTableGridAbove.ts
370
- var getTableGridAbove = (editor, _a = {}) => {
371
- var _b = _a, { format = "table" } = _b, options = __objRest(_b, ["format"]);
372
- const edges = index$5.getEdgeBlocksAbove(editor, __spreadValues({
373
- match: {
374
- type: getCellTypes(editor)
375
- }
376
- }, options));
377
- if (edges) {
378
- const [start, end] = edges;
379
- if (!slate.Path.equals(start[1], end[1])) {
380
- return getTableGridByRange(editor, {
381
- at: {
382
- anchor: {
383
- path: start[1],
384
- offset: 0
385
- },
386
- focus: {
387
- path: end[1],
388
- offset: 0
389
- }
390
- },
391
- format
392
- });
393
- }
394
- if (format === "table") {
395
- const table = getEmptyTableNode(editor, { rowCount: 1 });
396
- table.children[0].children = [start[0]];
397
- return [[table, start[1].slice(0, -2)]];
398
- }
399
- return [start];
400
- }
401
- return [];
402
- };
403
-
404
- // src/queries/getTableOverriddenColSizes.ts
405
- var getTableOverriddenColSizes = (tableNode, colSizeOverrides) => {
406
- const colCount = getTableColumnCount(tableNode);
407
- const colSizes = (tableNode.colSizes ? [...tableNode.colSizes] : Array.from({ length: colCount }).fill(0)).map((size, index) => {
408
- var _a, _b;
409
- return (_b = (_a = colSizeOverrides == null ? void 0 : colSizeOverrides.get) == null ? void 0 : _a.call(colSizeOverrides, index)) != null ? _b : size;
410
- });
411
- return colSizes;
412
- };
413
- var getTableRowIndex = (editor, cellNode) => {
414
- const path = index$2.findNodePath(editor, cellNode);
415
- if (!path)
416
- return 0;
417
- const rowPath = slate.Path.parent(path);
418
- return rowPath.at(-1);
419
- };
420
- var getTopTableCell = (editor, {
421
- at: cellPath
422
- } = {}) => {
423
- var _a;
424
- if (!cellPath) {
425
- cellPath = (_a = index$4.findNode(editor, {
426
- match: { type: getCellTypes(editor) }
427
- })) == null ? void 0 : _a[1];
428
- if (!cellPath)
429
- return;
430
- }
431
- const cellIndex = cellPath.at(-1);
432
- const rowIndex = cellPath.at(-2);
433
- if (rowIndex === 0)
434
- return;
435
- const cellAbovePath = [
436
- ...slate.Path.parent(slate.Path.parent(cellPath)),
437
- rowIndex - 1,
438
- cellIndex
439
- ];
440
- return index$4.getNodeEntry(editor, cellAbovePath);
441
- };
442
- var isTableBorderHidden = (editor, border) => {
443
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
444
- if (border === "left") {
445
- const node = (_a = getLeftTableCell(editor)) == null ? void 0 : _a[0];
446
- if (node) {
447
- return ((_c = (_b = node.borders) == null ? void 0 : _b.right) == null ? void 0 : _c.size) === 0;
448
- }
449
- }
450
- if (border === "top") {
451
- const node = (_d = getTopTableCell(editor)) == null ? void 0 : _d[0];
452
- if (node) {
453
- return ((_f = (_e = node.borders) == null ? void 0 : _e.bottom) == null ? void 0 : _f.size) === 0;
454
- }
455
- }
456
- return ((_i = (_h = (_g = index$4.findNode(editor, {
457
- match: { type: getCellTypes(editor) }
458
- })) == null ? void 0 : _g[0].borders) == null ? void 0 : _h[border]) == null ? void 0 : _i.size) === 0;
459
- };
460
- var setBorderSize = (editor, size, {
461
- at,
462
- border = "all"
463
- } = {}) => {
464
- const cellEntry = index$4.findNode(editor, {
465
- at,
466
- match: { type: getCellTypes(editor) }
467
- });
468
- if (!cellEntry)
469
- return;
470
- const [cellNode, cellPath] = cellEntry;
471
- const cellIndex = cellPath.at(-1);
472
- const rowIndex = cellPath.at(-2);
473
- const borderStyle = {
474
- size
475
- };
476
- const setNodesOptions = {
477
- match: (n) => index$4.isElement(n) && getCellTypes(editor).includes(n.type)
478
- };
479
- if (border === "top") {
480
- const isFirstRow = rowIndex === 0;
481
- if (isFirstRow) {
482
- const newBorders2 = __spreadProps(__spreadValues({}, cellNode.borders), {
483
- top: borderStyle
484
- });
485
- index$4.setNodes(
486
- editor,
487
- { borders: newBorders2 },
488
- __spreadValues({
489
- at: cellPath
490
- }, setNodesOptions)
491
- );
492
- return;
493
- }
494
- const cellAboveEntry = getTopTableCell(editor, { at: cellPath });
495
- if (!cellAboveEntry)
496
- return;
497
- const [cellAboveNode, cellAbovePath] = cellAboveEntry;
498
- const newBorders = __spreadProps(__spreadValues({}, cellAboveNode.borders), {
499
- bottom: borderStyle
500
- });
501
- index$4.setNodes(
502
- editor,
503
- { borders: newBorders },
504
- __spreadValues({
505
- at: cellAbovePath
506
- }, setNodesOptions)
507
- );
508
- } else if (border === "bottom") {
509
- const newBorders = __spreadProps(__spreadValues({}, cellNode.borders), {
510
- bottom: borderStyle
511
- });
512
- index$4.setNodes(
513
- editor,
514
- { borders: newBorders },
515
- __spreadValues({
516
- at: cellPath
517
- }, setNodesOptions)
518
- );
519
- }
520
- if (border === "left") {
521
- const isFirstCell = cellIndex === 0;
522
- if (isFirstCell) {
523
- const newBorders2 = __spreadProps(__spreadValues({}, cellNode.borders), {
524
- left: borderStyle
525
- });
526
- index$4.setNodes(
527
- editor,
528
- { borders: newBorders2 },
529
- __spreadValues({
530
- at: cellPath
531
- }, setNodesOptions)
532
- );
533
- return;
534
- }
535
- const prevCellEntry = getLeftTableCell(editor, { at: cellPath });
536
- if (!prevCellEntry)
537
- return;
538
- const [prevCellNode, prevCellPath] = prevCellEntry;
539
- const newBorders = __spreadProps(__spreadValues({}, prevCellNode.borders), {
540
- right: borderStyle
541
- });
542
- index$4.setNodes(
543
- editor,
544
- { borders: newBorders },
545
- __spreadValues({
546
- at: prevCellPath
547
- }, setNodesOptions)
548
- );
549
- } else if (border === "right") {
550
- const newBorders = __spreadProps(__spreadValues({}, cellNode.borders), {
551
- right: borderStyle
552
- });
553
- index$4.setNodes(
554
- editor,
555
- { borders: newBorders },
556
- __spreadValues({
557
- at: cellPath
558
- }, setNodesOptions)
559
- );
560
- }
561
- if (border === "all") {
562
- index$4.withoutNormalizing(editor, () => {
563
- setBorderSize(editor, size, { at, border: "top" });
564
- setBorderSize(editor, size, { at, border: "bottom" });
565
- setBorderSize(editor, size, { at, border: "left" });
566
- setBorderSize(editor, size, { at, border: "right" });
567
- });
568
- }
569
- };
570
- var setTableColSize = (editor, { colIndex, width }, options = {}) => {
571
- const table = index$4.findNode(editor, __spreadValues({
572
- match: { type: ELEMENT_TABLE }
573
- }, options));
574
- if (!table)
575
- return;
576
- const [tableNode, tablePath] = table;
577
- const colSizes = tableNode.colSizes ? [...tableNode.colSizes] : Array.from({ length: getTableColumnCount(tableNode) }).fill(0);
578
- colSizes[colIndex] = width;
579
- index$4.setNodes(editor, { colSizes }, { at: tablePath });
580
- };
581
- var setTableMarginLeft = (editor, { marginLeft }, options = {}) => {
582
- const table = index$4.findNode(editor, __spreadValues({
583
- match: { type: ELEMENT_TABLE }
584
- }, options));
585
- if (!table)
586
- return;
587
- const [, tablePath] = table;
588
- index$4.setNodes(editor, { marginLeft }, { at: tablePath });
589
- };
590
- var setTableRowSize = (editor, { rowIndex, height }, options = {}) => {
591
- const table = index$4.findNode(editor, __spreadValues({
592
- match: { type: ELEMENT_TABLE }
593
- }, options));
594
- if (!table)
595
- return;
596
- const [, tablePath] = table;
597
- const tableRowPath = [...tablePath, rowIndex];
598
- index$4.setNodes(editor, { size: height }, { at: tableRowPath });
599
- };
600
-
601
- // src/createTablePlugin.ts
602
- var ELEMENT_TABLE = "table";
603
- var ELEMENT_TH = "th";
604
- var ELEMENT_TR = "tr";
605
- var ELEMENT_TD = "td";
606
- var getOnSelectTableBorderFactory = (editor, selectedCells) => (border) => () => {
607
- if (selectedCells)
608
- return;
609
- if (border === "none") {
610
- setBorderSize(editor, 0, { border: "all" });
611
- } else if (border === "outer") {
612
- setBorderSize(editor, 1, { border: "all" });
613
- } else {
614
- const size = isTableBorderHidden(editor, border) ? 1 : 0;
615
- setBorderSize(editor, size, { border });
616
- }
617
- setTimeout(() => {
618
- index$2.focusEditor(editor);
619
- }, 50);
620
- };
621
-
622
- // src/components/TableCellElement/getTableCellBorders.ts
623
- var getTableCellBorders = (element, {
624
- isFirstCell,
625
- isFirstRow,
626
- defaultBorder = {
627
- size: 1,
628
- style: "solid",
629
- color: "rgb(209 213 219)"
630
- }
631
- } = {}) => {
632
- const getBorder = (dir) => {
633
- var _a, _b, _c, _d;
634
- const border = (_a = element.borders) == null ? void 0 : _a[dir];
635
- return {
636
- size: (_b = border == null ? void 0 : border.size) != null ? _b : defaultBorder.size,
637
- style: (_c = border == null ? void 0 : border.style) != null ? _c : defaultBorder.style,
638
- color: (_d = border == null ? void 0 : border.color) != null ? _d : defaultBorder.color
639
- };
640
- };
641
- return {
642
- bottom: getBorder("bottom"),
643
- right: getBorder("right"),
644
- left: isFirstCell ? getBorder("left") : void 0,
645
- top: isFirstRow ? getBorder("top") : void 0
646
- };
647
- };
648
-
649
- // src/components/TableCellElement/roundCellSizeToStep.ts
650
- var roundCellSizeToStep = (size, step) => {
651
- return step ? Math.round(size / step) * step : size;
652
- };
653
- var { tableStore, useTableStore, TableProvider } = index.createAtomStore(
654
- {
655
- colSizeOverrides: vanilla.atom(/* @__PURE__ */ new Map()),
656
- rowSizeOverrides: vanilla.atom(/* @__PURE__ */ new Map()),
657
- marginLeftOverride: null,
658
- hoveredColIndex: null,
659
- selectedCells: null,
660
- selectedTable: null
661
- },
662
- { name: "table" }
663
- );
664
- var useOverrideSizeFactory = (setOverrides) => React__default.default.useCallback(
665
- (index, size) => {
666
- setOverrides((overrides) => {
667
- const newOverrides = new Map(overrides);
668
- if (size === null) {
669
- newOverrides.delete(index);
670
- } else {
671
- newOverrides.set(index, size);
672
- }
673
- return newOverrides;
674
- });
675
- },
676
- [setOverrides]
677
- );
678
- var useOverrideColSize = () => {
679
- const setColSizeOverrides = useTableStore().set.colSizeOverrides();
680
- return useOverrideSizeFactory(setColSizeOverrides);
681
- };
682
- var useOverrideRowSize = () => {
683
- const setRowSizeOverrides = useTableStore().set.rowSizeOverrides();
684
- return useOverrideSizeFactory(setRowSizeOverrides);
685
- };
686
- var useOverrideMarginLeft = () => useTableStore().set.marginLeftOverride();
687
-
688
- // src/components/TableCellElement/useIsCellSelected.ts
689
- var useIsCellSelected = (element) => {
690
- const selectedCells = useTableStore().get.selectedCells();
691
- return React__default.default.useMemo(
692
- () => !!(selectedCells == null ? void 0 : selectedCells.includes(element)),
693
- [element, selectedCells]
694
- );
695
- };
696
- var useTableBordersDropdownMenuContentState = () => {
697
- const editor = index$1.useEditorRef();
698
- const selectedCells = useTableStore().get.selectedCells();
699
- const hasBottomBorder = index$1.useEditorSelector(
700
- (editor2) => !isTableBorderHidden(editor2, "bottom"),
701
- []
702
- );
703
- const hasTopBorder = index$1.useEditorSelector(
704
- (editor2) => !isTableBorderHidden(editor2, "top"),
705
- []
706
- );
707
- const hasLeftBorder = index$1.useEditorSelector(
708
- (editor2) => !isTableBorderHidden(editor2, "left"),
709
- []
710
- );
711
- const hasRightBorder = index$1.useEditorSelector(
712
- (editor2) => !isTableBorderHidden(editor2, "right"),
713
- []
714
- );
715
- const hasOuterBorders = hasBottomBorder && hasTopBorder && hasLeftBorder && hasRightBorder;
716
- const hasNoBorders = !hasBottomBorder && !hasTopBorder && !hasLeftBorder && !hasRightBorder;
717
- return {
718
- hasBottomBorder,
719
- hasTopBorder,
720
- hasLeftBorder,
721
- hasRightBorder,
722
- hasNoBorders,
723
- hasOuterBorders,
724
- getOnSelectTableBorder: getOnSelectTableBorderFactory(
725
- editor,
726
- selectedCells
727
- )
728
- };
729
- };
730
- var useTableColSizes = (tableNode, { disableOverrides = false } = {}) => {
731
- const editor = index$1.useEditorRef();
732
- const colSizeOverrides = useTableStore().get.colSizeOverrides();
733
- const { enableUnsetSingleColSize } = index$1.getPluginOptions(
734
- editor,
735
- ELEMENT_TABLE
736
- );
737
- const overriddenColSizes = getTableOverriddenColSizes(
738
- tableNode,
739
- disableOverrides ? void 0 : colSizeOverrides
740
- );
741
- const colCount = getTableColumnCount(tableNode);
742
- React__default.default.useEffect(() => {
743
- var _a;
744
- if (enableUnsetSingleColSize && colCount < 2 && ((_a = tableNode.colSizes) == null ? void 0 : _a.length)) {
745
- index$4.unsetNodes(editor, "colSizes", {
746
- at: index$2.findNodePath(editor, tableNode)
747
- });
748
- }
749
- }, [colCount, enableUnsetSingleColSize, editor, tableNode]);
750
- return overriddenColSizes;
751
- };
752
-
753
- // src/components/TableCellElement/useTableCellElementResizable.ts
754
- var useTableCellElementResizableState = ({
755
- colIndex,
756
- rowIndex,
757
- step,
758
- stepX = step,
759
- stepY = step,
760
- colSpan
761
- }) => {
762
- const editor = index$1.useEditorRef();
763
- const { disableMarginLeft } = index$1.getPluginOptions(
764
- editor,
765
- ELEMENT_TABLE
766
- );
767
- return {
768
- disableMarginLeft,
769
- colIndex,
770
- rowIndex,
771
- stepX,
772
- stepY,
773
- colSpan
774
- };
775
- };
776
- var useTableCellElementResizable = ({
777
- disableMarginLeft,
778
- colIndex,
779
- rowIndex,
780
- stepX,
781
- stepY,
782
- colSpan
783
- }) => {
784
- var _a;
785
- const editor = index$1.useEditorRef();
786
- const element = index$1.useElement();
787
- const tableElement = index$1.useElement(ELEMENT_TABLE);
788
- const { minColumnWidth = 0 } = index$1.getPluginOptions(
789
- editor,
790
- ELEMENT_TABLE
791
- );
792
- let initialWidth;
793
- if (colSpan > 1) {
794
- initialWidth = (_a = tableElement.colSizes) == null ? void 0 : _a[colIndex];
795
- }
796
- const [hoveredColIndex, setHoveredColIndex] = useTableStore().use.hoveredColIndex();
797
- const colSizesWithoutOverrides = useTableColSizes(tableElement, {
798
- disableOverrides: true
799
- });
800
- const { marginLeft = 0 } = tableElement;
801
- const overrideColSize = useOverrideColSize();
802
- const overrideRowSize = useOverrideRowSize();
803
- const overrideMarginLeft = useOverrideMarginLeft();
804
- const setColSize = React__default.default.useCallback(
805
- (colIndex2, width) => {
806
- setTableColSize(
807
- editor,
808
- { colIndex: colIndex2, width },
809
- { at: index$2.findNodePath(editor, element) }
810
- );
811
- setTimeout(() => overrideColSize(colIndex2, null), 0);
812
- },
813
- [editor, element, overrideColSize]
814
- );
815
- const setRowSize = React__default.default.useCallback(
816
- (rowIndex2, height) => {
817
- setTableRowSize(
818
- editor,
819
- { rowIndex: rowIndex2, height },
820
- { at: index$2.findNodePath(editor, element) }
821
- );
822
- setTimeout(() => overrideRowSize(rowIndex2, null), 0);
823
- },
824
- [editor, element, overrideRowSize]
825
- );
826
- const setMarginLeft = React__default.default.useCallback(
827
- (marginLeft2) => {
828
- setTableMarginLeft(
829
- editor,
830
- { marginLeft: marginLeft2 },
831
- { at: index$2.findNodePath(editor, element) }
832
- );
833
- setTimeout(() => overrideMarginLeft(null), 0);
834
- },
835
- [editor, element, overrideMarginLeft]
836
- );
837
- const handleResizeRight = React__default.default.useCallback(
838
- ({ initialSize: currentInitial, delta, finished }) => {
839
- const nextInitial = colSizesWithoutOverrides[colIndex + 1];
840
- const complement = (width) => currentInitial + nextInitial - width;
841
- const currentNew = roundCellSizeToStep(
842
- index$3.resizeLengthClampStatic(currentInitial + delta, {
843
- min: minColumnWidth,
844
- max: nextInitial ? complement(minColumnWidth) : void 0
845
- }),
846
- stepX
847
- );
848
- const nextNew = nextInitial ? complement(currentNew) : void 0;
849
- const fn = finished ? setColSize : overrideColSize;
850
- fn(colIndex, currentNew);
851
- if (nextNew)
852
- fn(colIndex + 1, nextNew);
853
- },
854
- [
855
- colIndex,
856
- colSizesWithoutOverrides,
857
- minColumnWidth,
858
- overrideColSize,
859
- setColSize,
860
- stepX
861
- ]
862
- );
863
- const handleResizeBottom = React__default.default.useCallback(
864
- (event) => {
865
- const newHeight = roundCellSizeToStep(
866
- event.initialSize + event.delta,
867
- stepY
868
- );
869
- if (event.finished) {
870
- setRowSize(rowIndex, newHeight);
871
- } else {
872
- overrideRowSize(rowIndex, newHeight);
873
- }
874
- },
875
- [overrideRowSize, rowIndex, setRowSize, stepY]
876
- );
877
- const handleResizeLeft = React__default.default.useCallback(
878
- (event) => {
879
- const initial = colSizesWithoutOverrides[colIndex];
880
- const complement = (width) => initial + marginLeft - width;
881
- const newMargin = roundCellSizeToStep(
882
- index$3.resizeLengthClampStatic(marginLeft + event.delta, {
883
- min: 0,
884
- max: complement(minColumnWidth)
885
- }),
886
- stepX
887
- );
888
- const newWidth = complement(newMargin);
889
- if (event.finished) {
890
- setMarginLeft(newMargin);
891
- setColSize(colIndex, newWidth);
892
- } else {
893
- overrideMarginLeft(newMargin);
894
- overrideColSize(colIndex, newWidth);
895
- }
896
- },
897
- [
898
- colIndex,
899
- colSizesWithoutOverrides,
900
- marginLeft,
901
- minColumnWidth,
902
- overrideColSize,
903
- overrideMarginLeft,
904
- setColSize,
905
- setMarginLeft,
906
- stepX
907
- ]
908
- );
909
- const getHandleHoverProps = (colIndex2) => ({
910
- onHover: () => {
911
- if (hoveredColIndex === null) {
912
- setHoveredColIndex(colIndex2);
913
- }
914
- },
915
- onHoverEnd: () => {
916
- if (hoveredColIndex === colIndex2) {
917
- setHoveredColIndex(null);
918
- }
919
- }
920
- });
921
- const hasLeftHandle = colIndex === 0 && !disableMarginLeft;
922
- return {
923
- rightProps: {
924
- options: __spreadValues({
925
- direction: "right",
926
- initialSize: initialWidth,
927
- onResize: handleResizeRight
928
- }, getHandleHoverProps(colIndex))
929
- },
930
- bottomProps: {
931
- options: {
932
- direction: "bottom",
933
- onResize: handleResizeBottom
934
- }
935
- },
936
- hiddenLeft: !hasLeftHandle,
937
- leftProps: {
938
- options: __spreadValues({
939
- direction: "left",
940
- onResize: handleResizeLeft
941
- }, getHandleHoverProps(-1))
942
- }
943
- };
944
- };
945
- var useTableCellElementState = ({
946
- ignoreReadOnly
947
- } = {}) => {
948
- var _a, _b, _c, _d, _e, _f, _g, _h;
949
- const editor = index$1.useEditorRef();
950
- const cellElement = index$1.useElement();
951
- const colSpan = getColSpan(cellElement);
952
- const rowSpan = getRowSpan(cellElement);
953
- const readOnly = slateReact.useReadOnly();
954
- const isCellSelected = useIsCellSelected(cellElement);
955
- const hoveredColIndex = useTableStore().get.hoveredColIndex();
956
- const selectedCells = useTableStore().get.selectedCells();
957
- const tableElement = index$1.useElement(ELEMENT_TABLE);
958
- const rowElement = index$1.useElement(ELEMENT_TR);
959
- const rowSizeOverrides = useTableStore().get.rowSizeOverrides();
960
- const { enableMerging, _cellIndices } = index$1.getPluginOptions(
961
- editor,
962
- ELEMENT_TABLE
963
- );
964
- if (!enableMerging) {
965
- const colIndex2 = getTableColumnIndex(editor, cellElement);
966
- const rowIndex2 = getTableRowIndex(editor, cellElement);
967
- const rowSize2 = (_c = (_b = (_a = rowSizeOverrides.get) == null ? void 0 : _a.call(rowSizeOverrides, rowIndex2)) != null ? _b : rowElement == null ? void 0 : rowElement.size) != null ? _c : void 0;
968
- const isFirstCell2 = colIndex2 === 0;
969
- const isFirstRow2 = ((_d = tableElement.children) == null ? void 0 : _d[0]) === rowElement;
970
- const borders2 = getTableCellBorders(cellElement, {
971
- isFirstCell: isFirstCell2,
972
- isFirstRow: isFirstRow2
973
- });
974
- return {
975
- colIndex: colIndex2,
976
- rowIndex: rowIndex2,
977
- readOnly: !ignoreReadOnly && readOnly,
978
- selected: isCellSelected,
979
- hovered: hoveredColIndex === colIndex2,
980
- hoveredLeft: isFirstCell2 && hoveredColIndex === -1,
981
- rowSize: rowSize2,
982
- borders: borders2,
983
- isSelectingCell: !!selectedCells,
984
- colSpan
985
- };
986
- }
987
- let result;
988
- const calculated = getCellIndices(_cellIndices, cellElement) || computeCellIndices(editor, tableElement, cellElement);
989
- if (calculated) {
990
- result = calculated;
991
- } else {
992
- const defaultColIndex = getTableColumnIndex(editor, cellElement);
993
- const defaultRowIndex = getTableRowIndex(editor, cellElement);
994
- result = { col: defaultColIndex, row: defaultRowIndex };
995
- }
996
- const colIndex = result.col;
997
- const rowIndex = result.row;
998
- const endingRowIndex = rowIndex + rowSpan - 1;
999
- const endingColIndex = colIndex + colSpan - 1;
1000
- const rowSize = (_g = (_f = (_e = rowSizeOverrides.get) == null ? void 0 : _e.call(rowSizeOverrides, endingRowIndex)) != null ? _f : rowElement == null ? void 0 : rowElement.size) != null ? _g : void 0;
1001
- const isFirstCell = colIndex === 0;
1002
- const isFirstRow = ((_h = tableElement.children) == null ? void 0 : _h[0]) === rowElement;
1003
- const borders = getTableCellBorders(cellElement, {
1004
- isFirstCell,
1005
- isFirstRow
1006
- });
1007
- return {
1008
- colIndex: endingColIndex,
1009
- rowIndex: endingRowIndex,
1010
- readOnly: !ignoreReadOnly && readOnly,
1011
- selected: isCellSelected,
1012
- hovered: hoveredColIndex === endingColIndex,
1013
- hoveredLeft: isFirstCell && hoveredColIndex === -1,
1014
- rowSize,
1015
- borders,
1016
- isSelectingCell: !!selectedCells,
1017
- colSpan
1018
- };
1019
- };
1020
- var useTableCellElement = ({
1021
- element
1022
- }) => {
1023
- const setHoveredColIndex = useTableStore().set.hoveredColIndex();
1024
- React__default.default.useEffect(() => {
1025
- setHoveredColIndex(null);
1026
- }, [element, setHoveredColIndex]);
1027
- return {
1028
- props: {
1029
- colSpan: element.colSpan,
1030
- rowSpan: element.rowSpan
1031
- }
1032
- };
1033
- };
1034
- var useSelectedCells = () => {
1035
- const readOnly = slateReact.useReadOnly();
1036
- const selected = slateReact.useSelected();
1037
- const editor = index$1.useEditorRef();
1038
- const [selectedCells, setSelectedCells] = useTableStore().use.selectedCells();
1039
- const setSelectedTable = useTableStore().set.selectedTable();
1040
- React__default.default.useEffect(() => {
1041
- if (!selected || readOnly) {
1042
- setSelectedCells(null);
1043
- setSelectedTable(null);
1044
- }
1045
- }, [selected, editor, setSelectedCells, readOnly, setSelectedTable]);
1046
- React__default.default.useEffect(() => {
1047
- if (readOnly)
1048
- return;
1049
- const tableEntries = getTableGridAbove(editor, { format: "table" });
1050
- const cellEntries = getTableGridAbove(editor, { format: "cell" });
1051
- if ((cellEntries == null ? void 0 : cellEntries.length) > 1) {
1052
- const cells = cellEntries.map((entry) => entry[0]);
1053
- const tables = tableEntries.map((entry) => entry[0]);
1054
- if (JSON.stringify(cells) !== JSON.stringify(selectedCells)) {
1055
- setSelectedCells(cells);
1056
- setSelectedTable(tables);
1057
- }
1058
- } else if (selectedCells) {
1059
- setSelectedCells(null);
1060
- setSelectedTable(null);
1061
- }
1062
- }, [
1063
- editor,
1064
- editor.selection,
1065
- readOnly,
1066
- selectedCells,
1067
- setSelectedCells,
1068
- setSelectedTable
1069
- ]);
1070
- };
1071
- var useTableElementState = ({
1072
- transformColSizes
1073
- } = {}) => {
1074
- var _a;
1075
- const editor = index$1.useEditorRef();
1076
- const { minColumnWidth, disableMarginLeft, enableMerging } = index$1.getPluginOptions(editor, ELEMENT_TABLE);
1077
- const element = index$1.useElement();
1078
- const selectedCells = useTableStore().get.selectedCells();
1079
- const marginLeftOverride = useTableStore().get.marginLeftOverride();
1080
- const marginLeft = disableMarginLeft ? 0 : (_a = marginLeftOverride != null ? marginLeftOverride : element.marginLeft) != null ? _a : 0;
1081
- let colSizes = useTableColSizes(element);
1082
- React__default.default.useEffect(() => {
1083
- if (enableMerging) {
1084
- computeAllCellIndices(editor, element);
1085
- }
1086
- }, [editor, element, enableMerging]);
1087
- if (transformColSizes) {
1088
- colSizes = transformColSizes(colSizes);
1089
- }
1090
- if (!colSizes.includes(0)) {
1091
- colSizes.push("100%");
1092
- }
1093
- return {
1094
- colSizes,
1095
- isSelectingCell: !!selectedCells,
1096
- minColumnWidth,
1097
- marginLeft
1098
- };
1099
- };
1100
- var useTableElement = () => {
1101
- const editor = index$1.useEditorRef();
1102
- const selectedCells = useTableStore().get.selectedCells();
1103
- useSelectedCells();
1104
- return {
1105
- props: {
1106
- onMouseDown: () => {
1107
- if (selectedCells) {
1108
- index$4.collapseSelection(editor);
1109
- }
1110
- }
1111
- },
1112
- colGroupProps: {
1113
- contentEditable: false,
1114
- style: { width: "100%" }
1115
- }
1116
- };
1117
- };
1118
-
1119
- // src/merge/isTableRectangular.ts
1120
- var allEqual = (arr) => arr.every((val) => val === arr[0]);
1121
- var isTableRectangular = (table) => {
1122
- var _a;
1123
- const arr = [];
1124
- (_a = table == null ? void 0 : table.children) == null ? void 0 : _a.forEach((row, rI) => {
1125
- var _a2;
1126
- const rowEl = row;
1127
- (_a2 = rowEl.children) == null ? void 0 : _a2.forEach((cell) => {
1128
- const cellElem = cell;
1129
- Array.from({
1130
- length: getRowSpan(cellElem) || 1
1131
- }).forEach((_, i) => {
1132
- if (!arr[rI + i]) {
1133
- arr[rI + i] = 0;
1134
- }
1135
- arr[rI + i] += (cellElem == null ? void 0 : cellElem.colSpan) || 1;
1136
- });
1137
- });
1138
- });
1139
- return allEqual(arr);
1140
- };
1141
- var mergeTableCells = (editor) => {
1142
- index$4.withoutNormalizing(editor, () => {
1143
- var _a;
1144
- const { _cellIndices } = index$1.getPluginOptions(
1145
- editor,
1146
- ELEMENT_TABLE
1147
- );
1148
- const tableEntry = index$5.getBlockAbove(editor, {
1149
- at: (_a = editor.selection) == null ? void 0 : _a.anchor.path,
1150
- match: { type: index$1.getPluginType(editor, ELEMENT_TABLE) }
1151
- });
1152
- const cellEntries = getTableGridAbove(editor, { format: "cell" });
1153
- let colSpan = 0;
1154
- for (const entry of cellEntries) {
1155
- const [data, path] = entry;
1156
- const rowIndex = path.at(-2);
1157
- if (rowIndex === cellEntries[0][1].at(-2)) {
1158
- const cellColSpan = getColSpan(data);
1159
- colSpan += cellColSpan;
1160
- }
1161
- }
1162
- let rowSpan = 0;
1163
- const { col } = getCellIndices(
1164
- _cellIndices,
1165
- cellEntries[0][0]
1166
- );
1167
- cellEntries.forEach((cE) => {
1168
- const cell = cE[0];
1169
- const { col: curCol } = (_cellIndices == null ? void 0 : _cellIndices.get(cell)) || computeCellIndices(editor, tableEntry[0], cell);
1170
- if (col === curCol) {
1171
- rowSpan += getRowSpan(cell);
1172
- }
1173
- });
1174
- const contents = [];
1175
- for (const cellEntry of cellEntries) {
1176
- const [el] = cellEntry;
1177
- if (el.children.length !== 1 || !index$4.isElementEmpty(editor, el.children[0])) {
1178
- contents.push(...cloneDeep.default(el.children));
1179
- }
1180
- }
1181
- const cols = {};
1182
- cellEntries.forEach(([entry, path]) => {
1183
- const rowIndex = path.at(-2);
1184
- if (cols[rowIndex]) {
1185
- cols[rowIndex].push(path);
1186
- } else {
1187
- cols[rowIndex] = [path];
1188
- }
1189
- });
1190
- Object.values(cols).forEach((paths) => {
1191
- paths == null ? void 0 : paths.forEach(() => {
1192
- index$4.removeNodes(editor, { at: paths[0] });
1193
- });
1194
- });
1195
- const mergedCell = __spreadProps(__spreadValues({}, getEmptyCellNode(editor, {
1196
- header: cellEntries[0][0].type === index$1.getPluginType(editor, ELEMENT_TH),
1197
- newCellChildren: contents
1198
- })), {
1199
- colSpan,
1200
- rowSpan
1201
- });
1202
- index$5.insertElements(editor, mergedCell, { at: cellEntries[0][1] });
1203
- index$4.collapseSelection(editor);
1204
- });
1205
- };
1206
- var unmergeTableCells = (editor) => {
1207
- index$4.withoutNormalizing(editor, () => {
1208
- const { _cellIndices: cellIndices } = index$1.getPluginOptions(
1209
- editor,
1210
- ELEMENT_TABLE
1211
- );
1212
- const cellEntries = getTableGridAbove(editor, { format: "cell" });
1213
- const [[cellElem, path]] = cellEntries;
1214
- const createEmptyCell2 = (children) => {
1215
- return __spreadProps(__spreadValues({}, getEmptyCellNode(editor, {
1216
- header: cellElem.type === index$1.getPluginType(editor, ELEMENT_TH),
1217
- newCellChildren: children
1218
- })), {
1219
- colSpan: 1,
1220
- rowSpan: 1
1221
- });
1222
- };
1223
- const tablePath = path.slice(0, -2);
1224
- const cellPath = path.slice(-2);
1225
- const [rowPath, colPath] = cellPath;
1226
- const colSpan = getColSpan(cellElem);
1227
- const rowSpan = getRowSpan(cellElem);
1228
- const colPaths = [];
1229
- for (let i = 0; i < colSpan; i++) {
1230
- colPaths.push(colPath + i);
1231
- }
1232
- index$4.removeNodes(editor, { at: path });
1233
- const { col } = getCellIndices(
1234
- cellIndices,
1235
- cellElem
1236
- );
1237
- const getColPathForRow = (row) => {
1238
- let newColPath = 0;
1239
- const rowEntry = index$4.findNode(editor, {
1240
- at: [...tablePath, row],
1241
- match: { type: index$1.getPluginType(editor, ELEMENT_TR) }
1242
- });
1243
- if (!rowEntry) {
1244
- return newColPath;
1245
- }
1246
- const rowEl = rowEntry[0];
1247
- for (const item of rowEl.children) {
1248
- const { col: c } = getCellIndices(
1249
- cellIndices,
1250
- item
1251
- );
1252
- if (c === col - 1) {
1253
- newColPath = rowEl.children.indexOf(item) + 1;
1254
- break;
1255
- }
1256
- if (col + getColSpan(cellElem) === c - 1) {
1257
- newColPath = rowEl.children.indexOf(item);
1258
- break;
1259
- }
1260
- }
1261
- return newColPath;
1262
- };
1263
- for (let i = 0; i < rowSpan; i++) {
1264
- const currentRowPath = rowPath + i;
1265
- const pathForNextRows = getColPathForRow(currentRowPath);
1266
- const newRowChildren = [];
1267
- const _rowPath = [...tablePath, currentRowPath];
1268
- const rowEntry = index$4.findNode(editor, {
1269
- at: _rowPath,
1270
- match: { type: index$1.getPluginType(editor, ELEMENT_TABLE) }
1271
- });
1272
- for (let j = 0; j < colPaths.length; j++) {
1273
- const cellToInsert = i === 0 && j === 0 ? createEmptyCell2(cellElem.children) : createEmptyCell2();
1274
- if (rowEntry) {
1275
- const currentColPath = i === 0 ? colPaths[j] : pathForNextRows;
1276
- const pathForNewCell = [...tablePath, currentRowPath, currentColPath];
1277
- index$5.insertElements(editor, cellToInsert, { at: pathForNewCell });
1278
- } else {
1279
- newRowChildren.push(cellToInsert);
1280
- }
1281
- }
1282
- if (!rowEntry) {
1283
- index$5.insertElements(
1284
- editor,
1285
- {
1286
- type: index$1.getPluginType(editor, ELEMENT_TR),
1287
- children: newRowChildren
1288
- },
1289
- { at: _rowPath }
1290
- );
1291
- }
1292
- }
1293
- });
1294
- };
1295
- var useTableMergeState = () => {
1296
- const editorRef = index$1.useEditorRef();
1297
- const { enableMerging } = index$1.getPluginOptions(
1298
- editorRef,
1299
- ELEMENT_TABLE
1300
- );
1301
- if (!enableMerging)
1302
- return { canMerge: false, canUnmerge: false };
1303
- const readOnly = slateReact.useReadOnly();
1304
- const selected = slateReact.useSelected();
1305
- const selectionExpanded = index$1.useEditorSelector(index$5.isSelectionExpanded, []);
1306
- const collapsed = !readOnly && selected && !selectionExpanded;
1307
- const selectedTables = useTableStore().get.selectedTable();
1308
- const selectedTable = selectedTables == null ? void 0 : selectedTables[0];
1309
- const selectedCellEntries = index$1.useEditorSelector(
1310
- (editor) => getTableGridAbove(editor, {
1311
- format: "cell"
1312
- }),
1313
- []
1314
- );
1315
- const canMerge = !readOnly && selected && selectionExpanded && isTableRectangular(selectedTable);
1316
- const canUnmerge = collapsed && selectedCellEntries && selectedCellEntries.length === 1 && (getColSpan(selectedCellEntries[0][0]) > 1 || getRowSpan(selectedCellEntries[0][0]) > 1);
1317
- return { canMerge, canUnmerge };
1318
- };
1319
-
1320
- exports.ELEMENT_TABLE = ELEMENT_TABLE;
1321
- exports.ELEMENT_TD = ELEMENT_TD;
1322
- exports.ELEMENT_TH = ELEMENT_TH;
1323
- exports.ELEMENT_TR = ELEMENT_TR;
1324
- exports.TableProvider = TableProvider;
1325
- exports.computeAllCellIndices = computeAllCellIndices;
1326
- exports.computeCellIndices = computeCellIndices;
1327
- exports.findCellByIndexes = findCellByIndexes;
1328
- exports.getCellIndices = getCellIndices;
1329
- exports.getCellIndicesWithSpans = getCellIndicesWithSpans;
1330
- exports.getCellTypes = getCellTypes;
1331
- exports.getColSpan = getColSpan;
1332
- exports.getEmptyCellNode = getEmptyCellNode;
1333
- exports.getEmptyRowNode = getEmptyRowNode;
1334
- exports.getEmptyTableNode = getEmptyTableNode;
1335
- exports.getLeftTableCell = getLeftTableCell;
1336
- exports.getOnSelectTableBorderFactory = getOnSelectTableBorderFactory;
1337
- exports.getRowSpan = getRowSpan;
1338
- exports.getTableCellBorders = getTableCellBorders;
1339
- exports.getTableColumnCount = getTableColumnCount;
1340
- exports.getTableColumnIndex = getTableColumnIndex;
1341
- exports.getTableGridAbove = getTableGridAbove;
1342
- exports.getTableGridByRange = getTableGridByRange;
1343
- exports.getTableMergeGridByRange = getTableMergeGridByRange;
1344
- exports.getTableOverriddenColSizes = getTableOverriddenColSizes;
1345
- exports.getTableRowIndex = getTableRowIndex;
1346
- exports.getTopTableCell = getTopTableCell;
1347
- exports.isTableBorderHidden = isTableBorderHidden;
1348
- exports.isTableRectangular = isTableRectangular;
1349
- exports.mergeTableCells = mergeTableCells;
1350
- exports.roundCellSizeToStep = roundCellSizeToStep;
1351
- exports.setBorderSize = setBorderSize;
1352
- exports.setTableColSize = setTableColSize;
1353
- exports.setTableMarginLeft = setTableMarginLeft;
1354
- exports.setTableRowSize = setTableRowSize;
1355
- exports.tableStore = tableStore;
1356
- exports.unmergeTableCells = unmergeTableCells;
1357
- exports.useIsCellSelected = useIsCellSelected;
1358
- exports.useOverrideColSize = useOverrideColSize;
1359
- exports.useOverrideMarginLeft = useOverrideMarginLeft;
1360
- exports.useOverrideRowSize = useOverrideRowSize;
1361
- exports.useSelectedCells = useSelectedCells;
1362
- exports.useTableBordersDropdownMenuContentState = useTableBordersDropdownMenuContentState;
1363
- exports.useTableCellElement = useTableCellElement;
1364
- exports.useTableCellElementResizable = useTableCellElementResizable;
1365
- exports.useTableCellElementResizableState = useTableCellElementResizableState;
1366
- exports.useTableCellElementState = useTableCellElementState;
1367
- exports.useTableColSizes = useTableColSizes;
1368
- exports.useTableElement = useTableElement;
1369
- exports.useTableElementState = useTableElementState;
1370
- exports.useTableMergeState = useTableMergeState;
1371
- exports.useTableStore = useTableStore;