@storybook/react-native 7.0.0-alpha.4 → 7.0.0-alpha.5

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2066,12 +2066,16 @@ var View10 = class {
2066
2066
  self._preview.selectionStore.selectionSpecifier = story;
2067
2067
  self._preview.selectSpecifiedStory();
2068
2068
  });
2069
- import_global.global.__STORYBOOK_ADDONS_CHANNEL__.on(import_core_events2.default.SET_CURRENT_STORY, ({ storyId }) => {
2070
- self._preview.selectSpecifiedStory();
2071
- const newStoryContext = this._preview.storyStore.getStoryContext(
2072
- this._preview.storyStore.fromId(storyId)
2073
- );
2074
- setContext(newStoryContext);
2069
+ import_global.global.__STORYBOOK_ADDONS_CHANNEL__.on(import_core_events2.default.SET_CURRENT_STORY, async ({ storyId }) => {
2070
+ self._preview.selectionStore.selectionSpecifier = {
2071
+ storySpecifier: storyId,
2072
+ viewMode: "story"
2073
+ };
2074
+ this._preview.selectionStore.selection = {
2075
+ storyId,
2076
+ viewMode: "story"
2077
+ };
2078
+ await self._preview.selectSpecifiedStory();
2075
2079
  });
2076
2080
  }, []);
2077
2081
  if (onDeviceUI) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native",
3
- "version": "7.0.0-alpha.4",
3
+ "version": "7.0.0-alpha.5",
4
4
  "description": "A better way to develop React Native Components for your app",
5
5
  "keywords": [
6
6
  "react",
@@ -62,7 +62,7 @@
62
62
  "@storybook/manager-api": "^7",
63
63
  "@storybook/preview-api": "^7",
64
64
  "@storybook/preview-web": "^7",
65
- "@storybook/react-native-theming": "^7.0.0-alpha.4",
65
+ "@storybook/react-native-theming": "^7.0.0-alpha.5",
66
66
  "chokidar": "^3.5.1",
67
67
  "commander": "^8.2.0",
68
68
  "deepmerge": "^4.3.0",
@@ -95,5 +95,5 @@
95
95
  "publishConfig": {
96
96
  "access": "public"
97
97
  },
98
- "gitHead": "eb7e4f2ad33a74b8c898c95cbdbbd5bec3c051db"
98
+ "gitHead": "7e6db945d52b15ca54a3d7471158874829ada78d"
99
99
  }