@buoy-gg/redux 3.0.1 → 3.0.2

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 (68) hide show
  1. package/lib/commonjs/index.js +186 -1
  2. package/lib/commonjs/preset.js +98 -1
  3. package/lib/commonjs/redux/components/ReduxActionButton.js +129 -1
  4. package/lib/commonjs/redux/components/ReduxActionDetailContent.js +380 -1
  5. package/lib/commonjs/redux/components/ReduxActionDetailView.js +401 -1
  6. package/lib/commonjs/redux/components/ReduxActionInfoView.js +838 -1
  7. package/lib/commonjs/redux/components/ReduxActionItem.js +366 -1
  8. package/lib/commonjs/redux/components/ReduxDetailViewToggle.js +134 -1
  9. package/lib/commonjs/redux/components/ReduxIcon.js +18 -1
  10. package/lib/commonjs/redux/components/ReduxModal.js +531 -1
  11. package/lib/commonjs/redux/components/index.js +52 -1
  12. package/lib/commonjs/redux/hooks/index.js +25 -1
  13. package/lib/commonjs/redux/hooks/useAutoInstrumentRedux.js +197 -1
  14. package/lib/commonjs/redux/hooks/useReduxActions.js +75 -1
  15. package/lib/commonjs/redux/index.js +49 -1
  16. package/lib/commonjs/redux/sync/reduxSyncAdapter.js +26 -0
  17. package/lib/commonjs/redux/utils/autoInstrument.js +270 -1
  18. package/lib/commonjs/redux/utils/buoyReduxMiddleware.js +166 -1
  19. package/lib/commonjs/redux/utils/createReduxHistoryAdapter.js +146 -1
  20. package/lib/commonjs/redux/utils/index.js +111 -1
  21. package/lib/commonjs/redux/utils/reduxActionStore.js +413 -1
  22. package/lib/module/index.js +92 -1
  23. package/lib/module/preset.js +94 -1
  24. package/lib/module/redux/components/ReduxActionButton.js +126 -1
  25. package/lib/module/redux/components/ReduxActionDetailContent.js +376 -1
  26. package/lib/module/redux/components/ReduxActionDetailView.js +397 -1
  27. package/lib/module/redux/components/ReduxActionInfoView.js +833 -1
  28. package/lib/module/redux/components/ReduxActionItem.js +362 -1
  29. package/lib/module/redux/components/ReduxDetailViewToggle.js +129 -1
  30. package/lib/module/redux/components/ReduxIcon.js +8 -1
  31. package/lib/module/redux/components/ReduxModal.js +526 -1
  32. package/lib/module/redux/components/index.js +7 -1
  33. package/lib/module/redux/hooks/index.js +4 -1
  34. package/lib/module/redux/hooks/useAutoInstrumentRedux.js +193 -1
  35. package/lib/module/redux/hooks/useReduxActions.js +71 -1
  36. package/lib/module/redux/index.js +13 -1
  37. package/lib/module/redux/sync/reduxSyncAdapter.js +23 -0
  38. package/lib/module/redux/utils/autoInstrument.js +260 -1
  39. package/lib/module/redux/utils/buoyReduxMiddleware.js +157 -1
  40. package/lib/module/redux/utils/createReduxHistoryAdapter.js +142 -1
  41. package/lib/module/redux/utils/index.js +8 -1
  42. package/lib/module/redux/utils/reduxActionStore.js +409 -1
  43. package/lib/typescript/index.d.ts +1 -0
  44. package/lib/typescript/index.d.ts.map +1 -0
  45. package/lib/typescript/preset.d.ts.map +1 -0
  46. package/lib/typescript/redux/components/ReduxActionButton.d.ts.map +1 -0
  47. package/lib/typescript/redux/components/ReduxActionDetailContent.d.ts.map +1 -0
  48. package/lib/typescript/redux/components/ReduxActionDetailView.d.ts.map +1 -0
  49. package/lib/typescript/redux/components/ReduxActionInfoView.d.ts.map +1 -0
  50. package/lib/typescript/redux/components/ReduxActionItem.d.ts.map +1 -0
  51. package/lib/typescript/redux/components/ReduxDetailViewToggle.d.ts.map +1 -0
  52. package/lib/typescript/redux/components/ReduxIcon.d.ts.map +1 -0
  53. package/lib/typescript/redux/components/ReduxModal.d.ts.map +1 -0
  54. package/lib/typescript/redux/components/index.d.ts.map +1 -0
  55. package/lib/typescript/redux/hooks/index.d.ts.map +1 -0
  56. package/lib/typescript/redux/hooks/useAutoInstrumentRedux.d.ts.map +1 -0
  57. package/lib/typescript/redux/hooks/useReduxActions.d.ts.map +1 -0
  58. package/lib/typescript/redux/index.d.ts.map +1 -0
  59. package/lib/typescript/redux/sync/reduxSyncAdapter.d.ts +18 -0
  60. package/lib/typescript/redux/sync/reduxSyncAdapter.d.ts.map +1 -0
  61. package/lib/typescript/redux/types/index.d.ts.map +1 -0
  62. package/lib/typescript/redux/utils/autoInstrument.d.ts.map +1 -0
  63. package/lib/typescript/redux/utils/buoyReduxMiddleware.d.ts.map +1 -0
  64. package/lib/typescript/redux/utils/createReduxHistoryAdapter.d.ts.map +1 -0
  65. package/lib/typescript/redux/utils/index.d.ts.map +1 -0
  66. package/lib/typescript/redux/utils/reduxActionStore.d.ts +25 -0
  67. package/lib/typescript/redux/utils/reduxActionStore.d.ts.map +1 -0
  68. package/package.json +4 -4
@@ -1 +1,531 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FREE_TIER_ACTION_LIMIT=void 0,exports.ReduxModal=ReduxModal;var _react=require("react"),_reactNative=require("react-native"),_sharedUi=require("@buoy-gg/shared-ui"),_license=require("@buoy-gg/license"),_useReduxActions=require("../hooks/useReduxActions"),_useAutoInstrumentRedux=require("../hooks/useAutoInstrumentRedux"),_ReduxActionItem=require("./ReduxActionItem"),_ReduxActionDetailContent=require("./ReduxActionDetailContent"),_jsxRuntime=require("react/jsx-runtime");const FREE_TIER_ACTION_LIMIT=exports.FREE_TIER_ACTION_LIMIT=25;function EmptyState({isEnabled:e}){return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.emptyState,children:[(0,_jsxRuntime.jsx)(_sharedUi.Zap,{size:32,color:_sharedUi.macOSColors.text.muted}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.emptyTitle,children:"No Redux actions"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.emptyText,children:e?"Actions will appear here as they are dispatched":"Enable capture to start recording actions"})]})}function ReduxModal({visible:e,onClose:t,onBack:r,onMinimize:a,enableSharedModalDimensions:s=!1}){const i=(0,_license.useIsPro)(),[o,n]=(0,_react.useState)(!1),{isInstrumented:l,isLoading:d,error:c,isReactReduxAvailable:u}=(0,_useAutoInstrumentRedux.useAutoInstrumentRedux)(),{filteredActions:h,filter:x,setFilter:_,stats:m,clearActions:C,isEnabled:g,toggleCapture:y}=(0,_useReduxActions.useReduxActions)(),p=(0,_react.useMemo)(()=>i?h:h.slice(0,FREE_TIER_ACTION_LIMIT),[h,i]),j=(0,_react.useMemo)(()=>i?0:Math.max(0,h.length-FREE_TIER_ACTION_LIMIT),[h.length,i]),R=j>0,[b,S]=(0,_react.useState)(null),U=(0,_react.useRef)([]);U.current=p;const T=null!==b?p[b]:null,[v,f]=(0,_react.useState)(""),[O,I]=(0,_react.useState)(!1),A=(0,_react.useRef)(null),k=(0,_react.useRef)(null),N=(0,_react.useCallback)(e=>{},[]),w=e=>{f(e),_(t=>({...t,searchText:e}))},B=(0,_react.useCallback)(e=>{const t=U.current.findIndex(t=>t.id===e.id);S(t>=0?t:0)},[]),z=(0,_react.useCallback)(()=>{n(!0)},[]),E=(0,_react.useCallback)(()=>{S(null)},[]),M=(0,_react.useCallback)(e=>{S(e)},[]),P=(0,_react.useCallback)(e=>e.id,[]),V=(0,_react.useCallback)(({item:e})=>(0,_jsxRuntime.jsx)(_ReduxActionItem.ReduxActionItem,{action:e,onPress:B}),[B]),D=s?_sharedUi.devToolsStorageKeys.modal.root():"buoy-redux-modal";if(!e)return null;const W=T&&null!==b?(0,_jsxRuntime.jsx)(_ReduxActionDetailContent.ReduxActionDetailFooter,{action:T,actions:p,selectedIndex:b,onIndexChange:M}):null,H=T&&p.length>1?68:0;return(0,_jsxRuntime.jsxs)(_sharedUi.TickProvider,{children:[(0,_jsxRuntime.jsx)(_sharedUi.JsModal,{visible:e,onClose:t,onMinimize:a,persistenceKey:D,header:{showToggleButton:!0,customContent:T?(0,_jsxRuntime.jsxs)(_sharedUi.ModalHeader,{children:[(0,_jsxRuntime.jsx)(_sharedUi.ModalHeader.Navigation,{onBack:E}),(0,_jsxRuntime.jsx)(_sharedUi.ModalHeader.Content,{title:T.type,centered:!0})]}):(0,_jsxRuntime.jsxs)(_sharedUi.ModalHeader,{children:[r&&(0,_jsxRuntime.jsx)(_sharedUi.ModalHeader.Navigation,{onBack:r}),(0,_jsxRuntime.jsx)(_sharedUi.ModalHeader.Content,{title:"",children:O?(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.headerSearchContainer,children:[(0,_jsxRuntime.jsx)(_sharedUi.Search,{size:14,color:_sharedUi.macOSColors.text.secondary}),(0,_jsxRuntime.jsx)(_reactNative.TextInput,{ref:A,style:styles.headerSearchInput,placeholder:"Search action types...",placeholderTextColor:_sharedUi.macOSColors.text.muted,value:v,onChangeText:w,onSubmitEditing:()=>I(!1),onBlur:()=>I(!1),autoCapitalize:"none",autoCorrect:!1,returnKeyType:"search"}),v.length>0&&(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{onPress:()=>{w(""),I(!1)},style:styles.headerSearchClear,children:(0,_jsxRuntime.jsx)(_sharedUi.X,{size:14,color:_sharedUi.macOSColors.text.secondary})})]}):(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.headerChipRow,children:[(0,_jsxRuntime.jsxs)(_reactNative.TouchableOpacity,{style:[styles.headerChip,!x.onlyWithChanges&&styles.headerChipActive],onPress:()=>_(e=>({...e,onlyWithChanges:!1})),children:[(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.headerChipLabel,children:"ALL"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.headerChipValue,{color:_sharedUi.macOSColors.text.primary}],children:m.totalActions})]}),(0,_jsxRuntime.jsxs)(_reactNative.TouchableOpacity,{style:[styles.headerChip,x.onlyWithChanges&&styles.headerChipActive],onPress:()=>_(e=>({...e,onlyWithChanges:!0})),children:[(0,_jsxRuntime.jsx)(_sharedUi.Zap,{size:12,color:_sharedUi.macOSColors.semantic.warning}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.headerChipValue,{color:_sharedUi.macOSColors.semantic.warning}],children:m.actionsWithChanges})]}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.headerChip,children:[(0,_jsxRuntime.jsx)(_sharedUi.CheckCircle,{size:12,color:_sharedUi.macOSColors.semantic.success}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.headerChipValue,{color:_sharedUi.macOSColors.semantic.success}],children:m.uniqueActionTypes})]})]})}),(0,_jsxRuntime.jsxs)(_sharedUi.ModalHeader.Actions,{children:[(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{onPress:()=>I(!0),style:styles.headerActionButton,children:(0,_jsxRuntime.jsx)(_sharedUi.Search,{size:14,color:_sharedUi.macOSColors.text.secondary})}),(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{onPress:async()=>{if(!i)return void n(!0);const e=h.map(e=>({id:e.id,type:e.type,...void 0!==e.payload&&{payload:e.payload},timestamp:e.timestamp,prevState:e.prevState,nextState:e.nextState,hasStateChange:e.hasStateChange}));await(0,_sharedUi.copyToClipboard)(e)},style:[styles.headerActionButton,0===h.length&&styles.headerActionButtonDisabled],disabled:0===h.length,children:(0,_jsxRuntime.jsx)(_sharedUi.Copy,{size:14,color:h.length>0?_sharedUi.macOSColors.text.secondary:_sharedUi.macOSColors.text.disabled})}),(0,_jsxRuntime.jsx)(_sharedUi.PowerToggleButton,{isEnabled:g,onToggle:y,accessibilityLabel:"Toggle Redux action capture"}),(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{onPress:C,style:[styles.headerActionButton,0===h.length&&styles.headerActionButtonDisabled],disabled:0===h.length,children:(0,_jsxRuntime.jsx)(_sharedUi.Trash2,{size:14,color:h.length>0?_sharedUi.macOSColors.text.muted:_sharedUi.macOSColors.text.disabled})})]})]})},onModeChange:N,enablePersistence:!0,initialMode:"bottomSheet",enableGlitchEffects:!0,styles:{},footer:W,footerHeight:H,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.container,children:T&&null!==b?(0,_jsxRuntime.jsx)(_ReduxActionDetailContent.ReduxActionDetailContent,{action:T,actions:p,selectedIndex:b,onIndexChange:M,disableInternalFooter:!0}):(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[c&&!l&&(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.errorBanner,children:[(0,_jsxRuntime.jsx)(_sharedUi.AlertTriangle,{size:14,color:_sharedUi.macOSColors.semantic.error}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.errorText,children:u?"Not inside a Redux Provider. Wrap your app with <Provider store={store}>.":"react-redux not installed. Run: npm install react-redux"})]}),!g&&l&&(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.disabledBanner,children:[(0,_jsxRuntime.jsx)(_sharedUi.Power,{size:14,color:_sharedUi.macOSColors.semantic.warning}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.disabledText,children:"Action capture is disabled"})]}),R&&(0,_jsxRuntime.jsxs)(_reactNative.TouchableOpacity,{style:styles.lockedBanner,onPress:z,activeOpacity:.8,children:[(0,_jsxRuntime.jsx)(_sharedUi.Lock,{size:14,color:_sharedUi.buoyColors.primary}),(0,_jsxRuntime.jsxs)(_reactNative.Text,{style:styles.lockedText,children:[j," older ",1===j?"action":"actions"," locked"]}),(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.upgradeBadge,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.upgradeBadgeText,children:"UPGRADE"})})]}),p.length>0?(0,_jsxRuntime.jsx)(_reactNative.FlatList,{ref:k,data:p,renderItem:V,keyExtractor:P,contentContainerStyle:styles.listContent,showsVerticalScrollIndicator:!0,removeClippedSubviews:!0,initialNumToRender:15,maxToRenderPerBatch:10,windowSize:10,scrollEnabled:!1}):(0,_jsxRuntime.jsx)(EmptyState,{isEnabled:g})]})})}),(0,_jsxRuntime.jsx)(_sharedUi.ProUpgradeModal,{visible:o,onClose:()=>n(!1),featureName:"Full Action History"})]})}const styles=_reactNative.StyleSheet.create({container:{flex:1,backgroundColor:_sharedUi.macOSColors.background.base},headerSearchContainer:{flexDirection:"row",alignItems:"center",backgroundColor:_sharedUi.macOSColors.background.input,borderRadius:10,borderWidth:1,borderColor:_sharedUi.macOSColors.border.default,paddingHorizontal:12,paddingVertical:5},headerSearchInput:{flex:1,color:_sharedUi.macOSColors.text.primary,fontSize:13,marginLeft:6,paddingVertical:2},headerSearchClear:{marginLeft:6,padding:4},headerChipRow:{flexDirection:"row",alignItems:"center",gap:8},headerChip:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:_sharedUi.macOSColors.background.hover,paddingHorizontal:10,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:_sharedUi.macOSColors.border.default},headerChipActive:{backgroundColor:_sharedUi.macOSColors.semantic.infoBackground,borderColor:_sharedUi.macOSColors.semantic.info+"50"},headerChipLabel:{fontSize:10,fontWeight:"700",color:_sharedUi.macOSColors.text.muted},headerChipValue:{fontSize:12,fontWeight:"600",fontFamily:"monospace"},headerActionButton:{width:32,height:32,borderRadius:8,backgroundColor:_sharedUi.macOSColors.background.hover,borderWidth:1,borderColor:_sharedUi.macOSColors.border.default,alignItems:"center",justifyContent:"center"},headerActionButtonDisabled:{opacity:.55},startButton:{backgroundColor:_sharedUi.macOSColors.semantic.successBackground,borderColor:_sharedUi.macOSColors.semantic.success+"40"},stopButton:{backgroundColor:_sharedUi.macOSColors.semantic.errorBackground,borderColor:_sharedUi.macOSColors.semantic.error+"40"},errorBanner:{flexDirection:"row",alignItems:"center",gap:8,padding:10,marginHorizontal:12,marginTop:8,backgroundColor:_sharedUi.macOSColors.semantic.errorBackground,borderRadius:8,borderWidth:1,borderColor:_sharedUi.macOSColors.semantic.error+"20"},errorText:{color:_sharedUi.macOSColors.semantic.error,fontSize:11,flex:1},disabledBanner:{flexDirection:"row",alignItems:"center",gap:8,padding:10,marginHorizontal:12,marginTop:8,backgroundColor:_sharedUi.macOSColors.semantic.warningBackground,borderRadius:8,borderWidth:1,borderColor:_sharedUi.macOSColors.semantic.warning+"20"},disabledText:{color:_sharedUi.macOSColors.semantic.warning,fontSize:11,flex:1},listContent:{paddingTop:8,paddingBottom:20},emptyState:{alignItems:"center",paddingVertical:40},emptyTitle:{color:_sharedUi.macOSColors.text.primary,fontSize:14,fontWeight:"600",marginTop:12,marginBottom:6},emptyText:{color:_sharedUi.macOSColors.text.muted,fontSize:12,textAlign:"center"},lockedBanner:{flexDirection:"row",alignItems:"center",gap:8,padding:10,marginHorizontal:12,marginTop:8,backgroundColor:_sharedUi.buoyColors.primary+"15",borderRadius:8,borderWidth:1,borderColor:_sharedUi.buoyColors.primary+"33"},lockedText:{color:_sharedUi.buoyColors.primary,fontSize:11,fontWeight:"500",flex:1},upgradeBadge:{backgroundColor:_sharedUi.buoyColors.primary,paddingHorizontal:8,paddingVertical:3,borderRadius:4},upgradeBadgeText:{color:"#fff",fontSize:9,fontWeight:"700",letterSpacing:.5}});
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FREE_TIER_ACTION_LIMIT = void 0;
7
+ exports.ReduxModal = ReduxModal;
8
+ var _react = require("react");
9
+ var _reactNative = require("react-native");
10
+ var _sharedUi = require("@buoy-gg/shared-ui");
11
+ var _license = require("@buoy-gg/license");
12
+ var _useReduxActions = require("../hooks/useReduxActions");
13
+ var _reduxActionStore = require("../utils/reduxActionStore");
14
+ var _useAutoInstrumentRedux = require("../hooks/useAutoInstrumentRedux");
15
+ var _ReduxActionItem = require("./ReduxActionItem");
16
+ var _ReduxActionDetailContent = require("./ReduxActionDetailContent");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ /**
19
+ * Main Redux DevTools modal
20
+ *
21
+ * This component auto-instruments the Redux store when it mounts,
22
+ * providing zero-config action capture for the DevTools.
23
+ */
24
+
25
+ /** Free tier limit for action history */
26
+ const FREE_TIER_ACTION_LIMIT = exports.FREE_TIER_ACTION_LIMIT = 25;
27
+ function EmptyState({
28
+ isEnabled
29
+ }) {
30
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
31
+ style: styles.emptyState,
32
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Zap, {
33
+ size: 32,
34
+ color: _sharedUi.macOSColors.text.muted
35
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
36
+ style: styles.emptyTitle,
37
+ children: "No Redux actions"
38
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
39
+ style: styles.emptyText,
40
+ children: isEnabled ? "Actions will appear here as they are dispatched" : "Enable capture to start recording actions"
41
+ })]
42
+ });
43
+ }
44
+ function ReduxModal({
45
+ visible,
46
+ onClose,
47
+ onBack,
48
+ onMinimize,
49
+ enableSharedModalDimensions = false
50
+ }) {
51
+ const isPro = (0, _license.useIsPro)();
52
+ const [showProModal, setShowProModal] = (0, _react.useState)(false);
53
+
54
+ // Auto-instrument the Redux store (zero-config)
55
+ const {
56
+ isInstrumented,
57
+ isLoading: isInstrumentLoading,
58
+ error: instrumentError,
59
+ isReactReduxAvailable
60
+ } = (0, _useAutoInstrumentRedux.useAutoInstrumentRedux)();
61
+ const {
62
+ filteredActions,
63
+ filter,
64
+ setFilter,
65
+ stats,
66
+ clearActions,
67
+ isEnabled,
68
+ toggleCapture
69
+ } = (0, _useReduxActions.useReduxActions)();
70
+
71
+ // For free users, limit visible actions to FREE_TIER_ACTION_LIMIT
72
+ const visibleActions = (0, _react.useMemo)(() => {
73
+ if (isPro) return filteredActions;
74
+ return filteredActions.slice(0, FREE_TIER_ACTION_LIMIT);
75
+ }, [filteredActions, isPro]);
76
+
77
+ // Calculate how many actions are locked
78
+ const lockedActionCount = (0, _react.useMemo)(() => {
79
+ if (isPro) return 0;
80
+ return Math.max(0, filteredActions.length - FREE_TIER_ACTION_LIMIT);
81
+ }, [filteredActions.length, isPro]);
82
+ const hasLockedActions = lockedActionCount > 0;
83
+
84
+ // Selection state - track index for navigation
85
+ const [selectedActionIndex, setSelectedActionIndex] = (0, _react.useState)(null);
86
+ const actionsRef = (0, _react.useRef)([]);
87
+
88
+ // Keep actions ref in sync (using visible actions for navigation)
89
+ actionsRef.current = visibleActions;
90
+
91
+ // Get selected action from index
92
+ const selectedAction = selectedActionIndex !== null ? visibleActions[selectedActionIndex] : null;
93
+ const [searchText, setSearchText] = (0, _react.useState)("");
94
+ const [isSearchActive, setIsSearchActive] = (0, _react.useState)(false);
95
+ const searchInputRef = (0, _react.useRef)(null);
96
+ const flatListRef = (0, _react.useRef)(null);
97
+ const handleModeChange = (0, _react.useCallback)(_mode => {
98
+ // Mode changes handled by JsModal
99
+ }, []);
100
+ const handleSearch = text => {
101
+ setSearchText(text);
102
+ setFilter(prev => ({
103
+ ...prev,
104
+ searchText: text
105
+ }));
106
+ };
107
+ const handleActionPress = (0, _react.useCallback)(action => {
108
+ const index = actionsRef.current.findIndex(a => a.id === action.id);
109
+ setSelectedActionIndex(index >= 0 ? index : 0);
110
+ }, []);
111
+ const handleUpgradePress = (0, _react.useCallback)(() => {
112
+ setShowProModal(true);
113
+ }, []);
114
+ const handleBack = (0, _react.useCallback)(() => {
115
+ setSelectedActionIndex(null);
116
+ }, []);
117
+ const handleIndexChange = (0, _react.useCallback)(newIndex => {
118
+ setSelectedActionIndex(newIndex);
119
+ }, []);
120
+ const handleCopyAll = async () => {
121
+ if (!isPro) {
122
+ setShowProModal(true);
123
+ return;
124
+ }
125
+ const actionsData = filteredActions.map(action => ({
126
+ id: action.id,
127
+ type: action.type,
128
+ ...(action.payload !== undefined && {
129
+ payload: action.payload
130
+ }),
131
+ timestamp: action.timestamp,
132
+ prevState: action.prevState,
133
+ nextState: action.nextState,
134
+ hasStateChange: action.hasStateChange
135
+ }));
136
+ await (0, _sharedUi.copyToClipboard)(actionsData);
137
+ };
138
+
139
+ // FlatList optimization
140
+ const keyExtractor = (0, _react.useCallback)(item => item.id, []);
141
+ const renderItem = (0, _react.useCallback)(({
142
+ item
143
+ }) => {
144
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReduxActionItem.ReduxActionItem, {
145
+ action: item,
146
+ onPress: handleActionPress
147
+ });
148
+ }, [handleActionPress]);
149
+ const renderHeaderContent = () => {
150
+ // Detail view header - show action type
151
+ if (selectedAction) {
152
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.ModalHeader, {
153
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ModalHeader.Navigation, {
154
+ onBack: handleBack
155
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ModalHeader.Content, {
156
+ title: selectedAction.type,
157
+ centered: true
158
+ })]
159
+ });
160
+ }
161
+
162
+ // Main list view header
163
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.ModalHeader, {
164
+ children: [onBack && /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ModalHeader.Navigation, {
165
+ onBack: onBack
166
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ModalHeader.Content, {
167
+ title: "",
168
+ children: isSearchActive ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
169
+ style: styles.headerSearchContainer,
170
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Search, {
171
+ size: 14,
172
+ color: _sharedUi.macOSColors.text.secondary
173
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
174
+ ref: searchInputRef,
175
+ style: styles.headerSearchInput,
176
+ placeholder: "Search action types...",
177
+ placeholderTextColor: _sharedUi.macOSColors.text.muted,
178
+ value: searchText,
179
+ onChangeText: handleSearch,
180
+ onSubmitEditing: () => setIsSearchActive(false),
181
+ onBlur: () => setIsSearchActive(false),
182
+ autoCapitalize: "none",
183
+ autoCorrect: false,
184
+ returnKeyType: "search"
185
+ }), searchText.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
186
+ onPress: () => {
187
+ handleSearch("");
188
+ setIsSearchActive(false);
189
+ },
190
+ style: styles.headerSearchClear,
191
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.X, {
192
+ size: 14,
193
+ color: _sharedUi.macOSColors.text.secondary
194
+ })
195
+ })]
196
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
197
+ style: styles.headerChipRow,
198
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
199
+ style: [styles.headerChip, !filter.onlyWithChanges && styles.headerChipActive],
200
+ onPress: () => setFilter(prev => ({
201
+ ...prev,
202
+ onlyWithChanges: false
203
+ })),
204
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
205
+ style: styles.headerChipLabel,
206
+ children: "ALL"
207
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
208
+ style: [styles.headerChipValue, {
209
+ color: _sharedUi.macOSColors.text.primary
210
+ }],
211
+ children: stats.totalActions
212
+ })]
213
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
214
+ style: [styles.headerChip, filter.onlyWithChanges && styles.headerChipActive],
215
+ onPress: () => setFilter(prev => ({
216
+ ...prev,
217
+ onlyWithChanges: true
218
+ })),
219
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Zap, {
220
+ size: 12,
221
+ color: _sharedUi.macOSColors.semantic.warning
222
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
223
+ style: [styles.headerChipValue, {
224
+ color: _sharedUi.macOSColors.semantic.warning
225
+ }],
226
+ children: stats.actionsWithChanges
227
+ })]
228
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
229
+ style: styles.headerChip,
230
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.CheckCircle, {
231
+ size: 12,
232
+ color: _sharedUi.macOSColors.semantic.success
233
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
234
+ style: [styles.headerChipValue, {
235
+ color: _sharedUi.macOSColors.semantic.success
236
+ }],
237
+ children: stats.uniqueActionTypes
238
+ })]
239
+ })]
240
+ })
241
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.ModalHeader.Actions, {
242
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
243
+ onPress: () => setIsSearchActive(true),
244
+ style: styles.headerActionButton,
245
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Search, {
246
+ size: 14,
247
+ color: _sharedUi.macOSColors.text.secondary
248
+ })
249
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
250
+ onPress: handleCopyAll,
251
+ style: [styles.headerActionButton, filteredActions.length === 0 && styles.headerActionButtonDisabled],
252
+ disabled: filteredActions.length === 0,
253
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Copy, {
254
+ size: 14,
255
+ color: filteredActions.length > 0 ? _sharedUi.macOSColors.text.secondary : _sharedUi.macOSColors.text.disabled
256
+ })
257
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.PowerToggleButton, {
258
+ isEnabled: isEnabled,
259
+ onToggle: toggleCapture,
260
+ accessibilityLabel: "Toggle Redux action capture"
261
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
262
+ onPress: clearActions,
263
+ style: [styles.headerActionButton, filteredActions.length === 0 && styles.headerActionButtonDisabled],
264
+ disabled: filteredActions.length === 0,
265
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Trash2, {
266
+ size: 14,
267
+ color: filteredActions.length > 0 ? _sharedUi.macOSColors.text.muted : _sharedUi.macOSColors.text.disabled
268
+ })
269
+ })]
270
+ })]
271
+ });
272
+ };
273
+ const persistenceKey = enableSharedModalDimensions ? _sharedUi.devToolsStorageKeys.modal.root() : "buoy-redux-modal";
274
+ if (!visible) return null;
275
+
276
+ // Footer for detail view navigation
277
+ const footerNode = selectedAction && selectedActionIndex !== null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReduxActionDetailContent.ReduxActionDetailFooter, {
278
+ action: selectedAction,
279
+ actions: visibleActions,
280
+ selectedIndex: selectedActionIndex,
281
+ onIndexChange: handleIndexChange
282
+ }) : null;
283
+ const footerHeight = selectedAction && visibleActions.length > 1 ? 68 : 0;
284
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.TickProvider, {
285
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.JsModal, {
286
+ visible: visible,
287
+ onClose: onClose,
288
+ onMinimize: onMinimize,
289
+ persistenceKey: persistenceKey,
290
+ header: {
291
+ showToggleButton: true,
292
+ customContent: renderHeaderContent()
293
+ },
294
+ onModeChange: handleModeChange,
295
+ enablePersistence: true,
296
+ initialMode: "bottomSheet",
297
+ enableGlitchEffects: true,
298
+ styles: {},
299
+ footer: footerNode,
300
+ footerHeight: footerHeight,
301
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
302
+ style: styles.container,
303
+ children: selectedAction && selectedActionIndex !== null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReduxActionDetailContent.ReduxActionDetailContent, {
304
+ action: selectedAction,
305
+ actions: visibleActions,
306
+ selectedIndex: selectedActionIndex,
307
+ onIndexChange: handleIndexChange,
308
+ disableInternalFooter: true
309
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
310
+ children: [instrumentError && !isInstrumented && !_reduxActionStore.reduxActionStore.isCaptureSuppressed() && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
311
+ style: styles.errorBanner,
312
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.AlertTriangle, {
313
+ size: 14,
314
+ color: _sharedUi.macOSColors.semantic.error
315
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
316
+ style: styles.errorText,
317
+ children: isReactReduxAvailable ? "Not inside a Redux Provider. Wrap your app with <Provider store={store}>." : "react-redux not installed. Run: npm install react-redux"
318
+ })]
319
+ }), !isEnabled && isInstrumented && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
320
+ style: styles.disabledBanner,
321
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Power, {
322
+ size: 14,
323
+ color: _sharedUi.macOSColors.semantic.warning
324
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
325
+ style: styles.disabledText,
326
+ children: "Action capture is disabled"
327
+ })]
328
+ }), hasLockedActions && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
329
+ style: styles.lockedBanner,
330
+ onPress: handleUpgradePress,
331
+ activeOpacity: 0.8,
332
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Lock, {
333
+ size: 14,
334
+ color: _sharedUi.buoyColors.primary
335
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
336
+ style: styles.lockedText,
337
+ children: [lockedActionCount, " older ", lockedActionCount === 1 ? "action" : "actions", " locked"]
338
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
339
+ style: styles.upgradeBadge,
340
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
341
+ style: styles.upgradeBadgeText,
342
+ children: "UPGRADE"
343
+ })
344
+ })]
345
+ }), visibleActions.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.FlatList, {
346
+ ref: flatListRef,
347
+ data: visibleActions,
348
+ renderItem: renderItem,
349
+ keyExtractor: keyExtractor,
350
+ contentContainerStyle: styles.listContent,
351
+ showsVerticalScrollIndicator: true,
352
+ removeClippedSubviews: true,
353
+ initialNumToRender: 15,
354
+ maxToRenderPerBatch: 10,
355
+ windowSize: 10,
356
+ scrollEnabled: false
357
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(EmptyState, {
358
+ isEnabled: isEnabled
359
+ })]
360
+ })
361
+ })
362
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ProUpgradeModal, {
363
+ visible: showProModal,
364
+ onClose: () => setShowProModal(false),
365
+ featureName: "Full Action History"
366
+ })]
367
+ });
368
+ }
369
+ const styles = _reactNative.StyleSheet.create({
370
+ container: {
371
+ flex: 1,
372
+ backgroundColor: _sharedUi.macOSColors.background.base
373
+ },
374
+ headerSearchContainer: {
375
+ flexDirection: "row",
376
+ alignItems: "center",
377
+ backgroundColor: _sharedUi.macOSColors.background.input,
378
+ borderRadius: 10,
379
+ borderWidth: 1,
380
+ borderColor: _sharedUi.macOSColors.border.default,
381
+ paddingHorizontal: 12,
382
+ paddingVertical: 5
383
+ },
384
+ headerSearchInput: {
385
+ flex: 1,
386
+ color: _sharedUi.macOSColors.text.primary,
387
+ fontSize: 13,
388
+ marginLeft: 6,
389
+ paddingVertical: 2
390
+ },
391
+ headerSearchClear: {
392
+ marginLeft: 6,
393
+ padding: 4
394
+ },
395
+ headerChipRow: {
396
+ flexDirection: "row",
397
+ alignItems: "center",
398
+ gap: 8
399
+ },
400
+ headerChip: {
401
+ flexDirection: "row",
402
+ alignItems: "center",
403
+ gap: 4,
404
+ backgroundColor: _sharedUi.macOSColors.background.hover,
405
+ paddingHorizontal: 10,
406
+ paddingVertical: 5,
407
+ borderRadius: 12,
408
+ borderWidth: 1,
409
+ borderColor: _sharedUi.macOSColors.border.default
410
+ },
411
+ headerChipActive: {
412
+ backgroundColor: _sharedUi.macOSColors.semantic.infoBackground,
413
+ borderColor: _sharedUi.macOSColors.semantic.info + "50"
414
+ },
415
+ headerChipLabel: {
416
+ fontSize: 10,
417
+ fontWeight: "700",
418
+ color: _sharedUi.macOSColors.text.muted
419
+ },
420
+ headerChipValue: {
421
+ fontSize: 12,
422
+ fontWeight: "600",
423
+ fontFamily: "monospace"
424
+ },
425
+ headerActionButton: {
426
+ width: 32,
427
+ height: 32,
428
+ borderRadius: 8,
429
+ backgroundColor: _sharedUi.macOSColors.background.hover,
430
+ borderWidth: 1,
431
+ borderColor: _sharedUi.macOSColors.border.default,
432
+ alignItems: "center",
433
+ justifyContent: "center"
434
+ },
435
+ headerActionButtonDisabled: {
436
+ opacity: 0.55
437
+ },
438
+ startButton: {
439
+ backgroundColor: _sharedUi.macOSColors.semantic.successBackground,
440
+ borderColor: _sharedUi.macOSColors.semantic.success + "40"
441
+ },
442
+ stopButton: {
443
+ backgroundColor: _sharedUi.macOSColors.semantic.errorBackground,
444
+ borderColor: _sharedUi.macOSColors.semantic.error + "40"
445
+ },
446
+ errorBanner: {
447
+ flexDirection: "row",
448
+ alignItems: "center",
449
+ gap: 8,
450
+ padding: 10,
451
+ marginHorizontal: 12,
452
+ marginTop: 8,
453
+ backgroundColor: _sharedUi.macOSColors.semantic.errorBackground,
454
+ borderRadius: 8,
455
+ borderWidth: 1,
456
+ borderColor: _sharedUi.macOSColors.semantic.error + "20"
457
+ },
458
+ errorText: {
459
+ color: _sharedUi.macOSColors.semantic.error,
460
+ fontSize: 11,
461
+ flex: 1
462
+ },
463
+ disabledBanner: {
464
+ flexDirection: "row",
465
+ alignItems: "center",
466
+ gap: 8,
467
+ padding: 10,
468
+ marginHorizontal: 12,
469
+ marginTop: 8,
470
+ backgroundColor: _sharedUi.macOSColors.semantic.warningBackground,
471
+ borderRadius: 8,
472
+ borderWidth: 1,
473
+ borderColor: _sharedUi.macOSColors.semantic.warning + "20"
474
+ },
475
+ disabledText: {
476
+ color: _sharedUi.macOSColors.semantic.warning,
477
+ fontSize: 11,
478
+ flex: 1
479
+ },
480
+ listContent: {
481
+ paddingTop: 8,
482
+ paddingBottom: 20
483
+ },
484
+ emptyState: {
485
+ alignItems: "center",
486
+ paddingVertical: 40
487
+ },
488
+ emptyTitle: {
489
+ color: _sharedUi.macOSColors.text.primary,
490
+ fontSize: 14,
491
+ fontWeight: "600",
492
+ marginTop: 12,
493
+ marginBottom: 6
494
+ },
495
+ emptyText: {
496
+ color: _sharedUi.macOSColors.text.muted,
497
+ fontSize: 12,
498
+ textAlign: "center"
499
+ },
500
+ // Locked actions banner styles
501
+ lockedBanner: {
502
+ flexDirection: "row",
503
+ alignItems: "center",
504
+ gap: 8,
505
+ padding: 10,
506
+ marginHorizontal: 12,
507
+ marginTop: 8,
508
+ backgroundColor: _sharedUi.buoyColors.primary + "15",
509
+ borderRadius: 8,
510
+ borderWidth: 1,
511
+ borderColor: _sharedUi.buoyColors.primary + "33"
512
+ },
513
+ lockedText: {
514
+ color: _sharedUi.buoyColors.primary,
515
+ fontSize: 11,
516
+ fontWeight: "500",
517
+ flex: 1
518
+ },
519
+ upgradeBadge: {
520
+ backgroundColor: _sharedUi.buoyColors.primary,
521
+ paddingHorizontal: 8,
522
+ paddingVertical: 3,
523
+ borderRadius: 4
524
+ },
525
+ upgradeBadgeText: {
526
+ color: "#fff",
527
+ fontSize: 9,
528
+ fontWeight: "700",
529
+ letterSpacing: 0.5
530
+ }
531
+ });
@@ -1 +1,52 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"FREE_TIER_ACTION_LIMIT",{enumerable:!0,get:function(){return _ReduxModal.FREE_TIER_ACTION_LIMIT}}),Object.defineProperty(exports,"ReduxActionDetailContent",{enumerable:!0,get:function(){return _ReduxActionDetailContent.ReduxActionDetailContent}}),Object.defineProperty(exports,"ReduxActionDetailFooter",{enumerable:!0,get:function(){return _ReduxActionDetailContent.ReduxActionDetailFooter}}),Object.defineProperty(exports,"ReduxActionDetailView",{enumerable:!0,get:function(){return _ReduxActionDetailView.ReduxActionDetailView}}),Object.defineProperty(exports,"ReduxActionItem",{enumerable:!0,get:function(){return _ReduxActionItem.ReduxActionItem}}),Object.defineProperty(exports,"ReduxIcon",{enumerable:!0,get:function(){return _ReduxIcon.ReduxIcon}}),Object.defineProperty(exports,"ReduxModal",{enumerable:!0,get:function(){return _ReduxModal.ReduxModal}});var _ReduxModal=require("./ReduxModal"),_ReduxActionItem=require("./ReduxActionItem"),_ReduxActionDetailView=require("./ReduxActionDetailView"),_ReduxActionDetailContent=require("./ReduxActionDetailContent"),_ReduxIcon=require("./ReduxIcon");
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "FREE_TIER_ACTION_LIMIT", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _ReduxModal.FREE_TIER_ACTION_LIMIT;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "ReduxActionDetailContent", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _ReduxActionDetailContent.ReduxActionDetailContent;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "ReduxActionDetailFooter", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _ReduxActionDetailContent.ReduxActionDetailFooter;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "ReduxActionDetailView", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _ReduxActionDetailView.ReduxActionDetailView;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "ReduxActionItem", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _ReduxActionItem.ReduxActionItem;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "ReduxIcon", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _ReduxIcon.ReduxIcon;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "ReduxModal", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _ReduxModal.ReduxModal;
46
+ }
47
+ });
48
+ var _ReduxModal = require("./ReduxModal");
49
+ var _ReduxActionItem = require("./ReduxActionItem");
50
+ var _ReduxActionDetailView = require("./ReduxActionDetailView");
51
+ var _ReduxActionDetailContent = require("./ReduxActionDetailContent");
52
+ var _ReduxIcon = require("./ReduxIcon");
@@ -1 +1,25 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useAutoInstrumentRedux",{enumerable:!0,get:function(){return _useAutoInstrumentRedux.useAutoInstrumentRedux}}),Object.defineProperty(exports,"useReduxActions",{enumerable:!0,get:function(){return _useReduxActions.useReduxActions}}),Object.defineProperty(exports,"useReduxAvailability",{enumerable:!0,get:function(){return _useAutoInstrumentRedux.useReduxAvailability}});var _useReduxActions=require("./useReduxActions"),_useAutoInstrumentRedux=require("./useAutoInstrumentRedux");
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "useAutoInstrumentRedux", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _useAutoInstrumentRedux.useAutoInstrumentRedux;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "useReduxActions", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _useReduxActions.useReduxActions;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "useReduxAvailability", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _useAutoInstrumentRedux.useReduxAvailability;
22
+ }
23
+ });
24
+ var _useReduxActions = require("./useReduxActions");
25
+ var _useAutoInstrumentRedux = require("./useAutoInstrumentRedux");