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.
- package/dist/bt-core-app.js +1 -1
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -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:
|
|
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:
|
|
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