@buoy-gg/shared-ui 7.0.78 → 7.0.79

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 (122) hide show
  1. package/lib/commonjs/JsModal.js +1 -1
  2. package/lib/commonjs/bugCase/capture.js +1 -1
  3. package/lib/commonjs/bugCase/format.js +1 -1
  4. package/lib/commonjs/bugCase/index.js +1 -1
  5. package/lib/commonjs/bugCase/lock.js +1 -1
  6. package/lib/commonjs/bugCase/recorder.js +1 -1
  7. package/lib/commonjs/bugCase/scrub.js +1 -1
  8. package/lib/commonjs/bugCase/steps.js +1 -1
  9. package/lib/commonjs/bugCase/validate.js +1 -0
  10. package/lib/commonjs/dataViewer/LiveExplorer.js +1 -1
  11. package/lib/commonjs/dataViewer/VirtualizedDataExplorer.js +1 -1
  12. package/lib/commonjs/dataViewer/flattenTree.js +1 -0
  13. package/lib/commonjs/dataViewer/liveEntries.js +1 -0
  14. package/lib/commonjs/icons/index.js +1 -1
  15. package/lib/commonjs/index.js +1 -1
  16. package/lib/commonjs/license/BuoyUpgradeSheet.js +1 -1
  17. package/lib/commonjs/license/index.js +1 -1
  18. package/lib/commonjs/sync/keyedArrays.js +1 -1
  19. package/lib/commonjs/sync/valuePath.js +1 -1
  20. package/lib/commonjs/ui/components/DynamicFilterView.js +1 -1
  21. package/lib/commonjs/ui/components/EntityFilterView.js +1 -1
  22. package/lib/commonjs/ui/components/WindowControls.js +1 -1
  23. package/lib/commonjs/ui/floating/FloatingTool.js +1 -1
  24. package/lib/commonjs/ui/listPresets.js +1 -1
  25. package/lib/commonjs/utils/index.js +1 -1
  26. package/lib/commonjs/utils/loadOptionalModule.js +1 -1
  27. package/lib/commonjs/utils/loadToolModule.js +1 -1
  28. package/lib/commonjs/utils/minimalSuperJSON.js +1 -1
  29. package/lib/commonjs/utils/persistentStorage.js +1 -1
  30. package/lib/commonjs/utils/reloadPlatform.js +1 -1
  31. package/lib/commonjs/utils/snapshotProviderKit.js +1 -1
  32. package/lib/module/JsModal.js +1 -1
  33. package/lib/module/bugCase/capture.js +1 -1
  34. package/lib/module/bugCase/format.js +2 -2
  35. package/lib/module/bugCase/index.js +1 -1
  36. package/lib/module/bugCase/lock.js +1 -1
  37. package/lib/module/bugCase/recorder.js +1 -1
  38. package/lib/module/bugCase/scrub.js +1 -1
  39. package/lib/module/bugCase/steps.js +1 -1
  40. package/lib/module/bugCase/validate.js +1 -0
  41. package/lib/module/dataViewer/LiveExplorer.js +1 -1
  42. package/lib/module/dataViewer/VirtualizedDataExplorer.js +1 -1
  43. package/lib/module/dataViewer/flattenTree.js +1 -0
  44. package/lib/module/dataViewer/liveEntries.js +1 -0
  45. package/lib/module/icons/index.js +1 -1
  46. package/lib/module/index.js +1 -1
  47. package/lib/module/license/BuoyUpgradeSheet.js +1 -1
  48. package/lib/module/license/index.js +1 -1
  49. package/lib/module/sync/keyedArrays.js +1 -1
  50. package/lib/module/sync/valuePath.js +1 -1
  51. package/lib/module/ui/components/DynamicFilterView.js +1 -1
  52. package/lib/module/ui/components/EntityFilterView.js +1 -1
  53. package/lib/module/ui/components/WindowControls.js +1 -1
  54. package/lib/module/ui/floating/FloatingTool.js +1 -1
  55. package/lib/module/ui/listPresets.js +1 -1
  56. package/lib/module/utils/index.js +1 -1
  57. package/lib/module/utils/loadOptionalModule.js +1 -1
  58. package/lib/module/utils/loadToolModule.js +1 -1
  59. package/lib/module/utils/minimalSuperJSON.js +1 -1
  60. package/lib/module/utils/persistentStorage.js +1 -1
  61. package/lib/module/utils/reloadPlatform.js +1 -1
  62. package/lib/module/utils/snapshotProviderKit.js +1 -1
  63. package/lib/typescript/commonjs/JsModal.d.ts +3 -4
  64. package/lib/typescript/commonjs/JsModal.web.d.ts +2 -0
  65. package/lib/typescript/commonjs/bugCase/index.d.ts +1 -0
  66. package/lib/typescript/commonjs/bugCase/recorder.d.ts +1 -0
  67. package/lib/typescript/commonjs/bugCase/steps.d.ts +6 -0
  68. package/lib/typescript/commonjs/bugCase/validate.d.ts +14 -0
  69. package/lib/typescript/commonjs/dataViewer/flattenTree.d.ts +35 -0
  70. package/lib/typescript/commonjs/dataViewer/liveEntries.d.ts +19 -0
  71. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
  72. package/lib/typescript/commonjs/icons/index.d.ts +1 -0
  73. package/lib/typescript/commonjs/index.d.ts +2 -2
  74. package/lib/typescript/commonjs/license/BuoyUpgradeSheet.d.ts +8 -0
  75. package/lib/typescript/commonjs/license/index.d.ts +1 -1
  76. package/lib/typescript/commonjs/sync/keyedArrays.d.ts +6 -1
  77. package/lib/typescript/commonjs/ui/floating/FloatingTool.d.ts +6 -1
  78. package/lib/typescript/commonjs/ui/listPresets.d.ts +2 -2
  79. package/lib/typescript/commonjs/utils/index.d.ts +1 -1
  80. package/lib/typescript/commonjs/utils/minimalSuperJSON.d.ts +4 -2
  81. package/lib/typescript/commonjs/utils/persistentStorage.d.ts +6 -0
  82. package/lib/typescript/module/JsModal.d.ts +3 -4
  83. package/lib/typescript/module/JsModal.web.d.ts +2 -0
  84. package/lib/typescript/module/bugCase/index.d.ts +1 -0
  85. package/lib/typescript/module/bugCase/recorder.d.ts +1 -0
  86. package/lib/typescript/module/bugCase/steps.d.ts +6 -0
  87. package/lib/typescript/module/bugCase/validate.d.ts +14 -0
  88. package/lib/typescript/module/dataViewer/flattenTree.d.ts +35 -0
  89. package/lib/typescript/module/dataViewer/liveEntries.d.ts +19 -0
  90. package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
  91. package/lib/typescript/module/icons/index.d.ts +1 -0
  92. package/lib/typescript/module/index.d.ts +2 -2
  93. package/lib/typescript/module/license/BuoyUpgradeSheet.d.ts +8 -0
  94. package/lib/typescript/module/license/index.d.ts +1 -1
  95. package/lib/typescript/module/sync/keyedArrays.d.ts +6 -1
  96. package/lib/typescript/module/ui/floating/FloatingTool.d.ts +6 -1
  97. package/lib/typescript/module/ui/listPresets.d.ts +2 -2
  98. package/lib/typescript/module/utils/index.d.ts +1 -1
  99. package/lib/typescript/module/utils/minimalSuperJSON.d.ts +4 -2
  100. package/lib/typescript/module/utils/persistentStorage.d.ts +6 -0
  101. package/lib/web/chunks/chunk-36A4T5PL.mjs +1 -0
  102. package/lib/web/chunks/{chunk-XUYN4NOF.mjs → chunk-5UII72AQ.mjs} +1 -1
  103. package/lib/web/chunks/chunk-A3N3WVKC.mjs +1 -0
  104. package/lib/web/chunks/chunk-AVRGPBZK.mjs +6 -0
  105. package/lib/web/chunks/{chunk-GTRVOJUH.mjs → chunk-JTNYUDJZ.mjs} +1 -1
  106. package/lib/web/chunks/{chunk-BMITMQVB.mjs → chunk-LADTE6U4.mjs} +3 -3
  107. package/lib/web/chunks/chunk-N5Z7Z2GY.mjs +1 -0
  108. package/lib/web/chunks/chunk-SAWSKX4E.mjs +6 -0
  109. package/lib/web/chunks/{chunk-OVTASJUJ.mjs → chunk-SUG6TLF5.mjs} +1 -1
  110. package/lib/web/chunks/{chunk-OQB3GW44.mjs → chunk-UVVRCZX5.mjs} +1 -1
  111. package/lib/web/chunks/chunk-Y7FM4WZ7.mjs +6 -0
  112. package/lib/web/chunks/chunk-ZRZQZF2T.mjs +15 -0
  113. package/lib/web/chunks/persistentStorage.web-IBLIV62L.mjs +1 -0
  114. package/lib/web/dataViewer.mjs +2 -2
  115. package/lib/web/history.mjs +1 -1
  116. package/lib/web/index.mjs +6 -6
  117. package/lib/web/ui.mjs +1 -1
  118. package/lib/web/utils.mjs +1 -1
  119. package/package.json +5 -5
  120. package/lib/web/chunks/chunk-DJD42EPL.mjs +0 -1
  121. package/lib/web/chunks/chunk-GN75GBYZ.mjs +0 -1
  122. package/lib/web/chunks/chunk-HE5ONCAL.mjs +0 -6
@@ -1 +1 @@
1
- "use client";import{a as Z}from"./chunk-XUYN4NOF.mjs";import{f}from"./chunk-AHVO74UQ.mjs";import{N as B,a as k,b as L,c as A}from"./chunk-QXVVA64P.mjs";import{a as c}from"./chunk-T6T3FEMU.mjs";import{createContext as _,useContext as Y,useState as M,useCallback as b,useMemo as R,useEffect as ee}from"react";import{jsx as te}from"react/jsx-runtime";var $=_(null);function z({children:e,initialAdapters:t=[]}){let[n,s]=M(()=>{let r=new Map;return t.forEach(a=>{r.set(a.adapter.id,{...a,enabled:a.enabled??true})}),r}),[u,y]=M(null),[m,S]=M(0),p=b(()=>S(r=>r+1),[]);ee(()=>{let r=[];return n.forEach(a=>{if(a.enabled){let d=a.adapter.subscribe(p);r.push(d)}}),()=>{r.forEach(a=>a())}},[n,p]);let i=R(()=>Array.from(n.values()).filter(r=>r.enabled).sort((r,a)=>(r.priority??100)-(a.priority??100)).map(r=>r.adapter),[n,m]),h=b(r=>n.get(r)?.adapter,[n]),w=b(r=>{s(a=>{let d=new Map(a);return d.set(r.adapter.id,{...r,enabled:r.enabled??true}),d})},[]),l=b(r=>{s(a=>{let d=new Map(a);return d.delete(r),d})},[]),o=b(r=>{let a=[];return(u&&r?.sources===void 0?i.filter(d=>d.id===u):i).forEach(d=>{r?.sources&&!r.sources.includes(d.id)||(a=a.concat(d.getEntries()))}),r&&(a=D(a,r)),a.sort((d,X)=>X.timestamp-d.timestamp),a},[i,u,m]),x=b(()=>{let r={};return i.forEach(a=>{r[a.id]=a.getEntryCount()}),r},[i,m]),Q=R(()=>({adapters:i,getAdapter:h,registerAdapter:w,unregisterAdapter:l,getAllEntries:o,getEntryCounts:x,selectedAdapterId:u,setSelectedAdapterId:y,refresh:p}),[i,h,w,l,o,x,u,p]);return te($.Provider,{value:Q,children:e})}c(z,"HistoryProvider");function E(){let e=Y($);if(!e)throw new Error("useHistoryContext must be used within a HistoryProvider");return e}c(E,"useHistoryContext");function F(){return E().adapters}c(F,"useHistoryAdapters");function j(e){return E().getAdapter(e)}c(j,"useHistoryAdapter");function P(e){let{getAllEntries:t}=E();return t(e)}c(P,"useAllHistoryEntries");function N(){return E().getEntryCounts()}c(N,"useHistoryEntryCounts");function D(e,t){return e.filter(n=>{if(t.searchText){let s=t.searchText.toLowerCase();if(!n.label.toLowerCase().includes(s))return false}if(t.onlyWithChanges&&!n.hasStateChange||t.onlyErrors&&n.status!=="error"||t.afterTimestamp&&n.timestamp<t.afterTimestamp||t.beforeTimestamp&&n.timestamp>t.beforeTimestamp)return false;if(t.ignoredPatterns?.length){for(let s of t.ignoredPatterns)if(new RegExp(s).test(n.label))return false}if(t.includedPatterns?.length){let s=false;for(let u of t.includedPatterns)if(new RegExp(u).test(n.label)){s=true;break}if(!s)return false}return true})}c(D,"applyFilter");import{jsx as I}from"react/jsx-runtime";function V(e){let t=Date.now()-e;return t<1e3?"just now":t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:`${Math.floor(t/36e5)}h ago`}c(V,"formatRelativeTime");function W(e,t){if(t?.color)return t.color;if(e.status==="error")return f.error;if(e.status==="pending")return f.warning;if(e.status==="success")return f.success;if(e.hasStateChange)return f.success;if(e.isSkipped)return f.textMuted;if(e.isInFuture)return f.textMuted+"80";switch(e.source){case"redux":return"#764ABC";case"zustand":return"#443E38";case"mmkv":return"#4CAF50";case"async-storage":return"#2196F3";case"react-query":return"#FF4154";case"jotai":return"#000000";case"legend-state":return"#7C3AED";default:return f.textSecondary}}c(W,"getStatusColor");function q(e){return e.isSkipped?"Skipped":e.isInFuture?"Future":e.status?e.status.charAt(0).toUpperCase()+e.status.slice(1):e.hasStateChange?"Changed":"Action"}c(q,"getStatusLabel");function G(e,t){return t?.name?t.name:e.category?e.category:e.source}c(G,"getSublabel");function v({entry:e,adapter:t,isSelected:n,onPress:s,showSource:u=true,showDuration:y=true}){let m=W(e,t),S=q(e),p=u?G(e,t):void 0,i=V(e.timestamp);y&&e.duration!==void 0&&(i=`${e.duration.toFixed(1)}ms \xB7 ${i}`);let h=e.hasStateChange?I(L,{style:U.changeBadge,children:I(A,{style:U.changeBadgeText,children:"\u26A1"})}):void 0;return I(Z,{statusDotColor:m,statusLabel:S,statusSublabel:p,primaryText:e.label,bottomRightText:i,customBadge:h,isSelected:n,onPress:s?()=>s(e):void 0,showChevron:!!s})}c(v,"HistoryEntryRow");var U=k.create({changeBadge:{paddingHorizontal:4},changeBadgeText:{fontSize:12}});import{useCallback as T,useMemo as H}from"react";import{jsx as g,jsxs as J}from"react/jsx-runtime";function K({filter:e,selectedEntryId:t,onSelectEntry:n,showSource:s=true,emptyMessage:u="No history entries yet",ListHeaderComponent:y,ListFooterComponent:m}){let S=P(e),p=F(),i=H(()=>{let o=new Map;return p.forEach(x=>o.set(x.id,x)),o},[p]),h=T(o=>`${o.source}-${o.id}`,[]),w=T(({item:o})=>{let x=i.get(o.source);return g(v,{entry:o,adapter:x,isSelected:t===o.id,onPress:n,showSource:s})},[i,t,n,s]),l=H(()=>J(L,{style:C.emptyContainer,children:[g(A,{style:C.emptyText,children:u}),g(A,{style:C.emptySubtext,children:"Actions will appear here as they happen"})]}),[u]);return g(B,{data:S,keyExtractor:h,renderItem:w,ListEmptyComponent:l,ListHeaderComponent:y,ListFooterComponent:m,contentContainerStyle:C.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15,getItemLayout:void 0})}c(K,"HistoryList");function O({entries:e,adapters:t=[],selectedEntryId:n,onSelectEntry:s,showSource:u=true,emptyMessage:y="No history entries yet",ListHeaderComponent:m,ListFooterComponent:S}){let p=H(()=>{let l=new Map;return t.forEach(o=>l.set(o.id,o)),l},[t]),i=T(l=>`${l.source}-${l.id}`,[]),h=T(({item:l})=>{let o=p.get(l.source);return g(v,{entry:l,adapter:o,isSelected:n===l.id,onPress:s,showSource:u})},[p,n,s,u]),w=H(()=>J(L,{style:C.emptyContainer,children:[g(A,{style:C.emptyText,children:y}),g(A,{style:C.emptySubtext,children:"Actions will appear here as they happen"})]}),[y]);return g(B,{data:e,keyExtractor:i,renderItem:h,ListEmptyComponent:w,ListHeaderComponent:m,ListFooterComponent:S,contentContainerStyle:C.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15})}c(O,"StandaloneHistoryList");var C=k.create({listContent:{flexGrow:1,paddingVertical:4},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:60,paddingHorizontal:20},emptyText:{fontSize:16,fontWeight:"600",color:f.text,marginBottom:8},emptySubtext:{fontSize:13,color:f.textMuted,textAlign:"center"}});export{z as a,E as b,F as c,j as d,P as e,N as f,v as g,K as h,O as i};
1
+ "use client";import{a as Z}from"./chunk-5UII72AQ.mjs";import{f}from"./chunk-AHVO74UQ.mjs";import{N as B,a as k,b as L,c as A}from"./chunk-QXVVA64P.mjs";import{a as c}from"./chunk-T6T3FEMU.mjs";import{createContext as _,useContext as X,useState as M,useCallback as b,useMemo as R,useEffect as ee}from"react";import{jsx as te}from"react/jsx-runtime";var $=_(null);function z({children:e,initialAdapters:t=[]}){let[s,a]=M(()=>{let r=new Map;return t.forEach(n=>{r.set(n.adapter.id,{...n,enabled:n.enabled??true})}),r}),[u,h]=M(null),[m,S]=M(0),p=b(()=>S(r=>r+1),[]);ee(()=>{let r=[];return s.forEach(n=>{if(n.enabled){let d=n.adapter.subscribe(p);r.push(d)}}),()=>{r.forEach(n=>n())}},[s,p]);let i=R(()=>Array.from(s.values()).filter(r=>r.enabled).sort((r,n)=>(r.priority??100)-(n.priority??100)).map(r=>r.adapter),[s,m]),y=b(r=>s.get(r)?.adapter,[s]),w=b(r=>{a(n=>{let d=new Map(n);return d.set(r.adapter.id,{...r,enabled:r.enabled??true}),d})},[]),l=b(r=>{a(n=>{let d=new Map(n);return d.delete(r),d})},[]),o=b(r=>{let n=[];return(u&&r?.sources===void 0?i.filter(d=>d.id===u):i).forEach(d=>{r?.sources&&!r.sources.includes(d.id)||(n=n.concat(d.getEntries()))}),r&&(n=D(n,r)),n.sort((d,Y)=>Y.timestamp-d.timestamp),n},[i,u,m]),x=b(()=>{let r={};return i.forEach(n=>{r[n.id]=n.getEntryCount()}),r},[i,m]),Q=R(()=>({adapters:i,getAdapter:y,registerAdapter:w,unregisterAdapter:l,getAllEntries:o,getEntryCounts:x,selectedAdapterId:u,setSelectedAdapterId:h,refresh:p}),[i,y,w,l,o,x,u,p]);return te($.Provider,{value:Q,children:e})}c(z,"HistoryProvider");function E(){let e=X($);if(!e)throw new Error("useHistoryContext must be used within a HistoryProvider");return e}c(E,"useHistoryContext");function F(){return E().adapters}c(F,"useHistoryAdapters");function j(e){return E().getAdapter(e)}c(j,"useHistoryAdapter");function P(e){let{getAllEntries:t}=E();return t(e)}c(P,"useAllHistoryEntries");function N(){return E().getEntryCounts()}c(N,"useHistoryEntryCounts");function D(e,t){return e.filter(s=>{if(t.searchText){let a=t.searchText.toLowerCase();if(!s.label.toLowerCase().includes(a))return false}if(t.onlyWithChanges&&!s.hasStateChange||t.onlyErrors&&s.status!=="error"||t.afterTimestamp&&s.timestamp<t.afterTimestamp||t.beforeTimestamp&&s.timestamp>t.beforeTimestamp)return false;if(t.ignoredPatterns?.length){for(let a of t.ignoredPatterns)if(new RegExp(a).test(s.label))return false}if(t.includedPatterns?.length){let a=false;for(let u of t.includedPatterns)if(new RegExp(u).test(s.label)){a=true;break}if(!a)return false}return true})}c(D,"applyFilter");import{jsx as I}from"react/jsx-runtime";function V(e){let t=Date.now()-e;return t<1e3?"just now":t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:`${Math.floor(t/36e5)}h ago`}c(V,"formatRelativeTime");function W(e,t){if(t?.color)return t.color;if(e.status==="error")return f.error;if(e.status==="pending")return f.warning;if(e.status==="success")return f.success;if(e.hasStateChange)return f.success;if(e.isSkipped)return f.textMuted;if(e.isInFuture)return f.textMuted+"80";switch(e.source){case"redux":return"#764ABC";case"zustand":return"#443E38";case"mmkv":return"#4CAF50";case"async-storage":return"#2196F3";case"react-query":return"#FF4154";case"jotai":return"#000000";case"legend-state":return"#7C3AED";default:return f.textSecondary}}c(W,"getStatusColor");function q(e){return e.isSkipped?"Skipped":e.isInFuture?"Future":e.status?e.status.charAt(0).toUpperCase()+e.status.slice(1):e.hasStateChange?"Changed":"Action"}c(q,"getStatusLabel");function G(e,t){return t?.name?t.name:e.category?e.category:e.source}c(G,"getSublabel");function v({entry:e,adapter:t,isSelected:s,onPress:a,showSource:u=true,showDuration:h=true}){let m=W(e,t),S=q(e),p=u?G(e,t):void 0,i=V(e.timestamp);h&&e.duration!==void 0&&(i=`${e.duration.toFixed(1)}ms \xB7 ${i}`);let y=e.hasStateChange?I(L,{style:U.changeBadge,children:I(A,{style:U.changeBadgeText,children:"\u26A1"})}):void 0;return I(Z,{statusDotColor:m,statusLabel:S,statusSublabel:p,primaryText:e.label,bottomRightText:i,customBadge:y,isSelected:s,onPress:a?()=>a(e):void 0,showChevron:!!a})}c(v,"HistoryEntryRow");var U=k.create({changeBadge:{paddingHorizontal:4},changeBadgeText:{fontSize:12}});import{useCallback as T,useMemo as H}from"react";import{jsx as g,jsxs as J}from"react/jsx-runtime";function K({filter:e,selectedEntryId:t,onSelectEntry:s,showSource:a=true,emptyMessage:u="No history entries yet",ListHeaderComponent:h,ListFooterComponent:m}){let S=P(e),p=F(),i=H(()=>{let o=new Map;return p.forEach(x=>o.set(x.id,x)),o},[p]),y=T(o=>`${o.source}-${o.id}`,[]),w=T(({item:o})=>{let x=i.get(o.source);return g(v,{entry:o,adapter:x,isSelected:t===o.id,onPress:s,showSource:a})},[i,t,s,a]),l=H(()=>J(L,{style:C.emptyContainer,children:[g(A,{style:C.emptyText,children:u}),g(A,{style:C.emptySubtext,children:"Actions will appear here as they happen"})]}),[u]);return g(B,{data:S,keyExtractor:y,renderItem:w,ListEmptyComponent:l,ListHeaderComponent:h,ListFooterComponent:m,contentContainerStyle:C.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15,getItemLayout:void 0})}c(K,"HistoryList");function O({entries:e,adapters:t=[],selectedEntryId:s,onSelectEntry:a,showSource:u=true,emptyMessage:h="No history entries yet",ListHeaderComponent:m,ListFooterComponent:S}){let p=H(()=>{let l=new Map;return t.forEach(o=>l.set(o.id,o)),l},[t]),i=T(l=>`${l.source}-${l.id}`,[]),y=T(({item:l})=>{let o=p.get(l.source);return g(v,{entry:l,adapter:o,isSelected:s===l.id,onPress:a,showSource:u})},[p,s,a,u]),w=H(()=>J(L,{style:C.emptyContainer,children:[g(A,{style:C.emptyText,children:h}),g(A,{style:C.emptySubtext,children:"Actions will appear here as they happen"})]}),[h]);return g(B,{data:e,keyExtractor:i,renderItem:y,ListEmptyComponent:w,ListHeaderComponent:m,ListFooterComponent:S,contentContainerStyle:C.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15})}c(O,"StandaloneHistoryList");var C=k.create({listContent:{flexGrow:1,paddingVertical:4},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:60,paddingHorizontal:20},emptyText:{fontSize:16,fontWeight:"600",color:f.text,marginBottom:8},emptySubtext:{fontSize:13,color:f.textMuted,textAlign:"center"}});export{z as a,E as b,F as c,j as d,P as e,N as f,v as g,K as h,O as i};