@storybook/ember 8.3.0-alpha.6 → 8.3.0-alpha.8

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.
@@ -18,8 +18,9 @@ let lastPromise = app.boot();
18
18
  let hasRendered = false;
19
19
  let isRendering = false;
20
20
  function render(options, el) {
21
- if (isRendering)
21
+ if (isRendering) {
22
22
  return;
23
+ }
23
24
  isRendering = true;
24
25
  const { template, context = {}, element } = options;
25
26
  if (hasRendered) {
package/dist/index.js CHANGED
@@ -17,5 +17,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(require("./types"), exports);
19
19
  // optimization: stop HMR propagation in webpack
20
- if (typeof module !== 'undefined')
20
+ // optimization: stop HMR propagation in webpack
21
+ if (typeof module !== 'undefined') {
21
22
  module?.hot?.decline();
23
+ }
package/dist/index.mjs CHANGED
@@ -1,5 +1,7 @@
1
1
  /// <reference types="webpack-env" />
2
2
  export * from './types';
3
3
  // optimization: stop HMR propagation in webpack
4
- if (typeof module !== 'undefined')
4
+ // optimization: stop HMR propagation in webpack
5
+ if (typeof module !== 'undefined') {
5
6
  module?.hot?.decline();
7
+ }
@@ -4,8 +4,9 @@ exports.previewAnnotations = void 0;
4
4
  const docs_tools_1 = require("storybook/internal/docs-tools");
5
5
  const util_1 = require("../util");
6
6
  const previewAnnotations = (entry = [], options) => {
7
- if (!(0, docs_tools_1.hasDocsOrControls)(options))
7
+ if (!(0, docs_tools_1.hasDocsOrControls)(options)) {
8
8
  return entry;
9
+ }
9
10
  return [...entry, (0, util_1.findDistFile)(__dirname, 'client/preview/docs/config')];
10
11
  };
11
12
  exports.previewAnnotations = previewAnnotations;
package/dist/types.d.ts CHANGED
@@ -19,9 +19,7 @@ type StorybookConfigFramework = {
19
19
  };
20
20
  typescript?: Partial<TypescriptOptionsBuilder & TypescriptOptionsReact> & StorybookConfigBase['typescript'];
21
21
  };
22
- /**
23
- * The interface for Storybook configuration in `main.ts` files.
24
- */
22
+ /** The interface for Storybook configuration in `main.ts` files. */
25
23
  export type StorybookConfig = Omit<StorybookConfigBase, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
26
24
  declare global {
27
25
  var __EMBER_GENERATED_DOC_JSON__: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/ember",
3
- "version": "8.3.0-alpha.6",
3
+ "version": "8.3.0-alpha.8",
4
4
  "description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
5
5
  "homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/ember",
6
6
  "bugs": {
@@ -32,7 +32,7 @@
32
32
  "prep": "jiti ../../../scripts/prepare/tsc.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@storybook/builder-webpack5": "8.3.0-alpha.6",
35
+ "@storybook/builder-webpack5": "8.3.0-alpha.8",
36
36
  "@storybook/global": "^5.0.0",
37
37
  "babel-loader": "9.1.3",
38
38
  "find-up": "^5.0.0",
@@ -50,7 +50,7 @@
50
50
  "ember-source": "~3.28.1 || ^4.0.0",
51
51
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
52
52
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
53
- "storybook": "^8.3.0-alpha.6"
53
+ "storybook": "^8.3.0-alpha.8"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=18.0.0"