round-core 0.0.7 → 0.0.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 (76) hide show
  1. package/README.md +62 -41
  2. package/dist/index.d.ts +341 -341
  3. package/dist/index.js +211 -192
  4. package/dist/vite-plugin.js +52 -3
  5. package/package.json +7 -4
  6. package/.github/workflows/benchmarks.yml +0 -44
  7. package/Round.png +0 -0
  8. package/benchmarks/apps/react/index.html +0 -9
  9. package/benchmarks/apps/react/main.jsx +0 -25
  10. package/benchmarks/apps/react/vite.config.js +0 -12
  11. package/benchmarks/apps/round/index.html +0 -11
  12. package/benchmarks/apps/round/main.jsx +0 -22
  13. package/benchmarks/apps/round/vite.config.js +0 -15
  14. package/benchmarks/bun.lock +0 -497
  15. package/benchmarks/dist-bench/react/assets/index-9KGqIPOU.js +0 -8
  16. package/benchmarks/dist-bench/react/index.html +0 -10
  17. package/benchmarks/dist-bench/round/assets/index-CBBIRhox.js +0 -52
  18. package/benchmarks/dist-bench/round/index.html +0 -8
  19. package/benchmarks/package.json +0 -22
  20. package/benchmarks/scripts/measure-build.js +0 -64
  21. package/benchmarks/tests/runtime.bench.js +0 -51
  22. package/benchmarks/vitest.config.js +0 -8
  23. package/bun.lock +0 -425
  24. package/cli.js +0 -2
  25. package/extension/.vscodeignore +0 -5
  26. package/extension/LICENSE +0 -21
  27. package/extension/cgmanifest.json +0 -45
  28. package/extension/extension.js +0 -163
  29. package/extension/images/round-config-dark.svg +0 -10
  30. package/extension/images/round-config-light.svg +0 -10
  31. package/extension/images/round-dark.svg +0 -10
  32. package/extension/images/round-light.svg +0 -10
  33. package/extension/javascript-language-configuration.json +0 -241
  34. package/extension/package-lock.json +0 -97
  35. package/extension/package.json +0 -119
  36. package/extension/package.nls.json +0 -4
  37. package/extension/round-0.1.0.vsix +0 -0
  38. package/extension/round-lsp/package-lock.json +0 -185
  39. package/extension/round-lsp/package.json +0 -21
  40. package/extension/round-lsp/src/round-transformer-lsp.js +0 -248
  41. package/extension/round-lsp/src/server.js +0 -396
  42. package/extension/snippets/javascript.code-snippets +0 -266
  43. package/extension/snippets/round.code-snippets +0 -109
  44. package/extension/syntaxes/JavaScript.tmLanguage.json +0 -6001
  45. package/extension/syntaxes/JavaScriptReact.tmLanguage.json +0 -6066
  46. package/extension/syntaxes/Readme.md +0 -12
  47. package/extension/syntaxes/Regular Expressions (JavaScript).tmLanguage +0 -237
  48. package/extension/syntaxes/Round.tmLanguage.json +0 -290
  49. package/extension/syntaxes/RoundInject.tmLanguage.json +0 -20
  50. package/extension/tags-language-configuration.json +0 -152
  51. package/extension/temp_astro/package-lock.json +0 -912
  52. package/extension/temp_astro/package.json +0 -16
  53. package/extension/types/round-core.d.ts +0 -326
  54. package/index.js +0 -2
  55. package/logo.svg +0 -10
  56. package/src/cli.js +0 -608
  57. package/src/compiler/index.js +0 -2
  58. package/src/compiler/transformer.js +0 -443
  59. package/src/compiler/vite-plugin.js +0 -472
  60. package/src/index.d.ts +0 -341
  61. package/src/index.js +0 -45
  62. package/src/runtime/context.js +0 -101
  63. package/src/runtime/dom.js +0 -403
  64. package/src/runtime/error-boundary.js +0 -48
  65. package/src/runtime/error-reporter.js +0 -13
  66. package/src/runtime/error-store.js +0 -85
  67. package/src/runtime/errors.js +0 -152
  68. package/src/runtime/lifecycle.js +0 -142
  69. package/src/runtime/markdown.js +0 -72
  70. package/src/runtime/router.js +0 -468
  71. package/src/runtime/signals.js +0 -548
  72. package/src/runtime/store.js +0 -215
  73. package/src/runtime/suspense.js +0 -128
  74. package/vite.config.build.js +0 -48
  75. package/vite.config.js +0 -10
  76. package/vitest.config.js +0 -8
@@ -1,109 +0,0 @@
1
- {
2
- "Round component": {
3
- "prefix": "round:component",
4
- "body": [
5
- "export function ${1:ComponentName}() {",
6
- "\treturn (",
7
- "\t\t<div>",
8
- "\t\t\t$0",
9
- "\t\t</div>",
10
- "\t);",
11
- "}"
12
- ],
13
- "description": "Create a Round component"
14
- },
15
- "signal": {
16
- "prefix": "round:signal",
17
- "body": [
18
- "import { signal } from 'round-core';",
19
- "",
20
- "const ${1:name} = signal(${2:initial});",
21
- "$0"
22
- ],
23
- "description": "Create a signal()"
24
- },
25
- "bindable": {
26
- "prefix": "round:bindable",
27
- "body": [
28
- "import { bindable } from 'round-core';",
29
- "",
30
- "const ${1:name} = bindable(${2:initial});",
31
- "$0"
32
- ],
33
- "description": "Create a bindable()"
34
- },
35
- "Route": {
36
- "prefix": "round:route",
37
- "body": [
38
- "import { Route } from 'round-core';",
39
- "",
40
- "<Route route=\"${1:/}\" title=\"${2:Title}\">",
41
- "\t$0",
42
- "</Route>"
43
- ],
44
- "description": "Insert a <Route> block"
45
- },
46
- "Suspense": {
47
- "prefix": "round:suspense",
48
- "body": [
49
- "import { Suspense } from 'round-core';",
50
- "",
51
- "<Suspense fallback={<div>${1:Loading...}</div>}>",
52
- "\t$0",
53
- "</Suspense>"
54
- ],
55
- "description": "Insert a <Suspense> block"
56
- },
57
- "Markdown": {
58
- "prefix": "round:markdown",
59
- "body": [
60
- "import { Markdown } from 'round-core';",
61
- "",
62
- "<Markdown src=\"${1:./README.md}\" />$0"
63
- ],
64
- "description": "Insert a <Markdown> component"
65
- },
66
- "Round if": {
67
- "prefix": "round:if",
68
- "body": [
69
- "{if(${1:condition}){",
70
- "\t$0",
71
- "}}"
72
- ],
73
- "description": "Round JSX superset if block"
74
- },
75
- "Round if/else": {
76
- "prefix": "round:ifelse",
77
- "body": [
78
- "{if(${1:condition}){",
79
- "\t$0",
80
- "} else {",
81
- "\t",
82
- "}}"
83
- ],
84
- "description": "Round JSX superset if/else block"
85
- },
86
- "Round for": {
87
- "prefix": "round:for",
88
- "body": [
89
- "{for(${1:item} in ${2:list}){",
90
- "\t$0",
91
- "}}"
92
- ],
93
- "description": "Round JSX superset for-in block"
94
- },
95
- "bind:value": {
96
- "prefix": "round:bind:value",
97
- "body": [
98
- "<input bind:value={${1:state}} />$0"
99
- ],
100
- "description": "Two-way bind:value"
101
- },
102
- "bind:checked": {
103
- "prefix": "round:bind:checked",
104
- "body": [
105
- "<input type=\"checkbox\" bind:checked={${1:state}} />$0"
106
- ],
107
- "description": "Two-way bind:checked"
108
- }
109
- }