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.
- package/README.md +233 -73
- package/dist/assets/index.css +1 -0
- package/dist/cdn/lib/components/SwatchesModule.d.ts +10 -0
- package/dist/cdn/lib/main.d.ts +4 -0
- package/dist/cdn/lib/store/LibraryProvider.d.ts +4 -0
- package/dist/cdn/lib/store/rootReducer.d.ts +11 -0
- package/dist/cdn/lib/store/store.d.ts +25 -0
- package/dist/cdn/lib/store/withStore.d.ts +2 -0
- package/dist/cdn/lib/vite-env.d.ts +1 -0
- package/dist/cdn/main.css +1 -0
- package/dist/cdn/main.js +48652 -0
- package/dist/cdn/src/app/App.d.ts +2 -0
- package/dist/cdn/src/app/assets/svg/ArrowIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/CheckMarkIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/CloseIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/DarkWhiteIconSVG.d.ts +1 -0
- package/dist/cdn/src/app/assets/svg/MinusIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/PlusIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/SearchIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/TrashIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/WhiteWhiteIconSVG.d.ts +1 -0
- package/dist/cdn/src/app/main.d.ts +1 -0
- package/dist/cdn/src/app/providers/StoreProvider.d.ts +6 -0
- package/dist/cdn/src/app/store/rootReducer.d.ts +11 -0
- package/dist/cdn/src/app/store/store.d.ts +24 -0
- package/dist/cdn/src/features/Cart/lib/CartCervices.d.ts +5 -0
- package/dist/cdn/src/features/Cart/model/cartSlice.d.ts +13 -0
- package/dist/cdn/src/features/Cart/model/selectors.d.ts +223 -0
- package/dist/cdn/src/features/Cart/model/types.d.ts +7 -0
- package/dist/cdn/src/features/Cart/ui/CartHeader/CartHeader.d.ts +7 -0
- package/dist/cdn/src/features/Cart/ui/CartList/CartList.d.ts +1 -0
- package/dist/cdn/src/features/Cart/ui/CartListItem/CartListItem.d.ts +10 -0
- package/dist/cdn/src/features/Cart/ui/CartPrice/CartPrice.d.ts +5 -0
- package/dist/cdn/src/features/Cart/ui/CartWrapper/CartWrapper.d.ts +9 -0
- package/dist/cdn/src/features/Cart/ui/Counter/Counter.d.ts +9 -0
- package/dist/cdn/src/features/DataAdapter/lib/DataAdapterServices.d.ts +12 -0
- package/dist/cdn/src/features/DataAdapter/utils/types.d.ts +11 -0
- package/dist/cdn/src/features/MultiProduct/lib/MultiProductCartServices.d.ts +13 -0
- package/dist/cdn/src/features/MultiProduct/model/API/api.d.ts +3 -0
- package/dist/cdn/src/features/MultiProduct/model/API/routes.d.ts +4 -0
- package/dist/cdn/src/features/MultiProduct/model/multiProductCartSlice.d.ts +13 -0
- package/dist/cdn/src/features/MultiProduct/model/selectors.d.ts +35 -0
- package/dist/cdn/src/features/MultiProduct/model/types.d.ts +30 -0
- package/dist/cdn/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/CustomModal/CustomModal.d.ts +8 -0
- package/dist/cdn/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/ProductList/ProductList.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/ProductListItem/ProductListItem.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/utils/constants.d.ts +8 -0
- package/dist/cdn/src/features/MultiProduct/utils/randomList.d.ts +2 -0
- package/dist/cdn/src/features/SwatchModule/SwatchModule/ui/SwatchModule.d.ts +11 -0
- package/dist/cdn/src/features/swatches/lib/AttributeHelper.d.ts +7 -0
- package/dist/cdn/src/features/swatches/lib/SwatchesServices.d.ts +11 -0
- package/dist/cdn/src/features/swatches/model/selectors.d.ts +12 -0
- package/dist/cdn/src/features/swatches/model/swatchesSlice.d.ts +26 -0
- package/dist/cdn/src/features/swatches/model/thunks.d.ts +12 -0
- package/dist/cdn/src/features/swatches/model/types.d.ts +137 -0
- package/dist/cdn/src/features/swatches/ui/Filters/ColorsFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/LooksFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/MaterialsFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/index.d.ts +5 -0
- package/dist/cdn/src/features/swatches/ui/HexGridZoom/HexGridZoom.d.ts +3 -0
- package/dist/cdn/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.d.ts +3 -0
- package/dist/cdn/src/features/swatches/ui/MaterialList/index.d.ts +7 -0
- package/dist/cdn/src/features/swatches/ui/MaterialListItem/MaterialListItem.d.ts +4 -0
- package/dist/cdn/src/features/swatches/ui/ProductElement/index.d.ts +6 -0
- package/dist/cdn/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.d.ts +8 -0
- package/dist/cdn/src/features/swatches/ui/Swatches.d.ts +11 -0
- package/dist/cdn/src/features/swatches/ui/SwatchesList/SwatchesList.d.ts +5 -0
- package/dist/cdn/src/features/swatches/utils/constants.d.ts +3 -0
- package/dist/cdn/src/features/swatches/utils/types.d.ts +22 -0
- package/dist/cdn/src/shared/constants/props.d.ts +1058 -0
- package/dist/cdn/src/shared/constants/select.d.ts +4 -0
- package/dist/cdn/src/shared/constants/selectedMaterials.d.ts +1 -0
- package/dist/cdn/src/shared/types/activeTab.d.ts +5 -0
- package/dist/cdn/src/shared/types/svg.d.ts +3 -0
- package/dist/cdn/src/shared/ui/Checkbox/Checkbox.d.ts +4 -0
- package/dist/cdn/src/shared/ui/CustomButton/CustomButton.d.ts +6 -0
- package/dist/cdn/src/shared/ui/CustomSidebar/CustomSidebar.d.ts +8 -0
- package/dist/cdn/src/shared/ui/Dialog/Dialog.d.ts +19 -0
- package/dist/cdn/src/shared/ui/Label/Label.d.ts +7 -0
- package/dist/cdn/src/shared/ui/Markdown/MDWithAccordion.d.ts +10 -0
- package/dist/cdn/src/shared/ui/MaterialItem/MaterialItem.d.ts +8 -0
- package/dist/cdn/src/shared/ui/MultiSelect/MultiSelect.d.ts +20 -0
- package/dist/cdn/src/shared/ui/PopoverTooltip/InfoIcon.d.ts +1 -0
- package/dist/cdn/src/shared/ui/PopoverTooltip/PopoverTooltip.d.ts +11 -0
- package/dist/cdn/src/shared/ui/Slider/Slider.d.ts +11 -0
- package/dist/cdn/src/shared/ui/popover.d.ts +9 -0
- package/dist/cdn/src/shared/utils/cn.d.ts +2 -0
- package/dist/cdn/src/shared/utils/uniqueList.d.ts +1 -0
- package/dist/cdn/vite.svg +1 -0
- package/dist/components/SwatchesModule.d.ts +1 -2
- package/dist/main.cjs +407 -0
- package/dist/main.cjs.map +1 -0
- package/dist/main.d.ts +4 -1
- package/dist/main.js +63812 -2
- package/dist/main.js.map +1 -0
- package/dist/store/LibraryProvider.d.ts +4 -0
- package/dist/store/rootReducer.d.ts +11 -0
- package/dist/store/store.d.ts +25 -0
- package/dist/store/withStore.d.ts +2 -0
- package/package.json +24 -14
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/index.js +0 -7
- package/dist/_virtual/index2.js +0 -7
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -4
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -4
- package/dist/_virtual/utilities.js +0 -4
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector2.js +0 -4
- package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +0 -1
- package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +0 -1
- package/dist/assets/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
- package/dist/components/SwatchesModule.js +0 -32
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -256
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -231
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +0 -877
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -35
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -497
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +0 -11
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -13
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/bail/index.js +0 -7
- package/dist/node_modules/clsx/dist/clsx.js +0 -17
- package/dist/node_modules/comma-separated-tokens/index.js +0 -20
- package/dist/node_modules/decode-named-character-reference/index.dom.js +0 -14
- package/dist/node_modules/devlop/lib/default.js +0 -8
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +0 -7
- package/dist/node_modules/extend/index.js +0 -43
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +0 -145
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +0 -20
- package/dist/node_modules/hast-util-raw/lib/index.js +0 -217
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +0 -302
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +0 -118
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +0 -61
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +0 -33
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +0 -368
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +0 -6
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +0 -566
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +0 -22
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +0 -27
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +0 -23
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +0 -11
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +0 -17
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +0 -14
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +0 -19
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +0 -11
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +0 -11
- package/dist/node_modules/hast-util-whitespace/lib/index.js +0 -10
- package/dist/node_modules/hastscript/lib/create-h.js +0 -112
- package/dist/node_modules/hastscript/lib/index.js +0 -8
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
- package/dist/node_modules/html-url-attributes/lib/index.js +0 -26
- package/dist/node_modules/html-void-elements/index.js +0 -25
- package/dist/node_modules/immer/dist/immer.js +0 -467
- package/dist/node_modules/inline-style-parser/index.js +0 -93
- package/dist/node_modules/is-plain-obj/index.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -40
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -27
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -19
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +0 -581
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -90
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -28
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -9
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -14
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -10
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -58
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -14
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -19
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -42
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -21
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -7
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -13
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -21
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -32
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -10
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -13
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -104
- package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -29
- package/dist/node_modules/micromark/lib/constructs.js +0 -85
- package/dist/node_modules/micromark/lib/create-tokenizer.js +0 -223
- package/dist/node_modules/micromark/lib/initialize/content.js +0 -37
- package/dist/node_modules/micromark/lib/initialize/document.js +0 -126
- package/dist/node_modules/micromark/lib/initialize/flow.js +0 -33
- package/dist/node_modules/micromark/lib/initialize/text.js +0 -95
- package/dist/node_modules/micromark/lib/parse.js +0 -32
- package/dist/node_modules/micromark/lib/postprocess.js +0 -9
- package/dist/node_modules/micromark/lib/preprocess.js +0 -39
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +0 -83
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +0 -43
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -42
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -17
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -30
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -94
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -43
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +0 -45
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +0 -50
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +0 -80
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -17
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -46
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -144
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +0 -102
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +0 -152
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -22
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -19
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +0 -90
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -57
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -25
- package/dist/node_modules/micromark-factory-destination/index.js +0 -31
- package/dist/node_modules/micromark-factory-label/index.js +0 -28
- package/dist/node_modules/micromark-factory-space/index.js +0 -15
- package/dist/node_modules/micromark-factory-title/index.js +0 -26
- package/dist/node_modules/micromark-factory-whitespace/index.js +0 -12
- package/dist/node_modules/micromark-util-character/index.js +0 -39
- package/dist/node_modules/micromark-util-chunked/index.js +0 -16
- package/dist/node_modules/micromark-util-classify-character/index.js +0 -10
- package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -36
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -16
- package/dist/node_modules/micromark-util-decode-string/index.js +0 -18
- package/dist/node_modules/micromark-util-html-tag-name/index.js +0 -68
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -6
- package/dist/node_modules/micromark-util-resolve-all/index.js +0 -12
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +0 -23
- package/dist/node_modules/micromark-util-subtokenize/index.js +0 -55
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -175
- package/dist/node_modules/parse5/dist/common/doctype.js +0 -98
- package/dist/node_modules/parse5/dist/common/error-codes.js +0 -7
- package/dist/node_modules/parse5/dist/common/foreign-content.js +0 -210
- package/dist/node_modules/parse5/dist/common/html.js +0 -250
- package/dist/node_modules/parse5/dist/common/token.js +0 -14
- package/dist/node_modules/parse5/dist/common/unicode.js +0 -73
- package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
- package/dist/node_modules/parse5/dist/parser/index.js +0 -2271
- package/dist/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
- package/dist/node_modules/parse5/dist/serializer/index.js +0 -2
- package/dist/node_modules/parse5/dist/tokenizer/index.js +0 -1940
- package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
- package/dist/node_modules/parse5/dist/tree-adapters/default.js +0 -162
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -245
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/property-information/index.js +0 -12
- package/dist/node_modules/property-information/lib/aria.js +0 -61
- package/dist/node_modules/property-information/lib/find.js +0 -33
- package/dist/node_modules/property-information/lib/hast-to-react.js +0 -22
- package/dist/node_modules/property-information/lib/html.js +0 -368
- package/dist/node_modules/property-information/lib/normalize.js +0 -6
- package/dist/node_modules/property-information/lib/svg.js +0 -566
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
- package/dist/node_modules/property-information/lib/util/create.js +0 -19
- package/dist/node_modules/property-information/lib/util/defined-info.js +0 -36
- package/dist/node_modules/property-information/lib/util/info.js +0 -28
- package/dist/node_modules/property-information/lib/util/merge.js +0 -10
- package/dist/node_modules/property-information/lib/util/schema.js +0 -21
- package/dist/node_modules/property-information/lib/util/types.js +0 -14
- package/dist/node_modules/property-information/lib/xlink.js +0 -19
- package/dist/node_modules/property-information/lib/xml.js +0 -11
- package/dist/node_modules/property-information/lib/xmlns.js +0 -11
- package/dist/node_modules/react-markdown/lib/index.js +0 -102
- package/dist/node_modules/react-redux/dist/react-redux.js +0 -246
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/redux/dist/redux.js +0 -258
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +0 -8
- package/dist/node_modules/rehype-raw/lib/index.js +0 -12
- package/dist/node_modules/remark-parse/lib/index.js +0 -19
- package/dist/node_modules/remark-rehype/lib/index.js +0 -18
- package/dist/node_modules/reselect/dist/reselect.js +0 -244
- package/dist/node_modules/space-separated-tokens/index.js +0 -11
- package/dist/node_modules/style-to-js/cjs/index.js +0 -20
- package/dist/node_modules/style-to-js/cjs/utilities.js +0 -19
- package/dist/node_modules/style-to-object/cjs/index.js +0 -28
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2731
- package/dist/node_modules/trim-lines/index.js +0 -28
- package/dist/node_modules/trough/lib/index.js +0 -60
- package/dist/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/unified/lib/callable-instance.js +0 -25
- package/dist/node_modules/unified/lib/index.js +0 -529
- package/dist/node_modules/unist-util-is/lib/index.js +0 -84
- package/dist/node_modules/unist-util-position/lib/index.js +0 -23
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +0 -15
- package/dist/node_modules/unist-util-visit/lib/index.js +0 -16
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -6
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -56
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -66
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -65
- package/dist/node_modules/use-sync-external-store/with-selector.js +0 -10
- package/dist/node_modules/vfile/lib/index.js +0 -406
- package/dist/node_modules/vfile/lib/minpath.browser.js +0 -112
- package/dist/node_modules/vfile/lib/minproc.browser.js +0 -7
- package/dist/node_modules/vfile/lib/minurl.browser.js +0 -41
- package/dist/node_modules/vfile/lib/minurl.shared.js +0 -7
- package/dist/node_modules/vfile-location/lib/index.js +0 -42
- package/dist/node_modules/vfile-message/lib/index.js +0 -91
- package/dist/node_modules/web-namespaces/index.js +0 -11
- package/dist/node_modules/zwitch/index.js +0 -18
- package/dist/src/app/assets/images/product_thumb.png.js +0 -4
- package/dist/src/app/assets/svg/ArrowIconSVG.js +0 -25
- package/dist/src/app/assets/svg/CheckMarkIconSVG.js +0 -25
- package/dist/src/app/assets/svg/CloseIconSVG.js +0 -25
- package/dist/src/app/assets/svg/MinusIconSVG.js +0 -24
- package/dist/src/app/assets/svg/PlusIconSVG.js +0 -24
- package/dist/src/app/assets/svg/SearchIconSVG.js +0 -37
- package/dist/src/app/assets/svg/TrashIconSVG.js +0 -24
- package/dist/src/app/providers/StoreProvider.js +0 -7
- package/dist/src/app/store/rootReducer.js +0 -12
- package/dist/src/app/store/store.js +0 -14
- package/dist/src/features/Cart/lib/CartCervices.js +0 -8
- package/dist/src/features/Cart/model/cartSlice.js +0 -58
- package/dist/src/features/Cart/model/selectors.js +0 -18
- package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +0 -53
- package/dist/src/features/Cart/ui/CartList/CartList.js +0 -29
- package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +0 -41
- package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +0 -23
- package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +0 -38
- package/dist/src/features/Cart/ui/Counter/Counter.js +0 -46
- package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +0 -102
- package/dist/src/features/DataAdapter/utils/types.js +0 -8
- package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +0 -34
- package/dist/src/features/MultiProduct/model/API/api.js +0 -18
- package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +0 -83
- package/dist/src/features/MultiProduct/model/selectors.js +0 -7
- package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +0 -21
- package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +0 -28
- package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +0 -27
- package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +0 -60
- package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +0 -71
- package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +0 -19
- package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +0 -138
- package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +0 -51
- package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +0 -55
- package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +0 -46
- package/dist/src/features/MultiProduct/utils/constants.js +0 -16
- package/dist/src/features/MultiProduct/utils/randomList.js +0 -41
- package/dist/src/features/swatches/lib/AttributeHelper.js +0 -21
- package/dist/src/features/swatches/lib/SwatchesServices.js +0 -54
- package/dist/src/features/swatches/model/selectors.js +0 -12
- package/dist/src/features/swatches/model/swatchesSlice.js +0 -108
- package/dist/src/features/swatches/model/thunks.js +0 -22
- package/dist/src/features/swatches/model/types.js +0 -6
- package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +0 -45
- package/dist/src/features/swatches/ui/Filters/LooksFilter.js +0 -45
- package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +0 -47
- package/dist/src/features/swatches/ui/Filters/index.js +0 -12
- package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +0 -50
- package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +0 -45
- package/dist/src/features/swatches/ui/MaterialList/index.js +0 -39
- package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +0 -51
- package/dist/src/features/swatches/ui/ProductElement/index.js +0 -65
- package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +0 -62
- package/dist/src/features/swatches/ui/Swatches.js +0 -51
- package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +0 -67
- package/dist/src/features/swatches/utils/constants.js +0 -8
- package/dist/src/shared/constants/props.js +0 -13337
- package/dist/src/shared/constants/selectedMaterials.js +0 -4
- package/dist/src/shared/types/activeTab.js +0 -7
- package/dist/src/shared/ui/Checkbox/Checkbox.js +0 -31
- package/dist/src/shared/ui/CustomButton/CustomButton.js +0 -16
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +0 -59
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +0 -13
- package/dist/src/shared/ui/Dialog/Dialog.js +0 -81
- package/dist/src/shared/ui/Label/Label.js +0 -27
- package/dist/src/shared/ui/Markdown/MDWithAccordion.js +0 -36
- package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +0 -9
- package/dist/src/shared/ui/MaterialItem/MaterialItem.js +0 -36
- package/dist/src/shared/ui/MultiSelect/MultiSelect.js +0 -150
- package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +0 -35
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +0 -37
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +0 -4
- package/dist/src/shared/ui/Slider/Slider.js +0 -117
- package/dist/src/shared/utils/cn.js +0 -8
- package/dist/src/shared/utils/uniqueList.js +0 -4
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license lucide-react v0.487.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
const s = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), r = (e) => e.replace(
|
|
8
|
-
/^([A-Z])|[\s-_]+(\w)/g,
|
|
9
|
-
(t, a, o) => o ? o.toUpperCase() : a.toLowerCase()
|
|
10
|
-
), c = (e) => {
|
|
11
|
-
const t = r(e);
|
|
12
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
13
|
-
}, n = (...e) => e.filter((t, a, o) => !!t && t.trim() !== "" && o.indexOf(t) === a).join(" ").trim();
|
|
14
|
-
export {
|
|
15
|
-
n as mergeClasses,
|
|
16
|
-
r as toCamelCase,
|
|
17
|
-
s as toKebabCase,
|
|
18
|
-
c as toPascalCase
|
|
19
|
-
};
|
|
@@ -1,581 +0,0 @@
|
|
|
1
|
-
import { decodeNumericCharacterReference as Be } from "../../micromark-util-decode-numeric-character-reference/index.js";
|
|
2
|
-
import { decodeString as Re } from "../../micromark-util-decode-string/index.js";
|
|
3
|
-
import { normalizeIdentifier as T } from "../../micromark-util-normalize-identifier/index.js";
|
|
4
|
-
import { decodeNamedCharacterReference as Ce } from "../../decode-named-character-reference/index.dom.js";
|
|
5
|
-
import { postprocess as He } from "../../micromark/lib/postprocess.js";
|
|
6
|
-
import { parse as Le } from "../../micromark/lib/parse.js";
|
|
7
|
-
import { preprocess as ze } from "../../micromark/lib/preprocess.js";
|
|
8
|
-
import { stringifyPosition as I } from "../../unist-util-stringify-position/lib/index.js";
|
|
9
|
-
import { toString as Pe } from "../../mdast-util-to-string/lib/index.js";
|
|
10
|
-
const M = {}.hasOwnProperty;
|
|
11
|
-
function We(o, a, l) {
|
|
12
|
-
return typeof a != "string" && (l = a, a = void 0), Oe(l)(He(Le(l).document().write(ze()(o, a, !0))));
|
|
13
|
-
}
|
|
14
|
-
function Oe(o) {
|
|
15
|
-
const a = {
|
|
16
|
-
transforms: [],
|
|
17
|
-
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
18
|
-
enter: {
|
|
19
|
-
autolink: r(P),
|
|
20
|
-
autolinkProtocol: p,
|
|
21
|
-
autolinkEmail: p,
|
|
22
|
-
atxHeading: r(H),
|
|
23
|
-
blockQuote: r(me),
|
|
24
|
-
characterEscape: p,
|
|
25
|
-
characterReference: p,
|
|
26
|
-
codeFenced: r(C),
|
|
27
|
-
codeFencedFenceInfo: h,
|
|
28
|
-
codeFencedFenceMeta: h,
|
|
29
|
-
codeIndented: r(C, h),
|
|
30
|
-
codeText: r(xe, h),
|
|
31
|
-
codeTextData: p,
|
|
32
|
-
data: p,
|
|
33
|
-
codeFlowValue: p,
|
|
34
|
-
definition: r(ye),
|
|
35
|
-
definitionDestinationString: h,
|
|
36
|
-
definitionLabelString: h,
|
|
37
|
-
definitionTitleString: h,
|
|
38
|
-
emphasis: r(be),
|
|
39
|
-
hardBreakEscape: r(L),
|
|
40
|
-
hardBreakTrailing: r(L),
|
|
41
|
-
htmlFlow: r(z, h),
|
|
42
|
-
htmlFlowData: p,
|
|
43
|
-
htmlText: r(z, h),
|
|
44
|
-
htmlTextData: p,
|
|
45
|
-
image: r(Se),
|
|
46
|
-
label: h,
|
|
47
|
-
link: r(P),
|
|
48
|
-
listItem: r(we),
|
|
49
|
-
listItemValue: U,
|
|
50
|
-
listOrdered: r(O, N),
|
|
51
|
-
listUnordered: r(O),
|
|
52
|
-
paragraph: r(Ie),
|
|
53
|
-
reference: he,
|
|
54
|
-
referenceString: h,
|
|
55
|
-
resourceDestinationString: h,
|
|
56
|
-
resourceTitleString: h,
|
|
57
|
-
setextHeading: r(H),
|
|
58
|
-
strong: r(Te),
|
|
59
|
-
thematicBreak: r(Fe)
|
|
60
|
-
},
|
|
61
|
-
exit: {
|
|
62
|
-
atxHeading: c(),
|
|
63
|
-
atxHeadingSequence: X,
|
|
64
|
-
autolink: c(),
|
|
65
|
-
autolinkEmail: ge,
|
|
66
|
-
autolinkProtocol: ke,
|
|
67
|
-
blockQuote: c(),
|
|
68
|
-
characterEscapeValue: k,
|
|
69
|
-
characterReferenceMarkerHexadecimal: R,
|
|
70
|
-
characterReferenceMarkerNumeric: R,
|
|
71
|
-
characterReferenceValue: fe,
|
|
72
|
-
characterReference: pe,
|
|
73
|
-
codeFenced: c(W),
|
|
74
|
-
codeFencedFence: A,
|
|
75
|
-
codeFencedFenceInfo: _,
|
|
76
|
-
codeFencedFenceMeta: j,
|
|
77
|
-
codeFlowValue: k,
|
|
78
|
-
codeIndented: c($),
|
|
79
|
-
codeText: c(ie),
|
|
80
|
-
codeTextData: k,
|
|
81
|
-
data: k,
|
|
82
|
-
definition: c(),
|
|
83
|
-
definitionDestinationString: K,
|
|
84
|
-
definitionLabelString: G,
|
|
85
|
-
definitionTitleString: J,
|
|
86
|
-
emphasis: c(),
|
|
87
|
-
hardBreakEscape: c(B),
|
|
88
|
-
hardBreakTrailing: c(B),
|
|
89
|
-
htmlFlow: c(te),
|
|
90
|
-
htmlFlowData: k,
|
|
91
|
-
htmlText: c(ne),
|
|
92
|
-
htmlTextData: k,
|
|
93
|
-
image: c(se),
|
|
94
|
-
label: ce,
|
|
95
|
-
labelText: re,
|
|
96
|
-
lineEnding: ee,
|
|
97
|
-
link: c(ae),
|
|
98
|
-
listItem: c(),
|
|
99
|
-
listOrdered: c(),
|
|
100
|
-
listUnordered: c(),
|
|
101
|
-
paragraph: c(),
|
|
102
|
-
referenceString: ue,
|
|
103
|
-
resourceDestinationString: oe,
|
|
104
|
-
resourceTitleString: le,
|
|
105
|
-
resource: de,
|
|
106
|
-
setextHeading: c(v),
|
|
107
|
-
setextHeadingLineSequence: Z,
|
|
108
|
-
setextHeadingText: Y,
|
|
109
|
-
strong: c(),
|
|
110
|
-
thematicBreak: c()
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
V(a, (o || {}).mdastExtensions || []);
|
|
114
|
-
const l = {};
|
|
115
|
-
return d;
|
|
116
|
-
function d(e) {
|
|
117
|
-
let t = {
|
|
118
|
-
type: "root",
|
|
119
|
-
children: []
|
|
120
|
-
};
|
|
121
|
-
const n = {
|
|
122
|
-
stack: [t],
|
|
123
|
-
tokenStack: [],
|
|
124
|
-
config: a,
|
|
125
|
-
enter: E,
|
|
126
|
-
exit: F,
|
|
127
|
-
buffer: h,
|
|
128
|
-
resume: q,
|
|
129
|
-
data: l
|
|
130
|
-
}, i = [];
|
|
131
|
-
let s = -1;
|
|
132
|
-
for (; ++s < e.length; )
|
|
133
|
-
if (e[s][1].type === "listOrdered" || e[s][1].type === "listUnordered")
|
|
134
|
-
if (e[s][0] === "enter")
|
|
135
|
-
i.push(s);
|
|
136
|
-
else {
|
|
137
|
-
const f = i.pop();
|
|
138
|
-
s = Q(e, f, s);
|
|
139
|
-
}
|
|
140
|
-
for (s = -1; ++s < e.length; ) {
|
|
141
|
-
const f = a[e[s][0]];
|
|
142
|
-
M.call(f, e[s][1].type) && f[e[s][1].type].call(Object.assign({
|
|
143
|
-
sliceSerialize: e[s][2].sliceSerialize
|
|
144
|
-
}, n), e[s][1]);
|
|
145
|
-
}
|
|
146
|
-
if (n.tokenStack.length > 0) {
|
|
147
|
-
const f = n.tokenStack[n.tokenStack.length - 1];
|
|
148
|
-
(f[1] || D).call(n, void 0, f[0]);
|
|
149
|
-
}
|
|
150
|
-
for (t.position = {
|
|
151
|
-
start: x(e.length > 0 ? e[0][1].start : {
|
|
152
|
-
line: 1,
|
|
153
|
-
column: 1,
|
|
154
|
-
offset: 0
|
|
155
|
-
}),
|
|
156
|
-
end: x(e.length > 0 ? e[e.length - 2][1].end : {
|
|
157
|
-
line: 1,
|
|
158
|
-
column: 1,
|
|
159
|
-
offset: 0
|
|
160
|
-
})
|
|
161
|
-
}, s = -1; ++s < a.transforms.length; )
|
|
162
|
-
t = a.transforms[s](t) || t;
|
|
163
|
-
return t;
|
|
164
|
-
}
|
|
165
|
-
function Q(e, t, n) {
|
|
166
|
-
let i = t - 1, s = -1, f = !1, y, g, S, w;
|
|
167
|
-
for (; ++i <= n; ) {
|
|
168
|
-
const u = e[i];
|
|
169
|
-
switch (u[1].type) {
|
|
170
|
-
case "listUnordered":
|
|
171
|
-
case "listOrdered":
|
|
172
|
-
case "blockQuote": {
|
|
173
|
-
u[0] === "enter" ? s++ : s--, w = void 0;
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
case "lineEndingBlank": {
|
|
177
|
-
u[0] === "enter" && (y && !w && !s && !S && (S = i), w = void 0);
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
case "linePrefix":
|
|
181
|
-
case "listItemValue":
|
|
182
|
-
case "listItemMarker":
|
|
183
|
-
case "listItemPrefix":
|
|
184
|
-
case "listItemPrefixWhitespace":
|
|
185
|
-
break;
|
|
186
|
-
default:
|
|
187
|
-
w = void 0;
|
|
188
|
-
}
|
|
189
|
-
if (!s && u[0] === "enter" && u[1].type === "listItemPrefix" || s === -1 && u[0] === "exit" && (u[1].type === "listUnordered" || u[1].type === "listOrdered")) {
|
|
190
|
-
if (y) {
|
|
191
|
-
let b = i;
|
|
192
|
-
for (g = void 0; b--; ) {
|
|
193
|
-
const m = e[b];
|
|
194
|
-
if (m[1].type === "lineEnding" || m[1].type === "lineEndingBlank") {
|
|
195
|
-
if (m[0] === "exit") continue;
|
|
196
|
-
g && (e[g][1].type = "lineEndingBlank", f = !0), m[1].type = "lineEnding", g = b;
|
|
197
|
-
} else if (!(m[1].type === "linePrefix" || m[1].type === "blockQuotePrefix" || m[1].type === "blockQuotePrefixWhitespace" || m[1].type === "blockQuoteMarker" || m[1].type === "listItemIndent")) break;
|
|
198
|
-
}
|
|
199
|
-
S && (!g || S < g) && (y._spread = !0), y.end = Object.assign({}, g ? e[g][1].start : u[1].end), e.splice(g || i, 0, ["exit", y, u[2]]), i++, n++;
|
|
200
|
-
}
|
|
201
|
-
if (u[1].type === "listItemPrefix") {
|
|
202
|
-
const b = {
|
|
203
|
-
type: "listItem",
|
|
204
|
-
_spread: !1,
|
|
205
|
-
start: Object.assign({}, u[1].start),
|
|
206
|
-
// @ts-expect-error: we’ll add `end` in a second.
|
|
207
|
-
end: void 0
|
|
208
|
-
};
|
|
209
|
-
y = b, e.splice(i, 0, ["enter", b, u[2]]), i++, n++, S = void 0, w = !0;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
return e[t][1]._spread = f, n;
|
|
214
|
-
}
|
|
215
|
-
function r(e, t) {
|
|
216
|
-
return n;
|
|
217
|
-
function n(i) {
|
|
218
|
-
E.call(this, e(i), i), t && t.call(this, i);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
function h() {
|
|
222
|
-
this.stack.push({
|
|
223
|
-
type: "fragment",
|
|
224
|
-
children: []
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
function E(e, t, n) {
|
|
228
|
-
this.stack[this.stack.length - 1].children.push(e), this.stack.push(e), this.tokenStack.push([t, n || void 0]), e.position = {
|
|
229
|
-
start: x(t.start),
|
|
230
|
-
// @ts-expect-error: `end` will be patched later.
|
|
231
|
-
end: void 0
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
function c(e) {
|
|
235
|
-
return t;
|
|
236
|
-
function t(n) {
|
|
237
|
-
e && e.call(this, n), F.call(this, n);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
function F(e, t) {
|
|
241
|
-
const n = this.stack.pop(), i = this.tokenStack.pop();
|
|
242
|
-
if (i)
|
|
243
|
-
i[0].type !== e.type && (t ? t.call(this, e, i[0]) : (i[1] || D).call(this, e, i[0]));
|
|
244
|
-
else throw new Error("Cannot close `" + e.type + "` (" + I({
|
|
245
|
-
start: e.start,
|
|
246
|
-
end: e.end
|
|
247
|
-
}) + "): it’s not open");
|
|
248
|
-
n.position.end = x(e.end);
|
|
249
|
-
}
|
|
250
|
-
function q() {
|
|
251
|
-
return Pe(this.stack.pop());
|
|
252
|
-
}
|
|
253
|
-
function N() {
|
|
254
|
-
this.data.expectingFirstListItemValue = !0;
|
|
255
|
-
}
|
|
256
|
-
function U(e) {
|
|
257
|
-
if (this.data.expectingFirstListItemValue) {
|
|
258
|
-
const t = this.stack[this.stack.length - 2];
|
|
259
|
-
t.start = Number.parseInt(this.sliceSerialize(e), 10), this.data.expectingFirstListItemValue = void 0;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
function _() {
|
|
263
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
264
|
-
t.lang = e;
|
|
265
|
-
}
|
|
266
|
-
function j() {
|
|
267
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
268
|
-
t.meta = e;
|
|
269
|
-
}
|
|
270
|
-
function A() {
|
|
271
|
-
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
272
|
-
}
|
|
273
|
-
function W() {
|
|
274
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
275
|
-
t.value = e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
276
|
-
}
|
|
277
|
-
function $() {
|
|
278
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
279
|
-
t.value = e.replace(/(\r?\n|\r)$/g, "");
|
|
280
|
-
}
|
|
281
|
-
function G(e) {
|
|
282
|
-
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
283
|
-
n.label = t, n.identifier = T(this.sliceSerialize(e)).toLowerCase();
|
|
284
|
-
}
|
|
285
|
-
function J() {
|
|
286
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
287
|
-
t.title = e;
|
|
288
|
-
}
|
|
289
|
-
function K() {
|
|
290
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
291
|
-
t.url = e;
|
|
292
|
-
}
|
|
293
|
-
function X(e) {
|
|
294
|
-
const t = this.stack[this.stack.length - 1];
|
|
295
|
-
if (!t.depth) {
|
|
296
|
-
const n = this.sliceSerialize(e).length;
|
|
297
|
-
t.depth = n;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
function Y() {
|
|
301
|
-
this.data.setextHeadingSlurpLineEnding = !0;
|
|
302
|
-
}
|
|
303
|
-
function Z(e) {
|
|
304
|
-
const t = this.stack[this.stack.length - 1];
|
|
305
|
-
t.depth = this.sliceSerialize(e).codePointAt(0) === 61 ? 1 : 2;
|
|
306
|
-
}
|
|
307
|
-
function v() {
|
|
308
|
-
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
309
|
-
}
|
|
310
|
-
function p(e) {
|
|
311
|
-
const n = this.stack[this.stack.length - 1].children;
|
|
312
|
-
let i = n[n.length - 1];
|
|
313
|
-
(!i || i.type !== "text") && (i = Ee(), i.position = {
|
|
314
|
-
start: x(e.start),
|
|
315
|
-
// @ts-expect-error: we’ll add `end` later.
|
|
316
|
-
end: void 0
|
|
317
|
-
}, n.push(i)), this.stack.push(i);
|
|
318
|
-
}
|
|
319
|
-
function k(e) {
|
|
320
|
-
const t = this.stack.pop();
|
|
321
|
-
t.value += this.sliceSerialize(e), t.position.end = x(e.end);
|
|
322
|
-
}
|
|
323
|
-
function ee(e) {
|
|
324
|
-
const t = this.stack[this.stack.length - 1];
|
|
325
|
-
if (this.data.atHardBreak) {
|
|
326
|
-
const n = t.children[t.children.length - 1];
|
|
327
|
-
n.position.end = x(e.end), this.data.atHardBreak = void 0;
|
|
328
|
-
return;
|
|
329
|
-
}
|
|
330
|
-
!this.data.setextHeadingSlurpLineEnding && a.canContainEols.includes(t.type) && (p.call(this, e), k.call(this, e));
|
|
331
|
-
}
|
|
332
|
-
function B() {
|
|
333
|
-
this.data.atHardBreak = !0;
|
|
334
|
-
}
|
|
335
|
-
function te() {
|
|
336
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
337
|
-
t.value = e;
|
|
338
|
-
}
|
|
339
|
-
function ne() {
|
|
340
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
341
|
-
t.value = e;
|
|
342
|
-
}
|
|
343
|
-
function ie() {
|
|
344
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
345
|
-
t.value = e;
|
|
346
|
-
}
|
|
347
|
-
function ae() {
|
|
348
|
-
const e = this.stack[this.stack.length - 1];
|
|
349
|
-
if (this.data.inReference) {
|
|
350
|
-
const t = this.data.referenceType || "shortcut";
|
|
351
|
-
e.type += "Reference", e.referenceType = t, delete e.url, delete e.title;
|
|
352
|
-
} else
|
|
353
|
-
delete e.identifier, delete e.label;
|
|
354
|
-
this.data.referenceType = void 0;
|
|
355
|
-
}
|
|
356
|
-
function se() {
|
|
357
|
-
const e = this.stack[this.stack.length - 1];
|
|
358
|
-
if (this.data.inReference) {
|
|
359
|
-
const t = this.data.referenceType || "shortcut";
|
|
360
|
-
e.type += "Reference", e.referenceType = t, delete e.url, delete e.title;
|
|
361
|
-
} else
|
|
362
|
-
delete e.identifier, delete e.label;
|
|
363
|
-
this.data.referenceType = void 0;
|
|
364
|
-
}
|
|
365
|
-
function re(e) {
|
|
366
|
-
const t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
|
|
367
|
-
n.label = Re(t), n.identifier = T(t).toLowerCase();
|
|
368
|
-
}
|
|
369
|
-
function ce() {
|
|
370
|
-
const e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
371
|
-
if (this.data.inReference = !0, n.type === "link") {
|
|
372
|
-
const i = e.children;
|
|
373
|
-
n.children = i;
|
|
374
|
-
} else
|
|
375
|
-
n.alt = t;
|
|
376
|
-
}
|
|
377
|
-
function oe() {
|
|
378
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
379
|
-
t.url = e;
|
|
380
|
-
}
|
|
381
|
-
function le() {
|
|
382
|
-
const e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
383
|
-
t.title = e;
|
|
384
|
-
}
|
|
385
|
-
function de() {
|
|
386
|
-
this.data.inReference = void 0;
|
|
387
|
-
}
|
|
388
|
-
function he() {
|
|
389
|
-
this.data.referenceType = "collapsed";
|
|
390
|
-
}
|
|
391
|
-
function ue(e) {
|
|
392
|
-
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
393
|
-
n.label = t, n.identifier = T(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
|
|
394
|
-
}
|
|
395
|
-
function R(e) {
|
|
396
|
-
this.data.characterReferenceType = e.type;
|
|
397
|
-
}
|
|
398
|
-
function fe(e) {
|
|
399
|
-
const t = this.sliceSerialize(e), n = this.data.characterReferenceType;
|
|
400
|
-
let i;
|
|
401
|
-
n ? (i = Be(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : i = Ce(t);
|
|
402
|
-
const s = this.stack[this.stack.length - 1];
|
|
403
|
-
s.value += i;
|
|
404
|
-
}
|
|
405
|
-
function pe(e) {
|
|
406
|
-
const t = this.stack.pop();
|
|
407
|
-
t.position.end = x(e.end);
|
|
408
|
-
}
|
|
409
|
-
function ke(e) {
|
|
410
|
-
k.call(this, e);
|
|
411
|
-
const t = this.stack[this.stack.length - 1];
|
|
412
|
-
t.url = this.sliceSerialize(e);
|
|
413
|
-
}
|
|
414
|
-
function ge(e) {
|
|
415
|
-
k.call(this, e);
|
|
416
|
-
const t = this.stack[this.stack.length - 1];
|
|
417
|
-
t.url = "mailto:" + this.sliceSerialize(e);
|
|
418
|
-
}
|
|
419
|
-
function me() {
|
|
420
|
-
return {
|
|
421
|
-
type: "blockquote",
|
|
422
|
-
children: []
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
|
-
function C() {
|
|
426
|
-
return {
|
|
427
|
-
type: "code",
|
|
428
|
-
lang: null,
|
|
429
|
-
meta: null,
|
|
430
|
-
value: ""
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
function xe() {
|
|
434
|
-
return {
|
|
435
|
-
type: "inlineCode",
|
|
436
|
-
value: ""
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
function ye() {
|
|
440
|
-
return {
|
|
441
|
-
type: "definition",
|
|
442
|
-
identifier: "",
|
|
443
|
-
label: null,
|
|
444
|
-
title: null,
|
|
445
|
-
url: ""
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
function be() {
|
|
449
|
-
return {
|
|
450
|
-
type: "emphasis",
|
|
451
|
-
children: []
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
function H() {
|
|
455
|
-
return {
|
|
456
|
-
type: "heading",
|
|
457
|
-
// @ts-expect-error `depth` will be set later.
|
|
458
|
-
depth: 0,
|
|
459
|
-
children: []
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
function L() {
|
|
463
|
-
return {
|
|
464
|
-
type: "break"
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
function z() {
|
|
468
|
-
return {
|
|
469
|
-
type: "html",
|
|
470
|
-
value: ""
|
|
471
|
-
};
|
|
472
|
-
}
|
|
473
|
-
function Se() {
|
|
474
|
-
return {
|
|
475
|
-
type: "image",
|
|
476
|
-
title: null,
|
|
477
|
-
url: "",
|
|
478
|
-
alt: null
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
function P() {
|
|
482
|
-
return {
|
|
483
|
-
type: "link",
|
|
484
|
-
title: null,
|
|
485
|
-
url: "",
|
|
486
|
-
children: []
|
|
487
|
-
};
|
|
488
|
-
}
|
|
489
|
-
function O(e) {
|
|
490
|
-
return {
|
|
491
|
-
type: "list",
|
|
492
|
-
ordered: e.type === "listOrdered",
|
|
493
|
-
start: null,
|
|
494
|
-
spread: e._spread,
|
|
495
|
-
children: []
|
|
496
|
-
};
|
|
497
|
-
}
|
|
498
|
-
function we(e) {
|
|
499
|
-
return {
|
|
500
|
-
type: "listItem",
|
|
501
|
-
spread: e._spread,
|
|
502
|
-
checked: null,
|
|
503
|
-
children: []
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
function Ie() {
|
|
507
|
-
return {
|
|
508
|
-
type: "paragraph",
|
|
509
|
-
children: []
|
|
510
|
-
};
|
|
511
|
-
}
|
|
512
|
-
function Te() {
|
|
513
|
-
return {
|
|
514
|
-
type: "strong",
|
|
515
|
-
children: []
|
|
516
|
-
};
|
|
517
|
-
}
|
|
518
|
-
function Ee() {
|
|
519
|
-
return {
|
|
520
|
-
type: "text",
|
|
521
|
-
value: ""
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
|
-
function Fe() {
|
|
525
|
-
return {
|
|
526
|
-
type: "thematicBreak"
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
function x(o) {
|
|
531
|
-
return {
|
|
532
|
-
line: o.line,
|
|
533
|
-
column: o.column,
|
|
534
|
-
offset: o.offset
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
function V(o, a) {
|
|
538
|
-
let l = -1;
|
|
539
|
-
for (; ++l < a.length; ) {
|
|
540
|
-
const d = a[l];
|
|
541
|
-
Array.isArray(d) ? V(o, d) : De(o, d);
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
function De(o, a) {
|
|
545
|
-
let l;
|
|
546
|
-
for (l in a)
|
|
547
|
-
if (M.call(a, l))
|
|
548
|
-
switch (l) {
|
|
549
|
-
case "canContainEols": {
|
|
550
|
-
const d = a[l];
|
|
551
|
-
d && o[l].push(...d);
|
|
552
|
-
break;
|
|
553
|
-
}
|
|
554
|
-
case "transforms": {
|
|
555
|
-
const d = a[l];
|
|
556
|
-
d && o[l].push(...d);
|
|
557
|
-
break;
|
|
558
|
-
}
|
|
559
|
-
case "enter":
|
|
560
|
-
case "exit": {
|
|
561
|
-
const d = a[l];
|
|
562
|
-
d && Object.assign(o[l], d);
|
|
563
|
-
break;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
function D(o, a) {
|
|
568
|
-
throw o ? new Error("Cannot close `" + o.type + "` (" + I({
|
|
569
|
-
start: o.start,
|
|
570
|
-
end: o.end
|
|
571
|
-
}) + "): a different token (`" + a.type + "`, " + I({
|
|
572
|
-
start: a.start,
|
|
573
|
-
end: a.end
|
|
574
|
-
}) + ") is open") : new Error("Cannot close document, a token (`" + a.type + "`, " + I({
|
|
575
|
-
start: a.start,
|
|
576
|
-
end: a.end
|
|
577
|
-
}) + ") is still open");
|
|
578
|
-
}
|
|
579
|
-
export {
|
|
580
|
-
We as fromMarkdown
|
|
581
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import x from "../../@ungap/structured-clone/esm/index.js";
|
|
2
|
-
import { normalizeUri as N } from "../../micromark-util-sanitize-uri/index.js";
|
|
3
|
-
function L(e, o) {
|
|
4
|
-
const r = [{ type: "text", value: "↩" }];
|
|
5
|
-
return o > 1 && r.push({
|
|
6
|
-
type: "element",
|
|
7
|
-
tagName: "sup",
|
|
8
|
-
properties: {},
|
|
9
|
-
children: [{ type: "text", value: String(o) }]
|
|
10
|
-
}), r;
|
|
11
|
-
}
|
|
12
|
-
function k(e, o) {
|
|
13
|
-
return "Back to reference " + (e + 1) + (o > 1 ? "-" + o : "");
|
|
14
|
-
}
|
|
15
|
-
function C(e) {
|
|
16
|
-
const o = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = e.options.footnoteBackContent || L, s = e.options.footnoteBackLabel || k, y = e.options.footnoteLabel || "Footnotes", g = e.options.footnoteLabelTagName || "h2", b = e.options.footnoteLabelProperties || {
|
|
17
|
-
className: ["sr-only"]
|
|
18
|
-
}, f = [];
|
|
19
|
-
let a = -1;
|
|
20
|
-
for (; ++a < e.footnoteOrder.length; ) {
|
|
21
|
-
const p = e.footnoteById.get(
|
|
22
|
-
e.footnoteOrder[a]
|
|
23
|
-
);
|
|
24
|
-
if (!p)
|
|
25
|
-
continue;
|
|
26
|
-
const c = e.all(p), u = String(p.identifier).toUpperCase(), d = N(u.toLowerCase());
|
|
27
|
-
let l = 0;
|
|
28
|
-
const i = [], h = e.footnoteCounts.get(u);
|
|
29
|
-
for (; h !== void 0 && ++l <= h; ) {
|
|
30
|
-
i.length > 0 && i.push({ type: "text", value: " " });
|
|
31
|
-
let t = typeof r == "string" ? r : r(a, l);
|
|
32
|
-
typeof t == "string" && (t = { type: "text", value: t }), i.push({
|
|
33
|
-
type: "element",
|
|
34
|
-
tagName: "a",
|
|
35
|
-
properties: {
|
|
36
|
-
href: "#" + o + "fnref-" + d + (l > 1 ? "-" + l : ""),
|
|
37
|
-
dataFootnoteBackref: "",
|
|
38
|
-
ariaLabel: typeof s == "string" ? s : s(a, l),
|
|
39
|
-
className: ["data-footnote-backref"]
|
|
40
|
-
},
|
|
41
|
-
children: Array.isArray(t) ? t : [t]
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
const n = c[c.length - 1];
|
|
45
|
-
if (n && n.type === "element" && n.tagName === "p") {
|
|
46
|
-
const t = n.children[n.children.length - 1];
|
|
47
|
-
t && t.type === "text" ? t.value += " " : n.children.push({ type: "text", value: " " }), n.children.push(...i);
|
|
48
|
-
} else
|
|
49
|
-
c.push(...i);
|
|
50
|
-
const m = {
|
|
51
|
-
type: "element",
|
|
52
|
-
tagName: "li",
|
|
53
|
-
properties: { id: o + "fn-" + d },
|
|
54
|
-
children: e.wrap(c, !0)
|
|
55
|
-
};
|
|
56
|
-
e.patch(p, m), f.push(m);
|
|
57
|
-
}
|
|
58
|
-
if (f.length !== 0)
|
|
59
|
-
return {
|
|
60
|
-
type: "element",
|
|
61
|
-
tagName: "section",
|
|
62
|
-
properties: { dataFootnotes: !0, className: ["footnotes"] },
|
|
63
|
-
children: [
|
|
64
|
-
{
|
|
65
|
-
type: "element",
|
|
66
|
-
tagName: g,
|
|
67
|
-
properties: {
|
|
68
|
-
...x(b),
|
|
69
|
-
id: "footnote-label"
|
|
70
|
-
},
|
|
71
|
-
children: [{ type: "text", value: y }]
|
|
72
|
-
},
|
|
73
|
-
{ type: "text", value: `
|
|
74
|
-
` },
|
|
75
|
-
{
|
|
76
|
-
type: "element",
|
|
77
|
-
tagName: "ol",
|
|
78
|
-
properties: {},
|
|
79
|
-
children: e.wrap(f, !0)
|
|
80
|
-
},
|
|
81
|
-
{ type: "text", value: `
|
|
82
|
-
` }
|
|
83
|
-
]
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
export {
|
|
87
|
-
L as defaultFootnoteBackContent,
|
|
88
|
-
k as defaultFootnoteBackLabel,
|
|
89
|
-
C as footer
|
|
90
|
-
};
|