intact-react
Advanced tools
Comparing version 3.0.12 to 3.0.13
@@ -791,2 +791,18 @@ 'use strict'; | ||
Component.prototype.setState = function () { }; | ||
Component.prototype.$mount = function (lastVNode, nextVNode) { | ||
_super.prototype.$mount.call(this, lastVNode, nextVNode); | ||
if (this.$pendingUnmount) { | ||
this.$pendingUnmount(); | ||
this.$pendingUnmount = undefined; | ||
} | ||
}; | ||
Component.prototype.$unmount = function (vNode, nextVNode) { | ||
var _this = this; | ||
if (!this.$mounted) { | ||
this.$pendingUnmount = function () { return _super.prototype.$unmount.call(_this, vNode, nextVNode); }; | ||
} | ||
else { | ||
_super.prototype.$unmount.call(this, vNode, nextVNode); | ||
} | ||
}; | ||
Component.$cid = 'IntactReact'; | ||
@@ -793,0 +809,0 @@ Component.normalize = normalizeChildren; |
@@ -764,2 +764,18 @@ 'use strict'; | ||
Component.prototype.setState = function () { }; | ||
Component.prototype.$mount = function (lastVNode, nextVNode) { | ||
_super.prototype.$mount.call(this, lastVNode, nextVNode); | ||
if (this.$pendingUnmount) { | ||
this.$pendingUnmount(); | ||
this.$pendingUnmount = undefined; | ||
} | ||
}; | ||
Component.prototype.$unmount = function (vNode, nextVNode) { | ||
var _this = this; | ||
if (!this.$mounted) { | ||
this.$pendingUnmount = function () { return _super.prototype.$unmount.call(_this, vNode, nextVNode); }; | ||
} | ||
else { | ||
_super.prototype.$unmount.call(this, vNode, nextVNode); | ||
} | ||
}; | ||
Component.$cid = 'IntactReact'; | ||
@@ -766,0 +782,0 @@ Component.normalize = normalizeChildren; |
@@ -44,2 +44,3 @@ import { Component as IntactComponent, Props, VNodeComponentClass } from 'intact'; | ||
private $parentElement; | ||
private $pendingUnmount?; | ||
constructor(props: IntactReactProps<P, E, B>, context: any); | ||
@@ -61,2 +62,4 @@ constructor(props: Props<P, Component<P>> | null, $vNode: VNodeComponentClass, $SVG: boolean, $mountedQueue: Function[], $senior: Component | null); | ||
setState(): void; | ||
$mount(lastVNode: VNodeComponentClass<this> | null, nextVNode: VNodeComponentClass<this>): void; | ||
$unmount(vNode: VNodeComponentClass<this>, nextVNode: VNodeComponentClass<this> | null): void; | ||
} |
@@ -788,2 +788,18 @@ import { __spreadArray, __assign, __extends } from 'tslib'; | ||
Component.prototype.setState = function () { }; | ||
Component.prototype.$mount = function (lastVNode, nextVNode) { | ||
_super.prototype.$mount.call(this, lastVNode, nextVNode); | ||
if (this.$pendingUnmount) { | ||
this.$pendingUnmount(); | ||
this.$pendingUnmount = undefined; | ||
} | ||
}; | ||
Component.prototype.$unmount = function (vNode, nextVNode) { | ||
var _this = this; | ||
if (!this.$mounted) { | ||
this.$pendingUnmount = function () { return _super.prototype.$unmount.call(_this, vNode, nextVNode); }; | ||
} | ||
else { | ||
_super.prototype.$unmount.call(this, vNode, nextVNode); | ||
} | ||
}; | ||
Component.$cid = 'IntactReact'; | ||
@@ -790,0 +806,0 @@ Component.normalize = normalizeChildren; |
@@ -44,2 +44,3 @@ import { Component as IntactComponent, Props, VNodeComponentClass } from 'intact'; | ||
private $parentElement; | ||
private $pendingUnmount?; | ||
constructor(props: IntactReactProps<P, E, B>, context: any); | ||
@@ -61,2 +62,4 @@ constructor(props: Props<P, Component<P>> | null, $vNode: VNodeComponentClass, $SVG: boolean, $mountedQueue: Function[], $senior: Component | null); | ||
setState(): void; | ||
$mount(lastVNode: VNodeComponentClass<this> | null, nextVNode: VNodeComponentClass<this>): void; | ||
$unmount(vNode: VNodeComponentClass<this>, nextVNode: VNodeComponentClass<this> | null): void; | ||
} |
{ | ||
"name": "intact-react", | ||
"version": "3.0.12", | ||
"version": "3.0.13", | ||
"description": "A compatibility layer for running intact component in React@17", | ||
@@ -32,5 +32,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"intact": "^3.0.12", | ||
"intact": "^3.0.13", | ||
"tslib": "^2.3.1" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1007470
23926
Updatedintact@^3.0.13