hasting-swatchcart-module 0.0.2 → 0.0.3
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/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +1 -0
- package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +1 -0
- package/dist/assets/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
- package/dist/components/SwatchesModule.js +22 -38896
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +251 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +68 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +256 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +231 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +8 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +877 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +35 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +497 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +62 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +106 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/bail/index.js +7 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/comma-separated-tokens/index.js +20 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +14 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +43 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +145 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +20 -0
- package/dist/node_modules/hast-util-raw/lib/index.js +217 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +118 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +368 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +22 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +27 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +23 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +11 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +17 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/hastscript/lib/create-h.js +112 -0
- package/dist/node_modules/hastscript/lib/index.js +8 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +44 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/html-void-elements/index.js +25 -0
- package/dist/node_modules/immer/dist/immer.js +467 -0
- package/dist/node_modules/inline-style-parser/index.js +93 -0
- package/dist/node_modules/is-plain-obj/index.js +9 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +40 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +27 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +19 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +581 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +223 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +126 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +95 -0
- package/dist/node_modules/micromark/lib/parse.js +32 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.js +39 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +83 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +94 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +46 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +144 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +152 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +22 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +19 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +57 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/node_modules/micromark-factory-space/index.js +15 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +39 -0
- package/dist/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/node_modules/parse5/dist/common/doctype.js +98 -0
- package/dist/node_modules/parse5/dist/common/error-codes.js +7 -0
- package/dist/node_modules/parse5/dist/common/foreign-content.js +210 -0
- package/dist/node_modules/parse5/dist/common/html.js +250 -0
- package/dist/node_modules/parse5/dist/common/token.js +14 -0
- package/dist/node_modules/parse5/dist/common/unicode.js +73 -0
- package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +84 -0
- package/dist/node_modules/parse5/dist/parser/index.js +2271 -0
- package/dist/node_modules/parse5/dist/parser/open-element-stack.js +240 -0
- package/dist/node_modules/parse5/dist/serializer/index.js +2 -0
- package/dist/node_modules/parse5/dist/tokenizer/index.js +1940 -0
- package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +88 -0
- package/dist/node_modules/parse5/dist/tree-adapters/default.js +162 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +38 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +245 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +368 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +135 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/redux/dist/redux.js +258 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
- package/dist/node_modules/rehype-raw/lib/index.js +12 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/reselect/dist/reselect.js +244 -0
- package/dist/node_modules/space-separated-tokens/index.js +11 -0
- package/dist/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2731 -0
- package/dist/node_modules/trim-lines/index.js +28 -0
- package/dist/node_modules/trough/lib/index.js +60 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/node_modules/unified/lib/index.js +529 -0
- package/dist/node_modules/unist-util-is/lib/index.js +84 -0
- package/dist/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/node_modules/vfile/lib/index.js +406 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/node_modules/vfile-location/lib/index.js +42 -0
- package/dist/node_modules/vfile-message/lib/index.js +91 -0
- package/dist/node_modules/web-namespaces/index.js +11 -0
- package/dist/node_modules/zwitch/index.js +18 -0
- package/dist/src/app/assets/images/product_thumb.png.js +4 -0
- package/dist/src/app/assets/svg/ArrowIconSVG.js +25 -0
- package/dist/src/app/assets/svg/CheckMarkIconSVG.js +25 -0
- package/dist/src/app/assets/svg/CloseIconSVG.js +25 -0
- package/dist/src/app/assets/svg/MinusIconSVG.js +24 -0
- package/dist/src/app/assets/svg/PlusIconSVG.js +24 -0
- package/dist/src/app/assets/svg/SearchIconSVG.js +37 -0
- package/dist/src/app/assets/svg/TrashIconSVG.js +24 -0
- package/dist/src/app/store/rootReducer.js +12 -0
- package/dist/src/app/store/store.js +14 -0
- package/dist/src/features/Cart/lib/CartCervices.js +8 -0
- package/dist/src/features/Cart/model/cartSlice.js +58 -0
- package/dist/src/features/Cart/model/selectors.js +18 -0
- package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +53 -0
- package/dist/src/features/Cart/ui/CartList/CartList.js +29 -0
- package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +41 -0
- package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +23 -0
- package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +38 -0
- package/dist/src/features/Cart/ui/Counter/Counter.js +46 -0
- package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +102 -0
- package/dist/src/features/DataAdapter/utils/types.js +8 -0
- package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +34 -0
- package/dist/src/features/MultiProduct/model/API/api.js +18 -0
- package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +83 -0
- package/dist/src/features/MultiProduct/model/selectors.js +7 -0
- package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +21 -0
- package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +28 -0
- package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +27 -0
- package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +60 -0
- package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +71 -0
- package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +19 -0
- package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +138 -0
- package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +51 -0
- package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +55 -0
- package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +46 -0
- package/dist/src/features/MultiProduct/utils/constants.js +16 -0
- package/dist/src/features/MultiProduct/utils/randomList.js +41 -0
- package/dist/src/features/swatches/lib/AttributeHelper.js +21 -0
- package/dist/src/features/swatches/lib/SwatchesServices.js +54 -0
- package/dist/src/features/swatches/model/selectors.js +12 -0
- package/dist/src/features/swatches/model/swatchesSlice.js +108 -0
- package/dist/src/features/swatches/model/thunks.js +22 -0
- package/dist/src/features/swatches/model/types.js +6 -0
- package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +45 -0
- package/dist/src/features/swatches/ui/Filters/LooksFilter.js +45 -0
- package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +47 -0
- package/dist/src/features/swatches/ui/Filters/index.js +12 -0
- package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +50 -0
- package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +45 -0
- package/dist/src/features/swatches/ui/MaterialList/index.js +39 -0
- package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +51 -0
- package/dist/src/features/swatches/ui/ProductElement/index.js +65 -0
- package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +62 -0
- package/dist/src/features/swatches/ui/Swatches.js +51 -0
- package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +67 -0
- package/dist/src/features/swatches/utils/constants.js +8 -0
- package/dist/src/shared/constants/props.js +13337 -0
- package/dist/src/shared/constants/selectedMaterials.js +4 -0
- package/dist/src/shared/types/activeTab.js +7 -0
- package/dist/src/shared/ui/Checkbox/Checkbox.js +31 -0
- package/dist/src/shared/ui/CustomButton/CustomButton.js +16 -0
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +59 -0
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +13 -0
- package/dist/src/shared/ui/Dialog/Dialog.js +81 -0
- package/dist/src/shared/ui/Label/Label.js +27 -0
- package/dist/src/shared/ui/Markdown/MDWithAccordion.js +36 -0
- package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +9 -0
- package/dist/src/shared/ui/MaterialItem/MaterialItem.js +36 -0
- package/dist/src/shared/ui/MultiSelect/MultiSelect.js +150 -0
- package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +35 -0
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +37 -0
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +4 -0
- package/dist/src/shared/ui/Slider/Slider.js +117 -0
- package/dist/src/shared/utils/cn.js +8 -0
- package/dist/src/shared/utils/uniqueList.js +4 -0
- package/package.json +12 -2
- package/dist/assets/SwatchesModule.css +0 -1
- /package/dist/{lib/components → components}/SwatchesModule.d.ts +0 -0
- /package/dist/{lib/main.d.ts → main.d.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,581 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
};
|