@xh/hoist 71.0.0-SNAPSHOT.1735340606080 → 71.0.0-SNAPSHOT.1735573086543

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
@@ -44,6 +44,7 @@
44
44
 
45
45
  * Improved accuracy of `IconProps` interface, with use of the `IconName` and `IconPrefix` types
46
46
  provided by FontAwesome.
47
+ * Improved accuracy of `PersistOptions.type` enum.
47
48
 
48
49
  ## v70.0.0 - 2024-11-15
49
50
 
@@ -8,9 +8,10 @@ export interface PersistOptions {
8
8
  debounce?: DebounceSpec;
9
9
  /**
10
10
  * Type of PersistenceProvider to create. If not provided, defaulted based
11
- * on the presence of `prefKey`, `localStorageKey`, `dashViewModel`, `getData` and `setData`.
11
+ * on the presence of `prefKey`, `localStorageKey`, `dashViewModel`, 'viewManagerModel',
12
+ * `getData` and `setData`.
12
13
  */
13
- type?: string;
14
+ type?: 'pref' | 'localStorage' | 'sessionStorage' | 'dashView' | 'viewManager' | 'custom';
14
15
  /** Predefined Hoist application Preference key used to store state. */
15
16
  prefKey?: string;
16
17
  /** Browser local storage key used to store state. */
@@ -18,9 +18,10 @@ export interface PersistOptions {
18
18
 
19
19
  /**
20
20
  * Type of PersistenceProvider to create. If not provided, defaulted based
21
- * on the presence of `prefKey`, `localStorageKey`, `dashViewModel`, `getData` and `setData`.
21
+ * on the presence of `prefKey`, `localStorageKey`, `dashViewModel`, 'viewManagerModel',
22
+ * `getData` and `setData`.
22
23
  */
23
- type?: string;
24
+ type?: 'pref' | 'localStorage' | 'sessionStorage' | 'dashView' | 'viewManager' | 'custom';
24
25
 
25
26
  /** Predefined Hoist application Preference key used to store state. */
26
27
  prefKey?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "71.0.0-SNAPSHOT.1735340606080",
3
+ "version": "71.0.0-SNAPSHOT.1735573086543",
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",