@storybook/react-native-ui 9.0.0-alpha.8 → 9.0.0-beta.10
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 +3 -5
- package/dist/index.js +227 -226
- package/package.json +8 -8
- package/src/Layout.tsx +1 -4
- package/src/MobileAddonsPanel.tsx +3 -2
- package/src/Refs.tsx +59 -59
- package/src/Search.tsx +3 -4
- package/src/SelectedNodeProvider.tsx +2 -1
- package/src/Sidebar.stories.tsx +4 -40
- package/src/Sidebar.tsx +1 -7
- package/src/Tree.tsx +2 -3
- package/src/TreeNode.tsx +1 -2
- package/src/hooks/useExpanded.ts +3 -11
- package/src/util/StoryHash.ts +41 -36
- package/src/util/tree.ts +14 -12
- package/src/util/useStyle.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { View, PressableProps, TouchableOpacityProps } from 'react-native';
|
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { FC, ComponentProps, ReactElement, PropsWithChildren, ReactNode } from 'react';
|
|
6
6
|
import { State, StoriesHash, API } from 'storybook/internal/manager-api';
|
|
7
|
-
import { StatusesByStoryIdAndTypeId, StatusValue, API_LoadedRefData,
|
|
7
|
+
import { StatusesByStoryIdAndTypeId, StatusValue, API_LoadedRefData, API_IndexHash, StoryContext, Args, API_PreparedStoryIndex, StoryIndexV2, StoryIndexV3, API_Provider, DocsOptions } from 'storybook/internal/types';
|
|
8
8
|
import * as Fuse from 'fuse.js';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
10
|
import { SvgProps } from 'react-native-svg';
|
|
@@ -32,7 +32,7 @@ declare const GroupNode: FC<ComponentProps<typeof BranchNode> & {
|
|
|
32
32
|
isExpandable?: boolean;
|
|
33
33
|
}>;
|
|
34
34
|
declare const ComponentNode: FC<ComponentProps<typeof BranchNode>>;
|
|
35
|
-
declare const StoryNode: React__default.
|
|
35
|
+
declare const StoryNode: React__default.NamedExoticComponent<Omit<react_native.TouchableOpacityProps & React__default.RefAttributes<View> & {
|
|
36
36
|
theme?: _storybook_react_native_theming.Theme;
|
|
37
37
|
as?: React__default.ElementType;
|
|
38
38
|
} & {
|
|
@@ -40,7 +40,7 @@ declare const StoryNode: React__default.MemoExoticComponent<React__default.Forwa
|
|
|
40
40
|
selected?: boolean;
|
|
41
41
|
} & {
|
|
42
42
|
ref?: React__default.Ref<any>;
|
|
43
|
-
}, "ref"> & React__default.RefAttributes<View
|
|
43
|
+
}, "ref"> & React__default.RefAttributes<View>>;
|
|
44
44
|
|
|
45
45
|
type Refs = State['refs'];
|
|
46
46
|
type RefType = Refs[keyof Refs] & {
|
|
@@ -193,8 +193,6 @@ declare const useCombination: (index: SidebarProps["index"], indexError: Sidebar
|
|
|
193
193
|
interface SidebarProps extends API_LoadedRefData {
|
|
194
194
|
refs: State['refs'];
|
|
195
195
|
status: State['status'];
|
|
196
|
-
extra: Addon_SidebarTopType[];
|
|
197
|
-
bottom?: Addon_SidebarBottomType[];
|
|
198
196
|
storyId?: string;
|
|
199
197
|
refId?: string;
|
|
200
198
|
menuHighlighted?: boolean;
|