@jmp-technologies/analytics 0.1.34 → 0.1.35
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.js +1 -1
- package/dist/astro/content.cjs +31 -1
- package/dist/astro/content.cjs.map +1 -1
- package/dist/astro/content.js +4 -2
- package/dist/astro/integration.cjs +1 -1
- package/dist/astro/integration.cjs.map +1 -1
- package/dist/astro/integration.js +2 -2
- package/dist/astro/register.cjs +1 -1
- package/dist/astro/register.cjs.map +1 -1
- package/dist/astro/register.js +2 -2
- package/dist/{chunk-4NUFHUWN.js → chunk-3ET7F6MZ.js} +16 -3
- package/dist/chunk-3ET7F6MZ.js.map +1 -0
- package/dist/{chunk-UL7JTTTB.js → chunk-4ZUW24F6.js} +2 -2
- package/dist/{chunk-NJAMXGIW.js → chunk-6SMPRPQ3.js} +21 -2
- package/dist/{chunk-NJAMXGIW.js.map → chunk-6SMPRPQ3.js.map} +1 -1
- package/dist/{chunk-SIJ4TDRV.js → chunk-G322JCI3.js} +2 -2
- package/dist/{chunk-VUWHDHXS.js → chunk-VUCOCFVE.js} +2 -2
- package/dist/index.cjs +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/next/content.cjs +32 -1
- package/dist/next/content.cjs.map +1 -1
- package/dist/next/content.js +5 -2
- package/dist/next/content.js.map +1 -1
- package/dist/next/instrumentation.cjs +1 -1
- package/dist/next/instrumentation.cjs.map +1 -1
- package/dist/next/instrumentation.js +1 -1
- package/dist/next/landing-pages.cjs +1 -1
- package/dist/next/landing-pages.cjs.map +1 -1
- 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.js +2 -2
- 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.js +3 -3
- package/dist/next.cjs +1 -1
- package/dist/next.cjs.map +1 -1
- package/dist/next.js +3 -3
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +2 -2
- package/package.json +1 -1
- package/dist/astro/client.d.cts +0 -18
- package/dist/astro/client.d.ts +0 -18
- package/dist/astro/content.d.cts +0 -48
- package/dist/astro/content.d.ts +0 -48
- package/dist/astro/integration.d.cts +0 -36
- package/dist/astro/integration.d.ts +0 -36
- package/dist/astro/middleware.d.cts +0 -19
- package/dist/astro/middleware.d.ts +0 -19
- package/dist/astro/register.d.cts +0 -7
- package/dist/astro/register.d.ts +0 -7
- package/dist/chunk-4NUFHUWN.js.map +0 -1
- package/dist/create-jmp-analytics-CwtcXBd7.d.ts +0 -69
- package/dist/create-jmp-analytics-lkGcysG_.d.cts +0 -69
- package/dist/env-public-B6Y0DG68.d.cts +0 -14
- package/dist/env-public-B6Y0DG68.d.ts +0 -14
- package/dist/index.d.cts +0 -104
- package/dist/index.d.ts +0 -104
- package/dist/landing-capture-C8pyZWuF.d.cts +0 -4
- package/dist/landing-capture-C8pyZWuF.d.ts +0 -4
- package/dist/next/content.d.cts +0 -22
- package/dist/next/content.d.ts +0 -22
- package/dist/next/google-tag.d.cts +0 -17
- package/dist/next/google-tag.d.ts +0 -17
- package/dist/next/instrumentation.d.cts +0 -7
- package/dist/next/instrumentation.d.ts +0 -7
- package/dist/next/landing-capture-script-server.d.cts +0 -14
- package/dist/next/landing-capture-script-server.d.ts +0 -14
- package/dist/next/landing-pages.d.cts +0 -92
- package/dist/next/landing-pages.d.ts +0 -92
- package/dist/next/locations.d.cts +0 -55
- package/dist/next/locations.d.ts +0 -55
- package/dist/next/middleware.d.cts +0 -10
- package/dist/next/middleware.d.ts +0 -10
- package/dist/next/site-root-server.d.cts +0 -24
- package/dist/next/site-root-server.d.ts +0 -24
- package/dist/next.d.cts +0 -50
- package/dist/next.d.ts +0 -50
- package/dist/react.d.cts +0 -22
- package/dist/react.d.ts +0 -22
- package/dist/site-config-BMlEQ_8g.d.cts +0 -74
- package/dist/site-config-BbE6kGDd.d.ts +0 -74
- package/dist/track-page-view-BPWGGoMr.d.ts +0 -12
- package/dist/track-page-view-DaNOaIxF.d.cts +0 -12
- package/dist/types-BdC3SRH-.d.cts +0 -386
- package/dist/types-BdC3SRH-.d.ts +0 -386
- package/dist/utils-B4E-pcQ0.d.ts +0 -15
- package/dist/utils-DIHFgovG.d.cts +0 -15
- /package/dist/{chunk-UL7JTTTB.js.map → chunk-4ZUW24F6.js.map} +0 -0
- /package/dist/{chunk-SIJ4TDRV.js.map → chunk-G322JCI3.js.map} +0 -0
- /package/dist/{chunk-VUWHDHXS.js.map → chunk-VUCOCFVE.js.map} +0 -0
package/dist/next.d.cts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { o as JmpAnalyticsConfig } from './types-BdC3SRH-.cjs';
|
|
4
|
-
export { b as buildLandingCaptureInlineScript } from './landing-capture-C8pyZWuF.cjs';
|
|
5
|
-
import { J as JmpAnalytics } from './create-jmp-analytics-lkGcysG_.cjs';
|
|
6
|
-
export { i as isJmpTrackingConsentGranted, s as setJmpTrackingConsent, a as subscribeJmpTrackingConsent } from './create-jmp-analytics-lkGcysG_.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
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { o as JmpAnalyticsConfig } from './types-BdC3SRH-.js';
|
|
4
|
-
export { b as buildLandingCaptureInlineScript } from './landing-capture-C8pyZWuF.js';
|
|
5
|
-
import { J as JmpAnalytics } from './create-jmp-analytics-CwtcXBd7.js';
|
|
6
|
-
export { i as isJmpTrackingConsentGranted, s as setJmpTrackingConsent, a as subscribeJmpTrackingConsent } from './create-jmp-analytics-CwtcXBd7.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/react.d.cts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { J as JmpAnalytics } from './create-jmp-analytics-lkGcysG_.cjs';
|
|
4
|
-
import './types-BdC3SRH-.cjs';
|
|
5
|
-
|
|
6
|
-
declare function useJmpAnalytics(): JmpAnalytics | null;
|
|
7
|
-
type JmpTrackedTelLinkProps = ComponentPropsWithoutRef<"a"> & {
|
|
8
|
-
href: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* `tel:` (or other) link that records a `call_click` with the current path.
|
|
12
|
-
*/
|
|
13
|
-
declare function JmpTrackedTelLink({ href, onClick, ...rest }: JmpTrackedTelLinkProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
type JmpTrackedMailtoLinkProps = ComponentPropsWithoutRef<"a"> & {
|
|
15
|
-
href: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* `mailto:` link that records an `email_click` with the current path.
|
|
19
|
-
*/
|
|
20
|
-
declare function JmpTrackedMailtoLink({ href, onClick, ...rest }: JmpTrackedMailtoLinkProps): react_jsx_runtime.JSX.Element;
|
|
21
|
-
|
|
22
|
-
export { JmpTrackedMailtoLink, type JmpTrackedMailtoLinkProps, JmpTrackedTelLink, type JmpTrackedTelLinkProps, useJmpAnalytics };
|
package/dist/react.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { J as JmpAnalytics } from './create-jmp-analytics-CwtcXBd7.js';
|
|
4
|
-
import './types-BdC3SRH-.js';
|
|
5
|
-
|
|
6
|
-
declare function useJmpAnalytics(): JmpAnalytics | null;
|
|
7
|
-
type JmpTrackedTelLinkProps = ComponentPropsWithoutRef<"a"> & {
|
|
8
|
-
href: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* `tel:` (or other) link that records a `call_click` with the current path.
|
|
12
|
-
*/
|
|
13
|
-
declare function JmpTrackedTelLink({ href, onClick, ...rest }: JmpTrackedTelLinkProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
type JmpTrackedMailtoLinkProps = ComponentPropsWithoutRef<"a"> & {
|
|
15
|
-
href: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* `mailto:` link that records an `email_click` with the current path.
|
|
19
|
-
*/
|
|
20
|
-
declare function JmpTrackedMailtoLink({ href, onClick, ...rest }: JmpTrackedMailtoLinkProps): react_jsx_runtime.JSX.Element;
|
|
21
|
-
|
|
22
|
-
export { JmpTrackedMailtoLink, type JmpTrackedMailtoLinkProps, JmpTrackedTelLink, type JmpTrackedTelLinkProps, useJmpAnalytics };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { k as JmpContentWrapper, l as JmpContentManifest, m as JmpContentConfig } from './types-BdC3SRH-.cjs';
|
|
2
|
-
|
|
3
|
-
type JmpSiteSocialLinks = {
|
|
4
|
-
linkedin: string | null;
|
|
5
|
-
instagram: string | null;
|
|
6
|
-
facebook: string | null;
|
|
7
|
-
x: string | null;
|
|
8
|
-
youtube: string | null;
|
|
9
|
-
};
|
|
10
|
-
/** Per-site values used when the dashboard profile is missing or fields are empty. */
|
|
11
|
-
type JmpSiteContactFallback = {
|
|
12
|
-
displayName?: string;
|
|
13
|
-
founderName?: string;
|
|
14
|
-
email?: string;
|
|
15
|
-
phone?: string | null;
|
|
16
|
-
linkedin?: string | null;
|
|
17
|
-
instagram?: string | null;
|
|
18
|
-
facebook?: string | null;
|
|
19
|
-
x?: string | null;
|
|
20
|
-
youtube?: string | null;
|
|
21
|
-
hours?: string | null;
|
|
22
|
-
serviceArea?: string | null;
|
|
23
|
-
address?: string | null;
|
|
24
|
-
googleMapsUrl?: string | null;
|
|
25
|
-
googleMapsEmbedUrl?: string | null;
|
|
26
|
-
dashboardDemoUrl?: string;
|
|
27
|
-
profilePhotoSrc?: string;
|
|
28
|
-
privacyUrl?: string;
|
|
29
|
-
termsUrl?: string;
|
|
30
|
-
};
|
|
31
|
-
type JmpSiteDefinition = {
|
|
32
|
-
/**
|
|
33
|
-
* Optional override. Wrappers are auto-discovered when content loaders run
|
|
34
|
-
* (`loadBlogPosts`, `loadFaqs`, etc.) and reported to the dashboard.
|
|
35
|
-
*/
|
|
36
|
-
contentWrappers?: JmpContentWrapper[];
|
|
37
|
-
/**
|
|
38
|
-
* Routes, trust block order, and contact extras for dashboard layout sync.
|
|
39
|
-
* Reported with capabilities when the site loads content from the portal.
|
|
40
|
-
*/
|
|
41
|
-
contentManifest?: JmpContentManifest;
|
|
42
|
-
/**
|
|
43
|
-
* Public site origin (no trailing slash), e.g. `https://example.com`.
|
|
44
|
-
* Used to resolve relative profile image paths in structured data.
|
|
45
|
-
*/
|
|
46
|
-
siteUrl?: string;
|
|
47
|
-
/**
|
|
48
|
-
* JMP dashboard origin (no trailing slash), e.g. `https://portal.example.com`.
|
|
49
|
-
* Fallback when `NEXT_PUBLIC_JMP_ANALYTICS_URL` is missing from the client bundle.
|
|
50
|
-
*/
|
|
51
|
-
analyticsPortalUrl?: string;
|
|
52
|
-
contactFallback?: JmpSiteContactFallback;
|
|
53
|
-
/**
|
|
54
|
-
* `extras` keys to read from the dashboard site profile (hyphenated keys from admin).
|
|
55
|
-
*/
|
|
56
|
-
contactExtraKeys?: {
|
|
57
|
-
founderName?: readonly string[];
|
|
58
|
-
dashboardDemoUrl?: readonly string[];
|
|
59
|
-
profilePhotoSrc?: readonly string[];
|
|
60
|
-
hours?: readonly string[];
|
|
61
|
-
serviceArea?: readonly string[];
|
|
62
|
-
googleMapsEmbedUrl?: readonly string[];
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Register site-specific JMP integration options once (typically from `jmp.config.ts`).
|
|
67
|
-
* Call at module load time before server content or instrumentation runs.
|
|
68
|
-
*/
|
|
69
|
-
declare function defineJmpSite(definition: JmpSiteDefinition): JmpSiteDefinition;
|
|
70
|
-
declare function getJmpSiteDefinition(): JmpSiteDefinition | null;
|
|
71
|
-
/** Server content + lead config: env vars + wrappers from {@link defineJmpSite}. */
|
|
72
|
-
declare function getJmpContentConfig(): JmpContentConfig | null;
|
|
73
|
-
|
|
74
|
-
export { type JmpSiteSocialLinks as J, type JmpSiteContactFallback as a, type JmpSiteDefinition as b, getJmpSiteDefinition as c, defineJmpSite as d, getJmpContentConfig as g };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { k as JmpContentWrapper, l as JmpContentManifest, m as JmpContentConfig } from './types-BdC3SRH-.js';
|
|
2
|
-
|
|
3
|
-
type JmpSiteSocialLinks = {
|
|
4
|
-
linkedin: string | null;
|
|
5
|
-
instagram: string | null;
|
|
6
|
-
facebook: string | null;
|
|
7
|
-
x: string | null;
|
|
8
|
-
youtube: string | null;
|
|
9
|
-
};
|
|
10
|
-
/** Per-site values used when the dashboard profile is missing or fields are empty. */
|
|
11
|
-
type JmpSiteContactFallback = {
|
|
12
|
-
displayName?: string;
|
|
13
|
-
founderName?: string;
|
|
14
|
-
email?: string;
|
|
15
|
-
phone?: string | null;
|
|
16
|
-
linkedin?: string | null;
|
|
17
|
-
instagram?: string | null;
|
|
18
|
-
facebook?: string | null;
|
|
19
|
-
x?: string | null;
|
|
20
|
-
youtube?: string | null;
|
|
21
|
-
hours?: string | null;
|
|
22
|
-
serviceArea?: string | null;
|
|
23
|
-
address?: string | null;
|
|
24
|
-
googleMapsUrl?: string | null;
|
|
25
|
-
googleMapsEmbedUrl?: string | null;
|
|
26
|
-
dashboardDemoUrl?: string;
|
|
27
|
-
profilePhotoSrc?: string;
|
|
28
|
-
privacyUrl?: string;
|
|
29
|
-
termsUrl?: string;
|
|
30
|
-
};
|
|
31
|
-
type JmpSiteDefinition = {
|
|
32
|
-
/**
|
|
33
|
-
* Optional override. Wrappers are auto-discovered when content loaders run
|
|
34
|
-
* (`loadBlogPosts`, `loadFaqs`, etc.) and reported to the dashboard.
|
|
35
|
-
*/
|
|
36
|
-
contentWrappers?: JmpContentWrapper[];
|
|
37
|
-
/**
|
|
38
|
-
* Routes, trust block order, and contact extras for dashboard layout sync.
|
|
39
|
-
* Reported with capabilities when the site loads content from the portal.
|
|
40
|
-
*/
|
|
41
|
-
contentManifest?: JmpContentManifest;
|
|
42
|
-
/**
|
|
43
|
-
* Public site origin (no trailing slash), e.g. `https://example.com`.
|
|
44
|
-
* Used to resolve relative profile image paths in structured data.
|
|
45
|
-
*/
|
|
46
|
-
siteUrl?: string;
|
|
47
|
-
/**
|
|
48
|
-
* JMP dashboard origin (no trailing slash), e.g. `https://portal.example.com`.
|
|
49
|
-
* Fallback when `NEXT_PUBLIC_JMP_ANALYTICS_URL` is missing from the client bundle.
|
|
50
|
-
*/
|
|
51
|
-
analyticsPortalUrl?: string;
|
|
52
|
-
contactFallback?: JmpSiteContactFallback;
|
|
53
|
-
/**
|
|
54
|
-
* `extras` keys to read from the dashboard site profile (hyphenated keys from admin).
|
|
55
|
-
*/
|
|
56
|
-
contactExtraKeys?: {
|
|
57
|
-
founderName?: readonly string[];
|
|
58
|
-
dashboardDemoUrl?: readonly string[];
|
|
59
|
-
profilePhotoSrc?: readonly string[];
|
|
60
|
-
hours?: readonly string[];
|
|
61
|
-
serviceArea?: readonly string[];
|
|
62
|
-
googleMapsEmbedUrl?: readonly string[];
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Register site-specific JMP integration options once (typically from `jmp.config.ts`).
|
|
67
|
-
* Call at module load time before server content or instrumentation runs.
|
|
68
|
-
*/
|
|
69
|
-
declare function defineJmpSite(definition: JmpSiteDefinition): JmpSiteDefinition;
|
|
70
|
-
declare function getJmpSiteDefinition(): JmpSiteDefinition | null;
|
|
71
|
-
/** Server content + lead config: env vars + wrappers from {@link defineJmpSite}. */
|
|
72
|
-
declare function getJmpContentConfig(): JmpContentConfig | null;
|
|
73
|
-
|
|
74
|
-
export { type JmpSiteSocialLinks as J, type JmpSiteContactFallback as a, type JmpSiteDefinition as b, getJmpSiteDefinition as c, defineJmpSite as d, getJmpContentConfig as g };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { n as JmpServerRequestLike } from './types-BdC3SRH-.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Records a server-side page view when JMP env is configured.
|
|
5
|
-
* Framework-agnostic — pass any `Request`-like object (Next middleware, Astro `context.request`).
|
|
6
|
-
*
|
|
7
|
-
* Skips Next.js RSC/prefetch requests. When using {@link JmpSiteRoot} for browser
|
|
8
|
-
* page views, do not call this from middleware — it duplicates counts and omits `sessionId`.
|
|
9
|
-
*/
|
|
10
|
-
declare function jmpTrackServerPageView(request: JmpServerRequestLike): Promise<void>;
|
|
11
|
-
|
|
12
|
-
export { jmpTrackServerPageView as j };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { n as JmpServerRequestLike } from './types-BdC3SRH-.cjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Records a server-side page view when JMP env is configured.
|
|
5
|
-
* Framework-agnostic — pass any `Request`-like object (Next middleware, Astro `context.request`).
|
|
6
|
-
*
|
|
7
|
-
* Skips Next.js RSC/prefetch requests. When using {@link JmpSiteRoot} for browser
|
|
8
|
-
* page views, do not call this from middleware — it duplicates counts and omits `sessionId`.
|
|
9
|
-
*/
|
|
10
|
-
declare function jmpTrackServerPageView(request: JmpServerRequestLike): Promise<void>;
|
|
11
|
-
|
|
12
|
-
export { jmpTrackServerPageView as j };
|