slint-ui 1.11.0-nightly.2025042121 → 1.11.0-nightly.2025042301
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 +3 -2
- package/package.json +6 -6
- package/typescript/index.ts +5 -2
package/Cargo.toml
CHANGED
|
@@ -41,10 +41,10 @@ accessibility = ["slint-interpreter/accessibility"]
|
|
|
41
41
|
[dependencies]
|
|
42
42
|
napi = { version = "2.14.0", default-features = false, features = ["napi8"] }
|
|
43
43
|
napi-derive = "2.14.0"
|
|
44
|
-
i-slint-compiler = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "
|
|
45
|
-
i-slint-core = { features = ["default", "gettext-rs"] , git = "https://github.com/slint-ui/slint", rev = "
|
|
46
|
-
i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "
|
|
47
|
-
slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] , git = "https://github.com/slint-ui/slint", rev = "
|
|
44
|
+
i-slint-compiler = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "e7fb9a324cc3e00581cd8083d21707003f5e3658", version = "=1.11.0", default-features = false }
|
|
45
|
+
i-slint-core = { features = ["default", "gettext-rs"] , git = "https://github.com/slint-ui/slint", rev = "e7fb9a324cc3e00581cd8083d21707003f5e3658", version = "=1.11.0", default-features = false }
|
|
46
|
+
i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "e7fb9a324cc3e00581cd8083d21707003f5e3658", version = "=1.11.0", default-features = false }
|
|
47
|
+
slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] , git = "https://github.com/slint-ui/slint", rev = "e7fb9a324cc3e00581cd8083d21707003f5e3658", version = "=1.11.0"}
|
|
48
48
|
spin_on = { version = "0.1" }
|
|
49
49
|
css-color-parser2 = { version = "1.0.1" }
|
|
50
50
|
itertools = { version = "0.14" }
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ const models_1 = require("./models");
|
|
|
14
14
|
Object.defineProperty(exports, "Model", { enumerable: true, get: function () { return models_1.Model; } });
|
|
15
15
|
var models_2 = require("./models");
|
|
16
16
|
Object.defineProperty(exports, "ArrayModel", { enumerable: true, get: function () { return models_2.ArrayModel; } });
|
|
17
|
+
const node_url_1 = require("node:url");
|
|
17
18
|
/**
|
|
18
19
|
* @hidden
|
|
19
20
|
*/
|
|
@@ -333,7 +334,7 @@ function loadSlint(loadData) {
|
|
|
333
334
|
* @throws {@link CompileError} if errors occur during compilation.
|
|
334
335
|
*/
|
|
335
336
|
function loadFile(filePath, options) {
|
|
336
|
-
const pathname = filePath instanceof URL ? filePath
|
|
337
|
+
const pathname = filePath instanceof URL ? (0, node_url_1.fileURLToPath)(filePath) : filePath;
|
|
337
338
|
return loadSlint({
|
|
338
339
|
fileData: { filePath: pathname, options },
|
|
339
340
|
from: "file",
|
|
@@ -622,7 +623,7 @@ var private_api;
|
|
|
622
623
|
* ````
|
|
623
624
|
*/
|
|
624
625
|
function initTranslations(domain, path) {
|
|
625
|
-
const pathname = path instanceof URL ? path
|
|
626
|
+
const pathname = path instanceof URL ? (0, node_url_1.fileURLToPath)(path) : path;
|
|
626
627
|
napi.initTranslations(domain, pathname);
|
|
627
628
|
}
|
|
628
629
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slint-ui",
|
|
3
|
-
"version": "1.11.0-nightly.
|
|
3
|
+
"version": "1.11.0-nightly.2025042301",
|
|
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.11.0-nightly.
|
|
70
|
-
"@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.11.0-nightly.
|
|
71
|
-
"@slint-ui/slint-ui-binary-darwin-x64": "1.11.0-nightly.
|
|
72
|
-
"@slint-ui/slint-ui-binary-darwin-arm64": "1.11.0-nightly.
|
|
73
|
-
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.11.0-nightly.
|
|
69
|
+
"@slint-ui/slint-ui-binary-linux-x64-gnu": "1.11.0-nightly.2025042301",
|
|
70
|
+
"@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.11.0-nightly.2025042301",
|
|
71
|
+
"@slint-ui/slint-ui-binary-darwin-x64": "1.11.0-nightly.2025042301",
|
|
72
|
+
"@slint-ui/slint-ui-binary-darwin-arm64": "1.11.0-nightly.2025042301",
|
|
73
|
+
"@slint-ui/slint-ui-binary-win32-x64-msvc": "1.11.0-nightly.2025042301"
|
|
74
74
|
}
|
|
75
75
|
}
|
package/typescript/index.ts
CHANGED
|
@@ -16,6 +16,8 @@ export { ArrayModel } from "./models";
|
|
|
16
16
|
|
|
17
17
|
import { Diagnostic } from "../rust-module.cjs";
|
|
18
18
|
|
|
19
|
+
import { fileURLToPath } from "node:url";
|
|
20
|
+
|
|
19
21
|
/**
|
|
20
22
|
* Represents a two-dimensional point.
|
|
21
23
|
*/
|
|
@@ -626,7 +628,8 @@ export function loadFile(
|
|
|
626
628
|
filePath: string | URL,
|
|
627
629
|
options?: LoadFileOptions,
|
|
628
630
|
): Object {
|
|
629
|
-
const pathname =
|
|
631
|
+
const pathname =
|
|
632
|
+
filePath instanceof URL ? fileURLToPath(filePath) : filePath;
|
|
630
633
|
return loadSlint({
|
|
631
634
|
fileData: { filePath: pathname, options },
|
|
632
635
|
from: "file",
|
|
@@ -948,7 +951,7 @@ export namespace private_api {
|
|
|
948
951
|
* ````
|
|
949
952
|
*/
|
|
950
953
|
export function initTranslations(domain: string, path: string | URL) {
|
|
951
|
-
const pathname = path instanceof URL ? path
|
|
954
|
+
const pathname = path instanceof URL ? fileURLToPath(path) : path;
|
|
952
955
|
napi.initTranslations(domain, pathname);
|
|
953
956
|
}
|
|
954
957
|
|