@storybook/angular 6.5.9 → 7.0.0-alpha.10
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 +56 -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 +64 -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/types/builders/utils/standalone-options.d.ts +12 -0
- package/dist/{ts3.9/client/docs/types.js → types/builders/utils/standalone-options.js} +0 -0
- package/dist/{ts3.9/client/preview/angular/components → types/client/angular}/app.component.d.ts +1 -1
- package/dist/{ts3.9/client/preview/angular/components → types/client/angular}/app.component.js +5 -5
- package/dist/{ts3.9/client/preview → types/client}/angular/app.token.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular/app.token.js +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular/helpers.d.ts +1 -1
- package/dist/{ts3.9/client/preview → types/client}/angular/helpers.js +7 -7
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/AbstractRenderer.d.ts +1 -2
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/AbstractRenderer.js +40 -48
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/CanvasRenderer.d.ts +1 -2
- package/dist/types/client/angular-beta/CanvasRenderer.js +16 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/ComputesTemplateFromComponent.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/ComputesTemplateFromComponent.js +10 -8
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/DocsRenderer.d.ts +1 -2
- package/dist/types/client/angular-beta/DocsRenderer.js +41 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/RendererFactory.d.ts +0 -0
- package/dist/types/client/angular-beta/RendererFactory.js +55 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookModule.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookModule.js +18 -17
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookProvider.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookProvider.js +2 -1
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookWrapperComponent.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookWrapperComponent.js +11 -10
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgComponentAnalyzer.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgComponentAnalyzer.js +24 -13
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgModulesAnalyzer.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgModulesAnalyzer.js +3 -2
- package/dist/{ts3.9/client/preview → types/client}/config.d.ts +1 -1
- package/dist/{ts3.9/client/preview → types/client}/config.js +1 -1
- package/dist/{ts3.9/client/preview → types/client}/decorateStory.d.ts +1 -1
- package/dist/{ts3.9/client/preview → types/client}/decorateStory.js +11 -6
- package/dist/{ts3.9/client/preview → types/client}/decorators.d.ts +1 -2
- package/dist/{ts3.9/client/preview → types/client}/decorators.js +23 -11
- 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 +3 -4
- 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 +2 -2
- 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/client/preview → types/client/docs}/types.js +0 -0
- package/dist/{ts3.9/client/preview/angular-polyfills.d.ts → types/client/globals.d.ts} +0 -10
- package/dist/{ts3.9/client/preview/angular-polyfills.js → types/client/globals.js} +7 -1
- package/dist/types/client/index.d.ts +5 -0
- package/dist/types/client/index.js +25 -0
- package/dist/{ts3.9/client/preview/index.d.ts → types/client/public-api.d.ts} +2 -4
- package/dist/types/client/public-api.js +43 -0
- package/dist/{ts3.9/client/preview/types-6-0.d.ts → types/client/public-types.d.ts} +4 -19
- package/dist/{ts3.9/client/preview/types-6-0.js → types/client/public-types.js} +0 -0
- package/dist/{ts3.9/client/preview → types/client}/render.d.ts +1 -1
- package/dist/types/client/render.js +24 -0
- package/dist/{ts3.9/client/preview → types/client}/types.d.ts +13 -0
- package/dist/{ts3.9/client/preview/types-7-0.js → types/client/types.js} +0 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/{ts3.9/public_api.js → types/index.js} +8 -3
- package/dist/types/preset.d.ts +6 -0
- package/dist/types/preset.js +36 -0
- package/dist/types/renderer.d.ts +4 -0
- package/dist/{ts3.9 → types}/renderer.js +5 -4
- 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 +28 -0
- package/dist/types/types.js +2 -0
- package/jest.config.js +1 -0
- package/package.json +47 -57
- package/preset.js +1 -1
- package/renderer.d.ts +1 -1
- package/renderer.js +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/public_api.d.ts +0 -1
- 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/index.d.ts +0 -4
- package/dist/ts3.9/client/index.js +0 -28
- 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/globals.d.ts +0 -1
- package/dist/ts3.9/client/preview/globals.js +0 -9
- package/dist/ts3.9/client/preview/index.js +0 -27
- package/dist/ts3.9/client/preview/render.js +0 -34
- package/dist/ts3.9/client/preview/types-7-0.d.ts +0 -9
- 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/renderer.d.ts +0 -4
- 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
- package/standalone.d.ts +0 -21
- package/standalone.js +0 -8
- package/types-6-0.d.ts +0 -1
- package/types-7-0.d.ts +0 -1
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,41 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Storybook for Angular: Develop Angular
|
|
3
|
+
"version": "7.0.0-alpha.10",
|
|
4
|
+
"description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"storybook"
|
|
6
|
+
"storybook",
|
|
7
|
+
"angular"
|
|
7
8
|
],
|
|
8
|
-
"homepage": "https://github.com/storybookjs/storybook/tree/main/
|
|
9
|
+
"homepage": "https://github.com/storybookjs/storybook/tree/main/frameworks/angular",
|
|
9
10
|
"bugs": {
|
|
10
11
|
"url": "https://github.com/storybookjs/storybook/issues"
|
|
11
12
|
},
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
14
15
|
"url": "https://github.com/storybookjs/storybook.git",
|
|
15
|
-
"directory": "
|
|
16
|
+
"directory": "frameworks/angular"
|
|
16
17
|
},
|
|
17
18
|
"funding": {
|
|
18
19
|
"type": "opencollective",
|
|
19
20
|
"url": "https://opencollective.com/storybook"
|
|
20
21
|
},
|
|
21
22
|
"license": "MIT",
|
|
22
|
-
"main": "dist/
|
|
23
|
-
"module": "dist/
|
|
24
|
-
"types": "dist/
|
|
25
|
-
"typesVersions": {
|
|
26
|
-
"<3.8": {
|
|
27
|
-
"dist/ts3.9/*": [
|
|
28
|
-
"dist/ts3.4/*"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"bin": {
|
|
33
|
-
"build-storybook": "./bin/build.js",
|
|
34
|
-
"start-storybook": "./bin/index.js",
|
|
35
|
-
"storybook-server": "./bin/index.js"
|
|
36
|
-
},
|
|
23
|
+
"main": "dist/types/index.js",
|
|
24
|
+
"module": "dist/types/index.js",
|
|
25
|
+
"types": "dist/types/index.d.ts",
|
|
37
26
|
"files": [
|
|
38
|
-
"bin/**/*",
|
|
39
27
|
"dist/**/*",
|
|
40
28
|
"README.md",
|
|
41
29
|
"*.js",
|
|
@@ -45,64 +33,66 @@
|
|
|
45
33
|
"prepare": "node ../../scripts/prepare.js"
|
|
46
34
|
},
|
|
47
35
|
"dependencies": {
|
|
48
|
-
"@storybook/addons": "
|
|
49
|
-
"@storybook/api": "
|
|
50
|
-
"@storybook/
|
|
51
|
-
"@storybook/
|
|
52
|
-
"@storybook/core-
|
|
53
|
-
"@storybook/core-
|
|
36
|
+
"@storybook/addons": "7.0.0-alpha.10",
|
|
37
|
+
"@storybook/api": "7.0.0-alpha.10",
|
|
38
|
+
"@storybook/builder-webpack5": "7.0.0-alpha.10",
|
|
39
|
+
"@storybook/client-logger": "7.0.0-alpha.10",
|
|
40
|
+
"@storybook/core-client": "7.0.0-alpha.10",
|
|
41
|
+
"@storybook/core-common": "7.0.0-alpha.10",
|
|
42
|
+
"@storybook/core-events": "7.0.0-alpha.10",
|
|
43
|
+
"@storybook/core-server": "7.0.0-alpha.10",
|
|
54
44
|
"@storybook/csf": "0.0.2--canary.4566f4d.1",
|
|
55
|
-
"@storybook/docs-tools": "
|
|
56
|
-
"@storybook/node-logger": "
|
|
45
|
+
"@storybook/docs-tools": "7.0.0-alpha.10",
|
|
46
|
+
"@storybook/node-logger": "7.0.0-alpha.10",
|
|
57
47
|
"@storybook/semver": "^7.3.2",
|
|
58
|
-
"@storybook/store": "
|
|
48
|
+
"@storybook/store": "7.0.0-alpha.10",
|
|
59
49
|
"@types/node": "^14.14.20 || ^16.0.0",
|
|
60
50
|
"@types/react": "^16.14.23",
|
|
61
51
|
"@types/react-dom": "^16.9.14",
|
|
62
|
-
"@types/webpack-env": "^1.16.0",
|
|
63
52
|
"autoprefixer": "^9.8.6",
|
|
64
53
|
"core-js": "^3.8.2",
|
|
65
54
|
"find-up": "^5.0.0",
|
|
66
|
-
"fork-ts-checker-webpack-plugin": "^
|
|
55
|
+
"fork-ts-checker-webpack-plugin": "^7.2.6",
|
|
67
56
|
"global": "^4.4.0",
|
|
68
57
|
"nanoid": "^3.1.23",
|
|
69
58
|
"p-limit": "^3.1.0",
|
|
70
59
|
"postcss": "^7.0.36",
|
|
71
|
-
"postcss-loader": "^
|
|
60
|
+
"postcss-loader": "^6.2.1",
|
|
72
61
|
"raw-loader": "^4.0.2",
|
|
73
62
|
"react": "^16.14.0",
|
|
74
63
|
"react-dom": "^16.14.0",
|
|
75
64
|
"read-pkg-up": "^7.0.1",
|
|
76
|
-
"
|
|
77
|
-
"sass-loader": "^10.1.0",
|
|
65
|
+
"sass-loader": "^12.6.0",
|
|
78
66
|
"telejson": "^6.0.8",
|
|
79
67
|
"ts-dedent": "^2.0.0",
|
|
80
|
-
"ts-loader": "^
|
|
81
|
-
"tsconfig-paths-webpack-plugin": "^3.
|
|
68
|
+
"ts-loader": "^9.2.8",
|
|
69
|
+
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
82
70
|
"util-deprecate": "^1.0.2",
|
|
83
|
-
"webpack": "
|
|
71
|
+
"webpack": "5"
|
|
84
72
|
},
|
|
85
73
|
"devDependencies": {
|
|
86
|
-
"@angular-devkit/architect": "
|
|
87
|
-
"@angular-devkit/build-angular": "
|
|
88
|
-
"@angular-devkit/core": "^
|
|
89
|
-
"@angular/cli": "^
|
|
90
|
-
"@angular/common": "^
|
|
91
|
-
"@angular/compiler": "^
|
|
92
|
-
"@angular/compiler-cli": "^
|
|
93
|
-
"@angular/core": "^
|
|
94
|
-
"@angular/
|
|
95
|
-
"@angular/
|
|
96
|
-
"@angular/platform-browser
|
|
97
|
-
"@
|
|
74
|
+
"@angular-devkit/architect": "^0.1303.5",
|
|
75
|
+
"@angular-devkit/build-angular": "^13.3.5",
|
|
76
|
+
"@angular-devkit/core": "^13.3.5",
|
|
77
|
+
"@angular/cli": "^13.3.5",
|
|
78
|
+
"@angular/common": "^13.3.6",
|
|
79
|
+
"@angular/compiler": "^13.3.6",
|
|
80
|
+
"@angular/compiler-cli": "^13.3.6",
|
|
81
|
+
"@angular/core": "^13.3.6",
|
|
82
|
+
"@angular/elements": "^13.3.6",
|
|
83
|
+
"@angular/forms": "^13.3.6",
|
|
84
|
+
"@angular/platform-browser": "^13.3.6",
|
|
85
|
+
"@angular/platform-browser-dynamic": "^13.3.6",
|
|
86
|
+
"@nrwl/workspace": "^14.1.4",
|
|
98
87
|
"@types/autoprefixer": "^9.7.2",
|
|
99
88
|
"@types/tmp": "^0.2.3",
|
|
100
89
|
"cross-spawn": "^7.0.3",
|
|
101
|
-
"jest": "^
|
|
102
|
-
"jest-preset-angular": "^
|
|
103
|
-
"jest-specific-snapshot": "^
|
|
90
|
+
"jest": "^27.5.1",
|
|
91
|
+
"jest-preset-angular": "^12.0.0",
|
|
92
|
+
"jest-specific-snapshot": "^5.0.0",
|
|
104
93
|
"tmp": "^0.2.1",
|
|
105
|
-
"
|
|
94
|
+
"typescript": "~4.6.3",
|
|
95
|
+
"webpack": "5"
|
|
106
96
|
},
|
|
107
97
|
"peerDependencies": {
|
|
108
98
|
"@angular-devkit/architect": ">=0.8.9",
|
|
@@ -119,7 +109,7 @@
|
|
|
119
109
|
"@babel/core": "*",
|
|
120
110
|
"@nrwl/workspace": ">=11.1.0",
|
|
121
111
|
"rxjs": "^6.0.0 || ^7.4.0",
|
|
122
|
-
"typescript": "^
|
|
112
|
+
"typescript": "^4.0.0",
|
|
123
113
|
"zone.js": "^0.8.29 || ^0.9.0 || ^0.10.0 || ^0.11.0"
|
|
124
114
|
},
|
|
125
115
|
"peerDependenciesMeta": {
|
|
@@ -136,6 +126,6 @@
|
|
|
136
126
|
"publishConfig": {
|
|
137
127
|
"access": "public"
|
|
138
128
|
},
|
|
139
|
-
"builders": "dist/
|
|
140
|
-
"gitHead": "
|
|
129
|
+
"builders": "dist/types/builders/builders.json",
|
|
130
|
+
"gitHead": "b13dd8fb52819d73d4983148af8ffc5d683e8b75"
|
|
141
131
|
}
|
package/preset.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./dist/
|
|
1
|
+
module.exports = require('./dist/types/preset');
|
package/renderer.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './dist/
|
|
1
|
+
export * from './dist/types/renderer.d';
|
package/renderer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./dist/
|
|
1
|
+
module.exports = require('./dist/types/renderer');
|
package/bin/build.js
DELETED
package/bin/index.js
DELETED
package/demo.d.ts
DELETED
package/demo.js
DELETED
|
@@ -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>;
|