@flamingo-stack/openframe-frontend-core 0.0.299 → 0.0.300-snapshot.20260621190412
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-56X3EFTG.cjs → chunk-3I7T732P.cjs} +19 -19
- package/dist/{chunk-56X3EFTG.cjs.map → chunk-3I7T732P.cjs.map} +1 -1
- package/dist/{chunk-NEVMYN4G.js → chunk-5D76BUKB.js} +3 -3
- package/dist/{chunk-DVHQGII5.js → chunk-A22ZO5SB.js} +4 -4
- package/dist/{chunk-PLNR6BHN.cjs → chunk-BD4YJSRZ.cjs} +7 -7
- package/dist/{chunk-PLNR6BHN.cjs.map → chunk-BD4YJSRZ.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-Q77BDAR7.cjs → chunk-HLJLLNOB.cjs} +36 -36
- package/dist/{chunk-Q77BDAR7.cjs.map → chunk-HLJLLNOB.cjs.map} +1 -1
- package/dist/{chunk-5MLYCLOI.js → chunk-HRDN27UP.js} +7 -11
- package/dist/chunk-HRDN27UP.js.map +1 -0
- package/dist/{chunk-XKIO5K5N.js → chunk-IXCQFNF7.js} +3 -3
- package/dist/{chunk-N4DEX22O.js → chunk-JHNAQUWK.js} +2 -2
- 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-57HYFVTZ.cjs → chunk-K4ZENCQE.cjs} +29 -29
- package/dist/{chunk-57HYFVTZ.cjs.map → chunk-K4ZENCQE.cjs.map} +1 -1
- package/dist/{chunk-B2IN2IND.js → chunk-LFXZJZKO.js} +4 -4
- package/dist/{chunk-XG2KGQ76.cjs → chunk-LWJYIEPP.cjs} +40 -40
- package/dist/{chunk-XG2KGQ76.cjs.map → chunk-LWJYIEPP.cjs.map} +1 -1
- package/dist/chunk-N2DVKXN4.cjs +43 -0
- package/dist/chunk-N2DVKXN4.cjs.map +1 -0
- package/dist/{chunk-WDWGFUT2.js → chunk-N7XM5HTI.js} +6 -6
- package/dist/{chunk-X26HXH3L.cjs → chunk-RBZCSKFW.cjs} +7 -7
- package/dist/{chunk-X26HXH3L.cjs.map → chunk-RBZCSKFW.cjs.map} +1 -1
- package/dist/{chunk-67WXHSCX.cjs → chunk-TMLDWPTS.cjs} +13 -13
- package/dist/{chunk-67WXHSCX.cjs.map → chunk-TMLDWPTS.cjs.map} +1 -1
- package/dist/{chunk-PQEQUMSS.cjs → chunk-TTHXHSVU.cjs} +16 -16
- package/dist/{chunk-PQEQUMSS.cjs.map → chunk-TTHXHSVU.cjs.map} +1 -1
- package/dist/{chunk-RY62M66O.js → chunk-YLD4WH67.js} +2 -2
- package/dist/{chunk-BL6XZ2XD.cjs → chunk-ZDN6OEWV.cjs} +618 -622
- package/dist/chunk-ZDN6OEWV.cjs.map +1 -0
- package/dist/{chunk-QE5CNWPF.js → chunk-ZUALRZHW.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/layout/article-detail-layout.d.ts +9 -0
- package/dist/components/layout/article-detail-layout.d.ts.map +1 -1
- package/dist/components/layout/page-with-header.d.ts +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/layout/.article-detail-layout.md +1 -1
- package/src/components/layout/article-detail-layout.tsx +11 -2
- package/src/components/layout/page-with-header.tsx +1 -1
- 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-NEVMYN4G.js.map → chunk-5D76BUKB.js.map} +0 -0
- /package/dist/{chunk-DVHQGII5.js.map → chunk-A22ZO5SB.js.map} +0 -0
- /package/dist/{chunk-XKIO5K5N.js.map → chunk-IXCQFNF7.js.map} +0 -0
- /package/dist/{chunk-N4DEX22O.js.map → chunk-JHNAQUWK.js.map} +0 -0
- /package/dist/{chunk-PI4WSYQV.js.map → chunk-JQLC2FVM.js.map} +0 -0
- /package/dist/{chunk-B2IN2IND.js.map → chunk-LFXZJZKO.js.map} +0 -0
- /package/dist/{chunk-WDWGFUT2.js.map → chunk-N7XM5HTI.js.map} +0 -0
- /package/dist/{chunk-RY62M66O.js.map → chunk-YLD4WH67.js.map} +0 -0
- /package/dist/{chunk-QE5CNWPF.js.map → chunk-ZUALRZHW.js.map} +0 -0
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
SelectValue,
|
|
13
13
|
Textarea,
|
|
14
14
|
useChatAttachments
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HRDN27UP.js";
|
|
16
16
|
import {
|
|
17
17
|
useContactSubmission,
|
|
18
18
|
useHumanitySignals
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JQ2EYXWR.js";
|
|
20
20
|
import {
|
|
21
21
|
Button,
|
|
22
22
|
Input
|
|
@@ -372,4 +372,4 @@ function ContactForm({
|
|
|
372
372
|
export {
|
|
373
373
|
ContactForm
|
|
374
374
|
};
|
|
375
|
-
//# sourceMappingURL=chunk-
|
|
375
|
+
//# sourceMappingURL=chunk-IXCQFNF7.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
formatFileSize,
|
|
5
5
|
toGoogleSheetsEmbedUrl,
|
|
6
6
|
toGoogleSheetsOriginalUrl
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HRDN27UP.js";
|
|
8
8
|
import {
|
|
9
9
|
Button
|
|
10
10
|
} from "./chunk-JALO4TAZ.js";
|
|
@@ -141,4 +141,4 @@ export {
|
|
|
141
141
|
GoogleSheetsViewer,
|
|
142
142
|
FileDownloadCard
|
|
143
143
|
};
|
|
144
|
-
//# sourceMappingURL=chunk-
|
|
144
|
+
//# sourceMappingURL=chunk-JHNAQUWK.js.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
+
useChatRuntime,
|
|
3
4
|
useRequiredEndpointsRuntime
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2FI3USTC.js";
|
|
5
6
|
import {
|
|
6
7
|
init_next_navigation,
|
|
7
8
|
useRouter,
|
|
@@ -3307,16 +3308,46 @@ function useAccessCodeIntegration() {
|
|
|
3307
3308
|
};
|
|
3308
3309
|
}
|
|
3309
3310
|
|
|
3310
|
-
// src/hooks/use-og-placeholder.ts
|
|
3311
|
+
// src/hooks/use-og-placeholder-url.ts
|
|
3311
3312
|
import { useMemo as useMemo6 } from "react";
|
|
3312
|
-
|
|
3313
|
+
|
|
3314
|
+
// src/utils/og-placeholder.ts
|
|
3315
|
+
var DEFAULT_OG_PLACEHOLDER_PATH = "/api/og-placeholder";
|
|
3316
|
+
function resolveOgPlaceholderBase(endpoints) {
|
|
3317
|
+
if (endpoints?.ogPlaceholderUrl) return endpoints.ogPlaceholderUrl;
|
|
3318
|
+
const imageProxy = endpoints?.imageProxyUrlPrefix;
|
|
3319
|
+
if (imageProxy) {
|
|
3320
|
+
const derived = imageProxy.replace(/\/image-proxy(?=$|[?/])/, "/og-placeholder");
|
|
3321
|
+
if (derived !== imageProxy) return derived;
|
|
3322
|
+
}
|
|
3323
|
+
return DEFAULT_OG_PLACEHOLDER_PATH;
|
|
3324
|
+
}
|
|
3325
|
+
function buildOgPlaceholderUrl(endpoints, title, options = {}) {
|
|
3326
|
+
const base = resolveOgPlaceholderBase(endpoints);
|
|
3327
|
+
const qIndex = base.indexOf("?");
|
|
3328
|
+
const path = qIndex === -1 ? base : base.slice(0, qIndex);
|
|
3329
|
+
const params = new URLSearchParams(qIndex === -1 ? "" : base.slice(qIndex + 1));
|
|
3330
|
+
params.set("title", title);
|
|
3331
|
+
if (options.site) params.set("site", options.site);
|
|
3332
|
+
const width = options.width ?? (options.aspect === "square" ? 1024 : void 0);
|
|
3333
|
+
const height = options.height ?? (options.aspect === "square" ? 1024 : void 0);
|
|
3334
|
+
if (Number.isFinite(width)) params.set("w", String(width));
|
|
3335
|
+
if (Number.isFinite(height)) params.set("h", String(height));
|
|
3336
|
+
return `${path}?${params.toString()}`;
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3339
|
+
// src/hooks/use-og-placeholder-url.ts
|
|
3340
|
+
function useOgPlaceholderUrl({
|
|
3341
|
+
title,
|
|
3342
|
+
siteName = "",
|
|
3343
|
+
aspect = "wide",
|
|
3344
|
+
enabled = true
|
|
3345
|
+
}) {
|
|
3346
|
+
const endpoints = useChatRuntime()?.endpoints;
|
|
3313
3347
|
return useMemo6(() => {
|
|
3314
3348
|
if (!enabled || !title) return null;
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
if (aspect === "square") options.aspect = "square";
|
|
3318
|
-
return buildUrl(title, options);
|
|
3319
|
-
}, [buildUrl, title, siteName, enabled, aspect]);
|
|
3349
|
+
return buildOgPlaceholderUrl(endpoints, title, { site: siteName || void 0, aspect });
|
|
3350
|
+
}, [endpoints, title, siteName, aspect, enabled]);
|
|
3320
3351
|
}
|
|
3321
3352
|
|
|
3322
3353
|
// src/hooks/use-scroll-to-hash.ts
|
|
@@ -3635,7 +3666,8 @@ export {
|
|
|
3635
3666
|
consumeAccessCode,
|
|
3636
3667
|
validateAndConsumeAccessCode,
|
|
3637
3668
|
useAccessCodeIntegration,
|
|
3638
|
-
|
|
3669
|
+
buildOgPlaceholderUrl,
|
|
3670
|
+
useOgPlaceholderUrl,
|
|
3639
3671
|
scrollElementIntoView,
|
|
3640
3672
|
STICKY_HEADER_OFFSET_PX,
|
|
3641
3673
|
HUB_HEADER_OFFSET_PX,
|
|
@@ -3650,4 +3682,4 @@ export {
|
|
|
3650
3682
|
splitCsvEnv,
|
|
3651
3683
|
useHumanitySignals
|
|
3652
3684
|
};
|
|
3653
|
-
//# sourceMappingURL=chunk-
|
|
3685
|
+
//# sourceMappingURL=chunk-JQ2EYXWR.js.map
|