@soul-refiner/design-system 2.0.0-alpha.18 → 2.0.0-alpha.19

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 (341) hide show
  1. package/dist/_virtual/_cloneBuffer.js +5 -0
  2. package/dist/_virtual/_commonjsHelpers.js +10 -0
  3. package/dist/_virtual/_nodeUtil.js +5 -0
  4. package/dist/_virtual/index.js +5 -0
  5. package/dist/_virtual/index2.js +5 -0
  6. package/dist/_virtual/index3.js +5 -0
  7. package/dist/_virtual/isBuffer.js +5 -0
  8. package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
  9. package/dist/_virtual/use-sync-external-store-shim.production.min.js +5 -0
  10. package/dist/_virtual/util.js +5 -0
  11. package/dist/_virtual/with-selector.development.js +5 -0
  12. package/dist/_virtual/with-selector.js +5 -0
  13. package/dist/_virtual/with-selector.production.min.js +5 -0
  14. package/dist/node_modules/@udecode/plate-alignment/dist/index.js +98 -0
  15. package/dist/node_modules/@udecode/plate-core/dist/index.js +2656 -0
  16. package/dist/node_modules/@udecode/plate-link/dist/index.js +585 -0
  17. package/dist/node_modules/@udecode/plate-media/dist/index.js +211 -0
  18. package/dist/node_modules/@udecode/plate-normalizers/dist/index.js +20 -0
  19. package/dist/node_modules/@udecode/plate-resizable/dist/index.js +334 -0
  20. package/dist/node_modules/@udecode/plate-table/dist/index.js +1371 -0
  21. package/dist/node_modules/@udecode/plate-utils/dist/index.js +127 -0
  22. package/dist/node_modules/@udecode/slate/dist/index.js +316 -0
  23. package/dist/node_modules/@udecode/slate-react/dist/index.js +35 -0
  24. package/dist/node_modules/@udecode/slate-utils/dist/index.js +230 -0
  25. package/dist/node_modules/@udecode/utils/dist/index.js +61 -0
  26. package/dist/node_modules/clsx/dist/clsx.m.js +8 -0
  27. package/dist/node_modules/dequal/dist/index.js +88 -0
  28. package/dist/node_modules/immer/dist/immer.js +968 -0
  29. package/dist/node_modules/is-hotkey/lib/index.js +253 -0
  30. package/dist/node_modules/jotai/esm/react/utils.js +29 -0
  31. package/dist/node_modules/jotai/esm/react.js +116 -0
  32. package/dist/node_modules/jotai/esm/vanilla/utils.js +44 -0
  33. package/dist/node_modules/jotai/esm/vanilla.js +602 -0
  34. package/dist/node_modules/jotai-optics/dist/index.modern.js +8 -0
  35. package/dist/node_modules/jotai-x/dist/index.js +259 -0
  36. package/dist/node_modules/js-video-url-parser/lib/base.js +9 -0
  37. package/dist/node_modules/js-video-url-parser/lib/provider/allocine.js +38 -0
  38. package/dist/node_modules/js-video-url-parser/lib/provider/canalplus.js +50 -0
  39. package/dist/node_modules/js-video-url-parser/lib/provider/coub.js +58 -0
  40. package/dist/node_modules/js-video-url-parser/lib/provider/dailymotion.js +74 -0
  41. package/dist/node_modules/js-video-url-parser/lib/provider/facebook.js +82 -0
  42. package/dist/node_modules/js-video-url-parser/lib/provider/loom.js +55 -0
  43. package/dist/node_modules/js-video-url-parser/lib/provider/soundcloud.js +129 -0
  44. package/dist/node_modules/js-video-url-parser/lib/provider/teachertube.js +114 -0
  45. package/dist/node_modules/js-video-url-parser/lib/provider/ted.js +100 -0
  46. package/dist/node_modules/js-video-url-parser/lib/provider/tiktok.js +54 -0
  47. package/dist/node_modules/js-video-url-parser/lib/provider/twitch.js +154 -0
  48. package/dist/node_modules/js-video-url-parser/lib/provider/vimeo.js +93 -0
  49. package/dist/node_modules/js-video-url-parser/lib/provider/wistia.js +116 -0
  50. package/dist/node_modules/js-video-url-parser/lib/provider/youku.js +87 -0
  51. package/dist/node_modules/js-video-url-parser/lib/provider/youtube.js +209 -0
  52. package/dist/node_modules/js-video-url-parser/lib/urlParser.js +88 -0
  53. package/dist/node_modules/js-video-url-parser/lib/util.js +112 -0
  54. package/dist/node_modules/lodash/_DataView.js +14 -0
  55. package/dist/node_modules/lodash/_Hash.js +42 -0
  56. package/dist/node_modules/lodash/_ListCache.js +42 -0
  57. package/dist/node_modules/lodash/_Map.js +14 -0
  58. package/dist/node_modules/lodash/_MapCache.js +42 -0
  59. package/dist/node_modules/lodash/_Promise.js +14 -0
  60. package/dist/node_modules/lodash/_Set.js +14 -0
  61. package/dist/node_modules/lodash/_SetCache.js +35 -0
  62. package/dist/node_modules/lodash/_Stack.js +38 -0
  63. package/dist/node_modules/lodash/_Symbol.js +12 -0
  64. package/dist/node_modules/lodash/_Uint8Array.js +12 -0
  65. package/dist/node_modules/lodash/_WeakMap.js +14 -0
  66. package/dist/node_modules/lodash/_apply.js +26 -0
  67. package/dist/node_modules/lodash/_arrayAggregator.js +27 -0
  68. package/dist/node_modules/lodash/_arrayEach.js +27 -0
  69. package/dist/node_modules/lodash/_arrayFilter.js +30 -0
  70. package/dist/node_modules/lodash/_arrayLikeKeys.js +60 -0
  71. package/dist/node_modules/lodash/_arrayMap.js +26 -0
  72. package/dist/node_modules/lodash/_arrayPush.js +25 -0
  73. package/dist/node_modules/lodash/_arraySome.js +28 -0
  74. package/dist/node_modules/lodash/_assignMergeValue.js +27 -0
  75. package/dist/node_modules/lodash/_assignValue.js +35 -0
  76. package/dist/node_modules/lodash/_assocIndexOf.js +27 -0
  77. package/dist/node_modules/lodash/_baseAggregator.js +27 -0
  78. package/dist/node_modules/lodash/_baseAssign.js +24 -0
  79. package/dist/node_modules/lodash/_baseAssignIn.js +24 -0
  80. package/dist/node_modules/lodash/_baseAssignValue.js +31 -0
  81. package/dist/node_modules/lodash/_baseClone.js +193 -0
  82. package/dist/node_modules/lodash/_baseCreate.js +36 -0
  83. package/dist/node_modules/lodash/_baseEach.js +21 -0
  84. package/dist/node_modules/lodash/_baseFlatten.js +45 -0
  85. package/dist/node_modules/lodash/_baseFor.js +22 -0
  86. package/dist/node_modules/lodash/_baseForOwn.js +23 -0
  87. package/dist/node_modules/lodash/_baseGet.js +31 -0
  88. package/dist/node_modules/lodash/_baseGetAllKeys.js +27 -0
  89. package/dist/node_modules/lodash/_baseGetTag.js +36 -0
  90. package/dist/node_modules/lodash/_baseHasIn.js +18 -0
  91. package/dist/node_modules/lodash/_baseIsArguments.js +25 -0
  92. package/dist/node_modules/lodash/_baseIsEqual.js +35 -0
  93. package/dist/node_modules/lodash/_baseIsEqualDeep.js +96 -0
  94. package/dist/node_modules/lodash/_baseIsMap.js +25 -0
  95. package/dist/node_modules/lodash/_baseIsMatch.js +69 -0
  96. package/dist/node_modules/lodash/_baseIsNative.js +56 -0
  97. package/dist/node_modules/lodash/_baseIsSet.js +25 -0
  98. package/dist/node_modules/lodash/_baseIsTypedArray.js +68 -0
  99. package/dist/node_modules/lodash/_baseIteratee.js +41 -0
  100. package/dist/node_modules/lodash/_baseKeys.js +37 -0
  101. package/dist/node_modules/lodash/_baseKeysIn.js +41 -0
  102. package/dist/node_modules/lodash/_baseMap.js +29 -0
  103. package/dist/node_modules/lodash/_baseMatches.js +30 -0
  104. package/dist/node_modules/lodash/_baseMatchesProperty.js +45 -0
  105. package/dist/node_modules/lodash/_baseMerge.js +54 -0
  106. package/dist/node_modules/lodash/_baseMergeDeep.js +114 -0
  107. package/dist/node_modules/lodash/_baseProperty.js +19 -0
  108. package/dist/node_modules/lodash/_basePropertyDeep.js +22 -0
  109. package/dist/node_modules/lodash/_baseRest.js +25 -0
  110. package/dist/node_modules/lodash/_baseSetToString.js +30 -0
  111. package/dist/node_modules/lodash/_baseSlice.js +36 -0
  112. package/dist/node_modules/lodash/_baseTimes.js +25 -0
  113. package/dist/node_modules/lodash/_baseToString.js +46 -0
  114. package/dist/node_modules/lodash/_baseUnary.js +19 -0
  115. package/dist/node_modules/lodash/_baseUnset.js +29 -0
  116. package/dist/node_modules/lodash/_baseValues.js +25 -0
  117. package/dist/node_modules/lodash/_cacheHas.js +18 -0
  118. package/dist/node_modules/lodash/_castPath.js +30 -0
  119. package/dist/node_modules/lodash/_cloneArrayBuffer.js +22 -0
  120. package/dist/node_modules/lodash/_cloneBuffer.js +48 -0
  121. package/dist/node_modules/lodash/_cloneDataView.js +22 -0
  122. package/dist/node_modules/lodash/_cloneRegExp.js +22 -0
  123. package/dist/node_modules/lodash/_cloneSymbol.js +24 -0
  124. package/dist/node_modules/lodash/_cloneTypedArray.js +22 -0
  125. package/dist/node_modules/lodash/_copyArray.js +25 -0
  126. package/dist/node_modules/lodash/_copyObject.js +47 -0
  127. package/dist/node_modules/lodash/_copySymbols.js +23 -0
  128. package/dist/node_modules/lodash/_copySymbolsIn.js +23 -0
  129. package/dist/node_modules/lodash/_coreJsData.js +12 -0
  130. package/dist/node_modules/lodash/_createAggregator.js +32 -0
  131. package/dist/node_modules/lodash/_createAssigner.js +44 -0
  132. package/dist/node_modules/lodash/_createBaseEach.js +38 -0
  133. package/dist/node_modules/lodash/_createBaseFor.js +30 -0
  134. package/dist/node_modules/lodash/_customDefaultsMerge.js +35 -0
  135. package/dist/node_modules/lodash/_customOmitClone.js +22 -0
  136. package/dist/node_modules/lodash/_defineProperty.js +17 -0
  137. package/dist/node_modules/lodash/_equalArrays.js +92 -0
  138. package/dist/node_modules/lodash/_equalByTag.js +123 -0
  139. package/dist/node_modules/lodash/_equalObjects.js +96 -0
  140. package/dist/node_modules/lodash/_flatRest.js +24 -0
  141. package/dist/node_modules/lodash/_freeGlobal.js +11 -0
  142. package/dist/node_modules/lodash/_getAllKeys.js +24 -0
  143. package/dist/node_modules/lodash/_getAllKeysIn.js +25 -0
  144. package/dist/node_modules/lodash/_getMapData.js +24 -0
  145. package/dist/node_modules/lodash/_getMatchData.js +31 -0
  146. package/dist/node_modules/lodash/_getNative.js +24 -0
  147. package/dist/node_modules/lodash/_getPrototype.js +12 -0
  148. package/dist/node_modules/lodash/_getRawTag.js +52 -0
  149. package/dist/node_modules/lodash/_getSymbols.js +37 -0
  150. package/dist/node_modules/lodash/_getSymbolsIn.js +34 -0
  151. package/dist/node_modules/lodash/_getTag.js +70 -0
  152. package/dist/node_modules/lodash/_getValue.js +18 -0
  153. package/dist/node_modules/lodash/_hasPath.js +50 -0
  154. package/dist/node_modules/lodash/_hashClear.js +21 -0
  155. package/dist/node_modules/lodash/_hashDelete.js +22 -0
  156. package/dist/node_modules/lodash/_hashGet.js +36 -0
  157. package/dist/node_modules/lodash/_hashHas.js +29 -0
  158. package/dist/node_modules/lodash/_hashSet.js +29 -0
  159. package/dist/node_modules/lodash/_initCloneArray.js +31 -0
  160. package/dist/node_modules/lodash/_initCloneByTag.js +87 -0
  161. package/dist/node_modules/lodash/_initCloneObject.js +26 -0
  162. package/dist/node_modules/lodash/_isFlattenable.js +28 -0
  163. package/dist/node_modules/lodash/_isIndex.js +30 -0
  164. package/dist/node_modules/lodash/_isIterateeCall.js +39 -0
  165. package/dist/node_modules/lodash/_isKey.js +36 -0
  166. package/dist/node_modules/lodash/_isKeyable.js +20 -0
  167. package/dist/node_modules/lodash/_isMasked.js +26 -0
  168. package/dist/node_modules/lodash/_isPrototype.js +23 -0
  169. package/dist/node_modules/lodash/_isStrictComparable.js +21 -0
  170. package/dist/node_modules/lodash/_listCacheClear.js +18 -0
  171. package/dist/node_modules/lodash/_listCacheDelete.js +41 -0
  172. package/dist/node_modules/lodash/_listCacheGet.js +25 -0
  173. package/dist/node_modules/lodash/_listCacheHas.js +22 -0
  174. package/dist/node_modules/lodash/_listCacheSet.js +32 -0
  175. package/dist/node_modules/lodash/_mapCacheClear.js +29 -0
  176. package/dist/node_modules/lodash/_mapCacheDelete.js +24 -0
  177. package/dist/node_modules/lodash/_mapCacheGet.js +22 -0
  178. package/dist/node_modules/lodash/_mapCacheHas.js +22 -0
  179. package/dist/node_modules/lodash/_mapCacheSet.js +28 -0
  180. package/dist/node_modules/lodash/_mapToArray.js +23 -0
  181. package/dist/node_modules/lodash/_matchesStrictComparable.js +25 -0
  182. package/dist/node_modules/lodash/_memoizeCapped.js +32 -0
  183. package/dist/node_modules/lodash/_nativeCreate.js +12 -0
  184. package/dist/node_modules/lodash/_nativeKeys.js +12 -0
  185. package/dist/node_modules/lodash/_nativeKeysIn.js +25 -0
  186. package/dist/node_modules/lodash/_nodeUtil.js +43 -0
  187. package/dist/node_modules/lodash/_objectToString.js +27 -0
  188. package/dist/node_modules/lodash/_overArg.js +20 -0
  189. package/dist/node_modules/lodash/_overRest.js +42 -0
  190. package/dist/node_modules/lodash/_parent.js +23 -0
  191. package/dist/node_modules/lodash/_root.js +15 -0
  192. package/dist/node_modules/lodash/_safeGet.js +26 -0
  193. package/dist/node_modules/lodash/_setCacheAdd.js +24 -0
  194. package/dist/node_modules/lodash/_setCacheHas.js +19 -0
  195. package/dist/node_modules/lodash/_setToArray.js +23 -0
  196. package/dist/node_modules/lodash/_setToString.js +21 -0
  197. package/dist/node_modules/lodash/_shortOut.js +42 -0
  198. package/dist/node_modules/lodash/_stackClear.js +21 -0
  199. package/dist/node_modules/lodash/_stackDelete.js +23 -0
  200. package/dist/node_modules/lodash/_stackGet.js +19 -0
  201. package/dist/node_modules/lodash/_stackHas.js +19 -0
  202. package/dist/node_modules/lodash/_stackSet.js +42 -0
  203. package/dist/node_modules/lodash/_stringToPath.js +33 -0
  204. package/dist/node_modules/lodash/_toKey.js +27 -0
  205. package/dist/node_modules/lodash/_toSource.js +31 -0
  206. package/dist/node_modules/lodash/castArray.js +55 -0
  207. package/dist/node_modules/lodash/cloneDeep.js +40 -0
  208. package/dist/node_modules/lodash/constant.js +31 -0
  209. package/dist/node_modules/lodash/defaults.js +69 -0
  210. package/dist/node_modules/lodash/defaultsDeep.js +44 -0
  211. package/dist/node_modules/lodash/eq.js +42 -0
  212. package/dist/node_modules/lodash/flatten.js +28 -0
  213. package/dist/node_modules/lodash/get.js +39 -0
  214. package/dist/node_modules/lodash/hasIn.js +41 -0
  215. package/dist/node_modules/lodash/identity.js +26 -0
  216. package/dist/node_modules/lodash/isArguments.js +43 -0
  217. package/dist/node_modules/lodash/isArray.js +31 -0
  218. package/dist/node_modules/lodash/isArrayLike.js +40 -0
  219. package/dist/node_modules/lodash/isArrayLikeObject.js +40 -0
  220. package/dist/node_modules/lodash/isBuffer.js +52 -0
  221. package/dist/node_modules/lodash/isFunction.js +44 -0
  222. package/dist/node_modules/lodash/isLength.js +40 -0
  223. package/dist/node_modules/lodash/isMap.js +35 -0
  224. package/dist/node_modules/lodash/isObject.js +36 -0
  225. package/dist/node_modules/lodash/isObjectLike.js +34 -0
  226. package/dist/node_modules/lodash/isPlainObject.js +70 -0
  227. package/dist/node_modules/lodash/isSet.js +35 -0
  228. package/dist/node_modules/lodash/isSymbol.js +36 -0
  229. package/dist/node_modules/lodash/isTypedArray.js +35 -0
  230. package/dist/node_modules/lodash/keyBy.js +48 -0
  231. package/dist/node_modules/lodash/keys.js +45 -0
  232. package/dist/node_modules/lodash/keysIn.js +40 -0
  233. package/dist/node_modules/lodash/last.js +25 -0
  234. package/dist/node_modules/lodash/map.js +67 -0
  235. package/dist/node_modules/lodash/memoize.js +79 -0
  236. package/dist/node_modules/lodash/merge.js +51 -0
  237. package/dist/node_modules/lodash/mergeWith.js +46 -0
  238. package/dist/node_modules/lodash/omit.js +75 -0
  239. package/dist/node_modules/lodash/property.js +41 -0
  240. package/dist/node_modules/lodash/stubArray.js +28 -0
  241. package/dist/node_modules/lodash/stubFalse.js +23 -0
  242. package/dist/node_modules/lodash/toPlainObject.js +39 -0
  243. package/dist/node_modules/lodash/toString.js +34 -0
  244. package/dist/node_modules/lodash/values.js +46 -0
  245. package/dist/node_modules/lodash.mapvalues/index.js +2290 -0
  246. package/dist/node_modules/optics-ts/dist/mjs/index.js +31 -0
  247. package/dist/node_modules/optics-ts/dist/mjs/internals.js +460 -0
  248. package/dist/node_modules/proxy-compare/dist/index.modern.js +7 -0
  249. package/dist/node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js +395 -0
  250. package/dist/node_modules/react-tracked/dist/index.modern.js +48 -0
  251. package/dist/node_modules/use-deep-compare/dist-web/index.js +35 -0
  252. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +181 -0
  253. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +32 -0
  254. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +254 -0
  255. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +30 -0
  256. package/dist/node_modules/use-sync-external-store/shim/index.js +21 -0
  257. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +19 -0
  258. package/dist/node_modules/zustand/esm/middleware.js +551 -0
  259. package/dist/node_modules/zustand/esm/traditional.js +25 -0
  260. package/dist/node_modules/zustand/esm/vanilla.js +34 -0
  261. package/dist/node_modules/zustand-x/dist/index.js +217 -0
  262. package/dist/src/common/styles.js +12 -12
  263. package/dist/src/components/actions/button/button.js +11 -10
  264. package/dist/src/components/actions/dropdown/dropdown.js +5 -5
  265. package/dist/src/components/actions/rate/rate.js +2 -2
  266. package/dist/src/components/actions/switch/switch.js +3 -3
  267. package/dist/src/components/actions/toggle/toggle.js +4 -4
  268. package/dist/src/components/actions/upload/upload.js +3 -3
  269. package/dist/src/components/atoms/box/box.js +2 -2
  270. package/dist/src/components/atoms/typography/display.js +2 -2
  271. package/dist/src/components/atoms/typography/heading.js +2 -2
  272. package/dist/src/components/atoms/typography/paragraph.js +2 -2
  273. package/dist/src/components/atoms/typography/typography.js +2 -2
  274. package/dist/src/components/card/action/action.js +6 -6
  275. package/dist/src/components/card/audio/audio.js +5 -5
  276. package/dist/src/components/card/feature/feature.js +7 -7
  277. package/dist/src/components/card/meeting/meeting.js +6 -6
  278. package/dist/src/components/card/person/person.js +5 -5
  279. package/dist/src/components/card/price/price.js +4 -4
  280. package/dist/src/components/card/regular/regular.js +2 -2
  281. package/dist/src/components/card/styles.js +2 -2
  282. package/dist/src/components/card/video/video.js +5 -5
  283. package/dist/src/components/card/written/written.js +5 -5
  284. package/dist/src/components/custom/courses_selection/courses_selection.js +5 -5
  285. package/dist/src/components/custom/users_selection/users_selection.js +6 -6
  286. package/dist/src/components/editor/editor.js +2 -2
  287. package/dist/src/components/editor/navbar/alignment_dropdown.js +3 -3
  288. package/dist/src/components/editor/navbar/button_modal.js +2 -2
  289. package/dist/src/components/editor/navbar/navbar.js +6 -6
  290. package/dist/src/components/editor/plugins/blocks/buttons.js +3 -3
  291. package/dist/src/components/editor/plugins/blocks/image.js +12 -11
  292. package/dist/src/components/editor/plugins/blocks/list.js +2 -2
  293. package/dist/src/components/editor/plugins/blocks/media-popover.js +9 -7
  294. package/dist/src/components/editor/plugins/blocks/qa.js +2 -2
  295. package/dist/src/components/editor/plugins/blocks/resizable.js +3 -3
  296. package/dist/src/components/editor/plugins/blocks/table-cell.js +7 -7
  297. package/dist/src/components/editor/plugins/blocks/table-row.js +2 -2
  298. package/dist/src/components/editor/plugins/blocks/table.js +16 -14
  299. package/dist/src/components/editor/plugins/leafs/leafs.js +2 -2
  300. package/dist/src/components/editor/plugins/leafs/link.js +2 -2
  301. package/dist/src/components/editor/plugins/plate.js +3 -3
  302. package/dist/src/components/editor/simple_editor/navbar.js +4 -4
  303. package/dist/src/components/editor/simple_editor/simple_editor.js +3 -3
  304. package/dist/src/components/editor/styles/menu_button.js +2 -2
  305. package/dist/src/components/feedback/animated_toast/animated_toast.js +3 -3
  306. package/dist/src/components/feedback/badge/badge.js +3 -3
  307. package/dist/src/components/feedback/banner/banner.js +2 -2
  308. package/dist/src/components/feedback/chip/chip.js +3 -3
  309. package/dist/src/components/feedback/loader/loader.js +4 -3
  310. package/dist/src/components/feedback/notification/notification.js +2 -2
  311. package/dist/src/components/feedback/progress/progress.js +5 -5
  312. package/dist/src/components/feedback/toast/toast.js +3 -3
  313. package/dist/src/components/iconography/avatar/avatar.js +6 -6
  314. package/dist/src/components/iconography/icon/icon.js +2 -2
  315. package/dist/src/components/input/calendar/calendar.js +13 -13
  316. package/dist/src/components/input/checkbox/checkbox.js +2 -2
  317. package/dist/src/components/input/date/date.js +13 -13
  318. package/dist/src/components/input/filter/filter.js +11 -10
  319. package/dist/src/components/input/filter/filter_option.js +3 -3
  320. package/dist/src/components/input/radio/radio.js +3 -3
  321. package/dist/src/components/input/search/search.js +4 -4
  322. package/dist/src/components/input/select/select.js +3 -3
  323. package/dist/src/components/input/text_area/text_area.js +6 -6
  324. package/dist/src/components/input/text_input/text_input.js +7 -7
  325. package/dist/src/components/input/time/time.js +3 -3
  326. package/dist/src/components/media/video-player/playlist-item.js +3 -3
  327. package/dist/src/components/media/video-player/video.js +6 -6
  328. package/dist/src/components/navigation/breadcrumb/breadcrumb.js +3 -3
  329. package/dist/src/components/navigation/inner/inner.js +8 -8
  330. package/dist/src/components/navigation/tabs/tabs.js +4 -4
  331. package/dist/src/components/surfaces/accordion/accordion.js +3 -3
  332. package/dist/src/components/surfaces/calendar_date/calendar_date.js +6 -6
  333. package/dist/src/components/surfaces/carousel/card/card.js +4 -4
  334. package/dist/src/components/surfaces/comment/comment.js +10 -10
  335. package/dist/src/components/surfaces/drawer/drawer.js +6 -6
  336. package/dist/src/components/surfaces/message/message.js +2 -2
  337. package/dist/src/components/surfaces/modal/modal.js +3 -3
  338. package/dist/src/components/surfaces/post/post.js +9 -9
  339. package/dist/src/components/table/table/table.js +7 -7
  340. package/dist/src/index.js +0 -1
  341. package/package.json +2 -1
@@ -0,0 +1,211 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var slateReact = require('slate-react');
5
+ require('../../../js-video-url-parser/lib/base.js');
6
+ require('../../../js-video-url-parser/lib/provider/allocine.js');
7
+ require('../../../js-video-url-parser/lib/provider/canalplus.js');
8
+ require('../../../js-video-url-parser/lib/provider/coub.js');
9
+ require('../../../js-video-url-parser/lib/provider/dailymotion.js');
10
+ require('../../../js-video-url-parser/lib/provider/loom.js');
11
+ require('../../../js-video-url-parser/lib/provider/twitch.js');
12
+ require('../../../js-video-url-parser/lib/provider/vimeo.js');
13
+ require('../../../js-video-url-parser/lib/provider/wistia.js');
14
+ require('../../../js-video-url-parser/lib/provider/youku.js');
15
+ require('../../../js-video-url-parser/lib/provider/youtube.js');
16
+ require('../../../js-video-url-parser/lib/provider/soundcloud.js');
17
+ require('../../../js-video-url-parser/lib/provider/teachertube.js');
18
+ require('../../../js-video-url-parser/lib/provider/tiktok.js');
19
+ require('../../../js-video-url-parser/lib/provider/ted.js');
20
+ require('../../../js-video-url-parser/lib/provider/facebook.js');
21
+ var index = require('../../plate-core/dist/index.js');
22
+ var index$1 = require('../../../zustand-x/dist/index.js');
23
+ var reactHotkeysHook_esm = require('../../../react-hotkeys-hook/dist/react-hotkeys-hook.esm.js');
24
+ var index$3 = require('../../slate/dist/index.js');
25
+ var index$4 = require('../../utils/dist/index.js');
26
+ var reactUtils = require('@udecode/react-utils');
27
+ var index$2 = require('../../slate-react/dist/index.js');
28
+
29
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
30
+
31
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
32
+
33
+ // src/image/createImagePlugin.ts
34
+ var ELEMENT_IMAGE = "img";
35
+ var useImage = () => {
36
+ const { url } = index.useElement();
37
+ return {
38
+ props: {
39
+ src: url,
40
+ draggable: true
41
+ }
42
+ };
43
+ };
44
+ var Image = reactUtils.createPrimitiveComponent("img")({
45
+ propsHook: useImage
46
+ });
47
+
48
+ // src/media/types.ts
49
+ var ELEMENT_MEDIA = "media";
50
+ var VIDEO_PROVIDERS = [
51
+ "youtube",
52
+ "vimeo",
53
+ "dailymotion",
54
+ "youku",
55
+ "coub"
56
+ ];
57
+
58
+ // src/media/useMediaState.ts
59
+ var useMediaState = ({
60
+ urlParsers
61
+ } = {}) => {
62
+ const element = index.useElement();
63
+ const focused = slateReact.useFocused();
64
+ const selected = slateReact.useSelected();
65
+ const readOnly = slateReact.useReadOnly();
66
+ const { url, align } = element;
67
+ const embed = React__default.default.useMemo(() => {
68
+ if (!urlParsers)
69
+ return;
70
+ for (const parser of urlParsers) {
71
+ const data = parser(url);
72
+ if (data) {
73
+ return data;
74
+ }
75
+ }
76
+ }, [urlParsers, url]);
77
+ const isTweet = (embed == null ? void 0 : embed.provider) === "twitter";
78
+ const isVideo = !!(embed == null ? void 0 : embed.provider) && VIDEO_PROVIDERS.includes(embed.provider);
79
+ const isYoutube = (embed == null ? void 0 : embed.provider) === "youtube";
80
+ return {
81
+ align,
82
+ focused,
83
+ selected,
84
+ readOnly,
85
+ embed,
86
+ isTweet,
87
+ isVideo,
88
+ isYoutube
89
+ };
90
+ };
91
+ var floatingMediaStore = index$1.createZustandStore("floatingMedia")({
92
+ url: "",
93
+ isEditing: false
94
+ }).extendActions((set) => ({
95
+ reset: () => {
96
+ set.url("");
97
+ set.isEditing(false);
98
+ }
99
+ }));
100
+ var floatingMediaActions = floatingMediaStore.set;
101
+ var floatingMediaSelectors = floatingMediaStore.get;
102
+ var useFloatingMediaSelectors = () => floatingMediaStore.use;
103
+
104
+ // src/media/FloatingMedia/FloatingMediaEditButton.tsx
105
+ var useFloatingMediaEditButton = () => {
106
+ const element = index.useElement();
107
+ return {
108
+ props: {
109
+ onClick: React__default.default.useCallback(() => {
110
+ floatingMediaActions.url(element.url);
111
+ floatingMediaActions.isEditing(true);
112
+ }, [element.url])
113
+ }
114
+ };
115
+ };
116
+ reactUtils.createPrimitiveComponent("button")({
117
+ propsHook: useFloatingMediaEditButton
118
+ });
119
+ var submitFloatingMedia = (editor, {
120
+ element,
121
+ pluginKey = ELEMENT_MEDIA
122
+ }) => {
123
+ let url = floatingMediaSelectors.url();
124
+ if (url === element.url) {
125
+ floatingMediaActions.reset();
126
+ return true;
127
+ }
128
+ const { isUrl: _isUrl = index$4.isUrl, transformUrl } = index.getPluginOptions(editor, pluginKey);
129
+ const isValid = _isUrl(url);
130
+ if (!isValid)
131
+ return;
132
+ if (transformUrl) {
133
+ url = transformUrl(url);
134
+ }
135
+ index$3.setNodes(editor, {
136
+ url
137
+ });
138
+ floatingMediaActions.reset();
139
+ index$2.focusEditor(editor, editor.selection);
140
+ return true;
141
+ };
142
+
143
+ // src/media/FloatingMedia/FloatingMediaUrlInput.tsx
144
+ var useFloatingMediaUrlInputState = ({
145
+ pluginKey
146
+ } = {}) => {
147
+ const editor = index.useEditorRef();
148
+ const element = index.useElement();
149
+ reactHotkeysHook_esm.useHotkeys(
150
+ "enter",
151
+ (e) => {
152
+ if (submitFloatingMedia(editor, { element, pluginKey })) {
153
+ e.preventDefault();
154
+ }
155
+ },
156
+ {
157
+ enableOnFormTags: ["INPUT"]
158
+ },
159
+ []
160
+ );
161
+ reactHotkeysHook_esm.useHotkeys(
162
+ "escape",
163
+ () => {
164
+ if (floatingMediaSelectors.isEditing()) {
165
+ floatingMediaActions.reset();
166
+ index$2.focusEditor(editor, editor.selection);
167
+ }
168
+ },
169
+ {
170
+ enableOnFormTags: ["INPUT"],
171
+ enableOnContentEditable: true
172
+ },
173
+ []
174
+ );
175
+ return {
176
+ defaultValue: floatingMediaSelectors.url()
177
+ };
178
+ };
179
+ var useFloatingMediaUrlInput = ({
180
+ defaultValue
181
+ }) => {
182
+ const onChange = React__default.default.useCallback((e) => {
183
+ floatingMediaActions.url(e.target.value);
184
+ }, []);
185
+ return {
186
+ props: {
187
+ onChange,
188
+ autoFocus: true,
189
+ defaultValue
190
+ }
191
+ };
192
+ };
193
+ reactUtils.createPrimitiveComponent("input")({
194
+ stateHook: useFloatingMediaUrlInputState,
195
+ propsHook: useFloatingMediaUrlInput
196
+ });
197
+
198
+ exports.ELEMENT_IMAGE = ELEMENT_IMAGE;
199
+ exports.ELEMENT_MEDIA = ELEMENT_MEDIA;
200
+ exports.Image = Image;
201
+ exports.VIDEO_PROVIDERS = VIDEO_PROVIDERS;
202
+ exports.floatingMediaActions = floatingMediaActions;
203
+ exports.floatingMediaSelectors = floatingMediaSelectors;
204
+ exports.floatingMediaStore = floatingMediaStore;
205
+ exports.submitFloatingMedia = submitFloatingMedia;
206
+ exports.useFloatingMediaEditButton = useFloatingMediaEditButton;
207
+ exports.useFloatingMediaSelectors = useFloatingMediaSelectors;
208
+ exports.useFloatingMediaUrlInput = useFloatingMediaUrlInput;
209
+ exports.useFloatingMediaUrlInputState = useFloatingMediaUrlInputState;
210
+ exports.useImage = useImage;
211
+ exports.useMediaState = useMediaState;
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var castArray = require('../../../lodash/castArray.js');
4
+ var index = require('../../slate/dist/index.js');
5
+
6
+ // src/createNormalizeTypesPlugin.ts
7
+ var withRemoveEmptyNodes = (editor, { options: { types: _types } }) => {
8
+ const types = castArray.default(_types);
9
+ const { normalizeNode } = editor;
10
+ editor.normalizeNode = ([node, path]) => {
11
+ if (index.isElement(node) && node.type && types.includes(node.type) && index.getNodeString(node) === "") {
12
+ index.removeNodes(editor, { at: path });
13
+ return;
14
+ }
15
+ normalizeNode([node, path]);
16
+ };
17
+ return editor;
18
+ };
19
+
20
+ exports.withRemoveEmptyNodes = withRemoveEmptyNodes;
@@ -0,0 +1,334 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var index = require('../../../jotai-x/dist/index.js');
5
+ var index$1 = require('../../plate-core/dist/index.js');
6
+ var index$2 = require('../../slate-react/dist/index.js');
7
+ var index$3 = require('../../slate/dist/index.js');
8
+ var reactUtils = require('@udecode/react-utils');
9
+
10
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
+
14
+ var __defProp = Object.defineProperty;
15
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
16
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
17
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
18
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19
+ var __spreadValues = (a, b) => {
20
+ for (var prop in b || (b = {}))
21
+ if (__hasOwnProp.call(b, prop))
22
+ __defNormalProp(a, prop, b[prop]);
23
+ if (__getOwnPropSymbols)
24
+ for (var prop of __getOwnPropSymbols(b)) {
25
+ if (__propIsEnum.call(b, prop))
26
+ __defNormalProp(a, prop, b[prop]);
27
+ }
28
+ return a;
29
+ };
30
+ var __objRest = (source, exclude) => {
31
+ var target = {};
32
+ for (var prop in source)
33
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
34
+ target[prop] = source[prop];
35
+ if (source != null && __getOwnPropSymbols)
36
+ for (var prop of __getOwnPropSymbols(source)) {
37
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
38
+ target[prop] = source[prop];
39
+ }
40
+ return target;
41
+ };
42
+
43
+ // src/utils/isTouchEvent.ts
44
+ var isTouchEvent = (event) => "touches" in event;
45
+
46
+ // src/utils/resizeLengthToRelative.ts
47
+ var resizeLengthToRelative = (length, parentLength) => {
48
+ if (typeof length === "number") {
49
+ return `${length / parentLength * 100}%`;
50
+ }
51
+ return length;
52
+ };
53
+
54
+ // src/utils/resizeLengthToStatic.ts
55
+ var resizeLengthToStatic = (length, parentLength) => {
56
+ if (typeof length === "string") {
57
+ return parentLength * Number.parseFloat(length) / 100;
58
+ }
59
+ return length;
60
+ };
61
+
62
+ // src/utils/resizeLengthClamp.ts
63
+ var resizeLengthClampStatic = (length, { min, max }) => {
64
+ if (min !== void 0) {
65
+ length = Math.max(length, min);
66
+ }
67
+ if (max !== void 0) {
68
+ length = Math.min(length, max);
69
+ }
70
+ return length;
71
+ };
72
+ var resizeLengthClamp = (length, parentLength, { min, max }) => {
73
+ const staticLength = resizeLengthToStatic(length, parentLength);
74
+ const clampedStaticLength = resizeLengthClampStatic(staticLength, {
75
+ min: min === void 0 ? void 0 : resizeLengthToStatic(min, parentLength),
76
+ max: max === void 0 ? void 0 : resizeLengthToStatic(max, parentLength)
77
+ });
78
+ switch (typeof length) {
79
+ case "string": {
80
+ return resizeLengthToRelative(clampedStaticLength, parentLength);
81
+ }
82
+ case "number": {
83
+ return clampedStaticLength;
84
+ }
85
+ default: {
86
+ throw new Error("Invalid length type");
87
+ }
88
+ }
89
+ };
90
+ var initialState = {
91
+ onResize: null
92
+ };
93
+ var { ResizeHandleProvider, useResizeHandleStore } = index.createAtomStore(
94
+ initialState,
95
+ { name: "resizeHandle" }
96
+ );
97
+ var useResizeHandleState = ({
98
+ direction = "left",
99
+ initialSize: _initialSize,
100
+ onResize: onResizeProp,
101
+ onMouseDown,
102
+ onTouchStart,
103
+ onHover,
104
+ onHoverEnd
105
+ }) => {
106
+ const onResizeStore = useResizeHandleStore().get.onResize();
107
+ const onResize = onResizeProp != null ? onResizeProp : onResizeStore;
108
+ const [isResizing, setIsResizing] = React__default.default.useState(false);
109
+ const [initialPosition, setInitialPosition] = React__default.default.useState(0);
110
+ const [initialSizeState, setInitialSize] = React__default.default.useState(0);
111
+ const initialSize = _initialSize != null ? _initialSize : initialSizeState;
112
+ const isHorizontal = direction === "left" || direction === "right";
113
+ React__default.default.useEffect(() => {
114
+ if (!isResizing)
115
+ return;
116
+ const sendResizeEvent = (event, finished) => {
117
+ const { clientX, clientY } = isTouchEvent(event) ? event.touches[0] || event.changedTouches[0] : event;
118
+ const currentPosition = isHorizontal ? clientX : clientY;
119
+ const delta = currentPosition - initialPosition;
120
+ onResize({
121
+ initialSize,
122
+ delta,
123
+ finished,
124
+ direction
125
+ });
126
+ };
127
+ const handleMouseMove = (event) => sendResizeEvent(event, false);
128
+ const handleMouseUp = (event) => {
129
+ setIsResizing(false);
130
+ onHoverEnd == null ? void 0 : onHoverEnd();
131
+ sendResizeEvent(event, true);
132
+ };
133
+ window.addEventListener("mousemove", handleMouseMove);
134
+ window.addEventListener("mouseup", handleMouseUp);
135
+ window.addEventListener("touchmove", handleMouseMove);
136
+ window.addEventListener("touchend", handleMouseUp);
137
+ return () => {
138
+ window.removeEventListener("mousemove", handleMouseMove);
139
+ window.removeEventListener("mouseup", handleMouseUp);
140
+ window.removeEventListener("touchmove", handleMouseMove);
141
+ window.removeEventListener("touchend", handleMouseUp);
142
+ };
143
+ }, [
144
+ isResizing,
145
+ initialPosition,
146
+ initialSize,
147
+ onResize,
148
+ isHorizontal,
149
+ onHoverEnd,
150
+ direction
151
+ ]);
152
+ return {
153
+ isResizing,
154
+ setIsResizing,
155
+ initialPosition,
156
+ setInitialPosition,
157
+ initialSize,
158
+ setInitialSize,
159
+ isHorizontal,
160
+ direction,
161
+ onResize,
162
+ onMouseDown,
163
+ onTouchStart,
164
+ onHover,
165
+ onHoverEnd
166
+ };
167
+ };
168
+ var useResizeHandle = ({
169
+ setInitialPosition,
170
+ setInitialSize,
171
+ setIsResizing,
172
+ onMouseDown,
173
+ onTouchStart,
174
+ isHorizontal,
175
+ isResizing,
176
+ onHover,
177
+ onHoverEnd
178
+ }) => {
179
+ const handleMouseDown = (event) => {
180
+ const { clientX, clientY } = event;
181
+ setInitialPosition(isHorizontal ? clientX : clientY);
182
+ const element = event.target.parentElement;
183
+ setInitialSize(isHorizontal ? element.offsetWidth : element.offsetHeight);
184
+ setIsResizing(true);
185
+ onMouseDown == null ? void 0 : onMouseDown(event);
186
+ };
187
+ const handleTouchStart = (event) => {
188
+ const { touches } = event;
189
+ const touch = touches[0];
190
+ const { clientX, clientY } = touch;
191
+ setInitialPosition(isHorizontal ? clientX : clientY);
192
+ const element = event.target.parentElement;
193
+ setInitialSize(isHorizontal ? element.offsetWidth : element.offsetHeight);
194
+ setIsResizing(true);
195
+ onTouchStart == null ? void 0 : onTouchStart(event);
196
+ };
197
+ const handleMouseOver = () => {
198
+ onHover == null ? void 0 : onHover();
199
+ };
200
+ const handleMouseOut = () => {
201
+ if (!isResizing) {
202
+ onHoverEnd == null ? void 0 : onHoverEnd();
203
+ }
204
+ };
205
+ return {
206
+ props: {
207
+ onMouseDown: handleMouseDown,
208
+ onTouchStart: handleTouchStart,
209
+ onMouseOver: handleMouseOver,
210
+ onMouseOut: handleMouseOut,
211
+ onTouchMove: handleMouseOver,
212
+ onTouchEnd: handleMouseOut
213
+ }
214
+ };
215
+ };
216
+ var ResizeHandle = reactUtils.createPrimitiveComponent("div")({
217
+ propsHook: useResizeHandle,
218
+ stateHook: useResizeHandleState
219
+ });
220
+ var { resizableStore, useResizableStore, ResizableProvider } = index.createAtomStore(
221
+ {
222
+ width: 0
223
+ },
224
+ { name: "resizable" }
225
+ );
226
+
227
+ // src/components/Resizable.tsx
228
+ var useResizableState = ({
229
+ align = "center",
230
+ minWidth = 92,
231
+ maxWidth = "100%"
232
+ } = {}) => {
233
+ var _a;
234
+ const element = index$1.useElement();
235
+ const editor = index$1.useEditorRef();
236
+ const nodeWidth = (_a = element == null ? void 0 : element.width) != null ? _a : "100%";
237
+ const [width, setWidth] = useResizableStore().use.width();
238
+ const setNodeWidth = React__default.default.useCallback(
239
+ (w) => {
240
+ const path = index$2.findNodePath(editor, element);
241
+ if (!path)
242
+ return;
243
+ if (w === nodeWidth) {
244
+ index$3.select(editor, path);
245
+ } else {
246
+ index$3.setNodes(editor, { width: w }, { at: path });
247
+ }
248
+ },
249
+ [editor, element, nodeWidth]
250
+ );
251
+ React__default.default.useEffect(() => {
252
+ setWidth(nodeWidth);
253
+ }, [nodeWidth, setWidth]);
254
+ return {
255
+ align,
256
+ minWidth,
257
+ maxWidth,
258
+ setNodeWidth,
259
+ setWidth,
260
+ width
261
+ };
262
+ };
263
+ var useResizable = ({
264
+ align,
265
+ minWidth,
266
+ maxWidth,
267
+ setNodeWidth,
268
+ setWidth,
269
+ width
270
+ }) => {
271
+ const wrapperRef = React__default.default.useRef(null);
272
+ return {
273
+ wrapperRef,
274
+ wrapperProps: {
275
+ style: {
276
+ position: "relative"
277
+ }
278
+ },
279
+ props: {
280
+ style: {
281
+ width,
282
+ minWidth,
283
+ maxWidth,
284
+ position: "relative"
285
+ }
286
+ },
287
+ context: {
288
+ onResize: React__default.default.useCallback(
289
+ ({ initialSize, delta, finished, direction }) => {
290
+ const wrapperStaticWidth = wrapperRef.current.offsetWidth;
291
+ const deltaFactor = (align === "center" ? 2 : 1) * (direction === "left" ? -1 : 1);
292
+ const newWidth = resizeLengthClamp(
293
+ initialSize + delta * deltaFactor,
294
+ wrapperStaticWidth,
295
+ {
296
+ min: minWidth,
297
+ max: maxWidth
298
+ }
299
+ );
300
+ if (finished) {
301
+ setNodeWidth(newWidth);
302
+ } else {
303
+ setWidth(newWidth);
304
+ }
305
+ },
306
+ [align, maxWidth, minWidth, setNodeWidth, setWidth]
307
+ )
308
+ }
309
+ };
310
+ };
311
+ var Resizable = React__default.default.forwardRef((_a, ref) => {
312
+ var _b = _a, { children, options } = _b, rest = __objRest(_b, ["children", "options"]);
313
+ const state = useResizableState(options);
314
+ const { wrapperRef, wrapperProps, props, context } = useResizable(state);
315
+ return /* @__PURE__ */ React__default.default.createElement("div", __spreadValues({ ref: wrapperRef }, wrapperProps), /* @__PURE__ */ React__default.default.createElement("div", __spreadValues(__spreadValues({ ref }, props), rest), /* @__PURE__ */ React__default.default.createElement(ResizeHandleProvider, { onResize: context.onResize }, children)));
316
+ });
317
+ Resizable.displayName = "Resizable";
318
+
319
+ exports.Resizable = Resizable;
320
+ exports.ResizableProvider = ResizableProvider;
321
+ exports.ResizeHandle = ResizeHandle;
322
+ exports.ResizeHandleProvider = ResizeHandleProvider;
323
+ exports.isTouchEvent = isTouchEvent;
324
+ exports.resizableStore = resizableStore;
325
+ exports.resizeLengthClamp = resizeLengthClamp;
326
+ exports.resizeLengthClampStatic = resizeLengthClampStatic;
327
+ exports.resizeLengthToRelative = resizeLengthToRelative;
328
+ exports.resizeLengthToStatic = resizeLengthToStatic;
329
+ exports.useResizable = useResizable;
330
+ exports.useResizableState = useResizableState;
331
+ exports.useResizableStore = useResizableStore;
332
+ exports.useResizeHandle = useResizeHandle;
333
+ exports.useResizeHandleState = useResizeHandleState;
334
+ exports.useResizeHandleStore = useResizeHandleStore;