@storybook/angular 7.0.0-alpha.53 → 7.0.0-alpha.54

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,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DocsRenderer = void 0;
4
- const addons_1 = require("@storybook/addons");
4
+ const preview_api_1 = require("@storybook/preview-api");
5
5
  const core_events_1 = require("@storybook/core-events");
6
6
  const AbstractRenderer_1 = require("./AbstractRenderer");
7
7
  class DocsRenderer extends AbstractRenderer_1.AbstractRenderer {
8
8
  async render(options) {
9
- const channel = addons_1.addons.getChannel();
9
+ const channel = preview_api_1.addons.getChannel();
10
10
  /**
11
11
  * Destroy and recreate the PlatformBrowserDynamic of angular
12
12
  * For several stories to be rendered in the same docs we should
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.decorateStory = void 0;
4
- const store_1 = require("@storybook/store");
4
+ const preview_api_1 = require("@storybook/preview-api");
5
5
  const ComputesTemplateFromComponent_1 = require("./angular-beta/ComputesTemplateFromComponent");
6
6
  function decorateStory(mainStoryFn, decorators) {
7
7
  const returnDecorators = [cleanArgsDecorator, ...decorators].reduce((previousStoryFn, decorator) => (context) => {
8
8
  const decoratedStory = decorator((update) => {
9
9
  return previousStoryFn({
10
10
  ...context,
11
- ...(0, store_1.sanitizeStoryContextUpdate)(update),
11
+ ...(0, preview_api_1.sanitizeStoryContextUpdate)(update),
12
12
  });
13
13
  }, context);
14
14
  return decoratedStory;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sourceDecorator = exports.skipSourceRender = void 0;
4
- const addons_1 = require("@storybook/addons");
4
+ const preview_api_1 = require("@storybook/preview-api");
5
5
  const docs_tools_1 = require("@storybook/docs-tools");
6
6
  const renderer_1 = require("../../renderer");
7
7
  const skipSourceRender = (context) => {
@@ -25,11 +25,11 @@ const sourceDecorator = (storyFn, context) => {
25
25
  if ((0, exports.skipSourceRender)(context)) {
26
26
  return story;
27
27
  }
28
- const channel = addons_1.addons.getChannel();
28
+ const channel = preview_api_1.addons.getChannel();
29
29
  const { props, template, userDefinedTemplate } = story;
30
30
  const { component, argTypes } = context;
31
31
  let toEmit;
32
- (0, addons_1.useEffect)(() => {
32
+ (0, preview_api_1.useEffect)(() => {
33
33
  if (toEmit) {
34
34
  channel.emit(docs_tools_1.SNIPPET_RENDERED, context.id, toEmit, 'angular');
35
35
  }
@@ -679,8 +679,8 @@ const newWebpackConfiguration = (transformer = (c) => c) => {
679
679
  modules: ['node_modules'],
680
680
  mainFields: ['browser', 'main'],
681
681
  alias: {
682
- '@storybook/addons': '/Users/joe/storybook/lib/addons',
683
- '@storybook/api': '/Users/joe/storybook/lib/api',
682
+ '@storybook/preview-api': '/Users/joe/storybook/lib/addons',
683
+ '@storybook/manager-api': '/Users/joe/storybook/lib/api',
684
684
  '@storybook/channels': '/Users/joe/storybook/lib/channels',
685
685
  '@storybook/channel-postmessage': '/Users/joe/storybook/lib/channel-postmessage',
686
686
  '@storybook/components': '/Users/joe/storybook/ui/components',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "7.0.0-alpha.53",
3
+ "version": "7.0.0-alpha.54",
4
4
  "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -34,19 +34,18 @@
34
34
  "prep": "rimraf dist && ../../../scripts/node_modules/.bin/tsc --project tsconfig.build.json && echo \"Preventing passing flags to tsc\""
35
35
  },
36
36
  "dependencies": {
37
- "@storybook/addons": "7.0.0-alpha.53",
38
- "@storybook/api": "7.0.0-alpha.53",
39
- "@storybook/builder-webpack5": "7.0.0-alpha.53",
40
- "@storybook/client-logger": "7.0.0-alpha.53",
41
- "@storybook/core-client": "7.0.0-alpha.53",
42
- "@storybook/core-common": "7.0.0-alpha.53",
43
- "@storybook/core-events": "7.0.0-alpha.53",
44
- "@storybook/core-server": "7.0.0-alpha.53",
45
- "@storybook/core-webpack": "7.0.0-alpha.53",
46
- "@storybook/docs-tools": "7.0.0-alpha.53",
47
- "@storybook/node-logger": "7.0.0-alpha.53",
48
- "@storybook/store": "7.0.0-alpha.53",
49
- "@storybook/types": "7.0.0-alpha.53",
37
+ "@storybook/builder-webpack5": "7.0.0-alpha.54",
38
+ "@storybook/client-logger": "7.0.0-alpha.54",
39
+ "@storybook/core-client": "7.0.0-alpha.54",
40
+ "@storybook/core-common": "7.0.0-alpha.54",
41
+ "@storybook/core-events": "7.0.0-alpha.54",
42
+ "@storybook/core-server": "7.0.0-alpha.54",
43
+ "@storybook/core-webpack": "7.0.0-alpha.54",
44
+ "@storybook/docs-tools": "7.0.0-alpha.54",
45
+ "@storybook/manager-api": "7.0.0-alpha.54",
46
+ "@storybook/node-logger": "7.0.0-alpha.54",
47
+ "@storybook/preview-api": "7.0.0-alpha.54",
48
+ "@storybook/types": "7.0.0-alpha.54",
50
49
  "@types/node": "^16.0.0",
51
50
  "@types/react": "^16.14.34",
52
51
  "@types/react-dom": "^16.9.14",
@@ -123,5 +122,5 @@
123
122
  "access": "public"
124
123
  },
125
124
  "builders": "dist/builders/builders.json",
126
- "gitHead": "fd1cf81615a5ddac3369e7bb567a1a43081fdc23"
125
+ "gitHead": "91177d4e27daec556a24ae6223c3cbe17a998d9b"
127
126
  }