@storybook/angular 7.6.3 → 8.0.0-alpha.1

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.
@@ -0,0 +1,35 @@
1
+ import { BuilderOutput } from '@angular-devkit/architect';
2
+ import { JsonObject } from '@angular-devkit/core';
3
+ import { StylePreprocessorOptions } from '@angular-devkit/build-angular';
4
+ import { CLIOptions } from '@storybook/types';
5
+ import { AssetPattern, SourceMapUnion, StyleElement } from '@angular-devkit/build-angular/src/builders/browser/schema';
6
+ export type StorybookBuilderOptions = JsonObject & {
7
+ browserTarget?: string | null;
8
+ tsConfig?: string;
9
+ test: boolean;
10
+ docs: boolean;
11
+ compodoc: boolean;
12
+ compodocArgs: string[];
13
+ enableProdMode?: boolean;
14
+ styles?: StyleElement[];
15
+ stylePreprocessorOptions?: StylePreprocessorOptions;
16
+ assets?: AssetPattern[];
17
+ sourceMap?: SourceMapUnion;
18
+ } & Pick<CLIOptions, 'outputDir' | 'configDir' | 'loglevel' | 'quiet' | 'webpackStatsJson' | 'disableTelemetry' | 'debugWebpack' | 'previewUrl'>;
19
+ export type StorybookBuilderOutput = JsonObject & BuilderOutput & {
20
+ [key: string]: any;
21
+ };
22
+ declare const _default: import("@angular-devkit/architect/src/internal").Builder<JsonObject & {
23
+ browserTarget?: string | null | undefined;
24
+ tsConfig?: string | undefined;
25
+ test: boolean;
26
+ docs: boolean;
27
+ compodoc: boolean;
28
+ compodocArgs: string[];
29
+ enableProdMode?: boolean | undefined;
30
+ styles?: StyleElement[] | undefined;
31
+ stylePreprocessorOptions?: StylePreprocessorOptions | undefined;
32
+ assets?: AssetPattern[] | undefined;
33
+ sourceMap?: SourceMapUnion | undefined;
34
+ } & Pick<CLIOptions, "webpackStatsJson" | "outputDir" | "configDir" | "loglevel" | "quiet" | "disableTelemetry" | "debugWebpack" | "previewUrl">>;
35
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { BuilderOutput } from '@angular-devkit/architect';
2
+ import { JsonObject } from '@angular-devkit/core';
3
+ import { StylePreprocessorOptions } from '@angular-devkit/build-angular';
4
+ import { CLIOptions } from '@storybook/types';
5
+ import { AssetPattern, SourceMapUnion, StyleElement } from '@angular-devkit/build-angular/src/builders/browser/schema';
6
+ export type StorybookBuilderOptions = JsonObject & {
7
+ browserTarget?: string | null;
8
+ tsConfig?: string;
9
+ compodoc: boolean;
10
+ compodocArgs: string[];
11
+ enableProdMode?: boolean;
12
+ styles?: StyleElement[];
13
+ stylePreprocessorOptions?: StylePreprocessorOptions;
14
+ assets?: AssetPattern[];
15
+ sourceMap?: SourceMapUnion;
16
+ } & Pick<CLIOptions, 'port' | 'host' | 'configDir' | 'https' | 'sslCa' | 'sslCert' | 'sslKey' | 'smokeTest' | 'ci' | 'quiet' | 'disableTelemetry' | 'initialPath' | 'open' | 'docs' | 'debugWebpack' | 'webpackStatsJson' | 'loglevel' | 'previewUrl'>;
17
+ export type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
18
+ declare const _default: import("@angular-devkit/architect/src/internal").Builder<JsonObject & {
19
+ browserTarget?: string | null | undefined;
20
+ tsConfig?: string | undefined;
21
+ compodoc: boolean;
22
+ compodocArgs: string[];
23
+ enableProdMode?: boolean | undefined;
24
+ styles?: StyleElement[] | undefined;
25
+ stylePreprocessorOptions?: StylePreprocessorOptions | undefined;
26
+ assets?: AssetPattern[] | undefined;
27
+ sourceMap?: SourceMapUnion | undefined;
28
+ } & Pick<CLIOptions, "docs" | "webpackStatsJson" | "configDir" | "loglevel" | "quiet" | "disableTelemetry" | "debugWebpack" | "previewUrl" | "port" | "host" | "initialPath" | "https" | "sslCa" | "sslCert" | "sslKey" | "smokeTest" | "open" | "ci">>;
29
+ export default _default;
@@ -1,15 +1 @@
1
- /// <reference types="webpack-env" />
2
- /// <reference types="node" />
3
- import { Addon_ClientStoryApi, Addon_Loadable } from '@storybook/types';
4
- import { AngularRenderer } from './types';
5
1
  export * from './public-types';
6
- interface ClientApi extends Addon_ClientStoryApi<AngularRenderer['storyResult']> {
7
- configure(loader: Addon_Loadable, module: NodeModule): void;
8
- forceReRender(): void;
9
- raw: () => any;
10
- load: (...args: any[]) => void;
11
- }
12
- export declare const storiesOf: ClientApi['storiesOf'];
13
- export declare const configure: ClientApi['configure'];
14
- export declare const forceReRender: ClientApi['forceReRender'];
15
- export declare const raw: ClientApi['raw'];
@@ -13,24 +13,5 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
13
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
- var __importDefault = (this && this.__importDefault) || function (mod) {
17
- return (mod && mod.__esModule) ? mod : { "default": mod };
18
- };
19
16
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.raw = exports.forceReRender = exports.configure = exports.storiesOf = void 0;
21
- const preview_api_1 = require("@storybook/preview-api");
22
- const render_1 = require("./render");
23
- const decorateStory_1 = __importDefault(require("./decorateStory"));
24
17
  __exportStar(require("./public-types"), exports);
25
- const RENDERER = 'angular';
26
- const api = (0, preview_api_1.start)(render_1.renderToCanvas, { decorateStory: decorateStory_1.default, render: render_1.render });
27
- const storiesOf = (kind, m) => {
28
- return api.clientApi.storiesOf(kind, m).addParameters({
29
- renderer: RENDERER,
30
- });
31
- };
32
- exports.storiesOf = storiesOf;
33
- const configure = (...args) => api.configure(RENDERER, ...args);
34
- exports.configure = configure;
35
- exports.forceReRender = api.forceReRender;
36
- exports.raw = api.clientApi.raw;
package/dist/preset.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PresetProperty } from '@storybook/types';
2
2
  import { StorybookConfig } from './types';
3
- export declare const addons: PresetProperty<'addons', StorybookConfig>;
4
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
3
+ export declare const addons: PresetProperty<'addons'>;
4
+ export declare const previewAnnotations: PresetProperty<'previewAnnotations'>;
5
5
  export declare const core: PresetProperty<'core', StorybookConfig>;
6
6
  export declare const typescript: PresetProperty<'typescript', StorybookConfig>;
@@ -1,2 +1,2 @@
1
- import { StorybookConfig } from '@storybook/types';
2
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
1
+ import { PresetProperty } from '@storybook/types';
2
+ export declare const previewAnnotations: PresetProperty<'previewAnnotations'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "7.6.3",
3
+ "version": "8.0.0-alpha.1",
4
4
  "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -37,22 +37,22 @@
37
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.3",
41
- "@storybook/cli": "7.6.3",
42
- "@storybook/client-logger": "7.6.3",
43
- "@storybook/core-common": "7.6.3",
44
- "@storybook/core-events": "7.6.3",
45
- "@storybook/core-server": "7.6.3",
46
- "@storybook/core-webpack": "7.6.3",
47
- "@storybook/docs-tools": "7.6.3",
40
+ "@storybook/builder-webpack5": "8.0.0-alpha.1",
41
+ "@storybook/cli": "8.0.0-alpha.1",
42
+ "@storybook/client-logger": "8.0.0-alpha.1",
43
+ "@storybook/core-common": "8.0.0-alpha.1",
44
+ "@storybook/core-events": "8.0.0-alpha.1",
45
+ "@storybook/core-server": "8.0.0-alpha.1",
46
+ "@storybook/core-webpack": "8.0.0-alpha.1",
47
+ "@storybook/docs-tools": "8.0.0-alpha.1",
48
48
  "@storybook/global": "^5.0.0",
49
- "@storybook/node-logger": "7.6.3",
50
- "@storybook/preview-api": "7.6.3",
51
- "@storybook/telemetry": "7.6.3",
52
- "@storybook/types": "7.6.3",
49
+ "@storybook/node-logger": "8.0.0-alpha.1",
50
+ "@storybook/preview-api": "8.0.0-alpha.1",
51
+ "@storybook/telemetry": "8.0.0-alpha.1",
52
+ "@storybook/types": "8.0.0-alpha.1",
53
53
  "@types/node": "^18.0.0",
54
- "@types/react": "^16.14.34",
55
- "@types/react-dom": "^16.9.14",
54
+ "@types/react": "^18.0.37",
55
+ "@types/react-dom": "^18.0.11",
56
56
  "@types/semver": "^7.3.4",
57
57
  "@types/webpack-env": "^1.18.0",
58
58
  "find-up": "^5.0.0",
@@ -65,18 +65,18 @@
65
65
  "webpack": "5"
66
66
  },
67
67
  "devDependencies": {
68
- "@angular-devkit/architect": "^0.1600.0-rc.4",
69
- "@angular-devkit/build-angular": "^16.0.0-rc.4",
70
- "@angular-devkit/core": "^16.0.0-rc.4",
71
- "@angular/animations": "^16.0.0-rc.4",
72
- "@angular/cli": "^16.0.0-rc.4",
73
- "@angular/common": "^16.0.0-rc.4",
74
- "@angular/compiler": "^16.0.0-rc.4",
75
- "@angular/compiler-cli": "^16.0.0-rc.4",
76
- "@angular/core": "^16.0.0-rc.4",
77
- "@angular/forms": "^16.0.0-rc.4",
78
- "@angular/platform-browser": "^16.0.0-rc.4",
79
- "@angular/platform-browser-dynamic": "^16.0.0-rc.4",
68
+ "@angular-devkit/architect": "^0.1700.5",
69
+ "@angular-devkit/build-angular": "^17.0.5",
70
+ "@angular-devkit/core": "^17.0.5",
71
+ "@angular/animations": "^17.0.5",
72
+ "@angular/cli": "^17.0.5",
73
+ "@angular/common": "^17.0.5",
74
+ "@angular/compiler": "^17.0.5",
75
+ "@angular/compiler-cli": "^17.0.5",
76
+ "@angular/core": "^17.0.5",
77
+ "@angular/forms": "^17.0.5",
78
+ "@angular/platform-browser": "^17.0.5",
79
+ "@angular/platform-browser-dynamic": "^17.0.5",
80
80
  "@types/cross-spawn": "^6.0.2",
81
81
  "@types/tmp": "^0.2.3",
82
82
  "cross-spawn": "^7.0.3",
@@ -84,22 +84,22 @@
84
84
  "jest-preset-angular": "^13.0.1",
85
85
  "jest-specific-snapshot": "^8.0.0",
86
86
  "tmp": "^0.2.1",
87
- "typescript": "^5.0.4",
87
+ "typescript": "^5.3.2",
88
88
  "webpack": "5",
89
- "zone.js": "^0.13.0"
89
+ "zone.js": "^0.14.2"
90
90
  },
91
91
  "peerDependencies": {
92
- "@angular-devkit/architect": ">=0.1400.0 < 0.1800.0",
93
- "@angular-devkit/build-angular": ">=14.1.0 < 18.0.0",
94
- "@angular-devkit/core": ">=14.1.0 < 18.0.0",
95
- "@angular/cli": ">=14.1.0 < 18.0.0",
96
- "@angular/common": ">=14.1.0 < 18.0.0",
97
- "@angular/compiler": ">=14.1.0 < 18.0.0",
98
- "@angular/compiler-cli": ">=14.1.0 < 18.0.0",
99
- "@angular/core": ">=14.1.0 < 18.0.0",
100
- "@angular/forms": ">=14.1.0 < 18.0.0",
101
- "@angular/platform-browser": ">=14.1.0 < 18.0.0",
102
- "@angular/platform-browser-dynamic": ">=14.1.0 < 18.0.0",
92
+ "@angular-devkit/architect": ">=0.1500.0 < 0.1800.0",
93
+ "@angular-devkit/build-angular": ">=15.0.0 < 18.0.0",
94
+ "@angular-devkit/core": ">=15.0.0 < 18.0.0",
95
+ "@angular/cli": ">=15.0.0 < 18.0.0",
96
+ "@angular/common": ">=15.0.0 < 18.0.0",
97
+ "@angular/compiler": ">=15.0.0 < 18.0.0",
98
+ "@angular/compiler-cli": ">=15.0.0 < 18.0.0",
99
+ "@angular/core": ">=15.0.0 < 18.0.0",
100
+ "@angular/forms": ">=15.0.0 < 18.0.0",
101
+ "@angular/platform-browser": ">=15.0.0 < 18.0.0",
102
+ "@angular/platform-browser-dynamic": ">=15.0.0 < 18.0.0",
103
103
  "@babel/core": "*",
104
104
  "rxjs": "^6.0.0 || ^7.4.0",
105
105
  "typescript": "^4.0.0 || ^5.0.0",