@storybook/react-native 7.6.12 → 8.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.
@@ -1,66 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { StoryContext } from '@storybook/csf';
3
- import { PreviewWithSelection } from '@storybook/preview-web';
4
- import { ReactRenderer } from '@storybook/react';
5
- import { Theme } from '@storybook/react-native-theming';
6
- import { a as StoryIndex, P as PreparedStory } from './index.d-da6c1de4.js';
7
- import { Channel } from '@storybook/channels';
8
-
9
- interface Storage {
10
- getItem: (key: string) => Promise<string | null>;
11
- setItem: (key: string, value: string) => Promise<void>;
12
- }
13
- type StoryKind = string;
14
- type StoryName = string;
15
- type InitialSelection = `${StoryKind}--${StoryName}` | {
16
- /**
17
- * Kind is the default export name or the storiesOf("name") name
18
- */
19
- kind: StoryKind;
20
- /**
21
- * Name is the named export or the .add("name") name
22
- */
23
- name: StoryName;
24
- };
25
- type DeepPartial<T> = T extends object ? {
26
- [P in keyof T]?: DeepPartial<T[P]>;
27
- } : T;
28
- type Params = {
29
- onDeviceUI?: boolean;
30
- enableWebsockets?: boolean;
31
- query?: string;
32
- host?: string;
33
- port?: number;
34
- secured?: boolean;
35
- initialSelection?: InitialSelection;
36
- shouldPersistSelection?: boolean;
37
- tabOpen?: number;
38
- isUIHidden?: boolean;
39
- isSplitPanelVisible?: boolean;
40
- shouldDisableKeyboardAvoidingView?: boolean;
41
- keyboardAvoidingViewVerticalOffset?: number;
42
- theme: DeepPartial<Theme>;
43
- storage?: Storage;
44
- };
45
- declare class View {
46
- _storyIndex: StoryIndex;
47
- _setStory: (story: StoryContext<ReactRenderer>) => void;
48
- _forceRerender: () => void;
49
- _ready: boolean;
50
- _preview: PreviewWithSelection<ReactRenderer>;
51
- _asyncStorageStoryId: string;
52
- _webUrl: string;
53
- _storage: Storage;
54
- _channel: Channel;
55
- _idToPrepared: Record<string, PreparedStory<ReactRenderer>>;
56
- constructor(preview: PreviewWithSelection<ReactRenderer>, channel: Channel);
57
- _getInitialStory: ({ initialSelection, shouldPersistSelection, }?: Partial<Params>) => Promise<{
58
- storySpecifier: string;
59
- viewMode: string;
60
- }>;
61
- _getServerChannel: (params?: Partial<Params>) => Channel;
62
- createPreparedStoryMapping: () => Promise<void>;
63
- getStorybookUI: (params?: Partial<Params>) => () => react_jsx_runtime.JSX.Element;
64
- }
65
-
66
- export { Params as P, View as V };