@xh/hoist 71.0.0-SNAPSHOT.1733788712041 → 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.
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
### ⚙️ Technical
|
|
16
16
|
|
|
17
17
|
* Added explicit `devDependencies` and `resolutions` blocks for `@types/react[-dom]` at v18.x.
|
|
18
|
+
* Added workaround for problematic use of SASS-syntax-in-CSS shipped by `react-dates`. This began
|
|
19
|
+
throwing "This function isn't allowed in plain CSS" with latest version of sass/sass-loader.
|
|
18
20
|
|
|
19
21
|
## v70.0.0 - 2024-11-15
|
|
20
22
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SingleDatePicker } from 'react-dates';
|
|
2
2
|
import 'react-dates/initialize';
|
|
3
|
-
import '
|
|
3
|
+
import './datepicker.css';
|
|
4
4
|
export { SingleDatePicker };
|
|
5
5
|
export declare const singleDatePicker: import("@xh/hoist/core").ElementFactory<any>;
|
|
@@ -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) {
|