hasting-swatchcart-module 0.0.2 → 0.0.4
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 +23 -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 +246 -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/providers/StoreProvider.js +7 -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,102 @@
|
|
|
1
|
+
import { factorySpace as R } from "../../micromark-factory-space/index.js";
|
|
2
|
+
import { asciiAlpha as A, markdownLineEnding as m, asciiAlphanumeric as w, markdownSpace as g, markdownLineEndingOrSpace as D } from "../../micromark-util-character/index.js";
|
|
3
|
+
const Z = {
|
|
4
|
+
name: "htmlText",
|
|
5
|
+
tokenize: W
|
|
6
|
+
};
|
|
7
|
+
function W(r, q, u) {
|
|
8
|
+
const v = this;
|
|
9
|
+
let h, O, t;
|
|
10
|
+
return y;
|
|
11
|
+
function y(n) {
|
|
12
|
+
return r.enter("htmlText"), r.enter("htmlTextData"), r.consume(n), H;
|
|
13
|
+
}
|
|
14
|
+
function H(n) {
|
|
15
|
+
return n === 33 ? (r.consume(n), U) : n === 47 ? (r.consume(n), J) : n === 63 ? (r.consume(n), s) : A(n) ? (r.consume(n), L) : u(n);
|
|
16
|
+
}
|
|
17
|
+
function U(n) {
|
|
18
|
+
return n === 45 ? (r.consume(n), j) : n === 91 ? (r.consume(n), O = 0, V) : A(n) ? (r.consume(n), e) : u(n);
|
|
19
|
+
}
|
|
20
|
+
function j(n) {
|
|
21
|
+
return n === 45 ? (r.consume(n), B) : u(n);
|
|
22
|
+
}
|
|
23
|
+
function x(n) {
|
|
24
|
+
return n === null ? u(n) : n === 45 ? (r.consume(n), S) : m(n) ? (t = x, i(n)) : (r.consume(n), x);
|
|
25
|
+
}
|
|
26
|
+
function S(n) {
|
|
27
|
+
return n === 45 ? (r.consume(n), B) : x(n);
|
|
28
|
+
}
|
|
29
|
+
function B(n) {
|
|
30
|
+
return n === 62 ? a(n) : n === 45 ? S(n) : x(n);
|
|
31
|
+
}
|
|
32
|
+
function V(n) {
|
|
33
|
+
const f = "CDATA[";
|
|
34
|
+
return n === f.charCodeAt(O++) ? (r.consume(n), O === f.length ? p : V) : u(n);
|
|
35
|
+
}
|
|
36
|
+
function p(n) {
|
|
37
|
+
return n === null ? u(n) : n === 93 ? (r.consume(n), F) : m(n) ? (t = p, i(n)) : (r.consume(n), p);
|
|
38
|
+
}
|
|
39
|
+
function F(n) {
|
|
40
|
+
return n === 93 ? (r.consume(n), I) : p(n);
|
|
41
|
+
}
|
|
42
|
+
function I(n) {
|
|
43
|
+
return n === 62 ? a(n) : n === 93 ? (r.consume(n), I) : p(n);
|
|
44
|
+
}
|
|
45
|
+
function e(n) {
|
|
46
|
+
return n === null || n === 62 ? a(n) : m(n) ? (t = e, i(n)) : (r.consume(n), e);
|
|
47
|
+
}
|
|
48
|
+
function s(n) {
|
|
49
|
+
return n === null ? u(n) : n === 63 ? (r.consume(n), G) : m(n) ? (t = s, i(n)) : (r.consume(n), s);
|
|
50
|
+
}
|
|
51
|
+
function G(n) {
|
|
52
|
+
return n === 62 ? a(n) : s(n);
|
|
53
|
+
}
|
|
54
|
+
function J(n) {
|
|
55
|
+
return A(n) ? (r.consume(n), z) : u(n);
|
|
56
|
+
}
|
|
57
|
+
function z(n) {
|
|
58
|
+
return n === 45 || w(n) ? (r.consume(n), z) : T(n);
|
|
59
|
+
}
|
|
60
|
+
function T(n) {
|
|
61
|
+
return m(n) ? (t = T, i(n)) : g(n) ? (r.consume(n), T) : a(n);
|
|
62
|
+
}
|
|
63
|
+
function L(n) {
|
|
64
|
+
return n === 45 || w(n) ? (r.consume(n), L) : n === 47 || n === 62 || D(n) ? l(n) : u(n);
|
|
65
|
+
}
|
|
66
|
+
function l(n) {
|
|
67
|
+
return n === 47 ? (r.consume(n), a) : n === 58 || n === 95 || A(n) ? (r.consume(n), N) : m(n) ? (t = l, i(n)) : g(n) ? (r.consume(n), l) : a(n);
|
|
68
|
+
}
|
|
69
|
+
function N(n) {
|
|
70
|
+
return n === 45 || n === 46 || n === 58 || n === 95 || w(n) ? (r.consume(n), N) : E(n);
|
|
71
|
+
}
|
|
72
|
+
function E(n) {
|
|
73
|
+
return n === 61 ? (r.consume(n), C) : m(n) ? (t = E, i(n)) : g(n) ? (r.consume(n), E) : l(n);
|
|
74
|
+
}
|
|
75
|
+
function C(n) {
|
|
76
|
+
return n === null || n === 60 || n === 61 || n === 62 || n === 96 ? u(n) : n === 34 || n === 39 ? (r.consume(n), h = n, b) : m(n) ? (t = C, i(n)) : g(n) ? (r.consume(n), C) : (r.consume(n), P);
|
|
77
|
+
}
|
|
78
|
+
function b(n) {
|
|
79
|
+
return n === h ? (r.consume(n), h = void 0, K) : n === null ? u(n) : m(n) ? (t = b, i(n)) : (r.consume(n), b);
|
|
80
|
+
}
|
|
81
|
+
function P(n) {
|
|
82
|
+
return n === null || n === 34 || n === 39 || n === 60 || n === 61 || n === 96 ? u(n) : n === 47 || n === 62 || D(n) ? l(n) : (r.consume(n), P);
|
|
83
|
+
}
|
|
84
|
+
function K(n) {
|
|
85
|
+
return n === 47 || n === 62 || D(n) ? l(n) : u(n);
|
|
86
|
+
}
|
|
87
|
+
function a(n) {
|
|
88
|
+
return n === 62 ? (r.consume(n), r.exit("htmlTextData"), r.exit("htmlText"), q) : u(n);
|
|
89
|
+
}
|
|
90
|
+
function i(n) {
|
|
91
|
+
return r.exit("htmlTextData"), r.enter("lineEnding"), r.consume(n), r.exit("lineEnding"), M;
|
|
92
|
+
}
|
|
93
|
+
function M(n) {
|
|
94
|
+
return g(n) ? R(r, Q, "linePrefix", v.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(n) : Q(n);
|
|
95
|
+
}
|
|
96
|
+
function Q(n) {
|
|
97
|
+
return r.enter("htmlTextData"), t(n);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export {
|
|
101
|
+
Z as htmlText
|
|
102
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { factoryDestination as d } from "../../micromark-factory-destination/index.js";
|
|
2
|
+
import { factoryLabel as h } from "../../micromark-factory-label/index.js";
|
|
3
|
+
import { factoryTitle as M } from "../../micromark-factory-title/index.js";
|
|
4
|
+
import { factoryWhitespace as k } from "../../micromark-factory-whitespace/index.js";
|
|
5
|
+
import { markdownLineEndingOrSpace as m } from "../../micromark-util-character/index.js";
|
|
6
|
+
import { push as b, splice as y } from "../../micromark-util-chunked/index.js";
|
|
7
|
+
import { normalizeIdentifier as g } from "../../micromark-util-normalize-identifier/index.js";
|
|
8
|
+
import { resolveAll as E } from "../../micromark-util-resolve-all/index.js";
|
|
9
|
+
const j = {
|
|
10
|
+
name: "labelEnd",
|
|
11
|
+
resolveAll: S,
|
|
12
|
+
resolveTo: w,
|
|
13
|
+
tokenize: D
|
|
14
|
+
}, L = {
|
|
15
|
+
tokenize: T
|
|
16
|
+
}, z = {
|
|
17
|
+
tokenize: C
|
|
18
|
+
}, x = {
|
|
19
|
+
tokenize: A
|
|
20
|
+
};
|
|
21
|
+
function S(e) {
|
|
22
|
+
let u = -1;
|
|
23
|
+
const a = [];
|
|
24
|
+
for (; ++u < e.length; ) {
|
|
25
|
+
const n = e[u][1];
|
|
26
|
+
if (a.push(e[u]), n.type === "labelImage" || n.type === "labelLink" || n.type === "labelEnd") {
|
|
27
|
+
const i = n.type === "labelImage" ? 4 : 2;
|
|
28
|
+
n.type = "data", u += i;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return e.length !== a.length && y(e, 0, e.length, a), e;
|
|
32
|
+
}
|
|
33
|
+
function w(e, u) {
|
|
34
|
+
let a = e.length, n = 0, i, t, o, l;
|
|
35
|
+
for (; a--; )
|
|
36
|
+
if (i = e[a][1], t) {
|
|
37
|
+
if (i.type === "link" || i.type === "labelLink" && i._inactive)
|
|
38
|
+
break;
|
|
39
|
+
e[a][0] === "enter" && i.type === "labelLink" && (i._inactive = !0);
|
|
40
|
+
} else if (o) {
|
|
41
|
+
if (e[a][0] === "enter" && (i.type === "labelImage" || i.type === "labelLink") && !i._balanced && (t = a, i.type !== "labelLink")) {
|
|
42
|
+
n = 2;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
} else i.type === "labelEnd" && (o = a);
|
|
46
|
+
const p = {
|
|
47
|
+
type: e[t][1].type === "labelLink" ? "link" : "image",
|
|
48
|
+
start: {
|
|
49
|
+
...e[t][1].start
|
|
50
|
+
},
|
|
51
|
+
end: {
|
|
52
|
+
...e[e.length - 1][1].end
|
|
53
|
+
}
|
|
54
|
+
}, f = {
|
|
55
|
+
type: "label",
|
|
56
|
+
start: {
|
|
57
|
+
...e[t][1].start
|
|
58
|
+
},
|
|
59
|
+
end: {
|
|
60
|
+
...e[o][1].end
|
|
61
|
+
}
|
|
62
|
+
}, c = {
|
|
63
|
+
type: "labelText",
|
|
64
|
+
start: {
|
|
65
|
+
...e[t + n + 2][1].end
|
|
66
|
+
},
|
|
67
|
+
end: {
|
|
68
|
+
...e[o - 2][1].start
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
return l = [["enter", p, u], ["enter", f, u]], l = b(l, e.slice(t + 1, t + n + 3)), l = b(l, [["enter", c, u]]), l = b(l, E(u.parser.constructs.insideSpan.null, e.slice(t + n + 4, o - 3), u)), l = b(l, [["exit", c, u], e[o - 2], e[o - 1], ["exit", f, u]]), l = b(l, e.slice(o + 1)), l = b(l, [["exit", p, u]]), y(e, t, e.length, l), e;
|
|
72
|
+
}
|
|
73
|
+
function D(e, u, a) {
|
|
74
|
+
const n = this;
|
|
75
|
+
let i = n.events.length, t, o;
|
|
76
|
+
for (; i--; )
|
|
77
|
+
if ((n.events[i][1].type === "labelImage" || n.events[i][1].type === "labelLink") && !n.events[i][1]._balanced) {
|
|
78
|
+
t = n.events[i][1];
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
return l;
|
|
82
|
+
function l(s) {
|
|
83
|
+
return t ? t._inactive ? r(s) : (o = n.parser.defined.includes(g(n.sliceSerialize({
|
|
84
|
+
start: t.end,
|
|
85
|
+
end: n.now()
|
|
86
|
+
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(s), e.exit("labelMarker"), e.exit("labelEnd"), p) : a(s);
|
|
87
|
+
}
|
|
88
|
+
function p(s) {
|
|
89
|
+
return s === 40 ? e.attempt(L, c, o ? c : r)(s) : s === 91 ? e.attempt(z, c, o ? f : r)(s) : o ? c(s) : r(s);
|
|
90
|
+
}
|
|
91
|
+
function f(s) {
|
|
92
|
+
return e.attempt(x, c, r)(s);
|
|
93
|
+
}
|
|
94
|
+
function c(s) {
|
|
95
|
+
return u(s);
|
|
96
|
+
}
|
|
97
|
+
function r(s) {
|
|
98
|
+
return t._balanced = !0, a(s);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function T(e, u, a) {
|
|
102
|
+
return n;
|
|
103
|
+
function n(r) {
|
|
104
|
+
return e.enter("resource"), e.enter("resourceMarker"), e.consume(r), e.exit("resourceMarker"), i;
|
|
105
|
+
}
|
|
106
|
+
function i(r) {
|
|
107
|
+
return m(r) ? k(e, t)(r) : t(r);
|
|
108
|
+
}
|
|
109
|
+
function t(r) {
|
|
110
|
+
return r === 41 ? c(r) : d(e, o, l, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(r);
|
|
111
|
+
}
|
|
112
|
+
function o(r) {
|
|
113
|
+
return m(r) ? k(e, p)(r) : c(r);
|
|
114
|
+
}
|
|
115
|
+
function l(r) {
|
|
116
|
+
return a(r);
|
|
117
|
+
}
|
|
118
|
+
function p(r) {
|
|
119
|
+
return r === 34 || r === 39 || r === 40 ? M(e, f, a, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(r) : c(r);
|
|
120
|
+
}
|
|
121
|
+
function f(r) {
|
|
122
|
+
return m(r) ? k(e, c)(r) : c(r);
|
|
123
|
+
}
|
|
124
|
+
function c(r) {
|
|
125
|
+
return r === 41 ? (e.enter("resourceMarker"), e.consume(r), e.exit("resourceMarker"), e.exit("resource"), u) : a(r);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function C(e, u, a) {
|
|
129
|
+
const n = this;
|
|
130
|
+
return i;
|
|
131
|
+
function i(l) {
|
|
132
|
+
return h.call(n, e, t, o, "reference", "referenceMarker", "referenceString")(l);
|
|
133
|
+
}
|
|
134
|
+
function t(l) {
|
|
135
|
+
return n.parser.defined.includes(g(n.sliceSerialize(n.events[n.events.length - 1][1]).slice(1, -1))) ? u(l) : a(l);
|
|
136
|
+
}
|
|
137
|
+
function o(l) {
|
|
138
|
+
return a(l);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function A(e, u, a) {
|
|
142
|
+
return n;
|
|
143
|
+
function n(t) {
|
|
144
|
+
return e.enter("reference"), e.enter("referenceMarker"), e.consume(t), e.exit("referenceMarker"), i;
|
|
145
|
+
}
|
|
146
|
+
function i(t) {
|
|
147
|
+
return t === 93 ? (e.enter("referenceMarker"), e.consume(t), e.exit("referenceMarker"), e.exit("reference"), u) : a(t);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
export {
|
|
151
|
+
j as labelEnd
|
|
152
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { labelEnd as u } from "./label-end.js";
|
|
2
|
+
const g = {
|
|
3
|
+
name: "labelStartImage",
|
|
4
|
+
resolveAll: u.resolveAll,
|
|
5
|
+
tokenize: m
|
|
6
|
+
};
|
|
7
|
+
function m(r, a, t) {
|
|
8
|
+
const n = this;
|
|
9
|
+
return l;
|
|
10
|
+
function l(e) {
|
|
11
|
+
return r.enter("labelImage"), r.enter("labelImageMarker"), r.consume(e), r.exit("labelImageMarker"), o;
|
|
12
|
+
}
|
|
13
|
+
function o(e) {
|
|
14
|
+
return e === 91 ? (r.enter("labelMarker"), r.consume(e), r.exit("labelMarker"), r.exit("labelImage"), i) : t(e);
|
|
15
|
+
}
|
|
16
|
+
function i(e) {
|
|
17
|
+
return e === 94 && "_hiddenFootnoteSupport" in n.parser.constructs ? t(e) : a(e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
g as labelStartImage
|
|
22
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { labelEnd as o } from "./label-end.js";
|
|
2
|
+
const b = {
|
|
3
|
+
name: "labelStartLink",
|
|
4
|
+
resolveAll: o.resolveAll,
|
|
5
|
+
tokenize: k
|
|
6
|
+
};
|
|
7
|
+
function k(n, r, e) {
|
|
8
|
+
const l = this;
|
|
9
|
+
return a;
|
|
10
|
+
function a(t) {
|
|
11
|
+
return n.enter("labelLink"), n.enter("labelMarker"), n.consume(t), n.exit("labelMarker"), n.exit("labelLink"), i;
|
|
12
|
+
}
|
|
13
|
+
function i(t) {
|
|
14
|
+
return t === 94 && "_hiddenFootnoteSupport" in l.parser.constructs ? e(t) : r(t);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
b as labelStartLink
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { factorySpace as t } from "../../micromark-factory-space/index.js";
|
|
2
|
+
const g = {
|
|
3
|
+
name: "lineEnding",
|
|
4
|
+
tokenize: o
|
|
5
|
+
};
|
|
6
|
+
function o(n, i) {
|
|
7
|
+
return e;
|
|
8
|
+
function e(r) {
|
|
9
|
+
return n.enter("lineEnding"), n.consume(r), n.exit("lineEnding"), t(n, i, "linePrefix");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
g as lineEnding
|
|
14
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { factorySpace as c } from "../../micromark-factory-space/index.js";
|
|
2
|
+
import { asciiDigit as h, markdownSpace as k } from "../../micromark-util-character/index.js";
|
|
3
|
+
import { blankLine as f } from "./blank-line.js";
|
|
4
|
+
import { thematicBreak as d } from "./thematic-break.js";
|
|
5
|
+
const z = {
|
|
6
|
+
continuation: {
|
|
7
|
+
tokenize: y
|
|
8
|
+
},
|
|
9
|
+
exit: v,
|
|
10
|
+
name: "list",
|
|
11
|
+
tokenize: B
|
|
12
|
+
}, P = {
|
|
13
|
+
partial: !0,
|
|
14
|
+
tokenize: W
|
|
15
|
+
}, L = {
|
|
16
|
+
partial: !0,
|
|
17
|
+
tokenize: g
|
|
18
|
+
};
|
|
19
|
+
function B(n, u, r) {
|
|
20
|
+
const t = this, l = t.events[t.events.length - 1];
|
|
21
|
+
let a = l && l[1].type === "linePrefix" ? l[2].sliceSerialize(l[1], !0).length : 0, i = 0;
|
|
22
|
+
return s;
|
|
23
|
+
function s(e) {
|
|
24
|
+
const o = t.containerState.type || (e === 42 || e === 43 || e === 45 ? "listUnordered" : "listOrdered");
|
|
25
|
+
if (o === "listUnordered" ? !t.containerState.marker || e === t.containerState.marker : h(e)) {
|
|
26
|
+
if (t.containerState.type || (t.containerState.type = o, n.enter(o, {
|
|
27
|
+
_container: !0
|
|
28
|
+
})), o === "listUnordered")
|
|
29
|
+
return n.enter("listItemPrefix"), e === 42 || e === 45 ? n.check(d, r, m)(e) : m(e);
|
|
30
|
+
if (!t.interrupt || e === 49)
|
|
31
|
+
return n.enter("listItemPrefix"), n.enter("listItemValue"), p(e);
|
|
32
|
+
}
|
|
33
|
+
return r(e);
|
|
34
|
+
}
|
|
35
|
+
function p(e) {
|
|
36
|
+
return h(e) && ++i < 10 ? (n.consume(e), p) : (!t.interrupt || i < 2) && (t.containerState.marker ? e === t.containerState.marker : e === 41 || e === 46) ? (n.exit("listItemValue"), m(e)) : r(e);
|
|
37
|
+
}
|
|
38
|
+
function m(e) {
|
|
39
|
+
return n.enter("listItemMarker"), n.consume(e), n.exit("listItemMarker"), t.containerState.marker = t.containerState.marker || e, n.check(
|
|
40
|
+
f,
|
|
41
|
+
// Can’t be empty when interrupting.
|
|
42
|
+
t.interrupt ? r : I,
|
|
43
|
+
n.attempt(P, S, x)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function I(e) {
|
|
47
|
+
return t.containerState.initialBlankLine = !0, a++, S(e);
|
|
48
|
+
}
|
|
49
|
+
function x(e) {
|
|
50
|
+
return k(e) ? (n.enter("listItemPrefixWhitespace"), n.consume(e), n.exit("listItemPrefixWhitespace"), S) : r(e);
|
|
51
|
+
}
|
|
52
|
+
function S(e) {
|
|
53
|
+
return t.containerState.size = a + t.sliceSerialize(n.exit("listItemPrefix"), !0).length, u(e);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function y(n, u, r) {
|
|
57
|
+
const t = this;
|
|
58
|
+
return t.containerState._closeFlow = void 0, n.check(f, l, a);
|
|
59
|
+
function l(s) {
|
|
60
|
+
return t.containerState.furtherBlankLines = t.containerState.furtherBlankLines || t.containerState.initialBlankLine, c(n, u, "listItemIndent", t.containerState.size + 1)(s);
|
|
61
|
+
}
|
|
62
|
+
function a(s) {
|
|
63
|
+
return t.containerState.furtherBlankLines || !k(s) ? (t.containerState.furtherBlankLines = void 0, t.containerState.initialBlankLine = void 0, i(s)) : (t.containerState.furtherBlankLines = void 0, t.containerState.initialBlankLine = void 0, n.attempt(L, u, i)(s));
|
|
64
|
+
}
|
|
65
|
+
function i(s) {
|
|
66
|
+
return t.containerState._closeFlow = !0, t.interrupt = void 0, c(n, n.attempt(z, u, r), "linePrefix", t.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function g(n, u, r) {
|
|
70
|
+
const t = this;
|
|
71
|
+
return c(n, l, "listItemIndent", t.containerState.size + 1);
|
|
72
|
+
function l(a) {
|
|
73
|
+
const i = t.events[t.events.length - 1];
|
|
74
|
+
return i && i[1].type === "listItemIndent" && i[2].sliceSerialize(i[1], !0).length === t.containerState.size ? u(a) : r(a);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function v(n) {
|
|
78
|
+
n.exit(this.containerState.type);
|
|
79
|
+
}
|
|
80
|
+
function W(n, u, r) {
|
|
81
|
+
const t = this;
|
|
82
|
+
return c(n, l, "listItemPrefixWhitespace", t.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
83
|
+
function l(a) {
|
|
84
|
+
const i = t.events[t.events.length - 1];
|
|
85
|
+
return !k(a) && i && i[1].type === "listItemPrefixWhitespace" ? u(a) : r(a);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
z as list
|
|
90
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { factorySpace as d } from "../../micromark-factory-space/index.js";
|
|
2
|
+
import { markdownSpace as g, markdownLineEnding as y } from "../../micromark-util-character/index.js";
|
|
3
|
+
const c = {
|
|
4
|
+
name: "setextUnderline",
|
|
5
|
+
resolveTo: h,
|
|
6
|
+
tokenize: m
|
|
7
|
+
};
|
|
8
|
+
function h(e, l) {
|
|
9
|
+
let i = e.length, t, a, r;
|
|
10
|
+
for (; i--; )
|
|
11
|
+
if (e[i][0] === "enter") {
|
|
12
|
+
if (e[i][1].type === "content") {
|
|
13
|
+
t = i;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
e[i][1].type === "paragraph" && (a = i);
|
|
17
|
+
} else
|
|
18
|
+
e[i][1].type === "content" && e.splice(i, 1), !r && e[i][1].type === "definition" && (r = i);
|
|
19
|
+
const p = {
|
|
20
|
+
type: "setextHeading",
|
|
21
|
+
start: {
|
|
22
|
+
...e[t][1].start
|
|
23
|
+
},
|
|
24
|
+
end: {
|
|
25
|
+
...e[e.length - 1][1].end
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return e[a][1].type = "setextHeadingText", r ? (e.splice(a, 0, ["enter", p, l]), e.splice(r + 1, 0, ["exit", e[t][1], l]), e[t][1].end = {
|
|
29
|
+
...e[r][1].end
|
|
30
|
+
}) : e[t][1] = p, e.push(["exit", p, l]), e;
|
|
31
|
+
}
|
|
32
|
+
function m(e, l, i) {
|
|
33
|
+
const t = this;
|
|
34
|
+
let a;
|
|
35
|
+
return r;
|
|
36
|
+
function r(n) {
|
|
37
|
+
let u = t.events.length, f;
|
|
38
|
+
for (; u--; )
|
|
39
|
+
if (t.events[u][1].type !== "lineEnding" && t.events[u][1].type !== "linePrefix" && t.events[u][1].type !== "content") {
|
|
40
|
+
f = t.events[u][1].type === "paragraph";
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
return !t.parser.lazy[t.now().line] && (t.interrupt || f) ? (e.enter("setextHeadingLine"), a = n, p(n)) : i(n);
|
|
44
|
+
}
|
|
45
|
+
function p(n) {
|
|
46
|
+
return e.enter("setextHeadingLineSequence"), o(n);
|
|
47
|
+
}
|
|
48
|
+
function o(n) {
|
|
49
|
+
return n === a ? (e.consume(n), o) : (e.exit("setextHeadingLineSequence"), g(n) ? d(e, x, "lineSuffix")(n) : x(n));
|
|
50
|
+
}
|
|
51
|
+
function x(n) {
|
|
52
|
+
return n === null || y(n) ? (e.exit("setextHeadingLine"), l(n)) : i(n);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
c as setextUnderline
|
|
57
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { factorySpace as o } from "../../micromark-factory-space/index.js";
|
|
2
|
+
import { markdownSpace as B, markdownLineEnding as c } from "../../micromark-util-character/index.js";
|
|
3
|
+
const q = {
|
|
4
|
+
name: "thematicBreak",
|
|
5
|
+
tokenize: p
|
|
6
|
+
};
|
|
7
|
+
function p(t, u, m) {
|
|
8
|
+
let a = 0, e;
|
|
9
|
+
return k;
|
|
10
|
+
function k(r) {
|
|
11
|
+
return t.enter("thematicBreak"), h(r);
|
|
12
|
+
}
|
|
13
|
+
function h(r) {
|
|
14
|
+
return e = r, n(r);
|
|
15
|
+
}
|
|
16
|
+
function n(r) {
|
|
17
|
+
return r === e ? (t.enter("thematicBreakSequence"), i(r)) : a >= 3 && (r === null || c(r)) ? (t.exit("thematicBreak"), u(r)) : m(r);
|
|
18
|
+
}
|
|
19
|
+
function i(r) {
|
|
20
|
+
return r === e ? (t.consume(r), a++, i) : (t.exit("thematicBreakSequence"), B(r) ? o(t, n, "whitespace")(r) : n(r));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
q as thematicBreak
|
|
25
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { asciiControl as h, markdownLineEnding as B, markdownLineEndingOrSpace as C } from "../micromark-util-character/index.js";
|
|
2
|
+
function F(r, a, S, i, g, t, E, m, w) {
|
|
3
|
+
const N = w || Number.POSITIVE_INFINITY;
|
|
4
|
+
let x = 0;
|
|
5
|
+
return b;
|
|
6
|
+
function b(n) {
|
|
7
|
+
return n === 60 ? (r.enter(i), r.enter(g), r.enter(t), r.consume(n), r.exit(t), I) : n === null || n === 32 || n === 41 || h(n) ? S(n) : (r.enter(i), r.enter(E), r.enter(m), r.enter("chunkString", {
|
|
8
|
+
contentType: "string"
|
|
9
|
+
}), u(n));
|
|
10
|
+
}
|
|
11
|
+
function I(n) {
|
|
12
|
+
return n === 62 ? (r.enter(t), r.consume(n), r.exit(t), r.exit(g), r.exit(i), a) : (r.enter(m), r.enter("chunkString", {
|
|
13
|
+
contentType: "string"
|
|
14
|
+
}), l(n));
|
|
15
|
+
}
|
|
16
|
+
function l(n) {
|
|
17
|
+
return n === 62 ? (r.exit("chunkString"), r.exit(m), I(n)) : n === null || n === 60 || B(n) ? S(n) : (r.consume(n), n === 92 ? L : l);
|
|
18
|
+
}
|
|
19
|
+
function L(n) {
|
|
20
|
+
return n === 60 || n === 62 || n === 92 ? (r.consume(n), l) : l(n);
|
|
21
|
+
}
|
|
22
|
+
function u(n) {
|
|
23
|
+
return !x && (n === null || n === 41 || C(n)) ? (r.exit("chunkString"), r.exit(m), r.exit(E), r.exit(i), a(n)) : x < N && n === 40 ? (r.consume(n), x++, u) : n === 41 ? (r.consume(n), x--, u) : n === null || n === 32 || n === 40 || h(n) ? S(n) : (r.consume(n), n === 92 ? O : u);
|
|
24
|
+
}
|
|
25
|
+
function O(n) {
|
|
26
|
+
return n === 40 || n === 41 || n === 92 ? (r.consume(n), u) : u(n);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
F as factoryDestination
|
|
31
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { markdownLineEnding as g, markdownSpace as p } from "../micromark-util-character/index.js";
|
|
2
|
+
function w(r, h, E, x, i, m) {
|
|
3
|
+
const S = this;
|
|
4
|
+
let t = 0, l;
|
|
5
|
+
return b;
|
|
6
|
+
function b(n) {
|
|
7
|
+
return r.enter(x), r.enter(i), r.consume(n), r.exit(i), r.enter(m), a;
|
|
8
|
+
}
|
|
9
|
+
function a(n) {
|
|
10
|
+
return t > 999 || n === null || n === 91 || n === 93 && !l || // To do: remove in the future once we’ve switched from
|
|
11
|
+
// `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
|
|
12
|
+
// which doesn’t need this.
|
|
13
|
+
// Hidden footnotes hook.
|
|
14
|
+
/* c8 ignore next 3 */
|
|
15
|
+
n === 94 && !t && "_hiddenFootnoteSupport" in S.parser.constructs ? E(n) : n === 93 ? (r.exit(m), r.enter(i), r.consume(n), r.exit(i), r.exit(x), h) : g(n) ? (r.enter("lineEnding"), r.consume(n), r.exit("lineEnding"), a) : (r.enter("chunkString", {
|
|
16
|
+
contentType: "string"
|
|
17
|
+
}), u(n));
|
|
18
|
+
}
|
|
19
|
+
function u(n) {
|
|
20
|
+
return n === null || n === 91 || n === 93 || g(n) || t++ > 999 ? (r.exit("chunkString"), a(n)) : (r.consume(n), l || (l = !p(n)), n === 92 ? o : u);
|
|
21
|
+
}
|
|
22
|
+
function o(n) {
|
|
23
|
+
return n === 91 || n === 92 || n === 93 ? (r.consume(n), t++, u) : u(n);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
w as factoryLabel
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { markdownSpace as m } from "../micromark-util-character/index.js";
|
|
2
|
+
function p(n, t, i, u) {
|
|
3
|
+
const o = u ? u - 1 : Number.POSITIVE_INFINITY;
|
|
4
|
+
let I = 0;
|
|
5
|
+
return a;
|
|
6
|
+
function a(r) {
|
|
7
|
+
return m(r) ? (n.enter(i), e(r)) : t(r);
|
|
8
|
+
}
|
|
9
|
+
function e(r) {
|
|
10
|
+
return m(r) && I++ < o ? (n.consume(r), e) : (n.exit(i), t(r));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
p as factorySpace
|
|
15
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { factorySpace as k } from "../micromark-factory-space/index.js";
|
|
2
|
+
import { markdownLineEnding as E } from "../micromark-util-character/index.js";
|
|
3
|
+
function B(r, S, m, x, u, a) {
|
|
4
|
+
let i;
|
|
5
|
+
return h;
|
|
6
|
+
function h(n) {
|
|
7
|
+
return n === 34 || n === 39 || n === 40 ? (r.enter(x), r.enter(u), r.consume(n), r.exit(u), i = n === 40 ? 41 : n, g) : m(n);
|
|
8
|
+
}
|
|
9
|
+
function g(n) {
|
|
10
|
+
return n === i ? (r.enter(u), r.consume(n), r.exit(u), r.exit(x), S) : (r.enter(a), l(n));
|
|
11
|
+
}
|
|
12
|
+
function l(n) {
|
|
13
|
+
return n === i ? (r.exit(a), g(i)) : n === null ? m(n) : E(n) ? (r.enter("lineEnding"), r.consume(n), r.exit("lineEnding"), k(r, l, "linePrefix")) : (r.enter("chunkString", {
|
|
14
|
+
contentType: "string"
|
|
15
|
+
}), t(n));
|
|
16
|
+
}
|
|
17
|
+
function t(n) {
|
|
18
|
+
return n === i || n === null || E(n) ? (r.exit("chunkString"), l(n)) : (r.consume(n), n === 92 ? b : t);
|
|
19
|
+
}
|
|
20
|
+
function b(n) {
|
|
21
|
+
return n === i || n === 92 ? (r.consume(n), t) : t(n);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
B as factoryTitle
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { factorySpace as u } from "../micromark-factory-space/index.js";
|
|
2
|
+
import { markdownLineEnding as a, markdownSpace as o } from "../micromark-util-character/index.js";
|
|
3
|
+
function f(r, e) {
|
|
4
|
+
let t;
|
|
5
|
+
return i;
|
|
6
|
+
function i(n) {
|
|
7
|
+
return a(n) ? (r.enter("lineEnding"), r.consume(n), r.exit("lineEnding"), t = !0, i) : o(n) ? u(r, i, t ? "linePrefix" : "lineSuffix")(n) : e(n);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
f as factoryWhitespace
|
|
12
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const c = i(/[A-Za-z]/), r = i(/[\dA-Za-z]/), a = i(/[#-'*+\--9=?A-Z^-~]/);
|
|
2
|
+
function s(n) {
|
|
3
|
+
return (
|
|
4
|
+
// Special whitespace codes (which have negative values), C0 and Control
|
|
5
|
+
// character DEL
|
|
6
|
+
n !== null && (n < 32 || n === 127)
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
const o = i(/\d/), e = i(/[\dA-Fa-f]/), l = i(/[!-/:-@[-`{-~]/);
|
|
10
|
+
function f(n) {
|
|
11
|
+
return n !== null && n < -2;
|
|
12
|
+
}
|
|
13
|
+
function p(n) {
|
|
14
|
+
return n !== null && (n < 0 || n === 32);
|
|
15
|
+
}
|
|
16
|
+
function A(n) {
|
|
17
|
+
return n === -2 || n === -1 || n === 32;
|
|
18
|
+
}
|
|
19
|
+
const g = i(new RegExp("\\p{P}|\\p{S}", "u")), h = i(/\s/);
|
|
20
|
+
function i(n) {
|
|
21
|
+
return u;
|
|
22
|
+
function u(t) {
|
|
23
|
+
return t !== null && t > -1 && n.test(String.fromCharCode(t));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
c as asciiAlpha,
|
|
28
|
+
r as asciiAlphanumeric,
|
|
29
|
+
a as asciiAtext,
|
|
30
|
+
s as asciiControl,
|
|
31
|
+
o as asciiDigit,
|
|
32
|
+
e as asciiHexDigit,
|
|
33
|
+
l as asciiPunctuation,
|
|
34
|
+
f as markdownLineEnding,
|
|
35
|
+
p as markdownLineEndingOrSpace,
|
|
36
|
+
A as markdownSpace,
|
|
37
|
+
g as unicodePunctuation,
|
|
38
|
+
h as unicodeWhitespace
|
|
39
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function p(h, n, c, f) {
|
|
2
|
+
const l = h.length;
|
|
3
|
+
let u = 0, e;
|
|
4
|
+
if (n < 0 ? n = -n > l ? 0 : l + n : n = n > l ? l : n, c = c > 0 ? c : 0, f.length < 1e4)
|
|
5
|
+
e = Array.from(f), e.unshift(n, c), h.splice(...e);
|
|
6
|
+
else
|
|
7
|
+
for (c && h.splice(n, c); u < f.length; )
|
|
8
|
+
e = f.slice(u, u + 1e4), e.unshift(n, 0), h.splice(...e), u += 1e4, n += 1e4;
|
|
9
|
+
}
|
|
10
|
+
function g(h, n) {
|
|
11
|
+
return h.length > 0 ? (p(h, h.length, 0, n), h) : n;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
g as push,
|
|
15
|
+
p as splice
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { markdownLineEndingOrSpace as i, unicodeWhitespace as r, unicodePunctuation as t } from "../micromark-util-character/index.js";
|
|
2
|
+
function a(n) {
|
|
3
|
+
if (n === null || i(n) || r(n))
|
|
4
|
+
return 1;
|
|
5
|
+
if (t(n))
|
|
6
|
+
return 2;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
a as classifyCharacter
|
|
10
|
+
};
|