@flamingo-stack/openframe-frontend-core 0.0.279 → 0.0.280-snapshot.20260617173924

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 (64) hide show
  1. package/dist/{chunk-SZG56DA3.js → chunk-3QMJ6OX6.js} +3 -3
  2. package/dist/{chunk-HR4CVAVH.cjs → chunk-6QZ656YE.cjs} +12 -10
  3. package/dist/chunk-6QZ656YE.cjs.map +1 -0
  4. package/dist/{chunk-7XUBAK5K.cjs → chunk-AUVMURC5.cjs} +12 -12
  5. package/dist/{chunk-7XUBAK5K.cjs.map → chunk-AUVMURC5.cjs.map} +1 -1
  6. package/dist/{chunk-R6SHY6ZQ.js → chunk-AWFHDRRT.js} +2 -2
  7. package/dist/{chunk-Z53YSXDD.cjs → chunk-DEDJY6TG.cjs} +337 -305
  8. package/dist/chunk-DEDJY6TG.cjs.map +1 -0
  9. package/dist/{chunk-776ZURDZ.cjs → chunk-DKHWVF6S.cjs} +15 -15
  10. package/dist/{chunk-776ZURDZ.cjs.map → chunk-DKHWVF6S.cjs.map} +1 -1
  11. package/dist/{chunk-XBTQK32O.cjs → chunk-FAKJMITR.cjs} +27 -27
  12. package/dist/{chunk-XBTQK32O.cjs.map → chunk-FAKJMITR.cjs.map} +1 -1
  13. package/dist/{chunk-6ZMD3KBP.js → chunk-GQS4ZRL3.js} +3 -3
  14. package/dist/{chunk-7XVVRE53.cjs → chunk-HIFAGJQU.cjs} +10 -10
  15. package/dist/{chunk-7XVVRE53.cjs.map → chunk-HIFAGJQU.cjs.map} +1 -1
  16. package/dist/{chunk-QP4H2JJN.cjs → chunk-LAXKEA5S.cjs} +38 -38
  17. package/dist/{chunk-QP4H2JJN.cjs.map → chunk-LAXKEA5S.cjs.map} +1 -1
  18. package/dist/{chunk-7ECI5ZVO.js → chunk-ODKT35W6.js} +3 -3
  19. package/dist/{chunk-YK6FFIVG.js → chunk-PWPRJKCY.js} +3 -3
  20. package/dist/{chunk-RGCVYGA2.js → chunk-UV55CG7P.js} +12 -10
  21. package/dist/chunk-UV55CG7P.js.map +1 -0
  22. package/dist/{chunk-AVLSICZO.js → chunk-Z4RUSQES.js} +36 -4
  23. package/dist/chunk-Z4RUSQES.js.map +1 -0
  24. package/dist/components/chat/chat-ticket-list.d.ts +2 -0
  25. package/dist/components/chat/chat-ticket-list.d.ts.map +1 -1
  26. package/dist/components/chat/entity-cards/chat-ticket-item.d.ts +4 -1
  27. package/dist/components/chat/entity-cards/chat-ticket-item.d.ts.map +1 -1
  28. package/dist/components/chat/index.cjs +3 -3
  29. package/dist/components/chat/index.js +2 -2
  30. package/dist/components/contact/index.cjs +4 -4
  31. package/dist/components/contact/index.js +3 -3
  32. package/dist/components/faq/index.cjs +4 -4
  33. package/dist/components/faq/index.js +3 -3
  34. package/dist/components/features/index.cjs +3 -3
  35. package/dist/components/features/index.js +2 -2
  36. package/dist/components/index.cjs +85 -85
  37. package/dist/components/index.js +6 -6
  38. package/dist/components/navigation/index.cjs +3 -3
  39. package/dist/components/navigation/index.js +2 -2
  40. package/dist/components/onboarding-guides/index.cjs +22 -22
  41. package/dist/components/onboarding-guides/index.js +2 -2
  42. package/dist/components/related-content/index.cjs +4 -4
  43. package/dist/components/related-content/index.js +3 -3
  44. package/dist/components/tickets/index.cjs +61 -61
  45. package/dist/components/tickets/index.js +4 -4
  46. package/dist/components/ui/index.cjs +3 -3
  47. package/dist/components/ui/index.js +2 -2
  48. package/dist/components/ui/square-avatar.d.ts.map +1 -1
  49. package/dist/index.cjs +3 -3
  50. package/dist/index.js +2 -2
  51. package/package.json +1 -1
  52. package/src/components/chat/chat-ticket-list.tsx +20 -1
  53. package/src/components/chat/entity-cards/chat-ticket-item.tsx +32 -2
  54. package/src/components/ui/square-avatar.tsx +11 -9
  55. package/src/stories/ChatTicketList.stories.tsx +9 -0
  56. package/dist/chunk-AVLSICZO.js.map +0 -1
  57. package/dist/chunk-HR4CVAVH.cjs.map +0 -1
  58. package/dist/chunk-RGCVYGA2.js.map +0 -1
  59. package/dist/chunk-Z53YSXDD.cjs.map +0 -1
  60. /package/dist/{chunk-SZG56DA3.js.map → chunk-3QMJ6OX6.js.map} +0 -0
  61. /package/dist/{chunk-R6SHY6ZQ.js.map → chunk-AWFHDRRT.js.map} +0 -0
  62. /package/dist/{chunk-6ZMD3KBP.js.map → chunk-GQS4ZRL3.js.map} +0 -0
  63. /package/dist/{chunk-7ECI5ZVO.js.map → chunk-ODKT35W6.js.map} +0 -0
  64. /package/dist/{chunk-YK6FFIVG.js.map → chunk-PWPRJKCY.js.map} +0 -0
@@ -83,7 +83,7 @@ import {
83
83
  useControllableState,
84
84
  useEntityCardLink,
85
85
  useEntityCardPlaceholder
86
- } from "./chunk-RGCVYGA2.js";
86
+ } from "./chunk-UV55CG7P.js";
87
87
  import {
88
88
  embedAuthedFetch,
89
89
  getEmbedProxyAuth,
@@ -3425,7 +3425,29 @@ import * as React6 from "react";
3425
3425
  import { ChevronRight as ChevronRight2 } from "lucide-react";
3426
3426
  import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
3427
3427
  var ChatTicketItem = React6.forwardRef(
3428
- ({ className, ticket, onClick, ...props }, ref) => {
3428
+ ({ className, ticket, onClick, isLoading = false, ...props }, ref) => {
3429
+ if (isLoading) {
3430
+ return /* @__PURE__ */ jsxs22(
3431
+ "div",
3432
+ {
3433
+ "aria-hidden": true,
3434
+ className: cn(
3435
+ "flex items-center gap-4 w-full h-20 px-4",
3436
+ "bg-ods-card border-b border-ods-border",
3437
+ className
3438
+ ),
3439
+ children: [
3440
+ /* @__PURE__ */ jsxs22("div", { className: "flex flex-col justify-center flex-1 min-w-0 gap-2", children: [
3441
+ /* @__PURE__ */ jsx26(Skeleton, { className: "h-5 w-1/2" }),
3442
+ /* @__PURE__ */ jsx26(Skeleton, { className: "h-4 w-1/3" })
3443
+ ] }),
3444
+ /* @__PURE__ */ jsx26(Skeleton, { className: "h-7 w-20 rounded-full shrink-0" }),
3445
+ /* @__PURE__ */ jsx26(Skeleton, { className: "size-12 rounded-md shrink-0" })
3446
+ ]
3447
+ }
3448
+ );
3449
+ }
3450
+ if (!ticket) return null;
3429
3451
  const statusTagProps = resolveStatusTagProps({
3430
3452
  status: ticket.status,
3431
3453
  statusKind: ticket.statusKind,
@@ -3489,6 +3511,7 @@ ChatTicketItem.displayName = "ChatTicketItem";
3489
3511
 
3490
3512
  // src/components/chat/chat-ticket-list.tsx
3491
3513
  import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
3514
+ var SKELETON_ROW_COUNT = 4;
3492
3515
  function getMask(top, bottom) {
3493
3516
  if (top && bottom) return "linear-gradient(to bottom, transparent, black 64px, black calc(100% - 64px), transparent)";
3494
3517
  if (top) return "linear-gradient(to bottom, transparent, black 64px)";
@@ -3496,7 +3519,7 @@ function getMask(top, bottom) {
3496
3519
  return "none";
3497
3520
  }
3498
3521
  var ChatTicketList = React7.forwardRef(
3499
- ({ className, tickets, onTicketClick, ...props }, ref) => {
3522
+ ({ className, tickets, onTicketClick, isLoading = false, ...props }, ref) => {
3500
3523
  const scrollRef = React7.useRef(null);
3501
3524
  const [fadeTop, setFadeTop] = React7.useState(false);
3502
3525
  const [fadeBottom, setFadeBottom] = React7.useState(false);
@@ -3510,6 +3533,15 @@ var ChatTicketList = React7.forwardRef(
3510
3533
  React7.useLayoutEffect(() => {
3511
3534
  updateFade();
3512
3535
  }, [ticketCount, updateFade]);
3536
+ if (isLoading) {
3537
+ return /* @__PURE__ */ jsxs23("div", { ref, className: cn("flex flex-col gap-2 min-h-0", className), ...props, children: [
3538
+ /* @__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) => (
3540
+ // eslint-disable-next-line react/no-array-index-key
3541
+ /* @__PURE__ */ jsx27(ChatTicketItem, { isLoading: true }, i)
3542
+ )) })
3543
+ ] });
3544
+ }
3513
3545
  if (tickets.length === 0) return null;
3514
3546
  const mask = getMask(fadeTop, fadeBottom);
3515
3547
  return /* @__PURE__ */ jsxs23("div", { ref, className: cn("flex flex-col gap-2 min-h-0", className), ...props, children: [
@@ -40249,4 +40281,4 @@ export {
40249
40281
  LogsList,
40250
40282
  assets
40251
40283
  };
40252
- //# sourceMappingURL=chunk-AVLSICZO.js.map
40284
+ //# sourceMappingURL=chunk-Z4RUSQES.js.map