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