@storybook/angular 6.4.0-rc.8 → 6.4.2

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,11 +1,14 @@
1
1
  import { BuilderOutput } from '@angular-devkit/architect';
2
2
  import { JsonObject } from '@angular-devkit/core';
3
3
  import { CLIOptions } from '@storybook/core-common';
4
+ import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
4
5
  export declare type StorybookBuilderOptions = JsonObject & {
5
6
  browserTarget?: string | null;
6
7
  tsConfig?: string;
7
8
  compodoc: boolean;
8
9
  compodocArgs: string[];
10
+ styles?: ExtraEntryPoint[];
11
+ stylePreprocessorOptions?: StylePreprocessorOptions;
9
12
  } & Pick<CLIOptions, 'outputDir' | 'configDir' | 'loglevel' | 'quiet' | 'docs'>;
10
13
  export declare type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
11
14
  declare const _default: import("@angular-devkit/architect/src/internal").Builder<StorybookBuilderOptions>;
@@ -1,11 +1,14 @@
1
1
  import { BuilderOutput } from '@angular-devkit/architect';
2
2
  import { JsonObject } from '@angular-devkit/core';
3
+ import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
3
4
  import { CLIOptions } from '@storybook/core-common';
4
5
  export declare type StorybookBuilderOptions = JsonObject & {
5
6
  browserTarget?: string | null;
6
7
  tsConfig?: string;
7
8
  compodoc: boolean;
8
9
  compodocArgs: string[];
10
+ styles?: ExtraEntryPoint[];
11
+ stylePreprocessorOptions?: StylePreprocessorOptions;
9
12
  } & Pick<CLIOptions, 'port' | 'host' | 'configDir' | 'https' | 'sslCa' | 'sslCert' | 'sslKey' | 'smokeTest' | 'ci' | 'quiet' | 'docs'>;
10
13
  export declare type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
11
14
  declare const _default: import("@angular-devkit/architect/src/internal").Builder<StorybookBuilderOptions>;
@@ -1,9 +1,12 @@
1
1
  import { LoadOptions, Options as CoreOptions } from '@storybook/core-common';
2
2
  import { BuilderContext } from '@angular-devkit/architect';
3
- import { JsonObject } from '@angular-devkit/core';
3
+ import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
4
4
  export declare type PresetOptions = CoreOptions & {
5
5
  angularBrowserTarget?: string | null;
6
- angularBuilderOptions?: JsonObject | null;
6
+ angularBuilderOptions?: {
7
+ styles?: ExtraEntryPoint[];
8
+ stylePreprocessorOptions?: StylePreprocessorOptions;
9
+ };
7
10
  angularBuilderContext?: BuilderContext | null;
8
11
  tsConfig?: string;
9
12
  };
@@ -1,11 +1,14 @@
1
1
  import { BuilderOutput } from '@angular-devkit/architect';
2
2
  import { JsonObject } from '@angular-devkit/core';
3
3
  import { CLIOptions } from '@storybook/core-common';
4
+ import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
4
5
  export declare type StorybookBuilderOptions = JsonObject & {
5
6
  browserTarget?: string | null;
6
7
  tsConfig?: string;
7
8
  compodoc: boolean;
8
9
  compodocArgs: string[];
10
+ styles?: ExtraEntryPoint[];
11
+ stylePreprocessorOptions?: StylePreprocessorOptions;
9
12
  } & Pick<CLIOptions, 'outputDir' | 'configDir' | 'loglevel' | 'quiet' | 'docs'>;
10
13
  export declare type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
11
14
  declare const _default: import("@angular-devkit/architect/src/internal").Builder<StorybookBuilderOptions>;
@@ -46,17 +46,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
46
46
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
47
  }
48
48
  };
49
- var __rest = (this && this.__rest) || function (s, e) {
50
- var t = {};
51
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
- t[p] = s[p];
53
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
- t[p[i]] = s[p[i]];
57
- }
58
- return t;
59
- };
60
49
  var __importDefault = (this && this.__importDefault) || function (mod) {
61
50
  return (mod && mod.__esModule) ? mod : { "default": mod };
62
51
  };
@@ -64,6 +53,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
64
53
  var architect_1 = require("@angular-devkit/architect");
65
54
  var rxjs_1 = require("rxjs");
66
55
  var operators_1 = require("rxjs/operators");
56
+ var find_up_1 = require("find-up");
67
57
  // eslint-disable-next-line import/no-extraneous-dependencies
68
58
  var standalone_1 = __importDefault(require("@storybook/angular/standalone"));
69
59
  var run_compodoc_1 = require("../utils/run-compodoc");
@@ -78,8 +68,18 @@ function commandBuilder(options, context) {
78
68
  return runCompodoc$.pipe(operators_1.mapTo({ tsConfig: tsConfig }));
79
69
  }), operators_1.map(function (_a) {
80
70
  var tsConfig = _a.tsConfig;
81
- var browserTarget = options.browserTarget, otherOptions = __rest(options, ["browserTarget"]);
82
- var standaloneOptions = __assign(__assign({}, otherOptions), { angularBrowserTarget: browserTarget, angularBuilderContext: context, tsConfig: tsConfig });
71
+ var browserTarget = options.browserTarget, stylePreprocessorOptions = options.stylePreprocessorOptions, styles = options.styles, configDir = options.configDir, docs = options.docs, loglevel = options.loglevel, outputDir = options.outputDir, quiet = options.quiet;
72
+ var standaloneOptions = {
73
+ configDir: configDir,
74
+ docs: docs,
75
+ loglevel: loglevel,
76
+ outputDir: outputDir,
77
+ quiet: quiet,
78
+ angularBrowserTarget: browserTarget,
79
+ angularBuilderContext: context,
80
+ angularBuilderOptions: __assign(__assign({}, (stylePreprocessorOptions ? { stylePreprocessorOptions: stylePreprocessorOptions } : {})), (styles ? { styles: styles } : {})),
81
+ tsConfig: tsConfig,
82
+ };
83
83
  return standaloneOptions;
84
84
  }), operators_1.switchMap(function (standaloneOptions) { return runInstance(__assign(__assign({}, standaloneOptions), { mode: 'static' })); }), operators_1.map(function () {
85
85
  return { success: true };
@@ -104,7 +104,7 @@ function setup(options, context) {
104
104
  browserOptions = _f.sent();
105
105
  _f.label = 4;
106
106
  case 4: return [2 /*return*/, {
107
- tsConfig: (_b = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : browserOptions.tsConfig) !== null && _b !== void 0 ? _b : undefined,
107
+ tsConfig: (_b = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : find_up_1.sync('tsconfig.json', { cwd: options.configDir })) !== null && _b !== void 0 ? _b : browserOptions.tsConfig,
108
108
  }];
109
109
  }
110
110
  });
@@ -51,15 +51,62 @@
51
51
  "items": {
52
52
  "type": "string"
53
53
  }
54
+ },
55
+ "styles": {
56
+ "type": "array",
57
+ "description": "Global styles to be included in the build.",
58
+ "items": {
59
+ "$ref": "#/definitions/extraEntryPoint"
60
+ },
61
+ "default": ""
62
+ },
63
+ "stylePreprocessorOptions": {
64
+ "description": "Options to pass to style preprocessors.",
65
+ "type": "object",
66
+ "properties": {
67
+ "includePaths": {
68
+ "description": "Paths to include. Paths will be resolved to workspace root.",
69
+ "type": "array",
70
+ "items": {
71
+ "type": "string"
72
+ },
73
+ "default": []
74
+ }
75
+ },
76
+ "additionalProperties": false,
77
+ "default": ""
54
78
  }
55
79
  },
56
80
  "additionalProperties": false,
57
- "oneOf": [
58
- {
59
- "required": ["browserTarget"]
60
- },
61
- {
62
- "required": ["tsConfig"]
81
+ "definitions": {
82
+ "extraEntryPoint": {
83
+ "oneOf": [
84
+ {
85
+ "type": "object",
86
+ "properties": {
87
+ "input": {
88
+ "type": "string",
89
+ "description": "The file to include."
90
+ },
91
+ "bundleName": {
92
+ "type": "string",
93
+ "pattern": "^[\\w\\-.]*$",
94
+ "description": "The bundle name for this extra entry point."
95
+ },
96
+ "inject": {
97
+ "type": "boolean",
98
+ "description": "If the bundle will be referenced in the HTML file.",
99
+ "default": true
100
+ }
101
+ },
102
+ "additionalProperties": false,
103
+ "required": ["input"]
104
+ },
105
+ {
106
+ "type": "string",
107
+ "description": "The file to include."
108
+ }
109
+ ]
63
110
  }
64
- ]
111
+ }
65
112
  }
@@ -1,11 +1,14 @@
1
1
  import { BuilderOutput } from '@angular-devkit/architect';
2
2
  import { JsonObject } from '@angular-devkit/core';
3
+ import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
3
4
  import { CLIOptions } from '@storybook/core-common';
4
5
  export declare type StorybookBuilderOptions = JsonObject & {
5
6
  browserTarget?: string | null;
6
7
  tsConfig?: string;
7
8
  compodoc: boolean;
8
9
  compodocArgs: string[];
10
+ styles?: ExtraEntryPoint[];
11
+ stylePreprocessorOptions?: StylePreprocessorOptions;
9
12
  } & Pick<CLIOptions, 'port' | 'host' | 'configDir' | 'https' | 'sslCa' | 'sslCert' | 'sslKey' | 'smokeTest' | 'ci' | 'quiet' | 'docs'>;
10
13
  export declare type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
11
14
  declare const _default: import("@angular-devkit/architect/src/internal").Builder<StorybookBuilderOptions>;
@@ -46,17 +46,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
46
46
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
47
  }
48
48
  };
49
- var __rest = (this && this.__rest) || function (s, e) {
50
- var t = {};
51
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
- t[p] = s[p];
53
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
- t[p[i]] = s[p[i]];
57
- }
58
- return t;
59
- };
60
49
  var __importDefault = (this && this.__importDefault) || function (mod) {
61
50
  return (mod && mod.__esModule) ? mod : { "default": mod };
62
51
  };
@@ -64,6 +53,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
64
53
  var architect_1 = require("@angular-devkit/architect");
65
54
  var rxjs_1 = require("rxjs");
66
55
  var operators_1 = require("rxjs/operators");
56
+ var find_up_1 = require("find-up");
67
57
  // eslint-disable-next-line import/no-extraneous-dependencies
68
58
  var standalone_1 = __importDefault(require("@storybook/angular/standalone"));
69
59
  var run_compodoc_1 = require("../utils/run-compodoc");
@@ -78,8 +68,24 @@ function commandBuilder(options, context) {
78
68
  return runCompodoc$.pipe(operators_1.mapTo({ tsConfig: tsConfig }));
79
69
  }), operators_1.map(function (_a) {
80
70
  var tsConfig = _a.tsConfig;
81
- var browserTarget = options.browserTarget, otherOptions = __rest(options, ["browserTarget"]);
82
- var standaloneOptions = __assign(__assign({}, otherOptions), { angularBrowserTarget: browserTarget, angularBuilderContext: context, tsConfig: tsConfig });
71
+ var browserTarget = options.browserTarget, stylePreprocessorOptions = options.stylePreprocessorOptions, styles = options.styles, ci = options.ci, configDir = options.configDir, docs = options.docs, host = options.host, https = options.https, port = options.port, quiet = options.quiet, smokeTest = options.smokeTest, sslCa = options.sslCa, sslCert = options.sslCert, sslKey = options.sslKey;
72
+ var standaloneOptions = {
73
+ ci: ci,
74
+ configDir: configDir,
75
+ docs: docs,
76
+ host: host,
77
+ https: https,
78
+ port: port,
79
+ quiet: quiet,
80
+ smokeTest: smokeTest,
81
+ sslCa: sslCa,
82
+ sslCert: sslCert,
83
+ sslKey: sslKey,
84
+ angularBrowserTarget: browserTarget,
85
+ angularBuilderContext: context,
86
+ angularBuilderOptions: __assign(__assign({}, (stylePreprocessorOptions ? { stylePreprocessorOptions: stylePreprocessorOptions } : {})), (styles ? { styles: styles } : {})),
87
+ tsConfig: tsConfig,
88
+ };
83
89
  return standaloneOptions;
84
90
  }), operators_1.switchMap(function (standaloneOptions) { return runInstance(standaloneOptions); }), operators_1.map(function () {
85
91
  return { success: true };
@@ -104,7 +110,7 @@ function setup(options, context) {
104
110
  browserOptions = _f.sent();
105
111
  _f.label = 4;
106
112
  case 4: return [2 /*return*/, {
107
- tsConfig: (_b = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : browserOptions.tsConfig) !== null && _b !== void 0 ? _b : undefined,
113
+ tsConfig: (_b = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : find_up_1.sync('tsconfig.json', { cwd: options.configDir })) !== null && _b !== void 0 ? _b : browserOptions.tsConfig,
108
114
  }];
109
115
  }
110
116
  });
@@ -78,7 +78,62 @@
78
78
  "items": {
79
79
  "type": "string"
80
80
  }
81
+ },
82
+ "styles": {
83
+ "type": "array",
84
+ "description": "Global styles to be included in the build.",
85
+ "items": {
86
+ "$ref": "#/definitions/extraEntryPoint"
87
+ },
88
+ "default": ""
89
+ },
90
+ "stylePreprocessorOptions": {
91
+ "description": "Options to pass to style preprocessors.",
92
+ "type": "object",
93
+ "properties": {
94
+ "includePaths": {
95
+ "description": "Paths to include. Paths will be resolved to workspace root.",
96
+ "type": "array",
97
+ "items": {
98
+ "type": "string"
99
+ },
100
+ "default": []
101
+ }
102
+ },
103
+ "additionalProperties": false,
104
+ "default": ""
81
105
  }
82
106
  },
83
- "additionalProperties": false
107
+ "additionalProperties": false,
108
+ "definitions": {
109
+ "extraEntryPoint": {
110
+ "oneOf": [
111
+ {
112
+ "type": "object",
113
+ "properties": {
114
+ "input": {
115
+ "type": "string",
116
+ "description": "The file to include."
117
+ },
118
+ "bundleName": {
119
+ "type": "string",
120
+ "pattern": "^[\\w\\-.]*$",
121
+ "description": "The bundle name for this extra entry point."
122
+ },
123
+ "inject": {
124
+ "type": "boolean",
125
+ "description": "If the bundle will be referenced in the HTML file.",
126
+ "default": true
127
+ }
128
+ },
129
+ "additionalProperties": false,
130
+ "required": ["input"]
131
+ },
132
+ {
133
+ "type": "string",
134
+ "description": "The file to include."
135
+ }
136
+ ]
137
+ }
138
+ }
84
139
  }
@@ -79,6 +79,7 @@ var module_is_available_1 = require("./utils/module-is-available");
79
79
  var angular_cli_webpack_12_2_x_1 = require("./angular-cli-webpack-12.2.x");
80
80
  var angular_cli_webpack_13_x_x_1 = require("./angular-cli-webpack-13.x.x");
81
81
  var angular_cli_webpack_older_1 = require("./angular-cli-webpack-older");
82
+ var angular_read_workspace_1 = require("./angular-read-workspace");
82
83
  function webpackFinal(baseConfig, options) {
83
84
  return __awaiter(this, void 0, void 0, function () {
84
85
  var angularCliVersion, webpackGetterByVersions, webpackGetter;
@@ -98,7 +99,7 @@ function webpackFinal(baseConfig, options) {
98
99
  info: '=> Loading angular-cli config for angular >= 13.0.0',
99
100
  condition: semver_1.default.satisfies(angularCliVersion, '>=13.0.0'),
100
101
  getWebpackConfig: function (_baseConfig, _options) { return __awaiter(_this, void 0, void 0, function () {
101
- var builderContext, builderOptions;
102
+ var builderContext, builderOptions, legacyDefaultOptions;
102
103
  return __generator(this, function (_a) {
103
104
  switch (_a.label) {
104
105
  case 0:
@@ -106,8 +107,11 @@ function webpackFinal(baseConfig, options) {
106
107
  return [4 /*yield*/, getBuilderOptions(_options, builderContext)];
107
108
  case 1:
108
109
  builderOptions = _a.sent();
110
+ return [4 /*yield*/, getLegacyDefaultBuildOptions(_options)];
111
+ case 2:
112
+ legacyDefaultOptions = _a.sent();
109
113
  return [2 /*return*/, angular_cli_webpack_13_x_x_1.getWebpackConfig(_baseConfig, {
110
- builderOptions: builderOptions,
114
+ builderOptions: __assign(__assign({}, builderOptions), legacyDefaultOptions),
111
115
  builderContext: builderContext,
112
116
  })];
113
117
  }
@@ -167,11 +171,11 @@ function getBuilderContext(options) {
167
171
  * Merge target options from browser target and from storybook options
168
172
  */
169
173
  function getBuilderOptions(options, builderContext) {
170
- var _a, _b, _c, _d;
174
+ var _a, _b;
171
175
  return __awaiter(this, void 0, void 0, function () {
172
176
  var browserTargetOptions, browserTarget, builderOptions;
173
- return __generator(this, function (_e) {
174
- switch (_e.label) {
177
+ return __generator(this, function (_c) {
178
+ switch (_c.label) {
175
179
  case 0:
176
180
  browserTargetOptions = {};
177
181
  if (!options.angularBrowserTarget) return [3 /*break*/, 2];
@@ -179,13 +183,63 @@ function getBuilderOptions(options, builderContext) {
179
183
  node_logger_1.logger.info("=> Using angular browser target options from \"" + browserTarget.project + ":" + browserTarget.target + (browserTarget.configuration ? ":" + browserTarget.configuration : '') + "\"");
180
184
  return [4 /*yield*/, builderContext.getTargetOptions(browserTarget)];
181
185
  case 1:
182
- browserTargetOptions = _e.sent();
183
- _e.label = 2;
186
+ browserTargetOptions = _c.sent();
187
+ _c.label = 2;
184
188
  case 2:
185
- builderOptions = __assign(__assign(__assign({}, browserTargetOptions), options.angularBuilderOptions), { tsConfig: (_d = (_c = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : (_b = options.angularBuilderOptions) === null || _b === void 0 ? void 0 : _b.tsConfig) !== null && _c !== void 0 ? _c : browserTargetOptions.tsConfig) !== null && _d !== void 0 ? _d : find_up_1.sync('tsconfig.json', { cwd: options.configDir }) });
189
+ builderOptions = __assign(__assign(__assign({}, browserTargetOptions), options.angularBuilderOptions), { tsConfig: (_b = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : find_up_1.sync('tsconfig.json', { cwd: options.configDir })) !== null && _b !== void 0 ? _b : browserTargetOptions.tsConfig });
186
190
  node_logger_1.logger.info("=> Using angular project with \"tsConfig:" + builderOptions.tsConfig + "\"");
187
191
  return [2 /*return*/, builderOptions];
188
192
  }
189
193
  });
190
194
  });
191
195
  }
196
+ /**
197
+ * Get options from legacy way
198
+ * /!\ This is only for backward compatibility and would be removed on Storybook 7.0
199
+ * only work for angular.json with [defaultProject].build or "storybook.build" config
200
+ */
201
+ function getLegacyDefaultBuildOptions(options) {
202
+ return __awaiter(this, void 0, void 0, function () {
203
+ var dirToSearch, workspaceConfig, error_1, browserTarget, _a, target, project;
204
+ return __generator(this, function (_b) {
205
+ switch (_b.label) {
206
+ case 0:
207
+ if (options.angularBrowserTarget !== undefined) {
208
+ // Not use legacy way with builder (`angularBrowserTarget` is defined or null with builder and undefined without)
209
+ return [2 /*return*/, {}];
210
+ }
211
+ dirToSearch = process.cwd();
212
+ _b.label = 1;
213
+ case 1:
214
+ _b.trys.push([1, 3, , 4]);
215
+ return [4 /*yield*/, angular_read_workspace_1.readAngularWorkspaceConfig(dirToSearch)];
216
+ case 2:
217
+ workspaceConfig = _b.sent();
218
+ return [3 /*break*/, 4];
219
+ case 3:
220
+ error_1 = _b.sent();
221
+ node_logger_1.logger.error("=> Could not find angular workspace config (angular.json) on this path \"" + dirToSearch + "\"");
222
+ node_logger_1.logger.info("=> Fail to load angular-cli config. Using base config");
223
+ return [2 /*return*/, {}];
224
+ case 4:
225
+ // Find angular project target
226
+ try {
227
+ browserTarget = {
228
+ configuration: undefined,
229
+ project: angular_read_workspace_1.getDefaultProjectName(workspaceConfig),
230
+ target: 'build',
231
+ };
232
+ _a = angular_read_workspace_1.findAngularProjectTarget(workspaceConfig, browserTarget.project, browserTarget.target), target = _a.target, project = _a.project;
233
+ node_logger_1.logger.info("=> Using angular project \"" + project + ":" + target + "\" for configuring Storybook");
234
+ return [2 /*return*/, __assign({}, target.options)];
235
+ }
236
+ catch (error) {
237
+ node_logger_1.logger.error("=> Could not find angular project: " + error.message);
238
+ node_logger_1.logger.info("=> Fail to load angular-cli config. Using base config");
239
+ return [2 /*return*/, {}];
240
+ }
241
+ return [2 /*return*/];
242
+ }
243
+ });
244
+ });
245
+ }
@@ -1,9 +1,12 @@
1
1
  import { LoadOptions, Options as CoreOptions } from '@storybook/core-common';
2
2
  import { BuilderContext } from '@angular-devkit/architect';
3
- import { JsonObject } from '@angular-devkit/core';
3
+ import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
4
4
  export declare type PresetOptions = CoreOptions & {
5
5
  angularBrowserTarget?: string | null;
6
- angularBuilderOptions?: JsonObject | null;
6
+ angularBuilderOptions?: {
7
+ styles?: ExtraEntryPoint[];
8
+ stylePreprocessorOptions?: StylePreprocessorOptions;
9
+ };
7
10
  angularBuilderContext?: BuilderContext | null;
8
11
  tsConfig?: string;
9
12
  };
@@ -1,2 +1,2 @@
1
- import { Configuration, RuleSetRule } from 'webpack';
1
+ import type { Configuration, RuleSetRule } from 'webpack';
2
2
  export declare const filterOutStylingRules: (config: Configuration) => RuleSetRule[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "6.4.0-rc.8",
3
+ "version": "6.4.2",
4
4
  "description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -45,15 +45,15 @@
45
45
  "prepare": "node ../../scripts/prepare.js"
46
46
  },
47
47
  "dependencies": {
48
- "@storybook/addons": "6.4.0-rc.8",
49
- "@storybook/api": "6.4.0-rc.8",
50
- "@storybook/core": "6.4.0-rc.8",
51
- "@storybook/core-common": "6.4.0-rc.8",
52
- "@storybook/core-events": "6.4.0-rc.8",
48
+ "@storybook/addons": "6.4.2",
49
+ "@storybook/api": "6.4.2",
50
+ "@storybook/core": "6.4.2",
51
+ "@storybook/core-common": "6.4.2",
52
+ "@storybook/core-events": "6.4.2",
53
53
  "@storybook/csf": "0.0.2--canary.87bc651.0",
54
- "@storybook/node-logger": "6.4.0-rc.8",
54
+ "@storybook/node-logger": "6.4.2",
55
55
  "@storybook/semver": "^7.3.2",
56
- "@storybook/store": "6.4.0-rc.8",
56
+ "@storybook/store": "6.4.2",
57
57
  "@types/webpack-env": "^1.16.0",
58
58
  "autoprefixer": "^9.8.6",
59
59
  "core-js": "^3.8.2",
@@ -138,5 +138,5 @@
138
138
  "access": "public"
139
139
  },
140
140
  "builders": "dist/ts3.9/builders/builders.json",
141
- "gitHead": "0be6dde43b848e310e705a4354c6c8abe0431448"
141
+ "gitHead": "6e5ec774cf8e7fd8a1870fc2469c2dfa9ec112b7"
142
142
  }
package/standalone.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { CLIOptions, LoadOptions, BuilderOptions } from '@storybook/core-common';
2
2
  import { BuilderContext } from '@angular-devkit/architect';
3
- import { JsonObject } from '@angular-devkit/core';
3
+ import { JsonValue } from '@angular-devkit/core';
4
+ import { JsonSchema } from '@angular-devkit/core/src/json/schema';
4
5
 
5
6
  export type StandaloneOptions = Partial<
6
7
  CLIOptions &
@@ -8,7 +9,10 @@ export type StandaloneOptions = Partial<
8
9
  BuilderOptions & {
9
10
  mode?: 'static' | 'dev';
10
11
  angularBrowserTarget?: string | null;
11
- angularBuilderOptions?: JsonObject;
12
+ angularBuilderOptions?: JsonObject & {
13
+ styles?: ExtraEntryPoint[];
14
+ stylePreprocessorOptions?: StylePreprocessorOptions;
15
+ };
12
16
  angularBuilderContext?: BuilderContext | null;
13
17
  tsConfig?: string;
14
18
  }