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,30 @@
|
|
|
1
|
+
import { getNonce as o } from "../../../get-nonce/dist/es2015/index.js";
|
|
2
|
+
function r() {
|
|
3
|
+
if (!document)
|
|
4
|
+
return null;
|
|
5
|
+
var t = document.createElement("style");
|
|
6
|
+
t.type = "text/css";
|
|
7
|
+
var e = o();
|
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
|
9
|
+
}
|
|
10
|
+
function l(t, e) {
|
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
+
e.appendChild(t);
|
|
16
|
+
}
|
|
17
|
+
var c = function() {
|
|
18
|
+
var t = 0, e = null;
|
|
19
|
+
return {
|
|
20
|
+
add: function(n) {
|
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
+
},
|
|
23
|
+
remove: function() {
|
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
c as stylesheetSingleton
|
|
30
|
+
};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
function i(e) {
|
|
2
|
+
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
3
|
+
}
|
|
4
|
+
var S = typeof Symbol == "function" && Symbol.observable || "@@observable", _ = S, O = () => Math.random().toString(36).substring(7).split("").join("."), k = {
|
|
5
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ O()}`,
|
|
6
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ O()}`,
|
|
7
|
+
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${O()}`
|
|
8
|
+
}, b = k;
|
|
9
|
+
function v(e) {
|
|
10
|
+
if (typeof e != "object" || e === null)
|
|
11
|
+
return !1;
|
|
12
|
+
let t = e;
|
|
13
|
+
for (; Object.getPrototypeOf(t) !== null; )
|
|
14
|
+
t = Object.getPrototypeOf(t);
|
|
15
|
+
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
16
|
+
}
|
|
17
|
+
function $(e) {
|
|
18
|
+
if (e === void 0)
|
|
19
|
+
return "undefined";
|
|
20
|
+
if (e === null)
|
|
21
|
+
return "null";
|
|
22
|
+
const t = typeof e;
|
|
23
|
+
switch (t) {
|
|
24
|
+
case "boolean":
|
|
25
|
+
case "string":
|
|
26
|
+
case "number":
|
|
27
|
+
case "symbol":
|
|
28
|
+
case "function":
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
if (Array.isArray(e))
|
|
32
|
+
return "array";
|
|
33
|
+
if (V(e))
|
|
34
|
+
return "date";
|
|
35
|
+
if (T(e))
|
|
36
|
+
return "error";
|
|
37
|
+
const r = j(e);
|
|
38
|
+
switch (r) {
|
|
39
|
+
case "Symbol":
|
|
40
|
+
case "Promise":
|
|
41
|
+
case "WeakMap":
|
|
42
|
+
case "WeakSet":
|
|
43
|
+
case "Map":
|
|
44
|
+
case "Set":
|
|
45
|
+
return r;
|
|
46
|
+
}
|
|
47
|
+
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
48
|
+
}
|
|
49
|
+
function j(e) {
|
|
50
|
+
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
51
|
+
}
|
|
52
|
+
function T(e) {
|
|
53
|
+
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
54
|
+
}
|
|
55
|
+
function V(e) {
|
|
56
|
+
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
57
|
+
}
|
|
58
|
+
function y(e) {
|
|
59
|
+
let t = typeof e;
|
|
60
|
+
return process.env.NODE_ENV !== "production" && (t = $(e)), t;
|
|
61
|
+
}
|
|
62
|
+
function A(e, t, r) {
|
|
63
|
+
if (typeof e != "function")
|
|
64
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(2) : `Expected the root reducer to be a function. Instead, received: '${y(e)}'`);
|
|
65
|
+
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
66
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
67
|
+
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
68
|
+
if (typeof r != "function")
|
|
69
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(1) : `Expected the enhancer to be a function. Instead, received: '${y(r)}'`);
|
|
70
|
+
return r(A)(e, t);
|
|
71
|
+
}
|
|
72
|
+
let a = e, d = t, u = /* @__PURE__ */ new Map(), o = u, s = 0, c = !1;
|
|
73
|
+
function f() {
|
|
74
|
+
o === u && (o = /* @__PURE__ */ new Map(), u.forEach((n, p) => {
|
|
75
|
+
o.set(p, n);
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
function w() {
|
|
79
|
+
if (c)
|
|
80
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
81
|
+
return d;
|
|
82
|
+
}
|
|
83
|
+
function l(n) {
|
|
84
|
+
if (typeof n != "function")
|
|
85
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(4) : `Expected the listener to be a function. Instead, received: '${y(n)}'`);
|
|
86
|
+
if (c)
|
|
87
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
88
|
+
let p = !0;
|
|
89
|
+
f();
|
|
90
|
+
const E = s++;
|
|
91
|
+
return o.set(E, n), function() {
|
|
92
|
+
if (p) {
|
|
93
|
+
if (c)
|
|
94
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
95
|
+
p = !1, f(), o.delete(E), u = null;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function h(n) {
|
|
100
|
+
if (!v(n))
|
|
101
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(7) : `Actions must be plain objects. Instead, the actual type was: '${y(n)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
102
|
+
if (typeof n.type > "u")
|
|
103
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
104
|
+
if (typeof n.type != "string")
|
|
105
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(17) : `Action "type" property must be a string. Instead, the actual type was: '${y(n.type)}'. Value was: '${n.type}' (stringified)`);
|
|
106
|
+
if (c)
|
|
107
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(9) : "Reducers may not dispatch actions.");
|
|
108
|
+
try {
|
|
109
|
+
c = !0, d = a(d, n);
|
|
110
|
+
} finally {
|
|
111
|
+
c = !1;
|
|
112
|
+
}
|
|
113
|
+
return (u = o).forEach((E) => {
|
|
114
|
+
E();
|
|
115
|
+
}), n;
|
|
116
|
+
}
|
|
117
|
+
function N(n) {
|
|
118
|
+
if (typeof n != "function")
|
|
119
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(10) : `Expected the nextReducer to be a function. Instead, received: '${y(n)}`);
|
|
120
|
+
a = n, h({
|
|
121
|
+
type: b.REPLACE
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function g() {
|
|
125
|
+
const n = l;
|
|
126
|
+
return {
|
|
127
|
+
/**
|
|
128
|
+
* The minimal observable subscription method.
|
|
129
|
+
* @param observer Any object that can be used as an observer.
|
|
130
|
+
* The observer object should have a `next` method.
|
|
131
|
+
* @returns An object with an `unsubscribe` method that can
|
|
132
|
+
* be used to unsubscribe the observable from the store, and prevent further
|
|
133
|
+
* emission of values from the observable.
|
|
134
|
+
*/
|
|
135
|
+
subscribe(p) {
|
|
136
|
+
if (typeof p != "object" || p === null)
|
|
137
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(11) : `Expected the observer to be an object. Instead, received: '${y(p)}'`);
|
|
138
|
+
function E() {
|
|
139
|
+
const x = p;
|
|
140
|
+
x.next && x.next(w());
|
|
141
|
+
}
|
|
142
|
+
return E(), {
|
|
143
|
+
unsubscribe: n(E)
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
[_]() {
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
return h({
|
|
152
|
+
type: b.INIT
|
|
153
|
+
}), {
|
|
154
|
+
dispatch: h,
|
|
155
|
+
subscribe: l,
|
|
156
|
+
getState: w,
|
|
157
|
+
replaceReducer: N,
|
|
158
|
+
[_]: g
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function I(e) {
|
|
162
|
+
typeof console < "u" && typeof console.error == "function" && console.error(e);
|
|
163
|
+
try {
|
|
164
|
+
throw new Error(e);
|
|
165
|
+
} catch {
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function P(e, t, r, a) {
|
|
169
|
+
const d = Object.keys(t), u = r && r.type === b.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
170
|
+
if (d.length === 0)
|
|
171
|
+
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
172
|
+
if (!v(e))
|
|
173
|
+
return `The ${u} has unexpected type of "${y(e)}". Expected argument to be an object with the following keys: "${d.join('", "')}"`;
|
|
174
|
+
const o = Object.keys(e).filter((s) => !t.hasOwnProperty(s) && !a[s]);
|
|
175
|
+
if (o.forEach((s) => {
|
|
176
|
+
a[s] = !0;
|
|
177
|
+
}), !(r && r.type === b.REPLACE) && o.length > 0)
|
|
178
|
+
return `Unexpected ${o.length > 1 ? "keys" : "key"} "${o.join('", "')}" found in ${u}. Expected to find one of the known reducer keys instead: "${d.join('", "')}". Unexpected keys will be ignored.`;
|
|
179
|
+
}
|
|
180
|
+
function R(e) {
|
|
181
|
+
Object.keys(e).forEach((t) => {
|
|
182
|
+
const r = e[t];
|
|
183
|
+
if (typeof r(void 0, {
|
|
184
|
+
type: b.INIT
|
|
185
|
+
}) > "u")
|
|
186
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
|
|
187
|
+
if (typeof r(void 0, {
|
|
188
|
+
type: b.PROBE_UNKNOWN_ACTION()
|
|
189
|
+
}) > "u")
|
|
190
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${b.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function C(e) {
|
|
194
|
+
const t = Object.keys(e), r = {};
|
|
195
|
+
for (let o = 0; o < t.length; o++) {
|
|
196
|
+
const s = t[o];
|
|
197
|
+
process.env.NODE_ENV !== "production" && typeof e[s] > "u" && I(`No reducer provided for key "${s}"`), typeof e[s] == "function" && (r[s] = e[s]);
|
|
198
|
+
}
|
|
199
|
+
const a = Object.keys(r);
|
|
200
|
+
let d;
|
|
201
|
+
process.env.NODE_ENV !== "production" && (d = {});
|
|
202
|
+
let u;
|
|
203
|
+
try {
|
|
204
|
+
R(r);
|
|
205
|
+
} catch (o) {
|
|
206
|
+
u = o;
|
|
207
|
+
}
|
|
208
|
+
return function(s = {}, c) {
|
|
209
|
+
if (u)
|
|
210
|
+
throw u;
|
|
211
|
+
if (process.env.NODE_ENV !== "production") {
|
|
212
|
+
const l = P(s, r, c, d);
|
|
213
|
+
l && I(l);
|
|
214
|
+
}
|
|
215
|
+
let f = !1;
|
|
216
|
+
const w = {};
|
|
217
|
+
for (let l = 0; l < a.length; l++) {
|
|
218
|
+
const h = a[l], N = r[h], g = s[h], m = N(g, c);
|
|
219
|
+
if (typeof m > "u") {
|
|
220
|
+
const n = c && c.type;
|
|
221
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(14) : `When called with an action of type ${n ? `"${String(n)}"` : "(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
|
|
222
|
+
}
|
|
223
|
+
w[h] = m, f = f || m !== g;
|
|
224
|
+
}
|
|
225
|
+
return f = f || a.length !== Object.keys(s).length, f ? w : s;
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function M(...e) {
|
|
229
|
+
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, r) => (...a) => t(r(...a)));
|
|
230
|
+
}
|
|
231
|
+
function K(...e) {
|
|
232
|
+
return (t) => (r, a) => {
|
|
233
|
+
const d = t(r, a);
|
|
234
|
+
let u = () => {
|
|
235
|
+
throw new Error(process.env.NODE_ENV === "production" ? i(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
|
|
236
|
+
};
|
|
237
|
+
const o = {
|
|
238
|
+
getState: d.getState,
|
|
239
|
+
dispatch: (c, ...f) => u(c, ...f)
|
|
240
|
+
}, s = e.map((c) => c(o));
|
|
241
|
+
return u = M(...s)(d.dispatch), {
|
|
242
|
+
...d,
|
|
243
|
+
dispatch: u
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
function L(e) {
|
|
248
|
+
return v(e) && "type" in e && typeof e.type == "string";
|
|
249
|
+
}
|
|
250
|
+
export {
|
|
251
|
+
b as __DO_NOT_USE__ActionTypes,
|
|
252
|
+
K as applyMiddleware,
|
|
253
|
+
C as combineReducers,
|
|
254
|
+
M as compose,
|
|
255
|
+
A as createStore,
|
|
256
|
+
L as isAction,
|
|
257
|
+
v as isPlainObject
|
|
258
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { fromMarkdown as a } from "../../mdast-util-from-markdown/lib/index.js";
|
|
2
|
+
function e(s) {
|
|
3
|
+
const r = this;
|
|
4
|
+
r.parser = t;
|
|
5
|
+
function t(n) {
|
|
6
|
+
return a(n, {
|
|
7
|
+
...r.data("settings"),
|
|
8
|
+
...s,
|
|
9
|
+
// Note: these options are not in the readme.
|
|
10
|
+
// The goal is for them to be set by plugins on `data` instead of being
|
|
11
|
+
// passed by users.
|
|
12
|
+
extensions: r.data("micromarkExtensions") || [],
|
|
13
|
+
mdastExtensions: r.data("fromMarkdownExtensions") || []
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
e as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { toHast as e } from "../../mdast-util-to-hast/lib/index.js";
|
|
2
|
+
function f(r, t) {
|
|
3
|
+
return r && "run" in r ? async function(n, u) {
|
|
4
|
+
const a = (
|
|
5
|
+
/** @type {HastRoot} */
|
|
6
|
+
e(n, { file: u, ...t })
|
|
7
|
+
);
|
|
8
|
+
await r.run(a, u);
|
|
9
|
+
} : function(n, u) {
|
|
10
|
+
return (
|
|
11
|
+
/** @type {HastRoot} */
|
|
12
|
+
e(n, { file: u, ...r || t })
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
f as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
var N = (e, t, s) => {
|
|
2
|
+
if (t.length === 1 && t[0] === s) {
|
|
3
|
+
let o = !1;
|
|
4
|
+
try {
|
|
5
|
+
const r = {};
|
|
6
|
+
e(r) === r && (o = !0);
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
if (o) {
|
|
10
|
+
let r;
|
|
11
|
+
try {
|
|
12
|
+
throw new Error();
|
|
13
|
+
} catch (c) {
|
|
14
|
+
({ stack: r } = c);
|
|
15
|
+
}
|
|
16
|
+
console.warn(
|
|
17
|
+
`The result function returned its own inputs without modification. e.g
|
|
18
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
19
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
20
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,
|
|
21
|
+
{ stack: r }
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, x = (e, t, s) => {
|
|
26
|
+
const { memoize: o, memoizeOptions: r } = t, { inputSelectorResults: c, inputSelectorResultsCopy: i } = e, n = o(() => ({}), ...r);
|
|
27
|
+
if (!(n.apply(null, c) === n.apply(null, i))) {
|
|
28
|
+
let l;
|
|
29
|
+
try {
|
|
30
|
+
throw new Error();
|
|
31
|
+
} catch (u) {
|
|
32
|
+
({ stack: l } = u);
|
|
33
|
+
}
|
|
34
|
+
console.warn(
|
|
35
|
+
`An input selector returned a different result when passed same arguments.
|
|
36
|
+
This means your output selector will likely run more frequently than intended.
|
|
37
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
38
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,
|
|
39
|
+
{
|
|
40
|
+
arguments: s,
|
|
41
|
+
firstInputs: c,
|
|
42
|
+
secondInputs: i,
|
|
43
|
+
stack: l
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}, A = {
|
|
48
|
+
inputStabilityCheck: "once",
|
|
49
|
+
identityFunctionCheck: "once"
|
|
50
|
+
};
|
|
51
|
+
function F(e, t = `expected a function, instead received ${typeof e}`) {
|
|
52
|
+
if (typeof e != "function")
|
|
53
|
+
throw new TypeError(t);
|
|
54
|
+
}
|
|
55
|
+
function D(e, t = `expected an object, instead received ${typeof e}`) {
|
|
56
|
+
if (typeof e != "object")
|
|
57
|
+
throw new TypeError(t);
|
|
58
|
+
}
|
|
59
|
+
function $(e, t = "expected all items to be functions, instead received the following types: ") {
|
|
60
|
+
if (!e.every((s) => typeof s == "function")) {
|
|
61
|
+
const s = e.map(
|
|
62
|
+
(o) => typeof o == "function" ? `function ${o.name || "unnamed"}()` : typeof o
|
|
63
|
+
).join(", ");
|
|
64
|
+
throw new TypeError(`${t}[${s}]`);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
var S = (e) => Array.isArray(e) ? e : [e];
|
|
68
|
+
function W(e) {
|
|
69
|
+
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
70
|
+
return $(
|
|
71
|
+
t,
|
|
72
|
+
"createSelector expects all input-selectors to be functions, but received the following types: "
|
|
73
|
+
), t;
|
|
74
|
+
}
|
|
75
|
+
function E(e, t) {
|
|
76
|
+
const s = [], { length: o } = e;
|
|
77
|
+
for (let r = 0; r < o; r++)
|
|
78
|
+
s.push(e[r].apply(null, t));
|
|
79
|
+
return s;
|
|
80
|
+
}
|
|
81
|
+
var q = (e, t) => {
|
|
82
|
+
const { identityFunctionCheck: s, inputStabilityCheck: o } = {
|
|
83
|
+
...A,
|
|
84
|
+
...t
|
|
85
|
+
};
|
|
86
|
+
return {
|
|
87
|
+
identityFunctionCheck: {
|
|
88
|
+
shouldRun: s === "always" || s === "once" && e,
|
|
89
|
+
run: N
|
|
90
|
+
},
|
|
91
|
+
inputStabilityCheck: {
|
|
92
|
+
shouldRun: o === "always" || o === "once" && e,
|
|
93
|
+
run: x
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}, V = class {
|
|
97
|
+
constructor(e) {
|
|
98
|
+
this.value = e;
|
|
99
|
+
}
|
|
100
|
+
deref() {
|
|
101
|
+
return this.value;
|
|
102
|
+
}
|
|
103
|
+
}, K = typeof WeakRef < "u" ? WeakRef : V, P = 0, I = 1;
|
|
104
|
+
function m() {
|
|
105
|
+
return {
|
|
106
|
+
s: P,
|
|
107
|
+
v: void 0,
|
|
108
|
+
o: null,
|
|
109
|
+
p: null
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function z(e, t = {}) {
|
|
113
|
+
let s = m();
|
|
114
|
+
const { resultEqualityCheck: o } = t;
|
|
115
|
+
let r, c = 0;
|
|
116
|
+
function i() {
|
|
117
|
+
let n = s;
|
|
118
|
+
const { length: f } = arguments;
|
|
119
|
+
for (let a = 0, h = f; a < h; a++) {
|
|
120
|
+
const d = arguments[a];
|
|
121
|
+
if (typeof d == "function" || typeof d == "object" && d !== null) {
|
|
122
|
+
let p = n.o;
|
|
123
|
+
p === null && (n.o = p = /* @__PURE__ */ new WeakMap());
|
|
124
|
+
const y = p.get(d);
|
|
125
|
+
y === void 0 ? (n = m(), p.set(d, n)) : n = y;
|
|
126
|
+
} else {
|
|
127
|
+
let p = n.p;
|
|
128
|
+
p === null && (n.p = p = /* @__PURE__ */ new Map());
|
|
129
|
+
const y = p.get(d);
|
|
130
|
+
y === void 0 ? (n = m(), p.set(d, n)) : n = y;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const l = n;
|
|
134
|
+
let u;
|
|
135
|
+
if (n.s === I)
|
|
136
|
+
u = n.v;
|
|
137
|
+
else if (u = e.apply(null, arguments), c++, o) {
|
|
138
|
+
const a = r?.deref?.() ?? r;
|
|
139
|
+
a != null && o(a, u) && (u = a, c !== 0 && c--), r = typeof u == "object" && u !== null || typeof u == "function" ? new K(u) : u;
|
|
140
|
+
}
|
|
141
|
+
return l.s = I, l.v = u, u;
|
|
142
|
+
}
|
|
143
|
+
return i.clearCache = () => {
|
|
144
|
+
s = m(), i.resetResultsCount();
|
|
145
|
+
}, i.resultsCount = () => c, i.resetResultsCount = () => {
|
|
146
|
+
c = 0;
|
|
147
|
+
}, i;
|
|
148
|
+
}
|
|
149
|
+
function U(e, ...t) {
|
|
150
|
+
const s = typeof e == "function" ? {
|
|
151
|
+
memoize: e,
|
|
152
|
+
memoizeOptions: t
|
|
153
|
+
} : e, o = (...r) => {
|
|
154
|
+
let c = 0, i = 0, n, f = {}, l = r.pop();
|
|
155
|
+
typeof l == "object" && (f = l, l = r.pop()), F(
|
|
156
|
+
l,
|
|
157
|
+
`createSelector expects an output function after the inputs, but received: [${typeof l}]`
|
|
158
|
+
);
|
|
159
|
+
const u = {
|
|
160
|
+
...s,
|
|
161
|
+
...f
|
|
162
|
+
}, {
|
|
163
|
+
memoize: a,
|
|
164
|
+
memoizeOptions: h = [],
|
|
165
|
+
argsMemoize: d = z,
|
|
166
|
+
argsMemoizeOptions: p = [],
|
|
167
|
+
devModeChecks: y = {}
|
|
168
|
+
} = u, w = S(h), M = S(p), v = W(r), C = a(function() {
|
|
169
|
+
return c++, l.apply(
|
|
170
|
+
null,
|
|
171
|
+
arguments
|
|
172
|
+
);
|
|
173
|
+
}, ...w);
|
|
174
|
+
let g = !0;
|
|
175
|
+
const O = d(function() {
|
|
176
|
+
i++;
|
|
177
|
+
const R = E(
|
|
178
|
+
v,
|
|
179
|
+
arguments
|
|
180
|
+
);
|
|
181
|
+
if (n = C.apply(null, R), process.env.NODE_ENV !== "production") {
|
|
182
|
+
const { identityFunctionCheck: k, inputStabilityCheck: b } = q(g, y);
|
|
183
|
+
if (k.shouldRun && k.run(
|
|
184
|
+
l,
|
|
185
|
+
R,
|
|
186
|
+
n
|
|
187
|
+
), b.shouldRun) {
|
|
188
|
+
const j = E(
|
|
189
|
+
v,
|
|
190
|
+
arguments
|
|
191
|
+
);
|
|
192
|
+
b.run(
|
|
193
|
+
{ inputSelectorResults: R, inputSelectorResultsCopy: j },
|
|
194
|
+
{ memoize: a, memoizeOptions: w },
|
|
195
|
+
arguments
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
g && (g = !1);
|
|
199
|
+
}
|
|
200
|
+
return n;
|
|
201
|
+
}, ...M);
|
|
202
|
+
return Object.assign(O, {
|
|
203
|
+
resultFunc: l,
|
|
204
|
+
memoizedResultFunc: C,
|
|
205
|
+
dependencies: v,
|
|
206
|
+
dependencyRecomputations: () => i,
|
|
207
|
+
resetDependencyRecomputations: () => {
|
|
208
|
+
i = 0;
|
|
209
|
+
},
|
|
210
|
+
lastResult: () => n,
|
|
211
|
+
recomputations: () => c,
|
|
212
|
+
resetRecomputations: () => {
|
|
213
|
+
c = 0;
|
|
214
|
+
},
|
|
215
|
+
memoize: a,
|
|
216
|
+
argsMemoize: d
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
return Object.assign(o, {
|
|
220
|
+
withTypes: () => o
|
|
221
|
+
}), o;
|
|
222
|
+
}
|
|
223
|
+
var _ = /* @__PURE__ */ U(z), B = Object.assign(
|
|
224
|
+
(e, t = _) => {
|
|
225
|
+
D(
|
|
226
|
+
e,
|
|
227
|
+
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
|
|
228
|
+
);
|
|
229
|
+
const s = Object.keys(e), o = s.map(
|
|
230
|
+
(c) => e[c]
|
|
231
|
+
);
|
|
232
|
+
return t(
|
|
233
|
+
o,
|
|
234
|
+
(...c) => c.reduce((i, n, f) => (i[s[f]] = n, i), {})
|
|
235
|
+
);
|
|
236
|
+
},
|
|
237
|
+
{ withTypes: () => B }
|
|
238
|
+
);
|
|
239
|
+
export {
|
|
240
|
+
_ as createSelector,
|
|
241
|
+
U as createSelectorCreator,
|
|
242
|
+
B as createStructuredSelector,
|
|
243
|
+
z as weakMapMemoize
|
|
244
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __require as l } from "../../style-to-object/cjs/index.js";
|
|
2
|
+
import { __require as c } from "./utilities.js";
|
|
3
|
+
var e, _;
|
|
4
|
+
function p() {
|
|
5
|
+
if (_) return e;
|
|
6
|
+
_ = 1;
|
|
7
|
+
var f = e && e.__importDefault || function(r) {
|
|
8
|
+
return r && r.__esModule ? r : { default: r };
|
|
9
|
+
}, n = f(l()), o = c();
|
|
10
|
+
function t(r, s) {
|
|
11
|
+
var i = {};
|
|
12
|
+
return !r || typeof r != "string" || (0, n.default)(r, function(u, a) {
|
|
13
|
+
u && a && (i[(0, o.camelCase)(u, s)] = a);
|
|
14
|
+
}), i;
|
|
15
|
+
}
|
|
16
|
+
return t.default = t, e = t, e;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
p as __require
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __exports as i } from "../../../_virtual/utilities.js";
|
|
2
|
+
var r;
|
|
3
|
+
function R() {
|
|
4
|
+
if (r) return i;
|
|
5
|
+
r = 1, Object.defineProperty(i, "__esModule", { value: !0 }), i.camelCase = void 0;
|
|
6
|
+
var u = /^--[a-zA-Z0-9_-]+$/, c = /-([a-z])/g, n = /^[^-]+$/, s = /^-(webkit|moz|ms|o|khtml)-/, E = /^-(ms)-/, _ = function(e) {
|
|
7
|
+
return !e || n.test(e) || u.test(e);
|
|
8
|
+
}, l = function(e, a) {
|
|
9
|
+
return a.toUpperCase();
|
|
10
|
+
}, t = function(e, a) {
|
|
11
|
+
return "".concat(a, "-");
|
|
12
|
+
}, m = function(e, a) {
|
|
13
|
+
return a === void 0 && (a = {}), _(e) ? e : (e = e.toLowerCase(), a.reactCompat ? e = e.replace(E, t) : e = e.replace(s, t), e.replace(c, l));
|
|
14
|
+
};
|
|
15
|
+
return i.camelCase = m, i;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
R as __require
|
|
19
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __exports as r } from "../../../_virtual/index3.js";
|
|
2
|
+
import { __require as p } from "../../inline-style-parser/index.js";
|
|
3
|
+
var f;
|
|
4
|
+
function q() {
|
|
5
|
+
if (f) return r;
|
|
6
|
+
f = 1;
|
|
7
|
+
var s = r && r.__importDefault || function(e) {
|
|
8
|
+
return e && e.__esModule ? e : { default: e };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.default = l;
|
|
11
|
+
const a = s(p());
|
|
12
|
+
function l(e, i) {
|
|
13
|
+
let t = null;
|
|
14
|
+
if (!e || typeof e != "string")
|
|
15
|
+
return t;
|
|
16
|
+
const _ = (0, a.default)(e), c = typeof i == "function";
|
|
17
|
+
return _.forEach((u) => {
|
|
18
|
+
if (u.type !== "declaration")
|
|
19
|
+
return;
|
|
20
|
+
const { property: o, value: n } = u;
|
|
21
|
+
c ? i(o, n, u) : n && (t = t || {}, t[o] = n);
|
|
22
|
+
}), t;
|
|
23
|
+
}
|
|
24
|
+
return r;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
q as __require
|
|
28
|
+
};
|