@balena/ui-shared-components 15.2.12-build-secureboot-ensure-esr-supports-c03fa05b72d12a9a9ccb8ec9cc07ecd00cde23b2-1 → 15.2.12-build-renovate-npm-storybook-vulnerability-5ad2ac0ff70811ea0461826283039a47e6ea3c99-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;
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]);
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]);
@@ -10,7 +10,6 @@ export interface DownloadImageFormModel {
10
10
  releaseId: number | undefined;
11
11
  deviceType: DeviceType;
12
12
  version: string;
13
- basedOnVersion?: string;
14
13
  network: 'ethernet' | 'wifi';
15
14
  secureboot: boolean;
16
15
  developmentMode?: boolean;
@@ -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-secureboot-ensure-esr-supports-c03fa05b72d12a9a9ccb8ec9cc07ecd00cde23b2-1",
3
+ "version": "15.2.12-build-renovate-npm-storybook-vulnerability-5ad2ac0ff70811ea0461826283039a47e6ea3c99-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-08T19:01:16.584Z"
138
+ "publishedAt": "2025-12-18T19:12:46.272Z"
139
139
  },
140
140
  "overrides": {
141
141
  "storybook": "$storybook",