@flamingo-stack/openframe-frontend-core 0.0.281 → 0.0.282

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 (56) hide show
  1. package/dist/{chunk-FAKJMITR.cjs → chunk-2OW3PADG.cjs} +25 -25
  2. package/dist/{chunk-FAKJMITR.cjs.map → chunk-2OW3PADG.cjs.map} +1 -1
  3. package/dist/{chunk-3QMJ6OX6.js → chunk-ACCHFWQ4.js} +2 -2
  4. package/dist/{chunk-LAXKEA5S.cjs → chunk-E74J226M.cjs} +34 -34
  5. package/dist/{chunk-LAXKEA5S.cjs.map → chunk-E74J226M.cjs.map} +1 -1
  6. package/dist/{chunk-PWPRJKCY.js → chunk-FHHNA6WC.js} +2 -2
  7. package/dist/{chunk-HIFAGJQU.cjs → chunk-GEKA6JTQ.cjs} +6 -6
  8. package/dist/{chunk-HIFAGJQU.cjs.map → chunk-GEKA6JTQ.cjs.map} +1 -1
  9. package/dist/{chunk-DKHWVF6S.cjs → chunk-I4WZC4GQ.cjs} +10 -10
  10. package/dist/{chunk-DKHWVF6S.cjs.map → chunk-I4WZC4GQ.cjs.map} +1 -1
  11. package/dist/{chunk-DEDJY6TG.cjs → chunk-JDJOO3KD.cjs} +24 -7
  12. package/dist/chunk-JDJOO3KD.cjs.map +1 -0
  13. package/dist/{chunk-Z4RUSQES.js → chunk-S7HJ3IRR.js} +23 -6
  14. package/dist/chunk-S7HJ3IRR.js.map +1 -0
  15. package/dist/{chunk-GQS4ZRL3.js → chunk-X53VKNLW.js} +2 -2
  16. package/dist/{chunk-ODKT35W6.js → chunk-YRXG2UK7.js} +2 -2
  17. package/dist/components/chat/chat-ticket-list.d.ts +2 -0
  18. package/dist/components/chat/chat-ticket-list.d.ts.map +1 -1
  19. package/dist/components/chat/index.cjs +4 -2
  20. package/dist/components/chat/index.cjs.map +1 -1
  21. package/dist/components/chat/index.js +3 -1
  22. package/dist/components/chat/model-display.d.ts +15 -1
  23. package/dist/components/chat/model-display.d.ts.map +1 -1
  24. package/dist/components/contact/index.cjs +3 -3
  25. package/dist/components/contact/index.js +2 -2
  26. package/dist/components/faq/index.cjs +3 -3
  27. package/dist/components/faq/index.js +2 -2
  28. package/dist/components/features/index.cjs +2 -2
  29. package/dist/components/features/index.js +1 -1
  30. package/dist/components/index.cjs +55 -53
  31. package/dist/components/index.cjs.map +1 -1
  32. package/dist/components/index.js +6 -4
  33. package/dist/components/index.js.map +1 -1
  34. package/dist/components/navigation/index.cjs +2 -2
  35. package/dist/components/navigation/index.js +1 -1
  36. package/dist/components/related-content/index.cjs +3 -3
  37. package/dist/components/related-content/index.js +2 -2
  38. package/dist/components/tickets/index.cjs +52 -52
  39. package/dist/components/tickets/index.js +3 -3
  40. package/dist/components/ui/index.cjs +4 -2
  41. package/dist/components/ui/index.cjs.map +1 -1
  42. package/dist/components/ui/index.js +3 -1
  43. package/dist/index.cjs +4 -2
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.js +3 -1
  46. package/package.json +1 -1
  47. package/src/components/chat/chat-ticket-list.tsx +4 -5
  48. package/src/components/chat/entity-cards/chat-ticket-item.tsx +2 -2
  49. package/src/components/chat/model-display.tsx +36 -1
  50. package/src/stories/ChatContainer.stories.tsx +30 -0
  51. package/dist/chunk-DEDJY6TG.cjs.map +0 -1
  52. package/dist/chunk-Z4RUSQES.js.map +0 -1
  53. /package/dist/{chunk-3QMJ6OX6.js.map → chunk-ACCHFWQ4.js.map} +0 -0
  54. /package/dist/{chunk-PWPRJKCY.js.map → chunk-FHHNA6WC.js.map} +0 -0
  55. /package/dist/{chunk-GQS4ZRL3.js.map → chunk-X53VKNLW.js.map} +0 -0
  56. /package/dist/{chunk-ODKT35W6.js.map → chunk-YRXG2UK7.js.map} +0 -0
@@ -3437,11 +3437,11 @@ var ChatTicketItem = React6.forwardRef(
3437
3437
  className
3438
3438
  ),
3439
3439
  children: [
3440
- /* @__PURE__ */ jsxs22("div", { className: "flex flex-col justify-center flex-1 min-w-0 gap-2", children: [
3440
+ /* @__PURE__ */ jsxs22("div", { className: "flex flex-col justify-center flex-1 min-w-0 gap-1", children: [
3441
3441
  /* @__PURE__ */ jsx26(Skeleton, { className: "h-5 w-1/2" }),
3442
3442
  /* @__PURE__ */ jsx26(Skeleton, { className: "h-4 w-1/3" })
3443
3443
  ] }),
3444
- /* @__PURE__ */ jsx26(Skeleton, { className: "h-7 w-20 rounded-full shrink-0" }),
3444
+ /* @__PURE__ */ jsx26(Skeleton, { className: "h-8 w-20 rounded-r-md shrink-0" }),
3445
3445
  /* @__PURE__ */ jsx26(Skeleton, { className: "size-12 rounded-md shrink-0" })
3446
3446
  ]
3447
3447
  }
@@ -3511,7 +3511,6 @@ ChatTicketItem.displayName = "ChatTicketItem";
3511
3511
 
3512
3512
  // src/components/chat/chat-ticket-list.tsx
3513
3513
  import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
3514
- var SKELETON_ROW_COUNT = 4;
3515
3514
  function getMask(top, bottom) {
3516
3515
  if (top && bottom) return "linear-gradient(to bottom, transparent, black 64px, black calc(100% - 64px), transparent)";
3517
3516
  if (top) return "linear-gradient(to bottom, transparent, black 64px)";
@@ -3519,7 +3518,7 @@ function getMask(top, bottom) {
3519
3518
  return "none";
3520
3519
  }
3521
3520
  var ChatTicketList = React7.forwardRef(
3522
- ({ className, tickets, onTicketClick, isLoading = false, ...props }, ref) => {
3521
+ ({ className, tickets, onTicketClick, isLoading = false, skeletonCount = 5, ...props }, ref) => {
3523
3522
  const scrollRef = React7.useRef(null);
3524
3523
  const [fadeTop, setFadeTop] = React7.useState(false);
3525
3524
  const [fadeBottom, setFadeBottom] = React7.useState(false);
@@ -3536,7 +3535,7 @@ var ChatTicketList = React7.forwardRef(
3536
3535
  if (isLoading) {
3537
3536
  return /* @__PURE__ */ jsxs23("div", { ref, className: cn("flex flex-col gap-2 min-h-0", className), ...props, children: [
3538
3537
  /* @__PURE__ */ jsx27("p", { className: "text-h5 text-ods-text-secondary shrink-0", children: "Your Chats:" }),
3539
- /* @__PURE__ */ jsx27("div", { className: "border border-ods-border rounded-md flex-1 min-h-0 overflow-hidden", children: Array.from({ length: SKELETON_ROW_COUNT }).map((_, i) => (
3538
+ /* @__PURE__ */ jsx27("div", { className: "border border-ods-border rounded-md flex-1 min-h-0 overflow-hidden", children: Array.from({ length: skeletonCount }).map((_, i) => (
3540
3539
  // eslint-disable-next-line react/no-array-index-key
3541
3540
  /* @__PURE__ */ jsx27(ChatTicketItem, { isLoading: true }, i)
3542
3541
  )) })
@@ -5202,6 +5201,23 @@ function BreakdownRow({
5202
5201
  ] });
5203
5202
  }
5204
5203
  ModelDisplay.displayName = "ModelDisplay";
5204
+ var ModelDisplaySkeleton = React16.forwardRef(
5205
+ ({ className, showTokens = false, ...props }, ref) => /* @__PURE__ */ jsxs34(
5206
+ "div",
5207
+ {
5208
+ ref,
5209
+ "aria-hidden": true,
5210
+ className: cn("flex items-center gap-1 text-sm", className),
5211
+ ...props,
5212
+ children: [
5213
+ /* @__PURE__ */ jsx41(Skeleton, { className: "w-4 h-5 rounded-sm shrink-0" }),
5214
+ /* @__PURE__ */ jsx41(Skeleton, { className: "h-5 w-24" }),
5215
+ showTokens && /* @__PURE__ */ jsx41(Skeleton, { className: "h-3 w-32 ml-auto" })
5216
+ ]
5217
+ }
5218
+ )
5219
+ );
5220
+ ModelDisplaySkeleton.displayName = "ModelDisplaySkeleton";
5205
5221
 
5206
5222
  // src/components/chat/chat-composer.tsx
5207
5223
  import { jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
@@ -39823,6 +39839,7 @@ export {
39823
39839
  HoverCardTrigger,
39824
39840
  HoverCardContent,
39825
39841
  ModelDisplay,
39842
+ ModelDisplaySkeleton,
39826
39843
  ChatComposer,
39827
39844
  ChatArchivePage,
39828
39845
  DialogListItem,
@@ -40281,4 +40298,4 @@ export {
40281
40298
  LogsList,
40282
40299
  assets
40283
40300
  };
40284
- //# sourceMappingURL=chunk-Z4RUSQES.js.map
40301
+ //# sourceMappingURL=chunk-S7HJ3IRR.js.map