@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.
Files changed (392) hide show
  1. package/library/axiom-ui-forms.d.ts +36 -4
  2. package/library/esm/_virtual/index10.js +2 -2
  3. package/library/esm/_virtual/index11.js +2 -2
  4. package/library/esm/_virtual/index12.js +6 -2
  5. package/library/esm/_virtual/index12.js.map +1 -1
  6. package/library/esm/_virtual/index13.js +6 -2
  7. package/library/esm/_virtual/index13.js.map +1 -1
  8. package/library/esm/_virtual/index14.js +2 -2
  9. package/library/esm/_virtual/index15.js +4 -0
  10. package/library/esm/_virtual/index15.js.map +1 -0
  11. package/library/esm/_virtual/index16.js +4 -0
  12. package/library/esm/_virtual/index16.js.map +1 -0
  13. package/library/esm/_virtual/index17.js +4 -0
  14. package/library/esm/_virtual/index17.js.map +1 -0
  15. package/library/esm/_virtual/index6.js +2 -2
  16. package/library/esm/_virtual/index6.js.map +1 -1
  17. package/library/esm/_virtual/index7.js +2 -2
  18. package/library/esm/_virtual/index7.js.map +1 -1
  19. package/library/esm/_virtual/index8.js +2 -2
  20. package/library/esm/_virtual/index9.js +2 -2
  21. package/library/esm/_virtual/utilities.js +4 -0
  22. package/library/esm/_virtual/utilities.js.map +1 -0
  23. package/library/esm/node_modules/@axdspub/axiom-ui-utilities/library/index.js +241 -9
  24. package/library/esm/node_modules/@axdspub/axiom-ui-utilities/library/index.js.map +1 -1
  25. package/library/esm/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
  26. package/library/esm/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  27. package/library/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
  28. package/library/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  29. package/library/esm/node_modules/@codemirror/autocomplete/dist/index.js +1652 -0
  30. package/library/esm/node_modules/@codemirror/autocomplete/dist/index.js.map +1 -0
  31. package/library/esm/node_modules/@codemirror/commands/dist/index.js +1444 -0
  32. package/library/esm/node_modules/@codemirror/commands/dist/index.js.map +1 -0
  33. package/library/esm/node_modules/@codemirror/lang-json/dist/index.js +33 -0
  34. package/library/esm/node_modules/@codemirror/lang-json/dist/index.js.map +1 -0
  35. package/library/esm/node_modules/@codemirror/lang-yaml/dist/index.js +59 -0
  36. package/library/esm/node_modules/@codemirror/lang-yaml/dist/index.js.map +1 -0
  37. package/library/esm/node_modules/@codemirror/language/dist/index.js +1821 -0
  38. package/library/esm/node_modules/@codemirror/language/dist/index.js.map +1 -0
  39. package/library/esm/node_modules/@codemirror/lint/dist/index.js +589 -0
  40. package/library/esm/node_modules/@codemirror/lint/dist/index.js.map +1 -0
  41. package/library/esm/node_modules/@codemirror/search/dist/index.js +1227 -0
  42. package/library/esm/node_modules/@codemirror/search/dist/index.js.map +1 -0
  43. package/library/esm/node_modules/@codemirror/state/dist/index.js +3882 -0
  44. package/library/esm/node_modules/@codemirror/state/dist/index.js.map +1 -0
  45. package/library/esm/node_modules/@codemirror/theme-one-dark/dist/index.js +114 -0
  46. package/library/esm/node_modules/@codemirror/theme-one-dark/dist/index.js.map +1 -0
  47. package/library/esm/node_modules/@codemirror/view/dist/index.js +11052 -0
  48. package/library/esm/node_modules/@codemirror/view/dist/index.js.map +1 -0
  49. package/library/esm/node_modules/@lezer/common/dist/index.js +1704 -0
  50. package/library/esm/node_modules/@lezer/common/dist/index.js.map +1 -0
  51. package/library/esm/node_modules/@lezer/highlight/dist/index.js +876 -0
  52. package/library/esm/node_modules/@lezer/highlight/dist/index.js.map +1 -0
  53. package/library/esm/node_modules/@lezer/json/dist/index.js +38 -0
  54. package/library/esm/node_modules/@lezer/json/dist/index.js.map +1 -0
  55. package/library/esm/node_modules/@lezer/lr/dist/index.js +1855 -0
  56. package/library/esm/node_modules/@lezer/lr/dist/index.js.map +1 -0
  57. package/library/esm/node_modules/@lezer/yaml/dist/index.js +392 -0
  58. package/library/esm/node_modules/@lezer/yaml/dist/index.js.map +1 -0
  59. package/library/esm/node_modules/@marijn/find-cluster-break/src/index.js +83 -0
  60. package/library/esm/node_modules/@marijn/find-cluster-break/src/index.js.map +1 -0
  61. package/library/esm/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +67 -1
  62. package/library/esm/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -1
  63. package/library/esm/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js +100 -0
  64. package/library/esm/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js.map +1 -0
  65. package/library/esm/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js +58 -0
  66. package/library/esm/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js.map +1 -0
  67. package/library/esm/node_modules/@uiw/react-codemirror/esm/index.js +89 -0
  68. package/library/esm/node_modules/@uiw/react-codemirror/esm/index.js.map +1 -0
  69. package/library/esm/node_modules/@uiw/react-codemirror/esm/theme/light.js +12 -0
  70. package/library/esm/node_modules/@uiw/react-codemirror/esm/theme/light.js.map +1 -0
  71. package/library/esm/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js +151 -0
  72. package/library/esm/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js.map +1 -0
  73. package/library/esm/node_modules/@uiw/react-codemirror/esm/utils.js +19 -0
  74. package/library/esm/node_modules/@uiw/react-codemirror/esm/utils.js.map +1 -0
  75. package/library/esm/node_modules/@ungap/structured-clone/esm/deserialize.js +77 -0
  76. package/library/esm/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
  77. package/library/esm/node_modules/@ungap/structured-clone/esm/index.js +25 -0
  78. package/library/esm/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
  79. package/library/esm/node_modules/@ungap/structured-clone/esm/serialize.js +159 -0
  80. package/library/esm/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
  81. package/library/esm/node_modules/@ungap/structured-clone/esm/types.js +14 -0
  82. package/library/esm/node_modules/@ungap/structured-clone/esm/types.js.map +1 -0
  83. package/library/esm/node_modules/ajv/dist/compile/index.js +1 -1
  84. package/library/esm/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
  85. package/library/esm/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
  86. package/library/esm/node_modules/ajv/dist/vocabularies/format/index.js +1 -1
  87. package/library/esm/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
  88. package/library/esm/node_modules/bail/index.js +15 -0
  89. package/library/esm/node_modules/bail/index.js.map +1 -0
  90. package/library/esm/node_modules/comma-separated-tokens/index.js +37 -0
  91. package/library/esm/node_modules/comma-separated-tokens/index.js.map +1 -0
  92. package/library/esm/node_modules/crelt/index.js +30 -0
  93. package/library/esm/node_modules/crelt/index.js.map +1 -0
  94. package/library/esm/node_modules/decode-named-character-reference/index.dom.js +39 -0
  95. package/library/esm/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
  96. package/library/esm/node_modules/devlop/lib/default.js +6 -0
  97. package/library/esm/node_modules/devlop/lib/default.js.map +1 -0
  98. package/library/esm/node_modules/estree-util-is-identifier-name/lib/index.js +31 -0
  99. package/library/esm/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
  100. package/library/esm/node_modules/extend/index.js +127 -0
  101. package/library/esm/node_modules/extend/index.js.map +1 -0
  102. package/library/esm/node_modules/fast-uri/index.js +1 -1
  103. package/library/esm/node_modules/hast-util-to-jsx-runtime/lib/index.js +791 -0
  104. package/library/esm/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
  105. package/library/esm/node_modules/hast-util-whitespace/lib/index.js +37 -0
  106. package/library/esm/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
  107. package/library/esm/node_modules/html-url-attributes/lib/index.js +34 -0
  108. package/library/esm/node_modules/html-url-attributes/lib/index.js.map +1 -0
  109. package/library/esm/node_modules/inline-style-parser/index.js +268 -0
  110. package/library/esm/node_modules/inline-style-parser/index.js.map +1 -0
  111. package/library/esm/node_modules/js-yaml/dist/js-yaml.js +3850 -0
  112. package/library/esm/node_modules/js-yaml/dist/js-yaml.js.map +1 -0
  113. package/library/esm/node_modules/json-schema-traverse/index.js +1 -1
  114. package/library/esm/node_modules/mdast-util-from-markdown/lib/index.js +1181 -0
  115. package/library/esm/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
  116. package/library/esm/node_modules/mdast-util-to-hast/lib/footer.js +197 -0
  117. package/library/esm/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
  118. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +31 -0
  119. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
  120. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/break.js +27 -0
  121. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
  122. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/code.js +51 -0
  123. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
  124. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/delete.js +31 -0
  125. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
  126. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +31 -0
  127. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
  128. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +74 -0
  129. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
  130. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/heading.js +31 -0
  131. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
  132. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/html.js +32 -0
  133. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
  134. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +45 -0
  135. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
  136. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image.js +40 -0
  137. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
  138. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/index.js +67 -0
  139. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
  140. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +36 -0
  141. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
  142. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +50 -0
  143. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
  144. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link.js +41 -0
  145. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
  146. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +126 -0
  147. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
  148. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list.js +57 -0
  149. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
  150. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +31 -0
  151. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
  152. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/root.js +27 -0
  153. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
  154. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/strong.js +31 -0
  155. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
  156. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +33 -0
  157. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
  158. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +70 -0
  159. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
  160. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table.js +65 -0
  161. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
  162. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/text.js +29 -0
  163. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
  164. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +31 -0
  165. package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
  166. package/library/esm/node_modules/mdast-util-to-hast/lib/index.js +105 -0
  167. package/library/esm/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
  168. package/library/esm/node_modules/mdast-util-to-hast/lib/revert.js +56 -0
  169. package/library/esm/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
  170. package/library/esm/node_modules/mdast-util-to-hast/lib/state.js +322 -0
  171. package/library/esm/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
  172. package/library/esm/node_modules/mdast-util-to-string/lib/index.js +111 -0
  173. package/library/esm/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  174. package/library/esm/node_modules/micromark/lib/constructs.js +108 -0
  175. package/library/esm/node_modules/micromark/lib/constructs.js.map +1 -0
  176. package/library/esm/node_modules/micromark/lib/create-tokenizer.js +576 -0
  177. package/library/esm/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
  178. package/library/esm/node_modules/micromark/lib/initialize/content.js +83 -0
  179. package/library/esm/node_modules/micromark/lib/initialize/content.js.map +1 -0
  180. package/library/esm/node_modules/micromark/lib/initialize/document.js +361 -0
  181. package/library/esm/node_modules/micromark/lib/initialize/document.js.map +1 -0
  182. package/library/esm/node_modules/micromark/lib/initialize/flow.js +62 -0
  183. package/library/esm/node_modules/micromark/lib/initialize/flow.js.map +1 -0
  184. package/library/esm/node_modules/micromark/lib/initialize/text.js +213 -0
  185. package/library/esm/node_modules/micromark/lib/initialize/text.js.map +1 -0
  186. package/library/esm/node_modules/micromark/lib/parse.js +60 -0
  187. package/library/esm/node_modules/micromark/lib/parse.js.map +1 -0
  188. package/library/esm/node_modules/micromark/lib/postprocess.js +22 -0
  189. package/library/esm/node_modules/micromark/lib/postprocess.js.map +1 -0
  190. package/library/esm/node_modules/micromark/lib/preprocess.js +118 -0
  191. package/library/esm/node_modules/micromark/lib/preprocess.js.map +1 -0
  192. package/library/esm/node_modules/micromark-core-commonmark/lib/attention.js +245 -0
  193. package/library/esm/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
  194. package/library/esm/node_modules/micromark-core-commonmark/lib/autolink.js +237 -0
  195. package/library/esm/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
  196. package/library/esm/node_modules/micromark-core-commonmark/lib/blank-line.js +65 -0
  197. package/library/esm/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  198. package/library/esm/node_modules/micromark-core-commonmark/lib/block-quote.js +147 -0
  199. package/library/esm/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
  200. package/library/esm/node_modules/micromark-core-commonmark/lib/character-escape.js +68 -0
  201. package/library/esm/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
  202. package/library/esm/node_modules/micromark-core-commonmark/lib/character-reference.js +153 -0
  203. package/library/esm/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
  204. package/library/esm/node_modules/micromark-core-commonmark/lib/code-fenced.js +464 -0
  205. package/library/esm/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
  206. package/library/esm/node_modules/micromark-core-commonmark/lib/code-indented.js +181 -0
  207. package/library/esm/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
  208. package/library/esm/node_modules/micromark-core-commonmark/lib/code-text.js +228 -0
  209. package/library/esm/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
  210. package/library/esm/node_modules/micromark-core-commonmark/lib/content.js +167 -0
  211. package/library/esm/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
  212. package/library/esm/node_modules/micromark-core-commonmark/lib/definition.js +258 -0
  213. package/library/esm/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
  214. package/library/esm/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +64 -0
  215. package/library/esm/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
  216. package/library/esm/node_modules/micromark-core-commonmark/lib/heading-atx.js +199 -0
  217. package/library/esm/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
  218. package/library/esm/node_modules/micromark-core-commonmark/lib/html-flow.js +880 -0
  219. package/library/esm/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
  220. package/library/esm/node_modules/micromark-core-commonmark/lib/html-text.js +682 -0
  221. package/library/esm/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
  222. package/library/esm/node_modules/micromark-core-commonmark/lib/label-end.js +564 -0
  223. package/library/esm/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
  224. package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-image.js +106 -0
  225. package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
  226. package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-link.js +59 -0
  227. package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
  228. package/library/esm/node_modules/micromark-core-commonmark/lib/line-ending.js +36 -0
  229. package/library/esm/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
  230. package/library/esm/node_modules/micromark-core-commonmark/lib/list.js +217 -0
  231. package/library/esm/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
  232. package/library/esm/node_modules/micromark-core-commonmark/lib/setext-underline.js +189 -0
  233. package/library/esm/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
  234. package/library/esm/node_modules/micromark-core-commonmark/lib/thematic-break.js +106 -0
  235. package/library/esm/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
  236. package/library/esm/node_modules/micromark-factory-destination/index.js +210 -0
  237. package/library/esm/node_modules/micromark-factory-destination/index.js.map +1 -0
  238. package/library/esm/node_modules/micromark-factory-label/index.js +152 -0
  239. package/library/esm/node_modules/micromark-factory-label/index.js.map +1 -0
  240. package/library/esm/node_modules/micromark-factory-space/index.js +68 -0
  241. package/library/esm/node_modules/micromark-factory-space/index.js.map +1 -0
  242. package/library/esm/node_modules/micromark-factory-title/index.js +162 -0
  243. package/library/esm/node_modules/micromark-factory-title/index.js.map +1 -0
  244. package/library/esm/node_modules/micromark-factory-whitespace/index.js +48 -0
  245. package/library/esm/node_modules/micromark-factory-whitespace/index.js.map +1 -0
  246. package/library/esm/node_modules/micromark-util-character/index.js +249 -0
  247. package/library/esm/node_modules/micromark-util-character/index.js.map +1 -0
  248. package/library/esm/node_modules/micromark-util-chunked/index.js +84 -0
  249. package/library/esm/node_modules/micromark-util-chunked/index.js.map +1 -0
  250. package/library/esm/node_modules/micromark-util-classify-character/index.js +31 -0
  251. package/library/esm/node_modules/micromark-util-classify-character/index.js.map +1 -0
  252. package/library/esm/node_modules/micromark-util-combine-extensions/index.js +96 -0
  253. package/library/esm/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  254. package/library/esm/node_modules/micromark-util-decode-numeric-character-reference/index.js +35 -0
  255. package/library/esm/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
  256. package/library/esm/node_modules/micromark-util-decode-string/index.js +49 -0
  257. package/library/esm/node_modules/micromark-util-decode-string/index.js.map +1 -0
  258. package/library/esm/node_modules/micromark-util-html-tag-name/index.js +96 -0
  259. package/library/esm/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
  260. package/library/esm/node_modules/micromark-util-normalize-identifier/index.js +36 -0
  261. package/library/esm/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  262. package/library/esm/node_modules/micromark-util-resolve-all/index.js +35 -0
  263. package/library/esm/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  264. package/library/esm/node_modules/micromark-util-sanitize-uri/index.js +67 -0
  265. package/library/esm/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
  266. package/library/esm/node_modules/micromark-util-subtokenize/index.js +227 -0
  267. package/library/esm/node_modules/micromark-util-subtokenize/index.js.map +1 -0
  268. package/library/esm/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +254 -0
  269. package/library/esm/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
  270. package/library/esm/node_modules/property-information/index.js +16 -0
  271. package/library/esm/node_modules/property-information/index.js.map +1 -0
  272. package/library/esm/node_modules/property-information/lib/aria.js +64 -0
  273. package/library/esm/node_modules/property-information/lib/aria.js.map +1 -0
  274. package/library/esm/node_modules/property-information/lib/find.js +101 -0
  275. package/library/esm/node_modules/property-information/lib/find.js.map +1 -0
  276. package/library/esm/node_modules/property-information/lib/hast-to-react.js +33 -0
  277. package/library/esm/node_modules/property-information/lib/hast-to-react.js.map +1 -0
  278. package/library/esm/node_modules/property-information/lib/html.js +318 -0
  279. package/library/esm/node_modules/property-information/lib/html.js.map +1 -0
  280. package/library/esm/node_modules/property-information/lib/normalize.js +15 -0
  281. package/library/esm/node_modules/property-information/lib/normalize.js.map +1 -0
  282. package/library/esm/node_modules/property-information/lib/svg.js +564 -0
  283. package/library/esm/node_modules/property-information/lib/svg.js.map +1 -0
  284. package/library/esm/node_modules/property-information/lib/util/case-insensitive-transform.js +16 -0
  285. package/library/esm/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
  286. package/library/esm/node_modules/property-information/lib/util/case-sensitive-transform.js +14 -0
  287. package/library/esm/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
  288. package/library/esm/node_modules/property-information/lib/util/create.js +47 -0
  289. package/library/esm/node_modules/property-information/lib/util/create.js.map +1 -0
  290. package/library/esm/node_modules/property-information/lib/util/defined-info.js +64 -0
  291. package/library/esm/node_modules/property-information/lib/util/defined-info.js.map +1 -0
  292. package/library/esm/node_modules/property-information/lib/util/info.js +35 -0
  293. package/library/esm/node_modules/property-information/lib/util/info.js.map +1 -0
  294. package/library/esm/node_modules/property-information/lib/util/merge.js +31 -0
  295. package/library/esm/node_modules/property-information/lib/util/merge.js.map +1 -0
  296. package/library/esm/node_modules/property-information/lib/util/schema.js +32 -0
  297. package/library/esm/node_modules/property-information/lib/util/schema.js.map +1 -0
  298. package/library/esm/node_modules/property-information/lib/util/types.js +16 -0
  299. package/library/esm/node_modules/property-information/lib/util/types.js.map +1 -0
  300. package/library/esm/node_modules/property-information/lib/xlink.js +20 -0
  301. package/library/esm/node_modules/property-information/lib/xlink.js.map +1 -0
  302. package/library/esm/node_modules/property-information/lib/xml.js +12 -0
  303. package/library/esm/node_modules/property-information/lib/xml.js.map +1 -0
  304. package/library/esm/node_modules/property-information/lib/xmlns.js +12 -0
  305. package/library/esm/node_modules/property-information/lib/xmlns.js.map +1 -0
  306. package/library/esm/node_modules/react-markdown/lib/index.js +267 -0
  307. package/library/esm/node_modules/react-markdown/lib/index.js.map +1 -0
  308. package/library/esm/node_modules/react-router/dist/development/chunk-HA7DTUK3.js +1 -1
  309. package/library/esm/node_modules/react-router/node_modules/cookie/dist/index.js +1 -1
  310. package/library/esm/node_modules/remark-parse/lib/index.js +43 -0
  311. package/library/esm/node_modules/remark-parse/lib/index.js.map +1 -0
  312. package/library/esm/node_modules/remark-rehype/lib/index.js +132 -0
  313. package/library/esm/node_modules/remark-rehype/lib/index.js.map +1 -0
  314. package/library/esm/node_modules/space-separated-tokens/index.js +23 -0
  315. package/library/esm/node_modules/space-separated-tokens/index.js.map +1 -0
  316. package/library/esm/node_modules/style-mod/src/style-mod.js +175 -0
  317. package/library/esm/node_modules/style-mod/src/style-mod.js.map +1 -0
  318. package/library/esm/node_modules/style-to-js/cjs/index.js +38 -0
  319. package/library/esm/node_modules/style-to-js/cjs/index.js.map +1 -0
  320. package/library/esm/node_modules/style-to-js/cjs/utilities.js +58 -0
  321. package/library/esm/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  322. package/library/esm/node_modules/style-to-object/cjs/index.js +56 -0
  323. package/library/esm/node_modules/style-to-object/cjs/index.js.map +1 -0
  324. package/library/esm/node_modules/trim-lines/index.js +72 -0
  325. package/library/esm/node_modules/trim-lines/index.js.map +1 -0
  326. package/library/esm/node_modules/trough/lib/index.js +209 -0
  327. package/library/esm/node_modules/trough/lib/index.js.map +1 -0
  328. package/library/esm/node_modules/unified/lib/callable-instance.js +47 -0
  329. package/library/esm/node_modules/unified/lib/callable-instance.js.map +1 -0
  330. package/library/esm/node_modules/unified/lib/index.js +979 -0
  331. package/library/esm/node_modules/unified/lib/index.js.map +1 -0
  332. package/library/esm/node_modules/unified/node_modules/is-plain-obj/index.js +11 -0
  333. package/library/esm/node_modules/unified/node_modules/is-plain-obj/index.js.map +1 -0
  334. package/library/esm/node_modules/unist-util-is/lib/index.js +179 -0
  335. package/library/esm/node_modules/unist-util-is/lib/index.js.map +1 -0
  336. package/library/esm/node_modules/unist-util-position/lib/index.js +98 -0
  337. package/library/esm/node_modules/unist-util-position/lib/index.js.map +1 -0
  338. package/library/esm/node_modules/unist-util-stringify-position/lib/index.js +87 -0
  339. package/library/esm/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
  340. package/library/esm/node_modules/unist-util-visit/lib/index.js +95 -0
  341. package/library/esm/node_modules/unist-util-visit/lib/index.js.map +1 -0
  342. package/library/esm/node_modules/unist-util-visit-parents/lib/color.js +10 -0
  343. package/library/esm/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
  344. package/library/esm/node_modules/unist-util-visit-parents/lib/index.js +188 -0
  345. package/library/esm/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  346. package/library/esm/node_modules/vfile/lib/index.js +644 -0
  347. package/library/esm/node_modules/vfile/lib/index.js.map +1 -0
  348. package/library/esm/node_modules/vfile/lib/minpath.browser.js +427 -0
  349. package/library/esm/node_modules/vfile/lib/minpath.browser.js.map +1 -0
  350. package/library/esm/node_modules/vfile/lib/minproc.browser.js +11 -0
  351. package/library/esm/node_modules/vfile/lib/minproc.browser.js.map +1 -0
  352. package/library/esm/node_modules/vfile/lib/minurl.browser.js +77 -0
  353. package/library/esm/node_modules/vfile/lib/minurl.browser.js.map +1 -0
  354. package/library/esm/node_modules/vfile/lib/minurl.shared.js +34 -0
  355. package/library/esm/node_modules/vfile/lib/minurl.shared.js.map +1 -0
  356. package/library/esm/node_modules/vfile-message/lib/index.js +305 -0
  357. package/library/esm/node_modules/vfile-message/lib/index.js.map +1 -0
  358. package/library/esm/node_modules/w3c-keyname/index.js +122 -0
  359. package/library/esm/node_modules/w3c-keyname/index.js.map +1 -0
  360. package/library/esm/src/Form/Components/FieldLabel.js +13 -3
  361. package/library/esm/src/Form/Components/FieldLabel.js.map +1 -1
  362. package/library/esm/src/Form/Components/InlineMarkdown.js +15 -0
  363. package/library/esm/src/Form/Components/InlineMarkdown.js.map +1 -0
  364. package/library/esm/src/Form/Components/Inputs/Boolean.js +5 -2
  365. package/library/esm/src/Form/Components/Inputs/Boolean.js.map +1 -1
  366. package/library/esm/src/Form/Components/Inputs/GeoJSONInputLoader.js +1 -1
  367. package/library/esm/src/Form/Components/Inputs/Geometry.js +290 -329
  368. package/library/esm/src/Form/Components/Inputs/Geometry.js.map +1 -1
  369. package/library/esm/src/Form/Components/Inputs/JSON.js +132 -0
  370. package/library/esm/src/Form/Components/Inputs/JSON.js.map +1 -0
  371. package/library/esm/src/Form/Components/Inputs/JSONInputLoader.js +19 -0
  372. package/library/esm/src/Form/Components/Inputs/JSONInputLoader.js.map +1 -0
  373. package/library/esm/src/Form/Components/Inputs/Number.js +78 -8
  374. package/library/esm/src/Form/Components/Inputs/Number.js.map +1 -1
  375. package/library/esm/src/Form/Components/Inputs/inputMap.js +2 -2
  376. package/library/esm/src/Form/Components/Inputs/inputMap.js.map +1 -1
  377. package/library/esm/src/Form/Creator/FormCreator.js +6 -2
  378. package/library/esm/src/Form/Creator/FormCreator.js.map +1 -1
  379. package/library/esm/src/Form/Creator/FormHeader.js +7 -5
  380. package/library/esm/src/Form/Creator/FormHeader.js.map +1 -1
  381. package/library/esm/src/Form/Creator/Page.js +4 -3
  382. package/library/esm/src/Form/Creator/Page.js.map +1 -1
  383. package/library/esm/src/Form/Manage/CopyableJSONOutput.js +41 -0
  384. package/library/esm/src/Form/Manage/CopyableJSONOutput.js.map +1 -0
  385. package/library/esm/src/Form/helpers.js +1 -1
  386. package/library/esm/src/Form/helpers.js.map +1 -1
  387. package/library/esm/src/Form/schemaToFormHelpers.js +87 -1
  388. package/library/esm/src/Form/schemaToFormHelpers.js.map +1 -1
  389. package/library/esm/src/library.js +1 -1
  390. package/package.json +7 -1
  391. package/library/esm/src/Form/Components/Inputs/JSONString.js +0 -34
  392. 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