@storybook/angular 7.6.0-alpha.6 → 7.6.0-beta.0

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.
@@ -17,7 +17,7 @@ var ButtonAccent;
17
17
  ButtonAccent["Normal"] = "Normal";
18
18
  ButtonAccent["High"] = "High";
19
19
  })(ButtonAccent || (exports.ButtonAccent = ButtonAccent = {}));
20
- let InputComponent = exports.InputComponent = class InputComponent {
20
+ let InputComponent = class InputComponent {
21
21
  constructor() {
22
22
  /** Appearance style of the button. */
23
23
  this.appearance = 'secondary';
@@ -26,6 +26,7 @@ let InputComponent = exports.InputComponent = class InputComponent {
26
26
  this.onClick = new core_1.EventEmitter();
27
27
  }
28
28
  };
29
+ exports.InputComponent = InputComponent;
29
30
  __decorate([
30
31
  (0, core_1.Input)(),
31
32
  __metadata("design:type", String)
@@ -10,8 +10,9 @@ exports.WithOfficialModule = void 0;
10
10
  const common_1 = require("@angular/common");
11
11
  const http_1 = require("@angular/common/http");
12
12
  const core_1 = require("@angular/core");
13
- let WithOfficialModule = exports.WithOfficialModule = class WithOfficialModule {
13
+ let WithOfficialModule = class WithOfficialModule {
14
14
  };
15
+ exports.WithOfficialModule = WithOfficialModule;
15
16
  exports.WithOfficialModule = WithOfficialModule = __decorate([
16
17
  (0, core_1.NgModule)({
17
18
  imports: [common_1.CommonModule, http_1.HttpClientModule],
@@ -44,7 +44,7 @@ class PropertyExtractor {
44
44
  const imports = [...(metadata?.imports || [])].reduce((acc, imported) => {
45
45
  // remove ngModule and use only its providers if it is restricted
46
46
  // (e.g. BrowserModule, BrowserAnimationsModule, NoopAnimationsModule, ...etc)
47
- const [isRestricted, restrictedProviders] = PropertyExtractor.analyzeRestricted(imported);
47
+ const [isRestricted, restrictedProviders] = _a.analyzeRestricted(imported);
48
48
  if (isRestricted) {
49
49
  applicationProviders.unshift(restrictedProviders || []);
50
50
  return acc;
@@ -77,7 +77,7 @@ class PropertyExtractor {
77
77
  this.applicationProviders = (0, exports.uniqueArray)(analyzed.applicationProviders);
78
78
  this.declarations = (0, exports.uniqueArray)(analyzed.declarations);
79
79
  if (this.component) {
80
- const { isDeclarable, isStandalone } = PropertyExtractor.analyzeDecorators(this.component);
80
+ const { isDeclarable, isStandalone } = _a.analyzeDecorators(this.component);
81
81
  const isDeclared = (0, NgModulesAnalyzer_1.isComponentAlreadyDeclared)(this.component, analyzed.declarations, this.imports);
82
82
  if (isStandalone) {
83
83
  this.imports.push(this.component);
@@ -34,7 +34,7 @@ var ButtonAccent;
34
34
  * @code `ThingThing`
35
35
  * @html <span class="badge">aaa</span>
36
36
  */
37
- let InputComponent = exports.InputComponent = class InputComponent {
37
+ let InputComponent = class InputComponent {
38
38
  constructor() {
39
39
  /** Appearance style of the button. */
40
40
  this.appearance = 'secondary';
@@ -138,6 +138,7 @@ let InputComponent = exports.InputComponent = class InputComponent {
138
138
  this.processedItem = item;
139
139
  }
140
140
  };
141
+ exports.InputComponent = InputComponent;
141
142
  __decorate([
142
143
  (0, core_1.ViewChild)('buttonRef', { static: false }),
143
144
  __metadata("design:type", core_1.ElementRef)
package/dist/preset.js CHANGED
@@ -31,6 +31,7 @@ const typescript = async (config) => {
31
31
  return {
32
32
  ...config,
33
33
  skipBabel: true,
34
+ skipCompiler: true,
34
35
  };
35
36
  };
36
37
  exports.typescript = typescript;
package/dist/preset.mjs CHANGED
@@ -26,5 +26,6 @@ export const typescript = async (config) => {
26
26
  return {
27
27
  ...config,
28
28
  skipBabel: true,
29
+ skipCompiler: true,
29
30
  };
30
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "7.6.0-alpha.6",
3
+ "version": "7.6.0-beta.0",
4
4
  "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -33,24 +33,23 @@
33
33
  "!src/**/*"
34
34
  ],
35
35
  "scripts": {
36
- "check": "../../../scripts/node_modules/.bin/tsc",
37
- "prep": "../../../scripts/prepare/tsc.ts"
36
+ "check": "node ../../../scripts/node_modules/.bin/tsc",
37
+ "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/tsc.ts"
38
38
  },
39
39
  "dependencies": {
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",
40
+ "@storybook/builder-webpack5": "7.6.0-beta.0",
41
+ "@storybook/cli": "7.6.0-beta.0",
42
+ "@storybook/client-logger": "7.6.0-beta.0",
43
+ "@storybook/core-common": "7.6.0-beta.0",
44
+ "@storybook/core-events": "7.6.0-beta.0",
45
+ "@storybook/core-server": "7.6.0-beta.0",
46
+ "@storybook/core-webpack": "7.6.0-beta.0",
47
+ "@storybook/docs-tools": "7.6.0-beta.0",
48
48
  "@storybook/global": "^5.0.0",
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",
49
+ "@storybook/node-logger": "7.6.0-beta.0",
50
+ "@storybook/preview-api": "7.6.0-beta.0",
51
+ "@storybook/telemetry": "7.6.0-beta.0",
52
+ "@storybook/types": "7.6.0-beta.0",
54
53
  "@types/node": "^18.0.0",
55
54
  "@types/react": "^16.14.34",
56
55
  "@types/react-dom": "^16.9.14",
@@ -102,8 +101,6 @@
102
101
  "@angular/platform-browser": ">=14.1.0 < 18.0.0",
103
102
  "@angular/platform-browser-dynamic": ">=14.1.0 < 18.0.0",
104
103
  "@babel/core": "*",
105
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
106
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
107
104
  "rxjs": "^6.0.0 || ^7.4.0",
108
105
  "typescript": "^4.0.0 || ^5.0.0",
109
106
  "zone.js": ">= 0.11.1 < 1.0.0"