@storybook/react-native-ui 8.6.2 → 8.6.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native-ui",
3
- "version": "8.6.2",
3
+ "version": "8.6.4",
4
4
  "description": "ui components for react native storybook",
5
5
  "keywords": [
6
6
  "react",
@@ -49,19 +49,20 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/jest": "^29.4.3",
52
- "@types/react": "~18.3.12",
52
+ "@types/react": "~19.0.10",
53
53
  "babel-jest": "^29.7.0",
54
54
  "jest": "^29.7.0",
55
55
  "react-test-renderer": "^18.3.1",
56
56
  "ts-dedent": "^2.2.0",
57
57
  "tsup": "^7.2.0",
58
- "typescript": "^5.3.3"
58
+ "typescript": "~5.8.3"
59
59
  },
60
60
  "dependencies": {
61
61
  "@storybook/core": "^8.6.6",
62
62
  "@storybook/react": "^8.6.6",
63
- "@storybook/react-native-theming": "^8.6.2",
63
+ "@storybook/react-native-theming": "^8.6.4",
64
64
  "fuse.js": "^7.0.0",
65
+ "lodash": "^4.17.21",
65
66
  "memoizerific": "^1.11.3",
66
67
  "polished": "^4.3.1",
67
68
  "store2": "^2.14.3"
@@ -81,5 +82,5 @@
81
82
  "publishConfig": {
82
83
  "access": "public"
83
84
  },
84
- "gitHead": "eec6bdfc1fa3aa6536080009cb769cfa7785da1a"
85
+ "gitHead": "5e2acbea333d49887912046195384d371dfe153a"
85
86
  }
@@ -44,16 +44,8 @@ export const useExpanded = ({
44
44
  }: ExpandedProps): [ExpandedState, Dispatch<ExpandAction>] => {
45
45
  // Track the set of currently expanded nodes within this tree.
46
46
  // Root nodes are expanded by default.
47
- const [expanded, setExpanded] = useReducer<
48
- Reducer<ExpandedState, ExpandAction>,
49
- {
50
- refId: string;
51
- data: StoriesHash;
52
- rootIds: string[];
53
- initialExpanded: ExpandedState;
54
- }
55
- >(
56
- (state, { ids, value }) =>
47
+ const [expanded, setExpanded] = useReducer(
48
+ (state: ExpandedState, { ids, value }:ExpandAction) =>
57
49
  ids.reduce((acc, id) => Object.assign(acc, { [id]: value }), { ...state }),
58
50
  { refId, data, rootIds, initialExpanded },
59
51
  initializeExpanded