@balena/ui-shared-components 15.3.1-build-renovate-major-7-react-router-dom-4a2d76cecacb8929bc7778fbd6353e66e210ca86-1 → 15.3.1-build-secureboot-ensure-esr-supports-3d03d62fbc8ad68169af2ab7339986800301267f-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
- 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]);
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]);
@@ -10,6 +10,7 @@ export interface DownloadImageFormModel {
10
10
  releaseId: number | undefined;
11
11
  deviceType: DeviceType;
12
12
  version: string;
13
+ basedOnVersion?: string;
13
14
  network: 'ethernet' | 'wifi';
14
15
  secureboot: boolean;
15
16
  developmentMode?: boolean;
@@ -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.3.1-build-renovate-major-7-react-router-dom-4a2d76cecacb8929bc7778fbd6353e66e210ca86-1",
3
+ "version": "15.3.1-build-secureboot-ensure-esr-supports-3d03d62fbc8ad68169af2ab7339986800301267f-1",
4
4
  "main": "./dist/index.js",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -49,7 +49,7 @@
49
49
  "react-helmet": "^6.1.0",
50
50
  "react-is": "^18.2.0",
51
51
  "react-markdown": "^10.0.0",
52
- "react-router-dom": "^7.0.0",
52
+ "react-router-dom": "^6.28.0",
53
53
  "remark-breaks": "^4.0.0",
54
54
  "remark-gfm": "^4.0.0",
55
55
  "rimraf": "^6.0.0",
@@ -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-19T09:03:10.970Z"
140
+ "publishedAt": "2025-12-23T15:11:30.249Z"
141
141
  },
142
142
  "overrides": {
143
143
  "storybook": "$storybook",