@storybook/addon-ondevice-notes 7.6.10-alpha.4 → 7.6.11
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/README.md +15 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,20 +10,27 @@ yarn add -D @storybook/addon-ondevice-notes
|
|
|
10
10
|
|
|
11
11
|
## Configuration
|
|
12
12
|
|
|
13
|
-
Then, add following content to `.storybook/main.
|
|
13
|
+
Then, add following content to `.storybook/main.ts`:
|
|
14
14
|
|
|
15
|
-
```
|
|
16
|
-
|
|
15
|
+
```ts
|
|
16
|
+
import { StorybookConfig } from '@storybook/react-native';
|
|
17
|
+
|
|
18
|
+
const main: StorybookConfig = {
|
|
17
19
|
addons: ['@storybook/addon-ondevice-notes'],
|
|
18
20
|
};
|
|
21
|
+
|
|
22
|
+
export default main;
|
|
19
23
|
```
|
|
20
24
|
|
|
21
25
|
## Usage
|
|
22
26
|
|
|
23
27
|
Use the `notes` parameter to add a note to stories:
|
|
24
28
|
|
|
25
|
-
```
|
|
26
|
-
|
|
29
|
+
```tsx
|
|
30
|
+
import type { Meta } from '@storybook/react';
|
|
31
|
+
import { MyComponent } from './MyComponent';
|
|
32
|
+
|
|
33
|
+
const meta = {
|
|
27
34
|
title: 'My title',
|
|
28
35
|
component: MyComponent,
|
|
29
36
|
parameters: {
|
|
@@ -33,7 +40,9 @@ export default {
|
|
|
33
40
|
Put a full new line between each element.
|
|
34
41
|
`,
|
|
35
42
|
},
|
|
36
|
-
}
|
|
43
|
+
} satisfies Meta<typeof MyComponent>;
|
|
44
|
+
|
|
45
|
+
export default meta;
|
|
37
46
|
```
|
|
38
47
|
|
|
39
48
|
See the [example app](../../examples/expo-example) for more examples.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-ondevice-notes",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.11",
|
|
4
4
|
"description": "Write notes for your react-native Storybook stories.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"addon",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@storybook/client-logger": "^7.6.10",
|
|
33
33
|
"@storybook/core-events": "^7.6.10",
|
|
34
34
|
"@storybook/manager-api": "^7.6.10",
|
|
35
|
-
"@storybook/react-native-theming": "^7.6.
|
|
35
|
+
"@storybook/react-native-theming": "^7.6.11",
|
|
36
36
|
"react-native-markdown-display": "6.1.6"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "5aed8e2d2ddc4fe76dd5f883aeb35e3fb48cae87"
|
|
49
49
|
}
|