@shware/analytics 8.13.0 → 8.13.1
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/dist/attribution/classify.d.cts +6 -7
- package/dist/attribution/classify.d.cts.map +1 -1
- package/dist/attribution/classify.d.mts +6 -7
- package/dist/attribution/classify.d.mts.map +1 -1
- package/dist/attribution/vocabulary.d.cts +24 -25
- package/dist/attribution/vocabulary.d.cts.map +1 -1
- package/dist/attribution/vocabulary.d.mts +24 -25
- package/dist/attribution/vocabulary.d.mts.map +1 -1
- package/dist/click-id/index.d.cts +18 -19
- package/dist/click-id/index.d.cts.map +1 -1
- package/dist/click-id/index.d.mts +18 -19
- package/dist/click-id/index.d.mts.map +1 -1
- package/dist/constants/storage.d.cts +1 -2
- package/dist/constants/storage.d.cts.map +1 -1
- package/dist/constants/storage.d.mts +1 -2
- package/dist/constants/storage.d.mts.map +1 -1
- package/dist/feedback/index.d.cts +1 -2
- package/dist/feedback/index.d.cts.map +1 -1
- package/dist/feedback/index.d.mts +1 -2
- package/dist/feedback/index.d.mts.map +1 -1
- package/dist/hooks/use-app-analytics.d.cts +1 -2
- package/dist/hooks/use-app-analytics.d.cts.map +1 -1
- package/dist/hooks/use-app-analytics.d.mts +1 -2
- package/dist/hooks/use-app-analytics.d.mts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.cts +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.mts +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.mts.map +1 -1
- package/dist/hooks/use-previous.d.cts +1 -2
- package/dist/hooks/use-previous.d.cts.map +1 -1
- package/dist/hooks/use-previous.d.mts +1 -2
- package/dist/hooks/use-previous.d.mts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.cts +1 -2
- package/dist/hooks/use-report-web-vitals.d.cts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.mts +1 -2
- package/dist/hooks/use-report-web-vitals.d.mts.map +1 -1
- package/dist/hooks/use-track-impression.d.cts +1 -2
- package/dist/hooks/use-track-impression.d.cts.map +1 -1
- package/dist/hooks/use-track-impression.d.mts +1 -2
- package/dist/hooks/use-track-impression.d.mts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.cts +1 -2
- package/dist/hooks/use-uet-id-sync.d.cts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.mts +1 -2
- package/dist/hooks/use-uet-id-sync.d.mts.map +1 -1
- package/dist/hooks/use-web-analytics.d.cts +1 -2
- package/dist/hooks/use-web-analytics.d.cts.map +1 -1
- package/dist/hooks/use-web-analytics.d.mts +1 -2
- package/dist/hooks/use-web-analytics.d.mts.map +1 -1
- package/dist/link/index.d.cts +3 -4
- package/dist/link/index.d.cts.map +1 -1
- package/dist/link/index.d.mts +3 -4
- package/dist/link/index.d.mts.map +1 -1
- package/dist/native/fbsdk.d.cts +1 -2
- package/dist/native/fbsdk.d.cts.map +1 -1
- package/dist/native/fbsdk.d.mts +1 -2
- package/dist/native/fbsdk.d.mts.map +1 -1
- package/dist/native/fingerprint.d.cts +4 -5
- package/dist/native/fingerprint.d.cts.map +1 -1
- package/dist/native/fingerprint.d.mts +4 -5
- package/dist/native/fingerprint.d.mts.map +1 -1
- package/dist/native/firebase.d.cts +1 -2
- package/dist/native/firebase.d.cts.map +1 -1
- package/dist/native/firebase.d.mts +1 -2
- package/dist/native/firebase.d.mts.map +1 -1
- package/dist/native/posthog.d.cts +1 -2
- package/dist/native/posthog.d.cts.map +1 -1
- package/dist/native/posthog.d.mts +1 -2
- package/dist/native/posthog.d.mts.map +1 -1
- package/dist/native/setup.d.cts +4 -5
- package/dist/native/setup.d.cts.map +1 -1
- package/dist/native/setup.d.mts +4 -5
- package/dist/native/setup.d.mts.map +1 -1
- package/dist/next/index.cjs +14 -14
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.d.cts +1 -2
- package/dist/next/index.d.cts.map +1 -1
- package/dist/next/index.d.mts +1 -2
- package/dist/next/index.d.mts.map +1 -1
- package/dist/next/index.mjs +3 -3
- package/dist/react-router/index.d.cts +1 -2
- package/dist/react-router/index.d.cts.map +1 -1
- package/dist/react-router/index.d.mts +1 -2
- package/dist/react-router/index.d.mts.map +1 -1
- package/dist/schema/index.d.cts +16 -17
- package/dist/schema/index.d.cts.map +1 -1
- package/dist/schema/index.d.mts +16 -17
- package/dist/schema/index.d.mts.map +1 -1
- package/dist/server/action-source.d.cts +3 -4
- package/dist/server/action-source.d.cts.map +1 -1
- package/dist/server/action-source.d.mts +3 -4
- package/dist/server/action-source.d.mts.map +1 -1
- package/dist/server/google-data-manager.d.cts +9 -10
- package/dist/server/google-data-manager.d.cts.map +1 -1
- package/dist/server/google-data-manager.d.mts +9 -10
- package/dist/server/google-data-manager.d.mts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.cts +4 -5
- package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.mts +4 -5
- package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
- package/dist/server/meta-capi.d.cts +5 -6
- package/dist/server/meta-capi.d.cts.map +1 -1
- package/dist/server/meta-capi.d.mts +5 -6
- package/dist/server/meta-capi.d.mts.map +1 -1
- package/dist/server/meta-conversions-api.d.cts +4 -5
- package/dist/server/meta-conversions-api.d.cts.map +1 -1
- package/dist/server/meta-conversions-api.d.mts +4 -5
- package/dist/server/meta-conversions-api.d.mts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.cts +11 -12
- package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.mts +11 -12
- package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
- package/dist/server/openai-conversions-api.d.cts +5 -6
- package/dist/server/openai-conversions-api.d.cts.map +1 -1
- package/dist/server/openai-conversions-api.d.mts +5 -6
- package/dist/server/openai-conversions-api.d.mts.map +1 -1
- package/dist/server/page-location.d.cts +1 -2
- package/dist/server/page-location.d.cts.map +1 -1
- package/dist/server/page-location.d.mts +1 -2
- package/dist/server/page-location.d.mts.map +1 -1
- package/dist/server/reddit-conversions-api.d.cts +4 -5
- package/dist/server/reddit-conversions-api.d.cts.map +1 -1
- package/dist/server/reddit-conversions-api.d.mts +4 -5
- package/dist/server/reddit-conversions-api.d.mts.map +1 -1
- package/dist/setup/index.d.cts +5 -6
- package/dist/setup/index.d.cts.map +1 -1
- package/dist/setup/index.d.mts +5 -6
- package/dist/setup/index.d.mts.map +1 -1
- package/dist/setup/session.d.cts +2 -3
- package/dist/setup/session.d.cts.map +1 -1
- package/dist/setup/session.d.mts +2 -3
- package/dist/setup/session.d.mts.map +1 -1
- package/dist/tanstack/analytics.d.cts +1 -2
- package/dist/tanstack/analytics.d.cts.map +1 -1
- package/dist/tanstack/analytics.d.mts +1 -2
- package/dist/tanstack/analytics.d.mts.map +1 -1
- package/dist/tanstack/middleware.d.cts +3 -4
- package/dist/tanstack/middleware.d.cts.map +1 -1
- package/dist/tanstack/middleware.d.mts +3 -4
- package/dist/tanstack/middleware.d.mts.map +1 -1
- package/dist/test/setup.d.cts +3 -4
- package/dist/test/setup.d.cts.map +1 -1
- package/dist/test/setup.d.mts +3 -4
- package/dist/test/setup.d.mts.map +1 -1
- package/dist/third-parties/google-analytics.d.cts +2 -3
- package/dist/third-parties/google-analytics.d.cts.map +1 -1
- package/dist/third-parties/google-analytics.d.mts +2 -3
- package/dist/third-parties/google-analytics.d.mts.map +1 -1
- package/dist/third-parties/ignored-events.d.cts +1 -2
- package/dist/third-parties/ignored-events.d.cts.map +1 -1
- package/dist/third-parties/ignored-events.d.mts +1 -2
- package/dist/third-parties/ignored-events.d.mts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.cts +3 -4
- package/dist/third-parties/linkedin-insight-tag.d.cts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.mts +3 -4
- package/dist/third-parties/linkedin-insight-tag.d.mts.map +1 -1
- package/dist/third-parties/meta-pixel.d.cts +2 -3
- package/dist/third-parties/meta-pixel.d.cts.map +1 -1
- package/dist/third-parties/meta-pixel.d.mts +2 -3
- package/dist/third-parties/meta-pixel.d.mts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.cts +6 -7
- package/dist/third-parties/microsoft-uet.d.cts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.mts +6 -7
- package/dist/third-parties/microsoft-uet.d.mts.map +1 -1
- package/dist/third-parties/openai-pixel.d.cts +2 -3
- package/dist/third-parties/openai-pixel.d.cts.map +1 -1
- package/dist/third-parties/openai-pixel.d.mts +2 -3
- package/dist/third-parties/openai-pixel.d.mts.map +1 -1
- package/dist/third-parties/posthog.d.cts +2 -3
- package/dist/third-parties/posthog.d.cts.map +1 -1
- package/dist/third-parties/posthog.d.mts +2 -3
- package/dist/third-parties/posthog.d.mts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.cts +2 -3
- package/dist/third-parties/reddit-pixel.d.cts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.mts +2 -3
- package/dist/third-parties/reddit-pixel.d.mts.map +1 -1
- package/dist/track/fbq.d.cts +10 -11
- package/dist/track/fbq.d.cts.map +1 -1
- package/dist/track/fbq.d.mts +10 -11
- package/dist/track/fbq.d.mts.map +1 -1
- package/dist/track/gtag.d.cts +26 -27
- package/dist/track/gtag.d.cts.map +1 -1
- package/dist/track/gtag.d.mts +26 -27
- package/dist/track/gtag.d.mts.map +1 -1
- package/dist/track/index.d.cts +4 -5
- package/dist/track/index.d.cts.map +1 -1
- package/dist/track/index.d.mts +4 -5
- package/dist/track/index.d.mts.map +1 -1
- package/dist/track/lintrk.d.cts +1 -2
- package/dist/track/lintrk.d.cts.map +1 -1
- package/dist/track/lintrk.d.mts +1 -2
- package/dist/track/lintrk.d.mts.map +1 -1
- package/dist/track/oaiq.d.cts +17 -18
- package/dist/track/oaiq.d.cts.map +1 -1
- package/dist/track/oaiq.d.mts +17 -18
- package/dist/track/oaiq.d.mts.map +1 -1
- package/dist/track/rdt.d.cts +10 -11
- package/dist/track/rdt.d.cts.map +1 -1
- package/dist/track/rdt.d.mts +10 -11
- package/dist/track/rdt.d.mts.map +1 -1
- package/dist/track/types.d.cts +20 -21
- package/dist/track/types.d.cts.map +1 -1
- package/dist/track/types.d.mts +20 -21
- package/dist/track/types.d.mts.map +1 -1
- package/dist/track/uetq.d.cts +8 -9
- package/dist/track/uetq.d.cts.map +1 -1
- package/dist/track/uetq.d.mts +8 -9
- package/dist/track/uetq.d.mts.map +1 -1
- package/dist/utils/field.d.cts +1 -2
- package/dist/utils/field.d.cts.map +1 -1
- package/dist/utils/field.d.mts +1 -2
- package/dist/utils/field.d.mts.map +1 -1
- package/dist/utils/sha256.d.cts +1 -2
- package/dist/utils/sha256.d.cts.map +1 -1
- package/dist/utils/sha256.d.mts +1 -2
- package/dist/utils/sha256.d.mts.map +1 -1
- package/dist/utils/stripe.d.cts +2 -3
- package/dist/utils/stripe.d.cts.map +1 -1
- package/dist/utils/stripe.d.mts +2 -3
- package/dist/utils/stripe.d.mts.map +1 -1
- package/dist/visitor/index.d.cts +2 -3
- package/dist/visitor/index.d.cts.map +1 -1
- package/dist/visitor/index.d.mts +2 -3
- package/dist/visitor/index.d.mts.map +1 -1
- package/dist/visitor/types.d.cts +4 -5
- package/dist/visitor/types.d.cts.map +1 -1
- package/dist/visitor/types.d.mts +4 -5
- package/dist/visitor/types.d.mts.map +1 -1
- package/dist/web/index.d.cts +3 -4
- package/dist/web/index.d.cts.map +1 -1
- package/dist/web/index.d.mts +3 -4
- package/dist/web/index.d.mts.map +1 -1
- package/dist/web/page-key.d.cts +1 -2
- package/dist/web/page-key.d.cts.map +1 -1
- package/dist/web/page-key.d.mts +1 -2
- package/dist/web/page-key.d.mts.map +1 -1
- package/package.json +27 -27
|
@@ -20,7 +20,6 @@ interface Props {
|
|
|
20
20
|
debugMode?: boolean;
|
|
21
21
|
reportWebVitals?: boolean;
|
|
22
22
|
}
|
|
23
|
-
declare function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId, redditPixelId, linkedInPartnerId, uetTagId, uetCustomerId, hotjarId, facebookAppId, reportWebVitals }: Props): import("react").JSX.Element;
|
|
23
|
+
export declare function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, openaiPixelId, redditPixelId, linkedInPartnerId, uetTagId, uetCustomerId, hotjarId, facebookAppId, reportWebVitals }: Props): import("react").JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { Analytics };
|
|
26
25
|
//# sourceMappingURL=analytics.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.mts","names":[],"sources":["../../src/tanstack/analytics.tsx"],"mappings":";;;;UAUU;EACR,OAAO;EACP;EACA,QAAQ;EACR,
|
|
1
|
+
{"version":3,"file":"analytics.d.mts","names":["MetaPixelId","RedditPixelId"],"sources":["../../src/tanstack/analytics.tsx"],"mappings":";;;;UAUU;EACR,OAAO;EACP;EACA,QAAQ;EACR,cAAcA;EACd;EACA,gBAAgBC;EAChB;;EAEA;;EAEA;EACA;EACA;EACA;EACA;EACA;;wBAGc,YACd,MACA,OACA,OACA,WACA,aACA,eACA,eACA,mBACA,UACA,eACA,UACA,eACA,mBACC,wBAAK,IAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/tanstack/middleware.d.ts
|
|
2
|
-
interface ClickIdMiddlewareOptions {
|
|
2
|
+
export interface ClickIdMiddlewareOptions {
|
|
3
3
|
/** `Domain` attribute for the cookies, e.g. `.shware.io`. Omit for a host-only cookie. */
|
|
4
4
|
domain?: string;
|
|
5
5
|
/** `Secure` attribute, default true. Set false only for local http testing. */
|
|
@@ -47,9 +47,8 @@ interface ClickIdMiddlewareOptions {
|
|
|
47
47
|
*
|
|
48
48
|
* reference: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/fbp-and-fbc
|
|
49
49
|
*/
|
|
50
|
-
declare function createClickIdMiddleware(options?: ClickIdMiddlewareOptions): import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
|
|
50
|
+
export declare function createClickIdMiddleware(options?: ClickIdMiddlewareOptions): import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
|
|
51
51
|
/** Ready-to-register middleware with default options. */
|
|
52
|
-
declare const clickIdMiddleware: import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
|
|
52
|
+
export declare const clickIdMiddleware: import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
|
|
53
53
|
//#endregion
|
|
54
|
-
export { ClickIdMiddlewareOptions, clickIdMiddleware, createClickIdMiddleware };
|
|
55
54
|
//# sourceMappingURL=middleware.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.cts","names":[],"sources":["../../src/tanstack/middleware.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"middleware.d.cts","names":[],"sources":["../../src/tanstack/middleware.ts"],"mappings":";iBAGiB;;EAEf;;EAEA;;EAEA;;;;;;;;EAQA;;;;;;EAMA;;;;;EAKA,iBAAiB,SAAS;;;;;;;;;;;;;;;;;;;;;;;wBAwBZ,wBAAwB,UAAS,2DAA6B;;qBAkCjE,mDAAiB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/tanstack/middleware.d.ts
|
|
2
|
-
interface ClickIdMiddlewareOptions {
|
|
2
|
+
export interface ClickIdMiddlewareOptions {
|
|
3
3
|
/** `Domain` attribute for the cookies, e.g. `.shware.io`. Omit for a host-only cookie. */
|
|
4
4
|
domain?: string;
|
|
5
5
|
/** `Secure` attribute, default true. Set false only for local http testing. */
|
|
@@ -47,9 +47,8 @@ interface ClickIdMiddlewareOptions {
|
|
|
47
47
|
*
|
|
48
48
|
* reference: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/fbp-and-fbc
|
|
49
49
|
*/
|
|
50
|
-
declare function createClickIdMiddleware(options?: ClickIdMiddlewareOptions): import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
|
|
50
|
+
export declare function createClickIdMiddleware(options?: ClickIdMiddlewareOptions): import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
|
|
51
51
|
/** Ready-to-register middleware with default options. */
|
|
52
|
-
declare const clickIdMiddleware: import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
|
|
52
|
+
export declare const clickIdMiddleware: import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, undefined>;
|
|
53
53
|
//#endregion
|
|
54
|
-
export { ClickIdMiddlewareOptions, clickIdMiddleware, createClickIdMiddleware };
|
|
55
54
|
//# sourceMappingURL=middleware.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.mts","names":[],"sources":["../../src/tanstack/middleware.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"middleware.d.mts","names":[],"sources":["../../src/tanstack/middleware.ts"],"mappings":";iBAGiB;;EAEf;;EAEA;;EAEA;;;;;;;;EAQA;;;;;;EAMA;;;;;EAKA,iBAAiB,SAAS;;;;;;;;;;;;;;;;;;;;;;;wBAwBZ,wBAAwB,UAAS,2DAA6B;;qBAkCjE,mDAAiB"}
|
package/dist/test/setup.d.cts
CHANGED
|
@@ -6,14 +6,13 @@ import { Options } from "../setup/index.cjs";
|
|
|
6
6
|
* `vi.resetModules()` and dynamic imports; this file only provides the pieces every test hands to
|
|
7
7
|
* `setupAnalytics`, and is itself imported dynamically so it joins the same module graph.
|
|
8
8
|
*/
|
|
9
|
-
declare function memoryStorage(seed?: Record<string, string>): {
|
|
9
|
+
export declare function memoryStorage(seed?: Record<string, string>): {
|
|
10
10
|
map: Map<string, string>;
|
|
11
11
|
getItem: (key: string) => string | null;
|
|
12
12
|
setItem: (key: string, value: string) => void;
|
|
13
13
|
};
|
|
14
|
-
declare function baseOptions(overrides?: Partial<Options>): Options;
|
|
14
|
+
export declare function baseOptions(overrides?: Partial<Options>): Options;
|
|
15
15
|
/** A minimal ok Response whose json body is `data`. */
|
|
16
|
-
declare function jsonResponse(data: unknown, status?: number): Response;
|
|
16
|
+
export declare function jsonResponse(data: unknown, status?: number): Response;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { baseOptions, jsonResponse, memoryStorage };
|
|
19
18
|
//# sourceMappingURL=setup.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.cts","names":[],"sources":["../../src/test/setup.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"setup.d.cts","names":[],"sources":["../../src/test/setup.ts"],"mappings":";;;;;;;;wBASgB,cAAc,OAAM;OAAA;EAIjB,UAAA;EACA,UAAA,aAAM;;wBAMT,YAAY,YAAW,QAAQ,WAAgB;;wBAc/C,aAAa,eAAe,kBAAY"}
|
package/dist/test/setup.d.mts
CHANGED
|
@@ -6,14 +6,13 @@ import { Options } from "../setup/index.mjs";
|
|
|
6
6
|
* `vi.resetModules()` and dynamic imports; this file only provides the pieces every test hands to
|
|
7
7
|
* `setupAnalytics`, and is itself imported dynamically so it joins the same module graph.
|
|
8
8
|
*/
|
|
9
|
-
declare function memoryStorage(seed?: Record<string, string>): {
|
|
9
|
+
export declare function memoryStorage(seed?: Record<string, string>): {
|
|
10
10
|
map: Map<string, string>;
|
|
11
11
|
getItem: (key: string) => string | null;
|
|
12
12
|
setItem: (key: string, value: string) => void;
|
|
13
13
|
};
|
|
14
|
-
declare function baseOptions(overrides?: Partial<Options>): Options;
|
|
14
|
+
export declare function baseOptions(overrides?: Partial<Options>): Options;
|
|
15
15
|
/** A minimal ok Response whose json body is `data`. */
|
|
16
|
-
declare function jsonResponse(data: unknown, status?: number): Response;
|
|
16
|
+
export declare function jsonResponse(data: unknown, status?: number): Response;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { baseOptions, jsonResponse, memoryStorage };
|
|
19
18
|
//# sourceMappingURL=setup.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.mts","names":[],"sources":["../../src/test/setup.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"setup.d.mts","names":[],"sources":["../../src/test/setup.ts"],"mappings":";;;;;;;;wBASgB,cAAc,OAAM;OAAA;EAIjB,UAAA;EACA,UAAA,aAAM;;wBAMT,YAAY,YAAW,QAAQ,WAAgB;;wBAc/C,aAAa,eAAe,kBAAY"}
|
|
@@ -8,8 +8,7 @@ declare global {
|
|
|
8
8
|
gtag?: Gtag['gtag'];
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
declare function sendGAEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
|
|
12
|
-
declare function setGAUser({ user_id, user_data, properties }: UpdateVisitorDTO): void;
|
|
11
|
+
export declare function sendGAEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
|
|
12
|
+
export declare function setGAUser({ user_id, user_data, properties }: UpdateVisitorDTO): void;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { sendGAEvent, setGAUser };
|
|
15
14
|
//# sourceMappingURL=google-analytics.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-analytics.d.cts","names":[],"sources":["../../src/third-parties/google-analytics.ts"],"mappings":";;;;QAIQ;YACI;;IAER,OAAO;;;
|
|
1
|
+
{"version":3,"file":"google-analytics.d.cts","names":[],"sources":["../../src/third-parties/google-analytics.ts"],"mappings":";;;;QAIQ;YACI;;IAER,OAAO;;;wBAIK,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB;wBASf,YAAY,SAAS,WAAW,cAAc"}
|
|
@@ -8,8 +8,7 @@ declare global {
|
|
|
8
8
|
gtag?: Gtag['gtag'];
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
declare function sendGAEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
|
|
12
|
-
declare function setGAUser({ user_id, user_data, properties }: UpdateVisitorDTO): void;
|
|
11
|
+
export declare function sendGAEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
|
|
12
|
+
export declare function setGAUser({ user_id, user_data, properties }: UpdateVisitorDTO): void;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { sendGAEvent, setGAUser };
|
|
15
14
|
//# sourceMappingURL=google-analytics.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-analytics.d.mts","names":[],"sources":["../../src/third-parties/google-analytics.ts"],"mappings":";;;;QAIQ;YACI;;IAER,OAAO;;;
|
|
1
|
+
{"version":3,"file":"google-analytics.d.mts","names":[],"sources":["../../src/third-parties/google-analytics.ts"],"mappings":";;;;QAIQ;YACI;;IAER,OAAO;;;wBAIK,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB;wBASf,YAAY,SAAS,WAAW,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignored-events.d.cts","names":[],"sources":["../../src/third-parties/ignored-events.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"ignored-events.d.cts","names":[],"sources":["../../src/third-parties/ignored-events.ts"],"mappings":";qBA+Ca"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignored-events.d.mts","names":[],"sources":["../../src/third-parties/ignored-events.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"ignored-events.d.mts","names":[],"sources":["../../src/third-parties/ignored-events.ts"],"mappings":";qBA+Ca"}
|
|
@@ -17,9 +17,8 @@ declare global {
|
|
|
17
17
|
* add_to_wishlist: 789,
|
|
18
18
|
* }
|
|
19
19
|
*/
|
|
20
|
-
type LinkedinConversionConfig = Record<Lowercase<string>, number>;
|
|
21
|
-
declare function sendLinkedinEvent(config: LinkedinConversionConfig): <T extends EventName>(name: TrackName<T>, _properties?: TrackProperties<T>, event_id?: string) => void;
|
|
22
|
-
declare function setLinkedinUser({ user_data }: UpdateVisitorDTO): void;
|
|
20
|
+
export type LinkedinConversionConfig = Record<Lowercase<string>, number>;
|
|
21
|
+
export declare function sendLinkedinEvent(config: LinkedinConversionConfig): <T extends EventName>(name: TrackName<T>, _properties?: TrackProperties<T>, event_id?: string) => void;
|
|
22
|
+
export declare function setLinkedinUser({ user_data }: UpdateVisitorDTO): void;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { LinkedinConversionConfig, sendLinkedinEvent, setLinkedinUser };
|
|
25
24
|
//# sourceMappingURL=linkedin-insight-tag.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkedin-insight-tag.d.cts","names":[],"sources":["../../src/third-parties/linkedin-insight-tag.ts"],"mappings":";;;;QAKQ;YACI;;IAER,SAAS;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"linkedin-insight-tag.d.cts","names":[],"sources":["../../src/third-parties/linkedin-insight-tag.ts"],"mappings":";;;;QAKQ;YACI;;IAER,SAAS;;;;;;;;;;;;YAaD,2BAA2B,OAAO;wBAE9B,kBAAkB,QAAQ,4BAChC,UAAU,WAAS,MACnB,UAAU,IAAE,cACJ,gBAAgB,IAAE;wBAgBpB,kBAAkB,aAAa"}
|
|
@@ -17,9 +17,8 @@ declare global {
|
|
|
17
17
|
* add_to_wishlist: 789,
|
|
18
18
|
* }
|
|
19
19
|
*/
|
|
20
|
-
type LinkedinConversionConfig = Record<Lowercase<string>, number>;
|
|
21
|
-
declare function sendLinkedinEvent(config: LinkedinConversionConfig): <T extends EventName>(name: TrackName<T>, _properties?: TrackProperties<T>, event_id?: string) => void;
|
|
22
|
-
declare function setLinkedinUser({ user_data }: UpdateVisitorDTO): void;
|
|
20
|
+
export type LinkedinConversionConfig = Record<Lowercase<string>, number>;
|
|
21
|
+
export declare function sendLinkedinEvent(config: LinkedinConversionConfig): <T extends EventName>(name: TrackName<T>, _properties?: TrackProperties<T>, event_id?: string) => void;
|
|
22
|
+
export declare function setLinkedinUser({ user_data }: UpdateVisitorDTO): void;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { LinkedinConversionConfig, sendLinkedinEvent, setLinkedinUser };
|
|
25
24
|
//# sourceMappingURL=linkedin-insight-tag.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkedin-insight-tag.d.mts","names":[],"sources":["../../src/third-parties/linkedin-insight-tag.ts"],"mappings":";;;;QAKQ;YACI;;IAER,SAAS;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"linkedin-insight-tag.d.mts","names":[],"sources":["../../src/third-parties/linkedin-insight-tag.ts"],"mappings":";;;;QAKQ;YACI;;IAER,SAAS;;;;;;;;;;;;YAaD,2BAA2B,OAAO;wBAE9B,kBAAkB,QAAQ,4BAChC,UAAU,WAAS,MACnB,UAAU,IAAE,cACJ,gBAAgB,IAAE;wBAgBpB,kBAAkB,aAAa"}
|
|
@@ -8,8 +8,7 @@ declare global {
|
|
|
8
8
|
fbq?: FBQ['fbq'];
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, event_id?: string): void;
|
|
12
|
-
declare function setFBUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
11
|
+
export declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, event_id?: string): void;
|
|
12
|
+
export declare function setFBUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { sendFBEvent, setFBUser };
|
|
15
14
|
//# sourceMappingURL=meta-pixel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-pixel.d.cts","names":[],"sources":["../../src/third-parties/meta-pixel.ts"],"mappings":";;;;QAKQ;YACI;;IAER,MAAM;;;
|
|
1
|
+
{"version":3,"file":"meta-pixel.d.cts","names":[],"sources":["../../src/third-parties/meta-pixel.ts"],"mappings":";;;;QAKQ;YACI;;IAER,MAAM;;;wBAMM,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;wBAuBc,UAAU,SAAS,aAAO,SAAA,aACR"}
|
|
@@ -8,8 +8,7 @@ declare global {
|
|
|
8
8
|
fbq?: FBQ['fbq'];
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, event_id?: string): void;
|
|
12
|
-
declare function setFBUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
11
|
+
export declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, event_id?: string): void;
|
|
12
|
+
export declare function setFBUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { sendFBEvent, setFBUser };
|
|
15
14
|
//# sourceMappingURL=meta-pixel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-pixel.d.mts","names":[],"sources":["../../src/third-parties/meta-pixel.ts"],"mappings":";;;;QAKQ;YACI;;IAER,MAAM;;;
|
|
1
|
+
{"version":3,"file":"meta-pixel.d.mts","names":[],"sources":["../../src/third-parties/meta-pixel.ts"],"mappings":";;;;QAKQ;YACI;;IAER,MAAM;;;wBAMM,YAAY,UAAU,WACpC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;wBAuBc,UAAU,SAAS,aAAO,SAAA,aACR"}
|
|
@@ -23,7 +23,7 @@ declare global {
|
|
|
23
23
|
* Microsoft's generated snippet), on every history change — forwarding the SDK's own page views
|
|
24
24
|
* would report each page twice. The tag owns page loads; this tracker owns everything else.
|
|
25
25
|
*/
|
|
26
|
-
declare function sendUETEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
26
|
+
export declare function sendUETEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
27
27
|
/**
|
|
28
28
|
* Enhanced conversions: hand the tag the visitor's email and phone so Microsoft can match a
|
|
29
29
|
* conversion to an ad click without a third-party cookie. A `set` applies to every event fired
|
|
@@ -35,15 +35,15 @@ declare function sendUETEvent<T extends EventName>(name: TrackName<T>, propertie
|
|
|
35
35
|
* bound to its tag by the snippet and `set` addresses whichever tag drains `uetq`, so there is
|
|
36
36
|
* nothing to bind first.
|
|
37
37
|
*/
|
|
38
|
-
declare function setUETUser({ user_id, user_data }: UpdateVisitorDTO): void;
|
|
38
|
+
export declare function setUETUser({ user_id, user_data }: UpdateVisitorDTO): void;
|
|
39
39
|
/**
|
|
40
40
|
* UET consent mode. Push `default` before the tag loads (the tag processes `consent` early, ahead
|
|
41
41
|
* of the queued events) and `update` when the visitor decides. With `ad_storage: 'denied'` the
|
|
42
42
|
* tag neither writes its cookies nor reads the `msclkid` from the URL.
|
|
43
43
|
* https://help.ads.microsoft.com/#apex/ads/en/60119/1
|
|
44
44
|
*/
|
|
45
|
-
declare function setUETConsent(mode: 'default' | 'update', consent: UETConsent): void;
|
|
46
|
-
declare function configureUET(options: {
|
|
45
|
+
export declare function setUETConsent(mode: 'default' | 'update', consent: UETConsent): void;
|
|
46
|
+
export declare function configureUET(options: {
|
|
47
47
|
customerId?: string | number;
|
|
48
48
|
}): void;
|
|
49
49
|
/**
|
|
@@ -52,13 +52,12 @@ declare function configureUET(options: {
|
|
|
52
52
|
* it on mount so every visit syncs at least once, anonymous visitors included (they are who
|
|
53
53
|
* remarketing audiences are built from), and `setUETUser` runs it again on sign-in.
|
|
54
54
|
*/
|
|
55
|
-
declare function syncUETVisitor(userId?: string): Promise<void>;
|
|
56
|
-
declare function sendUETIdSync(options: {
|
|
55
|
+
export declare function syncUETVisitor(userId?: string): Promise<void>;
|
|
56
|
+
export declare function sendUETIdSync(options: {
|
|
57
57
|
customerId: string | number;
|
|
58
58
|
visitorId: string;
|
|
59
59
|
/** The signed-in user's id, raw; hashed before it leaves the page. */
|
|
60
60
|
userId?: string;
|
|
61
61
|
}): void;
|
|
62
62
|
//#endregion
|
|
63
|
-
export { configureUET, sendUETEvent, sendUETIdSync, setUETConsent, setUETUser, syncUETVisitor };
|
|
64
63
|
//# sourceMappingURL=microsoft-uet.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoft-uet.d.cts","names":[],"sources":["../../src/third-parties/microsoft-uet.ts"],"mappings":";;;;QAOQ;YACI;;;;;IAKR,OAAO;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"microsoft-uet.d.cts","names":[],"sources":["../../src/third-parties/microsoft-uet.ts"],"mappings":";;;;QAOQ;YACI;;;;;IAKR,OAAO;;;;;;;;;;;;;;;wBA4BK,aAAa,UAAU,WACrC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;;;;;;;;;;;;wBAwBc,aAAa,SAAS,aAAa;;;;;;;wBAsBnC,cAAc,4BAA4B,SAAS;wBA6BnD,aAAa;EAAW;;;;;;;;wBAUlB,eAAe,kBAAkB;wBAUvC,cAAc;EAC5B;EACA;;EAEA"}
|
|
@@ -23,7 +23,7 @@ declare global {
|
|
|
23
23
|
* Microsoft's generated snippet), on every history change — forwarding the SDK's own page views
|
|
24
24
|
* would report each page twice. The tag owns page loads; this tracker owns everything else.
|
|
25
25
|
*/
|
|
26
|
-
declare function sendUETEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
26
|
+
export declare function sendUETEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
27
27
|
/**
|
|
28
28
|
* Enhanced conversions: hand the tag the visitor's email and phone so Microsoft can match a
|
|
29
29
|
* conversion to an ad click without a third-party cookie. A `set` applies to every event fired
|
|
@@ -35,15 +35,15 @@ declare function sendUETEvent<T extends EventName>(name: TrackName<T>, propertie
|
|
|
35
35
|
* bound to its tag by the snippet and `set` addresses whichever tag drains `uetq`, so there is
|
|
36
36
|
* nothing to bind first.
|
|
37
37
|
*/
|
|
38
|
-
declare function setUETUser({ user_id, user_data }: UpdateVisitorDTO): void;
|
|
38
|
+
export declare function setUETUser({ user_id, user_data }: UpdateVisitorDTO): void;
|
|
39
39
|
/**
|
|
40
40
|
* UET consent mode. Push `default` before the tag loads (the tag processes `consent` early, ahead
|
|
41
41
|
* of the queued events) and `update` when the visitor decides. With `ad_storage: 'denied'` the
|
|
42
42
|
* tag neither writes its cookies nor reads the `msclkid` from the URL.
|
|
43
43
|
* https://help.ads.microsoft.com/#apex/ads/en/60119/1
|
|
44
44
|
*/
|
|
45
|
-
declare function setUETConsent(mode: 'default' | 'update', consent: UETConsent): void;
|
|
46
|
-
declare function configureUET(options: {
|
|
45
|
+
export declare function setUETConsent(mode: 'default' | 'update', consent: UETConsent): void;
|
|
46
|
+
export declare function configureUET(options: {
|
|
47
47
|
customerId?: string | number;
|
|
48
48
|
}): void;
|
|
49
49
|
/**
|
|
@@ -52,13 +52,12 @@ declare function configureUET(options: {
|
|
|
52
52
|
* it on mount so every visit syncs at least once, anonymous visitors included (they are who
|
|
53
53
|
* remarketing audiences are built from), and `setUETUser` runs it again on sign-in.
|
|
54
54
|
*/
|
|
55
|
-
declare function syncUETVisitor(userId?: string): Promise<void>;
|
|
56
|
-
declare function sendUETIdSync(options: {
|
|
55
|
+
export declare function syncUETVisitor(userId?: string): Promise<void>;
|
|
56
|
+
export declare function sendUETIdSync(options: {
|
|
57
57
|
customerId: string | number;
|
|
58
58
|
visitorId: string;
|
|
59
59
|
/** The signed-in user's id, raw; hashed before it leaves the page. */
|
|
60
60
|
userId?: string;
|
|
61
61
|
}): void;
|
|
62
62
|
//#endregion
|
|
63
|
-
export { configureUET, sendUETEvent, sendUETIdSync, setUETConsent, setUETUser, syncUETVisitor };
|
|
64
63
|
//# sourceMappingURL=microsoft-uet.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoft-uet.d.mts","names":[],"sources":["../../src/third-parties/microsoft-uet.ts"],"mappings":";;;;QAOQ;YACI;;;;;IAKR,OAAO;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"microsoft-uet.d.mts","names":[],"sources":["../../src/third-parties/microsoft-uet.ts"],"mappings":";;;;QAOQ;YACI;;;;;IAKR,OAAO;;;;;;;;;;;;;;;wBA4BK,aAAa,UAAU,WACrC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;;;;;;;;;;;;wBAwBc,aAAa,SAAS,aAAa;;;;;;;wBAsBnC,cAAc,4BAA4B,SAAS;wBA6BnD,aAAa;EAAW;;;;;;;;wBAUlB,eAAe,kBAAkB;wBAUvC,cAAc;EAC5B;EACA;;EAEA"}
|
|
@@ -13,13 +13,12 @@ declare global {
|
|
|
13
13
|
* `eventId` is reused as the OpenAI `event_id` so browser events deduplicate against the
|
|
14
14
|
* Conversions API. https://developers.openai.com/ads/measurement-pixel
|
|
15
15
|
*/
|
|
16
|
-
declare function sendOpenAIEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
16
|
+
export declare function sendOpenAIEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
17
17
|
/**
|
|
18
18
|
* Re-initialize the pixel with hashed user identity for better conversion matching. Email and
|
|
19
19
|
* external id are hashed client-side; geographic fields are sent raw. Hashing is asynchronous,
|
|
20
20
|
* so the `init` call is deferred until the digests resolve.
|
|
21
21
|
*/
|
|
22
|
-
declare function setOpenAIUser(pixelId: string): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
22
|
+
export declare function setOpenAIUser(pixelId: string): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { sendOpenAIEvent, setOpenAIUser };
|
|
25
24
|
//# sourceMappingURL=openai-pixel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-pixel.d.cts","names":[],"sources":["../../src/third-parties/openai-pixel.ts"],"mappings":";;;;QAMQ;YACI;;IAER,OAAO;;;;;;;;
|
|
1
|
+
{"version":3,"file":"openai-pixel.d.cts","names":[],"sources":["../../src/third-parties/openai-pixel.ts"],"mappings":";;;;QAMQ;YACI;;IAER,OAAO;;;;;;;;wBAeK,gBAAgB,UAAU,WACxC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;;;;;;wBAuBc,cAAc,qBAAe,SAAA,aACX"}
|
|
@@ -13,13 +13,12 @@ declare global {
|
|
|
13
13
|
* `eventId` is reused as the OpenAI `event_id` so browser events deduplicate against the
|
|
14
14
|
* Conversions API. https://developers.openai.com/ads/measurement-pixel
|
|
15
15
|
*/
|
|
16
|
-
declare function sendOpenAIEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
16
|
+
export declare function sendOpenAIEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
17
17
|
/**
|
|
18
18
|
* Re-initialize the pixel with hashed user identity for better conversion matching. Email and
|
|
19
19
|
* external id are hashed client-side; geographic fields are sent raw. Hashing is asynchronous,
|
|
20
20
|
* so the `init` call is deferred until the digests resolve.
|
|
21
21
|
*/
|
|
22
|
-
declare function setOpenAIUser(pixelId: string): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
22
|
+
export declare function setOpenAIUser(pixelId: string): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { sendOpenAIEvent, setOpenAIUser };
|
|
25
24
|
//# sourceMappingURL=openai-pixel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-pixel.d.mts","names":[],"sources":["../../src/third-parties/openai-pixel.ts"],"mappings":";;;;QAMQ;YACI;;IAER,OAAO;;;;;;;;
|
|
1
|
+
{"version":3,"file":"openai-pixel.d.mts","names":[],"sources":["../../src/third-parties/openai-pixel.ts"],"mappings":";;;;QAMQ;YACI;;IAER,OAAO;;;;;;;;wBAeK,gBAAgB,UAAU,WACxC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;;;;;;wBAuBc,cAAc,qBAAe,SAAA,aACX"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
2
2
|
import { VisitorIdentity } from "../visitor/types.cjs";
|
|
3
3
|
//#region src/third-parties/posthog.d.ts
|
|
4
|
-
declare function sendPosthogEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
|
|
4
|
+
export declare function sendPosthogEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
|
|
5
5
|
/**
|
|
6
6
|
* Identify the visitor to PostHog as the person the server says it is — `distinct_id`, the user's
|
|
7
7
|
* id once someone has signed in. Only then: identifying an anonymous visitor by its own id would
|
|
8
8
|
* make PostHog treat it as an identified person, and PostHog does not merge one identified person
|
|
9
9
|
* into another when the user later signs in, so the pre-sign-in events would stay split off.
|
|
10
10
|
*/
|
|
11
|
-
declare function setPosthogUser({ user_id, distinct_id, user_data }: VisitorIdentity): void;
|
|
11
|
+
export declare function setPosthogUser({ user_id, distinct_id, user_data }: VisitorIdentity): void;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { sendPosthogEvent, setPosthogUser };
|
|
14
13
|
//# sourceMappingURL=posthog.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog.d.cts","names":[],"sources":["../../src/third-parties/posthog.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"posthog.d.cts","names":[],"sources":["../../src/third-parties/posthog.ts"],"mappings":";;;wBAOgB,iBAAiB,UAAU,WACzC,MAAM,UAAU,IAChB,aAAa,gBAAgB;;;;;;;wBAsBf,iBAAiB,SAAS,aAAa,aAAa"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
2
2
|
import { VisitorIdentity } from "../visitor/types.mjs";
|
|
3
3
|
//#region src/third-parties/posthog.d.ts
|
|
4
|
-
declare function sendPosthogEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
|
|
4
|
+
export declare function sendPosthogEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
|
|
5
5
|
/**
|
|
6
6
|
* Identify the visitor to PostHog as the person the server says it is — `distinct_id`, the user's
|
|
7
7
|
* id once someone has signed in. Only then: identifying an anonymous visitor by its own id would
|
|
8
8
|
* make PostHog treat it as an identified person, and PostHog does not merge one identified person
|
|
9
9
|
* into another when the user later signs in, so the pre-sign-in events would stay split off.
|
|
10
10
|
*/
|
|
11
|
-
declare function setPosthogUser({ user_id, distinct_id, user_data }: VisitorIdentity): void;
|
|
11
|
+
export declare function setPosthogUser({ user_id, distinct_id, user_data }: VisitorIdentity): void;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { sendPosthogEvent, setPosthogUser };
|
|
14
13
|
//# sourceMappingURL=posthog.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog.d.mts","names":[],"sources":["../../src/third-parties/posthog.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"posthog.d.mts","names":[],"sources":["../../src/third-parties/posthog.ts"],"mappings":";;;wBAOgB,iBAAiB,UAAU,WACzC,MAAM,UAAU,IAChB,aAAa,gBAAgB;;;;;;;wBAsBf,iBAAiB,SAAS,aAAa,aAAa"}
|
|
@@ -8,8 +8,7 @@ declare global {
|
|
|
8
8
|
rdt?: RDT['rdt'];
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
declare function sendRedditEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
12
|
-
declare function setRedditUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
11
|
+
export declare function sendRedditEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
12
|
+
export declare function setRedditUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { sendRedditEvent, setRedditUser };
|
|
15
14
|
//# sourceMappingURL=reddit-pixel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reddit-pixel.d.cts","names":[],"sources":["../../src/third-parties/reddit-pixel.ts"],"mappings":";;;;QAKQ;YACI;;IAER,MAAM;;;
|
|
1
|
+
{"version":3,"file":"reddit-pixel.d.cts","names":[],"sources":["../../src/third-parties/reddit-pixel.ts"],"mappings":";;;;QAKQ;YACI;;IAER,MAAM;;;wBAMM,gBAAgB,UAAU,WACxC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;wBAqBc,cAAc,SAAS,aAAO,SAAA,aACZ"}
|
|
@@ -8,8 +8,7 @@ declare global {
|
|
|
8
8
|
rdt?: RDT['rdt'];
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
declare function sendRedditEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
12
|
-
declare function setRedditUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
11
|
+
export declare function sendRedditEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>, eventId?: string): void;
|
|
12
|
+
export declare function setRedditUser(pixelId: PixelId): ({ user_id, user_data }: UpdateVisitorDTO) => void;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { sendRedditEvent, setRedditUser };
|
|
15
14
|
//# sourceMappingURL=reddit-pixel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reddit-pixel.d.mts","names":[],"sources":["../../src/third-parties/reddit-pixel.ts"],"mappings":";;;;QAKQ;YACI;;IAER,MAAM;;;
|
|
1
|
+
{"version":3,"file":"reddit-pixel.d.mts","names":[],"sources":["../../src/third-parties/reddit-pixel.ts"],"mappings":";;;;QAKQ;YACI;;IAER,MAAM;;;wBAMM,gBAAgB,UAAU,WACxC,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B;wBAqBc,cAAc,SAAS,aAAO,SAAA,aACZ"}
|
package/dist/track/fbq.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Item } from "./gtag.cjs";
|
|
2
2
|
import { EventName, TrackName, TrackProperties } from "./types.cjs";
|
|
3
3
|
//#region src/track/fbq.d.ts
|
|
4
|
-
type Content = {
|
|
4
|
+
export type Content = {
|
|
5
5
|
id: string;
|
|
6
6
|
quantity: number;
|
|
7
7
|
item_price?: number;
|
|
@@ -15,7 +15,7 @@ type Content = {
|
|
|
15
15
|
* reference: https://developers.facebook.com/docs/meta-pixel/advanced/advanced-matching
|
|
16
16
|
* reference: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters
|
|
17
17
|
*/
|
|
18
|
-
type MatchingParameters = {
|
|
18
|
+
export type MatchingParameters = {
|
|
19
19
|
/** Email: Unhashed lowercase or hashed SHA-256 */
|
|
20
20
|
em?: string;
|
|
21
21
|
/** First Name: Lowercase letters */
|
|
@@ -124,7 +124,7 @@ type MatchingParameters = {
|
|
|
124
124
|
* standard events that support them. Format your parameter object data using JSON. Learn more about
|
|
125
125
|
* event parameters with Blueprint.
|
|
126
126
|
*/
|
|
127
|
-
type ObjectProperties = {
|
|
127
|
+
export type ObjectProperties = {
|
|
128
128
|
content_category?: string;
|
|
129
129
|
content_ids?: string[];
|
|
130
130
|
content_name?: string;
|
|
@@ -150,7 +150,7 @@ type ObjectProperties = {
|
|
|
150
150
|
/**
|
|
151
151
|
* reference: https://developers.facebook.com/docs/marketing-api/conversions-api/payload-helper
|
|
152
152
|
*/
|
|
153
|
-
type StandardEvents = {
|
|
153
|
+
export type StandardEvents = {
|
|
154
154
|
AddPaymentInfo: {
|
|
155
155
|
content_ids?: string[];
|
|
156
156
|
contents?: Content[];
|
|
@@ -229,8 +229,8 @@ type StandardEvents = {
|
|
|
229
229
|
type JSONValue = null | string | number | boolean | Array<JSONValue> | {
|
|
230
230
|
[value: string]: JSONValue;
|
|
231
231
|
};
|
|
232
|
-
type PixelId = `${number}`;
|
|
233
|
-
type Options = {
|
|
232
|
+
export type PixelId = `${number}`;
|
|
233
|
+
export type Options = {
|
|
234
234
|
eventID?: string;
|
|
235
235
|
};
|
|
236
236
|
/**
|
|
@@ -242,7 +242,7 @@ type Options = {
|
|
|
242
242
|
*
|
|
243
243
|
* reference: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters
|
|
244
244
|
*/
|
|
245
|
-
interface FBQ {
|
|
245
|
+
export interface FBQ {
|
|
246
246
|
/**
|
|
247
247
|
* reference: https://stackoverflow.com/questions/62304291/sending-user-data-parameters-via-pixel
|
|
248
248
|
*
|
|
@@ -270,11 +270,10 @@ interface FBQ {
|
|
|
270
270
|
* Please download this CSV filefor examples of properly normalized and hashed data for the
|
|
271
271
|
* parameters below.
|
|
272
272
|
*/
|
|
273
|
-
declare function normalize(parameters: MatchingParameters): MatchingParameters;
|
|
274
|
-
declare function mapItems(items?: Item[]): ObjectProperties;
|
|
273
|
+
export declare function normalize(parameters: MatchingParameters): MatchingParameters;
|
|
274
|
+
export declare function mapItems(items?: Item[]): ObjectProperties;
|
|
275
275
|
type Mapped<F extends keyof StandardEvents> = ['track', F, StandardEvents[F] & ObjectProperties];
|
|
276
276
|
type Missed<F extends string> = ['trackCustom', F, Record<string, JSONValue> & ObjectProperties];
|
|
277
|
-
declare function mapFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Mapped<keyof StandardEvents> | Missed<TrackName<T>>;
|
|
277
|
+
export declare function mapFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Mapped<keyof StandardEvents> | Missed<TrackName<T>>;
|
|
278
278
|
//#endregion
|
|
279
|
-
export { Content, FBQ, MatchingParameters, ObjectProperties, Options, PixelId, StandardEvents, mapFBEvent, mapItems, normalize };
|
|
280
279
|
//# sourceMappingURL=fbq.d.cts.map
|
package/dist/track/fbq.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fbq.d.cts","names":[],"sources":["../../src/track/fbq.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"fbq.d.cts","names":[],"sources":["../../src/track/fbq.ts"],"mappings":";;;YAIY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;YAOU;;EAEV;;EAGA;;EAGA;;EAGA;;;;;EAMA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;;;;;;;;EAUA;;;;;;;;EASA;;;;;;EAOA;;;;;;EAOA;;;;;EAMA;;;;;;EAOA;;;;;EAMA;;;;;;EAOA;;;;;;EAOA;;;;;EAMA;;;;;EAMA;;;;;;EAOA;;;;;;;YAQU;EACV;EACA;EACA;;;;;;;;;EAUA;EACA,WAAW;EACX;EACA;EACA;EACA;EACA;;EAGA;EACA;;;;;YAMU;EACV;IACE;IACA,WAAW;IACX;IACA;;EAEF;IACE;IACA;IACA,WAAW;IACX;IACA;;EAEF;IACE;IACA,WAAW;IACX;IACA;;EAEF;IACE;IACA;IACA;;EAEF;EACA;EACA;EACA;EACA;IACE;IACA,WAAW;IACX;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA,WAAW;IACX;IACA;IACA;;EAEF;EACA;IACE;IACA;IACA,WAAW;IACX;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAEF;EACA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA,WAAW;IACX;IACA;;;KAIC,+CAKD,MAAM;GACH,gBAAgB;;YAEX;YACA;EAAY;;;;;;;;;;;iBAWP;;;;;;;;;;;;;;EAcf,IAAI,cAAc,SAAS,SAAS,aAAa;;EAGjD,IAAI,aAAa,mBAAmB,gBAAgB,SAAS;EAE7D,IAAI,gBAAgB,gBAClB,eACA,OAAO,GACP,aAAa,eAAe,KAAK,kBACjC,UAAU;EAGZ,IACE,qBACA,eACA,aAAa,eAAe,aAAa,kBACzC,UAAU;;EAIZ,IAAI,gBAAgB,gBAClB,qBACA,SAAS,SACT,OAAO,GACP,aAAa,eAAe,KAAK,kBACjC,UAAU;;EAIZ,IACE,2BACA,SAAS,SACT,eACA,aAAa,eAAe,aAAa,kBACzC,UAAU;;;;;;wBAQE,UAAU,YAAY,qBAAqB;wBAc3C,SAAS,QAAQ,SAAS;KAsBrC,OAAO,gBAAgB,4BAA4B,GAAG,eAAe,KAAK;KAC1E,OAAO,oCAAoC,GAAG,eAAe,aAAa;wBAE/D,WAAW,UAAU,WACnC,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAC5B,aAAa,kBAAkB,OAAO,UAAU"}
|