@codefast/tracking 0.7.1 → 0.7.2
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/CHANGELOG.md +13 -0
- package/README.md +235 -105
- package/dist/adapters/tanstack-start.d.ts +1 -2
- package/dist/adapters/tanstack-start.js +1 -2
- package/dist/client/ad-framework-consent.d.ts +1 -2
- package/dist/client/ad-framework-consent.js +1 -2
- package/dist/client/browser-cookie.d.ts +1 -2
- package/dist/client/browser-cookie.js +1 -2
- package/dist/client/consent-runtime.d.ts +1 -2
- package/dist/client/consent-runtime.js +1 -2
- package/dist/client/consent-storage.d.ts +1 -2
- package/dist/client/consent-storage.js +1 -2
- package/dist/client/consent-withdrawal.d.ts +1 -2
- package/dist/client/consent-withdrawal.js +1 -2
- package/dist/client/cookie-anonymous-id.d.ts +1 -2
- package/dist/client/cookie-anonymous-id.js +1 -2
- package/dist/client/create-client-tracker.d.ts +1 -2
- package/dist/client/create-client-tracker.js +1 -2
- package/dist/client/gpc.d.ts +1 -2
- package/dist/client/gpc.js +1 -2
- package/dist/client/initial-consent-store.d.ts +1 -2
- package/dist/client/initial-consent-store.js +1 -2
- package/dist/client/is-analytics-allowed.d.ts +1 -2
- package/dist/client/is-analytics-allowed.js +1 -2
- package/dist/client/server-persisted-anonymous-id.d.ts +1 -2
- package/dist/client/server-persisted-anonymous-id.js +1 -2
- package/dist/core/consent-config.d.ts +1 -2
- package/dist/core/consent-config.js +1 -2
- package/dist/core/consent-receipt.d.ts +1 -2
- package/dist/core/consent-receipt.js +1 -2
- package/dist/core/consent.d.ts +1 -2
- package/dist/core/consent.js +1 -2
- package/dist/core/cookie.d.ts +1 -2
- package/dist/core/cookie.js +1 -2
- package/dist/core/destination.d.ts +1 -2
- package/dist/core/destination.js +1 -2
- package/dist/core/event-catalog.d.ts +1 -2
- package/dist/core/event-catalog.js +1 -2
- package/dist/core/event-id.d.ts +1 -2
- package/dist/core/event-id.js +1 -2
- package/dist/core/tracked-event.d.ts +1 -2
- package/dist/core/tracked-event.js +1 -2
- package/dist/destinations/ad-consent.d.ts +1 -2
- package/dist/destinations/ad-consent.js +1 -2
- package/dist/destinations/google-analytics.d.ts +1 -2
- package/dist/destinations/google-analytics.js +1 -2
- package/dist/destinations/google-consent.d.ts +1 -2
- package/dist/destinations/google-consent.js +1 -2
- package/dist/destinations/meta.d.ts +1 -2
- package/dist/destinations/meta.js +1 -2
- package/dist/destinations/microsoft-uet.d.ts +1 -2
- package/dist/destinations/microsoft-uet.js +1 -2
- package/dist/destinations/shared.d.ts +1 -2
- package/dist/destinations/shared.js +1 -2
- package/dist/destinations/tiktok.d.ts +1 -2
- package/dist/destinations/tiktok.js +1 -2
- package/dist/destinations/vercel-analytics.d.ts +1 -2
- package/dist/destinations/vercel-analytics.js +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/react/consent-banner.d.ts +1 -2
- package/dist/react/consent-banner.js +1 -2
- package/dist/react/gtag-consent-bootstrap.d.ts +1 -2
- package/dist/react/gtag-consent-bootstrap.js +1 -2
- package/dist/react/use-consent.d.ts +1 -2
- package/dist/react/use-consent.js +1 -2
- package/dist/react/use-google-consent-sync.d.ts +1 -2
- package/dist/react/use-google-consent-sync.js +1 -2
- package/dist/react/use-initial-consent.d.ts +1 -2
- package/dist/react/use-initial-consent.js +1 -2
- package/dist/server/anonymous-id-cookie.d.ts +1 -2
- package/dist/server/anonymous-id-cookie.js +1 -2
- package/dist/server/consent-receipt-store.d.ts +1 -2
- package/dist/server/consent-receipt-store.js +1 -2
- package/dist/server/consent-receipt.d.ts +1 -2
- package/dist/server/consent-receipt.js +1 -2
- package/dist/server/initial-consent.d.ts +1 -2
- package/dist/server/initial-consent.js +1 -2
- package/dist/server/measurement-protocol.d.ts +1 -2
- package/dist/server/measurement-protocol.js +1 -2
- package/dist/server/region.d.ts +1 -2
- package/dist/server/region.js +1 -2
- package/dist/server/user-deletion.d.ts +1 -2
- package/dist/server/user-deletion.js +1 -2
- package/dist/tooling/import-protection.d.ts +1 -2
- package/dist/tooling/import-protection.js +1 -2
- package/package.json +10 -61
- package/dist/adapters/tanstack-start.d.ts.map +0 -1
- package/dist/adapters/tanstack-start.js.map +0 -1
- package/dist/client/ad-framework-consent.d.ts.map +0 -1
- package/dist/client/ad-framework-consent.js.map +0 -1
- package/dist/client/browser-cookie.d.ts.map +0 -1
- package/dist/client/browser-cookie.js.map +0 -1
- package/dist/client/consent-runtime.d.ts.map +0 -1
- package/dist/client/consent-runtime.js.map +0 -1
- package/dist/client/consent-storage.d.ts.map +0 -1
- package/dist/client/consent-storage.js.map +0 -1
- package/dist/client/consent-withdrawal.d.ts.map +0 -1
- package/dist/client/consent-withdrawal.js.map +0 -1
- package/dist/client/cookie-anonymous-id.d.ts.map +0 -1
- package/dist/client/cookie-anonymous-id.js.map +0 -1
- package/dist/client/create-client-tracker.d.ts.map +0 -1
- package/dist/client/create-client-tracker.js.map +0 -1
- package/dist/client/gpc.d.ts.map +0 -1
- package/dist/client/gpc.js.map +0 -1
- package/dist/client/initial-consent-store.d.ts.map +0 -1
- package/dist/client/initial-consent-store.js.map +0 -1
- package/dist/client/is-analytics-allowed.d.ts.map +0 -1
- package/dist/client/is-analytics-allowed.js.map +0 -1
- package/dist/client/server-persisted-anonymous-id.d.ts.map +0 -1
- package/dist/client/server-persisted-anonymous-id.js.map +0 -1
- package/dist/core/consent-config.d.ts.map +0 -1
- package/dist/core/consent-config.js.map +0 -1
- package/dist/core/consent-receipt.d.ts.map +0 -1
- package/dist/core/consent-receipt.js.map +0 -1
- package/dist/core/consent.d.ts.map +0 -1
- package/dist/core/consent.js.map +0 -1
- package/dist/core/cookie.d.ts.map +0 -1
- package/dist/core/cookie.js.map +0 -1
- package/dist/core/destination.d.ts.map +0 -1
- package/dist/core/destination.js.map +0 -1
- package/dist/core/event-catalog.d.ts.map +0 -1
- package/dist/core/event-catalog.js.map +0 -1
- package/dist/core/event-id.d.ts.map +0 -1
- package/dist/core/event-id.js.map +0 -1
- package/dist/core/tracked-event.d.ts.map +0 -1
- package/dist/core/tracked-event.js.map +0 -1
- package/dist/destinations/ad-consent.d.ts.map +0 -1
- package/dist/destinations/ad-consent.js.map +0 -1
- package/dist/destinations/google-analytics.d.ts.map +0 -1
- package/dist/destinations/google-analytics.js.map +0 -1
- package/dist/destinations/google-consent.d.ts.map +0 -1
- package/dist/destinations/google-consent.js.map +0 -1
- package/dist/destinations/meta.d.ts.map +0 -1
- package/dist/destinations/meta.js.map +0 -1
- package/dist/destinations/microsoft-uet.d.ts.map +0 -1
- package/dist/destinations/microsoft-uet.js.map +0 -1
- package/dist/destinations/shared.d.ts.map +0 -1
- package/dist/destinations/shared.js.map +0 -1
- package/dist/destinations/tiktok.d.ts.map +0 -1
- package/dist/destinations/tiktok.js.map +0 -1
- package/dist/destinations/vercel-analytics.d.ts.map +0 -1
- package/dist/destinations/vercel-analytics.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/react/consent-banner.d.ts.map +0 -1
- package/dist/react/consent-banner.js.map +0 -1
- package/dist/react/gtag-consent-bootstrap.d.ts.map +0 -1
- package/dist/react/gtag-consent-bootstrap.js.map +0 -1
- package/dist/react/use-consent.d.ts.map +0 -1
- package/dist/react/use-consent.js.map +0 -1
- package/dist/react/use-google-consent-sync.d.ts.map +0 -1
- package/dist/react/use-google-consent-sync.js.map +0 -1
- package/dist/react/use-initial-consent.d.ts.map +0 -1
- package/dist/react/use-initial-consent.js.map +0 -1
- package/dist/server/anonymous-id-cookie.d.ts.map +0 -1
- package/dist/server/anonymous-id-cookie.js.map +0 -1
- package/dist/server/consent-receipt-store.d.ts.map +0 -1
- package/dist/server/consent-receipt-store.js.map +0 -1
- package/dist/server/consent-receipt.d.ts.map +0 -1
- package/dist/server/consent-receipt.js.map +0 -1
- package/dist/server/initial-consent.d.ts.map +0 -1
- package/dist/server/initial-consent.js.map +0 -1
- package/dist/server/measurement-protocol.d.ts.map +0 -1
- package/dist/server/measurement-protocol.js.map +0 -1
- package/dist/server/region.d.ts.map +0 -1
- package/dist/server/region.js.map +0 -1
- package/dist/server/user-deletion.d.ts.map +0 -1
- package/dist/server/user-deletion.js.map +0 -1
- package/dist/tooling/import-protection.d.ts.map +0 -1
- package/dist/tooling/import-protection.js.map +0 -1
- package/src/adapters/tanstack-start.ts +0 -139
- package/src/client/ad-framework-consent.ts +0 -88
- package/src/client/browser-cookie.ts +0 -16
- package/src/client/consent-runtime.ts +0 -82
- package/src/client/consent-storage.ts +0 -125
- package/src/client/consent-withdrawal.ts +0 -34
- package/src/client/cookie-anonymous-id.ts +0 -116
- package/src/client/create-client-tracker.ts +0 -174
- package/src/client/gpc.ts +0 -15
- package/src/client/initial-consent-store.ts +0 -220
- package/src/client/is-analytics-allowed.ts +0 -45
- package/src/client/server-persisted-anonymous-id.ts +0 -104
- package/src/core/consent-config.ts +0 -27
- package/src/core/consent-receipt.ts +0 -115
- package/src/core/consent.ts +0 -298
- package/src/core/cookie.ts +0 -29
- package/src/core/destination.ts +0 -29
- package/src/core/event-catalog.ts +0 -54
- package/src/core/event-id.ts +0 -8
- package/src/core/tracked-event.ts +0 -14
- package/src/css/consent.css +0 -119
- package/src/destinations/ad-consent.ts +0 -29
- package/src/destinations/google-analytics.ts +0 -304
- package/src/destinations/google-consent.ts +0 -166
- package/src/destinations/meta.ts +0 -98
- package/src/destinations/microsoft-uet.ts +0 -88
- package/src/destinations/shared.ts +0 -51
- package/src/destinations/tiktok.ts +0 -87
- package/src/destinations/vercel-analytics.ts +0 -41
- package/src/index.ts +0 -171
- package/src/react/consent-banner.tsx +0 -386
- package/src/react/gtag-consent-bootstrap.tsx +0 -50
- package/src/react/use-consent.ts +0 -123
- package/src/react/use-google-consent-sync.ts +0 -40
- package/src/react/use-initial-consent.ts +0 -22
- package/src/server/anonymous-id-cookie.ts +0 -105
- package/src/server/consent-receipt-store.ts +0 -79
- package/src/server/consent-receipt.ts +0 -89
- package/src/server/initial-consent.ts +0 -48
- package/src/server/measurement-protocol.ts +0 -116
- package/src/server/region.ts +0 -77
- package/src/server/user-deletion.ts +0 -97
- package/src/tooling/import-protection.ts +0 -22
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A primitive value every destination accepts as an event parameter.
|
|
3
|
-
*
|
|
4
|
-
* @since 0.5.0-canary.6
|
|
5
|
-
*/
|
|
6
|
-
export type FlatPropertyValue = boolean | number | string;
|
|
7
|
-
|
|
8
|
-
interface FlattenEventPropsOptions {
|
|
9
|
-
/** Vercel Analytics accepts `null` directly; GA4 (gtag.js/Measurement Protocol) does not. */
|
|
10
|
-
allowNull?: boolean | undefined;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Event params must be flat string/number/boolean (optionally `null`) — stringify
|
|
15
|
-
* anything else instead of letting the destination silently drop it.
|
|
16
|
-
*
|
|
17
|
-
* @since 0.5.0-canary.6
|
|
18
|
-
*/
|
|
19
|
-
export function flattenEventProps(properties: Record<string, unknown>): Record<string, FlatPropertyValue>;
|
|
20
|
-
/**
|
|
21
|
-
* Flattens event properties while also passing `null` through for destinations that accept it.
|
|
22
|
-
*
|
|
23
|
-
* @since 0.5.0-canary.6
|
|
24
|
-
*/
|
|
25
|
-
export function flattenEventProps(
|
|
26
|
-
properties: Record<string, unknown>,
|
|
27
|
-
options: { allowNull: true },
|
|
28
|
-
): Record<string, FlatPropertyValue | null>;
|
|
29
|
-
/**
|
|
30
|
-
* Shared implementation backing both overloads.
|
|
31
|
-
*
|
|
32
|
-
* @since 0.5.0-canary.6
|
|
33
|
-
*/
|
|
34
|
-
export function flattenEventProps(
|
|
35
|
-
properties: Record<string, unknown>,
|
|
36
|
-
options: FlattenEventPropsOptions = {},
|
|
37
|
-
): Record<string, FlatPropertyValue | null> {
|
|
38
|
-
const result: Record<string, FlatPropertyValue | null> = {};
|
|
39
|
-
|
|
40
|
-
for (const [key, value] of Object.entries(properties)) {
|
|
41
|
-
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
42
|
-
result[key] = value;
|
|
43
|
-
} else if (options.allowNull === true && value === null) {
|
|
44
|
-
result[key] = null;
|
|
45
|
-
} else if (value !== undefined && value !== null) {
|
|
46
|
-
result[key] = JSON.stringify(value);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return result;
|
|
51
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { ConsentDecision } from "#/core/consent";
|
|
2
|
-
import type { Destination } from "#/core/destination";
|
|
3
|
-
import { toAdConsentState } from "#/destinations/ad-consent";
|
|
4
|
-
import type { FlatPropertyValue } from "#/destinations/shared";
|
|
5
|
-
import { flattenEventProps } from "#/destinations/shared";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* TikTok consent. TikTok uses a **single Limited Data Use boolean**, not Meta's
|
|
9
|
-
* `dataProcessingOptions` structure and no signal object (spec-destinations §5). Its
|
|
10
|
-
* transmission gate (`ttq.grantConsent()`/`revokeConsent()`) follows `analytics` and is the
|
|
11
|
-
* tracker's job; this models the `ads`-driven LDU lever.
|
|
12
|
-
*
|
|
13
|
-
* @since 0.5.0-canary.6
|
|
14
|
-
*/
|
|
15
|
-
export interface TiktokConsent {
|
|
16
|
-
limited_data_use: boolean;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Maps a `ConsentDecision` to TikTok's LDU boolean — on when `ads` is denied.
|
|
21
|
-
*
|
|
22
|
-
* @since 0.5.0-canary.6
|
|
23
|
-
*/
|
|
24
|
-
export function toTiktokConsent(decision: ConsentDecision): TiktokConsent {
|
|
25
|
-
return { limited_data_use: toAdConsentState(decision).limitedDataUse };
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The mapped per-event payload handed to a TikTok transport (`ttq.track` / Events API).
|
|
30
|
-
*
|
|
31
|
-
* @since 0.5.0-canary.6
|
|
32
|
-
*/
|
|
33
|
-
export interface TiktokEventPayload {
|
|
34
|
-
consent: TiktokConsent;
|
|
35
|
-
name: string;
|
|
36
|
-
properties: Record<string, FlatPropertyValue>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Options for `createTiktokDestination`.
|
|
41
|
-
*
|
|
42
|
-
* @since 0.5.0-canary.6
|
|
43
|
-
*/
|
|
44
|
-
export interface TiktokDestinationOptions {
|
|
45
|
-
/** Erasure cookie-clear seam — TikTok exposes no per-visitor deletion API, so erasure is cookie-clear + stop-send (DSR-V4). */
|
|
46
|
-
clearCookies?: (() => void) | undefined;
|
|
47
|
-
/** Read per event so an `ads` change flips LDU without recreating the destination. */
|
|
48
|
-
getDecision: () => ConsentDecision;
|
|
49
|
-
name?: string | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Delivers one mapped event — the transport seam. Wire it to `ttq.track(...)` (Pixel) or the
|
|
52
|
-
* Events API; this package ships the consent mapping, never the pixel id or network client.
|
|
53
|
-
*/
|
|
54
|
-
transport: (payload: TiktokEventPayload) => Promise<void> | void;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Reference ad destination for TikTok: maps each event and the live `ads` decision to
|
|
59
|
-
* TikTok's LDU boolean, then hands it to an injected transport. Consent-restriction mapping
|
|
60
|
-
* only — the pixel id and `ttq` transport are the integrator's. `consentRequirement` stays
|
|
61
|
-
* `"required"`.
|
|
62
|
-
*
|
|
63
|
-
* @since 0.5.0-canary.6
|
|
64
|
-
*/
|
|
65
|
-
export function createTiktokDestination(options: TiktokDestinationOptions): Destination {
|
|
66
|
-
let stopped = false;
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
consentRequirement: "required",
|
|
70
|
-
name: options.name ?? "tiktok",
|
|
71
|
-
onErasure() {
|
|
72
|
-
stopped = true;
|
|
73
|
-
options.clearCookies?.();
|
|
74
|
-
},
|
|
75
|
-
async send(event) {
|
|
76
|
-
if (stopped) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
await options.transport({
|
|
81
|
-
consent: toTiktokConsent(options.getDecision()),
|
|
82
|
-
name: event.name,
|
|
83
|
-
properties: flattenEventProps(event.properties),
|
|
84
|
-
});
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { track } from "@vercel/analytics";
|
|
2
|
-
|
|
3
|
-
import type { Destination } from "#/core/destination";
|
|
4
|
-
import { flattenEventProps } from "#/destinations/shared";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Options for `createVercelAnalyticsDestination`.
|
|
8
|
-
*
|
|
9
|
-
* @since 0.5.0-canary.6
|
|
10
|
-
*/
|
|
11
|
-
export interface VercelAnalyticsDestinationOptions {
|
|
12
|
-
/**
|
|
13
|
-
* Vercel Analytics is cookieless and its events carry no identifier from this
|
|
14
|
-
* package, so it qualifies for `"exempt"` — it then keeps receiving events while the
|
|
15
|
-
* tracker's analytics gate is closed. Defaults to `"required"` so pre-consent delivery
|
|
16
|
-
* stays an explicit opt-in.
|
|
17
|
-
*/
|
|
18
|
-
consentRequirement?: "exempt" | "required" | undefined;
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* `track()` only pushes onto Vercel's own in-page queue (`window.va`/`window.vaq`), which
|
|
24
|
-
* handles batching and unload delivery itself. Requires the Vercel Analytics script to be
|
|
25
|
-
* loaded once elsewhere in the app (`<Analytics />` from `@vercel/analytics/react`, or the
|
|
26
|
-
* framework-agnostic `inject()`) — this destination only queues events, so it imports the
|
|
27
|
-
* base `@vercel/analytics` package and has no React dependency of its own.
|
|
28
|
-
*
|
|
29
|
-
* @since 0.5.0-canary.4
|
|
30
|
-
*/
|
|
31
|
-
export function createVercelAnalyticsDestination(options: VercelAnalyticsDestinationOptions = {}): Destination {
|
|
32
|
-
return {
|
|
33
|
-
consentRequirement: options.consentRequirement ?? "required",
|
|
34
|
-
name: options.name ?? "vercel-analytics",
|
|
35
|
-
// Synchronous today, but declared async so a throw here rejects the returned Promise
|
|
36
|
-
// instead of escaping as a synchronous throw — matches Destination.send's contract.
|
|
37
|
-
async send(event) {
|
|
38
|
-
track(event.name, flattenEventProps(event.properties, { allowNull: true }));
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* \@codefast/tracking
|
|
3
|
-
*
|
|
4
|
-
* Consent-gated, type-safe event tracking for TanStack Start apps: define an event
|
|
5
|
-
* catalog over any Standard Schema library, wire a `ConsentConfig` + `createConsentRuntime`,
|
|
6
|
-
* and fan tracked events out to gtag / Vercel Analytics destinations.
|
|
7
|
-
*
|
|
8
|
-
* This root is the client entry: it re-exports the isomorphic core plus the whole
|
|
9
|
-
* browser-side surface (tracker, consent runtime, React bindings, client destinations).
|
|
10
|
-
* Server-only lanes are their own subpaths and never belong here — `@codefast/tracking/server/*`
|
|
11
|
-
* and `@codefast/tracking/adapters/*` (deny them in the client environment via
|
|
12
|
-
* `SERVER_ONLY_SUBPATHS`). The Vercel destination stays on
|
|
13
|
-
* `@codefast/tracking/destinations/vercel-analytics` so its `@vercel/analytics` peer is only
|
|
14
|
-
* pulled in when used.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
// ── Core (isomorphic) ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
18
|
-
export type {
|
|
19
|
-
ConsentCategory,
|
|
20
|
-
ConsentDecision,
|
|
21
|
-
ConsentMode,
|
|
22
|
-
ConsentRecord,
|
|
23
|
-
ConsentRegion,
|
|
24
|
-
ConsentStorage,
|
|
25
|
-
InitialConsent,
|
|
26
|
-
ResolveDefaultConsentOptions,
|
|
27
|
-
ResolveEffectiveConsentOptions,
|
|
28
|
-
} from "#/core/consent";
|
|
29
|
-
export {
|
|
30
|
-
CONSENT_CATEGORIES,
|
|
31
|
-
CONSENT_REGIONS,
|
|
32
|
-
createConsentDecision,
|
|
33
|
-
isConsentDecision,
|
|
34
|
-
isConsentRecord,
|
|
35
|
-
isConsentRegion,
|
|
36
|
-
isInitialConsent,
|
|
37
|
-
normalizeConsentDecision,
|
|
38
|
-
readStoredDecision,
|
|
39
|
-
resolveConsentMode,
|
|
40
|
-
resolveDefaultConsent,
|
|
41
|
-
resolveEffectiveConsent,
|
|
42
|
-
STRICTEST_INITIAL_CONSENT,
|
|
43
|
-
} from "#/core/consent";
|
|
44
|
-
|
|
45
|
-
export type { ConsentConfig } from "#/core/consent-config";
|
|
46
|
-
export { defineConsentConfig } from "#/core/consent-config";
|
|
47
|
-
|
|
48
|
-
export type {
|
|
49
|
-
ConsentReceipt,
|
|
50
|
-
ConsentReceiptEventType,
|
|
51
|
-
ConsentReceiptInput,
|
|
52
|
-
ConsentReceiptMethod,
|
|
53
|
-
ConsentReceiptSubjectIdType,
|
|
54
|
-
} from "#/core/consent-receipt";
|
|
55
|
-
export { isConsentReceiptInput } from "#/core/consent-receipt";
|
|
56
|
-
|
|
57
|
-
export { readCookieValue } from "#/core/cookie";
|
|
58
|
-
|
|
59
|
-
export type { Destination } from "#/core/destination";
|
|
60
|
-
|
|
61
|
-
export type { EventCatalog, EventDefinition } from "#/core/event-catalog";
|
|
62
|
-
export { assertValidEventProperties, defineEventCatalog } from "#/core/event-catalog";
|
|
63
|
-
|
|
64
|
-
export { generateEventId } from "#/core/event-id";
|
|
65
|
-
|
|
66
|
-
export type { TrackedEvent } from "#/core/tracked-event";
|
|
67
|
-
|
|
68
|
-
// ── Client ───────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
69
|
-
export type { CmpConsentSignal, CmpStatus, ReconcileAdFrameworkConsentOptions } from "#/client/ad-framework-consent";
|
|
70
|
-
export { hasGppApi, hasTcfApi, reconcileAdFrameworkConsent } from "#/client/ad-framework-consent";
|
|
71
|
-
|
|
72
|
-
export type { ConsentRuntime, ConsentRuntimeOptions } from "#/client/consent-runtime";
|
|
73
|
-
export { createConsentRuntime } from "#/client/consent-runtime";
|
|
74
|
-
|
|
75
|
-
export { createLocalStorageConsentStorage } from "#/client/consent-storage";
|
|
76
|
-
|
|
77
|
-
export type { ConsentWithdrawalHandlerOptions } from "#/client/consent-withdrawal";
|
|
78
|
-
export { createConsentWithdrawalHandler } from "#/client/consent-withdrawal";
|
|
79
|
-
|
|
80
|
-
export type { CookieAnonymousId, CookieAnonymousIdOptions } from "#/client/cookie-anonymous-id";
|
|
81
|
-
export { createCookieAnonymousId } from "#/client/cookie-anonymous-id";
|
|
82
|
-
|
|
83
|
-
export type { ClientTracker, ClientTrackerOptions, DeliveryErrorContext } from "#/client/create-client-tracker";
|
|
84
|
-
export { createClientTracker } from "#/client/create-client-tracker";
|
|
85
|
-
|
|
86
|
-
export { hasGlobalPrivacyControlSignal } from "#/client/gpc";
|
|
87
|
-
|
|
88
|
-
export type {
|
|
89
|
-
InitialConsentSnapshot,
|
|
90
|
-
InitialConsentStore,
|
|
91
|
-
InitialConsentStoreOptions,
|
|
92
|
-
} from "#/client/initial-consent-store";
|
|
93
|
-
export { createInitialConsentStore } from "#/client/initial-consent-store";
|
|
94
|
-
|
|
95
|
-
export type { IsAnalyticsAllowedOptions } from "#/client/is-analytics-allowed";
|
|
96
|
-
export { createIsAnalyticsAllowed } from "#/client/is-analytics-allowed";
|
|
97
|
-
|
|
98
|
-
export type { ServerPersistedAnonymousIdOptions } from "#/client/server-persisted-anonymous-id";
|
|
99
|
-
export { createServerPersistedAnonymousId } from "#/client/server-persisted-anonymous-id";
|
|
100
|
-
|
|
101
|
-
// ── React ────────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
102
|
-
export type {
|
|
103
|
-
ConsentBannerAcceptProps,
|
|
104
|
-
ConsentBannerActionsProps,
|
|
105
|
-
ConsentBannerCategoryProps,
|
|
106
|
-
ConsentBannerCustomizeProps,
|
|
107
|
-
ConsentBannerDescriptionProps,
|
|
108
|
-
ConsentBannerPreferencesProps,
|
|
109
|
-
ConsentBannerProps,
|
|
110
|
-
ConsentBannerRejectProps,
|
|
111
|
-
ConsentBannerSaveProps,
|
|
112
|
-
ConsentBannerTitleProps,
|
|
113
|
-
ConsentToggleProps,
|
|
114
|
-
} from "#/react/consent-banner";
|
|
115
|
-
export {
|
|
116
|
-
ConsentBanner,
|
|
117
|
-
ConsentBannerAccept,
|
|
118
|
-
ConsentBannerActions,
|
|
119
|
-
ConsentBannerCategory,
|
|
120
|
-
ConsentBannerCustomize,
|
|
121
|
-
ConsentBannerDescription,
|
|
122
|
-
ConsentBannerPreferences,
|
|
123
|
-
ConsentBannerReject,
|
|
124
|
-
ConsentBannerSave,
|
|
125
|
-
ConsentBannerTitle,
|
|
126
|
-
ConsentToggle,
|
|
127
|
-
} from "#/react/consent-banner";
|
|
128
|
-
|
|
129
|
-
export type { GtagConsentBootstrapProps } from "#/react/gtag-consent-bootstrap";
|
|
130
|
-
export { GtagConsentBootstrap } from "#/react/gtag-consent-bootstrap";
|
|
131
|
-
|
|
132
|
-
export type { UseConsentOptions, UseConsentResult } from "#/react/use-consent";
|
|
133
|
-
export { useConsent } from "#/react/use-consent";
|
|
134
|
-
|
|
135
|
-
export type { UseGoogleConsentSyncOptions } from "#/react/use-google-consent-sync";
|
|
136
|
-
export { useGoogleConsentSync } from "#/react/use-google-consent-sync";
|
|
137
|
-
|
|
138
|
-
export { useInitialConsent } from "#/react/use-initial-consent";
|
|
139
|
-
|
|
140
|
-
// ── Destinations (client-lane; Vercel stays on its own subpath) ──────────────────────────────────────────────────────
|
|
141
|
-
export type { AdConsentState } from "#/destinations/ad-consent";
|
|
142
|
-
export { toAdConsentState } from "#/destinations/ad-consent";
|
|
143
|
-
|
|
144
|
-
export type {
|
|
145
|
-
EnsureGtagOptions,
|
|
146
|
-
GoogleAnalyticsDestinationOptions,
|
|
147
|
-
GtagConsentBootstrapOptions,
|
|
148
|
-
GtagFunction,
|
|
149
|
-
LoadGtagScriptOptions,
|
|
150
|
-
} from "#/destinations/google-analytics";
|
|
151
|
-
export {
|
|
152
|
-
buildGtagConsentBootstrapScript,
|
|
153
|
-
clearGoogleAnalyticsCookies,
|
|
154
|
-
createGoogleAnalyticsDestination,
|
|
155
|
-
ensureGtag,
|
|
156
|
-
loadGtagScript,
|
|
157
|
-
updateGoogleConsent,
|
|
158
|
-
} from "#/destinations/google-analytics";
|
|
159
|
-
|
|
160
|
-
export type { MetaDataProcessingOptions, MetaDestinationOptions, MetaEventPayload } from "#/destinations/meta";
|
|
161
|
-
export { createMetaDestination, toMetaDataProcessingOptions } from "#/destinations/meta";
|
|
162
|
-
|
|
163
|
-
export type {
|
|
164
|
-
MicrosoftUetConsent,
|
|
165
|
-
MicrosoftUetDestinationOptions,
|
|
166
|
-
MicrosoftUetEventPayload,
|
|
167
|
-
} from "#/destinations/microsoft-uet";
|
|
168
|
-
export { createMicrosoftUetDestination, toMicrosoftUetConsent } from "#/destinations/microsoft-uet";
|
|
169
|
-
|
|
170
|
-
export type { TiktokConsent, TiktokDestinationOptions, TiktokEventPayload } from "#/destinations/tiktok";
|
|
171
|
-
export { createTiktokDestination, toTiktokConsent } from "#/destinations/tiktok";
|