@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
|
@@ -28,5 +28,4 @@ export interface ServerPersistedAnonymousIdOptions {
|
|
|
28
28
|
*
|
|
29
29
|
* @since 0.5.0-canary.6
|
|
30
30
|
*/
|
|
31
|
-
export declare function createServerPersistedAnonymousId(options: ServerPersistedAnonymousIdOptions): CookieAnonymousId;
|
|
32
|
-
//# sourceMappingURL=server-persisted-anonymous-id.d.ts.map
|
|
31
|
+
export declare function createServerPersistedAnonymousId(options: ServerPersistedAnonymousIdOptions): CookieAnonymousId;
|
|
@@ -20,5 +20,4 @@ export interface ConsentConfig {
|
|
|
20
20
|
*
|
|
21
21
|
* @since 0.5.0-canary.6
|
|
22
22
|
*/
|
|
23
|
-
export declare function defineConsentConfig<Config extends ConsentConfig>(config: Config): Config;
|
|
24
|
-
//# sourceMappingURL=consent-config.d.ts.map
|
|
23
|
+
export declare function defineConsentConfig<Config extends ConsentConfig>(config: Config): Config;
|
|
@@ -67,5 +67,4 @@ export interface ConsentReceipt extends ConsentReceiptInput {
|
|
|
67
67
|
*
|
|
68
68
|
* @since 0.5.0-canary.6
|
|
69
69
|
*/
|
|
70
|
-
export declare function isConsentReceiptInput(value: unknown): value is ConsentReceiptInput;
|
|
71
|
-
//# sourceMappingURL=consent-receipt.d.ts.map
|
|
70
|
+
export declare function isConsentReceiptInput(value: unknown): value is ConsentReceiptInput;
|
package/dist/core/consent.d.ts
CHANGED
|
@@ -190,5 +190,4 @@ export interface ResolveEffectiveConsentOptions {
|
|
|
190
190
|
*
|
|
191
191
|
* @since 0.5.0-canary.6
|
|
192
192
|
*/
|
|
193
|
-
export declare function resolveEffectiveConsent(options: ResolveEffectiveConsentOptions): ConsentDecision;
|
|
194
|
-
//# sourceMappingURL=consent.d.ts.map
|
|
193
|
+
export declare function resolveEffectiveConsent(options: ResolveEffectiveConsentOptions): ConsentDecision;
|
package/dist/core/consent.js
CHANGED
|
@@ -159,5 +159,4 @@ export function resolveEffectiveConsent(options) {
|
|
|
159
159
|
const { hasGlobalPrivacyControlSignal, mode, policyVersion, requestedCategories, storage } = options;
|
|
160
160
|
return (readStoredDecision(storage, policyVersion) ??
|
|
161
161
|
resolveDefaultConsent({ hasGlobalPrivacyControlSignal, mode, requestedCategories }));
|
|
162
|
-
}
|
|
163
|
-
//# sourceMappingURL=consent.js.map
|
|
162
|
+
}
|
package/dist/core/cookie.d.ts
CHANGED
|
@@ -11,5 +11,4 @@ export declare const ONE_YEAR_IN_SECONDS: number;
|
|
|
11
11
|
*
|
|
12
12
|
* @since 0.5.0-canary.6
|
|
13
13
|
*/
|
|
14
|
-
export declare function readCookieValue(cookieString: string | null | undefined, cookieName: string): string | undefined;
|
|
15
|
-
//# sourceMappingURL=cookie.d.ts.map
|
|
14
|
+
export declare function readCookieValue(cookieString: string | null | undefined, cookieName: string): string | undefined;
|
package/dist/core/cookie.js
CHANGED
|
@@ -25,5 +25,4 @@ export interface Destination {
|
|
|
25
25
|
onErasure?: ((id: string) => Promise<void> | void) | undefined;
|
|
26
26
|
/** Must always return a `Promise` — mark `send` `async` even if the body has no `await`. */
|
|
27
27
|
send: (event: TrackedEvent) => Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=destination.d.ts.map
|
|
28
|
+
}
|
package/dist/core/destination.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=destination.js.map
|
|
1
|
+
export {};
|
|
@@ -31,5 +31,4 @@ export declare function defineEventCatalog<Catalog extends EventCatalog>(catalog
|
|
|
31
31
|
*
|
|
32
32
|
* @since 0.5.0-canary.6
|
|
33
33
|
*/
|
|
34
|
-
export declare function assertValidEventProperties(schema: StandardSchemaV1, eventName: string, properties: unknown): unknown;
|
|
35
|
-
//# sourceMappingURL=event-catalog.d.ts.map
|
|
34
|
+
export declare function assertValidEventProperties(schema: StandardSchemaV1, eventName: string, properties: unknown): unknown;
|
package/dist/core/event-id.d.ts
CHANGED
package/dist/core/event-id.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=tracked-event.js.map
|
|
1
|
+
export {};
|
|
@@ -19,5 +19,4 @@ export interface AdConsentState {
|
|
|
19
19
|
*
|
|
20
20
|
* @since 0.5.0-canary.6
|
|
21
21
|
*/
|
|
22
|
-
export declare function toAdConsentState(decision: ConsentDecision): AdConsentState;
|
|
23
|
-
//# sourceMappingURL=ad-consent.d.ts.map
|
|
22
|
+
export declare function toAdConsentState(decision: ConsentDecision): AdConsentState;
|
|
@@ -152,5 +152,4 @@ export interface GoogleAnalyticsDestinationOptions {
|
|
|
152
152
|
* @since 0.5.0-canary.4
|
|
153
153
|
*/
|
|
154
154
|
export declare function createGoogleAnalyticsDestination(options?: GoogleAnalyticsDestinationOptions): Destination;
|
|
155
|
-
export {};
|
|
156
|
-
//# sourceMappingURL=google-analytics.d.ts.map
|
|
155
|
+
export {};
|
|
@@ -60,5 +60,4 @@ export declare function ensureDataLayer(dataLayerName: string): Array<unknown> |
|
|
|
60
60
|
* @since 0.5.0-canary.6
|
|
61
61
|
*/
|
|
62
62
|
export declare function warnUnlessGa4EventName(destinationName: string, eventName: string): boolean;
|
|
63
|
-
export {};
|
|
64
|
-
//# sourceMappingURL=google-consent.d.ts.map
|
|
63
|
+
export {};
|
|
@@ -105,5 +105,4 @@ export function warnUnlessGa4EventName(destinationName, eventName) {
|
|
|
105
105
|
}
|
|
106
106
|
console.warn(`[tracking] "${destinationName}" dropped event "${eventName}" — GA4 event names must start with a letter and contain only letters, digits, or underscores (max 40 chars)`);
|
|
107
107
|
return false;
|
|
108
|
-
}
|
|
109
|
-
//# sourceMappingURL=google-consent.js.map
|
|
108
|
+
}
|
|
@@ -61,5 +61,4 @@ export interface MetaDestinationOptions {
|
|
|
61
61
|
*
|
|
62
62
|
* @since 0.5.0-canary.6
|
|
63
63
|
*/
|
|
64
|
-
export declare function createMetaDestination(options: MetaDestinationOptions): Destination;
|
|
65
|
-
//# sourceMappingURL=meta.d.ts.map
|
|
64
|
+
export declare function createMetaDestination(options: MetaDestinationOptions): Destination;
|
|
@@ -54,5 +54,4 @@ export interface MicrosoftUetDestinationOptions {
|
|
|
54
54
|
*
|
|
55
55
|
* @since 0.5.0-canary.6
|
|
56
56
|
*/
|
|
57
|
-
export declare function createMicrosoftUetDestination(options: MicrosoftUetDestinationOptions): Destination;
|
|
58
|
-
//# sourceMappingURL=microsoft-uet.d.ts.map
|
|
57
|
+
export declare function createMicrosoftUetDestination(options: MicrosoftUetDestinationOptions): Destination;
|
|
@@ -18,5 +18,4 @@ export declare function flattenEventProps(properties: Record<string, unknown>):
|
|
|
18
18
|
*/
|
|
19
19
|
export declare function flattenEventProps(properties: Record<string, unknown>, options: {
|
|
20
20
|
allowNull: true;
|
|
21
|
-
}): Record<string, FlatPropertyValue | null>;
|
|
22
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
21
|
+
}): Record<string, FlatPropertyValue | null>;
|
|
@@ -53,5 +53,4 @@ export interface TiktokDestinationOptions {
|
|
|
53
53
|
*
|
|
54
54
|
* @since 0.5.0-canary.6
|
|
55
55
|
*/
|
|
56
|
-
export declare function createTiktokDestination(options: TiktokDestinationOptions): Destination;
|
|
57
|
-
//# sourceMappingURL=tiktok.d.ts.map
|
|
56
|
+
export declare function createTiktokDestination(options: TiktokDestinationOptions): Destination;
|
|
@@ -23,5 +23,4 @@ export interface VercelAnalyticsDestinationOptions {
|
|
|
23
23
|
*
|
|
24
24
|
* @since 0.5.0-canary.4
|
|
25
25
|
*/
|
|
26
|
-
export declare function createVercelAnalyticsDestination(options?: VercelAnalyticsDestinationOptions): Destination;
|
|
27
|
-
//# sourceMappingURL=vercel-analytics.d.ts.map
|
|
26
|
+
export declare function createVercelAnalyticsDestination(options?: VercelAnalyticsDestinationOptions): Destination;
|
package/dist/index.d.ts
CHANGED
|
@@ -61,5 +61,4 @@ export { createMetaDestination, toMetaDataProcessingOptions } from "#/destinatio
|
|
|
61
61
|
export type { MicrosoftUetConsent, MicrosoftUetDestinationOptions, MicrosoftUetEventPayload, } from "#/destinations/microsoft-uet";
|
|
62
62
|
export { createMicrosoftUetDestination, toMicrosoftUetConsent } from "#/destinations/microsoft-uet";
|
|
63
63
|
export type { TiktokConsent, TiktokDestinationOptions, TiktokEventPayload } from "#/destinations/tiktok";
|
|
64
|
-
export { createTiktokDestination, toTiktokConsent } from "#/destinations/tiktok";
|
|
65
|
-
//# sourceMappingURL=index.d.ts.map
|
|
64
|
+
export { createTiktokDestination, toTiktokConsent } from "#/destinations/tiktok";
|
package/dist/index.js
CHANGED
|
@@ -38,5 +38,4 @@ export { toAdConsentState } from "#/destinations/ad-consent";
|
|
|
38
38
|
export { buildGtagConsentBootstrapScript, clearGoogleAnalyticsCookies, createGoogleAnalyticsDestination, ensureGtag, loadGtagScript, updateGoogleConsent, } from "#/destinations/google-analytics";
|
|
39
39
|
export { createMetaDestination, toMetaDataProcessingOptions } from "#/destinations/meta";
|
|
40
40
|
export { createMicrosoftUetDestination, toMicrosoftUetConsent } from "#/destinations/microsoft-uet";
|
|
41
|
-
export { createTiktokDestination, toTiktokConsent } from "#/destinations/tiktok";
|
|
42
|
-
//# sourceMappingURL=index.js.map
|
|
41
|
+
export { createTiktokDestination, toTiktokConsent } from "#/destinations/tiktok";
|
|
@@ -179,5 +179,4 @@ export interface ConsentToggleProps extends Omit<ComponentProps<"button">, "chil
|
|
|
179
179
|
*
|
|
180
180
|
* @since 0.5.0-canary.4
|
|
181
181
|
*/
|
|
182
|
-
export declare function ConsentToggle({ allowLabel, consent, denyLabel, toggledCategories, ...props }: ConsentToggleProps): ReactNode;
|
|
183
|
-
//# sourceMappingURL=consent-banner.d.ts.map
|
|
182
|
+
export declare function ConsentToggle({ allowLabel, consent, denyLabel, toggledCategories, ...props }: ConsentToggleProps): ReactNode;
|
|
@@ -15,5 +15,4 @@ export interface GtagConsentBootstrapProps extends Omit<ComponentProps<"script">
|
|
|
15
15
|
*
|
|
16
16
|
* @since 0.5.0-canary.6
|
|
17
17
|
*/
|
|
18
|
-
export declare function GtagConsentBootstrap({ config, dataLayerName, defaultConsent, debugMode, gaMeasurementId, nonce, ...props }: GtagConsentBootstrapProps): ReactNode;
|
|
19
|
-
//# sourceMappingURL=gtag-consent-bootstrap.d.ts.map
|
|
18
|
+
export declare function GtagConsentBootstrap({ config, dataLayerName, defaultConsent, debugMode, gaMeasurementId, nonce, ...props }: GtagConsentBootstrapProps): ReactNode;
|
|
@@ -18,5 +18,4 @@ export function GtagConsentBootstrap({ config, dataLayerName, defaultConsent, de
|
|
|
18
18
|
...(nonce === undefined ? {} : { nonce }),
|
|
19
19
|
};
|
|
20
20
|
return (_jsx("script", { ...props, dangerouslySetInnerHTML: { __html: buildGtagConsentBootstrapScript(bootstrapOptions) }, ...(nonce === undefined ? {} : { nonce }), suppressHydrationWarning: true }));
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=gtag-consent-bootstrap.js.map
|
|
21
|
+
}
|
|
@@ -42,5 +42,4 @@ export interface UseConsentResult {
|
|
|
42
42
|
*
|
|
43
43
|
* @since 0.5.0-canary.4
|
|
44
44
|
*/
|
|
45
|
-
export declare function useConsent(options: UseConsentOptions): UseConsentResult;
|
|
46
|
-
//# sourceMappingURL=use-consent.d.ts.map
|
|
45
|
+
export declare function useConsent(options: UseConsentOptions): UseConsentResult;
|
|
@@ -18,5 +18,4 @@ export interface UseGoogleConsentSyncOptions {
|
|
|
18
18
|
*
|
|
19
19
|
* @since 0.5.0-canary.6
|
|
20
20
|
*/
|
|
21
|
-
export declare function useGoogleConsentSync(consent: UseConsentResult, options?: UseGoogleConsentSyncOptions): void;
|
|
22
|
-
//# sourceMappingURL=use-google-consent-sync.d.ts.map
|
|
21
|
+
export declare function useGoogleConsentSync(consent: UseConsentResult, options?: UseGoogleConsentSyncOptions): void;
|
|
@@ -7,5 +7,4 @@ import type { InitialConsentSnapshot, InitialConsentStore } from "#/client/initi
|
|
|
7
7
|
*
|
|
8
8
|
* @since 0.5.0-canary.6
|
|
9
9
|
*/
|
|
10
|
-
export declare function useInitialConsent(store: InitialConsentStore): InitialConsentSnapshot;
|
|
11
|
-
//# sourceMappingURL=use-initial-consent.d.ts.map
|
|
10
|
+
export declare function useInitialConsent(store: InitialConsentStore): InitialConsentSnapshot;
|
|
@@ -67,5 +67,4 @@ export function resolveAnonymousIdCookie(options) {
|
|
|
67
67
|
export function resolveClearAnonymousIdCookie(cookieName) {
|
|
68
68
|
assertValidAnonymousIdCookieName(cookieName);
|
|
69
69
|
return { name: cookieName, path: "/", sameSite: "lax", secure: true };
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=anonymous-id-cookie.js.map
|
|
70
|
+
}
|
|
@@ -37,5 +37,4 @@ export interface BuildConsentReceiptOptions {
|
|
|
37
37
|
*
|
|
38
38
|
* @since 0.5.0-canary.6
|
|
39
39
|
*/
|
|
40
|
-
export declare function buildConsentReceipt(options: BuildConsentReceiptOptions): ConsentReceipt;
|
|
41
|
-
//# sourceMappingURL=consent-receipt.d.ts.map
|
|
40
|
+
export declare function buildConsentReceipt(options: BuildConsentReceiptOptions): ConsentReceipt;
|
|
@@ -24,5 +24,4 @@ export interface InitialConsentOptions {
|
|
|
24
24
|
*
|
|
25
25
|
* @since 0.5.0-canary.6
|
|
26
26
|
*/
|
|
27
|
-
export declare function resolveInitialConsent(options: InitialConsentOptions): InitialConsent;
|
|
28
|
-
//# sourceMappingURL=initial-consent.d.ts.map
|
|
27
|
+
export declare function resolveInitialConsent(options: InitialConsentOptions): InitialConsent;
|
|
@@ -67,5 +67,4 @@ export interface SendMeasurementProtocolEventsOptions {
|
|
|
67
67
|
*
|
|
68
68
|
* @since 0.5.0-canary.6
|
|
69
69
|
*/
|
|
70
|
-
export declare function sendMeasurementProtocolEvents(options: SendMeasurementProtocolEventsOptions): Promise<void>;
|
|
71
|
-
//# sourceMappingURL=measurement-protocol.d.ts.map
|
|
70
|
+
export declare function sendMeasurementProtocolEvents(options: SendMeasurementProtocolEventsOptions): Promise<void>;
|
package/dist/server/region.d.ts
CHANGED
|
@@ -23,5 +23,4 @@ export declare const OPT_IN_EQUIVALENT_COUNTRY_CODES: ReadonlySet<string>;
|
|
|
23
23
|
*
|
|
24
24
|
* @since 0.5.0-canary.4
|
|
25
25
|
*/
|
|
26
|
-
export declare function resolveRegionFromCountryCode(countryCode: string | undefined): ConsentRegion;
|
|
27
|
-
//# sourceMappingURL=region.d.ts.map
|
|
26
|
+
export declare function resolveRegionFromCountryCode(countryCode: string | undefined): ConsentRegion;
|
package/dist/server/region.js
CHANGED
|
@@ -64,5 +64,4 @@ export interface SubmitGa4UserDeletionOptions {
|
|
|
64
64
|
*
|
|
65
65
|
* @since 0.5.0-canary.6
|
|
66
66
|
*/
|
|
67
|
-
export declare function submitGa4UserDeletion(options: SubmitGa4UserDeletionOptions): Promise<void>;
|
|
68
|
-
//# sourceMappingURL=user-deletion.d.ts.map
|
|
67
|
+
export declare function submitGa4UserDeletion(options: SubmitGa4UserDeletionOptions): Promise<void>;
|