groove-dev 0.15.1 → 0.16.1

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 (334) hide show
  1. package/docs/FILE-EDITOR-PLAN.md +253 -0
  2. package/node_modules/@codemirror/autocomplete/.github/workflows/dispatch.yml +16 -0
  3. package/node_modules/@codemirror/autocomplete/CHANGELOG.md +639 -0
  4. package/node_modules/@codemirror/autocomplete/LICENSE +21 -0
  5. package/node_modules/@codemirror/autocomplete/README.md +43 -0
  6. package/node_modules/@codemirror/autocomplete/dist/index.cjs +2151 -0
  7. package/node_modules/@codemirror/autocomplete/dist/index.d.cts +648 -0
  8. package/node_modules/@codemirror/autocomplete/dist/index.d.ts +648 -0
  9. package/node_modules/@codemirror/autocomplete/dist/index.js +2120 -0
  10. package/node_modules/@codemirror/autocomplete/package.json +41 -0
  11. package/node_modules/@codemirror/commands/.github/workflows/dispatch.yml +16 -0
  12. package/node_modules/@codemirror/commands/CHANGELOG.md +386 -0
  13. package/node_modules/@codemirror/commands/LICENSE +21 -0
  14. package/node_modules/@codemirror/commands/README.md +35 -0
  15. package/node_modules/@codemirror/commands/dist/index.cjs +1909 -0
  16. package/node_modules/@codemirror/commands/dist/index.d.cts +650 -0
  17. package/node_modules/@codemirror/commands/dist/index.d.ts +650 -0
  18. package/node_modules/@codemirror/commands/dist/index.js +1795 -0
  19. package/node_modules/@codemirror/commands/package.json +42 -0
  20. package/node_modules/@codemirror/lang-css/.github/workflows/dispatch.yml +16 -0
  21. package/node_modules/@codemirror/lang-css/CHANGELOG.md +106 -0
  22. package/node_modules/@codemirror/lang-css/LICENSE +21 -0
  23. package/node_modules/@codemirror/lang-css/README.md +50 -0
  24. package/node_modules/@codemirror/lang-css/dist/index.cjs +269 -0
  25. package/node_modules/@codemirror/lang-css/dist/index.d.cts +28 -0
  26. package/node_modules/@codemirror/lang-css/dist/index.d.ts +28 -0
  27. package/node_modules/@codemirror/lang-css/dist/index.js +264 -0
  28. package/node_modules/@codemirror/lang-css/package.json +42 -0
  29. package/node_modules/@codemirror/lang-html/.github/workflows/dispatch.yml +16 -0
  30. package/node_modules/@codemirror/lang-html/CHANGELOG.md +210 -0
  31. package/node_modules/@codemirror/lang-html/LICENSE +21 -0
  32. package/node_modules/@codemirror/lang-html/README.md +147 -0
  33. package/node_modules/@codemirror/lang-html/dist/index.cjs +667 -0
  34. package/node_modules/@codemirror/lang-html/dist/index.d.cts +115 -0
  35. package/node_modules/@codemirror/lang-html/dist/index.d.ts +115 -0
  36. package/node_modules/@codemirror/lang-html/dist/index.js +661 -0
  37. package/node_modules/@codemirror/lang-html/package.json +46 -0
  38. package/node_modules/@codemirror/lang-javascript/.github/workflows/dispatch.yml +16 -0
  39. package/node_modules/@codemirror/lang-javascript/CHANGELOG.md +206 -0
  40. package/node_modules/@codemirror/lang-javascript/LICENSE +21 -0
  41. package/node_modules/@codemirror/lang-javascript/README.md +125 -0
  42. package/node_modules/@codemirror/lang-javascript/dist/index.cjs +526 -0
  43. package/node_modules/@codemirror/lang-javascript/dist/index.d.cts +93 -0
  44. package/node_modules/@codemirror/lang-javascript/dist/index.d.ts +93 -0
  45. package/node_modules/@codemirror/lang-javascript/dist/index.js +513 -0
  46. package/node_modules/@codemirror/lang-javascript/package.json +45 -0
  47. package/node_modules/@codemirror/lang-json/.github/workflows/dispatch.yml +16 -0
  48. package/node_modules/@codemirror/lang-json/CHANGELOG.md +59 -0
  49. package/node_modules/@codemirror/lang-json/LICENSE +21 -0
  50. package/node_modules/@codemirror/lang-json/README.md +56 -0
  51. package/node_modules/@codemirror/lang-json/dist/index.cjs +68 -0
  52. package/node_modules/@codemirror/lang-json/dist/index.d.cts +22 -0
  53. package/node_modules/@codemirror/lang-json/dist/index.d.ts +22 -0
  54. package/node_modules/@codemirror/lang-json/dist/index.js +64 -0
  55. package/node_modules/@codemirror/lang-json/package.json +39 -0
  56. package/node_modules/@codemirror/lang-markdown/.github/workflows/dispatch.yml +16 -0
  57. package/node_modules/@codemirror/lang-markdown/CHANGELOG.md +246 -0
  58. package/node_modules/@codemirror/lang-markdown/LICENSE +21 -0
  59. package/node_modules/@codemirror/lang-markdown/README.md +162 -0
  60. package/node_modules/@codemirror/lang-markdown/dist/index.cjs +501 -0
  61. package/node_modules/@codemirror/lang-markdown/dist/index.d.cts +124 -0
  62. package/node_modules/@codemirror/lang-markdown/dist/index.d.ts +124 -0
  63. package/node_modules/@codemirror/lang-markdown/dist/index.js +492 -0
  64. package/node_modules/@codemirror/lang-markdown/package.json +44 -0
  65. package/node_modules/@codemirror/lang-python/.github/workflows/dispatch.yml +16 -0
  66. package/node_modules/@codemirror/lang-python/CHANGELOG.md +174 -0
  67. package/node_modules/@codemirror/lang-python/LICENSE +21 -0
  68. package/node_modules/@codemirror/lang-python/README.md +61 -0
  69. package/node_modules/@codemirror/lang-python/dist/index.cjs +313 -0
  70. package/node_modules/@codemirror/lang-python/dist/index.d.cts +26 -0
  71. package/node_modules/@codemirror/lang-python/dist/index.d.ts +26 -0
  72. package/node_modules/@codemirror/lang-python/dist/index.js +308 -0
  73. package/node_modules/@codemirror/lang-python/package.json +42 -0
  74. package/node_modules/@codemirror/language/.github/workflows/dispatch.yml +16 -0
  75. package/node_modules/@codemirror/language/CHANGELOG.md +412 -0
  76. package/node_modules/@codemirror/language/LICENSE +21 -0
  77. package/node_modules/@codemirror/language/README.md +66 -0
  78. package/node_modules/@codemirror/language/dist/index.cjs +2742 -0
  79. package/node_modules/@codemirror/language/dist/index.d.cts +1220 -0
  80. package/node_modules/@codemirror/language/dist/index.d.ts +1220 -0
  81. package/node_modules/@codemirror/language/dist/index.js +2687 -0
  82. package/node_modules/@codemirror/language/package.json +44 -0
  83. package/node_modules/@codemirror/lint/.github/workflows/dispatch.yml +16 -0
  84. package/node_modules/@codemirror/lint/CHANGELOG.md +318 -0
  85. package/node_modules/@codemirror/lint/LICENSE +21 -0
  86. package/node_modules/@codemirror/lint/README.md +18 -0
  87. package/node_modules/@codemirror/lint/dist/index.cjs +958 -0
  88. package/node_modules/@codemirror/lint/dist/index.d.cts +195 -0
  89. package/node_modules/@codemirror/lint/dist/index.d.ts +195 -0
  90. package/node_modules/@codemirror/lint/dist/index.js +945 -0
  91. package/node_modules/@codemirror/lint/package.json +40 -0
  92. package/node_modules/@codemirror/search/.github/workflows/dispatch.yml +16 -0
  93. package/node_modules/@codemirror/search/CHANGELOG.md +324 -0
  94. package/node_modules/@codemirror/search/LICENSE +21 -0
  95. package/node_modules/@codemirror/search/README.md +18 -0
  96. package/node_modules/@codemirror/search/dist/index.cjs +1237 -0
  97. package/node_modules/@codemirror/search/dist/index.d.cts +385 -0
  98. package/node_modules/@codemirror/search/dist/index.d.ts +385 -0
  99. package/node_modules/@codemirror/search/dist/index.js +1217 -0
  100. package/node_modules/@codemirror/search/package.json +40 -0
  101. package/node_modules/@codemirror/state/.github/workflows/dispatch.yml +16 -0
  102. package/node_modules/@codemirror/state/CHANGELOG.md +308 -0
  103. package/node_modules/@codemirror/state/LICENSE +21 -0
  104. package/node_modules/@codemirror/state/README.md +18 -0
  105. package/node_modules/@codemirror/state/dist/index.cjs +3922 -0
  106. package/node_modules/@codemirror/state/dist/index.d.cts +1713 -0
  107. package/node_modules/@codemirror/state/dist/index.d.ts +1713 -0
  108. package/node_modules/@codemirror/state/dist/index.js +3892 -0
  109. package/node_modules/@codemirror/state/package.json +38 -0
  110. package/node_modules/@codemirror/theme-one-dark/.github/workflows/dispatch.yml +16 -0
  111. package/node_modules/@codemirror/theme-one-dark/CHANGELOG.md +97 -0
  112. package/node_modules/@codemirror/theme-one-dark/LICENSE +21 -0
  113. package/node_modules/@codemirror/theme-one-dark/README.md +46 -0
  114. package/node_modules/@codemirror/theme-one-dark/dist/index.cjs +139 -0
  115. package/node_modules/@codemirror/theme-one-dark/dist/index.d.cts +39 -0
  116. package/node_modules/@codemirror/theme-one-dark/dist/index.d.ts +39 -0
  117. package/node_modules/@codemirror/theme-one-dark/dist/index.js +134 -0
  118. package/node_modules/@codemirror/theme-one-dark/package.json +41 -0
  119. package/node_modules/@codemirror/view/.github/workflows/dispatch.yml +16 -0
  120. package/node_modules/@codemirror/view/CHANGELOG.md +2284 -0
  121. package/node_modules/@codemirror/view/LICENSE +21 -0
  122. package/node_modules/@codemirror/view/README.md +37 -0
  123. package/node_modules/@codemirror/view/dist/index.cjs +11796 -0
  124. package/node_modules/@codemirror/view/dist/index.d.cts +2389 -0
  125. package/node_modules/@codemirror/view/dist/index.d.ts +2389 -0
  126. package/node_modules/@codemirror/view/dist/index.js +11745 -0
  127. package/node_modules/@codemirror/view/package.json +41 -0
  128. package/node_modules/@groove-dev/daemon/src/api.js +268 -2
  129. package/node_modules/@groove-dev/daemon/src/filewatcher.js +59 -0
  130. package/node_modules/@groove-dev/daemon/src/index.js +28 -1
  131. package/node_modules/@groove-dev/daemon/src/mimetypes.js +43 -0
  132. package/node_modules/@groove-dev/gui/dist/assets/index-BQSznoq0.js +103 -0
  133. package/node_modules/@groove-dev/gui/dist/index.html +1 -1
  134. package/node_modules/@groove-dev/gui/package.json +15 -2
  135. package/node_modules/@groove-dev/gui/src/App.jsx +3 -0
  136. package/node_modules/@groove-dev/gui/src/components/CodeEditor.jsx +143 -0
  137. package/node_modules/@groove-dev/gui/src/components/EditorTabs.jsx +83 -0
  138. package/node_modules/@groove-dev/gui/src/components/FileTree.jsx +492 -0
  139. package/node_modules/@groove-dev/gui/src/components/MediaViewer.jsx +104 -0
  140. package/node_modules/@groove-dev/gui/src/stores/groove.js +287 -1
  141. package/node_modules/@groove-dev/gui/src/views/FileEditor.jsx +149 -0
  142. package/node_modules/@lezer/common/LICENSE +21 -0
  143. package/node_modules/@lezer/common/README.md +14 -0
  144. package/node_modules/@lezer/common/dist/index.cjs +2209 -0
  145. package/node_modules/@lezer/common/dist/index.d.cts +1174 -0
  146. package/node_modules/@lezer/common/dist/index.d.ts +1174 -0
  147. package/node_modules/@lezer/common/dist/index.js +2196 -0
  148. package/node_modules/@lezer/common/package.json +32 -0
  149. package/node_modules/@lezer/css/CHANGELOG.md +307 -0
  150. package/node_modules/@lezer/css/LICENSE +21 -0
  151. package/node_modules/@lezer/css/README.md +6 -0
  152. package/node_modules/@lezer/css/dist/index.cjs +151 -0
  153. package/node_modules/@lezer/css/dist/index.d.cts +3 -0
  154. package/node_modules/@lezer/css/dist/index.d.ts +3 -0
  155. package/node_modules/@lezer/css/dist/index.js +147 -0
  156. package/node_modules/@lezer/css/package.json +36 -0
  157. package/node_modules/@lezer/css/rollup.config.js +16 -0
  158. package/node_modules/@lezer/css/src/css.grammar +290 -0
  159. package/node_modules/@lezer/css/src/highlight.js +36 -0
  160. package/node_modules/@lezer/css/src/parser.js +31 -0
  161. package/node_modules/@lezer/css/src/parser.terms.js +63 -0
  162. package/node_modules/@lezer/css/src/tokens.js +75 -0
  163. package/node_modules/@lezer/css/test/declarations.txt +241 -0
  164. package/node_modules/@lezer/css/test/selector.txt +178 -0
  165. package/node_modules/@lezer/css/test/statements.txt +227 -0
  166. package/node_modules/@lezer/css/test/test-css.js +16 -0
  167. package/node_modules/@lezer/highlight/LICENSE +21 -0
  168. package/node_modules/@lezer/highlight/README.md +14 -0
  169. package/node_modules/@lezer/highlight/dist/index.cjs +936 -0
  170. package/node_modules/@lezer/highlight/dist/index.d.cts +623 -0
  171. package/node_modules/@lezer/highlight/dist/index.d.ts +623 -0
  172. package/node_modules/@lezer/highlight/dist/index.js +927 -0
  173. package/node_modules/@lezer/highlight/package.json +31 -0
  174. package/node_modules/@lezer/html/CHANGELOG.md +303 -0
  175. package/node_modules/@lezer/html/LICENSE +21 -0
  176. package/node_modules/@lezer/html/README.md +37 -0
  177. package/node_modules/@lezer/html/dist/index.cjs +354 -0
  178. package/node_modules/@lezer/html/dist/index.d.cts +14 -0
  179. package/node_modules/@lezer/html/dist/index.d.ts +14 -0
  180. package/node_modules/@lezer/html/dist/index.js +349 -0
  181. package/node_modules/@lezer/html/package.json +37 -0
  182. package/node_modules/@lezer/html/rollup.config.js +16 -0
  183. package/node_modules/@lezer/html/src/.tern-port +1 -0
  184. package/node_modules/@lezer/html/src/content.js +87 -0
  185. package/node_modules/@lezer/html/src/highlight.js +15 -0
  186. package/node_modules/@lezer/html/src/html.grammar +181 -0
  187. package/node_modules/@lezer/html/src/index.js +2 -0
  188. package/node_modules/@lezer/html/src/parser.js +27 -0
  189. package/node_modules/@lezer/html/src/parser.terms.js +53 -0
  190. package/node_modules/@lezer/html/src/tokens.js +199 -0
  191. package/node_modules/@lezer/html/test/mixed.txt +69 -0
  192. package/node_modules/@lezer/html/test/tags.txt +370 -0
  193. package/node_modules/@lezer/html/test/test-html.js +29 -0
  194. package/node_modules/@lezer/html/test/test-incremental.js +97 -0
  195. package/node_modules/@lezer/html/test/vue.txt +56 -0
  196. package/node_modules/@lezer/javascript/CHANGELOG.md +485 -0
  197. package/node_modules/@lezer/javascript/LICENSE +21 -0
  198. package/node_modules/@lezer/javascript/README.md +14 -0
  199. package/node_modules/@lezer/javascript/dist/index.cjs +196 -0
  200. package/node_modules/@lezer/javascript/dist/index.d.cts +3 -0
  201. package/node_modules/@lezer/javascript/dist/index.d.ts +3 -0
  202. package/node_modules/@lezer/javascript/dist/index.js +192 -0
  203. package/node_modules/@lezer/javascript/package.json +36 -0
  204. package/node_modules/@lezer/javascript/rollup.config.js +16 -0
  205. package/node_modules/@lezer/javascript/src/highlight.js +62 -0
  206. package/node_modules/@lezer/javascript/src/javascript.grammar +735 -0
  207. package/node_modules/@lezer/javascript/src/parser.js +33 -0
  208. package/node_modules/@lezer/javascript/src/parser.terms.js +177 -0
  209. package/node_modules/@lezer/javascript/src/tokens.js +87 -0
  210. package/node_modules/@lezer/javascript/test/decorator.txt +64 -0
  211. package/node_modules/@lezer/javascript/test/expression.txt +686 -0
  212. package/node_modules/@lezer/javascript/test/jsx.txt +79 -0
  213. package/node_modules/@lezer/javascript/test/semicolon.txt +77 -0
  214. package/node_modules/@lezer/javascript/test/statement.txt +404 -0
  215. package/node_modules/@lezer/javascript/test/test-javascript.js +17 -0
  216. package/node_modules/@lezer/javascript/test/typescript.txt +401 -0
  217. package/node_modules/@lezer/json/CHANGELOG.md +79 -0
  218. package/node_modules/@lezer/json/LICENSE +21 -0
  219. package/node_modules/@lezer/json/README.md +7 -0
  220. package/node_modules/@lezer/json/dist/index.cjs +41 -0
  221. package/node_modules/@lezer/json/dist/index.d.cts +3 -0
  222. package/node_modules/@lezer/json/dist/index.d.ts +3 -0
  223. package/node_modules/@lezer/json/dist/index.js +37 -0
  224. package/node_modules/@lezer/json/package.json +36 -0
  225. package/node_modules/@lezer/json/rollup.config.js +15 -0
  226. package/node_modules/@lezer/json/src/highlight.js +12 -0
  227. package/node_modules/@lezer/json/src/json.grammar +38 -0
  228. package/node_modules/@lezer/json/src/parser.js +23 -0
  229. package/node_modules/@lezer/json/src/parser.terms.js +12 -0
  230. package/node_modules/@lezer/json/test/arrays.txt +34 -0
  231. package/node_modules/@lezer/json/test/literals.txt +23 -0
  232. package/node_modules/@lezer/json/test/numbers.txt +87 -0
  233. package/node_modules/@lezer/json/test/objects.txt +34 -0
  234. package/node_modules/@lezer/json/test/strings.txt +50 -0
  235. package/node_modules/@lezer/json/test/test-json.js +17 -0
  236. package/node_modules/@lezer/lr/LICENSE +21 -0
  237. package/node_modules/@lezer/lr/README.md +25 -0
  238. package/node_modules/@lezer/lr/dist/constants.d.ts +45 -0
  239. package/node_modules/@lezer/lr/dist/constants.js +5 -0
  240. package/node_modules/@lezer/lr/dist/index.cjs +1891 -0
  241. package/node_modules/@lezer/lr/dist/index.d.cts +303 -0
  242. package/node_modules/@lezer/lr/dist/index.d.ts +303 -0
  243. package/node_modules/@lezer/lr/dist/index.js +1884 -0
  244. package/node_modules/@lezer/lr/package.json +32 -0
  245. package/node_modules/@lezer/markdown/CHANGELOG.md +279 -0
  246. package/node_modules/@lezer/markdown/LICENSE +21 -0
  247. package/node_modules/@lezer/markdown/README.md +725 -0
  248. package/node_modules/@lezer/markdown/bin/build-readme.cjs +39 -0
  249. package/node_modules/@lezer/markdown/build.js +16 -0
  250. package/node_modules/@lezer/markdown/dist/index.cjs +2352 -0
  251. package/node_modules/@lezer/markdown/dist/index.d.cts +600 -0
  252. package/node_modules/@lezer/markdown/dist/index.d.ts +600 -0
  253. package/node_modules/@lezer/markdown/dist/index.js +2335 -0
  254. package/node_modules/@lezer/markdown/package.json +37 -0
  255. package/node_modules/@lezer/markdown/src/README.md +83 -0
  256. package/node_modules/@lezer/markdown/src/extension.ts +301 -0
  257. package/node_modules/@lezer/markdown/src/index.ts +5 -0
  258. package/node_modules/@lezer/markdown/src/markdown.ts +1961 -0
  259. package/node_modules/@lezer/markdown/src/nest.ts +46 -0
  260. package/node_modules/@lezer/markdown/test/compare-tree.ts +14 -0
  261. package/node_modules/@lezer/markdown/test/spec.ts +79 -0
  262. package/node_modules/@lezer/markdown/test/test-extension.ts +269 -0
  263. package/node_modules/@lezer/markdown/test/test-incremental.ts +265 -0
  264. package/node_modules/@lezer/markdown/test/test-markdown.ts +3574 -0
  265. package/node_modules/@lezer/markdown/test/test-nesting.ts +86 -0
  266. package/node_modules/@lezer/markdown/test/tsconfig.json +12 -0
  267. package/node_modules/@lezer/markdown/tsconfig.json +14 -0
  268. package/node_modules/@lezer/python/CHANGELOG.md +243 -0
  269. package/node_modules/@lezer/python/LICENSE +21 -0
  270. package/node_modules/@lezer/python/README.md +6 -0
  271. package/node_modules/@lezer/python/dist/index.cjs +330 -0
  272. package/node_modules/@lezer/python/dist/index.d.cts +3 -0
  273. package/node_modules/@lezer/python/dist/index.d.ts +3 -0
  274. package/node_modules/@lezer/python/dist/index.js +326 -0
  275. package/node_modules/@lezer/python/package.json +36 -0
  276. package/node_modules/@lezer/python/rollup.config.js +16 -0
  277. package/node_modules/@lezer/python/src/highlight.js +35 -0
  278. package/node_modules/@lezer/python/src/python.grammar +381 -0
  279. package/node_modules/@lezer/python/src/tokens.js +224 -0
  280. package/node_modules/@lezer/python/test/expression.txt +231 -0
  281. package/node_modules/@lezer/python/test/statement.txt +442 -0
  282. package/node_modules/@lezer/python/test/test-incremental.js +33 -0
  283. package/node_modules/@lezer/python/test/test-python.js +17 -0
  284. package/node_modules/@marijn/find-cluster-break/LICENSE +21 -0
  285. package/node_modules/@marijn/find-cluster-break/README.md +28 -0
  286. package/node_modules/@marijn/find-cluster-break/dist/index.cjs +85 -0
  287. package/node_modules/@marijn/find-cluster-break/dist/index.d.cts +15 -0
  288. package/node_modules/@marijn/find-cluster-break/package.json +35 -0
  289. package/node_modules/@marijn/find-cluster-break/rollup.config.js +7 -0
  290. package/node_modules/@marijn/find-cluster-break/src/index.d.ts +15 -0
  291. package/node_modules/@marijn/find-cluster-break/src/index.js +87 -0
  292. package/node_modules/@marijn/find-cluster-break/test/test-cluster.js +30 -0
  293. package/node_modules/crelt/LICENSE +19 -0
  294. package/node_modules/crelt/README.md +23 -0
  295. package/node_modules/crelt/dist/index.cjs +31 -0
  296. package/node_modules/crelt/dist/index.d.cts +4 -0
  297. package/node_modules/crelt/index.d.ts +4 -0
  298. package/node_modules/crelt/index.js +28 -0
  299. package/node_modules/crelt/package.json +35 -0
  300. package/node_modules/crelt/rollup.config.js +13 -0
  301. package/node_modules/style-mod/LICENSE +19 -0
  302. package/node_modules/style-mod/README.md +98 -0
  303. package/node_modules/style-mod/dist/style-mod.cjs +165 -0
  304. package/node_modules/style-mod/dist/style-mod.d.cts +16 -0
  305. package/node_modules/style-mod/package.json +39 -0
  306. package/node_modules/style-mod/src/README.md +34 -0
  307. package/node_modules/style-mod/src/style-mod.d.ts +16 -0
  308. package/node_modules/style-mod/src/style-mod.js +172 -0
  309. package/node_modules/style-mod/test/test-style-mod.js +104 -0
  310. package/node_modules/w3c-keyname/.tern-port +1 -0
  311. package/node_modules/w3c-keyname/LICENSE +19 -0
  312. package/node_modules/w3c-keyname/README.md +18 -0
  313. package/node_modules/w3c-keyname/index.cjs +127 -0
  314. package/node_modules/w3c-keyname/index.d.cts +5 -0
  315. package/node_modules/w3c-keyname/index.d.ts +5 -0
  316. package/node_modules/w3c-keyname/index.js +119 -0
  317. package/node_modules/w3c-keyname/package.json +37 -0
  318. package/package.json +1 -1
  319. package/packages/daemon/src/api.js +268 -2
  320. package/packages/daemon/src/filewatcher.js +59 -0
  321. package/packages/daemon/src/index.js +28 -1
  322. package/packages/daemon/src/mimetypes.js +43 -0
  323. package/packages/gui/dist/assets/index-BQSznoq0.js +103 -0
  324. package/packages/gui/dist/index.html +1 -1
  325. package/packages/gui/package.json +15 -2
  326. package/packages/gui/src/App.jsx +3 -0
  327. package/packages/gui/src/components/CodeEditor.jsx +143 -0
  328. package/packages/gui/src/components/EditorTabs.jsx +83 -0
  329. package/packages/gui/src/components/FileTree.jsx +492 -0
  330. package/packages/gui/src/components/MediaViewer.jsx +104 -0
  331. package/packages/gui/src/stores/groove.js +287 -1
  332. package/packages/gui/src/views/FileEditor.jsx +149 -0
  333. package/node_modules/@groove-dev/gui/dist/assets/index-8Kqi_LVo.js +0 -74
  334. package/packages/gui/dist/assets/index-8Kqi_LVo.js +0 -74
@@ -0,0 +1,401 @@
1
+ # Undefined and Null Type {"dialect": "ts"}
2
+
3
+ let x: undefined
4
+ let y: null
5
+
6
+ ==>
7
+
8
+ Script(
9
+ VariableDeclaration(let,VariableDefinition,TypeAnnotation(
10
+ TypeName)),
11
+ VariableDeclaration(let,VariableDefinition,TypeAnnotation(
12
+ NullType(null))))
13
+
14
+ # Type declaration {"dialect": "ts"}
15
+
16
+ function foo(a: number, b: "literal" | Map<number, boolean>): RegExp[] {}
17
+
18
+ ==>
19
+
20
+ Script(FunctionDeclaration(function, VariableDefinition, ParamList(
21
+ VariableDefinition, TypeAnnotation(TypeName),
22
+ VariableDefinition, TypeAnnotation(UnionType(LiteralType(String), LogicOp, ParameterizedType(TypeName, TypeArgList(TypeName, TypeName))))
23
+ ), TypeAnnotation(ArrayType(TypeName)), Block))
24
+
25
+ # Type predicate {"dialect": "ts"}
26
+
27
+ function isFoo(foo: any): foo is Foo { return true }
28
+
29
+ function assertFoo(foo: any): asserts foo is "string" { return true }
30
+
31
+ ==>
32
+
33
+ Script(
34
+ FunctionDeclaration(function, VariableDefinition, ParamList(
35
+ VariableDefinition, TypeAnnotation(TypeName)
36
+ ), TypePredicate(VariableName, is, TypeName), Block(ReturnStatement(return, BooleanLiteral))),
37
+ FunctionDeclaration(function,VariableDefinition,ParamList(
38
+ VariableDefinition,TypeAnnotation(TypeName)
39
+ ),TypePredicate(asserts,VariableName,is,LiteralType(String)),Block(ReturnStatement(return,BooleanLiteral))))
40
+
41
+ # Type alias {"dialect": "ts"}
42
+
43
+ type Foo<T extends string> = T[]
44
+
45
+ ==>
46
+
47
+ Script(TypeAliasDeclaration(type, TypeDefinition, TypeParamList(TypeDefinition, extends, TypeName), Equals, ArrayType(TypeName)))
48
+
49
+ # Enum declaration {"dialect": "ts"}
50
+
51
+ const enum Type { Red = 1, Blue, Green }
52
+
53
+ ==>
54
+
55
+ Script(EnumDeclaration(const, enum, TypeDefinition, EnumBody(PropertyName, Equals, Number, PropertyName, PropertyName)))
56
+
57
+ # Interface declaration {"dialect": "ts"}
58
+
59
+ interface Foo {
60
+ readonly a: number
61
+ b(arg: string): void
62
+ (call: number): boolean
63
+ new (): Foo
64
+ readonly [x: string]: number
65
+ }
66
+
67
+ ==>
68
+
69
+ Script(InterfaceDeclaration(interface, TypeDefinition, ObjectType(
70
+ PropertyType(readonly, PropertyDefinition, TypeAnnotation(TypeName)),
71
+ MethodType(PropertyDefinition, ParamList(VariableDefinition, TypeAnnotation(TypeName)), TypeAnnotation(VoidType(void))),
72
+ CallSignature(ParamList(VariableDefinition, TypeAnnotation(TypeName)), TypeAnnotation(TypeName)),
73
+ NewSignature(new,ParamList, TypeAnnotation(TypeName)),
74
+ IndexSignature(readonly, PropertyDefinition, TypeAnnotation(TypeName), TypeAnnotation(TypeName)))))
75
+
76
+ # Call type args {"dialect": "ts"}
77
+
78
+ foo<number, string>() + new Bar<11>()
79
+ x < 10 > 5
80
+
81
+ ==>
82
+
83
+ Script(
84
+ ExpressionStatement(BinaryExpression(
85
+ CallExpression(InstantiationExpression(VariableName, TypeArgList(TypeName, TypeName)), ArgList),
86
+ ArithOp,
87
+ NewExpression(new, InstantiationExpression(VariableName, TypeArgList(LiteralType(Number))), ArgList))),
88
+ ExpressionStatement(BinaryExpression(BinaryExpression(VariableName, CompareOp, Number), CompareOp, Number)))
89
+
90
+ # Advanced types {"dialect": "ts"}
91
+
92
+ let x: typeof X.x | keyof Y & Z["Foo"] | A<string>
93
+ let tuple: [a, b]
94
+ let f: (x: number) => boolean
95
+
96
+ ==>
97
+
98
+ Script(
99
+ VariableDeclaration(let, VariableDefinition, TypeAnnotation(
100
+ UnionType(TypeofType(typeof, MemberExpression(VariableName, PropertyName)), LogicOp,
101
+ IntersectionType(KeyofType(keyof, TypeName), LogicOp, IndexedType(TypeName, LiteralType(String))),
102
+ LogicOp, ParameterizedType(TypeName, TypeArgList(TypeName))))),
103
+ VariableDeclaration(let, VariableDefinition, TypeAnnotation(TupleType(TypeName, TypeName))),
104
+ VariableDeclaration(let, VariableDefinition, TypeAnnotation(FunctionSignature(
105
+ ParamList(VariableDefinition, TypeAnnotation(TypeName)), Arrow, TypeName))))
106
+
107
+ # Prefix union/intersection
108
+
109
+ let x:
110
+ | A
111
+ | B
112
+ | C
113
+ let y: & RegExp & (& Date)
114
+
115
+ ==>
116
+
117
+ Script(
118
+ VariableDeclaration(let,VariableDefinition,TypeAnnotation(
119
+ UnionType(LogicOp,TypeName,LogicOp,TypeName,LogicOp,TypeName))),
120
+ VariableDeclaration(let,VariableDefinition,TypeAnnotation(
121
+ IntersectionType(LogicOp,TypeName,LogicOp,ParenthesizedType(IntersectionType(LogicOp,TypeName))))))
122
+
123
+ # Prefix cast {"dialect": "ts"}
124
+
125
+ <string>foo
126
+
127
+ ==>
128
+
129
+ Script(ExpressionStatement(PrefixCast(TypeName, VariableName)))
130
+
131
+ # No prefix cast in JSX {"dialect": "ts jsx"}
132
+
133
+ <string>foo</string>
134
+
135
+ ==>
136
+
137
+ Script(ExpressionStatement(JSXElement(
138
+ JSXOpenTag(JSXStartTag, JSXBuiltin(JSXIdentifier), JSXEndTag),
139
+ JSXText,
140
+ JSXCloseTag(JSXStartCloseTag, JSXBuiltin(JSXIdentifier), JSXEndTag))))
141
+
142
+ # Class definition {"dialect": "ts"}
143
+
144
+ class Foo<T> extends Bar<T> implements Stuff {
145
+ a: number
146
+ public readonly b: string = "two"
147
+ constructor(readonly x: boolean, public y: number, z: string) {}
148
+ private static blah(): void {}
149
+ }
150
+
151
+ ==>
152
+
153
+ Script(ClassDeclaration(
154
+ class, VariableDefinition, TypeParamList(TypeDefinition),
155
+ extends, VariableName, TypeArgList(TypeName),
156
+ implements TypeName,
157
+ ClassBody(
158
+ PropertyDeclaration(PropertyDefinition, TypeAnnotation(TypeName)),
159
+ PropertyDeclaration(Privacy, readonly, PropertyDefinition, TypeAnnotation(TypeName), Equals, String),
160
+ MethodDeclaration(PropertyDefinition, ParamList(
161
+ readonly, VariableDefinition, TypeAnnotation(TypeName),
162
+ Privacy, VariableDefinition, TypeAnnotation(TypeName),
163
+ VariableDefinition, TypeAnnotation(TypeName)), Block),
164
+ MethodDeclaration(Privacy, static, PropertyDefinition, ParamList, TypeAnnotation(VoidType(void)), Block))))
165
+
166
+ # Arrow with type params {"dialect": "ts"}
167
+
168
+ let x = <T>(arg: T): T => arg
169
+
170
+ ==>
171
+
172
+ Script(VariableDeclaration(let, VariableDefinition, Equals, ArrowFunction(
173
+ TypeParamList(TypeDefinition),
174
+ ParamList(VariableDefinition, TypeAnnotation(TypeName)),
175
+ TypeAnnotation(TypeName),
176
+ Arrow,
177
+ VariableName)))
178
+
179
+ # Template types {"dialect": "ts"}
180
+
181
+ type Tmpl<T> = `${string} ${5}` | `one ${Two}`
182
+
183
+ ==>
184
+
185
+ Script(TypeAliasDeclaration(type, TypeDefinition, TypeParamList(TypeDefinition), Equals,
186
+ UnionType(TemplateType(Interpolation(InterpolationStart,TypeName,InterpolationEnd), Interpolation(InterpolationStart,LiteralType(Number),InterpolationEnd)), LogicOp, TemplateType(Interpolation(InterpolationStart,TypeName,InterpolationEnd)))))
187
+
188
+ # Extending complex types {"dialect": "ts"}
189
+
190
+ class Foo extends A.B<Param> {}
191
+
192
+ ==>
193
+
194
+ Script(ClassDeclaration(class, VariableDefinition,
195
+ extends, MemberExpression(VariableName, PropertyName), TypeArgList(TypeName),
196
+ ClassBody))
197
+
198
+ # Object type {"dialect": "ts"}
199
+
200
+ type A = {a: number, b: number}
201
+ type B = {a: number; b: number;}
202
+
203
+ ==>
204
+
205
+ Script(
206
+ TypeAliasDeclaration(type,TypeDefinition,Equals,ObjectType(
207
+ PropertyType(PropertyDefinition,TypeAnnotation(TypeName)),
208
+ PropertyType(PropertyDefinition,TypeAnnotation(TypeName)))),
209
+ TypeAliasDeclaration(type,TypeDefinition,Equals,ObjectType(
210
+ PropertyType(PropertyDefinition,TypeAnnotation(TypeName)),
211
+ PropertyType(PropertyDefinition,TypeAnnotation(TypeName)))))
212
+
213
+ # Conditional Type {"dialect": "ts"}
214
+
215
+ type X<T> = T extends E ? number : A
216
+
217
+ ==>
218
+
219
+ Script(
220
+ TypeAliasDeclaration(type,TypeDefinition,TypeParamList(TypeDefinition),Equals,
221
+ ConditionalType(TypeName,extends,TypeName,LogicOp,TypeName,LogicOp,TypeName)))
222
+
223
+ # Generic Function Type {"dialect": "ts"}
224
+
225
+ let f: <T>() => T
226
+
227
+ ==>
228
+
229
+ Script(
230
+ VariableDeclaration(let,VariableDefinition,TypeAnnotation(
231
+ FunctionSignature(TypeParamList(TypeDefinition),ParamList,Arrow,TypeName))))
232
+
233
+ # Satisfies operator {"dialect": "ts"}
234
+
235
+ let x = 1 satisfies number
236
+
237
+ ==>
238
+
239
+ Script(VariableDeclaration(let,VariableDefinition,Equals,BinaryExpression(Number,satisfies,TypeName)))
240
+
241
+ # Override modifier on properties {"dialect": "ts"}
242
+
243
+ class A {
244
+ override accessor a;
245
+ static override b = 1;
246
+ override c = 2;
247
+ }
248
+
249
+ ==>
250
+
251
+ Script(ClassDeclaration(class,VariableDefinition,ClassBody(
252
+ PropertyDeclaration(override,accessor,PropertyDefinition),
253
+ PropertyDeclaration(static,override,PropertyDefinition,Equals,Number),
254
+ PropertyDeclaration(override,PropertyDefinition,Equals,Number))))
255
+
256
+ # Class extending expression {"dialect": "ts"}
257
+
258
+ class X extends class {} {}
259
+
260
+ ==>
261
+
262
+ Script(ClassDeclaration(class,VariableDefinition,extends,ClassExpression(class,ClassBody),ClassBody))
263
+
264
+ # Declare syntax {"dialect": "ts"}
265
+
266
+ declare namespace myLib {
267
+ function makeGreeting(s: string): string;
268
+ let numberOfGreetings: number;
269
+ }
270
+
271
+ declare function greet(setting: GreetingSettings): void;
272
+
273
+ declare class Greeter {
274
+ constructor(greeting: string);
275
+ greeting: string;
276
+ showGreeting(): void;
277
+ }
278
+
279
+ class X {
280
+ declare foo();
281
+ declare bar: number;
282
+ }
283
+
284
+ ==>
285
+
286
+ Script(
287
+ AmbientDeclaration(declare,NamespaceDeclaration(namespace,VariableDefinition,Block(
288
+ FunctionDeclaration(function,VariableDefinition,ParamList(VariableDefinition,TypeAnnotation(TypeName)),
289
+ TypeAnnotation(TypeName)),
290
+ VariableDeclaration(let,VariableDefinition,TypeAnnotation(TypeName))))),
291
+ AmbientDeclaration(declare,AmbientFunctionDeclaration(function,VariableDefinition,
292
+ ParamList(VariableDefinition,TypeAnnotation(TypeName)),TypeAnnotation(VoidType(void)))),
293
+ AmbientDeclaration(declare,ClassDeclaration(class,VariableDefinition,ClassBody(
294
+ MethodDeclaration(PropertyDefinition,ParamList(VariableDefinition,TypeAnnotation(TypeName))),
295
+ PropertyDeclaration(PropertyDefinition,TypeAnnotation(TypeName)),
296
+ MethodDeclaration(PropertyDefinition,ParamList,TypeAnnotation(VoidType(void)))))),
297
+ ClassDeclaration(class,VariableDefinition,ClassBody(
298
+ MethodDeclaration(declare,PropertyDefinition,ParamList),
299
+ PropertyDeclaration(declare,PropertyDefinition,TypeAnnotation(TypeName)))))
300
+
301
+ # Declare this in a Function {"dialect": "ts"}
302
+
303
+ function foo(this: User) {}
304
+
305
+ ==>
306
+
307
+ Script(FunctionDeclaration(function,VariableDefinition,ParamList(this,TypeAnnotation(TypeName)),Block))
308
+
309
+ # Prefers type parameters to comparison operators {"dialect": "ts jsx"}
310
+
311
+ let a = useState<string>(1)
312
+ return 2
313
+
314
+ ==>
315
+
316
+ Script(
317
+ VariableDeclaration(let,VariableDefinition,Equals,
318
+ CallExpression(InstantiationExpression(VariableName,TypeArgList(TypeName)),ArgList(Number))),
319
+ ReturnStatement(return,Number))
320
+
321
+ # Type parameters vs JSX {"dialect": "jsx ts"}
322
+
323
+ let a = <T extends any>(f) => null
324
+ let b = <T,>() => 1
325
+
326
+ ==>
327
+
328
+ Script(
329
+ VariableDeclaration(let,VariableDefinition,Equals,ArrowFunction(
330
+ TypeParamList(TypeDefinition,extends,TypeName),ParamList(VariableDefinition),Arrow,null)),
331
+ VariableDeclaration(let,VariableDefinition,Equals,ArrowFunction(
332
+ TypeParamList(TypeDefinition),ParamList,Arrow,Number)))
333
+
334
+ # Destructured parameters in function signature {"dialect": "ts"}
335
+
336
+ type F = ([a, b]: [number, number]) => void
337
+
338
+ ==>
339
+
340
+ Script(TypeAliasDeclaration(type,TypeDefinition,Equals,FunctionSignature(
341
+ ParamList(ArrayPattern(VariableDefinition,VariableDefinition),TypeAnnotation(TupleType(TypeName,TypeName))),
342
+ Arrow,
343
+ VoidType(void))))
344
+
345
+ # Instantiated expression {"dialect": "ts"}
346
+
347
+ let x = a<b>;
348
+
349
+ type Foo = Bar<typeof baz<Bug<Quux>>>;
350
+
351
+ ==>
352
+
353
+ Script(
354
+ VariableDeclaration(let,VariableDefinition,Equals,InstantiationExpression(VariableName,TypeArgList(TypeName))),
355
+ TypeAliasDeclaration(type,TypeDefinition,Equals,ParameterizedType(TypeName,TypeArgList(
356
+ TypeofType(typeof,InstantiationExpression(VariableName,TypeArgList(
357
+ ParameterizedType(TypeName,TypeArgList(TypeName)))))))))
358
+
359
+ # Not instantiated {"dialect": "ts"}
360
+
361
+ let x = a<b>c
362
+
363
+ ==>
364
+
365
+ Script(VariableDeclaration(let,VariableDefinition,Equals,BinaryExpression(
366
+ BinaryExpression(VariableName,CompareOp,VariableName),CompareOp,VariableName)))
367
+
368
+ # Allows computed properties in types {"dialect": "ts"}
369
+
370
+ interface X {
371
+ [Symbol.iterator](): Iterator<number>
372
+ [1]: string
373
+ }
374
+
375
+ ==>
376
+
377
+ Script(InterfaceDeclaration(interface,TypeDefinition,ObjectType(
378
+ MethodType(MemberExpression(VariableName,PropertyName),ParamList,
379
+ TypeAnnotation(ParameterizedType(TypeName,TypeArgList(TypeName)))),
380
+ PropertyType(Number,TypeAnnotation(TypeName)))))
381
+
382
+ # Binary type operators {"dialect": "ts"}
383
+
384
+ log(foo as number, {} satisfies AbstractObjectFactory<ParticleEmitter>)
385
+
386
+ ==>
387
+
388
+ Script(ExpressionStatement(CallExpression(VariableName,ArgList(
389
+ BinaryExpression(VariableName,as,TypeName),
390
+ BinaryExpression(ObjectExpression,satisfies,ParameterizedType(TypeName,TypeArgList(TypeName)))))))
391
+
392
+ # Allows this parameters in function types {"dialect": "ts"}
393
+
394
+ let x: (this: X, expression: string) => Promise<T[]>
395
+
396
+ ==>
397
+
398
+ Script(VariableDeclaration(let,VariableDefinition,TypeAnnotation(FunctionSignature(
399
+ ParamList(this,TypeAnnotation(TypeName),VariableDefinition,TypeAnnotation(TypeName)),
400
+ Arrow,
401
+ ParameterizedType(TypeName,TypeArgList(ArrayType(TypeName)))))))
@@ -0,0 +1,79 @@
1
+ ## 1.0.3 (2024-12-29)
2
+
3
+ ### Bug fixes
4
+
5
+ Emit tokens for colons and commas.
6
+
7
+ ## 1.0.2 (2023-12-28)
8
+
9
+ ### Bug fixes
10
+
11
+ Tag strings as isolating for the purpose of bidirectional text.
12
+
13
+ ## 1.0.1 (2023-07-03)
14
+
15
+ ### Bug fixes
16
+
17
+ Make the package work with new TS resolution styles.
18
+
19
+ ## 1.0.0 (2022-06-06)
20
+
21
+ ### New features
22
+
23
+ First stable version.
24
+
25
+ ## 0.16.0 (2022-04-20)
26
+
27
+ ### Breaking changes
28
+
29
+ Move to 0.16 serialized parser format.
30
+
31
+ ### New features
32
+
33
+ The parser now includes syntax highlighting information in its node types.
34
+
35
+ ## 0.15.0 (2021-08-11)
36
+
37
+ ### Breaking changes
38
+
39
+ The module's name changed from `lezer-json` to `@lezer/json`.
40
+
41
+ Upgrade to the 0.15.0 lezer interfaces.
42
+
43
+ ## 0.13.2 (2021-06-14)
44
+
45
+ ### Bug fixes
46
+
47
+ Include nodes for brackets and braces in the tree.
48
+
49
+ ## 0.13.1 (2020-12-04)
50
+
51
+ ### Bug fixes
52
+
53
+ Fix versions of lezer packages depended on.
54
+
55
+ ## 0.13.0 (2020-12-04)
56
+
57
+ ## 0.12.0 (2020-10-23)
58
+
59
+ ### Breaking changes
60
+
61
+ Adjust to changed serialized parser format.
62
+
63
+ ## 0.11.1 (2020-09-26)
64
+
65
+ ### Bug fixes
66
+
67
+ Fix lezer depencency versions
68
+
69
+ ## 0.11.0 (2020-09-26)
70
+
71
+ ### Breaking changes
72
+
73
+ Follow change in serialized parser format.
74
+
75
+ ## 0.10.0 (2020-09-23)
76
+
77
+ ### Breaking changes
78
+
79
+ Upgrade to current parser package format.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (C) 2020 by Marijn Haverbeke <marijn@haverbeke.berlin>, Arun Srinivasan <rulfzid@gmail.com>, and others
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,7 @@
1
+ # @lezer/json
2
+
3
+ This is a JSON grammar for the [lezer](https://lezer.codemirror.net/) parser system.
4
+
5
+ Reference:
6
+ - https://www.json.org/json-en.html
7
+ - https://tools.ietf.org/html/rfc8259 (The latest IETF RFC – contains the latest full spec)
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var lr = require('@lezer/lr');
6
+ var highlight = require('@lezer/highlight');
7
+
8
+ const jsonHighlighting = highlight.styleTags({
9
+ String: highlight.tags.string,
10
+ Number: highlight.tags.number,
11
+ "True False": highlight.tags.bool,
12
+ PropertyName: highlight.tags.propertyName,
13
+ Null: highlight.tags.null,
14
+ ", :": highlight.tags.separator,
15
+ "[ ]": highlight.tags.squareBracket,
16
+ "{ }": highlight.tags.brace
17
+ });
18
+
19
+ // This file was generated by lezer-generator. You probably shouldn't edit it.
20
+ const parser = lr.LRParser.deserialize({
21
+ version: 14,
22
+ states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
23
+ stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
24
+ goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
25
+ nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
26
+ maxTerm: 25,
27
+ nodeProps: [
28
+ ["isolate", -2,6,11,""],
29
+ ["openedBy", 7,"{",14,"["],
30
+ ["closedBy", 8,"}",15,"]"]
31
+ ],
32
+ propSources: [jsonHighlighting],
33
+ skippedNodes: [0],
34
+ repeatNodeCount: 2,
35
+ tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
36
+ tokenizers: [0],
37
+ topRules: {"JsonText":[0,1]},
38
+ tokenPrec: 0
39
+ });
40
+
41
+ exports.parser = parser;
@@ -0,0 +1,3 @@
1
+ import {LRParser} from "@lezer/lr"
2
+
3
+ export const parser: LRParser
@@ -0,0 +1,3 @@
1
+ import {LRParser} from "@lezer/lr"
2
+
3
+ export const parser: LRParser
@@ -0,0 +1,37 @@
1
+ import { LRParser } from '@lezer/lr';
2
+ import { styleTags, tags } from '@lezer/highlight';
3
+
4
+ const jsonHighlighting = styleTags({
5
+ String: tags.string,
6
+ Number: tags.number,
7
+ "True False": tags.bool,
8
+ PropertyName: tags.propertyName,
9
+ Null: tags.null,
10
+ ", :": tags.separator,
11
+ "[ ]": tags.squareBracket,
12
+ "{ }": tags.brace
13
+ });
14
+
15
+ // This file was generated by lezer-generator. You probably shouldn't edit it.
16
+ const parser = LRParser.deserialize({
17
+ version: 14,
18
+ states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
19
+ stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
20
+ goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
21
+ nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
22
+ maxTerm: 25,
23
+ nodeProps: [
24
+ ["isolate", -2,6,11,""],
25
+ ["openedBy", 7,"{",14,"["],
26
+ ["closedBy", 8,"}",15,"]"]
27
+ ],
28
+ propSources: [jsonHighlighting],
29
+ skippedNodes: [0],
30
+ repeatNodeCount: 2,
31
+ tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
32
+ tokenizers: [0],
33
+ topRules: {"JsonText":[0,1]},
34
+ tokenPrec: 0
35
+ });
36
+
37
+ export { parser };
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@lezer/json",
3
+ "version": "1.0.3",
4
+ "description": "lezer-based JSON grammar",
5
+ "main": "dist/index.cjs",
6
+ "type": "module",
7
+ "exports": {
8
+ "import": "./dist/index.js",
9
+ "require": "./dist/index.cjs"
10
+ },
11
+ "module": "dist/index.js",
12
+ "types": "dist/index.d.ts",
13
+ "author": "Arun Srinivasan <rulfzid@gmail.com>",
14
+ "license": "MIT",
15
+ "devDependencies": {
16
+ "@lezer/generator": "^1.0.0",
17
+ "mocha": "^10.2.0",
18
+ "rollup": "^2.52.2",
19
+ "@rollup/plugin-node-resolve": "^9.0.0"
20
+ },
21
+ "dependencies": {
22
+ "@lezer/common": "^1.2.0",
23
+ "@lezer/highlight": "^1.0.0",
24
+ "@lezer/lr": "^1.0.0"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/lezer-parser/json.git"
29
+ },
30
+ "scripts": {
31
+ "build": "lezer-generator src/json.grammar -o src/parser && rollup -c",
32
+ "build-debug": "lezer-generator src/json.grammar --names -o src/parser && rollup -c",
33
+ "prepare": "npm run build",
34
+ "test": "npm run build && mocha test/test-json.js"
35
+ }
36
+ }
@@ -0,0 +1,15 @@
1
+ import {nodeResolve} from "@rollup/plugin-node-resolve"
2
+
3
+ export default {
4
+ input: "./src/parser.js",
5
+ output: [
6
+ { format: "cjs", file: "./dist/index.cjs" },
7
+ { format: "es", file: "./dist/index.js" }
8
+ ],
9
+ external(id) {
10
+ return !/^[\.\/]/.test(id)
11
+ },
12
+ plugins: [
13
+ nodeResolve()
14
+ ]
15
+ }
@@ -0,0 +1,12 @@
1
+ import {styleTags, tags as t} from "@lezer/highlight"
2
+
3
+ export const jsonHighlighting = styleTags({
4
+ String: t.string,
5
+ Number: t.number,
6
+ "True False": t.bool,
7
+ PropertyName: t.propertyName,
8
+ Null: t.null,
9
+ ", :": t.separator,
10
+ "[ ]": t.squareBracket,
11
+ "{ }": t.brace
12
+ })