@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.
- package/dist/chunk-2FI3USTC.js +43 -0
- package/dist/chunk-2FI3USTC.js.map +1 -0
- package/dist/{chunk-54KNMC2R.cjs → chunk-2ZHDP22R.cjs} +3 -3
- package/dist/{chunk-54KNMC2R.cjs.map → chunk-2ZHDP22R.cjs.map} +1 -1
- package/dist/{chunk-X26HXH3L.cjs → chunk-5VVNE6I5.cjs} +7 -7
- package/dist/{chunk-X26HXH3L.cjs.map → chunk-5VVNE6I5.cjs.map} +1 -1
- package/dist/{chunk-57HYFVTZ.cjs → chunk-735DLFS4.cjs} +29 -29
- package/dist/{chunk-57HYFVTZ.cjs.map → chunk-735DLFS4.cjs.map} +1 -1
- package/dist/{chunk-RY62M66O.js → chunk-7EMOBUB2.js} +2 -2
- package/dist/{chunk-WDWGFUT2.js → chunk-APWW3GPU.js} +6 -6
- package/dist/{chunk-5MLYCLOI.js → chunk-CZ2EJKPA.js} +5 -9
- package/dist/chunk-CZ2EJKPA.js.map +1 -0
- package/dist/{chunk-Q77BDAR7.cjs → chunk-E2XQ5AX7.cjs} +36 -36
- package/dist/{chunk-Q77BDAR7.cjs.map → chunk-E2XQ5AX7.cjs.map} +1 -1
- package/dist/{chunk-56X3EFTG.cjs → chunk-FM7OPH5J.cjs} +19 -19
- package/dist/{chunk-56X3EFTG.cjs.map → chunk-FM7OPH5J.cjs.map} +1 -1
- package/dist/{chunk-WMSTJAZT.cjs → chunk-G56GYN7Z.cjs} +47 -15
- package/dist/chunk-G56GYN7Z.cjs.map +1 -0
- package/dist/{chunk-PQEQUMSS.cjs → chunk-JCU4YVFY.cjs} +16 -16
- package/dist/{chunk-PQEQUMSS.cjs.map → chunk-JCU4YVFY.cjs.map} +1 -1
- package/dist/{chunk-2QG57XOJ.js → chunk-JQ2EYXWR.js} +42 -10
- package/dist/chunk-JQ2EYXWR.js.map +1 -0
- package/dist/{chunk-PI4WSYQV.js → chunk-JQLC2FVM.js} +2 -2
- package/dist/{chunk-XG2KGQ76.cjs → chunk-K2LINTWC.cjs} +40 -40
- package/dist/{chunk-XG2KGQ76.cjs.map → chunk-K2LINTWC.cjs.map} +1 -1
- package/dist/{chunk-DVHQGII5.js → chunk-K3F3AXCC.js} +4 -4
- package/dist/{chunk-N4DEX22O.js → chunk-KNX4OEU5.js} +2 -2
- package/dist/{chunk-BL6XZ2XD.cjs → chunk-LXXZDZGG.cjs} +616 -620
- package/dist/chunk-LXXZDZGG.cjs.map +1 -0
- package/dist/{chunk-PLNR6BHN.cjs → chunk-MFZP6ZJ5.cjs} +7 -7
- package/dist/{chunk-PLNR6BHN.cjs.map → chunk-MFZP6ZJ5.cjs.map} +1 -1
- package/dist/chunk-N2DVKXN4.cjs +43 -0
- package/dist/chunk-N2DVKXN4.cjs.map +1 -0
- package/dist/{chunk-B2IN2IND.js → chunk-OZW6GJKN.js} +4 -4
- package/dist/{chunk-NEVMYN4G.js → chunk-QSPEFQSN.js} +3 -3
- package/dist/{chunk-QE5CNWPF.js → chunk-SYNOZPQC.js} +3 -3
- package/dist/{chunk-67WXHSCX.cjs → chunk-XTQFETF6.cjs} +13 -13
- package/dist/{chunk-67WXHSCX.cjs.map → chunk-XTQFETF6.cjs.map} +1 -1
- package/dist/{chunk-XKIO5K5N.js → chunk-ZLLGC2RZ.js} +3 -3
- package/dist/components/case-studies/index.cjs +10 -11
- package/dist/components/case-studies/index.cjs.map +1 -1
- package/dist/components/case-studies/index.js +4 -5
- package/dist/components/case-studies/index.js.map +1 -1
- package/dist/components/chat/entity-cards/admin-content-card.d.ts +1 -1
- package/dist/components/chat/entity-cards/blog-card.d.ts +2 -2
- package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-image-placeholder.d.ts +1 -1
- package/dist/components/chat/entity-cards/case-study-card.d.ts +1 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts +4 -3
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-placeholder.d.ts +4 -3
- package/dist/components/chat/entity-cards/use-entity-card-placeholder.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/what-i-shipped-card.d.ts +1 -1
- package/dist/components/chat/index.cjs +4 -5
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +3 -4
- package/dist/components/contact/index.cjs +5 -6
- package/dist/components/contact/index.cjs.map +1 -1
- package/dist/components/contact/index.js +4 -5
- package/dist/components/docs/index.cjs +7 -8
- package/dist/components/docs/index.cjs.map +1 -1
- package/dist/components/docs/index.js +6 -7
- package/dist/components/embeds/index.cjs +5 -6
- package/dist/components/embeds/index.cjs.map +1 -1
- package/dist/components/embeds/index.js +4 -5
- package/dist/components/embeds/og-link-preview.d.ts +2 -2
- package/dist/components/faq/index.cjs +6 -7
- package/dist/components/faq/index.cjs.map +1 -1
- package/dist/components/faq/index.js +5 -6
- package/dist/components/features/index.cjs +4 -5
- package/dist/components/features/index.cjs.map +1 -1
- package/dist/components/features/index.js +3 -4
- package/dist/components/index.cjs +193 -195
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +12 -14
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +4 -5
- package/dist/components/navigation/index.cjs.map +1 -1
- package/dist/components/navigation/index.js +3 -4
- package/dist/components/onboarding-guides/index.cjs +44 -41
- package/dist/components/onboarding-guides/index.cjs.map +1 -1
- package/dist/components/onboarding-guides/index.js +11 -8
- package/dist/components/onboarding-guides/index.js.map +1 -1
- package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +6 -7
- package/dist/components/related-content/index.cjs.map +1 -1
- package/dist/components/related-content/index.js +5 -6
- package/dist/components/tickets/index.cjs +75 -76
- package/dist/components/tickets/index.cjs.map +1 -1
- package/dist/components/tickets/index.js +5 -6
- package/dist/components/tickets/index.js.map +1 -1
- package/dist/components/ui/index.cjs +4 -5
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +3 -4
- package/dist/contexts/chat-runtime-context.d.ts +17 -13
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/contexts/index.cjs +2 -4
- package/dist/contexts/index.cjs.map +1 -1
- package/dist/contexts/index.js +3 -5
- package/dist/contexts/index.js.map +1 -1
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/use-og-placeholder-url.d.ts +27 -0
- package/dist/hooks/use-og-placeholder-url.d.ts.map +1 -0
- package/dist/index.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/utils/index.cjs +26 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +26 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/og-placeholder.d.ts +59 -0
- package/dist/utils/og-placeholder.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/chat/entity-cards/admin-content-card.tsx +1 -1
- package/src/components/chat/entity-cards/blog-card.tsx +2 -2
- package/src/components/chat/entity-cards/blog-image-placeholder.tsx +1 -1
- package/src/components/chat/entity-cards/case-study-card.tsx +1 -1
- package/src/components/chat/entity-cards/onboarding-guide-card.tsx +4 -3
- package/src/components/chat/entity-cards/use-entity-card-placeholder.ts +13 -26
- package/src/components/chat/entity-cards/what-i-shipped-card.tsx +1 -1
- package/src/components/embeds/og-link-preview.tsx +2 -2
- package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +4 -2
- package/src/contexts/chat-runtime-context.tsx +17 -13
- package/src/hooks/index.ts +2 -2
- package/src/hooks/use-og-placeholder-url.ts +46 -0
- package/src/utils/index.ts +4 -0
- package/src/utils/og-placeholder.ts +105 -0
- package/dist/chunk-27APPAJN.cjs +0 -24
- package/dist/chunk-27APPAJN.cjs.map +0 -1
- package/dist/chunk-2QG57XOJ.js.map +0 -1
- package/dist/chunk-5MLYCLOI.js.map +0 -1
- package/dist/chunk-BL6XZ2XD.cjs.map +0 -1
- package/dist/chunk-IZ7JSBFP.js +0 -24
- package/dist/chunk-IZ7JSBFP.js.map +0 -1
- package/dist/chunk-L6PSSIUQ.cjs +0 -24
- package/dist/chunk-L6PSSIUQ.cjs.map +0 -1
- package/dist/chunk-MJNXIEV2.js +0 -24
- package/dist/chunk-MJNXIEV2.js.map +0 -1
- package/dist/chunk-WMSTJAZT.cjs.map +0 -1
- package/dist/hooks/use-og-placeholder.d.ts +0 -31
- package/dist/hooks/use-og-placeholder.d.ts.map +0 -1
- package/src/hooks/use-og-placeholder.ts +0 -45
- /package/dist/{chunk-RY62M66O.js.map → chunk-7EMOBUB2.js.map} +0 -0
- /package/dist/{chunk-WDWGFUT2.js.map → chunk-APWW3GPU.js.map} +0 -0
- /package/dist/{chunk-PI4WSYQV.js.map → chunk-JQLC2FVM.js.map} +0 -0
- /package/dist/{chunk-DVHQGII5.js.map → chunk-K3F3AXCC.js.map} +0 -0
- /package/dist/{chunk-N4DEX22O.js.map → chunk-KNX4OEU5.js.map} +0 -0
- /package/dist/{chunk-B2IN2IND.js.map → chunk-OZW6GJKN.js.map} +0 -0
- /package/dist/{chunk-NEVMYN4G.js.map → chunk-QSPEFQSN.js.map} +0 -0
- /package/dist/{chunk-QE5CNWPF.js.map → chunk-SYNOZPQC.js.map} +0 -0
- /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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|