@sonordev/site-kit 4.3.1 → 5.0.0

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 (316) hide show
  1. package/agent-manifest.json +1 -1
  2. package/dist/AnalyticsProvider-KCLRFOX6.mjs +10 -0
  3. package/dist/{AnalyticsProvider-VWYCBDBH.mjs.map → AnalyticsProvider-KCLRFOX6.mjs.map} +1 -1
  4. package/dist/AnalyticsProvider-TXM3DRLI.js +31 -0
  5. package/dist/{AnalyticsProvider-7AR6JHXJ.js.map → AnalyticsProvider-TXM3DRLI.js.map} +1 -1
  6. package/dist/BlogViewTracker-J6LRGUHU.js +51 -0
  7. package/dist/BlogViewTracker-J6LRGUHU.js.map +1 -0
  8. package/dist/BlogViewTracker-PZWAWB3O.mjs +48 -0
  9. package/dist/BlogViewTracker-PZWAWB3O.mjs.map +1 -0
  10. package/dist/ChatWidget-LD54Z2PQ.js +20 -0
  11. package/dist/{ChatWidget-CIDC64OF.js.map → ChatWidget-LD54Z2PQ.js.map} +1 -1
  12. package/dist/ChatWidget-PMDPSZXG.mjs +11 -0
  13. package/dist/{ChatWidget-XZQXPCLI.mjs.map → ChatWidget-PMDPSZXG.mjs.map} +1 -1
  14. package/dist/EngageWidget-4CBFRN4Y.mjs +9 -0
  15. package/dist/{EngageWidget-RDX5XJ3V.mjs.map → EngageWidget-4CBFRN4Y.mjs.map} +1 -1
  16. package/dist/EngageWidget-BF5NMQ5A.js +18 -0
  17. package/dist/{EngageWidget-27RJHFFZ.js.map → EngageWidget-BF5NMQ5A.js.map} +1 -1
  18. package/dist/{FileField-HSPQLACF.mjs → FileField-FFRHS3XP.mjs} +5 -5
  19. package/dist/{FileField-HSPQLACF.mjs.map → FileField-FFRHS3XP.mjs.map} +1 -1
  20. package/dist/{FileField-ASOR3XG5.js → FileField-VXADIOMN.js} +6 -6
  21. package/dist/{FileField-ASOR3XG5.js.map → FileField-VXADIOMN.js.map} +1 -1
  22. package/dist/{FormSpotlight-VTWP4X6H.js → FormSpotlight-JG4ZHS56.js} +15 -15
  23. package/dist/{FormSpotlight-VTWP4X6H.js.map → FormSpotlight-JG4ZHS56.js.map} +1 -1
  24. package/dist/{FormSpotlight-VZPPMBJU.mjs → FormSpotlight-KE46EDP5.mjs} +3 -3
  25. package/dist/{FormSpotlight-VZPPMBJU.mjs.map → FormSpotlight-KE46EDP5.mjs.map} +1 -1
  26. package/dist/{FormStage-DUCY4VGI.js → FormStage-5Z53Z2WY.js} +13 -13
  27. package/dist/{FormStage-DUCY4VGI.js.map → FormStage-5Z53Z2WY.js.map} +1 -1
  28. package/dist/{FormStage-MTUODSRC.mjs → FormStage-PZKWEXZE.mjs} +3 -3
  29. package/dist/{FormStage-MTUODSRC.mjs.map → FormStage-PZKWEXZE.mjs.map} +1 -1
  30. package/dist/ManagedForm-E4WHMARH.js +23 -0
  31. package/dist/{ManagedForm-6MTTWEER.js.map → ManagedForm-E4WHMARH.js.map} +1 -1
  32. package/dist/ManagedForm-VU2TKV6J.mjs +14 -0
  33. package/dist/{ManagedForm-GKCCHPIX.mjs.map → ManagedForm-VU2TKV6J.mjs.map} +1 -1
  34. package/dist/ManagedNewsletterForm-6DET3VGZ.mjs +62 -0
  35. package/dist/ManagedNewsletterForm-6DET3VGZ.mjs.map +1 -0
  36. package/dist/ManagedNewsletterForm-PG4EX3W6.js +64 -0
  37. package/dist/ManagedNewsletterForm-PG4EX3W6.js.map +1 -0
  38. package/dist/{SignalCore-TG3G3VYI.mjs → SignalCore-RZVTLUC2.mjs} +5 -5
  39. package/dist/{SignalCore-TG3G3VYI.mjs.map → SignalCore-RZVTLUC2.mjs.map} +1 -1
  40. package/dist/{SignalCore-HWTGSUMC.js → SignalCore-TCUVXVMN.js} +11 -11
  41. package/dist/{SignalCore-HWTGSUMC.js.map → SignalCore-TCUVXVMN.js.map} +1 -1
  42. package/dist/SitemapSync-AJU4DM3G.js +17 -0
  43. package/dist/{SitemapSync-PQMQAZMH.js.map → SitemapSync-AJU4DM3G.js.map} +1 -1
  44. package/dist/SitemapSync-T75NAFB3.mjs +8 -0
  45. package/dist/{SitemapSync-62VTFZDI.mjs.map → SitemapSync-T75NAFB3.mjs.map} +1 -1
  46. package/dist/analytics/index.js +9 -9
  47. package/dist/analytics/index.mjs +4 -4
  48. package/dist/blog/AuthorCard.d.ts.map +1 -1
  49. package/dist/blog/AuthorPage.d.ts.map +1 -1
  50. package/dist/blog/BlogList.d.ts +7 -1
  51. package/dist/blog/BlogList.d.ts.map +1 -1
  52. package/dist/blog/BlogPost.d.ts +1 -1
  53. package/dist/blog/BlogPost.d.ts.map +1 -1
  54. package/dist/blog/BlogSidebar.d.ts +0 -7
  55. package/dist/blog/BlogSidebar.d.ts.map +1 -1
  56. package/dist/blog/BlogViewTracker.d.ts +10 -0
  57. package/dist/blog/BlogViewTracker.d.ts.map +1 -0
  58. package/dist/blog/ClusterLandingPage.d.ts.map +1 -1
  59. package/dist/blog/ManagedNewsletterForm.d.ts +13 -0
  60. package/dist/blog/ManagedNewsletterForm.d.ts.map +1 -0
  61. package/dist/blog/NewsletterShell.d.ts +18 -0
  62. package/dist/blog/NewsletterShell.d.ts.map +1 -0
  63. package/dist/blog/NewsletterWidget.d.ts +31 -0
  64. package/dist/blog/NewsletterWidget.d.ts.map +1 -0
  65. package/dist/blog/RelatedPosts.d.ts.map +1 -1
  66. package/dist/blog/author-social.d.ts +15 -0
  67. package/dist/blog/author-social.d.ts.map +1 -0
  68. package/dist/blog/author-social.test.d.ts +2 -0
  69. package/dist/blog/author-social.test.d.ts.map +1 -0
  70. package/dist/blog/blog-view-tracker.test.d.ts +2 -0
  71. package/dist/blog/blog-view-tracker.test.d.ts.map +1 -0
  72. package/dist/blog/category-metadata.test.d.ts +2 -0
  73. package/dist/blog/category-metadata.test.d.ts.map +1 -0
  74. package/dist/blog/index.d.ts +4 -2
  75. package/dist/blog/index.d.ts.map +1 -1
  76. package/dist/blog/index.js +94 -505
  77. package/dist/blog/index.js.map +1 -1
  78. package/dist/blog/index.mjs +59 -491
  79. package/dist/blog/index.mjs.map +1 -1
  80. package/dist/blog/newsletter-widget.test.d.ts +2 -0
  81. package/dist/blog/newsletter-widget.test.d.ts.map +1 -0
  82. package/dist/blog/reading-time.d.ts +10 -0
  83. package/dist/blog/reading-time.d.ts.map +1 -0
  84. package/dist/blog/reading-time.test.d.ts +2 -0
  85. package/dist/blog/reading-time.test.d.ts.map +1 -0
  86. package/dist/blog/server-core-contract.test.d.ts +2 -0
  87. package/dist/blog/server-core-contract.test.d.ts.map +1 -0
  88. package/dist/blog/server-core.d.ts +16 -4
  89. package/dist/blog/server-core.d.ts.map +1 -1
  90. package/dist/blog/server-ui.d.ts +5 -0
  91. package/dist/blog/server-ui.d.ts.map +1 -1
  92. package/dist/blog/server-ui.js +35 -10
  93. package/dist/blog/server-ui.js.map +1 -1
  94. package/dist/blog/server-ui.mjs +8 -6
  95. package/dist/blog/server-ui.mjs.map +1 -1
  96. package/dist/blog/server.d.ts +16 -4
  97. package/dist/blog/server.d.ts.map +1 -1
  98. package/dist/blog/server.js +40 -40
  99. package/dist/blog/server.mjs +1 -1
  100. package/dist/blog/tag-links.test.d.ts +2 -0
  101. package/dist/blog/tag-links.test.d.ts.map +1 -0
  102. package/dist/blog/types-wire-shape.test.d.ts +2 -0
  103. package/dist/blog/types-wire-shape.test.d.ts.map +1 -0
  104. package/dist/blog/types.d.ts +25 -19
  105. package/dist/blog/types.d.ts.map +1 -1
  106. package/dist/blog/widget-styles.d.ts +9 -0
  107. package/dist/blog/widget-styles.d.ts.map +1 -0
  108. package/dist/{chunk-IM4OVQ4O.js → chunk-3FZ76VI5.js} +14 -14
  109. package/dist/{chunk-IM4OVQ4O.js.map → chunk-3FZ76VI5.js.map} +1 -1
  110. package/dist/{chunk-YXZTCBS7.mjs → chunk-3SMG4EXR.mjs} +3 -3
  111. package/dist/{chunk-YXZTCBS7.mjs.map → chunk-3SMG4EXR.mjs.map} +1 -1
  112. package/dist/{chunk-3ZWY6S4V.js → chunk-4D2G5ZNP.js} +15 -15
  113. package/dist/{chunk-3ZWY6S4V.js.map → chunk-4D2G5ZNP.js.map} +1 -1
  114. package/dist/{chunk-AVFXLKIP.mjs → chunk-4UHO6DPJ.mjs} +4 -4
  115. package/dist/{chunk-AVFXLKIP.mjs.map → chunk-4UHO6DPJ.mjs.map} +1 -1
  116. package/dist/{chunk-E637QPCS.mjs → chunk-5JNLZRLX.mjs} +3 -3
  117. package/dist/{chunk-E637QPCS.mjs.map → chunk-5JNLZRLX.mjs.map} +1 -1
  118. package/dist/{chunk-MPL42FJL.js → chunk-5JQLLF2T.js} +12 -12
  119. package/dist/{chunk-MPL42FJL.js.map → chunk-5JQLLF2T.js.map} +1 -1
  120. package/dist/{chunk-2MAYXWJI.js → chunk-5OHHYGD6.js} +15 -15
  121. package/dist/{chunk-2MAYXWJI.js.map → chunk-5OHHYGD6.js.map} +1 -1
  122. package/dist/{chunk-QIJIOKNT.js → chunk-62ODUWUX.js} +4 -4
  123. package/dist/{chunk-QIJIOKNT.js.map → chunk-62ODUWUX.js.map} +1 -1
  124. package/dist/{chunk-BL26HJKE.js → chunk-6QQFEJIP.js} +8 -8
  125. package/dist/{chunk-BL26HJKE.js.map → chunk-6QQFEJIP.js.map} +1 -1
  126. package/dist/{chunk-3FYSBRMT.js → chunk-7T4VMXKD.js} +3 -3
  127. package/dist/{chunk-3FYSBRMT.js.map → chunk-7T4VMXKD.js.map} +1 -1
  128. package/dist/chunk-AK6JZ3OE.mjs +65 -0
  129. package/dist/chunk-AK6JZ3OE.mjs.map +1 -0
  130. package/dist/{chunk-OAOT72JI.mjs → chunk-AXYKBQVI.mjs} +9 -8
  131. package/dist/chunk-AXYKBQVI.mjs.map +1 -0
  132. package/dist/{chunk-QC6EOISZ.js → chunk-BQY3FJ3R.js} +8 -8
  133. package/dist/{chunk-QC6EOISZ.js.map → chunk-BQY3FJ3R.js.map} +1 -1
  134. package/dist/{chunk-6VHVIBLQ.mjs → chunk-DHXQBTXE.mjs} +62 -41
  135. package/dist/chunk-DHXQBTXE.mjs.map +1 -0
  136. package/dist/chunk-DO6ATNLN.js +67 -0
  137. package/dist/chunk-DO6ATNLN.js.map +1 -0
  138. package/dist/{chunk-UE537WQU.js → chunk-DX6D7HDI.js} +4 -4
  139. package/dist/{chunk-UE537WQU.js.map → chunk-DX6D7HDI.js.map} +1 -1
  140. package/dist/chunk-EISVUD75.mjs +23 -0
  141. package/dist/chunk-EISVUD75.mjs.map +1 -0
  142. package/dist/{chunk-JPHPRD4Z.mjs → chunk-FCKL5CF3.mjs} +3 -3
  143. package/dist/{chunk-JPHPRD4Z.mjs.map → chunk-FCKL5CF3.mjs.map} +1 -1
  144. package/dist/{chunk-RPLZIPTB.mjs → chunk-FDWDXMJL.mjs} +3 -3
  145. package/dist/{chunk-RPLZIPTB.mjs.map → chunk-FDWDXMJL.mjs.map} +1 -1
  146. package/dist/{chunk-ST7YQMYN.js → chunk-FQ3JQV3M.js} +4 -4
  147. package/dist/{chunk-ST7YQMYN.js.map → chunk-FQ3JQV3M.js.map} +1 -1
  148. package/dist/{chunk-PK43IK7S.mjs → chunk-FTBABL3T.mjs} +3 -3
  149. package/dist/{chunk-PK43IK7S.mjs.map → chunk-FTBABL3T.mjs.map} +1 -1
  150. package/dist/{chunk-5EFSD7VM.js → chunk-GCZMDY2T.js} +490 -20
  151. package/dist/chunk-GCZMDY2T.js.map +1 -0
  152. package/dist/chunk-GZJE23Y5.mjs +21 -0
  153. package/dist/chunk-GZJE23Y5.mjs.map +1 -0
  154. package/dist/{chunk-22UZYZKI.js → chunk-HCN2US4M.js} +18 -18
  155. package/dist/{chunk-22UZYZKI.js.map → chunk-HCN2US4M.js.map} +1 -1
  156. package/dist/{chunk-ACAMCJJQ.mjs → chunk-HEUCDF3O.mjs} +3 -3
  157. package/dist/{chunk-ACAMCJJQ.mjs.map → chunk-HEUCDF3O.mjs.map} +1 -1
  158. package/dist/chunk-HX6ZG3PP.js +19 -0
  159. package/dist/chunk-HX6ZG3PP.js.map +1 -0
  160. package/dist/{chunk-HSPDHVSJ.js → chunk-IX5RAZWX.js} +6 -6
  161. package/dist/{chunk-HSPDHVSJ.js.map → chunk-IX5RAZWX.js.map} +1 -1
  162. package/dist/{chunk-RJBW2JFO.mjs → chunk-J4JXAFSW.mjs} +3 -3
  163. package/dist/{chunk-RJBW2JFO.mjs.map → chunk-J4JXAFSW.mjs.map} +1 -1
  164. package/dist/{chunk-FBI6LYTM.js → chunk-JBGRXICL.js} +62 -41
  165. package/dist/chunk-JBGRXICL.js.map +1 -0
  166. package/dist/{chunk-Y5SN5HTO.js → chunk-JIUVBSQZ.js} +3 -3
  167. package/dist/{chunk-Y5SN5HTO.js.map → chunk-JIUVBSQZ.js.map} +1 -1
  168. package/dist/chunk-JPTJGLKS.mjs +6 -0
  169. package/dist/{chunk-Q3VBSR4M.mjs.map → chunk-JPTJGLKS.mjs.map} +1 -1
  170. package/dist/{chunk-DDP6XUF5.js → chunk-JY3KZDEM.js} +3 -3
  171. package/dist/{chunk-DDP6XUF5.js.map → chunk-JY3KZDEM.js.map} +1 -1
  172. package/dist/{chunk-U7WGZOJY.js → chunk-KWH6RAVY.js} +13 -12
  173. package/dist/chunk-KWH6RAVY.js.map +1 -0
  174. package/dist/{chunk-U2V6WHKY.js → chunk-LLKXPJSE.js} +7 -7
  175. package/dist/{chunk-U2V6WHKY.js.map → chunk-LLKXPJSE.js.map} +1 -1
  176. package/dist/{chunk-MIYP7WFZ.js → chunk-LZY374FB.js} +4 -4
  177. package/dist/{chunk-MIYP7WFZ.js.map → chunk-LZY374FB.js.map} +1 -1
  178. package/dist/{chunk-3YW4TAK2.js → chunk-MGPHBVOK.js} +9 -9
  179. package/dist/{chunk-3YW4TAK2.js.map → chunk-MGPHBVOK.js.map} +1 -1
  180. package/dist/{chunk-KI6LGZYL.js → chunk-MPO6TRLS.js} +14 -14
  181. package/dist/{chunk-KI6LGZYL.js.map → chunk-MPO6TRLS.js.map} +1 -1
  182. package/dist/{chunk-RRAUM373.mjs → chunk-MVJQ4ZA2.mjs} +4 -4
  183. package/dist/{chunk-RRAUM373.mjs.map → chunk-MVJQ4ZA2.mjs.map} +1 -1
  184. package/dist/{chunk-ISILFNCI.mjs → chunk-MWXBRCM2.mjs} +3 -3
  185. package/dist/{chunk-ISILFNCI.mjs.map → chunk-MWXBRCM2.mjs.map} +1 -1
  186. package/dist/chunk-N3RWPAR5.js +25 -0
  187. package/dist/chunk-N3RWPAR5.js.map +1 -0
  188. package/dist/{chunk-ZZV4EWMF.js → chunk-OGPS3DKE.js} +5 -5
  189. package/dist/{chunk-ZZV4EWMF.js.map → chunk-OGPS3DKE.js.map} +1 -1
  190. package/dist/chunk-OZ3FU4BT.js +23 -0
  191. package/dist/chunk-OZ3FU4BT.js.map +1 -0
  192. package/dist/{chunk-SS74PQTF.mjs → chunk-PPCTL4B5.mjs} +21 -10
  193. package/dist/chunk-PPCTL4B5.mjs.map +1 -0
  194. package/dist/{chunk-LHQ5IEFS.mjs → chunk-PZE5L2FK.mjs} +4 -4
  195. package/dist/{chunk-LHQ5IEFS.mjs.map → chunk-PZE5L2FK.mjs.map} +1 -1
  196. package/dist/{chunk-YLZNSSNI.mjs → chunk-QH3WVTEK.mjs} +4 -4
  197. package/dist/{chunk-YLZNSSNI.mjs.map → chunk-QH3WVTEK.mjs.map} +1 -1
  198. package/dist/{chunk-5Z44EOL6.mjs → chunk-QI2H5KK6.mjs} +4 -4
  199. package/dist/{chunk-5Z44EOL6.mjs.map → chunk-QI2H5KK6.mjs.map} +1 -1
  200. package/dist/chunk-S65JSRWW.js +8 -0
  201. package/dist/{chunk-GFMUUALQ.js.map → chunk-S65JSRWW.js.map} +1 -1
  202. package/dist/{chunk-MTKE7ASR.mjs → chunk-SW6KWUNI.mjs} +3 -3
  203. package/dist/{chunk-MTKE7ASR.mjs.map → chunk-SW6KWUNI.mjs.map} +1 -1
  204. package/dist/{chunk-BW6DSJEJ.mjs → chunk-SXPINIJG.mjs} +4 -4
  205. package/dist/{chunk-BW6DSJEJ.mjs.map → chunk-SXPINIJG.mjs.map} +1 -1
  206. package/dist/{chunk-WMKE5XNV.js → chunk-UABMMR7U.js} +21 -10
  207. package/dist/chunk-UABMMR7U.js.map +1 -0
  208. package/dist/{chunk-JEEWKAAY.mjs → chunk-UFURXSAI.mjs} +3 -3
  209. package/dist/{chunk-JEEWKAAY.mjs.map → chunk-UFURXSAI.mjs.map} +1 -1
  210. package/dist/{chunk-JJS63TDR.mjs → chunk-UV6KQUSL.mjs} +483 -21
  211. package/dist/chunk-UV6KQUSL.mjs.map +1 -0
  212. package/dist/{chunk-M5ZCJ34F.js → chunk-VACFVPNF.js} +14 -14
  213. package/dist/{chunk-M5ZCJ34F.js.map → chunk-VACFVPNF.js.map} +1 -1
  214. package/dist/{chunk-LYOM356F.mjs → chunk-XPAHKYX7.mjs} +3 -3
  215. package/dist/{chunk-LYOM356F.mjs.map → chunk-XPAHKYX7.mjs.map} +1 -1
  216. package/dist/chunk-YFX3Q56O.mjs +16 -0
  217. package/dist/chunk-YFX3Q56O.mjs.map +1 -0
  218. package/dist/{chunk-SMCNQWEU.mjs → chunk-YGRHEEPX.mjs} +7 -7
  219. package/dist/{chunk-SMCNQWEU.mjs.map → chunk-YGRHEEPX.mjs.map} +1 -1
  220. package/dist/{chunk-CCGFWAPD.mjs → chunk-YSZB2DRX.mjs} +3 -3
  221. package/dist/{chunk-CCGFWAPD.mjs.map → chunk-YSZB2DRX.mjs.map} +1 -1
  222. package/dist/{chunk-6726TSBB.mjs → chunk-YVE65W47.mjs} +4 -4
  223. package/dist/{chunk-6726TSBB.mjs.map → chunk-YVE65W47.mjs.map} +1 -1
  224. package/dist/cli/index.js +7 -27
  225. package/dist/cli/index.js.map +1 -1
  226. package/dist/cli/index.mjs +5 -25
  227. package/dist/cli/index.mjs.map +1 -1
  228. package/dist/client/index.js +5 -4
  229. package/dist/client/index.js.map +1 -1
  230. package/dist/client/index.mjs +4 -3
  231. package/dist/client/index.mjs.map +1 -1
  232. package/dist/commerce/index.js +56 -56
  233. package/dist/commerce/index.mjs +5 -5
  234. package/dist/engage/index.js +10 -10
  235. package/dist/engage/index.mjs +7 -7
  236. package/dist/fleet/index.js +8 -8
  237. package/dist/fleet/index.mjs +4 -4
  238. package/dist/forms/index.js +16 -16
  239. package/dist/forms/index.mjs +9 -9
  240. package/dist/forms/server.js +10 -10
  241. package/dist/forms/server.mjs +8 -8
  242. package/dist/forms/static.js +7 -7
  243. package/dist/forms/static.mjs +6 -6
  244. package/dist/images/index.js +11 -11
  245. package/dist/images/index.mjs +4 -4
  246. package/dist/index.js +63 -63
  247. package/dist/index.mjs +9 -9
  248. package/dist/layout/client.js +9 -8
  249. package/dist/layout/client.mjs +8 -7
  250. package/dist/layout/index.js +11 -10
  251. package/dist/layout/index.js.map +1 -1
  252. package/dist/layout/index.mjs +9 -8
  253. package/dist/layout/index.mjs.map +1 -1
  254. package/dist/llms/api.d.ts +13 -3
  255. package/dist/llms/api.d.ts.map +1 -1
  256. package/dist/llms/generateLLMsTxt.d.ts.map +1 -1
  257. package/dist/llms/index.js +14 -12
  258. package/dist/llms/index.js.map +1 -1
  259. package/dist/llms/index.mjs +4 -2
  260. package/dist/llms/index.mjs.map +1 -1
  261. package/dist/llms/types.d.ts +8 -0
  262. package/dist/llms/types.d.ts.map +1 -1
  263. package/dist/llms/writeLLMsTxt.d.ts +9 -0
  264. package/dist/llms/writeLLMsTxt.d.ts.map +1 -1
  265. package/dist/maps/index.js +5 -5
  266. package/dist/maps/index.mjs +3 -3
  267. package/dist/search/index.js +4 -4
  268. package/dist/search/index.mjs +3 -3
  269. package/dist/seo/client.js +5 -5
  270. package/dist/seo/client.mjs +4 -4
  271. package/dist/seo/index.js +5 -5
  272. package/dist/seo/index.mjs +4 -4
  273. package/dist/server/index.js +3 -3
  274. package/dist/server/index.mjs +2 -2
  275. package/dist/shared/publishCredential.d.ts +25 -9
  276. package/dist/shared/publishCredential.d.ts.map +1 -1
  277. package/dist/shared/version.d.ts +1 -1
  278. package/dist/signal/index.js +11 -11
  279. package/dist/signal/index.mjs +2 -2
  280. package/dist/sitemap/index.d.ts +22 -0
  281. package/dist/sitemap/index.d.ts.map +1 -1
  282. package/dist/sitemap/index.js +9 -2
  283. package/dist/sitemap/index.js.map +1 -1
  284. package/dist/sitemap/index.mjs +8 -1
  285. package/dist/sitemap/index.mjs.map +1 -1
  286. package/dist/sitemap/site-scope.test.d.ts +2 -0
  287. package/dist/sitemap/site-scope.test.d.ts.map +1 -0
  288. package/dist/sites/resolve.d.ts +7 -0
  289. package/dist/sites/resolve.d.ts.map +1 -0
  290. package/dist/sync/index.js +16 -16
  291. package/dist/sync/index.mjs +4 -4
  292. package/package.json +2 -2
  293. package/dist/AnalyticsProvider-7AR6JHXJ.js +0 -31
  294. package/dist/AnalyticsProvider-VWYCBDBH.mjs +0 -10
  295. package/dist/ChatWidget-CIDC64OF.js +0 -20
  296. package/dist/ChatWidget-XZQXPCLI.mjs +0 -11
  297. package/dist/EngageWidget-27RJHFFZ.js +0 -18
  298. package/dist/EngageWidget-RDX5XJ3V.mjs +0 -9
  299. package/dist/ManagedForm-6MTTWEER.js +0 -23
  300. package/dist/ManagedForm-GKCCHPIX.mjs +0 -14
  301. package/dist/SitemapSync-62VTFZDI.mjs +0 -8
  302. package/dist/SitemapSync-PQMQAZMH.js +0 -17
  303. package/dist/chunk-5EFSD7VM.js.map +0 -1
  304. package/dist/chunk-6VHVIBLQ.mjs.map +0 -1
  305. package/dist/chunk-7M7LNHVD.js +0 -40
  306. package/dist/chunk-7M7LNHVD.js.map +0 -1
  307. package/dist/chunk-CJTU5EUQ.mjs +0 -37
  308. package/dist/chunk-CJTU5EUQ.mjs.map +0 -1
  309. package/dist/chunk-FBI6LYTM.js.map +0 -1
  310. package/dist/chunk-GFMUUALQ.js +0 -8
  311. package/dist/chunk-JJS63TDR.mjs.map +0 -1
  312. package/dist/chunk-OAOT72JI.mjs.map +0 -1
  313. package/dist/chunk-Q3VBSR4M.mjs +0 -6
  314. package/dist/chunk-SS74PQTF.mjs.map +0 -1
  315. package/dist/chunk-U7WGZOJY.js.map +0 -1
  316. package/dist/chunk-WMKE5XNV.js.map +0 -1
@@ -1,428 +1,68 @@
1
1
  'use client';
2
2
  export { BlogFAQ } from '../chunk-O237KKCX.mjs';
3
- export { BlogList, BlogPost, ClusterNavigation, ServiceCallout, ServiceCallouts, addExternalLinkTargets, normalizeSiteHost, resolveBlogSiteUrl } from '../chunk-JJS63TDR.mjs';
3
+ import { NewsletterShell } from '../chunk-AK6JZ3OE.mjs';
4
+ import { getAuthorSocialLinks, readingTimeMinutes } from '../chunk-UV6KQUSL.mjs';
5
+ export { BlogLayout, BlogList, BlogPage, BlogPost, BlogPostPage, BlogSidebar, CategoryPage, ClusterNavigation, RelatedPosts, ServiceCallout, ServiceCallouts, addExternalLinkTargets, normalizeSiteHost, resolveBlogSiteUrl } from '../chunk-UV6KQUSL.mjs';
6
+ import '../chunk-YFX3Q56O.mjs';
4
7
  import { generateAuthorSchema } from '../chunk-CGCYZJYX.mjs';
5
8
  import { safeJsonLd } from '../chunk-662YHKWW.mjs';
6
9
  import '../chunk-BEXTDHO4.mjs';
7
- import { jsxs, jsx } from 'react/jsx-runtime';
8
- import { useState, useEffect } from 'react';
10
+ import React, { useState, Suspense, useEffect } from 'react';
11
+ import { jsx, jsxs } from 'react/jsx-runtime';
9
12
 
10
- async function fetchRecentPosts(apiUrl, apiKey, limit = 5) {
11
- try {
12
- const response = await fetch(`${apiUrl}/public/blog/recent?limit=${limit}`, {
13
- headers: { "x-api-key": apiKey },
14
- next: { revalidate: 300 }
15
- });
16
- if (!response.ok) return [];
17
- const data = await response.json();
18
- return data.posts || [];
19
- } catch (error) {
20
- console.error("[Blog] Error fetching recent posts:", error);
21
- return [];
22
- }
23
- }
24
- async function fetchCategories(apiUrl, apiKey) {
25
- try {
26
- const response = await fetch(`${apiUrl}/public/blog/categories`, {
27
- headers: { "x-api-key": apiKey },
28
- next: { revalidate: 300 }
29
- });
30
- if (!response.ok) return [];
31
- const data = await response.json();
32
- return data.categories || [];
33
- } catch (error) {
34
- console.error("[Blog] Error fetching categories:", error);
35
- return [];
36
- }
37
- }
38
- async function fetchTags(apiUrl, apiKey) {
39
- try {
40
- const response = await fetch(`${apiUrl}/public/blog/tags`, {
41
- headers: { "x-api-key": apiKey },
42
- next: { revalidate: 300 }
43
- });
44
- if (!response.ok) return [];
45
- const data = await response.json();
46
- return data.tags || [];
47
- } catch (error) {
48
- console.error("[Blog] Error fetching tags:", error);
49
- return [];
50
- }
51
- }
52
- async function BlogSidebar({
53
- apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
54
- apiKey = process.env.SONOR_API_KEY || "",
55
- showCategories = true,
56
- showRecentPosts = true,
57
- recentPostsCount = 5,
58
- showTags = true,
59
- showSearch = true,
60
- basePath = "/blog",
61
- className,
62
- currentCategory,
63
- children
64
- }) {
65
- if (!apiKey) {
66
- console.warn("[Blog] No API key configured for sidebar");
67
- return null;
68
- }
69
- const [categories, recentPosts, tags] = await Promise.all([
70
- showCategories ? fetchCategories(apiUrl, apiKey) : Promise.resolve([]),
71
- showRecentPosts ? fetchRecentPosts(apiUrl, apiKey, recentPostsCount) : Promise.resolve([]),
72
- showTags ? fetchTags(apiUrl, apiKey) : Promise.resolve([])
73
- ]);
74
- return /* @__PURE__ */ jsxs("aside", { className, style: { display: "flex", flexDirection: "column", gap: 32 }, children: [
75
- showSearch && /* @__PURE__ */ jsx(SearchWidget, { basePath }),
76
- showCategories && categories.length > 0 && /* @__PURE__ */ jsx(
77
- CategoriesWidget,
78
- {
79
- categories,
80
- basePath,
81
- currentCategory
82
- }
83
- ),
84
- showRecentPosts && recentPosts.length > 0 && /* @__PURE__ */ jsx(RecentPostsWidget, { posts: recentPosts, basePath }),
85
- showTags && tags.length > 0 && /* @__PURE__ */ jsx(TagsWidget, { tags, basePath }),
86
- children
87
- ] });
88
- }
89
- function SearchWidget({ basePath }) {
90
- return /* @__PURE__ */ jsxs("div", { style: widgetStyle, children: [
91
- /* @__PURE__ */ jsx("h4", { style: widgetTitleStyle, children: "Search" }),
92
- /* @__PURE__ */ jsx("form", { action: basePath, method: "get", children: /* @__PURE__ */ jsx(
93
- "input",
94
- {
95
- type: "search",
96
- name: "search",
97
- placeholder: "Search posts...",
98
- style: {
99
- width: "100%",
100
- padding: "10px 12px",
101
- border: "1px solid var(--sk-border)",
102
- borderRadius: 8,
103
- fontSize: 14
104
- }
105
- }
106
- ) })
107
- ] });
108
- }
109
- function CategoriesWidget({
110
- categories,
111
- basePath,
112
- currentCategory
113
- }) {
114
- return /* @__PURE__ */ jsxs("div", { style: widgetStyle, children: [
115
- /* @__PURE__ */ jsx("h4", { style: widgetTitleStyle, children: "Categories" }),
116
- /* @__PURE__ */ jsxs("ul", { style: { listStyle: "none", margin: 0, padding: 0 }, children: [
117
- /* @__PURE__ */ jsx("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ jsx(
118
- "a",
119
- {
120
- href: basePath,
121
- style: {
122
- ...categoryLinkStyle,
123
- fontWeight: !currentCategory ? 600 : 400,
124
- color: !currentCategory ? "var(--sk-primary)" : "var(--sk-text-primary)"
125
- },
126
- children: "All Posts"
127
- }
128
- ) }),
129
- categories.map((cat) => /* @__PURE__ */ jsx("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ jsxs(
130
- "a",
131
- {
132
- href: `${basePath}?category=${cat.slug}`,
133
- style: {
134
- ...categoryLinkStyle,
135
- fontWeight: currentCategory === cat.slug ? 600 : 400,
136
- color: currentCategory === cat.slug ? "var(--sk-primary)" : "var(--sk-text-primary)"
137
- },
138
- children: [
139
- cat.name,
140
- /* @__PURE__ */ jsxs("span", { style: { color: "var(--sk-text-tertiary)", marginLeft: 8 }, children: [
141
- "(",
142
- cat.post_count,
143
- ")"
144
- ] })
145
- ]
146
- }
147
- ) }, cat.slug))
148
- ] })
149
- ] });
150
- }
151
- function RecentPostsWidget({
152
- posts,
153
- basePath
154
- }) {
155
- return /* @__PURE__ */ jsxs("div", { style: widgetStyle, children: [
156
- /* @__PURE__ */ jsx("h4", { style: widgetTitleStyle, children: "Recent Posts" }),
157
- /* @__PURE__ */ jsx("ul", { style: { listStyle: "none", margin: 0, padding: 0 }, children: posts.map((post) => {
158
- const date = post.published_at ? new Date(post.published_at).toLocaleDateString("en-US", {
159
- month: "short",
160
- day: "numeric"
161
- }) : null;
162
- return /* @__PURE__ */ jsx(
163
- "li",
164
- {
165
- style: {
166
- marginBottom: 16,
167
- paddingBottom: 16,
168
- borderBottom: "1px solid var(--sk-border)"
169
- },
170
- children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: 12 }, children: [
171
- post.featured_image && /* @__PURE__ */ jsx("a", { href: `${basePath}/${post.slug}`, children: /* @__PURE__ */ jsx(
172
- "img",
173
- {
174
- src: post.featured_image,
175
- alt: "",
176
- style: {
177
- width: 64,
178
- height: 48,
179
- objectFit: "cover",
180
- borderRadius: 6,
181
- flexShrink: 0
182
- }
183
- }
184
- ) }),
185
- /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
186
- /* @__PURE__ */ jsx(
187
- "a",
188
- {
189
- href: `${basePath}/${post.slug}`,
190
- style: {
191
- fontSize: 14,
192
- fontWeight: 500,
193
- color: "var(--sk-text-primary)",
194
- textDecoration: "none",
195
- display: "-webkit-box",
196
- WebkitLineClamp: 2,
197
- WebkitBoxOrient: "vertical",
198
- overflow: "hidden"
199
- },
200
- children: post.title
201
- }
202
- ),
203
- date && /* @__PURE__ */ jsx("span", { style: { fontSize: 12, color: "var(--sk-text-tertiary)", display: "block", marginTop: 4 }, children: date })
204
- ] })
205
- ] })
206
- },
207
- post.id
208
- );
209
- }) })
210
- ] });
211
- }
212
- function TagsWidget({
213
- tags,
214
- basePath
215
- }) {
216
- return /* @__PURE__ */ jsxs("div", { style: widgetStyle, children: [
217
- /* @__PURE__ */ jsx("h4", { style: widgetTitleStyle, children: "Popular Tags" }),
218
- /* @__PURE__ */ jsx("div", { style: { display: "flex", flexWrap: "wrap", gap: 8 }, children: tags.slice(0, 15).map((tag) => /* @__PURE__ */ jsx(
219
- "a",
220
- {
221
- href: `${basePath}?tag=${tag.slug}`,
222
- style: {
223
- padding: "4px 10px",
224
- backgroundColor: "var(--sk-bg-elevated)",
225
- borderRadius: 9999,
226
- fontSize: 12,
227
- color: "var(--sk-text-primary)",
228
- textDecoration: "none",
229
- transition: "background-color 0.2s"
230
- },
231
- children: tag.name
232
- },
233
- tag.slug
234
- )) })
235
- ] });
236
- }
13
+ var ManagedNewsletterForm = React.lazy(() => import('../ManagedNewsletterForm-6DET3VGZ.mjs'));
237
14
  function NewsletterWidget({
238
15
  title = "Subscribe to Our Newsletter",
239
16
  description = "Get the latest posts delivered straight to your inbox.",
240
- buttonText = "Subscribe"
241
- }) {
242
- return /* @__PURE__ */ jsxs("div", { style: { ...widgetStyle, backgroundColor: "rgba(var(--sk-primary-rgb), 0.1)" }, children: [
243
- /* @__PURE__ */ jsx("h4", { style: { ...widgetTitleStyle, color: "var(--sk-primary)" }, children: title }),
244
- /* @__PURE__ */ jsx("p", { style: { fontSize: 14, color: "var(--sk-text-secondary)", marginBottom: 16 }, children: description }),
245
- /* @__PURE__ */ jsxs(
246
- "form",
247
- {
248
- onSubmit: (e) => {
249
- e.preventDefault();
250
- },
251
- style: { display: "flex", gap: 8 },
252
- children: [
253
- /* @__PURE__ */ jsx(
254
- "input",
255
- {
256
- type: "email",
257
- name: "email",
258
- placeholder: "Enter your email",
259
- required: true,
260
- style: {
261
- flex: 1,
262
- padding: "10px 12px",
263
- border: "1px solid var(--sk-border)",
264
- borderRadius: 8,
265
- fontSize: 14
266
- }
267
- }
268
- ),
269
- /* @__PURE__ */ jsx(
270
- "button",
271
- {
272
- type: "submit",
273
- style: {
274
- padding: "10px 16px",
275
- backgroundColor: "var(--sk-primary)",
276
- color: "var(--sk-bg)",
277
- border: "none",
278
- borderRadius: 8,
279
- fontSize: 14,
280
- fontWeight: 500,
281
- cursor: "pointer"
282
- },
283
- children: buttonText
284
- }
285
- )
286
- ]
287
- }
288
- )
289
- ] });
290
- }
291
- var widgetStyle = {
292
- padding: 20,
293
- backgroundColor: "var(--sk-bg-elevated)",
294
- borderRadius: 12
295
- };
296
- var widgetTitleStyle = {
297
- margin: "0 0 16px",
298
- fontSize: 16,
299
- fontWeight: 600,
300
- color: "var(--sk-text-primary)"
301
- };
302
- var categoryLinkStyle = {
303
- display: "flex",
304
- alignItems: "center",
305
- fontSize: 14,
306
- textDecoration: "none"
307
- };
308
- async function BlogLayout({
309
- apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
310
- apiKey = process.env.SONOR_API_KEY || "",
311
- layout = "sidebar-right",
312
- showSidebar = true,
313
- sidebarProps = {},
314
- hero,
315
- maxWidth = 1280,
316
- basePath = "/blog",
317
- className,
318
- currentCategory,
319
- children
17
+ buttonText = "Subscribe",
18
+ onSubmit,
19
+ formSlug,
20
+ successMessage = "You're subscribed \u2014 thanks!"
320
21
  }) {
321
- const hasSidebar = showSidebar && layout !== "full-width";
322
- return /* @__PURE__ */ jsxs("div", { className, children: [
323
- hero && /* @__PURE__ */ jsx(
324
- "section",
22
+ const [email, setEmail] = useState("");
23
+ const [status, setStatus] = useState("idle");
24
+ const [errorMessage, setErrorMessage] = useState(null);
25
+ if (!onSubmit && formSlug) {
26
+ return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
27
+ ManagedNewsletterForm,
325
28
  {
326
- style: {
327
- padding: "60px 20px",
328
- backgroundColor: hero.backgroundColor || "var(--sk-primary)",
329
- backgroundImage: hero.backgroundImage ? `url(${hero.backgroundImage})` : void 0,
330
- backgroundSize: "cover",
331
- backgroundPosition: "center",
332
- color: "var(--sk-bg)",
333
- textAlign: "center"
334
- },
335
- children: /* @__PURE__ */ jsxs("div", { style: { maxWidth, margin: "0 auto" }, children: [
336
- hero.title && /* @__PURE__ */ jsx(
337
- "h1",
338
- {
339
- style: {
340
- fontSize: "clamp(32px, 5vw, 48px)",
341
- fontWeight: 700,
342
- marginBottom: 16
343
- },
344
- children: hero.title
345
- }
346
- ),
347
- hero.subtitle && /* @__PURE__ */ jsx(
348
- "p",
349
- {
350
- style: {
351
- fontSize: "clamp(16px, 2vw, 20px)",
352
- opacity: 0.9,
353
- maxWidth: 600,
354
- margin: "0 auto"
355
- },
356
- children: hero.subtitle
357
- }
358
- )
359
- ] })
360
- }
361
- ),
362
- /* @__PURE__ */ jsx(
363
- "div",
364
- {
365
- style: {
366
- maxWidth,
367
- margin: "0 auto",
368
- padding: "40px 20px"
369
- },
370
- children: /* @__PURE__ */ jsxs(
371
- "div",
372
- {
373
- style: {
374
- display: hasSidebar ? "grid" : "block",
375
- gridTemplateColumns: hasSidebar ? layout === "sidebar-left" ? "300px 1fr" : "1fr 300px" : void 0,
376
- gap: 48
377
- },
378
- children: [
379
- hasSidebar && layout === "sidebar-left" && /* @__PURE__ */ jsx(
380
- BlogSidebar,
381
- {
382
- apiUrl,
383
- apiKey,
384
- basePath,
385
- currentCategory,
386
- ...sidebarProps
387
- }
388
- ),
389
- /* @__PURE__ */ jsx("main", { style: { minWidth: 0 }, children }),
390
- hasSidebar && layout === "sidebar-right" && /* @__PURE__ */ jsx(
391
- BlogSidebar,
392
- {
393
- apiUrl,
394
- apiKey,
395
- basePath,
396
- currentCategory,
397
- ...sidebarProps
398
- }
399
- )
400
- ]
401
- }
402
- )
403
- }
404
- )
405
- ] });
406
- }
407
- async function BlogPage({ listComponent, ...layoutProps }) {
408
- return /* @__PURE__ */ jsx(BlogLayout, { ...layoutProps, children: listComponent });
409
- }
410
- async function BlogPostPage({ postComponent, ...layoutProps }) {
411
- return /* @__PURE__ */ jsx(BlogLayout, { ...layoutProps, showSidebar: false, layout: "full-width", children: /* @__PURE__ */ jsx("div", { style: { maxWidth: 800, margin: "0 auto" }, children: postComponent }) });
412
- }
413
- async function CategoryPage({
414
- category,
415
- categoryName,
416
- listComponent,
417
- hero,
418
- ...layoutProps
419
- }) {
420
- const categoryHero = hero || {
421
- title: categoryName || category,
422
- subtitle: `Browse all posts in ${categoryName || category}`,
423
- backgroundColor: "var(--sk-primary)"
424
- };
425
- return /* @__PURE__ */ jsx(BlogLayout, { ...layoutProps, hero: categoryHero, currentCategory: category, children: listComponent });
29
+ formSlug,
30
+ title,
31
+ description,
32
+ buttonText,
33
+ successMessage
34
+ },
35
+ formSlug
36
+ ) });
37
+ }
38
+ if (!onSubmit) {
39
+ console.warn(
40
+ "[Blog] NewsletterWidget needs an onSubmit callback or a formSlug \u2014 rendering nothing rather than a form that discards emails."
41
+ );
42
+ return null;
43
+ }
44
+ return /* @__PURE__ */ jsx(
45
+ NewsletterShell,
46
+ {
47
+ title,
48
+ description,
49
+ buttonText,
50
+ email,
51
+ onEmailChange: setEmail,
52
+ onFormSubmit: (e) => {
53
+ e.preventDefault();
54
+ setStatus("submitting");
55
+ setErrorMessage(null);
56
+ onSubmit(email).then(() => setStatus("success")).catch((err) => {
57
+ setStatus("error");
58
+ setErrorMessage(err instanceof Error ? err.message : null);
59
+ });
60
+ },
61
+ status,
62
+ successMessage,
63
+ errorMessage
64
+ }
65
+ );
426
66
  }
427
67
  function TrustBlock({ author }) {
428
68
  const hasYears = typeof author.years_experience === "number" && author.years_experience > 0;
@@ -561,11 +201,7 @@ function AuthorCard({ author, showBio = true, showSocial = true, showTrustBlock
561
201
  author.company ? ` at ${author.company}` : ""
562
202
  ] }),
563
203
  showBio && author.bio && /* @__PURE__ */ jsx("p", { style: { margin: "4px 0", color: "var(--sk-text-secondary)", fontSize: 14 }, children: author.bio }),
564
- showSocial && author.social_links && /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: 12, marginTop: 8 }, children: [
565
- author.social_links.twitter && /* @__PURE__ */ jsx("a", { href: `https://twitter.com/${author.social_links.twitter}`, target: "_blank", rel: "noopener noreferrer", children: "Twitter" }),
566
- author.social_links.linkedin && /* @__PURE__ */ jsx("a", { href: author.social_links.linkedin, target: "_blank", rel: "noopener noreferrer", children: "LinkedIn" }),
567
- author.social_links.github && /* @__PURE__ */ jsx("a", { href: `https://github.com/${author.social_links.github}`, target: "_blank", rel: "noopener noreferrer", children: "GitHub" })
568
- ] })
204
+ showSocial && getAuthorSocialLinks(author).length > 0 && /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 12, marginTop: 8 }, children: getAuthorSocialLinks(author).map((link) => /* @__PURE__ */ jsx("a", { href: link.href, target: "_blank", rel: "noopener noreferrer", children: link.label }, link.label)) })
569
205
  ] })
570
206
  ] }),
571
207
  showTrustBlock && /* @__PURE__ */ jsx(TrustBlock, { author })
@@ -626,13 +262,7 @@ function AuthorHero({ author }) {
626
262
  );
627
263
  }
628
264
  function SocialLinks({ author }) {
629
- const links = [];
630
- if (author.linkedin_url) links.push({ label: "LinkedIn", href: author.linkedin_url });
631
- else if (author.social_links?.linkedin) links.push({ label: "LinkedIn", href: author.social_links.linkedin });
632
- if (author.twitter_url) links.push({ label: "Twitter", href: author.twitter_url });
633
- else if (author.social_links?.twitter) links.push({ label: "Twitter", href: `https://twitter.com/${author.social_links.twitter}` });
634
- if (author.website_url) links.push({ label: "Website", href: author.website_url });
635
- else if (author.website) links.push({ label: "Website", href: author.website });
265
+ const links = getAuthorSocialLinks(author);
636
266
  if (links.length === 0) return null;
637
267
  return /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 16, marginTop: 16 }, children: links.map((link) => /* @__PURE__ */ jsx(
638
268
  "a",
@@ -687,8 +317,8 @@ function PostCard({ post, basePath }) {
687
317
  date && /* @__PURE__ */ jsx("time", { style: { fontSize: 12, color: "var(--sk-text-tertiary, #6b7280)", marginBottom: 6 }, children: date }),
688
318
  /* @__PURE__ */ jsx("a", { href, style: { textDecoration: "none", color: "inherit" }, children: /* @__PURE__ */ jsx("h3", { style: { margin: "0 0 8px", fontSize: 18, fontWeight: 600, lineHeight: 1.3, color: "var(--sk-text-primary, #111827)" }, children: post.title }) }),
689
319
  post.excerpt && /* @__PURE__ */ jsx("p", { style: { margin: 0, fontSize: 14, lineHeight: 1.6, color: "var(--sk-text-secondary, #4b5563)", flex: 1 }, children: post.excerpt }),
690
- post.reading_time_minutes && /* @__PURE__ */ jsxs("span", { style: { fontSize: 12, color: "var(--sk-text-tertiary, #6b7280)", marginTop: 12 }, children: [
691
- post.reading_time_minutes,
320
+ readingTimeMinutes(post) && /* @__PURE__ */ jsxs("span", { style: { fontSize: 12, color: "var(--sk-text-tertiary, #6b7280)", marginTop: 12 }, children: [
321
+ readingTimeMinutes(post),
692
322
  " min read"
693
323
  ] })
694
324
  ] })
@@ -733,68 +363,6 @@ function AuthorPage({ author, posts, basePath = "/blog" }) {
733
363
  ] })
734
364
  ] });
735
365
  }
736
- async function fetchRelatedPosts(apiUrl, apiKey, currentPostId, limit) {
737
- try {
738
- const response = await fetch(`${apiUrl}/api/public/blog/related`, {
739
- method: "POST",
740
- headers: {
741
- "Content-Type": "application/json",
742
- "x-api-key": apiKey
743
- },
744
- body: JSON.stringify({
745
- currentPostId,
746
- limit
747
- })
748
- });
749
- if (!response.ok) {
750
- console.error("Failed to fetch related posts:", response.statusText);
751
- return [];
752
- }
753
- const data = await response.json();
754
- return data.posts || [];
755
- } catch (error) {
756
- console.error("Failed to fetch related posts:", error);
757
- return [];
758
- }
759
- }
760
- async function RelatedPosts({
761
- apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
762
- apiKey = process.env.SONOR_API_KEY || "",
763
- currentPostId,
764
- limit = 3,
765
- className,
766
- renderItem
767
- }) {
768
- if (!apiKey) {
769
- console.warn("[Blog] No API key configured for RelatedPosts");
770
- return null;
771
- }
772
- const posts = await fetchRelatedPosts(apiUrl, apiKey, currentPostId, limit);
773
- if (posts.length === 0) return null;
774
- return /* @__PURE__ */ jsxs("section", { className, children: [
775
- /* @__PURE__ */ jsx("h3", { style: { marginBottom: 16 }, children: "Related Posts" }),
776
- /* @__PURE__ */ jsx("div", { style: { display: "grid", gap: 16 }, children: posts.map(
777
- (post) => renderItem ? renderItem(post) : /* @__PURE__ */ jsxs("article", { style: { borderBottom: "1px solid var(--sk-border)", paddingBottom: 16 }, children: [
778
- post.featured_image && /* @__PURE__ */ jsx(
779
- "img",
780
- {
781
- src: post.featured_image,
782
- alt: post.title,
783
- style: {
784
- width: "100%",
785
- height: 120,
786
- objectFit: "cover",
787
- borderRadius: 8,
788
- marginBottom: 8
789
- }
790
- }
791
- ),
792
- /* @__PURE__ */ jsx("a", { href: `/blog/${post.slug}`, style: { textDecoration: "none" }, children: /* @__PURE__ */ jsx("h4", { style: { margin: 0, color: "inherit" }, children: post.title }) }),
793
- post.excerpt && /* @__PURE__ */ jsx("p", { style: { margin: "4px 0 0", fontSize: 14, color: "var(--sk-text-secondary)" }, children: post.excerpt })
794
- ] }, post.id)
795
- ) })
796
- ] });
797
- }
798
366
  function parseHeadings(content) {
799
367
  const headingRegex = /<h([2-4])[^>]*id="([^"]*)"[^>]*>(.*?)<\/h[2-4]>/gi;
800
368
  const items = [];
@@ -876,6 +444,6 @@ function TableOfContents({
876
444
  ] });
877
445
  }
878
446
 
879
- export { AuthorCard, AuthorPage, BlogLayout, BlogPage, BlogPostPage, BlogSidebar, CategoryPage, NewsletterWidget, RelatedPosts, TableOfContents };
447
+ export { AuthorCard, AuthorPage, NewsletterWidget, TableOfContents };
880
448
  //# sourceMappingURL=index.mjs.map
881
449
  //# sourceMappingURL=index.mjs.map