@storybook/angular 7.0.0-alpha.10 → 7.0.0-alpha.13

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.
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.buildStandaloneErrorHandler = void 0;
7
4
  const node_logger_1 = require("@storybook/node-logger");
8
- const ts_dedent_1 = __importDefault(require("ts-dedent"));
5
+ const ts_dedent_1 = require("ts-dedent");
9
6
  const buildStandaloneErrorHandler = (error) => {
10
7
  // Duplicate code for Standalone error handling
11
8
  // Source: https://github.com/storybookjs/storybook/blob/39c7ba09ad84fbd466f9c25d5b92791a5450b9f6/lib/core-server/src/build-dev.ts#L136
@@ -26,11 +23,11 @@ const buildStandaloneErrorHandler = (error) => {
26
23
  }
27
24
  node_logger_1.logger.line();
28
25
  return error.close
29
- ? (0, ts_dedent_1.default) `
26
+ ? (0, ts_dedent_1.dedent) `
30
27
  FATAL broken build!, will close the process,
31
28
  Fix the error below and restart storybook.
32
29
  `
33
- : (0, ts_dedent_1.default) `
30
+ : (0, ts_dedent_1.dedent) `
34
31
  Broken build, fix the error above.
35
32
  You may need to refresh the browser.
36
33
  `;
@@ -48,8 +48,6 @@ const runCompodoc = ({ compodocArgs, tsconfig }, context) => {
48
48
  context.logger.info(finalCompodocArgs.join(' '));
49
49
  const child = (0, child_process_1.spawn)('npx', finalCompodocArgs, {
50
50
  cwd: context.workspaceRoot,
51
- env: process.env,
52
- shell: true,
53
51
  });
54
52
  child.stdout.on('data', (data) => {
55
53
  context.logger.info(data.toString());
@@ -12,14 +12,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.createStorybookModule = exports.getStorybookModuleMetadata = void 0;
13
13
  const core_1 = require("@angular/core");
14
14
  const platform_browser_1 = require("@angular/platform-browser");
15
- const ts_dedent_1 = __importDefault(require("ts-dedent"));
15
+ const ts_dedent_1 = require("ts-dedent");
16
16
  const util_deprecate_1 = __importDefault(require("util-deprecate"));
17
17
  const StorybookProvider_1 = require("./StorybookProvider");
18
18
  const NgModulesAnalyzer_1 = require("./utils/NgModulesAnalyzer");
19
19
  const NgComponentAnalyzer_1 = require("./utils/NgComponentAnalyzer");
20
20
  const StorybookWrapperComponent_1 = require("./StorybookWrapperComponent");
21
21
  const ComputesTemplateFromComponent_1 = require("./ComputesTemplateFromComponent");
22
- const deprecatedStoryComponentWarning = (0, util_deprecate_1.default)(() => { }, (0, ts_dedent_1.default) `\`component\` story return value is deprecated, and will be removed in Storybook 7.0.
22
+ const deprecatedStoryComponentWarning = (0, util_deprecate_1.default)(() => { }, (0, ts_dedent_1.dedent) `\`component\` story return value is deprecated, and will be removed in Storybook 7.0.
23
23
  Instead, use \`export const default = () => ({ component: AppComponent });\`
24
24
  or
25
25
  \`\`\`
@@ -31,7 +31,7 @@ const node_logger_1 = require("@storybook/node-logger");
31
31
  const architect_1 = require("@angular-devkit/architect");
32
32
  const find_up_1 = require("find-up");
33
33
  const semver_1 = __importDefault(require("@storybook/semver"));
34
- const ts_dedent_1 = __importDefault(require("ts-dedent"));
34
+ const ts_dedent_1 = require("ts-dedent");
35
35
  const core_1 = require("@angular-devkit/core");
36
36
  const module_is_available_1 = require("./utils/module-is-available");
37
37
  const angular_cli_webpack_12_2_x_1 = require("./angular-cli-webpack-12.2.x");
@@ -139,7 +139,7 @@ async function getLegacyDefaultBuildOptions(options) {
139
139
  // Not use legacy way with builder (`angularBrowserTarget` is defined or null with builder and undefined without)
140
140
  return {};
141
141
  }
142
- node_logger_1.logger.warn((0, ts_dedent_1.default) `Your Storybook startup uses a solution that will not be supported in version 7.0.
142
+ node_logger_1.logger.warn((0, ts_dedent_1.dedent) `Your Storybook startup uses a solution that will not be supported in version 7.0.
143
143
  You must use angular builder to have an explicit configuration on the project used in angular.json
144
144
  Read more at:
145
145
  - https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#sb-angular-builder)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "7.0.0-alpha.10",
3
+ "version": "7.0.0-alpha.13",
4
4
  "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -30,22 +30,23 @@
30
30
  "*.d.ts"
31
31
  ],
32
32
  "scripts": {
33
+ "check": "tsc --noEmit",
33
34
  "prepare": "node ../../scripts/prepare.js"
34
35
  },
35
36
  "dependencies": {
36
- "@storybook/addons": "7.0.0-alpha.10",
37
- "@storybook/api": "7.0.0-alpha.10",
38
- "@storybook/builder-webpack5": "7.0.0-alpha.10",
39
- "@storybook/client-logger": "7.0.0-alpha.10",
40
- "@storybook/core-client": "7.0.0-alpha.10",
41
- "@storybook/core-common": "7.0.0-alpha.10",
42
- "@storybook/core-events": "7.0.0-alpha.10",
43
- "@storybook/core-server": "7.0.0-alpha.10",
37
+ "@storybook/addons": "7.0.0-alpha.13",
38
+ "@storybook/api": "7.0.0-alpha.13",
39
+ "@storybook/builder-webpack5": "7.0.0-alpha.13",
40
+ "@storybook/client-logger": "7.0.0-alpha.13",
41
+ "@storybook/core-client": "7.0.0-alpha.13",
42
+ "@storybook/core-common": "7.0.0-alpha.13",
43
+ "@storybook/core-events": "7.0.0-alpha.13",
44
+ "@storybook/core-server": "7.0.0-alpha.13",
44
45
  "@storybook/csf": "0.0.2--canary.4566f4d.1",
45
- "@storybook/docs-tools": "7.0.0-alpha.10",
46
- "@storybook/node-logger": "7.0.0-alpha.10",
46
+ "@storybook/docs-tools": "7.0.0-alpha.13",
47
+ "@storybook/node-logger": "7.0.0-alpha.13",
47
48
  "@storybook/semver": "^7.3.2",
48
- "@storybook/store": "7.0.0-alpha.10",
49
+ "@storybook/store": "7.0.0-alpha.13",
49
50
  "@types/node": "^14.14.20 || ^16.0.0",
50
51
  "@types/react": "^16.14.23",
51
52
  "@types/react-dom": "^16.9.14",
@@ -127,5 +128,5 @@
127
128
  "access": "public"
128
129
  },
129
130
  "builders": "dist/types/builders/builders.json",
130
- "gitHead": "b13dd8fb52819d73d4983148af8ffc5d683e8b75"
131
+ "gitHead": "9ac4d2e0a05eb945713a0e6689abc3b12359e181"
131
132
  }