@balena/ui-shared-components 12.4.1-build-renovate-virtua-9c6a70eb84c15a8803cddb9464855d49ad4d16ea-1 → 12.4.1-build-upgrade-storybook-9-c49b942dae3e332e46bbccd907d73200483b15c1-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.
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
- import * as uuid from 'uuid';
4
3
  import find from 'lodash/find';
5
4
  import startsWith from 'lodash/startsWith';
6
5
  import isEmpty from 'lodash/isEmpty';
@@ -9,6 +8,7 @@ import { Callout } from '../Callout';
9
8
  import { useTranslation } from '../../hooks/useTranslations';
10
9
  import { stopKeyDownEvent, withPreventDefault, } from '../../utils/eventHandling';
11
10
  import { SimpleConfirmationDialog, } from '../SimpleConfirmationDialog';
11
+ import { useRandomUUID } from '../../hooks/useRandomUUID';
12
12
  const RESERVED_NAMESPACES = ['io.resin.', 'io.balena.'];
13
13
  const newTagValidationRules = (t, key, existingTags) => {
14
14
  return [
@@ -42,7 +42,8 @@ export const AddTagForm = ({ itemType, existingTags, overridableTags = [], addTa
42
42
  const [confirmationDialogOptions, setConfirmationDialogOptions] = React.useState();
43
43
  const tagKeyInput = React.useRef(null);
44
44
  const valueInput = React.useRef(null);
45
- const formUuid = `add-tag-form-${uuid.v1()}`;
45
+ const formId = useRandomUUID();
46
+ const formUuid = `add-tag-form-${formId}`;
46
47
  const checkNewTagValidity = (key) => {
47
48
  const failedRule = newTagValidationRules(t, key, existingTags).find((rule) => rule.test());
48
49
  const hasErrors = !!failedRule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/ui-shared-components",
3
- "version": "12.4.1-build-renovate-virtua-9c6a70eb84c15a8803cddb9464855d49ad4d16ea-1",
3
+ "version": "12.4.1-build-upgrade-storybook-9-c49b942dae3e332e46bbccd907d73200483b15c1-1",
4
4
  "main": "./dist/index.js",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -50,22 +50,16 @@
50
50
  "rimraf": "^6.0.0",
51
51
  "ts-jest": "^29.2.5",
52
52
  "typescript": "^5.8.2",
53
- "virtua": "^0.41.0",
53
+ "virtua": "^0.37.3",
54
54
  "zxcvbn": "^4.4.2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@balena/lint": "^9.3.0",
58
- "@storybook/addon-essentials": "^8.6.12",
59
- "@storybook/addon-interactions": "^8.6.12",
60
- "@storybook/addon-links": "^8.6.12",
61
- "@storybook/addon-onboarding": "^8.6.12",
58
+ "@storybook/addon-docs": "^9.0.0",
59
+ "@storybook/addon-links": "^9.0.0",
60
+ "@storybook/addon-onboarding": "^9.0.0",
62
61
  "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
63
- "@storybook/blocks": "^8.6.12",
64
- "@storybook/manager-api": "^8.6.12",
65
- "@storybook/react": "^8.6.12",
66
- "@storybook/react-webpack5": "^8.6.12",
67
- "@storybook/test": "^8.6.12",
68
- "@storybook/theming": "^8.6.12",
62
+ "@storybook/react-webpack5": "^9.0.0",
69
63
  "@types/color": "^4.2.0",
70
64
  "@types/color-hash": "^2.0.0",
71
65
  "@types/lodash": "^4.17.14",
@@ -75,11 +69,11 @@
75
69
  "@types/react-dom": "^18.0.11",
76
70
  "@types/react-helmet": "^6.1.6",
77
71
  "@types/zxcvbn": "^4.4.4",
78
- "eslint-plugin-storybook": "^0.12.0",
72
+ "eslint-plugin-storybook": "^9.0.0",
79
73
  "husky": "^9.0.0",
80
74
  "lint-staged": "^15.0.0",
81
75
  "prop-types": "^15.8.1",
82
- "storybook": "^8.6.12",
76
+ "storybook": "^9.0.0",
83
77
  "ts-loader": "^9.5.1",
84
78
  "webpack": "^5.88.2"
85
79
  },
@@ -138,6 +132,9 @@
138
132
  },
139
133
  "homepage": "https://github.com/balena-io/ui-shared-components#readme",
140
134
  "versionist": {
141
- "publishedAt": "2025-05-22T16:02:33.753Z"
135
+ "publishedAt": "2025-05-29T12:23:30.460Z"
136
+ },
137
+ "overrides": {
138
+ "storybook": "$storybook"
142
139
  }
143
140
  }