round-core 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/index.d.ts +341 -341
- package/dist/vite-plugin.js +52 -3
- package/package.json +7 -3
- package/.github/workflows/benchmarks.yml +0 -44
- package/Round.png +0 -0
- package/benchmarks/apps/react/index.html +0 -9
- package/benchmarks/apps/react/main.jsx +0 -25
- package/benchmarks/apps/react/vite.config.js +0 -12
- package/benchmarks/apps/round/index.html +0 -11
- package/benchmarks/apps/round/main.jsx +0 -22
- package/benchmarks/apps/round/vite.config.js +0 -15
- package/benchmarks/bun.lock +0 -497
- package/benchmarks/dist-bench/react/assets/index-9KGqIPOU.js +0 -8
- package/benchmarks/dist-bench/react/index.html +0 -10
- package/benchmarks/dist-bench/round/assets/index-CBBIRhox.js +0 -52
- package/benchmarks/dist-bench/round/index.html +0 -8
- package/benchmarks/package.json +0 -22
- package/benchmarks/scripts/measure-build.js +0 -64
- package/benchmarks/tests/runtime.bench.js +0 -51
- package/benchmarks/vitest.config.js +0 -8
- package/bun.lock +0 -425
- package/cli.js +0 -2
- package/extension/.vscodeignore +0 -5
- package/extension/LICENSE +0 -21
- package/extension/cgmanifest.json +0 -45
- package/extension/extension.js +0 -163
- package/extension/images/round-config-dark.svg +0 -10
- package/extension/images/round-config-light.svg +0 -10
- package/extension/images/round-dark.svg +0 -10
- package/extension/images/round-light.svg +0 -10
- package/extension/javascript-language-configuration.json +0 -241
- package/extension/package-lock.json +0 -97
- package/extension/package.json +0 -119
- package/extension/package.nls.json +0 -4
- package/extension/round-0.1.0.vsix +0 -0
- package/extension/round-lsp/package-lock.json +0 -185
- package/extension/round-lsp/package.json +0 -21
- package/extension/round-lsp/src/round-transformer-lsp.js +0 -248
- package/extension/round-lsp/src/server.js +0 -396
- package/extension/snippets/javascript.code-snippets +0 -266
- package/extension/snippets/round.code-snippets +0 -109
- package/extension/syntaxes/JavaScript.tmLanguage.json +0 -6001
- package/extension/syntaxes/JavaScriptReact.tmLanguage.json +0 -6066
- package/extension/syntaxes/Readme.md +0 -12
- package/extension/syntaxes/Regular Expressions (JavaScript).tmLanguage +0 -237
- package/extension/syntaxes/Round.tmLanguage.json +0 -290
- package/extension/syntaxes/RoundInject.tmLanguage.json +0 -20
- package/extension/tags-language-configuration.json +0 -152
- package/extension/temp_astro/package-lock.json +0 -912
- package/extension/temp_astro/package.json +0 -16
- package/extension/types/round-core.d.ts +0 -326
- package/index.js +0 -2
- package/logo.svg +0 -10
- package/src/cli.js +0 -608
- package/src/compiler/index.js +0 -2
- package/src/compiler/transformer.js +0 -443
- package/src/compiler/vite-plugin.js +0 -472
- package/src/index.d.ts +0 -341
- package/src/index.js +0 -45
- package/src/runtime/context.js +0 -101
- package/src/runtime/dom.js +0 -403
- package/src/runtime/error-boundary.js +0 -48
- package/src/runtime/error-reporter.js +0 -13
- package/src/runtime/error-store.js +0 -85
- package/src/runtime/errors.js +0 -152
- package/src/runtime/lifecycle.js +0 -142
- package/src/runtime/markdown.js +0 -72
- package/src/runtime/router.js +0 -468
- package/src/runtime/signals.js +0 -548
- package/src/runtime/store.js +0 -215
- package/src/runtime/suspense.js +0 -128
- package/vite.config.build.js +0 -48
- package/vite.config.js +0 -10
- 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
|
-
}
|