@luwiostack/cookie-consent 0.1.0 → 0.3.0
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 +161 -31
- package/dist/index.cjs +257 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -53
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +10 -53
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +227 -96
- package/dist/index.mjs.map +1 -1
- package/dist/machine-names--nw4DSRE.cjs +138 -0
- package/dist/machine-names--nw4DSRE.cjs.map +1 -0
- package/dist/machine-names-DX8eCM2Q.mjs +103 -0
- package/dist/machine-names-DX8eCM2Q.mjs.map +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.mjs +1 -1
- package/dist/react.mjs.map +1 -1
- package/dist/{types-BrxRJL4I.d.cts → types-WpJKTgRa.d.cts} +92 -16
- package/dist/types-WpJKTgRa.d.cts.map +1 -0
- package/dist/{types-BrxRJL4I.d.mts → types-WpJKTgRa.d.mts} +92 -16
- package/dist/types-WpJKTgRa.d.mts.map +1 -0
- package/dist/vendors.cjs +216 -46
- package/dist/vendors.cjs.map +1 -1
- package/dist/vendors.d.cts +20 -12
- package/dist/vendors.d.cts.map +1 -1
- package/dist/vendors.d.mts +20 -12
- package/dist/vendors.d.mts.map +1 -1
- package/dist/vendors.mjs +204 -34
- package/dist/vendors.mjs.map +1 -1
- package/package.json +3 -4
- package/dist/errors-BqpghFQf.cjs +0 -55
- package/dist/errors-BqpghFQf.cjs.map +0 -1
- package/dist/errors-D2ZIcEYK.mjs +0 -32
- package/dist/errors-D2ZIcEYK.mjs.map +0 -1
- package/dist/types-BrxRJL4I.d.cts.map +0 -1
- package/dist/types-BrxRJL4I.d.mts.map +0 -1
package/dist/vendors.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as ConsentCategoryId, _ as ConsentVendorDeclaration, a as ConsentCookieDeclaration, g as ConsentVendor, i as ConsentCookie, m as ConsentTransferDeclaration, p as ConsentTransfer, t as ConsentCategoriesConfig } from "./types-WpJKTgRa.cjs";
|
|
2
2
|
//#region src/vendors/define-vendor.d.ts
|
|
3
3
|
interface VendorPresetOptions<Name extends string = string> {
|
|
4
4
|
/**
|
|
@@ -7,20 +7,26 @@ interface VendorPresetOptions<Name extends string = string> {
|
|
|
7
7
|
*/
|
|
8
8
|
cookies?: readonly Name[];
|
|
9
9
|
/** Your own cookies on top, for anything this vendor sets in your setup that the preset lacks. */
|
|
10
|
-
extra?: readonly
|
|
10
|
+
extra?: readonly ConsentCookieDeclaration[];
|
|
11
11
|
}
|
|
12
12
|
/** A ready-made vendor: call it (optionally narrowing or extending its cookies) to get a `ConsentVendor`. */
|
|
13
13
|
interface VendorPreset<Name extends string = string> {
|
|
14
14
|
(options?: VendorPresetOptions<Name>): ConsentVendor;
|
|
15
|
-
/** The vendor id
|
|
15
|
+
/** The vendor id. */
|
|
16
16
|
readonly id: string;
|
|
17
|
-
/**
|
|
17
|
+
/** The translation key of its name — its id as a machine name. */
|
|
18
|
+
readonly machine_name: string;
|
|
19
|
+
/** Every cookie the preset declares, each with its translation keys. */
|
|
18
20
|
readonly cookies: readonly ConsentCookie[];
|
|
21
|
+
/** Its countries outside the EEA, with their translation keys. */
|
|
22
|
+
readonly transfers?: readonly ConsentTransfer[];
|
|
19
23
|
}
|
|
20
|
-
interface VendorDefinition<C extends readonly
|
|
21
|
-
/** Stable
|
|
24
|
+
interface VendorDefinition<C extends readonly ConsentCookieDeclaration[]> {
|
|
25
|
+
/** Stable id; its machine name (the translation key of its name, and its cookies' prefix) derives from it. */
|
|
22
26
|
id: string;
|
|
23
27
|
privacy_policy_url?: string;
|
|
28
|
+
/** Its countries outside the EEA; `[]` when the data stays in the EEA. */
|
|
29
|
+
transfers?: readonly ConsentTransferDeclaration[];
|
|
24
30
|
cookies: C;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
@@ -28,10 +34,12 @@ interface VendorDefinition<C extends readonly ConsentCookie[]> {
|
|
|
28
34
|
* the way to package your own (an in-house widget you use across apps). Cookie names are inferred as
|
|
29
35
|
* literals, so the preset's `cookies` option only accepts names it declares.
|
|
30
36
|
*
|
|
31
|
-
* Translation keys follow the package catalogs: `t(vendor.
|
|
32
|
-
* `t(
|
|
37
|
+
* Translation keys follow the package catalogs: `t(vendor.machine_name)` is the vendor's name and
|
|
38
|
+
* `t(cookie.machine_name)` a cookie's purpose (the vendor's machine name plus the cookie name).
|
|
39
|
+
*
|
|
40
|
+
* @throws {ConsentError} when two cookie names come out as the same machine name.
|
|
33
41
|
*/
|
|
34
|
-
declare function defineVendor<const C extends readonly
|
|
42
|
+
declare function defineVendor<const C extends readonly ConsentCookieDeclaration[]>(definition: VendorDefinition<C>): VendorPreset<C[number]['name']>;
|
|
35
43
|
//#endregion
|
|
36
44
|
//#region src/vendors/presets.d.ts
|
|
37
45
|
/**
|
|
@@ -85,12 +93,12 @@ interface ConsentConfigData {
|
|
|
85
93
|
categories: Partial<Record<ConsentCategoryId, readonly ConsentVendorData[]>>;
|
|
86
94
|
}
|
|
87
95
|
/** A vendor in the data: a preset id, a preset reference, or a full declaration of your own. */
|
|
88
|
-
type ConsentVendorData = VendorPresetId | ConsentPresetVendorData |
|
|
96
|
+
type ConsentVendorData = VendorPresetId | ConsentPresetVendorData | ConsentVendorDeclaration;
|
|
89
97
|
/** A shipped preset by id, optionally narrowed (`cookies`) or extended (`extra`). */
|
|
90
98
|
interface ConsentPresetVendorData {
|
|
91
99
|
preset: VendorPresetId;
|
|
92
100
|
cookies?: readonly string[];
|
|
93
|
-
extra?: readonly
|
|
101
|
+
extra?: readonly ConsentCookieDeclaration[];
|
|
94
102
|
}
|
|
95
103
|
/** The part of `createConsent`'s config that data describes. */
|
|
96
104
|
interface ConsentConfigFromData {
|
|
@@ -106,7 +114,7 @@ interface ConsentConfigFromDataOptions {
|
|
|
106
114
|
* them, the data may not list `necessary` itself: strictly necessary cookies are the app's to
|
|
107
115
|
* declare, never the backend's.
|
|
108
116
|
*/
|
|
109
|
-
necessary?: readonly
|
|
117
|
+
necessary?: readonly ConsentVendorDeclaration[];
|
|
110
118
|
}
|
|
111
119
|
/**
|
|
112
120
|
* Turn backend data into `createConsent` options: per category, preset ids and references become
|
package/dist/vendors.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendors.d.cts","names":[],"sources":["../src/vendors/define-vendor.ts","../src/vendors/presets.ts","../src/vendors/from-data.ts","../src/vendors/google-ads.ts","../src/vendors/google-analytics.ts","../src/vendors/google-maps.ts","../src/vendors/google-recaptcha.ts","../src/vendors/hotjar.ts","../src/vendors/linkedin-insight.ts","../src/vendors/meta-pixel.ts","../src/vendors/tiktok-pixel.ts","../src/vendors/vimeo.ts","../src/vendors/youtube.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"vendors.d.cts","names":[],"sources":["../src/vendors/define-vendor.ts","../src/vendors/presets.ts","../src/vendors/from-data.ts","../src/vendors/google-ads.ts","../src/vendors/google-analytics.ts","../src/vendors/google-maps.ts","../src/vendors/google-recaptcha.ts","../src/vendors/hotjar.ts","../src/vendors/linkedin-insight.ts","../src/vendors/meta-pixel.ts","../src/vendors/tiktok-pixel.ts","../src/vendors/vimeo.ts","../src/vendors/youtube.ts"],"mappings":";;UAUiB,oBAAoB;;;;;EAKnC,mBAAmB;;EAEnB,iBAAiB;;;UAIF,aAAa;GAC3B,UAAU,oBAAoB,QAAQ;;WAE9B;;WAEA;;WAEA,kBAAkB;;WAElB,qBAAqB;;UAGf,iBAAiB,mBAAmB;;EAEnD;EACA;;EAEA,qBAAqB;EACrB,SAAS;;;;;;;;;;;;iBAaK,mBAAmB,mBAAmB,4BACpD,YAAY,iBAAiB,KAC5B,aAAa;;;;;;;;cCtCH;6BAAA;;;;;;;;;;;;KAcD,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;UCAzB;;EAEf;;EAEA;;EAEA,YAAY,QAAQ,OAAO,4BAA4B;;;KAI7C,oBAAoB,iBAAiB,0BAA0B;;UAG1D;EACf,QAAQ;EACR;EACA,iBAAiB;;;UAIF;EACf,YAAY;EACZ;EACA;;;UAIe;;;;;;;EAOf,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAoDP,sBACd,MAAM,mBACN,UAAS,+BACR;;;cC5GU,WAAA;;;cCDA,iBAAA;;;cCEA,YAAA;;;cCFA,iBAAA;;;cCCA,QAAA;;;cCDA,iBAAA;;;cCKA,WAAA;;;cCJA,aAAA;;;cCCA,OAAA;;;cCEA,SAAA"}
|
package/dist/vendors.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as ConsentCategoryId, _ as ConsentVendorDeclaration, a as ConsentCookieDeclaration, g as ConsentVendor, i as ConsentCookie, m as ConsentTransferDeclaration, p as ConsentTransfer, t as ConsentCategoriesConfig } from "./types-WpJKTgRa.mjs";
|
|
2
2
|
//#region src/vendors/define-vendor.d.ts
|
|
3
3
|
interface VendorPresetOptions<Name extends string = string> {
|
|
4
4
|
/**
|
|
@@ -7,20 +7,26 @@ interface VendorPresetOptions<Name extends string = string> {
|
|
|
7
7
|
*/
|
|
8
8
|
cookies?: readonly Name[];
|
|
9
9
|
/** Your own cookies on top, for anything this vendor sets in your setup that the preset lacks. */
|
|
10
|
-
extra?: readonly
|
|
10
|
+
extra?: readonly ConsentCookieDeclaration[];
|
|
11
11
|
}
|
|
12
12
|
/** A ready-made vendor: call it (optionally narrowing or extending its cookies) to get a `ConsentVendor`. */
|
|
13
13
|
interface VendorPreset<Name extends string = string> {
|
|
14
14
|
(options?: VendorPresetOptions<Name>): ConsentVendor;
|
|
15
|
-
/** The vendor id
|
|
15
|
+
/** The vendor id. */
|
|
16
16
|
readonly id: string;
|
|
17
|
-
/**
|
|
17
|
+
/** The translation key of its name — its id as a machine name. */
|
|
18
|
+
readonly machine_name: string;
|
|
19
|
+
/** Every cookie the preset declares, each with its translation keys. */
|
|
18
20
|
readonly cookies: readonly ConsentCookie[];
|
|
21
|
+
/** Its countries outside the EEA, with their translation keys. */
|
|
22
|
+
readonly transfers?: readonly ConsentTransfer[];
|
|
19
23
|
}
|
|
20
|
-
interface VendorDefinition<C extends readonly
|
|
21
|
-
/** Stable
|
|
24
|
+
interface VendorDefinition<C extends readonly ConsentCookieDeclaration[]> {
|
|
25
|
+
/** Stable id; its machine name (the translation key of its name, and its cookies' prefix) derives from it. */
|
|
22
26
|
id: string;
|
|
23
27
|
privacy_policy_url?: string;
|
|
28
|
+
/** Its countries outside the EEA; `[]` when the data stays in the EEA. */
|
|
29
|
+
transfers?: readonly ConsentTransferDeclaration[];
|
|
24
30
|
cookies: C;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
@@ -28,10 +34,12 @@ interface VendorDefinition<C extends readonly ConsentCookie[]> {
|
|
|
28
34
|
* the way to package your own (an in-house widget you use across apps). Cookie names are inferred as
|
|
29
35
|
* literals, so the preset's `cookies` option only accepts names it declares.
|
|
30
36
|
*
|
|
31
|
-
* Translation keys follow the package catalogs: `t(vendor.
|
|
32
|
-
* `t(
|
|
37
|
+
* Translation keys follow the package catalogs: `t(vendor.machine_name)` is the vendor's name and
|
|
38
|
+
* `t(cookie.machine_name)` a cookie's purpose (the vendor's machine name plus the cookie name).
|
|
39
|
+
*
|
|
40
|
+
* @throws {ConsentError} when two cookie names come out as the same machine name.
|
|
33
41
|
*/
|
|
34
|
-
declare function defineVendor<const C extends readonly
|
|
42
|
+
declare function defineVendor<const C extends readonly ConsentCookieDeclaration[]>(definition: VendorDefinition<C>): VendorPreset<C[number]['name']>;
|
|
35
43
|
//#endregion
|
|
36
44
|
//#region src/vendors/presets.d.ts
|
|
37
45
|
/**
|
|
@@ -85,12 +93,12 @@ interface ConsentConfigData {
|
|
|
85
93
|
categories: Partial<Record<ConsentCategoryId, readonly ConsentVendorData[]>>;
|
|
86
94
|
}
|
|
87
95
|
/** A vendor in the data: a preset id, a preset reference, or a full declaration of your own. */
|
|
88
|
-
type ConsentVendorData = VendorPresetId | ConsentPresetVendorData |
|
|
96
|
+
type ConsentVendorData = VendorPresetId | ConsentPresetVendorData | ConsentVendorDeclaration;
|
|
89
97
|
/** A shipped preset by id, optionally narrowed (`cookies`) or extended (`extra`). */
|
|
90
98
|
interface ConsentPresetVendorData {
|
|
91
99
|
preset: VendorPresetId;
|
|
92
100
|
cookies?: readonly string[];
|
|
93
|
-
extra?: readonly
|
|
101
|
+
extra?: readonly ConsentCookieDeclaration[];
|
|
94
102
|
}
|
|
95
103
|
/** The part of `createConsent`'s config that data describes. */
|
|
96
104
|
interface ConsentConfigFromData {
|
|
@@ -106,7 +114,7 @@ interface ConsentConfigFromDataOptions {
|
|
|
106
114
|
* them, the data may not list `necessary` itself: strictly necessary cookies are the app's to
|
|
107
115
|
* declare, never the backend's.
|
|
108
116
|
*/
|
|
109
|
-
necessary?: readonly
|
|
117
|
+
necessary?: readonly ConsentVendorDeclaration[];
|
|
110
118
|
}
|
|
111
119
|
/**
|
|
112
120
|
* Turn backend data into `createConsent` options: per category, preset ids and references become
|
package/dist/vendors.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendors.d.mts","names":[],"sources":["../src/vendors/define-vendor.ts","../src/vendors/presets.ts","../src/vendors/from-data.ts","../src/vendors/google-ads.ts","../src/vendors/google-analytics.ts","../src/vendors/google-maps.ts","../src/vendors/google-recaptcha.ts","../src/vendors/hotjar.ts","../src/vendors/linkedin-insight.ts","../src/vendors/meta-pixel.ts","../src/vendors/tiktok-pixel.ts","../src/vendors/vimeo.ts","../src/vendors/youtube.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"vendors.d.mts","names":[],"sources":["../src/vendors/define-vendor.ts","../src/vendors/presets.ts","../src/vendors/from-data.ts","../src/vendors/google-ads.ts","../src/vendors/google-analytics.ts","../src/vendors/google-maps.ts","../src/vendors/google-recaptcha.ts","../src/vendors/hotjar.ts","../src/vendors/linkedin-insight.ts","../src/vendors/meta-pixel.ts","../src/vendors/tiktok-pixel.ts","../src/vendors/vimeo.ts","../src/vendors/youtube.ts"],"mappings":";;UAUiB,oBAAoB;;;;;EAKnC,mBAAmB;;EAEnB,iBAAiB;;;UAIF,aAAa;GAC3B,UAAU,oBAAoB,QAAQ;;WAE9B;;WAEA;;WAEA,kBAAkB;;WAElB,qBAAqB;;UAGf,iBAAiB,mBAAmB;;EAEnD;EACA;;EAEA,qBAAqB;EACrB,SAAS;;;;;;;;;;;;iBAaK,mBAAmB,mBAAmB,4BACpD,YAAY,iBAAiB,KAC5B,aAAa;;;;;;;;cCtCH;6BAAA;;;;;;;;;;;;KAcD,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;UCAzB;;EAEf;;EAEA;;EAEA,YAAY,QAAQ,OAAO,4BAA4B;;;KAI7C,oBAAoB,iBAAiB,0BAA0B;;UAG1D;EACf,QAAQ;EACR;EACA,iBAAiB;;;UAIF;EACf,YAAY;EACZ;EACA;;;UAIe;;;;;;;EAOf,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAoDP,sBACd,MAAM,mBACN,UAAS,+BACR;;;cC5GU,WAAA;;;cCDA,iBAAA;;;cCEA,YAAA;;;cCFA,iBAAA;;;cCCA,QAAA;;;cCDA,iBAAA;;;cCKA,WAAA;;;cCJA,aAAA;;;cCCA,OAAA;;;cCEA,SAAA"}
|
package/dist/vendors.mjs
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as REQUIRED_CATEGORY, n as toConsentVendor, o as isConsentCategoryId, r as ConsentError } from "./machine-names-DX8eCM2Q.mjs";
|
|
2
2
|
//#region src/vendors/define-vendor.ts
|
|
3
3
|
/**
|
|
4
4
|
* Define a reusable vendor preset — how every preset in `@luwiostack/cookie-consent/vendors` is built, and
|
|
5
5
|
* the way to package your own (an in-house widget you use across apps). Cookie names are inferred as
|
|
6
6
|
* literals, so the preset's `cookies` option only accepts names it declares.
|
|
7
7
|
*
|
|
8
|
-
* Translation keys follow the package catalogs: `t(vendor.
|
|
9
|
-
* `t(
|
|
8
|
+
* Translation keys follow the package catalogs: `t(vendor.machine_name)` is the vendor's name and
|
|
9
|
+
* `t(cookie.machine_name)` a cookie's purpose (the vendor's machine name plus the cookie name).
|
|
10
|
+
*
|
|
11
|
+
* @throws {ConsentError} when two cookie names come out as the same machine name.
|
|
10
12
|
*/
|
|
11
13
|
function defineVendor(definition) {
|
|
12
|
-
const { id, privacy_policy_url,
|
|
14
|
+
const { id, privacy_policy_url, transfers } = definition;
|
|
15
|
+
const { machine_name, cookies, transfers: presented } = toConsentVendor(definition);
|
|
13
16
|
const preset = (options = {}) => {
|
|
14
17
|
let picked = cookies;
|
|
15
18
|
if (options.cookies) {
|
|
@@ -18,18 +21,61 @@ function defineVendor(definition) {
|
|
|
18
21
|
const wanted = new Set(options.cookies);
|
|
19
22
|
picked = cookies.filter((c) => wanted.has(c.name));
|
|
20
23
|
}
|
|
21
|
-
|
|
24
|
+
for (const cookie of options.extra ?? []) {
|
|
25
|
+
const name = cookie?.name;
|
|
26
|
+
if (typeof cookie !== "object" || cookie === null || typeof name !== "string" || name === "") throw new ConsentError(`Vendor "${id}": every extra cookie needs a non-empty name.`);
|
|
27
|
+
}
|
|
28
|
+
return toConsentVendor({
|
|
22
29
|
id,
|
|
23
30
|
...privacy_policy_url ? { privacy_policy_url } : {},
|
|
31
|
+
...transfers !== void 0 ? { transfers } : {},
|
|
24
32
|
cookies: [...picked, ...options.extra ?? []]
|
|
25
|
-
};
|
|
33
|
+
});
|
|
26
34
|
};
|
|
27
35
|
return Object.assign(preset, {
|
|
28
36
|
id,
|
|
29
|
-
|
|
37
|
+
machine_name,
|
|
38
|
+
cookies,
|
|
39
|
+
...presented !== void 0 ? { transfers: presented } : {}
|
|
30
40
|
});
|
|
31
41
|
}
|
|
32
42
|
//#endregion
|
|
43
|
+
//#region src/vendors/google-transfers.ts
|
|
44
|
+
const GOOGLE_TRANSFERS = [
|
|
45
|
+
{
|
|
46
|
+
country: "CL",
|
|
47
|
+
safeguards: ["scc"]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
country: "GB",
|
|
51
|
+
safeguards: ["adequacy"]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
country: "JP",
|
|
55
|
+
safeguards: ["adequacy"]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
country: "MY",
|
|
59
|
+
safeguards: ["scc"]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
country: "SG",
|
|
63
|
+
safeguards: ["scc"]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
country: "TW",
|
|
67
|
+
safeguards: ["scc"]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
country: "US",
|
|
71
|
+
safeguards: ["dpf", "scc"]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
country: "UY",
|
|
75
|
+
safeguards: ["adequacy"]
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
//#endregion
|
|
33
79
|
//#region src/vendors/time.ts
|
|
34
80
|
const MINUTE = 6e4;
|
|
35
81
|
const DAY = 24 * (60 * MINUTE);
|
|
@@ -38,6 +84,7 @@ const DAY = 24 * (60 * MINUTE);
|
|
|
38
84
|
const googleAds = /* @__PURE__ */ defineVendor({
|
|
39
85
|
id: "google_ads",
|
|
40
86
|
privacy_policy_url: "https://policies.google.com/privacy",
|
|
87
|
+
transfers: GOOGLE_TRANSFERS,
|
|
41
88
|
cookies: [
|
|
42
89
|
{
|
|
43
90
|
name: "_gcl_au",
|
|
@@ -62,17 +109,20 @@ const googleAds = /* @__PURE__ */ defineVendor({
|
|
|
62
109
|
{
|
|
63
110
|
name: "IDE",
|
|
64
111
|
category: "marketing",
|
|
65
|
-
max_age: 390 * DAY
|
|
112
|
+
max_age: 390 * DAY,
|
|
113
|
+
domain: ".doubleclick.net"
|
|
66
114
|
},
|
|
67
115
|
{
|
|
68
116
|
name: "test_cookie",
|
|
69
117
|
category: "marketing",
|
|
70
|
-
max_age: 15 * MINUTE
|
|
118
|
+
max_age: 15 * MINUTE,
|
|
119
|
+
domain: ".doubleclick.net"
|
|
71
120
|
},
|
|
72
121
|
{
|
|
73
122
|
name: "ar_debug",
|
|
74
123
|
category: "marketing",
|
|
75
|
-
max_age: 90 * DAY
|
|
124
|
+
max_age: 90 * DAY,
|
|
125
|
+
domain: ".doubleclick.net"
|
|
76
126
|
}
|
|
77
127
|
]
|
|
78
128
|
});
|
|
@@ -81,6 +131,7 @@ const googleAds = /* @__PURE__ */ defineVendor({
|
|
|
81
131
|
const googleAnalytics = /* @__PURE__ */ defineVendor({
|
|
82
132
|
id: "google_analytics",
|
|
83
133
|
privacy_policy_url: "https://policies.google.com/privacy",
|
|
134
|
+
transfers: GOOGLE_TRANSFERS,
|
|
84
135
|
cookies: [{
|
|
85
136
|
name: "_ga",
|
|
86
137
|
category: "statistics",
|
|
@@ -96,21 +147,25 @@ const googleAnalytics = /* @__PURE__ */ defineVendor({
|
|
|
96
147
|
const googleMaps = /* @__PURE__ */ defineVendor({
|
|
97
148
|
id: "google_maps",
|
|
98
149
|
privacy_policy_url: "https://policies.google.com/privacy",
|
|
150
|
+
transfers: GOOGLE_TRANSFERS,
|
|
99
151
|
cookies: [
|
|
100
152
|
{
|
|
101
153
|
name: "NID",
|
|
102
154
|
category: "marketing",
|
|
103
|
-
max_age: 180 * DAY
|
|
155
|
+
max_age: 180 * DAY,
|
|
156
|
+
domain: ".google.com"
|
|
104
157
|
},
|
|
105
158
|
{
|
|
106
159
|
name: "AEC",
|
|
107
160
|
category: "necessary",
|
|
108
|
-
max_age: 180 * DAY
|
|
161
|
+
max_age: 180 * DAY,
|
|
162
|
+
domain: ".google.com"
|
|
109
163
|
},
|
|
110
164
|
{
|
|
111
165
|
name: "SOCS",
|
|
112
166
|
category: "necessary",
|
|
113
|
-
max_age: 390 * DAY
|
|
167
|
+
max_age: 390 * DAY,
|
|
168
|
+
domain: ".google.com"
|
|
114
169
|
}
|
|
115
170
|
]
|
|
116
171
|
});
|
|
@@ -119,10 +174,12 @@ const googleMaps = /* @__PURE__ */ defineVendor({
|
|
|
119
174
|
const googleRecaptcha = /* @__PURE__ */ defineVendor({
|
|
120
175
|
id: "google_recaptcha",
|
|
121
176
|
privacy_policy_url: "https://policies.google.com/privacy",
|
|
177
|
+
transfers: GOOGLE_TRANSFERS,
|
|
122
178
|
cookies: [{
|
|
123
179
|
name: "_GRECAPTCHA",
|
|
124
180
|
category: "necessary",
|
|
125
|
-
max_age: 180 * DAY
|
|
181
|
+
max_age: 180 * DAY,
|
|
182
|
+
domain: "www.google.com"
|
|
126
183
|
}]
|
|
127
184
|
});
|
|
128
185
|
//#endregion
|
|
@@ -130,6 +187,10 @@ const googleRecaptcha = /* @__PURE__ */ defineVendor({
|
|
|
130
187
|
const hotjar = /* @__PURE__ */ defineVendor({
|
|
131
188
|
id: "hotjar",
|
|
132
189
|
privacy_policy_url: "https://www.hotjar.com/legal/policies/privacy/",
|
|
190
|
+
transfers: [{
|
|
191
|
+
country: "GB",
|
|
192
|
+
safeguards: ["scc"]
|
|
193
|
+
}],
|
|
133
194
|
cookies: [
|
|
134
195
|
{
|
|
135
196
|
name: "_hjSessionUser_*",
|
|
@@ -181,6 +242,10 @@ const hotjar = /* @__PURE__ */ defineVendor({
|
|
|
181
242
|
const linkedinInsight = /* @__PURE__ */ defineVendor({
|
|
182
243
|
id: "linkedin_insight",
|
|
183
244
|
privacy_policy_url: "https://www.linkedin.com/legal/privacy-policy",
|
|
245
|
+
transfers: [{
|
|
246
|
+
country: "US",
|
|
247
|
+
safeguards: ["dpf", "scc"]
|
|
248
|
+
}],
|
|
184
249
|
cookies: [
|
|
185
250
|
{
|
|
186
251
|
name: "li_fat_id",
|
|
@@ -195,32 +260,38 @@ const linkedinInsight = /* @__PURE__ */ defineVendor({
|
|
|
195
260
|
{
|
|
196
261
|
name: "bcookie",
|
|
197
262
|
category: "marketing",
|
|
198
|
-
max_age: 365 * DAY
|
|
263
|
+
max_age: 365 * DAY,
|
|
264
|
+
domain: ".linkedin.com"
|
|
199
265
|
},
|
|
200
266
|
{
|
|
201
267
|
name: "lidc",
|
|
202
268
|
category: "marketing",
|
|
203
|
-
max_age: DAY
|
|
269
|
+
max_age: DAY,
|
|
270
|
+
domain: ".linkedin.com"
|
|
204
271
|
},
|
|
205
272
|
{
|
|
206
273
|
name: "li_sugr",
|
|
207
274
|
category: "marketing",
|
|
208
|
-
max_age: 90 * DAY
|
|
275
|
+
max_age: 90 * DAY,
|
|
276
|
+
domain: ".linkedin.com"
|
|
209
277
|
},
|
|
210
278
|
{
|
|
211
279
|
name: "UserMatchHistory",
|
|
212
280
|
category: "marketing",
|
|
213
|
-
max_age: 30 * DAY
|
|
281
|
+
max_age: 30 * DAY,
|
|
282
|
+
domain: ".linkedin.com"
|
|
214
283
|
},
|
|
215
284
|
{
|
|
216
285
|
name: "AnalyticsSyncHistory",
|
|
217
286
|
category: "marketing",
|
|
218
|
-
max_age: 30 * DAY
|
|
287
|
+
max_age: 30 * DAY,
|
|
288
|
+
domain: ".linkedin.com"
|
|
219
289
|
},
|
|
220
290
|
{
|
|
221
291
|
name: "li_gc",
|
|
222
292
|
category: "necessary",
|
|
223
|
-
max_age: 180 * DAY
|
|
293
|
+
max_age: 180 * DAY,
|
|
294
|
+
domain: ".linkedin.com"
|
|
224
295
|
}
|
|
225
296
|
]
|
|
226
297
|
});
|
|
@@ -229,6 +300,36 @@ const linkedinInsight = /* @__PURE__ */ defineVendor({
|
|
|
229
300
|
const metaPixel = /* @__PURE__ */ defineVendor({
|
|
230
301
|
id: "meta_pixel",
|
|
231
302
|
privacy_policy_url: "https://www.facebook.com/privacy/policy/",
|
|
303
|
+
transfers: [
|
|
304
|
+
{
|
|
305
|
+
country: "AR",
|
|
306
|
+
safeguards: ["adequacy"]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
country: "CA",
|
|
310
|
+
safeguards: ["adequacy"]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
country: "CH",
|
|
314
|
+
safeguards: ["adequacy"]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
country: "GB",
|
|
318
|
+
safeguards: ["adequacy"]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
country: "IL",
|
|
322
|
+
safeguards: ["adequacy"]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
country: "NZ",
|
|
326
|
+
safeguards: ["adequacy"]
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
country: "US",
|
|
330
|
+
safeguards: ["dpf"]
|
|
331
|
+
}
|
|
332
|
+
],
|
|
232
333
|
cookies: [
|
|
233
334
|
{
|
|
234
335
|
name: "_fbp",
|
|
@@ -243,7 +344,8 @@ const metaPixel = /* @__PURE__ */ defineVendor({
|
|
|
243
344
|
{
|
|
244
345
|
name: "fr",
|
|
245
346
|
category: "marketing",
|
|
246
|
-
max_age: 90 * DAY
|
|
347
|
+
max_age: 90 * DAY,
|
|
348
|
+
domain: ".facebook.com"
|
|
247
349
|
}
|
|
248
350
|
]
|
|
249
351
|
});
|
|
@@ -252,6 +354,56 @@ const metaPixel = /* @__PURE__ */ defineVendor({
|
|
|
252
354
|
const tiktokPixel = /* @__PURE__ */ defineVendor({
|
|
253
355
|
id: "tiktok_pixel",
|
|
254
356
|
privacy_policy_url: "https://www.tiktok.com/legal/page/eea/privacy-policy/en",
|
|
357
|
+
transfers: [
|
|
358
|
+
{
|
|
359
|
+
country: "AU",
|
|
360
|
+
safeguards: ["scc"]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
country: "BR",
|
|
364
|
+
safeguards: ["scc"]
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
country: "CA",
|
|
368
|
+
safeguards: ["adequacy"]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
country: "CN",
|
|
372
|
+
safeguards: ["scc"]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
country: "GB",
|
|
376
|
+
safeguards: ["adequacy"]
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
country: "IL",
|
|
380
|
+
safeguards: ["adequacy"]
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
country: "JP",
|
|
384
|
+
safeguards: ["adequacy"]
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
country: "KR",
|
|
388
|
+
safeguards: ["adequacy"]
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
country: "MY",
|
|
392
|
+
safeguards: ["scc"]
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
country: "PH",
|
|
396
|
+
safeguards: ["scc"]
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
country: "SG",
|
|
400
|
+
safeguards: ["scc"]
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
country: "US",
|
|
404
|
+
safeguards: ["scc"]
|
|
405
|
+
}
|
|
406
|
+
],
|
|
255
407
|
cookies: [
|
|
256
408
|
{
|
|
257
409
|
name: "_ttp",
|
|
@@ -271,7 +423,8 @@ const tiktokPixel = /* @__PURE__ */ defineVendor({
|
|
|
271
423
|
{
|
|
272
424
|
name: "_pangle",
|
|
273
425
|
category: "marketing",
|
|
274
|
-
max_age: 390 * DAY
|
|
426
|
+
max_age: 390 * DAY,
|
|
427
|
+
domain: "analytics.pangle-ads.com"
|
|
275
428
|
}
|
|
276
429
|
]
|
|
277
430
|
});
|
|
@@ -280,36 +433,46 @@ const tiktokPixel = /* @__PURE__ */ defineVendor({
|
|
|
280
433
|
const vimeo = /* @__PURE__ */ defineVendor({
|
|
281
434
|
id: "vimeo",
|
|
282
435
|
privacy_policy_url: "https://vimeo.com/privacy",
|
|
436
|
+
transfers: [{
|
|
437
|
+
country: "US",
|
|
438
|
+
safeguards: ["dpf", "scc"]
|
|
439
|
+
}],
|
|
283
440
|
cookies: [
|
|
284
441
|
{
|
|
285
442
|
name: "vuid",
|
|
286
443
|
category: "statistics",
|
|
287
|
-
max_age: 730 * DAY
|
|
444
|
+
max_age: 730 * DAY,
|
|
445
|
+
domain: ".vimeo.com"
|
|
288
446
|
},
|
|
289
447
|
{
|
|
290
448
|
name: "player",
|
|
291
449
|
category: "preferences",
|
|
292
|
-
max_age: 365 * DAY
|
|
450
|
+
max_age: 365 * DAY,
|
|
451
|
+
domain: ".vimeo.com"
|
|
293
452
|
},
|
|
294
453
|
{
|
|
295
454
|
name: "player_clearance",
|
|
296
455
|
category: "necessary",
|
|
297
|
-
max_age: 7 * DAY
|
|
456
|
+
max_age: 7 * DAY,
|
|
457
|
+
domain: ".vimeo.com"
|
|
298
458
|
},
|
|
299
459
|
{
|
|
300
460
|
name: "__cf_bm",
|
|
301
461
|
category: "necessary",
|
|
302
|
-
max_age: 30 * MINUTE
|
|
462
|
+
max_age: 30 * MINUTE,
|
|
463
|
+
domain: ".vimeo.com"
|
|
303
464
|
},
|
|
304
465
|
{
|
|
305
466
|
name: "_cfuvid",
|
|
306
467
|
category: "necessary",
|
|
307
|
-
max_age: "session"
|
|
468
|
+
max_age: "session",
|
|
469
|
+
domain: ".vimeo.com"
|
|
308
470
|
},
|
|
309
471
|
{
|
|
310
472
|
name: "cf_clearance",
|
|
311
473
|
category: "necessary",
|
|
312
|
-
max_age: 365 * DAY
|
|
474
|
+
max_age: 365 * DAY,
|
|
475
|
+
domain: ".vimeo.com"
|
|
313
476
|
}
|
|
314
477
|
]
|
|
315
478
|
});
|
|
@@ -318,36 +481,43 @@ const vimeo = /* @__PURE__ */ defineVendor({
|
|
|
318
481
|
const youtube = /* @__PURE__ */ defineVendor({
|
|
319
482
|
id: "youtube",
|
|
320
483
|
privacy_policy_url: "https://policies.google.com/privacy",
|
|
484
|
+
transfers: GOOGLE_TRANSFERS,
|
|
321
485
|
cookies: [
|
|
322
486
|
{
|
|
323
487
|
name: "YSC",
|
|
324
488
|
category: "marketing",
|
|
325
|
-
max_age: "session"
|
|
489
|
+
max_age: "session",
|
|
490
|
+
domain: ".youtube.com"
|
|
326
491
|
},
|
|
327
492
|
{
|
|
328
493
|
name: "__Secure-YNID",
|
|
329
494
|
category: "marketing",
|
|
330
|
-
max_age: 180 * DAY
|
|
495
|
+
max_age: 180 * DAY,
|
|
496
|
+
domain: ".youtube.com"
|
|
331
497
|
},
|
|
332
498
|
{
|
|
333
499
|
name: "VISITOR_INFO1_LIVE",
|
|
334
500
|
category: "marketing",
|
|
335
|
-
max_age: 180 * DAY
|
|
501
|
+
max_age: 180 * DAY,
|
|
502
|
+
domain: ".youtube.com"
|
|
336
503
|
},
|
|
337
504
|
{
|
|
338
505
|
name: "__Secure-YENID",
|
|
339
506
|
category: "marketing",
|
|
340
|
-
max_age: 390 * DAY
|
|
507
|
+
max_age: 390 * DAY,
|
|
508
|
+
domain: ".youtube.com"
|
|
341
509
|
},
|
|
342
510
|
{
|
|
343
511
|
name: "__Secure-ROLLOUT_TOKEN",
|
|
344
512
|
category: "marketing",
|
|
345
|
-
max_age: 180 * DAY
|
|
513
|
+
max_age: 180 * DAY,
|
|
514
|
+
domain: ".youtube.com"
|
|
346
515
|
},
|
|
347
516
|
{
|
|
348
517
|
name: "PREF",
|
|
349
518
|
category: "preferences",
|
|
350
|
-
max_age: 240 * DAY
|
|
519
|
+
max_age: 240 * DAY,
|
|
520
|
+
domain: ".youtube.com"
|
|
351
521
|
}
|
|
352
522
|
]
|
|
353
523
|
});
|