@balena/ui-shared-components 15.2.11-build-secureboot-only-for-non-esr-5c7916306951e79b0a3900c92ab939d96c37587b-1 → 15.2.12-build-secureboot-ensure-esr-supports-c03fa05b72d12a9a9ccb8ec9cc07ecd00cde23b2-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
|
-
|
|
57
|
-
|
|
58
|
-
semver.gte(model.version, GENERIC_X86_MINIMUM_SUPPORTED_SECUREBOOT_VERSION));
|
|
59
|
-
}, [model.deviceType.slug, model.version,
|
|
56
|
+
var _a;
|
|
57
|
+
return (model.deviceType.slug === GENERIC_X86_SLUG &&
|
|
58
|
+
semver.gte((_a = model.basedOnVersion) !== null && _a !== void 0 ? _a : model.version, GENERIC_X86_MINIMUM_SUPPORTED_SECUREBOOT_VERSION));
|
|
59
|
+
}, [model.deviceType.slug, model.version, model.basedOnVersion]);
|
|
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,6 +99,7 @@ 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;
|
|
102
103
|
onChange(newState);
|
|
103
104
|
setVersion(ver);
|
|
104
105
|
}, [versionSelectionOpts, variant, onChange, handleVariantChange]);
|
|
@@ -9,12 +9,14 @@ export type VersionSelectionOptions = {
|
|
|
9
9
|
} & ({
|
|
10
10
|
hasPrebuiltVariants: false;
|
|
11
11
|
rawVersion: string;
|
|
12
|
+
basedOnVersion?: string;
|
|
12
13
|
} | {
|
|
13
14
|
hasPrebuiltVariants: true;
|
|
14
15
|
rawVersions: {
|
|
15
16
|
dev?: string;
|
|
16
17
|
prod?: string;
|
|
17
18
|
};
|
|
19
|
+
basedOnVersion?: string;
|
|
18
20
|
});
|
|
19
21
|
export declare const transformVersions: (versions: OsVersion[]) => VersionSelectionOptions[];
|
|
20
22
|
export declare const getPreferredVersionOpts: (versionOpts: VersionSelectionOptions[]) => VersionSelectionOptions[];
|
|
@@ -11,12 +11,14 @@ export const transformVersions = (versions) => {
|
|
|
11
11
|
? {
|
|
12
12
|
hasPrebuiltVariants: false,
|
|
13
13
|
rawVersion: version.raw_version,
|
|
14
|
+
basedOnVersion: version.basedOnVersion,
|
|
14
15
|
}
|
|
15
16
|
: {
|
|
16
17
|
hasPrebuiltVariants: true,
|
|
17
18
|
rawVersions: Object.assign(Object.assign({}, (existingSelectionOpt != null &&
|
|
18
19
|
'rawVersions' in existingSelectionOpt &&
|
|
19
20
|
existingSelectionOpt.rawVersions)), { [version.variant]: version.raw_version }),
|
|
21
|
+
basedOnVersion: version.basedOnVersion,
|
|
20
22
|
}));
|
|
21
23
|
});
|
|
22
24
|
return Object.values(optsByVersion);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/ui-shared-components",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.12-build-secureboot-ensure-esr-supports-c03fa05b72d12a9a9ccb8ec9cc07ecd00cde23b2-1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
},
|
|
136
136
|
"homepage": "https://github.com/balena-io/ui-shared-components#readme",
|
|
137
137
|
"versionist": {
|
|
138
|
-
"publishedAt": "2025-12-
|
|
138
|
+
"publishedAt": "2025-12-08T19:01:16.584Z"
|
|
139
139
|
},
|
|
140
140
|
"overrides": {
|
|
141
141
|
"storybook": "$storybook",
|