@merkur/integration-react 0.32.0 → 0.33.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/lib/index.es9.cjs +3 -3
- package/lib/index.es9.mjs +3 -3
- package/package.json +6 -6
package/lib/index.es9.cjs
CHANGED
|
@@ -167,8 +167,8 @@ class AbstractMerkurWidget extends React.Component {
|
|
|
167
167
|
*/
|
|
168
168
|
_getSSRHTML() {
|
|
169
169
|
if (!this._isMounted && this._isClient()) {
|
|
170
|
-
var _this$container
|
|
171
|
-
return ((_this$container = this.container) === null || _this$container === void 0
|
|
170
|
+
var _this$container;
|
|
171
|
+
return ((_this$container = this.container) === null || _this$container === void 0 || (_this$container = _this$container.children) === null || _this$container === void 0 || (_this$container = _this$container[0]) === null || _this$container === void 0 ? void 0 : _this$container.outerHTML) || '';
|
|
172
172
|
}
|
|
173
173
|
return '';
|
|
174
174
|
}
|
|
@@ -527,7 +527,7 @@ class MerkurSlot extends AbstractMerkurWidget {
|
|
|
527
527
|
widgetProperties,
|
|
528
528
|
slotName
|
|
529
529
|
} = this.props;
|
|
530
|
-
return (_widgetProperties$slo = widgetProperties === null || widgetProperties === void 0
|
|
530
|
+
return (_widgetProperties$slo = widgetProperties === null || widgetProperties === void 0 || (_widgetProperties$slo2 = widgetProperties.slot) === null || _widgetProperties$slo2 === void 0 ? void 0 : _widgetProperties$slo2[slotName]) !== null && _widgetProperties$slo !== void 0 ? _widgetProperties$slo : null;
|
|
531
531
|
}
|
|
532
532
|
|
|
533
533
|
/**
|
package/lib/index.es9.mjs
CHANGED
|
@@ -165,8 +165,8 @@ class AbstractMerkurWidget extends React.Component {
|
|
|
165
165
|
*/
|
|
166
166
|
_getSSRHTML() {
|
|
167
167
|
if (!this._isMounted && this._isClient()) {
|
|
168
|
-
var _this$container
|
|
169
|
-
return ((_this$container = this.container) === null || _this$container === void 0
|
|
168
|
+
var _this$container;
|
|
169
|
+
return ((_this$container = this.container) === null || _this$container === void 0 || (_this$container = _this$container.children) === null || _this$container === void 0 || (_this$container = _this$container[0]) === null || _this$container === void 0 ? void 0 : _this$container.outerHTML) || '';
|
|
170
170
|
}
|
|
171
171
|
return '';
|
|
172
172
|
}
|
|
@@ -525,7 +525,7 @@ class MerkurSlot extends AbstractMerkurWidget {
|
|
|
525
525
|
widgetProperties,
|
|
526
526
|
slotName
|
|
527
527
|
} = this.props;
|
|
528
|
-
return (_widgetProperties$slo = widgetProperties === null || widgetProperties === void 0
|
|
528
|
+
return (_widgetProperties$slo = widgetProperties === null || widgetProperties === void 0 || (_widgetProperties$slo2 = widgetProperties.slot) === null || _widgetProperties$slo2 === void 0 ? void 0 : _widgetProperties$slo2[slotName]) !== null && _widgetProperties$slo !== void 0 ? _widgetProperties$slo : null;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkur/integration-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Merkur module for easy integration with react.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"module": "lib/index",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"homepage": "https://merkur.js.org/",
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@babel/preset-react": "^7.18.6",
|
|
50
|
-
"@merkur/core": "^0.
|
|
51
|
-
"@merkur/plugin-component": "^0.
|
|
52
|
-
"@merkur/plugin-event-emitter": "^0.
|
|
50
|
+
"@merkur/core": "^0.33.0",
|
|
51
|
+
"@merkur/plugin-component": "^0.33.0",
|
|
52
|
+
"@merkur/plugin-event-emitter": "^0.33.0",
|
|
53
53
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
54
54
|
"@rollup/plugin-replace": "^5.0.2",
|
|
55
55
|
"enzyme": "3.11.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react-dom": ">=16"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@merkur/integration": "^0.
|
|
67
|
+
"@merkur/integration": "^0.33.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "3e88b57abfad267ac3f3b20b2ae6bf50f93f5375"
|
|
70
70
|
}
|