@storybook/angular 6.5.0-alpha.46 → 6.5.0-alpha.47
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/ts3.9/builders/build-storybook/index.d.ts +1 -1
- package/dist/ts3.9/builders/start-storybook/index.d.ts +1 -1
- package/dist/ts3.9/client/preview/angular/helpers.d.ts +2 -2
- package/dist/ts3.9/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +3 -3
- package/dist/ts3.9/client/preview/decorateStory.d.ts +2 -2
- package/dist/ts3.9/client/preview/decorators.d.ts +4 -4
- package/dist/ts3.9/client/preview/index.d.ts +3 -3
- package/dist/ts3.9/client/preview/render.d.ts +3 -3
- package/dist/ts3.9/client/preview/types-6-0.d.ts +2 -2
- package/dist/ts3.9/client/preview/types-7-0.d.ts +1 -1
- package/dist/ts3.9/server/create-fork-ts-checker-plugin.js +1 -1
- package/dist/ts3.9/server/options.d.ts +1 -1
- package/dist/ts3.9/types/index.d.ts +1 -1
- package/package.json +9 -9
- package/standalone.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BuilderOutput } from '@angular-devkit/architect';
|
|
2
2
|
import { JsonObject } from '@angular-devkit/core';
|
|
3
|
-
import { CLIOptions } from '@storybook/core-common';
|
|
3
|
+
import type { CLIOptions } from '@storybook/core-common';
|
|
4
4
|
import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
|
|
5
5
|
export declare type StorybookBuilderOptions = JsonObject & {
|
|
6
6
|
browserTarget?: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BuilderOutput } from '@angular-devkit/architect';
|
|
2
2
|
import { JsonObject } from '@angular-devkit/core';
|
|
3
3
|
import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
|
|
4
|
-
import { CLIOptions } from '@storybook/core-common';
|
|
4
|
+
import type { CLIOptions } from '@storybook/core-common';
|
|
5
5
|
export declare type StorybookBuilderOptions = JsonObject & {
|
|
6
6
|
browserTarget?: string | null;
|
|
7
7
|
tsConfig?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PartialStoryFn } from '@storybook/csf';
|
|
2
|
-
import { AngularFramework } from '../types-6-0';
|
|
1
|
+
import type { PartialStoryFn } from '@storybook/csf';
|
|
2
|
+
import type { AngularFramework } from '../types-6-0';
|
|
3
3
|
declare global {
|
|
4
4
|
interface Window {
|
|
5
5
|
NODE_ENV: 'string' | 'development' | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { ArgTypes } from '@storybook/api';
|
|
3
|
-
import { ICollection } from '../types';
|
|
1
|
+
import type { Type } from '@angular/core';
|
|
2
|
+
import type { ArgTypes } from '@storybook/api';
|
|
3
|
+
import type { ICollection } from '../types';
|
|
4
4
|
/**
|
|
5
5
|
* Converts a component into a template with inputs/outputs present in initial props
|
|
6
6
|
* @param component
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DecoratorFunction, LegacyStoryFn } from '@storybook/csf';
|
|
2
|
-
import { AngularFramework } from './types-6-0';
|
|
1
|
+
import type { DecoratorFunction, LegacyStoryFn } from '@storybook/csf';
|
|
2
|
+
import type { AngularFramework } from './types-6-0';
|
|
3
3
|
export default function decorateStory(mainStoryFn: LegacyStoryFn<AngularFramework>, decorators: DecoratorFunction<AngularFramework>[]): LegacyStoryFn<AngularFramework>;
|
|
4
4
|
export { decorateStory };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { DecoratorFunction, StoryContext } from '@storybook/csf';
|
|
3
|
-
import { ICollection, NgModuleMetadata } from './types';
|
|
4
|
-
import { AngularFramework } from './types-6-0';
|
|
1
|
+
import type { Type } from '@angular/core';
|
|
2
|
+
import type { DecoratorFunction, StoryContext } from '@storybook/csf';
|
|
3
|
+
import type { ICollection, NgModuleMetadata } from './types';
|
|
4
|
+
import type { AngularFramework } from './types-6-0';
|
|
5
5
|
export declare const moduleMetadata: <TArgs = any>(metadata: Partial<NgModuleMetadata>) => DecoratorFunction<AngularFramework, TArgs>;
|
|
6
6
|
export declare const componentWrapperDecorator: <TArgs = any>(element: Type<unknown> | ((story: string) => string), props?: ICollection | ((storyContext: StoryContext<AngularFramework, TArgs>) => ICollection)) => DecoratorFunction<AngularFramework, TArgs>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="webpack-env" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
import { ClientStoryApi, Loadable } from '@storybook/addons';
|
|
3
|
+
import type { ClientStoryApi, Loadable } from '@storybook/addons';
|
|
4
4
|
import './globals';
|
|
5
|
-
import { IStorybookSection } from './types';
|
|
6
|
-
import { AngularFramework } from './types-6-0';
|
|
5
|
+
import type { IStorybookSection } from './types';
|
|
6
|
+
import type { AngularFramework } from './types-6-0';
|
|
7
7
|
interface ClientApi extends ClientStoryApi<AngularFramework['storyResult']> {
|
|
8
8
|
setAddon(addon: any): void;
|
|
9
9
|
configure(loader: Loadable, module: NodeModule): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RenderContext } from '@storybook/store';
|
|
2
|
-
import { ArgsStoryFn } from '@storybook/csf';
|
|
3
|
-
import { AngularFramework } from './types-6-0';
|
|
1
|
+
import type { RenderContext } from '@storybook/store';
|
|
2
|
+
import type { ArgsStoryFn } from '@storybook/csf';
|
|
3
|
+
import type { AngularFramework } from './types-6-0';
|
|
4
4
|
import { RendererFactory } from './angular-beta/RendererFactory';
|
|
5
5
|
export declare const rendererFactory: RendererFactory;
|
|
6
6
|
export declare const render: ArgsStoryFn<AngularFramework>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Args, Parameters as DefaultParameters, StoryContext as DefaultStoryContext, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
|
2
|
-
import { StoryFnAngularReturnType } from './types';
|
|
1
|
+
import type { Args, Parameters as DefaultParameters, StoryContext as DefaultStoryContext, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
|
2
|
+
import type { StoryFnAngularReturnType } from './types';
|
|
3
3
|
export type { Args, ArgTypes } from '@storybook/csf';
|
|
4
4
|
export declare type AngularFramework = {
|
|
5
5
|
component: any;
|
|
@@ -10,7 +10,7 @@ function default_1(tsLoaderOptions) {
|
|
|
10
10
|
if (tsLoaderOptions && tsLoaderOptions.configFile) {
|
|
11
11
|
return new fork_ts_checker_webpack_plugin_1.default({
|
|
12
12
|
tsconfig: tsLoaderOptions.configFile,
|
|
13
|
-
async:
|
|
13
|
+
async: true,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
node_logger_1.logger.info('=> Using default options for ForkTsCheckerWebpackPlugin');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LoadOptions, Options as CoreOptions } from '@storybook/core-common';
|
|
1
|
+
import type { LoadOptions, Options as CoreOptions } from '@storybook/core-common';
|
|
2
2
|
import { BuilderContext } from '@angular-devkit/architect';
|
|
3
3
|
import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
|
|
4
4
|
export declare type PresetOptions = CoreOptions & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "6.5.0-alpha.
|
|
3
|
+
"version": "6.5.0-alpha.47",
|
|
4
4
|
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"prepare": "node ../../scripts/prepare.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@storybook/addons": "6.5.0-alpha.
|
|
49
|
-
"@storybook/api": "6.5.0-alpha.
|
|
50
|
-
"@storybook/core": "6.5.0-alpha.
|
|
51
|
-
"@storybook/core-common": "6.5.0-alpha.
|
|
52
|
-
"@storybook/core-events": "6.5.0-alpha.
|
|
48
|
+
"@storybook/addons": "6.5.0-alpha.47",
|
|
49
|
+
"@storybook/api": "6.5.0-alpha.47",
|
|
50
|
+
"@storybook/core": "6.5.0-alpha.47",
|
|
51
|
+
"@storybook/core-common": "6.5.0-alpha.47",
|
|
52
|
+
"@storybook/core-events": "6.5.0-alpha.47",
|
|
53
53
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
54
|
-
"@storybook/node-logger": "6.5.0-alpha.
|
|
54
|
+
"@storybook/node-logger": "6.5.0-alpha.47",
|
|
55
55
|
"@storybook/semver": "^7.3.2",
|
|
56
|
-
"@storybook/store": "6.5.0-alpha.
|
|
56
|
+
"@storybook/store": "6.5.0-alpha.47",
|
|
57
57
|
"@types/node": "^14.14.20 || ^16.0.0",
|
|
58
58
|
"@types/react": "^16.14.23",
|
|
59
59
|
"@types/react-dom": "^16.9.14",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"access": "public"
|
|
132
132
|
},
|
|
133
133
|
"builders": "dist/ts3.9/builders/builders.json",
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "e848de5c5d389fcb452d85f7ebdfc27f1e3c10c4"
|
|
135
135
|
}
|
package/standalone.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLIOptions, LoadOptions, BuilderOptions } from '@storybook/core-common';
|
|
2
|
-
import { BuilderContext } from '@angular-devkit/architect';
|
|
1
|
+
import type { CLIOptions, LoadOptions, BuilderOptions } from '@storybook/core-common';
|
|
2
|
+
import type { BuilderContext } from '@angular-devkit/architect';
|
|
3
3
|
|
|
4
4
|
export type StandaloneOptions = Partial<
|
|
5
5
|
CLIOptions &
|