@jmp-technologies/analytics 0.1.34 → 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.
- package/dist/astro/client.cjs +1 -1
- 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 +31 -1
- package/dist/astro/content.cjs.map +1 -1
- package/dist/astro/content.d.cts +9 -4
- package/dist/astro/content.d.ts +9 -4
- package/dist/astro/content.js +4 -2
- package/dist/astro/integration.cjs +1 -1
- package/dist/astro/integration.cjs.map +1 -1
- package/dist/astro/integration.js +2 -2
- package/dist/astro/middleware.d.cts +2 -2
- package/dist/astro/middleware.d.ts +2 -2
- package/dist/astro/register.cjs +1 -1
- package/dist/astro/register.cjs.map +1 -1
- package/dist/astro/register.js +2 -2
- package/dist/{chunk-VUWHDHXS.js → chunk-3ZEMXII6.js} +2 -2
- package/dist/{chunk-UL7JTTTB.js → chunk-AGGLRTUQ.js} +2 -2
- package/dist/{chunk-SIJ4TDRV.js → chunk-NAQU6RAE.js} +2 -2
- package/dist/{chunk-4NUFHUWN.js → chunk-RNZTKIC6.js} +16 -3
- package/dist/chunk-RNZTKIC6.js.map +1 -0
- package/dist/{chunk-NJAMXGIW.js → chunk-YFG3AQ35.js} +21 -2
- package/dist/chunk-YFG3AQ35.js.map +1 -0
- package/dist/{create-jmp-analytics-lkGcysG_.d.cts → create-jmp-analytics-Bz0-K0Af.d.cts} +1 -1
- package/dist/{create-jmp-analytics-CwtcXBd7.d.ts → create-jmp-analytics-DRjrlWUn.d.ts} +1 -1
- package/dist/index.cjs +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +3 -1
- package/dist/next/content.cjs +32 -1
- package/dist/next/content.cjs.map +1 -1
- package/dist/next/content.d.cts +5 -4
- package/dist/next/content.d.ts +5 -4
- package/dist/next/content.js +5 -2
- package/dist/next/content.js.map +1 -1
- package/dist/next/instrumentation.cjs +1 -1
- package/dist/next/instrumentation.cjs.map +1 -1
- package/dist/next/instrumentation.js +1 -1
- package/dist/next/landing-pages.cjs +1 -1
- package/dist/next/landing-pages.cjs.map +1 -1
- package/dist/next/landing-pages.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 +1 -1
- 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 +1 -1
- package/dist/next/site-root-server.cjs.map +1 -1
- package/dist/next/site-root-server.js +3 -3
- package/dist/next.cjs +1 -1
- package/dist/next.cjs.map +1 -1
- package/dist/next.d.cts +3 -3
- package/dist/next.d.ts +3 -3
- package/dist/next.js +3 -3
- package/dist/react.cjs +1 -1
- 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-BbE6kGDd.d.ts → site-config-BxEmJxBB.d.ts} +1 -1
- package/dist/{site-config-BMlEQ_8g.d.cts → site-config-Cgq67uQ1.d.cts} +1 -1
- package/dist/{track-page-view-BPWGGoMr.d.ts → track-page-view-74Su6lQY.d.ts} +1 -1
- package/dist/{track-page-view-DaNOaIxF.d.cts → track-page-view-BCX1Dsfk.d.cts} +1 -1
- package/dist/{types-BdC3SRH-.d.ts → types-yNgoakwk.d.cts} +12 -1
- package/dist/{types-BdC3SRH-.d.cts → types-yNgoakwk.d.ts} +12 -1
- package/dist/{utils-B4E-pcQ0.d.ts → utils-BLoWWfSw.d.ts} +1 -1
- package/dist/{utils-DIHFgovG.d.cts → utils-UPTIdK1D.d.cts} +1 -1
- package/package.json +3 -2
- package/dist/chunk-4NUFHUWN.js.map +0 -1
- package/dist/chunk-NJAMXGIW.js.map +0 -1
- /package/dist/{chunk-VUWHDHXS.js.map → chunk-3ZEMXII6.js.map} +0 -0
- /package/dist/{chunk-UL7JTTTB.js.map → chunk-AGGLRTUQ.js.map} +0 -0
- /package/dist/{chunk-SIJ4TDRV.js.map → chunk-NAQU6RAE.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 {
|
|
5
|
-
export {
|
|
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
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-Cgq67uQ1.cjs';
|
|
8
8
|
|
|
9
9
|
/** Published package version — sent with capabilities for admin readiness. */
|
|
10
10
|
declare const JMP_ANALYTICS_SDK_VERSION: string;
|
|
@@ -40,6 +40,11 @@ declare function getJmpLocationDetail(config: JmpContentConfig, slug: string): P
|
|
|
40
40
|
declare function getJmpTrustBundle(config: JmpContentConfig): Promise<JmpTrustBundle>;
|
|
41
41
|
declare function getJmpSiteProfile(config: JmpContentConfig): Promise<JmpSiteProfile>;
|
|
42
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>;
|
|
43
48
|
/**
|
|
44
49
|
* Tell the JMP dashboard which content wrappers this site wires (blog, faq, trust.*, contact).
|
|
45
50
|
* Uses auto-discovered slots from content API usage unless `contentWrapperMode` is `manual`.
|
|
@@ -67,6 +72,7 @@ declare function createJmpContentClient(config: JmpContentConfig): {
|
|
|
67
72
|
getTrustBundle: () => Promise<JmpTrustBundle>;
|
|
68
73
|
getSiteProfile: () => Promise<JmpSiteProfile>;
|
|
69
74
|
getRobotsTxt: () => Promise<string>;
|
|
75
|
+
getPopularPages: (filters?: Parameters<typeof getJmpPopularPages>[1]) => Promise<JmpPopularPagesResult>;
|
|
70
76
|
registerContentWrappers: () => Promise<{
|
|
71
77
|
ok: true;
|
|
72
78
|
wrappers: string[];
|
|
@@ -101,4 +107,4 @@ declare function getOrCreateJmpAnalyticsFromBrowserEnv(overrides?: Partial<JmpAn
|
|
|
101
107
|
*/
|
|
102
108
|
declare function createJmpContentClientFromServerEnv(overrides?: Partial<JmpContentConfig>): JmpContentClient | null;
|
|
103
109
|
|
|
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 };
|
|
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.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 {
|
|
5
|
-
export {
|
|
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
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-BxEmJxBB.js';
|
|
8
8
|
|
|
9
9
|
/** Published package version — sent with capabilities for admin readiness. */
|
|
10
10
|
declare const JMP_ANALYTICS_SDK_VERSION: string;
|
|
@@ -40,6 +40,11 @@ declare function getJmpLocationDetail(config: JmpContentConfig, slug: string): P
|
|
|
40
40
|
declare function getJmpTrustBundle(config: JmpContentConfig): Promise<JmpTrustBundle>;
|
|
41
41
|
declare function getJmpSiteProfile(config: JmpContentConfig): Promise<JmpSiteProfile>;
|
|
42
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>;
|
|
43
48
|
/**
|
|
44
49
|
* Tell the JMP dashboard which content wrappers this site wires (blog, faq, trust.*, contact).
|
|
45
50
|
* Uses auto-discovered slots from content API usage unless `contentWrapperMode` is `manual`.
|
|
@@ -67,6 +72,7 @@ declare function createJmpContentClient(config: JmpContentConfig): {
|
|
|
67
72
|
getTrustBundle: () => Promise<JmpTrustBundle>;
|
|
68
73
|
getSiteProfile: () => Promise<JmpSiteProfile>;
|
|
69
74
|
getRobotsTxt: () => Promise<string>;
|
|
75
|
+
getPopularPages: (filters?: Parameters<typeof getJmpPopularPages>[1]) => Promise<JmpPopularPagesResult>;
|
|
70
76
|
registerContentWrappers: () => Promise<{
|
|
71
77
|
ok: true;
|
|
72
78
|
wrappers: string[];
|
|
@@ -101,4 +107,4 @@ declare function getOrCreateJmpAnalyticsFromBrowserEnv(overrides?: Partial<JmpAn
|
|
|
101
107
|
*/
|
|
102
108
|
declare function createJmpContentClientFromServerEnv(overrides?: Partial<JmpContentConfig>): JmpContentClient | null;
|
|
103
109
|
|
|
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 };
|
|
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
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
getJmpLandingPages,
|
|
20
20
|
getJmpLocationDetail,
|
|
21
21
|
getJmpLocations,
|
|
22
|
+
getJmpPopularPages,
|
|
22
23
|
getJmpRobotsTxt,
|
|
23
24
|
getJmpServerContentConfigFromEnv,
|
|
24
25
|
getJmpSiteProfile,
|
|
@@ -35,7 +36,7 @@ import {
|
|
|
35
36
|
setJmpTrackingConsent,
|
|
36
37
|
stableJmpManifestFingerprint,
|
|
37
38
|
subscribeJmpTrackingConsent
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YFG3AQ35.js";
|
|
39
40
|
import {
|
|
40
41
|
buildLandingCaptureInlineScript
|
|
41
42
|
} from "./chunk-TCZ6TC2L.js";
|
|
@@ -70,6 +71,7 @@ export {
|
|
|
70
71
|
getJmpLandingPages,
|
|
71
72
|
getJmpLocationDetail,
|
|
72
73
|
getJmpLocations,
|
|
74
|
+
getJmpPopularPages,
|
|
73
75
|
getJmpRobotsTxt,
|
|
74
76
|
getJmpServerContentConfigFromEnv,
|
|
75
77
|
getJmpSiteDefinition,
|
package/dist/next/content.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(content_exports, {
|
|
|
34
34
|
loadLandingPages: () => loadLandingPages2,
|
|
35
35
|
loadLocationDetail: () => loadLocationDetail2,
|
|
36
36
|
loadLocations: () => loadLocations2,
|
|
37
|
+
loadPopularPages: () => loadPopularPages2,
|
|
37
38
|
loadSiteProfile: () => loadSiteProfile2,
|
|
38
39
|
loadTrustBundle: () => loadTrustBundle2,
|
|
39
40
|
resolveSiteContact: () => resolveSiteContact2
|
|
@@ -45,7 +46,7 @@ var import_react = require("react");
|
|
|
45
46
|
var LANDING_REFERER_COOKIE_MAX_AGE_SEC = 30 * 60;
|
|
46
47
|
|
|
47
48
|
// package.json
|
|
48
|
-
var version = "0.1.
|
|
49
|
+
var version = "0.1.36";
|
|
49
50
|
|
|
50
51
|
// src/constants.ts
|
|
51
52
|
var JMP_ANALYTICS_SDK_VERSION = version;
|
|
@@ -578,6 +579,23 @@ async function getJmpSiteProfile(config) {
|
|
|
578
579
|
afterContentWrapperUse(config);
|
|
579
580
|
return data.site;
|
|
580
581
|
}
|
|
582
|
+
async function getJmpPopularPages(config, filters) {
|
|
583
|
+
const params = new URLSearchParams();
|
|
584
|
+
if (filters?.prefix) {
|
|
585
|
+
params.set("prefix", filters.prefix);
|
|
586
|
+
}
|
|
587
|
+
if (typeof filters?.days === "number") {
|
|
588
|
+
params.set("days", String(filters.days));
|
|
589
|
+
}
|
|
590
|
+
if (typeof filters?.limit === "number") {
|
|
591
|
+
params.set("limit", String(filters.limit));
|
|
592
|
+
}
|
|
593
|
+
const query = params.toString();
|
|
594
|
+
return getContent(
|
|
595
|
+
config,
|
|
596
|
+
`/api/content/popular-pages${query ? `?${query}` : ""}`
|
|
597
|
+
);
|
|
598
|
+
}
|
|
581
599
|
async function registerJmpContentWrappers(config) {
|
|
582
600
|
const wrappers = resolveContentWrappersForReport(config);
|
|
583
601
|
if (!wrappers.length) {
|
|
@@ -921,6 +939,17 @@ function filterFeaturedTrustQuotes(testimonials, placement, limit = 2) {
|
|
|
921
939
|
return !bucket || bucket === "testimonials";
|
|
922
940
|
}).sort((a, b) => a.sort_order - b.sort_order).slice(0, limit);
|
|
923
941
|
}
|
|
942
|
+
async function loadPopularPages(filters) {
|
|
943
|
+
const c = getJmpContentConfig();
|
|
944
|
+
if (!c) {
|
|
945
|
+
return null;
|
|
946
|
+
}
|
|
947
|
+
try {
|
|
948
|
+
return await getJmpPopularPages(c, filters);
|
|
949
|
+
} catch {
|
|
950
|
+
return null;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
924
953
|
|
|
925
954
|
// src/next/content.ts
|
|
926
955
|
var absoluteSiteAssetUrl2 = absoluteSiteAssetUrl;
|
|
@@ -938,6 +967,7 @@ var loadLandingPageSitemap2 = (0, import_react.cache)(loadLandingPageSitemap);
|
|
|
938
967
|
var loadLocations2 = (0, import_react.cache)(loadLocations);
|
|
939
968
|
var loadLocationDetail2 = loadLocationDetail;
|
|
940
969
|
var loadTrustBundle2 = (0, import_react.cache)(loadTrustBundle);
|
|
970
|
+
var loadPopularPages2 = (0, import_react.cache)(loadPopularPages);
|
|
941
971
|
// Annotate the CommonJS export names for ESM import in node:
|
|
942
972
|
0 && (module.exports = {
|
|
943
973
|
absoluteSiteAssetUrl,
|
|
@@ -954,6 +984,7 @@ var loadTrustBundle2 = (0, import_react.cache)(loadTrustBundle);
|
|
|
954
984
|
loadLandingPages,
|
|
955
985
|
loadLocationDetail,
|
|
956
986
|
loadLocations,
|
|
987
|
+
loadPopularPages,
|
|
957
988
|
loadSiteProfile,
|
|
958
989
|
loadTrustBundle,
|
|
959
990
|
resolveSiteContact
|