@storybook/angular 7.6.0-alpha.4 → 7.6.0-alpha.6

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.
@@ -10,14 +10,14 @@ const reflectionCapabilities = new core_1.ɵReflectionCapabilities();
10
10
  */
11
11
  const isComponentAlreadyDeclared = (componentToFind, moduleDeclarations, moduleImports) => {
12
12
  if (moduleDeclarations &&
13
- moduleDeclarations.some((declaration) => declaration === componentToFind)) {
13
+ moduleDeclarations.flat().some((declaration) => declaration === componentToFind)) {
14
14
  // Found component in declarations array
15
15
  return true;
16
16
  }
17
17
  if (!moduleImports) {
18
18
  return false;
19
19
  }
20
- return moduleImports.some((importItem) => {
20
+ return moduleImports.flat().some((importItem) => {
21
21
  const extractedNgModuleMetadata = extractNgModuleMetadata(importItem);
22
22
  if (!extractedNgModuleMetadata) {
23
23
  // Not an NgModule
@@ -47,6 +47,9 @@ exports.getWebpackConfig = async (baseConfig, { builderOptions, builderContext }
47
47
  outputPath: 'noop-out',
48
48
  // Options provided by user
49
49
  ...builderOptions,
50
+ styles: builderOptions.styles
51
+ ?.map((style) => (typeof style === 'string' ? style : style.input))
52
+ .filter((style) => typeof style === 'string' || style.inject !== false),
50
53
  // Fixed options
51
54
  optimization: false,
52
55
  namedChunks: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "7.6.0-alpha.4",
3
+ "version": "7.6.0-alpha.6",
4
4
  "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -37,20 +37,20 @@
37
37
  "prep": "../../../scripts/prepare/tsc.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@storybook/builder-webpack5": "7.6.0-alpha.4",
41
- "@storybook/cli": "7.6.0-alpha.4",
42
- "@storybook/client-logger": "7.6.0-alpha.4",
43
- "@storybook/core-common": "7.6.0-alpha.4",
44
- "@storybook/core-events": "7.6.0-alpha.4",
45
- "@storybook/core-server": "7.6.0-alpha.4",
46
- "@storybook/core-webpack": "7.6.0-alpha.4",
47
- "@storybook/docs-tools": "7.6.0-alpha.4",
40
+ "@storybook/builder-webpack5": "7.6.0-alpha.6",
41
+ "@storybook/cli": "7.6.0-alpha.6",
42
+ "@storybook/client-logger": "7.6.0-alpha.6",
43
+ "@storybook/core-common": "7.6.0-alpha.6",
44
+ "@storybook/core-events": "7.6.0-alpha.6",
45
+ "@storybook/core-server": "7.6.0-alpha.6",
46
+ "@storybook/core-webpack": "7.6.0-alpha.6",
47
+ "@storybook/docs-tools": "7.6.0-alpha.6",
48
48
  "@storybook/global": "^5.0.0",
49
- "@storybook/manager-api": "7.6.0-alpha.4",
50
- "@storybook/node-logger": "7.6.0-alpha.4",
51
- "@storybook/preview-api": "7.6.0-alpha.4",
52
- "@storybook/telemetry": "7.6.0-alpha.4",
53
- "@storybook/types": "7.6.0-alpha.4",
49
+ "@storybook/manager-api": "7.6.0-alpha.6",
50
+ "@storybook/node-logger": "7.6.0-alpha.6",
51
+ "@storybook/preview-api": "7.6.0-alpha.6",
52
+ "@storybook/telemetry": "7.6.0-alpha.6",
53
+ "@storybook/types": "7.6.0-alpha.6",
54
54
  "@types/node": "^18.0.0",
55
55
  "@types/react": "^16.14.34",
56
56
  "@types/react-dom": "^16.9.14",
@@ -90,17 +90,17 @@
90
90
  "zone.js": "^0.13.0"
91
91
  },
92
92
  "peerDependencies": {
93
- "@angular-devkit/architect": ">=0.1400.0 < 0.1700.0",
94
- "@angular-devkit/build-angular": ">=14.1.0 < 17.0.0",
95
- "@angular-devkit/core": ">=14.1.0 < 17.0.0",
96
- "@angular/cli": ">=14.1.0 < 17.0.0",
97
- "@angular/common": ">=14.1.0 < 17.0.0",
98
- "@angular/compiler": ">=14.1.0 < 17.0.0",
99
- "@angular/compiler-cli": ">=14.1.0 < 17.0.0",
100
- "@angular/core": ">=14.1.0 < 17.0.0",
101
- "@angular/forms": ">=14.1.0 < 17.0.0",
102
- "@angular/platform-browser": ">=14.1.0 < 17.0.0",
103
- "@angular/platform-browser-dynamic": ">=14.1.0 < 17.0.0",
93
+ "@angular-devkit/architect": ">=0.1400.0 < 0.1800.0",
94
+ "@angular-devkit/build-angular": ">=14.1.0 < 18.0.0",
95
+ "@angular-devkit/core": ">=14.1.0 < 18.0.0",
96
+ "@angular/cli": ">=14.1.0 < 18.0.0",
97
+ "@angular/common": ">=14.1.0 < 18.0.0",
98
+ "@angular/compiler": ">=14.1.0 < 18.0.0",
99
+ "@angular/compiler-cli": ">=14.1.0 < 18.0.0",
100
+ "@angular/core": ">=14.1.0 < 18.0.0",
101
+ "@angular/forms": ">=14.1.0 < 18.0.0",
102
+ "@angular/platform-browser": ">=14.1.0 < 18.0.0",
103
+ "@angular/platform-browser-dynamic": ">=14.1.0 < 18.0.0",
104
104
  "@babel/core": "*",
105
105
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
106
106
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",