@jmp-technologies/analytics 0.1.30 → 0.1.33

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 (86) hide show
  1. package/dist/astro/client.cjs +30 -2
  2. package/dist/astro/client.cjs.map +1 -1
  3. package/dist/astro/client.d.cts +2 -2
  4. package/dist/astro/client.d.ts +2 -2
  5. package/dist/astro/client.js +1 -1
  6. package/dist/astro/content.cjs +84 -14
  7. package/dist/astro/content.cjs.map +1 -1
  8. package/dist/astro/content.d.cts +10 -8
  9. package/dist/astro/content.d.ts +10 -8
  10. package/dist/astro/content.js +6 -2
  11. package/dist/astro/integration.cjs.map +1 -1
  12. package/dist/astro/integration.js +2 -2
  13. package/dist/astro/middleware.d.cts +2 -2
  14. package/dist/astro/middleware.d.ts +2 -2
  15. package/dist/astro/register.cjs.map +1 -1
  16. package/dist/astro/register.js +2 -2
  17. package/dist/{chunk-ZEC22LFP.js → chunk-4Q6YOXKB.js} +2 -2
  18. package/dist/{chunk-LLTB7ZFC.js → chunk-AIOUOA24.js} +18 -8
  19. package/dist/chunk-AIOUOA24.js.map +1 -0
  20. package/dist/{chunk-FS4BZ7DR.js → chunk-FH5CJNQD.js} +36 -10
  21. package/dist/chunk-FH5CJNQD.js.map +1 -0
  22. package/dist/{chunk-YCVHRMM6.js → chunk-G5BMWPQ6.js} +2 -3
  23. package/dist/{chunk-YCVHRMM6.js.map → chunk-G5BMWPQ6.js.map} +1 -1
  24. package/dist/{chunk-LTPLLPOR.js → chunk-JMALYARK.js} +2 -2
  25. package/dist/{chunk-GTPKRBFR.js → chunk-KTPL3R5E.js} +132 -12
  26. package/dist/chunk-KTPL3R5E.js.map +1 -0
  27. package/dist/chunk-RI3KKDPX.js +75 -0
  28. package/dist/chunk-RI3KKDPX.js.map +1 -0
  29. package/dist/{create-jmp-analytics-BeuuU6as.d.ts → create-jmp-analytics-CwtcXBd7.d.ts} +1 -2
  30. package/dist/{create-jmp-analytics-Ce2CrhhR.d.cts → create-jmp-analytics-lkGcysG_.d.cts} +1 -2
  31. package/dist/index.cjs +133 -11
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +24 -12
  34. package/dist/index.d.ts +24 -12
  35. package/dist/index.js +9 -1
  36. package/dist/next/content.cjs +86 -14
  37. package/dist/next/content.cjs.map +1 -1
  38. package/dist/next/content.d.cts +6 -4
  39. package/dist/next/content.d.ts +6 -4
  40. package/dist/next/content.js +8 -2
  41. package/dist/next/content.js.map +1 -1
  42. package/dist/next/instrumentation.cjs.map +1 -1
  43. package/dist/next/instrumentation.js +1 -1
  44. package/dist/next/landing-capture-script-server.cjs +1 -2
  45. package/dist/next/landing-capture-script-server.cjs.map +1 -1
  46. package/dist/next/landing-capture-script-server.js +1 -1
  47. package/dist/next/landing-pages.cjs.map +1 -1
  48. package/dist/next/landing-pages.d.cts +3 -14
  49. package/dist/next/landing-pages.d.ts +3 -14
  50. package/dist/next/landing-pages.js +13 -65
  51. package/dist/next/landing-pages.js.map +1 -1
  52. package/dist/next/locations.cjs +737 -0
  53. package/dist/next/locations.cjs.map +1 -0
  54. package/dist/next/locations.d.cts +55 -0
  55. package/dist/next/locations.d.ts +55 -0
  56. package/dist/next/locations.js +158 -0
  57. package/dist/next/locations.js.map +1 -0
  58. package/dist/next/middleware.d.cts +2 -2
  59. package/dist/next/middleware.d.ts +2 -2
  60. package/dist/next/site-root-server.cjs +31 -4
  61. package/dist/next/site-root-server.cjs.map +1 -1
  62. package/dist/next/site-root-server.js +4 -4
  63. package/dist/next.cjs +44 -8
  64. package/dist/next.cjs.map +1 -1
  65. package/dist/next.d.cts +3 -3
  66. package/dist/next.d.ts +3 -3
  67. package/dist/next.js +3 -3
  68. package/dist/react.cjs +163 -127
  69. package/dist/react.cjs.map +1 -1
  70. package/dist/react.d.cts +2 -2
  71. package/dist/react.d.ts +2 -2
  72. package/dist/react.js +2 -2
  73. package/dist/{site-config-DIFmnwqv.d.cts → site-config-BMlEQ_8g.d.cts} +1 -1
  74. package/dist/{site-config-B4uEj4xX.d.ts → site-config-BbE6kGDd.d.ts} +1 -1
  75. package/dist/{track-page-view-CkgIp9-j.d.ts → track-page-view-BPWGGoMr.d.ts} +1 -1
  76. package/dist/{track-page-view-Bv0BAvxG.d.cts → track-page-view-DaNOaIxF.d.cts} +1 -1
  77. package/dist/{types-B2iP79lb.d.cts → types-BdC3SRH-.d.cts} +57 -2
  78. package/dist/{types-B2iP79lb.d.ts → types-BdC3SRH-.d.ts} +57 -2
  79. package/dist/utils-B4E-pcQ0.d.ts +15 -0
  80. package/dist/utils-DIHFgovG.d.cts +15 -0
  81. package/package.json +7 -2
  82. package/dist/chunk-FS4BZ7DR.js.map +0 -1
  83. package/dist/chunk-GTPKRBFR.js.map +0 -1
  84. package/dist/chunk-LLTB7ZFC.js.map +0 -1
  85. /package/dist/{chunk-ZEC22LFP.js.map → chunk-4Q6YOXKB.js.map} +0 -0
  86. /package/dist/{chunk-LTPLLPOR.js.map → chunk-JMALYARK.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  export { b as buildLandingCaptureInlineScript } from './landing-capture-C8pyZWuF.cjs';
2
- import { J as JmpAnalytics } from './create-jmp-analytics-Ce2CrhhR.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-Ce2CrhhR.cjs';
4
- import { k as JmpContentConfig, p as TrackServerPageViewOptions, h as JmpTrustBundle, i as JmpContentWrapper, d as JmpLandingPageKind, b as JmpLandingPage, c as JmpLandingPageDetail, J as JmpBlogPost, a as JmpFaqItem, e as JmpLandingPageSitemapEntry, f as JmpSiteProfile, m as JmpAnalyticsConfig } from './types-B2iP79lb.cjs';
5
- export { q as JmpContactExtraManifest, j as JmpContentManifest, r as JmpContentRouteManifest, s as JmpContentWrapperReportMode, t as JmpCredential, n as JmpEventType, u as JmpPartnerLogo, l as JmpServerRequestLike, g as JmpTestimonial, v as JmpTrustBlockManifest, w as JmpTrustSection, x as JmpTrustStat, y as JmpTrustSummary, L as LeadMetadata, z as LeadMetadataValue, o as TrackLeadOptions, T as TrackPageViewOptions, A as normalizeJmpContentManifest, B as stableJmpManifestFingerprint } from './types-B2iP79lb.cjs';
2
+ import { J as JmpAnalytics } from './create-jmp-analytics-lkGcysG_.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-lkGcysG_.cjs';
4
+ import { m as JmpContentConfig, r as TrackServerPageViewOptions, h as JmpTrustBundle, k as JmpContentWrapper, d as JmpLandingPageKind, b as JmpLandingPage, c as JmpLandingPageDetail, J as JmpBlogPost, s as JmpBlogPostDetail, t as JmpFaqItemDetail, a as JmpFaqItem, e as JmpLandingPageSitemapEntry, j as JmpWebsiteLocationDetail, i as JmpWebsiteLocation, f as JmpSiteProfile, o as JmpAnalyticsConfig } from './types-BdC3SRH-.cjs';
5
+ export { u as JmpContactExtraManifest, v as JmpContentLocaleAlternate, l as JmpContentManifest, w as JmpContentRouteManifest, x as JmpContentWrapperReportMode, y as JmpCredential, p as JmpEventType, z as JmpPartnerLogo, n as JmpServerRequestLike, g as JmpTestimonial, A as JmpTrustBlockManifest, B as JmpTrustSection, C as JmpTrustStat, D as JmpTrustSummary, L as LeadMetadata, E as LeadMetadataValue, q as TrackLeadOptions, T as TrackPageViewOptions, F as normalizeJmpContentManifest, G as stableJmpManifestFingerprint } from './types-BdC3SRH-.cjs';
6
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-DIFmnwqv.cjs';
7
+ export { a as JmpSiteContactFallback, b as JmpSiteDefinition, d as defineJmpSite, g as getJmpContentConfig, c as getJmpSiteDefinition } from './site-config-BMlEQ_8g.cjs';
8
8
 
9
9
  /** Published package version — sent with capabilities for admin readiness. */
10
10
  declare const JMP_ANALYTICS_SDK_VERSION = "0.1.26";
@@ -20,15 +20,23 @@ declare function inferTrustWrapperSlots(bundle: JmpTrustBundle): string[];
20
20
  declare function getDiscoveredContentWrappers(): string[];
21
21
  declare function resetContentWrapperDiscoveryForTests(): void;
22
22
 
23
- declare function getJmpBlogPosts(config: JmpContentConfig): Promise<JmpBlogPost[]>;
24
- declare function getJmpBlogPost(config: JmpContentConfig, slug: string): Promise<JmpBlogPost | null>;
25
- declare function getJmpFaqs(config: JmpContentConfig): Promise<JmpFaqItem[]>;
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>;
26
32
  declare function getJmpLandingPages(config: JmpContentConfig, filters?: {
27
33
  kind?: JmpLandingPageKind;
28
34
  locale?: string;
29
35
  }): Promise<JmpLandingPage[]>;
30
36
  declare function getJmpLandingPageDetail(config: JmpContentConfig, kind: JmpLandingPageKind, slug: string, locale?: string): Promise<JmpLandingPageDetail | null>;
31
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>;
32
40
  declare function getJmpTrustBundle(config: JmpContentConfig): Promise<JmpTrustBundle>;
33
41
  declare function getJmpSiteProfile(config: JmpContentConfig): Promise<JmpSiteProfile>;
34
42
  declare function getJmpRobotsTxt(config: JmpContentConfig): Promise<string>;
@@ -46,9 +54,13 @@ declare function registerJmpContentWrappers(config: JmpContentConfig): Promise<{
46
54
  }>;
47
55
 
48
56
  declare function createJmpContentClient(config: JmpContentConfig): {
49
- getBlogPosts: () => Promise<JmpBlogPost[]>;
50
- getBlogPost: (slug: string) => Promise<JmpBlogPost | null>;
51
- getFaqs: () => Promise<JmpFaqItem[]>;
57
+ getBlogPosts: (filters?: {
58
+ locale?: string;
59
+ }) => Promise<JmpBlogPost[]>;
60
+ getBlogPost: (slug: string, locale?: string) => Promise<JmpBlogPost | null>;
61
+ getFaqs: (filters?: {
62
+ locale?: string;
63
+ }) => Promise<JmpFaqItem[]>;
52
64
  getLandingPages: (filters?: Parameters<typeof getJmpLandingPages>[1]) => Promise<JmpLandingPage[]>;
53
65
  getLandingPageDetail: (kind: Parameters<typeof getJmpLandingPageDetail>[1], slug: string, locale?: string) => Promise<JmpLandingPageDetail | null>;
54
66
  getLandingPageSitemap: () => Promise<JmpLandingPageSitemapEntry[]>;
@@ -89,4 +101,4 @@ declare function getOrCreateJmpAnalyticsFromBrowserEnv(overrides?: Partial<JmpAn
89
101
  */
90
102
  declare function createJmpContentClientFromServerEnv(overrides?: Partial<JmpContentConfig>): JmpContentClient | null;
91
103
 
92
- export { DEFAULT_JMP_BROWSER_PAGE_VIEW_DEDUPE_MS, JMP_ANALYTICS_SDK_VERSION, JMP_TRACKING_CONSENT_STORAGE_KEY, JmpAnalytics, JmpAnalyticsConfig, JmpBlogPost, type JmpContentClient, JmpContentConfig, JmpContentWrapper, JmpFaqItem, JmpLandingPage, JmpLandingPageDetail, JmpLandingPageKind, JmpLandingPageSitemapEntry, JmpSiteProfile, JmpTrustBundle, TrackServerPageViewOptions, createJmpContentClient, createJmpContentClientFromServerEnv, getDiscoveredContentWrappers, getJmpBlogPost, getJmpBlogPosts, getJmpBrowserAnalyticsConfigFromEnv, getJmpFaqs, getJmpLandingPageDetail, getJmpLandingPageSitemap, getJmpLandingPages, getJmpRobotsTxt, getJmpServerContentConfigFromEnv, getJmpSiteProfile, getJmpTrustBundle, getOrCreateJmpAnalyticsFromBrowserEnv, inferTrustWrapperSlots, isJmpBrowserAnalyticsEnvConfigured, isJmpServerContentEnvConfigured, markContentWrapper, registerJmpContentWrappers, resetContentWrapperDiscoveryForTests, trackJmpServerPageView };
104
+ 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, JmpSiteProfile, JmpTrustBundle, JmpWebsiteLocation, JmpWebsiteLocationDetail, TrackServerPageViewOptions, createJmpContentClient, createJmpContentClientFromServerEnv, getDiscoveredContentWrappers, getJmpBlogPost, getJmpBlogPostDetail, getJmpBlogPosts, getJmpBrowserAnalyticsConfigFromEnv, getJmpFaqDetail, getJmpFaqs, getJmpLandingPageDetail, getJmpLandingPageSitemap, getJmpLandingPages, getJmpLocationDetail, getJmpLocations, getJmpRobotsTxt, getJmpServerContentConfigFromEnv, getJmpSiteProfile, getJmpTrustBundle, getOrCreateJmpAnalyticsFromBrowserEnv, inferTrustWrapperSlots, isJmpBrowserAnalyticsEnvConfigured, isJmpServerContentEnvConfigured, markContentWrapper, registerJmpContentWrappers, resetContentWrapperDiscoveryForTests, trackJmpServerPageView };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  export { b as buildLandingCaptureInlineScript } from './landing-capture-C8pyZWuF.js';
2
- import { J as JmpAnalytics } from './create-jmp-analytics-BeuuU6as.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-BeuuU6as.js';
4
- import { k as JmpContentConfig, p as TrackServerPageViewOptions, h as JmpTrustBundle, i as JmpContentWrapper, d as JmpLandingPageKind, b as JmpLandingPage, c as JmpLandingPageDetail, J as JmpBlogPost, a as JmpFaqItem, e as JmpLandingPageSitemapEntry, f as JmpSiteProfile, m as JmpAnalyticsConfig } from './types-B2iP79lb.js';
5
- export { q as JmpContactExtraManifest, j as JmpContentManifest, r as JmpContentRouteManifest, s as JmpContentWrapperReportMode, t as JmpCredential, n as JmpEventType, u as JmpPartnerLogo, l as JmpServerRequestLike, g as JmpTestimonial, v as JmpTrustBlockManifest, w as JmpTrustSection, x as JmpTrustStat, y as JmpTrustSummary, L as LeadMetadata, z as LeadMetadataValue, o as TrackLeadOptions, T as TrackPageViewOptions, A as normalizeJmpContentManifest, B as stableJmpManifestFingerprint } from './types-B2iP79lb.js';
2
+ import { J as JmpAnalytics } from './create-jmp-analytics-CwtcXBd7.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-CwtcXBd7.js';
4
+ import { m as JmpContentConfig, r as TrackServerPageViewOptions, h as JmpTrustBundle, k as JmpContentWrapper, d as JmpLandingPageKind, b as JmpLandingPage, c as JmpLandingPageDetail, J as JmpBlogPost, s as JmpBlogPostDetail, t as JmpFaqItemDetail, a as JmpFaqItem, e as JmpLandingPageSitemapEntry, j as JmpWebsiteLocationDetail, i as JmpWebsiteLocation, f as JmpSiteProfile, o as JmpAnalyticsConfig } from './types-BdC3SRH-.js';
5
+ export { u as JmpContactExtraManifest, v as JmpContentLocaleAlternate, l as JmpContentManifest, w as JmpContentRouteManifest, x as JmpContentWrapperReportMode, y as JmpCredential, p as JmpEventType, z as JmpPartnerLogo, n as JmpServerRequestLike, g as JmpTestimonial, A as JmpTrustBlockManifest, B as JmpTrustSection, C as JmpTrustStat, D as JmpTrustSummary, L as LeadMetadata, E as LeadMetadataValue, q as TrackLeadOptions, T as TrackPageViewOptions, F as normalizeJmpContentManifest, G as stableJmpManifestFingerprint } from './types-BdC3SRH-.js';
6
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-B4uEj4xX.js';
7
+ export { a as JmpSiteContactFallback, b as JmpSiteDefinition, d as defineJmpSite, g as getJmpContentConfig, c as getJmpSiteDefinition } from './site-config-BbE6kGDd.js';
8
8
 
9
9
  /** Published package version — sent with capabilities for admin readiness. */
10
10
  declare const JMP_ANALYTICS_SDK_VERSION = "0.1.26";
@@ -20,15 +20,23 @@ declare function inferTrustWrapperSlots(bundle: JmpTrustBundle): string[];
20
20
  declare function getDiscoveredContentWrappers(): string[];
21
21
  declare function resetContentWrapperDiscoveryForTests(): void;
22
22
 
23
- declare function getJmpBlogPosts(config: JmpContentConfig): Promise<JmpBlogPost[]>;
24
- declare function getJmpBlogPost(config: JmpContentConfig, slug: string): Promise<JmpBlogPost | null>;
25
- declare function getJmpFaqs(config: JmpContentConfig): Promise<JmpFaqItem[]>;
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>;
26
32
  declare function getJmpLandingPages(config: JmpContentConfig, filters?: {
27
33
  kind?: JmpLandingPageKind;
28
34
  locale?: string;
29
35
  }): Promise<JmpLandingPage[]>;
30
36
  declare function getJmpLandingPageDetail(config: JmpContentConfig, kind: JmpLandingPageKind, slug: string, locale?: string): Promise<JmpLandingPageDetail | null>;
31
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>;
32
40
  declare function getJmpTrustBundle(config: JmpContentConfig): Promise<JmpTrustBundle>;
33
41
  declare function getJmpSiteProfile(config: JmpContentConfig): Promise<JmpSiteProfile>;
34
42
  declare function getJmpRobotsTxt(config: JmpContentConfig): Promise<string>;
@@ -46,9 +54,13 @@ declare function registerJmpContentWrappers(config: JmpContentConfig): Promise<{
46
54
  }>;
47
55
 
48
56
  declare function createJmpContentClient(config: JmpContentConfig): {
49
- getBlogPosts: () => Promise<JmpBlogPost[]>;
50
- getBlogPost: (slug: string) => Promise<JmpBlogPost | null>;
51
- getFaqs: () => Promise<JmpFaqItem[]>;
57
+ getBlogPosts: (filters?: {
58
+ locale?: string;
59
+ }) => Promise<JmpBlogPost[]>;
60
+ getBlogPost: (slug: string, locale?: string) => Promise<JmpBlogPost | null>;
61
+ getFaqs: (filters?: {
62
+ locale?: string;
63
+ }) => Promise<JmpFaqItem[]>;
52
64
  getLandingPages: (filters?: Parameters<typeof getJmpLandingPages>[1]) => Promise<JmpLandingPage[]>;
53
65
  getLandingPageDetail: (kind: Parameters<typeof getJmpLandingPageDetail>[1], slug: string, locale?: string) => Promise<JmpLandingPageDetail | null>;
54
66
  getLandingPageSitemap: () => Promise<JmpLandingPageSitemapEntry[]>;
@@ -89,4 +101,4 @@ declare function getOrCreateJmpAnalyticsFromBrowserEnv(overrides?: Partial<JmpAn
89
101
  */
90
102
  declare function createJmpContentClientFromServerEnv(overrides?: Partial<JmpContentConfig>): JmpContentClient | null;
91
103
 
92
- export { DEFAULT_JMP_BROWSER_PAGE_VIEW_DEDUPE_MS, JMP_ANALYTICS_SDK_VERSION, JMP_TRACKING_CONSENT_STORAGE_KEY, JmpAnalytics, JmpAnalyticsConfig, JmpBlogPost, type JmpContentClient, JmpContentConfig, JmpContentWrapper, JmpFaqItem, JmpLandingPage, JmpLandingPageDetail, JmpLandingPageKind, JmpLandingPageSitemapEntry, JmpSiteProfile, JmpTrustBundle, TrackServerPageViewOptions, createJmpContentClient, createJmpContentClientFromServerEnv, getDiscoveredContentWrappers, getJmpBlogPost, getJmpBlogPosts, getJmpBrowserAnalyticsConfigFromEnv, getJmpFaqs, getJmpLandingPageDetail, getJmpLandingPageSitemap, getJmpLandingPages, getJmpRobotsTxt, getJmpServerContentConfigFromEnv, getJmpSiteProfile, getJmpTrustBundle, getOrCreateJmpAnalyticsFromBrowserEnv, inferTrustWrapperSlots, isJmpBrowserAnalyticsEnvConfigured, isJmpServerContentEnvConfigured, markContentWrapper, registerJmpContentWrappers, resetContentWrapperDiscoveryForTests, trackJmpServerPageView };
104
+ 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, JmpSiteProfile, JmpTrustBundle, JmpWebsiteLocation, JmpWebsiteLocationDetail, TrackServerPageViewOptions, createJmpContentClient, createJmpContentClientFromServerEnv, getDiscoveredContentWrappers, getJmpBlogPost, getJmpBlogPostDetail, getJmpBlogPosts, getJmpBrowserAnalyticsConfigFromEnv, getJmpFaqDetail, getJmpFaqs, getJmpLandingPageDetail, getJmpLandingPageSitemap, getJmpLandingPages, getJmpLocationDetail, getJmpLocations, getJmpRobotsTxt, getJmpServerContentConfigFromEnv, getJmpSiteProfile, getJmpTrustBundle, getOrCreateJmpAnalyticsFromBrowserEnv, inferTrustWrapperSlots, isJmpBrowserAnalyticsEnvConfigured, isJmpServerContentEnvConfigured, markContentWrapper, registerJmpContentWrappers, resetContentWrapperDiscoveryForTests, trackJmpServerPageView };
package/dist/index.js CHANGED
@@ -9,12 +9,16 @@ import {
9
9
  createJmpContentClientFromServerEnv,
10
10
  getDiscoveredContentWrappers,
11
11
  getJmpBlogPost,
12
+ getJmpBlogPostDetail,
12
13
  getJmpBlogPosts,
13
14
  getJmpBrowserAnalyticsConfigFromEnv,
15
+ getJmpFaqDetail,
14
16
  getJmpFaqs,
15
17
  getJmpLandingPageDetail,
16
18
  getJmpLandingPageSitemap,
17
19
  getJmpLandingPages,
20
+ getJmpLocationDetail,
21
+ getJmpLocations,
18
22
  getJmpRobotsTxt,
19
23
  getJmpServerContentConfigFromEnv,
20
24
  getJmpSiteProfile,
@@ -31,7 +35,7 @@ import {
31
35
  setJmpTrackingConsent,
32
36
  stableJmpManifestFingerprint,
33
37
  subscribeJmpTrackingConsent
34
- } from "./chunk-GTPKRBFR.js";
38
+ } from "./chunk-KTPL3R5E.js";
35
39
  import {
36
40
  buildLandingCaptureInlineScript
37
41
  } from "./chunk-TCZ6TC2L.js";
@@ -55,13 +59,17 @@ export {
55
59
  defineJmpSite,
56
60
  getDiscoveredContentWrappers,
57
61
  getJmpBlogPost,
62
+ getJmpBlogPostDetail,
58
63
  getJmpBlogPosts,
59
64
  getJmpBrowserAnalyticsConfigFromEnv,
60
65
  getJmpContentConfig,
66
+ getJmpFaqDetail,
61
67
  getJmpFaqs,
62
68
  getJmpLandingPageDetail,
63
69
  getJmpLandingPageSitemap,
64
70
  getJmpLandingPages,
71
+ getJmpLocationDetail,
72
+ getJmpLocations,
65
73
  getJmpRobotsTxt,
66
74
  getJmpServerContentConfigFromEnv,
67
75
  getJmpSiteDefinition,
@@ -32,6 +32,8 @@ __export(content_exports, {
32
32
  loadLandingPageDetail: () => loadLandingPageDetail2,
33
33
  loadLandingPageSitemap: () => loadLandingPageSitemap2,
34
34
  loadLandingPages: () => loadLandingPages2,
35
+ loadLocationDetail: () => loadLocationDetail2,
36
+ loadLocations: () => loadLocations2,
35
37
  loadSiteProfile: () => loadSiteProfile2,
36
38
  loadTrustBundle: () => loadTrustBundle2,
37
39
  resolveSiteContact: () => resolveSiteContact2
@@ -433,20 +435,30 @@ function sortWrapperSlots(slots) {
433
435
  function afterContentWrapperUse(config) {
434
436
  scheduleContentWrapperSync(config);
435
437
  }
436
- async function getJmpBlogPosts(config) {
438
+ async function getJmpBlogPosts(config, filters) {
439
+ const params = new URLSearchParams();
440
+ if (filters?.locale) {
441
+ params.set("locale", filters.locale);
442
+ }
443
+ const query = params.toString();
437
444
  const data = await getContent(
438
445
  config,
439
- "/api/content/blog"
446
+ `/api/content/blog${query ? `?${query}` : ""}`
440
447
  );
441
448
  markContentWrapper("blog");
442
449
  afterContentWrapperUse(config);
443
450
  return data.posts;
444
451
  }
445
- async function getJmpBlogPost(config, slug) {
452
+ async function getJmpBlogPost(config, slug, locale) {
446
453
  try {
454
+ const params = new URLSearchParams();
455
+ if (locale) {
456
+ params.set("locale", locale);
457
+ }
458
+ const query = params.toString();
447
459
  const data = await getContent(
448
460
  config,
449
- `/api/content/blog/${encodeURIComponent(slug)}`
461
+ `/api/content/blog/${encodeURIComponent(slug)}${query ? `?${query}` : ""}`
450
462
  );
451
463
  markContentWrapper("blog");
452
464
  afterContentWrapperUse(config);
@@ -458,10 +470,15 @@ async function getJmpBlogPost(config, slug) {
458
470
  throw error;
459
471
  }
460
472
  }
461
- async function getJmpFaqs(config) {
473
+ async function getJmpFaqs(config, filters) {
474
+ const params = new URLSearchParams();
475
+ if (filters?.locale) {
476
+ params.set("locale", filters.locale);
477
+ }
478
+ const query = params.toString();
462
479
  const data = await getContent(
463
480
  config,
464
- "/api/content/faqs"
481
+ `/api/content/faqs${query ? `?${query}` : ""}`
465
482
  );
466
483
  markContentWrapper("faq");
467
484
  afterContentWrapperUse(config);
@@ -514,6 +531,35 @@ async function getJmpLandingPageSitemap(config) {
514
531
  afterContentWrapperUse(config);
515
532
  return data.entries;
516
533
  }
534
+ async function getJmpLocations(config) {
535
+ const data = await getContent(
536
+ config,
537
+ "/api/content/locations"
538
+ );
539
+ markContentWrapper("locations");
540
+ afterContentWrapperUse(config);
541
+ return data.locations;
542
+ }
543
+ async function getJmpLocationDetail(config, slug) {
544
+ const normalized = slug.trim();
545
+ if (!normalized) {
546
+ return null;
547
+ }
548
+ try {
549
+ const detail = await getContent(
550
+ config,
551
+ `/api/content/locations/${encodeURIComponent(normalized)}`
552
+ );
553
+ markContentWrapper("locations");
554
+ afterContentWrapperUse(config);
555
+ return detail;
556
+ } catch (error) {
557
+ if (error instanceof Error && error.message.includes("HTTP 404")) {
558
+ return null;
559
+ }
560
+ throw error;
561
+ }
562
+ }
517
563
  async function getJmpTrustBundle(config) {
518
564
  const bundle = await getContent(config, "/api/content/trust");
519
565
  markTrustBundleWrappers(bundle);
@@ -751,47 +797,47 @@ function listResolvedSocialUrls(social) {
751
797
  social.youtube
752
798
  ].filter((url) => Boolean(url));
753
799
  }
754
- async function loadBlogPosts() {
800
+ async function loadBlogPosts(locale) {
755
801
  const c = getJmpContentConfig();
756
802
  if (!c) {
757
803
  return [];
758
804
  }
759
805
  try {
760
- const posts = await getJmpBlogPosts(c);
806
+ const posts = await getJmpBlogPosts(c, locale ? { locale } : void 0);
761
807
  return sortBlogPosts(posts);
762
808
  } catch {
763
809
  return [];
764
810
  }
765
811
  }
766
- async function loadBlogPost(slug) {
812
+ async function loadBlogPost(slug, locale) {
767
813
  const c = getJmpContentConfig();
768
814
  if (!c) {
769
815
  return null;
770
816
  }
771
817
  try {
772
- return await getJmpBlogPost(c, slug);
818
+ return await getJmpBlogPost(c, slug, locale);
773
819
  } catch {
774
820
  return null;
775
821
  }
776
822
  }
777
- async function loadFaqs() {
823
+ async function loadFaqs(locale) {
778
824
  const c = getJmpContentConfig();
779
825
  if (!c) {
780
826
  return [];
781
827
  }
782
828
  try {
783
- const faqs = await getJmpFaqs(c);
829
+ const faqs = await getJmpFaqs(c, locale ? { locale } : void 0);
784
830
  return sortFaqs(faqs);
785
831
  } catch {
786
832
  return [];
787
833
  }
788
834
  }
789
- async function loadFaqBySlug(slug) {
835
+ async function loadFaqBySlug(slug, locale) {
790
836
  const normalized = slug.trim();
791
837
  if (!normalized) {
792
838
  return null;
793
839
  }
794
- const items = await loadFaqs();
840
+ const items = await loadFaqs(locale);
795
841
  return items.find((item) => item.slug === normalized || item.id === normalized) ?? null;
796
842
  }
797
843
  async function loadLandingPages(filters) {
@@ -827,6 +873,28 @@ async function loadLandingPageSitemap() {
827
873
  return [];
828
874
  }
829
875
  }
876
+ async function loadLocations() {
877
+ const c = getJmpContentConfig();
878
+ if (!c) {
879
+ return [];
880
+ }
881
+ try {
882
+ return await getJmpLocations(c);
883
+ } catch {
884
+ return [];
885
+ }
886
+ }
887
+ async function loadLocationDetail(slug) {
888
+ const c = getJmpContentConfig();
889
+ if (!c) {
890
+ return null;
891
+ }
892
+ try {
893
+ return await getJmpLocationDetail(c, slug);
894
+ } catch {
895
+ return null;
896
+ }
897
+ }
830
898
  async function loadTrustBundle() {
831
899
  const c = getJmpContentConfig();
832
900
  if (!c) {
@@ -864,6 +932,8 @@ var loadFaqBySlug2 = loadFaqBySlug;
864
932
  var loadLandingPages2 = (0, import_react.cache)(loadLandingPages);
865
933
  var loadLandingPageDetail2 = loadLandingPageDetail;
866
934
  var loadLandingPageSitemap2 = (0, import_react.cache)(loadLandingPageSitemap);
935
+ var loadLocations2 = (0, import_react.cache)(loadLocations);
936
+ var loadLocationDetail2 = loadLocationDetail;
867
937
  var loadTrustBundle2 = (0, import_react.cache)(loadTrustBundle);
868
938
  // Annotate the CommonJS export names for ESM import in node:
869
939
  0 && (module.exports = {
@@ -879,6 +949,8 @@ var loadTrustBundle2 = (0, import_react.cache)(loadTrustBundle);
879
949
  loadLandingPageDetail,
880
950
  loadLandingPageSitemap,
881
951
  loadLandingPages,
952
+ loadLocationDetail,
953
+ loadLocations,
882
954
  loadSiteProfile,
883
955
  loadTrustBundle,
884
956
  resolveSiteContact