minimal-piral 0.15.0 → 0.15.1-beta.4906
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/app/{index.0f8c15.js → index.859e3c.js} +11 -19
- package/app/index.859e3c.js.map +1 -0
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +5 -5
- package/app/index.0f8c15.js.map +0 -1
|
@@ -3506,12 +3506,6 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
3506
3506
|
_this = _super.apply(this, arguments);
|
|
3507
3507
|
_this.locals = {};
|
|
3508
3508
|
|
|
3509
|
-
_this.handler = function (ev) {
|
|
3510
|
-
var innerProps = _this.props.innerProps;
|
|
3511
|
-
ev.stopPropagation();
|
|
3512
|
-
innerProps.piral.renderHtmlExtension(ev.detail.target, ev.detail.props);
|
|
3513
|
-
};
|
|
3514
|
-
|
|
3515
3509
|
_this.setNode = function (node) {
|
|
3516
3510
|
_this.current = node;
|
|
3517
3511
|
};
|
|
@@ -3522,19 +3516,18 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
3522
3516
|
_createClass(ForeignComponentContainer, [{
|
|
3523
3517
|
key: "componentDidMount",
|
|
3524
3518
|
value: function componentDidMount() {
|
|
3525
|
-
var
|
|
3519
|
+
var current = this.current;
|
|
3526
3520
|
var _this$props = this.props,
|
|
3527
3521
|
$component = _this$props.$component,
|
|
3528
3522
|
$context = _this$props.$context,
|
|
3529
3523
|
innerProps = _this$props.innerProps;
|
|
3530
3524
|
var mount = $component.mount;
|
|
3531
3525
|
|
|
3532
|
-
if (
|
|
3533
|
-
mount(
|
|
3534
|
-
node.addEventListener('render-html', this.handler, false);
|
|
3526
|
+
if (current && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
|
|
3527
|
+
mount(current, innerProps, $context, this.locals);
|
|
3535
3528
|
}
|
|
3536
3529
|
|
|
3537
|
-
this.previous =
|
|
3530
|
+
this.previous = current;
|
|
3538
3531
|
}
|
|
3539
3532
|
}, {
|
|
3540
3533
|
key: "componentDidUpdate",
|
|
@@ -3557,13 +3550,12 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
3557
3550
|
}, {
|
|
3558
3551
|
key: "componentWillUnmount",
|
|
3559
3552
|
value: function componentWillUnmount() {
|
|
3560
|
-
var
|
|
3553
|
+
var previous = this.previous;
|
|
3561
3554
|
var $component = this.props.$component;
|
|
3562
3555
|
var unmount = $component.unmount;
|
|
3563
3556
|
|
|
3564
|
-
if (
|
|
3565
|
-
unmount(
|
|
3566
|
-
node.removeEventListener('render-html', this.handler, false);
|
|
3557
|
+
if (previous && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
|
|
3558
|
+
unmount(previous, this.locals);
|
|
3567
3559
|
}
|
|
3568
3560
|
|
|
3569
3561
|
this.previous = undefined;
|
|
@@ -6646,12 +6638,12 @@ function installPiralDebug(options) {
|
|
|
6646
6638
|
debug: debugApiVersion,
|
|
6647
6639
|
instance: {
|
|
6648
6640
|
name: "minimal-piral",
|
|
6649
|
-
version: "0.15.
|
|
6641
|
+
version: "0.15.1-beta.4906",
|
|
6650
6642
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
6651
6643
|
},
|
|
6652
6644
|
build: {
|
|
6653
|
-
date: "2022-11-
|
|
6654
|
-
cli: "0.15.
|
|
6645
|
+
date: "2022-11-24T14:29:20.412Z",
|
|
6646
|
+
cli: "0.15.1-beta.4906",
|
|
6655
6647
|
compat: "0.15"
|
|
6656
6648
|
}
|
|
6657
6649
|
};
|
|
@@ -45591,4 +45583,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45591
45583
|
|
|
45592
45584
|
/******/ })()
|
|
45593
45585
|
;
|
|
45594
|
-
//# sourceMappingURL=index.
|
|
45586
|
+
//# sourceMappingURL=index.859e3c.js.map
|