intact-react
Advanced tools
Comparing version 3.0.39 to 3.0.40
@@ -893,3 +893,3 @@ 'use strict'; | ||
promises.reset(); | ||
var mountedQueue = this.$mountedQueue = getMountedQueue(this.$senior); | ||
var mountedQueue = this.$mountedQueue = getMountedQueue(this.$senior, this); | ||
this.$update(lastVNode, vNode, this.$parentElement, null, mountedQueue, false); | ||
@@ -970,7 +970,10 @@ this.$done(function () { | ||
Component.prototype.isReactComponent = true; | ||
function getMountedQueue(parent) { | ||
function getMountedQueue(parent, instance) { | ||
var _a; | ||
var queue = []; | ||
queue.priority = []; | ||
queue.pending = []; | ||
if (parent) { | ||
var mountedQueue = parent.$mountedQueue; | ||
var oldMountedQueue = instance === null || instance === void 0 ? void 0 : instance.$mountedQueue; | ||
/** | ||
@@ -983,4 +986,13 @@ * should search all parent promises | ||
if (!parentPromises.done) { | ||
var children = mountedQueue.children || (mountedQueue.children = []); | ||
children.push(queue); | ||
if (!mountedQueue.done) { | ||
var children = mountedQueue.children || (mountedQueue.children = []); | ||
if ((_a = oldMountedQueue === null || oldMountedQueue === void 0 ? void 0 : oldMountedQueue.pending) === null || _a === void 0 ? void 0 : _a.length) { | ||
children.push.apply(children, oldMountedQueue.pending); | ||
oldMountedQueue.pending.length = 0; | ||
} | ||
children.push(queue); | ||
} | ||
else { | ||
mountedQueue.pending.push(queue); | ||
} | ||
break; | ||
@@ -987,0 +999,0 @@ } |
@@ -873,3 +873,3 @@ 'use strict'; | ||
promises.reset(); | ||
var mountedQueue = this.$mountedQueue = getMountedQueue(this.$senior); | ||
var mountedQueue = this.$mountedQueue = getMountedQueue(this.$senior, this); | ||
this.$update(lastVNode, vNode, this.$parentElement, null, mountedQueue, false); | ||
@@ -950,7 +950,10 @@ this.$done(function () { | ||
Component.prototype.isReactComponent = true; | ||
function getMountedQueue(parent) { | ||
function getMountedQueue(parent, instance) { | ||
var _a; | ||
var queue = []; | ||
queue.priority = []; | ||
queue.pending = []; | ||
if (parent) { | ||
var mountedQueue = parent.$mountedQueue; | ||
var oldMountedQueue = instance === null || instance === void 0 ? void 0 : instance.$mountedQueue; | ||
/** | ||
@@ -963,4 +966,13 @@ * should search all parent promises | ||
if (!parentPromises.done) { | ||
var children = mountedQueue.children || (mountedQueue.children = []); | ||
children.push(queue); | ||
if (!mountedQueue.done) { | ||
var children = mountedQueue.children || (mountedQueue.children = []); | ||
if ((_a = oldMountedQueue === null || oldMountedQueue === void 0 ? void 0 : oldMountedQueue.pending) === null || _a === void 0 ? void 0 : _a.length) { | ||
children.push.apply(children, oldMountedQueue.pending); | ||
oldMountedQueue.pending.length = 0; | ||
} | ||
children.push(queue); | ||
} | ||
else { | ||
mountedQueue.pending.push(queue); | ||
} | ||
break; | ||
@@ -967,0 +979,0 @@ } |
@@ -890,3 +890,3 @@ import { __spreadArray, __assign, __extends } from 'tslib'; | ||
promises.reset(); | ||
var mountedQueue = this.$mountedQueue = getMountedQueue(this.$senior); | ||
var mountedQueue = this.$mountedQueue = getMountedQueue(this.$senior, this); | ||
this.$update(lastVNode, vNode, this.$parentElement, null, mountedQueue, false); | ||
@@ -967,7 +967,10 @@ this.$done(function () { | ||
Component.prototype.isReactComponent = true; | ||
function getMountedQueue(parent) { | ||
function getMountedQueue(parent, instance) { | ||
var _a; | ||
var queue = []; | ||
queue.priority = []; | ||
queue.pending = []; | ||
if (parent) { | ||
var mountedQueue = parent.$mountedQueue; | ||
var oldMountedQueue = instance === null || instance === void 0 ? void 0 : instance.$mountedQueue; | ||
/** | ||
@@ -980,4 +983,13 @@ * should search all parent promises | ||
if (!parentPromises.done) { | ||
var children = mountedQueue.children || (mountedQueue.children = []); | ||
children.push(queue); | ||
if (!mountedQueue.done) { | ||
var children = mountedQueue.children || (mountedQueue.children = []); | ||
if ((_a = oldMountedQueue === null || oldMountedQueue === void 0 ? void 0 : oldMountedQueue.pending) === null || _a === void 0 ? void 0 : _a.length) { | ||
children.push.apply(children, oldMountedQueue.pending); | ||
oldMountedQueue.pending.length = 0; | ||
} | ||
children.push(queue); | ||
} | ||
else { | ||
mountedQueue.pending.push(queue); | ||
} | ||
break; | ||
@@ -984,0 +996,0 @@ } |
@@ -18,1 +18,10 @@ import { VNodeComponentClass, IntactDom, TypeDefs } from 'intact'; | ||
} | ||
export declare class Dialog extends Component<{ | ||
show?: boolean; | ||
}> { | ||
static template: string; | ||
static defaults(): { | ||
show: boolean; | ||
}; | ||
private Portal; | ||
} |
{ | ||
"name": "intact-react", | ||
"version": "3.0.39", | ||
"version": "3.0.40", | ||
"description": "A compatibility layer for running intact component in React@17", | ||
@@ -32,6 +32,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"intact": "^3.0.39", | ||
"intact-shared": "^3.0.39", | ||
"intact": "^3.0.40", | ||
"intact-shared": "^3.0.40", | ||
"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
1085526
25541
Updatedintact@^3.0.40
Updatedintact-shared@^3.0.40