@storybook/ember 7.0.0-alpha.11 → 7.0.0-alpha.12
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.
@@ -9,8 +9,11 @@ var _global = _interopRequireDefault(require("global"));
|
|
9
9
|
|
10
10
|
var _tsDedent = require("ts-dedent");
|
11
11
|
|
12
|
+
var _component = _interopRequireDefault(require("@ember/component"));
|
13
|
+
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
15
|
|
16
|
+
// @ts-ignore
|
14
17
|
const {
|
15
18
|
window: globalWindow,
|
16
19
|
document
|
@@ -45,7 +48,7 @@ function render(options, el) {
|
|
45
48
|
const appInstancePrivate = app.buildInstance();
|
46
49
|
return appInstancePrivate.boot().then(() => appInstancePrivate);
|
47
50
|
}).then(instance => {
|
48
|
-
instance.register('component:story-mode',
|
51
|
+
instance.register('component:story-mode', _component.default.extend(Object.assign({
|
49
52
|
layout: template || options
|
50
53
|
}, context)));
|
51
54
|
const component = instance.lookup('component:story-mode');
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import global from 'global';
|
2
2
|
import { dedent } from 'ts-dedent';
|
3
|
+
// @ts-ignore
|
4
|
+
import Component from '@ember/component'; // eslint-disable-line import/no-unresolved
|
5
|
+
|
3
6
|
const {
|
4
7
|
window: globalWindow,
|
5
8
|
document
|
@@ -34,7 +37,7 @@ function render(options, el) {
|
|
34
37
|
const appInstancePrivate = app.buildInstance();
|
35
38
|
return appInstancePrivate.boot().then(() => appInstancePrivate);
|
36
39
|
}).then(instance => {
|
37
|
-
instance.register('component:story-mode',
|
40
|
+
instance.register('component:story-mode', Component.extend(Object.assign({
|
38
41
|
layout: template || options
|
39
42
|
}, context)));
|
40
43
|
const component = instance.lookup('component:story-mode');
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { RenderContext } from '@storybook/store';
|
1
|
+
import type { RenderContext } from '@storybook/store';
|
2
2
|
import { EmberFramework } from './types';
|
3
3
|
export declare function renderToDOM({ storyFn, kind, name, showMain, showError }: RenderContext<EmberFramework>, domElement: Element): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/ember",
|
3
|
-
"version": "7.0.0-alpha.
|
3
|
+
"version": "7.0.0-alpha.12",
|
4
4
|
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
|
5
5
|
"homepage": "https://github.com/storybookjs/storybook/tree/main/frameworks/ember",
|
6
6
|
"bugs": {
|
@@ -30,11 +30,11 @@
|
|
30
30
|
"prepare": "node ../../scripts/prepare.js"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@storybook/builder-webpack5": "7.0.0-alpha.
|
34
|
-
"@storybook/core-client": "7.0.0-alpha.
|
35
|
-
"@storybook/core-common": "7.0.0-alpha.
|
36
|
-
"@storybook/docs-tools": "7.0.0-alpha.
|
37
|
-
"@storybook/store": "7.0.0-alpha.
|
33
|
+
"@storybook/builder-webpack5": "7.0.0-alpha.12",
|
34
|
+
"@storybook/core-client": "7.0.0-alpha.12",
|
35
|
+
"@storybook/core-common": "7.0.0-alpha.12",
|
36
|
+
"@storybook/docs-tools": "7.0.0-alpha.12",
|
37
|
+
"@storybook/store": "7.0.0-alpha.12",
|
38
38
|
"core-js": "^3.8.2",
|
39
39
|
"global": "^4.4.0",
|
40
40
|
"react": "16.14.0",
|
@@ -47,9 +47,10 @@
|
|
47
47
|
},
|
48
48
|
"peerDependencies": {
|
49
49
|
"@babel/core": "*",
|
50
|
+
"@types/ember__component": "4.0.8",
|
50
51
|
"babel-plugin-ember-modules-api-polyfill": "^2.12.0",
|
51
52
|
"babel-plugin-htmlbars-inline-precompile": "2 || 3",
|
52
|
-
"ember-source": "
|
53
|
+
"ember-source": "~3.28.1"
|
53
54
|
},
|
54
55
|
"engines": {
|
55
56
|
"node": ">=10.13.0"
|
@@ -57,5 +58,5 @@
|
|
57
58
|
"publishConfig": {
|
58
59
|
"access": "public"
|
59
60
|
},
|
60
|
-
"gitHead": "
|
61
|
+
"gitHead": "5070efff271ecb5c26b3eb94c128c4896171cffe"
|
61
62
|
}
|