@contentful/optimization-web 0.1.0-alpha → 0.1.0-alpha4
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/README.md +16 -2
- package/dist/AutoEntryViewTracking.d.ts +2 -0
- package/dist/AutoEntryViewTracking.d.ts.map +1 -1
- package/dist/Optimization.d.ts +74 -0
- package/dist/Optimization.d.ts.map +1 -1
- package/dist/analyzer.html +1 -1
- package/dist/contentful-optimization-web.umd.cjs +1 -1
- package/dist/contentful-optimization-web.umd.cjs.map +1 -1
- package/dist/dev.d.ts +2 -0
- package/dist/dev.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1116 -1051
- package/dist/index.js.map +1 -1
- package/dist/storage/LocalStore.d.ts +0 -36
- package/dist/storage/LocalStore.d.ts.map +1 -1
- package/dist/visualizer.html +1 -1
- package/package.json +2 -2
|
@@ -1,41 +1,5 @@
|
|
|
1
1
|
import { ChangeArray, Profile, SelectedPersonalizationArray } from '@contentful/optimization-core';
|
|
2
2
|
import type { z } from 'zod/mini';
|
|
3
|
-
/**
|
|
4
|
-
* LocalStorage key for the anonymous identifier used by the Web SDK.
|
|
5
|
-
*
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export declare const ANONYMOUS_ID = "__ctfl_opt_anonymous_id__";
|
|
9
|
-
/**
|
|
10
|
-
* LocalStorage key for the persisted consent status.
|
|
11
|
-
*
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export declare const CONSENT = "__ctfl_opt_consent__";
|
|
15
|
-
/**
|
|
16
|
-
* LocalStorage key for cached Custom Flags.
|
|
17
|
-
*
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export declare const CHANGES_CACHE = "__ctfl_opt_changes__";
|
|
21
|
-
/**
|
|
22
|
-
* LocalStorage key for the debug flag toggle.
|
|
23
|
-
*
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
export declare const DEBUG_FLAG = "__ctfl_opt_debug__";
|
|
27
|
-
/**
|
|
28
|
-
* LocalStorage key for cached profile data.
|
|
29
|
-
*
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
export declare const PROFILE_CACHE = "__ctfl_opt_profile__";
|
|
33
|
-
/**
|
|
34
|
-
* LocalStorage key for cached selected personalizations.
|
|
35
|
-
*
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
export declare const PERSONALIZATIONS_CACHE = "__ctfl_opt_personalizations__";
|
|
39
3
|
/**
|
|
40
4
|
* Local storage abstraction used by the Web SDK to persist optimization state.
|
|
41
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalStore.d.ts","sourceRoot":"","sources":["../../src/storage/LocalStore.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"LocalStore.d.ts","sourceRoot":"","sources":["../../src/storage/LocalStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EAKX,OAAO,EAEP,4BAA4B,EAC7B,MAAM,+BAA+B,CAAA;AACtC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAEjC;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU;IACd;;;;;;;;;OASG;;;;;IAWH;;OAEG;iBACgB,MAAM,GAAG,SAAS;IAiBrC;;;;;OAKG;aACY,OAAO,GAAG,SAAS;IAwBlC;;;;OAIG;WACU,OAAO,GAAG,SAAS;IAehC;;OAEG;aACY,WAAW,GAAG,SAAS;IAatC;;OAEG;aACY,OAAO,GAAG,SAAS;IAalC;;OAEG;sBACqB,4BAA4B,GAAG,SAAS;IAahE;;;;;;;OAOG;aACM,CAAC,SAAS,CAAC,CAAC,WAAW,OAAO,MAAM,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS;IAUlF;;;;;;OAMG;kBACW,MAAM,QAAQ,OAAO,GAAG,IAAI;CAO3C,CAAA;AAED,eAAe,UAAU,CAAA"}
|