redux-connected-devtools 0.0.13 → 1.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 (314) hide show
  1. package/.env +2 -0
  2. package/.prettierrc.js +10 -0
  3. package/.vscode/settings.json +12 -0
  4. package/.vscode/tasks.json +33 -0
  5. package/LICENSE +21 -0
  6. package/README.md +5 -0
  7. package/index.html +58 -0
  8. package/jest.config.js +8 -0
  9. package/package.json +47 -62
  10. package/public/devtools.html +8 -0
  11. package/public/icon.png +0 -0
  12. package/public/manifest.json +29 -0
  13. package/public/options.html +12 -0
  14. package/public/panel.html +39 -0
  15. package/public/popup.html +12 -0
  16. package/src/__tests__/sum.ts +9 -0
  17. package/src/background.ts +49 -0
  18. package/src/components/DevInspector/DevInspector.scss +2 -0
  19. package/src/components/DevInspector/DevInspector.style.tsx +8 -0
  20. package/src/components/DevInspector/DevInspector.tsx +34 -0
  21. package/src/components/DevList/DevList.scss +2 -0
  22. package/src/components/DevList/DevList.style.tsx +34 -0
  23. package/src/components/DevList/DevList.tsx +62 -0
  24. package/src/components/DevMenu/DevMenu.scss +2 -0
  25. package/src/components/DevMenu/DevMenu.style.tsx +53 -0
  26. package/src/components/DevMenu/DevMenu.tsx +76 -0
  27. package/src/components/DevPanel/DevPanel.scss +2 -0
  28. package/src/components/DevPanel/DevPanel.style.tsx +16 -0
  29. package/src/components/DevPanel/DevPanel.tsx +51 -0
  30. package/src/components/JourneyRow/JourneyRow.scss +2 -0
  31. package/src/components/JourneyRow/JourneyRow.style.tsx +46 -0
  32. package/src/components/JourneyRow/JourneyRow.tsx +58 -0
  33. package/src/components/JsonViewer/JsonViewer.scss +2 -0
  34. package/src/components/JsonViewer/JsonViewer.style.tsx +31 -0
  35. package/src/components/JsonViewer/JsonViewer.tsx +24 -0
  36. package/src/components/Lifecycle/Lifecycle.scss +2 -0
  37. package/src/components/Lifecycle/Lifecycle.style.tsx +6 -0
  38. package/src/components/Lifecycle/Lifecycle.tsx +31 -0
  39. package/src/components/LogsViewer/LogsViewer.scss +2 -0
  40. package/src/components/LogsViewer/LogsViewer.style.tsx +5 -0
  41. package/src/components/LogsViewer/LogsViewer.tsx +14 -0
  42. package/src/components/RequestDetails/RequestDetails.scss +2 -0
  43. package/src/components/RequestDetails/RequestDetails.style.tsx +20 -0
  44. package/src/components/RequestDetails/RequestDetails.tsx +60 -0
  45. package/src/components/RequestJourney/RequestJourney.scss +2 -0
  46. package/src/components/RequestJourney/RequestJourney.style.tsx +6 -0
  47. package/src/components/RequestJourney/RequestJourney.tsx +33 -0
  48. package/src/components/RequestRow/RequestRow.scss +2 -0
  49. package/src/components/RequestRow/RequestRow.style.tsx +31 -0
  50. package/src/components/RequestRow/RequestRow.tsx +37 -0
  51. package/src/components/Time/Time.scss +2 -0
  52. package/src/components/Time/Time.style.tsx +17 -0
  53. package/src/components/Time/Time.tsx +25 -0
  54. package/src/containers/DevMenuContainer.tsx +28 -0
  55. package/src/containers/DevPanelContainer.tsx +10 -0
  56. package/src/containers/EndpointConfigsContainer.tsx +12 -0
  57. package/src/containers/EndpointStatusContainer.tsx +12 -0
  58. package/src/containers/GlobalSettingsContainer.tsx +12 -0
  59. package/src/containers/GlobalStatsContainer.tsx +12 -0
  60. package/src/containers/LifecycleApiErrorContainer.tsx +11 -0
  61. package/src/containers/LifecycleGeneralErrorContainer.tsx +11 -0
  62. package/src/containers/LifecycleInQueueContainer.tsx +11 -0
  63. package/src/containers/LifecyclePendingApiContainer.tsx +11 -0
  64. package/src/containers/LifecyclePostActionContainer.tsx +11 -0
  65. package/src/containers/LifecycleReceivedContainer.tsx +11 -0
  66. package/src/content_script.ts +19 -0
  67. package/src/data/devComponents.tsx +25 -0
  68. package/src/data/devRoutes.ts +83 -0
  69. package/src/devtools.tsx +29 -0
  70. package/src/index.ts +1 -0
  71. package/src/injected_script.ts +9 -0
  72. package/src/options.tsx +77 -0
  73. package/src/panel.tsx +30 -0
  74. package/src/popup.tsx +63 -0
  75. package/src/store/initialState.ts +42 -0
  76. package/src/store/selectors.ts +205 -0
  77. package/src/sum.ts +3 -0
  78. package/src/types.ts +1 -0
  79. package/src/utils/date.ts +3 -0
  80. package/tsconfig.json +24 -0
  81. package/vite.config.ts +45 -0
  82. package/webpack/webpack.common.js +46 -0
  83. package/webpack/webpack.dev.js +7 -0
  84. package/webpack/webpack.prod.js +6 -0
  85. package/esm/components/Config/Config.d.ts +0 -6
  86. package/esm/components/Config/Config.js +0 -15
  87. package/esm/components/DevTools/DevTools.d.ts +0 -4
  88. package/esm/components/DevTools/DevTools.js +0 -19
  89. package/esm/components/Dispatcher/Dispatcher.d.ts +0 -8
  90. package/esm/components/Dispatcher/Dispatcher.js +0 -62
  91. package/esm/components/GlobalSettings/GlobalSettings.d.ts +0 -6
  92. package/esm/components/GlobalSettings/GlobalSettings.js +0 -16
  93. package/esm/components/Group/Group.d.ts +0 -9
  94. package/esm/components/Group/Group.js +0 -14
  95. package/esm/components/Json/Json.d.ts +0 -7
  96. package/esm/components/Json/Json.js +0 -9
  97. package/esm/components/Logs/Logs.d.ts +0 -6
  98. package/esm/components/Logs/Logs.js +0 -49
  99. package/esm/components/Monitor/Monitor.d.ts +0 -6
  100. package/esm/components/Monitor/Monitor.js +0 -52
  101. package/esm/components/OverlayManager/OverlayManager.d.ts +0 -6
  102. package/esm/components/OverlayManager/OverlayManager.js +0 -17
  103. package/esm/components/Panel/Panel.d.ts +0 -14
  104. package/esm/components/Panel/Panel.js +0 -46
  105. package/esm/components/Preview/Preview.d.ts +0 -19
  106. package/esm/components/Preview/Preview.js +0 -58
  107. package/esm/components/Redux/Redux.d.ts +0 -6
  108. package/esm/components/Redux/Redux.js +0 -72
  109. package/esm/components/ReduxSettings/ReduxSettings.d.ts +0 -9
  110. package/esm/components/ReduxSettings/ReduxSettings.js +0 -60
  111. package/esm/components/Requests/Requests.d.ts +0 -6
  112. package/esm/components/Requests/Requests.js +0 -61
  113. package/esm/components/Status/Status.d.ts +0 -6
  114. package/esm/components/Status/Status.js +0 -16
  115. package/esm/components/TaskManager/TaskManager.d.ts +0 -9
  116. package/esm/components/TaskManager/TaskManager.js +0 -22
  117. package/esm/components/Toggle/Toggle.d.ts +0 -9
  118. package/esm/components/Toggle/Toggle.js +0 -8
  119. package/esm/components/VirtualList/VirtualList.d.ts +0 -19
  120. package/esm/components/VirtualList/VirtualList.js +0 -30
  121. package/esm/components/Visual/Visual.d.ts +0 -6
  122. package/esm/components/Visual/Visual.js +0 -38
  123. package/esm/components/prefix.d.ts +0 -2
  124. package/esm/components/prefix.js +0 -2
  125. package/esm/data/boxSizes.d.ts +0 -2
  126. package/esm/data/boxSizes.js +0 -10
  127. package/esm/data/dispatcherActions.d.ts +0 -5
  128. package/esm/data/dispatcherActions.js +0 -35
  129. package/esm/data/panels.d.ts +0 -2
  130. package/esm/data/panels.js +0 -74
  131. package/esm/data/panelsArrangements.d.ts +0 -19
  132. package/esm/data/panelsArrangements.js +0 -19
  133. package/esm/data/reduxFilterOptions.d.ts +0 -20
  134. package/esm/data/reduxFilterOptions.js +0 -223
  135. package/esm/data/widgets.d.ts +0 -2
  136. package/esm/data/widgets.js +0 -85
  137. package/esm/hooks/index.d.ts +0 -7
  138. package/esm/hooks/index.js +0 -7
  139. package/esm/hooks/misc/hookState.d.ts +0 -8
  140. package/esm/hooks/misc/hookState.js +0 -6
  141. package/esm/hooks/misc/util.d.ts +0 -5
  142. package/esm/hooks/misc/util.js +0 -21
  143. package/esm/hooks/useBoolean.d.ts +0 -3
  144. package/esm/hooks/useBoolean.js +0 -3
  145. package/esm/hooks/useClickAway.d.ts +0 -3
  146. package/esm/hooks/useClickAway.js +0 -27
  147. package/esm/hooks/useEvent.d.ts +0 -13
  148. package/esm/hooks/useEvent.js +0 -35
  149. package/esm/hooks/useKey.d.ts +0 -12
  150. package/esm/hooks/useKey.js +0 -29
  151. package/esm/hooks/useList.d.ts +0 -57
  152. package/esm/hooks/useList.js +0 -74
  153. package/esm/hooks/useLocalstorage.d.ts +0 -10
  154. package/esm/hooks/useLocalstorage.js +0 -75
  155. package/esm/hooks/usePanels.d.ts +0 -10
  156. package/esm/hooks/usePanels.js +0 -43
  157. package/esm/hooks/useSetState.d.ts +0 -2
  158. package/esm/hooks/useSetState.js +0 -10
  159. package/esm/hooks/useToggle.d.ts +0 -2
  160. package/esm/hooks/useToggle.js +0 -6
  161. package/esm/hooks/useUpdate.d.ts +0 -1
  162. package/esm/hooks/useUpdate.js +0 -6
  163. package/esm/index.d.ts +0 -3
  164. package/esm/index.js +0 -3
  165. package/esm/selectors/selectors.d.ts +0 -21
  166. package/esm/selectors/selectors.js +0 -20
  167. package/esm/theme/devtoolsTheme.d.ts +0 -2
  168. package/esm/theme/devtoolsTheme.js +0 -95
  169. package/esm/utils/filter.d.ts +0 -3
  170. package/esm/utils/filter.js +0 -25
  171. package/esm/utils/localStorage.d.ts +0 -2
  172. package/esm/utils/localStorage.js +0 -21
  173. package/lib/components/Colors copy.css +0 -3
  174. package/lib/components/Colors copy.css.map +0 -1
  175. package/lib/components/Colors.css +0 -3
  176. package/lib/components/Colors.css.map +0 -1
  177. package/lib/components/ColorsDark.css +0 -3
  178. package/lib/components/ColorsDark.css.map +0 -1
  179. package/lib/components/Config/Config.css +0 -15
  180. package/lib/components/Config/Config.css.map +0 -1
  181. package/lib/components/Config/Config.d.ts +0 -6
  182. package/lib/components/Config/Config.js +0 -20
  183. package/lib/components/DevTools/DevTools.css +0 -3
  184. package/lib/components/DevTools/DevTools.css.map +0 -1
  185. package/lib/components/DevTools/DevTools.d.ts +0 -4
  186. package/lib/components/DevTools/DevTools.js +0 -24
  187. package/lib/components/Dispatcher/Dispatcher.css +0 -15
  188. package/lib/components/Dispatcher/Dispatcher.css.map +0 -1
  189. package/lib/components/Dispatcher/Dispatcher.d.ts +0 -8
  190. package/lib/components/Dispatcher/Dispatcher.js +0 -66
  191. package/lib/components/GlobalSettings/GlobalSettings.css +0 -3
  192. package/lib/components/GlobalSettings/GlobalSettings.css.map +0 -1
  193. package/lib/components/GlobalSettings/GlobalSettings.d.ts +0 -6
  194. package/lib/components/GlobalSettings/GlobalSettings.js +0 -21
  195. package/lib/components/Group/Group.css +0 -41
  196. package/lib/components/Group/Group.css.map +0 -1
  197. package/lib/components/Group/Group.d.ts +0 -9
  198. package/lib/components/Group/Group.js +0 -19
  199. package/lib/components/Json/Json.css +0 -3
  200. package/lib/components/Json/Json.css.map +0 -1
  201. package/lib/components/Json/Json.d.ts +0 -7
  202. package/lib/components/Json/Json.js +0 -14
  203. package/lib/components/Logs/Logs.css +0 -3
  204. package/lib/components/Logs/Logs.css.map +0 -1
  205. package/lib/components/Logs/Logs.d.ts +0 -6
  206. package/lib/components/Logs/Logs.js +0 -54
  207. package/lib/components/Monitor/Monitor.css +0 -3
  208. package/lib/components/Monitor/Monitor.css.map +0 -1
  209. package/lib/components/Monitor/Monitor.d.ts +0 -6
  210. package/lib/components/Monitor/Monitor.js +0 -57
  211. package/lib/components/OverlayManager/OverlayManager.css +0 -72
  212. package/lib/components/OverlayManager/OverlayManager.css.map +0 -1
  213. package/lib/components/OverlayManager/OverlayManager.d.ts +0 -6
  214. package/lib/components/OverlayManager/OverlayManager.js +0 -22
  215. package/lib/components/Panel/Panel.css +0 -35
  216. package/lib/components/Panel/Panel.css.map +0 -1
  217. package/lib/components/Panel/Panel.d.ts +0 -14
  218. package/lib/components/Panel/Panel.js +0 -51
  219. package/lib/components/Prefix copy.css +0 -3
  220. package/lib/components/Prefix copy.css.map +0 -1
  221. package/lib/components/Prefix.css +0 -3
  222. package/lib/components/Prefix.css.map +0 -1
  223. package/lib/components/Preview/Preview.css +0 -29
  224. package/lib/components/Preview/Preview.css.map +0 -1
  225. package/lib/components/Preview/Preview.d.ts +0 -19
  226. package/lib/components/Preview/Preview.js +0 -64
  227. package/lib/components/Reading.css +0 -107
  228. package/lib/components/Reading.css.map +0 -1
  229. package/lib/components/Redux/Redux.css +0 -86
  230. package/lib/components/Redux/Redux.css.map +0 -1
  231. package/lib/components/Redux/Redux.d.ts +0 -6
  232. package/lib/components/Redux/Redux.js +0 -77
  233. package/lib/components/ReduxSettings/ReduxSettings.css +0 -10
  234. package/lib/components/ReduxSettings/ReduxSettings.css.map +0 -1
  235. package/lib/components/ReduxSettings/ReduxSettings.d.ts +0 -9
  236. package/lib/components/ReduxSettings/ReduxSettings.js +0 -64
  237. package/lib/components/Requests/Requests.css +0 -8
  238. package/lib/components/Requests/Requests.css.map +0 -1
  239. package/lib/components/Requests/Requests.d.ts +0 -6
  240. package/lib/components/Requests/Requests.js +0 -66
  241. package/lib/components/Status/Status.css +0 -15
  242. package/lib/components/Status/Status.css.map +0 -1
  243. package/lib/components/Status/Status.d.ts +0 -6
  244. package/lib/components/Status/Status.js +0 -21
  245. package/lib/components/TaskManager/TaskManager.css +0 -9
  246. package/lib/components/TaskManager/TaskManager.css.map +0 -1
  247. package/lib/components/TaskManager/TaskManager.d.ts +0 -9
  248. package/lib/components/TaskManager/TaskManager.js +0 -28
  249. package/lib/components/Toggle/Toggle.css +0 -3
  250. package/lib/components/Toggle/Toggle.css.map +0 -1
  251. package/lib/components/Toggle/Toggle.d.ts +0 -9
  252. package/lib/components/Toggle/Toggle.js +0 -13
  253. package/lib/components/Variables.css +0 -3
  254. package/lib/components/Variables.css.map +0 -1
  255. package/lib/components/VirtualList/VirtualList.css +0 -13
  256. package/lib/components/VirtualList/VirtualList.css.map +0 -1
  257. package/lib/components/VirtualList/VirtualList.d.ts +0 -19
  258. package/lib/components/VirtualList/VirtualList.js +0 -35
  259. package/lib/components/Visual/Visual.css +0 -56
  260. package/lib/components/Visual/Visual.css.map +0 -1
  261. package/lib/components/Visual/Visual.d.ts +0 -6
  262. package/lib/components/Visual/Visual.js +0 -43
  263. package/lib/components/prefix.d.ts +0 -2
  264. package/lib/components/prefix.js +0 -5
  265. package/lib/data/boxSizes.d.ts +0 -2
  266. package/lib/data/boxSizes.js +0 -13
  267. package/lib/data/dispatcherActions.d.ts +0 -5
  268. package/lib/data/dispatcherActions.js +0 -38
  269. package/lib/data/panels.d.ts +0 -2
  270. package/lib/data/panels.js +0 -77
  271. package/lib/data/panelsArrangements.d.ts +0 -19
  272. package/lib/data/panelsArrangements.js +0 -22
  273. package/lib/data/reduxFilterOptions.d.ts +0 -20
  274. package/lib/data/reduxFilterOptions.js +0 -227
  275. package/lib/data/widgets.d.ts +0 -2
  276. package/lib/data/widgets.js +0 -89
  277. package/lib/hooks/index.d.ts +0 -7
  278. package/lib/hooks/index.js +0 -17
  279. package/lib/hooks/misc/hookState.d.ts +0 -8
  280. package/lib/hooks/misc/hookState.js +0 -10
  281. package/lib/hooks/misc/util.d.ts +0 -5
  282. package/lib/hooks/misc/util.js +0 -27
  283. package/lib/hooks/useBoolean.d.ts +0 -3
  284. package/lib/hooks/useBoolean.js +0 -7
  285. package/lib/hooks/useClickAway.d.ts +0 -3
  286. package/lib/hooks/useClickAway.js +0 -31
  287. package/lib/hooks/useEvent.d.ts +0 -13
  288. package/lib/hooks/useEvent.js +0 -37
  289. package/lib/hooks/useKey.d.ts +0 -12
  290. package/lib/hooks/useKey.js +0 -34
  291. package/lib/hooks/useList.d.ts +0 -57
  292. package/lib/hooks/useList.js +0 -79
  293. package/lib/hooks/useLocalstorage.d.ts +0 -10
  294. package/lib/hooks/useLocalstorage.js +0 -79
  295. package/lib/hooks/usePanels.d.ts +0 -10
  296. package/lib/hooks/usePanels.js +0 -47
  297. package/lib/hooks/useSetState.d.ts +0 -2
  298. package/lib/hooks/useSetState.js +0 -14
  299. package/lib/hooks/useToggle.d.ts +0 -2
  300. package/lib/hooks/useToggle.js +0 -10
  301. package/lib/hooks/useUpdate.d.ts +0 -1
  302. package/lib/hooks/useUpdate.js +0 -9
  303. package/lib/index.css +0 -488
  304. package/lib/index.css.map +0 -1
  305. package/lib/index.d.ts +0 -3
  306. package/lib/index.js +0 -9
  307. package/lib/selectors/selectors.d.ts +0 -21
  308. package/lib/selectors/selectors.js +0 -24
  309. package/lib/theme/devtoolsTheme.d.ts +0 -2
  310. package/lib/theme/devtoolsTheme.js +0 -97
  311. package/lib/utils/filter.d.ts +0 -3
  312. package/lib/utils/filter.js +0 -29
  313. package/lib/utils/localStorage.d.ts +0 -2
  314. package/lib/utils/localStorage.js +0 -26
@@ -1,74 +0,0 @@
1
- import { boxSizes } from './boxSizes';
2
- export var panels = {
3
- p1: {
4
- id: 'p1',
5
- widgetId: 'processes',
6
- title: 'Processes',
7
- description: 'Start & stop processes',
8
- dimension: boxSizes[0],
9
- position: { x: 2, y: 2 },
10
- },
11
- p2: {
12
- id: 'p2',
13
- widgetId: 'requests',
14
- title: 'Requests',
15
- description: 'Monitor API requests',
16
- dimension: boxSizes[0],
17
- position: { x: 16, y: 2 },
18
- },
19
- p3: {
20
- id: 'p3',
21
- widgetId: 'redux',
22
- title: 'Redux devtools',
23
- description: 'Watch actions and state changes',
24
- dimension: boxSizes[1],
25
- },
26
- p4: {
27
- id: 'p4',
28
- widgetId: 'endpoints',
29
- title: 'Endpoints Configuration',
30
- description: 'Configure API for root nodes ',
31
- dimension: boxSizes[0],
32
- position: { x: 30, y: 2 },
33
- },
34
- p5: {
35
- id: 'p5',
36
- widgetId: 'apiStatus',
37
- title: 'API Status',
38
- description: 'Connection status for root nodes',
39
- dimension: boxSizes[0],
40
- position: { x: 44, y: 2 },
41
- },
42
- p6: {
43
- id: 'p6',
44
- widgetId: 'logs',
45
- title: 'Logs',
46
- description: 'Watch console logs',
47
- dimension: boxSizes[0],
48
- position: { x: 2, y: 20 },
49
- },
50
- p7: {
51
- id: 'p7',
52
- widgetId: 'visual',
53
- title: 'Visual',
54
- description: 'High-level requests visualization by root node',
55
- dimension: boxSizes[0],
56
- position: { x: 16, y: 20 },
57
- },
58
- p8: {
59
- id: 'p8',
60
- widgetId: 'settings',
61
- title: 'Settings',
62
- description: 'Global settings',
63
- dimension: boxSizes[0],
64
- position: { x: 30, y: 20 },
65
- },
66
- p9: {
67
- id: 'p9',
68
- widgetId: 'preview',
69
- title: 'Preview',
70
- description: 'Preview a specific datapoint',
71
- dimension: boxSizes[0],
72
- position: { x: 44, y: 20 },
73
- },
74
- };
@@ -1,19 +0,0 @@
1
- export declare const arrangement1: {
2
- PANELS_STATE: string;
3
- 'PANEL_LOCK_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': string;
4
- 'PANEL_OFFSET_c607e8f8-2212-4702-9072-9f623a70cda8': string;
5
- 'PANEL_OFFSET_42ac4e09-1048-4758-961b-869f6fd995f3': string;
6
- 'PANEL_OFFSET_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': string;
7
- 'PANEL_OFFSET_fcc06beb-da2e-4bef-b8de-2b7754fa493f': string;
8
- 'PANEL_OFFSET_858c1417-cc0d-4320-9b13-002a130ebf49': string;
9
- 'TASK_MANAGER_c607e8f8-2212-4702-9072-9f623a70cda8': string;
10
- 'TASK_MANAGER_42ac4e09-1048-4758-961b-869f6fd995f3': string;
11
- 'TASK_MANAGER_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': string;
12
- 'TASK_MANAGER_fcc06beb-da2e-4bef-b8de-2b7754fa493f': string;
13
- 'TASK_MANAGER_858c1417-cc0d-4320-9b13-002a130ebf49': string;
14
- TASK_MANAGER_1: string;
15
- TASK_MANAGER_2: string;
16
- TASK_MANAGER_center: string;
17
- TASK_MANAGER_3: string;
18
- TASK_MANAGER_4: string;
19
- };
@@ -1,19 +0,0 @@
1
- export var arrangement1 = {
2
- PANELS_STATE: '[{"guid":"858c1417-cc0d-4320-9b13-002a130ebf49","isWide":false},{"guid":"dc4e0a4b-50b7-4900-adbb-2a93b9c0d826","isWide":true},{"guid":"fcc06beb-da2e-4bef-b8de-2b7754fa493f"},{"guid":"c607e8f8-2212-4702-9072-9f623a70cda8"},{"guid":"42ac4e09-1048-4758-961b-869f6fd995f3"}]',
3
- 'PANEL_LOCK_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': '"YES"',
4
- 'PANEL_OFFSET_c607e8f8-2212-4702-9072-9f623a70cda8': '{"x":-1051,"y":-417}',
5
- 'PANEL_OFFSET_42ac4e09-1048-4758-961b-869f6fd995f3': '{"x":-1050,"y":-8}',
6
- 'PANEL_OFFSET_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': '{"x":-290,"y":-8}',
7
- 'PANEL_OFFSET_fcc06beb-da2e-4bef-b8de-2b7754fa493f': '{"x":73,"y":-418}',
8
- 'PANEL_OFFSET_858c1417-cc0d-4320-9b13-002a130ebf49': '{"x":73,"y":-8}',
9
- 'TASK_MANAGER_c607e8f8-2212-4702-9072-9f623a70cda8': '"preview"',
10
- 'TASK_MANAGER_42ac4e09-1048-4758-961b-869f6fd995f3': '"apiStatus"',
11
- 'TASK_MANAGER_dc4e0a4b-50b7-4900-adbb-2a93b9c0d826': '"redux"',
12
- 'TASK_MANAGER_fcc06beb-da2e-4bef-b8de-2b7754fa493f': '"visual"',
13
- 'TASK_MANAGER_858c1417-cc0d-4320-9b13-002a130ebf49': '"requests"',
14
- TASK_MANAGER_1: '"preview"',
15
- TASK_MANAGER_2: '"apiStatus"',
16
- TASK_MANAGER_center: '"redux"',
17
- TASK_MANAGER_3: '"visual"',
18
- TASK_MANAGER_4: '"requests"',
19
- };
@@ -1,20 +0,0 @@
1
- import { Reading } from 'redux-connected';
2
- import { ApiInfoPerType } from 'redux-store-generator';
3
- export declare type IncludePredicate = (reading: Reading, apiInfo?: ApiInfoPerType) => boolean | undefined;
4
- export declare type ExcludePredicate = (reading: Reading, apiInfo?: ApiInfoPerType) => boolean | undefined;
5
- export interface ReadingsFilter {
6
- id: string;
7
- label: string;
8
- isShow?: boolean;
9
- include?: IncludePredicate;
10
- exclude?: ExcludePredicate;
11
- }
12
- export interface Preset {
13
- key: string;
14
- text: string;
15
- isCustom?: boolean;
16
- selectedItems?: string[];
17
- }
18
- export declare const readingsFilters: ReadingsFilter[];
19
- export declare const presets: Preset[];
20
- export declare const findPreset: (filters: Record<string, boolean>) => Preset;
@@ -1,223 +0,0 @@
1
- import { __spreadArray } from "tslib";
2
- export var readingsFilters = [
3
- {
4
- id: 'root',
5
- label: 'Show root',
6
- isShow: true,
7
- include: function (reading) {
8
- var action = reading.action;
9
- return action['@@redux-store-generator/AUTO_GENERATED_ACTION'];
10
- },
11
- },
12
- {
13
- id: 'apiState',
14
- label: 'Show API state',
15
- isShow: true,
16
- include: function (reading) {
17
- var action = reading.action;
18
- return action['@@redux-connected/STATUS_ACTION'];
19
- },
20
- },
21
- {
22
- id: 'apiConfig',
23
- label: 'Show API config',
24
- isShow: true,
25
- include: function (reading) {
26
- var action = reading.action;
27
- return action['@@redux-connected/CONFIG_ACTION'];
28
- },
29
- },
30
- {
31
- id: 'sagasMessages',
32
- label: 'Show sagas messages',
33
- isShow: true,
34
- include: function (reading) {
35
- var action = reading.action;
36
- return (action['@@redux-saga/SAGA_ACTION'] &&
37
- action.type !== 'LOG' &&
38
- !action['@@redux-store-generator/AUTO_GENERATED_ACTION']);
39
- },
40
- },
41
- {
42
- id: 'globalStats',
43
- label: 'Show global stats',
44
- isShow: true,
45
- include: function (reading) {
46
- var action = reading.action;
47
- return action['@@redux-connected/GLOBAL_STATS_ACTION'];
48
- },
49
- },
50
- {
51
- id: 'globalSettings',
52
- label: 'Show global settings',
53
- isShow: true,
54
- include: function (reading) {
55
- var action = reading.action;
56
- return action['@@redux-connected/GLOBAL_SETTINGS_ACTION'];
57
- },
58
- },
59
- {
60
- id: 'sagasInfo',
61
- label: 'Show sagas info',
62
- isShow: true,
63
- include: function (reading) {
64
- var action = reading.action;
65
- return action['@@redux-connected/SAGA_ACTION'];
66
- },
67
- },
68
- {
69
- id: 'log',
70
- label: 'Show log',
71
- isShow: true,
72
- include: function (reading) {
73
- var action = reading.action;
74
- return action.type === 'LOG';
75
- },
76
- },
77
- {
78
- id: 'hideGet',
79
- label: 'Hide get',
80
- exclude: function (reading, apiInfo) {
81
- if (apiInfo === void 0) { apiInfo = {}; }
82
- var action = reading.action;
83
- var info = apiInfo[action.type];
84
- return info === null || info === void 0 ? void 0 : info.isGet;
85
- },
86
- },
87
- {
88
- id: 'hidePatch',
89
- label: 'Hide patch',
90
- exclude: function (reading, apiInfo) {
91
- if (apiInfo === void 0) { apiInfo = {}; }
92
- var action = reading.action;
93
- var info = apiInfo[action.type];
94
- return (info === null || info === void 0 ? void 0 : info.verb) === 'patch';
95
- },
96
- },
97
- {
98
- id: 'hideSetAll',
99
- label: 'Hide setAll',
100
- exclude: function (reading, apiInfo) {
101
- if (apiInfo === void 0) { apiInfo = {}; }
102
- var action = reading.action;
103
- var info = apiInfo[action.type];
104
- return (info === null || info === void 0 ? void 0 : info.verb) === 'setAll';
105
- },
106
- },
107
- {
108
- id: 'hideSet',
109
- label: 'Hide set',
110
- exclude: function (reading, apiInfo) {
111
- if (apiInfo === void 0) { apiInfo = {}; }
112
- var action = reading.action;
113
- var info = apiInfo[action.type];
114
- return (info === null || info === void 0 ? void 0 : info.verb) === 'set';
115
- },
116
- },
117
- {
118
- id: 'hideDelete',
119
- label: 'Hide delete',
120
- exclude: function (reading, apiInfo) {
121
- if (apiInfo === void 0) { apiInfo = {}; }
122
- var action = reading.action;
123
- var info = apiInfo[action.type];
124
- return (info === null || info === void 0 ? void 0 : info.verb) === 'delete';
125
- },
126
- },
127
- {
128
- id: 'hidePush',
129
- label: 'Hide push',
130
- exclude: function (reading, apiInfo) {
131
- if (apiInfo === void 0) { apiInfo = {}; }
132
- var action = reading.action;
133
- var info = apiInfo[action.type];
134
- return (info === null || info === void 0 ? void 0 : info.verb) === 'push';
135
- },
136
- },
137
- {
138
- id: 'hidePop',
139
- label: 'Hide pop',
140
- exclude: function (reading, apiInfo) {
141
- if (apiInfo === void 0) { apiInfo = {}; }
142
- var action = reading.action;
143
- var info = apiInfo[action.type];
144
- return (info === null || info === void 0 ? void 0 : info.verb) === 'pop';
145
- },
146
- },
147
- {
148
- id: 'hideClear',
149
- label: 'Hide clear',
150
- exclude: function (reading, apiInfo) {
151
- if (apiInfo === void 0) { apiInfo = {}; }
152
- var action = reading.action;
153
- var info = apiInfo[action.type];
154
- return (info === null || info === void 0 ? void 0 : info.verb) === 'clear';
155
- },
156
- },
157
- ];
158
- export var presets = [
159
- {
160
- key: 'custom',
161
- text: 'Custom',
162
- isCustom: true,
163
- },
164
- {
165
- key: 'default',
166
- text: 'Default',
167
- selectedItems: ['root'].sort(),
168
- },
169
- {
170
- key: 'connected',
171
- text: 'Connected',
172
- selectedItems: [
173
- 'apiState',
174
- 'apiConfig',
175
- 'sagasMessages',
176
- 'globalStats',
177
- 'globalSettings',
178
- 'log',
179
- 'sagasInfo',
180
- ].sort(),
181
- },
182
- {
183
- key: 'get',
184
- text: 'GET',
185
- selectedItems: [
186
- 'root',
187
- 'hidePatch',
188
- 'hideSetAll',
189
- 'hideSet',
190
- 'hideDelete',
191
- 'hidePush',
192
- 'hidePop',
193
- 'hideClear',
194
- ].sort(),
195
- },
196
- {
197
- key: 'all',
198
- text: 'All',
199
- selectedItems: [
200
- 'root',
201
- 'apiState',
202
- 'apiConfig',
203
- 'sagasMessages',
204
- 'globalStats',
205
- 'globalSettings',
206
- 'sagasInfo',
207
- ].sort(),
208
- },
209
- ];
210
- var sameArray = function (array1, array2) {
211
- var sortedArray1 = __spreadArray([], array1).sort();
212
- var sortedArray2 = __spreadArray([], array2).sort();
213
- return (sortedArray1.length === sortedArray2.length &&
214
- sortedArray1.every(function (value, index) { return value === sortedArray2[index]; }));
215
- };
216
- export var findPreset = function (filters) {
217
- var checkedFilters = Object.keys(filters)
218
- .filter(function (key) { return filters[key]; })
219
- .sort();
220
- return (presets.find(function (preset) {
221
- return preset && sameArray(preset.selectedItems || [], checkedFilters);
222
- }) || presets[0]);
223
- };
@@ -1,2 +0,0 @@
1
- import { IWidget } from 'igrid';
2
- export declare const widgets: Record<string, IWidget>;
@@ -1,85 +0,0 @@
1
- import React from 'react';
2
- import { boxSizes } from './boxSizes';
3
- import Monitor from '../components/Monitor/Monitor';
4
- import Requests from '../components/Requests/Requests';
5
- import Redux from '../components/Redux/Redux';
6
- import Config from '../components/Config/Config';
7
- import Status from '../components/Status/Status';
8
- import Preview from '../components/Preview/Preview';
9
- import Logs from '../components/Logs/Logs';
10
- import Visual from '../components/Visual/Visual';
11
- import GlobalSettings from '../components/GlobalSettings/GlobalSettings';
12
- export var widgets = {
13
- processes: {
14
- id: 'processes',
15
- widgetId: 'processes',
16
- title: 'Processes',
17
- description: 'Start & stop processes',
18
- dimension: boxSizes[0],
19
- component: React.createElement(Monitor, { isWide: false }),
20
- },
21
- requests: {
22
- id: 'requests',
23
- widgetId: 'requests',
24
- title: 'Requests',
25
- description: 'Monitor API requests',
26
- dimension: boxSizes[0],
27
- component: React.createElement(Requests, { isWide: false }),
28
- },
29
- redux: {
30
- id: 'redux',
31
- widgetId: 'redux',
32
- title: 'Redux devtools',
33
- description: 'Watch actions and state changes',
34
- dimension: boxSizes[1],
35
- component: React.createElement(Redux, { isWide: true }),
36
- },
37
- endpoints: {
38
- id: 'endpoints',
39
- widgetId: 'endpoints',
40
- title: 'Endpoints Configuration',
41
- description: 'Configure API for root nodes ',
42
- dimension: boxSizes[0],
43
- component: React.createElement(Config, { isWide: false }),
44
- },
45
- apiStatus: {
46
- id: 'apiStatus',
47
- widgetId: 'apiStatus',
48
- title: 'API Status',
49
- description: 'Connection status for root nodes',
50
- dimension: boxSizes[0],
51
- component: React.createElement(Status, { isWide: false }),
52
- },
53
- logs: {
54
- id: 'logs',
55
- widgetId: 'logs',
56
- title: 'Logs',
57
- description: 'Watch console logs',
58
- dimension: boxSizes[0],
59
- component: React.createElement(Logs, { isWide: false }),
60
- },
61
- visual: {
62
- id: 'visual',
63
- widgetId: 'visual',
64
- title: 'Visual',
65
- description: 'High-level requests visualization by root node',
66
- dimension: boxSizes[0],
67
- component: React.createElement(Visual, { isWide: false }),
68
- },
69
- settings: {
70
- id: 'settings',
71
- widgetId: 'settings',
72
- title: 'Settings',
73
- description: 'Global settings',
74
- dimension: boxSizes[0],
75
- component: React.createElement(GlobalSettings, { isWide: false }),
76
- },
77
- preview: {
78
- id: 'preview',
79
- widgetId: 'preview',
80
- title: 'Preview',
81
- description: 'Preview a specific datapoint',
82
- dimension: boxSizes[0],
83
- component: React.createElement(Preview, { isWide: false }),
84
- },
85
- };
@@ -1,7 +0,0 @@
1
- export { useBoolean } from './useBoolean';
2
- export { useClickAway } from './useClickAway';
3
- export { useKey } from './useKey';
4
- export { useList } from './useList';
5
- export { useLocalstorage } from './useLocalstorage';
6
- export { useSetState } from './useSetState';
7
- export { useToggle } from './useToggle';
@@ -1,7 +0,0 @@
1
- export { useBoolean } from './useBoolean';
2
- export { useClickAway } from './useClickAway';
3
- export { useKey } from './useKey';
4
- export { useList } from './useList';
5
- export { useLocalstorage } from './useLocalstorage';
6
- export { useSetState } from './useSetState';
7
- export { useToggle } from './useToggle';
@@ -1,8 +0,0 @@
1
- export declare type IHookStateInitialSetter<S> = () => S;
2
- export declare type IHookStateInitAction<S> = S | IHookStateInitialSetter<S>;
3
- export declare type IHookStateSetter<S> = ((prevState: S) => S) | (() => S);
4
- export declare type IHookStateSetAction<S> = S | IHookStateSetter<S>;
5
- export declare type IHookStateResolvable<S> = S | IHookStateInitialSetter<S> | IHookStateSetter<S>;
6
- export declare function resolveHookState<S>(nextState: IHookStateInitAction<S>): S;
7
- export declare function resolveHookState<S, C extends S>(nextState: IHookStateSetAction<S>, currentState?: C): S;
8
- export declare function resolveHookState<S, C extends S>(nextState: IHookStateResolvable<S>, currentState?: C): S;
@@ -1,6 +0,0 @@
1
- export function resolveHookState(nextState, currentState) {
2
- if (typeof nextState === 'function') {
3
- return nextState.length ? nextState(currentState) : nextState();
4
- }
5
- return nextState;
6
- }
@@ -1,5 +0,0 @@
1
- export declare const noop: () => void;
2
- export declare function on<T extends Window | Document | HTMLElement | EventTarget>(obj: T | null, ...args: Parameters<T['addEventListener']> | [string, Function | null, ...any]): void;
3
- export declare function off<T extends Window | Document | HTMLElement | EventTarget>(obj: T | null, ...args: Parameters<T['removeEventListener']> | [string, Function | null, ...any]): void;
4
- export declare const isBrowser: boolean;
5
- export declare const isNavigator: boolean;
@@ -1,21 +0,0 @@
1
- export var noop = function () { };
2
- export function on(obj) {
3
- var args = [];
4
- for (var _i = 1; _i < arguments.length; _i++) {
5
- args[_i - 1] = arguments[_i];
6
- }
7
- if (obj && obj.addEventListener) {
8
- obj.addEventListener.apply(obj, args);
9
- }
10
- }
11
- export function off(obj) {
12
- var args = [];
13
- for (var _i = 1; _i < arguments.length; _i++) {
14
- args[_i - 1] = arguments[_i];
15
- }
16
- if (obj && obj.removeEventListener) {
17
- obj.removeEventListener.apply(obj, args);
18
- }
19
- }
20
- export var isBrowser = typeof window !== 'undefined';
21
- export var isNavigator = typeof navigator !== 'undefined';
@@ -1,3 +0,0 @@
1
- import _useBoolean from './useToggle';
2
- export declare const useBoolean: (initialValue: boolean) => [boolean, (nextValue?: any) => void];
3
- export default _useBoolean;
@@ -1,3 +0,0 @@
1
- import _useBoolean from './useToggle';
2
- export var useBoolean = _useBoolean;
3
- export default _useBoolean;
@@ -1,3 +0,0 @@
1
- import { RefObject } from 'react';
2
- export declare const useClickAway: <E extends Event = Event>(ref: RefObject<HTMLElement | null>, onClickAway: (event: E) => void, events?: string[]) => void;
3
- export default useClickAway;
@@ -1,27 +0,0 @@
1
- import { useEffect, useRef } from 'react';
2
- import { off, on } from './misc/util';
3
- var defaultEvents = ['mousedown', 'touchstart'];
4
- export var useClickAway = function (ref, onClickAway, events) {
5
- if (events === void 0) { events = defaultEvents; }
6
- var savedCallback = useRef(onClickAway);
7
- useEffect(function () {
8
- savedCallback.current = onClickAway;
9
- }, [onClickAway]);
10
- useEffect(function () {
11
- var handler = function (event) {
12
- var el = ref.current;
13
- el && !el.contains(event.target) && savedCallback.current(event);
14
- };
15
- for (var _i = 0, events_1 = events; _i < events_1.length; _i++) {
16
- var eventName = events_1[_i];
17
- on(document, eventName, handler);
18
- }
19
- return function () {
20
- for (var _i = 0, events_2 = events; _i < events_2.length; _i++) {
21
- var eventName = events_2[_i];
22
- off(document, eventName, handler);
23
- }
24
- };
25
- }, [events, ref]);
26
- };
27
- export default useClickAway;
@@ -1,13 +0,0 @@
1
- export interface ListenerType1 {
2
- addEventListener(name: string, handler: (event?: any) => void, ...args: any[]): any;
3
- removeEventListener(name: string, handler: (event?: any) => void, ...args: any[]): any;
4
- }
5
- export interface ListenerType2 {
6
- on(name: string, handler: (event?: any) => void, ...args: any[]): any;
7
- off(name: string, handler: (event?: any) => void, ...args: any[]): any;
8
- }
9
- export declare type UseEventTarget = ListenerType1 | ListenerType2;
10
- declare type AddEventListener<T> = T extends ListenerType1 ? T['addEventListener'] : T extends ListenerType2 ? T['on'] : never;
11
- export declare type UseEventOptions<T> = Parameters<AddEventListener<T>>[2];
12
- declare const useEvent: <T extends UseEventTarget>(name: Parameters<AddEventListener<T>>[0], handler?: Parameters<AddEventListener<T>>[1] | null | undefined, target?: Window | T | null, options?: UseEventOptions<T> | undefined) => void;
13
- export default useEvent;
@@ -1,35 +0,0 @@
1
- import { useEffect } from 'react';
2
- import { isBrowser, off, on } from './misc/util';
3
- var defaultTarget = isBrowser ? window : null;
4
- var isListenerType1 = function (target) {
5
- return !!target.addEventListener;
6
- };
7
- var isListenerType2 = function (target) {
8
- return !!target.on;
9
- };
10
- var useEvent = function (name, handler, target, options) {
11
- if (target === void 0) { target = defaultTarget; }
12
- useEffect(function () {
13
- if (!handler) {
14
- return;
15
- }
16
- if (!target) {
17
- return;
18
- }
19
- if (isListenerType1(target)) {
20
- on(target, name, handler, options);
21
- }
22
- else if (isListenerType2(target)) {
23
- target.on(name, handler, options);
24
- }
25
- return function () {
26
- if (isListenerType1(target)) {
27
- off(target, name, handler, options);
28
- }
29
- else if (isListenerType2(target)) {
30
- target.off(name, handler, options);
31
- }
32
- };
33
- }, [name, handler, target, JSON.stringify(options)]);
34
- };
35
- export default useEvent;
@@ -1,12 +0,0 @@
1
- import { DependencyList } from 'react';
2
- import { UseEventOptions, UseEventTarget } from './useEvent';
3
- export declare type KeyPredicate = (event: KeyboardEvent) => boolean;
4
- export declare type KeyFilter = null | undefined | string | ((event: KeyboardEvent) => boolean);
5
- export declare type Handler = (event: KeyboardEvent) => void;
6
- export interface UseKeyOptions<T extends UseEventTarget> {
7
- event?: 'keydown' | 'keypress' | 'keyup';
8
- target?: T | null;
9
- options?: UseEventOptions<T>;
10
- }
11
- export declare const useKey: <T extends UseEventTarget>(key: KeyFilter, fn?: Handler, opts?: UseKeyOptions<T>, deps?: DependencyList) => void;
12
- export default useKey;
@@ -1,29 +0,0 @@
1
- import { useMemo } from 'react';
2
- import useEvent from './useEvent';
3
- import { noop } from './misc/util';
4
- var createKeyPredicate = function (keyFilter) {
5
- return typeof keyFilter === 'function'
6
- ? keyFilter
7
- : typeof keyFilter === 'string'
8
- ? function (event) { return event.key === keyFilter; }
9
- : keyFilter
10
- ? function () { return true; }
11
- : function () { return false; };
12
- };
13
- export var useKey = function (key, fn, opts, deps) {
14
- if (fn === void 0) { fn = noop; }
15
- if (opts === void 0) { opts = {}; }
16
- if (deps === void 0) { deps = [key]; }
17
- var _a = opts.event, event = _a === void 0 ? 'keydown' : _a, target = opts.target, options = opts.options;
18
- var useMemoHandler = useMemo(function () {
19
- var predicate = createKeyPredicate(key);
20
- var handler = function (handlerEvent) {
21
- if (predicate(handlerEvent)) {
22
- return fn(handlerEvent);
23
- }
24
- };
25
- return handler;
26
- }, deps);
27
- useEvent(event, useMemoHandler, target, options);
28
- };
29
- export default useKey;