@storybook/angular 7.0.0-alpha.20 → 7.0.0-alpha.24
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.
|
@@ -111,7 +111,7 @@ const initModule = (storyFn) => {
|
|
|
111
111
|
};
|
|
112
112
|
return getModule(componentDeclarations, [AnnotatedComponent], [app_component_1.AppComponent], story, moduleMetadata);
|
|
113
113
|
};
|
|
114
|
-
const staticRoot = document.getElementById('root');
|
|
114
|
+
const staticRoot = document.getElementById('storybook-root');
|
|
115
115
|
const insertDynamicRoot = () => {
|
|
116
116
|
const app = document.createElement('storybook-dynamic-app-root');
|
|
117
117
|
staticRoot.innerHTML = '';
|
|
@@ -37,16 +37,16 @@ class RendererFactory {
|
|
|
37
37
|
}
|
|
38
38
|
exports.RendererFactory = RendererFactory;
|
|
39
39
|
const getRenderType = (targetDOMNode) => {
|
|
40
|
-
return targetDOMNode.id === 'root' ? 'canvas' : 'docs';
|
|
40
|
+
return targetDOMNode.id === 'storybook-root' ? 'canvas' : 'docs';
|
|
41
41
|
};
|
|
42
42
|
exports.getRenderType = getRenderType;
|
|
43
43
|
function clearRootHTMLElement(renderType) {
|
|
44
44
|
switch (renderType) {
|
|
45
45
|
case 'canvas':
|
|
46
|
-
global.document.getElementById('docs
|
|
46
|
+
global.document.getElementById('storybook-docs').innerHTML = '';
|
|
47
47
|
break;
|
|
48
48
|
case 'docs':
|
|
49
|
-
global.document.getElementById('root').innerHTML = '';
|
|
49
|
+
global.document.getElementById('storybook-root').innerHTML = '';
|
|
50
50
|
break;
|
|
51
51
|
default:
|
|
52
52
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.24",
|
|
4
4
|
"description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"prepare": "node ../../../scripts/prepare.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@storybook/addons": "7.0.0-alpha.
|
|
38
|
-
"@storybook/api": "7.0.0-alpha.
|
|
39
|
-
"@storybook/builder-webpack5": "7.0.0-alpha.
|
|
40
|
-
"@storybook/client-logger": "7.0.0-alpha.
|
|
41
|
-
"@storybook/core-client": "7.0.0-alpha.
|
|
42
|
-
"@storybook/core-common": "7.0.0-alpha.
|
|
43
|
-
"@storybook/core-events": "7.0.0-alpha.
|
|
44
|
-
"@storybook/core-server": "7.0.0-alpha.
|
|
37
|
+
"@storybook/addons": "7.0.0-alpha.24",
|
|
38
|
+
"@storybook/api": "7.0.0-alpha.24",
|
|
39
|
+
"@storybook/builder-webpack5": "7.0.0-alpha.24",
|
|
40
|
+
"@storybook/client-logger": "7.0.0-alpha.24",
|
|
41
|
+
"@storybook/core-client": "7.0.0-alpha.24",
|
|
42
|
+
"@storybook/core-common": "7.0.0-alpha.24",
|
|
43
|
+
"@storybook/core-events": "7.0.0-alpha.24",
|
|
44
|
+
"@storybook/core-server": "7.0.0-alpha.24",
|
|
45
45
|
"@storybook/csf": "0.0.2--canary.0899bb7.0",
|
|
46
|
-
"@storybook/docs-tools": "7.0.0-alpha.
|
|
47
|
-
"@storybook/node-logger": "7.0.0-alpha.
|
|
46
|
+
"@storybook/docs-tools": "7.0.0-alpha.24",
|
|
47
|
+
"@storybook/node-logger": "7.0.0-alpha.24",
|
|
48
48
|
"@storybook/semver": "^7.3.2",
|
|
49
|
-
"@storybook/store": "7.0.0-alpha.
|
|
49
|
+
"@storybook/store": "7.0.0-alpha.24",
|
|
50
50
|
"@types/node": "^14.14.20 || ^16.0.0",
|
|
51
51
|
"@types/react": "^16.14.23",
|
|
52
52
|
"@types/react-dom": "^16.9.14",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
130
|
"builders": "dist/types/builders/builders.json",
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "e3232cb426b8381afa48f42e6baa45fd9af9bc3a"
|
|
132
132
|
}
|