@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,880 @@
|
|
1
|
+
import { asciiAlpha, markdownLineEndingOrSpace, asciiAlphanumeric, markdownSpace, markdownLineEnding } from '../../micromark-util-character/index.js';
|
2
|
+
import { htmlRawNames, htmlBlockNames } from '../../micromark-util-html-tag-name/index.js';
|
3
|
+
import { blankLine } from './blank-line.js';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @import {
|
7
|
+
* Code,
|
8
|
+
* Construct,
|
9
|
+
* Resolver,
|
10
|
+
* State,
|
11
|
+
* TokenizeContext,
|
12
|
+
* Tokenizer
|
13
|
+
* } from 'micromark-util-types'
|
14
|
+
*/
|
15
|
+
|
16
|
+
|
17
|
+
/** @type {Construct} */
|
18
|
+
const htmlFlow = {
|
19
|
+
concrete: true,
|
20
|
+
name: 'htmlFlow',
|
21
|
+
resolveTo: resolveToHtmlFlow,
|
22
|
+
tokenize: tokenizeHtmlFlow
|
23
|
+
};
|
24
|
+
|
25
|
+
/** @type {Construct} */
|
26
|
+
const blankLineBefore = {
|
27
|
+
partial: true,
|
28
|
+
tokenize: tokenizeBlankLineBefore
|
29
|
+
};
|
30
|
+
const nonLazyContinuationStart = {
|
31
|
+
partial: true,
|
32
|
+
tokenize: tokenizeNonLazyContinuationStart
|
33
|
+
};
|
34
|
+
|
35
|
+
/** @type {Resolver} */
|
36
|
+
function resolveToHtmlFlow(events) {
|
37
|
+
let index = events.length;
|
38
|
+
while (index--) {
|
39
|
+
if (events[index][0] === 'enter' && events[index][1].type === "htmlFlow") {
|
40
|
+
break;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
if (index > 1 && events[index - 2][1].type === "linePrefix") {
|
44
|
+
// Add the prefix start to the HTML token.
|
45
|
+
events[index][1].start = events[index - 2][1].start;
|
46
|
+
// Add the prefix start to the HTML line token.
|
47
|
+
events[index + 1][1].start = events[index - 2][1].start;
|
48
|
+
// Remove the line prefix.
|
49
|
+
events.splice(index - 2, 2);
|
50
|
+
}
|
51
|
+
return events;
|
52
|
+
}
|
53
|
+
|
54
|
+
/**
|
55
|
+
* @this {TokenizeContext}
|
56
|
+
* Context.
|
57
|
+
* @type {Tokenizer}
|
58
|
+
*/
|
59
|
+
function tokenizeHtmlFlow(effects, ok, nok) {
|
60
|
+
const self = this;
|
61
|
+
/** @type {number} */
|
62
|
+
let marker;
|
63
|
+
/** @type {boolean} */
|
64
|
+
let closingTag;
|
65
|
+
/** @type {string} */
|
66
|
+
let buffer;
|
67
|
+
/** @type {number} */
|
68
|
+
let index;
|
69
|
+
/** @type {Code} */
|
70
|
+
let markerB;
|
71
|
+
return start;
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Start of HTML (flow).
|
75
|
+
*
|
76
|
+
* ```markdown
|
77
|
+
* > | <x />
|
78
|
+
* ^
|
79
|
+
* ```
|
80
|
+
*
|
81
|
+
* @type {State}
|
82
|
+
*/
|
83
|
+
function start(code) {
|
84
|
+
// To do: parse indent like `markdown-rs`.
|
85
|
+
return before(code);
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* At `<`, after optional whitespace.
|
90
|
+
*
|
91
|
+
* ```markdown
|
92
|
+
* > | <x />
|
93
|
+
* ^
|
94
|
+
* ```
|
95
|
+
*
|
96
|
+
* @type {State}
|
97
|
+
*/
|
98
|
+
function before(code) {
|
99
|
+
effects.enter("htmlFlow");
|
100
|
+
effects.enter("htmlFlowData");
|
101
|
+
effects.consume(code);
|
102
|
+
return open;
|
103
|
+
}
|
104
|
+
|
105
|
+
/**
|
106
|
+
* After `<`, at tag name or other stuff.
|
107
|
+
*
|
108
|
+
* ```markdown
|
109
|
+
* > | <x />
|
110
|
+
* ^
|
111
|
+
* > | <!doctype>
|
112
|
+
* ^
|
113
|
+
* > | <!--xxx-->
|
114
|
+
* ^
|
115
|
+
* ```
|
116
|
+
*
|
117
|
+
* @type {State}
|
118
|
+
*/
|
119
|
+
function open(code) {
|
120
|
+
if (code === 33) {
|
121
|
+
effects.consume(code);
|
122
|
+
return declarationOpen;
|
123
|
+
}
|
124
|
+
if (code === 47) {
|
125
|
+
effects.consume(code);
|
126
|
+
closingTag = true;
|
127
|
+
return tagCloseStart;
|
128
|
+
}
|
129
|
+
if (code === 63) {
|
130
|
+
effects.consume(code);
|
131
|
+
marker = 3;
|
132
|
+
// To do:
|
133
|
+
// tokenizer.concrete = true
|
134
|
+
// To do: use `markdown-rs` style interrupt.
|
135
|
+
// While we’re in an instruction instead of a declaration, we’re on a `?`
|
136
|
+
// right now, so we do need to search for `>`, similar to declarations.
|
137
|
+
return self.interrupt ? ok : continuationDeclarationInside;
|
138
|
+
}
|
139
|
+
|
140
|
+
// ASCII alphabetical.
|
141
|
+
if (asciiAlpha(code)) {
|
142
|
+
// Always the case.
|
143
|
+
effects.consume(code);
|
144
|
+
buffer = String.fromCharCode(code);
|
145
|
+
return tagName;
|
146
|
+
}
|
147
|
+
return nok(code);
|
148
|
+
}
|
149
|
+
|
150
|
+
/**
|
151
|
+
* After `<!`, at declaration, comment, or CDATA.
|
152
|
+
*
|
153
|
+
* ```markdown
|
154
|
+
* > | <!doctype>
|
155
|
+
* ^
|
156
|
+
* > | <!--xxx-->
|
157
|
+
* ^
|
158
|
+
* > | <![CDATA[>&<]]>
|
159
|
+
* ^
|
160
|
+
* ```
|
161
|
+
*
|
162
|
+
* @type {State}
|
163
|
+
*/
|
164
|
+
function declarationOpen(code) {
|
165
|
+
if (code === 45) {
|
166
|
+
effects.consume(code);
|
167
|
+
marker = 2;
|
168
|
+
return commentOpenInside;
|
169
|
+
}
|
170
|
+
if (code === 91) {
|
171
|
+
effects.consume(code);
|
172
|
+
marker = 5;
|
173
|
+
index = 0;
|
174
|
+
return cdataOpenInside;
|
175
|
+
}
|
176
|
+
|
177
|
+
// ASCII alphabetical.
|
178
|
+
if (asciiAlpha(code)) {
|
179
|
+
effects.consume(code);
|
180
|
+
marker = 4;
|
181
|
+
// // Do not form containers.
|
182
|
+
// tokenizer.concrete = true
|
183
|
+
return self.interrupt ? ok : continuationDeclarationInside;
|
184
|
+
}
|
185
|
+
return nok(code);
|
186
|
+
}
|
187
|
+
|
188
|
+
/**
|
189
|
+
* After `<!-`, inside a comment, at another `-`.
|
190
|
+
*
|
191
|
+
* ```markdown
|
192
|
+
* > | <!--xxx-->
|
193
|
+
* ^
|
194
|
+
* ```
|
195
|
+
*
|
196
|
+
* @type {State}
|
197
|
+
*/
|
198
|
+
function commentOpenInside(code) {
|
199
|
+
if (code === 45) {
|
200
|
+
effects.consume(code);
|
201
|
+
// // Do not form containers.
|
202
|
+
// tokenizer.concrete = true
|
203
|
+
return self.interrupt ? ok : continuationDeclarationInside;
|
204
|
+
}
|
205
|
+
return nok(code);
|
206
|
+
}
|
207
|
+
|
208
|
+
/**
|
209
|
+
* After `<![`, inside CDATA, expecting `CDATA[`.
|
210
|
+
*
|
211
|
+
* ```markdown
|
212
|
+
* > | <![CDATA[>&<]]>
|
213
|
+
* ^^^^^^
|
214
|
+
* ```
|
215
|
+
*
|
216
|
+
* @type {State}
|
217
|
+
*/
|
218
|
+
function cdataOpenInside(code) {
|
219
|
+
const value = "CDATA[";
|
220
|
+
if (code === value.charCodeAt(index++)) {
|
221
|
+
effects.consume(code);
|
222
|
+
if (index === value.length) {
|
223
|
+
// // Do not form containers.
|
224
|
+
// tokenizer.concrete = true
|
225
|
+
return self.interrupt ? ok : continuation;
|
226
|
+
}
|
227
|
+
return cdataOpenInside;
|
228
|
+
}
|
229
|
+
return nok(code);
|
230
|
+
}
|
231
|
+
|
232
|
+
/**
|
233
|
+
* After `</`, in closing tag, at tag name.
|
234
|
+
*
|
235
|
+
* ```markdown
|
236
|
+
* > | </x>
|
237
|
+
* ^
|
238
|
+
* ```
|
239
|
+
*
|
240
|
+
* @type {State}
|
241
|
+
*/
|
242
|
+
function tagCloseStart(code) {
|
243
|
+
if (asciiAlpha(code)) {
|
244
|
+
// Always the case.
|
245
|
+
effects.consume(code);
|
246
|
+
buffer = String.fromCharCode(code);
|
247
|
+
return tagName;
|
248
|
+
}
|
249
|
+
return nok(code);
|
250
|
+
}
|
251
|
+
|
252
|
+
/**
|
253
|
+
* In tag name.
|
254
|
+
*
|
255
|
+
* ```markdown
|
256
|
+
* > | <ab>
|
257
|
+
* ^^
|
258
|
+
* > | </ab>
|
259
|
+
* ^^
|
260
|
+
* ```
|
261
|
+
*
|
262
|
+
* @type {State}
|
263
|
+
*/
|
264
|
+
function tagName(code) {
|
265
|
+
if (code === null || code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {
|
266
|
+
const slash = code === 47;
|
267
|
+
const name = buffer.toLowerCase();
|
268
|
+
if (!slash && !closingTag && htmlRawNames.includes(name)) {
|
269
|
+
marker = 1;
|
270
|
+
// // Do not form containers.
|
271
|
+
// tokenizer.concrete = true
|
272
|
+
return self.interrupt ? ok(code) : continuation(code);
|
273
|
+
}
|
274
|
+
if (htmlBlockNames.includes(buffer.toLowerCase())) {
|
275
|
+
marker = 6;
|
276
|
+
if (slash) {
|
277
|
+
effects.consume(code);
|
278
|
+
return basicSelfClosing;
|
279
|
+
}
|
280
|
+
|
281
|
+
// // Do not form containers.
|
282
|
+
// tokenizer.concrete = true
|
283
|
+
return self.interrupt ? ok(code) : continuation(code);
|
284
|
+
}
|
285
|
+
marker = 7;
|
286
|
+
// Do not support complete HTML when interrupting.
|
287
|
+
return self.interrupt && !self.parser.lazy[self.now().line] ? nok(code) : closingTag ? completeClosingTagAfter(code) : completeAttributeNameBefore(code);
|
288
|
+
}
|
289
|
+
|
290
|
+
// ASCII alphanumerical and `-`.
|
291
|
+
if (code === 45 || asciiAlphanumeric(code)) {
|
292
|
+
effects.consume(code);
|
293
|
+
buffer += String.fromCharCode(code);
|
294
|
+
return tagName;
|
295
|
+
}
|
296
|
+
return nok(code);
|
297
|
+
}
|
298
|
+
|
299
|
+
/**
|
300
|
+
* After closing slash of a basic tag name.
|
301
|
+
*
|
302
|
+
* ```markdown
|
303
|
+
* > | <div/>
|
304
|
+
* ^
|
305
|
+
* ```
|
306
|
+
*
|
307
|
+
* @type {State}
|
308
|
+
*/
|
309
|
+
function basicSelfClosing(code) {
|
310
|
+
if (code === 62) {
|
311
|
+
effects.consume(code);
|
312
|
+
// // Do not form containers.
|
313
|
+
// tokenizer.concrete = true
|
314
|
+
return self.interrupt ? ok : continuation;
|
315
|
+
}
|
316
|
+
return nok(code);
|
317
|
+
}
|
318
|
+
|
319
|
+
/**
|
320
|
+
* After closing slash of a complete tag name.
|
321
|
+
*
|
322
|
+
* ```markdown
|
323
|
+
* > | <x/>
|
324
|
+
* ^
|
325
|
+
* ```
|
326
|
+
*
|
327
|
+
* @type {State}
|
328
|
+
*/
|
329
|
+
function completeClosingTagAfter(code) {
|
330
|
+
if (markdownSpace(code)) {
|
331
|
+
effects.consume(code);
|
332
|
+
return completeClosingTagAfter;
|
333
|
+
}
|
334
|
+
return completeEnd(code);
|
335
|
+
}
|
336
|
+
|
337
|
+
/**
|
338
|
+
* At an attribute name.
|
339
|
+
*
|
340
|
+
* At first, this state is used after a complete tag name, after whitespace,
|
341
|
+
* where it expects optional attributes or the end of the tag.
|
342
|
+
* It is also reused after attributes, when expecting more optional
|
343
|
+
* attributes.
|
344
|
+
*
|
345
|
+
* ```markdown
|
346
|
+
* > | <a />
|
347
|
+
* ^
|
348
|
+
* > | <a :b>
|
349
|
+
* ^
|
350
|
+
* > | <a _b>
|
351
|
+
* ^
|
352
|
+
* > | <a b>
|
353
|
+
* ^
|
354
|
+
* > | <a >
|
355
|
+
* ^
|
356
|
+
* ```
|
357
|
+
*
|
358
|
+
* @type {State}
|
359
|
+
*/
|
360
|
+
function completeAttributeNameBefore(code) {
|
361
|
+
if (code === 47) {
|
362
|
+
effects.consume(code);
|
363
|
+
return completeEnd;
|
364
|
+
}
|
365
|
+
|
366
|
+
// ASCII alphanumerical and `:` and `_`.
|
367
|
+
if (code === 58 || code === 95 || asciiAlpha(code)) {
|
368
|
+
effects.consume(code);
|
369
|
+
return completeAttributeName;
|
370
|
+
}
|
371
|
+
if (markdownSpace(code)) {
|
372
|
+
effects.consume(code);
|
373
|
+
return completeAttributeNameBefore;
|
374
|
+
}
|
375
|
+
return completeEnd(code);
|
376
|
+
}
|
377
|
+
|
378
|
+
/**
|
379
|
+
* In attribute name.
|
380
|
+
*
|
381
|
+
* ```markdown
|
382
|
+
* > | <a :b>
|
383
|
+
* ^
|
384
|
+
* > | <a _b>
|
385
|
+
* ^
|
386
|
+
* > | <a b>
|
387
|
+
* ^
|
388
|
+
* ```
|
389
|
+
*
|
390
|
+
* @type {State}
|
391
|
+
*/
|
392
|
+
function completeAttributeName(code) {
|
393
|
+
// ASCII alphanumerical and `-`, `.`, `:`, and `_`.
|
394
|
+
if (code === 45 || code === 46 || code === 58 || code === 95 || asciiAlphanumeric(code)) {
|
395
|
+
effects.consume(code);
|
396
|
+
return completeAttributeName;
|
397
|
+
}
|
398
|
+
return completeAttributeNameAfter(code);
|
399
|
+
}
|
400
|
+
|
401
|
+
/**
|
402
|
+
* After attribute name, at an optional initializer, the end of the tag, or
|
403
|
+
* whitespace.
|
404
|
+
*
|
405
|
+
* ```markdown
|
406
|
+
* > | <a b>
|
407
|
+
* ^
|
408
|
+
* > | <a b=c>
|
409
|
+
* ^
|
410
|
+
* ```
|
411
|
+
*
|
412
|
+
* @type {State}
|
413
|
+
*/
|
414
|
+
function completeAttributeNameAfter(code) {
|
415
|
+
if (code === 61) {
|
416
|
+
effects.consume(code);
|
417
|
+
return completeAttributeValueBefore;
|
418
|
+
}
|
419
|
+
if (markdownSpace(code)) {
|
420
|
+
effects.consume(code);
|
421
|
+
return completeAttributeNameAfter;
|
422
|
+
}
|
423
|
+
return completeAttributeNameBefore(code);
|
424
|
+
}
|
425
|
+
|
426
|
+
/**
|
427
|
+
* Before unquoted, double quoted, or single quoted attribute value, allowing
|
428
|
+
* whitespace.
|
429
|
+
*
|
430
|
+
* ```markdown
|
431
|
+
* > | <a b=c>
|
432
|
+
* ^
|
433
|
+
* > | <a b="c">
|
434
|
+
* ^
|
435
|
+
* ```
|
436
|
+
*
|
437
|
+
* @type {State}
|
438
|
+
*/
|
439
|
+
function completeAttributeValueBefore(code) {
|
440
|
+
if (code === null || code === 60 || code === 61 || code === 62 || code === 96) {
|
441
|
+
return nok(code);
|
442
|
+
}
|
443
|
+
if (code === 34 || code === 39) {
|
444
|
+
effects.consume(code);
|
445
|
+
markerB = code;
|
446
|
+
return completeAttributeValueQuoted;
|
447
|
+
}
|
448
|
+
if (markdownSpace(code)) {
|
449
|
+
effects.consume(code);
|
450
|
+
return completeAttributeValueBefore;
|
451
|
+
}
|
452
|
+
return completeAttributeValueUnquoted(code);
|
453
|
+
}
|
454
|
+
|
455
|
+
/**
|
456
|
+
* In double or single quoted attribute value.
|
457
|
+
*
|
458
|
+
* ```markdown
|
459
|
+
* > | <a b="c">
|
460
|
+
* ^
|
461
|
+
* > | <a b='c'>
|
462
|
+
* ^
|
463
|
+
* ```
|
464
|
+
*
|
465
|
+
* @type {State}
|
466
|
+
*/
|
467
|
+
function completeAttributeValueQuoted(code) {
|
468
|
+
if (code === markerB) {
|
469
|
+
effects.consume(code);
|
470
|
+
markerB = null;
|
471
|
+
return completeAttributeValueQuotedAfter;
|
472
|
+
}
|
473
|
+
if (code === null || markdownLineEnding(code)) {
|
474
|
+
return nok(code);
|
475
|
+
}
|
476
|
+
effects.consume(code);
|
477
|
+
return completeAttributeValueQuoted;
|
478
|
+
}
|
479
|
+
|
480
|
+
/**
|
481
|
+
* In unquoted attribute value.
|
482
|
+
*
|
483
|
+
* ```markdown
|
484
|
+
* > | <a b=c>
|
485
|
+
* ^
|
486
|
+
* ```
|
487
|
+
*
|
488
|
+
* @type {State}
|
489
|
+
*/
|
490
|
+
function completeAttributeValueUnquoted(code) {
|
491
|
+
if (code === null || code === 34 || code === 39 || code === 47 || code === 60 || code === 61 || code === 62 || code === 96 || markdownLineEndingOrSpace(code)) {
|
492
|
+
return completeAttributeNameAfter(code);
|
493
|
+
}
|
494
|
+
effects.consume(code);
|
495
|
+
return completeAttributeValueUnquoted;
|
496
|
+
}
|
497
|
+
|
498
|
+
/**
|
499
|
+
* After double or single quoted attribute value, before whitespace or the
|
500
|
+
* end of the tag.
|
501
|
+
*
|
502
|
+
* ```markdown
|
503
|
+
* > | <a b="c">
|
504
|
+
* ^
|
505
|
+
* ```
|
506
|
+
*
|
507
|
+
* @type {State}
|
508
|
+
*/
|
509
|
+
function completeAttributeValueQuotedAfter(code) {
|
510
|
+
if (code === 47 || code === 62 || markdownSpace(code)) {
|
511
|
+
return completeAttributeNameBefore(code);
|
512
|
+
}
|
513
|
+
return nok(code);
|
514
|
+
}
|
515
|
+
|
516
|
+
/**
|
517
|
+
* In certain circumstances of a complete tag where only an `>` is allowed.
|
518
|
+
*
|
519
|
+
* ```markdown
|
520
|
+
* > | <a b="c">
|
521
|
+
* ^
|
522
|
+
* ```
|
523
|
+
*
|
524
|
+
* @type {State}
|
525
|
+
*/
|
526
|
+
function completeEnd(code) {
|
527
|
+
if (code === 62) {
|
528
|
+
effects.consume(code);
|
529
|
+
return completeAfter;
|
530
|
+
}
|
531
|
+
return nok(code);
|
532
|
+
}
|
533
|
+
|
534
|
+
/**
|
535
|
+
* After `>` in a complete tag.
|
536
|
+
*
|
537
|
+
* ```markdown
|
538
|
+
* > | <x>
|
539
|
+
* ^
|
540
|
+
* ```
|
541
|
+
*
|
542
|
+
* @type {State}
|
543
|
+
*/
|
544
|
+
function completeAfter(code) {
|
545
|
+
if (code === null || markdownLineEnding(code)) {
|
546
|
+
// // Do not form containers.
|
547
|
+
// tokenizer.concrete = true
|
548
|
+
return continuation(code);
|
549
|
+
}
|
550
|
+
if (markdownSpace(code)) {
|
551
|
+
effects.consume(code);
|
552
|
+
return completeAfter;
|
553
|
+
}
|
554
|
+
return nok(code);
|
555
|
+
}
|
556
|
+
|
557
|
+
/**
|
558
|
+
* In continuation of any HTML kind.
|
559
|
+
*
|
560
|
+
* ```markdown
|
561
|
+
* > | <!--xxx-->
|
562
|
+
* ^
|
563
|
+
* ```
|
564
|
+
*
|
565
|
+
* @type {State}
|
566
|
+
*/
|
567
|
+
function continuation(code) {
|
568
|
+
if (code === 45 && marker === 2) {
|
569
|
+
effects.consume(code);
|
570
|
+
return continuationCommentInside;
|
571
|
+
}
|
572
|
+
if (code === 60 && marker === 1) {
|
573
|
+
effects.consume(code);
|
574
|
+
return continuationRawTagOpen;
|
575
|
+
}
|
576
|
+
if (code === 62 && marker === 4) {
|
577
|
+
effects.consume(code);
|
578
|
+
return continuationClose;
|
579
|
+
}
|
580
|
+
if (code === 63 && marker === 3) {
|
581
|
+
effects.consume(code);
|
582
|
+
return continuationDeclarationInside;
|
583
|
+
}
|
584
|
+
if (code === 93 && marker === 5) {
|
585
|
+
effects.consume(code);
|
586
|
+
return continuationCdataInside;
|
587
|
+
}
|
588
|
+
if (markdownLineEnding(code) && (marker === 6 || marker === 7)) {
|
589
|
+
effects.exit("htmlFlowData");
|
590
|
+
return effects.check(blankLineBefore, continuationAfter, continuationStart)(code);
|
591
|
+
}
|
592
|
+
if (code === null || markdownLineEnding(code)) {
|
593
|
+
effects.exit("htmlFlowData");
|
594
|
+
return continuationStart(code);
|
595
|
+
}
|
596
|
+
effects.consume(code);
|
597
|
+
return continuation;
|
598
|
+
}
|
599
|
+
|
600
|
+
/**
|
601
|
+
* In continuation, at eol.
|
602
|
+
*
|
603
|
+
* ```markdown
|
604
|
+
* > | <x>
|
605
|
+
* ^
|
606
|
+
* | asd
|
607
|
+
* ```
|
608
|
+
*
|
609
|
+
* @type {State}
|
610
|
+
*/
|
611
|
+
function continuationStart(code) {
|
612
|
+
return effects.check(nonLazyContinuationStart, continuationStartNonLazy, continuationAfter)(code);
|
613
|
+
}
|
614
|
+
|
615
|
+
/**
|
616
|
+
* In continuation, at eol, before non-lazy content.
|
617
|
+
*
|
618
|
+
* ```markdown
|
619
|
+
* > | <x>
|
620
|
+
* ^
|
621
|
+
* | asd
|
622
|
+
* ```
|
623
|
+
*
|
624
|
+
* @type {State}
|
625
|
+
*/
|
626
|
+
function continuationStartNonLazy(code) {
|
627
|
+
effects.enter("lineEnding");
|
628
|
+
effects.consume(code);
|
629
|
+
effects.exit("lineEnding");
|
630
|
+
return continuationBefore;
|
631
|
+
}
|
632
|
+
|
633
|
+
/**
|
634
|
+
* In continuation, before non-lazy content.
|
635
|
+
*
|
636
|
+
* ```markdown
|
637
|
+
* | <x>
|
638
|
+
* > | asd
|
639
|
+
* ^
|
640
|
+
* ```
|
641
|
+
*
|
642
|
+
* @type {State}
|
643
|
+
*/
|
644
|
+
function continuationBefore(code) {
|
645
|
+
if (code === null || markdownLineEnding(code)) {
|
646
|
+
return continuationStart(code);
|
647
|
+
}
|
648
|
+
effects.enter("htmlFlowData");
|
649
|
+
return continuation(code);
|
650
|
+
}
|
651
|
+
|
652
|
+
/**
|
653
|
+
* In comment continuation, after one `-`, expecting another.
|
654
|
+
*
|
655
|
+
* ```markdown
|
656
|
+
* > | <!--xxx-->
|
657
|
+
* ^
|
658
|
+
* ```
|
659
|
+
*
|
660
|
+
* @type {State}
|
661
|
+
*/
|
662
|
+
function continuationCommentInside(code) {
|
663
|
+
if (code === 45) {
|
664
|
+
effects.consume(code);
|
665
|
+
return continuationDeclarationInside;
|
666
|
+
}
|
667
|
+
return continuation(code);
|
668
|
+
}
|
669
|
+
|
670
|
+
/**
|
671
|
+
* In raw continuation, after `<`, at `/`.
|
672
|
+
*
|
673
|
+
* ```markdown
|
674
|
+
* > | <script>console.log(1)</script>
|
675
|
+
* ^
|
676
|
+
* ```
|
677
|
+
*
|
678
|
+
* @type {State}
|
679
|
+
*/
|
680
|
+
function continuationRawTagOpen(code) {
|
681
|
+
if (code === 47) {
|
682
|
+
effects.consume(code);
|
683
|
+
buffer = '';
|
684
|
+
return continuationRawEndTag;
|
685
|
+
}
|
686
|
+
return continuation(code);
|
687
|
+
}
|
688
|
+
|
689
|
+
/**
|
690
|
+
* In raw continuation, after `</`, in a raw tag name.
|
691
|
+
*
|
692
|
+
* ```markdown
|
693
|
+
* > | <script>console.log(1)</script>
|
694
|
+
* ^^^^^^
|
695
|
+
* ```
|
696
|
+
*
|
697
|
+
* @type {State}
|
698
|
+
*/
|
699
|
+
function continuationRawEndTag(code) {
|
700
|
+
if (code === 62) {
|
701
|
+
const name = buffer.toLowerCase();
|
702
|
+
if (htmlRawNames.includes(name)) {
|
703
|
+
effects.consume(code);
|
704
|
+
return continuationClose;
|
705
|
+
}
|
706
|
+
return continuation(code);
|
707
|
+
}
|
708
|
+
if (asciiAlpha(code) && buffer.length < 8) {
|
709
|
+
// Always the case.
|
710
|
+
effects.consume(code);
|
711
|
+
buffer += String.fromCharCode(code);
|
712
|
+
return continuationRawEndTag;
|
713
|
+
}
|
714
|
+
return continuation(code);
|
715
|
+
}
|
716
|
+
|
717
|
+
/**
|
718
|
+
* In cdata continuation, after `]`, expecting `]>`.
|
719
|
+
*
|
720
|
+
* ```markdown
|
721
|
+
* > | <![CDATA[>&<]]>
|
722
|
+
* ^
|
723
|
+
* ```
|
724
|
+
*
|
725
|
+
* @type {State}
|
726
|
+
*/
|
727
|
+
function continuationCdataInside(code) {
|
728
|
+
if (code === 93) {
|
729
|
+
effects.consume(code);
|
730
|
+
return continuationDeclarationInside;
|
731
|
+
}
|
732
|
+
return continuation(code);
|
733
|
+
}
|
734
|
+
|
735
|
+
/**
|
736
|
+
* In declaration or instruction continuation, at `>`.
|
737
|
+
*
|
738
|
+
* ```markdown
|
739
|
+
* > | <!-->
|
740
|
+
* ^
|
741
|
+
* > | <?>
|
742
|
+
* ^
|
743
|
+
* > | <!q>
|
744
|
+
* ^
|
745
|
+
* > | <!--ab-->
|
746
|
+
* ^
|
747
|
+
* > | <![CDATA[>&<]]>
|
748
|
+
* ^
|
749
|
+
* ```
|
750
|
+
*
|
751
|
+
* @type {State}
|
752
|
+
*/
|
753
|
+
function continuationDeclarationInside(code) {
|
754
|
+
if (code === 62) {
|
755
|
+
effects.consume(code);
|
756
|
+
return continuationClose;
|
757
|
+
}
|
758
|
+
|
759
|
+
// More dashes.
|
760
|
+
if (code === 45 && marker === 2) {
|
761
|
+
effects.consume(code);
|
762
|
+
return continuationDeclarationInside;
|
763
|
+
}
|
764
|
+
return continuation(code);
|
765
|
+
}
|
766
|
+
|
767
|
+
/**
|
768
|
+
* In closed continuation: everything we get until the eol/eof is part of it.
|
769
|
+
*
|
770
|
+
* ```markdown
|
771
|
+
* > | <!doctype>
|
772
|
+
* ^
|
773
|
+
* ```
|
774
|
+
*
|
775
|
+
* @type {State}
|
776
|
+
*/
|
777
|
+
function continuationClose(code) {
|
778
|
+
if (code === null || markdownLineEnding(code)) {
|
779
|
+
effects.exit("htmlFlowData");
|
780
|
+
return continuationAfter(code);
|
781
|
+
}
|
782
|
+
effects.consume(code);
|
783
|
+
return continuationClose;
|
784
|
+
}
|
785
|
+
|
786
|
+
/**
|
787
|
+
* Done.
|
788
|
+
*
|
789
|
+
* ```markdown
|
790
|
+
* > | <!doctype>
|
791
|
+
* ^
|
792
|
+
* ```
|
793
|
+
*
|
794
|
+
* @type {State}
|
795
|
+
*/
|
796
|
+
function continuationAfter(code) {
|
797
|
+
effects.exit("htmlFlow");
|
798
|
+
// // Feel free to interrupt.
|
799
|
+
// tokenizer.interrupt = false
|
800
|
+
// // No longer concrete.
|
801
|
+
// tokenizer.concrete = false
|
802
|
+
return ok(code);
|
803
|
+
}
|
804
|
+
}
|
805
|
+
|
806
|
+
/**
|
807
|
+
* @this {TokenizeContext}
|
808
|
+
* Context.
|
809
|
+
* @type {Tokenizer}
|
810
|
+
*/
|
811
|
+
function tokenizeNonLazyContinuationStart(effects, ok, nok) {
|
812
|
+
const self = this;
|
813
|
+
return start;
|
814
|
+
|
815
|
+
/**
|
816
|
+
* At eol, before continuation.
|
817
|
+
*
|
818
|
+
* ```markdown
|
819
|
+
* > | * ```js
|
820
|
+
* ^
|
821
|
+
* | b
|
822
|
+
* ```
|
823
|
+
*
|
824
|
+
* @type {State}
|
825
|
+
*/
|
826
|
+
function start(code) {
|
827
|
+
if (markdownLineEnding(code)) {
|
828
|
+
effects.enter("lineEnding");
|
829
|
+
effects.consume(code);
|
830
|
+
effects.exit("lineEnding");
|
831
|
+
return after;
|
832
|
+
}
|
833
|
+
return nok(code);
|
834
|
+
}
|
835
|
+
|
836
|
+
/**
|
837
|
+
* A continuation.
|
838
|
+
*
|
839
|
+
* ```markdown
|
840
|
+
* | * ```js
|
841
|
+
* > | b
|
842
|
+
* ^
|
843
|
+
* ```
|
844
|
+
*
|
845
|
+
* @type {State}
|
846
|
+
*/
|
847
|
+
function after(code) {
|
848
|
+
return self.parser.lazy[self.now().line] ? nok(code) : ok(code);
|
849
|
+
}
|
850
|
+
}
|
851
|
+
|
852
|
+
/**
|
853
|
+
* @this {TokenizeContext}
|
854
|
+
* Context.
|
855
|
+
* @type {Tokenizer}
|
856
|
+
*/
|
857
|
+
function tokenizeBlankLineBefore(effects, ok, nok) {
|
858
|
+
return start;
|
859
|
+
|
860
|
+
/**
|
861
|
+
* Before eol, expecting blank line.
|
862
|
+
*
|
863
|
+
* ```markdown
|
864
|
+
* > | <div>
|
865
|
+
* ^
|
866
|
+
* |
|
867
|
+
* ```
|
868
|
+
*
|
869
|
+
* @type {State}
|
870
|
+
*/
|
871
|
+
function start(code) {
|
872
|
+
effects.enter("lineEnding");
|
873
|
+
effects.consume(code);
|
874
|
+
effects.exit("lineEnding");
|
875
|
+
return effects.attempt(blankLine, ok, nok);
|
876
|
+
}
|
877
|
+
}
|
878
|
+
|
879
|
+
export { htmlFlow };
|
880
|
+
//# sourceMappingURL=html-flow.js.map
|