bt-core-app 1.4.659 → 1.4.660

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.
@@ -7343,7 +7343,7 @@ const $g = (e) => {
7343
7343
  function Lk(e) {
7344
7344
  var a, n, l;
7345
7345
  let t = (a = e.navigation) == null ? void 0 : a.findItem(e.nav);
7346
- if (e.storeMode ?? (e.storeMode = (t == null ? void 0 : t.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = (t == null ? void 0 : t.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((n = e.navigation) == null ? void 0 : n.findStoreName(t ?? e.nav)) ?? e.nav), e.getStorageKey ?? (e.getStorageKey = t == null ? void 0 : t.getStorageKey), (l = e.demo) != null && l.isDemoing.value && (e.storageMode = "session"), e.storeName == null)
7346
+ if (e.storeMode ?? (e.storeMode = (t == null ? void 0 : t.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = (t == null ? void 0 : t.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = `blob-${((n = e.navigation) == null ? void 0 : n.findStoreName(t ?? e.nav)) ?? e.nav}`), e.getStorageKey ?? (e.getStorageKey = t == null ? void 0 : t.getStorageKey), (l = e.demo) != null && l.isDemoing.value && (e.storageMode = "session"), e.storeName == null)
7347
7347
  throw new Error("no store name provided");
7348
7348
  return Os(e.storeName, () => {
7349
7349
  var g;
package/dist/index.d.ts CHANGED
@@ -438,10 +438,17 @@ export declare interface CreateAuthOptions {
438
438
  useTokenRefresh?: boolean;
439
439
  }
440
440
 
441
- export declare function createBlobStoreBuilder(options: CreateStoreBuilderOptions): (opt: CreateStoreOptions) => BTBlobStoreDefinition;
441
+ export declare function createBlobStoreBuilder(options: CreateStoreBuilderOptions): (opt: CreateBlobStoreOptions) => BTBlobStoreDefinition;
442
442
 
443
443
  export declare function createBlobStoreDefinition(options: UseBlobStoreOptions): BTBlobStoreDefinition;
444
444
 
445
+ declare interface CreateBlobStoreOptions {
446
+ /**whether to store data locally or only for the duration of the session */
447
+ storageMode?: StorageMode;
448
+ /**the nav item or name of this store */
449
+ nav: string;
450
+ }
451
+
445
452
  export declare function createCore(options: CreateCoreOptions): CoreApp;
446
453
 
447
454
  export declare interface CreateCoreOptions {
@@ -1535,7 +1542,7 @@ declare interface UseBladeOptions {
1535
1542
  variant?: BladeVariant;
1536
1543
  }
1537
1544
 
1538
- export declare function useBlobStore(options: CreateStoreOptions): BTBlobStore;
1545
+ export declare function useBlobStore(options: CreateBlobStoreOptions): BTBlobStore;
1539
1546
 
1540
1547
  declare interface UseBlobStoreOptions extends UseStoreOptions {
1541
1548
  api?: BTApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.659",
3
+ "version": "1.4.660",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {