@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.
Files changed (169) hide show
  1. package/dist/analytics/index.js +7 -7
  2. package/dist/analytics/index.mjs +3 -3
  3. package/dist/api-QUIPJJCX.js +77 -0
  4. package/dist/api-QUIPJJCX.js.map +1 -0
  5. package/dist/api-V3BA5PMX.mjs +4 -0
  6. package/dist/api-V3BA5PMX.mjs.map +1 -0
  7. package/dist/blog/index.d.mts +2 -2
  8. package/dist/blog/index.d.ts +2 -2
  9. package/dist/blog/index.js +40 -6
  10. package/dist/blog/index.js.map +1 -1
  11. package/dist/blog/index.mjs +40 -6
  12. package/dist/blog/index.mjs.map +1 -1
  13. package/dist/blog/server.d.mts +3 -2
  14. package/dist/blog/server.d.ts +3 -2
  15. package/dist/blog/server.js +13 -6
  16. package/dist/blog/server.js.map +1 -1
  17. package/dist/blog/server.mjs +13 -6
  18. package/dist/blog/server.mjs.map +1 -1
  19. package/dist/{chunk-FKVJOT2F.mjs → chunk-42EXHJTC.mjs} +196 -7
  20. package/dist/chunk-42EXHJTC.mjs.map +1 -0
  21. package/dist/{scanner-AZV5I6US.mjs → chunk-44OMJFCG.mjs} +354 -14
  22. package/dist/chunk-44OMJFCG.mjs.map +1 -0
  23. package/dist/chunk-4TGJYNHV.js +981 -0
  24. package/dist/chunk-4TGJYNHV.js.map +1 -0
  25. package/dist/chunk-4XPGGLVP.mjs +53 -0
  26. package/dist/{chunk-NYKRE2FL.mjs.map → chunk-4XPGGLVP.mjs.map} +1 -1
  27. package/dist/{generators-TO2FKJR6.mjs → chunk-6ONUXZDO.mjs} +26 -9
  28. package/dist/chunk-6ONUXZDO.mjs.map +1 -0
  29. package/dist/chunk-CG53ASWX.mjs +729 -0
  30. package/dist/chunk-CG53ASWX.mjs.map +1 -0
  31. package/dist/{scanner-ETJAMIT7.js → chunk-DERI27QC.js} +448 -102
  32. package/dist/chunk-DERI27QC.js.map +1 -0
  33. package/dist/chunk-DYM5ML2V.mjs +1518 -0
  34. package/dist/chunk-DYM5ML2V.mjs.map +1 -0
  35. package/dist/chunk-FLZZOX44.js +1526 -0
  36. package/dist/chunk-FLZZOX44.js.map +1 -0
  37. package/dist/{chunk-7H6I3ECV.mjs → chunk-FQVGK746.mjs} +63 -3
  38. package/dist/chunk-FQVGK746.mjs.map +1 -0
  39. package/dist/{chunk-GQ6ZOU2N.mjs → chunk-JGQPAXTL.mjs} +4 -4
  40. package/dist/{chunk-GQ6ZOU2N.mjs.map → chunk-JGQPAXTL.mjs.map} +1 -1
  41. package/dist/{chunk-V3F5J6CV.js → chunk-JUEVN4Q4.js} +196 -7
  42. package/dist/chunk-JUEVN4Q4.js.map +1 -0
  43. package/dist/chunk-KKMGTT7F.mjs +968 -0
  44. package/dist/chunk-KKMGTT7F.mjs.map +1 -0
  45. package/dist/{chunk-XQJX252G.mjs → chunk-MB3WR5KJ.mjs} +28 -18
  46. package/dist/chunk-MB3WR5KJ.mjs.map +1 -0
  47. package/dist/{chunk-2IHTEKHU.mjs → chunk-QD5CN2OI.mjs} +16 -7
  48. package/dist/chunk-QD5CN2OI.mjs.map +1 -0
  49. package/dist/{chunk-SBVEYCSV.js → chunk-QQB4FO4Q.js} +7 -7
  50. package/dist/{chunk-SBVEYCSV.js.map → chunk-QQB4FO4Q.js.map} +1 -1
  51. package/dist/{generators-YZWIGHCO.js → chunk-S2GXR5HY.js} +26 -9
  52. package/dist/chunk-S2GXR5HY.js.map +1 -0
  53. package/dist/{chunk-O2OHHBUD.js → chunk-TDK7DLCH.js} +30 -20
  54. package/dist/chunk-TDK7DLCH.js.map +1 -0
  55. package/dist/{chunk-QP5NCO2E.js → chunk-VDI7KYME.js} +67 -2
  56. package/dist/chunk-VDI7KYME.js.map +1 -0
  57. package/dist/chunk-VOR53RUR.js +753 -0
  58. package/dist/chunk-VOR53RUR.js.map +1 -0
  59. package/dist/{chunk-GAJLEDRD.js → chunk-ZKJ7JKFV.js} +16 -7
  60. package/dist/chunk-ZKJ7JKFV.js.map +1 -0
  61. package/dist/chunk-ZSMWDLMK.js +63 -0
  62. package/dist/{chunk-EQCVQC35.js.map → chunk-ZSMWDLMK.js.map} +1 -1
  63. package/dist/cli/index.js +37269 -0
  64. package/dist/cli/index.js.map +1 -0
  65. package/dist/cli/index.mjs +37233 -0
  66. package/dist/cli/index.mjs.map +1 -0
  67. package/dist/commerce/index.js +1 -1
  68. package/dist/commerce/index.mjs +1 -1
  69. package/dist/commerce/server.d.mts +12 -3
  70. package/dist/commerce/server.d.ts +12 -3
  71. package/dist/commerce/server.js +71 -70
  72. package/dist/commerce/server.js.map +1 -1
  73. package/dist/commerce/server.mjs +71 -70
  74. package/dist/commerce/server.mjs.map +1 -1
  75. package/dist/engage/index.d.mts +6 -4
  76. package/dist/engage/index.d.ts +6 -4
  77. package/dist/engage/index.js +8 -4
  78. package/dist/engage/index.mjs +2 -2
  79. package/dist/forms/index.js +1 -1
  80. package/dist/forms/index.mjs +1 -1
  81. package/dist/generators-5EU4PTVF.js +33 -0
  82. package/dist/generators-5EU4PTVF.js.map +1 -0
  83. package/dist/generators-TYPILCWD.mjs +4 -0
  84. package/dist/generators-TYPILCWD.mjs.map +1 -0
  85. package/dist/images/index.js +11 -11
  86. package/dist/images/index.mjs +4 -4
  87. package/dist/index.d.mts +154 -5
  88. package/dist/index.d.ts +154 -5
  89. package/dist/index.js +940 -24
  90. package/dist/index.js.map +1 -1
  91. package/dist/index.mjs +819 -7
  92. package/dist/index.mjs.map +1 -1
  93. package/dist/llms/index.d.mts +657 -0
  94. package/dist/llms/index.d.ts +657 -0
  95. package/dist/llms/index.js +101 -0
  96. package/dist/llms/index.js.map +1 -0
  97. package/dist/llms/index.mjs +4 -0
  98. package/dist/llms/index.mjs.map +1 -0
  99. package/dist/migrator-ARLHUNB3.mjs +4 -0
  100. package/dist/migrator-ARLHUNB3.mjs.map +1 -0
  101. package/dist/migrator-VZLBH3VY.js +37 -0
  102. package/dist/migrator-VZLBH3VY.js.map +1 -0
  103. package/dist/redirects/index.js +1 -1
  104. package/dist/redirects/index.mjs +1 -1
  105. package/dist/reputation/index.js +1 -1
  106. package/dist/reputation/index.mjs +1 -1
  107. package/dist/{routing-BWjUF7lp.d.ts → routing-CF91y6NO.d.ts} +1 -1
  108. package/dist/{routing-CgmRi9tD.d.mts → routing-CIOFpFCB.d.mts} +1 -1
  109. package/dist/scanner-7ZMUM2P5.mjs +4 -0
  110. package/dist/scanner-7ZMUM2P5.mjs.map +1 -0
  111. package/dist/scanner-OY7UF3WA.js +53 -0
  112. package/dist/scanner-OY7UF3WA.js.map +1 -0
  113. package/dist/seo/index.d.mts +267 -7
  114. package/dist/seo/index.d.ts +267 -7
  115. package/dist/seo/index.js +432 -24
  116. package/dist/seo/index.js.map +1 -1
  117. package/dist/seo/index.mjs +400 -11
  118. package/dist/seo/index.mjs.map +1 -1
  119. package/dist/seo/server.d.mts +11 -4
  120. package/dist/seo/server.d.ts +11 -4
  121. package/dist/seo/server.js +17 -17
  122. package/dist/seo/server.mjs +3 -3
  123. package/dist/setup/client.js +1 -1
  124. package/dist/setup/client.mjs +1 -1
  125. package/dist/setup/index.js +3 -3
  126. package/dist/setup/index.mjs +2 -2
  127. package/dist/setup/server.js +3 -3
  128. package/dist/setup/server.mjs +2 -2
  129. package/dist/sitemap/index.js +2 -2
  130. package/dist/sitemap/index.js.map +1 -1
  131. package/dist/sitemap/index.mjs +2 -2
  132. package/dist/sitemap/index.mjs.map +1 -1
  133. package/dist/{types-C0pJGfbH.d.mts → types-D6FHAVWX.d.mts} +99 -3
  134. package/dist/{types-C0pJGfbH.d.ts → types-D6FHAVWX.d.ts} +99 -3
  135. package/dist/{types-BN4OwtCO.d.mts → types-DI0jnhjJ.d.mts} +2 -0
  136. package/dist/{types-BN4OwtCO.d.ts → types-DI0jnhjJ.d.ts} +2 -0
  137. package/dist/{types-BmzutFwy.d.ts → types-j8X4vUhB.d.mts} +19 -2
  138. package/dist/{types-BmzutFwy.d.mts → types-j8X4vUhB.d.ts} +19 -2
  139. package/dist/{web-vitals-BH55V7EJ.js → web-vitals-444RLW3B.js} +11 -11
  140. package/dist/{web-vitals-BH55V7EJ.js.map → web-vitals-444RLW3B.js.map} +1 -1
  141. package/dist/{web-vitals-RJYPWAR3.mjs → web-vitals-KPICZIEF.mjs} +3 -3
  142. package/dist/{web-vitals-RJYPWAR3.mjs.map → web-vitals-KPICZIEF.mjs.map} +1 -1
  143. package/package.json +9 -2
  144. package/dist/api-N35S3EES.js +0 -57
  145. package/dist/api-N35S3EES.js.map +0 -1
  146. package/dist/api-SYBTK7Z7.mjs +0 -4
  147. package/dist/api-SYBTK7Z7.mjs.map +0 -1
  148. package/dist/chunk-2IHTEKHU.mjs.map +0 -1
  149. package/dist/chunk-7H6I3ECV.mjs.map +0 -1
  150. package/dist/chunk-BGJLOJ7T.mjs +0 -605
  151. package/dist/chunk-BGJLOJ7T.mjs.map +0 -1
  152. package/dist/chunk-EQCVQC35.js +0 -35
  153. package/dist/chunk-FKVJOT2F.mjs.map +0 -1
  154. package/dist/chunk-GAJLEDRD.js.map +0 -1
  155. package/dist/chunk-NYKRE2FL.mjs +0 -31
  156. package/dist/chunk-O2OHHBUD.js.map +0 -1
  157. package/dist/chunk-QAYJV4KK.js +0 -608
  158. package/dist/chunk-QAYJV4KK.js.map +0 -1
  159. package/dist/chunk-QP5NCO2E.js.map +0 -1
  160. package/dist/chunk-V3F5J6CV.js.map +0 -1
  161. package/dist/chunk-XQJX252G.mjs.map +0 -1
  162. package/dist/generators-TO2FKJR6.mjs.map +0 -1
  163. package/dist/generators-YZWIGHCO.js.map +0 -1
  164. package/dist/migrator-V6KS75EA.mjs +0 -265
  165. package/dist/migrator-V6KS75EA.mjs.map +0 -1
  166. package/dist/migrator-XKM7YQCY.js +0 -272
  167. package/dist/migrator-XKM7YQCY.js.map +0 -1
  168. package/dist/scanner-AZV5I6US.mjs.map +0 -1
  169. package/dist/scanner-ETJAMIT7.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkV3F5J6CV_js = require('../chunk-V3F5J6CV.js');
4
- require('../chunk-EQCVQC35.js');
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 } = chunkV3F5J6CV_js.useAnalytics();
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 chunkV3F5J6CV_js.AnalyticsProvider; }
71
+ get: function () { return chunkJUEVN4Q4_js.AnalyticsProvider; }
72
72
  });
73
73
  Object.defineProperty(exports, "WebVitals", {
74
74
  enumerable: true,
75
- get: function () { return chunkV3F5J6CV_js.WebVitals; }
75
+ get: function () { return chunkJUEVN4Q4_js.WebVitals; }
76
76
  });
77
77
  Object.defineProperty(exports, "useAnalytics", {
78
78
  enumerable: true,
79
- get: function () { return chunkV3F5J6CV_js.useAnalytics; }
79
+ get: function () { return chunkJUEVN4Q4_js.useAnalytics; }
80
80
  });
81
81
  Object.defineProperty(exports, "useTrackEvent", {
82
82
  enumerable: true,
83
- get: function () { return chunkV3F5J6CV_js.useTrackEvent; }
83
+ get: function () { return chunkJUEVN4Q4_js.useTrackEvent; }
84
84
  });
85
85
  exports.ContactTracking = ContactTracking;
86
86
  exports.useContactTracking = useContactTracking;
@@ -1,6 +1,6 @@
1
- import { useAnalytics } from '../chunk-FKVJOT2F.mjs';
2
- export { AnalyticsProvider, WebVitals, useAnalytics, useTrackEvent } from '../chunk-FKVJOT2F.mjs';
3
- import '../chunk-NYKRE2FL.mjs';
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"}
@@ -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-BN4OwtCO.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-BN4OwtCO.mjs';
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 */
@@ -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-BN4OwtCO.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-BN4OwtCO.js';
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 */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- require('../chunk-EQCVQC35.js');
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 AuthorSection({ author }) {
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
  }