@liquidcommerce/elements-sdk 2.1.1-beta.5 → 2.1.1-beta.7

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.
@@ -2,4 +2,5 @@ import { BaseCommand } from './base-command.service';
2
2
  export declare class CommonCommands extends BaseCommand {
3
3
  static getInstance(): CommonCommands;
4
4
  loadCart(): Promise<void>;
5
+ private persistSessionData;
5
6
  }
@@ -4,11 +4,11 @@ interface FingerprintData {
4
4
  canvas: string;
5
5
  browser: string;
6
6
  timezone: string;
7
+ audio: string;
7
8
  }
8
9
  export declare class FingerPrintService {
9
10
  private readonly keyPrefix;
10
11
  private isLocalStorageAvailable;
11
- private fingerprintCache;
12
12
  static getInstance(): FingerPrintService;
13
13
  getId(partnerCode: string): Promise<string>;
14
14
  getFingerprintData(): Promise<FingerprintData>;
@@ -18,10 +18,13 @@ export declare class FingerPrintService {
18
18
  private _findIdByPrefix;
19
19
  private _generateFingerprint;
20
20
  private _getScreen;
21
+ private _getColorGamut;
21
22
  private _getWebGL;
22
23
  private _getCanvas;
23
24
  private _getBrowser;
25
+ private _getBrowserEngine;
24
26
  private _getTimezone;
27
+ private _getAudioFingerprint;
25
28
  private _hash;
26
29
  private _simpleHash;
27
30
  }
@@ -35,7 +35,10 @@ export declare class StoreService {
35
35
  private immutableSet;
36
36
  private notifyListeners;
37
37
  private debouncedSave;
38
+ forceSave(): void;
38
39
  private saveStore;
39
40
  private loadPersistedState;
41
+ private loadFromDBPersistence;
42
+ private addBeforeUnloadHandler;
40
43
  private getAddressDataFromId;
41
44
  }
@@ -11,5 +11,7 @@ export declare class AddressCommands extends BaseCommand {
11
11
  setSelectedAddress(addressData: IAddressData): Promise<void>;
12
12
  setAddressManually(address: Omit<IAddress, 'id'>, coordinates: ICoords): Promise<void>;
13
13
  clearSelectedAddress(): void;
14
+ private shouldResetCartForAddressChange;
15
+ private persistSessionData;
14
16
  getDetails(): IAddressData | null;
15
17
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "LiquidCommerce Elements SDK",
4
4
  "license": "UNLICENSED",
5
5
  "author": "LiquidCommerce Team",
6
- "version": "2.1.1-beta.5",
6
+ "version": "2.1.1-beta.7",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",