@storybook/angular 8.4.4 → 8.4.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.
@@ -24,7 +24,7 @@ export declare class PropertyExtractor implements NgModuleMetadata {
24
24
  static analyzeRestricted: (ngModule: NgModule) => [boolean] | [boolean, Provider];
25
25
  static analyzeDecorators: (component: any) => {
26
26
  isDeclarable: boolean;
27
- isStandalone: boolean;
27
+ isStandalone: any;
28
28
  };
29
29
  static isDecoratorInstanceOf: (decorator: any, name: string) => boolean;
30
30
  }
@@ -126,10 +126,14 @@ PropertyExtractor.analyzeDecorators = (component) => {
126
126
  const isPipe = decorators.some((d) => _a.isDecoratorInstanceOf(d, 'Pipe'));
127
127
  const isDeclarable = isComponent || isDirective || isPipe;
128
128
  // Check if the hierarchically lowest Component or Directive decorator (the only relevant for importing dependencies) is standalone.
129
- const isStandalone = !!((isComponent || isDirective) &&
129
+ let isStandalone = (isComponent || isDirective) &&
130
130
  [...decorators]
131
131
  .reverse() // reflectionCapabilities returns decorators in a hierarchically top-down order
132
- .find((d) => _a.isDecoratorInstanceOf(d, 'Component') || _a.isDecoratorInstanceOf(d, 'Directive'))?.standalone);
132
+ .find((d) => _a.isDecoratorInstanceOf(d, 'Component') || _a.isDecoratorInstanceOf(d, 'Directive'))?.standalone;
133
+ //Starting in Angular 19 the default (in case it's undefined) value for standalone is true
134
+ if (isStandalone === undefined) {
135
+ isStandalone = !!(core_1.VERSION.major && Number(core_1.VERSION.major) >= 19);
136
+ }
133
137
  return { isDeclarable, isStandalone };
134
138
  };
135
139
  PropertyExtractor.isDecoratorInstanceOf = (decorator, name) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "8.4.4",
3
+ "version": "8.4.6",
4
4
  "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -37,13 +37,13 @@
37
37
  "prep": "rimraf dist && jiti ../../../scripts/prepare/tsc.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@storybook/builder-webpack5": "8.4.4",
41
- "@storybook/components": "8.4.4",
42
- "@storybook/core-webpack": "8.4.4",
40
+ "@storybook/builder-webpack5": "8.4.6",
41
+ "@storybook/components": "8.4.6",
42
+ "@storybook/core-webpack": "8.4.6",
43
43
  "@storybook/global": "^5.0.0",
44
- "@storybook/manager-api": "8.4.4",
45
- "@storybook/preview-api": "8.4.4",
46
- "@storybook/theming": "8.4.4",
44
+ "@storybook/manager-api": "8.4.6",
45
+ "@storybook/preview-api": "8.4.6",
46
+ "@storybook/theming": "8.4.6",
47
47
  "@types/node": "^22.0.0",
48
48
  "@types/react": "^18.0.37",
49
49
  "@types/react-dom": "^18.0.11",
@@ -81,19 +81,19 @@
81
81
  "zone.js": "^0.14.2"
82
82
  },
83
83
  "peerDependencies": {
84
- "@angular-devkit/architect": ">=0.1500.0 < 0.1900.0",
85
- "@angular-devkit/build-angular": ">=15.0.0 < 19.0.0",
86
- "@angular-devkit/core": ">=15.0.0 < 19.0.0",
87
- "@angular/cli": ">=15.0.0 < 19.0.0",
88
- "@angular/common": ">=15.0.0 < 19.0.0",
89
- "@angular/compiler": ">=15.0.0 < 19.0.0",
90
- "@angular/compiler-cli": ">=15.0.0 < 19.0.0",
91
- "@angular/core": ">=15.0.0 < 19.0.0",
92
- "@angular/forms": ">=15.0.0 < 19.0.0",
93
- "@angular/platform-browser": ">=15.0.0 < 19.0.0",
94
- "@angular/platform-browser-dynamic": ">=15.0.0 < 19.0.0",
84
+ "@angular-devkit/architect": ">=0.1500.0 < 0.2000.0",
85
+ "@angular-devkit/build-angular": ">=15.0.0 < 20.0.0",
86
+ "@angular-devkit/core": ">=15.0.0 < 20.0.0",
87
+ "@angular/cli": ">=15.0.0 < 20.0.0",
88
+ "@angular/common": ">=15.0.0 < 20.0.0",
89
+ "@angular/compiler": ">=15.0.0 < 20.0.0",
90
+ "@angular/compiler-cli": ">=15.0.0 < 20.0.0",
91
+ "@angular/core": ">=15.0.0 < 20.0.0",
92
+ "@angular/forms": ">=15.0.0 < 20.0.0",
93
+ "@angular/platform-browser": ">=15.0.0 < 20.0.0",
94
+ "@angular/platform-browser-dynamic": ">=15.0.0 < 20.0.0",
95
95
  "rxjs": "^6.0.0 || ^7.4.0",
96
- "storybook": "^8.4.4",
96
+ "storybook": "^8.4.6",
97
97
  "typescript": "^4.0.0 || ^5.0.0",
98
98
  "zone.js": ">= 0.11.1 < 1.0.0"
99
99
  },