@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,682 @@
|
|
1
|
+
import { factorySpace } from '../../micromark-factory-space/index.js';
|
2
|
+
import { asciiAlpha, markdownLineEnding, asciiAlphanumeric, markdownSpace, markdownLineEndingOrSpace } from '../../micromark-util-character/index.js';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @import {
|
6
|
+
* Code,
|
7
|
+
* Construct,
|
8
|
+
* State,
|
9
|
+
* TokenizeContext,
|
10
|
+
* Tokenizer
|
11
|
+
* } from 'micromark-util-types'
|
12
|
+
*/
|
13
|
+
|
14
|
+
/** @type {Construct} */
|
15
|
+
const htmlText = {
|
16
|
+
name: 'htmlText',
|
17
|
+
tokenize: tokenizeHtmlText
|
18
|
+
};
|
19
|
+
|
20
|
+
/**
|
21
|
+
* @this {TokenizeContext}
|
22
|
+
* Context.
|
23
|
+
* @type {Tokenizer}
|
24
|
+
*/
|
25
|
+
function tokenizeHtmlText(effects, ok, nok) {
|
26
|
+
const self = this;
|
27
|
+
/** @type {NonNullable<Code> | undefined} */
|
28
|
+
let marker;
|
29
|
+
/** @type {number} */
|
30
|
+
let index;
|
31
|
+
/** @type {State} */
|
32
|
+
let returnState;
|
33
|
+
return start;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Start of HTML (text).
|
37
|
+
*
|
38
|
+
* ```markdown
|
39
|
+
* > | a <b> c
|
40
|
+
* ^
|
41
|
+
* ```
|
42
|
+
*
|
43
|
+
* @type {State}
|
44
|
+
*/
|
45
|
+
function start(code) {
|
46
|
+
effects.enter("htmlText");
|
47
|
+
effects.enter("htmlTextData");
|
48
|
+
effects.consume(code);
|
49
|
+
return open;
|
50
|
+
}
|
51
|
+
|
52
|
+
/**
|
53
|
+
* After `<`, at tag name or other stuff.
|
54
|
+
*
|
55
|
+
* ```markdown
|
56
|
+
* > | a <b> c
|
57
|
+
* ^
|
58
|
+
* > | a <!doctype> c
|
59
|
+
* ^
|
60
|
+
* > | a <!--b--> c
|
61
|
+
* ^
|
62
|
+
* ```
|
63
|
+
*
|
64
|
+
* @type {State}
|
65
|
+
*/
|
66
|
+
function open(code) {
|
67
|
+
if (code === 33) {
|
68
|
+
effects.consume(code);
|
69
|
+
return declarationOpen;
|
70
|
+
}
|
71
|
+
if (code === 47) {
|
72
|
+
effects.consume(code);
|
73
|
+
return tagCloseStart;
|
74
|
+
}
|
75
|
+
if (code === 63) {
|
76
|
+
effects.consume(code);
|
77
|
+
return instruction;
|
78
|
+
}
|
79
|
+
|
80
|
+
// ASCII alphabetical.
|
81
|
+
if (asciiAlpha(code)) {
|
82
|
+
effects.consume(code);
|
83
|
+
return tagOpen;
|
84
|
+
}
|
85
|
+
return nok(code);
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* After `<!`, at declaration, comment, or CDATA.
|
90
|
+
*
|
91
|
+
* ```markdown
|
92
|
+
* > | a <!doctype> c
|
93
|
+
* ^
|
94
|
+
* > | a <!--b--> c
|
95
|
+
* ^
|
96
|
+
* > | a <![CDATA[>&<]]> c
|
97
|
+
* ^
|
98
|
+
* ```
|
99
|
+
*
|
100
|
+
* @type {State}
|
101
|
+
*/
|
102
|
+
function declarationOpen(code) {
|
103
|
+
if (code === 45) {
|
104
|
+
effects.consume(code);
|
105
|
+
return commentOpenInside;
|
106
|
+
}
|
107
|
+
if (code === 91) {
|
108
|
+
effects.consume(code);
|
109
|
+
index = 0;
|
110
|
+
return cdataOpenInside;
|
111
|
+
}
|
112
|
+
if (asciiAlpha(code)) {
|
113
|
+
effects.consume(code);
|
114
|
+
return declaration;
|
115
|
+
}
|
116
|
+
return nok(code);
|
117
|
+
}
|
118
|
+
|
119
|
+
/**
|
120
|
+
* In a comment, after `<!-`, at another `-`.
|
121
|
+
*
|
122
|
+
* ```markdown
|
123
|
+
* > | a <!--b--> c
|
124
|
+
* ^
|
125
|
+
* ```
|
126
|
+
*
|
127
|
+
* @type {State}
|
128
|
+
*/
|
129
|
+
function commentOpenInside(code) {
|
130
|
+
if (code === 45) {
|
131
|
+
effects.consume(code);
|
132
|
+
return commentEnd;
|
133
|
+
}
|
134
|
+
return nok(code);
|
135
|
+
}
|
136
|
+
|
137
|
+
/**
|
138
|
+
* In comment.
|
139
|
+
*
|
140
|
+
* ```markdown
|
141
|
+
* > | a <!--b--> c
|
142
|
+
* ^
|
143
|
+
* ```
|
144
|
+
*
|
145
|
+
* @type {State}
|
146
|
+
*/
|
147
|
+
function comment(code) {
|
148
|
+
if (code === null) {
|
149
|
+
return nok(code);
|
150
|
+
}
|
151
|
+
if (code === 45) {
|
152
|
+
effects.consume(code);
|
153
|
+
return commentClose;
|
154
|
+
}
|
155
|
+
if (markdownLineEnding(code)) {
|
156
|
+
returnState = comment;
|
157
|
+
return lineEndingBefore(code);
|
158
|
+
}
|
159
|
+
effects.consume(code);
|
160
|
+
return comment;
|
161
|
+
}
|
162
|
+
|
163
|
+
/**
|
164
|
+
* In comment, after `-`.
|
165
|
+
*
|
166
|
+
* ```markdown
|
167
|
+
* > | a <!--b--> c
|
168
|
+
* ^
|
169
|
+
* ```
|
170
|
+
*
|
171
|
+
* @type {State}
|
172
|
+
*/
|
173
|
+
function commentClose(code) {
|
174
|
+
if (code === 45) {
|
175
|
+
effects.consume(code);
|
176
|
+
return commentEnd;
|
177
|
+
}
|
178
|
+
return comment(code);
|
179
|
+
}
|
180
|
+
|
181
|
+
/**
|
182
|
+
* In comment, after `--`.
|
183
|
+
*
|
184
|
+
* ```markdown
|
185
|
+
* > | a <!--b--> c
|
186
|
+
* ^
|
187
|
+
* ```
|
188
|
+
*
|
189
|
+
* @type {State}
|
190
|
+
*/
|
191
|
+
function commentEnd(code) {
|
192
|
+
return code === 62 ? end(code) : code === 45 ? commentClose(code) : comment(code);
|
193
|
+
}
|
194
|
+
|
195
|
+
/**
|
196
|
+
* After `<![`, in CDATA, expecting `CDATA[`.
|
197
|
+
*
|
198
|
+
* ```markdown
|
199
|
+
* > | a <![CDATA[>&<]]> b
|
200
|
+
* ^^^^^^
|
201
|
+
* ```
|
202
|
+
*
|
203
|
+
* @type {State}
|
204
|
+
*/
|
205
|
+
function cdataOpenInside(code) {
|
206
|
+
const value = "CDATA[";
|
207
|
+
if (code === value.charCodeAt(index++)) {
|
208
|
+
effects.consume(code);
|
209
|
+
return index === value.length ? cdata : cdataOpenInside;
|
210
|
+
}
|
211
|
+
return nok(code);
|
212
|
+
}
|
213
|
+
|
214
|
+
/**
|
215
|
+
* In CDATA.
|
216
|
+
*
|
217
|
+
* ```markdown
|
218
|
+
* > | a <![CDATA[>&<]]> b
|
219
|
+
* ^^^
|
220
|
+
* ```
|
221
|
+
*
|
222
|
+
* @type {State}
|
223
|
+
*/
|
224
|
+
function cdata(code) {
|
225
|
+
if (code === null) {
|
226
|
+
return nok(code);
|
227
|
+
}
|
228
|
+
if (code === 93) {
|
229
|
+
effects.consume(code);
|
230
|
+
return cdataClose;
|
231
|
+
}
|
232
|
+
if (markdownLineEnding(code)) {
|
233
|
+
returnState = cdata;
|
234
|
+
return lineEndingBefore(code);
|
235
|
+
}
|
236
|
+
effects.consume(code);
|
237
|
+
return cdata;
|
238
|
+
}
|
239
|
+
|
240
|
+
/**
|
241
|
+
* In CDATA, after `]`, at another `]`.
|
242
|
+
*
|
243
|
+
* ```markdown
|
244
|
+
* > | a <![CDATA[>&<]]> b
|
245
|
+
* ^
|
246
|
+
* ```
|
247
|
+
*
|
248
|
+
* @type {State}
|
249
|
+
*/
|
250
|
+
function cdataClose(code) {
|
251
|
+
if (code === 93) {
|
252
|
+
effects.consume(code);
|
253
|
+
return cdataEnd;
|
254
|
+
}
|
255
|
+
return cdata(code);
|
256
|
+
}
|
257
|
+
|
258
|
+
/**
|
259
|
+
* In CDATA, after `]]`, at `>`.
|
260
|
+
*
|
261
|
+
* ```markdown
|
262
|
+
* > | a <![CDATA[>&<]]> b
|
263
|
+
* ^
|
264
|
+
* ```
|
265
|
+
*
|
266
|
+
* @type {State}
|
267
|
+
*/
|
268
|
+
function cdataEnd(code) {
|
269
|
+
if (code === 62) {
|
270
|
+
return end(code);
|
271
|
+
}
|
272
|
+
if (code === 93) {
|
273
|
+
effects.consume(code);
|
274
|
+
return cdataEnd;
|
275
|
+
}
|
276
|
+
return cdata(code);
|
277
|
+
}
|
278
|
+
|
279
|
+
/**
|
280
|
+
* In declaration.
|
281
|
+
*
|
282
|
+
* ```markdown
|
283
|
+
* > | a <!b> c
|
284
|
+
* ^
|
285
|
+
* ```
|
286
|
+
*
|
287
|
+
* @type {State}
|
288
|
+
*/
|
289
|
+
function declaration(code) {
|
290
|
+
if (code === null || code === 62) {
|
291
|
+
return end(code);
|
292
|
+
}
|
293
|
+
if (markdownLineEnding(code)) {
|
294
|
+
returnState = declaration;
|
295
|
+
return lineEndingBefore(code);
|
296
|
+
}
|
297
|
+
effects.consume(code);
|
298
|
+
return declaration;
|
299
|
+
}
|
300
|
+
|
301
|
+
/**
|
302
|
+
* In instruction.
|
303
|
+
*
|
304
|
+
* ```markdown
|
305
|
+
* > | a <?b?> c
|
306
|
+
* ^
|
307
|
+
* ```
|
308
|
+
*
|
309
|
+
* @type {State}
|
310
|
+
*/
|
311
|
+
function instruction(code) {
|
312
|
+
if (code === null) {
|
313
|
+
return nok(code);
|
314
|
+
}
|
315
|
+
if (code === 63) {
|
316
|
+
effects.consume(code);
|
317
|
+
return instructionClose;
|
318
|
+
}
|
319
|
+
if (markdownLineEnding(code)) {
|
320
|
+
returnState = instruction;
|
321
|
+
return lineEndingBefore(code);
|
322
|
+
}
|
323
|
+
effects.consume(code);
|
324
|
+
return instruction;
|
325
|
+
}
|
326
|
+
|
327
|
+
/**
|
328
|
+
* In instruction, after `?`, at `>`.
|
329
|
+
*
|
330
|
+
* ```markdown
|
331
|
+
* > | a <?b?> c
|
332
|
+
* ^
|
333
|
+
* ```
|
334
|
+
*
|
335
|
+
* @type {State}
|
336
|
+
*/
|
337
|
+
function instructionClose(code) {
|
338
|
+
return code === 62 ? end(code) : instruction(code);
|
339
|
+
}
|
340
|
+
|
341
|
+
/**
|
342
|
+
* After `</`, in closing tag, at tag name.
|
343
|
+
*
|
344
|
+
* ```markdown
|
345
|
+
* > | a </b> c
|
346
|
+
* ^
|
347
|
+
* ```
|
348
|
+
*
|
349
|
+
* @type {State}
|
350
|
+
*/
|
351
|
+
function tagCloseStart(code) {
|
352
|
+
// ASCII alphabetical.
|
353
|
+
if (asciiAlpha(code)) {
|
354
|
+
effects.consume(code);
|
355
|
+
return tagClose;
|
356
|
+
}
|
357
|
+
return nok(code);
|
358
|
+
}
|
359
|
+
|
360
|
+
/**
|
361
|
+
* After `</x`, in a tag name.
|
362
|
+
*
|
363
|
+
* ```markdown
|
364
|
+
* > | a </b> c
|
365
|
+
* ^
|
366
|
+
* ```
|
367
|
+
*
|
368
|
+
* @type {State}
|
369
|
+
*/
|
370
|
+
function tagClose(code) {
|
371
|
+
// ASCII alphanumerical and `-`.
|
372
|
+
if (code === 45 || asciiAlphanumeric(code)) {
|
373
|
+
effects.consume(code);
|
374
|
+
return tagClose;
|
375
|
+
}
|
376
|
+
return tagCloseBetween(code);
|
377
|
+
}
|
378
|
+
|
379
|
+
/**
|
380
|
+
* In closing tag, after tag name.
|
381
|
+
*
|
382
|
+
* ```markdown
|
383
|
+
* > | a </b> c
|
384
|
+
* ^
|
385
|
+
* ```
|
386
|
+
*
|
387
|
+
* @type {State}
|
388
|
+
*/
|
389
|
+
function tagCloseBetween(code) {
|
390
|
+
if (markdownLineEnding(code)) {
|
391
|
+
returnState = tagCloseBetween;
|
392
|
+
return lineEndingBefore(code);
|
393
|
+
}
|
394
|
+
if (markdownSpace(code)) {
|
395
|
+
effects.consume(code);
|
396
|
+
return tagCloseBetween;
|
397
|
+
}
|
398
|
+
return end(code);
|
399
|
+
}
|
400
|
+
|
401
|
+
/**
|
402
|
+
* After `<x`, in opening tag name.
|
403
|
+
*
|
404
|
+
* ```markdown
|
405
|
+
* > | a <b> c
|
406
|
+
* ^
|
407
|
+
* ```
|
408
|
+
*
|
409
|
+
* @type {State}
|
410
|
+
*/
|
411
|
+
function tagOpen(code) {
|
412
|
+
// ASCII alphanumerical and `-`.
|
413
|
+
if (code === 45 || asciiAlphanumeric(code)) {
|
414
|
+
effects.consume(code);
|
415
|
+
return tagOpen;
|
416
|
+
}
|
417
|
+
if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {
|
418
|
+
return tagOpenBetween(code);
|
419
|
+
}
|
420
|
+
return nok(code);
|
421
|
+
}
|
422
|
+
|
423
|
+
/**
|
424
|
+
* In opening tag, after tag name.
|
425
|
+
*
|
426
|
+
* ```markdown
|
427
|
+
* > | a <b> c
|
428
|
+
* ^
|
429
|
+
* ```
|
430
|
+
*
|
431
|
+
* @type {State}
|
432
|
+
*/
|
433
|
+
function tagOpenBetween(code) {
|
434
|
+
if (code === 47) {
|
435
|
+
effects.consume(code);
|
436
|
+
return end;
|
437
|
+
}
|
438
|
+
|
439
|
+
// ASCII alphabetical and `:` and `_`.
|
440
|
+
if (code === 58 || code === 95 || asciiAlpha(code)) {
|
441
|
+
effects.consume(code);
|
442
|
+
return tagOpenAttributeName;
|
443
|
+
}
|
444
|
+
if (markdownLineEnding(code)) {
|
445
|
+
returnState = tagOpenBetween;
|
446
|
+
return lineEndingBefore(code);
|
447
|
+
}
|
448
|
+
if (markdownSpace(code)) {
|
449
|
+
effects.consume(code);
|
450
|
+
return tagOpenBetween;
|
451
|
+
}
|
452
|
+
return end(code);
|
453
|
+
}
|
454
|
+
|
455
|
+
/**
|
456
|
+
* In attribute name.
|
457
|
+
*
|
458
|
+
* ```markdown
|
459
|
+
* > | a <b c> d
|
460
|
+
* ^
|
461
|
+
* ```
|
462
|
+
*
|
463
|
+
* @type {State}
|
464
|
+
*/
|
465
|
+
function tagOpenAttributeName(code) {
|
466
|
+
// ASCII alphabetical and `-`, `.`, `:`, and `_`.
|
467
|
+
if (code === 45 || code === 46 || code === 58 || code === 95 || asciiAlphanumeric(code)) {
|
468
|
+
effects.consume(code);
|
469
|
+
return tagOpenAttributeName;
|
470
|
+
}
|
471
|
+
return tagOpenAttributeNameAfter(code);
|
472
|
+
}
|
473
|
+
|
474
|
+
/**
|
475
|
+
* After attribute name, before initializer, the end of the tag, or
|
476
|
+
* whitespace.
|
477
|
+
*
|
478
|
+
* ```markdown
|
479
|
+
* > | a <b c> d
|
480
|
+
* ^
|
481
|
+
* ```
|
482
|
+
*
|
483
|
+
* @type {State}
|
484
|
+
*/
|
485
|
+
function tagOpenAttributeNameAfter(code) {
|
486
|
+
if (code === 61) {
|
487
|
+
effects.consume(code);
|
488
|
+
return tagOpenAttributeValueBefore;
|
489
|
+
}
|
490
|
+
if (markdownLineEnding(code)) {
|
491
|
+
returnState = tagOpenAttributeNameAfter;
|
492
|
+
return lineEndingBefore(code);
|
493
|
+
}
|
494
|
+
if (markdownSpace(code)) {
|
495
|
+
effects.consume(code);
|
496
|
+
return tagOpenAttributeNameAfter;
|
497
|
+
}
|
498
|
+
return tagOpenBetween(code);
|
499
|
+
}
|
500
|
+
|
501
|
+
/**
|
502
|
+
* Before unquoted, double quoted, or single quoted attribute value, allowing
|
503
|
+
* whitespace.
|
504
|
+
*
|
505
|
+
* ```markdown
|
506
|
+
* > | a <b c=d> e
|
507
|
+
* ^
|
508
|
+
* ```
|
509
|
+
*
|
510
|
+
* @type {State}
|
511
|
+
*/
|
512
|
+
function tagOpenAttributeValueBefore(code) {
|
513
|
+
if (code === null || code === 60 || code === 61 || code === 62 || code === 96) {
|
514
|
+
return nok(code);
|
515
|
+
}
|
516
|
+
if (code === 34 || code === 39) {
|
517
|
+
effects.consume(code);
|
518
|
+
marker = code;
|
519
|
+
return tagOpenAttributeValueQuoted;
|
520
|
+
}
|
521
|
+
if (markdownLineEnding(code)) {
|
522
|
+
returnState = tagOpenAttributeValueBefore;
|
523
|
+
return lineEndingBefore(code);
|
524
|
+
}
|
525
|
+
if (markdownSpace(code)) {
|
526
|
+
effects.consume(code);
|
527
|
+
return tagOpenAttributeValueBefore;
|
528
|
+
}
|
529
|
+
effects.consume(code);
|
530
|
+
return tagOpenAttributeValueUnquoted;
|
531
|
+
}
|
532
|
+
|
533
|
+
/**
|
534
|
+
* In double or single quoted attribute value.
|
535
|
+
*
|
536
|
+
* ```markdown
|
537
|
+
* > | a <b c="d"> e
|
538
|
+
* ^
|
539
|
+
* ```
|
540
|
+
*
|
541
|
+
* @type {State}
|
542
|
+
*/
|
543
|
+
function tagOpenAttributeValueQuoted(code) {
|
544
|
+
if (code === marker) {
|
545
|
+
effects.consume(code);
|
546
|
+
marker = undefined;
|
547
|
+
return tagOpenAttributeValueQuotedAfter;
|
548
|
+
}
|
549
|
+
if (code === null) {
|
550
|
+
return nok(code);
|
551
|
+
}
|
552
|
+
if (markdownLineEnding(code)) {
|
553
|
+
returnState = tagOpenAttributeValueQuoted;
|
554
|
+
return lineEndingBefore(code);
|
555
|
+
}
|
556
|
+
effects.consume(code);
|
557
|
+
return tagOpenAttributeValueQuoted;
|
558
|
+
}
|
559
|
+
|
560
|
+
/**
|
561
|
+
* In unquoted attribute value.
|
562
|
+
*
|
563
|
+
* ```markdown
|
564
|
+
* > | a <b c=d> e
|
565
|
+
* ^
|
566
|
+
* ```
|
567
|
+
*
|
568
|
+
* @type {State}
|
569
|
+
*/
|
570
|
+
function tagOpenAttributeValueUnquoted(code) {
|
571
|
+
if (code === null || code === 34 || code === 39 || code === 60 || code === 61 || code === 96) {
|
572
|
+
return nok(code);
|
573
|
+
}
|
574
|
+
if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {
|
575
|
+
return tagOpenBetween(code);
|
576
|
+
}
|
577
|
+
effects.consume(code);
|
578
|
+
return tagOpenAttributeValueUnquoted;
|
579
|
+
}
|
580
|
+
|
581
|
+
/**
|
582
|
+
* After double or single quoted attribute value, before whitespace or the end
|
583
|
+
* of the tag.
|
584
|
+
*
|
585
|
+
* ```markdown
|
586
|
+
* > | a <b c="d"> e
|
587
|
+
* ^
|
588
|
+
* ```
|
589
|
+
*
|
590
|
+
* @type {State}
|
591
|
+
*/
|
592
|
+
function tagOpenAttributeValueQuotedAfter(code) {
|
593
|
+
if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {
|
594
|
+
return tagOpenBetween(code);
|
595
|
+
}
|
596
|
+
return nok(code);
|
597
|
+
}
|
598
|
+
|
599
|
+
/**
|
600
|
+
* In certain circumstances of a tag where only an `>` is allowed.
|
601
|
+
*
|
602
|
+
* ```markdown
|
603
|
+
* > | a <b c="d"> e
|
604
|
+
* ^
|
605
|
+
* ```
|
606
|
+
*
|
607
|
+
* @type {State}
|
608
|
+
*/
|
609
|
+
function end(code) {
|
610
|
+
if (code === 62) {
|
611
|
+
effects.consume(code);
|
612
|
+
effects.exit("htmlTextData");
|
613
|
+
effects.exit("htmlText");
|
614
|
+
return ok;
|
615
|
+
}
|
616
|
+
return nok(code);
|
617
|
+
}
|
618
|
+
|
619
|
+
/**
|
620
|
+
* At eol.
|
621
|
+
*
|
622
|
+
* > ๐ **Note**: we canโt have blank lines in text, so no need to worry about
|
623
|
+
* > empty tokens.
|
624
|
+
*
|
625
|
+
* ```markdown
|
626
|
+
* > | a <!--a
|
627
|
+
* ^
|
628
|
+
* | b-->
|
629
|
+
* ```
|
630
|
+
*
|
631
|
+
* @type {State}
|
632
|
+
*/
|
633
|
+
function lineEndingBefore(code) {
|
634
|
+
effects.exit("htmlTextData");
|
635
|
+
effects.enter("lineEnding");
|
636
|
+
effects.consume(code);
|
637
|
+
effects.exit("lineEnding");
|
638
|
+
return lineEndingAfter;
|
639
|
+
}
|
640
|
+
|
641
|
+
/**
|
642
|
+
* After eol, at optional whitespace.
|
643
|
+
*
|
644
|
+
* > ๐ **Note**: we canโt have blank lines in text, so no need to worry about
|
645
|
+
* > empty tokens.
|
646
|
+
*
|
647
|
+
* ```markdown
|
648
|
+
* | a <!--a
|
649
|
+
* > | b-->
|
650
|
+
* ^
|
651
|
+
* ```
|
652
|
+
*
|
653
|
+
* @type {State}
|
654
|
+
*/
|
655
|
+
function lineEndingAfter(code) {
|
656
|
+
// Always populated by defaults.
|
657
|
+
|
658
|
+
return markdownSpace(code) ? factorySpace(effects, lineEndingAfterPrefix, "linePrefix", self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4)(code) : lineEndingAfterPrefix(code);
|
659
|
+
}
|
660
|
+
|
661
|
+
/**
|
662
|
+
* After eol, after optional whitespace.
|
663
|
+
*
|
664
|
+
* > ๐ **Note**: we canโt have blank lines in text, so no need to worry about
|
665
|
+
* > empty tokens.
|
666
|
+
*
|
667
|
+
* ```markdown
|
668
|
+
* | a <!--a
|
669
|
+
* > | b-->
|
670
|
+
* ^
|
671
|
+
* ```
|
672
|
+
*
|
673
|
+
* @type {State}
|
674
|
+
*/
|
675
|
+
function lineEndingAfterPrefix(code) {
|
676
|
+
effects.enter("htmlTextData");
|
677
|
+
return returnState(code);
|
678
|
+
}
|
679
|
+
}
|
680
|
+
|
681
|
+
export { htmlText };
|
682
|
+
//# sourceMappingURL=html-text.js.map
|