@storybook/react-native-ui-common 10.4.7 → 10.4.8-canary-20260711115827
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 -19
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { ReactRenderer } from "@storybook/react";
|
|
|
5
5
|
import { Theme } from "@storybook/react-native-theming";
|
|
6
6
|
import { API, IndexHash, State, StoriesHash } from "storybook/manager-api";
|
|
7
7
|
import { API_IndexHash, API_PreparedStoryIndex, API_Provider, DocsOptions, StatusValue, StatusesByStoryIdAndTypeId, StoryIndexV2, StoryIndexV3 } from "storybook/internal/types";
|
|
8
|
-
|
|
9
8
|
//#region src/Button.d.ts
|
|
10
9
|
interface ButtonProps extends TouchableOpacityProps {
|
|
11
10
|
asChild?: boolean;
|
|
@@ -30,11 +29,7 @@ declare const ButtonText: import("@storybook/react-native-theming").StyledCompon
|
|
|
30
29
|
}, {}, {
|
|
31
30
|
ref?: import("react").Ref<import("react-native").Text>;
|
|
32
31
|
}>;
|
|
33
|
-
declare const ButtonIcon: ({
|
|
34
|
-
Icon,
|
|
35
|
-
active,
|
|
36
|
-
variant
|
|
37
|
-
}: {
|
|
32
|
+
declare const ButtonIcon: ({ Icon, active, variant }: {
|
|
38
33
|
Icon: (props: {
|
|
39
34
|
color: string;
|
|
40
35
|
}) => ReactElement;
|
|
@@ -141,12 +136,7 @@ type ToStoriesHashOptions = {
|
|
|
141
136
|
declare const intersect: <T>(a: T[], b: T[]) => T[];
|
|
142
137
|
declare const merge: <TObj = any>(a: TObj, ...b: Partial<TObj>[]) => TObj;
|
|
143
138
|
declare const noArrayMerge: <TObj = any>(a: TObj, ...b: Partial<TObj>[]) => TObj;
|
|
144
|
-
declare const transformStoryIndexToStoriesHash: (input: API_PreparedStoryIndex | StoryIndexV2 | StoryIndexV3, {
|
|
145
|
-
provider,
|
|
146
|
-
docsOptions,
|
|
147
|
-
filters,
|
|
148
|
-
allStatuses
|
|
149
|
-
}: ToStoriesHashOptions) => API_IndexHash | any;
|
|
139
|
+
declare const transformStoryIndexToStoriesHash: (input: API_PreparedStoryIndex | StoryIndexV2 | StoryIndexV3, { provider, docsOptions, filters, allStatuses }: ToStoriesHashOptions) => API_IndexHash | any;
|
|
150
140
|
declare const transformStoryIndexV2toV3: (index: StoryIndexV2) => StoryIndexV3;
|
|
151
141
|
declare const transformStoryIndexV3toV4: (index: StoryIndexV3) => API_PreparedStoryIndex;
|
|
152
142
|
declare const transformStoryIndexV4toV5: (index: API_PreparedStoryIndex) => API_PreparedStoryIndex;
|
|
@@ -206,13 +196,7 @@ interface ExpandedProps {
|
|
|
206
196
|
selectedStoryId: string | null;
|
|
207
197
|
onSelectStoryId: (storyId: string) => void;
|
|
208
198
|
}
|
|
209
|
-
declare const useExpanded: ({
|
|
210
|
-
refId,
|
|
211
|
-
data,
|
|
212
|
-
initialExpanded,
|
|
213
|
-
rootIds,
|
|
214
|
-
selectedStoryId
|
|
215
|
-
}: ExpandedProps) => [ExpandedState, Dispatch<ExpandAction>];
|
|
199
|
+
declare const useExpanded: ({ refId, data, initialExpanded, rootIds, selectedStoryId }: ExpandedProps) => [ExpandedState, Dispatch<ExpandAction>];
|
|
216
200
|
//#endregion
|
|
217
201
|
//#region src/hooks/useLastViewed.d.ts
|
|
218
202
|
declare const useLastViewed: (selection: Selection) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native-ui-common",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.8-canary-20260711115827",
|
|
4
4
|
"description": "common ui components for react native storybook",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -29,16 +29,17 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@nozbe/microfuzz": "^1.0.0",
|
|
32
|
-
"@storybook/react": "^10.
|
|
33
|
-
"@storybook/react-native-theming": "
|
|
34
|
-
"es-toolkit": "^1.
|
|
32
|
+
"@storybook/react": "^10.5.0",
|
|
33
|
+
"@storybook/react-native-theming": "10.4.8-canary-20260711115827",
|
|
34
|
+
"es-toolkit": "^1.49.0",
|
|
35
35
|
"memoizerific": "^1.11.3",
|
|
36
36
|
"ts-dedent": "^2.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/react": "~19.2.14",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
40
|
+
"react-native": "0.86.0",
|
|
41
|
+
"storybook": "^10.5.0",
|
|
42
|
+
"tsdown": "^0.22.4",
|
|
42
43
|
"typescript": "~6.0.3"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|