@storybook/angular 6.4.17 → 6.4.20
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.
|
@@ -90,27 +90,13 @@ exports.createStorybookWrapperComponent = function (selector, template, storyCom
|
|
|
90
90
|
// And then forces the `detectChanges`
|
|
91
91
|
this.storyComponentViewContainerRef.injector.get(core_1.ChangeDetectorRef).markForCheck();
|
|
92
92
|
this.changeDetectorRef.detectChanges();
|
|
93
|
-
// Once target component has been initialized, the storyProps$ observable keeps target component
|
|
93
|
+
// Once target component has been initialized, the storyProps$ observable keeps target component properties than are not Input|Output up to date
|
|
94
94
|
this.storyComponentPropsSubscription = this.storyProps$
|
|
95
95
|
.pipe(operators_1.skip(1), operators_1.map(function (props) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
var key = _a[0], value = _a[1];
|
|
101
|
-
return (__assign(__assign({}, prev), (!outputsKeyToRemove.includes(key) && (_b = {},
|
|
102
|
-
_b[key] = value,
|
|
103
|
-
_b))));
|
|
104
|
-
}, {});
|
|
105
|
-
}), operators_1.map(function (props) {
|
|
106
|
-
// In case a component uses an input with `bindingPropertyName` (ex: @Input('name'))
|
|
107
|
-
// find the value of the local propName in the component Inputs
|
|
108
|
-
// otherwise use the input key
|
|
109
|
-
return Object.entries(props).reduce(function (prev, _a) {
|
|
110
|
-
var _b, _c;
|
|
111
|
-
var propKey = _a[0], value = _a[1];
|
|
112
|
-
var input = ngComponentInputsOutputs_1.inputs.find(function (o) { return o.templateName === propKey; });
|
|
113
|
-
return __assign(__assign({}, prev), (input ? (_b = {}, _b[input.propName] = value, _b) : (_c = {}, _c[propKey] = value, _c)));
|
|
96
|
+
var propsKeyToKeep = getNonInputsOutputsProps(ngComponentInputsOutputs_1, props);
|
|
97
|
+
return propsKeyToKeep.reduce(function (acc, p) {
|
|
98
|
+
var _a;
|
|
99
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[p] = props[p], _a)));
|
|
114
100
|
}, {});
|
|
115
101
|
}))
|
|
116
102
|
.subscribe(function (props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.20",
|
|
4
4
|
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"prepare": "node ../../scripts/prepare.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@storybook/addons": "6.4.
|
|
49
|
-
"@storybook/api": "6.4.
|
|
50
|
-
"@storybook/core": "6.4.
|
|
51
|
-
"@storybook/core-common": "6.4.
|
|
52
|
-
"@storybook/core-events": "6.4.
|
|
48
|
+
"@storybook/addons": "6.4.20",
|
|
49
|
+
"@storybook/api": "6.4.20",
|
|
50
|
+
"@storybook/core": "6.4.20",
|
|
51
|
+
"@storybook/core-common": "6.4.20",
|
|
52
|
+
"@storybook/core-events": "6.4.20",
|
|
53
53
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
54
|
-
"@storybook/node-logger": "6.4.
|
|
54
|
+
"@storybook/node-logger": "6.4.20",
|
|
55
55
|
"@storybook/semver": "^7.3.2",
|
|
56
|
-
"@storybook/store": "6.4.
|
|
56
|
+
"@storybook/store": "6.4.20",
|
|
57
57
|
"@types/webpack-env": "^1.16.0",
|
|
58
58
|
"autoprefixer": "^9.8.6",
|
|
59
59
|
"core-js": "^3.8.2",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
130
|
"builders": "dist/ts3.9/builders/builders.json",
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "c91a26aff48ee9c5ee555c4788513c6cef16e0a9"
|
|
132
132
|
}
|