@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.
Files changed (95) hide show
  1. package/dist/astro/client.cjs +1 -1
  2. package/dist/astro/client.cjs.map +1 -1
  3. package/dist/astro/client.d.cts +18 -0
  4. package/dist/astro/client.d.ts +18 -0
  5. package/dist/astro/client.js +1 -1
  6. package/dist/astro/content.cjs +1 -1
  7. package/dist/astro/content.cjs.map +1 -1
  8. package/dist/astro/content.d.cts +53 -0
  9. package/dist/astro/content.d.ts +53 -0
  10. package/dist/astro/content.js +2 -2
  11. package/dist/astro/integration.cjs +1 -1
  12. package/dist/astro/integration.cjs.map +1 -1
  13. package/dist/astro/integration.d.cts +36 -0
  14. package/dist/astro/integration.d.ts +36 -0
  15. package/dist/astro/integration.js +2 -2
  16. package/dist/astro/middleware.d.cts +19 -0
  17. package/dist/astro/middleware.d.ts +19 -0
  18. package/dist/astro/register.cjs +1 -1
  19. package/dist/astro/register.cjs.map +1 -1
  20. package/dist/astro/register.d.cts +7 -0
  21. package/dist/astro/register.d.ts +7 -0
  22. package/dist/astro/register.js +2 -2
  23. package/dist/{chunk-VUCOCFVE.js → chunk-3ZEMXII6.js} +2 -2
  24. package/dist/{chunk-4ZUW24F6.js → chunk-AGGLRTUQ.js} +2 -2
  25. package/dist/{chunk-G322JCI3.js → chunk-NAQU6RAE.js} +2 -2
  26. package/dist/{chunk-3ET7F6MZ.js → chunk-RNZTKIC6.js} +2 -2
  27. package/dist/chunk-RNZTKIC6.js.map +1 -0
  28. package/dist/{chunk-6SMPRPQ3.js → chunk-YFG3AQ35.js} +2 -2
  29. package/dist/chunk-YFG3AQ35.js.map +1 -0
  30. package/dist/create-jmp-analytics-Bz0-K0Af.d.cts +69 -0
  31. package/dist/create-jmp-analytics-DRjrlWUn.d.ts +69 -0
  32. package/dist/env-public-B6Y0DG68.d.cts +14 -0
  33. package/dist/env-public-B6Y0DG68.d.ts +14 -0
  34. package/dist/index.cjs +1 -1
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +110 -0
  37. package/dist/index.d.ts +110 -0
  38. package/dist/index.js +1 -1
  39. package/dist/landing-capture-C8pyZWuF.d.cts +4 -0
  40. package/dist/landing-capture-C8pyZWuF.d.ts +4 -0
  41. package/dist/next/content.cjs +1 -1
  42. package/dist/next/content.cjs.map +1 -1
  43. package/dist/next/content.d.cts +23 -0
  44. package/dist/next/content.d.ts +23 -0
  45. package/dist/next/content.js +2 -2
  46. package/dist/next/google-tag.d.cts +17 -0
  47. package/dist/next/google-tag.d.ts +17 -0
  48. package/dist/next/instrumentation.cjs +1 -1
  49. package/dist/next/instrumentation.cjs.map +1 -1
  50. package/dist/next/instrumentation.d.cts +7 -0
  51. package/dist/next/instrumentation.d.ts +7 -0
  52. package/dist/next/instrumentation.js +1 -1
  53. package/dist/next/landing-capture-script-server.d.cts +14 -0
  54. package/dist/next/landing-capture-script-server.d.ts +14 -0
  55. package/dist/next/landing-pages.cjs +1 -1
  56. package/dist/next/landing-pages.cjs.map +1 -1
  57. package/dist/next/landing-pages.d.cts +92 -0
  58. package/dist/next/landing-pages.d.ts +92 -0
  59. package/dist/next/landing-pages.js +2 -2
  60. package/dist/next/locations.cjs +1 -1
  61. package/dist/next/locations.cjs.map +1 -1
  62. package/dist/next/locations.d.cts +55 -0
  63. package/dist/next/locations.d.ts +55 -0
  64. package/dist/next/locations.js +2 -2
  65. package/dist/next/middleware.d.cts +10 -0
  66. package/dist/next/middleware.d.ts +10 -0
  67. package/dist/next/site-root-server.cjs +1 -1
  68. package/dist/next/site-root-server.cjs.map +1 -1
  69. package/dist/next/site-root-server.d.cts +24 -0
  70. package/dist/next/site-root-server.d.ts +24 -0
  71. package/dist/next/site-root-server.js +3 -3
  72. package/dist/next.cjs +1 -1
  73. package/dist/next.cjs.map +1 -1
  74. package/dist/next.d.cts +50 -0
  75. package/dist/next.d.ts +50 -0
  76. package/dist/next.js +3 -3
  77. package/dist/react.cjs +1 -1
  78. package/dist/react.cjs.map +1 -1
  79. package/dist/react.d.cts +22 -0
  80. package/dist/react.d.ts +22 -0
  81. package/dist/react.js +2 -2
  82. package/dist/site-config-BxEmJxBB.d.ts +74 -0
  83. package/dist/site-config-Cgq67uQ1.d.cts +74 -0
  84. package/dist/track-page-view-74Su6lQY.d.ts +12 -0
  85. package/dist/track-page-view-BCX1Dsfk.d.cts +12 -0
  86. package/dist/types-yNgoakwk.d.cts +397 -0
  87. package/dist/types-yNgoakwk.d.ts +397 -0
  88. package/dist/utils-BLoWWfSw.d.ts +15 -0
  89. package/dist/utils-UPTIdK1D.d.cts +15 -0
  90. package/package.json +3 -2
  91. package/dist/chunk-3ET7F6MZ.js.map +0 -1
  92. package/dist/chunk-6SMPRPQ3.js.map +0 -1
  93. /package/dist/{chunk-VUCOCFVE.js.map → chunk-3ZEMXII6.js.map} +0 -0
  94. /package/dist/{chunk-4ZUW24F6.js.map → chunk-AGGLRTUQ.js.map} +0 -0
  95. /package/dist/{chunk-G322JCI3.js.map → chunk-NAQU6RAE.js.map} +0 -0
@@ -0,0 +1,110 @@
1
+ export { b as buildLandingCaptureInlineScript } from './landing-capture-C8pyZWuF.cjs';
2
+ import { J as JmpAnalytics } from './create-jmp-analytics-Bz0-K0Af.cjs';
3
+ export { B as BOOKING_LINK_HOSTS, C as ClassifiedContactLink, b as ContactLinkChannel, c as classifyContactHref, d as createJmpAnalytics, i as isJmpTrackingConsentGranted, s as setJmpTrackingConsent, a as subscribeJmpTrackingConsent } from './create-jmp-analytics-Bz0-K0Af.cjs';
4
+ import { n as JmpContentConfig, s as TrackServerPageViewOptions, i as JmpTrustBundle, l as JmpContentWrapper, d as JmpLandingPageKind, b as JmpLandingPage, c as JmpLandingPageDetail, f as JmpPopularPagesResult, J as JmpBlogPost, t as JmpBlogPostDetail, u as JmpFaqItemDetail, a as JmpFaqItem, e as JmpLandingPageSitemapEntry, k as JmpWebsiteLocationDetail, j as JmpWebsiteLocation, g as JmpSiteProfile, p as JmpAnalyticsConfig } from './types-yNgoakwk.cjs';
5
+ export { v as JmpContactExtraManifest, w as JmpContentLocaleAlternate, m as JmpContentManifest, x as JmpContentRouteManifest, y as JmpContentWrapperReportMode, z as JmpCredential, q as JmpEventType, A as JmpPartnerLogo, B as JmpPopularPage, o as JmpServerRequestLike, h as JmpTestimonial, C as JmpTrustBlockManifest, D as JmpTrustSection, E as JmpTrustStat, F as JmpTrustSummary, L as LeadMetadata, G as LeadMetadataValue, r as TrackLeadOptions, T as TrackPageViewOptions, H as normalizeJmpContentManifest, I as stableJmpManifestFingerprint } from './types-yNgoakwk.cjs';
6
+ export { J as JmpPublicEnv, r as readJmpPublicEnvFromProcess } from './env-public-B6Y0DG68.cjs';
7
+ export { a as JmpSiteContactFallback, b as JmpSiteDefinition, d as defineJmpSite, g as getJmpContentConfig, c as getJmpSiteDefinition } from './site-config-Cgq67uQ1.cjs';
8
+
9
+ /** Published package version — sent with capabilities for admin readiness. */
10
+ declare const JMP_ANALYTICS_SDK_VERSION: string;
11
+ /** `localStorage` key when {@link JmpAnalyticsConfig.requireConsent} is enabled. */
12
+ declare const JMP_TRACKING_CONSENT_STORAGE_KEY = "jmp_analytics_consent_v1";
13
+ /** Default `pageViewDedupeMs` when resolving browser config from env (Strict Mode / SPA). */
14
+ declare const DEFAULT_JMP_BROWSER_PAGE_VIEW_DEDUPE_MS = 2500;
15
+
16
+ declare function trackJmpServerPageView(config: JmpContentConfig, options?: TrackServerPageViewOptions): Promise<void>;
17
+
18
+ declare function markContentWrapper(slot: JmpContentWrapper | string): void;
19
+ declare function inferTrustWrapperSlots(bundle: JmpTrustBundle): string[];
20
+ declare function getDiscoveredContentWrappers(): string[];
21
+ declare function resetContentWrapperDiscoveryForTests(): void;
22
+
23
+ declare function getJmpBlogPosts(config: JmpContentConfig, filters?: {
24
+ locale?: string;
25
+ }): Promise<JmpBlogPost[]>;
26
+ declare function getJmpBlogPost(config: JmpContentConfig, slug: string, locale?: string): Promise<JmpBlogPost | null>;
27
+ declare function getJmpBlogPostDetail(config: JmpContentConfig, slug: string, locale?: string): Promise<JmpBlogPostDetail | null>;
28
+ declare function getJmpFaqs(config: JmpContentConfig, filters?: {
29
+ locale?: string;
30
+ }): Promise<JmpFaqItem[]>;
31
+ declare function getJmpFaqDetail(config: JmpContentConfig, slug: string, locale?: string): Promise<JmpFaqItemDetail | null>;
32
+ declare function getJmpLandingPages(config: JmpContentConfig, filters?: {
33
+ kind?: JmpLandingPageKind;
34
+ locale?: string;
35
+ }): Promise<JmpLandingPage[]>;
36
+ declare function getJmpLandingPageDetail(config: JmpContentConfig, kind: JmpLandingPageKind, slug: string, locale?: string): Promise<JmpLandingPageDetail | null>;
37
+ declare function getJmpLandingPageSitemap(config: JmpContentConfig): Promise<JmpLandingPageSitemapEntry[]>;
38
+ declare function getJmpLocations(config: JmpContentConfig): Promise<JmpWebsiteLocation[]>;
39
+ declare function getJmpLocationDetail(config: JmpContentConfig, slug: string): Promise<JmpWebsiteLocationDetail | null>;
40
+ declare function getJmpTrustBundle(config: JmpContentConfig): Promise<JmpTrustBundle>;
41
+ declare function getJmpSiteProfile(config: JmpContentConfig): Promise<JmpSiteProfile>;
42
+ declare function getJmpRobotsTxt(config: JmpContentConfig): Promise<string>;
43
+ declare function getJmpPopularPages(config: JmpContentConfig, filters?: {
44
+ prefix?: string;
45
+ days?: number;
46
+ limit?: number;
47
+ }): Promise<JmpPopularPagesResult>;
48
+ /**
49
+ * Tell the JMP dashboard which content wrappers this site wires (blog, faq, trust.*, contact).
50
+ * Uses auto-discovered slots from content API usage unless `contentWrapperMode` is `manual`.
51
+ * Safe to call on every cold start; dedupes by tracking key + wrapper list.
52
+ */
53
+ declare function registerJmpContentWrappers(config: JmpContentConfig): Promise<{
54
+ ok: true;
55
+ wrappers: string[];
56
+ } | {
57
+ ok: false;
58
+ skipped: true;
59
+ }>;
60
+
61
+ declare function createJmpContentClient(config: JmpContentConfig): {
62
+ getBlogPosts: (filters?: {
63
+ locale?: string;
64
+ }) => Promise<JmpBlogPost[]>;
65
+ getBlogPost: (slug: string, locale?: string) => Promise<JmpBlogPost | null>;
66
+ getFaqs: (filters?: {
67
+ locale?: string;
68
+ }) => Promise<JmpFaqItem[]>;
69
+ getLandingPages: (filters?: Parameters<typeof getJmpLandingPages>[1]) => Promise<JmpLandingPage[]>;
70
+ getLandingPageDetail: (kind: Parameters<typeof getJmpLandingPageDetail>[1], slug: string, locale?: string) => Promise<JmpLandingPageDetail | null>;
71
+ getLandingPageSitemap: () => Promise<JmpLandingPageSitemapEntry[]>;
72
+ getTrustBundle: () => Promise<JmpTrustBundle>;
73
+ getSiteProfile: () => Promise<JmpSiteProfile>;
74
+ getRobotsTxt: () => Promise<string>;
75
+ getPopularPages: (filters?: Parameters<typeof getJmpPopularPages>[1]) => Promise<JmpPopularPagesResult>;
76
+ registerContentWrappers: () => Promise<{
77
+ ok: true;
78
+ wrappers: string[];
79
+ } | {
80
+ ok: false;
81
+ skipped: true;
82
+ }>;
83
+ };
84
+ type JmpContentClient = ReturnType<typeof createJmpContentClient>;
85
+
86
+ /**
87
+ * Browser / client bundle: reads `NEXT_PUBLIC_*` or Astro `PUBLIC_*` vars.
88
+ * Use for `createJmpAnalytics` on the client. Returns `null` if incomplete.
89
+ */
90
+ declare function getJmpBrowserAnalyticsConfigFromEnv(overrides?: Partial<JmpAnalyticsConfig>): JmpAnalyticsConfig | null;
91
+ /**
92
+ * Server / Node (SSR, Route Handlers, `getStaticProps`, etc.):
93
+ * Same **`NEXT_PUBLIC_*`** vars as the browser (`NEXT_PUBLIC_JMP_ANALYTICS_URL` +
94
+ * `NEXT_PUBLIC_JMP_TRACKING_KEY`). Next.js injects these on the server for RSC/fetches.
95
+ * Returns `null` if incomplete.
96
+ */
97
+ declare function getJmpServerContentConfigFromEnv(overrides?: Partial<JmpContentConfig>): JmpContentConfig | null;
98
+ declare function isJmpBrowserAnalyticsEnvConfigured(): boolean;
99
+ declare function isJmpServerContentEnvConfigured(): boolean;
100
+ /**
101
+ * One `JmpAnalytics` instance per browser tab (module singleton). Safe for page views and events.
102
+ * Returns `null` on the server or when public env vars are missing.
103
+ */
104
+ declare function getOrCreateJmpAnalyticsFromBrowserEnv(overrides?: Partial<JmpAnalyticsConfig>): JmpAnalytics | null;
105
+ /**
106
+ * `createJmpContentClient` using server env resolution. Returns `null` if env is incomplete.
107
+ */
108
+ declare function createJmpContentClientFromServerEnv(overrides?: Partial<JmpContentConfig>): JmpContentClient | null;
109
+
110
+ export { DEFAULT_JMP_BROWSER_PAGE_VIEW_DEDUPE_MS, JMP_ANALYTICS_SDK_VERSION, JMP_TRACKING_CONSENT_STORAGE_KEY, JmpAnalytics, JmpAnalyticsConfig, JmpBlogPost, JmpBlogPostDetail, type JmpContentClient, JmpContentConfig, JmpContentWrapper, JmpFaqItem, JmpFaqItemDetail, JmpLandingPage, JmpLandingPageDetail, JmpLandingPageKind, JmpLandingPageSitemapEntry, JmpPopularPagesResult, JmpSiteProfile, JmpTrustBundle, JmpWebsiteLocation, JmpWebsiteLocationDetail, TrackServerPageViewOptions, createJmpContentClient, createJmpContentClientFromServerEnv, getDiscoveredContentWrappers, getJmpBlogPost, getJmpBlogPostDetail, getJmpBlogPosts, getJmpBrowserAnalyticsConfigFromEnv, getJmpFaqDetail, getJmpFaqs, getJmpLandingPageDetail, getJmpLandingPageSitemap, getJmpLandingPages, getJmpLocationDetail, getJmpLocations, getJmpPopularPages, getJmpRobotsTxt, getJmpServerContentConfigFromEnv, getJmpSiteProfile, getJmpTrustBundle, getOrCreateJmpAnalyticsFromBrowserEnv, inferTrustWrapperSlots, isJmpBrowserAnalyticsEnvConfigured, isJmpServerContentEnvConfigured, markContentWrapper, registerJmpContentWrappers, resetContentWrapperDiscoveryForTests, trackJmpServerPageView };
@@ -0,0 +1,110 @@
1
+ export { b as buildLandingCaptureInlineScript } from './landing-capture-C8pyZWuF.js';
2
+ import { J as JmpAnalytics } from './create-jmp-analytics-DRjrlWUn.js';
3
+ export { B as BOOKING_LINK_HOSTS, C as ClassifiedContactLink, b as ContactLinkChannel, c as classifyContactHref, d as createJmpAnalytics, i as isJmpTrackingConsentGranted, s as setJmpTrackingConsent, a as subscribeJmpTrackingConsent } from './create-jmp-analytics-DRjrlWUn.js';
4
+ import { n as JmpContentConfig, s as TrackServerPageViewOptions, i as JmpTrustBundle, l as JmpContentWrapper, d as JmpLandingPageKind, b as JmpLandingPage, c as JmpLandingPageDetail, f as JmpPopularPagesResult, J as JmpBlogPost, t as JmpBlogPostDetail, u as JmpFaqItemDetail, a as JmpFaqItem, e as JmpLandingPageSitemapEntry, k as JmpWebsiteLocationDetail, j as JmpWebsiteLocation, g as JmpSiteProfile, p as JmpAnalyticsConfig } from './types-yNgoakwk.js';
5
+ export { v as JmpContactExtraManifest, w as JmpContentLocaleAlternate, m as JmpContentManifest, x as JmpContentRouteManifest, y as JmpContentWrapperReportMode, z as JmpCredential, q as JmpEventType, A as JmpPartnerLogo, B as JmpPopularPage, o as JmpServerRequestLike, h as JmpTestimonial, C as JmpTrustBlockManifest, D as JmpTrustSection, E as JmpTrustStat, F as JmpTrustSummary, L as LeadMetadata, G as LeadMetadataValue, r as TrackLeadOptions, T as TrackPageViewOptions, H as normalizeJmpContentManifest, I as stableJmpManifestFingerprint } from './types-yNgoakwk.js';
6
+ export { J as JmpPublicEnv, r as readJmpPublicEnvFromProcess } from './env-public-B6Y0DG68.js';
7
+ export { a as JmpSiteContactFallback, b as JmpSiteDefinition, d as defineJmpSite, g as getJmpContentConfig, c as getJmpSiteDefinition } from './site-config-BxEmJxBB.js';
8
+
9
+ /** Published package version — sent with capabilities for admin readiness. */
10
+ declare const JMP_ANALYTICS_SDK_VERSION: string;
11
+ /** `localStorage` key when {@link JmpAnalyticsConfig.requireConsent} is enabled. */
12
+ declare const JMP_TRACKING_CONSENT_STORAGE_KEY = "jmp_analytics_consent_v1";
13
+ /** Default `pageViewDedupeMs` when resolving browser config from env (Strict Mode / SPA). */
14
+ declare const DEFAULT_JMP_BROWSER_PAGE_VIEW_DEDUPE_MS = 2500;
15
+
16
+ declare function trackJmpServerPageView(config: JmpContentConfig, options?: TrackServerPageViewOptions): Promise<void>;
17
+
18
+ declare function markContentWrapper(slot: JmpContentWrapper | string): void;
19
+ declare function inferTrustWrapperSlots(bundle: JmpTrustBundle): string[];
20
+ declare function getDiscoveredContentWrappers(): string[];
21
+ declare function resetContentWrapperDiscoveryForTests(): void;
22
+
23
+ declare function getJmpBlogPosts(config: JmpContentConfig, filters?: {
24
+ locale?: string;
25
+ }): Promise<JmpBlogPost[]>;
26
+ declare function getJmpBlogPost(config: JmpContentConfig, slug: string, locale?: string): Promise<JmpBlogPost | null>;
27
+ declare function getJmpBlogPostDetail(config: JmpContentConfig, slug: string, locale?: string): Promise<JmpBlogPostDetail | null>;
28
+ declare function getJmpFaqs(config: JmpContentConfig, filters?: {
29
+ locale?: string;
30
+ }): Promise<JmpFaqItem[]>;
31
+ declare function getJmpFaqDetail(config: JmpContentConfig, slug: string, locale?: string): Promise<JmpFaqItemDetail | null>;
32
+ declare function getJmpLandingPages(config: JmpContentConfig, filters?: {
33
+ kind?: JmpLandingPageKind;
34
+ locale?: string;
35
+ }): Promise<JmpLandingPage[]>;
36
+ declare function getJmpLandingPageDetail(config: JmpContentConfig, kind: JmpLandingPageKind, slug: string, locale?: string): Promise<JmpLandingPageDetail | null>;
37
+ declare function getJmpLandingPageSitemap(config: JmpContentConfig): Promise<JmpLandingPageSitemapEntry[]>;
38
+ declare function getJmpLocations(config: JmpContentConfig): Promise<JmpWebsiteLocation[]>;
39
+ declare function getJmpLocationDetail(config: JmpContentConfig, slug: string): Promise<JmpWebsiteLocationDetail | null>;
40
+ declare function getJmpTrustBundle(config: JmpContentConfig): Promise<JmpTrustBundle>;
41
+ declare function getJmpSiteProfile(config: JmpContentConfig): Promise<JmpSiteProfile>;
42
+ declare function getJmpRobotsTxt(config: JmpContentConfig): Promise<string>;
43
+ declare function getJmpPopularPages(config: JmpContentConfig, filters?: {
44
+ prefix?: string;
45
+ days?: number;
46
+ limit?: number;
47
+ }): Promise<JmpPopularPagesResult>;
48
+ /**
49
+ * Tell the JMP dashboard which content wrappers this site wires (blog, faq, trust.*, contact).
50
+ * Uses auto-discovered slots from content API usage unless `contentWrapperMode` is `manual`.
51
+ * Safe to call on every cold start; dedupes by tracking key + wrapper list.
52
+ */
53
+ declare function registerJmpContentWrappers(config: JmpContentConfig): Promise<{
54
+ ok: true;
55
+ wrappers: string[];
56
+ } | {
57
+ ok: false;
58
+ skipped: true;
59
+ }>;
60
+
61
+ declare function createJmpContentClient(config: JmpContentConfig): {
62
+ getBlogPosts: (filters?: {
63
+ locale?: string;
64
+ }) => Promise<JmpBlogPost[]>;
65
+ getBlogPost: (slug: string, locale?: string) => Promise<JmpBlogPost | null>;
66
+ getFaqs: (filters?: {
67
+ locale?: string;
68
+ }) => Promise<JmpFaqItem[]>;
69
+ getLandingPages: (filters?: Parameters<typeof getJmpLandingPages>[1]) => Promise<JmpLandingPage[]>;
70
+ getLandingPageDetail: (kind: Parameters<typeof getJmpLandingPageDetail>[1], slug: string, locale?: string) => Promise<JmpLandingPageDetail | null>;
71
+ getLandingPageSitemap: () => Promise<JmpLandingPageSitemapEntry[]>;
72
+ getTrustBundle: () => Promise<JmpTrustBundle>;
73
+ getSiteProfile: () => Promise<JmpSiteProfile>;
74
+ getRobotsTxt: () => Promise<string>;
75
+ getPopularPages: (filters?: Parameters<typeof getJmpPopularPages>[1]) => Promise<JmpPopularPagesResult>;
76
+ registerContentWrappers: () => Promise<{
77
+ ok: true;
78
+ wrappers: string[];
79
+ } | {
80
+ ok: false;
81
+ skipped: true;
82
+ }>;
83
+ };
84
+ type JmpContentClient = ReturnType<typeof createJmpContentClient>;
85
+
86
+ /**
87
+ * Browser / client bundle: reads `NEXT_PUBLIC_*` or Astro `PUBLIC_*` vars.
88
+ * Use for `createJmpAnalytics` on the client. Returns `null` if incomplete.
89
+ */
90
+ declare function getJmpBrowserAnalyticsConfigFromEnv(overrides?: Partial<JmpAnalyticsConfig>): JmpAnalyticsConfig | null;
91
+ /**
92
+ * Server / Node (SSR, Route Handlers, `getStaticProps`, etc.):
93
+ * Same **`NEXT_PUBLIC_*`** vars as the browser (`NEXT_PUBLIC_JMP_ANALYTICS_URL` +
94
+ * `NEXT_PUBLIC_JMP_TRACKING_KEY`). Next.js injects these on the server for RSC/fetches.
95
+ * Returns `null` if incomplete.
96
+ */
97
+ declare function getJmpServerContentConfigFromEnv(overrides?: Partial<JmpContentConfig>): JmpContentConfig | null;
98
+ declare function isJmpBrowserAnalyticsEnvConfigured(): boolean;
99
+ declare function isJmpServerContentEnvConfigured(): boolean;
100
+ /**
101
+ * One `JmpAnalytics` instance per browser tab (module singleton). Safe for page views and events.
102
+ * Returns `null` on the server or when public env vars are missing.
103
+ */
104
+ declare function getOrCreateJmpAnalyticsFromBrowserEnv(overrides?: Partial<JmpAnalyticsConfig>): JmpAnalytics | null;
105
+ /**
106
+ * `createJmpContentClient` using server env resolution. Returns `null` if env is incomplete.
107
+ */
108
+ declare function createJmpContentClientFromServerEnv(overrides?: Partial<JmpContentConfig>): JmpContentClient | null;
109
+
110
+ export { DEFAULT_JMP_BROWSER_PAGE_VIEW_DEDUPE_MS, JMP_ANALYTICS_SDK_VERSION, JMP_TRACKING_CONSENT_STORAGE_KEY, JmpAnalytics, JmpAnalyticsConfig, JmpBlogPost, JmpBlogPostDetail, type JmpContentClient, JmpContentConfig, JmpContentWrapper, JmpFaqItem, JmpFaqItemDetail, JmpLandingPage, JmpLandingPageDetail, JmpLandingPageKind, JmpLandingPageSitemapEntry, JmpPopularPagesResult, JmpSiteProfile, JmpTrustBundle, JmpWebsiteLocation, JmpWebsiteLocationDetail, TrackServerPageViewOptions, createJmpContentClient, createJmpContentClientFromServerEnv, getDiscoveredContentWrappers, getJmpBlogPost, getJmpBlogPostDetail, getJmpBlogPosts, getJmpBrowserAnalyticsConfigFromEnv, getJmpFaqDetail, getJmpFaqs, getJmpLandingPageDetail, getJmpLandingPageSitemap, getJmpLandingPages, getJmpLocationDetail, getJmpLocations, getJmpPopularPages, getJmpRobotsTxt, getJmpServerContentConfigFromEnv, getJmpSiteProfile, getJmpTrustBundle, getOrCreateJmpAnalyticsFromBrowserEnv, inferTrustWrapperSlots, isJmpBrowserAnalyticsEnvConfigured, isJmpServerContentEnvConfigured, markContentWrapper, registerJmpContentWrappers, resetContentWrapperDiscoveryForTests, trackJmpServerPageView };
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  setJmpTrackingConsent,
37
37
  stableJmpManifestFingerprint,
38
38
  subscribeJmpTrackingConsent
39
- } from "./chunk-6SMPRPQ3.js";
39
+ } from "./chunk-YFG3AQ35.js";
40
40
  import {
41
41
  buildLandingCaptureInlineScript
42
42
  } from "./chunk-TCZ6TC2L.js";
@@ -0,0 +1,4 @@
1
+ /** Inline script for Next.js `beforeInteractive` — capture referrer/UTM only (no network). */
2
+ declare function buildLandingCaptureInlineScript(): string;
3
+
4
+ export { buildLandingCaptureInlineScript as b };
@@ -0,0 +1,4 @@
1
+ /** Inline script for Next.js `beforeInteractive` — capture referrer/UTM only (no network). */
2
+ declare function buildLandingCaptureInlineScript(): string;
3
+
4
+ export { buildLandingCaptureInlineScript as b };
@@ -46,7 +46,7 @@ var import_react = require("react");
46
46
  var LANDING_REFERER_COOKIE_MAX_AGE_SEC = 30 * 60;
47
47
 
48
48
  // package.json
49
- var version = "0.1.35";
49
+ var version = "0.1.36";
50
50
 
51
51
  // src/constants.ts
52
52
  var JMP_ANALYTICS_SDK_VERSION = version;