@buoy-gg/redux 2.1.11 → 2.1.13
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.
- package/LICENSE +58 -0
- package/lib/commonjs/index.js +1 -179
- package/lib/commonjs/preset.js +1 -98
- package/lib/commonjs/redux/components/ReduxActionButton.js +1 -129
- package/lib/commonjs/redux/components/ReduxActionDetailContent.js +1 -380
- package/lib/commonjs/redux/components/ReduxActionDetailView.js +1 -401
- package/lib/commonjs/redux/components/ReduxActionInfoView.js +1 -838
- package/lib/commonjs/redux/components/ReduxActionItem.js +1 -366
- package/lib/commonjs/redux/components/ReduxDetailViewToggle.js +1 -134
- package/lib/commonjs/redux/components/ReduxIcon.js +1 -18
- package/lib/commonjs/redux/components/ReduxModal.js +1 -530
- package/lib/commonjs/redux/components/index.js +1 -52
- package/lib/commonjs/redux/hooks/index.js +1 -25
- package/lib/commonjs/redux/hooks/useAutoInstrumentRedux.js +1 -197
- package/lib/commonjs/redux/hooks/useReduxActions.js +1 -75
- package/lib/commonjs/redux/index.js +1 -49
- package/lib/commonjs/redux/utils/autoInstrument.js +1 -270
- package/lib/commonjs/redux/utils/buoyReduxMiddleware.js +1 -166
- package/lib/commonjs/redux/utils/createReduxHistoryAdapter.js +1 -146
- package/lib/commonjs/redux/utils/index.js +1 -111
- package/lib/commonjs/redux/utils/reduxActionStore.js +1 -358
- package/lib/module/index.js +1 -87
- package/lib/module/preset.js +1 -94
- package/lib/module/redux/components/ReduxActionButton.js +1 -126
- package/lib/module/redux/components/ReduxActionDetailContent.js +1 -376
- package/lib/module/redux/components/ReduxActionDetailView.js +1 -397
- package/lib/module/redux/components/ReduxActionInfoView.js +1 -833
- package/lib/module/redux/components/ReduxActionItem.js +1 -362
- package/lib/module/redux/components/ReduxDetailViewToggle.js +1 -129
- package/lib/module/redux/components/ReduxIcon.js +1 -8
- package/lib/module/redux/components/ReduxModal.js +1 -525
- package/lib/module/redux/components/index.js +1 -7
- package/lib/module/redux/hooks/index.js +1 -4
- package/lib/module/redux/hooks/useAutoInstrumentRedux.js +1 -193
- package/lib/module/redux/hooks/useReduxActions.js +1 -71
- package/lib/module/redux/index.js +1 -13
- package/lib/module/redux/utils/autoInstrument.js +1 -260
- package/lib/module/redux/utils/buoyReduxMiddleware.js +1 -157
- package/lib/module/redux/utils/createReduxHistoryAdapter.js +1 -142
- package/lib/module/redux/utils/index.js +1 -8
- package/lib/module/redux/utils/reduxActionStore.js +1 -354
- package/package.json +12 -12
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/preset.d.ts.map +0 -1
- package/lib/typescript/redux/components/ReduxActionButton.d.ts.map +0 -1
- package/lib/typescript/redux/components/ReduxActionDetailContent.d.ts.map +0 -1
- package/lib/typescript/redux/components/ReduxActionDetailView.d.ts.map +0 -1
- package/lib/typescript/redux/components/ReduxActionInfoView.d.ts.map +0 -1
- package/lib/typescript/redux/components/ReduxActionItem.d.ts.map +0 -1
- package/lib/typescript/redux/components/ReduxDetailViewToggle.d.ts.map +0 -1
- package/lib/typescript/redux/components/ReduxIcon.d.ts.map +0 -1
- package/lib/typescript/redux/components/ReduxModal.d.ts.map +0 -1
- package/lib/typescript/redux/components/index.d.ts.map +0 -1
- package/lib/typescript/redux/hooks/index.d.ts.map +0 -1
- package/lib/typescript/redux/hooks/useAutoInstrumentRedux.d.ts.map +0 -1
- package/lib/typescript/redux/hooks/useReduxActions.d.ts.map +0 -1
- package/lib/typescript/redux/index.d.ts.map +0 -1
- package/lib/typescript/redux/types/index.d.ts.map +0 -1
- package/lib/typescript/redux/utils/autoInstrument.d.ts.map +0 -1
- package/lib/typescript/redux/utils/buoyReduxMiddleware.d.ts.map +0 -1
- package/lib/typescript/redux/utils/createReduxHistoryAdapter.d.ts.map +0 -1
- package/lib/typescript/redux/utils/index.d.ts.map +0 -1
- package/lib/typescript/redux/utils/reduxActionStore.d.ts.map +0 -1
|
@@ -1,166 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.buoyReduxMiddleware = exports.BUOY_REPLAY_ACTION = exports.BUOY_JUMP_TO_STATE = void 0;
|
|
7
|
-
exports.createBuoyReduxMiddleware = createBuoyReduxMiddleware;
|
|
8
|
-
exports.isMiddlewareActive = isMiddlewareActive;
|
|
9
|
-
exports.jumpToState = jumpToState;
|
|
10
|
-
exports.replayAction = replayAction;
|
|
11
|
-
exports.withBuoyDevTools = withBuoyDevTools;
|
|
12
|
-
var _reduxActionStore = require("./reduxActionStore");
|
|
13
|
-
/**
|
|
14
|
-
* Buoy Redux Middleware for Redux Toolkit
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* import { configureStore } from '@reduxjs/toolkit';
|
|
19
|
-
* import { buoyReduxMiddleware, withBuoyDevTools } from '@buoy-gg/redux';
|
|
20
|
-
*
|
|
21
|
-
* const store = configureStore({
|
|
22
|
-
* reducer: withBuoyDevTools(rootReducer), // Enable time-travel
|
|
23
|
-
* middleware: (getDefaultMiddleware) =>
|
|
24
|
-
* getDefaultMiddleware().concat(buoyReduxMiddleware),
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
// ============================================
|
|
30
|
-
// Middleware Active Tracking
|
|
31
|
-
// ============================================
|
|
32
|
-
|
|
33
|
-
/** Flag to indicate middleware is handling action capture */
|
|
34
|
-
let middlewareActive = false;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if the explicit middleware is active
|
|
38
|
-
* Used by auto-instrument to avoid duplicate capture
|
|
39
|
-
*/
|
|
40
|
-
function isMiddlewareActive() {
|
|
41
|
-
return middlewareActive;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// ============================================
|
|
45
|
-
// Time-Travel Action Types
|
|
46
|
-
// ============================================
|
|
47
|
-
|
|
48
|
-
const BUOY_JUMP_TO_STATE = exports.BUOY_JUMP_TO_STATE = "@@buoy/JUMP_TO_STATE";
|
|
49
|
-
const BUOY_REPLAY_ACTION = exports.BUOY_REPLAY_ACTION = "@@buoy/REPLAY_ACTION";
|
|
50
|
-
// Store reference to dispatch for time-travel
|
|
51
|
-
let storeDispatch = null;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Jump to a specific state (time-travel)
|
|
55
|
-
*/
|
|
56
|
-
function jumpToState(state) {
|
|
57
|
-
if (storeDispatch) {
|
|
58
|
-
storeDispatch({
|
|
59
|
-
type: BUOY_JUMP_TO_STATE,
|
|
60
|
-
payload: state
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
console.warn("[BuoyRedux] Cannot jump to state - middleware not initialized");
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Replay an action (dispatch it again)
|
|
69
|
-
*/
|
|
70
|
-
function replayAction(action) {
|
|
71
|
-
if (storeDispatch) {
|
|
72
|
-
// Dispatch the original action directly
|
|
73
|
-
storeDispatch(action);
|
|
74
|
-
} else {
|
|
75
|
-
console.warn("[BuoyRedux] Cannot replay action - middleware not initialized");
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Wrap your root reducer to enable time-travel support
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* ```tsx
|
|
84
|
-
* const store = configureStore({
|
|
85
|
-
* reducer: withBuoyDevTools(rootReducer),
|
|
86
|
-
* middleware: (getDefault) => getDefault().concat(buoyReduxMiddleware),
|
|
87
|
-
* });
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
function withBuoyDevTools(reducer) {
|
|
91
|
-
return (state, action) => {
|
|
92
|
-
// Handle jump to state action
|
|
93
|
-
if (action.type === BUOY_JUMP_TO_STATE) {
|
|
94
|
-
const jumpAction = action;
|
|
95
|
-
return jumpAction.payload;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Pass through to original reducer
|
|
99
|
-
return reducer(state, action);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Default middleware - just add to your store!
|
|
105
|
-
*/
|
|
106
|
-
const buoyReduxMiddleware = storeApi => {
|
|
107
|
-
// Mark middleware as active so auto-instrument knows to skip
|
|
108
|
-
middlewareActive = true;
|
|
109
|
-
|
|
110
|
-
// Store dispatch reference for time-travel
|
|
111
|
-
storeDispatch = storeApi.dispatch;
|
|
112
|
-
return next => action => {
|
|
113
|
-
const actionObj = action;
|
|
114
|
-
const actionType = actionObj.type;
|
|
115
|
-
|
|
116
|
-
// Don't record devtools internal actions
|
|
117
|
-
if (actionType?.startsWith("@@buoy/")) {
|
|
118
|
-
return next(action);
|
|
119
|
-
}
|
|
120
|
-
const startTime = performance.now();
|
|
121
|
-
const prevState = storeApi.getState();
|
|
122
|
-
const result = next(action);
|
|
123
|
-
const nextState = storeApi.getState();
|
|
124
|
-
const duration = performance.now() - startTime;
|
|
125
|
-
_reduxActionStore.reduxActionStore.addAction(actionObj, prevState, nextState, duration);
|
|
126
|
-
return result;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Create middleware with custom options
|
|
132
|
-
*/
|
|
133
|
-
exports.buoyReduxMiddleware = buoyReduxMiddleware;
|
|
134
|
-
function createBuoyReduxMiddleware(options = {}) {
|
|
135
|
-
const {
|
|
136
|
-
maxActions = 200,
|
|
137
|
-
ignoreActions = []
|
|
138
|
-
} = options;
|
|
139
|
-
_reduxActionStore.reduxActionStore.setMaxActions(maxActions);
|
|
140
|
-
return storeApi => {
|
|
141
|
-
// Mark middleware as active so auto-instrument knows to skip
|
|
142
|
-
middlewareActive = true;
|
|
143
|
-
|
|
144
|
-
// Store dispatch reference for time-travel
|
|
145
|
-
storeDispatch = storeApi.dispatch;
|
|
146
|
-
return next => action => {
|
|
147
|
-
const actionObj = action;
|
|
148
|
-
const actionType = actionObj.type || "";
|
|
149
|
-
|
|
150
|
-
// Don't record devtools internal actions
|
|
151
|
-
if (actionType?.startsWith("@@buoy/")) {
|
|
152
|
-
return next(action);
|
|
153
|
-
}
|
|
154
|
-
if (ignoreActions.includes(actionType)) {
|
|
155
|
-
return next(action);
|
|
156
|
-
}
|
|
157
|
-
const startTime = performance.now();
|
|
158
|
-
const prevState = storeApi.getState();
|
|
159
|
-
const result = next(action);
|
|
160
|
-
const nextState = storeApi.getState();
|
|
161
|
-
const duration = performance.now() - startTime;
|
|
162
|
-
_reduxActionStore.reduxActionStore.addAction(actionObj, prevState, nextState, duration);
|
|
163
|
-
return result;
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buoyReduxMiddleware=exports.BUOY_REPLAY_ACTION=exports.BUOY_JUMP_TO_STATE=void 0,exports.createBuoyReduxMiddleware=createBuoyReduxMiddleware,exports.isMiddlewareActive=isMiddlewareActive,exports.jumpToState=jumpToState,exports.replayAction=replayAction,exports.withBuoyDevTools=withBuoyDevTools;var _reduxActionStore=require("./reduxActionStore");let middlewareActive=!1;function isMiddlewareActive(){return middlewareActive}const BUOY_JUMP_TO_STATE=exports.BUOY_JUMP_TO_STATE="@@buoy/JUMP_TO_STATE",BUOY_REPLAY_ACTION=exports.BUOY_REPLAY_ACTION="@@buoy/REPLAY_ACTION";let storeDispatch=null;function jumpToState(e){storeDispatch?storeDispatch({type:BUOY_JUMP_TO_STATE,payload:e}):console.warn("[BuoyRedux] Cannot jump to state - middleware not initialized")}function replayAction(e){storeDispatch?storeDispatch(e):console.warn("[BuoyRedux] Cannot replay action - middleware not initialized")}function withBuoyDevTools(e){return(t,o)=>o.type===BUOY_JUMP_TO_STATE?o.payload:e(t,o)}const buoyReduxMiddleware=e=>(middlewareActive=!0,storeDispatch=e.dispatch,t=>o=>{const r=o,i=r.type;if(i?.startsWith("@@buoy/"))return t(o);const n=performance.now(),a=e.getState(),d=t(o),c=e.getState(),s=performance.now()-n;return _reduxActionStore.reduxActionStore.addAction(r,a,c,s),d});function createBuoyReduxMiddleware(e={}){const{maxActions:t=200,ignoreActions:o=[]}=e;return _reduxActionStore.reduxActionStore.setMaxActions(t),e=>(middlewareActive=!0,storeDispatch=e.dispatch,t=>r=>{const i=r,n=i.type||"";if(n?.startsWith("@@buoy/"))return t(r);if(o.includes(n))return t(r);const a=performance.now(),d=e.getState(),c=t(r),s=e.getState(),u=performance.now()-a;return _reduxActionStore.reduxActionStore.addAction(i,d,s,u),c})}exports.buoyReduxMiddleware=buoyReduxMiddleware;
|
|
@@ -1,146 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createReduxHistoryAdapter = createReduxHistoryAdapter;
|
|
7
|
-
exports.reduxHistoryAdapter = void 0;
|
|
8
|
-
var _reduxActionStore = require("./reduxActionStore");
|
|
9
|
-
var _ReduxIcon = require("../components/ReduxIcon");
|
|
10
|
-
/**
|
|
11
|
-
* Redux History Adapter
|
|
12
|
-
*
|
|
13
|
-
* Wraps the existing reduxActionStore to implement the universal HistoryAdapter interface.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Redux adapter capabilities
|
|
18
|
-
* Note: Full time-travel requires the instrument() pattern from redux-devtools.
|
|
19
|
-
* This adapter provides history viewing with basic navigation.
|
|
20
|
-
*/
|
|
21
|
-
const REDUX_CAPABILITIES = {
|
|
22
|
-
timeTravel: false,
|
|
23
|
-
// Would need instrument() for true time travel
|
|
24
|
-
toggle: false,
|
|
25
|
-
// Would need instrument() for skip/toggle
|
|
26
|
-
edit: false,
|
|
27
|
-
diff: true,
|
|
28
|
-
// We have prevState/nextState
|
|
29
|
-
export: true,
|
|
30
|
-
import: false,
|
|
31
|
-
reset: true,
|
|
32
|
-
recording: true
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Convert ReduxAction to HistoryEntry
|
|
37
|
-
*/
|
|
38
|
-
function toHistoryEntry(action, index, _total) {
|
|
39
|
-
return {
|
|
40
|
-
id: action.id,
|
|
41
|
-
label: action.type,
|
|
42
|
-
timestamp: action.timestamp,
|
|
43
|
-
data: action.payload ?? action.action,
|
|
44
|
-
prevState: action.prevState,
|
|
45
|
-
nextState: action.nextState,
|
|
46
|
-
hasStateChange: action.hasStateChange,
|
|
47
|
-
duration: action.duration,
|
|
48
|
-
source: "redux",
|
|
49
|
-
isCurrent: index === 0,
|
|
50
|
-
// Most recent is current
|
|
51
|
-
isInFuture: false,
|
|
52
|
-
isSkipped: false,
|
|
53
|
-
meta: {
|
|
54
|
-
fullAction: action.action
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Options for creating a Redux history adapter
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Create a Redux history adapter
|
|
65
|
-
*
|
|
66
|
-
* @param options - Optional configuration
|
|
67
|
-
* @returns HistoryAdapter instance
|
|
68
|
-
*/
|
|
69
|
-
function createReduxHistoryAdapter(options) {
|
|
70
|
-
const {
|
|
71
|
-
icon = _ReduxIcon.ReduxIcon,
|
|
72
|
-
color = "#764ABC",
|
|
73
|
-
// Redux purple
|
|
74
|
-
name = "Redux"
|
|
75
|
-
} = options ?? {};
|
|
76
|
-
let currentIndex = 0;
|
|
77
|
-
const adapter = {
|
|
78
|
-
// === Identity ===
|
|
79
|
-
id: "redux",
|
|
80
|
-
name,
|
|
81
|
-
icon,
|
|
82
|
-
color,
|
|
83
|
-
capabilities: REDUX_CAPABILITIES,
|
|
84
|
-
// === Subscription ===
|
|
85
|
-
subscribe: callback => {
|
|
86
|
-
return _reduxActionStore.reduxActionStore.subscribe(() => {
|
|
87
|
-
callback();
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
// === Data Access ===
|
|
91
|
-
getEntries: () => {
|
|
92
|
-
const actions = _reduxActionStore.reduxActionStore.getActions();
|
|
93
|
-
return actions.map((action, index) => toHistoryEntry(action, index, actions.length));
|
|
94
|
-
},
|
|
95
|
-
getEntryCount: () => {
|
|
96
|
-
return _reduxActionStore.reduxActionStore.getActions().length;
|
|
97
|
-
},
|
|
98
|
-
getCurrentState: () => {
|
|
99
|
-
const actions = _reduxActionStore.reduxActionStore.getActions();
|
|
100
|
-
if (actions.length === 0) return undefined;
|
|
101
|
-
// Most recent action's nextState is current state
|
|
102
|
-
return actions[0].nextState;
|
|
103
|
-
},
|
|
104
|
-
getStateAtEntry: entryId => {
|
|
105
|
-
const action = _reduxActionStore.reduxActionStore.getActionById(String(entryId));
|
|
106
|
-
return action?.nextState;
|
|
107
|
-
},
|
|
108
|
-
// === Navigation ===
|
|
109
|
-
get currentIndex() {
|
|
110
|
-
return currentIndex;
|
|
111
|
-
},
|
|
112
|
-
jumpTo: entryId => {
|
|
113
|
-
const actions = _reduxActionStore.reduxActionStore.getActions();
|
|
114
|
-
const index = actions.findIndex(a => a.id === String(entryId));
|
|
115
|
-
if (index !== -1) {
|
|
116
|
-
currentIndex = index;
|
|
117
|
-
// Note: This doesn't actually change app state without instrument()
|
|
118
|
-
// It just updates which entry is "selected" for viewing
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
// === Recording ===
|
|
122
|
-
get isRecording() {
|
|
123
|
-
return _reduxActionStore.reduxActionStore.getEnabled();
|
|
124
|
-
},
|
|
125
|
-
setRecording: enabled => {
|
|
126
|
-
_reduxActionStore.reduxActionStore.setEnabled(enabled);
|
|
127
|
-
},
|
|
128
|
-
// === Reset ===
|
|
129
|
-
reset: () => {
|
|
130
|
-
_reduxActionStore.reduxActionStore.clearActions();
|
|
131
|
-
currentIndex = 0;
|
|
132
|
-
},
|
|
133
|
-
// === Export ===
|
|
134
|
-
exportHistory: () => {
|
|
135
|
-
const actions = _reduxActionStore.reduxActionStore.getActions();
|
|
136
|
-
return JSON.stringify(actions, null, 2);
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
return adapter;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Default Redux adapter instance
|
|
144
|
-
* Use this if you only have one Redux store
|
|
145
|
-
*/
|
|
146
|
-
const reduxHistoryAdapter = exports.reduxHistoryAdapter = createReduxHistoryAdapter();
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createReduxHistoryAdapter=createReduxHistoryAdapter,exports.reduxHistoryAdapter=void 0;var _reduxActionStore=require("./reduxActionStore"),_ReduxIcon=require("../components/ReduxIcon");const REDUX_CAPABILITIES={timeTravel:!1,toggle:!1,edit:!1,diff:!0,export:!0,import:!1,reset:!0,recording:!0};function toHistoryEntry(t,e,r){return{id:t.id,label:t.type,timestamp:t.timestamp,data:t.payload??t.action,prevState:t.prevState,nextState:t.nextState,hasStateChange:t.hasStateChange,duration:t.duration,source:"redux",isCurrent:0===e,isInFuture:!1,isSkipped:!1,meta:{fullAction:t.action}}}function createReduxHistoryAdapter(t){const{icon:e=_ReduxIcon.ReduxIcon,color:r="#764ABC",name:o="Redux"}=t??{};let n=0;return{id:"redux",name:o,icon:e,color:r,capabilities:REDUX_CAPABILITIES,subscribe:t=>_reduxActionStore.reduxActionStore.subscribe(()=>{t()}),getEntries:()=>{const t=_reduxActionStore.reduxActionStore.getActions();return t.map((e,r)=>toHistoryEntry(e,r,t.length))},getEntryCount:()=>_reduxActionStore.reduxActionStore.getActions().length,getCurrentState:()=>{const t=_reduxActionStore.reduxActionStore.getActions();if(0!==t.length)return t[0].nextState},getStateAtEntry:t=>{const e=_reduxActionStore.reduxActionStore.getActionById(String(t));return e?.nextState},get currentIndex(){return n},jumpTo:t=>{const e=_reduxActionStore.reduxActionStore.getActions().findIndex(e=>e.id===String(t));-1!==e&&(n=e)},get isRecording(){return _reduxActionStore.reduxActionStore.getEnabled()},setRecording:t=>{_reduxActionStore.reduxActionStore.setEnabled(t)},reset:()=>{_reduxActionStore.reduxActionStore.clearActions(),n=0},exportHistory:()=>{const t=_reduxActionStore.reduxActionStore.getActions();return JSON.stringify(t,null,2)}}}const reduxHistoryAdapter=exports.reduxHistoryAdapter=createReduxHistoryAdapter();
|
|
@@ -1,111 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "BUOY_JUMP_TO_STATE", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _buoyReduxMiddleware.BUOY_JUMP_TO_STATE;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "BUOY_REPLAY_ACTION", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _buoyReduxMiddleware.BUOY_REPLAY_ACTION;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "autoJumpToState", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _autoInstrument.jumpToState;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "autoReplayAction", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _autoInstrument.replayAction;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "buoyReduxMiddleware", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _buoyReduxMiddleware.buoyReduxMiddleware;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "createBuoyReduxMiddleware", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _buoyReduxMiddleware.createBuoyReduxMiddleware;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "createReduxHistoryAdapter", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _createReduxHistoryAdapter.createReduxHistoryAdapter;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "getActiveStore", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _autoInstrument.getActiveStore;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "instrumentStore", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _autoInstrument.instrumentStore;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "isAutoInstrumentActive", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _autoInstrument.isAutoInstrumentActive;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "isStoreInstrumented", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _autoInstrument.isStoreInstrumented;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "jumpToState", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () {
|
|
75
|
-
return _buoyReduxMiddleware.jumpToState;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "reduxActionStore", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function () {
|
|
81
|
-
return _reduxActionStore.reduxActionStore;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "reduxHistoryAdapter", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function () {
|
|
87
|
-
return _createReduxHistoryAdapter.reduxHistoryAdapter;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(exports, "replayAction", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () {
|
|
93
|
-
return _buoyReduxMiddleware.replayAction;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, "uninstrumentStore", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function () {
|
|
99
|
-
return _autoInstrument.uninstrumentStore;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "withBuoyDevTools", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function () {
|
|
105
|
-
return _buoyReduxMiddleware.withBuoyDevTools;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
var _reduxActionStore = require("./reduxActionStore");
|
|
109
|
-
var _buoyReduxMiddleware = require("./buoyReduxMiddleware");
|
|
110
|
-
var _createReduxHistoryAdapter = require("./createReduxHistoryAdapter");
|
|
111
|
-
var _autoInstrument = require("./autoInstrument");
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BUOY_JUMP_TO_STATE",{enumerable:!0,get:function(){return _buoyReduxMiddleware.BUOY_JUMP_TO_STATE}}),Object.defineProperty(exports,"BUOY_REPLAY_ACTION",{enumerable:!0,get:function(){return _buoyReduxMiddleware.BUOY_REPLAY_ACTION}}),Object.defineProperty(exports,"autoJumpToState",{enumerable:!0,get:function(){return _autoInstrument.jumpToState}}),Object.defineProperty(exports,"autoReplayAction",{enumerable:!0,get:function(){return _autoInstrument.replayAction}}),Object.defineProperty(exports,"buoyReduxMiddleware",{enumerable:!0,get:function(){return _buoyReduxMiddleware.buoyReduxMiddleware}}),Object.defineProperty(exports,"createBuoyReduxMiddleware",{enumerable:!0,get:function(){return _buoyReduxMiddleware.createBuoyReduxMiddleware}}),Object.defineProperty(exports,"createReduxHistoryAdapter",{enumerable:!0,get:function(){return _createReduxHistoryAdapter.createReduxHistoryAdapter}}),Object.defineProperty(exports,"getActiveStore",{enumerable:!0,get:function(){return _autoInstrument.getActiveStore}}),Object.defineProperty(exports,"instrumentStore",{enumerable:!0,get:function(){return _autoInstrument.instrumentStore}}),Object.defineProperty(exports,"isAutoInstrumentActive",{enumerable:!0,get:function(){return _autoInstrument.isAutoInstrumentActive}}),Object.defineProperty(exports,"isStoreInstrumented",{enumerable:!0,get:function(){return _autoInstrument.isStoreInstrumented}}),Object.defineProperty(exports,"jumpToState",{enumerable:!0,get:function(){return _buoyReduxMiddleware.jumpToState}}),Object.defineProperty(exports,"reduxActionStore",{enumerable:!0,get:function(){return _reduxActionStore.reduxActionStore}}),Object.defineProperty(exports,"reduxHistoryAdapter",{enumerable:!0,get:function(){return _createReduxHistoryAdapter.reduxHistoryAdapter}}),Object.defineProperty(exports,"replayAction",{enumerable:!0,get:function(){return _buoyReduxMiddleware.replayAction}}),Object.defineProperty(exports,"uninstrumentStore",{enumerable:!0,get:function(){return _autoInstrument.uninstrumentStore}}),Object.defineProperty(exports,"withBuoyDevTools",{enumerable:!0,get:function(){return _buoyReduxMiddleware.withBuoyDevTools}});var _reduxActionStore=require("./reduxActionStore"),_buoyReduxMiddleware=require("./buoyReduxMiddleware"),_createReduxHistoryAdapter=require("./createReduxHistoryAdapter"),_autoInstrument=require("./autoInstrument");
|