bt-core-app 1.4.26 → 1.4.28
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 +500 -489
- package/dist/index.d.ts +24 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -296,6 +296,28 @@ export declare function createPWA(): BTPWA;
|
|
|
296
296
|
|
|
297
297
|
export declare function createSessionStoreDefinition(options: UseSessionStoreOptions): BTStoreDefinition;
|
|
298
298
|
|
|
299
|
+
export declare function createStoreBuilder(options: CreateStoreBuilderOptions): (opt: CreateStoreOptions) => BTStoreDefinition;
|
|
300
|
+
|
|
301
|
+
declare interface CreateStoreBuilderOptions {
|
|
302
|
+
/**ideally required. Otherwise will struggle to find url path */
|
|
303
|
+
api?: BTApi;
|
|
304
|
+
/**ideally required. For setting unique local storage keys */
|
|
305
|
+
auth?: BTAuth;
|
|
306
|
+
/**build a query. Overrides the default */
|
|
307
|
+
builderQuery?: (params: any) => string;
|
|
308
|
+
/**overrides the default */
|
|
309
|
+
buildUrl?: (path: PathOptions) => string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
declare interface CreateStoreOptions {
|
|
313
|
+
/**particularly what store syle to use */
|
|
314
|
+
storeMode: StoreMode;
|
|
315
|
+
/**whether to store data locally or only for the duration of the session */
|
|
316
|
+
storageMode: StorageMode;
|
|
317
|
+
/**the name of this store */
|
|
318
|
+
storeName: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
299
321
|
export declare function createUrl(options: CreateUrlOptions): CreateUrlOptions;
|
|
300
322
|
|
|
301
323
|
declare interface CreateUrlOptions {
|
|
@@ -1193,9 +1215,9 @@ declare interface UseSessionStoreOptions {
|
|
|
1193
1215
|
storeName: string;
|
|
1194
1216
|
}
|
|
1195
1217
|
|
|
1196
|
-
export declare function useStore(options:
|
|
1218
|
+
export declare function useStore(options: CreateStoreOptions): BTStore;
|
|
1197
1219
|
|
|
1198
|
-
export declare function useStoreDefinition(options:
|
|
1220
|
+
export declare function useStoreDefinition(options: CreateStoreOptions): BTStoreDefinition;
|
|
1199
1221
|
|
|
1200
1222
|
export declare interface UseStoreOptions {
|
|
1201
1223
|
/**ideally required. Otherwise will struggle to find url path */
|
package/package.json
CHANGED