@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
|
File without changes
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.previewAnnotations = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const docs_tools_1 = require("@storybook/docs-tools");
|
|
9
|
-
|
|
10
|
-
if (!docs_tools_1.hasDocsOrControls(options))
|
|
9
|
+
const previewAnnotations = (entry = [], options) => {
|
|
10
|
+
if (!(0, docs_tools_1.hasDocsOrControls)(options))
|
|
11
11
|
return entry;
|
|
12
|
-
return [...entry, path_1.default.join(__dirname, '../../../dist/
|
|
12
|
+
return [...entry, path_1.default.join(__dirname, '../../../dist/types/client/docs/config')];
|
|
13
13
|
};
|
|
14
|
+
exports.previewAnnotations = previewAnnotations;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Configuration } from 'webpack';
|
|
2
|
-
import { PresetOptions } from './options';
|
|
2
|
+
import type { PresetOptions } from './preset-options';
|
|
3
3
|
/**
|
|
4
4
|
* Run ngcc for converting modules to ivy format before starting storybook
|
|
5
5
|
* This step is needed in order to support Ivy in storybook
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -14,19 +18,10 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
14
18
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
19
|
if (mod && mod.__esModule) return mod;
|
|
16
20
|
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
22
|
__setModuleDefault(result, mod);
|
|
19
23
|
return result;
|
|
20
24
|
};
|
|
21
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
26
|
exports.webpack = exports.runNgcc = void 0;
|
|
32
27
|
const path = __importStar(require("path"));
|
|
@@ -53,13 +48,13 @@ function loadEsmModule(modulePath) {
|
|
|
53
48
|
*
|
|
54
49
|
* Information about Ivy can be found here https://angular.io/guide/ivy
|
|
55
50
|
*/
|
|
56
|
-
|
|
51
|
+
const runNgcc = async () => {
|
|
57
52
|
let ngcc;
|
|
58
53
|
try {
|
|
59
|
-
ngcc =
|
|
54
|
+
ngcc = await Promise.resolve().then(() => __importStar(require('@angular/compiler-cli/ngcc')));
|
|
60
55
|
}
|
|
61
56
|
catch (error) {
|
|
62
|
-
ngcc =
|
|
57
|
+
ngcc = await loadEsmModule('@angular/compiler-cli/ngcc');
|
|
63
58
|
}
|
|
64
59
|
ngcc.process({
|
|
65
60
|
// should be async: true but does not work due to
|
|
@@ -67,17 +62,23 @@ exports.runNgcc = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
67
62
|
async: false,
|
|
68
63
|
basePath: path.join(process.cwd(), 'node_modules'),
|
|
69
64
|
createNewEntryPointFormats: true,
|
|
70
|
-
compileAllFormats: false,
|
|
65
|
+
compileAllFormats: false, // --first-only
|
|
71
66
|
});
|
|
72
|
-
}
|
|
73
|
-
exports.
|
|
74
|
-
|
|
67
|
+
};
|
|
68
|
+
exports.runNgcc = runNgcc;
|
|
69
|
+
const webpack = async (webpackConfig, options) => {
|
|
70
|
+
const framework = await options.presets.apply('framework');
|
|
71
|
+
const angularOptions = (typeof framework === 'object' ? framework.options : {});
|
|
75
72
|
// Default to true, if undefined
|
|
76
73
|
if (angularOptions.enableIvy === false) {
|
|
77
74
|
return webpackConfig;
|
|
78
75
|
}
|
|
79
|
-
exports.runNgcc();
|
|
80
|
-
return
|
|
76
|
+
(0, exports.runNgcc)();
|
|
77
|
+
return {
|
|
78
|
+
...webpackConfig,
|
|
79
|
+
resolve: {
|
|
80
|
+
...webpackConfig.resolve,
|
|
81
|
+
mainFields: [
|
|
81
82
|
'es2015_ivy_ngcc',
|
|
82
83
|
'module_ivy_ngcc',
|
|
83
84
|
'main_ivy_ngcc',
|
|
@@ -85,5 +86,8 @@ exports.webpack = (webpackConfig, options) => __awaiter(void 0, void 0, void 0,
|
|
|
85
86
|
'browser',
|
|
86
87
|
'module',
|
|
87
88
|
'main',
|
|
88
|
-
]
|
|
89
|
-
}
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
exports.webpack = webpack;
|
|
File without changes
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.webpack = void 0;
|
|
30
|
+
const path_1 = __importDefault(require("path"));
|
|
31
|
+
const semver_1 = __importDefault(require("@storybook/semver"));
|
|
32
|
+
const webpack_1 = require("webpack");
|
|
33
|
+
const autoprefixer_1 = __importDefault(require("autoprefixer"));
|
|
34
|
+
const ts_config_1 = __importDefault(require("./ts_config"));
|
|
35
|
+
const create_fork_ts_checker_plugin_1 = __importDefault(require("./create-fork-ts-checker-plugin"));
|
|
36
|
+
async function webpack(config, { configDir, angularBuilderContext }) {
|
|
37
|
+
try {
|
|
38
|
+
// Disable all this webpack stuff if we use angular-cli >= 12
|
|
39
|
+
// Angular cli is in charge of doing all the necessary for angular. If there is any additional configuration to add, it must be done in the preset angular-cli versioned.
|
|
40
|
+
const angularCliVersion = await Promise.resolve().then(() => __importStar(require('@angular/cli'))).then((m) => semver_1.default.coerce(m.VERSION.full));
|
|
41
|
+
if ((semver_1.default.satisfies(angularCliVersion, '12.2.x') && angularBuilderContext) ||
|
|
42
|
+
semver_1.default.satisfies(angularCliVersion, '>=13.0.0')) {
|
|
43
|
+
return config;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
// do nothing, continue
|
|
48
|
+
}
|
|
49
|
+
const tsLoaderOptions = (0, ts_config_1.default)(configDir);
|
|
50
|
+
return {
|
|
51
|
+
...config,
|
|
52
|
+
module: {
|
|
53
|
+
...config.module,
|
|
54
|
+
rules: [
|
|
55
|
+
...config.module.rules,
|
|
56
|
+
{
|
|
57
|
+
test: /\.tsx?$/,
|
|
58
|
+
use: [
|
|
59
|
+
{
|
|
60
|
+
loader: require.resolve('ts-loader'),
|
|
61
|
+
options: tsLoaderOptions,
|
|
62
|
+
},
|
|
63
|
+
{ loader: path_1.default.resolve(__dirname, 'ngx-template-loader') },
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
test: /[/\\]@angular[/\\]core[/\\].+\.js$/,
|
|
68
|
+
parser: { system: false },
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
test: /\.html$/,
|
|
72
|
+
loader: require.resolve('raw-loader'),
|
|
73
|
+
exclude: /\.async\.html$/,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
test: /\.s(c|a)ss$/,
|
|
77
|
+
use: [
|
|
78
|
+
{ loader: require.resolve('raw-loader') },
|
|
79
|
+
{
|
|
80
|
+
loader: require.resolve('postcss-loader'),
|
|
81
|
+
options: {
|
|
82
|
+
postcssOptions: {
|
|
83
|
+
plugins: [(0, autoprefixer_1.default)()],
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
{ loader: require.resolve('sass-loader') },
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
resolve: {
|
|
93
|
+
...config.resolve,
|
|
94
|
+
},
|
|
95
|
+
plugins: [
|
|
96
|
+
...config.plugins,
|
|
97
|
+
// See https://github.com/angular/angular/issues/11580#issuecomment-401127742
|
|
98
|
+
new webpack_1.ContextReplacementPlugin(/@angular(\\|\/)core(\\|\/)(fesm5|bundles)/, path_1.default.resolve(__dirname, '..')),
|
|
99
|
+
(0, create_fork_ts_checker_plugin_1.default)(tsLoaderOptions),
|
|
100
|
+
],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.webpack = webpack;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Options as CoreOptions } from '@storybook/core-common';
|
|
2
2
|
import { BuilderContext } from '@angular-devkit/architect';
|
|
3
3
|
import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
|
|
4
4
|
export declare type PresetOptions = CoreOptions & {
|
|
@@ -10,5 +10,3 @@ export declare type PresetOptions = CoreOptions & {
|
|
|
10
10
|
angularBuilderContext?: BuilderContext | null;
|
|
11
11
|
tsConfig?: string;
|
|
12
12
|
};
|
|
13
|
-
declare const _default: LoadOptions;
|
|
14
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,6 +11,7 @@ const isStylingRule = (rule) => {
|
|
|
11
11
|
}
|
|
12
12
|
return test.test('.css') || test.test('.scss') || test.test('.sass');
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
const filterOutStylingRules = (config) => {
|
|
15
15
|
return config.module.rules.filter((rule) => !isStylingRule(rule));
|
|
16
16
|
};
|
|
17
|
+
exports.filterOutStylingRules = filterOutStylingRules;
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.moduleIsAvailable = void 0;
|
|
4
|
-
|
|
4
|
+
const moduleIsAvailable = (moduleName) => {
|
|
5
5
|
try {
|
|
6
6
|
require.resolve(moduleName);
|
|
7
7
|
return true;
|
|
@@ -10,3 +10,4 @@ exports.moduleIsAvailable = (moduleName) => {
|
|
|
10
10
|
return false;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
+
exports.moduleIsAvailable = moduleIsAvailable;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseException, Path } from '@angular-devkit/core';
|
|
2
|
-
import { AssetPattern
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { BaseException, Path } from '@angular-devkit/core';
|
|
2
|
+
import { AssetPattern } from '@angular-devkit/build-angular';
|
|
3
|
+
import { AssetPatternClass } from '@angular-devkit/build-angular/src/builders/browser/schema';
|
|
4
|
+
export declare class MissingAssetSourceRootException extends BaseException {
|
|
5
|
+
constructor(path: string);
|
|
6
|
+
}
|
|
7
|
+
export declare function normalizeAssetPatterns(assetPatterns: AssetPattern[], root: Path, projectRoot: Path, maybeSourceRoot: Path | undefined): AssetPatternClass[];
|
|
@@ -17,16 +17,16 @@ class MissingAssetSourceRootException extends core_1.BaseException {
|
|
|
17
17
|
exports.MissingAssetSourceRootException = MissingAssetSourceRootException;
|
|
18
18
|
function normalizeAssetPatterns(assetPatterns, root, projectRoot, maybeSourceRoot) {
|
|
19
19
|
// When sourceRoot is not available, we default to ${projectRoot}/src.
|
|
20
|
-
const sourceRoot = maybeSourceRoot || core_1.join(projectRoot, 'src');
|
|
21
|
-
const resolvedSourceRoot = core_1.resolve(root, sourceRoot);
|
|
20
|
+
const sourceRoot = maybeSourceRoot || (0, core_1.join)(projectRoot, 'src');
|
|
21
|
+
const resolvedSourceRoot = (0, core_1.resolve)(root, sourceRoot);
|
|
22
22
|
if (assetPatterns.length === 0) {
|
|
23
23
|
return [];
|
|
24
24
|
}
|
|
25
25
|
return assetPatterns.map((assetPattern) => {
|
|
26
26
|
// Normalize string asset patterns to objects.
|
|
27
27
|
if (typeof assetPattern === 'string') {
|
|
28
|
-
const assetPath = core_1.normalize(assetPattern);
|
|
29
|
-
const resolvedAssetPath = core_1.resolve(root, assetPath);
|
|
28
|
+
const assetPath = (0, core_1.normalize)(assetPattern);
|
|
29
|
+
const resolvedAssetPath = (0, core_1.resolve)(root, assetPath);
|
|
30
30
|
// Check if the string asset is within sourceRoot.
|
|
31
31
|
if (!resolvedAssetPath.startsWith(resolvedSourceRoot)) {
|
|
32
32
|
throw new MissingAssetSourceRootException(assetPattern);
|
|
@@ -35,9 +35,9 @@ function normalizeAssetPatterns(assetPatterns, root, projectRoot, maybeSourceRoo
|
|
|
35
35
|
let input;
|
|
36
36
|
let isDirectory = false;
|
|
37
37
|
try {
|
|
38
|
-
isDirectory = fs_1.statSync(core_1.getSystemPath(resolvedAssetPath)).isDirectory();
|
|
38
|
+
isDirectory = (0, fs_1.statSync)((0, core_1.getSystemPath)(resolvedAssetPath)).isDirectory();
|
|
39
39
|
}
|
|
40
|
-
catch
|
|
40
|
+
catch {
|
|
41
41
|
isDirectory = true;
|
|
42
42
|
}
|
|
43
43
|
if (isDirectory) {
|
|
@@ -48,12 +48,12 @@ function normalizeAssetPatterns(assetPatterns, root, projectRoot, maybeSourceRoo
|
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
// Files are their own glob.
|
|
51
|
-
glob = core_1.basename(assetPath);
|
|
51
|
+
glob = (0, core_1.basename)(assetPath);
|
|
52
52
|
// Input directory is their original dirname.
|
|
53
|
-
input = core_1.dirname(assetPath);
|
|
53
|
+
input = (0, core_1.dirname)(assetPath);
|
|
54
54
|
}
|
|
55
55
|
// Output directory for both is the relative path from source root to input.
|
|
56
|
-
const output = core_1.relative(resolvedSourceRoot, core_1.resolve(root, input));
|
|
56
|
+
const output = (0, core_1.relative)(resolvedSourceRoot, (0, core_1.resolve)(root, input));
|
|
57
57
|
// Return the asset pattern in object format.
|
|
58
58
|
return { glob, input, output };
|
|
59
59
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { OptimizationUnion } from '@angular-devkit/build-angular
|
|
1
|
+
import { OptimizationUnion } from '@angular-devkit/build-angular';
|
|
2
2
|
import { NormalizedOptimizationOptions } from '@angular-devkit/build-angular/src/utils/normalize-optimization';
|
|
3
3
|
export declare const normalizeOptimization: (options: OptimizationUnion) => NormalizedOptimizationOptions;
|
|
@@ -5,16 +5,17 @@ const module_is_available_1 = require("./module-is-available");
|
|
|
5
5
|
const importAngularCliNormalizeOptimization = () => {
|
|
6
6
|
// First we look for webpack config according to directory structure of Angular
|
|
7
7
|
// present since the version 7.2.0
|
|
8
|
-
if (module_is_available_1.moduleIsAvailable('@angular-devkit/build-angular/src/utils/normalize-optimization')) {
|
|
8
|
+
if ((0, module_is_available_1.moduleIsAvailable)('@angular-devkit/build-angular/src/utils/normalize-optimization')) {
|
|
9
9
|
// eslint-disable-next-line global-require
|
|
10
10
|
return require('@angular-devkit/build-angular/src/utils/normalize-optimization');
|
|
11
11
|
}
|
|
12
12
|
return undefined;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
const normalizeOptimization = (options) => {
|
|
15
15
|
if (importAngularCliNormalizeOptimization()) {
|
|
16
16
|
return importAngularCliNormalizeOptimization().normalizeOptimization(options);
|
|
17
17
|
}
|
|
18
18
|
// Best effort to stay compatible with 6.1.*
|
|
19
19
|
return options;
|
|
20
20
|
};
|
|
21
|
+
exports.normalizeOptimization = normalizeOptimization;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StorybookConfig as BaseConfig } from '@storybook/core-common';
|
|
2
|
+
export interface AngularOptions {
|
|
3
|
+
enableIvy: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The interface for Storybook configuration in `main.ts` files.
|
|
7
|
+
*/
|
|
8
|
+
export interface StorybookConfig extends BaseConfig {
|
|
9
|
+
framework: string | {
|
|
10
|
+
name: '@storybook/angular';
|
|
11
|
+
options: AngularOptions;
|
|
12
|
+
};
|
|
13
|
+
}
|
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.2",
|
|
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,67 @@
|
|
|
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.2",
|
|
37
|
+
"@storybook/api": "7.0.0-alpha.2",
|
|
38
|
+
"@storybook/builder-webpack5": "7.0.0-alpha.2",
|
|
39
|
+
"@storybook/client-logger": "7.0.0-alpha.2",
|
|
40
|
+
"@storybook/core-client": "7.0.0-alpha.2",
|
|
41
|
+
"@storybook/core-common": "7.0.0-alpha.2",
|
|
42
|
+
"@storybook/core-events": "7.0.0-alpha.2",
|
|
43
|
+
"@storybook/core-server": "7.0.0-alpha.2",
|
|
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.2",
|
|
46
|
+
"@storybook/node-logger": "7.0.0-alpha.2",
|
|
57
47
|
"@storybook/semver": "^7.3.2",
|
|
58
|
-
"@storybook/store": "
|
|
48
|
+
"@storybook/store": "7.0.0-alpha.2",
|
|
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
65
|
"regenerator-runtime": "^0.13.7",
|
|
77
|
-
"sass-loader": "^
|
|
66
|
+
"sass-loader": "^12.6.0",
|
|
78
67
|
"telejson": "^6.0.8",
|
|
79
68
|
"ts-dedent": "^2.0.0",
|
|
80
|
-
"ts-loader": "^
|
|
81
|
-
"tsconfig-paths-webpack-plugin": "^3.
|
|
69
|
+
"ts-loader": "^9.2.8",
|
|
70
|
+
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
82
71
|
"util-deprecate": "^1.0.2",
|
|
83
|
-
"webpack": "
|
|
72
|
+
"webpack": "5"
|
|
84
73
|
},
|
|
85
74
|
"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
|
-
"@
|
|
75
|
+
"@angular-devkit/architect": "^0.1303.5",
|
|
76
|
+
"@angular-devkit/build-angular": "^13.3.5",
|
|
77
|
+
"@angular-devkit/core": "^13.3.5",
|
|
78
|
+
"@angular/cli": "^13.3.5",
|
|
79
|
+
"@angular/common": "^13.3.6",
|
|
80
|
+
"@angular/compiler": "^13.3.6",
|
|
81
|
+
"@angular/compiler-cli": "^13.3.6",
|
|
82
|
+
"@angular/core": "^13.3.6",
|
|
83
|
+
"@angular/elements": "^13.3.6",
|
|
84
|
+
"@angular/forms": "^13.3.6",
|
|
85
|
+
"@angular/platform-browser": "^13.3.6",
|
|
86
|
+
"@angular/platform-browser-dynamic": "^13.3.6",
|
|
87
|
+
"@nrwl/workspace": "^14.1.4",
|
|
98
88
|
"@types/autoprefixer": "^9.7.2",
|
|
99
89
|
"@types/tmp": "^0.2.3",
|
|
100
90
|
"cross-spawn": "^7.0.3",
|
|
101
|
-
"jest": "^
|
|
102
|
-
"jest-preset-angular": "^
|
|
103
|
-
"jest-specific-snapshot": "^
|
|
91
|
+
"jest": "^27.5.1",
|
|
92
|
+
"jest-preset-angular": "^12.0.0",
|
|
93
|
+
"jest-specific-snapshot": "^5.0.0",
|
|
104
94
|
"tmp": "^0.2.1",
|
|
105
|
-
"
|
|
95
|
+
"typescript": "~4.6.3",
|
|
96
|
+
"webpack": "5"
|
|
106
97
|
},
|
|
107
98
|
"peerDependencies": {
|
|
108
99
|
"@angular-devkit/architect": ">=0.8.9",
|
|
@@ -119,7 +110,7 @@
|
|
|
119
110
|
"@babel/core": "*",
|
|
120
111
|
"@nrwl/workspace": ">=11.1.0",
|
|
121
112
|
"rxjs": "^6.0.0 || ^7.4.0",
|
|
122
|
-
"typescript": "^
|
|
113
|
+
"typescript": "^4.0.0",
|
|
123
114
|
"zone.js": "^0.8.29 || ^0.9.0 || ^0.10.0 || ^0.11.0"
|
|
124
115
|
},
|
|
125
116
|
"peerDependenciesMeta": {
|
|
@@ -136,6 +127,6 @@
|
|
|
136
127
|
"publishConfig": {
|
|
137
128
|
"access": "public"
|
|
138
129
|
},
|
|
139
|
-
"builders": "dist/
|
|
140
|
-
"gitHead": "
|
|
130
|
+
"builders": "dist/types/builders/builders.json",
|
|
131
|
+
"gitHead": "44920e2b6bd51981bac5124743c29fb9f5517e44"
|
|
141
132
|
}
|
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/standalone.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const build = require('@storybook/core/standalone');
|
|
2
|
-
const frameworkOptions = require('./dist/ts3.9/server/options').default;
|
|
1
|
+
const build = require('@storybook/core-server/standalone');
|
|
3
2
|
|
|
4
3
|
async function buildStandalone(options) {
|
|
5
|
-
return build(options
|
|
4
|
+
return build(options);
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
module.exports = buildStandalone;
|
package/types-6-0.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './dist/
|
|
1
|
+
export * from './dist/types/client/preview/types-6-0.d';
|
package/types-7-0.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './dist/
|
|
1
|
+
export * from './dist/types/client/preview/types-7-0.d';
|
package/bin/build.js
DELETED
package/bin/index.js
DELETED
package/demo.d.ts
DELETED