@xh/hoist 76.0.0-SNAPSHOT.1756431654493 → 76.0.0-SNAPSHOT.1756924112722
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 76.0.0-SNAPSHOT - unreleased
|
|
4
4
|
|
|
5
|
-
### 💥 Breaking Changes (upgrade difficulty: 🟢 LOW -
|
|
5
|
+
### 💥 Breaking Changes (upgrade difficulty: 🟢 LOW - upgrade to Hoist Core)
|
|
6
6
|
|
|
7
7
|
### 🎁 New Features
|
|
8
8
|
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
* Handled an edge-case `ViewManager` bug where `enableDefault` changed to `false` after some user
|
|
18
18
|
state had already been persisted w/users pointed at in-code default view. The manager now calls
|
|
19
19
|
its configured `initialViewSpec` function as expected in this case.
|
|
20
|
-
* `XH.restoreDefaultsAsync`
|
|
21
|
-
|
|
20
|
+
* Updated `XH.restoreDefaultsAsync` to clear basic view state, including the user's last selected
|
|
21
|
+
view. Views themselves will be preserved. Requires `hoist-core >= 32.0`.
|
|
22
22
|
|
|
23
23
|
### ⚙️ Technical
|
|
24
24
|
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
* Added `XH.logLevel` to define a minimum logging severity threshold for Hoist's client-side logging
|
|
26
|
+
utilities. Defaulted to 'info' to prevent possible memory and performance impacts of verbose
|
|
27
|
+
logging on 'debug'. Change at runtime via new `XH.setLogLevel()` when troubleshooting. See
|
|
28
|
+
`LogUtils.ts` for more info.
|
|
29
29
|
* Added control to trigger browser GC from app footer. Useful for troubleshooting memory issues.
|
|
30
30
|
Requires running chromium-based browser via e.g. `start chrome --js-flags="--expose-gc`.
|
|
31
31
|
|
|
@@ -705,11 +705,13 @@ export class ViewManagerModel<T = PlainObject> extends HoistModel {
|
|
|
705
705
|
const latestInfo = latest.info,
|
|
706
706
|
{typeDisplayName, globalDisplayName} = this,
|
|
707
707
|
msgs: ReactNode[] = [`Save ${view.typedName}?`];
|
|
708
|
+
|
|
708
709
|
if (isGlobal) {
|
|
709
710
|
msgs.push(
|
|
710
711
|
span(
|
|
711
|
-
|
|
712
|
-
|
|
712
|
+
strong(
|
|
713
|
+
`This is a ${globalDisplayName} ${typeDisplayName}. Changes will be visible to all users.`
|
|
714
|
+
)
|
|
713
715
|
)
|
|
714
716
|
);
|
|
715
717
|
}
|
|
@@ -725,7 +727,9 @@ export class ViewManagerModel<T = PlainObject> extends HoistModel {
|
|
|
725
727
|
return XH.confirm({
|
|
726
728
|
message: fragment(msgs.map(m => p(m))),
|
|
727
729
|
confirmProps: {
|
|
728
|
-
text:
|
|
730
|
+
text: isGlobal
|
|
731
|
+
? `Yes, update ${globalDisplayName} ${typeDisplayName}`
|
|
732
|
+
: 'Yes, save changes',
|
|
729
733
|
intent: 'primary',
|
|
730
734
|
outlined: true,
|
|
731
735
|
autoFocus: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "76.0.0-SNAPSHOT.
|
|
3
|
+
"version": "76.0.0-SNAPSHOT.1756924112722",
|
|
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",
|