@jmp-technologies/analytics 0.1.35 → 0.1.36
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/astro/client.cjs +1 -1
- package/dist/astro/client.cjs.map +1 -1
- package/dist/astro/client.d.cts +18 -0
- package/dist/astro/client.d.ts +18 -0
- package/dist/astro/client.js +1 -1
- package/dist/astro/content.cjs +1 -1
- package/dist/astro/content.cjs.map +1 -1
- package/dist/astro/content.d.cts +53 -0
- package/dist/astro/content.d.ts +53 -0
- package/dist/astro/content.js +2 -2
- package/dist/astro/integration.cjs +1 -1
- package/dist/astro/integration.cjs.map +1 -1
- package/dist/astro/integration.d.cts +36 -0
- package/dist/astro/integration.d.ts +36 -0
- package/dist/astro/integration.js +2 -2
- package/dist/astro/middleware.d.cts +19 -0
- package/dist/astro/middleware.d.ts +19 -0
- package/dist/astro/register.cjs +1 -1
- package/dist/astro/register.cjs.map +1 -1
- package/dist/astro/register.d.cts +7 -0
- package/dist/astro/register.d.ts +7 -0
- package/dist/astro/register.js +2 -2
- package/dist/{chunk-VUCOCFVE.js → chunk-3ZEMXII6.js} +2 -2
- package/dist/{chunk-4ZUW24F6.js → chunk-AGGLRTUQ.js} +2 -2
- package/dist/{chunk-G322JCI3.js → chunk-NAQU6RAE.js} +2 -2
- package/dist/{chunk-3ET7F6MZ.js → chunk-RNZTKIC6.js} +2 -2
- package/dist/chunk-RNZTKIC6.js.map +1 -0
- package/dist/{chunk-6SMPRPQ3.js → chunk-YFG3AQ35.js} +2 -2
- package/dist/chunk-YFG3AQ35.js.map +1 -0
- package/dist/create-jmp-analytics-Bz0-K0Af.d.cts +69 -0
- package/dist/create-jmp-analytics-DRjrlWUn.d.ts +69 -0
- package/dist/env-public-B6Y0DG68.d.cts +14 -0
- package/dist/env-public-B6Y0DG68.d.ts +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +110 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.js +1 -1
- package/dist/landing-capture-C8pyZWuF.d.cts +4 -0
- package/dist/landing-capture-C8pyZWuF.d.ts +4 -0
- package/dist/next/content.cjs +1 -1
- package/dist/next/content.cjs.map +1 -1
- package/dist/next/content.d.cts +23 -0
- package/dist/next/content.d.ts +23 -0
- package/dist/next/content.js +2 -2
- package/dist/next/google-tag.d.cts +17 -0
- package/dist/next/google-tag.d.ts +17 -0
- package/dist/next/instrumentation.cjs +1 -1
- package/dist/next/instrumentation.cjs.map +1 -1
- package/dist/next/instrumentation.d.cts +7 -0
- package/dist/next/instrumentation.d.ts +7 -0
- package/dist/next/instrumentation.js +1 -1
- package/dist/next/landing-capture-script-server.d.cts +14 -0
- package/dist/next/landing-capture-script-server.d.ts +14 -0
- package/dist/next/landing-pages.cjs +1 -1
- package/dist/next/landing-pages.cjs.map +1 -1
- package/dist/next/landing-pages.d.cts +92 -0
- package/dist/next/landing-pages.d.ts +92 -0
- package/dist/next/landing-pages.js +2 -2
- package/dist/next/locations.cjs +1 -1
- package/dist/next/locations.cjs.map +1 -1
- package/dist/next/locations.d.cts +55 -0
- package/dist/next/locations.d.ts +55 -0
- package/dist/next/locations.js +2 -2
- package/dist/next/middleware.d.cts +10 -0
- package/dist/next/middleware.d.ts +10 -0
- package/dist/next/site-root-server.cjs +1 -1
- package/dist/next/site-root-server.cjs.map +1 -1
- package/dist/next/site-root-server.d.cts +24 -0
- package/dist/next/site-root-server.d.ts +24 -0
- package/dist/next/site-root-server.js +3 -3
- package/dist/next.cjs +1 -1
- package/dist/next.cjs.map +1 -1
- package/dist/next.d.cts +50 -0
- package/dist/next.d.ts +50 -0
- package/dist/next.js +3 -3
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +22 -0
- package/dist/react.d.ts +22 -0
- package/dist/react.js +2 -2
- package/dist/site-config-BxEmJxBB.d.ts +74 -0
- package/dist/site-config-Cgq67uQ1.d.cts +74 -0
- package/dist/track-page-view-74Su6lQY.d.ts +12 -0
- package/dist/track-page-view-BCX1Dsfk.d.cts +12 -0
- package/dist/types-yNgoakwk.d.cts +397 -0
- package/dist/types-yNgoakwk.d.ts +397 -0
- package/dist/utils-BLoWWfSw.d.ts +15 -0
- package/dist/utils-UPTIdK1D.d.cts +15 -0
- package/package.json +3 -2
- package/dist/chunk-3ET7F6MZ.js.map +0 -1
- package/dist/chunk-6SMPRPQ3.js.map +0 -1
- /package/dist/{chunk-VUCOCFVE.js.map → chunk-3ZEMXII6.js.map} +0 -0
- /package/dist/{chunk-4ZUW24F6.js.map → chunk-AGGLRTUQ.js.map} +0 -0
- /package/dist/{chunk-G322JCI3.js.map → chunk-NAQU6RAE.js.map} +0 -0
package/dist/next.d.cts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { p as JmpAnalyticsConfig } from './types-yNgoakwk.cjs';
|
|
4
|
+
export { b as buildLandingCaptureInlineScript } from './landing-capture-C8pyZWuF.cjs';
|
|
5
|
+
import { J as JmpAnalytics } from './create-jmp-analytics-Bz0-K0Af.cjs';
|
|
6
|
+
export { i as isJmpTrackingConsentGranted, s as setJmpTrackingConsent, a as subscribeJmpTrackingConsent } from './create-jmp-analytics-Bz0-K0Af.cjs';
|
|
7
|
+
export { r as readJmpPublicEnvFromProcess } from './env-public-B6Y0DG68.cjs';
|
|
8
|
+
export { JmpTrackedMailtoLink, JmpTrackedTelLink } from './react.cjs';
|
|
9
|
+
export { JmpGoogleTag } from './next/google-tag.cjs';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Browser singleton for Next.js sites — ensures contact auto-track defaults apply
|
|
13
|
+
* on the first `getOrCreate` call (page views, tracked links, delegated clicks).
|
|
14
|
+
*/
|
|
15
|
+
declare function getOrCreateJmpAnalyticsForNextApp(overrides?: Partial<JmpAnalyticsConfig>): JmpAnalytics | null;
|
|
16
|
+
|
|
17
|
+
declare function useJmpAnalytics(): JmpAnalytics | null;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* App Router: `page_view` on first paint and client navigations.
|
|
21
|
+
*/
|
|
22
|
+
declare function JmpNextPageViewTracker({ configOverrides, }: {
|
|
23
|
+
configOverrides?: Partial<JmpAnalyticsConfig>;
|
|
24
|
+
}): react_jsx_runtime.JSX.Element;
|
|
25
|
+
type JmpNextAnalyticsProps = {
|
|
26
|
+
/**
|
|
27
|
+
* When true (or `NEXT_PUBLIC_JMP_ANALYTICS_REQUIRE_CONSENT=true`), scripts stay
|
|
28
|
+
* off until {@link setJmpTrackingConsent}(true) from your cookie banner.
|
|
29
|
+
*/
|
|
30
|
+
deferUntilConsent?: boolean;
|
|
31
|
+
/** From {@link JmpSiteRootServer} — ensures the client bundle can reach the portal. */
|
|
32
|
+
analyticsUrl?: string;
|
|
33
|
+
trackingKey?: string;
|
|
34
|
+
};
|
|
35
|
+
/** Client route tracking + analytics bootstrap — landing capture is SSR-only via {@link JmpLandingCaptureScriptServer}. */
|
|
36
|
+
declare function JmpNextAnalytics({ deferUntilConsent, analyticsUrl, trackingKey, }?: JmpNextAnalyticsProps): react_jsx_runtime.JSX.Element | null;
|
|
37
|
+
type JmpSiteRootProps = {
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
deferUntilConsent?: boolean;
|
|
40
|
+
/** Prefer {@link JmpSiteRootServer} in layout — pass-through from server env. */
|
|
41
|
+
analyticsUrl?: string;
|
|
42
|
+
trackingKey?: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Root layout wrapper: App Router page views + children.
|
|
46
|
+
* Put {@link JmpLandingCaptureScriptServer} in layout `<head>` (or use {@link JmpSiteRootServer}).
|
|
47
|
+
*/
|
|
48
|
+
declare function JmpSiteRoot({ children, deferUntilConsent, analyticsUrl, trackingKey, }: JmpSiteRootProps): react_jsx_runtime.JSX.Element;
|
|
49
|
+
|
|
50
|
+
export { JmpNextAnalytics, JmpNextPageViewTracker, JmpSiteRoot, getOrCreateJmpAnalyticsForNextApp, useJmpAnalytics };
|
package/dist/next.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { p as JmpAnalyticsConfig } from './types-yNgoakwk.js';
|
|
4
|
+
export { b as buildLandingCaptureInlineScript } from './landing-capture-C8pyZWuF.js';
|
|
5
|
+
import { J as JmpAnalytics } from './create-jmp-analytics-DRjrlWUn.js';
|
|
6
|
+
export { i as isJmpTrackingConsentGranted, s as setJmpTrackingConsent, a as subscribeJmpTrackingConsent } from './create-jmp-analytics-DRjrlWUn.js';
|
|
7
|
+
export { r as readJmpPublicEnvFromProcess } from './env-public-B6Y0DG68.js';
|
|
8
|
+
export { JmpTrackedMailtoLink, JmpTrackedTelLink } from './react.js';
|
|
9
|
+
export { JmpGoogleTag } from './next/google-tag.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Browser singleton for Next.js sites — ensures contact auto-track defaults apply
|
|
13
|
+
* on the first `getOrCreate` call (page views, tracked links, delegated clicks).
|
|
14
|
+
*/
|
|
15
|
+
declare function getOrCreateJmpAnalyticsForNextApp(overrides?: Partial<JmpAnalyticsConfig>): JmpAnalytics | null;
|
|
16
|
+
|
|
17
|
+
declare function useJmpAnalytics(): JmpAnalytics | null;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* App Router: `page_view` on first paint and client navigations.
|
|
21
|
+
*/
|
|
22
|
+
declare function JmpNextPageViewTracker({ configOverrides, }: {
|
|
23
|
+
configOverrides?: Partial<JmpAnalyticsConfig>;
|
|
24
|
+
}): react_jsx_runtime.JSX.Element;
|
|
25
|
+
type JmpNextAnalyticsProps = {
|
|
26
|
+
/**
|
|
27
|
+
* When true (or `NEXT_PUBLIC_JMP_ANALYTICS_REQUIRE_CONSENT=true`), scripts stay
|
|
28
|
+
* off until {@link setJmpTrackingConsent}(true) from your cookie banner.
|
|
29
|
+
*/
|
|
30
|
+
deferUntilConsent?: boolean;
|
|
31
|
+
/** From {@link JmpSiteRootServer} — ensures the client bundle can reach the portal. */
|
|
32
|
+
analyticsUrl?: string;
|
|
33
|
+
trackingKey?: string;
|
|
34
|
+
};
|
|
35
|
+
/** Client route tracking + analytics bootstrap — landing capture is SSR-only via {@link JmpLandingCaptureScriptServer}. */
|
|
36
|
+
declare function JmpNextAnalytics({ deferUntilConsent, analyticsUrl, trackingKey, }?: JmpNextAnalyticsProps): react_jsx_runtime.JSX.Element | null;
|
|
37
|
+
type JmpSiteRootProps = {
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
deferUntilConsent?: boolean;
|
|
40
|
+
/** Prefer {@link JmpSiteRootServer} in layout — pass-through from server env. */
|
|
41
|
+
analyticsUrl?: string;
|
|
42
|
+
trackingKey?: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Root layout wrapper: App Router page views + children.
|
|
46
|
+
* Put {@link JmpLandingCaptureScriptServer} in layout `<head>` (or use {@link JmpSiteRootServer}).
|
|
47
|
+
*/
|
|
48
|
+
declare function JmpSiteRoot({ children, deferUntilConsent, analyticsUrl, trackingKey, }: JmpSiteRootProps): react_jsx_runtime.JSX.Element;
|
|
49
|
+
|
|
50
|
+
export { JmpNextAnalytics, JmpNextPageViewTracker, JmpSiteRoot, getOrCreateJmpAnalyticsForNextApp, useJmpAnalytics };
|
package/dist/next.js
CHANGED
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
JmpSiteRoot,
|
|
6
6
|
getOrCreateJmpAnalyticsForNextApp,
|
|
7
7
|
useJmpAnalytics
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3ZEMXII6.js";
|
|
9
9
|
import {
|
|
10
10
|
JmpGoogleTag
|
|
11
11
|
} from "./chunk-2KAGOVRZ.js";
|
|
12
12
|
import {
|
|
13
13
|
JmpTrackedMailtoLink,
|
|
14
14
|
JmpTrackedTelLink
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AGGLRTUQ.js";
|
|
16
16
|
import {
|
|
17
17
|
isJmpTrackingConsentGranted,
|
|
18
18
|
setJmpTrackingConsent,
|
|
19
19
|
subscribeJmpTrackingConsent
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YFG3AQ35.js";
|
|
21
21
|
import {
|
|
22
22
|
buildLandingCaptureInlineScript
|
|
23
23
|
} from "./chunk-TCZ6TC2L.js";
|