@uptrademedia/site-kit 1.0.5 → 1.0.7
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/analytics/index.js +7 -7
- package/dist/analytics/index.mjs +3 -3
- package/dist/api-QUIPJJCX.js +77 -0
- package/dist/api-QUIPJJCX.js.map +1 -0
- package/dist/api-V3BA5PMX.mjs +4 -0
- package/dist/api-V3BA5PMX.mjs.map +1 -0
- package/dist/blog/index.d.mts +2 -2
- package/dist/blog/index.d.ts +2 -2
- package/dist/blog/index.js +40 -6
- package/dist/blog/index.js.map +1 -1
- package/dist/blog/index.mjs +40 -6
- package/dist/blog/index.mjs.map +1 -1
- package/dist/blog/server.d.mts +3 -2
- package/dist/blog/server.d.ts +3 -2
- package/dist/blog/server.js +13 -6
- package/dist/blog/server.js.map +1 -1
- package/dist/blog/server.mjs +13 -6
- package/dist/blog/server.mjs.map +1 -1
- package/dist/{chunk-FKVJOT2F.mjs → chunk-42EXHJTC.mjs} +196 -7
- package/dist/chunk-42EXHJTC.mjs.map +1 -0
- package/dist/{scanner-AZV5I6US.mjs → chunk-44OMJFCG.mjs} +354 -14
- package/dist/chunk-44OMJFCG.mjs.map +1 -0
- package/dist/chunk-4TGJYNHV.js +981 -0
- package/dist/chunk-4TGJYNHV.js.map +1 -0
- package/dist/chunk-4XPGGLVP.mjs +53 -0
- package/dist/{chunk-NYKRE2FL.mjs.map → chunk-4XPGGLVP.mjs.map} +1 -1
- package/dist/{generators-TO2FKJR6.mjs → chunk-6ONUXZDO.mjs} +26 -9
- package/dist/chunk-6ONUXZDO.mjs.map +1 -0
- package/dist/chunk-CG53ASWX.mjs +729 -0
- package/dist/chunk-CG53ASWX.mjs.map +1 -0
- package/dist/{scanner-ETJAMIT7.js → chunk-DERI27QC.js} +448 -102
- package/dist/chunk-DERI27QC.js.map +1 -0
- package/dist/chunk-DYM5ML2V.mjs +1518 -0
- package/dist/chunk-DYM5ML2V.mjs.map +1 -0
- package/dist/chunk-FLZZOX44.js +1526 -0
- package/dist/chunk-FLZZOX44.js.map +1 -0
- package/dist/{chunk-7H6I3ECV.mjs → chunk-FQVGK746.mjs} +63 -3
- package/dist/chunk-FQVGK746.mjs.map +1 -0
- package/dist/{chunk-GQ6ZOU2N.mjs → chunk-JGQPAXTL.mjs} +4 -4
- package/dist/{chunk-GQ6ZOU2N.mjs.map → chunk-JGQPAXTL.mjs.map} +1 -1
- package/dist/{chunk-V3F5J6CV.js → chunk-JUEVN4Q4.js} +196 -7
- package/dist/chunk-JUEVN4Q4.js.map +1 -0
- package/dist/chunk-KKMGTT7F.mjs +968 -0
- package/dist/chunk-KKMGTT7F.mjs.map +1 -0
- package/dist/{chunk-XQJX252G.mjs → chunk-MB3WR5KJ.mjs} +28 -18
- package/dist/chunk-MB3WR5KJ.mjs.map +1 -0
- package/dist/{chunk-2IHTEKHU.mjs → chunk-QD5CN2OI.mjs} +16 -7
- package/dist/chunk-QD5CN2OI.mjs.map +1 -0
- package/dist/{chunk-SBVEYCSV.js → chunk-QQB4FO4Q.js} +7 -7
- package/dist/{chunk-SBVEYCSV.js.map → chunk-QQB4FO4Q.js.map} +1 -1
- package/dist/{generators-YZWIGHCO.js → chunk-S2GXR5HY.js} +26 -9
- package/dist/chunk-S2GXR5HY.js.map +1 -0
- package/dist/{chunk-O2OHHBUD.js → chunk-TDK7DLCH.js} +30 -20
- package/dist/chunk-TDK7DLCH.js.map +1 -0
- package/dist/{chunk-QP5NCO2E.js → chunk-VDI7KYME.js} +67 -2
- package/dist/chunk-VDI7KYME.js.map +1 -0
- package/dist/chunk-VOR53RUR.js +753 -0
- package/dist/chunk-VOR53RUR.js.map +1 -0
- package/dist/{chunk-GAJLEDRD.js → chunk-ZKJ7JKFV.js} +16 -7
- package/dist/chunk-ZKJ7JKFV.js.map +1 -0
- package/dist/chunk-ZSMWDLMK.js +63 -0
- package/dist/{chunk-EQCVQC35.js.map → chunk-ZSMWDLMK.js.map} +1 -1
- package/dist/cli/index.js +37269 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/index.mjs +37233 -0
- package/dist/cli/index.mjs.map +1 -0
- package/dist/commerce/index.js +1 -1
- package/dist/commerce/index.mjs +1 -1
- package/dist/commerce/server.d.mts +12 -3
- package/dist/commerce/server.d.ts +12 -3
- package/dist/commerce/server.js +71 -70
- package/dist/commerce/server.js.map +1 -1
- package/dist/commerce/server.mjs +71 -70
- package/dist/commerce/server.mjs.map +1 -1
- package/dist/engage/index.d.mts +6 -4
- package/dist/engage/index.d.ts +6 -4
- package/dist/engage/index.js +8 -4
- package/dist/engage/index.mjs +2 -2
- package/dist/forms/index.js +1 -1
- package/dist/forms/index.mjs +1 -1
- package/dist/generators-5EU4PTVF.js +33 -0
- package/dist/generators-5EU4PTVF.js.map +1 -0
- package/dist/generators-TYPILCWD.mjs +4 -0
- package/dist/generators-TYPILCWD.mjs.map +1 -0
- package/dist/images/index.js +11 -11
- package/dist/images/index.mjs +4 -4
- package/dist/index.d.mts +154 -5
- package/dist/index.d.ts +154 -5
- package/dist/index.js +940 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +819 -7
- package/dist/index.mjs.map +1 -1
- package/dist/llms/index.d.mts +657 -0
- package/dist/llms/index.d.ts +657 -0
- package/dist/llms/index.js +101 -0
- package/dist/llms/index.js.map +1 -0
- package/dist/llms/index.mjs +4 -0
- package/dist/llms/index.mjs.map +1 -0
- package/dist/migrator-ARLHUNB3.mjs +4 -0
- package/dist/migrator-ARLHUNB3.mjs.map +1 -0
- package/dist/migrator-VZLBH3VY.js +37 -0
- package/dist/migrator-VZLBH3VY.js.map +1 -0
- package/dist/redirects/index.js +1 -1
- package/dist/redirects/index.mjs +1 -1
- package/dist/reputation/index.js +1 -1
- package/dist/reputation/index.mjs +1 -1
- package/dist/{routing-BWjUF7lp.d.ts → routing-CF91y6NO.d.ts} +1 -1
- package/dist/{routing-CgmRi9tD.d.mts → routing-CIOFpFCB.d.mts} +1 -1
- package/dist/scanner-7ZMUM2P5.mjs +4 -0
- package/dist/scanner-7ZMUM2P5.mjs.map +1 -0
- package/dist/scanner-OY7UF3WA.js +53 -0
- package/dist/scanner-OY7UF3WA.js.map +1 -0
- package/dist/seo/index.d.mts +267 -7
- package/dist/seo/index.d.ts +267 -7
- package/dist/seo/index.js +432 -24
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +400 -11
- package/dist/seo/index.mjs.map +1 -1
- package/dist/seo/server.d.mts +11 -4
- package/dist/seo/server.d.ts +11 -4
- package/dist/seo/server.js +17 -17
- package/dist/seo/server.mjs +3 -3
- package/dist/setup/client.js +1 -1
- package/dist/setup/client.mjs +1 -1
- package/dist/setup/index.js +3 -3
- package/dist/setup/index.mjs +2 -2
- package/dist/setup/server.js +3 -3
- package/dist/setup/server.mjs +2 -2
- package/dist/sitemap/index.js +2 -2
- package/dist/sitemap/index.js.map +1 -1
- package/dist/sitemap/index.mjs +2 -2
- package/dist/sitemap/index.mjs.map +1 -1
- package/dist/{types-C0pJGfbH.d.mts → types-D6FHAVWX.d.mts} +99 -3
- package/dist/{types-C0pJGfbH.d.ts → types-D6FHAVWX.d.ts} +99 -3
- package/dist/{types-BN4OwtCO.d.mts → types-DI0jnhjJ.d.mts} +2 -0
- package/dist/{types-BN4OwtCO.d.ts → types-DI0jnhjJ.d.ts} +2 -0
- package/dist/{types-BmzutFwy.d.ts → types-j8X4vUhB.d.mts} +19 -2
- package/dist/{types-BmzutFwy.d.mts → types-j8X4vUhB.d.ts} +19 -2
- package/dist/{web-vitals-BH55V7EJ.js → web-vitals-444RLW3B.js} +11 -11
- package/dist/{web-vitals-BH55V7EJ.js.map → web-vitals-444RLW3B.js.map} +1 -1
- package/dist/{web-vitals-RJYPWAR3.mjs → web-vitals-KPICZIEF.mjs} +3 -3
- package/dist/{web-vitals-RJYPWAR3.mjs.map → web-vitals-KPICZIEF.mjs.map} +1 -1
- package/package.json +9 -2
- package/dist/api-N35S3EES.js +0 -57
- package/dist/api-N35S3EES.js.map +0 -1
- package/dist/api-SYBTK7Z7.mjs +0 -4
- package/dist/api-SYBTK7Z7.mjs.map +0 -1
- package/dist/chunk-2IHTEKHU.mjs.map +0 -1
- package/dist/chunk-7H6I3ECV.mjs.map +0 -1
- package/dist/chunk-BGJLOJ7T.mjs +0 -605
- package/dist/chunk-BGJLOJ7T.mjs.map +0 -1
- package/dist/chunk-EQCVQC35.js +0 -35
- package/dist/chunk-FKVJOT2F.mjs.map +0 -1
- package/dist/chunk-GAJLEDRD.js.map +0 -1
- package/dist/chunk-NYKRE2FL.mjs +0 -31
- package/dist/chunk-O2OHHBUD.js.map +0 -1
- package/dist/chunk-QAYJV4KK.js +0 -608
- package/dist/chunk-QAYJV4KK.js.map +0 -1
- package/dist/chunk-QP5NCO2E.js.map +0 -1
- package/dist/chunk-V3F5J6CV.js.map +0 -1
- package/dist/chunk-XQJX252G.mjs.map +0 -1
- package/dist/generators-TO2FKJR6.mjs.map +0 -1
- package/dist/generators-YZWIGHCO.js.map +0 -1
- package/dist/migrator-V6KS75EA.mjs +0 -265
- package/dist/migrator-V6KS75EA.mjs.map +0 -1
- package/dist/migrator-XKM7YQCY.js +0 -272
- package/dist/migrator-XKM7YQCY.js.map +0 -1
- package/dist/scanner-AZV5I6US.mjs.map +0 -1
- package/dist/scanner-ETJAMIT7.js.map +0 -1
package/dist/analytics/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkJUEVN4Q4_js = require('../chunk-JUEVN4Q4.js');
|
|
4
|
+
require('../chunk-ZSMWDLMK.js');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
|
|
7
7
|
function useContactTracking(options = {}) {
|
|
8
8
|
const { autoTrack = true, debug = false } = options;
|
|
9
|
-
const { trackConversion } =
|
|
9
|
+
const { trackConversion } = chunkJUEVN4Q4_js.useAnalytics();
|
|
10
10
|
const trackPhoneClick = react.useCallback((phoneNumber, metadata) => {
|
|
11
11
|
if (debug) console.log("[Analytics] Phone click:", phoneNumber);
|
|
12
12
|
trackConversion({
|
|
@@ -68,19 +68,19 @@ function ContactTracking({ debug = false }) {
|
|
|
68
68
|
|
|
69
69
|
Object.defineProperty(exports, "AnalyticsProvider", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkJUEVN4Q4_js.AnalyticsProvider; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "WebVitals", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkJUEVN4Q4_js.WebVitals; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "useAnalytics", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkJUEVN4Q4_js.useAnalytics; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "useTrackEvent", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkJUEVN4Q4_js.useTrackEvent; }
|
|
84
84
|
});
|
|
85
85
|
exports.ContactTracking = ContactTracking;
|
|
86
86
|
exports.useContactTracking = useContactTracking;
|
package/dist/analytics/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useAnalytics } from '../chunk-
|
|
2
|
-
export { AnalyticsProvider, WebVitals, useAnalytics, useTrackEvent } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { useAnalytics } from '../chunk-42EXHJTC.mjs';
|
|
2
|
+
export { AnalyticsProvider, WebVitals, useAnalytics, useTrackEvent } from '../chunk-42EXHJTC.mjs';
|
|
3
|
+
import '../chunk-4XPGGLVP.mjs';
|
|
4
4
|
import { useCallback, useEffect } from 'react';
|
|
5
5
|
|
|
6
6
|
function useContactTracking(options = {}) {
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkVDI7KYME_js = require('./chunk-VDI7KYME.js');
|
|
4
|
+
require('./chunk-ZSMWDLMK.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "getABTest", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkVDI7KYME_js.getABTest; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "getContentBlock", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkVDI7KYME_js.getContentBlock; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "getEntities", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkVDI7KYME_js.getEntities; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "getEntityEnhancedSchema", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkVDI7KYME_js.getEntityEnhancedSchema; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "getFAQData", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkVDI7KYME_js.getFAQData; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "getInternalLinks", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkVDI7KYME_js.getInternalLinks; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "getManagedScripts", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkVDI7KYME_js.getManagedScripts; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "getPrimaryEntity", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkVDI7KYME_js.getPrimaryEntity; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "getRedirectData", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkVDI7KYME_js.getRedirectData; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "getRobotsData", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunkVDI7KYME_js.getRobotsData; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "getSEOPageData", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkVDI7KYME_js.getSEOPageData; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "getSchemaMarkups", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkVDI7KYME_js.getSchemaMarkups; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "getSitemapEntries", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunkVDI7KYME_js.getSitemapEntries; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "getVisibilityScore", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return chunkVDI7KYME_js.getVisibilityScore; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "getVisibilitySummary", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkVDI7KYME_js.getVisibilitySummary; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "recordABImpression", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkVDI7KYME_js.recordABImpression; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "registerSitemap", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunkVDI7KYME_js.registerSitemap; }
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=api-QUIPJJCX.js.map
|
|
77
|
+
//# sourceMappingURL=api-QUIPJJCX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"api-QUIPJJCX.js"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { getABTest, getContentBlock, getEntities, getEntityEnhancedSchema, getFAQData, getInternalLinks, getManagedScripts, getPrimaryEntity, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, getVisibilityScore, getVisibilitySummary, recordABImpression, registerSitemap } from './chunk-FQVGK746.mjs';
|
|
2
|
+
import './chunk-4XPGGLVP.mjs';
|
|
3
|
+
//# sourceMappingURL=api-V3BA5PMX.mjs.map
|
|
4
|
+
//# sourceMappingURL=api-V3BA5PMX.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"api-V3BA5PMX.mjs"}
|
package/dist/blog/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { B as BlogPost$1, T as TocItem, a as BlogListResult, b as BlogCategory, A as AuthorCardProps, c as TableOfContentsProps } from '../types-
|
|
4
|
-
export { k as BlogAnalytics, d as BlogAuthor, f as BlogListOptions, i as BlogListProps, j as BlogListRenderProps, g as BlogPostProps, h as BlogPostRenderProps, e as BlogTag, R as RelatedPostsProps } from '../types-
|
|
3
|
+
import { B as BlogPost$1, T as TocItem, a as BlogListResult, b as BlogCategory, A as AuthorCardProps, c as TableOfContentsProps } from '../types-DI0jnhjJ.mjs';
|
|
4
|
+
export { k as BlogAnalytics, d as BlogAuthor, f as BlogListOptions, i as BlogListProps, j as BlogListRenderProps, g as BlogPostProps, h as BlogPostRenderProps, e as BlogTag, R as RelatedPostsProps } from '../types-DI0jnhjJ.mjs';
|
|
5
5
|
|
|
6
6
|
interface BlogPostServerProps {
|
|
7
7
|
/** Portal API URL */
|
package/dist/blog/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { B as BlogPost$1, T as TocItem, a as BlogListResult, b as BlogCategory, A as AuthorCardProps, c as TableOfContentsProps } from '../types-
|
|
4
|
-
export { k as BlogAnalytics, d as BlogAuthor, f as BlogListOptions, i as BlogListProps, j as BlogListRenderProps, g as BlogPostProps, h as BlogPostRenderProps, e as BlogTag, R as RelatedPostsProps } from '../types-
|
|
3
|
+
import { B as BlogPost$1, T as TocItem, a as BlogListResult, b as BlogCategory, A as AuthorCardProps, c as TableOfContentsProps } from '../types-DI0jnhjJ.js';
|
|
4
|
+
export { k as BlogAnalytics, d as BlogAuthor, f as BlogListOptions, i as BlogListProps, j as BlogListRenderProps, g as BlogPostProps, h as BlogPostRenderProps, e as BlogTag, R as RelatedPostsProps } from '../types-DI0jnhjJ.js';
|
|
5
5
|
|
|
6
6
|
interface BlogPostServerProps {
|
|
7
7
|
/** Portal API URL */
|
package/dist/blog/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../chunk-
|
|
3
|
+
require('../chunk-ZSMWDLMK.js');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
|
|
@@ -251,9 +251,9 @@ async function BlogPost({
|
|
|
251
251
|
`${tagName}-${index}`
|
|
252
252
|
);
|
|
253
253
|
}) }),
|
|
254
|
-
post.faq_items && Array.isArray(post.faq_items) && post.faq_items.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("section", { style: { marginTop: 48 }, children: [
|
|
254
|
+
(post.faq_items ?? post.faqItems) && Array.isArray(post.faq_items ?? post.faqItems) && (post.faq_items ?? post.faqItems).length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("section", { style: { marginTop: 48 }, children: [
|
|
255
255
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: { fontSize: 24, fontWeight: 600, marginBottom: 24 }, children: "Frequently Asked Questions" }),
|
|
256
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: post.faq_items.map((faq, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
256
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: (post.faq_items ?? post.faqItems).map((faq, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
257
257
|
"details",
|
|
258
258
|
{
|
|
259
259
|
style: {
|
|
@@ -279,7 +279,7 @@ async function BlogPost({
|
|
|
279
279
|
index
|
|
280
280
|
)) })
|
|
281
281
|
] }),
|
|
282
|
-
showAuthor && post.author && typeof post.author === "object" && /* @__PURE__ */ jsxRuntime.jsx(AuthorSection, { author: post.author }),
|
|
282
|
+
showAuthor && post.author && typeof post.author === "object" && /* @__PURE__ */ jsxRuntime.jsx(AuthorSection, { author: normalizeAuthorForDisplay(post.author) }),
|
|
283
283
|
showRelated && relatedPosts.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("section", { style: { marginTop: 48 }, children: [
|
|
284
284
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: { fontSize: 24, fontWeight: 600, marginBottom: 24 }, children: "Related Posts" }),
|
|
285
285
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -331,7 +331,29 @@ async function BlogPost({
|
|
|
331
331
|
] })
|
|
332
332
|
] });
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function normalizeAuthorForDisplay(author) {
|
|
335
|
+
const a = author;
|
|
336
|
+
const avatarUrl = a.avatar_url ?? a.image ?? a.image_url;
|
|
337
|
+
const socialLinks = a.social_links;
|
|
338
|
+
const socialProfiles = a.socialProfiles;
|
|
339
|
+
return {
|
|
340
|
+
id: a.id ?? "author",
|
|
341
|
+
project_id: a.project_id ?? "",
|
|
342
|
+
name: a.name ?? "Author",
|
|
343
|
+
slug: a.slug ?? "author",
|
|
344
|
+
bio: a.bio ?? void 0,
|
|
345
|
+
avatar_url: avatarUrl ?? void 0,
|
|
346
|
+
email: a.email ?? void 0,
|
|
347
|
+
website: a.website ?? a.url ?? void 0,
|
|
348
|
+
social_links: socialLinks ?? void 0,
|
|
349
|
+
is_active: a.is_active ?? true,
|
|
350
|
+
...socialProfiles?.length ? { sameAs: socialProfiles } : {},
|
|
351
|
+
...a.title ? { title: a.title } : {}
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
function AuthorSection({
|
|
355
|
+
author
|
|
356
|
+
}) {
|
|
335
357
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
336
358
|
"section",
|
|
337
359
|
{
|
|
@@ -360,6 +382,7 @@ function AuthorSection({ author }) {
|
|
|
360
382
|
),
|
|
361
383
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
362
384
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: "0 0 4px", fontSize: 18, fontWeight: 600 }, children: author.name }),
|
|
385
|
+
"title" in author && author.title && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0 0 4px", fontSize: 14, color: "#6b7280" }, children: author.title }),
|
|
363
386
|
author.bio && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0 0 12px", color: "#6b7280", fontSize: 14 }, children: author.bio }),
|
|
364
387
|
author.social_links && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: 16 }, children: [
|
|
365
388
|
author.social_links.twitter && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -382,7 +405,18 @@ function AuthorSection({ author }) {
|
|
|
382
405
|
children: "LinkedIn"
|
|
383
406
|
}
|
|
384
407
|
)
|
|
385
|
-
] })
|
|
408
|
+
] }),
|
|
409
|
+
"sameAs" in author && author.sameAs && author.sameAs.length > 0 && !author.social_links && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", gap: 16, flexWrap: "wrap" }, children: author.sameAs.map((url, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
410
|
+
"a",
|
|
411
|
+
{
|
|
412
|
+
href: url,
|
|
413
|
+
target: "_blank",
|
|
414
|
+
rel: "noopener noreferrer",
|
|
415
|
+
style: { color: "#3b82f6", fontSize: 14 },
|
|
416
|
+
children: "Profile"
|
|
417
|
+
},
|
|
418
|
+
i
|
|
419
|
+
)) })
|
|
386
420
|
] })
|
|
387
421
|
]
|
|
388
422
|
}
|