@axdspub/axiom-ui-forms 0.2.8 → 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 +36 -4
- 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 +6 -2
- package/library/esm/_virtual/index13.js.map +1 -1
- package/library/esm/_virtual/index14.js +2 -2
- 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/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/index7.js.map +1 -1
- package/library/esm/_virtual/index8.js +2 -2
- package/library/esm/_virtual/index9.js +2 -2
- 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/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/format/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
- 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/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/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/inputMap.js +2 -2
- package/library/esm/src/Form/Components/Inputs/inputMap.js.map +1 -1
- package/library/esm/src/Form/Creator/FormCreator.js +6 -2
- 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 +1 -1
- package/library/esm/src/Form/helpers.js.map +1 -1
- package/library/esm/src/Form/schemaToFormHelpers.js +87 -1
- package/library/esm/src/Form/schemaToFormHelpers.js.map +1 -1
- package/library/esm/src/library.js +1 -1
- package/package.json +7 -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,47 @@
|
|
1
|
+
import { normalize } from '../normalize.js';
|
2
|
+
import { DefinedInfo } from './defined-info.js';
|
3
|
+
import { Schema } from './schema.js';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @import {Info, Space} from 'property-information'
|
7
|
+
*/
|
8
|
+
|
9
|
+
|
10
|
+
/**
|
11
|
+
* @param {Definition} definition
|
12
|
+
* Definition.
|
13
|
+
* @returns {Schema}
|
14
|
+
* Schema.
|
15
|
+
*/
|
16
|
+
function create(definition) {
|
17
|
+
/** @type {Record<string, Info>} */
|
18
|
+
const properties = {};
|
19
|
+
/** @type {Record<string, string>} */
|
20
|
+
const normals = {};
|
21
|
+
|
22
|
+
for (const [property, value] of Object.entries(definition.properties)) {
|
23
|
+
const info = new DefinedInfo(
|
24
|
+
property,
|
25
|
+
definition.transform(definition.attributes || {}, property),
|
26
|
+
value,
|
27
|
+
definition.space
|
28
|
+
);
|
29
|
+
|
30
|
+
if (
|
31
|
+
definition.mustUseProperty &&
|
32
|
+
definition.mustUseProperty.includes(property)
|
33
|
+
) {
|
34
|
+
info.mustUseProperty = true;
|
35
|
+
}
|
36
|
+
|
37
|
+
properties[property] = info;
|
38
|
+
|
39
|
+
normals[normalize(property)] = property;
|
40
|
+
normals[normalize(info.attribute)] = property;
|
41
|
+
}
|
42
|
+
|
43
|
+
return new Schema(properties, normals, definition.space)
|
44
|
+
}
|
45
|
+
|
46
|
+
export { create };
|
47
|
+
//# sourceMappingURL=create.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create.js","sources":["../../../../../../node_modules/property-information/lib/util/create.js"],"sourcesContent":["/**\n * @import {Info, Space} from 'property-information'\n */\n\n/**\n * @typedef Definition\n * Definition of a schema.\n * @property {Record<string, string> | undefined} [attributes]\n * Normalzed names to special attribute case.\n * @property {ReadonlyArray<string> | undefined} [mustUseProperty]\n * Normalized names that must be set as properties.\n * @property {Record<string, number | null>} properties\n * Property names to their types.\n * @property {Space | undefined} [space]\n * Space.\n * @property {Transform} transform\n * Transform a property name.\n */\n\n/**\n * @callback Transform\n * Transform.\n * @param {Record<string, string>} attributes\n * Attributes.\n * @param {string} property\n * Property.\n * @returns {string}\n * Attribute.\n */\n\nimport {normalize} from '../normalize.js'\nimport {DefinedInfo} from './defined-info.js'\nimport {Schema} from './schema.js'\n\n/**\n * @param {Definition} definition\n * Definition.\n * @returns {Schema}\n * Schema.\n */\nexport function create(definition) {\n /** @type {Record<string, Info>} */\n const properties = {}\n /** @type {Record<string, string>} */\n const normals = {}\n\n for (const [property, value] of Object.entries(definition.properties)) {\n const info = new DefinedInfo(\n property,\n definition.transform(definition.attributes || {}, property),\n value,\n definition.space\n )\n\n if (\n definition.mustUseProperty &&\n definition.mustUseProperty.includes(property)\n ) {\n info.mustUseProperty = true\n }\n\n properties[property] = info\n\n normals[normalize(property)] = property\n normals[normalize(info.attribute)] = property\n }\n\n return new Schema(properties, normals, definition.space)\n}\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;;;AAgCA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,MAAM,CAAC,UAAU,EAAE;AACnC;AACA,EAAE,MAAM,UAAU,GAAG;AACrB;AACA,EAAE,MAAM,OAAO,GAAG;;AAElB,EAAE,KAAK,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;AACzE,IAAI,MAAM,IAAI,GAAG,IAAI,WAAW;AAChC,MAAM,QAAQ;AACd,MAAM,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,IAAI,EAAE,EAAE,QAAQ,CAAC;AACjE,MAAM,KAAK;AACX,MAAM,UAAU,CAAC;AACjB;;AAEA,IAAI;AACJ,MAAM,UAAU,CAAC,eAAe;AAChC,MAAM,UAAU,CAAC,eAAe,CAAC,QAAQ,CAAC,QAAQ;AAClD,MAAM;AACN,MAAM,IAAI,CAAC,eAAe,GAAG;AAC7B;;AAEA,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG;;AAE3B,IAAI,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,GAAG;AACnC,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG;AACzC;;AAEA,EAAE,OAAO,IAAI,MAAM,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,KAAK;AACzD;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { Info } from './info.js';
|
2
|
+
import * as types from './types.js';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @import {Space} from 'property-information'
|
6
|
+
*/
|
7
|
+
|
8
|
+
|
9
|
+
const checks = /** @type {ReadonlyArray<keyof typeof types>} */ (
|
10
|
+
Object.keys(types)
|
11
|
+
);
|
12
|
+
|
13
|
+
class DefinedInfo extends Info {
|
14
|
+
/**
|
15
|
+
* @constructor
|
16
|
+
* @param {string} property
|
17
|
+
* Property.
|
18
|
+
* @param {string} attribute
|
19
|
+
* Attribute.
|
20
|
+
* @param {number | null | undefined} [mask]
|
21
|
+
* Mask.
|
22
|
+
* @param {Space | undefined} [space]
|
23
|
+
* Space.
|
24
|
+
* @returns
|
25
|
+
* Info.
|
26
|
+
*/
|
27
|
+
constructor(property, attribute, mask, space) {
|
28
|
+
let index = -1;
|
29
|
+
|
30
|
+
super(property, attribute);
|
31
|
+
|
32
|
+
mark(this, 'space', space);
|
33
|
+
|
34
|
+
if (typeof mask === 'number') {
|
35
|
+
while (++index < checks.length) {
|
36
|
+
const check = checks[index];
|
37
|
+
mark(this, checks[index], (mask & types[check]) === types[check]);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
DefinedInfo.prototype.defined = true;
|
44
|
+
|
45
|
+
/**
|
46
|
+
* @template {keyof DefinedInfo} Key
|
47
|
+
* Key type.
|
48
|
+
* @param {DefinedInfo} values
|
49
|
+
* Info.
|
50
|
+
* @param {Key} key
|
51
|
+
* Key.
|
52
|
+
* @param {DefinedInfo[Key]} value
|
53
|
+
* Value.
|
54
|
+
* @returns {undefined}
|
55
|
+
* Nothing.
|
56
|
+
*/
|
57
|
+
function mark(values, key, value) {
|
58
|
+
if (value) {
|
59
|
+
values[key] = value;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
export { DefinedInfo };
|
64
|
+
//# sourceMappingURL=defined-info.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defined-info.js","sources":["../../../../../../node_modules/property-information/lib/util/defined-info.js"],"sourcesContent":["/**\n * @import {Space} from 'property-information'\n */\n\nimport {Info} from './info.js'\nimport * as types from './types.js'\n\nconst checks = /** @type {ReadonlyArray<keyof typeof types>} */ (\n Object.keys(types)\n)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * Property.\n * @param {string} attribute\n * Attribute.\n * @param {number | null | undefined} [mask]\n * Mask.\n * @param {Space | undefined} [space]\n * Space.\n * @returns\n * Info.\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @template {keyof DefinedInfo} Key\n * Key type.\n * @param {DefinedInfo} values\n * Info.\n * @param {Key} key\n * Key.\n * @param {DefinedInfo[Key]} value\n * Value.\n * @returns {undefined}\n * Nothing.\n */\nfunction mark(values, key, value) {\n if (value) {\n values[key] = value\n }\n}\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;;AAKA,MAAM,MAAM;AACZ,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK;AACnB;;AAEO,MAAM,WAAW,SAAS,IAAI,CAAC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,WAAW,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE;AAChD,IAAI,IAAI,KAAK,GAAG;;AAEhB,IAAI,KAAK,CAAC,QAAQ,EAAE,SAAS;;AAE7B,IAAI,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK;;AAE7B,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAClC,MAAM,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE;AACtC,QAAQ,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK;AAClC,QAAQ,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,KAAK,CAAC;AACxE;AACA;AACA;AACA;;AAEA,WAAW,CAAC,SAAS,CAAC,OAAO,GAAG;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE;AAClC,EAAE,IAAI,KAAK,EAAE;AACb,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG;AAClB;AACA;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* @import {Info as InfoType} from 'property-information'
|
3
|
+
*/
|
4
|
+
|
5
|
+
/** @type {InfoType} */
|
6
|
+
class Info {
|
7
|
+
/**
|
8
|
+
* @param {string} property
|
9
|
+
* Property.
|
10
|
+
* @param {string} attribute
|
11
|
+
* Attribute.
|
12
|
+
* @returns
|
13
|
+
* Info.
|
14
|
+
*/
|
15
|
+
constructor(property, attribute) {
|
16
|
+
this.attribute = attribute;
|
17
|
+
this.property = property;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
Info.prototype.attribute = '';
|
22
|
+
Info.prototype.booleanish = false;
|
23
|
+
Info.prototype.boolean = false;
|
24
|
+
Info.prototype.commaOrSpaceSeparated = false;
|
25
|
+
Info.prototype.commaSeparated = false;
|
26
|
+
Info.prototype.defined = false;
|
27
|
+
Info.prototype.mustUseProperty = false;
|
28
|
+
Info.prototype.number = false;
|
29
|
+
Info.prototype.overloadedBoolean = false;
|
30
|
+
Info.prototype.property = '';
|
31
|
+
Info.prototype.spaceSeparated = false;
|
32
|
+
Info.prototype.space = undefined;
|
33
|
+
|
34
|
+
export { Info };
|
35
|
+
//# sourceMappingURL=info.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"info.js","sources":["../../../../../../node_modules/property-information/lib/util/info.js"],"sourcesContent":["/**\n * @import {Info as InfoType} from 'property-information'\n */\n\n/** @type {InfoType} */\nexport class Info {\n /**\n * @param {string} property\n * Property.\n * @param {string} attribute\n * Attribute.\n * @returns\n * Info.\n */\n constructor(property, attribute) {\n this.attribute = attribute\n this.property = property\n }\n}\n\nInfo.prototype.attribute = ''\nInfo.prototype.booleanish = false\nInfo.prototype.boolean = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.defined = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.number = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.property = ''\nInfo.prototype.spaceSeparated = false\nInfo.prototype.space = undefined\n"],"names":[],"mappings":"AAAA;AACA;AACA;;AAEA;AACO,MAAM,IAAI,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,WAAW,CAAC,QAAQ,EAAE,SAAS,EAAE;AACnC,IAAI,IAAI,CAAC,SAAS,GAAG;AACrB,IAAI,IAAI,CAAC,QAAQ,GAAG;AACpB;AACA;;AAEA,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG;AAC3B,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG;AAC5B,IAAI,CAAC,SAAS,CAAC,OAAO,GAAG;AACzB,IAAI,CAAC,SAAS,CAAC,qBAAqB,GAAG;AACvC,IAAI,CAAC,SAAS,CAAC,cAAc,GAAG;AAChC,IAAI,CAAC,SAAS,CAAC,OAAO,GAAG;AACzB,IAAI,CAAC,SAAS,CAAC,eAAe,GAAG;AACjC,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG;AACxB,IAAI,CAAC,SAAS,CAAC,iBAAiB,GAAG;AACnC,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG;AAC1B,IAAI,CAAC,SAAS,CAAC,cAAc,GAAG;AAChC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Schema } from './schema.js';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @import {Info, Space} from 'property-information'
|
5
|
+
*/
|
6
|
+
|
7
|
+
|
8
|
+
/**
|
9
|
+
* @param {ReadonlyArray<Schema>} definitions
|
10
|
+
* Definitions.
|
11
|
+
* @param {Space | undefined} [space]
|
12
|
+
* Space.
|
13
|
+
* @returns {Schema}
|
14
|
+
* Schema.
|
15
|
+
*/
|
16
|
+
function merge(definitions, space) {
|
17
|
+
/** @type {Record<string, Info>} */
|
18
|
+
const property = {};
|
19
|
+
/** @type {Record<string, string>} */
|
20
|
+
const normal = {};
|
21
|
+
|
22
|
+
for (const definition of definitions) {
|
23
|
+
Object.assign(property, definition.property);
|
24
|
+
Object.assign(normal, definition.normal);
|
25
|
+
}
|
26
|
+
|
27
|
+
return new Schema(property, normal, space)
|
28
|
+
}
|
29
|
+
|
30
|
+
export { merge };
|
31
|
+
//# sourceMappingURL=merge.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"merge.js","sources":["../../../../../../node_modules/property-information/lib/util/merge.js"],"sourcesContent":["/**\n * @import {Info, Space} from 'property-information'\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {ReadonlyArray<Schema>} definitions\n * Definitions.\n * @param {Space | undefined} [space]\n * Space.\n * @returns {Schema}\n * Schema.\n */\nexport function merge(definitions, space) {\n /** @type {Record<string, Info>} */\n const property = {}\n /** @type {Record<string, string>} */\n const normal = {}\n\n for (const definition of definitions) {\n Object.assign(property, definition.property)\n Object.assign(normal, definition.normal)\n }\n\n return new Schema(property, normal, space)\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,KAAK,CAAC,WAAW,EAAE,KAAK,EAAE;AAC1C;AACA,EAAE,MAAM,QAAQ,GAAG;AACnB;AACA,EAAE,MAAM,MAAM,GAAG;;AAEjB,EAAE,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE;AACxC,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ;AAC/C,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM;AAC3C;;AAEA,EAAE,OAAO,IAAI,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK;AAC3C;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* @import {Schema as SchemaType, Space} from 'property-information'
|
3
|
+
*/
|
4
|
+
|
5
|
+
/** @type {SchemaType} */
|
6
|
+
class Schema {
|
7
|
+
/**
|
8
|
+
* @param {SchemaType['property']} property
|
9
|
+
* Property.
|
10
|
+
* @param {SchemaType['normal']} normal
|
11
|
+
* Normal.
|
12
|
+
* @param {Space | undefined} [space]
|
13
|
+
* Space.
|
14
|
+
* @returns
|
15
|
+
* Schema.
|
16
|
+
*/
|
17
|
+
constructor(property, normal, space) {
|
18
|
+
this.normal = normal;
|
19
|
+
this.property = property;
|
20
|
+
|
21
|
+
if (space) {
|
22
|
+
this.space = space;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
Schema.prototype.normal = {};
|
28
|
+
Schema.prototype.property = {};
|
29
|
+
Schema.prototype.space = undefined;
|
30
|
+
|
31
|
+
export { Schema };
|
32
|
+
//# sourceMappingURL=schema.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schema.js","sources":["../../../../../../node_modules/property-information/lib/util/schema.js"],"sourcesContent":["/**\n * @import {Schema as SchemaType, Space} from 'property-information'\n */\n\n/** @type {SchemaType} */\nexport class Schema {\n /**\n * @param {SchemaType['property']} property\n * Property.\n * @param {SchemaType['normal']} normal\n * Normal.\n * @param {Space | undefined} [space]\n * Space.\n * @returns\n * Schema.\n */\n constructor(property, normal, space) {\n this.normal = normal\n this.property = property\n\n if (space) {\n this.space = space\n }\n }\n}\n\nSchema.prototype.normal = {}\nSchema.prototype.property = {}\nSchema.prototype.space = undefined\n"],"names":[],"mappings":"AAAA;AACA;AACA;;AAEA;AACO,MAAM,MAAM,CAAC;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;AACvC,IAAI,IAAI,CAAC,MAAM,GAAG;AAClB,IAAI,IAAI,CAAC,QAAQ,GAAG;;AAEpB,IAAI,IAAI,KAAK,EAAE;AACf,MAAM,IAAI,CAAC,KAAK,GAAG;AACnB;AACA;AACA;;AAEA,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG;AAC1B,MAAM,CAAC,SAAS,CAAC,QAAQ,GAAG;AAC5B,MAAM,CAAC,SAAS,CAAC,KAAK,GAAG;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
let powers = 0;
|
2
|
+
|
3
|
+
const boolean = increment();
|
4
|
+
const booleanish = increment();
|
5
|
+
const overloadedBoolean = increment();
|
6
|
+
const number = increment();
|
7
|
+
const spaceSeparated = increment();
|
8
|
+
const commaSeparated = increment();
|
9
|
+
const commaOrSpaceSeparated = increment();
|
10
|
+
|
11
|
+
function increment() {
|
12
|
+
return 2 ** ++powers
|
13
|
+
}
|
14
|
+
|
15
|
+
export { boolean, booleanish, commaOrSpaceSeparated, commaSeparated, number, overloadedBoolean, spaceSeparated };
|
16
|
+
//# sourceMappingURL=types.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../../../node_modules/property-information/lib/util/types.js"],"sourcesContent":["let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n"],"names":[],"mappings":"AAAA,IAAI,MAAM,GAAG;;AAED,MAAC,OAAO,GAAG,SAAS;AACpB,MAAC,UAAU,GAAG,SAAS;AACvB,MAAC,iBAAiB,GAAG,SAAS;AAC9B,MAAC,MAAM,GAAG,SAAS;AACnB,MAAC,cAAc,GAAG,SAAS;AAC3B,MAAC,cAAc,GAAG,SAAS;AAC3B,MAAC,qBAAqB,GAAG,SAAS;;AAE9C,SAAS,SAAS,GAAG;AACrB,EAAE,OAAO,CAAC,IAAI,EAAE;AAChB;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { create } from './util/create.js';
|
2
|
+
|
3
|
+
const xlink = create({
|
4
|
+
properties: {
|
5
|
+
xLinkActuate: null,
|
6
|
+
xLinkArcRole: null,
|
7
|
+
xLinkHref: null,
|
8
|
+
xLinkRole: null,
|
9
|
+
xLinkShow: null,
|
10
|
+
xLinkTitle: null,
|
11
|
+
xLinkType: null
|
12
|
+
},
|
13
|
+
space: 'xlink',
|
14
|
+
transform(_, property) {
|
15
|
+
return 'xlink:' + property.slice(5).toLowerCase()
|
16
|
+
}
|
17
|
+
});
|
18
|
+
|
19
|
+
export { xlink };
|
20
|
+
//# sourceMappingURL=xlink.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"xlink.js","sources":["../../../../../node_modules/property-information/lib/xlink.js"],"sourcesContent":["import {create} from './util/create.js'\n\nexport const xlink = create({\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n },\n space: 'xlink',\n transform(_, property) {\n return 'xlink:' + property.slice(5).toLowerCase()\n }\n})\n"],"names":[],"mappings":";;AAEY,MAAC,KAAK,GAAG,MAAM,CAAC;AAC5B,EAAE,UAAU,EAAE;AACd,IAAI,YAAY,EAAE,IAAI;AACtB,IAAI,YAAY,EAAE,IAAI;AACtB,IAAI,SAAS,EAAE,IAAI;AACnB,IAAI,SAAS,EAAE,IAAI;AACnB,IAAI,SAAS,EAAE,IAAI;AACnB,IAAI,UAAU,EAAE,IAAI;AACpB,IAAI,SAAS,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE;AACzB,IAAI,OAAO,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW;AACnD;AACA,CAAC;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { create } from './util/create.js';
|
2
|
+
|
3
|
+
const xml = create({
|
4
|
+
properties: {xmlBase: null, xmlLang: null, xmlSpace: null},
|
5
|
+
space: 'xml',
|
6
|
+
transform(_, property) {
|
7
|
+
return 'xml:' + property.slice(3).toLowerCase()
|
8
|
+
}
|
9
|
+
});
|
10
|
+
|
11
|
+
export { xml };
|
12
|
+
//# sourceMappingURL=xml.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"xml.js","sources":["../../../../../node_modules/property-information/lib/xml.js"],"sourcesContent":["import {create} from './util/create.js'\n\nexport const xml = create({\n properties: {xmlBase: null, xmlLang: null, xmlSpace: null},\n space: 'xml',\n transform(_, property) {\n return 'xml:' + property.slice(3).toLowerCase()\n }\n})\n"],"names":[],"mappings":";;AAEY,MAAC,GAAG,GAAG,MAAM,CAAC;AAC1B,EAAE,UAAU,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;AAC5D,EAAE,KAAK,EAAE,KAAK;AACd,EAAE,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE;AACzB,IAAI,OAAO,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW;AACjD;AACA,CAAC;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { create } from './util/create.js';
|
2
|
+
import { caseInsensitiveTransform } from './util/case-insensitive-transform.js';
|
3
|
+
|
4
|
+
const xmlns = create({
|
5
|
+
attributes: {xmlnsxlink: 'xmlns:xlink'},
|
6
|
+
properties: {xmlnsXLink: null, xmlns: null},
|
7
|
+
space: 'xmlns',
|
8
|
+
transform: caseInsensitiveTransform
|
9
|
+
});
|
10
|
+
|
11
|
+
export { xmlns };
|
12
|
+
//# sourceMappingURL=xmlns.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"xmlns.js","sources":["../../../../../node_modules/property-information/lib/xmlns.js"],"sourcesContent":["import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n properties: {xmlnsXLink: null, xmlns: null},\n space: 'xmlns',\n transform: caseInsensitiveTransform\n})\n"],"names":[],"mappings":";;;AAGY,MAAC,KAAK,GAAG,MAAM,CAAC;AAC5B,EAAE,UAAU,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC;AACzC,EAAE,UAAU,EAAE,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC;AAC7C,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,SAAS,EAAE;AACb,CAAC;;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,267 @@
|
|
1
|
+
import { unreachable } from '../../devlop/lib/default.js';
|
2
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
3
|
+
import 'react';
|
4
|
+
import { unified } from '../../unified/lib/index.js';
|
5
|
+
import remarkParse from '../../remark-parse/lib/index.js';
|
6
|
+
import remarkRehype from '../../remark-rehype/lib/index.js';
|
7
|
+
import { VFile } from '../../vfile/lib/index.js';
|
8
|
+
import { visit } from '../../unist-util-visit/lib/index.js';
|
9
|
+
import { toJsxRuntime } from '../../hast-util-to-jsx-runtime/lib/index.js';
|
10
|
+
import { urlAttributes } from '../../html-url-attributes/lib/index.js';
|
11
|
+
|
12
|
+
/**
|
13
|
+
* @import {Element, Nodes, Parents, Root} from 'hast'
|
14
|
+
* @import {Root as MdastRoot} from 'mdast'
|
15
|
+
* @import {ComponentType, JSX, ReactElement, ReactNode} from 'react'
|
16
|
+
* @import {Options as RemarkRehypeOptions} from 'remark-rehype'
|
17
|
+
* @import {BuildVisitor} from 'unist-util-visit'
|
18
|
+
* @import {PluggableList, Processor} from 'unified'
|
19
|
+
*/
|
20
|
+
|
21
|
+
|
22
|
+
const changelog =
|
23
|
+
'https://github.com/remarkjs/react-markdown/blob/main/changelog.md';
|
24
|
+
|
25
|
+
/** @type {PluggableList} */
|
26
|
+
const emptyPlugins = [];
|
27
|
+
/** @type {Readonly<RemarkRehypeOptions>} */
|
28
|
+
const emptyRemarkRehypeOptions = {allowDangerousHtml: true};
|
29
|
+
const safeProtocol = /^(https?|ircs?|mailto|xmpp)$/i;
|
30
|
+
|
31
|
+
// Mutable because we `delete` any time it’s used and a message is sent.
|
32
|
+
/** @type {ReadonlyArray<Readonly<Deprecation>>} */
|
33
|
+
const deprecations = [
|
34
|
+
{from: 'astPlugins', id: 'remove-buggy-html-in-markdown-parser'},
|
35
|
+
{from: 'allowDangerousHtml', id: 'remove-buggy-html-in-markdown-parser'},
|
36
|
+
{
|
37
|
+
from: 'allowNode',
|
38
|
+
id: 'replace-allownode-allowedtypes-and-disallowedtypes',
|
39
|
+
to: 'allowElement'
|
40
|
+
},
|
41
|
+
{
|
42
|
+
from: 'allowedTypes',
|
43
|
+
id: 'replace-allownode-allowedtypes-and-disallowedtypes',
|
44
|
+
to: 'allowedElements'
|
45
|
+
},
|
46
|
+
{from: 'className', id: 'remove-classname'},
|
47
|
+
{
|
48
|
+
from: 'disallowedTypes',
|
49
|
+
id: 'replace-allownode-allowedtypes-and-disallowedtypes',
|
50
|
+
to: 'disallowedElements'
|
51
|
+
},
|
52
|
+
{from: 'escapeHtml', id: 'remove-buggy-html-in-markdown-parser'},
|
53
|
+
{from: 'includeElementIndex', id: '#remove-includeelementindex'},
|
54
|
+
{
|
55
|
+
from: 'includeNodeIndex',
|
56
|
+
id: 'change-includenodeindex-to-includeelementindex'
|
57
|
+
},
|
58
|
+
{from: 'linkTarget', id: 'remove-linktarget'},
|
59
|
+
{from: 'plugins', id: 'change-plugins-to-remarkplugins', to: 'remarkPlugins'},
|
60
|
+
{from: 'rawSourcePos', id: '#remove-rawsourcepos'},
|
61
|
+
{from: 'renderers', id: 'change-renderers-to-components', to: 'components'},
|
62
|
+
{from: 'source', id: 'change-source-to-children', to: 'children'},
|
63
|
+
{from: 'sourcePos', id: '#remove-sourcepos'},
|
64
|
+
{from: 'transformImageUri', id: '#add-urltransform', to: 'urlTransform'},
|
65
|
+
{from: 'transformLinkUri', id: '#add-urltransform', to: 'urlTransform'}
|
66
|
+
];
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Component to render markdown.
|
70
|
+
*
|
71
|
+
* This is a synchronous component.
|
72
|
+
* When using async plugins,
|
73
|
+
* see {@linkcode MarkdownAsync} or {@linkcode MarkdownHooks}.
|
74
|
+
*
|
75
|
+
* @param {Readonly<Options>} options
|
76
|
+
* Props.
|
77
|
+
* @returns {ReactElement}
|
78
|
+
* React element.
|
79
|
+
*/
|
80
|
+
function Markdown(options) {
|
81
|
+
const processor = createProcessor(options);
|
82
|
+
const file = createFile(options);
|
83
|
+
return post(processor.runSync(processor.parse(file), file), options)
|
84
|
+
}
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Set up the `unified` processor.
|
88
|
+
*
|
89
|
+
* @param {Readonly<Options>} options
|
90
|
+
* Props.
|
91
|
+
* @returns {Processor<MdastRoot, MdastRoot, Root, undefined, undefined>}
|
92
|
+
* Result.
|
93
|
+
*/
|
94
|
+
function createProcessor(options) {
|
95
|
+
const rehypePlugins = options.rehypePlugins || emptyPlugins;
|
96
|
+
const remarkPlugins = options.remarkPlugins || emptyPlugins;
|
97
|
+
const remarkRehypeOptions = options.remarkRehypeOptions
|
98
|
+
? {...options.remarkRehypeOptions, ...emptyRemarkRehypeOptions}
|
99
|
+
: emptyRemarkRehypeOptions;
|
100
|
+
|
101
|
+
const processor = unified()
|
102
|
+
.use(remarkParse)
|
103
|
+
.use(remarkPlugins)
|
104
|
+
.use(remarkRehype, remarkRehypeOptions)
|
105
|
+
.use(rehypePlugins);
|
106
|
+
|
107
|
+
return processor
|
108
|
+
}
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Set up the virtual file.
|
112
|
+
*
|
113
|
+
* @param {Readonly<Options>} options
|
114
|
+
* Props.
|
115
|
+
* @returns {VFile}
|
116
|
+
* Result.
|
117
|
+
*/
|
118
|
+
function createFile(options) {
|
119
|
+
const children = options.children || '';
|
120
|
+
const file = new VFile();
|
121
|
+
|
122
|
+
if (typeof children === 'string') {
|
123
|
+
file.value = children;
|
124
|
+
}
|
125
|
+
|
126
|
+
return file
|
127
|
+
}
|
128
|
+
|
129
|
+
/**
|
130
|
+
* Process the result from unified some more.
|
131
|
+
*
|
132
|
+
* @param {Nodes} tree
|
133
|
+
* Tree.
|
134
|
+
* @param {Readonly<Options>} options
|
135
|
+
* Props.
|
136
|
+
* @returns {ReactElement}
|
137
|
+
* React element.
|
138
|
+
*/
|
139
|
+
function post(tree, options) {
|
140
|
+
const allowedElements = options.allowedElements;
|
141
|
+
const allowElement = options.allowElement;
|
142
|
+
const components = options.components;
|
143
|
+
const disallowedElements = options.disallowedElements;
|
144
|
+
const skipHtml = options.skipHtml;
|
145
|
+
const unwrapDisallowed = options.unwrapDisallowed;
|
146
|
+
const urlTransform = options.urlTransform || defaultUrlTransform;
|
147
|
+
|
148
|
+
for (const deprecation of deprecations) {
|
149
|
+
if (Object.hasOwn(options, deprecation.from)) {
|
150
|
+
unreachable(
|
151
|
+
'Unexpected `' +
|
152
|
+
deprecation.from +
|
153
|
+
'` prop, ' +
|
154
|
+
(deprecation.to
|
155
|
+
? 'use `' + deprecation.to + '` instead'
|
156
|
+
: 'remove it') +
|
157
|
+
' (see <' +
|
158
|
+
changelog +
|
159
|
+
'#' +
|
160
|
+
deprecation.id +
|
161
|
+
'> for more info)'
|
162
|
+
);
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
visit(tree, transform);
|
167
|
+
|
168
|
+
return toJsxRuntime(tree, {
|
169
|
+
Fragment,
|
170
|
+
components,
|
171
|
+
ignoreInvalidStyle: true,
|
172
|
+
jsx,
|
173
|
+
jsxs,
|
174
|
+
passKeys: true,
|
175
|
+
passNode: true
|
176
|
+
})
|
177
|
+
|
178
|
+
/** @type {BuildVisitor<Root>} */
|
179
|
+
function transform(node, index, parent) {
|
180
|
+
if (node.type === 'raw' && parent && typeof index === 'number') {
|
181
|
+
if (skipHtml) {
|
182
|
+
parent.children.splice(index, 1);
|
183
|
+
} else {
|
184
|
+
parent.children[index] = {type: 'text', value: node.value};
|
185
|
+
}
|
186
|
+
|
187
|
+
return index
|
188
|
+
}
|
189
|
+
|
190
|
+
if (node.type === 'element') {
|
191
|
+
/** @type {string} */
|
192
|
+
let key;
|
193
|
+
|
194
|
+
for (key in urlAttributes) {
|
195
|
+
if (
|
196
|
+
Object.hasOwn(urlAttributes, key) &&
|
197
|
+
Object.hasOwn(node.properties, key)
|
198
|
+
) {
|
199
|
+
const value = node.properties[key];
|
200
|
+
const test = urlAttributes[key];
|
201
|
+
if (test === null || test.includes(node.tagName)) {
|
202
|
+
node.properties[key] = urlTransform(String(value || ''), key, node);
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
if (node.type === 'element') {
|
209
|
+
let remove = allowedElements
|
210
|
+
? !allowedElements.includes(node.tagName)
|
211
|
+
: disallowedElements
|
212
|
+
? disallowedElements.includes(node.tagName)
|
213
|
+
: false;
|
214
|
+
|
215
|
+
if (!remove && allowElement && typeof index === 'number') {
|
216
|
+
remove = !allowElement(node, index, parent);
|
217
|
+
}
|
218
|
+
|
219
|
+
if (remove && parent && typeof index === 'number') {
|
220
|
+
if (unwrapDisallowed && node.children) {
|
221
|
+
parent.children.splice(index, 1, ...node.children);
|
222
|
+
} else {
|
223
|
+
parent.children.splice(index, 1);
|
224
|
+
}
|
225
|
+
|
226
|
+
return index
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
/**
|
233
|
+
* Make a URL safe.
|
234
|
+
*
|
235
|
+
* @satisfies {UrlTransform}
|
236
|
+
* @param {string} value
|
237
|
+
* URL.
|
238
|
+
* @returns {string}
|
239
|
+
* Safe URL.
|
240
|
+
*/
|
241
|
+
function defaultUrlTransform(value) {
|
242
|
+
// Same as:
|
243
|
+
// <https://github.com/micromark/micromark/blob/929275e/packages/micromark-util-sanitize-uri/dev/index.js#L34>
|
244
|
+
// But without the `encode` part.
|
245
|
+
const colon = value.indexOf(':');
|
246
|
+
const questionMark = value.indexOf('?');
|
247
|
+
const numberSign = value.indexOf('#');
|
248
|
+
const slash = value.indexOf('/');
|
249
|
+
|
250
|
+
if (
|
251
|
+
// If there is no protocol, it’s relative.
|
252
|
+
colon === -1 ||
|
253
|
+
// If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
254
|
+
(slash !== -1 && colon > slash) ||
|
255
|
+
(questionMark !== -1 && colon > questionMark) ||
|
256
|
+
(numberSign !== -1 && colon > numberSign) ||
|
257
|
+
// It is a protocol, it should be allowed.
|
258
|
+
safeProtocol.test(value.slice(0, colon))
|
259
|
+
) {
|
260
|
+
return value
|
261
|
+
}
|
262
|
+
|
263
|
+
return ''
|
264
|
+
}
|
265
|
+
|
266
|
+
export { Markdown, defaultUrlTransform };
|
267
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/react-markdown/lib/index.js"],"sourcesContent":["/**\n * @import {Element, Nodes, Parents, Root} from 'hast'\n * @import {Root as MdastRoot} from 'mdast'\n * @import {ComponentType, JSX, ReactElement, ReactNode} from 'react'\n * @import {Options as RemarkRehypeOptions} from 'remark-rehype'\n * @import {BuildVisitor} from 'unist-util-visit'\n * @import {PluggableList, Processor} from 'unified'\n */\n\n/**\n * @callback AllowElement\n * Filter elements.\n * @param {Readonly<Element>} element\n * Element to check.\n * @param {number} index\n * Index of `element` in `parent`.\n * @param {Readonly<Parents> | undefined} parent\n * Parent of `element`.\n * @returns {boolean | null | undefined}\n * Whether to allow `element` (default: `false`).\n */\n\n/**\n * @typedef ExtraProps\n * Extra fields we pass.\n * @property {Element | undefined} [node]\n * passed when `passNode` is on.\n */\n\n/**\n * @typedef {{\n * [Key in keyof JSX.IntrinsicElements]?: ComponentType<JSX.IntrinsicElements[Key] & ExtraProps> | keyof JSX.IntrinsicElements\n * }} Components\n * Map tag names to components.\n */\n\n/**\n * @typedef Deprecation\n * Deprecation.\n * @property {string} from\n * Old field.\n * @property {string} id\n * ID in readme.\n * @property {keyof Options} [to]\n * New field.\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {AllowElement | null | undefined} [allowElement]\n * Filter elements (optional);\n * `allowedElements` / `disallowedElements` is used first.\n * @property {ReadonlyArray<string> | null | undefined} [allowedElements]\n * Tag names to allow (default: all tag names);\n * cannot combine w/ `disallowedElements`.\n * @property {string | null | undefined} [children]\n * Markdown.\n * @property {Components | null | undefined} [components]\n * Map tag names to components.\n * @property {ReadonlyArray<string> | null | undefined} [disallowedElements]\n * Tag names to disallow (default: `[]`);\n * cannot combine w/ `allowedElements`.\n * @property {PluggableList | null | undefined} [rehypePlugins]\n * List of rehype plugins to use.\n * @property {PluggableList | null | undefined} [remarkPlugins]\n * List of remark plugins to use.\n * @property {Readonly<RemarkRehypeOptions> | null | undefined} [remarkRehypeOptions]\n * Options to pass through to `remark-rehype`.\n * @property {boolean | null | undefined} [skipHtml=false]\n * Ignore HTML in markdown completely (default: `false`).\n * @property {boolean | null | undefined} [unwrapDisallowed=false]\n * Extract (unwrap) what’s in disallowed elements (default: `false`);\n * normally when say `strong` is not allowed, it and it’s children are dropped,\n * with `unwrapDisallowed` the element itself is replaced by its children.\n * @property {UrlTransform | null | undefined} [urlTransform]\n * Change URLs (default: `defaultUrlTransform`)\n */\n\n/**\n * @typedef HooksOptionsOnly\n * Configuration specifically for {@linkcode MarkdownHooks}.\n * @property {ReactNode | null | undefined} [fallback]\n * Content to render while the processor processing the markdown (optional).\n */\n\n/**\n * @typedef {Options & HooksOptionsOnly} HooksOptions\n * Configuration for {@linkcode MarkdownHooks};\n * extends the regular {@linkcode Options} with a `fallback` prop.\n */\n\n/**\n * @callback UrlTransform\n * Transform all URLs.\n * @param {string} url\n * URL.\n * @param {string} key\n * Property name (example: `'href'`).\n * @param {Readonly<Element>} node\n * Node.\n * @returns {string | null | undefined}\n * Transformed URL (optional).\n */\n\nimport {unreachable} from 'devlop'\nimport {toJsxRuntime} from 'hast-util-to-jsx-runtime'\nimport {urlAttributes} from 'html-url-attributes'\nimport {Fragment, jsx, jsxs} from 'react/jsx-runtime'\nimport {useEffect, useState} from 'react'\nimport remarkParse from 'remark-parse'\nimport remarkRehype from 'remark-rehype'\nimport {unified} from 'unified'\nimport {visit} from 'unist-util-visit'\nimport {VFile} from 'vfile'\n\nconst changelog =\n 'https://github.com/remarkjs/react-markdown/blob/main/changelog.md'\n\n/** @type {PluggableList} */\nconst emptyPlugins = []\n/** @type {Readonly<RemarkRehypeOptions>} */\nconst emptyRemarkRehypeOptions = {allowDangerousHtml: true}\nconst safeProtocol = /^(https?|ircs?|mailto|xmpp)$/i\n\n// Mutable because we `delete` any time it’s used and a message is sent.\n/** @type {ReadonlyArray<Readonly<Deprecation>>} */\nconst deprecations = [\n {from: 'astPlugins', id: 'remove-buggy-html-in-markdown-parser'},\n {from: 'allowDangerousHtml', id: 'remove-buggy-html-in-markdown-parser'},\n {\n from: 'allowNode',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes',\n to: 'allowElement'\n },\n {\n from: 'allowedTypes',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes',\n to: 'allowedElements'\n },\n {from: 'className', id: 'remove-classname'},\n {\n from: 'disallowedTypes',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes',\n to: 'disallowedElements'\n },\n {from: 'escapeHtml', id: 'remove-buggy-html-in-markdown-parser'},\n {from: 'includeElementIndex', id: '#remove-includeelementindex'},\n {\n from: 'includeNodeIndex',\n id: 'change-includenodeindex-to-includeelementindex'\n },\n {from: 'linkTarget', id: 'remove-linktarget'},\n {from: 'plugins', id: 'change-plugins-to-remarkplugins', to: 'remarkPlugins'},\n {from: 'rawSourcePos', id: '#remove-rawsourcepos'},\n {from: 'renderers', id: 'change-renderers-to-components', to: 'components'},\n {from: 'source', id: 'change-source-to-children', to: 'children'},\n {from: 'sourcePos', id: '#remove-sourcepos'},\n {from: 'transformImageUri', id: '#add-urltransform', to: 'urlTransform'},\n {from: 'transformLinkUri', id: '#add-urltransform', to: 'urlTransform'}\n]\n\n/**\n * Component to render markdown.\n *\n * This is a synchronous component.\n * When using async plugins,\n * see {@linkcode MarkdownAsync} or {@linkcode MarkdownHooks}.\n *\n * @param {Readonly<Options>} options\n * Props.\n * @returns {ReactElement}\n * React element.\n */\nexport function Markdown(options) {\n const processor = createProcessor(options)\n const file = createFile(options)\n return post(processor.runSync(processor.parse(file), file), options)\n}\n\n/**\n * Component to render markdown with support for async plugins\n * through async/await.\n *\n * Components returning promises are supported on the server.\n * For async support on the client,\n * see {@linkcode MarkdownHooks}.\n *\n * @param {Readonly<Options>} options\n * Props.\n * @returns {Promise<ReactElement>}\n * Promise to a React element.\n */\nexport async function MarkdownAsync(options) {\n const processor = createProcessor(options)\n const file = createFile(options)\n const tree = await processor.run(processor.parse(file), file)\n return post(tree, options)\n}\n\n/**\n * Component to render markdown with support for async plugins through hooks.\n *\n * This uses `useEffect` and `useState` hooks.\n * Hooks run on the client and do not immediately render something.\n * For async support on the server,\n * see {@linkcode MarkdownAsync}.\n *\n * @param {Readonly<HooksOptions>} options\n * Props.\n * @returns {ReactNode}\n * React node.\n */\nexport function MarkdownHooks(options) {\n const processor = createProcessor(options)\n const [error, setError] = useState(\n /** @type {Error | undefined} */ (undefined)\n )\n const [tree, setTree] = useState(/** @type {Root | undefined} */ (undefined))\n\n useEffect(\n function () {\n let cancelled = false\n const file = createFile(options)\n\n processor.run(processor.parse(file), file, function (error, tree) {\n if (!cancelled) {\n setError(error)\n setTree(tree)\n }\n })\n\n /**\n * @returns {undefined}\n * Nothing.\n */\n return function () {\n cancelled = true\n }\n },\n [\n options.children,\n options.rehypePlugins,\n options.remarkPlugins,\n options.remarkRehypeOptions\n ]\n )\n\n if (error) throw error\n\n return tree ? post(tree, options) : options.fallback\n}\n\n/**\n * Set up the `unified` processor.\n *\n * @param {Readonly<Options>} options\n * Props.\n * @returns {Processor<MdastRoot, MdastRoot, Root, undefined, undefined>}\n * Result.\n */\nfunction createProcessor(options) {\n const rehypePlugins = options.rehypePlugins || emptyPlugins\n const remarkPlugins = options.remarkPlugins || emptyPlugins\n const remarkRehypeOptions = options.remarkRehypeOptions\n ? {...options.remarkRehypeOptions, ...emptyRemarkRehypeOptions}\n : emptyRemarkRehypeOptions\n\n const processor = unified()\n .use(remarkParse)\n .use(remarkPlugins)\n .use(remarkRehype, remarkRehypeOptions)\n .use(rehypePlugins)\n\n return processor\n}\n\n/**\n * Set up the virtual file.\n *\n * @param {Readonly<Options>} options\n * Props.\n * @returns {VFile}\n * Result.\n */\nfunction createFile(options) {\n const children = options.children || ''\n const file = new VFile()\n\n if (typeof children === 'string') {\n file.value = children\n } else {\n unreachable(\n 'Unexpected value `' +\n children +\n '` for `children` prop, expected `string`'\n )\n }\n\n return file\n}\n\n/**\n * Process the result from unified some more.\n *\n * @param {Nodes} tree\n * Tree.\n * @param {Readonly<Options>} options\n * Props.\n * @returns {ReactElement}\n * React element.\n */\nfunction post(tree, options) {\n const allowedElements = options.allowedElements\n const allowElement = options.allowElement\n const components = options.components\n const disallowedElements = options.disallowedElements\n const skipHtml = options.skipHtml\n const unwrapDisallowed = options.unwrapDisallowed\n const urlTransform = options.urlTransform || defaultUrlTransform\n\n for (const deprecation of deprecations) {\n if (Object.hasOwn(options, deprecation.from)) {\n unreachable(\n 'Unexpected `' +\n deprecation.from +\n '` prop, ' +\n (deprecation.to\n ? 'use `' + deprecation.to + '` instead'\n : 'remove it') +\n ' (see <' +\n changelog +\n '#' +\n deprecation.id +\n '> for more info)'\n )\n }\n }\n\n if (allowedElements && disallowedElements) {\n unreachable(\n 'Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other'\n )\n }\n\n visit(tree, transform)\n\n return toJsxRuntime(tree, {\n Fragment,\n components,\n ignoreInvalidStyle: true,\n jsx,\n jsxs,\n passKeys: true,\n passNode: true\n })\n\n /** @type {BuildVisitor<Root>} */\n function transform(node, index, parent) {\n if (node.type === 'raw' && parent && typeof index === 'number') {\n if (skipHtml) {\n parent.children.splice(index, 1)\n } else {\n parent.children[index] = {type: 'text', value: node.value}\n }\n\n return index\n }\n\n if (node.type === 'element') {\n /** @type {string} */\n let key\n\n for (key in urlAttributes) {\n if (\n Object.hasOwn(urlAttributes, key) &&\n Object.hasOwn(node.properties, key)\n ) {\n const value = node.properties[key]\n const test = urlAttributes[key]\n if (test === null || test.includes(node.tagName)) {\n node.properties[key] = urlTransform(String(value || ''), key, node)\n }\n }\n }\n }\n\n if (node.type === 'element') {\n let remove = allowedElements\n ? !allowedElements.includes(node.tagName)\n : disallowedElements\n ? disallowedElements.includes(node.tagName)\n : false\n\n if (!remove && allowElement && typeof index === 'number') {\n remove = !allowElement(node, index, parent)\n }\n\n if (remove && parent && typeof index === 'number') {\n if (unwrapDisallowed && node.children) {\n parent.children.splice(index, 1, ...node.children)\n } else {\n parent.children.splice(index, 1)\n }\n\n return index\n }\n }\n }\n}\n\n/**\n * Make a URL safe.\n *\n * @satisfies {UrlTransform}\n * @param {string} value\n * URL.\n * @returns {string}\n * Safe URL.\n */\nexport function defaultUrlTransform(value) {\n // Same as:\n // <https://github.com/micromark/micromark/blob/929275e/packages/micromark-util-sanitize-uri/dev/index.js#L34>\n // But without the `encode` part.\n const colon = value.indexOf(':')\n const questionMark = value.indexOf('?')\n const numberSign = value.indexOf('#')\n const slash = value.indexOf('/')\n\n if (\n // If there is no protocol, it’s relative.\n colon === -1 ||\n // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.\n (slash !== -1 && colon > slash) ||\n (questionMark !== -1 && colon > questionMark) ||\n (numberSign !== -1 && colon > numberSign) ||\n // It is a protocol, it should be allowed.\n safeProtocol.test(value.slice(0, colon))\n ) {\n return value\n }\n\n return ''\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AA6GA,MAAM,SAAS;AACf,EAAE;;AAEF;AACA,MAAM,YAAY,GAAG;AACrB;AACA,MAAM,wBAAwB,GAAG,CAAC,kBAAkB,EAAE,IAAI;AAC1D,MAAM,YAAY,GAAG;;AAErB;AACA;AACA,MAAM,YAAY,GAAG;AACrB,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,sCAAsC,CAAC;AAClE,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,EAAE,EAAE,sCAAsC,CAAC;AAC1E,EAAE;AACF,IAAI,IAAI,EAAE,WAAW;AACrB,IAAI,EAAE,EAAE,oDAAoD;AAC5D,IAAI,EAAE,EAAE;AACR,GAAG;AACH,EAAE;AACF,IAAI,IAAI,EAAE,cAAc;AACxB,IAAI,EAAE,EAAE,oDAAoD;AAC5D,IAAI,EAAE,EAAE;AACR,GAAG;AACH,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,kBAAkB,CAAC;AAC7C,EAAE;AACF,IAAI,IAAI,EAAE,iBAAiB;AAC3B,IAAI,EAAE,EAAE,oDAAoD;AAC5D,IAAI,EAAE,EAAE;AACR,GAAG;AACH,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,sCAAsC,CAAC;AAClE,EAAE,CAAC,IAAI,EAAE,qBAAqB,EAAE,EAAE,EAAE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