@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.
Files changed (268) hide show
  1. package/dist/{ts3.9 → types}/builders/build-storybook/index.d.ts +1 -1
  2. package/dist/types/builders/build-storybook/index.js +58 -0
  3. package/dist/{ts3.9 → types}/builders/build-storybook/schema.json +0 -0
  4. package/dist/{ts3.9 → types}/builders/builders.json +0 -0
  5. package/dist/{ts3.9 → types}/builders/start-storybook/index.d.ts +1 -1
  6. package/dist/types/builders/start-storybook/index.js +66 -0
  7. package/dist/{ts3.9 → types}/builders/start-storybook/schema.json +0 -0
  8. package/dist/{ts3.9 → types}/builders/utils/build-standalone-errors-handler.d.ts +0 -0
  9. package/dist/{ts3.9 → types}/builders/utils/build-standalone-errors-handler.js +5 -5
  10. package/dist/{ts3.9 → types}/builders/utils/run-compodoc.d.ts +0 -0
  11. package/dist/{ts3.9 → types}/builders/utils/run-compodoc.js +9 -4
  12. package/dist/{ts3.9 → types}/client/docs/compodoc.d.ts +0 -0
  13. package/dist/{ts3.9 → types}/client/docs/compodoc.js +47 -34
  14. package/dist/{ts3.9 → types}/client/docs/config.d.ts +2 -3
  15. package/dist/{ts3.9 → types}/client/docs/config.js +0 -2
  16. package/dist/{ts3.9 → types}/client/docs/index.d.ts +0 -0
  17. package/dist/{ts3.9 → types}/client/docs/index.js +6 -2
  18. package/dist/{ts3.9 → types}/client/docs/sourceDecorator.d.ts +0 -0
  19. package/dist/{ts3.9 → types}/client/docs/sourceDecorator.js +10 -9
  20. package/dist/{ts3.9 → types}/client/docs/types.d.ts +0 -0
  21. package/dist/{ts3.9 → types}/client/docs/types.js +0 -0
  22. package/dist/{ts3.9 → types}/client/index.d.ts +0 -0
  23. package/dist/{ts3.9 → types}/client/index.js +9 -5
  24. package/dist/{ts3.9 → types}/client/preview/angular/app.token.d.ts +0 -0
  25. package/dist/{ts3.9 → types}/client/preview/angular/app.token.js +0 -0
  26. package/dist/{ts3.9 → types}/client/preview/angular/components/app.component.d.ts +0 -0
  27. package/dist/{ts3.9 → types}/client/preview/angular/components/app.component.js +4 -4
  28. package/dist/{ts3.9 → types}/client/preview/angular/helpers.d.ts +0 -0
  29. package/dist/{ts3.9 → types}/client/preview/angular/helpers.js +6 -6
  30. package/dist/{ts3.9 → types}/client/preview/angular-beta/AbstractRenderer.d.ts +0 -0
  31. package/dist/{ts3.9 → types}/client/preview/angular-beta/AbstractRenderer.js +40 -48
  32. package/dist/{ts3.9 → types}/client/preview/angular-beta/CanvasRenderer.d.ts +0 -0
  33. package/dist/types/client/preview/angular-beta/CanvasRenderer.js +16 -0
  34. package/dist/{ts3.9 → types}/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +0 -0
  35. package/dist/{ts3.9 → types}/client/preview/angular-beta/ComputesTemplateFromComponent.js +10 -8
  36. package/dist/{ts3.9 → types}/client/preview/angular-beta/DocsRenderer.d.ts +0 -0
  37. package/dist/types/client/preview/angular-beta/DocsRenderer.js +41 -0
  38. package/dist/{ts3.9 → types}/client/preview/angular-beta/RendererFactory.d.ts +0 -0
  39. package/dist/types/client/preview/angular-beta/RendererFactory.js +55 -0
  40. package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookModule.d.ts +0 -0
  41. package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookModule.js +17 -16
  42. package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookProvider.d.ts +0 -0
  43. package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookProvider.js +2 -1
  44. package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookWrapperComponent.d.ts +0 -0
  45. package/dist/{ts3.9 → types}/client/preview/angular-beta/StorybookWrapperComponent.js +11 -10
  46. package/dist/{ts3.9 → types}/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +0 -0
  47. package/dist/{ts3.9 → types}/client/preview/angular-beta/utils/NgComponentAnalyzer.js +24 -13
  48. package/dist/{ts3.9 → types}/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +0 -0
  49. package/dist/{ts3.9 → types}/client/preview/angular-beta/utils/NgModulesAnalyzer.js +3 -2
  50. package/dist/{ts3.9 → types}/client/preview/angular-polyfills.d.ts +0 -0
  51. package/dist/{ts3.9 → types}/client/preview/angular-polyfills.js +0 -0
  52. package/dist/{ts3.9 → types}/client/preview/config.d.ts +0 -0
  53. package/dist/{ts3.9 → types}/client/preview/config.js +1 -1
  54. package/dist/{ts3.9 → types}/client/preview/decorateStory.d.ts +0 -0
  55. package/dist/{ts3.9 → types}/client/preview/decorateStory.js +11 -6
  56. package/dist/{ts3.9 → types}/client/preview/decorators.d.ts +0 -0
  57. package/dist/{ts3.9 → types}/client/preview/decorators.js +23 -11
  58. package/dist/{ts3.9 → types}/client/preview/globals.d.ts +0 -0
  59. package/dist/{ts3.9 → types}/client/preview/globals.js +0 -0
  60. package/dist/{ts3.9 → types}/client/preview/index.d.ts +0 -0
  61. package/dist/{ts3.9 → types}/client/preview/index.js +6 -4
  62. package/dist/{ts3.9 → types}/client/preview/render.d.ts +0 -0
  63. package/dist/types/client/preview/render.js +24 -0
  64. package/dist/{ts3.9 → types}/client/preview/types-6-0.d.ts +0 -0
  65. package/dist/{ts3.9 → types}/client/preview/types-6-0.js +0 -0
  66. package/dist/{ts3.9 → types}/client/preview/types-7-0.d.ts +0 -0
  67. package/dist/{ts3.9 → types}/client/preview/types-7-0.js +0 -0
  68. package/dist/{ts3.9 → types}/client/preview/types.d.ts +0 -0
  69. package/dist/{ts3.9 → types}/client/preview/types.js +0 -0
  70. package/dist/{ts3.4/public_api.d.ts → types/index.d.ts} +2 -1
  71. package/dist/{ts3.9/public_api.js → types/index.js} +7 -2
  72. package/dist/types/preset.d.ts +13 -0
  73. package/dist/types/preset.js +32 -0
  74. package/dist/{ts3.9 → types}/renderer.d.ts +0 -0
  75. package/dist/{ts3.9 → types}/renderer.js +1 -0
  76. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/empty-projects-entry/angular.json +0 -0
  77. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/angular.json +0 -0
  78. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +0 -0
  79. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/main.js +0 -0
  80. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/tsconfig.app.json +0 -0
  81. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/tsconfig.json +0 -0
  82. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/angular.json +0 -0
  83. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/main.d.ts +0 -0
  84. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/main.js +0 -0
  85. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/tsconfig.app.json +0 -0
  86. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/tsconfig.json +0 -0
  87. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/angular.json +0 -0
  88. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +0 -0
  89. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.js +0 -0
  90. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/tsconfig.app.json +0 -0
  91. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json +0 -0
  92. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/angular.json +0 -0
  93. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +0 -0
  94. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.js +0 -0
  95. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/tsconfig.lib.json +0 -0
  96. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/tsconfig.json +0 -0
  97. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/angular.json +0 -0
  98. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/nx.json +0 -0
  99. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +0 -0
  100. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/main.js +0 -0
  101. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/tsconfig.app.json +0 -0
  102. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/tsconfig.json +0 -0
  103. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/nx.json +0 -0
  104. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +0 -0
  105. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/main.js +0 -0
  106. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/tsconfig.app.json +0 -0
  107. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json +0 -0
  108. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/workspace.json +0 -0
  109. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/angular.json +0 -0
  110. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +0 -0
  111. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/main.js +0 -0
  112. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/tsconfig.app.json +0 -0
  113. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json +0 -0
  114. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-architect-build/angular.json +0 -0
  115. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-architect-build-options/angular.json +0 -0
  116. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-compatible-projects/angular.json +0 -0
  117. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/angular.json +0 -0
  118. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +0 -0
  119. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.js +0 -0
  120. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/tsconfig.lib.json +0 -0
  121. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json +0 -0
  122. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/angular.json +0 -0
  123. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +0 -0
  124. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/main.js +0 -0
  125. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/tsconfig.app.json +0 -0
  126. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json +0 -0
  127. package/dist/{ts3.9 → types}/server/angular-cli-webpack-12.2.x.d.ts +0 -0
  128. package/dist/types/server/angular-cli-webpack-12.2.x.js +66 -0
  129. package/dist/{ts3.9 → types}/server/angular-cli-webpack-13.x.x.d.ts +0 -0
  130. package/dist/types/server/angular-cli-webpack-13.x.x.js +70 -0
  131. package/dist/types/server/angular-cli-webpack-older.d.ts +6 -0
  132. package/dist/types/server/angular-cli-webpack-older.js +111 -0
  133. package/dist/{ts3.9 → types}/server/angular-devkit-build-webpack.d.ts +6 -6
  134. package/dist/{ts3.9 → types}/server/angular-devkit-build-webpack.js +66 -54
  135. package/dist/{ts3.9 → types}/server/angular-read-workspace.d.ts +0 -0
  136. package/dist/{ts3.9 → types}/server/angular-read-workspace.js +8 -14
  137. package/dist/{ts3.9 → types}/server/create-fork-ts-checker-plugin.d.ts +0 -0
  138. package/dist/{ts3.9 → types}/server/create-fork-ts-checker-plugin.js +1 -1
  139. package/dist/{ts3.9 → types}/server/framework-preset-angular-cli.d.ts +1 -1
  140. package/dist/types/server/framework-preset-angular-cli.js +175 -0
  141. package/dist/{ts3.9 → types}/server/framework-preset-angular-docs.d.ts +0 -0
  142. package/dist/{ts3.9 → types}/server/framework-preset-angular-docs.js +4 -3
  143. package/dist/{ts3.9 → types}/server/framework-preset-angular-ivy.d.ts +1 -1
  144. package/dist/{ts3.9 → types}/server/framework-preset-angular-ivy.js +26 -22
  145. package/dist/{ts3.9 → types}/server/framework-preset-angular.d.ts +0 -0
  146. package/dist/types/server/framework-preset-angular.js +103 -0
  147. package/dist/{ts3.9 → types}/server/ngx-template-loader/index.d.ts +0 -0
  148. package/dist/{ts3.9 → types}/server/ngx-template-loader/index.js +0 -0
  149. package/dist/{ts3.9/server/options.d.ts → types/server/preset-options.d.ts} +1 -3
  150. package/dist/{ts3.9/types/index.js → types/server/preset-options.js} +0 -0
  151. package/dist/{ts3.9 → types}/server/ts_config.d.ts +0 -0
  152. package/dist/{ts3.9 → types}/server/ts_config.js +0 -0
  153. package/dist/{ts3.9 → types}/server/utils/filter-out-styling-rules.d.ts +0 -0
  154. package/dist/{ts3.9 → types}/server/utils/filter-out-styling-rules.js +2 -1
  155. package/dist/{ts3.9 → types}/server/utils/module-is-available.d.ts +0 -0
  156. package/dist/{ts3.9 → types}/server/utils/module-is-available.js +2 -1
  157. package/dist/{ts3.4 → types}/server/utils/normalize-asset-patterns.d.ts +7 -6
  158. package/dist/{ts3.9 → types}/server/utils/normalize-asset-patterns.js +9 -9
  159. package/dist/{ts3.9 → types}/server/utils/normalize-optimization.d.ts +1 -1
  160. package/dist/{ts3.9 → types}/server/utils/normalize-optimization.js +3 -2
  161. package/dist/types/types.d.ts +13 -0
  162. package/dist/types/types.js +2 -0
  163. package/jest.config.js +1 -0
  164. package/package.json +47 -56
  165. package/preset.js +1 -1
  166. package/renderer.d.ts +1 -1
  167. package/renderer.js +1 -1
  168. package/standalone.js +2 -3
  169. package/types-6-0.d.ts +1 -1
  170. package/types-7-0.d.ts +1 -1
  171. package/bin/build.js +0 -4
  172. package/bin/index.js +0 -3
  173. package/demo.d.ts +0 -4
  174. package/demo.js +0 -5
  175. package/dist/ts3.4/builders/build-storybook/index.d.ts +0 -15
  176. package/dist/ts3.4/builders/start-storybook/index.d.ts +0 -15
  177. package/dist/ts3.4/builders/utils/build-standalone-errors-handler.d.ts +0 -1
  178. package/dist/ts3.4/builders/utils/run-compodoc.d.ts +0 -6
  179. package/dist/ts3.4/client/docs/compodoc.d.ts +0 -18
  180. package/dist/ts3.4/client/docs/config.d.ts +0 -15
  181. package/dist/ts3.4/client/docs/index.d.ts +0 -1
  182. package/dist/ts3.4/client/docs/prepareForInline.d.ts +0 -7
  183. package/dist/ts3.4/client/docs/sourceDecorator.d.ts +0 -9
  184. package/dist/ts3.4/client/docs/types.d.ts +0 -102
  185. package/dist/ts3.4/client/index.d.ts +0 -4
  186. package/dist/ts3.4/client/preview/angular/app.token.d.ts +0 -3
  187. package/dist/ts3.4/client/preview/angular/components/app.component.d.ts +0 -38
  188. package/dist/ts3.4/client/preview/angular/helpers.d.ts +0 -8
  189. package/dist/ts3.4/client/preview/angular-beta/AbstractRenderer.d.ts +0 -57
  190. package/dist/ts3.4/client/preview/angular-beta/CanvasRenderer.d.ts +0 -14
  191. package/dist/ts3.4/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +0 -17
  192. package/dist/ts3.4/client/preview/angular-beta/DocsRenderer.d.ts +0 -14
  193. package/dist/ts3.4/client/preview/angular-beta/RendererFactory.d.ts +0 -11
  194. package/dist/ts3.4/client/preview/angular-beta/StorybookModule.d.ts +0 -9
  195. package/dist/ts3.4/client/preview/angular-beta/StorybookProvider.d.ts +0 -5
  196. package/dist/ts3.4/client/preview/angular-beta/StorybookWrapperComponent.d.ts +0 -9
  197. package/dist/ts3.4/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +0 -29
  198. package/dist/ts3.4/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +0 -6
  199. package/dist/ts3.4/client/preview/angular-polyfills.d.ts +0 -41
  200. package/dist/ts3.4/client/preview/config.d.ts +0 -6
  201. package/dist/ts3.4/client/preview/decorateStory.d.ts +0 -4
  202. package/dist/ts3.4/client/preview/decorators.d.ts +0 -6
  203. package/dist/ts3.4/client/preview/globals.d.ts +0 -1
  204. package/dist/ts3.4/client/preview/index.d.ts +0 -25
  205. package/dist/ts3.4/client/preview/render.d.ts +0 -7
  206. package/dist/ts3.4/client/preview/types-6-0.d.ts +0 -42
  207. package/dist/ts3.4/client/preview/types-7-0.d.ts +0 -9
  208. package/dist/ts3.4/client/preview/types.d.ts +0 -29
  209. package/dist/ts3.4/demo/button.component.d.ts +0 -5
  210. package/dist/ts3.4/demo/welcome.component.d.ts +0 -4
  211. package/dist/ts3.4/renderer.d.ts +0 -4
  212. package/dist/ts3.4/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +0 -1
  213. package/dist/ts3.4/server/__mocks-ng-workspace__/some-config/src/main.d.ts +0 -1
  214. package/dist/ts3.4/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +0 -1
  215. package/dist/ts3.4/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +0 -1
  216. package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +0 -1
  217. package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +0 -1
  218. package/dist/ts3.4/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +0 -1
  219. package/dist/ts3.4/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +0 -1
  220. package/dist/ts3.4/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +0 -1
  221. package/dist/ts3.4/server/angular-cli-webpack-12.2.x.d.ts +0 -1
  222. package/dist/ts3.4/server/angular-cli-webpack-13.x.x.d.ts +0 -1
  223. package/dist/ts3.4/server/angular-cli-webpack-older.d.ts +0 -73
  224. package/dist/ts3.4/server/angular-devkit-build-webpack.d.ts +0 -30
  225. package/dist/ts3.4/server/angular-read-workspace.d.ts +0 -13
  226. package/dist/ts3.4/server/build.d.ts +0 -1
  227. package/dist/ts3.4/server/create-fork-ts-checker-plugin.d.ts +0 -3
  228. package/dist/ts3.4/server/framework-preset-angular-cli.d.ts +0 -3
  229. package/dist/ts3.4/server/framework-preset-angular-docs.d.ts +0 -2
  230. package/dist/ts3.4/server/framework-preset-angular-ivy.d.ts +0 -10
  231. package/dist/ts3.4/server/framework-preset-angular.d.ts +0 -5
  232. package/dist/ts3.4/server/index.d.ts +0 -1
  233. package/dist/ts3.4/server/ngx-template-loader/index.d.ts +0 -1
  234. package/dist/ts3.4/server/options.d.ts +0 -14
  235. package/dist/ts3.4/server/preset.d.ts +0 -3
  236. package/dist/ts3.4/server/ts_config.d.ts +0 -2
  237. package/dist/ts3.4/server/utils/filter-out-styling-rules.d.ts +0 -2
  238. package/dist/ts3.4/server/utils/module-is-available.d.ts +0 -1
  239. package/dist/ts3.4/server/utils/normalize-optimization.d.ts +0 -3
  240. package/dist/ts3.4/types/index.d.ts +0 -6
  241. package/dist/ts3.9/builders/build-storybook/index.js +0 -65
  242. package/dist/ts3.9/builders/start-storybook/index.js +0 -73
  243. package/dist/ts3.9/client/docs/prepareForInline.d.ts +0 -7
  244. package/dist/ts3.9/client/docs/prepareForInline.js +0 -45
  245. package/dist/ts3.9/client/preview/angular-beta/CanvasRenderer.js +0 -34
  246. package/dist/ts3.9/client/preview/angular-beta/DocsRenderer.js +0 -59
  247. package/dist/ts3.9/client/preview/angular-beta/RendererFactory.js +0 -65
  248. package/dist/ts3.9/client/preview/render.js +0 -34
  249. package/dist/ts3.9/demo/button.component.d.ts +0 -5
  250. package/dist/ts3.9/demo/button.component.js +0 -46
  251. package/dist/ts3.9/demo/welcome.component.d.ts +0 -4
  252. package/dist/ts3.9/demo/welcome.component.js +0 -99
  253. package/dist/ts3.9/public_api.d.ts +0 -1
  254. package/dist/ts3.9/server/angular-cli-webpack-12.2.x.js +0 -56
  255. package/dist/ts3.9/server/angular-cli-webpack-13.x.x.js +0 -60
  256. package/dist/ts3.9/server/angular-cli-webpack-older.d.ts +0 -73
  257. package/dist/ts3.9/server/angular-cli-webpack-older.js +0 -110
  258. package/dist/ts3.9/server/build.d.ts +0 -1
  259. package/dist/ts3.9/server/build.js +0 -28
  260. package/dist/ts3.9/server/framework-preset-angular-cli.js +0 -177
  261. package/dist/ts3.9/server/framework-preset-angular.js +0 -100
  262. package/dist/ts3.9/server/index.d.ts +0 -1
  263. package/dist/ts3.9/server/index.js +0 -8
  264. package/dist/ts3.9/server/options.js +0 -8
  265. package/dist/ts3.9/server/preset.d.ts +0 -3
  266. package/dist/ts3.9/server/preset.js +0 -13
  267. package/dist/ts3.9/server/utils/normalize-asset-patterns.d.ts +0 -6
  268. package/dist/ts3.9/types/index.d.ts +0 -6
@@ -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
- exports.previewAnnotations = (entry = [], options) => {
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/ts3.9/client/docs/config')];
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
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
- exports.runNgcc = () => __awaiter(void 0, void 0, void 0, function* () {
51
+ const runNgcc = async () => {
57
52
  let ngcc;
58
53
  try {
59
- ngcc = yield Promise.resolve().then(() => __importStar(require('@angular/compiler-cli/ngcc')));
54
+ ngcc = await Promise.resolve().then(() => __importStar(require('@angular/compiler-cli/ngcc')));
60
55
  }
61
56
  catch (error) {
62
- ngcc = yield loadEsmModule('@angular/compiler-cli/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.webpack = (webpackConfig, options) => __awaiter(void 0, void 0, void 0, function* () {
74
- const angularOptions = yield options.presets.apply('angularOptions', {}, options);
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 Object.assign(Object.assign({}, webpackConfig), { resolve: Object.assign(Object.assign({}, webpackConfig.resolve), { mainFields: [
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;
@@ -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;
@@ -1,4 +1,4 @@
1
- import type { LoadOptions, Options as CoreOptions } from '@storybook/core-common';
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
@@ -11,6 +11,7 @@ const isStylingRule = (rule) => {
11
11
  }
12
12
  return test.test('.css') || test.test('.scss') || test.test('.sass');
13
13
  };
14
- exports.filterOutStylingRules = (config) => {
14
+ const filterOutStylingRules = (config) => {
15
15
  return config.module.rules.filter((rule) => !isStylingRule(rule));
16
16
  };
17
+ exports.filterOutStylingRules = filterOutStylingRules;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.moduleIsAvailable = void 0;
4
- exports.moduleIsAvailable = (moduleName) => {
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, AssetPatternClass } from '@angular-devkit/build-angular/src/browser/schema';
3
- export declare class MissingAssetSourceRootException extends BaseException {
4
- constructor(path: string);
5
- }
6
- export declare function normalizeAssetPatterns(assetPatterns: AssetPattern[], root: Path, projectRoot: Path, maybeSourceRoot: Path | undefined): AssetPatternClass[];
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 (_a) {
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/src/browser/schema';
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
- exports.normalizeOptimization = (options) => {
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/jest.config.js CHANGED
@@ -1,4 +1,5 @@
1
1
  module.exports = {
2
2
  preset: 'jest-preset-angular',
3
3
  setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
4
+ transformIgnorePatterns: ['^.+\\.js$'],
4
5
  };
package/package.json CHANGED
@@ -1,41 +1,29 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "6.5.9",
4
- "description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
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/app/angular",
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": "app/angular"
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/ts3.9/client/index.js",
23
- "module": "dist/ts3.9/client/index.js",
24
- "types": "dist/ts3.9/client/index.d.ts",
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": "6.5.9",
49
- "@storybook/api": "6.5.9",
50
- "@storybook/client-logger": "6.5.9",
51
- "@storybook/core": "6.5.9",
52
- "@storybook/core-common": "6.5.9",
53
- "@storybook/core-events": "6.5.9",
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": "6.5.9",
56
- "@storybook/node-logger": "6.5.9",
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": "6.5.9",
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": "^4.1.6",
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": "^4.2.0",
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": "^10.1.0",
66
+ "sass-loader": "^12.6.0",
78
67
  "telejson": "^6.0.8",
79
68
  "ts-dedent": "^2.0.0",
80
- "ts-loader": "^8.0.14",
81
- "tsconfig-paths-webpack-plugin": "^3.3.0",
69
+ "ts-loader": "^9.2.8",
70
+ "tsconfig-paths-webpack-plugin": "^3.5.2",
82
71
  "util-deprecate": "^1.0.2",
83
- "webpack": ">=4.0.0 <6.0.0"
72
+ "webpack": "5"
84
73
  },
85
74
  "devDependencies": {
86
- "@angular-devkit/architect": "~0.1102.0",
87
- "@angular-devkit/build-angular": "~0.1102.13",
88
- "@angular-devkit/core": "^11.2.13",
89
- "@angular/cli": "^11.2.14",
90
- "@angular/common": "^11.2.14",
91
- "@angular/compiler": "^11.2.14",
92
- "@angular/compiler-cli": "^11.2.14",
93
- "@angular/core": "^11.2.14",
94
- "@angular/forms": "^11.2.14",
95
- "@angular/platform-browser": "^11.2.14",
96
- "@angular/platform-browser-dynamic": "^11.2.14",
97
- "@nrwl/workspace": "^11.6.3",
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": "^26.6.3",
102
- "jest-preset-angular": "^8.3.2",
103
- "jest-specific-snapshot": "^4.0.0",
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
- "webpack": "4"
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": "^3.4.0 || >=4.0.0",
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/ts3.9/builders/builders.json",
140
- "gitHead": "e2673f765722cbb542ef1b5cf8d533c8e746a127"
130
+ "builders": "dist/types/builders/builders.json",
131
+ "gitHead": "44920e2b6bd51981bac5124743c29fb9f5517e44"
141
132
  }
package/preset.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./dist/ts3.9/server/preset');
1
+ module.exports = require('./dist/types/preset');
package/renderer.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './dist/ts3.9/renderer.d';
1
+ export * from './dist/types/renderer.d';
package/renderer.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./dist/ts3.9/renderer');
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, frameworkOptions);
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/ts3.9/client/preview/types-6-0.d';
1
+ export * from './dist/types/client/preview/types-6-0.d';
package/types-7-0.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './dist/ts3.9/client/preview/types-7-0.d';
1
+ export * from './dist/types/client/preview/types-7-0.d';
package/bin/build.js DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- process.env.NODE_ENV = process.env.NODE_ENV || 'production';
4
- require('../dist/ts3.9/server/build');
package/bin/index.js DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- require('../dist/ts3.9/server');
package/demo.d.ts DELETED
@@ -1,4 +0,0 @@
1
- declare module '@storybook/angular/demo' {
2
- export const Button: any;
3
- export const Welcome: any;
4
- }
package/demo.js DELETED
@@ -1,5 +0,0 @@
1
- /* eslint-disable global-require */
2
- module.exports = {
3
- Welcome: require('./dist/ts3.9/demo/welcome.component').default,
4
- Button: require('./dist/ts3.9/demo/button.component').default,
5
- };