@jmp-technologies/analytics 0.1.33 → 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.
Files changed (96) hide show
  1. package/dist/astro/client.cjs +4 -1
  2. package/dist/astro/client.cjs.map +1 -1
  3. package/dist/astro/client.js +1 -1
  4. package/dist/astro/content.cjs +34 -1
  5. package/dist/astro/content.cjs.map +1 -1
  6. package/dist/astro/content.js +4 -2
  7. package/dist/astro/integration.cjs +4 -1
  8. package/dist/astro/integration.cjs.map +1 -1
  9. package/dist/astro/integration.js +2 -2
  10. package/dist/astro/register.cjs +4 -1
  11. package/dist/astro/register.cjs.map +1 -1
  12. package/dist/astro/register.js +2 -2
  13. package/dist/{chunk-FH5CJNQD.js → chunk-3ET7F6MZ.js} +16 -3
  14. package/dist/chunk-3ET7F6MZ.js.map +1 -0
  15. package/dist/{chunk-AIOUOA24.js → chunk-4ZUW24F6.js} +2 -2
  16. package/dist/{chunk-KTPL3R5E.js → chunk-6SMPRPQ3.js} +24 -2
  17. package/dist/chunk-6SMPRPQ3.js.map +1 -0
  18. package/dist/{chunk-4Q6YOXKB.js → chunk-G322JCI3.js} +2 -2
  19. package/dist/{chunk-JMALYARK.js → chunk-VUCOCFVE.js} +2 -2
  20. package/dist/index.cjs +24 -1
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.js +3 -1
  23. package/dist/next/content.cjs +35 -1
  24. package/dist/next/content.cjs.map +1 -1
  25. package/dist/next/content.js +5 -2
  26. package/dist/next/content.js.map +1 -1
  27. package/dist/next/instrumentation.cjs +4 -1
  28. package/dist/next/instrumentation.cjs.map +1 -1
  29. package/dist/next/instrumentation.js +1 -1
  30. package/dist/next/landing-pages.cjs +4 -1
  31. package/dist/next/landing-pages.cjs.map +1 -1
  32. package/dist/next/landing-pages.js +2 -2
  33. package/dist/next/locations.cjs +4 -1
  34. package/dist/next/locations.cjs.map +1 -1
  35. package/dist/next/locations.js +2 -2
  36. package/dist/next/site-root-server.cjs +4 -1
  37. package/dist/next/site-root-server.cjs.map +1 -1
  38. package/dist/next/site-root-server.js +3 -3
  39. package/dist/next.cjs +4 -1
  40. package/dist/next.cjs.map +1 -1
  41. package/dist/next.js +3 -3
  42. package/dist/react.cjs +4 -1
  43. package/dist/react.cjs.map +1 -1
  44. package/dist/react.js +2 -2
  45. package/package.json +1 -1
  46. package/dist/astro/client.d.cts +0 -18
  47. package/dist/astro/client.d.ts +0 -18
  48. package/dist/astro/content.d.cts +0 -48
  49. package/dist/astro/content.d.ts +0 -48
  50. package/dist/astro/integration.d.cts +0 -36
  51. package/dist/astro/integration.d.ts +0 -36
  52. package/dist/astro/middleware.d.cts +0 -19
  53. package/dist/astro/middleware.d.ts +0 -19
  54. package/dist/astro/register.d.cts +0 -7
  55. package/dist/astro/register.d.ts +0 -7
  56. package/dist/chunk-FH5CJNQD.js.map +0 -1
  57. package/dist/chunk-KTPL3R5E.js.map +0 -1
  58. package/dist/create-jmp-analytics-CwtcXBd7.d.ts +0 -69
  59. package/dist/create-jmp-analytics-lkGcysG_.d.cts +0 -69
  60. package/dist/env-public-B6Y0DG68.d.cts +0 -14
  61. package/dist/env-public-B6Y0DG68.d.ts +0 -14
  62. package/dist/index.d.cts +0 -104
  63. package/dist/index.d.ts +0 -104
  64. package/dist/landing-capture-C8pyZWuF.d.cts +0 -4
  65. package/dist/landing-capture-C8pyZWuF.d.ts +0 -4
  66. package/dist/next/content.d.cts +0 -22
  67. package/dist/next/content.d.ts +0 -22
  68. package/dist/next/google-tag.d.cts +0 -17
  69. package/dist/next/google-tag.d.ts +0 -17
  70. package/dist/next/instrumentation.d.cts +0 -7
  71. package/dist/next/instrumentation.d.ts +0 -7
  72. package/dist/next/landing-capture-script-server.d.cts +0 -14
  73. package/dist/next/landing-capture-script-server.d.ts +0 -14
  74. package/dist/next/landing-pages.d.cts +0 -92
  75. package/dist/next/landing-pages.d.ts +0 -92
  76. package/dist/next/locations.d.cts +0 -55
  77. package/dist/next/locations.d.ts +0 -55
  78. package/dist/next/middleware.d.cts +0 -10
  79. package/dist/next/middleware.d.ts +0 -10
  80. package/dist/next/site-root-server.d.cts +0 -24
  81. package/dist/next/site-root-server.d.ts +0 -24
  82. package/dist/next.d.cts +0 -50
  83. package/dist/next.d.ts +0 -50
  84. package/dist/react.d.cts +0 -22
  85. package/dist/react.d.ts +0 -22
  86. package/dist/site-config-BMlEQ_8g.d.cts +0 -74
  87. package/dist/site-config-BbE6kGDd.d.ts +0 -74
  88. package/dist/track-page-view-BPWGGoMr.d.ts +0 -12
  89. package/dist/track-page-view-DaNOaIxF.d.cts +0 -12
  90. package/dist/types-BdC3SRH-.d.cts +0 -386
  91. package/dist/types-BdC3SRH-.d.ts +0 -386
  92. package/dist/utils-B4E-pcQ0.d.ts +0 -15
  93. package/dist/utils-DIHFgovG.d.cts +0 -15
  94. /package/dist/{chunk-AIOUOA24.js.map → chunk-4ZUW24F6.js.map} +0 -0
  95. /package/dist/{chunk-4Q6YOXKB.js.map → chunk-G322JCI3.js.map} +0 -0
  96. /package/dist/{chunk-JMALYARK.js.map → chunk-VUCOCFVE.js.map} +0 -0
@@ -1,55 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Metadata } from 'next';
3
- import { ComponentType, ReactNode } from 'react';
4
- import { i as JmpWebsiteLocation } from '../types-BdC3SRH-.js';
5
- export { p as plainTextFromMarkdown, r as resolveJmpSiteUrl } from '../utils-B4E-pcQ0.js';
6
-
7
- type JmpLocationPageClassNames = {
8
- title?: string;
9
- excerpt?: string;
10
- list?: string;
11
- listItem?: string;
12
- emptyState?: string;
13
- };
14
- type JmpLocationPageComponents = {
15
- Link?: ComponentType<{
16
- href: string;
17
- className?: string;
18
- children: ReactNode;
19
- }>;
20
- renderBody?: (body: string) => ReactNode;
21
- renderJsonLd?: (data: Record<string, unknown>[], id: string) => ReactNode;
22
- };
23
- type JmpLocationDetailPageProps = {
24
- slug: string;
25
- siteUrl?: string;
26
- components?: JmpLocationPageComponents;
27
- className?: string;
28
- classNames?: JmpLocationPageClassNames;
29
- };
30
- type JmpLocationHubPageProps = {
31
- siteUrl?: string;
32
- components?: JmpLocationPageComponents;
33
- className?: string;
34
- classNames?: JmpLocationPageClassNames;
35
- };
36
- type BuildJmpLocationSitemapRoutesOptions = {
37
- siteUrl?: string;
38
- changeFrequency?: "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never";
39
- };
40
- type JmpLocationSitemapRoute = {
41
- url: string;
42
- lastModified?: Date;
43
- changeFrequency?: BuildJmpLocationSitemapRoutesOptions["changeFrequency"];
44
- priority?: number;
45
- };
46
- declare function generateJmpLocationStaticParams(): Promise<{
47
- slug: string;
48
- }[]>;
49
- declare function buildJmpLocationMetadata({ slug, siteUrl, }: JmpLocationDetailPageProps): Promise<Metadata>;
50
- declare function buildJmpLocationHubMetadata(siteUrl?: string): Metadata;
51
- declare function buildJmpLocationSitemapRoutes(locations: JmpWebsiteLocation[], options?: BuildJmpLocationSitemapRoutesOptions): JmpLocationSitemapRoute[];
52
- declare function JmpLocationHubPage({ components, className, classNames, }: JmpLocationHubPageProps): Promise<react_jsx_runtime.JSX.Element>;
53
- declare function JmpLocationDetailPage({ slug, siteUrl, components, className, classNames, }: JmpLocationDetailPageProps): Promise<react_jsx_runtime.JSX.Element>;
54
-
55
- export { type BuildJmpLocationSitemapRoutesOptions, JmpLocationDetailPage, type JmpLocationDetailPageProps, JmpLocationHubPage, type JmpLocationHubPageProps, type JmpLocationPageClassNames, type JmpLocationPageComponents, type JmpLocationSitemapRoute, buildJmpLocationHubMetadata, buildJmpLocationMetadata, buildJmpLocationSitemapRoutes, generateJmpLocationStaticParams };
@@ -1,10 +0,0 @@
1
- export { n as JmpServerRequestLike } from '../types-BdC3SRH-.cjs';
2
- export { j as jmpTrackServerPageView } from '../track-page-view-DaNOaIxF.cjs';
3
-
4
- /**
5
- * Default middleware matcher string for copy-paste into the client `middleware.ts`.
6
- * Do **not** spread this into `export const config` — Next.js requires a literal array there.
7
- */
8
- declare const JMP_MIDDLEWARE_MATCHER: readonly ["/((?!_next/static|_next/image|favicon.ico|.*\\.(?:ico|png|jpg|jpeg|gif|webp|svg|webm|mp4|css|js|woff2?|txt|xml)$).*)"];
9
-
10
- export { JMP_MIDDLEWARE_MATCHER };
@@ -1,10 +0,0 @@
1
- export { n as JmpServerRequestLike } from '../types-BdC3SRH-.js';
2
- export { j as jmpTrackServerPageView } from '../track-page-view-BPWGGoMr.js';
3
-
4
- /**
5
- * Default middleware matcher string for copy-paste into the client `middleware.ts`.
6
- * Do **not** spread this into `export const config` — Next.js requires a literal array there.
7
- */
8
- declare const JMP_MIDDLEWARE_MATCHER: readonly ["/((?!_next/static|_next/image|favicon.ico|.*\\.(?:ico|png|jpg|jpeg|gif|webp|svg|webm|mp4|css|js|woff2?|txt|xml)$).*)"];
9
-
10
- export { JMP_MIDDLEWARE_MATCHER };
@@ -1,24 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- type JmpSiteRootServerProps = {
5
- children: ReactNode;
6
- deferUntilConsent?: boolean;
7
- /**
8
- * When true (default), loads GA4 from the dashboard site profile when
9
- * `NEXT_PUBLIC_GA_MEASUREMENT_ID` is unset. Set false to use env-only GA.
10
- */
11
- gaFromPortal?: boolean;
12
- };
13
- /**
14
- * Server Component: reads `process.env` at request time and passes config into the
15
- * client tracker. Use this in `app/layout.tsx` instead of importing `JmpSiteRoot`
16
- * directly — fixes missing `POST /api/events` when env vars are not inlined into
17
- * client chunks (common on Vercel if vars were added after build or mis-scoped).
18
- *
19
- * Optional GA4: set `ga_measurement_id` in jmp-dashboard (Content → Contact, admin)
20
- * or `NEXT_PUBLIC_GA_MEASUREMENT_ID` on the client site (env wins).
21
- */
22
- declare function JmpSiteRootServer({ children, deferUntilConsent, gaFromPortal, }: JmpSiteRootServerProps): Promise<react_jsx_runtime.JSX.Element>;
23
-
24
- export { JmpSiteRootServer, type JmpSiteRootServerProps };
@@ -1,24 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- type JmpSiteRootServerProps = {
5
- children: ReactNode;
6
- deferUntilConsent?: boolean;
7
- /**
8
- * When true (default), loads GA4 from the dashboard site profile when
9
- * `NEXT_PUBLIC_GA_MEASUREMENT_ID` is unset. Set false to use env-only GA.
10
- */
11
- gaFromPortal?: boolean;
12
- };
13
- /**
14
- * Server Component: reads `process.env` at request time and passes config into the
15
- * client tracker. Use this in `app/layout.tsx` instead of importing `JmpSiteRoot`
16
- * directly — fixes missing `POST /api/events` when env vars are not inlined into
17
- * client chunks (common on Vercel if vars were added after build or mis-scoped).
18
- *
19
- * Optional GA4: set `ga_measurement_id` in jmp-dashboard (Content → Contact, admin)
20
- * or `NEXT_PUBLIC_GA_MEASUREMENT_ID` on the client site (env wins).
21
- */
22
- declare function JmpSiteRootServer({ children, deferUntilConsent, gaFromPortal, }: JmpSiteRootServerProps): Promise<react_jsx_runtime.JSX.Element>;
23
-
24
- export { JmpSiteRootServer, type JmpSiteRootServerProps };
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 };