@flamingo-stack/openframe-frontend-core 0.0.420 → 0.0.421-snapshot.20260713134312

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 (104) hide show
  1. package/dist/{chunk-2AN4EHN6.cjs → chunk-4PS4F4WL.cjs} +7 -7
  2. package/dist/{chunk-2AN4EHN6.cjs.map → chunk-4PS4F4WL.cjs.map} +1 -1
  3. package/dist/{chunk-OBMYKFBO.js → chunk-4XTIANMS.js} +2 -2
  4. package/dist/{chunk-YYF2AYM3.js → chunk-5TL2VVEN.js} +4 -4
  5. package/dist/{chunk-5DTE27A4.cjs → chunk-5U6C3RXX.cjs} +11 -11
  6. package/dist/{chunk-5DTE27A4.cjs.map → chunk-5U6C3RXX.cjs.map} +1 -1
  7. package/dist/{chunk-NDYJ37LY.cjs → chunk-5UZULT35.cjs} +31 -31
  8. package/dist/{chunk-NDYJ37LY.cjs.map → chunk-5UZULT35.cjs.map} +1 -1
  9. package/dist/{chunk-3AJOKFJ4.js → chunk-5WXUR7LF.js} +28 -28
  10. package/dist/chunk-5WXUR7LF.js.map +1 -0
  11. package/dist/{chunk-WBLTGO7G.cjs → chunk-6HCWW4YM.cjs} +26 -26
  12. package/dist/{chunk-WBLTGO7G.cjs.map → chunk-6HCWW4YM.cjs.map} +1 -1
  13. package/dist/{chunk-AMUTZJZX.cjs → chunk-E5HKIBRS.cjs} +9 -9
  14. package/dist/{chunk-AMUTZJZX.cjs.map → chunk-E5HKIBRS.cjs.map} +1 -1
  15. package/dist/{chunk-KEWTMPHB.js → chunk-FHAG7O27.js} +2 -2
  16. package/dist/{chunk-G4W5D7L4.js → chunk-ISUMLEJ6.js} +2 -2
  17. package/dist/{chunk-PAF4EFRR.js → chunk-JMHU37Y6.js} +2 -2
  18. package/dist/{chunk-4OZLRBOH.js → chunk-LHJHMZYU.js} +4 -4
  19. package/dist/{chunk-NIS5VXZJ.cjs → chunk-PCM4HJO4.cjs} +26 -26
  20. package/dist/{chunk-NIS5VXZJ.cjs.map → chunk-PCM4HJO4.cjs.map} +1 -1
  21. package/dist/{chunk-PHJ6335O.cjs → chunk-PMFK7ZKC.cjs} +5 -5
  22. package/dist/{chunk-PHJ6335O.cjs.map → chunk-PMFK7ZKC.cjs.map} +1 -1
  23. package/dist/{chunk-ORDDVXDS.cjs → chunk-RKNF2DHY.cjs} +59 -59
  24. package/dist/{chunk-ORDDVXDS.cjs.map → chunk-RKNF2DHY.cjs.map} +1 -1
  25. package/dist/{chunk-KPLRIPEH.cjs → chunk-RQXFDMRY.cjs} +15 -15
  26. package/dist/{chunk-KPLRIPEH.cjs.map → chunk-RQXFDMRY.cjs.map} +1 -1
  27. package/dist/{chunk-T55A3BQD.js → chunk-TJ7HD4KI.js} +4 -4
  28. package/dist/{chunk-J7WFE7WL.js → chunk-UHSVSDF5.js} +2 -2
  29. package/dist/{chunk-U7EUN5FZ.js → chunk-UKIVJU3A.js} +4 -4
  30. package/dist/{chunk-PUXTMLKC.cjs → chunk-UZOYTAK7.cjs} +62 -62
  31. package/dist/{chunk-PUXTMLKC.cjs.map → chunk-UZOYTAK7.cjs.map} +1 -1
  32. package/dist/{chunk-BXXXBZYY.cjs → chunk-WDZATJTF.cjs} +28 -28
  33. package/dist/chunk-WDZATJTF.cjs.map +1 -0
  34. package/dist/{chunk-GC4355MW.js → chunk-XVWDKBBF.js} +2 -2
  35. package/dist/{chunk-KLMLQ35Y.cjs → chunk-YLSDXDD7.cjs} +37 -37
  36. package/dist/{chunk-KLMLQ35Y.cjs.map → chunk-YLSDXDD7.cjs.map} +1 -1
  37. package/dist/{chunk-ZZFLE5LG.js → chunk-ZXWSOOEH.js} +2 -2
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/embeddable-chat.d.ts +9 -0
  41. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  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 +128 -128
  57. package/dist/components/index.js +9 -9
  58. package/dist/components/navigation/index.cjs +2 -2
  59. package/dist/components/navigation/index.js +1 -1
  60. package/dist/components/onboarding-guides/index.cjs +5 -5
  61. package/dist/components/onboarding-guides/index.js +4 -4
  62. package/dist/components/related-content/index.cjs +3 -3
  63. package/dist/components/related-content/index.js +2 -2
  64. package/dist/components/tabs.d.ts +10 -0
  65. package/dist/components/tabs.d.ts.map +1 -1
  66. package/dist/components/tickets/index.cjs +5 -5
  67. package/dist/components/tickets/index.js +4 -4
  68. package/dist/components/ui/dashboard-info-card.d.ts +26 -12
  69. package/dist/components/ui/dashboard-info-card.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/components/ui/tab-navigation.d.ts.map +1 -1
  73. package/dist/components/ui/tabs.d.ts +11 -0
  74. package/dist/components/ui/tabs.d.ts.map +1 -1
  75. package/dist/index.cjs +2 -2
  76. package/dist/index.js +1 -1
  77. package/package.json +1 -1
  78. package/src/components/chat/embeddable-chat.tsx +17 -3
  79. package/src/components/tabs.tsx +10 -0
  80. package/src/components/ui/dashboard-info-card.tsx +70 -45
  81. package/src/components/ui/tab-navigation.tsx +5 -2
  82. package/src/components/ui/tabs.tsx +11 -0
  83. package/src/stories/ApprovalRequestMessageClient.stories.tsx +89 -0
  84. package/src/stories/ChatMessageEnhanced.stories.tsx +219 -0
  85. package/src/stories/ChatTypingIndicator.stories.tsx +51 -0
  86. package/src/stories/ContextCompactionDisplay.stories.tsx +44 -0
  87. package/src/stories/DashboardInfoCard.stories.tsx +94 -9
  88. package/src/stories/EmbeddableChat.stories.tsx +159 -0
  89. package/src/stories/ErrorMessageDisplay.stories.tsx +66 -0
  90. package/src/stories/ThinkingDisplay.stories.tsx +63 -0
  91. package/src/stories/TicketCard.stories.tsx +245 -0
  92. package/dist/chunk-3AJOKFJ4.js.map +0 -1
  93. package/dist/chunk-BXXXBZYY.cjs.map +0 -1
  94. /package/dist/{chunk-OBMYKFBO.js.map → chunk-4XTIANMS.js.map} +0 -0
  95. /package/dist/{chunk-YYF2AYM3.js.map → chunk-5TL2VVEN.js.map} +0 -0
  96. /package/dist/{chunk-KEWTMPHB.js.map → chunk-FHAG7O27.js.map} +0 -0
  97. /package/dist/{chunk-G4W5D7L4.js.map → chunk-ISUMLEJ6.js.map} +0 -0
  98. /package/dist/{chunk-PAF4EFRR.js.map → chunk-JMHU37Y6.js.map} +0 -0
  99. /package/dist/{chunk-4OZLRBOH.js.map → chunk-LHJHMZYU.js.map} +0 -0
  100. /package/dist/{chunk-T55A3BQD.js.map → chunk-TJ7HD4KI.js.map} +0 -0
  101. /package/dist/{chunk-J7WFE7WL.js.map → chunk-UHSVSDF5.js.map} +0 -0
  102. /package/dist/{chunk-U7EUN5FZ.js.map → chunk-UKIVJU3A.js.map} +0 -0
  103. /package/dist/{chunk-GC4355MW.js.map → chunk-XVWDKBBF.js.map} +0 -0
  104. /package/dist/{chunk-ZZFLE5LG.js.map → chunk-ZXWSOOEH.js.map} +0 -0
@@ -18259,7 +18259,10 @@ function TabNavigation({
18259
18259
  "flex gap-[var(--spacing-system-xxs)] items-center justify-center p-[var(--spacing-system-m)] relative shrink-0 cursor-pointer",
18260
18260
  "transition-all duration-200 bg-transparent border-none outline-none",
18261
18261
  stretchTabs && "flex-1",
18262
- isActive ? "bg-gradient-to-b from-[rgba(255,255,255,0)] to-[rgba(255,255,255,0.1)]" : "hover:bg-gradient-to-b hover:from-[rgba(255,255,255,0)] hover:to-[rgba(255,255,255,0.1)]"
18262
+ // Known limitation: ODS color vars hold hex values, so Tailwind
18263
+ // alpha modifiers (to-ods-accent/10) silently produce no CSS.
18264
+ // color-mix() accepts hex, so we derive the 10%-alpha stop from the token.
18265
+ isActive ? "bg-gradient-to-b from-transparent to-[color-mix(in_srgb,var(--color-accent-primary)_10%,transparent)]" : "hover:bg-gradient-to-b hover:from-transparent hover:to-[color-mix(in_srgb,var(--color-accent-primary)_10%,transparent)]"
18263
18266
  ),
18264
18267
  children: [
18265
18268
  tab.icon ? /* @__PURE__ */ jsxs101("div", { className: "relative flex items-center justify-center", children: [
@@ -24638,6 +24641,8 @@ import { Fragment as Fragment37, jsx as jsx173, jsxs as jsxs134 } from "react/js
24638
24641
  function DashboardInfoCard({
24639
24642
  title,
24640
24643
  titleSlot,
24644
+ titleTag,
24645
+ icon,
24641
24646
  value,
24642
24647
  percentage,
24643
24648
  showProgress = false,
@@ -24667,33 +24672,23 @@ function DashboardInfoCard({
24667
24672
  };
24668
24673
  const renderProgress = () => {
24669
24674
  if (!showProgress || percentage === void 0) return null;
24670
- const strokeFor = (size2) => Math.max(2, Math.round(size2 * 10 / 56));
24675
+ const strokeFor = (size3) => Math.max(2, Math.round(size3 * 10 / 56));
24671
24676
  const common = {
24672
24677
  percentage,
24673
24678
  variant: progressVariant,
24674
24679
  overflow: progressOverflow,
24675
24680
  showLabel: false
24676
24681
  };
24677
- if (progressSize === void 0) {
24678
- return /* @__PURE__ */ jsx173(CircularProgress, { ...common });
24679
- }
24680
- if (typeof progressSize === "number") {
24681
- return /* @__PURE__ */ jsx173(CircularProgress, { ...common, size: progressSize, strokeWidth: strokeFor(progressSize) });
24682
+ const size2 = typeof progressSize === "number" ? { base: 24, md: progressSize } : progressSize ?? { base: 24, md: 56 };
24683
+ const { base, md, lg } = size2;
24684
+ const rings = [
24685
+ { key: "base", size: base, className: md !== void 0 ? "md:hidden" : lg !== void 0 ? "lg:hidden" : "" }
24686
+ ];
24687
+ if (md !== void 0) {
24688
+ rings.push({ key: "md", size: md, className: lg !== void 0 ? "hidden md:block lg:hidden" : "hidden md:block" });
24682
24689
  }
24683
- const { base, md, lg } = progressSize;
24684
- const rings = [];
24685
- if (md !== void 0 && lg !== void 0) {
24686
- rings.push({ key: "base", size: base, className: "md:hidden" });
24687
- rings.push({ key: "md", size: md, className: "hidden md:block lg:hidden" });
24690
+ if (lg !== void 0) {
24688
24691
  rings.push({ key: "lg", size: lg, className: "hidden lg:block" });
24689
- } else if (md !== void 0) {
24690
- rings.push({ key: "base", size: base, className: "md:hidden" });
24691
- rings.push({ key: "md", size: md, className: "hidden md:block" });
24692
- } else if (lg !== void 0) {
24693
- rings.push({ key: "base", size: base, className: "lg:hidden" });
24694
- rings.push({ key: "lg", size: lg, className: "hidden lg:block" });
24695
- } else {
24696
- rings.push({ key: "base", size: base, className: "" });
24697
24692
  }
24698
24693
  return /* @__PURE__ */ jsx173(Fragment37, { children: rings.map((ring) => /* @__PURE__ */ jsx173(
24699
24694
  CircularProgress,
@@ -24707,10 +24702,14 @@ function DashboardInfoCard({
24707
24702
  )) });
24708
24703
  };
24709
24704
  const cardContent = /* @__PURE__ */ jsxs134(Fragment37, { children: [
24710
- /* @__PURE__ */ jsxs134("div", { className: "flex-1 flex flex-col", children: [
24711
- titleSlot ?? /* @__PURE__ */ jsx173("p", { className: "text-h5 text-ods-text-secondary", children: title }),
24705
+ icon && /* @__PURE__ */ jsx173("div", { className: "shrink-0 size-8 md:size-14 p-[var(--spacing-system-xxs)] bg-ods-bg border border-ods-border rounded-sm flex items-center justify-center text-ods-text-primary", children: /* @__PURE__ */ jsx173("span", { className: "size-4 md:size-6 flex items-center justify-center [&>*]:size-full", children: icon }) }),
24706
+ /* @__PURE__ */ jsxs134("div", { className: "flex-1 min-w-0 flex flex-col", children: [
24707
+ /* @__PURE__ */ jsxs134("div", { className: "flex items-center gap-[var(--spacing-system-xxs)]", children: [
24708
+ titleSlot ?? (title !== void 0 && /* @__PURE__ */ jsx173("p", { className: "text-h5 text-ods-text-secondary truncate", children: title })),
24709
+ titleTag
24710
+ ] }),
24712
24711
  /* @__PURE__ */ jsxs134("div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
24713
- /* @__PURE__ */ jsx173("p", { className: cn("text-h2 text-ods-text-primary", valueClassName), children: formattedValue }),
24712
+ /* @__PURE__ */ jsx173("p", { className: cn("text-h3 md:text-h2 text-ods-text-primary truncate", valueClassName), children: formattedValue }),
24714
24713
  subValue && /* @__PURE__ */ jsx173("p", { className: "text-h6 text-ods-text-secondary", children: subValue }),
24715
24714
  renderPercentage(),
24716
24715
  tooltip && /* @__PURE__ */ jsx173(FloatingTooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ jsx173("span", { className: "cursor-help text-ods-text-secondary", children: /* @__PURE__ */ jsx173(QuestionCircleIcon, { size: 20 }) }) })
@@ -24718,7 +24717,7 @@ function DashboardInfoCard({
24718
24717
  ] }),
24719
24718
  renderProgress()
24720
24719
  ] });
24721
- const baseClassName = "bg-ods-card border border-ods-border rounded-sm p-[var(--spacing-system-m)] flex gap-[var(--spacing-system-s)] items-center transition-all";
24720
+ const baseClassName = "bg-ods-card border border-ods-border rounded-md p-[var(--spacing-system-xsf)] md:p-[var(--spacing-system-m)] h-16 md:h-[104px] flex gap-[var(--spacing-system-s)] md:gap-[var(--spacing-system-m)] items-center transition-all";
24722
24721
  if (href) {
24723
24722
  return /* @__PURE__ */ jsx173(
24724
24723
  next_link_default,
@@ -51698,6 +51697,7 @@ function EmbeddableChatInner({
51698
51697
  onOpenChange,
51699
51698
  defaultOpen,
51700
51699
  showInternalTrigger = true,
51700
+ previewMode = false,
51701
51701
  extras,
51702
51702
  tableIdForDocumentType,
51703
51703
  modes,
@@ -52202,7 +52202,7 @@ function EmbeddableChatInner({
52202
52202
  /* @__PURE__ */ jsx360(
52203
52203
  "div",
52204
52204
  {
52205
- className: `flex h-full flex-col overflow-hidden transition-colors duration-200 ${archiveOpen || !hasConversation && activeMode === "mingo" ? "bg-ods-card" : "bg-ods-bg"}`,
52205
+ className: `flex h-full flex-col overflow-hidden transition-colors duration-200 ${archiveOpen || !hasConversation && activeMode === "mingo" ? "bg-ods-card" : "bg-ods-bg"} ${previewMode ? "pointer-events-none select-none" : ""}`,
52206
52206
  children: archiveOpen ? /* @__PURE__ */ jsx360(
52207
52207
  "div",
52208
52208
  {
@@ -52281,7 +52281,7 @@ function EmbeddableChatInner({
52281
52281
  renderContextItem,
52282
52282
  renderMention,
52283
52283
  NavLinkAnchor: NavLinkAnchorViaRuntime,
52284
- className: "flex-1",
52284
+ className: "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
52285
52285
  contentClassName: "max-w-none pb-0",
52286
52286
  fullWidth: true,
52287
52287
  hasNextPage: hasMoreMessages,
@@ -52423,7 +52423,7 @@ function EmbeddableChatInner({
52423
52423
  onStop: stopMessage,
52424
52424
  sending: chatLoading || hasInflightUploads,
52425
52425
  placeholder: hasInflightUploads ? "Waiting for uploads to finish\u2026" : "Ask a question...",
52426
- autoFocus: autoFocusInput,
52426
+ autoFocus: previewMode ? false : autoFocusInput,
52427
52427
  slashCommands: slashCommandsProp,
52428
52428
  previewText: quickActionPreview ?? void 0,
52429
52429
  showAttachmentButton: attachmentsEnabled && activeMode === "guide",
@@ -53497,4 +53497,4 @@ export {
53497
53497
  LogsList,
53498
53498
  assets
53499
53499
  };
53500
- //# sourceMappingURL=chunk-3AJOKFJ4.js.map
53500
+ //# sourceMappingURL=chunk-5WXUR7LF.js.map