@storybook/react-native 7.0.0-alpha.0 → 7.0.0-alpha.1
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 -10
- package/dist/index.js +65 -5468
- package/package.json +5 -3
- package/scripts/loader.js +6 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Theme } from '@storybook/react-native-theming';
|
|
3
3
|
export { Theme, darkTheme, theme } from '@storybook/react-native-theming';
|
|
4
|
-
import {
|
|
4
|
+
import { ClientApi } from '@storybook/preview-api';
|
|
5
5
|
import { ReactElement, ComponentType, JSXElementConstructor, ComponentProps, ReactNode } from 'react';
|
|
6
6
|
import { Renderer as Renderer$1, Args as Args$1, ComponentAnnotations, AnnotatedStoryFn, StoryAnnotations } from '@storybook/csf';
|
|
7
7
|
|
|
8
8
|
declare global {
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
10
9
|
interface SymbolConstructor {
|
|
11
10
|
readonly observable: symbol;
|
|
12
11
|
}
|
|
@@ -270,25 +269,19 @@ type Params = {
|
|
|
270
269
|
theme: DeepPartial<Theme>;
|
|
271
270
|
};
|
|
272
271
|
|
|
273
|
-
declare global {
|
|
274
|
-
interface SymbolConstructor {
|
|
275
|
-
readonly observable: symbol;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
272
|
declare const configure: (loadable: any, m: {
|
|
280
273
|
hot?: {
|
|
281
274
|
accept?: () => void;
|
|
282
275
|
};
|
|
283
276
|
}) => void;
|
|
284
277
|
|
|
285
|
-
type C =
|
|
278
|
+
type C = ClientApi<ReactNativeFramework>;
|
|
286
279
|
declare const addDecorator: C['addDecorator'];
|
|
287
280
|
declare const addParameters: C['addParameters'];
|
|
288
281
|
declare const addArgsEnhancer: C['addArgsEnhancer'];
|
|
289
282
|
declare const addArgTypesEnhancer: C['addArgTypesEnhancer'];
|
|
290
283
|
declare const raw: C['raw'];
|
|
291
|
-
declare const storiesOf: (kind: string,
|
|
284
|
+
declare const storiesOf: (kind: string, m: any) => Addon_StoryApi<ReactNode>;
|
|
292
285
|
declare const getStorybookUI: (params?: Partial<Params>) => () => react_jsx_runtime.JSX.Element;
|
|
293
286
|
|
|
294
287
|
export { ArgTypes, Args, ComponentMeta, ComponentStory, ComponentStoryFn, ComponentStoryObj, Meta, Parameters, ReactNativeFramework, Story, StoryContext, StoryFn, StoryFnReactReturnType, StoryObj, addArgTypesEnhancer, addArgsEnhancer, addDecorator, addParameters, configure, getStorybookUI, raw, storiesOf };
|