@flamingo-stack/openframe-frontend-core 0.0.553 → 0.0.554-1822.4841.1

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 (94) hide show
  1. package/dist/{chunk-B7TI3RYG.js → chunk-2E63H7SH.js} +2 -2
  2. package/dist/{chunk-BUNDMGAD.js → chunk-2UVCQJVY.js} +5 -5
  3. package/dist/{chunk-ZS7VC5SX.js → chunk-3XOICFFT.js} +34 -9
  4. package/dist/{chunk-ZS7VC5SX.js.map → chunk-3XOICFFT.js.map} +1 -1
  5. package/dist/{chunk-25BXB4SH.js → chunk-4VALLDF7.js} +2 -2
  6. package/dist/{chunk-CGIZ4UGO.js → chunk-6G3HJCLJ.js} +2 -2
  7. package/dist/{chunk-3OBWO6N6.js → chunk-6PH34GDC.js} +2 -2
  8. package/dist/{chunk-PWWMA3EJ.cjs → chunk-6V6J7P75.cjs} +26 -26
  9. package/dist/{chunk-PWWMA3EJ.cjs.map → chunk-6V6J7P75.cjs.map} +1 -1
  10. package/dist/{chunk-B5N2IG4Z.cjs → chunk-7ZMCHZIJ.cjs} +7 -7
  11. package/dist/{chunk-B5N2IG4Z.cjs.map → chunk-7ZMCHZIJ.cjs.map} +1 -1
  12. package/dist/{chunk-N22NG622.js → chunk-AEJ4VSN7.js} +2 -2
  13. package/dist/{chunk-OI56TF4Y.cjs → chunk-CCV3SQ4W.cjs} +39 -39
  14. package/dist/{chunk-OI56TF4Y.cjs.map → chunk-CCV3SQ4W.cjs.map} +1 -1
  15. package/dist/{chunk-MSNTPZJ3.js → chunk-CGDMM2IJ.js} +2 -2
  16. package/dist/{chunk-S7ATADRE.cjs → chunk-CUWKFI7Q.cjs} +14 -14
  17. package/dist/{chunk-S7ATADRE.cjs.map → chunk-CUWKFI7Q.cjs.map} +1 -1
  18. package/dist/{chunk-LL6EPMAD.cjs → chunk-F2W5V5MH.cjs} +31 -31
  19. package/dist/{chunk-LL6EPMAD.cjs.map → chunk-F2W5V5MH.cjs.map} +1 -1
  20. package/dist/{chunk-QOS27D5S.js → chunk-HUGKJGXP.js} +2 -2
  21. package/dist/{chunk-XPRFVYES.cjs → chunk-JCURBCB7.cjs} +9 -9
  22. package/dist/{chunk-XPRFVYES.cjs.map → chunk-JCURBCB7.cjs.map} +1 -1
  23. package/dist/{chunk-T7UUDSDW.cjs → chunk-JS5YP37A.cjs} +3 -3
  24. package/dist/{chunk-T7UUDSDW.cjs.map → chunk-JS5YP37A.cjs.map} +1 -1
  25. package/dist/{chunk-ZGQZLUO6.cjs → chunk-M3SHPHQ7.cjs} +130 -105
  26. package/dist/chunk-M3SHPHQ7.cjs.map +1 -0
  27. package/dist/{chunk-EGPI3SFI.cjs → chunk-MPJ53DQU.cjs} +86 -86
  28. package/dist/{chunk-EGPI3SFI.cjs.map → chunk-MPJ53DQU.cjs.map} +1 -1
  29. package/dist/{chunk-YI2735PG.js → chunk-NENDMVCF.js} +2 -2
  30. package/dist/{chunk-VYVOER73.js → chunk-NJX7WVJB.js} +2 -2
  31. package/dist/{chunk-LZGHXN2E.js → chunk-P4OGKQYQ.js} +4 -4
  32. package/dist/{chunk-UVAB3XAB.js → chunk-ROUWF3PD.js} +4 -4
  33. package/dist/{chunk-V643QZFI.cjs → chunk-SE667HU6.cjs} +4 -4
  34. package/dist/{chunk-V643QZFI.cjs.map → chunk-SE667HU6.cjs.map} +1 -1
  35. package/dist/{chunk-WLQER7GC.js → chunk-T2EHJ4GN.js} +6 -6
  36. package/dist/{chunk-Y2WE2GOL.cjs → chunk-T6UFFK3K.cjs} +62 -62
  37. package/dist/{chunk-Y2WE2GOL.cjs.map → chunk-T6UFFK3K.cjs.map} +1 -1
  38. package/dist/{chunk-6WA3RI55.cjs → chunk-TF4ASBLD.cjs} +11 -11
  39. package/dist/{chunk-6WA3RI55.cjs.map → chunk-TF4ASBLD.cjs.map} +1 -1
  40. package/dist/{chunk-NFQEDT43.cjs → chunk-TMNMJF5F.cjs} +20 -20
  41. package/dist/{chunk-NFQEDT43.cjs.map → chunk-TMNMJF5F.cjs.map} +1 -1
  42. package/dist/{chunk-XBKBBKPR.cjs → chunk-YR3JVBT3.cjs} +5 -5
  43. package/dist/{chunk-XBKBBKPR.cjs.map → chunk-YR3JVBT3.cjs.map} +1 -1
  44. package/dist/components/case-studies/index.cjs +8 -8
  45. package/dist/components/case-studies/index.js +2 -2
  46. package/dist/components/chat/hooks/use-chat-card-item.d.ts.map +1 -1
  47. package/dist/components/chat/index.cjs +2 -2
  48. package/dist/components/chat/index.js +1 -1
  49. package/dist/components/chat/stream/use-chat-stream-reducer.d.ts.map +1 -1
  50. package/dist/components/contact/index.cjs +3 -3
  51. package/dist/components/contact/index.js +2 -2
  52. package/dist/components/docs/index.cjs +5 -5
  53. package/dist/components/docs/index.js +4 -4
  54. package/dist/components/embeds/index.cjs +3 -3
  55. package/dist/components/embeds/index.js +2 -2
  56. package/dist/components/faq/index.cjs +3 -3
  57. package/dist/components/faq/index.js +2 -2
  58. package/dist/components/features/index.cjs +2 -2
  59. package/dist/components/features/index.js +1 -1
  60. package/dist/components/help-center-pages/index.cjs +22 -22
  61. package/dist/components/help-center-pages/index.js +13 -13
  62. package/dist/components/index.cjs +131 -131
  63. package/dist/components/index.js +11 -11
  64. package/dist/components/meeting-scheduler/index.cjs +28 -28
  65. package/dist/components/meeting-scheduler/index.js +3 -3
  66. package/dist/components/navigation/index.cjs +2 -2
  67. package/dist/components/navigation/index.js +1 -1
  68. package/dist/components/onboarding-guides/index.cjs +5 -5
  69. package/dist/components/onboarding-guides/index.js +4 -4
  70. package/dist/components/related-content/index.cjs +3 -3
  71. package/dist/components/related-content/index.js +2 -2
  72. package/dist/components/tickets/index.cjs +6 -6
  73. package/dist/components/tickets/index.js +5 -5
  74. package/dist/components/ui/index.cjs +2 -2
  75. package/dist/components/ui/index.js +1 -1
  76. package/dist/index.cjs +2 -2
  77. package/dist/index.js +1 -1
  78. package/package.json +1 -1
  79. package/src/components/chat/hooks/use-chat-card-item.ts +13 -7
  80. package/src/components/chat/stream/use-chat-stream-reducer.ts +36 -1
  81. package/dist/chunk-ZGQZLUO6.cjs.map +0 -1
  82. /package/dist/{chunk-B7TI3RYG.js.map → chunk-2E63H7SH.js.map} +0 -0
  83. /package/dist/{chunk-BUNDMGAD.js.map → chunk-2UVCQJVY.js.map} +0 -0
  84. /package/dist/{chunk-25BXB4SH.js.map → chunk-4VALLDF7.js.map} +0 -0
  85. /package/dist/{chunk-CGIZ4UGO.js.map → chunk-6G3HJCLJ.js.map} +0 -0
  86. /package/dist/{chunk-3OBWO6N6.js.map → chunk-6PH34GDC.js.map} +0 -0
  87. /package/dist/{chunk-N22NG622.js.map → chunk-AEJ4VSN7.js.map} +0 -0
  88. /package/dist/{chunk-MSNTPZJ3.js.map → chunk-CGDMM2IJ.js.map} +0 -0
  89. /package/dist/{chunk-QOS27D5S.js.map → chunk-HUGKJGXP.js.map} +0 -0
  90. /package/dist/{chunk-YI2735PG.js.map → chunk-NENDMVCF.js.map} +0 -0
  91. /package/dist/{chunk-VYVOER73.js.map → chunk-NJX7WVJB.js.map} +0 -0
  92. /package/dist/{chunk-LZGHXN2E.js.map → chunk-P4OGKQYQ.js.map} +0 -0
  93. /package/dist/{chunk-UVAB3XAB.js.map → chunk-ROUWF3PD.js.map} +0 -0
  94. /package/dist/{chunk-WLQER7GC.js.map → chunk-T2EHJ4GN.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  formatFileSize,
5
5
  toGoogleSheetsEmbedUrl,
6
6
  toGoogleSheetsOriginalUrl
7
- } from "./chunk-ZS7VC5SX.js";
7
+ } from "./chunk-3XOICFFT.js";
8
8
  import {
9
9
  AdobePdfIcon,
10
10
  GoogleSheetsIcon
@@ -134,4 +134,4 @@ export {
134
134
  GoogleSheetsViewer,
135
135
  FileDownloadCard
136
136
  };
137
- //# sourceMappingURL=chunk-B7TI3RYG.js.map
137
+ //# sourceMappingURL=chunk-2E63H7SH.js.map
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import {
3
3
  ContactForm
4
- } from "./chunk-QOS27D5S.js";
4
+ } from "./chunk-HUGKJGXP.js";
5
5
  import {
6
6
  DeliveryRow,
7
7
  DevCardRowContent,
8
8
  DevCardRowSkeletonList,
9
9
  DevSectionPage
10
- } from "./chunk-N22NG622.js";
10
+ } from "./chunk-AEJ4VSN7.js";
11
11
  import {
12
12
  EmptyState,
13
13
  UnifiedPagination,
14
14
  init_unified_pagination
15
- } from "./chunk-3OBWO6N6.js";
15
+ } from "./chunk-6PH34GDC.js";
16
16
  import {
17
17
  AlertDialog,
18
18
  AlertDialogAction,
@@ -45,7 +45,7 @@ import {
45
45
  useChatAttachments,
46
46
  useChatIdentity,
47
47
  useOptionalTicketLive
48
- } from "./chunk-ZS7VC5SX.js";
48
+ } from "./chunk-3XOICFFT.js";
49
49
  import {
50
50
  STICKY_HEADER_OFFSET_PX,
51
51
  embedAuthedFetch,
@@ -1938,4 +1938,4 @@ export {
1938
1938
  HelpCenterCreateForm,
1939
1939
  HelpCenterList
1940
1940
  };
1941
- //# sourceMappingURL=chunk-BUNDMGAD.js.map
1941
+ //# sourceMappingURL=chunk-2UVCQJVY.js.map
@@ -52033,13 +52033,19 @@ function useChatCardItem(type, id) {
52033
52033
  // user toggles back to the tab is wasteful (the row's id-keyed
52034
52034
  // payload is effectively immutable).
52035
52035
  refetchOnWindowFocus: false,
52036
- // The id-keyed payload is effectively immutable, and a fetch-mode card
52037
- // inside a STREAMING assistant message re-mounts on every chunk as the
52038
- // surrounding markdown re-parses. Without a staleTime that meant a fresh
52039
- // network fetch + loading-skeleton flash on every single chunk. Treat the
52040
- // row as fresh for 5 min (matches the public pages) and keep it cached
52041
- // long after unmount so remounts resolve synchronously from cache — no
52042
- // refetch, no skeleton flash.
52036
+ // A fetch-mode card inside a STREAMING assistant message re-mounts on
52037
+ // every chunk as the surrounding markdown re-parses. Without a staleTime
52038
+ // that meant a fresh network fetch + loading-skeleton flash on every
52039
+ // single chunk. Treat the row as fresh for 5 min (matches the public
52040
+ // pages) and keep it cached long after unmount so remounts resolve
52041
+ // synchronously from cache — no refetch, no skeleton flash.
52042
+ //
52043
+ // MUTABLE ENTITIES (tickets, tasks): the 5-min freshness is NOT an
52044
+ // immutability claim. When a confirmed tool action mutates an entity,
52045
+ // `use-chat-stream-reducer` invalidates every ['chat-card-item', *, id]
52046
+ // entry for it on the `approval-resolved` event — the receipt card (and
52047
+ // any earlier card of the same entity) refetches the post-mutation row.
52048
+ // Keep that invalidation in sync with this queryKey shape.
52043
52049
  staleTime: 5 * 60 * 1e3,
52044
52050
  gcTime: 30 * 60 * 1e3
52045
52051
  });
@@ -57609,6 +57615,7 @@ function createChatDialogStore(options = {}) {
57609
57615
 
57610
57616
  // src/components/chat/stream/use-chat-stream-reducer.ts
57611
57617
  import { useCallback as useCallback55, useEffect as useEffect97, useMemo as useMemo52, useRef as useRef78, useSyncExternalStore } from "react";
57618
+ import { useQueryClient as useQueryClient2 } from "@tanstack/react-query";
57612
57619
 
57613
57620
  // src/components/chat/stream/delta-batcher.ts
57614
57621
  var DELTA_FLUSH_FALLBACK_MS = 50;
@@ -57691,6 +57698,22 @@ function createDeltaBatcher({
57691
57698
  }
57692
57699
 
57693
57700
  // src/components/chat/stream/use-chat-stream-reducer.ts
57701
+ function useOptionalQueryClient() {
57702
+ try {
57703
+ return useQueryClient2();
57704
+ } catch {
57705
+ return null;
57706
+ }
57707
+ }
57708
+ function invalidateMutatedEntityCards(queryClient, event) {
57709
+ if (!queryClient) return;
57710
+ if (event.type !== "approval-resolved" || event.status !== "approved") return;
57711
+ const mutatedId = event.result?.ticket_id;
57712
+ if (!mutatedId) return;
57713
+ void queryClient.invalidateQueries({
57714
+ predicate: (q) => q.queryKey[0] === "chat-card-item" && q.queryKey[2] === mutatedId
57715
+ });
57716
+ }
57694
57717
  function useChatStreamReducer({
57695
57718
  store,
57696
57719
  dialogId,
@@ -57721,13 +57744,15 @@ function useChatStreamReducer({
57721
57744
  }
57722
57745
  const batcher = batcherRef.current;
57723
57746
  const flushDeltas = useCallback55(() => batcher.flush(), [batcher]);
57747
+ const queryClient = useOptionalQueryClient();
57724
57748
  const applyEvent = useCallback55(
57725
57749
  (event) => {
57726
57750
  if (batcher.push(event, keyRef.current)) return;
57727
57751
  batcher.flush();
57728
57752
  store.apply(dialogId, side, event);
57753
+ invalidateMutatedEntityCards(queryClient, event);
57729
57754
  },
57730
- [batcher, store, dialogId, side]
57755
+ [batcher, store, dialogId, side, queryClient]
57731
57756
  );
57732
57757
  useEffect97(() => () => batcher.dispose(), [batcher]);
57733
57758
  const mutate = useCallback55(
@@ -62888,4 +62913,4 @@ export {
62888
62913
  LogsList,
62889
62914
  assets
62890
62915
  };
62891
- //# sourceMappingURL=chunk-ZS7VC5SX.js.map
62916
+ //# sourceMappingURL=chunk-3XOICFFT.js.map