jac-client 0.2.2__py3-none-any.whl → 0.2.4__py3-none-any.whl
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.
- jac_client/examples/all-in-one/assets/workers/worker.py +5 -0
- jac_client/tests/conftest.py +281 -0
- jac_client/tests/test_cli.py +755 -0
- jac_client/tests/test_it.py +347 -67
- {jac_client-0.2.2.dist-info → jac_client-0.2.4.dist-info}/METADATA +30 -24
- jac_client-0.2.4.dist-info/RECORD +10 -0
- {jac_client-0.2.2.dist-info → jac_client-0.2.4.dist-info}/WHEEL +2 -1
- jac_client-0.2.4.dist-info/entry_points.txt +4 -0
- jac_client-0.2.4.dist-info/top_level.txt +1 -0
- jac_client/docs/README.md +0 -689
- jac_client/docs/advanced-state.md +0 -1265
- jac_client/docs/asset-serving/intro.md +0 -209
- jac_client/docs/assets/pipe_line-v2.svg +0 -32
- jac_client/docs/assets/pipe_line.png +0 -0
- jac_client/docs/file-system/app.jac.md +0 -121
- jac_client/docs/file-system/backend-frontend.md +0 -217
- jac_client/docs/file-system/intro.md +0 -72
- jac_client/docs/file-system/nested-imports.md +0 -348
- jac_client/docs/guide-example/intro.md +0 -115
- jac_client/docs/guide-example/step-01-setup.md +0 -270
- jac_client/docs/guide-example/step-02-components.md +0 -416
- jac_client/docs/guide-example/step-03-styling.md +0 -478
- jac_client/docs/guide-example/step-04-todo-ui.md +0 -477
- jac_client/docs/guide-example/step-05-local-state.md +0 -530
- jac_client/docs/guide-example/step-06-events.md +0 -749
- jac_client/docs/guide-example/step-07-effects.md +0 -468
- jac_client/docs/guide-example/step-08-walkers.md +0 -534
- jac_client/docs/guide-example/step-09-authentication.md +0 -586
- jac_client/docs/guide-example/step-10-routing.md +0 -539
- jac_client/docs/guide-example/step-11-final.md +0 -963
- jac_client/docs/imports.md +0 -1141
- jac_client/docs/lifecycle-hooks.md +0 -773
- jac_client/docs/routing.md +0 -659
- jac_client/docs/styling/intro.md +0 -249
- jac_client/docs/styling/js-styling.md +0 -367
- jac_client/docs/styling/material-ui.md +0 -341
- jac_client/docs/styling/pure-css.md +0 -299
- jac_client/docs/styling/sass.md +0 -403
- jac_client/docs/styling/styled-components.md +0 -395
- jac_client/docs/styling/tailwind.md +0 -298
- jac_client/examples/all-in-one/.babelrc +0 -9
- jac_client/examples/all-in-one/README.md +0 -16
- jac_client/examples/all-in-one/app.jac +0 -426
- jac_client/examples/all-in-one/assets/burger.png +0 -0
- jac_client/examples/all-in-one/button.jac +0 -7
- jac_client/examples/all-in-one/components/button.jac +0 -7
- jac_client/examples/all-in-one/package.json +0 -29
- jac_client/examples/all-in-one/styles.css +0 -26
- jac_client/examples/all-in-one/vite.config.js +0 -28
- jac_client/examples/asset-serving/css-with-image/.babelrc +0 -9
- jac_client/examples/asset-serving/css-with-image/README.md +0 -91
- jac_client/examples/asset-serving/css-with-image/app.jac +0 -88
- jac_client/examples/asset-serving/css-with-image/assets/burger.png +0 -0
- jac_client/examples/asset-serving/css-with-image/package.json +0 -28
- jac_client/examples/asset-serving/css-with-image/styles.css +0 -26
- jac_client/examples/asset-serving/css-with-image/vite.config.js +0 -28
- jac_client/examples/asset-serving/image-asset/.babelrc +0 -9
- jac_client/examples/asset-serving/image-asset/README.md +0 -119
- jac_client/examples/asset-serving/image-asset/app.jac +0 -55
- jac_client/examples/asset-serving/image-asset/assets/burger.png +0 -0
- jac_client/examples/asset-serving/image-asset/package.json +0 -28
- jac_client/examples/asset-serving/image-asset/styles.css +0 -26
- jac_client/examples/asset-serving/image-asset/vite.config.js +0 -28
- jac_client/examples/asset-serving/import-alias/.babelrc +0 -9
- jac_client/examples/asset-serving/import-alias/README.md +0 -83
- jac_client/examples/asset-serving/import-alias/app.jac +0 -111
- jac_client/examples/asset-serving/import-alias/assets/burger.png +0 -0
- jac_client/examples/asset-serving/import-alias/package.json +0 -28
- jac_client/examples/asset-serving/import-alias/vite.config.js +0 -28
- jac_client/examples/basic/.babelrc +0 -9
- jac_client/examples/basic/README.md +0 -16
- jac_client/examples/basic/app.jac +0 -21
- jac_client/examples/basic/package.json +0 -27
- jac_client/examples/basic/vite.config.js +0 -27
- jac_client/examples/basic-auth/.babelrc +0 -9
- jac_client/examples/basic-auth/README.md +0 -16
- jac_client/examples/basic-auth/app.jac +0 -308
- jac_client/examples/basic-auth/package.json +0 -27
- jac_client/examples/basic-auth/vite.config.js +0 -27
- jac_client/examples/basic-auth-with-router/.babelrc +0 -9
- jac_client/examples/basic-auth-with-router/README.md +0 -60
- jac_client/examples/basic-auth-with-router/app.jac +0 -464
- jac_client/examples/basic-auth-with-router/package.json +0 -28
- jac_client/examples/basic-auth-with-router/vite.config.js +0 -27
- jac_client/examples/basic-full-stack/.babelrc +0 -9
- jac_client/examples/basic-full-stack/README.md +0 -18
- jac_client/examples/basic-full-stack/app.jac +0 -320
- jac_client/examples/basic-full-stack/package.json +0 -28
- jac_client/examples/basic-full-stack/vite.config.js +0 -27
- jac_client/examples/css-styling/js-styling/.babelrc +0 -9
- jac_client/examples/css-styling/js-styling/README.md +0 -183
- jac_client/examples/css-styling/js-styling/app.jac +0 -84
- jac_client/examples/css-styling/js-styling/package.json +0 -28
- jac_client/examples/css-styling/js-styling/styles.js +0 -100
- jac_client/examples/css-styling/js-styling/vite.config.js +0 -27
- jac_client/examples/css-styling/material-ui/.babelrc +0 -9
- jac_client/examples/css-styling/material-ui/README.md +0 -16
- jac_client/examples/css-styling/material-ui/app.jac +0 -122
- jac_client/examples/css-styling/material-ui/package.json +0 -32
- jac_client/examples/css-styling/material-ui/vite.config.js +0 -27
- jac_client/examples/css-styling/pure-css/.babelrc +0 -9
- jac_client/examples/css-styling/pure-css/README.md +0 -16
- jac_client/examples/css-styling/pure-css/app.jac +0 -64
- jac_client/examples/css-styling/pure-css/package.json +0 -28
- jac_client/examples/css-styling/pure-css/styles.css +0 -111
- jac_client/examples/css-styling/pure-css/vite.config.js +0 -27
- jac_client/examples/css-styling/sass-example/.babelrc +0 -9
- jac_client/examples/css-styling/sass-example/README.md +0 -16
- jac_client/examples/css-styling/sass-example/app.jac +0 -64
- jac_client/examples/css-styling/sass-example/package.json +0 -29
- jac_client/examples/css-styling/sass-example/styles.scss +0 -153
- jac_client/examples/css-styling/sass-example/vite.config.js +0 -27
- jac_client/examples/css-styling/styled-components/.babelrc +0 -9
- jac_client/examples/css-styling/styled-components/README.md +0 -16
- jac_client/examples/css-styling/styled-components/app.jac +0 -71
- jac_client/examples/css-styling/styled-components/package.json +0 -29
- jac_client/examples/css-styling/styled-components/styled.js +0 -90
- jac_client/examples/css-styling/styled-components/vite.config.js +0 -27
- jac_client/examples/css-styling/tailwind-example/.babelrc +0 -9
- jac_client/examples/css-styling/tailwind-example/README.md +0 -16
- jac_client/examples/css-styling/tailwind-example/app.jac +0 -63
- jac_client/examples/css-styling/tailwind-example/global.css +0 -1
- jac_client/examples/css-styling/tailwind-example/package.json +0 -30
- jac_client/examples/css-styling/tailwind-example/vite.config.js +0 -29
- jac_client/examples/full-stack-with-auth/.babelrc +0 -9
- jac_client/examples/full-stack-with-auth/README.md +0 -16
- jac_client/examples/full-stack-with-auth/app.jac +0 -722
- jac_client/examples/full-stack-with-auth/package.json +0 -28
- jac_client/examples/full-stack-with-auth/vite.config.js +0 -29
- jac_client/examples/little-x/app.jac +0 -724
- jac_client/examples/little-x/package.json +0 -23
- jac_client/examples/little-x/submit-button.jac +0 -8
- jac_client/examples/nested-folders/nested-advance/.babelrc +0 -9
- jac_client/examples/nested-folders/nested-advance/ButtonRoot.jac +0 -11
- jac_client/examples/nested-folders/nested-advance/README.md +0 -77
- jac_client/examples/nested-folders/nested-advance/app.jac +0 -35
- jac_client/examples/nested-folders/nested-advance/level1/ButtonSecondL.jac +0 -19
- jac_client/examples/nested-folders/nested-advance/level1/Card.jac +0 -43
- jac_client/examples/nested-folders/nested-advance/level1/level2/ButtonThirdL.jac +0 -25
- jac_client/examples/nested-folders/nested-advance/package.json +0 -29
- jac_client/examples/nested-folders/nested-advance/vite.config.js +0 -28
- jac_client/examples/nested-folders/nested-basic/.babelrc +0 -9
- jac_client/examples/nested-folders/nested-basic/README.md +0 -183
- jac_client/examples/nested-folders/nested-basic/app.jac +0 -13
- jac_client/examples/nested-folders/nested-basic/app.js +0 -7
- jac_client/examples/nested-folders/nested-basic/button.jac +0 -7
- jac_client/examples/nested-folders/nested-basic/components/button.jac +0 -7
- jac_client/examples/nested-folders/nested-basic/package.json +0 -28
- jac_client/examples/nested-folders/nested-basic/vite.config.js +0 -27
- jac_client/examples/with-router/.babelrc +0 -9
- jac_client/examples/with-router/README.md +0 -17
- jac_client/examples/with-router/app.jac +0 -323
- jac_client/examples/with-router/package.json +0 -28
- jac_client/examples/with-router/vite.config.js +0 -27
- jac_client/plugin/cli.py +0 -244
- jac_client/plugin/client.py +0 -152
- jac_client/plugin/client_runtime.jac +0 -234
- jac_client/plugin/vite_client_bundle.py +0 -503
- jac_client/tests/fixtures/basic-app/app.jac +0 -23
- jac_client/tests/fixtures/cl_file/app.cl.jac +0 -48
- jac_client/tests/fixtures/cl_file/app.jac +0 -15
- jac_client/tests/fixtures/client_app_with_antd/app.jac +0 -34
- jac_client/tests/fixtures/js_import/app.jac +0 -34
- jac_client/tests/fixtures/js_import/utils.js +0 -21
- jac_client/tests/fixtures/package-lock.json +0 -329
- jac_client/tests/fixtures/package.json +0 -11
- jac_client/tests/fixtures/relative_import/app.jac +0 -11
- jac_client/tests/fixtures/relative_import/button.jac +0 -7
- jac_client/tests/fixtures/spawn_test/app.jac +0 -129
- jac_client/tests/fixtures/test_fragments_spread/app.jac +0 -67
- jac_client/tests/test_asset_examples.py +0 -322
- jac_client/tests/test_cl.py +0 -530
- jac_client/tests/test_create_jac_app.py +0 -131
- jac_client/tests/test_nested_file.py +0 -374
- jac_client-0.2.2.dist-info/RECORD +0 -171
- jac_client-0.2.2.dist-info/entry_points.txt +0 -4
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "test-client",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"lockfileVersion": 3,
|
|
5
|
-
"requires": true,
|
|
6
|
-
"packages": {
|
|
7
|
-
"": {
|
|
8
|
-
"name": "test-client",
|
|
9
|
-
"version": "0.0.1",
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"react": "^18.0.0",
|
|
12
|
-
"react-dom": "^18.0.0"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"vite": "^5.0.0"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"node_modules/@esbuild/linux-x64": {
|
|
19
|
-
"version": "0.21.5",
|
|
20
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
|
|
21
|
-
"integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
|
|
22
|
-
"cpu": [
|
|
23
|
-
"x64"
|
|
24
|
-
],
|
|
25
|
-
"dev": true,
|
|
26
|
-
"license": "MIT",
|
|
27
|
-
"optional": true,
|
|
28
|
-
"os": [
|
|
29
|
-
"linux"
|
|
30
|
-
],
|
|
31
|
-
"engines": {
|
|
32
|
-
"node": ">=12"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
|
36
|
-
"version": "4.52.5",
|
|
37
|
-
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.5.tgz",
|
|
38
|
-
"integrity": "sha512-hXGLYpdhiNElzN770+H2nlx+jRog8TyynpTVzdlc6bndktjKWyZyiCsuDAlpd+j+W+WNqfcyAWz9HxxIGfZm1Q==",
|
|
39
|
-
"cpu": [
|
|
40
|
-
"x64"
|
|
41
|
-
],
|
|
42
|
-
"dev": true,
|
|
43
|
-
"license": "MIT",
|
|
44
|
-
"optional": true,
|
|
45
|
-
"os": [
|
|
46
|
-
"linux"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"node_modules/@rollup/rollup-linux-x64-musl": {
|
|
50
|
-
"version": "4.52.5",
|
|
51
|
-
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.5.tgz",
|
|
52
|
-
"integrity": "sha512-arCGIcuNKjBoKAXD+y7XomR9gY6Mw7HnFBv5Rw7wQRvwYLR7gBAgV7Mb2QTyjXfTveBNFAtPt46/36vV9STLNg==",
|
|
53
|
-
"cpu": [
|
|
54
|
-
"x64"
|
|
55
|
-
],
|
|
56
|
-
"dev": true,
|
|
57
|
-
"license": "MIT",
|
|
58
|
-
"optional": true,
|
|
59
|
-
"os": [
|
|
60
|
-
"linux"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"node_modules/@types/estree": {
|
|
64
|
-
"version": "1.0.8",
|
|
65
|
-
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
|
|
66
|
-
"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
|
|
67
|
-
"dev": true,
|
|
68
|
-
"license": "MIT"
|
|
69
|
-
},
|
|
70
|
-
"node_modules/esbuild": {
|
|
71
|
-
"version": "0.21.5",
|
|
72
|
-
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
|
|
73
|
-
"integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
|
|
74
|
-
"dev": true,
|
|
75
|
-
"hasInstallScript": true,
|
|
76
|
-
"license": "MIT",
|
|
77
|
-
"bin": {
|
|
78
|
-
"esbuild": "bin/esbuild"
|
|
79
|
-
},
|
|
80
|
-
"engines": {
|
|
81
|
-
"node": ">=12"
|
|
82
|
-
},
|
|
83
|
-
"optionalDependencies": {
|
|
84
|
-
"@esbuild/aix-ppc64": "0.21.5",
|
|
85
|
-
"@esbuild/android-arm": "0.21.5",
|
|
86
|
-
"@esbuild/android-arm64": "0.21.5",
|
|
87
|
-
"@esbuild/android-x64": "0.21.5",
|
|
88
|
-
"@esbuild/darwin-arm64": "0.21.5",
|
|
89
|
-
"@esbuild/darwin-x64": "0.21.5",
|
|
90
|
-
"@esbuild/freebsd-arm64": "0.21.5",
|
|
91
|
-
"@esbuild/freebsd-x64": "0.21.5",
|
|
92
|
-
"@esbuild/linux-arm": "0.21.5",
|
|
93
|
-
"@esbuild/linux-arm64": "0.21.5",
|
|
94
|
-
"@esbuild/linux-ia32": "0.21.5",
|
|
95
|
-
"@esbuild/linux-loong64": "0.21.5",
|
|
96
|
-
"@esbuild/linux-mips64el": "0.21.5",
|
|
97
|
-
"@esbuild/linux-ppc64": "0.21.5",
|
|
98
|
-
"@esbuild/linux-riscv64": "0.21.5",
|
|
99
|
-
"@esbuild/linux-s390x": "0.21.5",
|
|
100
|
-
"@esbuild/linux-x64": "0.21.5",
|
|
101
|
-
"@esbuild/netbsd-x64": "0.21.5",
|
|
102
|
-
"@esbuild/openbsd-x64": "0.21.5",
|
|
103
|
-
"@esbuild/sunos-x64": "0.21.5",
|
|
104
|
-
"@esbuild/win32-arm64": "0.21.5",
|
|
105
|
-
"@esbuild/win32-ia32": "0.21.5",
|
|
106
|
-
"@esbuild/win32-x64": "0.21.5"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"node_modules/js-tokens": {
|
|
110
|
-
"version": "4.0.0",
|
|
111
|
-
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
|
112
|
-
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
|
113
|
-
"license": "MIT"
|
|
114
|
-
},
|
|
115
|
-
"node_modules/loose-envify": {
|
|
116
|
-
"version": "1.4.0",
|
|
117
|
-
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
|
118
|
-
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
|
119
|
-
"license": "MIT",
|
|
120
|
-
"dependencies": {
|
|
121
|
-
"js-tokens": "^3.0.0 || ^4.0.0"
|
|
122
|
-
},
|
|
123
|
-
"bin": {
|
|
124
|
-
"loose-envify": "cli.js"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
"node_modules/nanoid": {
|
|
128
|
-
"version": "3.3.11",
|
|
129
|
-
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
|
|
130
|
-
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
|
|
131
|
-
"dev": true,
|
|
132
|
-
"funding": [
|
|
133
|
-
{
|
|
134
|
-
"type": "github",
|
|
135
|
-
"url": "https://github.com/sponsors/ai"
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
"license": "MIT",
|
|
139
|
-
"bin": {
|
|
140
|
-
"nanoid": "bin/nanoid.cjs"
|
|
141
|
-
},
|
|
142
|
-
"engines": {
|
|
143
|
-
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
"node_modules/picocolors": {
|
|
147
|
-
"version": "1.1.1",
|
|
148
|
-
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
|
149
|
-
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
|
|
150
|
-
"dev": true,
|
|
151
|
-
"license": "ISC"
|
|
152
|
-
},
|
|
153
|
-
"node_modules/postcss": {
|
|
154
|
-
"version": "8.5.6",
|
|
155
|
-
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
|
|
156
|
-
"integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
|
|
157
|
-
"dev": true,
|
|
158
|
-
"funding": [
|
|
159
|
-
{
|
|
160
|
-
"type": "opencollective",
|
|
161
|
-
"url": "https://opencollective.com/postcss/"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"type": "tidelift",
|
|
165
|
-
"url": "https://tidelift.com/funding/github/npm/postcss"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"type": "github",
|
|
169
|
-
"url": "https://github.com/sponsors/ai"
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"license": "MIT",
|
|
173
|
-
"dependencies": {
|
|
174
|
-
"nanoid": "^3.3.11",
|
|
175
|
-
"picocolors": "^1.1.1",
|
|
176
|
-
"source-map-js": "^1.2.1"
|
|
177
|
-
},
|
|
178
|
-
"engines": {
|
|
179
|
-
"node": "^10 || ^12 || >=14"
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
"node_modules/react": {
|
|
183
|
-
"version": "18.3.1",
|
|
184
|
-
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
|
|
185
|
-
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
|
|
186
|
-
"license": "MIT",
|
|
187
|
-
"dependencies": {
|
|
188
|
-
"loose-envify": "^1.1.0"
|
|
189
|
-
},
|
|
190
|
-
"engines": {
|
|
191
|
-
"node": ">=0.10.0"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"node_modules/react-dom": {
|
|
195
|
-
"version": "18.3.1",
|
|
196
|
-
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
|
|
197
|
-
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
|
|
198
|
-
"license": "MIT",
|
|
199
|
-
"dependencies": {
|
|
200
|
-
"loose-envify": "^1.1.0",
|
|
201
|
-
"scheduler": "^0.23.2"
|
|
202
|
-
},
|
|
203
|
-
"peerDependencies": {
|
|
204
|
-
"react": "^18.3.1"
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"node_modules/rollup": {
|
|
208
|
-
"version": "4.52.5",
|
|
209
|
-
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.5.tgz",
|
|
210
|
-
"integrity": "sha512-3GuObel8h7Kqdjt0gxkEzaifHTqLVW56Y/bjN7PSQtkKr0w3V/QYSdt6QWYtd7A1xUtYQigtdUfgj1RvWVtorw==",
|
|
211
|
-
"dev": true,
|
|
212
|
-
"license": "MIT",
|
|
213
|
-
"dependencies": {
|
|
214
|
-
"@types/estree": "1.0.8"
|
|
215
|
-
},
|
|
216
|
-
"bin": {
|
|
217
|
-
"rollup": "dist/bin/rollup"
|
|
218
|
-
},
|
|
219
|
-
"engines": {
|
|
220
|
-
"node": ">=18.0.0",
|
|
221
|
-
"npm": ">=8.0.0"
|
|
222
|
-
},
|
|
223
|
-
"optionalDependencies": {
|
|
224
|
-
"@rollup/rollup-android-arm-eabi": "4.52.5",
|
|
225
|
-
"@rollup/rollup-android-arm64": "4.52.5",
|
|
226
|
-
"@rollup/rollup-darwin-arm64": "4.52.5",
|
|
227
|
-
"@rollup/rollup-darwin-x64": "4.52.5",
|
|
228
|
-
"@rollup/rollup-freebsd-arm64": "4.52.5",
|
|
229
|
-
"@rollup/rollup-freebsd-x64": "4.52.5",
|
|
230
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.52.5",
|
|
231
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.52.5",
|
|
232
|
-
"@rollup/rollup-linux-arm64-gnu": "4.52.5",
|
|
233
|
-
"@rollup/rollup-linux-arm64-musl": "4.52.5",
|
|
234
|
-
"@rollup/rollup-linux-loong64-gnu": "4.52.5",
|
|
235
|
-
"@rollup/rollup-linux-ppc64-gnu": "4.52.5",
|
|
236
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.52.5",
|
|
237
|
-
"@rollup/rollup-linux-riscv64-musl": "4.52.5",
|
|
238
|
-
"@rollup/rollup-linux-s390x-gnu": "4.52.5",
|
|
239
|
-
"@rollup/rollup-linux-x64-gnu": "4.52.5",
|
|
240
|
-
"@rollup/rollup-linux-x64-musl": "4.52.5",
|
|
241
|
-
"@rollup/rollup-openharmony-arm64": "4.52.5",
|
|
242
|
-
"@rollup/rollup-win32-arm64-msvc": "4.52.5",
|
|
243
|
-
"@rollup/rollup-win32-ia32-msvc": "4.52.5",
|
|
244
|
-
"@rollup/rollup-win32-x64-gnu": "4.52.5",
|
|
245
|
-
"@rollup/rollup-win32-x64-msvc": "4.52.5",
|
|
246
|
-
"fsevents": "~2.3.2"
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
"node_modules/scheduler": {
|
|
250
|
-
"version": "0.23.2",
|
|
251
|
-
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
|
|
252
|
-
"integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
|
|
253
|
-
"license": "MIT",
|
|
254
|
-
"dependencies": {
|
|
255
|
-
"loose-envify": "^1.1.0"
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
"node_modules/source-map-js": {
|
|
259
|
-
"version": "1.2.1",
|
|
260
|
-
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
|
261
|
-
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
|
262
|
-
"dev": true,
|
|
263
|
-
"license": "BSD-3-Clause",
|
|
264
|
-
"engines": {
|
|
265
|
-
"node": ">=0.10.0"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
"node_modules/vite": {
|
|
269
|
-
"version": "5.4.21",
|
|
270
|
-
"resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
|
|
271
|
-
"integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
|
|
272
|
-
"dev": true,
|
|
273
|
-
"license": "MIT",
|
|
274
|
-
"dependencies": {
|
|
275
|
-
"esbuild": "^0.21.3",
|
|
276
|
-
"postcss": "^8.4.43",
|
|
277
|
-
"rollup": "^4.20.0"
|
|
278
|
-
},
|
|
279
|
-
"bin": {
|
|
280
|
-
"vite": "bin/vite.js"
|
|
281
|
-
},
|
|
282
|
-
"engines": {
|
|
283
|
-
"node": "^18.0.0 || >=20.0.0"
|
|
284
|
-
},
|
|
285
|
-
"funding": {
|
|
286
|
-
"url": "https://github.com/vitejs/vite?sponsor=1"
|
|
287
|
-
},
|
|
288
|
-
"optionalDependencies": {
|
|
289
|
-
"fsevents": "~2.3.3"
|
|
290
|
-
},
|
|
291
|
-
"peerDependencies": {
|
|
292
|
-
"@types/node": "^18.0.0 || >=20.0.0",
|
|
293
|
-
"less": "*",
|
|
294
|
-
"lightningcss": "^1.21.0",
|
|
295
|
-
"sass": "*",
|
|
296
|
-
"sass-embedded": "*",
|
|
297
|
-
"stylus": "*",
|
|
298
|
-
"sugarss": "*",
|
|
299
|
-
"terser": "^5.4.0"
|
|
300
|
-
},
|
|
301
|
-
"peerDependenciesMeta": {
|
|
302
|
-
"@types/node": {
|
|
303
|
-
"optional": true
|
|
304
|
-
},
|
|
305
|
-
"less": {
|
|
306
|
-
"optional": true
|
|
307
|
-
},
|
|
308
|
-
"lightningcss": {
|
|
309
|
-
"optional": true
|
|
310
|
-
},
|
|
311
|
-
"sass": {
|
|
312
|
-
"optional": true
|
|
313
|
-
},
|
|
314
|
-
"sass-embedded": {
|
|
315
|
-
"optional": true
|
|
316
|
-
},
|
|
317
|
-
"stylus": {
|
|
318
|
-
"optional": true
|
|
319
|
-
},
|
|
320
|
-
"sugarss": {
|
|
321
|
-
"optional": true
|
|
322
|
-
},
|
|
323
|
-
"terser": {
|
|
324
|
-
"optional": true
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"""Test module for spawn operator in both standard and reverse order."""
|
|
2
|
-
|
|
3
|
-
# Server-side node and walker definitions
|
|
4
|
-
node TestNode {
|
|
5
|
-
has value: int = 0;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
walker test_walker {
|
|
9
|
-
has message: str = "Hello from walker";
|
|
10
|
-
|
|
11
|
-
can execute with `root entry {
|
|
12
|
-
report {"result": self.message} ;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
walker parameterized_walker {
|
|
17
|
-
has value: int;
|
|
18
|
-
|
|
19
|
-
can execute with `root entry {
|
|
20
|
-
report {"computed": self.value * 2} ;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
walker positional_walker {
|
|
25
|
-
has label: str;
|
|
26
|
-
has count: int;
|
|
27
|
-
has metadata: dict = {};
|
|
28
|
-
|
|
29
|
-
can execute with `root entry {
|
|
30
|
-
report {"label": self.label, "count": self.count, "meta": self.metadata} ;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
# Client-side code testing both spawn orderings
|
|
35
|
-
cl import from react {
|
|
36
|
-
useState,
|
|
37
|
-
useEffect
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
cl {
|
|
41
|
-
def app() -> any {
|
|
42
|
-
let [standardResult, setStandardResult] = useState(None);
|
|
43
|
-
let [standardComputed, setStandardComputed] = useState(None);
|
|
44
|
-
let [reverseResult, setReverseResult] = useState(None);
|
|
45
|
-
let [uuidResult, setUuidResult] = useState(None);
|
|
46
|
-
let [reverseUuidResult, setReverseUuidResult] = useState(None);
|
|
47
|
-
let [positionalResult, setPositionalResult] = useState(None);
|
|
48
|
-
let [spreadResult, setSpreadResult] = useState(None);
|
|
49
|
-
|
|
50
|
-
async def loadData() -> None {
|
|
51
|
-
# Test standard spawn order: node spawn walker()
|
|
52
|
-
data1 = root spawn test_walker();
|
|
53
|
-
setStandardResult(data1);
|
|
54
|
-
|
|
55
|
-
data2 = root spawn parameterized_walker(value=42);
|
|
56
|
-
setStandardComputed(data2);
|
|
57
|
-
|
|
58
|
-
# Test reverse spawn order: walker() spawn node
|
|
59
|
-
data3 = test_walker(message="Reverse spawn!") spawn root;
|
|
60
|
-
setReverseResult(data3);
|
|
61
|
-
|
|
62
|
-
# Test spawn with UUID string: uuid_string spawn walker()
|
|
63
|
-
node_id = "550e8400-e29b-41d4-a716-446655440000";
|
|
64
|
-
data4 = node_id spawn test_walker();
|
|
65
|
-
setUuidResult(data4);
|
|
66
|
-
|
|
67
|
-
# Test reverse spawn with UUID string: walker() spawn uuid_string
|
|
68
|
-
another_node_id = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
69
|
-
data5 = parameterized_walker(value=100) spawn another_node_id;
|
|
70
|
-
setReverseUuidResult(data5);
|
|
71
|
-
|
|
72
|
-
# Test positional walker arguments inferred from has fields
|
|
73
|
-
data6 = node_id spawn positional_walker("Node positional", 2);
|
|
74
|
-
setPositionalResult(data6);
|
|
75
|
-
|
|
76
|
-
# Test **kwargs via spread when walker is on left-hand side
|
|
77
|
-
extra_fields = {"metadata": {"source": "client-side"}};
|
|
78
|
-
data7 = positional_walker("Spread order", 5, **extra_fields) spawn root;
|
|
79
|
-
setSpreadResult(data7);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
useEffect(lambda -> None{ loadData();} , []);
|
|
83
|
-
|
|
84
|
-
return <div>
|
|
85
|
-
<h1>
|
|
86
|
-
Spawn Operator Test
|
|
87
|
-
</h1>
|
|
88
|
-
<h2>
|
|
89
|
-
Standard Order (node spawn walker)
|
|
90
|
-
</h2>
|
|
91
|
-
<div>
|
|
92
|
-
Result: {JSON.stringify(standardResult)}
|
|
93
|
-
</div>
|
|
94
|
-
<div>
|
|
95
|
-
Computed: {JSON.stringify(standardComputed)}
|
|
96
|
-
</div>
|
|
97
|
-
<h2>
|
|
98
|
-
Reverse Order (walker spawn node)
|
|
99
|
-
</h2>
|
|
100
|
-
<div>
|
|
101
|
-
Result: {JSON.stringify(reverseResult)}
|
|
102
|
-
</div>
|
|
103
|
-
<h2>
|
|
104
|
-
UUID Spawn (uuid spawn walker)
|
|
105
|
-
</h2>
|
|
106
|
-
<div>
|
|
107
|
-
Result: {JSON.stringify(uuidResult)}
|
|
108
|
-
</div>
|
|
109
|
-
<h2>
|
|
110
|
-
Reverse UUID Spawn (walker spawn uuid)
|
|
111
|
-
</h2>
|
|
112
|
-
<div>
|
|
113
|
-
Result: {JSON.stringify(reverseUuidResult)}
|
|
114
|
-
</div>
|
|
115
|
-
<h2>
|
|
116
|
-
Positional Walker Arguments
|
|
117
|
-
</h2>
|
|
118
|
-
<div>
|
|
119
|
-
Result: {JSON.stringify(positionalResult)}
|
|
120
|
-
</div>
|
|
121
|
-
<h2>
|
|
122
|
-
Spread Walker Arguments
|
|
123
|
-
</h2>
|
|
124
|
-
<div>
|
|
125
|
-
Result: {JSON.stringify(spreadResult)}
|
|
126
|
-
</div>
|
|
127
|
-
</div>;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"""Test fixture for JSX fragments and spread props functionality."""
|
|
2
|
-
|
|
3
|
-
cl def FragmentTest() {
|
|
4
|
-
# Test that fragments work
|
|
5
|
-
return <>
|
|
6
|
-
<h1>
|
|
7
|
-
{"Fragment Title"}
|
|
8
|
-
</h1>
|
|
9
|
-
<p>
|
|
10
|
-
{"Fragment content"}
|
|
11
|
-
</p>
|
|
12
|
-
</>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
cl def SpreadPropsTest() {
|
|
16
|
-
# Test spread props
|
|
17
|
-
unwrapped = {"id": "my-div", "class": "container", "data-role": "main"};
|
|
18
|
-
|
|
19
|
-
return <div
|
|
20
|
-
{...unwrapped}
|
|
21
|
-
>
|
|
22
|
-
<span>
|
|
23
|
-
{"Spread props work!"}
|
|
24
|
-
</span>
|
|
25
|
-
</div>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
cl def MixedTest() {
|
|
29
|
-
# Test mixing spread props with regular props
|
|
30
|
-
baseStyle = {"id": "base-id", "color": "blue"};
|
|
31
|
-
|
|
32
|
-
return <>
|
|
33
|
-
<div
|
|
34
|
-
{...baseStyle}
|
|
35
|
-
class="override"
|
|
36
|
-
>
|
|
37
|
-
{"Mixed test"}
|
|
38
|
-
</div>
|
|
39
|
-
<div class="normal">
|
|
40
|
-
{"No spread"}
|
|
41
|
-
</div>
|
|
42
|
-
</>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
cl def NestedFragments() {
|
|
46
|
-
return <div class="wrapper">
|
|
47
|
-
<>
|
|
48
|
-
<h2>
|
|
49
|
-
{"Nested Fragment 1"}
|
|
50
|
-
</h2>
|
|
51
|
-
</>
|
|
52
|
-
<>
|
|
53
|
-
<p>
|
|
54
|
-
{"Nested Fragment 2"}
|
|
55
|
-
</p>
|
|
56
|
-
</>
|
|
57
|
-
</div>;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
cl def app() {
|
|
61
|
-
return <div>
|
|
62
|
-
<FragmentTest />
|
|
63
|
-
<SpreadPropsTest />
|
|
64
|
-
<MixedTest />
|
|
65
|
-
<NestedFragments />
|
|
66
|
-
</div>;
|
|
67
|
-
}
|