@storybook/react-native-ui 8.6.0 → 9.0.0-alpha.0
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.d.ts +2 -2
- package/dist/index.js +22831 -3776
- package/package.json +4 -5
- package/src/Layout.tsx +3 -3
- package/src/MobileAddonsPanel.tsx +2 -2
- package/src/Refs.tsx +1 -1
- package/src/Sidebar.stories.tsx +3 -3
- package/src/Sidebar.tsx +2 -2
- package/src/Tree.stories.tsx +1 -1
- package/src/Tree.tsx +1 -1
- package/src/hooks/useExpanded.ts +1 -1
- package/src/mockdata.ts +1 -1
- package/src/types.ts +2 -2
- package/src/util/StoryHash.ts +3 -3
- package/src/util/status.tsx +1 -1
- package/src/util/tree.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-alpha.0",
|
|
4
4
|
"description": "ui components for react native storybook",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -58,9 +58,8 @@
|
|
|
58
58
|
"typescript": "^5.3.3"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@storybook/
|
|
62
|
-
"@storybook/react": "
|
|
63
|
-
"@storybook/react-native-theming": "^8.6.0",
|
|
61
|
+
"@storybook/react": "9.0.0-alpha.3",
|
|
62
|
+
"@storybook/react-native-theming": "^9.0.0-alpha.0",
|
|
64
63
|
"fuse.js": "^7.0.0",
|
|
65
64
|
"memoizerific": "^1.11.3",
|
|
66
65
|
"polished": "^4.3.1",
|
|
@@ -81,5 +80,5 @@
|
|
|
81
80
|
"publishConfig": {
|
|
82
81
|
"access": "public"
|
|
83
82
|
},
|
|
84
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "6ca21ab6b467c73887d17a383fdd464da37865d6"
|
|
85
84
|
}
|
package/src/Layout.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SET_CURRENT_STORY } from '
|
|
2
|
-
import { addons } from '
|
|
3
|
-
import { type API_IndexHash, type Args, type StoryContext } from '
|
|
1
|
+
import { SET_CURRENT_STORY } from 'storybook/internal/core-events';
|
|
2
|
+
import { addons } from 'storybook/internal/manager-api';
|
|
3
|
+
import { type API_IndexHash, type Args, type StoryContext } from 'storybook/internal/types';
|
|
4
4
|
import type { ReactRenderer } from '@storybook/react';
|
|
5
5
|
import { styled, useTheme } from '@storybook/react-native-theming';
|
|
6
6
|
import { ReactNode, useRef, useState, useCallback } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BottomSheetModal } from '@gorhom/bottom-sheet';
|
|
2
|
-
import { addons } from '
|
|
2
|
+
import { addons } from 'storybook/internal/manager-api';
|
|
3
3
|
import { styled } from '@storybook/react-native-theming';
|
|
4
|
-
import { Addon_TypesEnum } from '
|
|
4
|
+
import { Addon_TypesEnum } from 'storybook/internal/types';
|
|
5
5
|
import { forwardRef, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
6
6
|
import { Platform, StyleProp, Text, View, ViewStyle, useWindowDimensions } from 'react-native';
|
|
7
7
|
import { ScrollView } from 'react-native-gesture-handler';
|
package/src/Refs.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useMemo, useCallback, useEffect, useState } from 'react';
|
|
3
|
-
import type { State } from '
|
|
3
|
+
import type { State } from 'storybook/internal/manager-api';
|
|
4
4
|
import { styled } from '@storybook/react-native-theming';
|
|
5
5
|
import { Tree } from './Tree';
|
|
6
6
|
import type { RefType } from './types';
|
package/src/Sidebar.stories.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IndexHash, State } from '
|
|
3
|
-
import { types } from '
|
|
2
|
+
import type { IndexHash, State } from 'storybook/internal/manager-api';
|
|
3
|
+
import { types } from 'storybook/internal/manager-api';
|
|
4
4
|
import type { StoryObj, Meta } from '@storybook/react';
|
|
5
|
-
import type { Addon_SidebarTopType } from '
|
|
5
|
+
import type { Addon_SidebarTopType } from 'storybook/internal/types';
|
|
6
6
|
import { Sidebar } from './Sidebar';
|
|
7
7
|
import { mockDataset } from './mockdata';
|
|
8
8
|
import type { RefType } from './types';
|
package/src/Sidebar.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { styled } from '@storybook/react-native-theming';
|
|
3
|
-
import type { State } from '
|
|
3
|
+
import type { State } from 'storybook/internal/manager-api';
|
|
4
4
|
import type {
|
|
5
5
|
Addon_SidebarBottomType,
|
|
6
6
|
Addon_SidebarTopType,
|
|
7
7
|
API_LoadedRefData,
|
|
8
|
-
} from '
|
|
8
|
+
} from 'storybook/internal/types';
|
|
9
9
|
import { Explorer } from './Explorer';
|
|
10
10
|
import { Search } from './Search';
|
|
11
11
|
import { SearchResults } from './SearchResults';
|
package/src/Tree.stories.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import type { ComponentEntry, IndexHash } from '
|
|
2
|
+
import type { ComponentEntry, IndexHash } from 'storybook/internal/manager-api';
|
|
3
3
|
import type { StoryObj, Meta } from '@storybook/react';
|
|
4
4
|
import { Tree } from './Tree';
|
|
5
5
|
import { index } from './mockdata.large';
|
package/src/Tree.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
State,
|
|
5
5
|
StoriesHash,
|
|
6
6
|
StoryEntry,
|
|
7
|
-
} from '
|
|
7
|
+
} from 'storybook/internal/manager-api';
|
|
8
8
|
import { styled } from '@storybook/react-native-theming';
|
|
9
9
|
import React, { useCallback, useMemo, useRef } from 'react';
|
|
10
10
|
import { View } from 'react-native';
|
package/src/hooks/useExpanded.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StoriesHash } from '
|
|
1
|
+
import type { StoriesHash } from 'storybook/internal/manager-api';
|
|
2
2
|
import type { Dispatch, Reducer } from 'react';
|
|
3
3
|
import { useCallback, useEffect, useReducer } from 'react';
|
|
4
4
|
import { getAncestorIds } from '../util/tree';
|
package/src/mockdata.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StoriesHash, State } from '
|
|
2
|
-
import type { API_StatusState, API_StatusValue } from '
|
|
1
|
+
import type { StoriesHash, State } from 'storybook/internal/manager-api';
|
|
2
|
+
import type { API_StatusState, API_StatusValue } from 'storybook/internal/types';
|
|
3
3
|
import * as Fuse from 'fuse.js';
|
|
4
4
|
import { PressableProps } from 'react-native';
|
|
5
5
|
|
package/src/util/StoryHash.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sanitize } from '@storybook/csf';
|
|
2
|
-
import { type API, type State } from '
|
|
2
|
+
import { type API, type State } from 'storybook/internal/manager-api';
|
|
3
3
|
import type {
|
|
4
4
|
API_ComponentEntry,
|
|
5
5
|
API_DocsEntry,
|
|
@@ -14,7 +14,7 @@ import type {
|
|
|
14
14
|
IndexEntry,
|
|
15
15
|
StoryIndexV2,
|
|
16
16
|
StoryIndexV3,
|
|
17
|
-
} from '
|
|
17
|
+
} from 'storybook/internal/types';
|
|
18
18
|
import countBy from 'lodash/countBy.js';
|
|
19
19
|
import { dedent } from 'ts-dedent';
|
|
20
20
|
type ToStoriesHashOptions = {
|
|
@@ -27,7 +27,7 @@ type ToStoriesHashOptions = {
|
|
|
27
27
|
import isEqual from 'lodash/isEqual.js';
|
|
28
28
|
import mergeWith from 'lodash/mergeWith.js';
|
|
29
29
|
|
|
30
|
-
import { logger } from '
|
|
30
|
+
import { logger } from 'storybook/internal/client-logger';
|
|
31
31
|
|
|
32
32
|
const merge = <TObj = any>(a: TObj, b: Partial<TObj>) =>
|
|
33
33
|
mergeWith({}, a, b, (objValue: TObj, srcValue: Partial<TObj>) => {
|
package/src/util/status.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo, type ReactElement } from 'react';
|
|
2
|
-
import type { API_HashEntry, API_StatusState, API_StatusValue } from '
|
|
2
|
+
import type { API_HashEntry, API_StatusState, API_StatusValue } from 'storybook/internal/types';
|
|
3
3
|
|
|
4
4
|
import { useTheme } from '@storybook/react-native-theming';
|
|
5
5
|
|
package/src/util/tree.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import memoize from 'memoizerific';
|
|
2
2
|
import type { SyntheticEvent } from 'react';
|
|
3
|
-
import type { IndexHash } from '
|
|
3
|
+
import type { IndexHash } from 'storybook/internal/manager-api';
|
|
4
4
|
|
|
5
5
|
import { DEFAULT_REF_ID } from '../constants';
|
|
6
6
|
import type { Item, RefType, Dataset, SearchItem } from '../types';
|