storybook-addon-rslib 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +1 -57
  2. package/package.json +6 -5
package/README.md CHANGED
@@ -1,59 +1,3 @@
1
1
  # storybook-addon-rslib
2
2
 
3
- ## Usage
4
-
5
- 1. Install the addon
6
-
7
- ```bash
8
- pnpm add storybook-addon-rslib -D
9
- ```
10
-
11
- 2. Add it to `main.js`
12
-
13
- ```ts
14
- export default {
15
- addons: ['storybook-addon-rslib'],
16
- }
17
- ```
18
-
19
- or with config
20
-
21
- ```ts
22
- export default {
23
- addons: [
24
- {
25
- name: 'storybook-addon-rslib',
26
- options: {
27
- // Check options section.
28
- },
29
- },
30
- ],
31
- }
32
- ```
33
-
34
- ## Options
35
-
36
- ```ts
37
- export interface AddonOptions {
38
- rslib?: {
39
- /**
40
- * `cwd` passed to loadConfig of Rslib
41
- * @default undefined
42
- */
43
- cwd?: string
44
- /**
45
- * `path` passed to loadConfig of Rslib
46
- * @default undefined
47
- */
48
- configPath?: string
49
- /**
50
- * The lib config index in `lib` field to use, will be merged with the other fields in the config.
51
- * Set to a number to use the lib config at that index.
52
- * Set to `false` to disable using the lib config.
53
- * @experimental subject to change at any time
54
- * @default 0
55
- */
56
- libIndex?: number | false
57
- }
58
- }
59
- ```
3
+ Check out [rspack-contrib/storybook-rsbuild](https://github.com/rspack-contrib/storybook-rsbuild) for documentation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-addon-rslib",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Storybook addon for loading configuration of Rslib",
5
5
  "keywords": [
6
6
  "storybook",
@@ -9,6 +9,7 @@
9
9
  "rspack",
10
10
  "rslib"
11
11
  ],
12
+ "homepage": "https://storybook-rsbuild.netlify.app",
12
13
  "bugs": {
13
14
  "url": "https://github.com/rspack-contrib/storybook-rsbuild/issues"
14
15
  },
@@ -36,12 +37,12 @@
36
37
  "!src/**/*"
37
38
  ],
38
39
  "devDependencies": {
39
- "@rsbuild/core": "1.0.17",
40
- "@rslib/core": "0.0.13",
40
+ "@rsbuild/core": "^1.1.0",
41
+ "@rslib/core": "^0.0.18",
41
42
  "@types/node": "^18.0.0",
42
- "storybook": "8.4.0-alpha.7",
43
+ "storybook": "8.5.0-alpha.3",
43
44
  "typescript": "^5.6.3",
44
- "storybook-builder-rsbuild": "0.1.2"
45
+ "storybook-builder-rsbuild": "0.1.4"
45
46
  },
46
47
  "peerDependencies": {
47
48
  "@rsbuild/core": "^1.0.1",