@jmp-technologies/analytics 0.1.32 → 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.
- package/dist/astro/client.cjs.map +1 -1
- package/dist/astro/client.d.cts +2 -2
- package/dist/astro/client.d.ts +2 -2
- package/dist/astro/client.js +1 -1
- package/dist/astro/content.cjs +29 -14
- package/dist/astro/content.cjs.map +1 -1
- package/dist/astro/content.d.cts +7 -7
- package/dist/astro/content.d.ts +7 -7
- package/dist/astro/content.js +2 -2
- package/dist/astro/integration.cjs.map +1 -1
- package/dist/astro/integration.js +2 -2
- package/dist/astro/middleware.d.cts +2 -2
- package/dist/astro/middleware.d.ts +2 -2
- package/dist/astro/register.cjs.map +1 -1
- package/dist/astro/register.js +2 -2
- package/dist/{chunk-7623G3XL.js → chunk-4Q6YOXKB.js} +2 -2
- package/dist/{chunk-NDSPSAWQ.js → chunk-AIOUOA24.js} +2 -2
- package/dist/{chunk-HKMDWTA2.js → chunk-FH5CJNQD.js} +10 -10
- package/dist/chunk-FH5CJNQD.js.map +1 -0
- package/dist/{chunk-KPTMZQCY.js → chunk-JMALYARK.js} +2 -2
- package/dist/{chunk-NI7R6QZQ.js → chunk-KTPL3R5E.js} +69 -10
- package/dist/{chunk-NI7R6QZQ.js.map → chunk-KTPL3R5E.js.map} +1 -1
- package/dist/{create-jmp-analytics-htx2oOEf.d.ts → create-jmp-analytics-CwtcXBd7.d.ts} +1 -1
- package/dist/{create-jmp-analytics-D1dUsqCQ.d.cts → create-jmp-analytics-lkGcysG_.d.cts} +1 -1
- package/dist/index.cjs +70 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -12
- package/dist/index.d.ts +22 -12
- package/dist/index.js +5 -1
- package/dist/next/content.cjs +29 -14
- package/dist/next/content.cjs.map +1 -1
- package/dist/next/content.d.cts +2 -2
- package/dist/next/content.d.ts +2 -2
- package/dist/next/content.js +2 -2
- package/dist/next/instrumentation.cjs.map +1 -1
- package/dist/next/instrumentation.js +1 -1
- package/dist/next/landing-pages.cjs.map +1 -1
- package/dist/next/landing-pages.d.cts +2 -2
- package/dist/next/landing-pages.d.ts +2 -2
- package/dist/next/landing-pages.js +2 -2
- package/dist/next/locations.cjs.map +1 -1
- package/dist/next/locations.d.cts +2 -2
- package/dist/next/locations.d.ts +2 -2
- package/dist/next/locations.js +2 -2
- package/dist/next/middleware.d.cts +2 -2
- package/dist/next/middleware.d.ts +2 -2
- package/dist/next/site-root-server.cjs.map +1 -1
- package/dist/next/site-root-server.js +3 -3
- package/dist/next.cjs.map +1 -1
- package/dist/next.d.cts +3 -3
- package/dist/next.d.ts +3 -3
- package/dist/next.js +3 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +2 -2
- package/dist/{site-config-B7USGGzu.d.cts → site-config-BMlEQ_8g.d.cts} +1 -1
- package/dist/{site-config-C4bcUoLI.d.ts → site-config-BbE6kGDd.d.ts} +1 -1
- package/dist/{track-page-view-RiB-xgIx.d.ts → track-page-view-BPWGGoMr.d.ts} +1 -1
- package/dist/{track-page-view-C4TbbULE.d.cts → track-page-view-DaNOaIxF.d.cts} +1 -1
- package/dist/{types-DRljY1Yy.d.cts → types-BdC3SRH-.d.cts} +24 -1
- package/dist/{types-DRljY1Yy.d.ts → types-BdC3SRH-.d.ts} +24 -1
- package/dist/{utils-CHT3SQFv.d.ts → utils-B4E-pcQ0.d.ts} +1 -1
- package/dist/{utils-BajG58pj.d.cts → utils-DIHFgovG.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-HKMDWTA2.js.map +0 -1
- /package/dist/{chunk-7623G3XL.js.map → chunk-4Q6YOXKB.js.map} +0 -0
- /package/dist/{chunk-NDSPSAWQ.js.map → chunk-AIOUOA24.js.map} +0 -0
- /package/dist/{chunk-KPTMZQCY.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-
|
|
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-
|
|
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, a as JmpFaqItem, e as JmpLandingPageSitemapEntry, j as JmpWebsiteLocationDetail, i as JmpWebsiteLocation, f as JmpSiteProfile, o as JmpAnalyticsConfig } from './types-
|
|
5
|
-
export {
|
|
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-
|
|
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,9 +20,15 @@ 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
|
|
24
|
-
|
|
25
|
-
|
|
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;
|
|
@@ -48,9 +54,13 @@ declare function registerJmpContentWrappers(config: JmpContentConfig): Promise<{
|
|
|
48
54
|
}>;
|
|
49
55
|
|
|
50
56
|
declare function createJmpContentClient(config: JmpContentConfig): {
|
|
51
|
-
getBlogPosts: (
|
|
52
|
-
|
|
53
|
-
|
|
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[]>;
|
|
54
64
|
getLandingPages: (filters?: Parameters<typeof getJmpLandingPages>[1]) => Promise<JmpLandingPage[]>;
|
|
55
65
|
getLandingPageDetail: (kind: Parameters<typeof getJmpLandingPageDetail>[1], slug: string, locale?: string) => Promise<JmpLandingPageDetail | null>;
|
|
56
66
|
getLandingPageSitemap: () => Promise<JmpLandingPageSitemapEntry[]>;
|
|
@@ -91,4 +101,4 @@ declare function getOrCreateJmpAnalyticsFromBrowserEnv(overrides?: Partial<JmpAn
|
|
|
91
101
|
*/
|
|
92
102
|
declare function createJmpContentClientFromServerEnv(overrides?: Partial<JmpContentConfig>): JmpContentClient | null;
|
|
93
103
|
|
|
94
|
-
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, JmpWebsiteLocation, JmpWebsiteLocationDetail, TrackServerPageViewOptions, createJmpContentClient, createJmpContentClientFromServerEnv, getDiscoveredContentWrappers, getJmpBlogPost, getJmpBlogPosts, getJmpBrowserAnalyticsConfigFromEnv, getJmpFaqs, getJmpLandingPageDetail, getJmpLandingPageSitemap, getJmpLandingPages, getJmpLocationDetail, getJmpLocations, 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-
|
|
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-
|
|
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, a as JmpFaqItem, e as JmpLandingPageSitemapEntry, j as JmpWebsiteLocationDetail, i as JmpWebsiteLocation, f as JmpSiteProfile, o as JmpAnalyticsConfig } from './types-
|
|
5
|
-
export {
|
|
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-
|
|
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,9 +20,15 @@ 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
|
|
24
|
-
|
|
25
|
-
|
|
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;
|
|
@@ -48,9 +54,13 @@ declare function registerJmpContentWrappers(config: JmpContentConfig): Promise<{
|
|
|
48
54
|
}>;
|
|
49
55
|
|
|
50
56
|
declare function createJmpContentClient(config: JmpContentConfig): {
|
|
51
|
-
getBlogPosts: (
|
|
52
|
-
|
|
53
|
-
|
|
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[]>;
|
|
54
64
|
getLandingPages: (filters?: Parameters<typeof getJmpLandingPages>[1]) => Promise<JmpLandingPage[]>;
|
|
55
65
|
getLandingPageDetail: (kind: Parameters<typeof getJmpLandingPageDetail>[1], slug: string, locale?: string) => Promise<JmpLandingPageDetail | null>;
|
|
56
66
|
getLandingPageSitemap: () => Promise<JmpLandingPageSitemapEntry[]>;
|
|
@@ -91,4 +101,4 @@ declare function getOrCreateJmpAnalyticsFromBrowserEnv(overrides?: Partial<JmpAn
|
|
|
91
101
|
*/
|
|
92
102
|
declare function createJmpContentClientFromServerEnv(overrides?: Partial<JmpContentConfig>): JmpContentClient | null;
|
|
93
103
|
|
|
94
|
-
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, JmpWebsiteLocation, JmpWebsiteLocationDetail, TrackServerPageViewOptions, createJmpContentClient, createJmpContentClientFromServerEnv, getDiscoveredContentWrappers, getJmpBlogPost, getJmpBlogPosts, getJmpBrowserAnalyticsConfigFromEnv, getJmpFaqs, getJmpLandingPageDetail, getJmpLandingPageSitemap, getJmpLandingPages, getJmpLocationDetail, getJmpLocations, 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,8 +9,10 @@ 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,
|
|
@@ -33,7 +35,7 @@ import {
|
|
|
33
35
|
setJmpTrackingConsent,
|
|
34
36
|
stableJmpManifestFingerprint,
|
|
35
37
|
subscribeJmpTrackingConsent
|
|
36
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-KTPL3R5E.js";
|
|
37
39
|
import {
|
|
38
40
|
buildLandingCaptureInlineScript
|
|
39
41
|
} from "./chunk-TCZ6TC2L.js";
|
|
@@ -57,9 +59,11 @@ export {
|
|
|
57
59
|
defineJmpSite,
|
|
58
60
|
getDiscoveredContentWrappers,
|
|
59
61
|
getJmpBlogPost,
|
|
62
|
+
getJmpBlogPostDetail,
|
|
60
63
|
getJmpBlogPosts,
|
|
61
64
|
getJmpBrowserAnalyticsConfigFromEnv,
|
|
62
65
|
getJmpContentConfig,
|
|
66
|
+
getJmpFaqDetail,
|
|
63
67
|
getJmpFaqs,
|
|
64
68
|
getJmpLandingPageDetail,
|
|
65
69
|
getJmpLandingPageSitemap,
|
package/dist/next/content.cjs
CHANGED
|
@@ -435,20 +435,30 @@ function sortWrapperSlots(slots) {
|
|
|
435
435
|
function afterContentWrapperUse(config) {
|
|
436
436
|
scheduleContentWrapperSync(config);
|
|
437
437
|
}
|
|
438
|
-
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();
|
|
439
444
|
const data = await getContent(
|
|
440
445
|
config,
|
|
441
|
-
|
|
446
|
+
`/api/content/blog${query ? `?${query}` : ""}`
|
|
442
447
|
);
|
|
443
448
|
markContentWrapper("blog");
|
|
444
449
|
afterContentWrapperUse(config);
|
|
445
450
|
return data.posts;
|
|
446
451
|
}
|
|
447
|
-
async function getJmpBlogPost(config, slug) {
|
|
452
|
+
async function getJmpBlogPost(config, slug, locale) {
|
|
448
453
|
try {
|
|
454
|
+
const params = new URLSearchParams();
|
|
455
|
+
if (locale) {
|
|
456
|
+
params.set("locale", locale);
|
|
457
|
+
}
|
|
458
|
+
const query = params.toString();
|
|
449
459
|
const data = await getContent(
|
|
450
460
|
config,
|
|
451
|
-
`/api/content/blog/${encodeURIComponent(slug)}`
|
|
461
|
+
`/api/content/blog/${encodeURIComponent(slug)}${query ? `?${query}` : ""}`
|
|
452
462
|
);
|
|
453
463
|
markContentWrapper("blog");
|
|
454
464
|
afterContentWrapperUse(config);
|
|
@@ -460,10 +470,15 @@ async function getJmpBlogPost(config, slug) {
|
|
|
460
470
|
throw error;
|
|
461
471
|
}
|
|
462
472
|
}
|
|
463
|
-
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();
|
|
464
479
|
const data = await getContent(
|
|
465
480
|
config,
|
|
466
|
-
|
|
481
|
+
`/api/content/faqs${query ? `?${query}` : ""}`
|
|
467
482
|
);
|
|
468
483
|
markContentWrapper("faq");
|
|
469
484
|
afterContentWrapperUse(config);
|
|
@@ -782,47 +797,47 @@ function listResolvedSocialUrls(social) {
|
|
|
782
797
|
social.youtube
|
|
783
798
|
].filter((url) => Boolean(url));
|
|
784
799
|
}
|
|
785
|
-
async function loadBlogPosts() {
|
|
800
|
+
async function loadBlogPosts(locale) {
|
|
786
801
|
const c = getJmpContentConfig();
|
|
787
802
|
if (!c) {
|
|
788
803
|
return [];
|
|
789
804
|
}
|
|
790
805
|
try {
|
|
791
|
-
const posts = await getJmpBlogPosts(c);
|
|
806
|
+
const posts = await getJmpBlogPosts(c, locale ? { locale } : void 0);
|
|
792
807
|
return sortBlogPosts(posts);
|
|
793
808
|
} catch {
|
|
794
809
|
return [];
|
|
795
810
|
}
|
|
796
811
|
}
|
|
797
|
-
async function loadBlogPost(slug) {
|
|
812
|
+
async function loadBlogPost(slug, locale) {
|
|
798
813
|
const c = getJmpContentConfig();
|
|
799
814
|
if (!c) {
|
|
800
815
|
return null;
|
|
801
816
|
}
|
|
802
817
|
try {
|
|
803
|
-
return await getJmpBlogPost(c, slug);
|
|
818
|
+
return await getJmpBlogPost(c, slug, locale);
|
|
804
819
|
} catch {
|
|
805
820
|
return null;
|
|
806
821
|
}
|
|
807
822
|
}
|
|
808
|
-
async function loadFaqs() {
|
|
823
|
+
async function loadFaqs(locale) {
|
|
809
824
|
const c = getJmpContentConfig();
|
|
810
825
|
if (!c) {
|
|
811
826
|
return [];
|
|
812
827
|
}
|
|
813
828
|
try {
|
|
814
|
-
const faqs = await getJmpFaqs(c);
|
|
829
|
+
const faqs = await getJmpFaqs(c, locale ? { locale } : void 0);
|
|
815
830
|
return sortFaqs(faqs);
|
|
816
831
|
} catch {
|
|
817
832
|
return [];
|
|
818
833
|
}
|
|
819
834
|
}
|
|
820
|
-
async function loadFaqBySlug(slug) {
|
|
835
|
+
async function loadFaqBySlug(slug, locale) {
|
|
821
836
|
const normalized = slug.trim();
|
|
822
837
|
if (!normalized) {
|
|
823
838
|
return null;
|
|
824
839
|
}
|
|
825
|
-
const items = await loadFaqs();
|
|
840
|
+
const items = await loadFaqs(locale);
|
|
826
841
|
return items.find((item) => item.slug === normalized || item.id === normalized) ?? null;
|
|
827
842
|
}
|
|
828
843
|
async function loadLandingPages(filters) {
|