@storybook/angular 6.4.0-beta.8 → 6.4.0-rc.10
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/ts3.4/builders/build-storybook/index.d.ts +4 -1
- package/dist/ts3.4/builders/start-storybook/index.d.ts +4 -1
- package/dist/ts3.4/client/preview/config.d.ts +2 -0
- package/dist/ts3.4/client/preview/decorateStory.d.ts +1 -0
- package/dist/ts3.4/server/angular-cli-webpack-12.2.x.d.ts +1 -0
- package/dist/ts3.4/server/angular-cli-webpack-13.x.x.d.ts +1 -0
- package/dist/ts3.4/server/angular-cli-webpack-older.d.ts +72 -0
- package/dist/ts3.4/server/angular-devkit-build-webpack.d.ts +1 -1
- package/dist/ts3.4/server/framework-preset-angular-cli.d.ts +2 -72
- package/dist/ts3.4/server/framework-preset-angular-ivy.d.ts +3 -3
- package/dist/ts3.4/server/options.d.ts +12 -1
- package/dist/ts3.4/server/preset.d.ts +3 -0
- package/dist/ts3.9/builders/build-storybook/index.d.ts +4 -1
- package/dist/ts3.9/builders/build-storybook/index.js +15 -14
- package/dist/ts3.9/builders/build-storybook/schema.json +54 -14
- package/dist/ts3.9/builders/start-storybook/index.d.ts +4 -1
- package/dist/ts3.9/builders/start-storybook/index.js +21 -14
- package/dist/ts3.9/builders/start-storybook/schema.json +54 -14
- package/dist/ts3.9/client/preview/config.d.ts +2 -0
- package/dist/ts3.9/client/preview/config.js +3 -0
- package/dist/ts3.9/client/preview/decorateStory.d.ts +1 -0
- package/dist/ts3.9/client/preview/decorateStory.js +2 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/angular.json +32 -0
- package/dist/ts3.9/server/angular-cli-webpack-12.2.x.d.ts +1 -0
- package/dist/ts3.9/server/angular-cli-webpack-12.2.x.js +93 -0
- package/dist/ts3.9/server/angular-cli-webpack-13.x.x.d.ts +1 -0
- package/dist/ts3.9/server/angular-cli-webpack-13.x.x.js +93 -0
- package/dist/ts3.9/server/angular-cli-webpack-older.d.ts +72 -0
- package/dist/ts3.9/server/angular-cli-webpack-older.js +156 -0
- package/dist/ts3.9/server/angular-devkit-build-webpack.d.ts +1 -1
- package/dist/ts3.9/server/angular-devkit-build-webpack.js +18 -8
- package/dist/ts3.9/server/framework-preset-angular-cli.d.ts +2 -72
- package/dist/ts3.9/server/framework-preset-angular-cli.js +119 -86
- package/dist/ts3.9/server/framework-preset-angular-ivy.d.ts +3 -3
- package/dist/ts3.9/server/framework-preset-angular-ivy.js +45 -10
- package/dist/ts3.9/server/options.d.ts +12 -1
- package/dist/ts3.9/server/options.js +1 -5
- package/dist/ts3.9/server/preset.d.ts +3 -0
- package/dist/ts3.9/server/preset.js +21 -0
- package/dist/ts3.9/server/utils/filter-out-styling-rules.d.ts +1 -1
- package/package.json +19 -12
- package/preset.js +1 -7
- package/standalone.d.ts +8 -0
- package/types-7-0.d.ts +1 -0
|
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
13
32
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
33
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
34
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -46,113 +65,127 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
65
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
66
|
}
|
|
48
67
|
};
|
|
49
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
50
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
51
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
52
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
53
|
-
r[k] = a[j];
|
|
54
|
-
return r;
|
|
55
|
-
};
|
|
56
68
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
57
69
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
58
70
|
};
|
|
59
71
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60
72
|
exports.webpackFinal = void 0;
|
|
61
73
|
var node_logger_1 = require("@storybook/node-logger");
|
|
62
|
-
var tsconfig_paths_webpack_plugin_1 = __importDefault(require("tsconfig-paths-webpack-plugin"));
|
|
63
74
|
var architect_1 = require("@angular-devkit/architect");
|
|
64
|
-
var
|
|
65
|
-
var
|
|
75
|
+
var find_up_1 = require("find-up");
|
|
76
|
+
var semver_1 = __importDefault(require("@storybook/semver"));
|
|
77
|
+
var core_1 = require("@angular-devkit/core");
|
|
66
78
|
var module_is_available_1 = require("./utils/module-is-available");
|
|
67
|
-
var
|
|
79
|
+
var angular_cli_webpack_12_2_x_1 = require("./angular-cli-webpack-12.2.x");
|
|
80
|
+
var angular_cli_webpack_13_x_x_1 = require("./angular-cli-webpack-13.x.x");
|
|
81
|
+
var angular_cli_webpack_older_1 = require("./angular-cli-webpack-older");
|
|
68
82
|
function webpackFinal(baseConfig, options) {
|
|
69
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
-
var
|
|
84
|
+
var angularCliVersion, webpackGetterByVersions, webpackGetter;
|
|
85
|
+
var _this = this;
|
|
71
86
|
return __generator(this, function (_a) {
|
|
72
87
|
switch (_a.label) {
|
|
73
88
|
case 0:
|
|
74
|
-
dirToSearch = process.cwd();
|
|
75
89
|
if (!module_is_available_1.moduleIsAvailable('@angular-devkit/build-angular')) {
|
|
76
90
|
node_logger_1.logger.info('=> Using base config because "@angular-devkit/build-angular" is not installed');
|
|
77
91
|
return [2 /*return*/, baseConfig];
|
|
78
92
|
}
|
|
79
|
-
|
|
80
|
-
_a.label = 1;
|
|
93
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require('@angular/cli')); }).then(function (m) { return semver_1.default.coerce(m.VERSION.full); })];
|
|
81
94
|
case 1:
|
|
82
|
-
_a.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
95
|
+
angularCliVersion = _a.sent();
|
|
96
|
+
webpackGetterByVersions = [
|
|
97
|
+
{
|
|
98
|
+
info: '=> Loading angular-cli config for angular >= 13.0.0',
|
|
99
|
+
condition: semver_1.default.satisfies(angularCliVersion, '>=13.0.0'),
|
|
100
|
+
getWebpackConfig: function (_baseConfig, _options) { return __awaiter(_this, void 0, void 0, function () {
|
|
101
|
+
var builderContext, builderOptions;
|
|
102
|
+
return __generator(this, function (_a) {
|
|
103
|
+
switch (_a.label) {
|
|
104
|
+
case 0:
|
|
105
|
+
builderContext = getBuilderContext(_options);
|
|
106
|
+
return [4 /*yield*/, getBuilderOptions(_options, builderContext)];
|
|
107
|
+
case 1:
|
|
108
|
+
builderOptions = _a.sent();
|
|
109
|
+
return [2 /*return*/, angular_cli_webpack_13_x_x_1.getWebpackConfig(_baseConfig, {
|
|
110
|
+
builderOptions: builderOptions,
|
|
111
|
+
builderContext: builderContext,
|
|
112
|
+
})];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}); },
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
info: '=> Loading angular-cli config for angular 12.2.x',
|
|
119
|
+
condition: semver_1.default.satisfies(angularCliVersion, '12.2.x') && options.angularBuilderContext,
|
|
120
|
+
getWebpackConfig: function (_baseConfig, _options) { return __awaiter(_this, void 0, void 0, function () {
|
|
121
|
+
var builderContext, builderOptions;
|
|
122
|
+
return __generator(this, function (_a) {
|
|
123
|
+
switch (_a.label) {
|
|
124
|
+
case 0:
|
|
125
|
+
builderContext = getBuilderContext(_options);
|
|
126
|
+
return [4 /*yield*/, getBuilderOptions(_options, builderContext)];
|
|
127
|
+
case 1:
|
|
128
|
+
builderOptions = _a.sent();
|
|
129
|
+
return [2 /*return*/, angular_cli_webpack_12_2_x_1.getWebpackConfig(_baseConfig, {
|
|
130
|
+
builderOptions: builderOptions,
|
|
131
|
+
builderContext: builderContext,
|
|
132
|
+
})];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}); },
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
info: '=> Loading angular-cli config for angular lower than 12.2.0',
|
|
139
|
+
condition: true,
|
|
140
|
+
getWebpackConfig: angular_cli_webpack_older_1.getWebpackConfig,
|
|
141
|
+
},
|
|
142
|
+
];
|
|
143
|
+
webpackGetter = webpackGetterByVersions.find(function (wg) { return wg.condition; });
|
|
144
|
+
node_logger_1.logger.info(webpackGetter.info);
|
|
145
|
+
return [2 /*return*/, Promise.resolve(webpackGetter.getWebpackConfig(baseConfig, options))];
|
|
133
146
|
}
|
|
134
147
|
});
|
|
135
148
|
});
|
|
136
149
|
}
|
|
137
150
|
exports.webpackFinal = webpackFinal;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
151
|
+
/**
|
|
152
|
+
* Get Builder Context
|
|
153
|
+
* If storybook is not start by angular builder create dumb BuilderContext
|
|
154
|
+
*/
|
|
155
|
+
function getBuilderContext(options) {
|
|
156
|
+
var _a;
|
|
157
|
+
return ((_a = options.angularBuilderContext) !== null && _a !== void 0 ? _a : {
|
|
158
|
+
target: { project: 'noop-project', builder: '', options: {} },
|
|
159
|
+
workspaceRoot: process.cwd(),
|
|
160
|
+
getProjectMetadata: function () { return ({}); },
|
|
161
|
+
getTargetOptions: function () { return ({}); },
|
|
162
|
+
logger: new core_1.logging.Logger('Storybook'),
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Get builder options
|
|
167
|
+
* Merge target options from browser target and from storybook options
|
|
168
|
+
*/
|
|
169
|
+
function getBuilderOptions(options, builderContext) {
|
|
170
|
+
var _a, _b;
|
|
171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
172
|
+
var browserTargetOptions, browserTarget, builderOptions;
|
|
173
|
+
return __generator(this, function (_c) {
|
|
174
|
+
switch (_c.label) {
|
|
175
|
+
case 0:
|
|
176
|
+
browserTargetOptions = {};
|
|
177
|
+
if (!options.angularBrowserTarget) return [3 /*break*/, 2];
|
|
178
|
+
browserTarget = architect_1.targetFromTargetString(options.angularBrowserTarget);
|
|
179
|
+
node_logger_1.logger.info("=> Using angular browser target options from \"" + browserTarget.project + ":" + browserTarget.target + (browserTarget.configuration ? ":" + browserTarget.configuration : '') + "\"");
|
|
180
|
+
return [4 /*yield*/, builderContext.getTargetOptions(browserTarget)];
|
|
181
|
+
case 1:
|
|
182
|
+
browserTargetOptions = _c.sent();
|
|
183
|
+
_c.label = 2;
|
|
184
|
+
case 2:
|
|
185
|
+
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
|
+
node_logger_1.logger.info("=> Using angular project with \"tsConfig:" + builderOptions.tsConfig + "\"");
|
|
187
|
+
return [2 /*return*/, builderOptions];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
158
191
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Configuration } from 'webpack';
|
|
2
|
-
import {
|
|
2
|
+
import { PresetOptions } from './options';
|
|
3
3
|
/**
|
|
4
4
|
* Run ngcc for converting modules to ivy format before starting storybook
|
|
5
5
|
* This step is needed in order to support Ivy in storybook
|
|
6
6
|
*
|
|
7
7
|
* Information about Ivy can be found here https://angular.io/guide/ivy
|
|
8
8
|
*/
|
|
9
|
-
export declare const runNgcc: () => void
|
|
10
|
-
export declare const webpack: (webpackConfig: Configuration, options:
|
|
9
|
+
export declare const runNgcc: () => Promise<void>;
|
|
10
|
+
export declare const webpack: (webpackConfig: Configuration, options: PresetOptions) => Promise<Configuration>;
|
|
@@ -67,24 +67,59 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
67
67
|
};
|
|
68
68
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
69
69
|
exports.webpack = exports.runNgcc = void 0;
|
|
70
|
-
var ngcc_1 = require("@angular/compiler-cli/ngcc");
|
|
71
70
|
var path = __importStar(require("path"));
|
|
71
|
+
/**
|
|
72
|
+
* Source : https://github.com/angular/angular-cli/blob/ebccb5de4a455af813c5e82483db6af20666bdbd/packages/angular_devkit/build_angular/src/utils/load-esm.ts#L23
|
|
73
|
+
* This uses a dynamic import to load a module which may be ESM.
|
|
74
|
+
* CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
|
|
75
|
+
* will currently, unconditionally downlevel dynamic import into a require call.
|
|
76
|
+
* require calls cannot load ESM code and will result in a runtime error. To workaround
|
|
77
|
+
* this, a Function constructor is used to prevent TypeScript from changing the dynamic import.
|
|
78
|
+
* Once TypeScript provides support for keeping the dynamic import this workaround can
|
|
79
|
+
* be dropped.
|
|
80
|
+
*
|
|
81
|
+
* @param modulePath The path of the module to load.
|
|
82
|
+
* @returns A Promise that resolves to the dynamically imported module.
|
|
83
|
+
*/
|
|
84
|
+
function loadEsmModule(modulePath) {
|
|
85
|
+
// eslint-disable-next-line no-new-func
|
|
86
|
+
return new Function('modulePath', "return import(modulePath);")(modulePath);
|
|
87
|
+
}
|
|
72
88
|
/**
|
|
73
89
|
* Run ngcc for converting modules to ivy format before starting storybook
|
|
74
90
|
* This step is needed in order to support Ivy in storybook
|
|
75
91
|
*
|
|
76
92
|
* Information about Ivy can be found here https://angular.io/guide/ivy
|
|
77
93
|
*/
|
|
78
|
-
exports.runNgcc = function () {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
94
|
+
exports.runNgcc = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var ngcc, error_1;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
switch (_a.label) {
|
|
98
|
+
case 0:
|
|
99
|
+
_a.trys.push([0, 2, , 4]);
|
|
100
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require('@angular/compiler-cli/ngcc')); })];
|
|
101
|
+
case 1:
|
|
102
|
+
ngcc = _a.sent();
|
|
103
|
+
return [3 /*break*/, 4];
|
|
104
|
+
case 2:
|
|
105
|
+
error_1 = _a.sent();
|
|
106
|
+
return [4 /*yield*/, loadEsmModule('@angular/compiler-cli/ngcc')];
|
|
107
|
+
case 3:
|
|
108
|
+
ngcc = _a.sent();
|
|
109
|
+
return [3 /*break*/, 4];
|
|
110
|
+
case 4:
|
|
111
|
+
ngcc.process({
|
|
112
|
+
// should be async: true but does not work due to
|
|
113
|
+
// https://github.com/storybookjs/storybook/pull/11157/files#r615413803
|
|
114
|
+
async: false,
|
|
115
|
+
basePath: path.join(process.cwd(), 'node_modules'),
|
|
116
|
+
createNewEntryPointFormats: true,
|
|
117
|
+
compileAllFormats: false,
|
|
118
|
+
});
|
|
119
|
+
return [2 /*return*/];
|
|
120
|
+
}
|
|
86
121
|
});
|
|
87
|
-
};
|
|
122
|
+
}); };
|
|
88
123
|
exports.webpack = function (webpackConfig, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
89
124
|
var angularOptions;
|
|
90
125
|
return __generator(this, function (_a) {
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import { LoadOptions } from '@storybook/core-common';
|
|
1
|
+
import { LoadOptions, Options as CoreOptions } from '@storybook/core-common';
|
|
2
|
+
import { BuilderContext } from '@angular-devkit/architect';
|
|
3
|
+
import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
|
|
4
|
+
export declare type PresetOptions = CoreOptions & {
|
|
5
|
+
angularBrowserTarget?: string | null;
|
|
6
|
+
angularBuilderOptions?: {
|
|
7
|
+
styles?: ExtraEntryPoint[];
|
|
8
|
+
stylePreprocessorOptions?: StylePreprocessorOptions;
|
|
9
|
+
};
|
|
10
|
+
angularBuilderContext?: BuilderContext | null;
|
|
11
|
+
tsConfig?: string;
|
|
12
|
+
};
|
|
2
13
|
declare const _default: LoadOptions;
|
|
3
14
|
export default _default;
|
|
@@ -4,9 +4,5 @@ var read_pkg_up_1 = require("read-pkg-up");
|
|
|
4
4
|
exports.default = {
|
|
5
5
|
packageJson: read_pkg_up_1.sync({ cwd: __dirname }).packageJson,
|
|
6
6
|
framework: 'angular',
|
|
7
|
-
frameworkPresets: [
|
|
8
|
-
require.resolve('./framework-preset-angular'),
|
|
9
|
-
require.resolve('./framework-preset-angular-cli'),
|
|
10
|
-
require.resolve('./framework-preset-angular-ivy'),
|
|
11
|
-
],
|
|
7
|
+
frameworkPresets: [require.resolve('./preset')],
|
|
12
8
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
3
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
5
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
6
|
+
r[k] = a[j];
|
|
7
|
+
return r;
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.addons = exports.config = void 0;
|
|
11
|
+
exports.config = function (entries) {
|
|
12
|
+
if (entries === void 0) { entries = []; }
|
|
13
|
+
return __spreadArrays(entries, [
|
|
14
|
+
require.resolve('../client/preview/config'),
|
|
15
|
+
]);
|
|
16
|
+
};
|
|
17
|
+
exports.addons = [
|
|
18
|
+
require.resolve('./framework-preset-angular'),
|
|
19
|
+
require.resolve('./framework-preset-angular-cli'),
|
|
20
|
+
require.resolve('./framework-preset-angular-ivy'),
|
|
21
|
+
];
|
|
@@ -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-
|
|
3
|
+
"version": "6.4.0-rc.10",
|
|
4
4
|
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -45,17 +45,19 @@
|
|
|
45
45
|
"prepare": "node ../../scripts/prepare.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@storybook/addons": "6.4.0-
|
|
49
|
-
"@storybook/api": "6.4.0-
|
|
50
|
-
"@storybook/core": "6.4.0-
|
|
51
|
-
"@storybook/core-common": "6.4.0-
|
|
52
|
-
"@storybook/core-events": "6.4.0-
|
|
53
|
-
"@storybook/csf": "0.0.2--canary.
|
|
54
|
-
"@storybook/node-logger": "6.4.0-
|
|
55
|
-
"@storybook/
|
|
48
|
+
"@storybook/addons": "6.4.0-rc.10",
|
|
49
|
+
"@storybook/api": "6.4.0-rc.10",
|
|
50
|
+
"@storybook/core": "6.4.0-rc.10",
|
|
51
|
+
"@storybook/core-common": "6.4.0-rc.10",
|
|
52
|
+
"@storybook/core-events": "6.4.0-rc.10",
|
|
53
|
+
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
54
|
+
"@storybook/node-logger": "6.4.0-rc.10",
|
|
55
|
+
"@storybook/semver": "^7.3.2",
|
|
56
|
+
"@storybook/store": "6.4.0-rc.10",
|
|
56
57
|
"@types/webpack-env": "^1.16.0",
|
|
57
58
|
"autoprefixer": "^9.8.6",
|
|
58
59
|
"core-js": "^3.8.2",
|
|
60
|
+
"find-up": "^5.0.0",
|
|
59
61
|
"fork-ts-checker-webpack-plugin": "^4.1.6",
|
|
60
62
|
"global": "^4.4.0",
|
|
61
63
|
"postcss": "^7.0.36",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"@angular-devkit/architect": "~0.1102.0",
|
|
79
81
|
"@angular-devkit/build-angular": "~0.1102.13",
|
|
80
82
|
"@angular-devkit/core": "^11.2.13",
|
|
83
|
+
"@angular/cli": "^11.2.14",
|
|
81
84
|
"@angular/common": "^11.2.14",
|
|
82
85
|
"@angular/compiler": "^11.2.14",
|
|
83
86
|
"@angular/compiler-cli": "^11.2.14",
|
|
@@ -96,8 +99,9 @@
|
|
|
96
99
|
},
|
|
97
100
|
"peerDependencies": {
|
|
98
101
|
"@angular-devkit/architect": ">=0.8.9",
|
|
99
|
-
"@angular-devkit/build-angular": ">=0.8.9",
|
|
102
|
+
"@angular-devkit/build-angular": ">=0.8.9 || >= 12.0.0",
|
|
100
103
|
"@angular-devkit/core": "^0.6.1 || >=7.0.0",
|
|
104
|
+
"@angular/cli": ">=6.0.0",
|
|
101
105
|
"@angular/common": ">=6.0.0",
|
|
102
106
|
"@angular/compiler": ">=6.0.0",
|
|
103
107
|
"@angular/compiler-cli": ">=6.0.0",
|
|
@@ -109,11 +113,14 @@
|
|
|
109
113
|
"@babel/core": "*",
|
|
110
114
|
"@nrwl/workspace": ">=11.1.0",
|
|
111
115
|
"@webcomponents/custom-elements": ">=1.4.3",
|
|
112
|
-
"rxjs": "^6.0.0",
|
|
116
|
+
"rxjs": "^6.0.0 || ^7.4.0",
|
|
113
117
|
"typescript": "^3.4.0 || >=4.0.0",
|
|
114
118
|
"zone.js": "^0.8.29 || ^0.9.0 || ^0.10.0 || ^0.11.0"
|
|
115
119
|
},
|
|
116
120
|
"peerDependenciesMeta": {
|
|
121
|
+
"@angular/cli": {
|
|
122
|
+
"optional": true
|
|
123
|
+
},
|
|
117
124
|
"@angular/elements": {
|
|
118
125
|
"optional": true
|
|
119
126
|
},
|
|
@@ -131,5 +138,5 @@
|
|
|
131
138
|
"access": "public"
|
|
132
139
|
},
|
|
133
140
|
"builders": "dist/ts3.9/builders/builders.json",
|
|
134
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "5ae60fc639dfd19becda5dcf42f4e42e6f88b02f"
|
|
135
142
|
}
|
package/preset.js
CHANGED
package/standalone.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { CLIOptions, LoadOptions, BuilderOptions } from '@storybook/core-common';
|
|
2
|
+
import { BuilderContext } from '@angular-devkit/architect';
|
|
3
|
+
import { JsonValue } from '@angular-devkit/core';
|
|
4
|
+
import { JsonSchema } from '@angular-devkit/core/src/json/schema';
|
|
2
5
|
|
|
3
6
|
export type StandaloneOptions = Partial<
|
|
4
7
|
CLIOptions &
|
|
@@ -6,6 +9,11 @@ export type StandaloneOptions = Partial<
|
|
|
6
9
|
BuilderOptions & {
|
|
7
10
|
mode?: 'static' | 'dev';
|
|
8
11
|
angularBrowserTarget?: string | null;
|
|
12
|
+
angularBuilderOptions?: JsonObject & {
|
|
13
|
+
styles?: ExtraEntryPoint[];
|
|
14
|
+
stylePreprocessorOptions?: StylePreprocessorOptions;
|
|
15
|
+
};
|
|
16
|
+
angularBuilderContext?: BuilderContext | null;
|
|
9
17
|
tsConfig?: string;
|
|
10
18
|
}
|
|
11
19
|
>;
|
package/types-7-0.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/ts3.9/client/preview/types-7-0.d';
|