@storybook/react-native 7.0.0-alpha.7 → 7.0.0-alpha.8

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/V6.js CHANGED
@@ -1962,7 +1962,10 @@ var View10 = class {
1962
1962
  value = await import_async_storage.default.getItem(STORAGE_KEY);
1963
1963
  this._asyncStorageStoryId = value;
1964
1964
  }
1965
- return { storySpecifier: value ?? "*", viewMode: "story" };
1965
+ const exists = value && Object.keys(this._storyIndex.entries).includes(value);
1966
+ if (!exists)
1967
+ console.log("Storybook: could not find persisted story");
1968
+ return { storySpecifier: exists ? value : "*", viewMode: "story" };
1966
1969
  } catch (e) {
1967
1970
  console.warn("storybook-log: error reading from async storage", e);
1968
1971
  }
package/dist/index.js CHANGED
@@ -1955,7 +1955,10 @@ var View10 = class {
1955
1955
  value = await import_async_storage.default.getItem(STORAGE_KEY);
1956
1956
  this._asyncStorageStoryId = value;
1957
1957
  }
1958
- return { storySpecifier: value ?? "*", viewMode: "story" };
1958
+ const exists = value && Object.keys(this._storyIndex.entries).includes(value);
1959
+ if (!exists)
1960
+ console.log("Storybook: could not find persisted story");
1961
+ return { storySpecifier: exists ? value : "*", viewMode: "story" };
1959
1962
  } catch (e) {
1960
1963
  console.warn("storybook-log: error reading from async storage", e);
1961
1964
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native",
3
- "version": "7.0.0-alpha.7",
3
+ "version": "7.0.0-alpha.8",
4
4
  "description": "A better way to develop React Native Components for your app",
5
5
  "keywords": [
6
6
  "react",
@@ -64,7 +64,7 @@
64
64
  "@storybook/preview-api": "7.6.0-alpha.2",
65
65
  "@storybook/preview-web": "7.6.0-alpha.2",
66
66
  "@storybook/react": "7.6.0-alpha.2",
67
- "@storybook/react-native-theming": "^7.0.0-alpha.7",
67
+ "@storybook/react-native-theming": "^7.0.0-alpha.8",
68
68
  "chokidar": "^3.5.1",
69
69
  "commander": "^8.2.0",
70
70
  "deepmerge": "^4.3.0",
@@ -97,5 +97,5 @@
97
97
  "publishConfig": {
98
98
  "access": "public"
99
99
  },
100
- "gitHead": "1e3f579e09fe88b689fa28f13cb93e77ec1f43f7"
100
+ "gitHead": "c3837299ea85337f08cba55abb896bec7eb6e4ab"
101
101
  }