slint-ui 1.15.0-nightly.2025111716 → 1.15.0-nightly.2025111821
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/Cargo.toml +4 -4
- package/package.json +18 -10
- package/rust/interpreter/component_compiler.rs +2 -2
- package/vitest.config.ts +17 -0
package/Cargo.toml
CHANGED
|
@@ -42,10 +42,10 @@ accessibility = ["slint-interpreter/accessibility"]
|
|
|
42
42
|
[dependencies]
|
|
43
43
|
napi = { version = "2.14.0", default-features = false, features = ["napi8"] }
|
|
44
44
|
napi-derive = "2.14.0"
|
|
45
|
-
i-slint-compiler = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "
|
|
46
|
-
i-slint-core = { features = ["default", "gettext-rs"] , git = "https://github.com/slint-ui/slint", rev = "
|
|
47
|
-
i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "
|
|
48
|
-
slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] , git = "https://github.com/slint-ui/slint", rev = "
|
|
45
|
+
i-slint-compiler = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "7e690eb1fc6175bb8555bc609b96fd18335a5bab", version = "=1.15.0", default-features = false }
|
|
46
|
+
i-slint-core = { features = ["default", "gettext-rs"] , git = "https://github.com/slint-ui/slint", rev = "7e690eb1fc6175bb8555bc609b96fd18335a5bab", version = "=1.15.0", default-features = false }
|
|
47
|
+
i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "7e690eb1fc6175bb8555bc609b96fd18335a5bab", version = "=1.15.0", default-features = false }
|
|
48
|
+
slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] , git = "https://github.com/slint-ui/slint", rev = "7e690eb1fc6175bb8555bc609b96fd18335a5bab", version = "=1.15.0"}
|
|
49
49
|
spin_on = { version = "0.1" }
|
|
50
50
|
css-color-parser2 = { version = "1.0.1" }
|
|
51
51
|
itertools = { version = "0.14" }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slint-ui",
|
|
3
|
-
"version": "1.15.0-nightly.
|
|
3
|
+
"version": "1.15.0-nightly.2025111821",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"homepage": "https://github.com/slint-ui/slint",
|
|
@@ -21,14 +21,15 @@
|
|
|
21
21
|
"description": "Slint is a declarative GUI toolkit to build native user interfaces for desktop and embedded applications.",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@ava/typescript": "6.0.0",
|
|
24
|
-
"@biomejs/biome": "2.3.
|
|
24
|
+
"@biomejs/biome": "2.3.6",
|
|
25
25
|
"@types/capture-console": "1.0.5",
|
|
26
26
|
"@types/node": "20.16.10",
|
|
27
27
|
"ava": "6.4.1",
|
|
28
28
|
"capture-console": "1.0.2",
|
|
29
29
|
"jimp": "1.6.0",
|
|
30
30
|
"typedoc": "0.28.14",
|
|
31
|
-
"typescript": "5.9.3"
|
|
31
|
+
"typescript": "5.9.3",
|
|
32
|
+
"vitest": "4.0.10"
|
|
32
33
|
},
|
|
33
34
|
"engines": {
|
|
34
35
|
"node": ">= 10"
|
|
@@ -44,17 +45,24 @@
|
|
|
44
45
|
]
|
|
45
46
|
},
|
|
46
47
|
"timeout": "2m",
|
|
47
|
-
"workerThreads": false
|
|
48
|
+
"workerThreads": false,
|
|
49
|
+
"files": [
|
|
50
|
+
"**/*.spec.mts",
|
|
51
|
+
"!**/window.spec.mts",
|
|
52
|
+
"!**/types.spec.mts",
|
|
53
|
+
"!**/models.spec.mts",
|
|
54
|
+
"!**/globals.spec.mts"
|
|
55
|
+
]
|
|
48
56
|
},
|
|
49
57
|
"dependencies": {
|
|
50
58
|
"@napi-rs/cli": "2.18.4"
|
|
51
59
|
},
|
|
52
60
|
"optionalDependencies": {
|
|
53
|
-
"@slint-ui/slint-ui-binary-linux-x64-gnu": "1.15.0-nightly.
|
|
54
|
-
"@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.15.0-nightly.
|
|
55
|
-
"@slint-ui/slint-ui-binary-darwin-arm64": "1.15.0-nightly.
|
|
56
|
-
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.15.0-nightly.
|
|
57
|
-
"@slint-ui/slint-ui-binary-win32-arm64-msvc": "1.15.0-nightly.
|
|
61
|
+
"@slint-ui/slint-ui-binary-linux-x64-gnu": "1.15.0-nightly.2025111821",
|
|
62
|
+
"@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.15.0-nightly.2025111821",
|
|
63
|
+
"@slint-ui/slint-ui-binary-darwin-arm64": "1.15.0-nightly.2025111821",
|
|
64
|
+
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.15.0-nightly.2025111821",
|
|
65
|
+
"@slint-ui/slint-ui-binary-win32-arm64-msvc": "1.15.0-nightly.2025111821"
|
|
58
66
|
},
|
|
59
67
|
"scripts": {
|
|
60
68
|
"artifacts": "napi artifacts",
|
|
@@ -70,6 +78,6 @@
|
|
|
70
78
|
"format:fix": "biome format --write",
|
|
71
79
|
"lint": "biome lint",
|
|
72
80
|
"lint:fix": "biome lint --fix",
|
|
73
|
-
"test": "tsc --build __test__/tsconfig.json && ava"
|
|
81
|
+
"test": "tsc --build __test__/tsconfig.json && ava && vitest run"
|
|
74
82
|
}
|
|
75
83
|
}
|
|
@@ -114,8 +114,8 @@ impl JsComponentCompiler {
|
|
|
114
114
|
pub fn structs(&self, env: Env) -> HashMap<String, JsUnknown> {
|
|
115
115
|
fn convert_type(env: &Env, ty: &Type) -> Option<(String, JsUnknown)> {
|
|
116
116
|
match ty {
|
|
117
|
-
Type::Struct(s) if s.
|
|
118
|
-
let name = s.name.
|
|
117
|
+
Type::Struct(s) if s.node().is_some() => {
|
|
118
|
+
let name = s.name.slint_name().unwrap();
|
|
119
119
|
let struct_instance = to_js_unknown(
|
|
120
120
|
env,
|
|
121
121
|
&Value::Struct(slint_interpreter::Struct::from_iter(s.fields.iter().map(
|
package/vitest.config.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
2
|
+
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
3
|
+
|
|
4
|
+
import { defineConfig } from "vitest/config";
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
test: {
|
|
8
|
+
include: [
|
|
9
|
+
"**/window.spec.mts",
|
|
10
|
+
"**/types.spec.mts",
|
|
11
|
+
"**/models.spec.mts",
|
|
12
|
+
"**/globals.spec.mts",
|
|
13
|
+
],
|
|
14
|
+
globals: true, // Enable global test/expect/describe
|
|
15
|
+
isolate: true, // Use separate processes for isolation (matching ava's workerThreads: false)
|
|
16
|
+
},
|
|
17
|
+
});
|