@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,43 @@
|
|
1
|
+
import { fromMarkdown } from '../../mdast-util-from-markdown/lib/index.js';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @typedef {import('mdast').Root} Root
|
5
|
+
* @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions
|
6
|
+
* @typedef {import('unified').Parser<Root>} Parser
|
7
|
+
* @typedef {import('unified').Processor<Root>} Processor
|
8
|
+
*/
|
9
|
+
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Aadd support for parsing from markdown.
|
13
|
+
*
|
14
|
+
* @param {Readonly<Options> | null | undefined} [options]
|
15
|
+
* Configuration (optional).
|
16
|
+
* @returns {undefined}
|
17
|
+
* Nothing.
|
18
|
+
*/
|
19
|
+
function remarkParse(options) {
|
20
|
+
/** @type {Processor} */
|
21
|
+
// @ts-expect-error: TS in JSDoc generates wrong types if `this` is typed regularly.
|
22
|
+
const self = this;
|
23
|
+
|
24
|
+
self.parser = parser;
|
25
|
+
|
26
|
+
/**
|
27
|
+
* @type {Parser}
|
28
|
+
*/
|
29
|
+
function parser(doc) {
|
30
|
+
return fromMarkdown(doc, {
|
31
|
+
...self.data('settings'),
|
32
|
+
...options,
|
33
|
+
// Note: these options are not in the readme.
|
34
|
+
// The goal is for them to be set by plugins on `data` instead of being
|
35
|
+
// passed by users.
|
36
|
+
extensions: self.data('micromarkExtensions') || [],
|
37
|
+
mdastExtensions: self.data('fromMarkdownExtensions') || []
|
38
|
+
})
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
export { remarkParse as default };
|
43
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/remark-parse/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions\n * @typedef {import('unified').Parser<Root>} Parser\n * @typedef {import('unified').Processor<Root>} Processor\n */\n\n/**\n * @typedef {Omit<FromMarkdownOptions, 'extensions' | 'mdastExtensions'>} Options\n */\n\nimport {fromMarkdown} from 'mdast-util-from-markdown'\n\n/**\n * Aadd support for parsing from markdown.\n *\n * @param {Readonly<Options> | null | undefined} [options]\n * Configuration (optional).\n * @returns {undefined}\n * Nothing.\n */\nexport default function remarkParse(options) {\n /** @type {Processor} */\n // @ts-expect-error: TS in JSDoc generates wrong types if `this` is typed regularly.\n const self = this\n\n self.parser = parser\n\n /**\n * @type {Parser}\n */\n function parser(doc) {\n return fromMarkdown(doc, {\n ...self.data('settings'),\n ...options,\n // Note: these options are not in the readme.\n // The goal is for them to be set by plugins on `data` instead of being\n // passed by users.\n extensions: self.data('micromarkExtensions') || [],\n mdastExtensions: self.data('fromMarkdownExtensions') || []\n })\n }\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,WAAW,CAAC,OAAO,EAAE;AAC7C;AACA;AACA,EAAE,MAAM,IAAI,GAAG;;AAEf,EAAE,IAAI,CAAC,MAAM,GAAG;;AAEhB;AACA;AACA;AACA,EAAE,SAAS,MAAM,CAAC,GAAG,EAAE;AACvB,IAAI,OAAO,YAAY,CAAC,GAAG,EAAE;AAC7B,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;AAC9B,MAAM,GAAG,OAAO;AAChB;AACA;AACA;AACA,MAAM,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,EAAE;AACxD,MAAM,eAAe,EAAE,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,IAAI;AAC9D,KAAK;AACL;AACA;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
import { toHast } from '../../mdast-util-to-hast/lib/index.js';
|
2
|
+
|
3
|
+
// Include `data` fields in mdast and `raw` nodes in hast.
|
4
|
+
/// <reference types="mdast-util-to-hast" />
|
5
|
+
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Turn markdown into HTML.
|
9
|
+
*
|
10
|
+
* ##### Notes
|
11
|
+
*
|
12
|
+
* ###### Signature
|
13
|
+
*
|
14
|
+
* * if a processor is given, runs the (rehype) plugins used on it with a
|
15
|
+
* hast tree, then discards the result (*bridge mode*)
|
16
|
+
* * otherwise, returns a hast tree, the plugins used after `remarkRehype`
|
17
|
+
* are rehype plugins (*mutate mode*)
|
18
|
+
*
|
19
|
+
* > 👉 **Note**: It’s highly unlikely that you want to pass a `processor`.
|
20
|
+
*
|
21
|
+
* ###### HTML
|
22
|
+
*
|
23
|
+
* Raw HTML is available in mdast as `html` nodes and can be embedded in hast
|
24
|
+
* as semistandard `raw` nodes.
|
25
|
+
* Most plugins ignore `raw` nodes but two notable ones don’t:
|
26
|
+
*
|
27
|
+
* * `rehype-stringify` also has an option `allowDangerousHtml` which will
|
28
|
+
* output the raw HTML.
|
29
|
+
* This is typically discouraged as noted by the option name but is useful if
|
30
|
+
* you completely trust authors
|
31
|
+
* * `rehype-raw` can handle the raw embedded HTML strings by parsing them
|
32
|
+
* into standard hast nodes (`element`, `text`, etc).
|
33
|
+
* This is a heavy task as it needs a full HTML parser, but it is the only way
|
34
|
+
* to support untrusted content
|
35
|
+
*
|
36
|
+
* ###### Footnotes
|
37
|
+
*
|
38
|
+
* Many options supported here relate to footnotes.
|
39
|
+
* Footnotes are not specified by CommonMark, which we follow by default.
|
40
|
+
* They are supported by GitHub, so footnotes can be enabled in markdown with
|
41
|
+
* `remark-gfm`.
|
42
|
+
*
|
43
|
+
* The options `footnoteBackLabel` and `footnoteLabel` define natural language
|
44
|
+
* that explains footnotes, which is hidden for sighted users but shown to
|
45
|
+
* assistive technology.
|
46
|
+
* When your page is not in English, you must define translated values.
|
47
|
+
*
|
48
|
+
* Back references use ARIA attributes, but the section label itself uses a
|
49
|
+
* heading that is hidden with an `sr-only` class.
|
50
|
+
* To show it to sighted users, define different attributes in
|
51
|
+
* `footnoteLabelProperties`.
|
52
|
+
*
|
53
|
+
* ###### Clobbering
|
54
|
+
*
|
55
|
+
* Footnotes introduces a problem, as it links footnote calls to footnote
|
56
|
+
* definitions on the page through `id` attributes generated from user content,
|
57
|
+
* which results in DOM clobbering.
|
58
|
+
*
|
59
|
+
* DOM clobbering is this:
|
60
|
+
*
|
61
|
+
* ```html
|
62
|
+
* <p id=x></p>
|
63
|
+
* <script>alert(x) // `x` now refers to the DOM `p#x` element</script>
|
64
|
+
* ```
|
65
|
+
*
|
66
|
+
* Elements by their ID are made available by browsers on the `window` object,
|
67
|
+
* which is a security risk.
|
68
|
+
* Using a prefix solves this problem.
|
69
|
+
*
|
70
|
+
* More information on how to handle clobbering and the prefix is explained in
|
71
|
+
* *Example: headings (DOM clobbering)* in `rehype-sanitize`.
|
72
|
+
*
|
73
|
+
* ###### Unknown nodes
|
74
|
+
*
|
75
|
+
* Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.
|
76
|
+
* The default behavior for unknown nodes is:
|
77
|
+
*
|
78
|
+
* * when the node has a `value` (and doesn’t have `data.hName`,
|
79
|
+
* `data.hProperties`, or `data.hChildren`, see later), create a hast `text`
|
80
|
+
* node
|
81
|
+
* * otherwise, create a `<div>` element (which could be changed with
|
82
|
+
* `data.hName`), with its children mapped from mdast to hast as well
|
83
|
+
*
|
84
|
+
* This behavior can be changed by passing an `unknownHandler`.
|
85
|
+
*
|
86
|
+
* @overload
|
87
|
+
* @param {Processor} processor
|
88
|
+
* @param {Readonly<Options> | null | undefined} [options]
|
89
|
+
* @returns {TransformBridge}
|
90
|
+
*
|
91
|
+
* @overload
|
92
|
+
* @param {Readonly<Options> | null | undefined} [options]
|
93
|
+
* @returns {TransformMutate}
|
94
|
+
*
|
95
|
+
* @param {Readonly<Options> | Processor | null | undefined} [destination]
|
96
|
+
* Processor or configuration (optional).
|
97
|
+
* @param {Readonly<Options> | null | undefined} [options]
|
98
|
+
* When a processor was given, configuration (optional).
|
99
|
+
* @returns {TransformBridge | TransformMutate}
|
100
|
+
* Transform.
|
101
|
+
*/
|
102
|
+
function remarkRehype(destination, options) {
|
103
|
+
if (destination && 'run' in destination) {
|
104
|
+
/**
|
105
|
+
* @type {TransformBridge}
|
106
|
+
*/
|
107
|
+
return async function (tree, file) {
|
108
|
+
// Cast because root in -> root out.
|
109
|
+
const hastTree = /** @type {HastRoot} */ (
|
110
|
+
toHast(tree, {file, ...options})
|
111
|
+
);
|
112
|
+
await destination.run(hastTree, file);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
/**
|
117
|
+
* @type {TransformMutate}
|
118
|
+
*/
|
119
|
+
return function (tree, file) {
|
120
|
+
// Cast because root in -> root out.
|
121
|
+
// To do: in the future, disallow ` || options` fallback.
|
122
|
+
// With `unified-engine`, `destination` can be `undefined` but
|
123
|
+
// `options` will be the file set.
|
124
|
+
// We should not pass that as `options`.
|
125
|
+
return /** @type {HastRoot} */ (
|
126
|
+
toHast(tree, {file, ...(destination || options)})
|
127
|
+
)
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
export { remarkRehype as default };
|
132
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/remark-rehype/lib/index.js"],"sourcesContent":["// Include `data` fields in mdast and `raw` nodes in hast.\n/// <reference types=\"mdast-util-to-hast\" />\n\n/**\n * @import {Root as HastRoot} from 'hast'\n * @import {Root as MdastRoot} from 'mdast'\n * @import {Options as ToHastOptions} from 'mdast-util-to-hast'\n * @import {Processor} from 'unified'\n * @import {VFile} from 'vfile'\n */\n\n/**\n * @typedef {Omit<ToHastOptions, 'file'>} Options\n *\n * @callback TransformBridge\n * Bridge-mode.\n *\n * Runs the destination with the new hast tree.\n * Discards result.\n * @param {MdastRoot} tree\n * Tree.\n * @param {VFile} file\n * File.\n * @returns {Promise<undefined>}\n * Nothing.\n *\n * @callback TransformMutate\n * Mutate-mode.\n *\n * Further transformers run on the hast tree.\n * @param {MdastRoot} tree\n * Tree.\n * @param {VFile} file\n * File.\n * @returns {HastRoot}\n * Tree (hast).\n */\n\nimport {toHast} from 'mdast-util-to-hast'\n\n/**\n * Turn markdown into HTML.\n *\n * ##### Notes\n *\n * ###### Signature\n *\n * * if a processor is given, runs the (rehype) plugins used on it with a\n * hast tree, then discards the result (*bridge mode*)\n * * otherwise, returns a hast tree, the plugins used after `remarkRehype`\n * are rehype plugins (*mutate mode*)\n *\n * > 👉 **Note**: It’s highly unlikely that you want to pass a `processor`.\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most plugins ignore `raw` nodes but two notable ones don’t:\n *\n * * `rehype-stringify` also has an option `allowDangerousHtml` which will\n * output the raw HTML.\n * This is typically discouraged as noted by the option name but is useful if\n * you completely trust authors\n * * `rehype-raw` can handle the raw embedded HTML strings by parsing them\n * into standard hast nodes (`element`, `text`, etc).\n * This is a heavy task as it needs a full HTML parser, but it is the only way\n * to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `remark-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n * <p id=x></p>\n * <script>alert(x) // `x` now refers to the DOM `p#x` element</script>\n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * *Example: headings (DOM clobbering)* in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `<div>` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @overload\n * @param {Processor} processor\n * @param {Readonly<Options> | null | undefined} [options]\n * @returns {TransformBridge}\n *\n * @overload\n * @param {Readonly<Options> | null | undefined} [options]\n * @returns {TransformMutate}\n *\n * @param {Readonly<Options> | Processor | null | undefined} [destination]\n * Processor or configuration (optional).\n * @param {Readonly<Options> | null | undefined} [options]\n * When a processor was given, configuration (optional).\n * @returns {TransformBridge | TransformMutate}\n * Transform.\n */\nexport default function remarkRehype(destination, options) {\n if (destination && 'run' in destination) {\n /**\n * @type {TransformBridge}\n */\n return async function (tree, file) {\n // Cast because root in -> root out.\n const hastTree = /** @type {HastRoot} */ (\n toHast(tree, {file, ...options})\n )\n await destination.run(hastTree, file)\n }\n }\n\n /**\n * @type {TransformMutate}\n */\n return function (tree, file) {\n // Cast because root in -> root out.\n // To do: in the future, disallow ` || options` fallback.\n // With `unified-engine`, `destination` can be `undefined` but\n // `options` will be the file set.\n // We should not pass that as `options`.\n return /** @type {HastRoot} */ (\n toHast(tree, {file, ...(destination || options)})\n )\n }\n}\n"],"names":[],"mappings":";;AAAA;AACA;;;AAuCA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,YAAY,CAAC,WAAW,EAAE,OAAO,EAAE;AAC3D,EAAE,IAAI,WAAW,IAAI,KAAK,IAAI,WAAW,EAAE;AAC3C;AACA;AACA;AACA,IAAI,OAAO,gBAAgB,IAAI,EAAE,IAAI,EAAE;AACvC;AACA,MAAM,MAAM,QAAQ;AACpB,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,OAAO,CAAC;AACvC;AACA,MAAM,MAAM,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI;AAC1C;AACA;;AAEA;AACA;AACA;AACA,EAAE,OAAO,UAAU,IAAI,EAAE,IAAI,EAAE;AAC/B;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,WAAW,IAAI,OAAO,CAAC,CAAC;AACtD;AACA;AACA;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Parse space-separated tokens to an array of strings.
|
3
|
+
*
|
4
|
+
* @param {string} value
|
5
|
+
* Space-separated tokens.
|
6
|
+
* @returns {Array<string>}
|
7
|
+
* List of tokens.
|
8
|
+
*/
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Serialize an array of strings as space separated-tokens.
|
12
|
+
*
|
13
|
+
* @param {Array<string|number>} values
|
14
|
+
* List of tokens.
|
15
|
+
* @returns {string}
|
16
|
+
* Space-separated tokens.
|
17
|
+
*/
|
18
|
+
function stringify(values) {
|
19
|
+
return values.join(' ').trim()
|
20
|
+
}
|
21
|
+
|
22
|
+
export { stringify };
|
23
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../node_modules/space-separated-tokens/index.js"],"sourcesContent":["/**\n * Parse space-separated tokens to an array of strings.\n *\n * @param {string} value\n * Space-separated tokens.\n * @returns {Array<string>}\n * List of tokens.\n */\nexport function parse(value) {\n const input = String(value || '').trim()\n return input ? input.split(/[ \\t\\n\\r\\f]+/g) : []\n}\n\n/**\n * Serialize an array of strings as space separated-tokens.\n *\n * @param {Array<string|number>} values\n * List of tokens.\n * @returns {string}\n * Space-separated tokens.\n */\nexport function stringify(values) {\n return values.join(' ').trim()\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAC,MAAM,EAAE;AAClC,EAAE,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI;AAC9B;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,175 @@
|
|
1
|
+
const C = "\u037c";
|
2
|
+
const COUNT = typeof Symbol == "undefined" ? "__" + C : Symbol.for(C);
|
3
|
+
const SET = typeof Symbol == "undefined" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet");
|
4
|
+
const top = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : {};
|
5
|
+
|
6
|
+
// :: - Style modules encapsulate a set of CSS rules defined from
|
7
|
+
// JavaScript. Their definitions are only available in a given DOM
|
8
|
+
// root after it has been _mounted_ there with `StyleModule.mount`.
|
9
|
+
//
|
10
|
+
// Style modules should be created once and stored somewhere, as
|
11
|
+
// opposed to re-creating them every time you need them. The amount of
|
12
|
+
// CSS rules generated for a given DOM root is bounded by the amount
|
13
|
+
// of style modules that were used. So to avoid leaking rules, don't
|
14
|
+
// create these dynamically, but treat them as one-time allocations.
|
15
|
+
class StyleModule {
|
16
|
+
// :: (Object<Style>, ?{finish: ?(string) → string})
|
17
|
+
// Create a style module from the given spec.
|
18
|
+
//
|
19
|
+
// When `finish` is given, it is called on regular (non-`@`)
|
20
|
+
// selectors (after `&` expansion) to compute the final selector.
|
21
|
+
constructor(spec, options) {
|
22
|
+
this.rules = [];
|
23
|
+
let {finish} = options || {};
|
24
|
+
|
25
|
+
function splitSelector(selector) {
|
26
|
+
return /^@/.test(selector) ? [selector] : selector.split(/,\s*/)
|
27
|
+
}
|
28
|
+
|
29
|
+
function render(selectors, spec, target, isKeyframes) {
|
30
|
+
let local = [], isAt = /^@(\w+)\b/.exec(selectors[0]), keyframes = isAt && isAt[1] == "keyframes";
|
31
|
+
if (isAt && spec == null) return target.push(selectors[0] + ";")
|
32
|
+
for (let prop in spec) {
|
33
|
+
let value = spec[prop];
|
34
|
+
if (/&/.test(prop)) {
|
35
|
+
render(prop.split(/,\s*/).map(part => selectors.map(sel => part.replace(/&/, sel))).reduce((a, b) => a.concat(b)),
|
36
|
+
value, target);
|
37
|
+
} else if (value && typeof value == "object") {
|
38
|
+
if (!isAt) throw new RangeError("The value of a property (" + prop + ") should be a primitive value.")
|
39
|
+
render(splitSelector(prop), value, local, keyframes);
|
40
|
+
} else if (value != null) {
|
41
|
+
local.push(prop.replace(/_.*/, "").replace(/[A-Z]/g, l => "-" + l.toLowerCase()) + ": " + value + ";");
|
42
|
+
}
|
43
|
+
}
|
44
|
+
if (local.length || keyframes) {
|
45
|
+
target.push((finish && !isAt && !isKeyframes ? selectors.map(finish) : selectors).join(", ") +
|
46
|
+
" {" + local.join(" ") + "}");
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
for (let prop in spec) render(splitSelector(prop), spec[prop], this.rules);
|
51
|
+
}
|
52
|
+
|
53
|
+
// :: () → string
|
54
|
+
// Returns a string containing the module's CSS rules.
|
55
|
+
getRules() { return this.rules.join("\n") }
|
56
|
+
|
57
|
+
// :: () → string
|
58
|
+
// Generate a new unique CSS class name.
|
59
|
+
static newName() {
|
60
|
+
let id = top[COUNT] || 1;
|
61
|
+
top[COUNT] = id + 1;
|
62
|
+
return C + id.toString(36)
|
63
|
+
}
|
64
|
+
|
65
|
+
// :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
|
66
|
+
//
|
67
|
+
// Mount the given set of modules in the given DOM root, which ensures
|
68
|
+
// that the CSS rules defined by the module are available in that
|
69
|
+
// context.
|
70
|
+
//
|
71
|
+
// Rules are only added to the document once per root.
|
72
|
+
//
|
73
|
+
// Rule order will follow the order of the modules, so that rules from
|
74
|
+
// modules later in the array take precedence of those from earlier
|
75
|
+
// modules. If you call this function multiple times for the same root
|
76
|
+
// in a way that changes the order of already mounted modules, the old
|
77
|
+
// order will be changed.
|
78
|
+
//
|
79
|
+
// If a Content Security Policy nonce is provided, it is added to
|
80
|
+
// the `<style>` tag generated by the library.
|
81
|
+
static mount(root, modules, options) {
|
82
|
+
let set = root[SET], nonce = options && options.nonce;
|
83
|
+
if (!set) set = new StyleSet(root, nonce);
|
84
|
+
else if (nonce) set.setNonce(nonce);
|
85
|
+
set.mount(Array.isArray(modules) ? modules : [modules], root);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
let adoptedSet = new Map; //<Document, StyleSet>
|
90
|
+
|
91
|
+
class StyleSet {
|
92
|
+
constructor(root, nonce) {
|
93
|
+
let doc = root.ownerDocument || root, win = doc.defaultView;
|
94
|
+
if (!root.head && root.adoptedStyleSheets && win.CSSStyleSheet) {
|
95
|
+
let adopted = adoptedSet.get(doc);
|
96
|
+
if (adopted) return root[SET] = adopted
|
97
|
+
this.sheet = new win.CSSStyleSheet;
|
98
|
+
adoptedSet.set(doc, this);
|
99
|
+
} else {
|
100
|
+
this.styleTag = doc.createElement("style");
|
101
|
+
if (nonce) this.styleTag.setAttribute("nonce", nonce);
|
102
|
+
}
|
103
|
+
this.modules = [];
|
104
|
+
root[SET] = this;
|
105
|
+
}
|
106
|
+
|
107
|
+
mount(modules, root) {
|
108
|
+
let sheet = this.sheet;
|
109
|
+
let pos = 0 /* Current rule offset */, j = 0; /* Index into this.modules */
|
110
|
+
for (let i = 0; i < modules.length; i++) {
|
111
|
+
let mod = modules[i], index = this.modules.indexOf(mod);
|
112
|
+
if (index < j && index > -1) { // Ordering conflict
|
113
|
+
this.modules.splice(index, 1);
|
114
|
+
j--;
|
115
|
+
index = -1;
|
116
|
+
}
|
117
|
+
if (index == -1) {
|
118
|
+
this.modules.splice(j++, 0, mod);
|
119
|
+
if (sheet) for (let k = 0; k < mod.rules.length; k++)
|
120
|
+
sheet.insertRule(mod.rules[k], pos++);
|
121
|
+
} else {
|
122
|
+
while (j < index) pos += this.modules[j++].rules.length;
|
123
|
+
pos += mod.rules.length;
|
124
|
+
j++;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
if (sheet) {
|
129
|
+
if (root.adoptedStyleSheets.indexOf(this.sheet) < 0)
|
130
|
+
root.adoptedStyleSheets = [this.sheet, ...root.adoptedStyleSheets];
|
131
|
+
} else {
|
132
|
+
let text = "";
|
133
|
+
for (let i = 0; i < this.modules.length; i++)
|
134
|
+
text += this.modules[i].getRules() + "\n";
|
135
|
+
this.styleTag.textContent = text;
|
136
|
+
let target = root.head || root;
|
137
|
+
if (this.styleTag.parentNode != target)
|
138
|
+
target.insertBefore(this.styleTag, target.firstChild);
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
setNonce(nonce) {
|
143
|
+
if (this.styleTag && this.styleTag.getAttribute("nonce") != nonce)
|
144
|
+
this.styleTag.setAttribute("nonce", nonce);
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
// Style::Object<union<Style,string>>
|
149
|
+
//
|
150
|
+
// A style is an object that, in the simple case, maps CSS property
|
151
|
+
// names to strings holding their values, as in `{color: "red",
|
152
|
+
// fontWeight: "bold"}`. The property names can be given in
|
153
|
+
// camel-case—the library will insert a dash before capital letters
|
154
|
+
// when converting them to CSS.
|
155
|
+
//
|
156
|
+
// If you include an underscore in a property name, it and everything
|
157
|
+
// after it will be removed from the output, which can be useful when
|
158
|
+
// providing a property multiple times, for browser compatibility
|
159
|
+
// reasons.
|
160
|
+
//
|
161
|
+
// A property in a style object can also be a sub-selector, which
|
162
|
+
// extends the current context to add a pseudo-selector or a child
|
163
|
+
// selector. Such a property should contain a `&` character, which
|
164
|
+
// will be replaced by the current selector. For example `{"&:before":
|
165
|
+
// {content: '"hi"'}}`. Sub-selectors and regular properties can
|
166
|
+
// freely be mixed in a given object. Any property containing a `&` is
|
167
|
+
// assumed to be a sub-selector.
|
168
|
+
//
|
169
|
+
// Finally, a property can specify an @-block to be wrapped around the
|
170
|
+
// styles defined inside the object that's the property's value. For
|
171
|
+
// example to create a media query you can do `{"@media screen and
|
172
|
+
// (min-width: 400px)": {...}}`.
|
173
|
+
|
174
|
+
export { StyleModule };
|
175
|
+
//# sourceMappingURL=style-mod.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"style-mod.js","sources":["../../../../../node_modules/style-mod/src/style-mod.js"],"sourcesContent":["const C = \"\\u037c\"\nconst COUNT = typeof Symbol == \"undefined\" ? \"__\" + C : Symbol.for(C)\nconst SET = typeof Symbol == \"undefined\" ? \"__styleSet\" + Math.floor(Math.random() * 1e8) : Symbol(\"styleSet\")\nconst top = typeof globalThis != \"undefined\" ? globalThis : typeof window != \"undefined\" ? window : {}\n\n// :: - Style modules encapsulate a set of CSS rules defined from\n// JavaScript. Their definitions are only available in a given DOM\n// root after it has been _mounted_ there with `StyleModule.mount`.\n//\n// Style modules should be created once and stored somewhere, as\n// opposed to re-creating them every time you need them. The amount of\n// CSS rules generated for a given DOM root is bounded by the amount\n// of style modules that were used. So to avoid leaking rules, don't\n// create these dynamically, but treat them as one-time allocations.\nexport class StyleModule {\n // :: (Object<Style>, ?{finish: ?(string) → string})\n // Create a style module from the given spec.\n //\n // When `finish` is given, it is called on regular (non-`@`)\n // selectors (after `&` expansion) to compute the final selector.\n constructor(spec, options) {\n this.rules = []\n let {finish} = options || {}\n\n function splitSelector(selector) {\n return /^@/.test(selector) ? [selector] : selector.split(/,\\s*/)\n }\n\n function render(selectors, spec, target, isKeyframes) {\n let local = [], isAt = /^@(\\w+)\\b/.exec(selectors[0]), keyframes = isAt && isAt[1] == \"keyframes\"\n if (isAt && spec == null) return target.push(selectors[0] + \";\")\n for (let prop in spec) {\n let value = spec[prop]\n if (/&/.test(prop)) {\n render(prop.split(/,\\s*/).map(part => selectors.map(sel => part.replace(/&/, sel))).reduce((a, b) => a.concat(b)),\n value, target)\n } else if (value && typeof value == \"object\") {\n if (!isAt) throw new RangeError(\"The value of a property (\" + prop + \") should be a primitive value.\")\n render(splitSelector(prop), value, local, keyframes)\n } else if (value != null) {\n local.push(prop.replace(/_.*/, \"\").replace(/[A-Z]/g, l => \"-\" + l.toLowerCase()) + \": \" + value + \";\")\n }\n }\n if (local.length || keyframes) {\n target.push((finish && !isAt && !isKeyframes ? selectors.map(finish) : selectors).join(\", \") +\n \" {\" + local.join(\" \") + \"}\")\n }\n }\n\n for (let prop in spec) render(splitSelector(prop), spec[prop], this.rules)\n }\n\n // :: () → string\n // Returns a string containing the module's CSS rules.\n getRules() { return this.rules.join(\"\\n\") }\n\n // :: () → string\n // Generate a new unique CSS class name.\n static newName() {\n let id = top[COUNT] || 1\n top[COUNT] = id + 1\n return C + id.toString(36)\n }\n\n // :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})\n //\n // Mount the given set of modules in the given DOM root, which ensures\n // that the CSS rules defined by the module are available in that\n // context.\n //\n // Rules are only added to the document once per root.\n //\n // Rule order will follow the order of the modules, so that rules from\n // modules later in the array take precedence of those from earlier\n // modules. If you call this function multiple times for the same root\n // in a way that changes the order of already mounted modules, the old\n // order will be changed.\n //\n // If a Content Security Policy nonce is provided, it is added to\n // the `<style>` tag generated by the library.\n static mount(root, modules, options) {\n let set = root[SET], nonce = options && options.nonce\n if (!set) set = new StyleSet(root, nonce)\n else if (nonce) set.setNonce(nonce)\n set.mount(Array.isArray(modules) ? modules : [modules], root)\n }\n}\n\nlet adoptedSet = new Map //<Document, StyleSet>\n\nclass StyleSet {\n constructor(root, nonce) {\n let doc = root.ownerDocument || root, win = doc.defaultView\n if (!root.head && root.adoptedStyleSheets && win.CSSStyleSheet) {\n let adopted = adoptedSet.get(doc)\n if (adopted) return root[SET] = adopted\n this.sheet = new win.CSSStyleSheet\n adoptedSet.set(doc, this)\n } else {\n this.styleTag = doc.createElement(\"style\")\n if (nonce) this.styleTag.setAttribute(\"nonce\", nonce)\n }\n this.modules = []\n root[SET] = this\n }\n\n mount(modules, root) {\n let sheet = this.sheet\n let pos = 0 /* Current rule offset */, j = 0 /* Index into this.modules */\n for (let i = 0; i < modules.length; i++) {\n let mod = modules[i], index = this.modules.indexOf(mod)\n if (index < j && index > -1) { // Ordering conflict\n this.modules.splice(index, 1)\n j--\n index = -1\n }\n if (index == -1) {\n this.modules.splice(j++, 0, mod)\n if (sheet) for (let k = 0; k < mod.rules.length; k++)\n sheet.insertRule(mod.rules[k], pos++)\n } else {\n while (j < index) pos += this.modules[j++].rules.length\n pos += mod.rules.length\n j++\n }\n }\n\n if (sheet) {\n if (root.adoptedStyleSheets.indexOf(this.sheet) < 0)\n root.adoptedStyleSheets = [this.sheet, ...root.adoptedStyleSheets]\n } else {\n let text = \"\"\n for (let i = 0; i < this.modules.length; i++)\n text += this.modules[i].getRules() + \"\\n\"\n this.styleTag.textContent = text\n let target = root.head || root\n if (this.styleTag.parentNode != target)\n target.insertBefore(this.styleTag, target.firstChild)\n }\n }\n\n setNonce(nonce) {\n if (this.styleTag && this.styleTag.getAttribute(\"nonce\") != nonce)\n this.styleTag.setAttribute(\"nonce\", nonce)\n }\n}\n\n// Style::Object<union<Style,string>>\n//\n// A style is an object that, in the simple case, maps CSS property\n// names to strings holding their values, as in `{color: \"red\",\n// fontWeight: \"bold\"}`. The property names can be given in\n// camel-case—the library will insert a dash before capital letters\n// when converting them to CSS.\n//\n// If you include an underscore in a property name, it and everything\n// after it will be removed from the output, which can be useful when\n// providing a property multiple times, for browser compatibility\n// reasons.\n//\n// A property in a style object can also be a sub-selector, which\n// extends the current context to add a pseudo-selector or a child\n// selector. Such a property should contain a `&` character, which\n// will be replaced by the current selector. For example `{\"&:before\":\n// {content: '\"hi\"'}}`. Sub-selectors and regular properties can\n// freely be mixed in a given object. Any property containing a `&` is\n// assumed to be a sub-selector.\n//\n// Finally, a property can specify an @-block to be wrapped around the\n// styles defined inside the object that's the property's value. For\n// example to create a media query you can do `{\"@media screen and\n// (min-width: 400px)\": {...}}`.\n"],"names":[],"mappings":"AAAA,MAAM,CAAC,GAAG;AACV,MAAM,KAAK,GAAG,OAAO,MAAM,IAAI,WAAW,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpE,MAAM,GAAG,GAAG,OAAO,MAAM,IAAI,WAAW,GAAG,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,UAAU;AAC7G,MAAM,GAAG,GAAG,OAAO,UAAU,IAAI,WAAW,GAAG,UAAU,GAAG,OA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object/cjs/index.js';
|
2
|
+
import { __require as requireUtilities } from './utilities.js';
|
3
|
+
|
4
|
+
var cjs;
|
5
|
+
var hasRequiredCjs;
|
6
|
+
|
7
|
+
function requireCjs () {
|
8
|
+
if (hasRequiredCjs) return cjs;
|
9
|
+
hasRequiredCjs = 1;
|
10
|
+
var __importDefault = (cjs && cjs.__importDefault) || function (mod) {
|
11
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
12
|
+
};
|
13
|
+
var style_to_object_1 = __importDefault(requireCjs$1());
|
14
|
+
var utilities_1 = requireUtilities();
|
15
|
+
/**
|
16
|
+
* Parses CSS inline style to JavaScript object (camelCased).
|
17
|
+
*/
|
18
|
+
function StyleToJS(style, options) {
|
19
|
+
var output = {};
|
20
|
+
if (!style || typeof style !== 'string') {
|
21
|
+
return output;
|
22
|
+
}
|
23
|
+
(0, style_to_object_1.default)(style, function (property, value) {
|
24
|
+
// skip CSS comment
|
25
|
+
if (property && value) {
|
26
|
+
output[(0, utilities_1.camelCase)(property, options)] = value;
|
27
|
+
}
|
28
|
+
});
|
29
|
+
return output;
|
30
|
+
}
|
31
|
+
StyleToJS.default = StyleToJS;
|
32
|
+
cjs = StyleToJS;
|
33
|
+
|
34
|
+
return cjs;
|
35
|
+
}
|
36
|
+
|
37
|
+
export { requireCjs as __require };
|
38
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/style-to-js/cjs/index.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar style_to_object_1 = __importDefault(require(\"style-to-object\"));\nvar utilities_1 = require(\"./utilities\");\n/**\n * Parses CSS inline style to JavaScript object (camelCased).\n */\nfunction StyleToJS(style, options) {\n var output = {};\n if (!style || typeof style !== 'string') {\n return output;\n }\n (0, style_to_object_1.default)(style, function (property, value) {\n // skip CSS comment\n if (property && value) {\n output[(0, utilities_1.camelCase)(property, options)] = value;\n }\n });\n return output;\n}\nStyleToJS.default = StyleToJS;\nmodule.exports = StyleToJS;\n//# sourceMappingURL=index.js.map"],"names":["this","require$$0","require$$1"],"mappings":";;;;;;;;;CACA,IAAI,eAAe,GAAG,CAACA,GAAI,IAAIA,GAAI,CAAC,eAAe,KAAK,UAAU,GAAG,EAAE;AACvE,KAAI,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;EAC5D;AACD,CAAA,IAAI,iBAAiB,GAAG,eAAe,CAACC,cAA0B,CAAC;CACnE,IAAI,WAAW,GAAGC,gBAAsB,EAAA;AACxC;AACA;AACA;AACA,CAAA,SAAS,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE;KAC/B,IAAI,MAAM,GAAG,EAAE;KACf,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC7C,SAAQ,OAAO,MAAM;AACrB;AACA,KAAI,IAAI,iBAAiB,CAAC,OAAO,EAAE,KAAK,EAAE,UAAU,QAAQ,EAAE,KAAK,EAAE;AACrE;AACA,SAAQ,IAAI,QAAQ,IAAI,KAAK,EAAE;AAC/B,aAAY,MAAM,CAAC,IAAI,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG,KAAK;AACzE;AACA,MAAK,CAAC;AACN,KAAI,OAAO,MAAM;AACjB;CACA,SAAS,CAAC,OAAO,GAAG,SAAS;AAC7B,CAAA,GAAc,GAAG,SAAS;AAC1B;;;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { __exports as utilities } from '../../../_virtual/utilities.js';
|
2
|
+
|
3
|
+
var hasRequiredUtilities;
|
4
|
+
|
5
|
+
function requireUtilities () {
|
6
|
+
if (hasRequiredUtilities) return utilities;
|
7
|
+
hasRequiredUtilities = 1;
|
8
|
+
Object.defineProperty(utilities, "__esModule", { value: true });
|
9
|
+
utilities.camelCase = void 0;
|
10
|
+
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
|
11
|
+
var HYPHEN_REGEX = /-([a-z])/g;
|
12
|
+
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
13
|
+
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
14
|
+
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
15
|
+
/**
|
16
|
+
* Checks whether to skip camelCase.
|
17
|
+
*/
|
18
|
+
var skipCamelCase = function (property) {
|
19
|
+
return !property ||
|
20
|
+
NO_HYPHEN_REGEX.test(property) ||
|
21
|
+
CUSTOM_PROPERTY_REGEX.test(property);
|
22
|
+
};
|
23
|
+
/**
|
24
|
+
* Replacer that capitalizes first character.
|
25
|
+
*/
|
26
|
+
var capitalize = function (match, character) {
|
27
|
+
return character.toUpperCase();
|
28
|
+
};
|
29
|
+
/**
|
30
|
+
* Replacer that removes beginning hyphen of vendor prefix property.
|
31
|
+
*/
|
32
|
+
var trimHyphen = function (match, prefix) { return "".concat(prefix, "-"); };
|
33
|
+
/**
|
34
|
+
* CamelCases a CSS property.
|
35
|
+
*/
|
36
|
+
var camelCase = function (property, options) {
|
37
|
+
if (options === void 0) { options = {}; }
|
38
|
+
if (skipCamelCase(property)) {
|
39
|
+
return property;
|
40
|
+
}
|
41
|
+
property = property.toLowerCase();
|
42
|
+
if (options.reactCompat) {
|
43
|
+
// `-ms` vendor prefix should not be capitalized
|
44
|
+
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
45
|
+
}
|
46
|
+
else {
|
47
|
+
// for non-React, remove first hyphen so vendor prefix is not capitalized
|
48
|
+
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
49
|
+
}
|
50
|
+
return property.replace(HYPHEN_REGEX, capitalize);
|
51
|
+
};
|
52
|
+
utilities.camelCase = camelCase;
|
53
|
+
|
54
|
+
return utilities;
|
55
|
+
}
|
56
|
+
|
57
|
+
export { requireUtilities as __require };
|
58
|
+
//# sourceMappingURL=utilities.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utilities.js","sources":["../../../../../node_modules/style-to-js/cjs/utilities.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.camelCase = void 0;\nvar CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;\nvar HYPHEN_REGEX = /-([a-z])/g;\nvar NO_HYPHEN_REGEX = /^[^-]+$/;\nvar VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;\nvar MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;\n/**\n * Checks whether to skip camelCase.\n */\nvar skipCamelCase = function (property) {\n return !property ||\n NO_HYPHEN_REGEX.test(property) ||\n CUSTOM_PROPERTY_REGEX.test(property);\n};\n/**\n * Replacer that capitalizes first character.\n */\nvar capitalize = function (match, character) {\n return character.toUpperCase();\n};\n/**\n * Replacer that removes beginning hyphen of vendor prefix property.\n */\nvar trimHyphen = function (match, prefix) { return \"\".concat(prefix, \"-\"); };\n/**\n * CamelCases a CSS property.\n */\nvar camelCase = function (property, options) {\n if (options === void 0) { options = {}; }\n if (skipCamelCase(property)) {\n return property;\n }\n property = property.toLowerCase();\n if (options.reactCompat) {\n // `-ms` vendor prefix should not be capitalized\n property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);\n }\n else {\n // for non-React, remove first hyphen so vendor prefix is not capitalized\n property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);\n }\n return property.replace(HYPHEN_REGEX, capitalize);\n};\nexports.camelCase = camelCase;\n//# sourceMappingURL=utilities.js.map"],"names":[],"mappings":";;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAAC,SAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAiB,SAAA,CAAA,SAAA,G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AG,SAAS;AAC7B;;;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { __exports as cjs } from '../../../_virtual/index17.js';
|
2
|
+
import { __require as requireInlineStyleParser } from '../../inline-style-parser/index.js';
|
3
|
+
|
4
|
+
var hasRequiredCjs;
|
5
|
+
|
6
|
+
function requireCjs () {
|
7
|
+
if (hasRequiredCjs) return cjs;
|
8
|
+
hasRequiredCjs = 1;
|
9
|
+
var __importDefault = (cjs && cjs.__importDefault) || function (mod) {
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
11
|
+
};
|
12
|
+
Object.defineProperty(cjs, "__esModule", { value: true });
|
13
|
+
cjs.default = StyleToObject;
|
14
|
+
var inline_style_parser_1 = __importDefault(requireInlineStyleParser());
|
15
|
+
/**
|
16
|
+
* Parses inline style to object.
|
17
|
+
*
|
18
|
+
* @param style - Inline style.
|
19
|
+
* @param iterator - Iterator.
|
20
|
+
* @returns - Style object or null.
|
21
|
+
*
|
22
|
+
* @example Parsing inline style to object:
|
23
|
+
*
|
24
|
+
* ```js
|
25
|
+
* import parse from 'style-to-object';
|
26
|
+
* parse('line-height: 42;'); // { 'line-height': '42' }
|
27
|
+
* ```
|
28
|
+
*/
|
29
|
+
function StyleToObject(style, iterator) {
|
30
|
+
var styleObject = null;
|
31
|
+
if (!style || typeof style !== 'string') {
|
32
|
+
return styleObject;
|
33
|
+
}
|
34
|
+
var declarations = (0, inline_style_parser_1.default)(style);
|
35
|
+
var hasIterator = typeof iterator === 'function';
|
36
|
+
declarations.forEach(function (declaration) {
|
37
|
+
if (declaration.type !== 'declaration') {
|
38
|
+
return;
|
39
|
+
}
|
40
|
+
var property = declaration.property, value = declaration.value;
|
41
|
+
if (hasIterator) {
|
42
|
+
iterator(property, value, declaration);
|
43
|
+
}
|
44
|
+
else if (value) {
|
45
|
+
styleObject = styleObject || {};
|
46
|
+
styleObject[property] = value;
|
47
|
+
}
|
48
|
+
});
|
49
|
+
return styleObject;
|
50
|
+
}
|
51
|
+
|
52
|
+
return cjs;
|
53
|
+
}
|
54
|
+
|
55
|
+
export { requireCjs as __require };
|
56
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/style-to-object/cjs/index.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = StyleToObject;\nvar inline_style_parser_1 = __importDefault(require(\"inline-style-parser\"));\n/**\n * Parses inline style to object.\n *\n * @param style - Inline style.\n * @param iterator - Iterator.\n * @returns - Style object or null.\n *\n * @example Parsing inline style to object:\n *\n * ```js\n * import parse from 'style-to-object';\n * parse('line-height: 42;'); // { 'line-height': '42' }\n * ```\n */\nfunction StyleToObject(style, iterator) {\n var styleObject = null;\n if (!style || typeof style !== 'string') {\n return styleObject;\n }\n var declarations = (0, inline_style_parser_1.default)(style);\n var hasIterator = typeof iterator === 'function';\n declarations.forEach(function (declaration) {\n if (declaration.type !== 'declaration') {\n return;\n }\n var property = declaration.property, value = declaration.value;\n if (hasIterator) {\n iterator(property, value, declaration);\n }\n else if (value) {\n styleObject = styleObject || {};\n styleObject[property] = value;\n }\n });\n return styleObject;\n}\n//# sourceMappingURL=index.js.map"],"names":["this","require$$0"],"mappings":";;;;;;;;CACA,IAAI,eAAe,GAAG,CAACA,GAAI,IAAIA,GAAI,CAAC,eAAe,KAAK,UAAU,GAAG,EAAE;AACvE,KAAI,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;EAC5D;AACD,CAAA,MAAM,CAAC,cAAc,CAAC,GAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAA,GAAA,CAAA,OAAe,GAAG,aAAa;AAC/B,CA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