@axdspub/axiom-ui-forms 0.2.7 → 0.2.9
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/library/axiom-ui-forms.d.ts +55 -6
- package/library/esm/_virtual/formats.js +4 -0
- package/library/esm/_virtual/formats.js.map +1 -0
- package/library/esm/_virtual/index.js +6 -2
- package/library/esm/_virtual/index.js.map +1 -1
- package/library/esm/_virtual/index10.js +2 -2
- package/library/esm/_virtual/index11.js +2 -2
- package/library/esm/_virtual/index12.js +6 -2
- package/library/esm/_virtual/index12.js.map +1 -1
- package/library/esm/_virtual/index13.js +8 -0
- package/library/esm/_virtual/index13.js.map +1 -0
- package/library/esm/_virtual/index14.js +4 -0
- package/library/esm/_virtual/index14.js.map +1 -0
- package/library/esm/_virtual/index15.js +4 -0
- package/library/esm/_virtual/index15.js.map +1 -0
- package/library/esm/_virtual/index16.js +4 -0
- package/library/esm/_virtual/index16.js.map +1 -0
- package/library/esm/_virtual/index17.js +4 -0
- package/library/esm/_virtual/index17.js.map +1 -0
- package/library/esm/_virtual/index2.js +2 -2
- package/library/esm/_virtual/index4.js +2 -2
- package/library/esm/_virtual/index4.js.map +1 -1
- package/library/esm/_virtual/index5.js +2 -2
- package/library/esm/_virtual/index6.js +2 -2
- package/library/esm/_virtual/index6.js.map +1 -1
- package/library/esm/_virtual/index7.js +2 -2
- package/library/esm/_virtual/index8.js +2 -2
- package/library/esm/_virtual/limit.js +4 -0
- package/library/esm/_virtual/limit.js.map +1 -0
- package/library/esm/_virtual/utilities.js +4 -0
- package/library/esm/_virtual/utilities.js.map +1 -0
- package/library/esm/node_modules/@axdspub/axiom-ui-utilities/library/index.js +241 -9
- package/library/esm/node_modules/@axdspub/axiom-ui-utilities/library/index.js.map +1 -1
- package/library/esm/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/library/esm/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/library/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/library/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/library/esm/node_modules/@codemirror/autocomplete/dist/index.js +1652 -0
- package/library/esm/node_modules/@codemirror/autocomplete/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/commands/dist/index.js +1444 -0
- package/library/esm/node_modules/@codemirror/commands/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/lang-json/dist/index.js +33 -0
- package/library/esm/node_modules/@codemirror/lang-json/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/lang-yaml/dist/index.js +59 -0
- package/library/esm/node_modules/@codemirror/lang-yaml/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/language/dist/index.js +1821 -0
- package/library/esm/node_modules/@codemirror/language/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/lint/dist/index.js +589 -0
- package/library/esm/node_modules/@codemirror/lint/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/search/dist/index.js +1227 -0
- package/library/esm/node_modules/@codemirror/search/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/state/dist/index.js +3882 -0
- package/library/esm/node_modules/@codemirror/state/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/theme-one-dark/dist/index.js +114 -0
- package/library/esm/node_modules/@codemirror/theme-one-dark/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/view/dist/index.js +11052 -0
- package/library/esm/node_modules/@codemirror/view/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/common/dist/index.js +1704 -0
- package/library/esm/node_modules/@lezer/common/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/highlight/dist/index.js +876 -0
- package/library/esm/node_modules/@lezer/highlight/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/json/dist/index.js +38 -0
- package/library/esm/node_modules/@lezer/json/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/lr/dist/index.js +1855 -0
- package/library/esm/node_modules/@lezer/lr/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/yaml/dist/index.js +392 -0
- package/library/esm/node_modules/@lezer/yaml/dist/index.js.map +1 -0
- package/library/esm/node_modules/@marijn/find-cluster-break/src/index.js +83 -0
- package/library/esm/node_modules/@marijn/find-cluster-break/src/index.js.map +1 -0
- package/library/esm/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +67 -1
- package/library/esm/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -1
- package/library/esm/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js +100 -0
- package/library/esm/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js +58 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/index.js +89 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/index.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/theme/light.js +12 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/theme/light.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js +151 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/utils.js +19 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/utils.js.map +1 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/deserialize.js +77 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/index.js +25 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/serialize.js +159 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/types.js +14 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/types.js.map +1 -0
- package/library/esm/node_modules/ajv/dist/compile/codegen/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/compile/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/discriminator/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
- package/library/esm/node_modules/ajv-formats/dist/formats.js +221 -0
- package/library/esm/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/library/esm/node_modules/ajv-formats/dist/index.js +53 -0
- package/library/esm/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/library/esm/node_modules/ajv-formats/dist/limit.js +84 -0
- package/library/esm/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/library/esm/node_modules/bail/index.js +15 -0
- package/library/esm/node_modules/bail/index.js.map +1 -0
- package/library/esm/node_modules/comma-separated-tokens/index.js +37 -0
- package/library/esm/node_modules/comma-separated-tokens/index.js.map +1 -0
- package/library/esm/node_modules/crelt/index.js +30 -0
- package/library/esm/node_modules/crelt/index.js.map +1 -0
- package/library/esm/node_modules/decode-named-character-reference/index.dom.js +39 -0
- package/library/esm/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
- package/library/esm/node_modules/devlop/lib/default.js +6 -0
- package/library/esm/node_modules/devlop/lib/default.js.map +1 -0
- package/library/esm/node_modules/estree-util-is-identifier-name/lib/index.js +31 -0
- package/library/esm/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
- package/library/esm/node_modules/extend/index.js +127 -0
- package/library/esm/node_modules/extend/index.js.map +1 -0
- package/library/esm/node_modules/fast-uri/index.js +1 -1
- package/library/esm/node_modules/hast-util-to-jsx-runtime/lib/index.js +791 -0
- package/library/esm/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
- package/library/esm/node_modules/hast-util-whitespace/lib/index.js +37 -0
- package/library/esm/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
- package/library/esm/node_modules/html-url-attributes/lib/index.js +34 -0
- package/library/esm/node_modules/html-url-attributes/lib/index.js.map +1 -0
- package/library/esm/node_modules/inline-style-parser/index.js +268 -0
- package/library/esm/node_modules/inline-style-parser/index.js.map +1 -0
- package/library/esm/node_modules/js-yaml/dist/js-yaml.js +3850 -0
- package/library/esm/node_modules/js-yaml/dist/js-yaml.js.map +1 -0
- package/library/esm/node_modules/json-schema-traverse/index.js +1 -1
- package/library/esm/node_modules/mdast-util-from-markdown/lib/index.js +1181 -0
- package/library/esm/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/footer.js +197 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/break.js +27 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/code.js +51 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/delete.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +74 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/heading.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/html.js +32 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +45 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image.js +40 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/index.js +67 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +36 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +50 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link.js +41 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +126 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list.js +57 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/root.js +27 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/strong.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +33 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +70 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table.js +65 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/text.js +29 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/index.js +105 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/revert.js +56 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/state.js +322 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-string/lib/index.js +111 -0
- package/library/esm/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/constructs.js +108 -0
- package/library/esm/node_modules/micromark/lib/constructs.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/create-tokenizer.js +576 -0
- package/library/esm/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/initialize/content.js +83 -0
- package/library/esm/node_modules/micromark/lib/initialize/content.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/initialize/document.js +361 -0
- package/library/esm/node_modules/micromark/lib/initialize/document.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/initialize/flow.js +62 -0
- package/library/esm/node_modules/micromark/lib/initialize/flow.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/initialize/text.js +213 -0
- package/library/esm/node_modules/micromark/lib/initialize/text.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/parse.js +60 -0
- package/library/esm/node_modules/micromark/lib/parse.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/postprocess.js +22 -0
- package/library/esm/node_modules/micromark/lib/postprocess.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/preprocess.js +118 -0
- package/library/esm/node_modules/micromark/lib/preprocess.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/attention.js +245 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/autolink.js +237 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/blank-line.js +65 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/block-quote.js +147 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/character-escape.js +68 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/character-reference.js +153 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-fenced.js +464 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-indented.js +181 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-text.js +228 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/content.js +167 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/definition.js +258 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +64 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/heading-atx.js +199 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/html-flow.js +880 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/html-text.js +682 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-end.js +564 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-image.js +106 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-link.js +59 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/line-ending.js +36 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/list.js +217 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/setext-underline.js +189 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/thematic-break.js +106 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-destination/index.js +210 -0
- package/library/esm/node_modules/micromark-factory-destination/index.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-label/index.js +152 -0
- package/library/esm/node_modules/micromark-factory-label/index.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-space/index.js +68 -0
- package/library/esm/node_modules/micromark-factory-space/index.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-title/index.js +162 -0
- package/library/esm/node_modules/micromark-factory-title/index.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-whitespace/index.js +48 -0
- package/library/esm/node_modules/micromark-factory-whitespace/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-character/index.js +249 -0
- package/library/esm/node_modules/micromark-util-character/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-chunked/index.js +84 -0
- package/library/esm/node_modules/micromark-util-chunked/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-classify-character/index.js +31 -0
- package/library/esm/node_modules/micromark-util-classify-character/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-combine-extensions/index.js +96 -0
- package/library/esm/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-decode-numeric-character-reference/index.js +35 -0
- package/library/esm/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-decode-string/index.js +49 -0
- package/library/esm/node_modules/micromark-util-decode-string/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-html-tag-name/index.js +96 -0
- package/library/esm/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-normalize-identifier/index.js +36 -0
- package/library/esm/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-resolve-all/index.js +35 -0
- package/library/esm/node_modules/micromark-util-resolve-all/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-sanitize-uri/index.js +67 -0
- package/library/esm/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-subtokenize/index.js +227 -0
- package/library/esm/node_modules/micromark-util-subtokenize/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +254 -0
- package/library/esm/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
- package/library/esm/node_modules/property-information/index.js +16 -0
- package/library/esm/node_modules/property-information/index.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/aria.js +64 -0
- package/library/esm/node_modules/property-information/lib/aria.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/find.js +101 -0
- package/library/esm/node_modules/property-information/lib/find.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/hast-to-react.js +33 -0
- package/library/esm/node_modules/property-information/lib/hast-to-react.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/html.js +318 -0
- package/library/esm/node_modules/property-information/lib/html.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/normalize.js +15 -0
- package/library/esm/node_modules/property-information/lib/normalize.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/svg.js +564 -0
- package/library/esm/node_modules/property-information/lib/svg.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/case-insensitive-transform.js +16 -0
- package/library/esm/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/case-sensitive-transform.js +14 -0
- package/library/esm/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/create.js +47 -0
- package/library/esm/node_modules/property-information/lib/util/create.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/defined-info.js +64 -0
- package/library/esm/node_modules/property-information/lib/util/defined-info.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/info.js +35 -0
- package/library/esm/node_modules/property-information/lib/util/info.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/merge.js +31 -0
- package/library/esm/node_modules/property-information/lib/util/merge.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/schema.js +32 -0
- package/library/esm/node_modules/property-information/lib/util/schema.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/types.js +16 -0
- package/library/esm/node_modules/property-information/lib/util/types.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/xlink.js +20 -0
- package/library/esm/node_modules/property-information/lib/xlink.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/xml.js +12 -0
- package/library/esm/node_modules/property-information/lib/xml.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/xmlns.js +12 -0
- package/library/esm/node_modules/property-information/lib/xmlns.js.map +1 -0
- package/library/esm/node_modules/react-markdown/lib/index.js +267 -0
- package/library/esm/node_modules/react-markdown/lib/index.js.map +1 -0
- package/library/esm/node_modules/react-router/dist/development/chunk-HA7DTUK3.js +1 -1
- package/library/esm/node_modules/react-router/node_modules/cookie/dist/index.js +1 -1
- package/library/esm/node_modules/remark-parse/lib/index.js +43 -0
- package/library/esm/node_modules/remark-parse/lib/index.js.map +1 -0
- package/library/esm/node_modules/remark-rehype/lib/index.js +132 -0
- package/library/esm/node_modules/remark-rehype/lib/index.js.map +1 -0
- package/library/esm/node_modules/space-separated-tokens/index.js +23 -0
- package/library/esm/node_modules/space-separated-tokens/index.js.map +1 -0
- package/library/esm/node_modules/style-mod/src/style-mod.js +175 -0
- package/library/esm/node_modules/style-mod/src/style-mod.js.map +1 -0
- package/library/esm/node_modules/style-to-js/cjs/index.js +38 -0
- package/library/esm/node_modules/style-to-js/cjs/index.js.map +1 -0
- package/library/esm/node_modules/style-to-js/cjs/utilities.js +58 -0
- package/library/esm/node_modules/style-to-js/cjs/utilities.js.map +1 -0
- package/library/esm/node_modules/style-to-object/cjs/index.js +56 -0
- package/library/esm/node_modules/style-to-object/cjs/index.js.map +1 -0
- package/library/esm/node_modules/trim-lines/index.js +72 -0
- package/library/esm/node_modules/trim-lines/index.js.map +1 -0
- package/library/esm/node_modules/trough/lib/index.js +209 -0
- package/library/esm/node_modules/trough/lib/index.js.map +1 -0
- package/library/esm/node_modules/unified/lib/callable-instance.js +47 -0
- package/library/esm/node_modules/unified/lib/callable-instance.js.map +1 -0
- package/library/esm/node_modules/unified/lib/index.js +979 -0
- package/library/esm/node_modules/unified/lib/index.js.map +1 -0
- package/library/esm/node_modules/unified/node_modules/is-plain-obj/index.js +11 -0
- package/library/esm/node_modules/unified/node_modules/is-plain-obj/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-is/lib/index.js +179 -0
- package/library/esm/node_modules/unist-util-is/lib/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-position/lib/index.js +98 -0
- package/library/esm/node_modules/unist-util-position/lib/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-stringify-position/lib/index.js +87 -0
- package/library/esm/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-visit/lib/index.js +95 -0
- package/library/esm/node_modules/unist-util-visit/lib/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-visit-parents/lib/color.js +10 -0
- package/library/esm/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
- package/library/esm/node_modules/unist-util-visit-parents/lib/index.js +188 -0
- package/library/esm/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/index.js +644 -0
- package/library/esm/node_modules/vfile/lib/index.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/minpath.browser.js +427 -0
- package/library/esm/node_modules/vfile/lib/minpath.browser.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/minproc.browser.js +11 -0
- package/library/esm/node_modules/vfile/lib/minproc.browser.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/minurl.browser.js +77 -0
- package/library/esm/node_modules/vfile/lib/minurl.browser.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/minurl.shared.js +34 -0
- package/library/esm/node_modules/vfile/lib/minurl.shared.js.map +1 -0
- package/library/esm/node_modules/vfile-message/lib/index.js +305 -0
- package/library/esm/node_modules/vfile-message/lib/index.js.map +1 -0
- package/library/esm/node_modules/w3c-keyname/index.js +122 -0
- package/library/esm/node_modules/w3c-keyname/index.js.map +1 -0
- package/library/esm/src/Form/Components/FieldCreator.js +0 -1
- package/library/esm/src/Form/Components/FieldCreator.js.map +1 -1
- package/library/esm/src/Form/Components/FieldLabel.js +13 -3
- package/library/esm/src/Form/Components/FieldLabel.js.map +1 -1
- package/library/esm/src/Form/Components/InlineMarkdown.js +15 -0
- package/library/esm/src/Form/Components/InlineMarkdown.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/Boolean.js +5 -2
- package/library/esm/src/Form/Components/Inputs/Boolean.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/Constant.js +18 -0
- package/library/esm/src/Form/Components/Inputs/Constant.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/GeoJSONInputLoader.js +1 -1
- package/library/esm/src/Form/Components/Inputs/Geometry.js +290 -329
- package/library/esm/src/Form/Components/Inputs/Geometry.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/JSON.js +132 -0
- package/library/esm/src/Form/Components/Inputs/JSON.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/JSONInputLoader.js +19 -0
- package/library/esm/src/Form/Components/Inputs/JSONInputLoader.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/Number.js +78 -8
- package/library/esm/src/Form/Components/Inputs/Number.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/OneOfInput.js +9 -0
- package/library/esm/src/Form/Components/Inputs/OneOfInput.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/String.js +9 -3
- package/library/esm/src/Form/Components/Inputs/String.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/inputMap.js +7 -3
- package/library/esm/src/Form/Components/Inputs/inputMap.js.map +1 -1
- package/library/esm/src/Form/Creator/FormCreator.js +42 -49
- package/library/esm/src/Form/Creator/FormCreator.js.map +1 -1
- package/library/esm/src/Form/Creator/FormHeader.js +7 -5
- package/library/esm/src/Form/Creator/FormHeader.js.map +1 -1
- package/library/esm/src/Form/Creator/Page.js +4 -3
- package/library/esm/src/Form/Creator/Page.js.map +1 -1
- package/library/esm/src/Form/Manage/CopyableJSONOutput.js +41 -0
- package/library/esm/src/Form/Manage/CopyableJSONOutput.js.map +1 -0
- package/library/esm/src/Form/helpers.js +12 -2
- package/library/esm/src/Form/helpers.js.map +1 -1
- package/library/esm/src/Form/schemaToFormHelpers.js +209 -18
- package/library/esm/src/Form/schemaToFormHelpers.js.map +1 -1
- package/library/esm/src/library.js +2 -2
- package/package.json +8 -1
- package/library/esm/src/Form/Components/Inputs/JSONString.js +0 -34
- package/library/esm/src/Form/Components/Inputs/JSONString.js.map +0 -1
@@ -0,0 +1,427 @@
|
|
1
|
+
// A derivative work based on:
|
2
|
+
// <https://github.com/browserify/path-browserify>.
|
3
|
+
// Which is licensed:
|
4
|
+
//
|
5
|
+
// MIT License
|
6
|
+
//
|
7
|
+
// Copyright (c) 2013 James Halliday
|
8
|
+
//
|
9
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy of
|
10
|
+
// this software and associated documentation files (the "Software"), to deal in
|
11
|
+
// the Software without restriction, including without limitation the rights to
|
12
|
+
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
13
|
+
// the Software, and to permit persons to whom the Software is furnished to do so,
|
14
|
+
// subject to the following conditions:
|
15
|
+
//
|
16
|
+
// The above copyright notice and this permission notice shall be included in all
|
17
|
+
// copies or substantial portions of the Software.
|
18
|
+
//
|
19
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
21
|
+
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
22
|
+
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
23
|
+
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
24
|
+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
// A derivative work based on:
|
26
|
+
//
|
27
|
+
// Parts of that are extracted from Node’s internal `path` module:
|
28
|
+
// <https://github.com/nodejs/node/blob/master/lib/path.js>.
|
29
|
+
// Which is licensed:
|
30
|
+
//
|
31
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
32
|
+
//
|
33
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
34
|
+
// copy of this software and associated documentation files (the
|
35
|
+
// "Software"), to deal in the Software without restriction, including
|
36
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
37
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
38
|
+
// persons to whom the Software is furnished to do so, subject to the
|
39
|
+
// following conditions:
|
40
|
+
//
|
41
|
+
// The above copyright notice and this permission notice shall be included
|
42
|
+
// in all copies or substantial portions of the Software.
|
43
|
+
//
|
44
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
45
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
46
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
47
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
48
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
49
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
50
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
51
|
+
|
52
|
+
const minpath = {basename, dirname, extname, join, sep: '/'};
|
53
|
+
|
54
|
+
/* eslint-disable max-depth, complexity */
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Get the basename from a path.
|
58
|
+
*
|
59
|
+
* @param {string} path
|
60
|
+
* File path.
|
61
|
+
* @param {string | null | undefined} [extname]
|
62
|
+
* Extension to strip.
|
63
|
+
* @returns {string}
|
64
|
+
* Stem or basename.
|
65
|
+
*/
|
66
|
+
function basename(path, extname) {
|
67
|
+
if (extname !== undefined && typeof extname !== 'string') {
|
68
|
+
throw new TypeError('"ext" argument must be a string')
|
69
|
+
}
|
70
|
+
|
71
|
+
assertPath(path);
|
72
|
+
let start = 0;
|
73
|
+
let end = -1;
|
74
|
+
let index = path.length;
|
75
|
+
/** @type {boolean | undefined} */
|
76
|
+
let seenNonSlash;
|
77
|
+
|
78
|
+
if (
|
79
|
+
extname === undefined ||
|
80
|
+
extname.length === 0 ||
|
81
|
+
extname.length > path.length
|
82
|
+
) {
|
83
|
+
while (index--) {
|
84
|
+
if (path.codePointAt(index) === 47 /* `/` */) {
|
85
|
+
// If we reached a path separator that was not part of a set of path
|
86
|
+
// separators at the end of the string, stop now.
|
87
|
+
if (seenNonSlash) {
|
88
|
+
start = index + 1;
|
89
|
+
break
|
90
|
+
}
|
91
|
+
} else if (end < 0) {
|
92
|
+
// We saw the first non-path separator, mark this as the end of our
|
93
|
+
// path component.
|
94
|
+
seenNonSlash = true;
|
95
|
+
end = index + 1;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
return end < 0 ? '' : path.slice(start, end)
|
100
|
+
}
|
101
|
+
|
102
|
+
if (extname === path) {
|
103
|
+
return ''
|
104
|
+
}
|
105
|
+
|
106
|
+
let firstNonSlashEnd = -1;
|
107
|
+
let extnameIndex = extname.length - 1;
|
108
|
+
|
109
|
+
while (index--) {
|
110
|
+
if (path.codePointAt(index) === 47 /* `/` */) {
|
111
|
+
// If we reached a path separator that was not part of a set of path
|
112
|
+
// separators at the end of the string, stop now.
|
113
|
+
if (seenNonSlash) {
|
114
|
+
start = index + 1;
|
115
|
+
break
|
116
|
+
}
|
117
|
+
} else {
|
118
|
+
if (firstNonSlashEnd < 0) {
|
119
|
+
// We saw the first non-path separator, remember this index in case
|
120
|
+
// we need it if the extension ends up not matching.
|
121
|
+
seenNonSlash = true;
|
122
|
+
firstNonSlashEnd = index + 1;
|
123
|
+
}
|
124
|
+
|
125
|
+
if (extnameIndex > -1) {
|
126
|
+
// Try to match the explicit extension.
|
127
|
+
if (path.codePointAt(index) === extname.codePointAt(extnameIndex--)) {
|
128
|
+
if (extnameIndex < 0) {
|
129
|
+
// We matched the extension, so mark this as the end of our path
|
130
|
+
// component
|
131
|
+
end = index;
|
132
|
+
}
|
133
|
+
} else {
|
134
|
+
// Extension does not match, so our result is the entire path
|
135
|
+
// component
|
136
|
+
extnameIndex = -1;
|
137
|
+
end = firstNonSlashEnd;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
if (start === end) {
|
144
|
+
end = firstNonSlashEnd;
|
145
|
+
} else if (end < 0) {
|
146
|
+
end = path.length;
|
147
|
+
}
|
148
|
+
|
149
|
+
return path.slice(start, end)
|
150
|
+
}
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Get the dirname from a path.
|
154
|
+
*
|
155
|
+
* @param {string} path
|
156
|
+
* File path.
|
157
|
+
* @returns {string}
|
158
|
+
* File path.
|
159
|
+
*/
|
160
|
+
function dirname(path) {
|
161
|
+
assertPath(path);
|
162
|
+
|
163
|
+
if (path.length === 0) {
|
164
|
+
return '.'
|
165
|
+
}
|
166
|
+
|
167
|
+
let end = -1;
|
168
|
+
let index = path.length;
|
169
|
+
/** @type {boolean | undefined} */
|
170
|
+
let unmatchedSlash;
|
171
|
+
|
172
|
+
// Prefix `--` is important to not run on `0`.
|
173
|
+
while (--index) {
|
174
|
+
if (path.codePointAt(index) === 47 /* `/` */) {
|
175
|
+
if (unmatchedSlash) {
|
176
|
+
end = index;
|
177
|
+
break
|
178
|
+
}
|
179
|
+
} else if (!unmatchedSlash) {
|
180
|
+
// We saw the first non-path separator
|
181
|
+
unmatchedSlash = true;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
return end < 0
|
186
|
+
? path.codePointAt(0) === 47 /* `/` */
|
187
|
+
? '/'
|
188
|
+
: '.'
|
189
|
+
: end === 1 && path.codePointAt(0) === 47 /* `/` */
|
190
|
+
? '//'
|
191
|
+
: path.slice(0, end)
|
192
|
+
}
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Get an extname from a path.
|
196
|
+
*
|
197
|
+
* @param {string} path
|
198
|
+
* File path.
|
199
|
+
* @returns {string}
|
200
|
+
* Extname.
|
201
|
+
*/
|
202
|
+
function extname(path) {
|
203
|
+
assertPath(path);
|
204
|
+
|
205
|
+
let index = path.length;
|
206
|
+
|
207
|
+
let end = -1;
|
208
|
+
let startPart = 0;
|
209
|
+
let startDot = -1;
|
210
|
+
// Track the state of characters (if any) we see before our first dot and
|
211
|
+
// after any path separator we find.
|
212
|
+
let preDotState = 0;
|
213
|
+
/** @type {boolean | undefined} */
|
214
|
+
let unmatchedSlash;
|
215
|
+
|
216
|
+
while (index--) {
|
217
|
+
const code = path.codePointAt(index);
|
218
|
+
|
219
|
+
if (code === 47 /* `/` */) {
|
220
|
+
// If we reached a path separator that was not part of a set of path
|
221
|
+
// separators at the end of the string, stop now.
|
222
|
+
if (unmatchedSlash) {
|
223
|
+
startPart = index + 1;
|
224
|
+
break
|
225
|
+
}
|
226
|
+
|
227
|
+
continue
|
228
|
+
}
|
229
|
+
|
230
|
+
if (end < 0) {
|
231
|
+
// We saw the first non-path separator, mark this as the end of our
|
232
|
+
// extension.
|
233
|
+
unmatchedSlash = true;
|
234
|
+
end = index + 1;
|
235
|
+
}
|
236
|
+
|
237
|
+
if (code === 46 /* `.` */) {
|
238
|
+
// If this is our first dot, mark it as the start of our extension.
|
239
|
+
if (startDot < 0) {
|
240
|
+
startDot = index;
|
241
|
+
} else if (preDotState !== 1) {
|
242
|
+
preDotState = 1;
|
243
|
+
}
|
244
|
+
} else if (startDot > -1) {
|
245
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
246
|
+
// have a good chance at having a non-empty extension.
|
247
|
+
preDotState = -1;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
if (
|
252
|
+
startDot < 0 ||
|
253
|
+
end < 0 ||
|
254
|
+
// We saw a non-dot character immediately before the dot.
|
255
|
+
preDotState === 0 ||
|
256
|
+
// The (right-most) trimmed path component is exactly `..`.
|
257
|
+
(preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)
|
258
|
+
) {
|
259
|
+
return ''
|
260
|
+
}
|
261
|
+
|
262
|
+
return path.slice(startDot, end)
|
263
|
+
}
|
264
|
+
|
265
|
+
/**
|
266
|
+
* Join segments from a path.
|
267
|
+
*
|
268
|
+
* @param {Array<string>} segments
|
269
|
+
* Path segments.
|
270
|
+
* @returns {string}
|
271
|
+
* File path.
|
272
|
+
*/
|
273
|
+
function join(...segments) {
|
274
|
+
let index = -1;
|
275
|
+
/** @type {string | undefined} */
|
276
|
+
let joined;
|
277
|
+
|
278
|
+
while (++index < segments.length) {
|
279
|
+
assertPath(segments[index]);
|
280
|
+
|
281
|
+
if (segments[index]) {
|
282
|
+
joined =
|
283
|
+
joined === undefined ? segments[index] : joined + '/' + segments[index];
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
return joined === undefined ? '.' : normalize(joined)
|
288
|
+
}
|
289
|
+
|
290
|
+
/**
|
291
|
+
* Normalize a basic file path.
|
292
|
+
*
|
293
|
+
* @param {string} path
|
294
|
+
* File path.
|
295
|
+
* @returns {string}
|
296
|
+
* File path.
|
297
|
+
*/
|
298
|
+
// Note: `normalize` is not exposed as `path.normalize`, so some code is
|
299
|
+
// manually removed from it.
|
300
|
+
function normalize(path) {
|
301
|
+
assertPath(path);
|
302
|
+
|
303
|
+
const absolute = path.codePointAt(0) === 47; /* `/` */
|
304
|
+
|
305
|
+
// Normalize the path according to POSIX rules.
|
306
|
+
let value = normalizeString(path, !absolute);
|
307
|
+
|
308
|
+
if (value.length === 0 && !absolute) {
|
309
|
+
value = '.';
|
310
|
+
}
|
311
|
+
|
312
|
+
if (value.length > 0 && path.codePointAt(path.length - 1) === 47 /* / */) {
|
313
|
+
value += '/';
|
314
|
+
}
|
315
|
+
|
316
|
+
return absolute ? '/' + value : value
|
317
|
+
}
|
318
|
+
|
319
|
+
/**
|
320
|
+
* Resolve `.` and `..` elements in a path with directory names.
|
321
|
+
*
|
322
|
+
* @param {string} path
|
323
|
+
* File path.
|
324
|
+
* @param {boolean} allowAboveRoot
|
325
|
+
* Whether `..` can move above root.
|
326
|
+
* @returns {string}
|
327
|
+
* File path.
|
328
|
+
*/
|
329
|
+
function normalizeString(path, allowAboveRoot) {
|
330
|
+
let result = '';
|
331
|
+
let lastSegmentLength = 0;
|
332
|
+
let lastSlash = -1;
|
333
|
+
let dots = 0;
|
334
|
+
let index = -1;
|
335
|
+
/** @type {number | undefined} */
|
336
|
+
let code;
|
337
|
+
/** @type {number} */
|
338
|
+
let lastSlashIndex;
|
339
|
+
|
340
|
+
while (++index <= path.length) {
|
341
|
+
if (index < path.length) {
|
342
|
+
code = path.codePointAt(index);
|
343
|
+
} else if (code === 47 /* `/` */) {
|
344
|
+
break
|
345
|
+
} else {
|
346
|
+
code = 47; /* `/` */
|
347
|
+
}
|
348
|
+
|
349
|
+
if (code === 47 /* `/` */) {
|
350
|
+
if (lastSlash === index - 1 || dots === 1) ; else if (lastSlash !== index - 1 && dots === 2) {
|
351
|
+
if (
|
352
|
+
result.length < 2 ||
|
353
|
+
lastSegmentLength !== 2 ||
|
354
|
+
result.codePointAt(result.length - 1) !== 46 /* `.` */ ||
|
355
|
+
result.codePointAt(result.length - 2) !== 46 /* `.` */
|
356
|
+
) {
|
357
|
+
if (result.length > 2) {
|
358
|
+
lastSlashIndex = result.lastIndexOf('/');
|
359
|
+
|
360
|
+
if (lastSlashIndex !== result.length - 1) {
|
361
|
+
if (lastSlashIndex < 0) {
|
362
|
+
result = '';
|
363
|
+
lastSegmentLength = 0;
|
364
|
+
} else {
|
365
|
+
result = result.slice(0, lastSlashIndex);
|
366
|
+
lastSegmentLength = result.length - 1 - result.lastIndexOf('/');
|
367
|
+
}
|
368
|
+
|
369
|
+
lastSlash = index;
|
370
|
+
dots = 0;
|
371
|
+
continue
|
372
|
+
}
|
373
|
+
} else if (result.length > 0) {
|
374
|
+
result = '';
|
375
|
+
lastSegmentLength = 0;
|
376
|
+
lastSlash = index;
|
377
|
+
dots = 0;
|
378
|
+
continue
|
379
|
+
}
|
380
|
+
}
|
381
|
+
|
382
|
+
if (allowAboveRoot) {
|
383
|
+
result = result.length > 0 ? result + '/..' : '..';
|
384
|
+
lastSegmentLength = 2;
|
385
|
+
}
|
386
|
+
} else {
|
387
|
+
if (result.length > 0) {
|
388
|
+
result += '/' + path.slice(lastSlash + 1, index);
|
389
|
+
} else {
|
390
|
+
result = path.slice(lastSlash + 1, index);
|
391
|
+
}
|
392
|
+
|
393
|
+
lastSegmentLength = index - lastSlash - 1;
|
394
|
+
}
|
395
|
+
|
396
|
+
lastSlash = index;
|
397
|
+
dots = 0;
|
398
|
+
} else if (code === 46 /* `.` */ && dots > -1) {
|
399
|
+
dots++;
|
400
|
+
} else {
|
401
|
+
dots = -1;
|
402
|
+
}
|
403
|
+
}
|
404
|
+
|
405
|
+
return result
|
406
|
+
}
|
407
|
+
|
408
|
+
/**
|
409
|
+
* Make sure `path` is a string.
|
410
|
+
*
|
411
|
+
* @param {string} path
|
412
|
+
* File path.
|
413
|
+
* @returns {asserts path is string}
|
414
|
+
* Nothing.
|
415
|
+
*/
|
416
|
+
function assertPath(path) {
|
417
|
+
if (typeof path !== 'string') {
|
418
|
+
throw new TypeError(
|
419
|
+
'Path must be a string. Received ' + JSON.stringify(path)
|
420
|
+
)
|
421
|
+
}
|
422
|
+
}
|
423
|
+
|
424
|
+
/* eslint-enable max-depth, complexity */
|
425
|
+
|
426
|
+
export { minpath };
|
427
|
+
//# sourceMappingURL=minpath.browser.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"minpath.browser.js","sources":["../../../../../node_modules/vfile/lib/minpath.browser.js"],"sourcesContent":["// A derivative work based on:\n// <https://github.com/browserify/path-browserify>.\n// Which is licensed:\n//\n// MIT License\n//\n// Copyright (c) 2013 James Halliday\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of\n// this software and associated documentation files (the \"Software\"), to deal in\n// the Software without restriction, including without limitation the rights to\n// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n// the Software, and to permit persons to whom the Software is furnished to do so,\n// subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A derivative work based on:\n//\n// Parts of that are extracted from Node’s internal `path` module:\n// <https://github.com/nodejs/node/blob/master/lib/path.js>.\n// Which is licensed:\n//\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nexport const minpath = {basename, dirname, extname, join, sep: '/'}\n\n/* eslint-disable max-depth, complexity */\n\n/**\n * Get the basename from a path.\n *\n * @param {string} path\n * File path.\n * @param {string | null | undefined} [extname]\n * Extension to strip.\n * @returns {string}\n * Stem or basename.\n */\nfunction basename(path, extname) {\n if (extname !== undefined && typeof extname !== 'string') {\n throw new TypeError('\"ext\" argument must be a string')\n }\n\n assertPath(path)\n let start = 0\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let seenNonSlash\n\n if (\n extname === undefined ||\n extname.length === 0 ||\n extname.length > path.length\n ) {\n while (index--) {\n if (path.codePointAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // path component.\n seenNonSlash = true\n end = index + 1\n }\n }\n\n return end < 0 ? '' : path.slice(start, end)\n }\n\n if (extname === path) {\n return ''\n }\n\n let firstNonSlashEnd = -1\n let extnameIndex = extname.length - 1\n\n while (index--) {\n if (path.codePointAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else {\n if (firstNonSlashEnd < 0) {\n // We saw the first non-path separator, remember this index in case\n // we need it if the extension ends up not matching.\n seenNonSlash = true\n firstNonSlashEnd = index + 1\n }\n\n if (extnameIndex > -1) {\n // Try to match the explicit extension.\n if (path.codePointAt(index) === extname.codePointAt(extnameIndex--)) {\n if (extnameIndex < 0) {\n // We matched the extension, so mark this as the end of our path\n // component\n end = index\n }\n } else {\n // Extension does not match, so our result is the entire path\n // component\n extnameIndex = -1\n end = firstNonSlashEnd\n }\n }\n }\n }\n\n if (start === end) {\n end = firstNonSlashEnd\n } else if (end < 0) {\n end = path.length\n }\n\n return path.slice(start, end)\n}\n\n/**\n * Get the dirname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\nfunction dirname(path) {\n assertPath(path)\n\n if (path.length === 0) {\n return '.'\n }\n\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n // Prefix `--` is important to not run on `0`.\n while (--index) {\n if (path.codePointAt(index) === 47 /* `/` */) {\n if (unmatchedSlash) {\n end = index\n break\n }\n } else if (!unmatchedSlash) {\n // We saw the first non-path separator\n unmatchedSlash = true\n }\n }\n\n return end < 0\n ? path.codePointAt(0) === 47 /* `/` */\n ? '/'\n : '.'\n : end === 1 && path.codePointAt(0) === 47 /* `/` */\n ? '//'\n : path.slice(0, end)\n}\n\n/**\n * Get an extname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * Extname.\n */\nfunction extname(path) {\n assertPath(path)\n\n let index = path.length\n\n let end = -1\n let startPart = 0\n let startDot = -1\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find.\n let preDotState = 0\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n while (index--) {\n const code = path.codePointAt(index)\n\n if (code === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (unmatchedSlash) {\n startPart = index + 1\n break\n }\n\n continue\n }\n\n if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // extension.\n unmatchedSlash = true\n end = index + 1\n }\n\n if (code === 46 /* `.` */) {\n // If this is our first dot, mark it as the start of our extension.\n if (startDot < 0) {\n startDot = index\n } else if (preDotState !== 1) {\n preDotState = 1\n }\n } else if (startDot > -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension.\n preDotState = -1\n }\n }\n\n if (\n startDot < 0 ||\n end < 0 ||\n // We saw a non-dot character immediately before the dot.\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly `..`.\n (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)\n ) {\n return ''\n }\n\n return path.slice(startDot, end)\n}\n\n/**\n * Join segments from a path.\n *\n * @param {Array<string>} segments\n * Path segments.\n * @returns {string}\n * File path.\n */\nfunction join(...segments) {\n let index = -1\n /** @type {string | undefined} */\n let joined\n\n while (++index < segments.length) {\n assertPath(segments[index])\n\n if (segments[index]) {\n joined =\n joined === undefined ? segments[index] : joined + '/' + segments[index]\n }\n }\n\n return joined === undefined ? '.' : normalize(joined)\n}\n\n/**\n * Normalize a basic file path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\n// Note: `normalize` is not exposed as `path.normalize`, so some code is\n// manually removed from it.\nfunction normalize(path) {\n assertPath(path)\n\n const absolute = path.codePointAt(0) === 47 /* `/` */\n\n // Normalize the path according to POSIX rules.\n let value = normalizeString(path, !absolute)\n\n if (value.length === 0 && !absolute) {\n value = '.'\n }\n\n if (value.length > 0 && path.codePointAt(path.length - 1) === 47 /* / */) {\n value += '/'\n }\n\n return absolute ? '/' + value : value\n}\n\n/**\n * Resolve `.` and `..` elements in a path with directory names.\n *\n * @param {string} path\n * File path.\n * @param {boolean} allowAboveRoot\n * Whether `..` can move above root.\n * @returns {string}\n * File path.\n */\nfunction normalizeString(path, allowAboveRoot) {\n let result = ''\n let lastSegmentLength = 0\n let lastSlash = -1\n let dots = 0\n let index = -1\n /** @type {number | undefined} */\n let code\n /** @type {number} */\n let lastSlashIndex\n\n while (++index <= path.length) {\n if (index < path.length) {\n code = path.codePointAt(index)\n } else if (code === 47 /* `/` */) {\n break\n } else {\n code = 47 /* `/` */\n }\n\n if (code === 47 /* `/` */) {\n if (lastSlash === index - 1 || dots === 1) {\n // Empty.\n } else if (lastSlash !== index - 1 && dots === 2) {\n if (\n result.length < 2 ||\n lastSegmentLength !== 2 ||\n result.codePointAt(result.length - 1) !== 46 /* `.` */ ||\n result.codePointAt(result.length - 2) !== 46 /* `.` */\n ) {\n if (result.length > 2) {\n lastSlashIndex = result.lastIndexOf('/')\n\n if (lastSlashIndex !== result.length - 1) {\n if (lastSlashIndex < 0) {\n result = ''\n lastSegmentLength = 0\n } else {\n result = result.slice(0, lastSlashIndex)\n lastSegmentLength = result.length - 1 - result.lastIndexOf('/')\n }\n\n lastSlash = index\n dots = 0\n continue\n }\n } else if (result.length > 0) {\n result = ''\n lastSegmentLength = 0\n lastSlash = index\n dots = 0\n continue\n }\n }\n\n if (allowAboveRoot) {\n result = result.length > 0 ? result + '/..' : '..'\n lastSegmentLength = 2\n }\n } else {\n if (result.length > 0) {\n result += '/' + path.slice(lastSlash + 1, index)\n } else {\n result = path.slice(lastSlash + 1, index)\n }\n\n lastSegmentLength = index - lastSlash - 1\n }\n\n lastSlash = index\n dots = 0\n } else if (code === 46 /* `.` */ && dots > -1) {\n dots++\n } else {\n dots = -1\n }\n }\n\n return result\n}\n\n/**\n * Make sure `path` is a string.\n *\n * @param {string} path\n * File path.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path) {\n if (typeof path !== 'string') {\n throw new TypeError(\n 'Path must be a string. Received ' + JSON.stringify(path)\n )\n }\n}\n\n/* eslint-enable max-depth, complexity */\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,MAAM,GAAG,CAAC,EAAE;AAC/B,UAAU,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,EAAE,KAAK;AACzD,SAAS,MAAM;AACf,UAAU,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,EAAE,KAAK;AAClD;;AAEA,QAAQ,iBAAiB,GAAG,KAAK,GAAG,SAAS,GAAG;AAChD;;AAEA,MAAM,SAAS,GAAG;AAClB,MAAM,IAAI,GAAG;AACb,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,cAAc,IAAI,GAAG,EAAE,EAAE;AACnD,MAAM,IAAI;AACV,KAAK,MAAM;AACX,MAAM,IAAI,GAAG;AACb;AACA;;AAEA,EAAE,OAAO;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,UAAU,CAAC,IAAI,EAAE;AAC1B,EAAE,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAChC,IAAI,MAAM,IAAI,SAAS;AACvB,MAAM,kCAAkC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI;AAC9D;AACA;AACA;;AAEA;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// Somewhat based on:
|
2
|
+
// <https://github.com/defunctzombie/node-process/blob/master/browser.js>.
|
3
|
+
// But I don’t think one tiny line of code can be copyrighted. 😅
|
4
|
+
const minproc = {cwd};
|
5
|
+
|
6
|
+
function cwd() {
|
7
|
+
return '/'
|
8
|
+
}
|
9
|
+
|
10
|
+
export { minproc };
|
11
|
+
//# sourceMappingURL=minproc.browser.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"minproc.browser.js","sources":["../../../../../node_modules/vfile/lib/minproc.browser.js"],"sourcesContent":["// Somewhat based on:\n// <https://github.com/defunctzombie/node-process/blob/master/browser.js>.\n// But I don’t think one tiny line of code can be copyrighted. 😅\nexport const minproc = {cwd}\n\nfunction cwd() {\n return '/'\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACY,MAAC,OAAO,GAAG,CAAC,GAAG;;AAE3B,SAAS,GAAG,GAAG;AACf,EAAE,OAAO;AACT;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { isUrl } from './minurl.shared.js';
|
2
|
+
|
3
|
+
// See: <https://github.com/nodejs/node/blob/6a3403c/lib/internal/url.js>
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @param {URL | string} path
|
7
|
+
* File URL.
|
8
|
+
* @returns {string}
|
9
|
+
* File URL.
|
10
|
+
*/
|
11
|
+
function urlToPath(path) {
|
12
|
+
if (typeof path === 'string') {
|
13
|
+
path = new URL(path);
|
14
|
+
} else if (!isUrl(path)) {
|
15
|
+
/** @type {NodeJS.ErrnoException} */
|
16
|
+
const error = new TypeError(
|
17
|
+
'The "path" argument must be of type string or an instance of URL. Received `' +
|
18
|
+
path +
|
19
|
+
'`'
|
20
|
+
);
|
21
|
+
error.code = 'ERR_INVALID_ARG_TYPE';
|
22
|
+
throw error
|
23
|
+
}
|
24
|
+
|
25
|
+
if (path.protocol !== 'file:') {
|
26
|
+
/** @type {NodeJS.ErrnoException} */
|
27
|
+
const error = new TypeError('The URL must be of scheme file');
|
28
|
+
error.code = 'ERR_INVALID_URL_SCHEME';
|
29
|
+
throw error
|
30
|
+
}
|
31
|
+
|
32
|
+
return getPathFromURLPosix(path)
|
33
|
+
}
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Get a path from a POSIX URL.
|
37
|
+
*
|
38
|
+
* @param {URL} url
|
39
|
+
* URL.
|
40
|
+
* @returns {string}
|
41
|
+
* File path.
|
42
|
+
*/
|
43
|
+
function getPathFromURLPosix(url) {
|
44
|
+
if (url.hostname !== '') {
|
45
|
+
/** @type {NodeJS.ErrnoException} */
|
46
|
+
const error = new TypeError(
|
47
|
+
'File URL host must be "localhost" or empty on darwin'
|
48
|
+
);
|
49
|
+
error.code = 'ERR_INVALID_FILE_URL_HOST';
|
50
|
+
throw error
|
51
|
+
}
|
52
|
+
|
53
|
+
const pathname = url.pathname;
|
54
|
+
let index = -1;
|
55
|
+
|
56
|
+
while (++index < pathname.length) {
|
57
|
+
if (
|
58
|
+
pathname.codePointAt(index) === 37 /* `%` */ &&
|
59
|
+
pathname.codePointAt(index + 1) === 50 /* `2` */
|
60
|
+
) {
|
61
|
+
const third = pathname.codePointAt(index + 2);
|
62
|
+
if (third === 70 /* `F` */ || third === 102 /* `f` */) {
|
63
|
+
/** @type {NodeJS.ErrnoException} */
|
64
|
+
const error = new TypeError(
|
65
|
+
'File URL path must not include encoded / characters'
|
66
|
+
);
|
67
|
+
error.code = 'ERR_INVALID_FILE_URL_PATH';
|
68
|
+
throw error
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
return decodeURIComponent(pathname)
|
74
|
+
}
|
75
|
+
|
76
|
+
export { isUrl, urlToPath };
|
77
|
+
//# sourceMappingURL=minurl.browser.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"minurl.browser.js","sources":["../../../../../node_modules/vfile/lib/minurl.browser.js"],"sourcesContent":["import {isUrl} from './minurl.shared.js'\n\nexport {isUrl} from './minurl.shared.js'\n\n// See: <https://github.com/nodejs/node/blob/6a3403c/lib/internal/url.js>\n\n/**\n * @param {URL | string} path\n * File URL.\n * @returns {string}\n * File URL.\n */\nexport function urlToPath(path) {\n if (typeof path === 'string') {\n path = new URL(path)\n } else if (!isUrl(path)) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'The \"path\" argument must be of type string or an instance of URL. Received `' +\n path +\n '`'\n )\n error.code = 'ERR_INVALID_ARG_TYPE'\n throw error\n }\n\n if (path.protocol !== 'file:') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError('The URL must be of scheme file')\n error.code = 'ERR_INVALID_URL_SCHEME'\n throw error\n }\n\n return getPathFromURLPosix(path)\n}\n\n/**\n * Get a path from a POSIX URL.\n *\n * @param {URL} url\n * URL.\n * @returns {string}\n * File path.\n */\nfunction getPathFromURLPosix(url) {\n if (url.hostname !== '') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL host must be \"localhost\" or empty on darwin'\n )\n error.code = 'ERR_INVALID_FILE_URL_HOST'\n throw error\n }\n\n const pathname = url.pathname\n let index = -1\n\n while (++index < pathname.length) {\n if (\n pathname.codePointAt(index) === 37 /* `%` */ &&\n pathname.codePointAt(index + 1) === 50 /* `2` */\n ) {\n const third = pathname.codePointAt(index + 2)\n if (third === 70 /* `F` */ || third === 102 /* `f` */) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL path must not include encoded / characters'\n )\n error.code = 'ERR_INVALID_FILE_URL_PATH'\n throw error\n }\n }\n }\n\n return decodeURIComponent(pathname)\n}\n"],"names":[],"mappings":";;AAIA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAC,IAAI,EAAE;AAChC,EAAE,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAChC,IAAI,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI;AACvB,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;AAC3B;AACA,IAAI,MAAM,KAAK,GAAG,IAAI,SAAS;AAC/B,MAAM,8EAA8E;AACpF,QAAQ,IAAI;AACZ,QAAQ;AACR;AACA,IAAI,KAAK,CAAC,IAAI,GAAG;AACjB,IAAI,MAAM;AACV;;AAEA,EAAE,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO,EAAE;AACjC;AACA,IAAI,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,gCAAgC;AAChE,IAAI,KAAK,CAAC,IAAI,GAAG;AACjB,IAAI,MAAM;AACV;;AAEA,EAAE,OAAO,mBAAmB,CAAC,IAAI;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,mBAAmB,CAAC,GAAG,EAAE;AAClC,EAAE,IAAI,GAAG,CAAC,QAAQ,KAAK,EAAE,EAAE;AAC3B;AACA,IAAI,MAAM,KAAK,GAAG,IAAI,SAAS;AAC/B,MAAM;AACN;AACA,IAAI,KAAK,CAAC,IAAI,GAAG;AACjB,IAAI,MAAM;AACV;;AAEA,EAAE,MAAM,QAAQ,GAAG,GAAG,CAAC;AACvB,EAAE,IAAI,KAAK,GAAG;;AAEd,EAAE,OAAO,EAAE,KAAK,GAAG,QAAQ,CAAC,MAAM,EAAE;AACpC,IAAI;AACJ,MAAM,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE;AACxC,MAAM,QAAQ,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE;AAC5C,MAAM;AACN,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC;AAClD,MAAM,IAAI,KAAK,KAAK,EAAE,cAAc,KAAK,KAAK,GAAG,YAAY;AAC7D;AACA,QAAQ,MAAM,KAAK,GAAG,IAAI,SAAS;AACnC,UAAU;AACV;AACA,QAAQ,KAAK,CAAC,IAAI,GAAG;AACrB,QAAQ,MAAM;AACd;AACA;AACA;;AAEA,EAAE,OAAO,kBAAkB,CAAC,QAAQ;AACpC;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/**
|
2
|
+
* Checks if a value has the shape of a WHATWG URL object.
|
3
|
+
*
|
4
|
+
* Using a symbol or instanceof would not be able to recognize URL objects
|
5
|
+
* coming from other implementations (e.g. in Electron), so instead we are
|
6
|
+
* checking some well known properties for a lack of a better test.
|
7
|
+
*
|
8
|
+
* We use `href` and `protocol` as they are the only properties that are
|
9
|
+
* easy to retrieve and calculate due to the lazy nature of the getters.
|
10
|
+
*
|
11
|
+
* We check for auth attribute to distinguish legacy url instance with
|
12
|
+
* WHATWG URL instance.
|
13
|
+
*
|
14
|
+
* @param {unknown} fileUrlOrPath
|
15
|
+
* File path or URL.
|
16
|
+
* @returns {fileUrlOrPath is URL}
|
17
|
+
* Whether it’s a URL.
|
18
|
+
*/
|
19
|
+
// From: <https://github.com/nodejs/node/blob/6a3403c/lib/internal/url.js#L720>
|
20
|
+
function isUrl(fileUrlOrPath) {
|
21
|
+
return Boolean(
|
22
|
+
fileUrlOrPath !== null &&
|
23
|
+
typeof fileUrlOrPath === 'object' &&
|
24
|
+
'href' in fileUrlOrPath &&
|
25
|
+
fileUrlOrPath.href &&
|
26
|
+
'protocol' in fileUrlOrPath &&
|
27
|
+
fileUrlOrPath.protocol &&
|
28
|
+
// @ts-expect-error: indexing is fine.
|
29
|
+
fileUrlOrPath.auth === undefined
|
30
|
+
)
|
31
|
+
}
|
32
|
+
|
33
|
+
export { isUrl };
|
34
|
+
//# sourceMappingURL=minurl.shared.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"minurl.shared.js","sources":["../../../../../node_modules/vfile/lib/minurl.shared.js"],"sourcesContent":["/**\n * Checks if a value has the shape of a WHATWG URL object.\n *\n * Using a symbol or instanceof would not be able to recognize URL objects\n * coming from other implementations (e.g. in Electron), so instead we are\n * checking some well known properties for a lack of a better test.\n *\n * We use `href` and `protocol` as they are the only properties that are\n * easy to retrieve and calculate due to the lazy nature of the getters.\n *\n * We check for auth attribute to distinguish legacy url instance with\n * WHATWG URL instance.\n *\n * @param {unknown} fileUrlOrPath\n * File path or URL.\n * @returns {fileUrlOrPath is URL}\n * Whether it’s a URL.\n */\n// From: <https://github.com/nodejs/node/blob/6a3403c/lib/internal/url.js#L720>\nexport function isUrl(fileUrlOrPath) {\n return Boolean(\n fileUrlOrPath !== null &&\n typeof fileUrlOrPath === 'object' &&\n 'href' in fileUrlOrPath &&\n fileUrlOrPath.href &&\n 'protocol' in fileUrlOrPath &&\n fileUrlOrPath.protocol &&\n // @ts-expect-error: indexing is fine.\n fileUrlOrPath.auth === undefined\n )\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,KAAK,CAAC,aAAa,EAAE;AACrC,EAAE,OAAO,OAAO;AAChB,IAAI,aAAa,KAAK,IAAI;AAC1B,MAAM,OAAO,aAAa,KAAK,QAAQ;AACvC,MAAM,MAAM,IAAI,aAAa;AAC7B,MAAM,aAAa,CAAC,IAAI;AACxB,MAAM,UAAU,IAAI,aAAa;AACjC,MAAM,aAAa,CAAC,QAAQ;AAC5B;AACA,MAAM,aAAa,CAAC,IAAI,KAAK;AAC7B;AACA;;;;","x_google_ignoreList":[0]}
|