slint-ui 1.12.0-nightly.2025052015 → 1.12.0-nightly.2025052118
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/dist/index.js +8 -3
- package/package.json +6 -6
- package/typescript/index.ts +10 -3
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 = "7afd5dfc4ab30cd36426e622cbde9a4c8bf776e7", version = "=1.12.0", default-features = false }
|
|
46
|
+
i-slint-core = { features = ["default", "gettext-rs"] , git = "https://github.com/slint-ui/slint", rev = "7afd5dfc4ab30cd36426e622cbde9a4c8bf776e7", version = "=1.12.0", default-features = false }
|
|
47
|
+
i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "7afd5dfc4ab30cd36426e622cbde9a4c8bf776e7", version = "=1.12.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 = "7afd5dfc4ab30cd36426e622cbde9a4c8bf776e7", version = "=1.12.0"}
|
|
49
49
|
spin_on = { version = "0.1" }
|
|
50
50
|
css-color-parser2 = { version = "1.0.1" }
|
|
51
51
|
itertools = { version = "0.14" }
|
package/dist/index.js
CHANGED
|
@@ -212,8 +212,13 @@ function loadSlint(loadData) {
|
|
|
212
212
|
});
|
|
213
213
|
// globals
|
|
214
214
|
instance.definition().globals.forEach((globalName) => {
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
const jsName = translateName(globalName);
|
|
216
|
+
if (componentHandle[jsName] !== undefined) {
|
|
217
|
+
console.warn("Duplicated property name " +
|
|
218
|
+
globalName +
|
|
219
|
+
" (In JS: " +
|
|
220
|
+
jsName +
|
|
221
|
+
")");
|
|
217
222
|
}
|
|
218
223
|
else {
|
|
219
224
|
const globalObject = Object.create({});
|
|
@@ -287,7 +292,7 @@ function loadSlint(loadData) {
|
|
|
287
292
|
});
|
|
288
293
|
}
|
|
289
294
|
});
|
|
290
|
-
Object.defineProperty(componentHandle,
|
|
295
|
+
Object.defineProperty(componentHandle, jsName, {
|
|
291
296
|
get() {
|
|
292
297
|
return globalObject;
|
|
293
298
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slint-ui",
|
|
3
|
-
"version": "1.12.0-nightly.
|
|
3
|
+
"version": "1.12.0-nightly.2025052118",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"homepage": "https://github.com/slint-ui/slint",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"@napi-rs/cli": "2.18.4"
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|
|
69
|
-
"@slint-ui/slint-ui-binary-linux-x64-gnu": "1.12.0-nightly.
|
|
70
|
-
"@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.12.0-nightly.
|
|
71
|
-
"@slint-ui/slint-ui-binary-darwin-x64": "1.12.0-nightly.
|
|
72
|
-
"@slint-ui/slint-ui-binary-darwin-arm64": "1.12.0-nightly.
|
|
73
|
-
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.12.0-nightly.
|
|
69
|
+
"@slint-ui/slint-ui-binary-linux-x64-gnu": "1.12.0-nightly.2025052118",
|
|
70
|
+
"@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.12.0-nightly.2025052118",
|
|
71
|
+
"@slint-ui/slint-ui-binary-darwin-x64": "1.12.0-nightly.2025052118",
|
|
72
|
+
"@slint-ui/slint-ui-binary-darwin-arm64": "1.12.0-nightly.2025052118",
|
|
73
|
+
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.12.0-nightly.2025052118"
|
|
74
74
|
}
|
|
75
75
|
}
|
package/typescript/index.ts
CHANGED
|
@@ -461,8 +461,15 @@ function loadSlint(loadData: LoadData): Object {
|
|
|
461
461
|
|
|
462
462
|
// globals
|
|
463
463
|
instance!.definition().globals.forEach((globalName) => {
|
|
464
|
-
|
|
465
|
-
|
|
464
|
+
const jsName = translateName(globalName);
|
|
465
|
+
if (componentHandle[jsName] !== undefined) {
|
|
466
|
+
console.warn(
|
|
467
|
+
"Duplicated property name " +
|
|
468
|
+
globalName +
|
|
469
|
+
" (In JS: " +
|
|
470
|
+
jsName +
|
|
471
|
+
")",
|
|
472
|
+
);
|
|
466
473
|
} else {
|
|
467
474
|
const globalObject = Object.create({});
|
|
468
475
|
|
|
@@ -576,7 +583,7 @@ function loadSlint(loadData: LoadData): Object {
|
|
|
576
583
|
}
|
|
577
584
|
});
|
|
578
585
|
|
|
579
|
-
Object.defineProperty(componentHandle,
|
|
586
|
+
Object.defineProperty(componentHandle, jsName, {
|
|
580
587
|
get() {
|
|
581
588
|
return globalObject;
|
|
582
589
|
},
|