@flamingo-stack/openframe-frontend-core 0.0.475 → 0.0.476
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-5IQXLG4H.js → chunk-2DBCYHR2.js} +2 -2
- package/dist/{chunk-A6O75SLQ.js → chunk-6HX7VHJB.js} +2 -2
- package/dist/{chunk-DEHW3LYM.cjs → chunk-A6LCWFMD.cjs} +31 -19
- package/dist/chunk-A6LCWFMD.cjs.map +1 -0
- package/dist/{chunk-YRZZ7HHJ.js → chunk-AE4ZR75U.js} +2 -2
- package/dist/{chunk-NJGLBKCR.js → chunk-BKIUYOWZ.js} +4 -4
- package/dist/{chunk-7CU7Y3ML.cjs → chunk-BLDESYTK.cjs} +26 -26
- package/dist/{chunk-7CU7Y3ML.cjs.map → chunk-BLDESYTK.cjs.map} +1 -1
- package/dist/{chunk-BQPZQQPC.js → chunk-EAQ7OR4F.js} +31 -19
- package/dist/chunk-EAQ7OR4F.js.map +1 -0
- package/dist/{chunk-LM57R7B4.js → chunk-ET7T7IW6.js} +2 -2
- package/dist/{chunk-E42Y3ZAL.js → chunk-GPSRQWSQ.js} +2 -2
- package/dist/{chunk-WEFPQFUO.js → chunk-K33RUATC.js} +4 -4
- package/dist/{chunk-3W6A7LST.cjs → chunk-KZMCU7VV.cjs} +11 -11
- package/dist/{chunk-3W6A7LST.cjs.map → chunk-KZMCU7VV.cjs.map} +1 -1
- package/dist/{chunk-5ICXBR62.cjs → chunk-LKLU2CQK.cjs} +62 -62
- package/dist/{chunk-5ICXBR62.cjs.map → chunk-LKLU2CQK.cjs.map} +1 -1
- package/dist/{chunk-PQT3NIDA.js → chunk-LW5H6F2L.js} +4 -4
- package/dist/{chunk-QM3DRG5I.cjs → chunk-MNWFO65E.cjs} +9 -9
- package/dist/{chunk-QM3DRG5I.cjs.map → chunk-MNWFO65E.cjs.map} +1 -1
- package/dist/{chunk-3WBREJMR.js → chunk-MRBIBDHA.js} +4 -4
- package/dist/{chunk-E4CNWKZ3.cjs → chunk-O5N2L456.cjs} +7 -7
- package/dist/{chunk-E4CNWKZ3.cjs.map → chunk-O5N2L456.cjs.map} +1 -1
- package/dist/{chunk-SZNK5Q4A.cjs → chunk-SD443M2O.cjs} +37 -37
- package/dist/{chunk-SZNK5Q4A.cjs.map → chunk-SD443M2O.cjs.map} +1 -1
- package/dist/{chunk-AIUIIKH2.cjs → chunk-STE3BZNL.cjs} +15 -15
- package/dist/{chunk-AIUIIKH2.cjs.map → chunk-STE3BZNL.cjs.map} +1 -1
- package/dist/{chunk-HJV4VCEZ.cjs → chunk-TTDO3TQ2.cjs} +5 -5
- package/dist/{chunk-HJV4VCEZ.cjs.map → chunk-TTDO3TQ2.cjs.map} +1 -1
- package/dist/{chunk-DJAPOTAY.cjs → chunk-V7RX7TBT.cjs} +59 -59
- package/dist/{chunk-DJAPOTAY.cjs.map → chunk-V7RX7TBT.cjs.map} +1 -1
- package/dist/{chunk-W5UZSGJY.cjs → chunk-VL2BNPJW.cjs} +26 -26
- package/dist/{chunk-W5UZSGJY.cjs.map → chunk-VL2BNPJW.cjs.map} +1 -1
- package/dist/{chunk-S4VEPOX2.js → chunk-VOUXI6JT.js} +2 -2
- package/dist/{chunk-5U7MG3CZ.cjs → chunk-XIU3CWJU.cjs} +31 -31
- package/dist/{chunk-5U7MG3CZ.cjs.map → chunk-XIU3CWJU.cjs.map} +1 -1
- package/dist/{chunk-R7JJ7PHN.js → chunk-YCKRFXJV.js} +2 -2
- package/dist/components/announcement-bar.d.ts +15 -0
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +155 -160
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +34 -39
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/announcement-bar-view.d.ts +47 -26
- package/dist/components/ui/announcement-bar-view.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +48 -40
- package/src/components/ui/announcement-bar-view.tsx +99 -42
- package/dist/chunk-BQPZQQPC.js.map +0 -1
- package/dist/chunk-DEHW3LYM.cjs.map +0 -1
- /package/dist/{chunk-5IQXLG4H.js.map → chunk-2DBCYHR2.js.map} +0 -0
- /package/dist/{chunk-A6O75SLQ.js.map → chunk-6HX7VHJB.js.map} +0 -0
- /package/dist/{chunk-YRZZ7HHJ.js.map → chunk-AE4ZR75U.js.map} +0 -0
- /package/dist/{chunk-NJGLBKCR.js.map → chunk-BKIUYOWZ.js.map} +0 -0
- /package/dist/{chunk-LM57R7B4.js.map → chunk-ET7T7IW6.js.map} +0 -0
- /package/dist/{chunk-E42Y3ZAL.js.map → chunk-GPSRQWSQ.js.map} +0 -0
- /package/dist/{chunk-WEFPQFUO.js.map → chunk-K33RUATC.js.map} +0 -0
- /package/dist/{chunk-PQT3NIDA.js.map → chunk-LW5H6F2L.js.map} +0 -0
- /package/dist/{chunk-3WBREJMR.js.map → chunk-MRBIBDHA.js.map} +0 -0
- /package/dist/{chunk-S4VEPOX2.js.map → chunk-VOUXI6JT.js.map} +0 -0
- /package/dist/{chunk-R7JJ7PHN.js.map → chunk-YCKRFXJV.js.map} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import "../chunk-GZ4C3XW6.js";
|
|
|
4
4
|
import {
|
|
5
5
|
GROUP_PAGE_SIZE,
|
|
6
6
|
RelatedContentSection
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-AE4ZR75U.js";
|
|
8
8
|
import {
|
|
9
9
|
DeliveryLists,
|
|
10
10
|
DeliveryTable,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
useLegalDocs,
|
|
22
22
|
usePaginationLoading,
|
|
23
23
|
useRoadmapVoting
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-K33RUATC.js";
|
|
25
25
|
import {
|
|
26
26
|
AnnouncementBarSkeleton,
|
|
27
27
|
ArticleLayoutSkeleton,
|
|
@@ -54,17 +54,17 @@ import {
|
|
|
54
54
|
useDocNavigation,
|
|
55
55
|
useDocumentTree,
|
|
56
56
|
useScrollSpy
|
|
57
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-LW5H6F2L.js";
|
|
58
58
|
import {
|
|
59
59
|
FileDownloadCard,
|
|
60
60
|
GoogleSheetsViewer,
|
|
61
61
|
PdfViewer
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-6HX7VHJB.js";
|
|
63
63
|
import {
|
|
64
64
|
FaqAccordion,
|
|
65
65
|
FaqDocumentPage,
|
|
66
66
|
FaqSection
|
|
67
|
-
} from "../chunk-
|
|
67
|
+
} from "../chunk-GPSRQWSQ.js";
|
|
68
68
|
import {
|
|
69
69
|
DeliveryRow,
|
|
70
70
|
DevCardRowContent,
|
|
@@ -75,11 +75,11 @@ import {
|
|
|
75
75
|
EmptyState,
|
|
76
76
|
UnifiedPagination,
|
|
77
77
|
init_unified_pagination
|
|
78
|
-
} from "../chunk-
|
|
78
|
+
} from "../chunk-ET7T7IW6.js";
|
|
79
79
|
import {
|
|
80
80
|
ArticleAuthorByline,
|
|
81
81
|
DetailPageSkeleton
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-VOUXI6JT.js";
|
|
83
83
|
import {
|
|
84
84
|
DocSearchBar,
|
|
85
85
|
DocSearchResultRow,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
mapDocSearchResults,
|
|
88
88
|
resolveSearchResultAction,
|
|
89
89
|
useDocSearch
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-YCKRFXJV.js";
|
|
91
91
|
import {
|
|
92
92
|
useSelfFetch
|
|
93
93
|
} from "../chunk-AGX565ZT.js";
|
|
@@ -906,7 +906,7 @@ import {
|
|
|
906
906
|
useVideoOriginPreconnect,
|
|
907
907
|
useVideoWarmup,
|
|
908
908
|
usesCanonicalStatusStyle
|
|
909
|
-
} from "../chunk-
|
|
909
|
+
} from "../chunk-EAQ7OR4F.js";
|
|
910
910
|
import {
|
|
911
911
|
CommandApprovalToast,
|
|
912
912
|
ToastCard,
|
|
@@ -1144,7 +1144,6 @@ import "../chunk-GGWZFCYS.js";
|
|
|
1144
1144
|
// src/components/announcement-bar.tsx
|
|
1145
1145
|
import { X } from "lucide-react";
|
|
1146
1146
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
1147
|
-
init_cn();
|
|
1148
1147
|
init_button();
|
|
1149
1148
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1150
1149
|
function AnnouncementBar({
|
|
@@ -1231,6 +1230,8 @@ function AnnouncementBar({
|
|
|
1231
1230
|
AnnouncementBarView,
|
|
1232
1231
|
{
|
|
1233
1232
|
className: "text-[color:var(--color-text-primary)]",
|
|
1233
|
+
contentClassName: hasCta ? "cursor-pointer md:cursor-default" : void 0,
|
|
1234
|
+
onContentClick: hasCta ? handleCtaClick : void 0,
|
|
1234
1235
|
startAdornment: (
|
|
1235
1236
|
/* ONE unified icon path (shared with the chat): uploaded image URL
|
|
1236
1237
|
wins, else a library glyph by name (+ props), via <EntityIcon>. */
|
|
@@ -1243,18 +1244,16 @@ function AnnouncementBar({
|
|
|
1243
1244
|
props: displayAnnouncement.icon_props
|
|
1244
1245
|
},
|
|
1245
1246
|
size: 24,
|
|
1246
|
-
className: "relative !size-
|
|
1247
|
+
className: "relative !size-5 shrink-0 md:!size-6"
|
|
1247
1248
|
}
|
|
1248
1249
|
)
|
|
1249
1250
|
),
|
|
1250
1251
|
title: (
|
|
1251
|
-
/*
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
copy). */
|
|
1257
|
-
/* @__PURE__ */ jsxs("p", { className: "min-w-0 max-w-full break-words text-h4 md:truncate mb-0", children: [
|
|
1252
|
+
/* Single-line message: bold title + regular description inline,
|
|
1253
|
+
truncating as one unit, at the strip's caption scale (`text-h6`
|
|
1254
|
+
= 13/14px — the same treatment string titles get from the view).
|
|
1255
|
+
Separator is a middot (house rule: no en/em dashes in copy). */
|
|
1256
|
+
/* @__PURE__ */ jsxs("p", { className: "min-w-0 max-w-full text-h6 truncate mb-0", children: [
|
|
1258
1257
|
/* @__PURE__ */ jsx("span", { className: "font-[number:var(--font-weight-semibold)]", children: displayAnnouncement.title }),
|
|
1259
1258
|
displayAnnouncement.description && /* @__PURE__ */ jsxs("span", { className: "hidden sm:inline opacity-80", children: [
|
|
1260
1259
|
" \xB7 ",
|
|
@@ -1269,21 +1268,20 @@ function AnnouncementBar({
|
|
|
1269
1268
|
announcement colors are data, not token surfaces). Inline
|
|
1270
1269
|
styles win over the variant's hover classes on every state,
|
|
1271
1270
|
so hover feedback is opacity (the bar's original treatment);
|
|
1272
|
-
nothing can render dark-on-dark. The view
|
|
1273
|
-
|
|
1271
|
+
nothing can render dark-on-dark. The view CSS-hides it below
|
|
1272
|
+
`md`, where the whole content row is the tap target — this
|
|
1273
|
+
Button stays the keyboard/AT path (known tradeoff).
|
|
1274
1274
|
|
|
1275
|
-
Geometry + type
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
mockup keeps the 32px height on EVERY breakpoint, while
|
|
1279
|
-
"small" alone drops to 24px below `md`. */
|
|
1275
|
+
Geometry + type come from the design system's size="compact"
|
|
1276
|
+
(24px caption-scale pill for slim strips — rationale documented
|
|
1277
|
+
on the variant in button.tsx). */
|
|
1280
1278
|
hasCta && displayAnnouncement.cta_text ? /* @__PURE__ */ jsx(
|
|
1281
1279
|
Button,
|
|
1282
1280
|
{
|
|
1283
1281
|
onClick: handleCtaClick,
|
|
1284
1282
|
variant: "outline",
|
|
1285
|
-
size: "
|
|
1286
|
-
className: "
|
|
1283
|
+
size: "compact",
|
|
1284
|
+
className: "transition-opacity hover:opacity-90",
|
|
1287
1285
|
style: {
|
|
1288
1286
|
backgroundColor: displayAnnouncement.cta_button_background_color || ANNOUNCEMENT_CTA_DEFAULTS.background,
|
|
1289
1287
|
color: displayAnnouncement.cta_button_text_color || ANNOUNCEMENT_CTA_DEFAULTS.text,
|
|
@@ -1294,8 +1292,8 @@ function AnnouncementBar({
|
|
|
1294
1292
|
EntityIcon,
|
|
1295
1293
|
{
|
|
1296
1294
|
icon: { name: displayAnnouncement.cta_icon_name, props: displayAnnouncement.cta_icon_props },
|
|
1297
|
-
size:
|
|
1298
|
-
className: "w-
|
|
1295
|
+
size: 14,
|
|
1296
|
+
className: "w-3.5 h-3.5"
|
|
1299
1297
|
}
|
|
1300
1298
|
) : void 0,
|
|
1301
1299
|
children: displayAnnouncement.cta_text
|
|
@@ -1303,22 +1301,19 @@ function AnnouncementBar({
|
|
|
1303
1301
|
) : void 0
|
|
1304
1302
|
),
|
|
1305
1303
|
endAdornment: (
|
|
1306
|
-
/* Dismiss - the common Button in its ghost-icon treatment
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
icon-sm 32px target. Inert in previewMode; omitted entirely
|
|
1313
|
-
when the host opts out via `dismissible={false}` (the bar
|
|
1314
|
-
then only disappears by deactivating the announcement). */
|
|
1304
|
+
/* Dismiss - the common Button in its ghost-icon treatment
|
|
1305
|
+
(size="icon-sm": 32px target, >= the 24px WCAG 2.5.8 AA floor,
|
|
1306
|
+
16px glyph) with the bar's quiet tint hover. Inert in
|
|
1307
|
+
previewMode; omitted entirely when the host opts out via
|
|
1308
|
+
`dismissible={false}` (the bar then only disappears by
|
|
1309
|
+
deactivating the announcement). */
|
|
1315
1310
|
dismissible ? /* @__PURE__ */ jsx(
|
|
1316
1311
|
Button,
|
|
1317
1312
|
{
|
|
1318
1313
|
onClick: handleDismiss,
|
|
1319
1314
|
variant: "transparent",
|
|
1320
1315
|
size: "icon-sm",
|
|
1321
|
-
className:
|
|
1316
|
+
className: barButtonClasses,
|
|
1322
1317
|
"aria-label": "Dismiss announcement",
|
|
1323
1318
|
type: "button",
|
|
1324
1319
|
tabIndex: expanded ? 0 : -1,
|