@storybook/react-native 6.0.1-alpha.7 → 6.0.1-beta.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 CHANGED
@@ -3,6 +3,8 @@
3
3
  import { StoryApi } from '@storybook/addons';
4
4
  import { ClientApi } from '@storybook/client-api';
5
5
  import { ReactNode } from 'react';
6
+ import Preview from './preview';
7
+ export declare const preview: Preview;
6
8
  export declare const setAddon: ClientApi['setAddon'];
7
9
  export declare const addDecorator: ClientApi['addDecorator'];
8
10
  export declare const addParameters: ClientApi['addParameters'];
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import Preview from './preview';
2
- const preview = new Preview();
2
+ export const preview = new Preview();
3
3
  const rawStoriesOf = preview.api().storiesOf.bind(preview);
4
4
  export const setAddon = preview.api().setAddon.bind(preview);
5
5
  export const addDecorator = preview.api().addDecorator.bind(preview);
@@ -25,7 +25,7 @@ export default class Preview {
25
25
  return this._clientApi;
26
26
  };
27
27
  this.getStorybookUI = (params = {}) => {
28
- const { initialSelection, shouldPersistSelection } = params;
28
+ const { initialSelection, shouldPersistSelection = true } = params;
29
29
  this._setInitialStory(initialSelection, shouldPersistSelection);
30
30
  this._channel.on(Events.SET_CURRENT_STORY, (d) => {
31
31
  this._selectStoryEvent(d, shouldPersistSelection);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native",
3
- "version": "6.0.1-alpha.7",
3
+ "version": "6.0.1-beta.0",
4
4
  "description": "A better way to develop React Native Components for your app",
5
5
  "keywords": [
6
6
  "react",
@@ -66,7 +66,7 @@
66
66
  "util": "^0.12.4"
67
67
  },
68
68
  "devDependencies": {
69
- "@types/react-native": "^0.65.1",
69
+ "@types/react-native": "^0.66.15",
70
70
  "babel-jest": "^26.6.3",
71
71
  "jest": "^26.6.3",
72
72
  "react-test-renderer": "17.0.2"
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "3fdd3ec63a08afe4a067d4298c9b39fd3d74fd04"
85
+ "gitHead": "3490aec85c84210997f38b92afa515b6dc41b8b5"
86
86
  }