@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,876 @@
1
+ import { NodeProp } from '../../common/dist/index.js';
2
+
3
+ let nextTagID = 0;
4
+ /**
5
+ Highlighting tags are markers that denote a highlighting category.
6
+ They are [associated](#highlight.styleTags) with parts of a syntax
7
+ tree by a language mode, and then mapped to an actual CSS style by
8
+ a [highlighter](#highlight.Highlighter).
9
+
10
+ Because syntax tree node types and highlight styles have to be
11
+ able to talk the same language, CodeMirror uses a mostly _closed_
12
+ [vocabulary](#highlight.tags) of syntax tags (as opposed to
13
+ traditional open string-based systems, which make it hard for
14
+ highlighting themes to cover all the tokens produced by the
15
+ various languages).
16
+
17
+ It _is_ possible to [define](#highlight.Tag^define) your own
18
+ highlighting tags for system-internal use (where you control both
19
+ the language package and the highlighter), but such tags will not
20
+ be picked up by regular highlighters (though you can derive them
21
+ from standard tags to allow highlighters to fall back to those).
22
+ */
23
+ class Tag {
24
+ /**
25
+ @internal
26
+ */
27
+ constructor(
28
+ /**
29
+ The optional name of the base tag @internal
30
+ */
31
+ name,
32
+ /**
33
+ The set of this tag and all its parent tags, starting with
34
+ this one itself and sorted in order of decreasing specificity.
35
+ */
36
+ set,
37
+ /**
38
+ The base unmodified tag that this one is based on, if it's
39
+ modified @internal
40
+ */
41
+ base,
42
+ /**
43
+ The modifiers applied to this.base @internal
44
+ */
45
+ modified) {
46
+ this.name = name;
47
+ this.set = set;
48
+ this.base = base;
49
+ this.modified = modified;
50
+ /**
51
+ @internal
52
+ */
53
+ this.id = nextTagID++;
54
+ }
55
+ toString() {
56
+ let { name } = this;
57
+ for (let mod of this.modified)
58
+ if (mod.name)
59
+ name = `${mod.name}(${name})`;
60
+ return name;
61
+ }
62
+ static define(nameOrParent, parent) {
63
+ let name = typeof nameOrParent == "string" ? nameOrParent : "?";
64
+ if (nameOrParent instanceof Tag)
65
+ parent = nameOrParent;
66
+ if (parent === null || parent === void 0 ? void 0 : parent.base)
67
+ throw new Error("Can not derive from a modified tag");
68
+ let tag = new Tag(name, [], null, []);
69
+ tag.set.push(tag);
70
+ if (parent)
71
+ for (let t of parent.set)
72
+ tag.set.push(t);
73
+ return tag;
74
+ }
75
+ /**
76
+ Define a tag _modifier_, which is a function that, given a tag,
77
+ will return a tag that is a subtag of the original. Applying the
78
+ same modifier to a twice tag will return the same value (`m1(t1)
79
+ == m1(t1)`) and applying multiple modifiers will, regardless or
80
+ order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
81
+
82
+ When multiple modifiers are applied to a given base tag, each
83
+ smaller set of modifiers is registered as a parent, so that for
84
+ example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
85
+ `m1(m3(t1)`, and so on.
86
+ */
87
+ static defineModifier(name) {
88
+ let mod = new Modifier(name);
89
+ return (tag) => {
90
+ if (tag.modified.indexOf(mod) > -1)
91
+ return tag;
92
+ return Modifier.get(tag.base || tag, tag.modified.concat(mod).sort((a, b) => a.id - b.id));
93
+ };
94
+ }
95
+ }
96
+ let nextModifierID = 0;
97
+ class Modifier {
98
+ constructor(name) {
99
+ this.name = name;
100
+ this.instances = [];
101
+ this.id = nextModifierID++;
102
+ }
103
+ static get(base, mods) {
104
+ if (!mods.length)
105
+ return base;
106
+ let exists = mods[0].instances.find(t => t.base == base && sameArray(mods, t.modified));
107
+ if (exists)
108
+ return exists;
109
+ let set = [], tag = new Tag(base.name, set, base, mods);
110
+ for (let m of mods)
111
+ m.instances.push(tag);
112
+ let configs = powerSet(mods);
113
+ for (let parent of base.set)
114
+ if (!parent.modified.length)
115
+ for (let config of configs)
116
+ set.push(Modifier.get(parent, config));
117
+ return tag;
118
+ }
119
+ }
120
+ function sameArray(a, b) {
121
+ return a.length == b.length && a.every((x, i) => x == b[i]);
122
+ }
123
+ function powerSet(array) {
124
+ let sets = [[]];
125
+ for (let i = 0; i < array.length; i++) {
126
+ for (let j = 0, e = sets.length; j < e; j++) {
127
+ sets.push(sets[j].concat(array[i]));
128
+ }
129
+ }
130
+ return sets.sort((a, b) => b.length - a.length);
131
+ }
132
+ /**
133
+ This function is used to add a set of tags to a language syntax
134
+ via [`NodeSet.extend`](#common.NodeSet.extend) or
135
+ [`LRParser.configure`](#lr.LRParser.configure).
136
+
137
+ The argument object maps node selectors to [highlighting
138
+ tags](#highlight.Tag) or arrays of tags.
139
+
140
+ Node selectors may hold one or more (space-separated) node paths.
141
+ Such a path can be a [node name](#common.NodeType.name), or
142
+ multiple node names (or `*` wildcards) separated by slash
143
+ characters, as in `"Block/Declaration/VariableName"`. Such a path
144
+ matches the final node but only if its direct parent nodes are the
145
+ other nodes mentioned. A `*` in such a path matches any parent,
146
+ but only a single level—wildcards that match multiple parents
147
+ aren't supported, both for efficiency reasons and because Lezer
148
+ trees make it rather hard to reason about what they would match.)
149
+
150
+ A path can be ended with `/...` to indicate that the tag assigned
151
+ to the node should also apply to all child nodes, even if they
152
+ match their own style (by default, only the innermost style is
153
+ used).
154
+
155
+ When a path ends in `!`, as in `Attribute!`, no further matching
156
+ happens for the node's child nodes, and the entire node gets the
157
+ given style.
158
+
159
+ In this notation, node names that contain `/`, `!`, `*`, or `...`
160
+ must be quoted as JSON strings.
161
+
162
+ For example:
163
+
164
+ ```javascript
165
+ parser.withProps(
166
+ styleTags({
167
+ // Style Number and BigNumber nodes
168
+ "Number BigNumber": tags.number,
169
+ // Style Escape nodes whose parent is String
170
+ "String/Escape": tags.escape,
171
+ // Style anything inside Attributes nodes
172
+ "Attributes!": tags.meta,
173
+ // Add a style to all content inside Italic nodes
174
+ "Italic/...": tags.emphasis,
175
+ // Style InvalidString nodes as both `string` and `invalid`
176
+ "InvalidString": [tags.string, tags.invalid],
177
+ // Style the node named "/" as punctuation
178
+ '"/"': tags.punctuation
179
+ })
180
+ )
181
+ ```
182
+ */
183
+ function styleTags(spec) {
184
+ let byName = Object.create(null);
185
+ for (let prop in spec) {
186
+ let tags = spec[prop];
187
+ if (!Array.isArray(tags))
188
+ tags = [tags];
189
+ for (let part of prop.split(" "))
190
+ if (part) {
191
+ let pieces = [], mode = 2 /* Mode.Normal */, rest = part;
192
+ for (let pos = 0;;) {
193
+ if (rest == "..." && pos > 0 && pos + 3 == part.length) {
194
+ mode = 1 /* Mode.Inherit */;
195
+ break;
196
+ }
197
+ let m = /^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(rest);
198
+ if (!m)
199
+ throw new RangeError("Invalid path: " + part);
200
+ pieces.push(m[0] == "*" ? "" : m[0][0] == '"' ? JSON.parse(m[0]) : m[0]);
201
+ pos += m[0].length;
202
+ if (pos == part.length)
203
+ break;
204
+ let next = part[pos++];
205
+ if (pos == part.length && next == "!") {
206
+ mode = 0 /* Mode.Opaque */;
207
+ break;
208
+ }
209
+ if (next != "/")
210
+ throw new RangeError("Invalid path: " + part);
211
+ rest = part.slice(pos);
212
+ }
213
+ let last = pieces.length - 1, inner = pieces[last];
214
+ if (!inner)
215
+ throw new RangeError("Invalid path: " + part);
216
+ let rule = new Rule(tags, mode, last > 0 ? pieces.slice(0, last) : null);
217
+ byName[inner] = rule.sort(byName[inner]);
218
+ }
219
+ }
220
+ return ruleNodeProp.add(byName);
221
+ }
222
+ const ruleNodeProp = new NodeProp();
223
+ class Rule {
224
+ constructor(tags, mode, context, next) {
225
+ this.tags = tags;
226
+ this.mode = mode;
227
+ this.context = context;
228
+ this.next = next;
229
+ }
230
+ get opaque() { return this.mode == 0 /* Mode.Opaque */; }
231
+ get inherit() { return this.mode == 1 /* Mode.Inherit */; }
232
+ sort(other) {
233
+ if (!other || other.depth < this.depth) {
234
+ this.next = other;
235
+ return this;
236
+ }
237
+ other.next = this.sort(other.next);
238
+ return other;
239
+ }
240
+ get depth() { return this.context ? this.context.length : 0; }
241
+ }
242
+ Rule.empty = new Rule([], 2 /* Mode.Normal */, null);
243
+ /**
244
+ Define a [highlighter](#highlight.Highlighter) from an array of
245
+ tag/class pairs. Classes associated with more specific tags will
246
+ take precedence.
247
+ */
248
+ function tagHighlighter(tags, options) {
249
+ let map = Object.create(null);
250
+ for (let style of tags) {
251
+ if (!Array.isArray(style.tag))
252
+ map[style.tag.id] = style.class;
253
+ else
254
+ for (let tag of style.tag)
255
+ map[tag.id] = style.class;
256
+ }
257
+ let { scope, all = null } = options || {};
258
+ return {
259
+ style: (tags) => {
260
+ let cls = all;
261
+ for (let tag of tags) {
262
+ for (let sub of tag.set) {
263
+ let tagClass = map[sub.id];
264
+ if (tagClass) {
265
+ cls = cls ? cls + " " + tagClass : tagClass;
266
+ break;
267
+ }
268
+ }
269
+ }
270
+ return cls;
271
+ },
272
+ scope
273
+ };
274
+ }
275
+ function highlightTags(highlighters, tags) {
276
+ let result = null;
277
+ for (let highlighter of highlighters) {
278
+ let value = highlighter.style(tags);
279
+ if (value)
280
+ result = result ? result + " " + value : value;
281
+ }
282
+ return result;
283
+ }
284
+ /**
285
+ Highlight the given [tree](#common.Tree) with the given
286
+ [highlighter](#highlight.Highlighter). Often, the higher-level
287
+ [`highlightCode`](#highlight.highlightCode) function is easier to
288
+ use.
289
+ */
290
+ function highlightTree(tree, highlighter,
291
+ /**
292
+ Assign styling to a region of the text. Will be called, in order
293
+ of position, for any ranges where more than zero classes apply.
294
+ `classes` is a space separated string of CSS classes.
295
+ */
296
+ putStyle,
297
+ /**
298
+ The start of the range to highlight.
299
+ */
300
+ from = 0,
301
+ /**
302
+ The end of the range.
303
+ */
304
+ to = tree.length) {
305
+ let builder = new HighlightBuilder(from, Array.isArray(highlighter) ? highlighter : [highlighter], putStyle);
306
+ builder.highlightRange(tree.cursor(), from, to, "", builder.highlighters);
307
+ builder.flush(to);
308
+ }
309
+ class HighlightBuilder {
310
+ constructor(at, highlighters, span) {
311
+ this.at = at;
312
+ this.highlighters = highlighters;
313
+ this.span = span;
314
+ this.class = "";
315
+ }
316
+ startSpan(at, cls) {
317
+ if (cls != this.class) {
318
+ this.flush(at);
319
+ if (at > this.at)
320
+ this.at = at;
321
+ this.class = cls;
322
+ }
323
+ }
324
+ flush(to) {
325
+ if (to > this.at && this.class)
326
+ this.span(this.at, to, this.class);
327
+ }
328
+ highlightRange(cursor, from, to, inheritedClass, highlighters) {
329
+ let { type, from: start, to: end } = cursor;
330
+ if (start >= to || end <= from)
331
+ return;
332
+ if (type.isTop)
333
+ highlighters = this.highlighters.filter(h => !h.scope || h.scope(type));
334
+ let cls = inheritedClass;
335
+ let rule = getStyleTags(cursor) || Rule.empty;
336
+ let tagCls = highlightTags(highlighters, rule.tags);
337
+ if (tagCls) {
338
+ if (cls)
339
+ cls += " ";
340
+ cls += tagCls;
341
+ if (rule.mode == 1 /* Mode.Inherit */)
342
+ inheritedClass += (inheritedClass ? " " : "") + tagCls;
343
+ }
344
+ this.startSpan(Math.max(from, start), cls);
345
+ if (rule.opaque)
346
+ return;
347
+ let mounted = cursor.tree && cursor.tree.prop(NodeProp.mounted);
348
+ if (mounted && mounted.overlay) {
349
+ let inner = cursor.node.enter(mounted.overlay[0].from + start, 1);
350
+ let innerHighlighters = this.highlighters.filter(h => !h.scope || h.scope(mounted.tree.type));
351
+ let hasChild = cursor.firstChild();
352
+ for (let i = 0, pos = start;; i++) {
353
+ let next = i < mounted.overlay.length ? mounted.overlay[i] : null;
354
+ let nextPos = next ? next.from + start : end;
355
+ let rangeFrom = Math.max(from, pos), rangeTo = Math.min(to, nextPos);
356
+ if (rangeFrom < rangeTo && hasChild) {
357
+ while (cursor.from < rangeTo) {
358
+ this.highlightRange(cursor, rangeFrom, rangeTo, inheritedClass, highlighters);
359
+ this.startSpan(Math.min(rangeTo, cursor.to), cls);
360
+ if (cursor.to >= nextPos || !cursor.nextSibling())
361
+ break;
362
+ }
363
+ }
364
+ if (!next || nextPos > to)
365
+ break;
366
+ pos = next.to + start;
367
+ if (pos > from) {
368
+ this.highlightRange(inner.cursor(), Math.max(from, next.from + start), Math.min(to, pos), "", innerHighlighters);
369
+ this.startSpan(Math.min(to, pos), cls);
370
+ }
371
+ }
372
+ if (hasChild)
373
+ cursor.parent();
374
+ }
375
+ else if (cursor.firstChild()) {
376
+ if (mounted)
377
+ inheritedClass = "";
378
+ do {
379
+ if (cursor.to <= from)
380
+ continue;
381
+ if (cursor.from >= to)
382
+ break;
383
+ this.highlightRange(cursor, from, to, inheritedClass, highlighters);
384
+ this.startSpan(Math.min(to, cursor.to), cls);
385
+ } while (cursor.nextSibling());
386
+ cursor.parent();
387
+ }
388
+ }
389
+ }
390
+ /**
391
+ Match a syntax node's [highlight rules](#highlight.styleTags). If
392
+ there's a match, return its set of tags, and whether it is
393
+ opaque (uses a `!`) or applies to all child nodes (`/...`).
394
+ */
395
+ function getStyleTags(node) {
396
+ let rule = node.type.prop(ruleNodeProp);
397
+ while (rule && rule.context && !node.matchContext(rule.context))
398
+ rule = rule.next;
399
+ return rule || null;
400
+ }
401
+ const t = Tag.define;
402
+ const comment = t(), name = t(), typeName = t(name), propertyName = t(name), literal = t(), string = t(literal), number = t(literal), content = t(), heading = t(content), keyword = t(), operator = t(), punctuation = t(), bracket = t(punctuation), meta = t();
403
+ /**
404
+ The default set of highlighting [tags](#highlight.Tag).
405
+
406
+ This collection is heavily biased towards programming languages,
407
+ and necessarily incomplete. A full ontology of syntactic
408
+ constructs would fill a stack of books, and be impractical to
409
+ write themes for. So try to make do with this set. If all else
410
+ fails, [open an
411
+ issue](https://github.com/codemirror/codemirror.next) to propose a
412
+ new tag, or [define](#highlight.Tag^define) a local custom tag for
413
+ your use case.
414
+
415
+ Note that it is not obligatory to always attach the most specific
416
+ tag possible to an element—if your grammar can't easily
417
+ distinguish a certain type of element (such as a local variable),
418
+ it is okay to style it as its more general variant (a variable).
419
+
420
+ For tags that extend some parent tag, the documentation links to
421
+ the parent.
422
+ */
423
+ const tags = {
424
+ /**
425
+ A comment.
426
+ */
427
+ comment,
428
+ /**
429
+ A line [comment](#highlight.tags.comment).
430
+ */
431
+ lineComment: t(comment),
432
+ /**
433
+ A block [comment](#highlight.tags.comment).
434
+ */
435
+ blockComment: t(comment),
436
+ /**
437
+ A documentation [comment](#highlight.tags.comment).
438
+ */
439
+ docComment: t(comment),
440
+ /**
441
+ Any kind of identifier.
442
+ */
443
+ name,
444
+ /**
445
+ The [name](#highlight.tags.name) of a variable.
446
+ */
447
+ variableName: t(name),
448
+ /**
449
+ A type [name](#highlight.tags.name).
450
+ */
451
+ typeName: typeName,
452
+ /**
453
+ A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
454
+ */
455
+ tagName: t(typeName),
456
+ /**
457
+ A property or field [name](#highlight.tags.name).
458
+ */
459
+ propertyName: propertyName,
460
+ /**
461
+ An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
462
+ */
463
+ attributeName: t(propertyName),
464
+ /**
465
+ The [name](#highlight.tags.name) of a class.
466
+ */
467
+ className: t(name),
468
+ /**
469
+ A label [name](#highlight.tags.name).
470
+ */
471
+ labelName: t(name),
472
+ /**
473
+ A namespace [name](#highlight.tags.name).
474
+ */
475
+ namespace: t(name),
476
+ /**
477
+ The [name](#highlight.tags.name) of a macro.
478
+ */
479
+ macroName: t(name),
480
+ /**
481
+ A literal value.
482
+ */
483
+ literal,
484
+ /**
485
+ A string [literal](#highlight.tags.literal).
486
+ */
487
+ string,
488
+ /**
489
+ A documentation [string](#highlight.tags.string).
490
+ */
491
+ docString: t(string),
492
+ /**
493
+ A character literal (subtag of [string](#highlight.tags.string)).
494
+ */
495
+ character: t(string),
496
+ /**
497
+ An attribute value (subtag of [string](#highlight.tags.string)).
498
+ */
499
+ attributeValue: t(string),
500
+ /**
501
+ A number [literal](#highlight.tags.literal).
502
+ */
503
+ number,
504
+ /**
505
+ An integer [number](#highlight.tags.number) literal.
506
+ */
507
+ integer: t(number),
508
+ /**
509
+ A floating-point [number](#highlight.tags.number) literal.
510
+ */
511
+ float: t(number),
512
+ /**
513
+ A boolean [literal](#highlight.tags.literal).
514
+ */
515
+ bool: t(literal),
516
+ /**
517
+ Regular expression [literal](#highlight.tags.literal).
518
+ */
519
+ regexp: t(literal),
520
+ /**
521
+ An escape [literal](#highlight.tags.literal), for example a
522
+ backslash escape in a string.
523
+ */
524
+ escape: t(literal),
525
+ /**
526
+ A color [literal](#highlight.tags.literal).
527
+ */
528
+ color: t(literal),
529
+ /**
530
+ A URL [literal](#highlight.tags.literal).
531
+ */
532
+ url: t(literal),
533
+ /**
534
+ A language keyword.
535
+ */
536
+ keyword,
537
+ /**
538
+ The [keyword](#highlight.tags.keyword) for the self or this
539
+ object.
540
+ */
541
+ self: t(keyword),
542
+ /**
543
+ The [keyword](#highlight.tags.keyword) for null.
544
+ */
545
+ null: t(keyword),
546
+ /**
547
+ A [keyword](#highlight.tags.keyword) denoting some atomic value.
548
+ */
549
+ atom: t(keyword),
550
+ /**
551
+ A [keyword](#highlight.tags.keyword) that represents a unit.
552
+ */
553
+ unit: t(keyword),
554
+ /**
555
+ A modifier [keyword](#highlight.tags.keyword).
556
+ */
557
+ modifier: t(keyword),
558
+ /**
559
+ A [keyword](#highlight.tags.keyword) that acts as an operator.
560
+ */
561
+ operatorKeyword: t(keyword),
562
+ /**
563
+ A control-flow related [keyword](#highlight.tags.keyword).
564
+ */
565
+ controlKeyword: t(keyword),
566
+ /**
567
+ A [keyword](#highlight.tags.keyword) that defines something.
568
+ */
569
+ definitionKeyword: t(keyword),
570
+ /**
571
+ A [keyword](#highlight.tags.keyword) related to defining or
572
+ interfacing with modules.
573
+ */
574
+ moduleKeyword: t(keyword),
575
+ /**
576
+ An operator.
577
+ */
578
+ operator,
579
+ /**
580
+ An [operator](#highlight.tags.operator) that dereferences something.
581
+ */
582
+ derefOperator: t(operator),
583
+ /**
584
+ Arithmetic-related [operator](#highlight.tags.operator).
585
+ */
586
+ arithmeticOperator: t(operator),
587
+ /**
588
+ Logical [operator](#highlight.tags.operator).
589
+ */
590
+ logicOperator: t(operator),
591
+ /**
592
+ Bit [operator](#highlight.tags.operator).
593
+ */
594
+ bitwiseOperator: t(operator),
595
+ /**
596
+ Comparison [operator](#highlight.tags.operator).
597
+ */
598
+ compareOperator: t(operator),
599
+ /**
600
+ [Operator](#highlight.tags.operator) that updates its operand.
601
+ */
602
+ updateOperator: t(operator),
603
+ /**
604
+ [Operator](#highlight.tags.operator) that defines something.
605
+ */
606
+ definitionOperator: t(operator),
607
+ /**
608
+ Type-related [operator](#highlight.tags.operator).
609
+ */
610
+ typeOperator: t(operator),
611
+ /**
612
+ Control-flow [operator](#highlight.tags.operator).
613
+ */
614
+ controlOperator: t(operator),
615
+ /**
616
+ Program or markup punctuation.
617
+ */
618
+ punctuation,
619
+ /**
620
+ [Punctuation](#highlight.tags.punctuation) that separates
621
+ things.
622
+ */
623
+ separator: t(punctuation),
624
+ /**
625
+ Bracket-style [punctuation](#highlight.tags.punctuation).
626
+ */
627
+ bracket,
628
+ /**
629
+ Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
630
+ tokens).
631
+ */
632
+ angleBracket: t(bracket),
633
+ /**
634
+ Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
635
+ tokens).
636
+ */
637
+ squareBracket: t(bracket),
638
+ /**
639
+ Parentheses (usually `(` and `)` tokens). Subtag of
640
+ [bracket](#highlight.tags.bracket).
641
+ */
642
+ paren: t(bracket),
643
+ /**
644
+ Braces (usually `{` and `}` tokens). Subtag of
645
+ [bracket](#highlight.tags.bracket).
646
+ */
647
+ brace: t(bracket),
648
+ /**
649
+ Content, for example plain text in XML or markup documents.
650
+ */
651
+ content,
652
+ /**
653
+ [Content](#highlight.tags.content) that represents a heading.
654
+ */
655
+ heading,
656
+ /**
657
+ A level 1 [heading](#highlight.tags.heading).
658
+ */
659
+ heading1: t(heading),
660
+ /**
661
+ A level 2 [heading](#highlight.tags.heading).
662
+ */
663
+ heading2: t(heading),
664
+ /**
665
+ A level 3 [heading](#highlight.tags.heading).
666
+ */
667
+ heading3: t(heading),
668
+ /**
669
+ A level 4 [heading](#highlight.tags.heading).
670
+ */
671
+ heading4: t(heading),
672
+ /**
673
+ A level 5 [heading](#highlight.tags.heading).
674
+ */
675
+ heading5: t(heading),
676
+ /**
677
+ A level 6 [heading](#highlight.tags.heading).
678
+ */
679
+ heading6: t(heading),
680
+ /**
681
+ A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
682
+ */
683
+ contentSeparator: t(content),
684
+ /**
685
+ [Content](#highlight.tags.content) that represents a list.
686
+ */
687
+ list: t(content),
688
+ /**
689
+ [Content](#highlight.tags.content) that represents a quote.
690
+ */
691
+ quote: t(content),
692
+ /**
693
+ [Content](#highlight.tags.content) that is emphasized.
694
+ */
695
+ emphasis: t(content),
696
+ /**
697
+ [Content](#highlight.tags.content) that is styled strong.
698
+ */
699
+ strong: t(content),
700
+ /**
701
+ [Content](#highlight.tags.content) that is part of a link.
702
+ */
703
+ link: t(content),
704
+ /**
705
+ [Content](#highlight.tags.content) that is styled as code or
706
+ monospace.
707
+ */
708
+ monospace: t(content),
709
+ /**
710
+ [Content](#highlight.tags.content) that has a strike-through
711
+ style.
712
+ */
713
+ strikethrough: t(content),
714
+ /**
715
+ Inserted text in a change-tracking format.
716
+ */
717
+ inserted: t(),
718
+ /**
719
+ Deleted text.
720
+ */
721
+ deleted: t(),
722
+ /**
723
+ Changed text.
724
+ */
725
+ changed: t(),
726
+ /**
727
+ An invalid or unsyntactic element.
728
+ */
729
+ invalid: t(),
730
+ /**
731
+ Metadata or meta-instruction.
732
+ */
733
+ meta,
734
+ /**
735
+ [Metadata](#highlight.tags.meta) that applies to the entire
736
+ document.
737
+ */
738
+ documentMeta: t(meta),
739
+ /**
740
+ [Metadata](#highlight.tags.meta) that annotates or adds
741
+ attributes to a given syntactic element.
742
+ */
743
+ annotation: t(meta),
744
+ /**
745
+ Processing instruction or preprocessor directive. Subtag of
746
+ [meta](#highlight.tags.meta).
747
+ */
748
+ processingInstruction: t(meta),
749
+ /**
750
+ [Modifier](#highlight.Tag^defineModifier) that indicates that a
751
+ given element is being defined. Expected to be used with the
752
+ various [name](#highlight.tags.name) tags.
753
+ */
754
+ definition: Tag.defineModifier("definition"),
755
+ /**
756
+ [Modifier](#highlight.Tag^defineModifier) that indicates that
757
+ something is constant. Mostly expected to be used with
758
+ [variable names](#highlight.tags.variableName).
759
+ */
760
+ constant: Tag.defineModifier("constant"),
761
+ /**
762
+ [Modifier](#highlight.Tag^defineModifier) used to indicate that
763
+ a [variable](#highlight.tags.variableName) or [property
764
+ name](#highlight.tags.propertyName) is being called or defined
765
+ as a function.
766
+ */
767
+ function: Tag.defineModifier("function"),
768
+ /**
769
+ [Modifier](#highlight.Tag^defineModifier) that can be applied to
770
+ [names](#highlight.tags.name) to indicate that they belong to
771
+ the language's standard environment.
772
+ */
773
+ standard: Tag.defineModifier("standard"),
774
+ /**
775
+ [Modifier](#highlight.Tag^defineModifier) that indicates a given
776
+ [names](#highlight.tags.name) is local to some scope.
777
+ */
778
+ local: Tag.defineModifier("local"),
779
+ /**
780
+ A generic variant [modifier](#highlight.Tag^defineModifier) that
781
+ can be used to tag language-specific alternative variants of
782
+ some common tag. It is recommended for themes to define special
783
+ forms of at least the [string](#highlight.tags.string) and
784
+ [variable name](#highlight.tags.variableName) tags, since those
785
+ come up a lot.
786
+ */
787
+ special: Tag.defineModifier("special")
788
+ };
789
+ for (let name in tags) {
790
+ let val = tags[name];
791
+ if (val instanceof Tag)
792
+ val.name = name;
793
+ }
794
+ /**
795
+ This is a highlighter that adds stable, predictable classes to
796
+ tokens, for styling with external CSS.
797
+
798
+ The following tags are mapped to their name prefixed with `"tok-"`
799
+ (for example `"tok-comment"`):
800
+
801
+ * [`link`](#highlight.tags.link)
802
+ * [`heading`](#highlight.tags.heading)
803
+ * [`emphasis`](#highlight.tags.emphasis)
804
+ * [`strong`](#highlight.tags.strong)
805
+ * [`keyword`](#highlight.tags.keyword)
806
+ * [`atom`](#highlight.tags.atom)
807
+ * [`bool`](#highlight.tags.bool)
808
+ * [`url`](#highlight.tags.url)
809
+ * [`labelName`](#highlight.tags.labelName)
810
+ * [`inserted`](#highlight.tags.inserted)
811
+ * [`deleted`](#highlight.tags.deleted)
812
+ * [`literal`](#highlight.tags.literal)
813
+ * [`string`](#highlight.tags.string)
814
+ * [`number`](#highlight.tags.number)
815
+ * [`variableName`](#highlight.tags.variableName)
816
+ * [`typeName`](#highlight.tags.typeName)
817
+ * [`namespace`](#highlight.tags.namespace)
818
+ * [`className`](#highlight.tags.className)
819
+ * [`macroName`](#highlight.tags.macroName)
820
+ * [`propertyName`](#highlight.tags.propertyName)
821
+ * [`operator`](#highlight.tags.operator)
822
+ * [`comment`](#highlight.tags.comment)
823
+ * [`meta`](#highlight.tags.meta)
824
+ * [`punctuation`](#highlight.tags.punctuation)
825
+ * [`invalid`](#highlight.tags.invalid)
826
+
827
+ In addition, these mappings are provided:
828
+
829
+ * [`regexp`](#highlight.tags.regexp),
830
+ [`escape`](#highlight.tags.escape), and
831
+ [`special`](#highlight.tags.special)[`(string)`](#highlight.tags.string)
832
+ are mapped to `"tok-string2"`
833
+ * [`special`](#highlight.tags.special)[`(variableName)`](#highlight.tags.variableName)
834
+ to `"tok-variableName2"`
835
+ * [`local`](#highlight.tags.local)[`(variableName)`](#highlight.tags.variableName)
836
+ to `"tok-variableName tok-local"`
837
+ * [`definition`](#highlight.tags.definition)[`(variableName)`](#highlight.tags.variableName)
838
+ to `"tok-variableName tok-definition"`
839
+ * [`definition`](#highlight.tags.definition)[`(propertyName)`](#highlight.tags.propertyName)
840
+ to `"tok-propertyName tok-definition"`
841
+ */
842
+ tagHighlighter([
843
+ { tag: tags.link, class: "tok-link" },
844
+ { tag: tags.heading, class: "tok-heading" },
845
+ { tag: tags.emphasis, class: "tok-emphasis" },
846
+ { tag: tags.strong, class: "tok-strong" },
847
+ { tag: tags.keyword, class: "tok-keyword" },
848
+ { tag: tags.atom, class: "tok-atom" },
849
+ { tag: tags.bool, class: "tok-bool" },
850
+ { tag: tags.url, class: "tok-url" },
851
+ { tag: tags.labelName, class: "tok-labelName" },
852
+ { tag: tags.inserted, class: "tok-inserted" },
853
+ { tag: tags.deleted, class: "tok-deleted" },
854
+ { tag: tags.literal, class: "tok-literal" },
855
+ { tag: tags.string, class: "tok-string" },
856
+ { tag: tags.number, class: "tok-number" },
857
+ { tag: [tags.regexp, tags.escape, tags.special(tags.string)], class: "tok-string2" },
858
+ { tag: tags.variableName, class: "tok-variableName" },
859
+ { tag: tags.local(tags.variableName), class: "tok-variableName tok-local" },
860
+ { tag: tags.definition(tags.variableName), class: "tok-variableName tok-definition" },
861
+ { tag: tags.special(tags.variableName), class: "tok-variableName2" },
862
+ { tag: tags.definition(tags.propertyName), class: "tok-propertyName tok-definition" },
863
+ { tag: tags.typeName, class: "tok-typeName" },
864
+ { tag: tags.namespace, class: "tok-namespace" },
865
+ { tag: tags.className, class: "tok-className" },
866
+ { tag: tags.macroName, class: "tok-macroName" },
867
+ { tag: tags.propertyName, class: "tok-propertyName" },
868
+ { tag: tags.operator, class: "tok-operator" },
869
+ { tag: tags.comment, class: "tok-comment" },
870
+ { tag: tags.meta, class: "tok-meta" },
871
+ { tag: tags.invalid, class: "tok-invalid" },
872
+ { tag: tags.punctuation, class: "tok-punctuation" }
873
+ ]);
874
+
875
+ export { Tag, getStyleTags, highlightTree, styleTags, tagHighlighter, tags };
876
+ //# sourceMappingURL=index.js.map