@storybook/angular 7.0.0-beta.20 → 7.0.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs ADDED
@@ -0,0 +1,13 @@
1
+ export * from './client/index';
2
+ export * from './types';
3
+ /*
4
+ * ATTENTION:
5
+ * - moduleMetadata
6
+ * - NgModuleMetadata
7
+ * - ICollection
8
+ *
9
+ * These typings are coped out of decorators.d.ts and types.d.ts in order to fix a bug with tsc
10
+ * It was imported out of dist before which was not the proper way of exporting public API
11
+ *
12
+ * This can be fixed by migrating app/angular to typescript
13
+ */
@@ -0,0 +1,26 @@
1
+ import path from 'path';
2
+ export const addons = [
3
+ require.resolve('./server/framework-preset-angular-cli'),
4
+ require.resolve('./server/framework-preset-angular-ivy'),
5
+ require.resolve('./server/framework-preset-angular-docs'),
6
+ ];
7
+ export const previewAnnotations = (entries = []) => [
8
+ ...entries,
9
+ require.resolve('./client/config'),
10
+ ];
11
+ export const core = async (config, options) => {
12
+ const framework = await options.presets.apply('framework');
13
+ return {
14
+ ...config,
15
+ builder: {
16
+ name: path.dirname(require.resolve(path.join('@storybook/builder-webpack5', 'package.json'))),
17
+ options: typeof framework === 'string' ? {} : framework.options.builder || {},
18
+ },
19
+ };
20
+ };
21
+ export const typescript = async (config) => {
22
+ return {
23
+ ...config,
24
+ skipBabel: true,
25
+ };
26
+ };
@@ -0,0 +1,4 @@
1
+ export { computesTemplateSourceFromComponent } from './client/angular-beta/ComputesTemplateFromComponent';
2
+ export { rendererFactory } from './client/render';
3
+ export { AbstractRenderer } from './client/angular-beta/AbstractRenderer';
4
+ export { getStorybookModuleMetadata } from './client/angular-beta/StorybookModule';
package/dist/types.mjs ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "7.0.0-beta.20",
3
+ "version": "7.0.0-beta.21",
4
4
  "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -21,32 +21,34 @@
21
21
  },
22
22
  "license": "MIT",
23
23
  "main": "dist/index.js",
24
+ "module": "dist/index.mjs",
24
25
  "types": "dist/index.d.ts",
25
26
  "files": [
26
27
  "dist/**/*",
27
28
  "template/**/*",
28
29
  "README.md",
29
30
  "*.js",
31
+ "*.mjs",
30
32
  "*.d.ts"
31
33
  ],
32
34
  "scripts": {
33
35
  "check": "../../../scripts/node_modules/.bin/tsc",
34
- "prep": "rimraf dist && ../../../scripts/node_modules/.bin/tsc --project tsconfig.build.json && echo \"Preventing passing flags to tsc\""
36
+ "prep": "../../../scripts/prepare/tsc.ts"
35
37
  },
36
38
  "dependencies": {
37
- "@storybook/builder-webpack5": "7.0.0-beta.20",
38
- "@storybook/client-logger": "7.0.0-beta.20",
39
- "@storybook/core-client": "7.0.0-beta.20",
40
- "@storybook/core-common": "7.0.0-beta.20",
41
- "@storybook/core-events": "7.0.0-beta.20",
42
- "@storybook/core-server": "7.0.0-beta.20",
43
- "@storybook/core-webpack": "7.0.0-beta.20",
44
- "@storybook/docs-tools": "7.0.0-beta.20",
39
+ "@storybook/builder-webpack5": "7.0.0-beta.21",
40
+ "@storybook/client-logger": "7.0.0-beta.21",
41
+ "@storybook/core-client": "7.0.0-beta.21",
42
+ "@storybook/core-common": "7.0.0-beta.21",
43
+ "@storybook/core-events": "7.0.0-beta.21",
44
+ "@storybook/core-server": "7.0.0-beta.21",
45
+ "@storybook/core-webpack": "7.0.0-beta.21",
46
+ "@storybook/docs-tools": "7.0.0-beta.21",
45
47
  "@storybook/global": "^5.0.0",
46
- "@storybook/manager-api": "7.0.0-beta.20",
47
- "@storybook/node-logger": "7.0.0-beta.20",
48
- "@storybook/preview-api": "7.0.0-beta.20",
49
- "@storybook/types": "7.0.0-beta.20",
48
+ "@storybook/manager-api": "7.0.0-beta.21",
49
+ "@storybook/node-logger": "7.0.0-beta.21",
50
+ "@storybook/preview-api": "7.0.0-beta.21",
51
+ "@storybook/types": "7.0.0-beta.21",
50
52
  "@types/node": "^16.0.0",
51
53
  "@types/react": "^16.14.34",
52
54
  "@types/react-dom": "^16.9.14",
@@ -122,5 +124,8 @@
122
124
  "access": "public"
123
125
  },
124
126
  "builders": "dist/builders/builders.json",
125
- "gitHead": "22701aedf564e467511887eb041f32ae0c96bcde"
127
+ "bundler": {
128
+ "tsConfig": "tsconfig.build.json"
129
+ },
130
+ "gitHead": "fb45d854842e10fa119a65c628333e3a5d495e77"
126
131
  }