@storybook/core-common 8.2.0-alpha.9 → 8.2.0-beta.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.
- package/package.json +12 -78
- package/shim.d.ts +2 -0
- package/shim.js +1 -0
- package/shim.mjs +1 -0
- package/README.md +0 -9
- package/dist/index.d.ts +0 -557
- package/dist/index.js +0 -54
- package/dist/index.mjs +0 -85
- package/scripts/generate-sb-packages-versions.js +0 -72
- package/templates/base-preview-body.html +0 -119
- package/templates/base-preview-head.html +0 -451
- package/vitest.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/core-common",
|
|
3
|
-
"version": "8.2.0-
|
|
3
|
+
"version": "8.2.0-beta.0",
|
|
4
4
|
"description": "Storybook framework-agnostic API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -21,92 +21,26 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"require": "./dist/index.js"
|
|
24
|
+
"types": "./shim.d.ts",
|
|
25
|
+
"import": "./shim.mjs",
|
|
26
|
+
"require": "./shim.js"
|
|
28
27
|
},
|
|
29
28
|
"./package.json": "./package.json"
|
|
30
29
|
},
|
|
31
|
-
"main": "
|
|
32
|
-
"module": "
|
|
33
|
-
"types": "
|
|
30
|
+
"main": "./shim.js",
|
|
31
|
+
"module": "./shim.mjs",
|
|
32
|
+
"types": "./shim.d.ts",
|
|
34
33
|
"files": [
|
|
35
|
-
"dist/**/*",
|
|
36
|
-
"templates/**/*",
|
|
37
34
|
"README.md",
|
|
38
35
|
"*.js",
|
|
39
|
-
"*.
|
|
40
|
-
"
|
|
36
|
+
"*.mjs",
|
|
37
|
+
"*.cjs",
|
|
38
|
+
"*.d.ts"
|
|
41
39
|
],
|
|
42
|
-
"scripts": {
|
|
43
|
-
"check": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/check.ts",
|
|
44
|
-
"prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@storybook/core-events": "8.2.0-alpha.9",
|
|
48
|
-
"@storybook/csf-tools": "8.2.0-alpha.9",
|
|
49
|
-
"@storybook/node-logger": "8.2.0-alpha.9",
|
|
50
|
-
"@storybook/types": "8.2.0-alpha.9",
|
|
51
|
-
"@yarnpkg/fslib": "2.10.3",
|
|
52
|
-
"@yarnpkg/libzip": "2.3.0",
|
|
53
|
-
"chalk": "^4.1.0",
|
|
54
|
-
"cross-spawn": "^7.0.3",
|
|
55
|
-
"esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0",
|
|
56
|
-
"esbuild-register": "^3.5.0",
|
|
57
|
-
"execa": "^5.0.0",
|
|
58
|
-
"file-system-cache": "2.3.0",
|
|
59
|
-
"find-cache-dir": "^3.0.0",
|
|
60
|
-
"find-up": "^5.0.0",
|
|
61
|
-
"fs-extra": "^11.1.0",
|
|
62
|
-
"glob": "^10.0.0",
|
|
63
|
-
"handlebars": "^4.7.7",
|
|
64
|
-
"lazy-universal-dotenv": "^4.0.0",
|
|
65
|
-
"node-fetch": "^2.0.0",
|
|
66
|
-
"picomatch": "^2.3.0",
|
|
67
|
-
"pkg-dir": "^5.0.0",
|
|
68
|
-
"prettier-fallback": "npm:prettier@^3",
|
|
69
|
-
"pretty-hrtime": "^1.0.3",
|
|
70
|
-
"resolve-from": "^5.0.0",
|
|
71
|
-
"semver": "^7.3.7",
|
|
72
|
-
"tempy": "^3.1.0",
|
|
73
|
-
"tiny-invariant": "^1.3.1",
|
|
74
|
-
"ts-dedent": "^2.0.0",
|
|
75
|
-
"util": "^0.12.4"
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@types/find-cache-dir": "^3.2.1",
|
|
79
|
-
"@types/fs-extra": "^11.0.1",
|
|
80
|
-
"@types/mock-fs": "^4.13.1",
|
|
81
|
-
"@types/node": "^18.0.0",
|
|
82
|
-
"@types/node-fetch": "^2.6.4",
|
|
83
|
-
"@types/picomatch": "^2.3.0",
|
|
84
|
-
"@types/prettier-v2": "npm:@types/prettier@^2",
|
|
85
|
-
"@types/pretty-hrtime": "^1.0.0",
|
|
86
|
-
"mock-fs": "^5.2.0",
|
|
87
|
-
"prettier-v2": "npm:prettier@^2",
|
|
88
|
-
"prettier-v3": "npm:prettier@^3",
|
|
89
|
-
"slash": "^5.0.0",
|
|
90
|
-
"type-fest": "~2.19",
|
|
91
|
-
"typescript": "^5.3.2"
|
|
92
|
-
},
|
|
93
40
|
"peerDependencies": {
|
|
94
|
-
"
|
|
95
|
-
},
|
|
96
|
-
"peerDependenciesMeta": {
|
|
97
|
-
"prettier": {
|
|
98
|
-
"optional": true
|
|
99
|
-
}
|
|
41
|
+
"storybook": "^8.2.0-beta.0"
|
|
100
42
|
},
|
|
101
43
|
"publishConfig": {
|
|
102
44
|
"access": "public"
|
|
103
|
-
}
|
|
104
|
-
"bundler": {
|
|
105
|
-
"pre": "./scripts/generate-sb-packages-versions.js",
|
|
106
|
-
"entries": [
|
|
107
|
-
"./src/index.ts"
|
|
108
|
-
],
|
|
109
|
-
"platform": "node"
|
|
110
|
-
},
|
|
111
|
-
"gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae16"
|
|
45
|
+
}
|
|
112
46
|
}
|
package/shim.d.ts
ADDED
package/shim.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('storybook/internal/common');
|
package/shim.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'storybook/internal/common';
|
package/README.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Storybook Core-Common
|
|
2
|
-
|
|
3
|
-
Common utilities used across `@storybook/core-server` (manager UI configuration) and `@storybook/builder-webpack{4,5}` (preview configuration).
|
|
4
|
-
|
|
5
|
-
This is a lot of code extracted for convenience, not because it made sense.
|
|
6
|
-
|
|
7
|
-
Supporting multiple version of webpack and this duplicating a large portion of code that was never meant to be generic caused this.
|
|
8
|
-
|
|
9
|
-
At some point we'll refactor this, it's likely a lot of this code is dead or barely used.
|