@openfairygui/cli 0.6.1 → 0.6.2
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/dist/cli.mjs +5 -3
- package/package.json +4 -4
package/dist/cli.mjs
CHANGED
|
@@ -910,7 +910,7 @@ var ExtensibleProperty = class extends Property {
|
|
|
910
910
|
};
|
|
911
911
|
//#endregion
|
|
912
912
|
//#region ../core/src/constants.ts
|
|
913
|
-
const VERSION = `v0.6.
|
|
913
|
+
const VERSION = `v0.6.2`;
|
|
914
914
|
/** Binary package file magic number: "FGUI" as uint32. */
|
|
915
915
|
const FGUI_MAGIC = 1179080009;
|
|
916
916
|
/** Null string index in the binary string table. */
|
|
@@ -10604,6 +10604,7 @@ function validateDisplayNode(node, controllerMap, knownChildIds, knownGroupIds,
|
|
|
10604
10604
|
if (node.pivotAsAnchor !== void 0) {
|
|
10605
10605
|
if (typeof node.pivotAsAnchor !== "boolean") pushIssue(issues, `${path}.pivotAsAnchor`, "Display node pivotAsAnchor must be boolean.");
|
|
10606
10606
|
}
|
|
10607
|
+
if (node.kind === "component" && node.fileName !== void 0 && typeof node.fileName !== "string") pushIssue(issues, `${path}.fileName`, "Component file name hint must be a string.");
|
|
10607
10608
|
if (node.kind === "component" && node.controllerOverrides !== void 0 && typeof node.controllerOverrides !== "string") pushIssue(issues, `${path}.controllerOverrides`, "Component controller overrides must be a string of controller name/page ID pairs.");
|
|
10608
10609
|
if (node.kind === "component" && node.propertyOverrides !== void 0 && (!Array.isArray(node.propertyOverrides) || !node.propertyOverrides.every(isValidUamComponentPropertyOverride))) pushIssue(issues, `${path}.propertyOverrides`, "Component property overrides must contain a non-empty target, a non-negative integer propertyId, and a string value.");
|
|
10609
10610
|
if (node.kind === "list" || node.kind === "tree") {
|
|
@@ -17835,6 +17836,7 @@ function liftDisplayNode(child) {
|
|
|
17835
17836
|
resourceId: component.getSrc()
|
|
17836
17837
|
},
|
|
17837
17838
|
...component.getControllerOverrides() ? { controllerOverrides: component.getControllerOverrides() } : {},
|
|
17839
|
+
...component.getFileName() ? { fileName: component.getFileName() } : {},
|
|
17838
17840
|
...propertyOverrides.length > 0 ? { propertyOverrides } : {},
|
|
17839
17841
|
...instanceProperties ? { instanceProperties } : {}
|
|
17840
17842
|
};
|
|
@@ -21981,7 +21983,7 @@ function normalizeGearLookSegment(segment, fixedAlpha) {
|
|
|
21981
21983
|
function normalizeGearColorSegment(segment, compactOutline) {
|
|
21982
21984
|
if (!segment || segment === "-") return segment;
|
|
21983
21985
|
const parts = segment.split(",");
|
|
21984
|
-
if (parts.length === 1) return formatXmlColor(parts[0] ?? "");
|
|
21986
|
+
if (parts.length === 1 || parts.length === 2 && parts[1] === "") return formatXmlColor(parts[0] ?? "");
|
|
21985
21987
|
const normalized = parts.map((part) => formatXmlColor(part));
|
|
21986
21988
|
if (compactOutline && normalized.length >= 2 && isDefaultBlackColor(normalized[1])) return normalized[0] ?? "";
|
|
21987
21989
|
return normalized.join(",");
|
|
@@ -33299,7 +33301,7 @@ function registerValidateCommand(program) {
|
|
|
33299
33301
|
//#region src/utils/package-version.ts
|
|
33300
33302
|
const require$1 = createRequire(import.meta.url);
|
|
33301
33303
|
function getInjectedPackageVersion() {
|
|
33302
|
-
const version = "0.6.
|
|
33304
|
+
const version = "0.6.2";
|
|
33303
33305
|
return typeof version === "string" && true ? version : null;
|
|
33304
33306
|
}
|
|
33305
33307
|
function readPackageVersion() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfairygui/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "FairyGUI Headless Authoring SDK — command-line interface.",
|
|
5
5
|
"author": "OpenFairyGUI Contributors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"restore"
|
|
37
37
|
],
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@openfairygui/core": "0.6.
|
|
40
|
-
"@openfairygui/functions": "0.6.
|
|
39
|
+
"@openfairygui/core": "0.6.2",
|
|
40
|
+
"@openfairygui/functions": "0.6.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"commander": "^14.0.2",
|
|
44
44
|
"jiti": "^2.7.0",
|
|
45
|
-
"@openfairygui/backend": "0.6.
|
|
45
|
+
"@openfairygui/backend": "0.6.2"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
48
|
"sharp": ">=0.33.0"
|