@storybook/angular 6.5.9 → 7.0.0-alpha.2
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 → types}/builders/build-storybook/index.d.ts +1 -1
- package/dist/types/builders/build-storybook/index.js +58 -0
- package/dist/{ts3.9 → types}/builders/build-storybook/schema.json +0 -0
- package/dist/{ts3.9 → types}/builders/builders.json +0 -0
- package/dist/{ts3.9 → types}/builders/start-storybook/index.d.ts +1 -1
- package/dist/types/builders/start-storybook/index.js +66 -0
- package/dist/{ts3.9 → types}/builders/start-storybook/schema.json +0 -0
- package/dist/{ts3.9 → types}/builders/utils/build-standalone-errors-handler.d.ts +0 -0
- package/dist/{ts3.9 → types}/builders/utils/build-standalone-errors-handler.js +5 -5
- package/dist/{ts3.9 → types}/builders/utils/run-compodoc.d.ts +0 -0
- package/dist/{ts3.9 → types}/builders/utils/run-compodoc.js +9 -4
- package/dist/{ts3.9 → types}/client/docs/compodoc.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/docs/compodoc.js +47 -34
- package/dist/{ts3.9 → types}/client/docs/config.d.ts +2 -3
- package/dist/{ts3.9 → types}/client/docs/config.js +0 -2
- package/dist/{ts3.9 → types}/client/docs/index.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/docs/index.js +6 -2
- package/dist/{ts3.9 → types}/client/docs/sourceDecorator.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/docs/sourceDecorator.js +10 -9
- package/dist/{ts3.9 → types}/client/docs/types.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/docs/types.js +0 -0
- package/dist/{ts3.9 → types}/client/index.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/index.js +9 -5
- package/dist/{ts3.9 → types}/client/preview/angular/app.token.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular/app.token.js +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular/components/app.component.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular/components/app.component.js +4 -4
- package/dist/{ts3.9 → types}/client/preview/angular/helpers.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular/helpers.js +6 -6
- package/dist/{ts3.9 → types}/client/preview/angular-beta/AbstractRenderer.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/AbstractRenderer.js +40 -48
- package/dist/{ts3.9 → types}/client/preview/angular-beta/CanvasRenderer.d.ts +0 -0
- package/dist/types/client/preview/angular-beta/CanvasRenderer.js +16 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/ComputesTemplateFromComponent.js +10 -8
- package/dist/{ts3.9 → types}/client/preview/angular-beta/DocsRenderer.d.ts +0 -0
- package/dist/types/client/preview/angular-beta/DocsRenderer.js +41 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/RendererFactory.d.ts +0 -0
- package/dist/types/client/preview/angular-beta/RendererFactory.js +55 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookModule.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookModule.js +17 -16
- package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookProvider.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookProvider.js +2 -1
- package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookWrapperComponent.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookWrapperComponent.js +11 -10
- package/dist/{ts3.9 → types}/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/utils/NgComponentAnalyzer.js +24 -13
- package/dist/{ts3.9 → types}/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular-beta/utils/NgModulesAnalyzer.js +3 -2
- package/dist/{ts3.9 → types}/client/preview/angular-polyfills.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/angular-polyfills.js +0 -0
- package/dist/{ts3.9 → types}/client/preview/config.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/config.js +1 -1
- package/dist/{ts3.9 → types}/client/preview/decorateStory.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/decorateStory.js +11 -6
- package/dist/{ts3.9 → types}/client/preview/decorators.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/decorators.js +23 -11
- package/dist/{ts3.9 → types}/client/preview/globals.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/globals.js +0 -0
- package/dist/{ts3.9 → types}/client/preview/index.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/index.js +6 -4
- package/dist/{ts3.9 → types}/client/preview/render.d.ts +0 -0
- package/dist/types/client/preview/render.js +24 -0
- package/dist/{ts3.9 → types}/client/preview/types-6-0.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/types-6-0.js +0 -0
- package/dist/{ts3.9 → types}/client/preview/types-7-0.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/types-7-0.js +0 -0
- package/dist/{ts3.9 → types}/client/preview/types.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/preview/types.js +0 -0
- package/dist/{ts3.4/public_api.d.ts → types/index.d.ts} +2 -1
- package/dist/{ts3.9/public_api.js → types/index.js} +7 -2
- package/dist/types/preset.d.ts +13 -0
- package/dist/types/preset.js +32 -0
- package/dist/{ts3.9 → types}/renderer.d.ts +0 -0
- package/dist/{ts3.9 → types}/renderer.js +1 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/empty-projects-entry/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/tsconfig.lib.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/nx.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/nx.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/workspace.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-architect-build/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-architect-build-options/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-compatible-projects/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/tsconfig.lib.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/angular-cli-webpack-12.2.x.d.ts +0 -0
- package/dist/types/server/angular-cli-webpack-12.2.x.js +66 -0
- package/dist/{ts3.9 → types}/server/angular-cli-webpack-13.x.x.d.ts +0 -0
- package/dist/types/server/angular-cli-webpack-13.x.x.js +70 -0
- package/dist/types/server/angular-cli-webpack-older.d.ts +6 -0
- package/dist/types/server/angular-cli-webpack-older.js +111 -0
- package/dist/{ts3.9 → types}/server/angular-devkit-build-webpack.d.ts +6 -6
- package/dist/{ts3.9 → types}/server/angular-devkit-build-webpack.js +66 -54
- package/dist/{ts3.9 → types}/server/angular-read-workspace.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/angular-read-workspace.js +8 -14
- package/dist/{ts3.9 → types}/server/create-fork-ts-checker-plugin.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/create-fork-ts-checker-plugin.js +1 -1
- package/dist/{ts3.9 → types}/server/framework-preset-angular-cli.d.ts +1 -1
- package/dist/types/server/framework-preset-angular-cli.js +175 -0
- package/dist/{ts3.9 → types}/server/framework-preset-angular-docs.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/framework-preset-angular-docs.js +4 -3
- package/dist/{ts3.9 → types}/server/framework-preset-angular-ivy.d.ts +1 -1
- package/dist/{ts3.9 → types}/server/framework-preset-angular-ivy.js +26 -22
- package/dist/{ts3.9 → types}/server/framework-preset-angular.d.ts +0 -0
- package/dist/types/server/framework-preset-angular.js +103 -0
- package/dist/{ts3.9 → types}/server/ngx-template-loader/index.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/ngx-template-loader/index.js +0 -0
- package/dist/{ts3.9/server/options.d.ts → types/server/preset-options.d.ts} +1 -3
- package/dist/{ts3.9/types/index.js → types/server/preset-options.js} +0 -0
- package/dist/{ts3.9 → types}/server/ts_config.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/ts_config.js +0 -0
- package/dist/{ts3.9 → types}/server/utils/filter-out-styling-rules.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/utils/filter-out-styling-rules.js +2 -1
- package/dist/{ts3.9 → types}/server/utils/module-is-available.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/utils/module-is-available.js +2 -1
- package/dist/{ts3.4 → types}/server/utils/normalize-asset-patterns.d.ts +7 -6
- package/dist/{ts3.9 → types}/server/utils/normalize-asset-patterns.js +9 -9
- package/dist/{ts3.9 → types}/server/utils/normalize-optimization.d.ts +1 -1
- package/dist/{ts3.9 → types}/server/utils/normalize-optimization.js +3 -2
- package/dist/types/types.d.ts +13 -0
- package/dist/types/types.js +2 -0
- package/jest.config.js +1 -0
- package/package.json +47 -56
- package/preset.js +1 -1
- package/renderer.d.ts +1 -1
- package/renderer.js +1 -1
- package/standalone.js +2 -3
- package/types-6-0.d.ts +1 -1
- package/types-7-0.d.ts +1 -1
- package/bin/build.js +0 -4
- package/bin/index.js +0 -3
- package/demo.d.ts +0 -4
- package/demo.js +0 -5
- package/dist/ts3.4/builders/build-storybook/index.d.ts +0 -15
- package/dist/ts3.4/builders/start-storybook/index.d.ts +0 -15
- package/dist/ts3.4/builders/utils/build-standalone-errors-handler.d.ts +0 -1
- package/dist/ts3.4/builders/utils/run-compodoc.d.ts +0 -6
- package/dist/ts3.4/client/docs/compodoc.d.ts +0 -18
- package/dist/ts3.4/client/docs/config.d.ts +0 -15
- package/dist/ts3.4/client/docs/index.d.ts +0 -1
- package/dist/ts3.4/client/docs/prepareForInline.d.ts +0 -7
- package/dist/ts3.4/client/docs/sourceDecorator.d.ts +0 -9
- package/dist/ts3.4/client/docs/types.d.ts +0 -102
- package/dist/ts3.4/client/index.d.ts +0 -4
- package/dist/ts3.4/client/preview/angular/app.token.d.ts +0 -3
- package/dist/ts3.4/client/preview/angular/components/app.component.d.ts +0 -38
- package/dist/ts3.4/client/preview/angular/helpers.d.ts +0 -8
- package/dist/ts3.4/client/preview/angular-beta/AbstractRenderer.d.ts +0 -57
- package/dist/ts3.4/client/preview/angular-beta/CanvasRenderer.d.ts +0 -14
- package/dist/ts3.4/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +0 -17
- package/dist/ts3.4/client/preview/angular-beta/DocsRenderer.d.ts +0 -14
- package/dist/ts3.4/client/preview/angular-beta/RendererFactory.d.ts +0 -11
- package/dist/ts3.4/client/preview/angular-beta/StorybookModule.d.ts +0 -9
- package/dist/ts3.4/client/preview/angular-beta/StorybookProvider.d.ts +0 -5
- package/dist/ts3.4/client/preview/angular-beta/StorybookWrapperComponent.d.ts +0 -9
- package/dist/ts3.4/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +0 -29
- package/dist/ts3.4/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +0 -6
- package/dist/ts3.4/client/preview/angular-polyfills.d.ts +0 -41
- package/dist/ts3.4/client/preview/config.d.ts +0 -6
- package/dist/ts3.4/client/preview/decorateStory.d.ts +0 -4
- package/dist/ts3.4/client/preview/decorators.d.ts +0 -6
- package/dist/ts3.4/client/preview/globals.d.ts +0 -1
- package/dist/ts3.4/client/preview/index.d.ts +0 -25
- package/dist/ts3.4/client/preview/render.d.ts +0 -7
- package/dist/ts3.4/client/preview/types-6-0.d.ts +0 -42
- package/dist/ts3.4/client/preview/types-7-0.d.ts +0 -9
- package/dist/ts3.4/client/preview/types.d.ts +0 -29
- package/dist/ts3.4/demo/button.component.d.ts +0 -5
- package/dist/ts3.4/demo/welcome.component.d.ts +0 -4
- package/dist/ts3.4/renderer.d.ts +0 -4
- package/dist/ts3.4/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/some-config/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +0 -1
- package/dist/ts3.4/server/angular-cli-webpack-12.2.x.d.ts +0 -1
- package/dist/ts3.4/server/angular-cli-webpack-13.x.x.d.ts +0 -1
- package/dist/ts3.4/server/angular-cli-webpack-older.d.ts +0 -73
- package/dist/ts3.4/server/angular-devkit-build-webpack.d.ts +0 -30
- package/dist/ts3.4/server/angular-read-workspace.d.ts +0 -13
- package/dist/ts3.4/server/build.d.ts +0 -1
- package/dist/ts3.4/server/create-fork-ts-checker-plugin.d.ts +0 -3
- package/dist/ts3.4/server/framework-preset-angular-cli.d.ts +0 -3
- package/dist/ts3.4/server/framework-preset-angular-docs.d.ts +0 -2
- package/dist/ts3.4/server/framework-preset-angular-ivy.d.ts +0 -10
- package/dist/ts3.4/server/framework-preset-angular.d.ts +0 -5
- package/dist/ts3.4/server/index.d.ts +0 -1
- package/dist/ts3.4/server/ngx-template-loader/index.d.ts +0 -1
- package/dist/ts3.4/server/options.d.ts +0 -14
- package/dist/ts3.4/server/preset.d.ts +0 -3
- package/dist/ts3.4/server/ts_config.d.ts +0 -2
- package/dist/ts3.4/server/utils/filter-out-styling-rules.d.ts +0 -2
- package/dist/ts3.4/server/utils/module-is-available.d.ts +0 -1
- package/dist/ts3.4/server/utils/normalize-optimization.d.ts +0 -3
- package/dist/ts3.4/types/index.d.ts +0 -6
- package/dist/ts3.9/builders/build-storybook/index.js +0 -65
- package/dist/ts3.9/builders/start-storybook/index.js +0 -73
- package/dist/ts3.9/client/docs/prepareForInline.d.ts +0 -7
- package/dist/ts3.9/client/docs/prepareForInline.js +0 -45
- package/dist/ts3.9/client/preview/angular-beta/CanvasRenderer.js +0 -34
- package/dist/ts3.9/client/preview/angular-beta/DocsRenderer.js +0 -59
- package/dist/ts3.9/client/preview/angular-beta/RendererFactory.js +0 -65
- package/dist/ts3.9/client/preview/render.js +0 -34
- package/dist/ts3.9/demo/button.component.d.ts +0 -5
- package/dist/ts3.9/demo/button.component.js +0 -46
- package/dist/ts3.9/demo/welcome.component.d.ts +0 -4
- package/dist/ts3.9/demo/welcome.component.js +0 -99
- package/dist/ts3.9/public_api.d.ts +0 -1
- package/dist/ts3.9/server/angular-cli-webpack-12.2.x.js +0 -56
- package/dist/ts3.9/server/angular-cli-webpack-13.x.x.js +0 -60
- package/dist/ts3.9/server/angular-cli-webpack-older.d.ts +0 -73
- package/dist/ts3.9/server/angular-cli-webpack-older.js +0 -110
- package/dist/ts3.9/server/build.d.ts +0 -1
- package/dist/ts3.9/server/build.js +0 -28
- package/dist/ts3.9/server/framework-preset-angular-cli.js +0 -177
- package/dist/ts3.9/server/framework-preset-angular.js +0 -100
- package/dist/ts3.9/server/index.d.ts +0 -1
- package/dist/ts3.9/server/index.js +0 -8
- package/dist/ts3.9/server/options.js +0 -8
- package/dist/ts3.9/server/preset.d.ts +0 -3
- package/dist/ts3.9/server/preset.js +0 -13
- package/dist/ts3.9/server/utils/normalize-asset-patterns.d.ts +0 -6
- package/dist/ts3.9/types/index.d.ts +0 -6
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BuilderOutput } from '@angular-devkit/architect';
|
|
2
|
-
import { JsonObject } from '@angular-devkit/core';
|
|
3
|
-
import { CLIOptions } from '@storybook/core-common';
|
|
4
|
-
import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
|
|
5
|
-
export declare type StorybookBuilderOptions = JsonObject & {
|
|
6
|
-
browserTarget?: string | null;
|
|
7
|
-
tsConfig?: string;
|
|
8
|
-
compodoc: boolean;
|
|
9
|
-
compodocArgs: string[];
|
|
10
|
-
styles?: ExtraEntryPoint[];
|
|
11
|
-
stylePreprocessorOptions?: StylePreprocessorOptions;
|
|
12
|
-
} & Pick<CLIOptions, 'outputDir' | 'configDir' | 'loglevel' | 'quiet' | 'docs' | 'webpackStatsJson'>;
|
|
13
|
-
export declare type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
|
|
14
|
-
declare const _default: import("@angular-devkit/architect/src/internal").Builder<StorybookBuilderOptions>;
|
|
15
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BuilderOutput } from '@angular-devkit/architect';
|
|
2
|
-
import { JsonObject } from '@angular-devkit/core';
|
|
3
|
-
import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
|
|
4
|
-
import { CLIOptions } from '@storybook/core-common';
|
|
5
|
-
export declare type StorybookBuilderOptions = JsonObject & {
|
|
6
|
-
browserTarget?: string | null;
|
|
7
|
-
tsConfig?: string;
|
|
8
|
-
compodoc: boolean;
|
|
9
|
-
compodocArgs: string[];
|
|
10
|
-
styles?: ExtraEntryPoint[];
|
|
11
|
-
stylePreprocessorOptions?: StylePreprocessorOptions;
|
|
12
|
-
} & Pick<CLIOptions, 'port' | 'host' | 'configDir' | 'https' | 'sslCa' | 'sslCert' | 'sslKey' | 'smokeTest' | 'ci' | 'quiet' | 'docs'>;
|
|
13
|
-
export declare type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
|
|
14
|
-
declare const _default: import("@angular-devkit/architect/src/internal").Builder<StorybookBuilderOptions>;
|
|
15
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const buildStandaloneErrorHandler: (error: any) => any;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ArgTypes } from '@storybook/api';
|
|
2
|
-
import { Class, CompodocJson, Component, Injectable, Method, Pipe, Property, Directive } from './types';
|
|
3
|
-
export declare const isMethod: (methodOrProp: Method | Property) => methodOrProp is Method;
|
|
4
|
-
export declare const setCompodocJson: (compodocJson: CompodocJson) => void;
|
|
5
|
-
export declare const getCompodocJson: () => CompodocJson;
|
|
6
|
-
export declare const checkValidComponentOrDirective: (component: Component | Directive) => void;
|
|
7
|
-
export declare const checkValidCompodocJson: (compodocJson: CompodocJson) => void;
|
|
8
|
-
export declare const findComponentByName: (name: string, compodocJson: CompodocJson) => Class | Injectable | Pipe | Directive;
|
|
9
|
-
export declare const extractType: (property: Property, defaultValue: any) => {
|
|
10
|
-
name: string;
|
|
11
|
-
value?: undefined;
|
|
12
|
-
} | {
|
|
13
|
-
name: string;
|
|
14
|
-
value: any[];
|
|
15
|
-
};
|
|
16
|
-
export declare const extractArgTypesFromData: (componentData: Class | Directive | Injectable | Pipe) => ArgTypes;
|
|
17
|
-
export declare const extractArgTypes: (component: Component | Directive) => ArgTypes;
|
|
18
|
-
export declare const extractComponentDescription: (component: Component | Directive) => string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SourceType } from '@storybook/docs-tools';
|
|
2
|
-
export declare const parameters: {
|
|
3
|
-
docs: {
|
|
4
|
-
inlineStories: boolean;
|
|
5
|
-
prepareForInline: (storyFn: import("@storybook/csf").PartialStoryFn<import("..").AngularFramework, import("@storybook/csf").Args>, { id, parameters, component }: import("..").StoryContext) => import("react").DetailedReactHTMLElement<import("react").HTMLAttributes<undefined>, undefined>;
|
|
6
|
-
extractArgTypes: (component: import("./types").Directive) => import("@storybook/api").ArgTypes;
|
|
7
|
-
extractComponentDescription: (component: import("./types").Directive) => string;
|
|
8
|
-
source: {
|
|
9
|
-
type: SourceType;
|
|
10
|
-
language: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const decorators: ((storyFn: import("@storybook/csf").PartialStoryFn<import("..").AngularFramework, import("@storybook/csf").Args>, context: import("..").StoryContext) => import("..").IStory)[];
|
|
15
|
-
export declare const argTypesEnhancers: (<TFramework extends import("@storybook/csf").AnyFramework>(context: import("@storybook/csf").StoryContextForEnhancers<TFramework, import("@storybook/csf").Args>) => import("@storybook/csf").StrictArgTypes<import("@storybook/csf").Args> | import("@storybook/addons").Parameters)[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './compodoc';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PartialStoryFn } from '@storybook/csf';
|
|
3
|
-
import { AngularFramework, StoryContext } from '..';
|
|
4
|
-
/**
|
|
5
|
-
* Uses the angular renderer to generate a story. Uses p-limit to run synchronously
|
|
6
|
-
*/
|
|
7
|
-
export declare const prepareForInline: (storyFn: PartialStoryFn<AngularFramework>, { id, parameters, component }: StoryContext) => React.DetailedReactHTMLElement<React.HTMLAttributes<undefined>, undefined>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PartialStoryFn } from '@storybook/csf';
|
|
2
|
-
import { StoryContext, AngularFramework } from '..';
|
|
3
|
-
export declare const skipSourceRender: (context: StoryContext) => any;
|
|
4
|
-
/**
|
|
5
|
-
* Angular source decorator.
|
|
6
|
-
* @param storyFn Fn
|
|
7
|
-
* @param context StoryContext
|
|
8
|
-
*/
|
|
9
|
-
export declare const sourceDecorator: (storyFn: PartialStoryFn<AngularFramework>, context: StoryContext) => import("..").IStory;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
export interface Method {
|
|
2
|
-
name: string;
|
|
3
|
-
args: Argument[];
|
|
4
|
-
returnType: string;
|
|
5
|
-
decorators?: Decorator[];
|
|
6
|
-
description?: string;
|
|
7
|
-
rawdescription?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface JsDocTag {
|
|
10
|
-
comment?: string;
|
|
11
|
-
tagName?: {
|
|
12
|
-
escapedText?: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface Property {
|
|
16
|
-
name: string;
|
|
17
|
-
decorators?: Decorator[];
|
|
18
|
-
type: string;
|
|
19
|
-
optional: boolean;
|
|
20
|
-
defaultValue?: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
rawdescription?: string;
|
|
23
|
-
jsdoctags?: JsDocTag[];
|
|
24
|
-
}
|
|
25
|
-
export interface Class {
|
|
26
|
-
name: string;
|
|
27
|
-
ngname: string;
|
|
28
|
-
type: 'pipe';
|
|
29
|
-
properties: Property[];
|
|
30
|
-
methods: Method[];
|
|
31
|
-
description?: string;
|
|
32
|
-
rawdescription?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface Injectable {
|
|
35
|
-
name: string;
|
|
36
|
-
type: 'injectable';
|
|
37
|
-
properties: Property[];
|
|
38
|
-
methods: Method[];
|
|
39
|
-
description?: string;
|
|
40
|
-
rawdescription?: string;
|
|
41
|
-
}
|
|
42
|
-
export interface Pipe {
|
|
43
|
-
name: string;
|
|
44
|
-
type: 'class';
|
|
45
|
-
properties: Property[];
|
|
46
|
-
methods: Method[];
|
|
47
|
-
description?: string;
|
|
48
|
-
rawdescription?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface Directive {
|
|
51
|
-
name: string;
|
|
52
|
-
type: 'directive' | 'component';
|
|
53
|
-
propertiesClass: Property[];
|
|
54
|
-
inputsClass: Property[];
|
|
55
|
-
outputsClass: Property[];
|
|
56
|
-
methodsClass: Method[];
|
|
57
|
-
description?: string;
|
|
58
|
-
rawdescription?: string;
|
|
59
|
-
}
|
|
60
|
-
export declare type Component = Directive;
|
|
61
|
-
export interface Argument {
|
|
62
|
-
name: string;
|
|
63
|
-
type: string;
|
|
64
|
-
optional?: boolean;
|
|
65
|
-
}
|
|
66
|
-
export interface Decorator {
|
|
67
|
-
name: string;
|
|
68
|
-
}
|
|
69
|
-
export interface TypeAlias {
|
|
70
|
-
name: string;
|
|
71
|
-
ctype: string;
|
|
72
|
-
subtype: string;
|
|
73
|
-
rawtype: string;
|
|
74
|
-
file: string;
|
|
75
|
-
kind: number;
|
|
76
|
-
description?: string;
|
|
77
|
-
rawdescription?: string;
|
|
78
|
-
}
|
|
79
|
-
export interface EnumType {
|
|
80
|
-
name: string;
|
|
81
|
-
childs: EnumTypeChild[];
|
|
82
|
-
ctype: string;
|
|
83
|
-
subtype: string;
|
|
84
|
-
file: string;
|
|
85
|
-
description?: string;
|
|
86
|
-
rawdescription?: string;
|
|
87
|
-
}
|
|
88
|
-
export interface EnumTypeChild {
|
|
89
|
-
name: string;
|
|
90
|
-
value?: string;
|
|
91
|
-
}
|
|
92
|
-
export interface CompodocJson {
|
|
93
|
-
directives: Directive[];
|
|
94
|
-
components: Component[];
|
|
95
|
-
pipes: Pipe[];
|
|
96
|
-
injectables: Injectable[];
|
|
97
|
-
classes: Class[];
|
|
98
|
-
miscellaneous?: {
|
|
99
|
-
typealiases?: TypeAlias[];
|
|
100
|
-
enumerations?: EnumType[];
|
|
101
|
-
};
|
|
102
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { storiesOf, setAddon, addDecorator, addParameters, configure, getStorybook, forceReRender, raw, } from './preview';
|
|
2
|
-
export * from './preview/types-6-0';
|
|
3
|
-
export { StoryFnAngularReturnType as IStory } from './preview/types';
|
|
4
|
-
export { moduleMetadata, componentWrapperDecorator } from './preview/decorators';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { OnInit, ViewContainerRef, ComponentFactoryResolver, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { Observable, Subscription } from 'rxjs';
|
|
3
|
-
import { StoryFnAngularReturnType } from '../../types';
|
|
4
|
-
export declare class AppComponent implements OnInit, OnDestroy {
|
|
5
|
-
private cfr;
|
|
6
|
-
private changeDetectorRef;
|
|
7
|
-
private data;
|
|
8
|
-
target: ViewContainerRef;
|
|
9
|
-
readonly previousValues: {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
|
12
|
-
subscription: Subscription;
|
|
13
|
-
propSubscriptions: Map<any, {
|
|
14
|
-
prop: any;
|
|
15
|
-
sub: Subscription;
|
|
16
|
-
}>;
|
|
17
|
-
constructor(cfr: ComponentFactoryResolver, changeDetectorRef: ChangeDetectorRef, data: Observable<StoryFnAngularReturnType>);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
|
-
/**
|
|
21
|
-
* Set inputs and outputs
|
|
22
|
-
*/
|
|
23
|
-
private setProps;
|
|
24
|
-
/**
|
|
25
|
-
* Manually call 'ngOnChanges' hook because angular doesn't do that for dynamic components
|
|
26
|
-
* Issue: [https://github.com/angular/angular/issues/8903]
|
|
27
|
-
*/
|
|
28
|
-
private callNgOnChangesHook;
|
|
29
|
-
/**
|
|
30
|
-
* If component implements ControlValueAccessor interface try to set ngModel
|
|
31
|
-
*/
|
|
32
|
-
private setNgModel;
|
|
33
|
-
/**
|
|
34
|
-
* Store ref to subscription for cleanup in 'ngOnDestroy' and check if
|
|
35
|
-
* observable needs to be resubscribed to, before creating a new subscription.
|
|
36
|
-
*/
|
|
37
|
-
private setPropSubscription;
|
|
38
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PartialStoryFn } from '@storybook/csf';
|
|
2
|
-
import { AngularFramework } from '../types-6-0';
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
NODE_ENV: 'string' | 'development' | undefined;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export declare const renderNgApp: (storyFn: PartialStoryFn<AngularFramework>, forced: boolean) => void;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import { ICollection, StoryFnAngularReturnType } from '../types';
|
|
3
|
-
import { Parameters } from '../types-6-0';
|
|
4
|
-
declare type StoryRenderInfo = {
|
|
5
|
-
storyFnAngular: StoryFnAngularReturnType;
|
|
6
|
-
moduleMetadataSnapshot: string;
|
|
7
|
-
};
|
|
8
|
-
export declare abstract class AbstractRenderer {
|
|
9
|
-
storyId: string;
|
|
10
|
-
/**
|
|
11
|
-
* Wait and destroy the platform
|
|
12
|
-
*/
|
|
13
|
-
static resetPlatformBrowserDynamic(): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Reset compiled components because we often want to compile the same component with
|
|
16
|
-
* more than one NgModule.
|
|
17
|
-
*/
|
|
18
|
-
protected static resetCompiledComponents: () => Promise<void>;
|
|
19
|
-
protected previousStoryRenderInfo: StoryRenderInfo;
|
|
20
|
-
protected storyProps$: Subject<ICollection | undefined>;
|
|
21
|
-
constructor(storyId: string);
|
|
22
|
-
protected abstract beforeFullRender(): Promise<void>;
|
|
23
|
-
protected abstract afterFullRender(): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Bootstrap main angular module with main component or send only new `props` with storyProps$
|
|
26
|
-
*
|
|
27
|
-
* @param storyFnAngular {StoryFnAngularReturnType}
|
|
28
|
-
* @param forced {boolean} If :
|
|
29
|
-
* - true render will only use the StoryFn `props' in storyProps observable that will update sotry's component/template properties. Improves performance without reloading the whole module&component if props changes
|
|
30
|
-
* - false fully recharges or initializes angular module & component
|
|
31
|
-
* @param component {Component}
|
|
32
|
-
* @param parameters {Parameters}
|
|
33
|
-
*/
|
|
34
|
-
render({ storyFnAngular, forced, parameters, component, targetDOMNode, }: {
|
|
35
|
-
storyFnAngular: StoryFnAngularReturnType;
|
|
36
|
-
forced: boolean;
|
|
37
|
-
component?: any;
|
|
38
|
-
parameters: Parameters;
|
|
39
|
-
targetDOMNode: HTMLElement;
|
|
40
|
-
}): Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
* Only ASCII alphanumerics can be used as HTML tag name.
|
|
43
|
-
* https://html.spec.whatwg.org/#elements-2
|
|
44
|
-
*
|
|
45
|
-
* Therefore, stories break when non-ASCII alphanumerics are included in target selector.
|
|
46
|
-
* https://github.com/storybookjs/storybook/issues/15147
|
|
47
|
-
*
|
|
48
|
-
* This method returns storyId when it doesn't contain any non-ASCII alphanumerics.
|
|
49
|
-
* Otherwise, it generates a valid HTML tag name from storyId by removing non-ASCII alphanumerics from storyId, prefixing "sb-", and suffixing "-component"
|
|
50
|
-
* @protected
|
|
51
|
-
* @memberof AbstractRenderer
|
|
52
|
-
*/
|
|
53
|
-
protected generateTargetSelectorFromStoryId(): string;
|
|
54
|
-
protected initAngularRootElement(targetDOMNode: HTMLElement, targetSelector: string): void;
|
|
55
|
-
private fullRendererRequired;
|
|
56
|
-
}
|
|
57
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AbstractRenderer } from './AbstractRenderer';
|
|
2
|
-
import { StoryFnAngularReturnType } from '../types';
|
|
3
|
-
import { Parameters } from '../types-6-0';
|
|
4
|
-
export declare class CanvasRenderer extends AbstractRenderer {
|
|
5
|
-
render(options: {
|
|
6
|
-
storyFnAngular: StoryFnAngularReturnType;
|
|
7
|
-
forced: boolean;
|
|
8
|
-
parameters: Parameters;
|
|
9
|
-
component: any;
|
|
10
|
-
targetDOMNode: HTMLElement;
|
|
11
|
-
}): Promise<void>;
|
|
12
|
-
beforeFullRender(): Promise<void>;
|
|
13
|
-
afterFullRender(): Promise<void>;
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { ArgTypes } from '@storybook/api';
|
|
3
|
-
import { ICollection } from '../types';
|
|
4
|
-
/**
|
|
5
|
-
* Converts a component into a template with inputs/outputs present in initial props
|
|
6
|
-
* @param component
|
|
7
|
-
* @param initialProps
|
|
8
|
-
* @param innerTemplate
|
|
9
|
-
*/
|
|
10
|
-
export declare const computesTemplateFromComponent: (component: Type<unknown>, initialProps?: ICollection, innerTemplate?: string) => string;
|
|
11
|
-
/**
|
|
12
|
-
* Converts a component into a template with inputs/outputs present in initial props
|
|
13
|
-
* @param component
|
|
14
|
-
* @param initialProps
|
|
15
|
-
* @param innerTemplate
|
|
16
|
-
*/
|
|
17
|
-
export declare const computesTemplateSourceFromComponent: (component: Type<unknown>, initialProps?: ICollection, argTypes?: ArgTypes) => string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AbstractRenderer } from './AbstractRenderer';
|
|
2
|
-
import { StoryFnAngularReturnType } from '../types';
|
|
3
|
-
import { Parameters } from '../types-6-0';
|
|
4
|
-
export declare class DocsRenderer extends AbstractRenderer {
|
|
5
|
-
render(options: {
|
|
6
|
-
storyFnAngular: StoryFnAngularReturnType;
|
|
7
|
-
forced: boolean;
|
|
8
|
-
component: any;
|
|
9
|
-
parameters: Parameters;
|
|
10
|
-
targetDOMNode: HTMLElement;
|
|
11
|
-
}): Promise<void>;
|
|
12
|
-
beforeFullRender(): Promise<void>;
|
|
13
|
-
afterFullRender(): Promise<void>;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AbstractRenderer } from './AbstractRenderer';
|
|
2
|
-
declare type RenderType = 'canvas' | 'docs';
|
|
3
|
-
export declare class RendererFactory {
|
|
4
|
-
private lastRenderType;
|
|
5
|
-
private rendererMap;
|
|
6
|
-
getRendererInstance(storyId: string, targetDOMNode: HTMLElement): Promise<AbstractRenderer | null>;
|
|
7
|
-
private buildRenderer;
|
|
8
|
-
}
|
|
9
|
-
export declare const getRenderType: (targetDOMNode: HTMLElement) => RenderType;
|
|
10
|
-
export declare function clearRootHTMLElement(renderType: RenderType): void;
|
|
11
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NgModule, Type } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { ICollection, StoryFnAngularReturnType } from '../types';
|
|
4
|
-
export declare const getStorybookModuleMetadata: ({ storyFnAngular, component: annotatedComponent, targetSelector, }: {
|
|
5
|
-
storyFnAngular: StoryFnAngularReturnType;
|
|
6
|
-
component?: any;
|
|
7
|
-
targetSelector: string;
|
|
8
|
-
}, storyProps$: Subject<ICollection>) => NgModule;
|
|
9
|
-
export declare const createStorybookModule: (ngModule: NgModule) => Type<unknown>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { ICollection } from '../types';
|
|
4
|
-
export declare const STORY_PROPS: InjectionToken<Subject<ICollection>>;
|
|
5
|
-
export declare const storyPropsProvider: (storyProps$: Subject<ICollection | undefined>) => Provider;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { ICollection } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Wraps the story template into a component
|
|
5
|
-
*
|
|
6
|
-
* @param storyComponent
|
|
7
|
-
* @param initialProps
|
|
8
|
-
*/
|
|
9
|
-
export declare const createStorybookWrapperComponent: (selector: string, template: string, storyComponent: Type<unknown> | undefined, styles: string[], initialProps?: ICollection) => Type<any>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Component, Type } from '@angular/core';
|
|
2
|
-
export declare type ComponentInputsOutputs = {
|
|
3
|
-
inputs: {
|
|
4
|
-
propName: string;
|
|
5
|
-
templateName: string;
|
|
6
|
-
}[];
|
|
7
|
-
outputs: {
|
|
8
|
-
propName: string;
|
|
9
|
-
templateName: string;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Returns component Inputs / Outputs by browsing these properties and decorator
|
|
14
|
-
*/
|
|
15
|
-
export declare const getComponentInputsOutputs: (component: any) => ComponentInputsOutputs;
|
|
16
|
-
export declare const isDeclarable: (component: any) => boolean;
|
|
17
|
-
export declare const isComponent: (component: any) => component is Type<unknown>;
|
|
18
|
-
export declare const isStandaloneComponent: (component: any) => component is Type<unknown>;
|
|
19
|
-
/**
|
|
20
|
-
* Returns all component decorator properties
|
|
21
|
-
* is used to get all `@Input` and `@Output` Decorator
|
|
22
|
-
*/
|
|
23
|
-
export declare const getComponentPropsDecoratorMetadata: (component: any) => {
|
|
24
|
-
[key: string]: any[];
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Returns component decorator `@Component`
|
|
28
|
-
*/
|
|
29
|
-
export declare const getComponentDecoratorMetadata: (component: any) => Component | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Avoid component redeclaration
|
|
3
|
-
*
|
|
4
|
-
* Checks recursively if the component has already been declared in all import Module
|
|
5
|
-
*/
|
|
6
|
-
export declare const isComponentAlreadyDeclaredInModules: (componentToFind: any, moduleDeclarations: any[], moduleImports: any[]) => boolean;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
3
|
-
* You can add your own extra polyfills to this file.
|
|
4
|
-
*
|
|
5
|
-
* This file is divided into 2 sections:
|
|
6
|
-
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
7
|
-
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
8
|
-
* file.
|
|
9
|
-
*
|
|
10
|
-
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
11
|
-
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
12
|
-
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
13
|
-
*
|
|
14
|
-
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
|
15
|
-
*/
|
|
16
|
-
/** *************************************************************************************************
|
|
17
|
-
* BROWSER POLYFILLS
|
|
18
|
-
*/
|
|
19
|
-
/** IE9, IE10 and IE11 requires all of the following polyfills. * */
|
|
20
|
-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
21
|
-
/** Evergreen browsers require these. * */
|
|
22
|
-
import 'core-js/es/reflect';
|
|
23
|
-
import 'core-js/proposals/reflect-metadata';
|
|
24
|
-
/**
|
|
25
|
-
* Required to support Web Animations `@angular/animation`.
|
|
26
|
-
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
|
|
27
|
-
* */
|
|
28
|
-
/** *************************************************************************************************
|
|
29
|
-
* Zone JS is required by Angular itself.
|
|
30
|
-
*/
|
|
31
|
-
import 'zone.js/dist/zone';
|
|
32
|
-
/** *************************************************************************************************
|
|
33
|
-
* APPLICATION IMPORTS
|
|
34
|
-
*/
|
|
35
|
-
/**
|
|
36
|
-
* Date, currency, decimal and percent pipes.
|
|
37
|
-
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* Need to import at least one locale-data with intl.
|
|
41
|
-
*/
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DecoratorFunction, LegacyStoryFn } from '@storybook/csf';
|
|
2
|
-
import { AngularFramework } from './types-6-0';
|
|
3
|
-
export default function decorateStory(mainStoryFn: LegacyStoryFn<AngularFramework>, decorators: DecoratorFunction<AngularFramework>[]): LegacyStoryFn<AngularFramework>;
|
|
4
|
-
export { decorateStory };
|
|
@@ -1,6 +0,0 @@
|
|
|
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';
|
|
5
|
-
export declare const moduleMetadata: <TArgs = any>(metadata: Partial<NgModuleMetadata>) => DecoratorFunction<AngularFramework, TArgs>;
|
|
6
|
-
export declare const componentWrapperDecorator: <TArgs = any>(element: Type<unknown> | ((story: string) => string), props?: ICollection | ((storyContext: StoryContext<AngularFramework, TArgs>) => ICollection)) => DecoratorFunction<AngularFramework, TArgs>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './angular-polyfills';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="webpack-env" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { ClientStoryApi, Loadable } from '@storybook/addons';
|
|
4
|
-
import './globals';
|
|
5
|
-
import { IStorybookSection } from './types';
|
|
6
|
-
import { AngularFramework } from './types-6-0';
|
|
7
|
-
interface ClientApi extends ClientStoryApi<AngularFramework['storyResult']> {
|
|
8
|
-
setAddon(addon: any): void;
|
|
9
|
-
configure(loader: Loadable, module: NodeModule): void;
|
|
10
|
-
getStorybook(): IStorybookSection[];
|
|
11
|
-
clearDecorators(): void;
|
|
12
|
-
forceReRender(): void;
|
|
13
|
-
raw: () => any;
|
|
14
|
-
load: (...args: any[]) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const storiesOf: ClientApi['storiesOf'];
|
|
17
|
-
export declare const configure: ClientApi['configure'];
|
|
18
|
-
export declare const addDecorator: ClientApi['addDecorator'];
|
|
19
|
-
export declare const addParameters: ClientApi['addParameters'];
|
|
20
|
-
export declare const clearDecorators: ClientApi['clearDecorators'];
|
|
21
|
-
export declare const setAddon: ClientApi['setAddon'];
|
|
22
|
-
export declare const forceReRender: ClientApi['forceReRender'];
|
|
23
|
-
export declare const getStorybook: ClientApi['getStorybook'];
|
|
24
|
-
export declare const raw: ClientApi['raw'];
|
|
25
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RenderContext } from '@storybook/store';
|
|
2
|
-
import { ArgsStoryFn } from '@storybook/csf';
|
|
3
|
-
import { AngularFramework } from './types-6-0';
|
|
4
|
-
import { RendererFactory } from './angular-beta/RendererFactory';
|
|
5
|
-
export declare const rendererFactory: RendererFactory;
|
|
6
|
-
export declare const render: ArgsStoryFn<AngularFramework>;
|
|
7
|
-
export declare function renderToDOM({ storyFn, showMain, forceRemount, storyContext: { parameters, component }, id, }: RenderContext<AngularFramework>, element: HTMLElement): Promise<void>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Args, Parameters as DefaultParameters, StoryContext as DefaultStoryContext, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
|
2
|
-
import { StoryFnAngularReturnType } from './types';
|
|
3
|
-
export { Args, ArgTypes } from '@storybook/csf';
|
|
4
|
-
export declare type AngularFramework = {
|
|
5
|
-
component: any;
|
|
6
|
-
storyResult: StoryFnAngularReturnType;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Metadata to configure the stories for a component.
|
|
10
|
-
*
|
|
11
|
-
* @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
|
|
12
|
-
*/
|
|
13
|
-
export declare type Meta<TArgs = Args> = ComponentAnnotations<AngularFramework, TArgs>;
|
|
14
|
-
/**
|
|
15
|
-
* Story function that represents a CSFv2 component example.
|
|
16
|
-
*
|
|
17
|
-
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
|
18
|
-
*/
|
|
19
|
-
export declare type StoryFn<TArgs = Args> = AnnotatedStoryFn<AngularFramework, TArgs>;
|
|
20
|
-
/**
|
|
21
|
-
* Story function that represents a CSFv3 component example.
|
|
22
|
-
*
|
|
23
|
-
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
|
24
|
-
*/
|
|
25
|
-
export declare type StoryObj<TArgs = Args> = StoryAnnotations<AngularFramework, TArgs>;
|
|
26
|
-
/**
|
|
27
|
-
* Story function that represents a CSFv2 component example.
|
|
28
|
-
*
|
|
29
|
-
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
|
30
|
-
*
|
|
31
|
-
* NOTE that in Storybook 7.0, this type will be renamed to `StoryFn` and replaced by the current `StoryObj` type.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare type Story<TArgs = Args> = StoryFn<TArgs>;
|
|
35
|
-
export declare type Parameters = DefaultParameters & {
|
|
36
|
-
/** Uses legacy angular rendering engine that use dynamic component */
|
|
37
|
-
angularLegacyRendering?: boolean;
|
|
38
|
-
bootstrapModuleOptions?: unknown;
|
|
39
|
-
};
|
|
40
|
-
export declare type StoryContext = DefaultStoryContext<AngularFramework> & {
|
|
41
|
-
parameters: Parameters;
|
|
42
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Args } from '@storybook/csf';
|
|
2
|
-
import { StoryObj } from './types-6-0';
|
|
3
|
-
export { StoryFn, StoryObj, Meta } from './types-6-0';
|
|
4
|
-
/**
|
|
5
|
-
* Story function that represents a CSFv3 component example.
|
|
6
|
-
*
|
|
7
|
-
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
|
8
|
-
*/
|
|
9
|
-
export declare type Story<TArgs = Args> = StoryObj<TArgs>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface NgModuleMetadata {
|
|
2
|
-
declarations?: any[];
|
|
3
|
-
entryComponents?: any[];
|
|
4
|
-
imports?: any[];
|
|
5
|
-
schemas?: any[];
|
|
6
|
-
providers?: any[];
|
|
7
|
-
}
|
|
8
|
-
export interface ICollection {
|
|
9
|
-
[p: string]: any;
|
|
10
|
-
}
|
|
11
|
-
export interface IStorybookStory {
|
|
12
|
-
name: string;
|
|
13
|
-
render: (context: any) => any;
|
|
14
|
-
}
|
|
15
|
-
export interface IStorybookSection {
|
|
16
|
-
kind: string;
|
|
17
|
-
stories: IStorybookStory[];
|
|
18
|
-
}
|
|
19
|
-
export interface StoryFnAngularReturnType {
|
|
20
|
-
/** @deprecated `component` story input is deprecated, and will be removed in Storybook 7.0. */
|
|
21
|
-
component?: any;
|
|
22
|
-
props?: ICollection;
|
|
23
|
-
/** @deprecated `propsMeta` story input is deprecated, and will be removed in Storybook 7.0. */
|
|
24
|
-
propsMeta?: ICollection;
|
|
25
|
-
moduleMetadata?: NgModuleMetadata;
|
|
26
|
-
template?: string;
|
|
27
|
-
styles?: string[];
|
|
28
|
-
userDefinedTemplate?: boolean;
|
|
29
|
-
}
|