@storybook/addon-ondevice-notes 8.2.0-alpha.0 → 8.3.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.
@@ -11,8 +11,10 @@ const react_native_1 = require("react-native");
11
11
  const react_native_markdown_display_1 = __importDefault(require("react-native-markdown-display"));
12
12
  const ErrorBoundary_1 = require("../ErrorBoundary");
13
13
  const manager_api_1 = require("@storybook/core/manager-api");
14
+ const react_native_theming_1 = require("@storybook/react-native-theming");
14
15
  exports.PARAM_KEY = 'notes';
15
16
  const Notes = ({ active, api }) => {
17
+ const theme = (0, react_native_theming_1.useTheme)();
16
18
  const [story, setStory] = (0, react_1.useState)();
17
19
  (0, react_1.useEffect)(() => {
18
20
  const selection = api.store().getSelection();
@@ -32,9 +34,9 @@ const Notes = ({ active, api }) => {
32
34
  if (!text)
33
35
  return null;
34
36
  const textAfterFormatted = text ? text.trim() : '';
35
- return ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: styles.container, children: textAfterFormatted && ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(react_native_markdown_display_1.default, { children: textAfterFormatted }) })) }));
37
+ return ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: styles.container, children: textAfterFormatted && ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(react_native_markdown_display_1.default, { style: { body: { color: theme.color.defaultText } }, children: textAfterFormatted }) })) }));
36
38
  };
37
39
  exports.Notes = Notes;
38
40
  const styles = react_native_1.StyleSheet.create({
39
- container: { flex: 1 },
41
+ container: { flex: 1, padding: 10 },
40
42
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-ondevice-notes",
3
- "version": "8.2.0-alpha.0",
3
+ "version": "8.3.0-alpha.0",
4
4
  "description": "Write notes for your react-native Storybook stories.",
5
5
  "keywords": [
6
6
  "addon",
@@ -29,8 +29,8 @@
29
29
  "dev": "tsc --watch"
30
30
  },
31
31
  "dependencies": {
32
- "@storybook/core": "8.2.0-beta.0",
33
- "@storybook/react-native-theming": "^8.2.0-alpha.0",
32
+ "@storybook/core": "^8.3.0",
33
+ "@storybook/react-native-theming": "^8.3.0-alpha.0",
34
34
  "react-native-markdown-display": "^7.0.2"
35
35
  },
36
36
  "devDependencies": {
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "56cad3ccee28ceae70cc7e2fc9b63ec28384eecf"
46
+ "gitHead": "b2629231f25c031146cdb880136d876852031e7b"
47
47
  }