@storybook/ember 7.6.0-beta.2 → 8.0.0-alpha.0

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/README.md CHANGED
@@ -24,8 +24,8 @@ You can also build a [static version](https://storybook.js.org/docs/ember/sharin
24
24
 
25
25
  ## Docs
26
26
 
27
- - [Basics](https://storybook.js.org/docs/ember/get-started/introduction)
28
- - [Configurations](https://storybook.js.org/docs/ember/configure/overview)
27
+ - [Basics](https://storybook.js.org/docs/ember/get-started)
28
+ - [Configurations](https://storybook.js.org/docs/ember/configure)
29
29
  - [Addons](https://storybook.js.org/docs/ember/configure/storybook-addons)
30
30
 
31
31
  ## Working with polyfills
@@ -1,7 +1 @@
1
1
  import './globals';
2
- import type { EmberRenderer } from './types';
3
- declare const forceReRender: () => void;
4
- export declare const raw: ((...args: any[]) => never) | (() => import("lib/types/dist").BoundStory<EmberRenderer>[] | undefined);
5
- export declare const storiesOf: (kind: string, m: any) => import("lib/types/dist").Addon_StoryApi<import("./types").OptionsArgs>;
6
- export declare const configure: (...args: any[]) => any;
7
- export { forceReRender };
@@ -1,14 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.forceReRender = exports.configure = exports.storiesOf = exports.raw = void 0;
4
- const preview_api_1 = require("@storybook/preview-api");
5
3
  require("./globals");
6
- const render_1 = require("./render");
7
- const { configure: coreConfigure, clientApi, forceReRender } = (0, preview_api_1.start)(render_1.renderToCanvas);
8
- exports.forceReRender = forceReRender;
9
- exports.raw = clientApi.raw;
10
- const RENDERER = 'ember';
11
- const storiesOf = (kind, m) => clientApi.storiesOf(kind, m).addParameters({ renderer: RENDERER });
12
- exports.storiesOf = storiesOf;
13
- const configure = (...args) => coreConfigure(RENDERER, ...args);
14
- exports.configure = configure;
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { storiesOf, configure, forceReRender, raw } from './client/preview';
1
+ import './client/preview';
package/dist/index.js CHANGED
@@ -1,12 +1,7 @@
1
1
  "use strict";
2
2
  /// <reference types="webpack-env" />
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.raw = exports.forceReRender = exports.configure = exports.storiesOf = void 0;
5
- var preview_1 = require("./client/preview");
6
- Object.defineProperty(exports, "storiesOf", { enumerable: true, get: function () { return preview_1.storiesOf; } });
7
- Object.defineProperty(exports, "configure", { enumerable: true, get: function () { return preview_1.configure; } });
8
- Object.defineProperty(exports, "forceReRender", { enumerable: true, get: function () { return preview_1.forceReRender; } });
9
- Object.defineProperty(exports, "raw", { enumerable: true, get: function () { return preview_1.raw; } });
4
+ require("./client/preview");
10
5
  // optimization: stop HMR propagation in webpack
11
6
  if (typeof module !== 'undefined')
12
7
  module?.hot?.decline();
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="webpack-env" />
2
- export { storiesOf, configure, forceReRender, raw } from './client/preview';
2
+ import './client/preview';
3
3
  // optimization: stop HMR propagation in webpack
4
4
  if (typeof module !== 'undefined')
5
5
  module?.hot?.decline();
package/dist/preset.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import type { PresetProperty } from '@storybook/types';
2
2
  import type { StorybookConfig } from './types';
3
- export declare const addons: PresetProperty<'addons', StorybookConfig>;
3
+ export declare const addons: PresetProperty<'addons'>;
4
4
  export declare const core: PresetProperty<'core', StorybookConfig>;
@@ -1,4 +1,3 @@
1
- import type { TransformOptions } from '@babel/core';
2
- import type { StorybookConfig, Options } from '@storybook/types';
3
- export declare function babel(config: TransformOptions, options: Options): TransformOptions;
4
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
1
+ import type { PresetProperty } from '@storybook/types';
2
+ export declare const babel: PresetProperty<'babel'>;
3
+ export declare const previewAnnotations: PresetProperty<'previewAnnotations'>;
@@ -11,7 +11,7 @@ function precompileWithPlugins(string, options) {
11
11
  }
12
12
  return (0, ember_template_compiler_1.precompile)(string, precompileOptions);
13
13
  }
14
- function babel(config, options) {
14
+ const babel = (config, options) => {
15
15
  if (options && options.presetsList) {
16
16
  options.presetsList.forEach((e, index) => {
17
17
  if (e.preset && e.preset.emberOptions) {
@@ -23,7 +23,7 @@ function babel(config, options) {
23
23
  }
24
24
  });
25
25
  }
26
- const babelConfigPlugins = config.plugins || [];
26
+ const babelConfigPlugins = config?.plugins || [];
27
27
  const extraPlugins = [
28
28
  [
29
29
  require.resolve('babel-plugin-htmlbars-inline-precompile'),
@@ -42,7 +42,7 @@ function babel(config, options) {
42
42
  ...config,
43
43
  plugins: [...babelConfigPlugins, ...extraPlugins],
44
44
  };
45
- }
45
+ };
46
46
  exports.babel = babel;
47
47
  const previewAnnotations = (entry = []) => {
48
48
  return [...entry, (0, core_common_1.findDistEsm)(__dirname, 'client/preview/config')];
@@ -1,2 +1,2 @@
1
- import type { StorybookConfig } from '@storybook/types';
2
- export declare const previewAnnotations: StorybookConfig['previewAnnotations'];
1
+ import type { PresetProperty } from '@storybook/types';
2
+ export declare const previewAnnotations: PresetProperty<'previewAnnotations'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/ember",
3
- "version": "7.6.0-beta.2",
3
+ "version": "8.0.0-alpha.0",
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,17 +32,17 @@
32
32
  "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/tsc.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@storybook/builder-webpack5": "7.6.0-beta.2",
36
- "@storybook/core-common": "7.6.0-beta.2",
37
- "@storybook/docs-tools": "7.6.0-beta.2",
35
+ "@storybook/builder-webpack5": "8.0.0-alpha.0",
36
+ "@storybook/core-common": "8.0.0-alpha.0",
37
+ "@storybook/docs-tools": "8.0.0-alpha.0",
38
38
  "@storybook/global": "^5.0.0",
39
- "@storybook/preview-api": "7.6.0-beta.2",
40
- "@storybook/types": "7.6.0-beta.2",
39
+ "@storybook/preview-api": "8.0.0-alpha.0",
40
+ "@storybook/types": "8.0.0-alpha.0",
41
41
  "ts-dedent": "^2.0.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "ember-source": "~3.28.1",
45
- "typescript": "~4.9.3"
45
+ "typescript": "^5.3.2"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@babel/core": "*",
@@ -2,7 +2,7 @@ import { hbs } from 'ember-cli-htmlbars';
2
2
  import { action } from '@storybook/addon-actions';
3
3
  import { linkTo } from '@storybook/addon-links';
4
4
 
5
- // More on how to set up stories at: https://storybook.js.org/docs/ember/writing-stories/introduction
5
+ // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
6
6
  export default {
7
7
  title: 'Example/Button',
8
8
  render: (args) => ({
@@ -12,11 +12,11 @@ export default {
12
12
  argTypes: {
13
13
  label: { control: 'text' },
14
14
  },
15
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
15
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
16
16
  tags: ['autodocs'],
17
17
  };
18
18
 
19
- // More on writing stories with args: https://storybook.js.org/docs/ember/writing-stories/args
19
+ // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
20
20
  export const Text = {
21
21
  args: {
22
22
  label: 'Button',