@storybook/angular 10.1.0-alpha.1 → 10.1.0-alpha.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.
@@ -1,59 +1,50 @@
1
- import CJS_COMPAT_NODE_URL_q2wnq1duol8 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_q2wnq1duol8 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_q2wnq1duol8 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rc26l1fdf7f from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rc26l1fdf7f from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rc26l1fdf7f from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_q2wnq1duol8.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_q2wnq1duol8.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_q2wnq1duol8.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rc26l1fdf7f.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rc26l1fdf7f.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rc26l1fdf7f.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-33GAHH27.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", `return import(modulePath);`)(modulePath);
18
+ return new Function("modulePath", "return import(modulePath);")(modulePath);
22
19
  }
23
- __name(loadEsmModule, "loadEsmModule");
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 (error) {
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: false,
30
+ async: !1,
35
31
  basePath: join(process.cwd(), "node_modules"),
36
32
  // absolute path to node_modules
37
- createNewEntryPointFormats: true,
33
+ createNewEntryPointFormats: !0,
38
34
  // --create-ivy-entry-points
39
- compileAllFormats: false
35
+ compileAllFormats: !1
40
36
  // --first-only
41
37
  });
42
- }, "runNgcc");
43
- var webpack = /* @__PURE__ */ __name(async (webpackConfig, options) => {
44
- const framework = await options.presets.apply("framework");
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
- }, "webpack");
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.1",
3
+ "version": "10.1.0-alpha.11",
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.1",
64
+ "@storybook/builder-webpack5": "10.1.0-alpha.11",
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.1",
84
+ "@storybook/core-webpack": "10.1.0-alpha.11",
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.1",
106
+ "storybook": "^10.1.0-alpha.11",
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": "a8e7fd8a655c69780bc20b9749d2699e45beae16"
125
+ "gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae1l"
126
126
  }
package/start-schema.json CHANGED
@@ -93,10 +93,7 @@
93
93
  "compodocArgs": {
94
94
  "type": "array",
95
95
  "description": "Compodoc options : https://compodoc.app/guides/options.html. Options `-p` with tsconfig path and `-d` with workspace root is always given.",
96
- "default": [
97
- "-e",
98
- "json"
99
- ],
96
+ "default": ["-e", "json"],
100
97
  "items": {
101
98
  "type": "string"
102
99
  }
@@ -135,18 +132,12 @@
135
132
  "description": "URL path to be appended when visiting Storybook for the first time"
136
133
  },
137
134
  "webpackStatsJson": {
138
- "type": [
139
- "boolean",
140
- "string"
141
- ],
135
+ "type": ["boolean", "string"],
142
136
  "description": "Write Webpack Stats JSON to disk",
143
137
  "default": false
144
138
  },
145
139
  "statsJson": {
146
- "type": [
147
- "boolean",
148
- "string"
149
- ],
140
+ "type": ["boolean", "string"],
150
141
  "description": "Write stats JSON to disk",
151
142
  "default": false
152
143
  },
@@ -160,10 +151,7 @@
160
151
  "pattern": "(silly|verbose|info|warn|silent)"
161
152
  },
162
153
  "sourceMap": {
163
- "type": [
164
- "boolean",
165
- "object"
166
- ],
154
+ "type": ["boolean", "object"],
167
155
  "description": "Configure sourcemaps. See: https://angular.io/guide/workspace-config#source-map-configuration",
168
156
  "default": false
169
157
  },
@@ -205,11 +193,7 @@
205
193
  }
206
194
  },
207
195
  "additionalProperties": false,
208
- "required": [
209
- "glob",
210
- "input",
211
- "output"
212
- ]
196
+ "required": ["glob", "input", "output"]
213
197
  },
214
198
  {
215
199
  "type": "string"
@@ -237,9 +221,7 @@
237
221
  }
238
222
  },
239
223
  "additionalProperties": false,
240
- "required": [
241
- "input"
242
- ]
224
+ "required": ["input"]
243
225
  },
244
226
  {
245
227
  "type": "string",
@@ -248,4 +230,4 @@
248
230
  ]
249
231
  }
250
232
  }
251
- }
233
+ }