@storybook/react-native-ui 8.0.0-alpha.3 → 8.0.0-alpha.4

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.js CHANGED
@@ -2776,7 +2776,7 @@ var Layout = ({
2776
2776
  refId: DEFAULT_REF_ID
2777
2777
  }
2778
2778
  ) }),
2779
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MobileAddonsPanel, { ref: addonPanelRef, storyId: story.id }),
2779
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MobileAddonsPanel, { ref: addonPanelRef, storyId: story?.id }),
2780
2780
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Container3, { style: { marginBottom: insets.bottom }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Nav, { children: [
2781
2781
  /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2782
2782
  Button2,
@@ -2786,9 +2786,9 @@ var Layout = ({
2786
2786
  children: [
2787
2787
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MenuIcon, { color: theme.color.mediumdark }),
2788
2788
  /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react_native9.Text, { children: [
2789
- story.title,
2789
+ story?.title,
2790
2790
  "/",
2791
- story.name
2791
+ story?.name
2792
2792
  ] })
2793
2793
  ]
2794
2794
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native-ui",
3
- "version": "8.0.0-alpha.3",
3
+ "version": "8.0.0-alpha.4",
4
4
  "description": "ui components for react native storybook",
5
5
  "keywords": [
6
6
  "react",
@@ -61,7 +61,7 @@
61
61
  "dependencies": {
62
62
  "@storybook/core-events": "^8",
63
63
  "@storybook/manager-api": "^8",
64
- "@storybook/react-native-theming": "^8.0.0-alpha.3",
64
+ "@storybook/react-native-theming": "^8.0.0-alpha.4",
65
65
  "fuse.js": "^7.0.0",
66
66
  "memoizerific": "^1.11.3",
67
67
  "polished": "^4.3.1"
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "b7c2a24d21c0a38bd5e31349b3ba370af7c3d863"
84
+ "gitHead": "01c91fd5e53822bcbc1350a154d609c7c0092e69"
85
85
  }
package/src/Layout.tsx CHANGED
@@ -49,7 +49,7 @@ export const Layout = ({
49
49
  refId={DEFAULT_REF_ID}
50
50
  />
51
51
  </MobileMenuDrawer>
52
- <MobileAddonsPanel ref={addonPanelRef} storyId={story.id} />
52
+ <MobileAddonsPanel ref={addonPanelRef} storyId={story?.id} />
53
53
  <Container style={{ marginBottom: insets.bottom }}>
54
54
  <Nav>
55
55
  <Button
@@ -58,7 +58,7 @@ export const Layout = ({
58
58
  >
59
59
  <MenuIcon color={theme.color.mediumdark} />
60
60
  <Text>
61
- {story.title}/{story.name}
61
+ {story?.title}/{story?.name}
62
62
  </Text>
63
63
  </Button>
64
64