@module-federation/storybook-addon 0.0.0-next-20241101074502 → 0.0.0-next-20241104032754
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 +1 -1
- package/dist/package.json +6 -14
- package/dist/preset.js +15 -14
- package/package.json +6 -16
- package/dist/preset.d.ts +0 -6
- package/dist/preset.js.map +0 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ const config: StorybookConfig = {
|
|
|
61
61
|
},
|
|
62
62
|
addons: [
|
|
63
63
|
{
|
|
64
|
-
name: '@module-federation/storybook-addon/preset',
|
|
64
|
+
name: '@module-federation/storybook-addon/preset.js',
|
|
65
65
|
options: {
|
|
66
66
|
// add remote here and then you can load remote in your story
|
|
67
67
|
remotes: {
|
package/dist/package.json
CHANGED
|
@@ -18,19 +18,11 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"author": "Fiodorov Andrei <hello@fyodorovandrei.com> (https://github.com/fyodorovandrei)",
|
|
21
|
-
"main": "dist/src/index.js",
|
|
22
|
-
"module": "dist/src/index.js",
|
|
23
|
-
"types": "dist/src/index.d.ts",
|
|
24
21
|
"exports": {
|
|
25
22
|
".": {
|
|
26
23
|
"import": "./dist/src/index.js",
|
|
27
24
|
"require": "./dist/src/index.js",
|
|
28
|
-
"types": "./dist/src/
|
|
29
|
-
},
|
|
30
|
-
"./preset": {
|
|
31
|
-
"import": "./dist/preset.js",
|
|
32
|
-
"require": "./dist/preset.js",
|
|
33
|
-
"types": "./dist/preset.d.ts"
|
|
25
|
+
"types": "./dist/src/indexd.ts"
|
|
34
26
|
},
|
|
35
27
|
"./*": "./*"
|
|
36
28
|
},
|
|
@@ -41,11 +33,9 @@
|
|
|
41
33
|
]
|
|
42
34
|
}
|
|
43
35
|
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@module-federation/enhanced": "workspace:*",
|
|
46
|
-
"@module-federation/sdk": "workspace:*"
|
|
47
|
-
},
|
|
48
36
|
"devDependencies": {
|
|
37
|
+
"@module-federation/enhanced": "workspace:*",
|
|
38
|
+
"@module-federation/sdk": "workspace:*",
|
|
49
39
|
"@module-federation/utilities": "workspace:*",
|
|
50
40
|
"@rsbuild/core": "^1.0.19",
|
|
51
41
|
"@storybook/core-common": "7.6.20",
|
|
@@ -62,5 +52,7 @@
|
|
|
62
52
|
"webpack": "^5.75.0",
|
|
63
53
|
"webpack-virtual-modules": "^0.5.0 || ^0.6.0"
|
|
64
54
|
},
|
|
65
|
-
"
|
|
55
|
+
"main": "./src/index.js",
|
|
56
|
+
"type": "commonjs",
|
|
57
|
+
"types": "./src/index.d.ts"
|
|
66
58
|
}
|
package/dist/preset.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
const {
|
|
2
|
+
withModuleFederation,
|
|
3
|
+
} = require('./src/utils/with-module-federation-enhanced-rsbuild');
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
rsbuildFinal: (config, options) => {
|
|
7
|
+
const { remotes, shared, name, shareStrategy } = options;
|
|
8
|
+
|
|
9
|
+
return withModuleFederation(config, {
|
|
10
|
+
name,
|
|
11
|
+
remotes,
|
|
12
|
+
shared,
|
|
13
|
+
shareStrategy,
|
|
14
|
+
});
|
|
15
|
+
},
|
|
14
16
|
};
|
|
15
|
-
//# sourceMappingURL=preset.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/storybook-addon",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20241104032754",
|
|
4
4
|
"description": "Storybook addon to consume remote module federated apps/components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/module-federation/core/tree/main/packages/storybook-addon",
|
|
@@ -18,19 +18,11 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"author": "Fiodorov Andrei <hello@fyodorovandrei.com> (https://github.com/fyodorovandrei)",
|
|
21
|
-
"main": "dist/src/index.js",
|
|
22
|
-
"module": "dist/src/index.js",
|
|
23
|
-
"types": "dist/src/index.d.ts",
|
|
24
21
|
"exports": {
|
|
25
22
|
".": {
|
|
26
23
|
"import": "./dist/src/index.js",
|
|
27
24
|
"require": "./dist/src/index.js",
|
|
28
|
-
"types": "./dist/src/
|
|
29
|
-
},
|
|
30
|
-
"./preset": {
|
|
31
|
-
"import": "./dist/preset.js",
|
|
32
|
-
"require": "./dist/preset.js",
|
|
33
|
-
"types": "./dist/preset.d.ts"
|
|
25
|
+
"types": "./dist/src/indexd.ts"
|
|
34
26
|
},
|
|
35
27
|
"./*": "./*"
|
|
36
28
|
},
|
|
@@ -41,20 +33,18 @@
|
|
|
41
33
|
]
|
|
42
34
|
}
|
|
43
35
|
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@module-federation/sdk": "0.0.0-next-20241101074502",
|
|
46
|
-
"@module-federation/enhanced": "0.0.0-next-20241101074502"
|
|
47
|
-
},
|
|
48
36
|
"devDependencies": {
|
|
49
37
|
"@rsbuild/core": "^1.0.19",
|
|
50
38
|
"@storybook/core-common": "7.6.20",
|
|
51
39
|
"@storybook/node-logger": "7.6.20",
|
|
52
40
|
"webpack": "5.93.0",
|
|
53
41
|
"webpack-virtual-modules": "0.6.2",
|
|
54
|
-
"@module-federation/utilities": "0.0.0-next-
|
|
42
|
+
"@module-federation/utilities": "0.0.0-next-20241104032754",
|
|
43
|
+
"@module-federation/enhanced": "0.0.0-next-20241104032754",
|
|
44
|
+
"@module-federation/sdk": "0.0.0-next-20241104032754"
|
|
55
45
|
},
|
|
56
46
|
"peerDependencies": {
|
|
57
|
-
"@module-federation/utilities": "0.0.0-next-
|
|
47
|
+
"@module-federation/utilities": "0.0.0-next-20241104032754",
|
|
58
48
|
"@nx/react": "~16.0.0 || ~17.0.0 || ~17.2.0",
|
|
59
49
|
"@nx/webpack": "~16.0.0 || ~17.0.0 || ~17.2.0",
|
|
60
50
|
"@storybook/core-common": "^6.5.16 || ^7.0.0",
|
package/dist/preset.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { RsbuildConfig } from '@rsbuild/core';
|
|
2
|
-
import type { moduleFederationPlugin } from '@module-federation/sdk';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
rsbuildFinal: (config: RsbuildConfig, options: moduleFederationPlugin.ModuleFederationPluginOptions) => Promise<RsbuildConfig>;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
package/dist/preset.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../preset.ts"],"names":[],"mappings":";;AAAA,iHAA2F;AAK3F,kBAAe;IACb,YAAY,EAAE,CACZ,MAAqB,EACrB,OAA6D,EAC7D,EAAE;QACF,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;QAEzD,OAAO,IAAA,8DAAoB,EAAC,MAAM,EAAE;YAClC,IAAI;YACJ,OAAO;YACP,MAAM;YACN,aAAa;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|