@storybook/react-native-ui-common 10.3.1 → 10.3.2

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/dist/index.js CHANGED
@@ -261,7 +261,9 @@ var useStorage = () => (0, import_react4.useContext)(StorageContext);
261
261
  var import_csf = require("storybook/internal/csf");
262
262
  var import_ts_dedent = require("ts-dedent");
263
263
  var import_client_logger = require("storybook/internal/client-logger");
264
- var import_es_toolkit = require("es-toolkit");
264
+ var import_array = require("es-toolkit/array");
265
+ var import_object = require("es-toolkit/object");
266
+ var import_predicate = require("es-toolkit/predicate");
265
267
  var intersect = (a, b) => {
266
268
  if (!Array.isArray(a) || !Array.isArray(b) || !a.length || !b.length) {
267
269
  return [];
@@ -275,13 +277,13 @@ var intersect = (a, b) => {
275
277
  };
276
278
  var merge = (a, ...b) => {
277
279
  let target = {};
278
- target = (0, import_es_toolkit.mergeWith)(
280
+ target = (0, import_object.mergeWith)(
279
281
  {},
280
282
  a,
281
283
  (objValue, srcValue) => {
282
284
  if (Array.isArray(srcValue) && Array.isArray(objValue)) {
283
285
  srcValue.forEach((s) => {
284
- const existing = objValue.find((o) => o === s || (0, import_es_toolkit.isEqual)(o, s));
286
+ const existing = objValue.find((o) => o === s || (0, import_predicate.isEqual)(o, s));
285
287
  if (!existing) {
286
288
  objValue.push(s);
287
289
  }
@@ -295,10 +297,10 @@ var merge = (a, ...b) => {
295
297
  }
296
298
  );
297
299
  for (const obj of b) {
298
- target = (0, import_es_toolkit.mergeWith)(target, obj, (objValue, srcValue) => {
300
+ target = (0, import_object.mergeWith)(target, obj, (objValue, srcValue) => {
299
301
  if (Array.isArray(srcValue) && Array.isArray(objValue)) {
300
302
  srcValue.forEach((s) => {
301
- const existing = objValue.find((o) => o === s || (0, import_es_toolkit.isEqual)(o, s));
303
+ const existing = objValue.find((o) => o === s || (0, import_predicate.isEqual)(o, s));
302
304
  if (!existing) {
303
305
  objValue.push(s);
304
306
  }
@@ -315,7 +317,7 @@ var merge = (a, ...b) => {
315
317
  };
316
318
  var noArrayMerge = (a, ...b) => {
317
319
  let target = {};
318
- target = (0, import_es_toolkit.mergeWith)(
320
+ target = (0, import_object.mergeWith)(
319
321
  {},
320
322
  a,
321
323
  (objValue, srcValue) => {
@@ -325,7 +327,7 @@ var noArrayMerge = (a, ...b) => {
325
327
  }
326
328
  );
327
329
  for (const obj of b) {
328
- target = (0, import_es_toolkit.mergeWith)(target, obj, (objValue, srcValue) => {
330
+ target = (0, import_object.mergeWith)(target, obj, (objValue, srcValue) => {
329
331
  if (Array.isArray(srcValue)) {
330
332
  return srcValue;
331
333
  }
@@ -474,7 +476,7 @@ var transformStoryIndexV2toV3 = (index) => {
474
476
  };
475
477
  };
476
478
  var transformStoryIndexV3toV4 = (index) => {
477
- const countByTitle = (0, import_es_toolkit.countBy)(Object.values(index.stories), (item) => item.title);
479
+ const countByTitle = (0, import_array.countBy)(Object.values(index.stories), (item) => item.title);
478
480
  return {
479
481
  v: 4,
480
482
  entries: Object.values(index.stories).reduce(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native-ui-common",
3
- "version": "10.3.1",
3
+ "version": "10.3.2",
4
4
  "description": "common ui components for react native storybook",
5
5
  "keywords": [
6
6
  "react",
@@ -16,10 +16,10 @@
16
16
  "url": "https://github.com/storybookjs/react-native.git",
17
17
  "directory": "packages/react-native-ui-common"
18
18
  },
19
- "react-native": "src/index.tsx",
19
+ "license": "MIT",
20
20
  "main": "dist/index.js",
21
+ "react-native": "src/index.tsx",
21
22
  "types": "dist/index.d.ts",
22
- "license": "MIT",
23
23
  "files": [
24
24
  "dist/**/*",
25
25
  "README.md",
@@ -27,20 +27,20 @@
27
27
  "*.d.ts",
28
28
  "src/**/*"
29
29
  ],
30
- "devDependencies": {
31
- "@types/react": "~19.2.14",
32
- "storybook": "^10.3.1",
33
- "tsup": "^8.5.0",
34
- "typescript": "~5.9.3"
35
- },
36
30
  "dependencies": {
37
31
  "@nozbe/microfuzz": "^1.0.0",
38
- "@storybook/react": "^10.3.1",
39
- "@storybook/react-native-theming": "^10.3.1",
32
+ "@storybook/react": "^10.3.2",
33
+ "@storybook/react-native-theming": "^10.3.2",
40
34
  "es-toolkit": "^1.45.1",
41
35
  "memoizerific": "^1.11.3",
42
36
  "ts-dedent": "^2.2.0"
43
37
  },
38
+ "devDependencies": {
39
+ "@types/react": "~19.2.14",
40
+ "storybook": "^10.3.2",
41
+ "tsup": "^8.5.0",
42
+ "typescript": "~5.9.3"
43
+ },
44
44
  "peerDependencies": {
45
45
  "react": "*",
46
46
  "react-native": ">=0.57.0",
@@ -53,7 +53,7 @@
53
53
  "access": "public"
54
54
  },
55
55
  "scripts": {
56
- "dev": "tsup --watch",
57
- "check:types": "tsc --noEmit"
56
+ "check:types": "tsc --noEmit",
57
+ "dev": "tsup --watch"
58
58
  }
59
59
  }
@@ -19,7 +19,9 @@ import type {
19
19
  } from 'storybook/internal/types';
20
20
  import { dedent } from 'ts-dedent';
21
21
  import { logger } from 'storybook/internal/client-logger';
22
- import { countBy, isEqual, mergeWith } from 'es-toolkit';
22
+ import { countBy } from 'es-toolkit/array';
23
+ import { mergeWith } from 'es-toolkit/object';
24
+ import { isEqual } from 'es-toolkit/predicate';
23
25
 
24
26
  type ToStoriesHashOptions = {
25
27
  provider: API_Provider<API>;