hasting-swatchcart-module 0.0.41 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (444) hide show
  1. package/README.md +233 -73
  2. package/dist/assets/index.css +1 -0
  3. package/dist/cdn/lib/components/SwatchesModule.d.ts +10 -0
  4. package/dist/cdn/lib/main.d.ts +4 -0
  5. package/dist/cdn/lib/store/LibraryProvider.d.ts +4 -0
  6. package/dist/cdn/lib/store/rootReducer.d.ts +11 -0
  7. package/dist/cdn/lib/store/store.d.ts +25 -0
  8. package/dist/cdn/lib/store/withStore.d.ts +2 -0
  9. package/dist/cdn/lib/vite-env.d.ts +1 -0
  10. package/dist/cdn/main.css +1 -0
  11. package/dist/cdn/main.js +48652 -0
  12. package/dist/cdn/src/app/App.d.ts +2 -0
  13. package/dist/cdn/src/app/assets/svg/ArrowIconSVG.d.ts +3 -0
  14. package/dist/cdn/src/app/assets/svg/CheckMarkIconSVG.d.ts +3 -0
  15. package/dist/cdn/src/app/assets/svg/CloseIconSVG.d.ts +3 -0
  16. package/dist/cdn/src/app/assets/svg/DarkWhiteIconSVG.d.ts +1 -0
  17. package/dist/cdn/src/app/assets/svg/MinusIconSVG.d.ts +3 -0
  18. package/dist/cdn/src/app/assets/svg/PlusIconSVG.d.ts +3 -0
  19. package/dist/cdn/src/app/assets/svg/SearchIconSVG.d.ts +3 -0
  20. package/dist/cdn/src/app/assets/svg/TrashIconSVG.d.ts +3 -0
  21. package/dist/cdn/src/app/assets/svg/WhiteWhiteIconSVG.d.ts +1 -0
  22. package/dist/cdn/src/app/main.d.ts +1 -0
  23. package/dist/cdn/src/app/providers/StoreProvider.d.ts +6 -0
  24. package/dist/cdn/src/app/store/rootReducer.d.ts +11 -0
  25. package/dist/cdn/src/app/store/store.d.ts +24 -0
  26. package/dist/cdn/src/features/Cart/lib/CartCervices.d.ts +5 -0
  27. package/dist/cdn/src/features/Cart/model/cartSlice.d.ts +13 -0
  28. package/dist/cdn/src/features/Cart/model/selectors.d.ts +223 -0
  29. package/dist/cdn/src/features/Cart/model/types.d.ts +7 -0
  30. package/dist/cdn/src/features/Cart/ui/CartHeader/CartHeader.d.ts +7 -0
  31. package/dist/cdn/src/features/Cart/ui/CartList/CartList.d.ts +1 -0
  32. package/dist/cdn/src/features/Cart/ui/CartListItem/CartListItem.d.ts +10 -0
  33. package/dist/cdn/src/features/Cart/ui/CartPrice/CartPrice.d.ts +5 -0
  34. package/dist/cdn/src/features/Cart/ui/CartWrapper/CartWrapper.d.ts +9 -0
  35. package/dist/cdn/src/features/Cart/ui/Counter/Counter.d.ts +9 -0
  36. package/dist/cdn/src/features/DataAdapter/lib/DataAdapterServices.d.ts +12 -0
  37. package/dist/cdn/src/features/DataAdapter/utils/types.d.ts +11 -0
  38. package/dist/cdn/src/features/MultiProduct/lib/MultiProductCartServices.d.ts +13 -0
  39. package/dist/cdn/src/features/MultiProduct/model/API/api.d.ts +3 -0
  40. package/dist/cdn/src/features/MultiProduct/model/API/routes.d.ts +4 -0
  41. package/dist/cdn/src/features/MultiProduct/model/multiProductCartSlice.d.ts +13 -0
  42. package/dist/cdn/src/features/MultiProduct/model/selectors.d.ts +35 -0
  43. package/dist/cdn/src/features/MultiProduct/model/types.d.ts +30 -0
  44. package/dist/cdn/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.d.ts +1 -0
  45. package/dist/cdn/src/features/MultiProduct/ui/CustomModal/CustomModal.d.ts +8 -0
  46. package/dist/cdn/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.d.ts +1 -0
  47. package/dist/cdn/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.d.ts +5 -0
  48. package/dist/cdn/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.d.ts +6 -0
  49. package/dist/cdn/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.d.ts +6 -0
  50. package/dist/cdn/src/features/MultiProduct/ui/ProductList/ProductList.d.ts +5 -0
  51. package/dist/cdn/src/features/MultiProduct/ui/ProductListItem/ProductListItem.d.ts +6 -0
  52. package/dist/cdn/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.d.ts +5 -0
  53. package/dist/cdn/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.d.ts +1 -0
  54. package/dist/cdn/src/features/MultiProduct/utils/constants.d.ts +8 -0
  55. package/dist/cdn/src/features/MultiProduct/utils/randomList.d.ts +2 -0
  56. package/dist/cdn/src/features/SwatchModule/SwatchModule/ui/SwatchModule.d.ts +11 -0
  57. package/dist/cdn/src/features/swatches/lib/AttributeHelper.d.ts +7 -0
  58. package/dist/cdn/src/features/swatches/lib/SwatchesServices.d.ts +11 -0
  59. package/dist/cdn/src/features/swatches/model/selectors.d.ts +12 -0
  60. package/dist/cdn/src/features/swatches/model/swatchesSlice.d.ts +26 -0
  61. package/dist/cdn/src/features/swatches/model/thunks.d.ts +12 -0
  62. package/dist/cdn/src/features/swatches/model/types.d.ts +137 -0
  63. package/dist/cdn/src/features/swatches/ui/Filters/ColorsFilter.d.ts +1 -0
  64. package/dist/cdn/src/features/swatches/ui/Filters/LooksFilter.d.ts +1 -0
  65. package/dist/cdn/src/features/swatches/ui/Filters/MaterialsFilter.d.ts +1 -0
  66. package/dist/cdn/src/features/swatches/ui/Filters/index.d.ts +5 -0
  67. package/dist/cdn/src/features/swatches/ui/HexGridZoom/HexGridZoom.d.ts +3 -0
  68. package/dist/cdn/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.d.ts +3 -0
  69. package/dist/cdn/src/features/swatches/ui/MaterialList/index.d.ts +7 -0
  70. package/dist/cdn/src/features/swatches/ui/MaterialListItem/MaterialListItem.d.ts +4 -0
  71. package/dist/cdn/src/features/swatches/ui/ProductElement/index.d.ts +6 -0
  72. package/dist/cdn/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.d.ts +8 -0
  73. package/dist/cdn/src/features/swatches/ui/Swatches.d.ts +11 -0
  74. package/dist/cdn/src/features/swatches/ui/SwatchesList/SwatchesList.d.ts +5 -0
  75. package/dist/cdn/src/features/swatches/utils/constants.d.ts +3 -0
  76. package/dist/cdn/src/features/swatches/utils/types.d.ts +22 -0
  77. package/dist/cdn/src/shared/constants/props.d.ts +1058 -0
  78. package/dist/cdn/src/shared/constants/select.d.ts +4 -0
  79. package/dist/cdn/src/shared/constants/selectedMaterials.d.ts +1 -0
  80. package/dist/cdn/src/shared/types/activeTab.d.ts +5 -0
  81. package/dist/cdn/src/shared/types/svg.d.ts +3 -0
  82. package/dist/cdn/src/shared/ui/Checkbox/Checkbox.d.ts +4 -0
  83. package/dist/cdn/src/shared/ui/CustomButton/CustomButton.d.ts +6 -0
  84. package/dist/cdn/src/shared/ui/CustomSidebar/CustomSidebar.d.ts +8 -0
  85. package/dist/cdn/src/shared/ui/Dialog/Dialog.d.ts +19 -0
  86. package/dist/cdn/src/shared/ui/Label/Label.d.ts +7 -0
  87. package/dist/cdn/src/shared/ui/Markdown/MDWithAccordion.d.ts +10 -0
  88. package/dist/cdn/src/shared/ui/MaterialItem/MaterialItem.d.ts +8 -0
  89. package/dist/cdn/src/shared/ui/MultiSelect/MultiSelect.d.ts +20 -0
  90. package/dist/cdn/src/shared/ui/PopoverTooltip/InfoIcon.d.ts +1 -0
  91. package/dist/cdn/src/shared/ui/PopoverTooltip/PopoverTooltip.d.ts +11 -0
  92. package/dist/cdn/src/shared/ui/Slider/Slider.d.ts +11 -0
  93. package/dist/cdn/src/shared/ui/popover.d.ts +9 -0
  94. package/dist/cdn/src/shared/utils/cn.d.ts +2 -0
  95. package/dist/cdn/src/shared/utils/uniqueList.d.ts +1 -0
  96. package/dist/cdn/vite.svg +1 -0
  97. package/dist/components/SwatchesModule.d.ts +1 -2
  98. package/dist/main.cjs +407 -0
  99. package/dist/main.cjs.map +1 -0
  100. package/dist/main.d.ts +4 -1
  101. package/dist/main.js +63812 -2
  102. package/dist/main.js.map +1 -0
  103. package/dist/store/LibraryProvider.d.ts +4 -0
  104. package/dist/store/rootReducer.d.ts +11 -0
  105. package/dist/store/store.d.ts +25 -0
  106. package/dist/store/withStore.d.ts +2 -0
  107. package/package.json +24 -14
  108. package/dist/_virtual/_commonjsHelpers.js +0 -6
  109. package/dist/_virtual/index.js +0 -7
  110. package/dist/_virtual/index2.js +0 -7
  111. package/dist/_virtual/index3.js +0 -4
  112. package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -4
  113. package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -4
  114. package/dist/_virtual/utilities.js +0 -4
  115. package/dist/_virtual/with-selector.js +0 -5
  116. package/dist/_virtual/with-selector2.js +0 -4
  117. package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +0 -1
  118. package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +0 -1
  119. package/dist/assets/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
  120. package/dist/components/SwatchesModule.js +0 -32
  121. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  122. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  123. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  124. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  125. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  126. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  127. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  128. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
  129. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  130. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
  131. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -256
  132. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  133. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  134. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  135. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  136. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -231
  137. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  138. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  139. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  140. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  141. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  142. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  143. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
  144. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  145. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  146. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
  147. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  148. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +0 -877
  149. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -35
  150. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -497
  151. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
  152. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
  153. package/dist/node_modules/@ungap/structured-clone/esm/index.js +0 -11
  154. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
  155. package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -13
  156. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  157. package/dist/node_modules/bail/index.js +0 -7
  158. package/dist/node_modules/clsx/dist/clsx.js +0 -17
  159. package/dist/node_modules/comma-separated-tokens/index.js +0 -20
  160. package/dist/node_modules/decode-named-character-reference/index.dom.js +0 -14
  161. package/dist/node_modules/devlop/lib/default.js +0 -8
  162. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +0 -7
  163. package/dist/node_modules/extend/index.js +0 -43
  164. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
  165. package/dist/node_modules/hast-util-from-parse5/lib/index.js +0 -145
  166. package/dist/node_modules/hast-util-parse-selector/lib/index.js +0 -20
  167. package/dist/node_modules/hast-util-raw/lib/index.js +0 -217
  168. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +0 -302
  169. package/dist/node_modules/hast-util-to-parse5/lib/index.js +0 -118
  170. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +0 -12
  171. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +0 -61
  172. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +0 -33
  173. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +0 -368
  174. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +0 -6
  175. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +0 -566
  176. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  177. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  178. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +0 -22
  179. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +0 -27
  180. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +0 -23
  181. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +0 -11
  182. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +0 -17
  183. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +0 -14
  184. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +0 -19
  185. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +0 -11
  186. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +0 -11
  187. package/dist/node_modules/hast-util-whitespace/lib/index.js +0 -10
  188. package/dist/node_modules/hastscript/lib/create-h.js +0 -112
  189. package/dist/node_modules/hastscript/lib/index.js +0 -8
  190. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
  191. package/dist/node_modules/html-url-attributes/lib/index.js +0 -26
  192. package/dist/node_modules/html-void-elements/index.js +0 -25
  193. package/dist/node_modules/immer/dist/immer.js +0 -467
  194. package/dist/node_modules/inline-style-parser/index.js +0 -93
  195. package/dist/node_modules/is-plain-obj/index.js +0 -9
  196. package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -40
  197. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -27
  198. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
  199. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -12
  200. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -12
  201. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -15
  202. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -19
  203. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +0 -581
  204. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -90
  205. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -12
  206. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -8
  207. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -15
  208. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -12
  209. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -12
  210. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -28
  211. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -12
  212. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -9
  213. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -14
  214. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -10
  215. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -58
  216. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -14
  217. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -19
  218. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -15
  219. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -42
  220. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -21
  221. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -12
  222. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -7
  223. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -12
  224. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -13
  225. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -21
  226. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -32
  227. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -8
  228. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -12
  229. package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -10
  230. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -13
  231. package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -104
  232. package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -29
  233. package/dist/node_modules/micromark/lib/constructs.js +0 -85
  234. package/dist/node_modules/micromark/lib/create-tokenizer.js +0 -223
  235. package/dist/node_modules/micromark/lib/initialize/content.js +0 -37
  236. package/dist/node_modules/micromark/lib/initialize/document.js +0 -126
  237. package/dist/node_modules/micromark/lib/initialize/flow.js +0 -33
  238. package/dist/node_modules/micromark/lib/initialize/text.js +0 -95
  239. package/dist/node_modules/micromark/lib/parse.js +0 -32
  240. package/dist/node_modules/micromark/lib/postprocess.js +0 -9
  241. package/dist/node_modules/micromark/lib/preprocess.js +0 -39
  242. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +0 -83
  243. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +0 -43
  244. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
  245. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -42
  246. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -17
  247. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -30
  248. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -94
  249. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -43
  250. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +0 -45
  251. package/dist/node_modules/micromark-core-commonmark/lib/content.js +0 -50
  252. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +0 -80
  253. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -17
  254. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -46
  255. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -144
  256. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +0 -102
  257. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +0 -152
  258. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -22
  259. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -19
  260. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
  261. package/dist/node_modules/micromark-core-commonmark/lib/list.js +0 -90
  262. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -57
  263. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -25
  264. package/dist/node_modules/micromark-factory-destination/index.js +0 -31
  265. package/dist/node_modules/micromark-factory-label/index.js +0 -28
  266. package/dist/node_modules/micromark-factory-space/index.js +0 -15
  267. package/dist/node_modules/micromark-factory-title/index.js +0 -26
  268. package/dist/node_modules/micromark-factory-whitespace/index.js +0 -12
  269. package/dist/node_modules/micromark-util-character/index.js +0 -39
  270. package/dist/node_modules/micromark-util-chunked/index.js +0 -16
  271. package/dist/node_modules/micromark-util-classify-character/index.js +0 -10
  272. package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -36
  273. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -16
  274. package/dist/node_modules/micromark-util-decode-string/index.js +0 -18
  275. package/dist/node_modules/micromark-util-html-tag-name/index.js +0 -68
  276. package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -6
  277. package/dist/node_modules/micromark-util-resolve-all/index.js +0 -12
  278. package/dist/node_modules/micromark-util-sanitize-uri/index.js +0 -23
  279. package/dist/node_modules/micromark-util-subtokenize/index.js +0 -55
  280. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -175
  281. package/dist/node_modules/parse5/dist/common/doctype.js +0 -98
  282. package/dist/node_modules/parse5/dist/common/error-codes.js +0 -7
  283. package/dist/node_modules/parse5/dist/common/foreign-content.js +0 -210
  284. package/dist/node_modules/parse5/dist/common/html.js +0 -250
  285. package/dist/node_modules/parse5/dist/common/token.js +0 -14
  286. package/dist/node_modules/parse5/dist/common/unicode.js +0 -73
  287. package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
  288. package/dist/node_modules/parse5/dist/parser/index.js +0 -2271
  289. package/dist/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
  290. package/dist/node_modules/parse5/dist/serializer/index.js +0 -2
  291. package/dist/node_modules/parse5/dist/tokenizer/index.js +0 -1940
  292. package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
  293. package/dist/node_modules/parse5/dist/tree-adapters/default.js +0 -162
  294. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
  295. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -245
  296. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
  297. package/dist/node_modules/property-information/index.js +0 -12
  298. package/dist/node_modules/property-information/lib/aria.js +0 -61
  299. package/dist/node_modules/property-information/lib/find.js +0 -33
  300. package/dist/node_modules/property-information/lib/hast-to-react.js +0 -22
  301. package/dist/node_modules/property-information/lib/html.js +0 -368
  302. package/dist/node_modules/property-information/lib/normalize.js +0 -6
  303. package/dist/node_modules/property-information/lib/svg.js +0 -566
  304. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  305. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  306. package/dist/node_modules/property-information/lib/util/create.js +0 -19
  307. package/dist/node_modules/property-information/lib/util/defined-info.js +0 -36
  308. package/dist/node_modules/property-information/lib/util/info.js +0 -28
  309. package/dist/node_modules/property-information/lib/util/merge.js +0 -10
  310. package/dist/node_modules/property-information/lib/util/schema.js +0 -21
  311. package/dist/node_modules/property-information/lib/util/types.js +0 -14
  312. package/dist/node_modules/property-information/lib/xlink.js +0 -19
  313. package/dist/node_modules/property-information/lib/xml.js +0 -11
  314. package/dist/node_modules/property-information/lib/xmlns.js +0 -11
  315. package/dist/node_modules/react-markdown/lib/index.js +0 -102
  316. package/dist/node_modules/react-redux/dist/react-redux.js +0 -246
  317. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  318. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  319. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  320. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  321. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  322. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  323. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  324. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  325. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  326. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  327. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  328. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  329. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  330. package/dist/node_modules/redux/dist/redux.js +0 -258
  331. package/dist/node_modules/redux-thunk/dist/redux-thunk.js +0 -8
  332. package/dist/node_modules/rehype-raw/lib/index.js +0 -12
  333. package/dist/node_modules/remark-parse/lib/index.js +0 -19
  334. package/dist/node_modules/remark-rehype/lib/index.js +0 -18
  335. package/dist/node_modules/reselect/dist/reselect.js +0 -244
  336. package/dist/node_modules/space-separated-tokens/index.js +0 -11
  337. package/dist/node_modules/style-to-js/cjs/index.js +0 -20
  338. package/dist/node_modules/style-to-js/cjs/utilities.js +0 -19
  339. package/dist/node_modules/style-to-object/cjs/index.js +0 -28
  340. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2731
  341. package/dist/node_modules/trim-lines/index.js +0 -28
  342. package/dist/node_modules/trough/lib/index.js +0 -60
  343. package/dist/node_modules/tslib/tslib.es6.js +0 -27
  344. package/dist/node_modules/unified/lib/callable-instance.js +0 -25
  345. package/dist/node_modules/unified/lib/index.js +0 -529
  346. package/dist/node_modules/unist-util-is/lib/index.js +0 -84
  347. package/dist/node_modules/unist-util-position/lib/index.js +0 -23
  348. package/dist/node_modules/unist-util-stringify-position/lib/index.js +0 -15
  349. package/dist/node_modules/unist-util-visit/lib/index.js +0 -16
  350. package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -6
  351. package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -56
  352. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  353. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  354. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  355. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  356. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
  357. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -66
  358. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -65
  359. package/dist/node_modules/use-sync-external-store/with-selector.js +0 -10
  360. package/dist/node_modules/vfile/lib/index.js +0 -406
  361. package/dist/node_modules/vfile/lib/minpath.browser.js +0 -112
  362. package/dist/node_modules/vfile/lib/minproc.browser.js +0 -7
  363. package/dist/node_modules/vfile/lib/minurl.browser.js +0 -41
  364. package/dist/node_modules/vfile/lib/minurl.shared.js +0 -7
  365. package/dist/node_modules/vfile-location/lib/index.js +0 -42
  366. package/dist/node_modules/vfile-message/lib/index.js +0 -91
  367. package/dist/node_modules/web-namespaces/index.js +0 -11
  368. package/dist/node_modules/zwitch/index.js +0 -18
  369. package/dist/src/app/assets/images/product_thumb.png.js +0 -4
  370. package/dist/src/app/assets/svg/ArrowIconSVG.js +0 -25
  371. package/dist/src/app/assets/svg/CheckMarkIconSVG.js +0 -25
  372. package/dist/src/app/assets/svg/CloseIconSVG.js +0 -25
  373. package/dist/src/app/assets/svg/MinusIconSVG.js +0 -24
  374. package/dist/src/app/assets/svg/PlusIconSVG.js +0 -24
  375. package/dist/src/app/assets/svg/SearchIconSVG.js +0 -37
  376. package/dist/src/app/assets/svg/TrashIconSVG.js +0 -24
  377. package/dist/src/app/providers/StoreProvider.js +0 -7
  378. package/dist/src/app/store/rootReducer.js +0 -12
  379. package/dist/src/app/store/store.js +0 -14
  380. package/dist/src/features/Cart/lib/CartCervices.js +0 -8
  381. package/dist/src/features/Cart/model/cartSlice.js +0 -58
  382. package/dist/src/features/Cart/model/selectors.js +0 -18
  383. package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +0 -53
  384. package/dist/src/features/Cart/ui/CartList/CartList.js +0 -29
  385. package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +0 -41
  386. package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +0 -23
  387. package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +0 -38
  388. package/dist/src/features/Cart/ui/Counter/Counter.js +0 -46
  389. package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +0 -102
  390. package/dist/src/features/DataAdapter/utils/types.js +0 -8
  391. package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +0 -34
  392. package/dist/src/features/MultiProduct/model/API/api.js +0 -18
  393. package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +0 -83
  394. package/dist/src/features/MultiProduct/model/selectors.js +0 -7
  395. package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +0 -21
  396. package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +0 -28
  397. package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +0 -27
  398. package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +0 -60
  399. package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +0 -71
  400. package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +0 -19
  401. package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +0 -138
  402. package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +0 -51
  403. package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +0 -55
  404. package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +0 -46
  405. package/dist/src/features/MultiProduct/utils/constants.js +0 -16
  406. package/dist/src/features/MultiProduct/utils/randomList.js +0 -41
  407. package/dist/src/features/swatches/lib/AttributeHelper.js +0 -21
  408. package/dist/src/features/swatches/lib/SwatchesServices.js +0 -54
  409. package/dist/src/features/swatches/model/selectors.js +0 -12
  410. package/dist/src/features/swatches/model/swatchesSlice.js +0 -108
  411. package/dist/src/features/swatches/model/thunks.js +0 -22
  412. package/dist/src/features/swatches/model/types.js +0 -6
  413. package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +0 -45
  414. package/dist/src/features/swatches/ui/Filters/LooksFilter.js +0 -45
  415. package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +0 -47
  416. package/dist/src/features/swatches/ui/Filters/index.js +0 -12
  417. package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +0 -50
  418. package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +0 -45
  419. package/dist/src/features/swatches/ui/MaterialList/index.js +0 -39
  420. package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +0 -51
  421. package/dist/src/features/swatches/ui/ProductElement/index.js +0 -65
  422. package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +0 -62
  423. package/dist/src/features/swatches/ui/Swatches.js +0 -51
  424. package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +0 -67
  425. package/dist/src/features/swatches/utils/constants.js +0 -8
  426. package/dist/src/shared/constants/props.js +0 -13337
  427. package/dist/src/shared/constants/selectedMaterials.js +0 -4
  428. package/dist/src/shared/types/activeTab.js +0 -7
  429. package/dist/src/shared/ui/Checkbox/Checkbox.js +0 -31
  430. package/dist/src/shared/ui/CustomButton/CustomButton.js +0 -16
  431. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +0 -59
  432. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +0 -13
  433. package/dist/src/shared/ui/Dialog/Dialog.js +0 -81
  434. package/dist/src/shared/ui/Label/Label.js +0 -27
  435. package/dist/src/shared/ui/Markdown/MDWithAccordion.js +0 -36
  436. package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +0 -9
  437. package/dist/src/shared/ui/MaterialItem/MaterialItem.js +0 -36
  438. package/dist/src/shared/ui/MultiSelect/MultiSelect.js +0 -150
  439. package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +0 -35
  440. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +0 -37
  441. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +0 -4
  442. package/dist/src/shared/ui/Slider/Slider.js +0 -117
  443. package/dist/src/shared/utils/cn.js +0 -8
  444. package/dist/src/shared/utils/uniqueList.js +0 -4
@@ -1,223 +0,0 @@
1
- import { markdownLineEnding as V } from "../../micromark-util-character/index.js";
2
- import { push as W, splice as X } from "../../micromark-util-chunked/index.js";
3
- import { resolveAll as Y } from "../../micromark-util-resolve-all/index.js";
4
- function re(d, l, o) {
5
- let n = {
6
- _bufferIndex: -1,
7
- _index: 0,
8
- line: o && o.line || 1,
9
- column: o && o.column || 1,
10
- offset: o && o.offset || 0
11
- };
12
- const f = {}, u = [];
13
- let s = [], h = [];
14
- const S = {
15
- attempt: m(J),
16
- check: m(P),
17
- consume: D,
18
- enter: G,
19
- exit: H,
20
- interrupt: m(P, {
21
- interrupt: !0
22
- })
23
- }, t = {
24
- code: null,
25
- containerState: {},
26
- defineSkip: R,
27
- events: [],
28
- now: v,
29
- parser: d,
30
- previous: null,
31
- sliceSerialize: M,
32
- sliceStream: j,
33
- write: L
34
- };
35
- let O = l.tokenize.call(t, S);
36
- return l.resolveAll && u.push(l), t;
37
- function L(e) {
38
- return s = W(s, e), q(), s[s.length - 1] !== null ? [] : (T(l, 0), t.events = Y(u, t.events, t), t.events);
39
- }
40
- function M(e, r) {
41
- return $(j(e), r);
42
- }
43
- function j(e) {
44
- return Z(s, e);
45
- }
46
- function v() {
47
- const {
48
- _bufferIndex: e,
49
- _index: r,
50
- line: c,
51
- column: a,
52
- offset: p
53
- } = n;
54
- return {
55
- _bufferIndex: e,
56
- _index: r,
57
- line: c,
58
- column: a,
59
- offset: p
60
- };
61
- }
62
- function R(e) {
63
- f[e.line] = e.column, g();
64
- }
65
- function q() {
66
- let e;
67
- for (; n._index < s.length; ) {
68
- const r = s[n._index];
69
- if (typeof r == "string")
70
- for (e = n._index, n._bufferIndex < 0 && (n._bufferIndex = 0); n._index === e && n._bufferIndex < r.length; )
71
- z(r.charCodeAt(n._bufferIndex));
72
- else
73
- z(r);
74
- }
75
- }
76
- function z(e) {
77
- O = O(e);
78
- }
79
- function D(e) {
80
- V(e) ? (n.line++, n.column = 1, n.offset += e === -3 ? 2 : 1, g()) : e !== -1 && (n.column++, n.offset++), n._bufferIndex < 0 ? n._index++ : (n._bufferIndex++, n._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
81
- // strings.
82
- /** @type {string} */
83
- s[n._index].length && (n._bufferIndex = -1, n._index++)), t.previous = e;
84
- }
85
- function G(e, r) {
86
- const c = r || {};
87
- return c.type = e, c.start = v(), t.events.push(["enter", c, t]), h.push(c), c;
88
- }
89
- function H(e) {
90
- const r = h.pop();
91
- return r.end = v(), t.events.push(["exit", r, t]), r;
92
- }
93
- function J(e, r) {
94
- T(e, r.from);
95
- }
96
- function P(e, r) {
97
- r.restore();
98
- }
99
- function m(e, r) {
100
- return c;
101
- function c(a, p, _) {
102
- let C, k, B, y;
103
- return Array.isArray(a) ? (
104
- /* c8 ignore next 1 */
105
- A(a)
106
- ) : "tokenize" in a ? (
107
- // Looks like a construct.
108
- A([
109
- /** @type {Construct} */
110
- a
111
- ])
112
- ) : N(a);
113
- function N(i) {
114
- return w;
115
- function w(x) {
116
- const b = x !== null && i[x], I = x !== null && i.null, U = [
117
- // To do: add more extension tests.
118
- /* c8 ignore next 2 */
119
- ...Array.isArray(b) ? b : b ? [b] : [],
120
- ...Array.isArray(I) ? I : I ? [I] : []
121
- ];
122
- return A(U)(x);
123
- }
124
- }
125
- function A(i) {
126
- return C = i, k = 0, i.length === 0 ? _ : E(i[k]);
127
- }
128
- function E(i) {
129
- return w;
130
- function w(x) {
131
- return y = K(), B = i, i.partial || (t.currentConstruct = i), i.name && t.parser.constructs.disable.null.includes(i.name) ? F() : i.tokenize.call(
132
- // If we do have fields, create an object w/ `context` as its
133
- // prototype.
134
- // This allows a “live binding”, which is needed for `interrupt`.
135
- r ? Object.assign(Object.create(t), r) : t,
136
- S,
137
- Q,
138
- F
139
- )(x);
140
- }
141
- }
142
- function Q(i) {
143
- return e(B, y), p;
144
- }
145
- function F(i) {
146
- return y.restore(), ++k < C.length ? E(C[k]) : _;
147
- }
148
- }
149
- }
150
- function T(e, r) {
151
- e.resolveAll && !u.includes(e) && u.push(e), e.resolve && X(t.events, r, t.events.length - r, e.resolve(t.events.slice(r), t)), e.resolveTo && (t.events = e.resolveTo(t.events, t));
152
- }
153
- function K() {
154
- const e = v(), r = t.previous, c = t.currentConstruct, a = t.events.length, p = Array.from(h);
155
- return {
156
- from: a,
157
- restore: _
158
- };
159
- function _() {
160
- n = e, t.previous = r, t.currentConstruct = c, t.events.length = a, h = p, g();
161
- }
162
- }
163
- function g() {
164
- n.line in f && n.column < 2 && (n.column = f[n.line], n.offset += f[n.line] - 1);
165
- }
166
- }
167
- function Z(d, l) {
168
- const o = l.start._index, n = l.start._bufferIndex, f = l.end._index, u = l.end._bufferIndex;
169
- let s;
170
- if (o === f)
171
- s = [d[o].slice(n, u)];
172
- else {
173
- if (s = d.slice(o, f), n > -1) {
174
- const h = s[0];
175
- typeof h == "string" ? s[0] = h.slice(n) : s.shift();
176
- }
177
- u > 0 && s.push(d[f].slice(0, u));
178
- }
179
- return s;
180
- }
181
- function $(d, l) {
182
- let o = -1;
183
- const n = [];
184
- let f;
185
- for (; ++o < d.length; ) {
186
- const u = d[o];
187
- let s;
188
- if (typeof u == "string")
189
- s = u;
190
- else switch (u) {
191
- case -5: {
192
- s = "\r";
193
- break;
194
- }
195
- case -4: {
196
- s = `
197
- `;
198
- break;
199
- }
200
- case -3: {
201
- s = `\r
202
- `;
203
- break;
204
- }
205
- case -2: {
206
- s = l ? " " : " ";
207
- break;
208
- }
209
- case -1: {
210
- if (!l && f) continue;
211
- s = " ";
212
- break;
213
- }
214
- default:
215
- s = String.fromCharCode(u);
216
- }
217
- f = u === -2, n.push(s);
218
- }
219
- return n.join("");
220
- }
221
- export {
222
- re as createTokenizer
223
- };
@@ -1,37 +0,0 @@
1
- import { factorySpace as l } from "../../../micromark-factory-space/index.js";
2
- import { markdownLineEnding as m } from "../../../micromark-util-character/index.js";
3
- const g = {
4
- tokenize: x
5
- };
6
- function x(n) {
7
- const i = n.attempt(this.parser.constructs.contentInitial, e, p);
8
- let r;
9
- return i;
10
- function e(t) {
11
- if (t === null) {
12
- n.consume(t);
13
- return;
14
- }
15
- return n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), l(n, i, "linePrefix");
16
- }
17
- function p(t) {
18
- return n.enter("paragraph"), u(t);
19
- }
20
- function u(t) {
21
- const a = n.enter("chunkText", {
22
- contentType: "text",
23
- previous: r
24
- });
25
- return r && (r.next = a), r = a, o(t);
26
- }
27
- function o(t) {
28
- if (t === null) {
29
- n.exit("chunkText"), n.exit("paragraph"), n.consume(t);
30
- return;
31
- }
32
- return m(t) ? (n.consume(t), n.exit("chunkText"), u) : (n.consume(t), o);
33
- }
34
- }
35
- export {
36
- g as content
37
- };
@@ -1,126 +0,0 @@
1
- import { factorySpace as I } from "../../../micromark-factory-space/index.js";
2
- import { markdownLineEnding as N } from "../../../micromark-util-character/index.js";
3
- import { splice as F } from "../../../micromark-util-chunked/index.js";
4
- const L = {
5
- tokenize: T
6
- }, y = {
7
- tokenize: E
8
- };
9
- function T(i) {
10
- const e = this, l = [];
11
- let s = 0, t, a, d;
12
- return w;
13
- function w(n) {
14
- if (s < l.length) {
15
- const o = l[s];
16
- return e.containerState = o[1], i.attempt(o[0].continuation, z, p)(n);
17
- }
18
- return p(n);
19
- }
20
- function z(n) {
21
- if (s++, e.containerState._closeFlow) {
22
- e.containerState._closeFlow = void 0, t && x();
23
- const o = e.events.length;
24
- let u = o, r;
25
- for (; u--; )
26
- if (e.events[u][0] === "exit" && e.events[u][1].type === "chunkFlow") {
27
- r = e.events[u][1].end;
28
- break;
29
- }
30
- f(s);
31
- let c = o;
32
- for (; c < e.events.length; )
33
- e.events[c][1].end = {
34
- ...r
35
- }, c++;
36
- return F(e.events, u + 1, 0, e.events.slice(o)), e.events.length = c, p(n);
37
- }
38
- return w(n);
39
- }
40
- function p(n) {
41
- if (s === l.length) {
42
- if (!t)
43
- return m(n);
44
- if (t.currentConstruct && t.currentConstruct.concrete)
45
- return v(n);
46
- e.interrupt = !!(t.currentConstruct && !t._gfmTableDynamicInterruptHack);
47
- }
48
- return e.containerState = {}, i.check(y, B, _)(n);
49
- }
50
- function B(n) {
51
- return t && x(), f(s), m(n);
52
- }
53
- function _(n) {
54
- return e.parser.lazy[e.now().line] = s !== l.length, d = e.now().offset, v(n);
55
- }
56
- function m(n) {
57
- return e.containerState = {}, i.attempt(y, b, v)(n);
58
- }
59
- function b(n) {
60
- return s++, l.push([e.currentConstruct, e.containerState]), m(n);
61
- }
62
- function v(n) {
63
- if (n === null) {
64
- t && x(), f(0), i.consume(n);
65
- return;
66
- }
67
- return t = t || e.parser.flow(e.now()), i.enter("chunkFlow", {
68
- _tokenizer: t,
69
- contentType: "flow",
70
- previous: a
71
- }), C(n);
72
- }
73
- function C(n) {
74
- if (n === null) {
75
- g(i.exit("chunkFlow"), !0), f(0), i.consume(n);
76
- return;
77
- }
78
- return N(n) ? (i.consume(n), g(i.exit("chunkFlow")), s = 0, e.interrupt = void 0, w) : (i.consume(n), C);
79
- }
80
- function g(n, o) {
81
- const u = e.sliceStream(n);
82
- if (o && u.push(null), n.previous = a, a && (a.next = n), a = n, t.defineSkip(n.start), t.write(u), e.parser.lazy[n.start.line]) {
83
- let r = t.events.length;
84
- for (; r--; )
85
- if (
86
- // The token starts before the line ending…
87
- t.events[r][1].start.offset < d && // …and either is not ended yet…
88
- (!t.events[r][1].end || // …or ends after it.
89
- t.events[r][1].end.offset > d)
90
- )
91
- return;
92
- const c = e.events.length;
93
- let h = c, k, S;
94
- for (; h--; )
95
- if (e.events[h][0] === "exit" && e.events[h][1].type === "chunkFlow") {
96
- if (k) {
97
- S = e.events[h][1].end;
98
- break;
99
- }
100
- k = !0;
101
- }
102
- for (f(s), r = c; r < e.events.length; )
103
- e.events[r][1].end = {
104
- ...S
105
- }, r++;
106
- F(e.events, h + 1, 0, e.events.slice(c)), e.events.length = r;
107
- }
108
- }
109
- function f(n) {
110
- let o = l.length;
111
- for (; o-- > n; ) {
112
- const u = l[o];
113
- e.containerState = u[1], u[0].exit.call(e, i);
114
- }
115
- l.length = n;
116
- }
117
- function x() {
118
- t.write([null]), a = void 0, t = void 0, e.containerState._closeFlow = void 0;
119
- }
120
- }
121
- function E(i, e, l) {
122
- return I(i, i.attempt(this.parser.constructs.document, e, l), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
123
- }
124
- export {
125
- L as document
126
- };
@@ -1,33 +0,0 @@
1
- import { factorySpace as l } from "../../../micromark-factory-space/index.js";
2
- import { blankLine as a } from "../../../micromark-core-commonmark/lib/blank-line.js";
3
- import { content as e } from "../../../micromark-core-commonmark/lib/content.js";
4
- const d = {
5
- tokenize: m
6
- };
7
- function m(n) {
8
- const o = this, i = n.attempt(
9
- // Try to parse a blank line.
10
- a,
11
- u,
12
- // Try to parse initial flow (essentially, only code).
13
- n.attempt(this.parser.constructs.flowInitial, r, l(n, n.attempt(this.parser.constructs.flow, r, n.attempt(e, r)), "linePrefix"))
14
- );
15
- return i;
16
- function u(t) {
17
- if (t === null) {
18
- n.consume(t);
19
- return;
20
- }
21
- return n.enter("lineEndingBlank"), n.consume(t), n.exit("lineEndingBlank"), o.currentConstruct = void 0, i;
22
- }
23
- function r(t) {
24
- if (t === null) {
25
- n.consume(t);
26
- return;
27
- }
28
- return n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), o.currentConstruct = void 0, i;
29
- }
30
- }
31
- export {
32
- d as flow
33
- };
@@ -1,95 +0,0 @@
1
- const k = {
2
- resolveAll: g()
3
- }, m = x("string"), y = x("text");
4
- function x(r) {
5
- return {
6
- resolveAll: g(r === "text" ? p : void 0),
7
- tokenize: o
8
- };
9
- function o(t) {
10
- const i = this, e = this.parser.constructs[r], n = t.attempt(e, a, f);
11
- return a;
12
- function a(l) {
13
- return u(l) ? n(l) : f(l);
14
- }
15
- function f(l) {
16
- if (l === null) {
17
- t.consume(l);
18
- return;
19
- }
20
- return t.enter("data"), t.consume(l), s;
21
- }
22
- function s(l) {
23
- return u(l) ? (t.exit("data"), n(l)) : (t.consume(l), s);
24
- }
25
- function u(l) {
26
- if (l === null)
27
- return !0;
28
- const c = e[l];
29
- let d = -1;
30
- if (c)
31
- for (; ++d < c.length; ) {
32
- const h = c[d];
33
- if (!h.previous || h.previous.call(i, i.previous))
34
- return !0;
35
- }
36
- return !1;
37
- }
38
- }
39
- }
40
- function g(r) {
41
- return o;
42
- function o(t, i) {
43
- let e = -1, n;
44
- for (; ++e <= t.length; )
45
- n === void 0 ? t[e] && t[e][1].type === "data" && (n = e, e++) : (!t[e] || t[e][1].type !== "data") && (e !== n + 2 && (t[n][1].end = t[e - 1][1].end, t.splice(n + 2, e - n - 2), e = n + 2), n = void 0);
46
- return r ? r(t, i) : t;
47
- }
48
- }
49
- function p(r, o) {
50
- let t = 0;
51
- for (; ++t <= r.length; )
52
- if ((t === r.length || r[t][1].type === "lineEnding") && r[t - 1][1].type === "data") {
53
- const i = r[t - 1][1], e = o.sliceStream(i);
54
- let n = e.length, a = -1, f = 0, s;
55
- for (; n--; ) {
56
- const u = e[n];
57
- if (typeof u == "string") {
58
- for (a = u.length; u.charCodeAt(a - 1) === 32; )
59
- f++, a--;
60
- if (a) break;
61
- a = -1;
62
- } else if (u === -2)
63
- s = !0, f++;
64
- else if (u !== -1) {
65
- n++;
66
- break;
67
- }
68
- }
69
- if (o._contentTypeTextTrailing && t === r.length && (f = 0), f) {
70
- const u = {
71
- type: t === r.length || s || f < 2 ? "lineSuffix" : "hardBreakTrailing",
72
- start: {
73
- _bufferIndex: n ? a : i.start._bufferIndex + a,
74
- _index: i.start._index + n,
75
- line: i.end.line,
76
- column: i.end.column - f,
77
- offset: i.end.offset - f
78
- },
79
- end: {
80
- ...i.end
81
- }
82
- };
83
- i.end = {
84
- ...u.start
85
- }, i.start.offset === i.end.offset ? Object.assign(i, u) : (r.splice(t, 0, ["enter", u, o], ["exit", u, o]), t += 2);
86
- }
87
- t++;
88
- }
89
- return r;
90
- }
91
- export {
92
- k as resolver,
93
- m as string,
94
- y as text
95
- };
@@ -1,32 +0,0 @@
1
- import { combineExtensions as c } from "../../micromark-util-combine-extensions/index.js";
2
- import { content as i } from "./initialize/content.js";
3
- import { document as m } from "./initialize/document.js";
4
- import { flow as f } from "./initialize/flow.js";
5
- import { text as u, string as p } from "./initialize/text.js";
6
- import * as a from "./constructs.js";
7
- import { createTokenizer as x } from "./create-tokenizer.js";
8
- function y(r) {
9
- const o = {
10
- constructs: (
11
- /** @type {FullNormalizedExtension} */
12
- c([a, ...(r || {}).extensions || []])
13
- ),
14
- content: t(i),
15
- defined: [],
16
- document: t(m),
17
- flow: t(f),
18
- lazy: {},
19
- string: t(p),
20
- text: t(u)
21
- };
22
- return o;
23
- function t(n) {
24
- return e;
25
- function e(s) {
26
- return x(o, n, s);
27
- }
28
- }
29
- }
30
- export {
31
- y as parse
32
- };
@@ -1,9 +0,0 @@
1
- import { subtokenize as r } from "../../micromark-util-subtokenize/index.js";
2
- function e(o) {
3
- for (; !r(o); )
4
- ;
5
- return o;
6
- }
7
- export {
8
- e as postprocess
9
- };
@@ -1,39 +0,0 @@
1
- const u = /[\0\t\n\r]/g;
2
- function x() {
3
- let s = 1, c = "", f = !0, r;
4
- return p;
5
- function p(e, l, a) {
6
- const t = [];
7
- let d, o, n, i, h;
8
- for (e = c + (typeof e == "string" ? e.toString() : new TextDecoder(l || void 0).decode(e)), n = 0, c = "", f && (e.charCodeAt(0) === 65279 && n++, f = void 0); n < e.length; ) {
9
- if (u.lastIndex = n, d = u.exec(e), i = d && d.index !== void 0 ? d.index : e.length, h = e.charCodeAt(i), !d) {
10
- c = e.slice(n);
11
- break;
12
- }
13
- if (h === 10 && n === i && r)
14
- t.push(-3), r = void 0;
15
- else
16
- switch (r && (t.push(-5), r = void 0), n < i && (t.push(e.slice(n, i)), s += i - n), h) {
17
- case 0: {
18
- t.push(65533), s++;
19
- break;
20
- }
21
- case 9: {
22
- for (o = Math.ceil(s / 4) * 4, t.push(-2); s++ < o; ) t.push(-1);
23
- break;
24
- }
25
- case 10: {
26
- t.push(-4), s = 1;
27
- break;
28
- }
29
- default:
30
- r = !0, s = 1;
31
- }
32
- n = i + 1;
33
- }
34
- return a && (r && t.push(-5), c && t.push(c), t.push(null)), t;
35
- }
36
- }
37
- export {
38
- x as preprocess
39
- };
@@ -1,83 +0,0 @@
1
- import { push as d, splice as S } from "../../micromark-util-chunked/index.js";
2
- import { classifyCharacter as h } from "../../micromark-util-classify-character/index.js";
3
- import { resolveAll as q } from "../../micromark-util-resolve-all/index.js";
4
- const z = {
5
- name: "attention",
6
- resolveAll: g,
7
- tokenize: y
8
- };
9
- function g(t, i) {
10
- let e = -1, r, a, l, u, s, n, o, f;
11
- for (; ++e < t.length; )
12
- if (t[e][0] === "enter" && t[e][1].type === "attentionSequence" && t[e][1]._close) {
13
- for (r = e; r--; )
14
- if (t[r][0] === "exit" && t[r][1].type === "attentionSequence" && t[r][1]._open && // If the markers are the same:
15
- i.sliceSerialize(t[r][1]).charCodeAt(0) === i.sliceSerialize(t[e][1]).charCodeAt(0)) {
16
- if ((t[r][1]._close || t[e][1]._open) && (t[e][1].end.offset - t[e][1].start.offset) % 3 && !((t[r][1].end.offset - t[r][1].start.offset + t[e][1].end.offset - t[e][1].start.offset) % 3))
17
- continue;
18
- n = t[r][1].end.offset - t[r][1].start.offset > 1 && t[e][1].end.offset - t[e][1].start.offset > 1 ? 2 : 1;
19
- const p = {
20
- ...t[r][1].end
21
- }, c = {
22
- ...t[e][1].start
23
- };
24
- m(p, -n), m(c, n), u = {
25
- type: n > 1 ? "strongSequence" : "emphasisSequence",
26
- start: p,
27
- end: {
28
- ...t[r][1].end
29
- }
30
- }, s = {
31
- type: n > 1 ? "strongSequence" : "emphasisSequence",
32
- start: {
33
- ...t[e][1].start
34
- },
35
- end: c
36
- }, l = {
37
- type: n > 1 ? "strongText" : "emphasisText",
38
- start: {
39
- ...t[r][1].end
40
- },
41
- end: {
42
- ...t[e][1].start
43
- }
44
- }, a = {
45
- type: n > 1 ? "strong" : "emphasis",
46
- start: {
47
- ...u.start
48
- },
49
- end: {
50
- ...s.end
51
- }
52
- }, t[r][1].end = {
53
- ...u.start
54
- }, t[e][1].start = {
55
- ...s.end
56
- }, o = [], t[r][1].end.offset - t[r][1].start.offset && (o = d(o, [["enter", t[r][1], i], ["exit", t[r][1], i]])), o = d(o, [["enter", a, i], ["enter", u, i], ["exit", u, i], ["enter", l, i]]), o = d(o, q(i.parser.constructs.insideSpan.null, t.slice(r + 1, e), i)), o = d(o, [["exit", l, i], ["enter", s, i], ["exit", s, i], ["exit", a, i]]), t[e][1].end.offset - t[e][1].start.offset ? (f = 2, o = d(o, [["enter", t[e][1], i], ["exit", t[e][1], i]])) : f = 0, S(t, r - 1, e - r + 3, o), e = r + o.length - f - 2;
57
- break;
58
- }
59
- }
60
- for (e = -1; ++e < t.length; )
61
- t[e][1].type === "attentionSequence" && (t[e][1].type = "data");
62
- return t;
63
- }
64
- function y(t, i) {
65
- const e = this.parser.constructs.attentionMarkers.null, r = this.previous, a = h(r);
66
- let l;
67
- return u;
68
- function u(n) {
69
- return l = n, t.enter("attentionSequence"), s(n);
70
- }
71
- function s(n) {
72
- if (n === l)
73
- return t.consume(n), s;
74
- const o = t.exit("attentionSequence"), f = h(n), p = !f || f === 2 && a || e.includes(n), c = !a || a === 2 && f || e.includes(r);
75
- return o._open = !!(l === 42 ? p : p && (a || !c)), o._close = !!(l === 42 ? c : c && (f || !p)), i(n);
76
- }
77
- }
78
- function m(t, i) {
79
- t.column += i, t.offset += i, t._bufferIndex += i;
80
- }
81
- export {
82
- z as attention
83
- };