@storybook/angular 10.1.0-alpha.10 → 10.1.0-alpha.12
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/dist/_browser-chunks/chunk-6CHBWP5J.js +711 -0
- package/dist/_browser-chunks/{chunk-CV6HSYTZ.js → chunk-T32Z4CGF.js} +13 -28
- package/dist/_node-chunks/chunk-6VHHYZRT.js +62 -0
- package/dist/_node-chunks/chunk-CI264AI2.js +43 -0
- package/dist/builders/build-storybook/index.js +81 -101
- package/dist/builders/start-storybook/index.js +102 -123
- package/dist/client/config.js +84 -179
- package/dist/client/docs/config.js +15 -33
- package/dist/client/index.js +2 -2
- package/dist/index.js +2 -2
- package/dist/node/index.js +6 -10
- package/dist/preset.js +19 -29
- package/dist/server/framework-preset-angular-cli.js +84 -155
- package/dist/server/framework-preset-angular-ivy.js +16 -25
- package/package.json +5 -5
- package/dist/_browser-chunks/chunk-L4GU2V72.js +0 -939
- package/dist/_node-chunks/chunk-4RJNAYZ2.js +0 -58
- package/dist/_node-chunks/chunk-CE4PZTEJ.js +0 -17
- package/dist/_node-chunks/chunk-QC5VOLQ4.js +0 -93
|
@@ -1,59 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qv1b0zi7im from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qv1b0zi7im from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qv1b0zi7im from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qv1b0zi7im.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qv1b0zi7im.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qv1b0zi7im.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
__name
|
|
14
|
-
} from "../_node-chunks/chunk-CE4PZTEJ.js";
|
|
15
12
|
|
|
16
13
|
// src/server/framework-preset-angular-ivy.ts
|
|
17
14
|
import { join } from "node:path";
|
|
18
15
|
import { createRequire } from "node:module";
|
|
19
16
|
var require2 = createRequire(import.meta.url);
|
|
20
17
|
function loadEsmModule(modulePath) {
|
|
21
|
-
return new Function("modulePath",
|
|
18
|
+
return new Function("modulePath", "return import(modulePath);")(modulePath);
|
|
22
19
|
}
|
|
23
|
-
|
|
24
|
-
var runNgcc = /* @__PURE__ */ __name(async () => {
|
|
20
|
+
var runNgcc = async () => {
|
|
25
21
|
let ngcc;
|
|
26
22
|
try {
|
|
27
23
|
ngcc = require2("@angular/compiler-cli/ngcc");
|
|
28
|
-
} catch
|
|
24
|
+
} catch {
|
|
29
25
|
ngcc = await loadEsmModule("@angular/compiler-cli/ngcc");
|
|
30
26
|
}
|
|
31
27
|
ngcc.process({
|
|
32
28
|
// should be async: true but does not work due to
|
|
33
29
|
// https://github.com/storybookjs/storybook/pull/11157/files#r615413803
|
|
34
|
-
async:
|
|
30
|
+
async: !1,
|
|
35
31
|
basePath: join(process.cwd(), "node_modules"),
|
|
36
32
|
// absolute path to node_modules
|
|
37
|
-
createNewEntryPointFormats:
|
|
33
|
+
createNewEntryPointFormats: !0,
|
|
38
34
|
// --create-ivy-entry-points
|
|
39
|
-
compileAllFormats:
|
|
35
|
+
compileAllFormats: !1
|
|
40
36
|
// --first-only
|
|
41
37
|
});
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const angularOptions = typeof framework === "object" ? framework.options : {};
|
|
46
|
-
if (angularOptions.enableIvy === false) {
|
|
47
|
-
return webpackConfig;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
38
|
+
}, webpack = async (webpackConfig, options) => {
|
|
39
|
+
let framework = await options.presets.apply("framework");
|
|
40
|
+
return (typeof framework == "object" ? framework.options : {}).enableIvy === !1 ? webpackConfig : {
|
|
50
41
|
...webpackConfig,
|
|
51
42
|
resolve: {
|
|
52
43
|
...webpackConfig.resolve,
|
|
53
44
|
mainFields: ["browser", "module", "main"]
|
|
54
45
|
}
|
|
55
46
|
};
|
|
56
|
-
}
|
|
47
|
+
};
|
|
57
48
|
export {
|
|
58
49
|
runNgcc,
|
|
59
50
|
webpack
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "10.1.0-alpha.
|
|
3
|
+
"version": "10.1.0-alpha.12",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@storybook/builder-webpack5": "10.1.0-alpha.
|
|
64
|
+
"@storybook/builder-webpack5": "10.1.0-alpha.12",
|
|
65
65
|
"@storybook/global": "^5.0.0",
|
|
66
66
|
"telejson": "8.0.0",
|
|
67
67
|
"ts-dedent": "^2.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@angular/forms": "^19.1.1",
|
|
82
82
|
"@angular/platform-browser": "^19.1.1",
|
|
83
83
|
"@angular/platform-browser-dynamic": "^19.1.1",
|
|
84
|
-
"@storybook/core-webpack": "10.1.0-alpha.
|
|
84
|
+
"@storybook/core-webpack": "10.1.0-alpha.12",
|
|
85
85
|
"@types/node": "^22.0.0",
|
|
86
86
|
"empathic": "^2.0.0",
|
|
87
87
|
"rimraf": "^6.0.1",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@angular/platform-browser": ">=18.0.0 < 21.0.0",
|
|
104
104
|
"@angular/platform-browser-dynamic": ">=18.0.0 < 21.0.0",
|
|
105
105
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
106
|
-
"storybook": "^10.1.0-alpha.
|
|
106
|
+
"storybook": "^10.1.0-alpha.12",
|
|
107
107
|
"typescript": "^4.9.0 || ^5.0.0",
|
|
108
108
|
"zone.js": ">=0.14.0"
|
|
109
109
|
},
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"access": "public"
|
|
123
123
|
},
|
|
124
124
|
"builders": "builders.json",
|
|
125
|
-
"gitHead": "
|
|
125
|
+
"gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae1l"
|
|
126
126
|
}
|