@flamingo-stack/openframe-frontend-core 0.0.472 → 0.0.473

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 (97) hide show
  1. package/dist/{chunk-7D5KOJMF.js → chunk-2SPAHQYE.js} +4 -4
  2. package/dist/{chunk-4BUX2F5P.cjs → chunk-4EU6WL5O.cjs} +37 -37
  3. package/dist/{chunk-4BUX2F5P.cjs.map → chunk-4EU6WL5O.cjs.map} +1 -1
  4. package/dist/{chunk-DWQ4L3IB.cjs → chunk-4WHDDAVP.cjs} +31 -31
  5. package/dist/{chunk-DWQ4L3IB.cjs.map → chunk-4WHDDAVP.cjs.map} +1 -1
  6. package/dist/{chunk-XNJ2LZH2.js → chunk-4Y6LX6XR.js} +2 -2
  7. package/dist/{chunk-ZPUT2BB4.js → chunk-4YH4WKLC.js} +2 -2
  8. package/dist/{chunk-VC4FOIY7.cjs → chunk-5LTLYPIP.cjs} +62 -62
  9. package/dist/{chunk-VC4FOIY7.cjs.map → chunk-5LTLYPIP.cjs.map} +1 -1
  10. package/dist/{chunk-CUBNUQPZ.cjs → chunk-6OGOPPTI.cjs} +9 -9
  11. package/dist/{chunk-CUBNUQPZ.cjs.map → chunk-6OGOPPTI.cjs.map} +1 -1
  12. package/dist/{chunk-JO7XJQ6G.cjs → chunk-6VEEQBVJ.cjs} +15 -15
  13. package/dist/{chunk-JO7XJQ6G.cjs.map → chunk-6VEEQBVJ.cjs.map} +1 -1
  14. package/dist/{chunk-OUHLWOPJ.js → chunk-6WPUUGW5.js} +4 -4
  15. package/dist/{chunk-ONK4D4LG.cjs → chunk-B472QGDO.cjs} +5 -5
  16. package/dist/{chunk-ONK4D4LG.cjs.map → chunk-B472QGDO.cjs.map} +1 -1
  17. package/dist/{chunk-BY6TZ6KA.js → chunk-B52SBOUY.js} +4 -4
  18. package/dist/{chunk-KZZCBQDU.cjs → chunk-CDBQQA7V.cjs} +26 -26
  19. package/dist/{chunk-KZZCBQDU.cjs.map → chunk-CDBQQA7V.cjs.map} +1 -1
  20. package/dist/{chunk-73CH4CZL.cjs → chunk-CH7MDKPI.cjs} +7 -7
  21. package/dist/{chunk-73CH4CZL.cjs.map → chunk-CH7MDKPI.cjs.map} +1 -1
  22. package/dist/{chunk-EK2VQXUN.js → chunk-DBYUQOLS.js} +2 -2
  23. package/dist/{chunk-74ZFCTRZ.js → chunk-H6FKYKEQ.js} +2 -2
  24. package/dist/{chunk-W6RDDT3S.js → chunk-I5L3KUTE.js} +4 -4
  25. package/dist/{chunk-YTLINJRR.cjs → chunk-J5S5U76A.cjs} +26 -26
  26. package/dist/{chunk-YTLINJRR.cjs.map → chunk-J5S5U76A.cjs.map} +1 -1
  27. package/dist/{chunk-WD7SE532.cjs → chunk-KP37QDNS.cjs} +59 -59
  28. package/dist/{chunk-WD7SE532.cjs.map → chunk-KP37QDNS.cjs.map} +1 -1
  29. package/dist/{chunk-U5FNZ2TL.cjs → chunk-KXBXPOYM.cjs} +11 -11
  30. package/dist/{chunk-U5FNZ2TL.cjs.map → chunk-KXBXPOYM.cjs.map} +1 -1
  31. package/dist/{chunk-XDBNMB5K.js → chunk-LWIVRGDN.js} +2 -2
  32. package/dist/{chunk-TVMARS74.js → chunk-QESV36I2.js} +19 -24
  33. package/dist/chunk-QESV36I2.js.map +1 -0
  34. package/dist/{chunk-PJYGEXWM.js → chunk-SWNZZVYG.js} +2 -2
  35. package/dist/{chunk-NY4WLKNU.js → chunk-UCY6VITT.js} +2 -2
  36. package/dist/{chunk-RIEAXUJX.cjs → chunk-ZQRGJHNH.cjs} +19 -24
  37. package/dist/chunk-ZQRGJHNH.cjs.map +1 -0
  38. package/dist/components/announcement-bar.d.ts +1 -1
  39. package/dist/components/announcement-bar.d.ts.map +1 -1
  40. package/dist/components/case-studies/index.cjs +8 -8
  41. package/dist/components/case-studies/index.js +2 -2
  42. package/dist/components/chat/index.cjs +2 -2
  43. package/dist/components/chat/index.js +1 -1
  44. package/dist/components/contact/index.cjs +3 -3
  45. package/dist/components/contact/index.js +2 -2
  46. package/dist/components/docs/index.cjs +5 -5
  47. package/dist/components/docs/index.js +4 -4
  48. package/dist/components/embeds/index.cjs +3 -3
  49. package/dist/components/embeds/index.js +2 -2
  50. package/dist/components/faq/index.cjs +3 -3
  51. package/dist/components/faq/index.js +2 -2
  52. package/dist/components/features/index.cjs +2 -2
  53. package/dist/components/features/index.js +1 -1
  54. package/dist/components/help-center-pages/index.cjs +20 -20
  55. package/dist/components/help-center-pages/index.js +11 -11
  56. package/dist/components/index.cjs +168 -156
  57. package/dist/components/index.cjs.map +1 -1
  58. package/dist/components/index.js +47 -35
  59. package/dist/components/index.js.map +1 -1
  60. package/dist/components/navigation/index.cjs +2 -2
  61. package/dist/components/navigation/index.js +1 -1
  62. package/dist/components/onboarding-guides/index.cjs +5 -5
  63. package/dist/components/onboarding-guides/index.js +4 -4
  64. package/dist/components/related-content/index.cjs +3 -3
  65. package/dist/components/related-content/index.js +2 -2
  66. package/dist/components/tickets/index.cjs +5 -5
  67. package/dist/components/tickets/index.js +4 -4
  68. package/dist/components/ui/announcement-bar-view.d.ts +26 -24
  69. package/dist/components/ui/announcement-bar-view.d.ts.map +1 -1
  70. package/dist/components/ui/index.cjs +2 -2
  71. package/dist/components/ui/index.js +1 -1
  72. package/dist/index.cjs +2 -2
  73. package/dist/index.js +1 -1
  74. package/dist/types/announcement.cjs.map +1 -1
  75. package/dist/types/announcement.d.ts +5 -0
  76. package/dist/types/announcement.d.ts.map +1 -1
  77. package/dist/types/announcement.js.map +1 -1
  78. package/dist/types/index.cjs.map +1 -1
  79. package/dist/types/index.js.map +1 -1
  80. package/package.json +1 -1
  81. package/src/components/announcement-bar.tsx +58 -42
  82. package/src/components/ui/announcement-bar-view.tsx +42 -66
  83. package/src/stories/AnnouncementBar.stories.tsx +20 -0
  84. package/src/types/announcement.ts +5 -0
  85. package/dist/chunk-RIEAXUJX.cjs.map +0 -1
  86. package/dist/chunk-TVMARS74.js.map +0 -1
  87. /package/dist/{chunk-7D5KOJMF.js.map → chunk-2SPAHQYE.js.map} +0 -0
  88. /package/dist/{chunk-XNJ2LZH2.js.map → chunk-4Y6LX6XR.js.map} +0 -0
  89. /package/dist/{chunk-ZPUT2BB4.js.map → chunk-4YH4WKLC.js.map} +0 -0
  90. /package/dist/{chunk-OUHLWOPJ.js.map → chunk-6WPUUGW5.js.map} +0 -0
  91. /package/dist/{chunk-BY6TZ6KA.js.map → chunk-B52SBOUY.js.map} +0 -0
  92. /package/dist/{chunk-EK2VQXUN.js.map → chunk-DBYUQOLS.js.map} +0 -0
  93. /package/dist/{chunk-74ZFCTRZ.js.map → chunk-H6FKYKEQ.js.map} +0 -0
  94. /package/dist/{chunk-W6RDDT3S.js.map → chunk-I5L3KUTE.js.map} +0 -0
  95. /package/dist/{chunk-XDBNMB5K.js.map → chunk-LWIVRGDN.js.map} +0 -0
  96. /package/dist/{chunk-PJYGEXWM.js.map → chunk-SWNZZVYG.js.map} +0 -0
  97. /package/dist/{chunk-NY4WLKNU.js.map → chunk-UCY6VITT.js.map} +0 -0
@@ -4,7 +4,7 @@ import "../chunk-GZ4C3XW6.js";
4
4
  import {
5
5
  GROUP_PAGE_SIZE,
6
6
  RelatedContentSection
7
- } from "../chunk-XNJ2LZH2.js";
7
+ } from "../chunk-4Y6LX6XR.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-W6RDDT3S.js";
24
+ } from "../chunk-I5L3KUTE.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-7D5KOJMF.js";
57
+ } from "../chunk-2SPAHQYE.js";
58
58
  import {
59
59
  FileDownloadCard,
60
60
  GoogleSheetsViewer,
61
61
  PdfViewer
62
- } from "../chunk-XDBNMB5K.js";
62
+ } from "../chunk-LWIVRGDN.js";
63
63
  import {
64
64
  FaqAccordion,
65
65
  FaqDocumentPage,
66
66
  FaqSection
67
- } from "../chunk-ZPUT2BB4.js";
67
+ } from "../chunk-4YH4WKLC.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-PJYGEXWM.js";
78
+ } from "../chunk-SWNZZVYG.js";
79
79
  import {
80
80
  ArticleAuthorByline,
81
81
  DetailPageSkeleton
82
- } from "../chunk-EK2VQXUN.js";
82
+ } from "../chunk-DBYUQOLS.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-NY4WLKNU.js";
90
+ } from "../chunk-UCY6VITT.js";
91
91
  import {
92
92
  useSelfFetch
93
93
  } from "../chunk-FPOHUGEK.js";
@@ -906,7 +906,7 @@ import {
906
906
  useVideoOriginPreconnect,
907
907
  useVideoWarmup,
908
908
  usesCanonicalStatusStyle
909
- } from "../chunk-TVMARS74.js";
909
+ } from "../chunk-QESV36I2.js";
910
910
  import {
911
911
  CommandApprovalToast,
912
912
  ToastCard,
@@ -1144,9 +1144,15 @@ 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();
1147
1148
  init_button();
1148
1149
  import { jsx, jsxs } from "react/jsx-runtime";
1149
- function AnnouncementBar({ initialAnnouncement, previewMode = false, className } = {}) {
1150
+ function AnnouncementBar({
1151
+ initialAnnouncement,
1152
+ previewMode = false,
1153
+ dismissible = true,
1154
+ className
1155
+ } = {}) {
1150
1156
  const platform = getAppType();
1151
1157
  const endpoints = useEndpointsRuntime();
1152
1158
  const url = previewMode ? null : endpoints?.announcementsUrl ?? null;
@@ -1225,8 +1231,6 @@ function AnnouncementBar({ initialAnnouncement, previewMode = false, className }
1225
1231
  AnnouncementBarView,
1226
1232
  {
1227
1233
  className: "text-[color:var(--color-text-primary)]",
1228
- contentClassName: hasCta ? "cursor-pointer md:cursor-default" : void 0,
1229
- onContentClick: hasCta ? handleCtaClick : void 0,
1230
1234
  startAdornment: (
1231
1235
  /* ONE unified icon path (shared with the chat): uploaded image URL
1232
1236
  wins, else a library glyph by name (+ props), via <EntityIcon>. */
@@ -1239,16 +1243,18 @@ function AnnouncementBar({ initialAnnouncement, previewMode = false, className }
1239
1243
  props: displayAnnouncement.icon_props
1240
1244
  },
1241
1245
  size: 24,
1242
- className: "relative !size-5 shrink-0 md:!size-6"
1246
+ className: "relative !size-4 shrink-0 md:!size-6"
1243
1247
  }
1244
1248
  )
1245
1249
  ),
1246
1250
  title: (
1247
- /* Single-line message: bold title + regular description inline,
1248
- truncating as one unit, at the strip's caption scale (`text-h6`
1249
- = 13/14pxthe same treatment string titles get from the view).
1250
- Separator is a middot (house rule: no en/em dashes in copy). */
1251
- /* @__PURE__ */ jsxs("p", { className: "min-w-0 max-w-full text-h6 truncate mb-0", children: [
1251
+ /* Bold title + regular description inline at the mockup's body
1252
+ scale (`text-h4` = DM Sans 500, 14/20 below `md`, 18/24 from
1253
+ `md` up)wrapping below `md`, truncating as one unit from
1254
+ `md` up (the same responsive pair string titles get from the
1255
+ view). Separator is a middot (house rule: no en/em dashes in
1256
+ copy). */
1257
+ /* @__PURE__ */ jsxs("p", { className: "min-w-0 max-w-full break-words text-h4 md:truncate mb-0", children: [
1252
1258
  /* @__PURE__ */ jsx("span", { className: "font-[number:var(--font-weight-semibold)]", children: displayAnnouncement.title }),
1253
1259
  displayAnnouncement.description && /* @__PURE__ */ jsxs("span", { className: "hidden sm:inline opacity-80", children: [
1254
1260
  " \xB7 ",
@@ -1263,20 +1269,21 @@ function AnnouncementBar({ initialAnnouncement, previewMode = false, className }
1263
1269
  announcement colors are data, not token surfaces). Inline
1264
1270
  styles win over the variant's hover classes on every state,
1265
1271
  so hover feedback is opacity (the bar's original treatment);
1266
- nothing can render dark-on-dark. The view CSS-hides it below
1267
- `md`, where the whole content row is the tap target — this
1268
- Button stays the keyboard/AT path (known tradeoff).
1272
+ nothing can render dark-on-dark. The view renders it inline
1273
+ from `md` up and as a visible full-width row below `md`.
1269
1274
 
1270
- Geometry + type come from the design system's size="compact"
1271
- (24px caption-scale pill for slim strips rationale documented
1272
- on the variant in button.tsx). */
1275
+ Geometry + type follow the mockup's "button-full" (Figma
1276
+ 9418-52494 / 2862-8391): the design system's size="small"
1277
+ (uppercase text-h5 label, 16px glyph) pinned to h-8 — the
1278
+ mockup keeps the 32px height on EVERY breakpoint, while
1279
+ "small" alone drops to 24px below `md`. */
1273
1280
  hasCta && displayAnnouncement.cta_text ? /* @__PURE__ */ jsx(
1274
1281
  Button,
1275
1282
  {
1276
1283
  onClick: handleCtaClick,
1277
1284
  variant: "outline",
1278
- size: "compact",
1279
- className: "transition-opacity hover:opacity-90",
1285
+ size: "small",
1286
+ className: "h-8 transition-opacity hover:opacity-90",
1280
1287
  style: {
1281
1288
  backgroundColor: displayAnnouncement.cta_button_background_color || ANNOUNCEMENT_CTA_DEFAULTS.background,
1282
1289
  color: displayAnnouncement.cta_button_text_color || ANNOUNCEMENT_CTA_DEFAULTS.text,
@@ -1287,8 +1294,8 @@ function AnnouncementBar({ initialAnnouncement, previewMode = false, className }
1287
1294
  EntityIcon,
1288
1295
  {
1289
1296
  icon: { name: displayAnnouncement.cta_icon_name, props: displayAnnouncement.cta_icon_props },
1290
- size: 14,
1291
- className: "w-3.5 h-3.5"
1297
+ size: 16,
1298
+ className: "w-4 h-4"
1292
1299
  }
1293
1300
  ) : void 0,
1294
1301
  children: displayAnnouncement.cta_text
@@ -1296,23 +1303,28 @@ function AnnouncementBar({ initialAnnouncement, previewMode = false, className }
1296
1303
  ) : void 0
1297
1304
  ),
1298
1305
  endAdornment: (
1299
- /* Dismiss - the common Button in its ghost-icon treatment
1300
- (size="icon-sm": 32px target, >= the 24px WCAG 2.5.8 AA floor,
1301
- 16px glyph) with the bar's quiet tint hover. Inert in
1302
- previewMode. */
1303
- /* @__PURE__ */ jsx(
1306
+ /* Dismiss - the common Button in its ghost-icon treatment with
1307
+ the bar's quiet tint hover. Below `md` the mockup pins the
1308
+ close to a 20px box with a 16px glyph so the top row stays
1309
+ 20px tall and the stacked bar lands on 76px total (Figma
1310
+ 2862-8391 a deliberate exception to the 24px WCAG 2.5.8
1311
+ target floor); from `md` up it grows back to the standard
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). */
1315
+ dismissible ? /* @__PURE__ */ jsx(
1304
1316
  Button,
1305
1317
  {
1306
1318
  onClick: handleDismiss,
1307
1319
  variant: "transparent",
1308
1320
  size: "icon-sm",
1309
- className: barButtonClasses,
1321
+ className: cn("h-5 w-5 p-0 md:h-8 md:w-8", barButtonClasses),
1310
1322
  "aria-label": "Dismiss announcement",
1311
1323
  type: "button",
1312
1324
  tabIndex: expanded ? 0 : -1,
1313
1325
  children: /* @__PURE__ */ jsx(X, { strokeWidth: 2 })
1314
1326
  }
1315
- )
1327
+ ) : void 0
1316
1328
  )
1317
1329
  }
1318
1330
  )