@storybook/angular 7.0.0-alpha.31 → 7.0.0-alpha.33
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/types/builders/utils/run-compodoc.js +1 -0
- package/dist/types/client/angular/helpers.js +0 -1
- package/dist/types/client/docs/compodoc.js +2 -3
- package/dist/types/server/angular-cli-webpack-older.js +0 -1
- package/dist/types/server/angular-devkit-build-webpack.js +1 -4
- package/package.json +13 -13
|
@@ -48,6 +48,7 @@ const runCompodoc = ({ compodocArgs, tsconfig }, context) => {
|
|
|
48
48
|
context.logger.info(finalCompodocArgs.join(' '));
|
|
49
49
|
const child = (0, child_process_1.spawn)('npx', finalCompodocArgs, {
|
|
50
50
|
cwd: context.workspaceRoot,
|
|
51
|
+
shell: true,
|
|
51
52
|
});
|
|
52
53
|
child.stdout.on('data', (data) => {
|
|
53
54
|
context.logger.info(data.toString());
|
|
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.renderNgApp = void 0;
|
|
7
|
-
// @ts-ignore
|
|
8
7
|
const global_1 = __importDefault(require("global"));
|
|
9
8
|
const core_1 = require("@angular/core");
|
|
10
9
|
const forms_1 = require("@angular/forms");
|
|
@@ -9,11 +9,11 @@ const isMethod = (methodOrProp) => {
|
|
|
9
9
|
};
|
|
10
10
|
exports.isMethod = isMethod;
|
|
11
11
|
const setCompodocJson = (compodocJson) => {
|
|
12
|
-
// @ts-ignore
|
|
12
|
+
// @ts-expect-error (Converted from ts-ignore)
|
|
13
13
|
window.__STORYBOOK_COMPODOC_JSON__ = compodocJson;
|
|
14
14
|
};
|
|
15
15
|
exports.setCompodocJson = setCompodocJson;
|
|
16
|
-
// @ts-ignore
|
|
16
|
+
// @ts-expect-error (Converted from ts-ignore)
|
|
17
17
|
const getCompodocJson = () => window.__STORYBOOK_COMPODOC_JSON__;
|
|
18
18
|
exports.getCompodocJson = getCompodocJson;
|
|
19
19
|
const checkValidComponentOrDirective = (component) => {
|
|
@@ -165,7 +165,6 @@ const extractDefaultValueFromComments = (property, value) => {
|
|
|
165
165
|
let commentValue = value;
|
|
166
166
|
property.jsdoctags.forEach((tag) => {
|
|
167
167
|
if (['default', 'defaultvalue'].includes(tag.tagName.escapedText)) {
|
|
168
|
-
// @ts-ignore
|
|
169
168
|
const dom = new window.DOMParser().parseFromString(tag.comment, 'text/html');
|
|
170
169
|
commentValue = dom.body.textContent;
|
|
171
170
|
}
|
|
@@ -77,7 +77,6 @@ function mergeAngularCliWebpackConfig({ cliCommonWebpackConfig, cliStyleWebpackC
|
|
|
77
77
|
// styleWebpackConfig.entry adds global style files to the webpack context
|
|
78
78
|
const entry = [
|
|
79
79
|
...baseConfig.entry,
|
|
80
|
-
// @ts-ignore
|
|
81
80
|
...Object.values(cliStyleWebpackConfig.entry).reduce((acc, item) => acc.concat(item), []),
|
|
82
81
|
];
|
|
83
82
|
const module = {
|
|
@@ -107,8 +107,6 @@ const buildWebpackConfigOptions = async (dirToSearch, project, target, confName)
|
|
|
107
107
|
sourceMap: {},
|
|
108
108
|
styles: [],
|
|
109
109
|
// Deleted in angular 12. Keep for compatibility with versions lower than angular 12
|
|
110
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
111
|
-
// @ts-ignore
|
|
112
110
|
lazyModules: [],
|
|
113
111
|
// Project Options
|
|
114
112
|
...projectBuildOptions,
|
|
@@ -117,8 +115,7 @@ const buildWebpackConfigOptions = async (dirToSearch, project, target, confName)
|
|
|
117
115
|
// Forced options
|
|
118
116
|
statsJson: false,
|
|
119
117
|
// Deleted in angular 12. Keep for compatibility with versions lower than angular 12
|
|
120
|
-
//
|
|
121
|
-
// @ts-ignore
|
|
118
|
+
// @ts-expect-error (Converted from ts-ignore)
|
|
122
119
|
forkTypeChecker: false,
|
|
123
120
|
};
|
|
124
121
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.33",
|
|
4
4
|
"description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"prep": "node ../../../scripts/prepare.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@storybook/addons": "7.0.0-alpha.
|
|
38
|
-
"@storybook/api": "7.0.0-alpha.
|
|
39
|
-
"@storybook/builder-webpack5": "7.0.0-alpha.
|
|
40
|
-
"@storybook/client-logger": "7.0.0-alpha.
|
|
41
|
-
"@storybook/core-client": "7.0.0-alpha.
|
|
42
|
-
"@storybook/core-common": "7.0.0-alpha.
|
|
43
|
-
"@storybook/core-events": "7.0.0-alpha.
|
|
44
|
-
"@storybook/core-server": "7.0.0-alpha.
|
|
37
|
+
"@storybook/addons": "7.0.0-alpha.33",
|
|
38
|
+
"@storybook/api": "7.0.0-alpha.33",
|
|
39
|
+
"@storybook/builder-webpack5": "7.0.0-alpha.33",
|
|
40
|
+
"@storybook/client-logger": "7.0.0-alpha.33",
|
|
41
|
+
"@storybook/core-client": "7.0.0-alpha.33",
|
|
42
|
+
"@storybook/core-common": "7.0.0-alpha.33",
|
|
43
|
+
"@storybook/core-events": "7.0.0-alpha.33",
|
|
44
|
+
"@storybook/core-server": "7.0.0-alpha.33",
|
|
45
45
|
"@storybook/csf": "0.0.2--canary.0899bb7.0",
|
|
46
|
-
"@storybook/docs-tools": "7.0.0-alpha.
|
|
47
|
-
"@storybook/node-logger": "7.0.0-alpha.
|
|
46
|
+
"@storybook/docs-tools": "7.0.0-alpha.33",
|
|
47
|
+
"@storybook/node-logger": "7.0.0-alpha.33",
|
|
48
48
|
"@storybook/semver": "^7.3.2",
|
|
49
|
-
"@storybook/store": "7.0.0-alpha.
|
|
49
|
+
"@storybook/store": "7.0.0-alpha.33",
|
|
50
50
|
"@types/node": "^14.14.20 || ^16.0.0",
|
|
51
51
|
"@types/react": "^16.14.23",
|
|
52
52
|
"@types/react-dom": "^16.9.14",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
130
|
"builders": "dist/types/builders/builders.json",
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "5da5b0fabd04cc5cd5771e8242a960f05d03234a"
|
|
132
132
|
}
|