@sonordev/site-kit 4.2.3 → 4.2.4

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 (197) hide show
  1. package/agent-manifest.json +1 -1
  2. package/dist/AnalyticsProvider-HVPZPHZI.mjs +10 -0
  3. package/dist/{AnalyticsProvider-NW3UZYL5.mjs.map → AnalyticsProvider-HVPZPHZI.mjs.map} +1 -1
  4. package/dist/AnalyticsProvider-LFSSF7MQ.js +31 -0
  5. package/dist/{AnalyticsProvider-VSTTYP4W.js.map → AnalyticsProvider-LFSSF7MQ.js.map} +1 -1
  6. package/dist/ChatWidget-7E4PLIYQ.mjs +11 -0
  7. package/dist/{ChatWidget-EWQ7LRD4.mjs.map → ChatWidget-7E4PLIYQ.mjs.map} +1 -1
  8. package/dist/ChatWidget-RFVIYV5C.js +20 -0
  9. package/dist/{ChatWidget-BJOE2OSI.js.map → ChatWidget-RFVIYV5C.js.map} +1 -1
  10. package/dist/EngageWidget-LPMSXVT6.js +18 -0
  11. package/dist/{EngageWidget-CZMNLFWI.js.map → EngageWidget-LPMSXVT6.js.map} +1 -1
  12. package/dist/EngageWidget-N7EQGSSL.mjs +9 -0
  13. package/dist/{EngageWidget-F427CI6Y.mjs.map → EngageWidget-N7EQGSSL.mjs.map} +1 -1
  14. package/dist/{FileField-5RVBU3Z4.mjs → FileField-AS6TUTXA.mjs} +5 -5
  15. package/dist/{FileField-5RVBU3Z4.mjs.map → FileField-AS6TUTXA.mjs.map} +1 -1
  16. package/dist/{FileField-Y4ZA7DST.js → FileField-Y7NOLT27.js} +6 -6
  17. package/dist/{FileField-Y4ZA7DST.js.map → FileField-Y7NOLT27.js.map} +1 -1
  18. package/dist/{FormSpotlight-CJPI2MRJ.mjs → FormSpotlight-I6FEUYAA.mjs} +3 -3
  19. package/dist/{FormSpotlight-CJPI2MRJ.mjs.map → FormSpotlight-I6FEUYAA.mjs.map} +1 -1
  20. package/dist/{FormSpotlight-MAEV6SZK.js → FormSpotlight-RMYOXT2T.js} +15 -15
  21. package/dist/{FormSpotlight-MAEV6SZK.js.map → FormSpotlight-RMYOXT2T.js.map} +1 -1
  22. package/dist/{FormStage-D42NAHSN.js → FormStage-44OWEWZM.js} +13 -13
  23. package/dist/{FormStage-D42NAHSN.js.map → FormStage-44OWEWZM.js.map} +1 -1
  24. package/dist/{FormStage-Z7WW3DNA.mjs → FormStage-G3MUJMTC.mjs} +3 -3
  25. package/dist/{FormStage-Z7WW3DNA.mjs.map → FormStage-G3MUJMTC.mjs.map} +1 -1
  26. package/dist/ManagedForm-LVBNVUZE.mjs +14 -0
  27. package/dist/{ManagedForm-A7BROQIN.mjs.map → ManagedForm-LVBNVUZE.mjs.map} +1 -1
  28. package/dist/ManagedForm-YC6WLYVJ.js +23 -0
  29. package/dist/{ManagedForm-Z3Z5Z6OL.js.map → ManagedForm-YC6WLYVJ.js.map} +1 -1
  30. package/dist/{SignalCore-NA6TJFVE.js → SignalCore-AW5VDA4Y.js} +11 -11
  31. package/dist/{SignalCore-NA6TJFVE.js.map → SignalCore-AW5VDA4Y.js.map} +1 -1
  32. package/dist/{SignalCore-77UH6PZ4.mjs → SignalCore-DYBIG4JP.mjs} +5 -5
  33. package/dist/{SignalCore-77UH6PZ4.mjs.map → SignalCore-DYBIG4JP.mjs.map} +1 -1
  34. package/dist/SitemapSync-2JJOGL7D.mjs +8 -0
  35. package/dist/{SitemapSync-EY33A6P4.mjs.map → SitemapSync-2JJOGL7D.mjs.map} +1 -1
  36. package/dist/SitemapSync-S54TSZLM.js +17 -0
  37. package/dist/{SitemapSync-62F6HVAW.js.map → SitemapSync-S54TSZLM.js.map} +1 -1
  38. package/dist/analytics/index.js +9 -9
  39. package/dist/analytics/index.mjs +4 -4
  40. package/dist/{chunk-XOJYGBYF.js → chunk-2MFLOK2I.js} +3 -3
  41. package/dist/{chunk-XOJYGBYF.js.map → chunk-2MFLOK2I.js.map} +1 -1
  42. package/dist/{chunk-3P4HJAZA.mjs → chunk-2MLIU6OJ.mjs} +4 -4
  43. package/dist/{chunk-3P4HJAZA.mjs.map → chunk-2MLIU6OJ.mjs.map} +1 -1
  44. package/dist/{chunk-QJK2X3UK.js → chunk-2XLWCYB3.js} +12 -12
  45. package/dist/{chunk-QJK2X3UK.js.map → chunk-2XLWCYB3.js.map} +1 -1
  46. package/dist/{chunk-ZASFY4NR.mjs → chunk-33OSUHPZ.mjs} +4 -4
  47. package/dist/{chunk-ZASFY4NR.mjs.map → chunk-33OSUHPZ.mjs.map} +1 -1
  48. package/dist/chunk-4JVFWTER.js +8 -0
  49. package/dist/{chunk-S5L73KZQ.js.map → chunk-4JVFWTER.js.map} +1 -1
  50. package/dist/{chunk-N5RTJNMN.js → chunk-5K2CX5LK.js} +6 -6
  51. package/dist/{chunk-N5RTJNMN.js.map → chunk-5K2CX5LK.js.map} +1 -1
  52. package/dist/{chunk-535HXGDU.mjs → chunk-6ZQFCZPW.mjs} +3 -3
  53. package/dist/{chunk-535HXGDU.mjs.map → chunk-6ZQFCZPW.mjs.map} +1 -1
  54. package/dist/{chunk-3DSGMX7P.js → chunk-A7O7IWL7.js} +3 -3
  55. package/dist/{chunk-3DSGMX7P.js.map → chunk-A7O7IWL7.js.map} +1 -1
  56. package/dist/{chunk-WCTOQFAN.js → chunk-ARFWE2EL.js} +14 -14
  57. package/dist/{chunk-WCTOQFAN.js.map → chunk-ARFWE2EL.js.map} +1 -1
  58. package/dist/{chunk-GJKO2TZN.js → chunk-BDDTZJKC.js} +4 -4
  59. package/dist/{chunk-GJKO2TZN.js.map → chunk-BDDTZJKC.js.map} +1 -1
  60. package/dist/{chunk-DZUOLOYS.mjs → chunk-BJW6YR6W.mjs} +3 -3
  61. package/dist/{chunk-DZUOLOYS.mjs.map → chunk-BJW6YR6W.mjs.map} +1 -1
  62. package/dist/{chunk-KL4MV6HK.mjs → chunk-C6CNCDIN.mjs} +3 -3
  63. package/dist/{chunk-KL4MV6HK.mjs.map → chunk-C6CNCDIN.mjs.map} +1 -1
  64. package/dist/{chunk-OHA43BNK.js → chunk-C6HDI464.js} +14 -14
  65. package/dist/{chunk-OHA43BNK.js.map → chunk-C6HDI464.js.map} +1 -1
  66. package/dist/{chunk-NEIUWAAL.js → chunk-CLD3IE6D.js} +5 -5
  67. package/dist/{chunk-NEIUWAAL.js.map → chunk-CLD3IE6D.js.map} +1 -1
  68. package/dist/{chunk-TKVADZFD.mjs → chunk-CPJA5XTO.mjs} +4 -4
  69. package/dist/{chunk-TKVADZFD.mjs.map → chunk-CPJA5XTO.mjs.map} +1 -1
  70. package/dist/{chunk-TFAYDIWM.mjs → chunk-E3F6OOVQ.mjs} +3 -3
  71. package/dist/{chunk-TFAYDIWM.mjs.map → chunk-E3F6OOVQ.mjs.map} +1 -1
  72. package/dist/chunk-EFMPOC6L.mjs +6 -0
  73. package/dist/{chunk-XCFCG46K.mjs.map → chunk-EFMPOC6L.mjs.map} +1 -1
  74. package/dist/{chunk-T6T5IQMN.mjs → chunk-FSSVIYQ7.mjs} +3 -3
  75. package/dist/{chunk-T6T5IQMN.mjs.map → chunk-FSSVIYQ7.mjs.map} +1 -1
  76. package/dist/{chunk-I7ORAWYT.mjs → chunk-HP7V2DI3.mjs} +3 -3
  77. package/dist/{chunk-I7ORAWYT.mjs.map → chunk-HP7V2DI3.mjs.map} +1 -1
  78. package/dist/{chunk-HVDKAR77.js → chunk-ICJ7EU4Z.js} +7 -7
  79. package/dist/{chunk-HVDKAR77.js.map → chunk-ICJ7EU4Z.js.map} +1 -1
  80. package/dist/{chunk-SAR473OC.js → chunk-JHOMOLZA.js} +12 -12
  81. package/dist/{chunk-SAR473OC.js.map → chunk-JHOMOLZA.js.map} +1 -1
  82. package/dist/{chunk-2XRGCDDG.js → chunk-KDWKSL7U.js} +9 -9
  83. package/dist/{chunk-2XRGCDDG.js.map → chunk-KDWKSL7U.js.map} +1 -1
  84. package/dist/{chunk-RDISSFEH.js → chunk-KPSESCYA.js} +15 -15
  85. package/dist/{chunk-RDISSFEH.js.map → chunk-KPSESCYA.js.map} +1 -1
  86. package/dist/{chunk-EHNUPEFY.mjs → chunk-L5GUV4M7.mjs} +7 -7
  87. package/dist/{chunk-EHNUPEFY.mjs.map → chunk-L5GUV4M7.mjs.map} +1 -1
  88. package/dist/{chunk-GDMOAGVS.js → chunk-LSNIDSLQ.js} +18 -18
  89. package/dist/{chunk-GDMOAGVS.js.map → chunk-LSNIDSLQ.js.map} +1 -1
  90. package/dist/{chunk-YWXZ4YLU.js → chunk-LUXCT2NU.js} +4 -4
  91. package/dist/{chunk-YWXZ4YLU.js.map → chunk-LUXCT2NU.js.map} +1 -1
  92. package/dist/{chunk-XA7RBHKT.js → chunk-NK6K4VHD.js} +4 -4
  93. package/dist/{chunk-XA7RBHKT.js.map → chunk-NK6K4VHD.js.map} +1 -1
  94. package/dist/{chunk-7BVZLSUJ.js → chunk-OIY5O3SE.js} +8 -8
  95. package/dist/{chunk-7BVZLSUJ.js.map → chunk-OIY5O3SE.js.map} +1 -1
  96. package/dist/{chunk-MP7ZYKMM.js → chunk-QQCOIGLN.js} +8 -8
  97. package/dist/{chunk-MP7ZYKMM.js.map → chunk-QQCOIGLN.js.map} +1 -1
  98. package/dist/{chunk-M2SEYO5J.js → chunk-RH5WIBIA.js} +5 -5
  99. package/dist/{chunk-M2SEYO5J.js.map → chunk-RH5WIBIA.js.map} +1 -1
  100. package/dist/{chunk-ZAVNGZJZ.js → chunk-SACGTFCK.js} +22 -6
  101. package/dist/chunk-SACGTFCK.js.map +1 -0
  102. package/dist/{chunk-HTLWSCUQ.mjs → chunk-SRJSR6YP.mjs} +22 -6
  103. package/dist/chunk-SRJSR6YP.mjs.map +1 -0
  104. package/dist/{chunk-PTZB4ES3.mjs → chunk-SSRQHRZB.mjs} +8 -8
  105. package/dist/{chunk-PTZB4ES3.mjs.map → chunk-SSRQHRZB.mjs.map} +1 -1
  106. package/dist/{chunk-XR3MDDQT.mjs → chunk-SYR7YSB2.mjs} +3 -3
  107. package/dist/{chunk-XR3MDDQT.mjs.map → chunk-SYR7YSB2.mjs.map} +1 -1
  108. package/dist/{chunk-BN4AL7XB.js → chunk-U7L7FW3K.js} +4 -4
  109. package/dist/{chunk-BN4AL7XB.js.map → chunk-U7L7FW3K.js.map} +1 -1
  110. package/dist/{chunk-6D3HZKTZ.mjs → chunk-UBSZ466T.mjs} +3 -3
  111. package/dist/{chunk-6D3HZKTZ.mjs.map → chunk-UBSZ466T.mjs.map} +1 -1
  112. package/dist/{chunk-RCRDDMUO.mjs → chunk-UHVII7W7.mjs} +3 -3
  113. package/dist/{chunk-RCRDDMUO.mjs.map → chunk-UHVII7W7.mjs.map} +1 -1
  114. package/dist/{chunk-UDNXM6RB.mjs → chunk-ULV3DZ27.mjs} +3 -3
  115. package/dist/{chunk-UDNXM6RB.mjs.map → chunk-ULV3DZ27.mjs.map} +1 -1
  116. package/dist/{chunk-INA4NW3Y.mjs → chunk-UVRB4SQU.mjs} +3 -3
  117. package/dist/{chunk-INA4NW3Y.mjs.map → chunk-UVRB4SQU.mjs.map} +1 -1
  118. package/dist/{chunk-J6HWSJT7.mjs → chunk-V3HJLXAI.mjs} +3 -3
  119. package/dist/{chunk-J6HWSJT7.mjs.map → chunk-V3HJLXAI.mjs.map} +1 -1
  120. package/dist/{chunk-T3HGONNE.mjs → chunk-WX6VKFHW.mjs} +4 -4
  121. package/dist/{chunk-T3HGONNE.mjs.map → chunk-WX6VKFHW.mjs.map} +1 -1
  122. package/dist/{chunk-XWFUQMU6.mjs → chunk-XKBADVXN.mjs} +3 -3
  123. package/dist/{chunk-XWFUQMU6.mjs.map → chunk-XKBADVXN.mjs.map} +1 -1
  124. package/dist/{chunk-FZAAQE4Y.mjs → chunk-XLD6K3BV.mjs} +4 -4
  125. package/dist/{chunk-FZAAQE4Y.mjs.map → chunk-XLD6K3BV.mjs.map} +1 -1
  126. package/dist/{chunk-RRR6Y6Y5.mjs → chunk-XWBQLPTZ.mjs} +4 -4
  127. package/dist/{chunk-RRR6Y6Y5.mjs.map → chunk-XWBQLPTZ.mjs.map} +1 -1
  128. package/dist/{chunk-SL6ZGJVN.mjs → chunk-YDOWCCE2.mjs} +4 -4
  129. package/dist/{chunk-SL6ZGJVN.mjs.map → chunk-YDOWCCE2.mjs.map} +1 -1
  130. package/dist/{chunk-S5UATBC7.js → chunk-YHGMM2XF.js} +14 -14
  131. package/dist/{chunk-S5UATBC7.js.map → chunk-YHGMM2XF.js.map} +1 -1
  132. package/dist/{chunk-JJDY5XXG.js → chunk-YZ6UYIXD.js} +3 -3
  133. package/dist/{chunk-JJDY5XXG.js.map → chunk-YZ6UYIXD.js.map} +1 -1
  134. package/dist/{chunk-MF6XLEX5.js → chunk-ZJNIM4GQ.js} +15 -15
  135. package/dist/{chunk-MF6XLEX5.js.map → chunk-ZJNIM4GQ.js.map} +1 -1
  136. package/dist/cli/index.js +36 -23
  137. package/dist/cli/index.js.map +1 -1
  138. package/dist/cli/index.mjs +29 -16
  139. package/dist/cli/index.mjs.map +1 -1
  140. package/dist/client/index.js +4 -4
  141. package/dist/client/index.mjs +3 -3
  142. package/dist/commerce/index.js +56 -56
  143. package/dist/commerce/index.mjs +5 -5
  144. package/dist/engage/index.js +10 -10
  145. package/dist/engage/index.mjs +7 -7
  146. package/dist/fleet/index.js +8 -8
  147. package/dist/fleet/index.mjs +4 -4
  148. package/dist/forms/index.js +16 -16
  149. package/dist/forms/index.mjs +9 -9
  150. package/dist/forms/server.js +10 -10
  151. package/dist/forms/server.mjs +8 -8
  152. package/dist/forms/static.js +7 -7
  153. package/dist/forms/static.mjs +6 -6
  154. package/dist/images/index.js +11 -11
  155. package/dist/images/index.mjs +4 -4
  156. package/dist/index.js +63 -63
  157. package/dist/index.mjs +9 -9
  158. package/dist/layout/client.js +8 -8
  159. package/dist/layout/client.mjs +7 -7
  160. package/dist/layout/index.js +10 -10
  161. package/dist/layout/index.mjs +8 -8
  162. package/dist/maps/index.js +5 -5
  163. package/dist/maps/index.mjs +3 -3
  164. package/dist/og/config.d.ts +11 -1
  165. package/dist/og/config.d.ts.map +1 -1
  166. package/dist/og/index.js +5 -5
  167. package/dist/og/index.mjs +1 -1
  168. package/dist/og/pages.d.ts.map +1 -1
  169. package/dist/og/template.d.ts.map +1 -1
  170. package/dist/search/index.js +4 -4
  171. package/dist/search/index.mjs +3 -3
  172. package/dist/seo/client.js +5 -5
  173. package/dist/seo/client.mjs +4 -4
  174. package/dist/seo/index.js +5 -5
  175. package/dist/seo/index.mjs +4 -4
  176. package/dist/server/index.js +3 -3
  177. package/dist/server/index.mjs +2 -2
  178. package/dist/shared/version.d.ts +1 -1
  179. package/dist/signal/index.js +11 -11
  180. package/dist/signal/index.mjs +2 -2
  181. package/dist/sync/index.js +16 -16
  182. package/dist/sync/index.mjs +4 -4
  183. package/package.json +1 -1
  184. package/dist/AnalyticsProvider-NW3UZYL5.mjs +0 -10
  185. package/dist/AnalyticsProvider-VSTTYP4W.js +0 -31
  186. package/dist/ChatWidget-BJOE2OSI.js +0 -20
  187. package/dist/ChatWidget-EWQ7LRD4.mjs +0 -11
  188. package/dist/EngageWidget-CZMNLFWI.js +0 -18
  189. package/dist/EngageWidget-F427CI6Y.mjs +0 -9
  190. package/dist/ManagedForm-A7BROQIN.mjs +0 -14
  191. package/dist/ManagedForm-Z3Z5Z6OL.js +0 -23
  192. package/dist/SitemapSync-62F6HVAW.js +0 -17
  193. package/dist/SitemapSync-EY33A6P4.mjs +0 -8
  194. package/dist/chunk-HTLWSCUQ.mjs.map +0 -1
  195. package/dist/chunk-S5L73KZQ.js +0 -8
  196. package/dist/chunk-XCFCG46K.mjs +0 -6
  197. package/dist/chunk-ZAVNGZJZ.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/og/config.ts","../src/og/template.ts"],"names":[],"mappings":";AAmHO,SAAS,aAAa,MAAA,EAAoC;AAC/D,EAAA,OAAO,MAAA;AACT;AAEO,IAAM,QAAA,GAAW;AACjB,IAAM,SAAA,GAAY;AAWlB,IAAM,YAAA,GAAe;AACrB,IA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QAAA,CAAS,MAAM,CAAC;AAAA;AAAA;AAAA,oBAAA,EAGI,QAAQ,cAAc,SAAS,CAAA;AAAA,uCAAA,EACZ,MAAM,EAAE,CAAA,eAAA,EAAkB,OAAO,CAAA,oBAAA,EAAuB,MAAM,IAAI,CAAA;AAAA;AAAA;AAAA;AAAA,qGAAA,EAIJ,MAAA,CAAO,OAAA,CAAQ,GAAA,EAAK,MAAA,GAAS,SAAS,GAAG,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mGAAA,EAY3C,MAAM,MAAM,CAAA;AAAA;AAAA,4DAAA,EAEnD,YAAY,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+FAAA,EAKuB,MAAM,OAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAI5G,gBAAA,CAAiB,MAAM,CAAC;AAAA,EACxB,IAAI;AAAA,EACJ,OAAA,CAAQ,MAAA,CAAO,OAAA,EAAS,KAAK,CAAC;AAAA,EAC9B,WAAW;AAAA,cAAA,CAAA;AAEb","file":"chunk-HTLWSCUQ.mjs","sourcesContent":["/**\n * @sonordev/site-kit/og — OG card config contract.\n *\n * THE SITE OWNS THE THEME. Sonor stores one brand_primary/secondary per\n * project; real sites have full palettes (Ludlow: red, ink, cream, scrim —\n * four tokens where Sonor stores two). So the card's colors, fonts, and\n * layout come from a repo-owned og.config.ts, typically importing the same\n * constants the site itself uses. Sonor brand data is only the zero-config\n * seed used by `sonor-setup og` when no og.config.ts exists.\n *\n * Rendering is BUILD-TIME via headless Chrome (`sonor-setup og`), writing a\n * static public/og.png: full real CSS (no Satori subset), Google Fonts load\n * in the template (no font vendoring), zero runtime cost — the right shape\n * for a force-static fleet. Per-entity runtime cards are a future tier.\n */\n\nexport interface OgTheme {\n /** Page background behind everything. */\n bg: string\n /** Primary text color. */\n text: string\n /** Accent (kicker, bar). */\n accent: string\n /** Plate/surface color behind the logo. */\n surface: string\n /** Muted text (subtitle). Defaults derived from `text` when omitted. */\n muted?: string\n}\n\nexport interface OgFont {\n /** Google Fonts family name, e.g. 'Barlow Condensed'. */\n family: string\n weights?: number[]\n}\n\nexport interface OgBackground {\n /** Path under public/, e.g. '/hero-frost.avif'. */\n image: string\n /** CSS blur radius in px. */\n blur?: number\n /** Overlay color, e.g. 'rgba(17,17,16,.68)'. */\n scrim?: string\n}\n\nexport interface OgPhoto {\n /** Path under public/ ('/team.jpg') or an absolute https URL. */\n src: string\n /** Pane width in px (default 430). */\n width?: number\n /** Corner radius in px (default 24). */\n radius?: number\n}\n\nexport interface OgContent {\n /** Small all-caps line above the title. */\n kicker?: string\n /** The big line. `\\n` for a manual break. Keep it short — previews truncate. */\n title: string\n /** One supporting line. */\n subtitle?: string\n /** Handwritten-style accent line (rendered in the last configured font). */\n hand?: string\n /** Bottom bar segments, e.g. ['Give an hour', 'ludlowpto.org']. */\n bar?: string[]\n}\n\nexport interface OgCardConfig {\n theme: OgTheme\n /** First font = display face, second (optional) = hand/accent face. */\n fonts?: OgFont[]\n /** Path under public/ to the logo shown on the plate, e.g. '/logo-mark.svg'. */\n logo?: string\n background?: OgBackground\n /**\n * 'plate-left': logo plate left, copy right (the Ludlow layout).\n * 'centered': stacked, logo above title.\n * 'banner': no plate, full-bleed copy.\n * 'split': copy left, content photo right — for cards that show the page's\n * own imagery (a project photo, a product, the storefront).\n */\n layout?: 'plate-left' | 'centered' | 'banner' | 'split'\n /** Content photo for the 'split' layout (also rendered in 'plate-left' when set, replacing the plate). */\n photo?: OgPhoto\n content: OgContent\n /**\n * Per-page overrides, keyed by route path (`/services/garage`) or its slug\n * (`services-garage`). Every static route already gets its own card built\n * from its managed title and description; this is for the handful worth\n * writing by hand — a campaign landing page, the flagship service.\n *\n * Each entry is layered over the site card, so it only states what differs.\n * Build-time only: never rendered as part of a card.\n */\n cards?: Record<string, Partial<Omit<OgCardConfig, 'cards'>>>\n /**\n * MIDDLE escape hatch: keep the loader/renderer/verifier pipeline but\n * produce your own document. Receives the config and the same helpers the\n * stock template uses (esc, fontLink). Root-relative src attributes are\n * still rewritten to public/ files automatically.\n */\n template?: (config: OgCardConfig, helpers: OgTemplateHelpers) => string\n /** FULL escape hatch: raw HTML replaces everything, no helpers. */\n html?: string\n}\n\nexport interface OgTemplateHelpers {\n /** HTML-escape user text. */\n esc: (s: string) => string\n /** <link> tag loading the config's Google Fonts. */\n fontLink: string\n width: number\n height: number\n}\n\n/** Identity helper for typed configs: `export default defineOgCard({...})`. */\nexport function defineOgCard(config: OgCardConfig): OgCardConfig {\n return config\n}\n\nexport const OG_WIDTH = 1200\nexport const OG_HEIGHT = 630\n\n/**\n * Title type scale. The card opens at TITLE_MAX and the in-page fitter steps\n * down until the copy column fits, stopping at TITLE_MIN.\n *\n * The floor is a legibility floor, not a layout one: below ~56px the headline\n * stops reading at the ~300px thumbnail width platforms actually show. A card\n * that would need to go under it is a card whose copy is too long, so the\n * renderer reports that rather than shrinking into mush.\n */\nexport const TITLE_MAX_PX = 104\nexport const TITLE_MIN_PX = 56\n\n/**\n * The attribute the in-page fitter writes its findings to, read back by\n * `sonor-setup og` via Chrome's --dump-dom. Shared so the template and the CLI\n * cannot drift on the name.\n */\nexport const OG_REPORT_ATTR = 'data-og-report'\n\n/** What the in-page fitter reports back about a rendered card. */\nexport interface OgRenderReport {\n /** Did everything land inside the frame, at or above the legibility floor? */\n fits: boolean\n /** Final title size after fitting. Below TITLE_MAX means the copy ran long. */\n titlePx: number\n /** Human-readable problems, each naming the element and the overflow. */\n issues: string[]\n}\n","/**\n * OG card HTML template builder.\n *\n * Turns an OgCardConfig into a self-contained 1200x630 HTML document rendered\n * by headless Chrome. Layout rules baked in from the Ludlow card:\n * - content held inside the middle ~80% (platforms crop toward 2:1 and the\n * bottom bar is the first casualty)\n * - script/hand faces never below 40px — under that they turn to mush at\n * iMessage thumbnail width (~300px)\n * - the plate + title must survive alone if everything else is cropped\n */\n\nimport type { OgCardConfig, OgContent, OgTheme } from './config'\nimport {\n OG_WIDTH,\n OG_HEIGHT,\n TITLE_MAX_PX,\n TITLE_MIN_PX,\n OG_REPORT_ATTR,\n} from './config'\n\n/**\n * The in-page fitter. Runs inside the render, after webfonts settle, and does\n * the two things a Node-side template cannot:\n *\n * 1. FITS THE TITLE. The h1 opens at TITLE_MAX_PX and steps down until the\n * copy column fits the frame. Before this the size was fixed, so title\n * length silently decided whether a card worked — a long one did not\n * shrink, it pushed the kicker off the top and the subtitle under the\n * bottom bar, and the CLI still reported success.\n * 2. MEASURES WHAT IS LEFT. Anything still clipped is written to the report\n * attribute, which `sonor-setup og` reads back through --dump-dom and\n * turns into a failure. Real measurement, not a character-count estimate.\n *\n * Fonts matter: measuring before `document.fonts.ready` measures the fallback\n * face and produces a size that is wrong for the face that actually renders.\n */\nfunction fitScript(): string {\n return `<script>\n(async function () {\n var report = { fits: true, titlePx: ${TITLE_MAX_PX}, issues: [] };\n function push(msg) { report.fits = false; report.issues.push(msg); }\n try {\n try { await document.fonts.ready; } catch (e) {}\n var h1 = document.querySelector('h1');\n var copy = document.querySelector('.copy');\n var wrap = document.querySelector('.wrap');\n var bar = document.querySelector('.bar');\n\n if (h1 && copy && wrap) {\n var cs = getComputedStyle(wrap);\n var avail = wrap.clientHeight - parseFloat(cs.paddingTop || '0') - parseFloat(cs.paddingBottom || '0');\n\n // Fit BOTH axes. Height alone is not enough: a single long word\n // (\"WORKBENCHES\") cannot wrap, so it keeps overflowing the column\n // sideways at a size that fits vertically. Shrinking for either\n // condition is what makes an arbitrary managed title safe to render.\n var tooTall = function () { return copy.scrollHeight > avail; };\n var tooWide = function () { return h1.scrollWidth > copy.clientWidth + 1; };\n var size = ${TITLE_MAX_PX};\n while (size > ${TITLE_MIN_PX} && (tooTall() || tooWide())) {\n size -= 2;\n h1.style.fontSize = size + 'px';\n }\n report.titlePx = size;\n\n if (tooTall()) {\n push('title/subtitle block overflows the card by ' + Math.ceil(copy.scrollHeight - avail) +\n 'px even at the ' + ${TITLE_MIN_PX} + 'px legibility floor - shorten content.title or content.subtitle');\n }\n if (tooWide()) {\n push('the longest title word still overflows the copy column by ' + Math.ceil(h1.scrollWidth - copy.clientWidth) +\n 'px at the ' + ${TITLE_MIN_PX} + 'px floor - shorten it or add a line break');\n }\n }\n\n if (bar && bar.scrollWidth > bar.clientWidth + 1) {\n push('bottom bar content overflows by ' + Math.ceil(bar.scrollWidth - bar.clientWidth) +\n 'px - drop a content.bar segment or shorten one');\n }\n\n // Nothing may sit outside the frame platforms actually crop to.\n var named = [['kicker', '.kicker'], ['title', 'h1'], ['subtitle', '.sub'], ['hand', '.hand'], ['bar', '.bar']];\n for (var i = 0; i < named.length; i++) {\n var el = document.querySelector(named[i][1]);\n if (!el) continue;\n var r = el.getBoundingClientRect();\n if (r.top < -1 || r.bottom > ${OG_HEIGHT} + 1) {\n push(named[i][0] + ' sits outside the ' + ${OG_HEIGHT} + 'px frame (top ' +\n Math.round(r.top) + ', bottom ' + Math.round(r.bottom) + ')');\n }\n }\n } catch (e) {\n push('fitter failed: ' + (e && e.message ? e.message : String(e)));\n }\n document.documentElement.setAttribute('${OG_REPORT_ATTR}', JSON.stringify(report));\n})();\n</script>`\n}\n\nfunction esc(s: string): string {\n return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')\n}\n\nfunction fontLink(config: OgCardConfig): string {\n const fonts = config.fonts?.length\n ? config.fonts\n : [{ family: 'Barlow Condensed', weights: [800] }]\n const families = fonts\n .map(f => `family=${f.family.replace(/ /g, '+')}:wght@${(f.weights || [700]).join(';')}`)\n .join('&')\n return `<link href=\"https://fonts.googleapis.com/css2?${families}&display=block\" rel=\"stylesheet\">`\n}\n\nfunction displayFamily(config: OgCardConfig): string {\n return config.fonts?.[0]?.family || 'Barlow Condensed'\n}\n\nfunction handFamily(config: OgCardConfig): string {\n const fonts = config.fonts || []\n return fonts.length > 1 ? fonts[fonts.length - 1].family : displayFamily(config)\n}\n\nfunction muted(theme: OgTheme): string {\n return theme.muted || theme.text\n}\n\nfunction backgroundLayers(config: OgCardConfig): string {\n if (!config.background) return ''\n const { image, blur = 0, scrim } = config.background\n return `\n <div class=\"bg\"><img src=\"${esc(image)}\" style=\"filter:blur(${blur}px)\"></div>\n ${scrim ? `<div class=\"scrim\" style=\"background:${esc(scrim)}\"></div>` : ''}`\n}\n\nfunction barHtml(content: OgContent, theme: OgTheme): string {\n if (!content.bar?.length) return ''\n const segs = content.bar\n .map(s => `<span>${esc(s)}</span>`)\n .join('<span class=\"dot\"></span>')\n return `<div class=\"bar\" style=\"background:${esc(theme.accent)}\">${segs}</div>`\n}\n\nfunction copyHtml(config: OgCardConfig): string {\n const { content, theme } = config\n const titleHtml = esc(content.title).replace(/\\n/g, '<br>')\n // In `split` the photo owns the right pane, so a configured logo has nowhere\n // to go as a plate. It used to be dropped silently. Render it small above the\n // kicker instead: the brand mark still appears, and the plate invariant that\n // split has no `.plate` is preserved.\n const mark =\n config.logo && (config.layout ?? (config.logo ? 'plate-left' : 'banner')) === 'split'\n ? `<img class=\"mark\" src=\"${esc(config.logo)}\">`\n : ''\n return `\n <div class=\"copy\">\n ${mark}\n ${content.kicker ? `<div class=\"kicker\">${esc(content.kicker)}</div>` : ''}\n <h1>${titleHtml}</h1>\n ${content.subtitle ? `<div class=\"sub\" style=\"color:${esc(muted(theme))}\">${esc(content.subtitle)}</div>` : ''}\n ${content.hand ? `<div class=\"hand\" style=\"font-family:'${esc(handFamily(config))}',cursive\">${esc(content.hand)}</div>` : ''}\n </div>`\n}\n\nexport function buildOgHtml(config: OgCardConfig): string {\n if (config.html) return config.html\n if (config.template) {\n return config.template(config, {\n esc,\n fontLink: fontLink(config),\n width: OG_WIDTH,\n height: OG_HEIGHT,\n })\n }\n\n const { theme, logo, layout = logo ? 'plate-left' : 'banner' } = config\n const display = displayFamily(config)\n\n const plate = logo\n ? `<div class=\"plate\" style=\"background:${esc(theme.surface)}\"><img src=\"${esc(logo)}\"></div>`\n : ''\n\n const photo = config.photo\n ? `<div class=\"photo\" style=\"flex-basis:${config.photo.width ?? 430}px;border-radius:${config.photo.radius ?? 24}px\"><img src=\"${esc(config.photo.src)}\"></div>`\n : ''\n\n const body =\n layout === 'centered'\n ? `<div class=\"wrap centered\">${plate}${copyHtml(config)}</div>`\n : layout === 'banner'\n ? `<div class=\"wrap banner\">${copyHtml(config)}</div>`\n : layout === 'split'\n ? `<div class=\"wrap\">${copyHtml(config)}${photo}</div>`\n : `<div class=\"wrap\">${photo || plate}${copyHtml(config)}</div>`\n\n return `<!doctype html>\n<html><head><meta charset=\"utf-8\">\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n${fontLink(config)}\n<style>\n * { margin:0; padding:0; box-sizing:border-box; }\n html,body { width:${OG_WIDTH}px; height:${OG_HEIGHT}px; overflow:hidden; }\n body { position:relative; background:${theme.bg}; font-family:'${display}',sans-serif; color:${theme.text}; }\n .bg { position:absolute; inset:0; }\n .bg img { width:100%; height:100%; object-fit:cover; transform:scale(1.05); }\n .scrim { position:absolute; inset:0; }\n .wrap { position:relative; height:100%; display:flex; align-items:center; gap:52px; padding:0 68px ${config.content.bar?.length ? '74px' : '0'}; }\n .wrap.centered { flex-direction:column; justify-content:center; text-align:center; gap:28px; }\n .wrap.banner { padding-left:90px; }\n .plate { border-radius:28px; padding:26px; flex:0 0 auto; }\n .plate img { display:block; width:250px; height:auto; }\n .centered .plate img { width:180px; }\n .photo { flex:0 0 auto; height:76%; overflow:hidden; box-shadow:0 8px 40px rgba(0,0,0,.25); }\n .photo img { width:100%; height:100%; object-fit:cover; display:block; }\n .copy { flex:1 1 auto; min-width:0; }\n /* split-layout brand mark: the photo owns the right pane, so the logo rides\n above the kicker rather than being dropped. */\n .mark { display:block; height:44px; width:auto; margin-bottom:20px; }\n .kicker { font-weight:800; text-transform:uppercase; letter-spacing:.22em; font-size:24px; color:${theme.accent}; margin-bottom:14px; }\n /* Opening size only — the in-page fitter steps this down to fit the frame. */\n h1 { font-weight:800; text-transform:uppercase; font-size:${TITLE_MAX_PX}px; line-height:.9; letter-spacing:-.01em; }\n .sub { margin-top:22px; font-size:29px; font-weight:500; line-height:1.32; }\n /* Never below 40px: script faces are illegible at thumbnail width under that. */\n .hand { font-size:42px; margin-top:14px; transform:rotate(-1.5deg); display:inline-block; }\n .bar { position:absolute; left:0; right:0; bottom:0; height:74px; display:flex; align-items:center; justify-content:center; gap:26px;\n font-weight:800; text-transform:uppercase; letter-spacing:.1em; font-size:31px; color:${theme.surface}; }\n .bar .dot { width:10px; height:10px; border-radius:50%; background:currentColor; opacity:.55; }\n</style></head>\n<body>\n${backgroundLayers(config)}\n${body}\n${barHtml(config.content, theme)}\n${fitScript()}\n</body></html>`\n}\n"]}
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- // src/shared/version.ts
4
- var SITE_KIT_VERSION = "4.2.3";
5
-
6
- exports.SITE_KIT_VERSION = SITE_KIT_VERSION;
7
- //# sourceMappingURL=chunk-S5L73KZQ.js.map
8
- //# sourceMappingURL=chunk-S5L73KZQ.js.map
@@ -1,6 +0,0 @@
1
- // src/shared/version.ts
2
- var SITE_KIT_VERSION = "4.2.3";
3
-
4
- export { SITE_KIT_VERSION };
5
- //# sourceMappingURL=chunk-XCFCG46K.mjs.map
6
- //# sourceMappingURL=chunk-XCFCG46K.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/og/config.ts","../src/og/template.ts"],"names":[],"mappings":";;;AAmHO,SAAS,aAAa,MAAA,EAAoC;AAC/D,EAAA,OAAO,MAAA;AACT;AAEO,IAAM,QAAA,GAAW;AACjB,IAAM,SAAA,GAAY;AAWlB,IAAM,YAAA,GAAe;AACrB,IAAM,YAAA,GAAe,EAAA;AAOrB,IAAM,cAAA,GAAiB;;;ACtG9B,SAAS,SAAA,GAAoB;AAC3B,EAAA,OAAO,CAAA;AAAA;AAAA,sCAAA,EAE+B,YAAY,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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AA;AAAA;AAAA;AAAA,qGAAA,EAIJ,MAAA,CAAO,OAAA,CAAQ,GAAA,EAAK,MAAA,GAAS,SAAS,GAAG,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mGAAA,EAY3C,MAAM,MAAM,CAAA;AAAA;AAAA,4DAAA,EAEnD,YAAY,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+FAAA,EAKuB,MAAM,OAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAI5G,gBAAA,CAAiB,MAAM,CAAC;AAAA,EACxB,IAAI;AAAA,EACJ,OAAA,CAAQ,MAAA,CAAO,OAAA,EAAS,KAAK,CAAC;AAAA,EAC9B,WAAW;AAAA,cAAA,CAAA;AAEb","file":"chunk-ZAVNGZJZ.js","sourcesContent":["/**\n * @sonordev/site-kit/og — OG card config contract.\n *\n * THE SITE OWNS THE THEME. Sonor stores one brand_primary/secondary per\n * project; real sites have full palettes (Ludlow: red, ink, cream, scrim —\n * four tokens where Sonor stores two). So the card's colors, fonts, and\n * layout come from a repo-owned og.config.ts, typically importing the same\n * constants the site itself uses. Sonor brand data is only the zero-config\n * seed used by `sonor-setup og` when no og.config.ts exists.\n *\n * Rendering is BUILD-TIME via headless Chrome (`sonor-setup og`), writing a\n * static public/og.png: full real CSS (no Satori subset), Google Fonts load\n * in the template (no font vendoring), zero runtime cost — the right shape\n * for a force-static fleet. Per-entity runtime cards are a future tier.\n */\n\nexport interface OgTheme {\n /** Page background behind everything. */\n bg: string\n /** Primary text color. */\n text: string\n /** Accent (kicker, bar). */\n accent: string\n /** Plate/surface color behind the logo. */\n surface: string\n /** Muted text (subtitle). Defaults derived from `text` when omitted. */\n muted?: string\n}\n\nexport interface OgFont {\n /** Google Fonts family name, e.g. 'Barlow Condensed'. */\n family: string\n weights?: number[]\n}\n\nexport interface OgBackground {\n /** Path under public/, e.g. '/hero-frost.avif'. */\n image: string\n /** CSS blur radius in px. */\n blur?: number\n /** Overlay color, e.g. 'rgba(17,17,16,.68)'. */\n scrim?: string\n}\n\nexport interface OgPhoto {\n /** Path under public/ ('/team.jpg') or an absolute https URL. */\n src: string\n /** Pane width in px (default 430). */\n width?: number\n /** Corner radius in px (default 24). */\n radius?: number\n}\n\nexport interface OgContent {\n /** Small all-caps line above the title. */\n kicker?: string\n /** The big line. `\\n` for a manual break. Keep it short — previews truncate. */\n title: string\n /** One supporting line. */\n subtitle?: string\n /** Handwritten-style accent line (rendered in the last configured font). */\n hand?: string\n /** Bottom bar segments, e.g. ['Give an hour', 'ludlowpto.org']. */\n bar?: string[]\n}\n\nexport interface OgCardConfig {\n theme: OgTheme\n /** First font = display face, second (optional) = hand/accent face. */\n fonts?: OgFont[]\n /** Path under public/ to the logo shown on the plate, e.g. '/logo-mark.svg'. */\n logo?: string\n background?: OgBackground\n /**\n * 'plate-left': logo plate left, copy right (the Ludlow layout).\n * 'centered': stacked, logo above title.\n * 'banner': no plate, full-bleed copy.\n * 'split': copy left, content photo right — for cards that show the page's\n * own imagery (a project photo, a product, the storefront).\n */\n layout?: 'plate-left' | 'centered' | 'banner' | 'split'\n /** Content photo for the 'split' layout (also rendered in 'plate-left' when set, replacing the plate). */\n photo?: OgPhoto\n content: OgContent\n /**\n * Per-page overrides, keyed by route path (`/services/garage`) or its slug\n * (`services-garage`). Every static route already gets its own card built\n * from its managed title and description; this is for the handful worth\n * writing by hand — a campaign landing page, the flagship service.\n *\n * Each entry is layered over the site card, so it only states what differs.\n * Build-time only: never rendered as part of a card.\n */\n cards?: Record<string, Partial<Omit<OgCardConfig, 'cards'>>>\n /**\n * MIDDLE escape hatch: keep the loader/renderer/verifier pipeline but\n * produce your own document. Receives the config and the same helpers the\n * stock template uses (esc, fontLink). Root-relative src attributes are\n * still rewritten to public/ files automatically.\n */\n template?: (config: OgCardConfig, helpers: OgTemplateHelpers) => string\n /** FULL escape hatch: raw HTML replaces everything, no helpers. */\n html?: string\n}\n\nexport interface OgTemplateHelpers {\n /** HTML-escape user text. */\n esc: (s: string) => string\n /** <link> tag loading the config's Google Fonts. */\n fontLink: string\n width: number\n height: number\n}\n\n/** Identity helper for typed configs: `export default defineOgCard({...})`. */\nexport function defineOgCard(config: OgCardConfig): OgCardConfig {\n return config\n}\n\nexport const OG_WIDTH = 1200\nexport const OG_HEIGHT = 630\n\n/**\n * Title type scale. The card opens at TITLE_MAX and the in-page fitter steps\n * down until the copy column fits, stopping at TITLE_MIN.\n *\n * The floor is a legibility floor, not a layout one: below ~56px the headline\n * stops reading at the ~300px thumbnail width platforms actually show. A card\n * that would need to go under it is a card whose copy is too long, so the\n * renderer reports that rather than shrinking into mush.\n */\nexport const TITLE_MAX_PX = 104\nexport const TITLE_MIN_PX = 56\n\n/**\n * The attribute the in-page fitter writes its findings to, read back by\n * `sonor-setup og` via Chrome's --dump-dom. Shared so the template and the CLI\n * cannot drift on the name.\n */\nexport const OG_REPORT_ATTR = 'data-og-report'\n\n/** What the in-page fitter reports back about a rendered card. */\nexport interface OgRenderReport {\n /** Did everything land inside the frame, at or above the legibility floor? */\n fits: boolean\n /** Final title size after fitting. Below TITLE_MAX means the copy ran long. */\n titlePx: number\n /** Human-readable problems, each naming the element and the overflow. */\n issues: string[]\n}\n","/**\n * OG card HTML template builder.\n *\n * Turns an OgCardConfig into a self-contained 1200x630 HTML document rendered\n * by headless Chrome. Layout rules baked in from the Ludlow card:\n * - content held inside the middle ~80% (platforms crop toward 2:1 and the\n * bottom bar is the first casualty)\n * - script/hand faces never below 40px — under that they turn to mush at\n * iMessage thumbnail width (~300px)\n * - the plate + title must survive alone if everything else is cropped\n */\n\nimport type { OgCardConfig, OgContent, OgTheme } from './config'\nimport {\n OG_WIDTH,\n OG_HEIGHT,\n TITLE_MAX_PX,\n TITLE_MIN_PX,\n OG_REPORT_ATTR,\n} from './config'\n\n/**\n * The in-page fitter. Runs inside the render, after webfonts settle, and does\n * the two things a Node-side template cannot:\n *\n * 1. FITS THE TITLE. The h1 opens at TITLE_MAX_PX and steps down until the\n * copy column fits the frame. Before this the size was fixed, so title\n * length silently decided whether a card worked — a long one did not\n * shrink, it pushed the kicker off the top and the subtitle under the\n * bottom bar, and the CLI still reported success.\n * 2. MEASURES WHAT IS LEFT. Anything still clipped is written to the report\n * attribute, which `sonor-setup og` reads back through --dump-dom and\n * turns into a failure. Real measurement, not a character-count estimate.\n *\n * Fonts matter: measuring before `document.fonts.ready` measures the fallback\n * face and produces a size that is wrong for the face that actually renders.\n */\nfunction fitScript(): string {\n return `<script>\n(async function () {\n var report = { fits: true, titlePx: ${TITLE_MAX_PX}, issues: [] };\n function push(msg) { report.fits = false; report.issues.push(msg); }\n try {\n try { await document.fonts.ready; } catch (e) {}\n var h1 = document.querySelector('h1');\n var copy = document.querySelector('.copy');\n var wrap = document.querySelector('.wrap');\n var bar = document.querySelector('.bar');\n\n if (h1 && copy && wrap) {\n var cs = getComputedStyle(wrap);\n var avail = wrap.clientHeight - parseFloat(cs.paddingTop || '0') - parseFloat(cs.paddingBottom || '0');\n\n // Fit BOTH axes. Height alone is not enough: a single long word\n // (\"WORKBENCHES\") cannot wrap, so it keeps overflowing the column\n // sideways at a size that fits vertically. Shrinking for either\n // condition is what makes an arbitrary managed title safe to render.\n var tooTall = function () { return copy.scrollHeight > avail; };\n var tooWide = function () { return h1.scrollWidth > copy.clientWidth + 1; };\n var size = ${TITLE_MAX_PX};\n while (size > ${TITLE_MIN_PX} && (tooTall() || tooWide())) {\n size -= 2;\n h1.style.fontSize = size + 'px';\n }\n report.titlePx = size;\n\n if (tooTall()) {\n push('title/subtitle block overflows the card by ' + Math.ceil(copy.scrollHeight - avail) +\n 'px even at the ' + ${TITLE_MIN_PX} + 'px legibility floor - shorten content.title or content.subtitle');\n }\n if (tooWide()) {\n push('the longest title word still overflows the copy column by ' + Math.ceil(h1.scrollWidth - copy.clientWidth) +\n 'px at the ' + ${TITLE_MIN_PX} + 'px floor - shorten it or add a line break');\n }\n }\n\n if (bar && bar.scrollWidth > bar.clientWidth + 1) {\n push('bottom bar content overflows by ' + Math.ceil(bar.scrollWidth - bar.clientWidth) +\n 'px - drop a content.bar segment or shorten one');\n }\n\n // Nothing may sit outside the frame platforms actually crop to.\n var named = [['kicker', '.kicker'], ['title', 'h1'], ['subtitle', '.sub'], ['hand', '.hand'], ['bar', '.bar']];\n for (var i = 0; i < named.length; i++) {\n var el = document.querySelector(named[i][1]);\n if (!el) continue;\n var r = el.getBoundingClientRect();\n if (r.top < -1 || r.bottom > ${OG_HEIGHT} + 1) {\n push(named[i][0] + ' sits outside the ' + ${OG_HEIGHT} + 'px frame (top ' +\n Math.round(r.top) + ', bottom ' + Math.round(r.bottom) + ')');\n }\n }\n } catch (e) {\n push('fitter failed: ' + (e && e.message ? e.message : String(e)));\n }\n document.documentElement.setAttribute('${OG_REPORT_ATTR}', JSON.stringify(report));\n})();\n</script>`\n}\n\nfunction esc(s: string): string {\n return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')\n}\n\nfunction fontLink(config: OgCardConfig): string {\n const fonts = config.fonts?.length\n ? config.fonts\n : [{ family: 'Barlow Condensed', weights: [800] }]\n const families = fonts\n .map(f => `family=${f.family.replace(/ /g, '+')}:wght@${(f.weights || [700]).join(';')}`)\n .join('&')\n return `<link href=\"https://fonts.googleapis.com/css2?${families}&display=block\" rel=\"stylesheet\">`\n}\n\nfunction displayFamily(config: OgCardConfig): string {\n return config.fonts?.[0]?.family || 'Barlow Condensed'\n}\n\nfunction handFamily(config: OgCardConfig): string {\n const fonts = config.fonts || []\n return fonts.length > 1 ? fonts[fonts.length - 1].family : displayFamily(config)\n}\n\nfunction muted(theme: OgTheme): string {\n return theme.muted || theme.text\n}\n\nfunction backgroundLayers(config: OgCardConfig): string {\n if (!config.background) return ''\n const { image, blur = 0, scrim } = config.background\n return `\n <div class=\"bg\"><img src=\"${esc(image)}\" style=\"filter:blur(${blur}px)\"></div>\n ${scrim ? `<div class=\"scrim\" style=\"background:${esc(scrim)}\"></div>` : ''}`\n}\n\nfunction barHtml(content: OgContent, theme: OgTheme): string {\n if (!content.bar?.length) return ''\n const segs = content.bar\n .map(s => `<span>${esc(s)}</span>`)\n .join('<span class=\"dot\"></span>')\n return `<div class=\"bar\" style=\"background:${esc(theme.accent)}\">${segs}</div>`\n}\n\nfunction copyHtml(config: OgCardConfig): string {\n const { content, theme } = config\n const titleHtml = esc(content.title).replace(/\\n/g, '<br>')\n // In `split` the photo owns the right pane, so a configured logo has nowhere\n // to go as a plate. It used to be dropped silently. Render it small above the\n // kicker instead: the brand mark still appears, and the plate invariant that\n // split has no `.plate` is preserved.\n const mark =\n config.logo && (config.layout ?? (config.logo ? 'plate-left' : 'banner')) === 'split'\n ? `<img class=\"mark\" src=\"${esc(config.logo)}\">`\n : ''\n return `\n <div class=\"copy\">\n ${mark}\n ${content.kicker ? `<div class=\"kicker\">${esc(content.kicker)}</div>` : ''}\n <h1>${titleHtml}</h1>\n ${content.subtitle ? `<div class=\"sub\" style=\"color:${esc(muted(theme))}\">${esc(content.subtitle)}</div>` : ''}\n ${content.hand ? `<div class=\"hand\" style=\"font-family:'${esc(handFamily(config))}',cursive\">${esc(content.hand)}</div>` : ''}\n </div>`\n}\n\nexport function buildOgHtml(config: OgCardConfig): string {\n if (config.html) return config.html\n if (config.template) {\n return config.template(config, {\n esc,\n fontLink: fontLink(config),\n width: OG_WIDTH,\n height: OG_HEIGHT,\n })\n }\n\n const { theme, logo, layout = logo ? 'plate-left' : 'banner' } = config\n const display = displayFamily(config)\n\n const plate = logo\n ? `<div class=\"plate\" style=\"background:${esc(theme.surface)}\"><img src=\"${esc(logo)}\"></div>`\n : ''\n\n const photo = config.photo\n ? `<div class=\"photo\" style=\"flex-basis:${config.photo.width ?? 430}px;border-radius:${config.photo.radius ?? 24}px\"><img src=\"${esc(config.photo.src)}\"></div>`\n : ''\n\n const body =\n layout === 'centered'\n ? `<div class=\"wrap centered\">${plate}${copyHtml(config)}</div>`\n : layout === 'banner'\n ? `<div class=\"wrap banner\">${copyHtml(config)}</div>`\n : layout === 'split'\n ? `<div class=\"wrap\">${copyHtml(config)}${photo}</div>`\n : `<div class=\"wrap\">${photo || plate}${copyHtml(config)}</div>`\n\n return `<!doctype html>\n<html><head><meta charset=\"utf-8\">\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n${fontLink(config)}\n<style>\n * { margin:0; padding:0; box-sizing:border-box; }\n html,body { width:${OG_WIDTH}px; height:${OG_HEIGHT}px; overflow:hidden; }\n body { position:relative; background:${theme.bg}; font-family:'${display}',sans-serif; color:${theme.text}; }\n .bg { position:absolute; inset:0; }\n .bg img { width:100%; height:100%; object-fit:cover; transform:scale(1.05); }\n .scrim { position:absolute; inset:0; }\n .wrap { position:relative; height:100%; display:flex; align-items:center; gap:52px; padding:0 68px ${config.content.bar?.length ? '74px' : '0'}; }\n .wrap.centered { flex-direction:column; justify-content:center; text-align:center; gap:28px; }\n .wrap.banner { padding-left:90px; }\n .plate { border-radius:28px; padding:26px; flex:0 0 auto; }\n .plate img { display:block; width:250px; height:auto; }\n .centered .plate img { width:180px; }\n .photo { flex:0 0 auto; height:76%; overflow:hidden; box-shadow:0 8px 40px rgba(0,0,0,.25); }\n .photo img { width:100%; height:100%; object-fit:cover; display:block; }\n .copy { flex:1 1 auto; min-width:0; }\n /* split-layout brand mark: the photo owns the right pane, so the logo rides\n above the kicker rather than being dropped. */\n .mark { display:block; height:44px; width:auto; margin-bottom:20px; }\n .kicker { font-weight:800; text-transform:uppercase; letter-spacing:.22em; font-size:24px; color:${theme.accent}; margin-bottom:14px; }\n /* Opening size only — the in-page fitter steps this down to fit the frame. */\n h1 { font-weight:800; text-transform:uppercase; font-size:${TITLE_MAX_PX}px; line-height:.9; letter-spacing:-.01em; }\n .sub { margin-top:22px; font-size:29px; font-weight:500; line-height:1.32; }\n /* Never below 40px: script faces are illegible at thumbnail width under that. */\n .hand { font-size:42px; margin-top:14px; transform:rotate(-1.5deg); display:inline-block; }\n .bar { position:absolute; left:0; right:0; bottom:0; height:74px; display:flex; align-items:center; justify-content:center; gap:26px;\n font-weight:800; text-transform:uppercase; letter-spacing:.1em; font-size:31px; color:${theme.surface}; }\n .bar .dot { width:10px; height:10px; border-radius:50%; background:currentColor; opacity:.55; }\n</style></head>\n<body>\n${backgroundLayers(config)}\n${body}\n${barHtml(config.content, theme)}\n${fitScript()}\n</body></html>`\n}\n"]}