@xh/hoist 76.0.0-SNAPSHOT.1755780982882 → 76.0.0-SNAPSHOT.1755807786142
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.
|
@@ -51,15 +51,16 @@ export declare class HoistAppModel extends HoistModel {
|
|
|
51
51
|
/**
|
|
52
52
|
* Resets user preferences and any persistent local application state.
|
|
53
53
|
*
|
|
54
|
-
* The default implementation for this method will clear all preferences, local
|
|
55
|
-
* transient
|
|
54
|
+
* The default implementation for this method will clear all preferences, local + session
|
|
55
|
+
* storage, and transient {@link ViewManager} state such as last-selected and pinned views.
|
|
56
|
+
* (Views themselves are preserved.)
|
|
56
57
|
*
|
|
57
58
|
* Applications may wish to override this method to perform a more targeted clearing of state.
|
|
58
|
-
* This is important for complex applications with smaller sub-applications
|
|
59
|
+
* This is important for complex applications with smaller sub-applications and/or device
|
|
59
60
|
* specific applications. These applications will typically want to perform a custom clearing
|
|
60
|
-
* that is more targeted
|
|
61
|
+
* that is more targeted and/or clears additional app-specific state.
|
|
61
62
|
*
|
|
62
|
-
* Not typically called directly by
|
|
63
|
+
* Not typically called directly by apps - call {@link XHApi.restoreDefaultsAsync} instead.
|
|
63
64
|
*/
|
|
64
65
|
restoreDefaultsAsync(): Promise<void>;
|
|
65
66
|
}
|
package/build/types/core/XH.d.ts
CHANGED
package/core/HoistAppModel.ts
CHANGED
|
@@ -88,15 +88,16 @@ export class HoistAppModel extends HoistModel {
|
|
|
88
88
|
/**
|
|
89
89
|
* Resets user preferences and any persistent local application state.
|
|
90
90
|
*
|
|
91
|
-
* The default implementation for this method will clear all preferences, local
|
|
92
|
-
* transient
|
|
91
|
+
* The default implementation for this method will clear all preferences, local + session
|
|
92
|
+
* storage, and transient {@link ViewManager} state such as last-selected and pinned views.
|
|
93
|
+
* (Views themselves are preserved.)
|
|
93
94
|
*
|
|
94
95
|
* Applications may wish to override this method to perform a more targeted clearing of state.
|
|
95
|
-
* This is important for complex applications with smaller sub-applications
|
|
96
|
+
* This is important for complex applications with smaller sub-applications and/or device
|
|
96
97
|
* specific applications. These applications will typically want to perform a custom clearing
|
|
97
|
-
* that is more targeted
|
|
98
|
+
* that is more targeted and/or clears additional app-specific state.
|
|
98
99
|
*
|
|
99
|
-
* Not typically called directly by
|
|
100
|
+
* Not typically called directly by apps - call {@link XHApi.restoreDefaultsAsync} instead.
|
|
100
101
|
*/
|
|
101
102
|
async restoreDefaultsAsync() {
|
|
102
103
|
const XH = window['XH'];
|
package/core/XH.ts
CHANGED
|
@@ -773,13 +773,12 @@ export class XHApi {
|
|
|
773
773
|
|
|
774
774
|
/**
|
|
775
775
|
* Reset user state and then reload the app.
|
|
776
|
-
*
|
|
777
776
|
* @see HoistAppModel.restoreDefaultsAsync()
|
|
778
777
|
*/
|
|
779
778
|
async restoreDefaultsAsync() {
|
|
780
779
|
try {
|
|
781
780
|
await this.appModel.restoreDefaultsAsync();
|
|
782
|
-
XH.
|
|
781
|
+
XH.track({category: 'App', message: 'Restored app defaults'});
|
|
783
782
|
this.reloadApp();
|
|
784
783
|
} catch (e) {
|
|
785
784
|
XH.handleException(e, {
|
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.1755807786142",
|
|
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",
|