@balena/ui-shared-components 15.2.12-build-secureboot-ensure-esr-supports-c03fa05b72d12a9a9ccb8ec9cc07ecd00cde23b2-1 → 15.2.12-build-renovate-major-7-react-router-dom-6c9d51ee6ce9a9a62c21e29a05364feb43b7f719-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(
|
|
59
|
-
}, [model.deviceType.slug, model.version,
|
|
56
|
+
return (osType === 'default' &&
|
|
57
|
+
model.deviceType.slug === GENERIC_X86_SLUG &&
|
|
58
|
+
semver.gte(model.version, GENERIC_X86_MINIMUM_SUPPORTED_SECUREBOOT_VERSION));
|
|
59
|
+
}, [model.deviceType.slug, model.version, osType]);
|
|
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.2.12-build-
|
|
3
|
+
"version": "15.2.12-build-renovate-major-7-react-router-dom-6c9d51ee6ce9a9a62c21e29a05364feb43b7f719-1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"react-helmet": "^6.1.0",
|
|
48
48
|
"react-is": "^18.2.0",
|
|
49
49
|
"react-markdown": "^10.0.0",
|
|
50
|
-
"react-router-dom": "^
|
|
50
|
+
"react-router-dom": "^7.0.0",
|
|
51
51
|
"remark-breaks": "^4.0.0",
|
|
52
52
|
"remark-gfm": "^4.0.0",
|
|
53
53
|
"rimraf": "^6.0.0",
|
|
@@ -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-08T19:
|
|
138
|
+
"publishedAt": "2025-12-08T19:06:17.983Z"
|
|
139
139
|
},
|
|
140
140
|
"overrides": {
|
|
141
141
|
"storybook": "$storybook",
|