@wix/web5-core 1.63.48 → 1.63.49

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.
Files changed (55) hide show
  1. package/dist/cjs/index.js +4 -26
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/index.js +0 -3
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/types/index.d.ts +0 -1
  6. package/dist/types/index.d.ts.map +1 -1
  7. package/package.json +2 -2
  8. package/dist/cjs/privacy/consentGate.js +0 -129
  9. package/dist/cjs/privacy/consentGate.js.map +0 -1
  10. package/dist/cjs/privacy/consentOverride.js +0 -94
  11. package/dist/cjs/privacy/consentOverride.js.map +0 -1
  12. package/dist/cjs/privacy/detectProvider.js +0 -71
  13. package/dist/cjs/privacy/detectProvider.js.map +0 -1
  14. package/dist/cjs/privacy/index.js +0 -33
  15. package/dist/cjs/privacy/index.js.map +0 -1
  16. package/dist/cjs/privacy/providers/hostSuppliedProvider.js +0 -93
  17. package/dist/cjs/privacy/providers/hostSuppliedProvider.js.map +0 -1
  18. package/dist/cjs/privacy/providers/oneTrustProvider.js +0 -72
  19. package/dist/cjs/privacy/providers/oneTrustProvider.js.map +0 -1
  20. package/dist/cjs/privacy/providers/shopifyProvider.js +0 -181
  21. package/dist/cjs/privacy/providers/shopifyProvider.js.map +0 -1
  22. package/dist/cjs/privacy/types.js +0 -34
  23. package/dist/cjs/privacy/types.js.map +0 -1
  24. package/dist/esm/privacy/consentGate.js +0 -122
  25. package/dist/esm/privacy/consentGate.js.map +0 -1
  26. package/dist/esm/privacy/consentOverride.js +0 -87
  27. package/dist/esm/privacy/consentOverride.js.map +0 -1
  28. package/dist/esm/privacy/detectProvider.js +0 -65
  29. package/dist/esm/privacy/detectProvider.js.map +0 -1
  30. package/dist/esm/privacy/index.js +0 -8
  31. package/dist/esm/privacy/index.js.map +0 -1
  32. package/dist/esm/privacy/providers/hostSuppliedProvider.js +0 -85
  33. package/dist/esm/privacy/providers/hostSuppliedProvider.js.map +0 -1
  34. package/dist/esm/privacy/providers/oneTrustProvider.js +0 -66
  35. package/dist/esm/privacy/providers/oneTrustProvider.js.map +0 -1
  36. package/dist/esm/privacy/providers/shopifyProvider.js +0 -178
  37. package/dist/esm/privacy/providers/shopifyProvider.js.map +0 -1
  38. package/dist/esm/privacy/types.js +0 -30
  39. package/dist/esm/privacy/types.js.map +0 -1
  40. package/dist/types/privacy/consentGate.d.ts +0 -52
  41. package/dist/types/privacy/consentGate.d.ts.map +0 -1
  42. package/dist/types/privacy/consentOverride.d.ts +0 -33
  43. package/dist/types/privacy/consentOverride.d.ts.map +0 -1
  44. package/dist/types/privacy/detectProvider.d.ts +0 -25
  45. package/dist/types/privacy/detectProvider.d.ts.map +0 -1
  46. package/dist/types/privacy/index.d.ts +0 -8
  47. package/dist/types/privacy/index.d.ts.map +0 -1
  48. package/dist/types/privacy/providers/hostSuppliedProvider.d.ts +0 -29
  49. package/dist/types/privacy/providers/hostSuppliedProvider.d.ts.map +0 -1
  50. package/dist/types/privacy/providers/oneTrustProvider.d.ts +0 -15
  51. package/dist/types/privacy/providers/oneTrustProvider.d.ts.map +0 -1
  52. package/dist/types/privacy/providers/shopifyProvider.d.ts +0 -26
  53. package/dist/types/privacy/providers/shopifyProvider.d.ts.map +0 -1
  54. package/dist/types/privacy/types.d.ts +0 -32
  55. package/dist/types/privacy/types.d.ts.map +0 -1
@@ -1,26 +0,0 @@
1
- /**
2
- * Shopify Customer Privacy API provider — DL #218.
3
- *
4
- * Two things about this API shape the provider:
5
- *
6
- * 1. **It is not on the page by default.** `window.Shopify.customerPrivacy` is
7
- * `undefined` until somebody asks for it with `Shopify.loadFeatures`. The
8
- * theme app extension warms it so it is ready before the bundle mounts;
9
- * this provider still requests it, because the extension may not be
10
- * installed and the request is idempotent.
11
- *
12
- * 2. **`visitorConsentCollected` may have already fired.** The bundle executes
13
- * into an already-rendered storefront page (DL #217), so `read()` answers
14
- * from current state and the event is only ever an update.
15
- *
16
- * The region rule is the one judgement encoded here, and it keys off
17
- * `isRegulationEnforced()` rather than `shouldShowBanner()`. The two are not
18
- * interchangeable: the banner reflects what the *merchant* configured, while
19
- * enforcement reflects what the *visitor's jurisdiction* requires. A store with
20
- * an empty consent configuration reports "no banner needed" everywhere,
21
- * including inside the EU.
22
- */
23
- import { type ConsentProvider } from '../types';
24
- export declare const isShopifyHost: () => boolean;
25
- export declare const createShopifyConsentProvider: () => ConsentProvider;
26
- //# sourceMappingURL=shopifyProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shopifyProvider.d.ts","sourceRoot":"","sources":["../../../../src/privacy/providers/shopifyProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,UAAU,CAAC;AAiDlB,eAAO,MAAM,aAAa,QAAO,OAAgC,CAAC;AAyIlE,eAAO,MAAM,4BAA4B,QAAO,eAwB9C,CAAC"}
@@ -1,32 +0,0 @@
1
- /**
2
- * Consent vocabulary shared by the gate and every provider.
3
- *
4
- * DL #218. Three states, because "we have not been told" is not the same
5
- * answer as "no" and must not be collapsed into one: a visitor who has not
6
- * been asked can still be unlocked by their own action, a visitor who
7
- * refused never can.
8
- */
9
- export type ConsentState = 'granted' | 'denied' | 'unknown';
10
- /**
11
- * `necessary` is never gated — auth tokens and the configuration fetch are
12
- * what make the widget work at all, and a visitor who loaded the page asked
13
- * for that much. Everything else answers to the gate.
14
- */
15
- export type ConsentPurpose = 'necessary' | 'performance' | 'analytics' | 'marketing';
16
- export type GatedPurpose = Exclude<ConsentPurpose, 'necessary'>;
17
- export type ConsentSnapshot = Record<GatedPurpose, ConsentState>;
18
- export declare const UNKNOWN_CONSENT: ConsentSnapshot;
19
- /**
20
- * A consent provider adapts one host's CMP to the gate.
21
- *
22
- * `read()` must answer synchronously with what is known *now*. Providers are
23
- * installed into an already-rendered storefront page (DL #217), so a provider
24
- * that only subscribes is inert — the event it waits for may have fired long
25
- * before the bundle executed. Always read first, then subscribe.
26
- */
27
- export interface ConsentProvider {
28
- readonly name: string;
29
- read(): ConsentSnapshot;
30
- subscribe(onChange: (snapshot: ConsentSnapshot) => void): () => void;
31
- }
32
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/privacy/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACtB,WAAW,GACX,aAAa,GACb,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;AAEjE,eAAO,MAAM,eAAe,EAAE,eAI5B,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,IAAI,IAAI,eAAe,CAAC;IACxB,SAAS,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;CACtE"}