@flamingo-stack/openframe-frontend-core 0.0.299 → 0.0.300

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 (157) hide show
  1. package/dist/chunk-2FI3USTC.js +43 -0
  2. package/dist/chunk-2FI3USTC.js.map +1 -0
  3. package/dist/{chunk-54KNMC2R.cjs → chunk-2ZHDP22R.cjs} +3 -3
  4. package/dist/{chunk-54KNMC2R.cjs.map → chunk-2ZHDP22R.cjs.map} +1 -1
  5. package/dist/{chunk-X26HXH3L.cjs → chunk-5VVNE6I5.cjs} +7 -7
  6. package/dist/{chunk-X26HXH3L.cjs.map → chunk-5VVNE6I5.cjs.map} +1 -1
  7. package/dist/{chunk-57HYFVTZ.cjs → chunk-735DLFS4.cjs} +29 -29
  8. package/dist/{chunk-57HYFVTZ.cjs.map → chunk-735DLFS4.cjs.map} +1 -1
  9. package/dist/{chunk-RY62M66O.js → chunk-7EMOBUB2.js} +2 -2
  10. package/dist/{chunk-WDWGFUT2.js → chunk-APWW3GPU.js} +6 -6
  11. package/dist/{chunk-5MLYCLOI.js → chunk-CZ2EJKPA.js} +5 -9
  12. package/dist/chunk-CZ2EJKPA.js.map +1 -0
  13. package/dist/{chunk-Q77BDAR7.cjs → chunk-E2XQ5AX7.cjs} +36 -36
  14. package/dist/{chunk-Q77BDAR7.cjs.map → chunk-E2XQ5AX7.cjs.map} +1 -1
  15. package/dist/{chunk-56X3EFTG.cjs → chunk-FM7OPH5J.cjs} +19 -19
  16. package/dist/{chunk-56X3EFTG.cjs.map → chunk-FM7OPH5J.cjs.map} +1 -1
  17. package/dist/{chunk-WMSTJAZT.cjs → chunk-G56GYN7Z.cjs} +47 -15
  18. package/dist/chunk-G56GYN7Z.cjs.map +1 -0
  19. package/dist/{chunk-PQEQUMSS.cjs → chunk-JCU4YVFY.cjs} +16 -16
  20. package/dist/{chunk-PQEQUMSS.cjs.map → chunk-JCU4YVFY.cjs.map} +1 -1
  21. package/dist/{chunk-2QG57XOJ.js → chunk-JQ2EYXWR.js} +42 -10
  22. package/dist/chunk-JQ2EYXWR.js.map +1 -0
  23. package/dist/{chunk-PI4WSYQV.js → chunk-JQLC2FVM.js} +2 -2
  24. package/dist/{chunk-XG2KGQ76.cjs → chunk-K2LINTWC.cjs} +40 -40
  25. package/dist/{chunk-XG2KGQ76.cjs.map → chunk-K2LINTWC.cjs.map} +1 -1
  26. package/dist/{chunk-DVHQGII5.js → chunk-K3F3AXCC.js} +4 -4
  27. package/dist/{chunk-N4DEX22O.js → chunk-KNX4OEU5.js} +2 -2
  28. package/dist/{chunk-BL6XZ2XD.cjs → chunk-LXXZDZGG.cjs} +616 -620
  29. package/dist/chunk-LXXZDZGG.cjs.map +1 -0
  30. package/dist/{chunk-PLNR6BHN.cjs → chunk-MFZP6ZJ5.cjs} +7 -7
  31. package/dist/{chunk-PLNR6BHN.cjs.map → chunk-MFZP6ZJ5.cjs.map} +1 -1
  32. package/dist/chunk-N2DVKXN4.cjs +43 -0
  33. package/dist/chunk-N2DVKXN4.cjs.map +1 -0
  34. package/dist/{chunk-B2IN2IND.js → chunk-OZW6GJKN.js} +4 -4
  35. package/dist/{chunk-NEVMYN4G.js → chunk-QSPEFQSN.js} +3 -3
  36. package/dist/{chunk-QE5CNWPF.js → chunk-SYNOZPQC.js} +3 -3
  37. package/dist/{chunk-67WXHSCX.cjs → chunk-XTQFETF6.cjs} +13 -13
  38. package/dist/{chunk-67WXHSCX.cjs.map → chunk-XTQFETF6.cjs.map} +1 -1
  39. package/dist/{chunk-XKIO5K5N.js → chunk-ZLLGC2RZ.js} +3 -3
  40. package/dist/components/case-studies/index.cjs +10 -11
  41. package/dist/components/case-studies/index.cjs.map +1 -1
  42. package/dist/components/case-studies/index.js +4 -5
  43. package/dist/components/case-studies/index.js.map +1 -1
  44. package/dist/components/chat/entity-cards/admin-content-card.d.ts +1 -1
  45. package/dist/components/chat/entity-cards/blog-card.d.ts +2 -2
  46. package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
  47. package/dist/components/chat/entity-cards/blog-image-placeholder.d.ts +1 -1
  48. package/dist/components/chat/entity-cards/case-study-card.d.ts +1 -1
  49. package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts +4 -3
  50. package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
  51. package/dist/components/chat/entity-cards/use-entity-card-placeholder.d.ts +4 -3
  52. package/dist/components/chat/entity-cards/use-entity-card-placeholder.d.ts.map +1 -1
  53. package/dist/components/chat/entity-cards/what-i-shipped-card.d.ts +1 -1
  54. package/dist/components/chat/index.cjs +4 -5
  55. package/dist/components/chat/index.cjs.map +1 -1
  56. package/dist/components/chat/index.js +3 -4
  57. package/dist/components/contact/index.cjs +5 -6
  58. package/dist/components/contact/index.cjs.map +1 -1
  59. package/dist/components/contact/index.js +4 -5
  60. package/dist/components/docs/index.cjs +7 -8
  61. package/dist/components/docs/index.cjs.map +1 -1
  62. package/dist/components/docs/index.js +6 -7
  63. package/dist/components/embeds/index.cjs +5 -6
  64. package/dist/components/embeds/index.cjs.map +1 -1
  65. package/dist/components/embeds/index.js +4 -5
  66. package/dist/components/embeds/og-link-preview.d.ts +2 -2
  67. package/dist/components/faq/index.cjs +6 -7
  68. package/dist/components/faq/index.cjs.map +1 -1
  69. package/dist/components/faq/index.js +5 -6
  70. package/dist/components/features/index.cjs +4 -5
  71. package/dist/components/features/index.cjs.map +1 -1
  72. package/dist/components/features/index.js +3 -4
  73. package/dist/components/index.cjs +193 -195
  74. package/dist/components/index.cjs.map +1 -1
  75. package/dist/components/index.js +12 -14
  76. package/dist/components/index.js.map +1 -1
  77. package/dist/components/navigation/index.cjs +4 -5
  78. package/dist/components/navigation/index.cjs.map +1 -1
  79. package/dist/components/navigation/index.js +3 -4
  80. package/dist/components/onboarding-guides/index.cjs +44 -41
  81. package/dist/components/onboarding-guides/index.cjs.map +1 -1
  82. package/dist/components/onboarding-guides/index.js +11 -8
  83. package/dist/components/onboarding-guides/index.js.map +1 -1
  84. package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
  85. package/dist/components/related-content/index.cjs +6 -7
  86. package/dist/components/related-content/index.cjs.map +1 -1
  87. package/dist/components/related-content/index.js +5 -6
  88. package/dist/components/tickets/index.cjs +75 -76
  89. package/dist/components/tickets/index.cjs.map +1 -1
  90. package/dist/components/tickets/index.js +5 -6
  91. package/dist/components/tickets/index.js.map +1 -1
  92. package/dist/components/ui/index.cjs +4 -5
  93. package/dist/components/ui/index.cjs.map +1 -1
  94. package/dist/components/ui/index.js +3 -4
  95. package/dist/contexts/chat-runtime-context.d.ts +17 -13
  96. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  97. package/dist/contexts/index.cjs +2 -4
  98. package/dist/contexts/index.cjs.map +1 -1
  99. package/dist/contexts/index.js +3 -5
  100. package/dist/contexts/index.js.map +1 -1
  101. package/dist/hooks/index.cjs +3 -3
  102. package/dist/hooks/index.cjs.map +1 -1
  103. package/dist/hooks/index.d.ts +1 -1
  104. package/dist/hooks/index.d.ts.map +1 -1
  105. package/dist/hooks/index.js +4 -4
  106. package/dist/hooks/use-og-placeholder-url.d.ts +27 -0
  107. package/dist/hooks/use-og-placeholder-url.d.ts.map +1 -0
  108. package/dist/index.cjs +6 -5
  109. package/dist/index.cjs.map +1 -1
  110. package/dist/index.js +7 -6
  111. package/dist/utils/index.cjs +26 -0
  112. package/dist/utils/index.cjs.map +1 -1
  113. package/dist/utils/index.d.ts +1 -0
  114. package/dist/utils/index.d.ts.map +1 -1
  115. package/dist/utils/index.js +26 -1
  116. package/dist/utils/index.js.map +1 -1
  117. package/dist/utils/og-placeholder.d.ts +59 -0
  118. package/dist/utils/og-placeholder.d.ts.map +1 -0
  119. package/package.json +1 -1
  120. package/src/components/chat/entity-cards/admin-content-card.tsx +1 -1
  121. package/src/components/chat/entity-cards/blog-card.tsx +2 -2
  122. package/src/components/chat/entity-cards/blog-image-placeholder.tsx +1 -1
  123. package/src/components/chat/entity-cards/case-study-card.tsx +1 -1
  124. package/src/components/chat/entity-cards/onboarding-guide-card.tsx +4 -3
  125. package/src/components/chat/entity-cards/use-entity-card-placeholder.ts +13 -26
  126. package/src/components/chat/entity-cards/what-i-shipped-card.tsx +1 -1
  127. package/src/components/embeds/og-link-preview.tsx +2 -2
  128. package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +4 -2
  129. package/src/contexts/chat-runtime-context.tsx +17 -13
  130. package/src/hooks/index.ts +2 -2
  131. package/src/hooks/use-og-placeholder-url.ts +46 -0
  132. package/src/utils/index.ts +4 -0
  133. package/src/utils/og-placeholder.ts +105 -0
  134. package/dist/chunk-27APPAJN.cjs +0 -24
  135. package/dist/chunk-27APPAJN.cjs.map +0 -1
  136. package/dist/chunk-2QG57XOJ.js.map +0 -1
  137. package/dist/chunk-5MLYCLOI.js.map +0 -1
  138. package/dist/chunk-BL6XZ2XD.cjs.map +0 -1
  139. package/dist/chunk-IZ7JSBFP.js +0 -24
  140. package/dist/chunk-IZ7JSBFP.js.map +0 -1
  141. package/dist/chunk-L6PSSIUQ.cjs +0 -24
  142. package/dist/chunk-L6PSSIUQ.cjs.map +0 -1
  143. package/dist/chunk-MJNXIEV2.js +0 -24
  144. package/dist/chunk-MJNXIEV2.js.map +0 -1
  145. package/dist/chunk-WMSTJAZT.cjs.map +0 -1
  146. package/dist/hooks/use-og-placeholder.d.ts +0 -31
  147. package/dist/hooks/use-og-placeholder.d.ts.map +0 -1
  148. package/src/hooks/use-og-placeholder.ts +0 -45
  149. /package/dist/{chunk-RY62M66O.js.map → chunk-7EMOBUB2.js.map} +0 -0
  150. /package/dist/{chunk-WDWGFUT2.js.map → chunk-APWW3GPU.js.map} +0 -0
  151. /package/dist/{chunk-PI4WSYQV.js.map → chunk-JQLC2FVM.js.map} +0 -0
  152. /package/dist/{chunk-DVHQGII5.js.map → chunk-K3F3AXCC.js.map} +0 -0
  153. /package/dist/{chunk-N4DEX22O.js.map → chunk-KNX4OEU5.js.map} +0 -0
  154. /package/dist/{chunk-B2IN2IND.js.map → chunk-OZW6GJKN.js.map} +0 -0
  155. /package/dist/{chunk-NEVMYN4G.js.map → chunk-QSPEFQSN.js.map} +0 -0
  156. /package/dist/{chunk-QE5CNWPF.js.map → chunk-SYNOZPQC.js.map} +0 -0
  157. /package/dist/{chunk-XKIO5K5N.js.map → chunk-ZLLGC2RZ.js.map} +0 -0
@@ -1,31 +0,0 @@
1
- /**
2
- * Hook that generates a branded placeholder image URL using the
3
- * host's `/api/og-placeholder` server-side image generator (or any
4
- * builder the caller supplies).
5
- *
6
- * THIS HOOK IS A THIN CLIENT-SIDE WRAPPER. The hub-side wrapper
7
- * (`hooks/use-og-placeholder.ts` in multi-platform-hub) injects its
8
- * canonical `buildOgPlaceholderUrl` from `lib/utils/entity-image.ts`.
9
- * The lib version takes the builder as an argument so the lib has no
10
- * hub dependency.
11
- *
12
- * @param buildUrl - Function that builds the placeholder URL from a
13
- * title + options object (`{ site?, aspect? }`).
14
- * Hub passes `buildOgPlaceholderUrl` from
15
- * `lib/utils/entity-image.ts`. Embedded apps can
16
- * wire any equivalent that hits their own placeholder
17
- * route.
18
- * @param title - Text to display on the placeholder
19
- * @param siteName - Site name shown below the title (optional —
20
- * defaults to empty)
21
- * @param enabled - Whether to generate the URL (default: true)
22
- * @param aspect - `'wide'` (1200×630 social-card; default) or `'square'`
23
- * (1024×1024 — used by compact chat-inline card slots
24
- * so `object-cover` doesn't crop the title off).
25
- * @returns Placeholder image URL or null if disabled / no title
26
- */
27
- export declare function useOgPlaceholder(buildUrl: (title: string, options: {
28
- site?: string;
29
- aspect?: 'wide' | 'square';
30
- }) => string, title: string | undefined | null, siteName?: string, enabled?: boolean, aspect?: 'wide' | 'square'): string | null;
31
- //# sourceMappingURL=use-og-placeholder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-og-placeholder.d.ts","sourceRoot":"","sources":["../../src/hooks/use-og-placeholder.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,KAAK,MAAM,EAC3F,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EAChC,QAAQ,GAAE,MAAW,EACrB,OAAO,GAAE,OAAc,EACvB,MAAM,GAAE,MAAM,GAAG,QAAiB,GACjC,MAAM,GAAG,IAAI,CAQf"}
@@ -1,45 +0,0 @@
1
- 'use client'
2
-
3
- import { useMemo } from 'react'
4
-
5
- /**
6
- * Hook that generates a branded placeholder image URL using the
7
- * host's `/api/og-placeholder` server-side image generator (or any
8
- * builder the caller supplies).
9
- *
10
- * THIS HOOK IS A THIN CLIENT-SIDE WRAPPER. The hub-side wrapper
11
- * (`hooks/use-og-placeholder.ts` in multi-platform-hub) injects its
12
- * canonical `buildOgPlaceholderUrl` from `lib/utils/entity-image.ts`.
13
- * The lib version takes the builder as an argument so the lib has no
14
- * hub dependency.
15
- *
16
- * @param buildUrl - Function that builds the placeholder URL from a
17
- * title + options object (`{ site?, aspect? }`).
18
- * Hub passes `buildOgPlaceholderUrl` from
19
- * `lib/utils/entity-image.ts`. Embedded apps can
20
- * wire any equivalent that hits their own placeholder
21
- * route.
22
- * @param title - Text to display on the placeholder
23
- * @param siteName - Site name shown below the title (optional —
24
- * defaults to empty)
25
- * @param enabled - Whether to generate the URL (default: true)
26
- * @param aspect - `'wide'` (1200×630 social-card; default) or `'square'`
27
- * (1024×1024 — used by compact chat-inline card slots
28
- * so `object-cover` doesn't crop the title off).
29
- * @returns Placeholder image URL or null if disabled / no title
30
- */
31
- export function useOgPlaceholder(
32
- buildUrl: (title: string, options: { site?: string; aspect?: 'wide' | 'square' }) => string,
33
- title: string | undefined | null,
34
- siteName: string = '',
35
- enabled: boolean = true,
36
- aspect: 'wide' | 'square' = 'wide',
37
- ): string | null {
38
- return useMemo(() => {
39
- if (!enabled || !title) return null
40
- const options: { site?: string; aspect?: 'wide' | 'square' } = {}
41
- if (siteName) options.site = siteName
42
- if (aspect === 'square') options.aspect = 'square'
43
- return buildUrl(title, options)
44
- }, [buildUrl, title, siteName, enabled, aspect])
45
- }