@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.
Files changed (275) 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 +56 -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 +64 -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/types/builders/utils/standalone-options.d.ts +12 -0
  13. package/dist/{ts3.9/client/docs/types.js → types/builders/utils/standalone-options.js} +0 -0
  14. package/dist/{ts3.9/client/preview/angular/components → types/client/angular}/app.component.d.ts +1 -1
  15. package/dist/{ts3.9/client/preview/angular/components → types/client/angular}/app.component.js +5 -5
  16. package/dist/{ts3.9/client/preview → types/client}/angular/app.token.d.ts +0 -0
  17. package/dist/{ts3.9/client/preview → types/client}/angular/app.token.js +0 -0
  18. package/dist/{ts3.9/client/preview → types/client}/angular/helpers.d.ts +1 -1
  19. package/dist/{ts3.9/client/preview → types/client}/angular/helpers.js +7 -7
  20. package/dist/{ts3.9/client/preview → types/client}/angular-beta/AbstractRenderer.d.ts +1 -2
  21. package/dist/{ts3.9/client/preview → types/client}/angular-beta/AbstractRenderer.js +40 -48
  22. package/dist/{ts3.9/client/preview → types/client}/angular-beta/CanvasRenderer.d.ts +1 -2
  23. package/dist/types/client/angular-beta/CanvasRenderer.js +16 -0
  24. package/dist/{ts3.9/client/preview → types/client}/angular-beta/ComputesTemplateFromComponent.d.ts +0 -0
  25. package/dist/{ts3.9/client/preview → types/client}/angular-beta/ComputesTemplateFromComponent.js +10 -8
  26. package/dist/{ts3.9/client/preview → types/client}/angular-beta/DocsRenderer.d.ts +1 -2
  27. package/dist/types/client/angular-beta/DocsRenderer.js +41 -0
  28. package/dist/{ts3.9/client/preview → types/client}/angular-beta/RendererFactory.d.ts +0 -0
  29. package/dist/types/client/angular-beta/RendererFactory.js +55 -0
  30. package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookModule.d.ts +0 -0
  31. package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookModule.js +18 -17
  32. package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookProvider.d.ts +0 -0
  33. package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookProvider.js +2 -1
  34. package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookWrapperComponent.d.ts +0 -0
  35. package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookWrapperComponent.js +11 -10
  36. package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgComponentAnalyzer.d.ts +0 -0
  37. package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgComponentAnalyzer.js +24 -13
  38. package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgModulesAnalyzer.d.ts +0 -0
  39. package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgModulesAnalyzer.js +3 -2
  40. package/dist/{ts3.9/client/preview → types/client}/config.d.ts +1 -1
  41. package/dist/{ts3.9/client/preview → types/client}/config.js +1 -1
  42. package/dist/{ts3.9/client/preview → types/client}/decorateStory.d.ts +1 -1
  43. package/dist/{ts3.9/client/preview → types/client}/decorateStory.js +11 -6
  44. package/dist/{ts3.9/client/preview → types/client}/decorators.d.ts +1 -2
  45. package/dist/{ts3.9/client/preview → types/client}/decorators.js +23 -11
  46. package/dist/{ts3.9 → types}/client/docs/compodoc.d.ts +0 -0
  47. package/dist/{ts3.9 → types}/client/docs/compodoc.js +47 -34
  48. package/dist/{ts3.9 → types}/client/docs/config.d.ts +3 -4
  49. package/dist/{ts3.9 → types}/client/docs/config.js +0 -2
  50. package/dist/{ts3.9 → types}/client/docs/index.d.ts +0 -0
  51. package/dist/{ts3.9 → types}/client/docs/index.js +6 -2
  52. package/dist/{ts3.9 → types}/client/docs/sourceDecorator.d.ts +2 -2
  53. package/dist/{ts3.9 → types}/client/docs/sourceDecorator.js +10 -9
  54. package/dist/{ts3.9 → types}/client/docs/types.d.ts +0 -0
  55. package/dist/{ts3.9/client/preview → types/client/docs}/types.js +0 -0
  56. package/dist/{ts3.9/client/preview/angular-polyfills.d.ts → types/client/globals.d.ts} +0 -10
  57. package/dist/{ts3.9/client/preview/angular-polyfills.js → types/client/globals.js} +7 -1
  58. package/dist/types/client/index.d.ts +5 -0
  59. package/dist/types/client/index.js +25 -0
  60. package/dist/{ts3.9/client/preview/index.d.ts → types/client/public-api.d.ts} +2 -4
  61. package/dist/types/client/public-api.js +43 -0
  62. package/dist/{ts3.9/client/preview/types-6-0.d.ts → types/client/public-types.d.ts} +4 -19
  63. package/dist/{ts3.9/client/preview/types-6-0.js → types/client/public-types.js} +0 -0
  64. package/dist/{ts3.9/client/preview → types/client}/render.d.ts +1 -1
  65. package/dist/types/client/render.js +24 -0
  66. package/dist/{ts3.9/client/preview → types/client}/types.d.ts +13 -0
  67. package/dist/{ts3.9/client/preview/types-7-0.js → types/client/types.js} +0 -0
  68. package/dist/types/index.d.ts +2 -0
  69. package/dist/{ts3.9/public_api.js → types/index.js} +8 -3
  70. package/dist/types/preset.d.ts +6 -0
  71. package/dist/types/preset.js +36 -0
  72. package/dist/types/renderer.d.ts +4 -0
  73. package/dist/{ts3.9 → types}/renderer.js +5 -4
  74. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/empty-projects-entry/angular.json +0 -0
  75. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/angular.json +0 -0
  76. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +0 -0
  77. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/main.js +0 -0
  78. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/tsconfig.app.json +0 -0
  79. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/tsconfig.json +0 -0
  80. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/angular.json +0 -0
  81. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/main.d.ts +0 -0
  82. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/main.js +0 -0
  83. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/tsconfig.app.json +0 -0
  84. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/tsconfig.json +0 -0
  85. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/angular.json +0 -0
  86. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +0 -0
  87. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.js +0 -0
  88. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/tsconfig.app.json +0 -0
  89. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json +0 -0
  90. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/angular.json +0 -0
  91. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +0 -0
  92. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.js +0 -0
  93. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/tsconfig.lib.json +0 -0
  94. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/tsconfig.json +0 -0
  95. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/angular.json +0 -0
  96. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/nx.json +0 -0
  97. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +0 -0
  98. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/main.js +0 -0
  99. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/tsconfig.app.json +0 -0
  100. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/tsconfig.json +0 -0
  101. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/nx.json +0 -0
  102. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +0 -0
  103. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/main.js +0 -0
  104. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/tsconfig.app.json +0 -0
  105. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json +0 -0
  106. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/workspace.json +0 -0
  107. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/angular.json +0 -0
  108. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +0 -0
  109. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/main.js +0 -0
  110. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/tsconfig.app.json +0 -0
  111. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json +0 -0
  112. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-architect-build/angular.json +0 -0
  113. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-architect-build-options/angular.json +0 -0
  114. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-compatible-projects/angular.json +0 -0
  115. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/angular.json +0 -0
  116. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +0 -0
  117. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.js +0 -0
  118. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/tsconfig.lib.json +0 -0
  119. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json +0 -0
  120. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/angular.json +0 -0
  121. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +0 -0
  122. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/main.js +0 -0
  123. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/tsconfig.app.json +0 -0
  124. package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json +0 -0
  125. package/dist/{ts3.9 → types}/server/angular-cli-webpack-12.2.x.d.ts +0 -0
  126. package/dist/types/server/angular-cli-webpack-12.2.x.js +66 -0
  127. package/dist/{ts3.9 → types}/server/angular-cli-webpack-13.x.x.d.ts +0 -0
  128. package/dist/types/server/angular-cli-webpack-13.x.x.js +70 -0
  129. package/dist/types/server/angular-cli-webpack-older.d.ts +6 -0
  130. package/dist/types/server/angular-cli-webpack-older.js +111 -0
  131. package/dist/{ts3.9 → types}/server/angular-devkit-build-webpack.d.ts +6 -6
  132. package/dist/{ts3.9 → types}/server/angular-devkit-build-webpack.js +66 -54
  133. package/dist/{ts3.9 → types}/server/angular-read-workspace.d.ts +0 -0
  134. package/dist/{ts3.9 → types}/server/angular-read-workspace.js +8 -14
  135. package/dist/{ts3.9 → types}/server/create-fork-ts-checker-plugin.d.ts +0 -0
  136. package/dist/{ts3.9 → types}/server/create-fork-ts-checker-plugin.js +1 -1
  137. package/dist/{ts3.9 → types}/server/framework-preset-angular-cli.d.ts +1 -1
  138. package/dist/types/server/framework-preset-angular-cli.js +175 -0
  139. package/dist/{ts3.9 → types}/server/framework-preset-angular-docs.d.ts +0 -0
  140. package/dist/{ts3.9 → types}/server/framework-preset-angular-docs.js +4 -3
  141. package/dist/{ts3.9 → types}/server/framework-preset-angular-ivy.d.ts +1 -1
  142. package/dist/{ts3.9 → types}/server/framework-preset-angular-ivy.js +26 -22
  143. package/dist/{ts3.9 → types}/server/framework-preset-angular.d.ts +0 -0
  144. package/dist/types/server/framework-preset-angular.js +103 -0
  145. package/dist/{ts3.9 → types}/server/ngx-template-loader/index.d.ts +0 -0
  146. package/dist/{ts3.9 → types}/server/ngx-template-loader/index.js +0 -0
  147. package/dist/{ts3.9/server/options.d.ts → types/server/preset-options.d.ts} +1 -3
  148. package/dist/{ts3.9/types/index.js → types/server/preset-options.js} +0 -0
  149. package/dist/{ts3.9 → types}/server/ts_config.d.ts +0 -0
  150. package/dist/{ts3.9 → types}/server/ts_config.js +0 -0
  151. package/dist/{ts3.9 → types}/server/utils/filter-out-styling-rules.d.ts +0 -0
  152. package/dist/{ts3.9 → types}/server/utils/filter-out-styling-rules.js +2 -1
  153. package/dist/{ts3.9 → types}/server/utils/module-is-available.d.ts +0 -0
  154. package/dist/{ts3.9 → types}/server/utils/module-is-available.js +2 -1
  155. package/dist/{ts3.4 → types}/server/utils/normalize-asset-patterns.d.ts +7 -6
  156. package/dist/{ts3.9 → types}/server/utils/normalize-asset-patterns.js +9 -9
  157. package/dist/{ts3.9 → types}/server/utils/normalize-optimization.d.ts +1 -1
  158. package/dist/{ts3.9 → types}/server/utils/normalize-optimization.js +3 -2
  159. package/dist/types/types.d.ts +28 -0
  160. package/dist/types/types.js +2 -0
  161. package/jest.config.js +1 -0
  162. package/package.json +47 -57
  163. package/preset.js +1 -1
  164. package/renderer.d.ts +1 -1
  165. package/renderer.js +1 -1
  166. package/bin/build.js +0 -4
  167. package/bin/index.js +0 -3
  168. package/demo.d.ts +0 -4
  169. package/demo.js +0 -5
  170. package/dist/ts3.4/builders/build-storybook/index.d.ts +0 -15
  171. package/dist/ts3.4/builders/start-storybook/index.d.ts +0 -15
  172. package/dist/ts3.4/builders/utils/build-standalone-errors-handler.d.ts +0 -1
  173. package/dist/ts3.4/builders/utils/run-compodoc.d.ts +0 -6
  174. package/dist/ts3.4/client/docs/compodoc.d.ts +0 -18
  175. package/dist/ts3.4/client/docs/config.d.ts +0 -15
  176. package/dist/ts3.4/client/docs/index.d.ts +0 -1
  177. package/dist/ts3.4/client/docs/prepareForInline.d.ts +0 -7
  178. package/dist/ts3.4/client/docs/sourceDecorator.d.ts +0 -9
  179. package/dist/ts3.4/client/docs/types.d.ts +0 -102
  180. package/dist/ts3.4/client/index.d.ts +0 -4
  181. package/dist/ts3.4/client/preview/angular/app.token.d.ts +0 -3
  182. package/dist/ts3.4/client/preview/angular/components/app.component.d.ts +0 -38
  183. package/dist/ts3.4/client/preview/angular/helpers.d.ts +0 -8
  184. package/dist/ts3.4/client/preview/angular-beta/AbstractRenderer.d.ts +0 -57
  185. package/dist/ts3.4/client/preview/angular-beta/CanvasRenderer.d.ts +0 -14
  186. package/dist/ts3.4/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +0 -17
  187. package/dist/ts3.4/client/preview/angular-beta/DocsRenderer.d.ts +0 -14
  188. package/dist/ts3.4/client/preview/angular-beta/RendererFactory.d.ts +0 -11
  189. package/dist/ts3.4/client/preview/angular-beta/StorybookModule.d.ts +0 -9
  190. package/dist/ts3.4/client/preview/angular-beta/StorybookProvider.d.ts +0 -5
  191. package/dist/ts3.4/client/preview/angular-beta/StorybookWrapperComponent.d.ts +0 -9
  192. package/dist/ts3.4/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +0 -29
  193. package/dist/ts3.4/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +0 -6
  194. package/dist/ts3.4/client/preview/angular-polyfills.d.ts +0 -41
  195. package/dist/ts3.4/client/preview/config.d.ts +0 -6
  196. package/dist/ts3.4/client/preview/decorateStory.d.ts +0 -4
  197. package/dist/ts3.4/client/preview/decorators.d.ts +0 -6
  198. package/dist/ts3.4/client/preview/globals.d.ts +0 -1
  199. package/dist/ts3.4/client/preview/index.d.ts +0 -25
  200. package/dist/ts3.4/client/preview/render.d.ts +0 -7
  201. package/dist/ts3.4/client/preview/types-6-0.d.ts +0 -42
  202. package/dist/ts3.4/client/preview/types-7-0.d.ts +0 -9
  203. package/dist/ts3.4/client/preview/types.d.ts +0 -29
  204. package/dist/ts3.4/demo/button.component.d.ts +0 -5
  205. package/dist/ts3.4/demo/welcome.component.d.ts +0 -4
  206. package/dist/ts3.4/public_api.d.ts +0 -1
  207. package/dist/ts3.4/renderer.d.ts +0 -4
  208. package/dist/ts3.4/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +0 -1
  209. package/dist/ts3.4/server/__mocks-ng-workspace__/some-config/src/main.d.ts +0 -1
  210. package/dist/ts3.4/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +0 -1
  211. package/dist/ts3.4/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +0 -1
  212. package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +0 -1
  213. package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +0 -1
  214. package/dist/ts3.4/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +0 -1
  215. package/dist/ts3.4/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +0 -1
  216. package/dist/ts3.4/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +0 -1
  217. package/dist/ts3.4/server/angular-cli-webpack-12.2.x.d.ts +0 -1
  218. package/dist/ts3.4/server/angular-cli-webpack-13.x.x.d.ts +0 -1
  219. package/dist/ts3.4/server/angular-cli-webpack-older.d.ts +0 -73
  220. package/dist/ts3.4/server/angular-devkit-build-webpack.d.ts +0 -30
  221. package/dist/ts3.4/server/angular-read-workspace.d.ts +0 -13
  222. package/dist/ts3.4/server/build.d.ts +0 -1
  223. package/dist/ts3.4/server/create-fork-ts-checker-plugin.d.ts +0 -3
  224. package/dist/ts3.4/server/framework-preset-angular-cli.d.ts +0 -3
  225. package/dist/ts3.4/server/framework-preset-angular-docs.d.ts +0 -2
  226. package/dist/ts3.4/server/framework-preset-angular-ivy.d.ts +0 -10
  227. package/dist/ts3.4/server/framework-preset-angular.d.ts +0 -5
  228. package/dist/ts3.4/server/index.d.ts +0 -1
  229. package/dist/ts3.4/server/ngx-template-loader/index.d.ts +0 -1
  230. package/dist/ts3.4/server/options.d.ts +0 -14
  231. package/dist/ts3.4/server/preset.d.ts +0 -3
  232. package/dist/ts3.4/server/ts_config.d.ts +0 -2
  233. package/dist/ts3.4/server/utils/filter-out-styling-rules.d.ts +0 -2
  234. package/dist/ts3.4/server/utils/module-is-available.d.ts +0 -1
  235. package/dist/ts3.4/server/utils/normalize-optimization.d.ts +0 -3
  236. package/dist/ts3.4/types/index.d.ts +0 -6
  237. package/dist/ts3.9/builders/build-storybook/index.js +0 -65
  238. package/dist/ts3.9/builders/start-storybook/index.js +0 -73
  239. package/dist/ts3.9/client/docs/prepareForInline.d.ts +0 -7
  240. package/dist/ts3.9/client/docs/prepareForInline.js +0 -45
  241. package/dist/ts3.9/client/index.d.ts +0 -4
  242. package/dist/ts3.9/client/index.js +0 -28
  243. package/dist/ts3.9/client/preview/angular-beta/CanvasRenderer.js +0 -34
  244. package/dist/ts3.9/client/preview/angular-beta/DocsRenderer.js +0 -59
  245. package/dist/ts3.9/client/preview/angular-beta/RendererFactory.js +0 -65
  246. package/dist/ts3.9/client/preview/globals.d.ts +0 -1
  247. package/dist/ts3.9/client/preview/globals.js +0 -9
  248. package/dist/ts3.9/client/preview/index.js +0 -27
  249. package/dist/ts3.9/client/preview/render.js +0 -34
  250. package/dist/ts3.9/client/preview/types-7-0.d.ts +0 -9
  251. package/dist/ts3.9/demo/button.component.d.ts +0 -5
  252. package/dist/ts3.9/demo/button.component.js +0 -46
  253. package/dist/ts3.9/demo/welcome.component.d.ts +0 -4
  254. package/dist/ts3.9/demo/welcome.component.js +0 -99
  255. package/dist/ts3.9/public_api.d.ts +0 -1
  256. package/dist/ts3.9/renderer.d.ts +0 -4
  257. package/dist/ts3.9/server/angular-cli-webpack-12.2.x.js +0 -56
  258. package/dist/ts3.9/server/angular-cli-webpack-13.x.x.js +0 -60
  259. package/dist/ts3.9/server/angular-cli-webpack-older.d.ts +0 -73
  260. package/dist/ts3.9/server/angular-cli-webpack-older.js +0 -110
  261. package/dist/ts3.9/server/build.d.ts +0 -1
  262. package/dist/ts3.9/server/build.js +0 -28
  263. package/dist/ts3.9/server/framework-preset-angular-cli.js +0 -177
  264. package/dist/ts3.9/server/framework-preset-angular.js +0 -100
  265. package/dist/ts3.9/server/index.d.ts +0 -1
  266. package/dist/ts3.9/server/index.js +0 -8
  267. package/dist/ts3.9/server/options.js +0 -8
  268. package/dist/ts3.9/server/preset.d.ts +0 -3
  269. package/dist/ts3.9/server/preset.js +0 -13
  270. package/dist/ts3.9/server/utils/normalize-asset-patterns.d.ts +0 -6
  271. package/dist/ts3.9/types/index.d.ts +0 -6
  272. package/standalone.d.ts +0 -21
  273. package/standalone.js +0 -8
  274. package/types-6-0.d.ts +0 -1
  275. package/types-7-0.d.ts +0 -1
@@ -1,29 +0,0 @@
1
- import { Component, Type } from '@angular/core';
2
- export declare type ComponentInputsOutputs = {
3
- inputs: {
4
- propName: string;
5
- templateName: string;
6
- }[];
7
- outputs: {
8
- propName: string;
9
- templateName: string;
10
- }[];
11
- };
12
- /**
13
- * Returns component Inputs / Outputs by browsing these properties and decorator
14
- */
15
- export declare const getComponentInputsOutputs: (component: any) => ComponentInputsOutputs;
16
- export declare const isDeclarable: (component: any) => boolean;
17
- export declare const isComponent: (component: any) => component is Type<unknown>;
18
- export declare const isStandaloneComponent: (component: any) => component is Type<unknown>;
19
- /**
20
- * Returns all component decorator properties
21
- * is used to get all `@Input` and `@Output` Decorator
22
- */
23
- export declare const getComponentPropsDecoratorMetadata: (component: any) => {
24
- [key: string]: any[];
25
- };
26
- /**
27
- * Returns component decorator `@Component`
28
- */
29
- export declare const getComponentDecoratorMetadata: (component: any) => Component | undefined;
@@ -1,6 +0,0 @@
1
- /**
2
- * Avoid component redeclaration
3
- *
4
- * Checks recursively if the component has already been declared in all import Module
5
- */
6
- export declare const isComponentAlreadyDeclaredInModules: (componentToFind: any, moduleDeclarations: any[], moduleImports: any[]) => boolean;
@@ -1,41 +0,0 @@
1
- /**
2
- * This file includes polyfills needed by Angular and is loaded before the app.
3
- * You can add your own extra polyfills to this file.
4
- *
5
- * This file is divided into 2 sections:
6
- * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
7
- * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
8
- * file.
9
- *
10
- * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11
- * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12
- * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
13
- *
14
- * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
15
- */
16
- /** *************************************************************************************************
17
- * BROWSER POLYFILLS
18
- */
19
- /** IE9, IE10 and IE11 requires all of the following polyfills. * */
20
- /** IE10 and IE11 requires the following for NgClass support on SVG elements */
21
- /** Evergreen browsers require these. * */
22
- import 'core-js/es/reflect';
23
- import 'core-js/proposals/reflect-metadata';
24
- /**
25
- * Required to support Web Animations `@angular/animation`.
26
- * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
27
- * */
28
- /** *************************************************************************************************
29
- * Zone JS is required by Angular itself.
30
- */
31
- import 'zone.js/dist/zone';
32
- /** *************************************************************************************************
33
- * APPLICATION IMPORTS
34
- */
35
- /**
36
- * Date, currency, decimal and percent pipes.
37
- * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
38
- */
39
- /**
40
- * Need to import at least one locale-data with intl.
41
- */
@@ -1,6 +0,0 @@
1
- import './globals';
2
- export { render, renderToDOM } from './render';
3
- export { decorateStory } from './decorateStory';
4
- export declare const parameters: {
5
- framework: string;
6
- };
@@ -1,4 +0,0 @@
1
- import { DecoratorFunction, LegacyStoryFn } from '@storybook/csf';
2
- import { AngularFramework } from './types-6-0';
3
- export default function decorateStory(mainStoryFn: LegacyStoryFn<AngularFramework>, decorators: DecoratorFunction<AngularFramework>[]): LegacyStoryFn<AngularFramework>;
4
- export { decorateStory };
@@ -1,6 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { DecoratorFunction, StoryContext } from '@storybook/csf';
3
- import { ICollection, NgModuleMetadata } from './types';
4
- import { AngularFramework } from './types-6-0';
5
- export declare const moduleMetadata: <TArgs = any>(metadata: Partial<NgModuleMetadata>) => DecoratorFunction<AngularFramework, TArgs>;
6
- export declare const componentWrapperDecorator: <TArgs = any>(element: Type<unknown> | ((story: string) => string), props?: ICollection | ((storyContext: StoryContext<AngularFramework, TArgs>) => ICollection)) => DecoratorFunction<AngularFramework, TArgs>;
@@ -1 +0,0 @@
1
- import './angular-polyfills';
@@ -1,25 +0,0 @@
1
- /// <reference types="webpack-env" />
2
- /// <reference types="node" />
3
- import { ClientStoryApi, Loadable } from '@storybook/addons';
4
- import './globals';
5
- import { IStorybookSection } from './types';
6
- import { AngularFramework } from './types-6-0';
7
- interface ClientApi extends ClientStoryApi<AngularFramework['storyResult']> {
8
- setAddon(addon: any): void;
9
- configure(loader: Loadable, module: NodeModule): void;
10
- getStorybook(): IStorybookSection[];
11
- clearDecorators(): void;
12
- forceReRender(): void;
13
- raw: () => any;
14
- load: (...args: any[]) => void;
15
- }
16
- export declare const storiesOf: ClientApi['storiesOf'];
17
- export declare const configure: ClientApi['configure'];
18
- export declare const addDecorator: ClientApi['addDecorator'];
19
- export declare const addParameters: ClientApi['addParameters'];
20
- export declare const clearDecorators: ClientApi['clearDecorators'];
21
- export declare const setAddon: ClientApi['setAddon'];
22
- export declare const forceReRender: ClientApi['forceReRender'];
23
- export declare const getStorybook: ClientApi['getStorybook'];
24
- export declare const raw: ClientApi['raw'];
25
- export {};
@@ -1,7 +0,0 @@
1
- import { RenderContext } from '@storybook/store';
2
- import { ArgsStoryFn } from '@storybook/csf';
3
- import { AngularFramework } from './types-6-0';
4
- import { RendererFactory } from './angular-beta/RendererFactory';
5
- export declare const rendererFactory: RendererFactory;
6
- export declare const render: ArgsStoryFn<AngularFramework>;
7
- export declare function renderToDOM({ storyFn, showMain, forceRemount, storyContext: { parameters, component }, id, }: RenderContext<AngularFramework>, element: HTMLElement): Promise<void>;
@@ -1,42 +0,0 @@
1
- import { Args, Parameters as DefaultParameters, StoryContext as DefaultStoryContext, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
2
- import { StoryFnAngularReturnType } from './types';
3
- export { Args, ArgTypes } from '@storybook/csf';
4
- export declare type AngularFramework = {
5
- component: any;
6
- storyResult: StoryFnAngularReturnType;
7
- };
8
- /**
9
- * Metadata to configure the stories for a component.
10
- *
11
- * @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
12
- */
13
- export declare type Meta<TArgs = Args> = ComponentAnnotations<AngularFramework, TArgs>;
14
- /**
15
- * Story function that represents a CSFv2 component example.
16
- *
17
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
18
- */
19
- export declare type StoryFn<TArgs = Args> = AnnotatedStoryFn<AngularFramework, TArgs>;
20
- /**
21
- * Story function that represents a CSFv3 component example.
22
- *
23
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
24
- */
25
- export declare type StoryObj<TArgs = Args> = StoryAnnotations<AngularFramework, TArgs>;
26
- /**
27
- * Story function that represents a CSFv2 component example.
28
- *
29
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
30
- *
31
- * NOTE that in Storybook 7.0, this type will be renamed to `StoryFn` and replaced by the current `StoryObj` type.
32
- *
33
- */
34
- export declare type Story<TArgs = Args> = StoryFn<TArgs>;
35
- export declare type Parameters = DefaultParameters & {
36
- /** Uses legacy angular rendering engine that use dynamic component */
37
- angularLegacyRendering?: boolean;
38
- bootstrapModuleOptions?: unknown;
39
- };
40
- export declare type StoryContext = DefaultStoryContext<AngularFramework> & {
41
- parameters: Parameters;
42
- };
@@ -1,9 +0,0 @@
1
- import { Args } from '@storybook/csf';
2
- import { StoryObj } from './types-6-0';
3
- export { StoryFn, StoryObj, Meta } from './types-6-0';
4
- /**
5
- * Story function that represents a CSFv3 component example.
6
- *
7
- * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
8
- */
9
- export declare type Story<TArgs = Args> = StoryObj<TArgs>;
@@ -1,29 +0,0 @@
1
- export interface NgModuleMetadata {
2
- declarations?: any[];
3
- entryComponents?: any[];
4
- imports?: any[];
5
- schemas?: any[];
6
- providers?: any[];
7
- }
8
- export interface ICollection {
9
- [p: string]: any;
10
- }
11
- export interface IStorybookStory {
12
- name: string;
13
- render: (context: any) => any;
14
- }
15
- export interface IStorybookSection {
16
- kind: string;
17
- stories: IStorybookStory[];
18
- }
19
- export interface StoryFnAngularReturnType {
20
- /** @deprecated `component` story input is deprecated, and will be removed in Storybook 7.0. */
21
- component?: any;
22
- props?: ICollection;
23
- /** @deprecated `propsMeta` story input is deprecated, and will be removed in Storybook 7.0. */
24
- propsMeta?: ICollection;
25
- moduleMetadata?: NgModuleMetadata;
26
- template?: string;
27
- styles?: string[];
28
- userDefinedTemplate?: boolean;
29
- }
@@ -1,5 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- export default class ButtonComponent {
3
- text: string;
4
- onClick: EventEmitter<any>;
5
- }
@@ -1,4 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- export default class WelcomeComponent {
3
- showApp: EventEmitter<any>;
4
- }
@@ -1 +0,0 @@
1
- export * from './client';
@@ -1,4 +0,0 @@
1
- export { computesTemplateSourceFromComponent } from './client/preview/angular-beta/ComputesTemplateFromComponent';
2
- export { rendererFactory } from './client/preview/render';
3
- export { AbstractRenderer } from './client/preview/angular-beta/AbstractRenderer';
4
- export { getStorybookModuleMetadata } from './client/preview/angular-beta/StorybookModule';
@@ -1 +0,0 @@
1
- export declare const not = "empty";
@@ -1 +0,0 @@
1
- export declare const not = "empty";
@@ -1 +0,0 @@
1
- export declare const not = "empty";
@@ -1 +0,0 @@
1
- export declare const not = "empty";
@@ -1 +0,0 @@
1
- export declare const not = "empty";
@@ -1 +0,0 @@
1
- export declare const not = "empty";
@@ -1 +0,0 @@
1
- export declare const not = "empty";
@@ -1 +0,0 @@
1
- export declare const not = "empty";
@@ -1 +0,0 @@
1
- export function getWebpackConfig(baseConfig: any, { builderOptions, builderContext }: any): Promise<any>;
@@ -1 +0,0 @@
1
- export function getWebpackConfig(baseConfig: any, { builderOptions, builderContext }: any): Promise<any>;
@@ -1,73 +0,0 @@
1
- import webpack from 'webpack';
2
- import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
3
- import { PresetOptions } from './options';
4
- /**
5
- * Old way currently support version lower than 12.2.x
6
- */
7
- export declare function getWebpackConfig(baseConfig: webpack.Configuration, options: PresetOptions): Promise<webpack.Configuration | {
8
- entry: any[];
9
- module: {
10
- rules: webpack.RuleSetRule[];
11
- noParse?: RegExp | RegExp[] | ((content: string) => boolean);
12
- unknownContextRequest?: string;
13
- unknownContextRecursive?: boolean;
14
- unknownContextRegExp?: RegExp;
15
- unknownContextCritical?: boolean;
16
- exprContextRequest?: string;
17
- exprContextRegExp?: RegExp;
18
- exprContextRecursive?: boolean;
19
- exprContextCritical?: boolean;
20
- wrappedContextRegExp?: RegExp;
21
- wrappedContextRecursive?: boolean;
22
- wrappedContextCritical?: boolean;
23
- strictExportPresence?: boolean;
24
- };
25
- plugins: webpack.Plugin[];
26
- resolve: {
27
- modules: string[];
28
- plugins: TsconfigPathsPlugin[];
29
- descriptionFiles?: string[];
30
- mainFields?: string[] | string[][];
31
- aliasFields?: string[] | string[][];
32
- mainFiles?: string[];
33
- extensions?: string[];
34
- enforceExtension?: boolean;
35
- alias?: {
36
- [key: string]: string;
37
- };
38
- unsafeCache?: boolean | {};
39
- cachePredicate?(data: {
40
- path: string;
41
- request: string;
42
- }): boolean;
43
- symlinks?: boolean;
44
- cacheWithContext?: boolean;
45
- roots?: string[];
46
- };
47
- resolveLoader: webpack.ResolveLoader;
48
- mode?: "development" | "production" | "none";
49
- name?: string;
50
- context?: string;
51
- devtool?: string | boolean;
52
- output?: webpack.Output;
53
- externals?: string | RegExp | webpack.ExternalsObjectElement | webpack.ExternalsFunctionElement | webpack.ExternalsElement[];
54
- target?: "node" | "web" | "webworker" | "async-node" | "node-webkit" | "atom" | "electron" | "electron-renderer" | "electron-preload" | "electron-main" | ((compiler?: any) => void);
55
- bail?: boolean;
56
- profile?: boolean;
57
- cache?: boolean | object;
58
- watch?: boolean;
59
- watchOptions?: webpack.ICompiler.WatchOptions;
60
- node?: false | webpack.Node;
61
- amd?: {
62
- [moduleName: string]: boolean;
63
- };
64
- recordsPath?: string;
65
- recordsInputPath?: string;
66
- recordsOutputPath?: string;
67
- stats?: webpack.Stats.ToStringOptions;
68
- performance?: false | webpack.Options.Performance;
69
- parallelism?: number;
70
- optimization?: webpack.Options.Optimization;
71
- infrastructureLogging?: webpack.Options.InfrastructureLogging;
72
- devServer?: import("webpack-dev-server").Configuration;
73
- }>;
@@ -1,30 +0,0 @@
1
- /**
2
- * This file is to be watched !
3
- * The code must be compatible from @angular-devkit version 6.1.0 to the latest supported
4
- *
5
- * It uses code block of angular cli to extract parts of webpack configuration
6
- */
7
- import webpack from 'webpack';
8
- import { workspaces } from '@angular-devkit/core';
9
- export declare type AngularCliWebpackConfig = {
10
- cliCommonWebpackConfig: {
11
- plugins: webpack.Plugin[];
12
- resolve: {
13
- modules: string[];
14
- };
15
- resolveLoader: webpack.ResolveLoader;
16
- };
17
- cliStyleWebpackConfig: {
18
- entry: string | string[] | webpack.Entry | webpack.EntryFunc;
19
- module: {
20
- rules: webpack.RuleSetRule[];
21
- };
22
- plugins: webpack.Plugin[];
23
- };
24
- tsConfigPath: string;
25
- };
26
- /**
27
- * Uses angular cli to extract webpack configuration.
28
- * The `AngularCliWebpackConfig` type lists the parts used by storybook
29
- */
30
- export declare function extractAngularCliWebpackConfig(dirToSearch: string, project: workspaces.ProjectDefinition, target: workspaces.TargetDefinition, confName?: string): Promise<AngularCliWebpackConfig>;
@@ -1,13 +0,0 @@
1
- import { workspaces } from '@angular-devkit/core';
2
- /**
3
- * Returns the workspace definition
4
- *
5
- * - Either from NX if it is present
6
- * - Either from `@angular-devkit/core` -> https://github.com/angular/angular-cli/tree/master/packages/angular_devkit/core
7
- */
8
- export declare const readAngularWorkspaceConfig: (dirToSearch: string) => Promise<workspaces.WorkspaceDefinition>;
9
- export declare const getDefaultProjectName: (workspace: workspaces.WorkspaceDefinition) => string;
10
- export declare const findAngularProjectTarget: (workspace: workspaces.WorkspaceDefinition, projectName: string, targetName: string) => {
11
- project: workspaces.ProjectDefinition;
12
- target: workspaces.TargetDefinition;
13
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
2
- import { Options } from 'ts-loader';
3
- export default function (tsLoaderOptions: Partial<Options>): ForkTsCheckerWebpackPlugin;
@@ -1,3 +0,0 @@
1
- import webpack from 'webpack';
2
- import { PresetOptions } from './options';
3
- export declare function webpackFinal(baseConfig: webpack.Configuration, options: PresetOptions): Promise<webpack.Configuration>;
@@ -1,2 +0,0 @@
1
- import { StorybookConfig } from '@storybook/core-common';
2
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
@@ -1,10 +0,0 @@
1
- import { Configuration } from 'webpack';
2
- import { PresetOptions } from './options';
3
- /**
4
- * Run ngcc for converting modules to ivy format before starting storybook
5
- * This step is needed in order to support Ivy in storybook
6
- *
7
- * Information about Ivy can be found here https://angular.io/guide/ivy
8
- */
9
- export declare const runNgcc: () => Promise<void>;
10
- export declare const webpack: (webpackConfig: Configuration, options: PresetOptions) => Promise<Configuration>;
@@ -1,5 +0,0 @@
1
- import { Configuration } from 'webpack';
2
- export declare function webpack(config: Configuration, { configDir, angularBuilderContext }: {
3
- configDir: string;
4
- angularBuilderContext: any;
5
- }): Promise<Configuration>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export default function (source: string): string;
@@ -1,14 +0,0 @@
1
- import { LoadOptions, Options as CoreOptions } from '@storybook/core-common';
2
- import { BuilderContext } from '@angular-devkit/architect';
3
- import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
4
- export declare type PresetOptions = CoreOptions & {
5
- angularBrowserTarget?: string | null;
6
- angularBuilderOptions?: {
7
- styles?: ExtraEntryPoint[];
8
- stylePreprocessorOptions?: StylePreprocessorOptions;
9
- };
10
- angularBuilderContext?: BuilderContext | null;
11
- tsConfig?: string;
12
- };
13
- declare const _default: LoadOptions;
14
- export default _default;
@@ -1,3 +0,0 @@
1
- import { StorybookConfig } from '@storybook/core-common';
2
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
3
- export declare const addons: StorybookConfig['addons'];
@@ -1,2 +0,0 @@
1
- import { Options } from 'ts-loader';
2
- export default function (configDir: string): Partial<Options>;
@@ -1,2 +0,0 @@
1
- import { Configuration, RuleSetRule } from 'webpack';
2
- export declare const filterOutStylingRules: (config: Configuration) => RuleSetRule[];
@@ -1 +0,0 @@
1
- export declare const moduleIsAvailable: (moduleName: string) => boolean;
@@ -1,3 +0,0 @@
1
- import { OptimizationUnion } from '@angular-devkit/build-angular/src/browser/schema';
2
- import { NormalizedOptimizationOptions } from '@angular-devkit/build-angular/src/utils/normalize-optimization';
3
- export declare const normalizeOptimization: (options: OptimizationUnion) => NormalizedOptimizationOptions;
@@ -1,6 +0,0 @@
1
- import { StorybookConfig as BaseConfig } from '@storybook/core-common';
2
- export interface StorybookConfig extends BaseConfig {
3
- angularOptions?: {
4
- enableIvy: boolean;
5
- };
6
- }
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const architect_1 = require("@angular-devkit/architect");
16
- const rxjs_1 = require("rxjs");
17
- const operators_1 = require("rxjs/operators");
18
- const find_up_1 = require("find-up");
19
- // eslint-disable-next-line import/no-extraneous-dependencies
20
- const standalone_1 = __importDefault(require("@storybook/angular/standalone"));
21
- const run_compodoc_1 = require("../utils/run-compodoc");
22
- const build_standalone_errors_handler_1 = require("../utils/build-standalone-errors-handler");
23
- exports.default = architect_1.createBuilder(commandBuilder);
24
- function commandBuilder(options, context) {
25
- return rxjs_1.from(setup(options, context)).pipe(operators_1.switchMap(({ tsConfig }) => {
26
- const runCompodoc$ = options.compodoc
27
- ? run_compodoc_1.runCompodoc({ compodocArgs: options.compodocArgs, tsconfig: tsConfig }, context).pipe(operators_1.mapTo({ tsConfig }))
28
- : rxjs_1.of({});
29
- return runCompodoc$.pipe(operators_1.mapTo({ tsConfig }));
30
- }), operators_1.map(({ tsConfig }) => {
31
- const { browserTarget, stylePreprocessorOptions, styles, configDir, docs, loglevel, outputDir, quiet, webpackStatsJson, } = options;
32
- const standaloneOptions = {
33
- configDir,
34
- docs,
35
- loglevel,
36
- outputDir,
37
- quiet,
38
- angularBrowserTarget: browserTarget,
39
- angularBuilderContext: context,
40
- angularBuilderOptions: Object.assign(Object.assign({}, (stylePreprocessorOptions ? { stylePreprocessorOptions } : {})), (styles ? { styles } : {})),
41
- tsConfig,
42
- webpackStatsJson,
43
- };
44
- return standaloneOptions;
45
- }), operators_1.switchMap((standaloneOptions) => runInstance(Object.assign(Object.assign({}, standaloneOptions), { mode: 'static' }))), operators_1.map(() => {
46
- return { success: true };
47
- }));
48
- }
49
- function setup(options, context) {
50
- var _a, _b;
51
- return __awaiter(this, void 0, void 0, function* () {
52
- let browserOptions;
53
- let browserTarget;
54
- if (options.browserTarget) {
55
- browserTarget = architect_1.targetFromTargetString(options.browserTarget);
56
- browserOptions = yield context.validateOptions(yield context.getTargetOptions(browserTarget), yield context.getBuilderNameForTarget(browserTarget));
57
- }
58
- return {
59
- tsConfig: (_b = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : find_up_1.sync('tsconfig.json', { cwd: options.configDir })) !== null && _b !== void 0 ? _b : browserOptions.tsConfig,
60
- };
61
- });
62
- }
63
- function runInstance(options) {
64
- return rxjs_1.from(standalone_1.default(options)).pipe(operators_1.catchError((error) => rxjs_1.throwError(build_standalone_errors_handler_1.buildStandaloneErrorHandler(error))));
65
- }
@@ -1,73 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const architect_1 = require("@angular-devkit/architect");
16
- const rxjs_1 = require("rxjs");
17
- const operators_1 = require("rxjs/operators");
18
- const find_up_1 = require("find-up");
19
- // eslint-disable-next-line import/no-extraneous-dependencies
20
- const standalone_1 = __importDefault(require("@storybook/angular/standalone"));
21
- const run_compodoc_1 = require("../utils/run-compodoc");
22
- const build_standalone_errors_handler_1 = require("../utils/build-standalone-errors-handler");
23
- exports.default = architect_1.createBuilder(commandBuilder);
24
- function commandBuilder(options, context) {
25
- return rxjs_1.from(setup(options, context)).pipe(operators_1.switchMap(({ tsConfig }) => {
26
- const runCompodoc$ = options.compodoc
27
- ? run_compodoc_1.runCompodoc({ compodocArgs: options.compodocArgs, tsconfig: tsConfig }, context).pipe(operators_1.mapTo({ tsConfig }))
28
- : rxjs_1.of({});
29
- return runCompodoc$.pipe(operators_1.mapTo({ tsConfig }));
30
- }), operators_1.map(({ tsConfig }) => {
31
- const { browserTarget, stylePreprocessorOptions, styles, ci, configDir, docs, host, https, port, quiet, smokeTest, sslCa, sslCert, sslKey, } = options;
32
- const standaloneOptions = {
33
- ci,
34
- configDir,
35
- docs,
36
- host,
37
- https,
38
- port,
39
- quiet,
40
- smokeTest,
41
- sslCa,
42
- sslCert,
43
- sslKey,
44
- angularBrowserTarget: browserTarget,
45
- angularBuilderContext: context,
46
- angularBuilderOptions: Object.assign(Object.assign({}, (stylePreprocessorOptions ? { stylePreprocessorOptions } : {})), (styles ? { styles } : {})),
47
- tsConfig,
48
- };
49
- return standaloneOptions;
50
- }), operators_1.switchMap((standaloneOptions) => runInstance(standaloneOptions)), operators_1.map(() => {
51
- return { success: true };
52
- }));
53
- }
54
- function setup(options, context) {
55
- var _a, _b;
56
- return __awaiter(this, void 0, void 0, function* () {
57
- let browserOptions;
58
- let browserTarget;
59
- if (options.browserTarget) {
60
- browserTarget = architect_1.targetFromTargetString(options.browserTarget);
61
- browserOptions = yield context.validateOptions(yield context.getTargetOptions(browserTarget), yield context.getBuilderNameForTarget(browserTarget));
62
- }
63
- return {
64
- tsConfig: (_b = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : find_up_1.sync('tsconfig.json', { cwd: options.configDir })) !== null && _b !== void 0 ? _b : browserOptions.tsConfig,
65
- };
66
- });
67
- }
68
- function runInstance(options) {
69
- return new rxjs_1.Observable((observer) => {
70
- // This Observable intentionally never complete, leaving the process running ;)
71
- standalone_1.default(options).then(() => observer.next(), (error) => observer.error(build_standalone_errors_handler_1.buildStandaloneErrorHandler(error)));
72
- });
73
- }