@xh/hoist 71.0.0-SNAPSHOT.1733791818708 → 71.0.0-SNAPSHOT.1733854822950
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.
|
@@ -24,7 +24,17 @@ import {wait} from '@xh/hoist/promise';
|
|
|
24
24
|
import {isOmitted} from '@xh/hoist/utils/impl';
|
|
25
25
|
import {debounced, ensureUniqueBy, throwIf} from '@xh/hoist/utils/js';
|
|
26
26
|
import {createObservableRef} from '@xh/hoist/utils/react';
|
|
27
|
-
import {
|
|
27
|
+
import {
|
|
28
|
+
cloneDeep,
|
|
29
|
+
defaultsDeep,
|
|
30
|
+
find,
|
|
31
|
+
isEqual,
|
|
32
|
+
isFinite,
|
|
33
|
+
isNil,
|
|
34
|
+
last,
|
|
35
|
+
reject,
|
|
36
|
+
startCase
|
|
37
|
+
} from 'lodash';
|
|
28
38
|
import {createRoot} from 'react-dom/client';
|
|
29
39
|
import {DashConfig, DashModel} from '../';
|
|
30
40
|
import {DashViewModel, DashViewState} from '../DashViewModel';
|
|
@@ -371,13 +381,15 @@ export class DashContainerModel
|
|
|
371
381
|
this.publishState();
|
|
372
382
|
}
|
|
373
383
|
|
|
374
|
-
@debounced(
|
|
384
|
+
@debounced(100)
|
|
375
385
|
private publishState() {
|
|
376
386
|
const {goldenLayout} = this;
|
|
377
387
|
if (!goldenLayout) return;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
388
|
+
|
|
389
|
+
const newState = convertGLToState(goldenLayout, this);
|
|
390
|
+
if (!isEqual(this.state, newState)) {
|
|
391
|
+
runInAction(() => (this.state = newState));
|
|
392
|
+
}
|
|
381
393
|
}
|
|
382
394
|
|
|
383
395
|
private onItemDestroyed(item) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "71.0.0-SNAPSHOT.
|
|
3
|
+
"version": "71.0.0-SNAPSHOT.1733854822950",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|