@balena/ui-shared-components 15.4.1-build-secureboot-ensure-esr-supports-b02d3201222458e9441c052f36df1656d2675323-1 → 15.4.1-build-secureboot-ensure-esr-supports-5db87ab5f253f42b01518c94f565c45895eccb6f-1
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.
|
@@ -53,10 +53,10 @@ export const ImageForm = memo(function ImageForm({ compatibleDeviceTypes, osVers
|
|
|
53
53
|
const versionSelectionOpts = useMemo(() => (showAllVersions ? selectionOpts : preferredSelectionOpts), [preferredSelectionOpts, selectionOpts, showAllVersions]);
|
|
54
54
|
const showAllVersionsToggle = useMemo(() => preferredSelectionOpts.length < selectionOpts.length, [preferredSelectionOpts.length, selectionOpts.length]);
|
|
55
55
|
const supportsSecureBoot = useMemo(() => {
|
|
56
|
-
var _a;
|
|
56
|
+
var _a, _b;
|
|
57
57
|
return (model.deviceType.slug === GENERIC_X86_SLUG &&
|
|
58
|
-
semver.gte((_a = model.basedOnVersion) !== null &&
|
|
59
|
-
}, [model.deviceType.slug, model.version,
|
|
58
|
+
semver.gte((_b = (_a = osVersions[model.deviceType.slug].find((v) => v.raw_version === model.version)) === null || _a === void 0 ? void 0 : _a.basedOnVersion) !== null && _b !== void 0 ? _b : model.version, GENERIC_X86_MINIMUM_SUPPORTED_SECUREBOOT_VERSION));
|
|
59
|
+
}, [model.deviceType.slug, model.version, osVersions]);
|
|
60
60
|
const secureBootDontShowAgainKey = `${model.deviceType.slug}_secureboot_warning_do_not_show_again`;
|
|
61
61
|
const dismissSecureBootWarning = useCallback((accepted, dontShowAgain) => {
|
|
62
62
|
var _a;
|
|
@@ -99,7 +99,6 @@ export const ImageForm = memo(function ImageForm({ compatibleDeviceTypes, osVers
|
|
|
99
99
|
else {
|
|
100
100
|
newState.version = ver === null || ver === void 0 ? void 0 : ver.rawVersion;
|
|
101
101
|
}
|
|
102
|
-
newState.basedOnVersion = ver.basedOnVersion;
|
|
103
102
|
onChange(newState);
|
|
104
103
|
setVersion(ver);
|
|
105
104
|
}, [versionSelectionOpts, variant, onChange, handleVariantChange]);
|
|
@@ -9,14 +9,12 @@ export type VersionSelectionOptions = {
|
|
|
9
9
|
} & ({
|
|
10
10
|
hasPrebuiltVariants: false;
|
|
11
11
|
rawVersion: string;
|
|
12
|
-
basedOnVersion?: string;
|
|
13
12
|
} | {
|
|
14
13
|
hasPrebuiltVariants: true;
|
|
15
14
|
rawVersions: {
|
|
16
15
|
dev?: string;
|
|
17
16
|
prod?: string;
|
|
18
17
|
};
|
|
19
|
-
basedOnVersion?: string;
|
|
20
18
|
});
|
|
21
19
|
export declare const transformVersions: (versions: OsVersion[]) => VersionSelectionOptions[];
|
|
22
20
|
export declare const getPreferredVersionOpts: (versionOpts: VersionSelectionOptions[]) => VersionSelectionOptions[];
|
|
@@ -11,14 +11,12 @@ export const transformVersions = (versions) => {
|
|
|
11
11
|
? {
|
|
12
12
|
hasPrebuiltVariants: false,
|
|
13
13
|
rawVersion: version.raw_version,
|
|
14
|
-
basedOnVersion: version.basedOnVersion,
|
|
15
14
|
}
|
|
16
15
|
: {
|
|
17
16
|
hasPrebuiltVariants: true,
|
|
18
17
|
rawVersions: Object.assign(Object.assign({}, (existingSelectionOpt != null &&
|
|
19
18
|
'rawVersions' in existingSelectionOpt &&
|
|
20
19
|
existingSelectionOpt.rawVersions)), { [version.variant]: version.raw_version }),
|
|
21
|
-
basedOnVersion: version.basedOnVersion,
|
|
22
20
|
}));
|
|
23
21
|
});
|
|
24
22
|
return Object.values(optsByVersion);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/ui-shared-components",
|
|
3
|
-
"version": "15.4.1-build-secureboot-ensure-esr-supports-
|
|
3
|
+
"version": "15.4.1-build-secureboot-ensure-esr-supports-5db87ab5f253f42b01518c94f565c45895eccb6f-1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
},
|
|
138
138
|
"homepage": "https://github.com/balena-io/ui-shared-components#readme",
|
|
139
139
|
"versionist": {
|
|
140
|
-
"publishedAt": "2025-12-23T16:
|
|
140
|
+
"publishedAt": "2025-12-23T16:26:26.644Z"
|
|
141
141
|
},
|
|
142
142
|
"overrides": {
|
|
143
143
|
"storybook": "$storybook",
|