bt-core-app 2.0.145 → 2.0.147

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/index.d.ts CHANGED
@@ -625,10 +625,10 @@ export declare interface CreateCoreOptions {
625
625
  menu?: CreateMenuOptions;
626
626
  navigation?: UseNavigationOptions;
627
627
  presets?: any;
628
+ pwa?: CreatePWAOptions;
628
629
  /**suboptions */
629
630
  subscriptionOptions?: AuthSubscription[];
630
631
  urls: CreateUrlOptions;
631
- usePWA?: boolean;
632
632
  }
633
633
 
634
634
  export declare function createCosmetics<T extends BaseCosmeticTheme>(options: UseCosmeticsOptions<T>): BTCosmetics;
@@ -689,7 +689,12 @@ export declare interface CreatePresetsOptions {
689
689
  presets?: any;
690
690
  }
691
691
 
692
- export declare function createPWA(): BTPWA;
692
+ export declare function createPWA(options: UsePWAOptions): BTPWA;
693
+
694
+ declare interface CreatePWAOptions {
695
+ registerServiceWorker?: boolean;
696
+ usePWA?: boolean;
697
+ }
693
698
 
694
699
  export declare function createSessionStoreDefinition(options: UseSessionStoreOptions): BTStoreDefinition;
695
700
 
@@ -1984,7 +1989,7 @@ export declare interface UseCSVPropsReturn {
1984
1989
  loadingMsg: ComputedRef<string | undefined>;
1985
1990
  }
1986
1991
 
1987
- export declare function useCurrentEnv(): Environment;
1992
+ export declare function useCurrentEnv(curr?: CreateUrlOptions): Environment;
1988
1993
 
1989
1994
  /**
1990
1995
  *
@@ -2579,6 +2584,10 @@ export declare function usePresets(preset?: string): any;
2579
2584
 
2580
2585
  export declare function usePWA(): BTPWA;
2581
2586
 
2587
+ declare interface UsePWAOptions extends CreatePWAOptions {
2588
+ urls: CreateUrlOptions;
2589
+ }
2590
+
2582
2591
  export declare function useRequirements(options?: UseRulesOptions): {
2583
2592
  rules: ((val: any) => string | boolean)[];
2584
2593
  isValid: (val: any) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.145",
3
+ "version": "2.0.147",
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": {