react-native-xenon 0.7.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -30
- package/lib/commonjs/core/refs.js +33 -0
- package/lib/commonjs/core/refs.js.map +1 -0
- package/lib/commonjs/core/utils.js +40 -9
- package/lib/commonjs/core/utils.js.map +1 -1
- package/lib/commonjs/hooks/useNetworkInterceptor.js +14 -15
- package/lib/commonjs/hooks/useNetworkInterceptor.js.map +1 -1
- package/lib/commonjs/interceptors/FetchInterceptor.js +6 -9
- package/lib/commonjs/interceptors/FetchInterceptor.js.map +1 -1
- package/lib/commonjs/interceptors/WebSocketInterceptor.js +2 -9
- package/lib/commonjs/interceptors/WebSocketInterceptor.js.map +1 -1
- package/lib/commonjs/interceptors/XHRInterceptor.js +9 -6
- package/lib/commonjs/interceptors/XHRInterceptor.js.map +1 -1
- package/lib/commonjs/theme/colors.js +6 -1
- package/lib/commonjs/theme/colors.js.map +1 -1
- package/lib/commonjs/ui/Xenon.js +47 -40
- package/lib/commonjs/ui/Xenon.js.map +1 -1
- package/lib/commonjs/ui/components/bubble/Bubble.js +37 -28
- package/lib/commonjs/ui/components/bubble/Bubble.js.map +1 -1
- package/lib/commonjs/ui/components/common/Divider.js +21 -0
- package/lib/commonjs/ui/components/common/Divider.js.map +1 -0
- package/lib/commonjs/ui/components/common/Icon.js +25 -0
- package/lib/commonjs/ui/components/common/Icon.js.map +1 -0
- package/lib/commonjs/ui/components/common/IndexedStack.js +46 -0
- package/lib/commonjs/ui/components/common/IndexedStack.js.map +1 -0
- package/lib/commonjs/ui/components/common/Touchable.js +22 -0
- package/lib/commonjs/ui/components/common/Touchable.js.map +1 -0
- package/lib/commonjs/ui/components/details/LogMessageDetails.js +24 -11
- package/lib/commonjs/ui/components/details/LogMessageDetails.js.map +1 -1
- package/lib/commonjs/ui/components/details/NetworkRequestDetails.js +64 -39
- package/lib/commonjs/ui/components/details/NetworkRequestDetails.js.map +1 -1
- package/lib/commonjs/ui/components/headers/ConsoleHeader.js +30 -0
- package/lib/commonjs/ui/components/headers/ConsoleHeader.js.map +1 -0
- package/lib/commonjs/ui/components/headers/DebuggerHeader.js +56 -177
- package/lib/commonjs/ui/components/headers/DebuggerHeader.js.map +1 -1
- package/lib/commonjs/ui/components/headers/Header.js +34 -0
- package/lib/commonjs/ui/components/headers/Header.js.map +1 -0
- package/lib/commonjs/ui/components/headers/HeaderComponents.js +111 -0
- package/lib/commonjs/ui/components/headers/HeaderComponents.js.map +1 -0
- package/lib/commonjs/ui/components/headers/NetworkHeader.js +97 -0
- package/lib/commonjs/ui/components/headers/NetworkHeader.js.map +1 -0
- package/lib/commonjs/ui/components/index.js +0 -7
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/components/items/ConsolePanelItem.js +8 -4
- package/lib/commonjs/ui/components/items/ConsolePanelItem.js.map +1 -1
- package/lib/commonjs/ui/components/items/DebuggerHeaderItem.js +5 -9
- package/lib/commonjs/ui/components/items/DebuggerHeaderItem.js.map +1 -1
- package/lib/commonjs/ui/components/items/NetworkPanelItem.js +54 -13
- package/lib/commonjs/ui/components/items/NetworkPanelItem.js.map +1 -1
- package/lib/commonjs/ui/components/items/NetworkRequestDetailsItem.js +19 -18
- package/lib/commonjs/ui/components/items/NetworkRequestDetailsItem.js.map +1 -1
- package/lib/commonjs/ui/components/panels/ConsolePanel.js +19 -10
- package/lib/commonjs/ui/components/panels/ConsolePanel.js.map +1 -1
- package/lib/commonjs/ui/components/panels/NetworkPanel.js +18 -13
- package/lib/commonjs/ui/components/panels/NetworkPanel.js.map +1 -1
- package/lib/commonjs/ui/components/panels/Panel.js +25 -0
- package/lib/commonjs/ui/components/panels/Panel.js.map +1 -0
- package/lib/module/core/refs.js +33 -0
- package/lib/module/core/refs.js.map +1 -0
- package/lib/module/core/utils.js +40 -9
- package/lib/module/core/utils.js.map +1 -1
- package/lib/module/hooks/useNetworkInterceptor.js +14 -15
- package/lib/module/hooks/useNetworkInterceptor.js.map +1 -1
- package/lib/module/interceptors/FetchInterceptor.js +6 -9
- package/lib/module/interceptors/FetchInterceptor.js.map +1 -1
- package/lib/module/interceptors/WebSocketInterceptor.js +2 -9
- package/lib/module/interceptors/WebSocketInterceptor.js.map +1 -1
- package/lib/module/interceptors/XHRInterceptor.js +9 -6
- package/lib/module/interceptors/XHRInterceptor.js.map +1 -1
- package/lib/module/theme/colors.js +6 -1
- package/lib/module/theme/colors.js.map +1 -1
- package/lib/module/ui/Xenon.js +47 -40
- package/lib/module/ui/Xenon.js.map +1 -1
- package/lib/module/ui/components/bubble/Bubble.js +37 -28
- package/lib/module/ui/components/bubble/Bubble.js.map +1 -1
- package/lib/module/ui/components/common/Divider.js +21 -0
- package/lib/module/ui/components/common/Divider.js.map +1 -0
- package/lib/module/ui/components/common/Icon.js +25 -0
- package/lib/module/ui/components/common/Icon.js.map +1 -0
- package/lib/module/ui/components/common/IndexedStack.js +46 -0
- package/lib/module/ui/components/common/IndexedStack.js.map +1 -0
- package/lib/module/ui/components/common/Touchable.js +22 -0
- package/lib/module/ui/components/common/Touchable.js.map +1 -0
- package/lib/module/ui/components/details/LogMessageDetails.js +24 -11
- package/lib/module/ui/components/details/LogMessageDetails.js.map +1 -1
- package/lib/module/ui/components/details/NetworkRequestDetails.js +64 -39
- package/lib/module/ui/components/details/NetworkRequestDetails.js.map +1 -1
- package/lib/module/ui/components/headers/ConsoleHeader.js +30 -0
- package/lib/module/ui/components/headers/ConsoleHeader.js.map +1 -0
- package/lib/module/ui/components/headers/DebuggerHeader.js +56 -177
- package/lib/module/ui/components/headers/DebuggerHeader.js.map +1 -1
- package/lib/module/ui/components/headers/Header.js +34 -0
- package/lib/module/ui/components/headers/Header.js.map +1 -0
- package/lib/module/ui/components/headers/HeaderComponents.js +111 -0
- package/lib/module/ui/components/headers/HeaderComponents.js.map +1 -0
- package/lib/module/ui/components/headers/NetworkHeader.js +97 -0
- package/lib/module/ui/components/headers/NetworkHeader.js.map +1 -0
- package/lib/module/ui/components/index.js +0 -7
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/items/ConsolePanelItem.js +8 -4
- package/lib/module/ui/components/items/ConsolePanelItem.js.map +1 -1
- package/lib/module/ui/components/items/DebuggerHeaderItem.js +5 -9
- package/lib/module/ui/components/items/DebuggerHeaderItem.js.map +1 -1
- package/lib/module/ui/components/items/NetworkPanelItem.js +54 -13
- package/lib/module/ui/components/items/NetworkPanelItem.js.map +1 -1
- package/lib/module/ui/components/items/NetworkRequestDetailsItem.js +19 -18
- package/lib/module/ui/components/items/NetworkRequestDetailsItem.js.map +1 -1
- package/lib/module/ui/components/panels/ConsolePanel.js +19 -10
- package/lib/module/ui/components/panels/ConsolePanel.js.map +1 -1
- package/lib/module/ui/components/panels/NetworkPanel.js +18 -13
- package/lib/module/ui/components/panels/NetworkPanel.js.map +1 -1
- package/lib/module/ui/components/panels/Panel.js +25 -0
- package/lib/module/ui/components/panels/Panel.js.map +1 -0
- package/lib/typescript/commonjs/src/core/refs.d.ts +24 -0
- package/lib/typescript/commonjs/src/core/refs.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/utils.d.ts +13 -5
- package/lib/typescript/commonjs/src/core/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNetworkInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/interceptors/FetchInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/interceptors/WebSocketInterceptor.d.ts +0 -1
- package/lib/typescript/commonjs/src/interceptors/WebSocketInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/interceptors/XHRInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/colors.d.ts +5 -0
- package/lib/typescript/commonjs/src/theme/colors.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/common.d.ts +2 -3
- package/lib/typescript/commonjs/src/types/common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/http.d.ts +5 -6
- package/lib/typescript/commonjs/src/types/http.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/websocket.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/websocket.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/Xenon.d.ts +5 -2
- package/lib/typescript/commonjs/src/ui/Xenon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/bubble/Bubble.d.ts +4 -5
- package/lib/typescript/commonjs/src/ui/components/bubble/Bubble.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/common/Divider.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/common/Divider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/common/Icon.d.ts +8 -0
- package/lib/typescript/commonjs/src/ui/components/common/Icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/common/IndexedStack.d.ts +13 -0
- package/lib/typescript/commonjs/src/ui/components/common/IndexedStack.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/common/Touchable.d.ts +10 -0
- package/lib/typescript/commonjs/src/ui/components/common/Touchable.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/details/LogMessageDetails.d.ts +5 -6
- package/lib/typescript/commonjs/src/ui/components/details/LogMessageDetails.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/details/NetworkRequestDetails.d.ts +5 -6
- package/lib/typescript/commonjs/src/ui/components/details/NetworkRequestDetails.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/headers/ConsoleHeader.d.ts +9 -0
- package/lib/typescript/commonjs/src/ui/components/headers/ConsoleHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/headers/DebuggerHeader.d.ts +9 -1
- package/lib/typescript/commonjs/src/ui/components/headers/DebuggerHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/headers/Header.d.ts +3 -0
- package/lib/typescript/commonjs/src/ui/components/headers/Header.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/headers/HeaderComponents.d.ts +20 -0
- package/lib/typescript/commonjs/src/ui/components/headers/HeaderComponents.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/headers/NetworkHeader.d.ts +9 -0
- package/lib/typescript/commonjs/src/ui/components/headers/NetworkHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/index.d.ts +0 -1
- package/lib/typescript/commonjs/src/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/ConsolePanelItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/DebuggerHeaderItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/NetworkPanelItem.d.ts +3 -2
- package/lib/typescript/commonjs/src/ui/components/items/NetworkPanelItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/NetworkRequestDetailsItem.d.ts +4 -5
- package/lib/typescript/commonjs/src/ui/components/items/NetworkRequestDetailsItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/panels/ConsolePanel.d.ts +5 -1
- package/lib/typescript/commonjs/src/ui/components/panels/ConsolePanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/panels/NetworkPanel.d.ts +5 -1
- package/lib/typescript/commonjs/src/ui/components/panels/NetworkPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/panels/Panel.d.ts +2 -0
- package/lib/typescript/commonjs/src/ui/components/panels/Panel.d.ts.map +1 -0
- package/lib/typescript/module/src/core/refs.d.ts +24 -0
- package/lib/typescript/module/src/core/refs.d.ts.map +1 -0
- package/lib/typescript/module/src/core/utils.d.ts +13 -5
- package/lib/typescript/module/src/core/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNetworkInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/interceptors/FetchInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/interceptors/WebSocketInterceptor.d.ts +0 -1
- package/lib/typescript/module/src/interceptors/WebSocketInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/interceptors/XHRInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/colors.d.ts +5 -0
- package/lib/typescript/module/src/theme/colors.d.ts.map +1 -1
- package/lib/typescript/module/src/types/common.d.ts +2 -3
- package/lib/typescript/module/src/types/common.d.ts.map +1 -1
- package/lib/typescript/module/src/types/http.d.ts +5 -6
- package/lib/typescript/module/src/types/http.d.ts.map +1 -1
- package/lib/typescript/module/src/types/websocket.d.ts +2 -2
- package/lib/typescript/module/src/types/websocket.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/Xenon.d.ts +5 -2
- package/lib/typescript/module/src/ui/Xenon.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/bubble/Bubble.d.ts +4 -5
- package/lib/typescript/module/src/ui/components/bubble/Bubble.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/common/Divider.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/common/Divider.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/common/Icon.d.ts +8 -0
- package/lib/typescript/module/src/ui/components/common/Icon.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/common/IndexedStack.d.ts +13 -0
- package/lib/typescript/module/src/ui/components/common/IndexedStack.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/common/Touchable.d.ts +10 -0
- package/lib/typescript/module/src/ui/components/common/Touchable.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/details/LogMessageDetails.d.ts +5 -6
- package/lib/typescript/module/src/ui/components/details/LogMessageDetails.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/details/NetworkRequestDetails.d.ts +5 -6
- package/lib/typescript/module/src/ui/components/details/NetworkRequestDetails.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/headers/ConsoleHeader.d.ts +9 -0
- package/lib/typescript/module/src/ui/components/headers/ConsoleHeader.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/headers/DebuggerHeader.d.ts +9 -1
- package/lib/typescript/module/src/ui/components/headers/DebuggerHeader.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/headers/Header.d.ts +3 -0
- package/lib/typescript/module/src/ui/components/headers/Header.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/headers/HeaderComponents.d.ts +20 -0
- package/lib/typescript/module/src/ui/components/headers/HeaderComponents.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/headers/NetworkHeader.d.ts +9 -0
- package/lib/typescript/module/src/ui/components/headers/NetworkHeader.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/index.d.ts +0 -1
- package/lib/typescript/module/src/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/items/ConsolePanelItem.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/items/DebuggerHeaderItem.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/items/NetworkPanelItem.d.ts +3 -2
- package/lib/typescript/module/src/ui/components/items/NetworkPanelItem.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/items/NetworkRequestDetailsItem.d.ts +4 -5
- package/lib/typescript/module/src/ui/components/items/NetworkRequestDetailsItem.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/panels/ConsolePanel.d.ts +5 -1
- package/lib/typescript/module/src/ui/components/panels/ConsolePanel.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/panels/NetworkPanel.d.ts +5 -1
- package/lib/typescript/module/src/ui/components/panels/NetworkPanel.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/panels/Panel.d.ts +2 -0
- package/lib/typescript/module/src/ui/components/panels/Panel.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/core/refs.ts +29 -0
- package/src/core/utils.ts +45 -14
- package/src/hooks/useNetworkInterceptor.ts +20 -27
- package/src/interceptors/FetchInterceptor.ts +7 -20
- package/src/interceptors/WebSocketInterceptor.ts +2 -11
- package/src/interceptors/XHRInterceptor.ts +13 -8
- package/src/theme/colors.ts +5 -0
- package/src/types/common.ts +2 -3
- package/src/types/http.ts +5 -6
- package/src/types/websocket.ts +2 -1
- package/src/ui/Xenon.tsx +45 -46
- package/src/ui/components/bubble/Bubble.tsx +101 -97
- package/src/ui/components/common/Divider.tsx +13 -0
- package/src/ui/components/common/Icon.tsx +12 -0
- package/src/ui/components/common/IndexedStack.tsx +62 -0
- package/src/ui/components/common/Touchable.tsx +21 -0
- package/src/ui/components/details/LogMessageDetails.tsx +31 -16
- package/src/ui/components/details/NetworkRequestDetails.tsx +143 -124
- package/src/ui/components/headers/ConsoleHeader.tsx +25 -0
- package/src/ui/components/headers/DebuggerHeader.tsx +28 -195
- package/src/ui/components/headers/Header.tsx +22 -0
- package/src/ui/components/headers/HeaderComponents.tsx +100 -0
- package/src/ui/components/headers/NetworkHeader.tsx +85 -0
- package/src/ui/components/index.ts +0 -1
- package/src/ui/components/items/ConsolePanelItem.tsx +11 -6
- package/src/ui/components/items/DebuggerHeaderItem.tsx +6 -10
- package/src/ui/components/items/NetworkPanelItem.tsx +64 -15
- package/src/ui/components/items/NetworkRequestDetailsItem.tsx +26 -21
- package/src/ui/components/panels/ConsolePanel.tsx +23 -10
- package/src/ui/components/panels/NetworkPanel.tsx +21 -14
- package/src/ui/components/panels/Panel.tsx +17 -0
- package/lib/commonjs/ui/components/details/DetailsViewer.js +0 -32
- package/lib/commonjs/ui/components/details/DetailsViewer.js.map +0 -1
- package/lib/module/ui/components/details/DetailsViewer.js +0 -32
- package/lib/module/ui/components/details/DetailsViewer.js.map +0 -1
- package/lib/typescript/commonjs/src/ui/components/details/DetailsViewer.d.ts +0 -2
- package/lib/typescript/commonjs/src/ui/components/details/DetailsViewer.d.ts.map +0 -1
- package/lib/typescript/module/src/ui/components/details/DetailsViewer.d.ts +0 -2
- package/lib/typescript/module/src/ui/components/details/DetailsViewer.d.ts.map +0 -1
- package/src/ui/components/details/DetailsViewer.tsx +0 -19
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
var _react = require("react");
|
8
|
+
function IndexedStackComponent({
|
9
|
+
children,
|
10
|
+
defaultIndex,
|
11
|
+
id
|
12
|
+
}, ref) {
|
13
|
+
const currentIndex = (0, _react.useRef)(defaultIndex);
|
14
|
+
const childrenRefs = (0, _react.useRef)([]);
|
15
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
16
|
+
getCurrentIndex: () => currentIndex.current,
|
17
|
+
setCurrentIndex: index => {
|
18
|
+
currentIndex.current = index;
|
19
|
+
childrenRefs.current.forEach((childRef, i) => {
|
20
|
+
if (childRef) {
|
21
|
+
childRef.setNativeProps({
|
22
|
+
style: {
|
23
|
+
display: i === index ? 'flex' : 'none'
|
24
|
+
}
|
25
|
+
});
|
26
|
+
}
|
27
|
+
});
|
28
|
+
}
|
29
|
+
}));
|
30
|
+
return _react.Children.map(children, (child, i) => {
|
31
|
+
return /*#__PURE__*/(0, _react.createElement)(child.type, {
|
32
|
+
...child.props,
|
33
|
+
key: `${id}-${i}`,
|
34
|
+
style: [child.props.style, {
|
35
|
+
display: i === defaultIndex ? 'flex' : 'none'
|
36
|
+
}],
|
37
|
+
ref: childRef => {
|
38
|
+
if (!childRef) return;
|
39
|
+
childrenRefs.current[i] = childRef;
|
40
|
+
}
|
41
|
+
});
|
42
|
+
});
|
43
|
+
}
|
44
|
+
const IndexedStack = /*#__PURE__*/(0, _react.forwardRef)(IndexedStackComponent);
|
45
|
+
var _default = exports.default = IndexedStack;
|
46
|
+
//# sourceMappingURL=IndexedStack.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["_react","require","IndexedStackComponent","children","defaultIndex","id","ref","currentIndex","useRef","childrenRefs","useImperativeHandle","getCurrentIndex","current","setCurrentIndex","index","forEach","childRef","i","setNativeProps","style","display","Children","map","child","createElement","type","props","key","IndexedStack","forwardRef","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["ui/components/common/IndexedStack.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAuBA,SAASC,qBAAqBA,CAC5B;EAAEC,QAAQ;EAAEC,YAAY;EAAEC;AAAyB,CAAC,EACpDC,GAAyC,EACzC;EACA,MAAMC,YAAY,GAAG,IAAAC,aAAM,EAAIJ,YAAiB,CAAC;EACjD,MAAMK,YAAY,GAAG,IAAAD,aAAM,EAAkB,EAAE,CAAC;EAEhD,IAAAE,0BAAmB,EAACJ,GAAG,EAAE,OAAO;IAC9BK,eAAe,EAAEA,CAAA,KAAMJ,YAAY,CAACK,OAAO;IAC3CC,eAAe,EAAGC,KAAa,IAAK;MAClCP,YAAY,CAACK,OAAO,GAAGE,KAAU;MACjCL,YAAY,CAACG,OAAO,CAACG,OAAO,CAAC,CAACC,QAAQ,EAAEC,CAAC,KAAK;QAC5C,IAAID,QAAQ,EAAE;UACZA,QAAQ,CAACE,cAAc,CAAC;YACtBC,KAAK,EAAE;cAAEC,OAAO,EAAEH,CAAC,KAAKH,KAAK,GAAG,MAAM,GAAG;YAAO;UAClD,CAAC,CAAC;QACJ;MACF,CAAC,CAAC;IACJ;EACF,CAAC,CAAC,CAAC;EAEH,OAAOO,eAAQ,CAACC,GAAG,CAACnB,QAAQ,EAAE,CAACoB,KAAK,EAAEN,CAAC,KAAK;IAC1C,oBAAO,IAAAO,oBAAa,EAACD,KAAK,CAACE,IAAI,EAAE;MAC/B,GAAGF,KAAK,CAACG,KAAK;MACdC,GAAG,EAAE,GAAGtB,EAAE,IAAIY,CAAC,EAAE;MACjBE,KAAK,EAAE,CAACI,KAAK,CAACG,KAAK,CAACP,KAAK,EAAE;QAAEC,OAAO,EAAEH,CAAC,KAAKb,YAAY,GAAG,MAAM,GAAG;MAAO,CAAC,CAAC;MAC7EE,GAAG,EAAGU,QAA8B,IAAK;QACvC,IAAI,CAACA,QAAQ,EAAE;QACfP,YAAY,CAACG,OAAO,CAACK,CAAC,CAAC,GAAGD,QAAQ;MACpC;IACF,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;AAEA,MAAMY,YAAY,gBAAG,IAAAC,iBAAU,EAAC3B,qBAAqB,CAErC;AAAC,IAAA4B,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEFJ,YAAY","ignoreList":[]}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = Touchable;
|
7
|
+
var _reactNative = require("react-native");
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
9
|
+
function Touchable({
|
10
|
+
onPress,
|
11
|
+
children,
|
12
|
+
activeOpacity = 0.8,
|
13
|
+
style
|
14
|
+
}) {
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
16
|
+
onPress: onPress,
|
17
|
+
activeOpacity: activeOpacity,
|
18
|
+
style: style,
|
19
|
+
children: children
|
20
|
+
});
|
21
|
+
}
|
22
|
+
//# sourceMappingURL=Touchable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_jsxRuntime","Touchable","onPress","children","activeOpacity","style","jsx","TouchableOpacity"],"sourceRoot":"../../../../../src","sources":["ui/components/common/Touchable.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAgF,IAAAC,WAAA,GAAAD,OAAA;AASjE,SAASE,SAASA,CAAC;EAChCC,OAAO;EACPC,QAAQ;EACRC,aAAa,GAAG,GAAG;EACnBC;AACc,CAAC,EAAE;EACjB,oBACE,IAAAL,WAAA,CAAAM,GAAA,EAACR,YAAA,CAAAS,gBAAgB;IAACL,OAAO,EAAEA,OAAQ;IAACE,aAAa,EAAEA,aAAc;IAACC,KAAK,EAAEA,KAAM;IAAAF,QAAA,EAC5EA;EAAQ,CACO,CAAC;AAEvB","ignoreList":[]}
|
@@ -3,30 +3,43 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.default =
|
6
|
+
exports.default = void 0;
|
7
7
|
var _reactNative = require("react-native");
|
8
8
|
var _utils = require("../../../core/utils");
|
9
9
|
var _colors = _interopRequireDefault(require("../../../theme/colors"));
|
10
|
+
var _react = require("react");
|
11
|
+
var _contexts = require("../../../contexts");
|
10
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
11
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
12
|
-
|
13
|
-
|
14
|
-
}) {
|
14
|
+
const LogMessageDetails = /*#__PURE__*/(0, _react.forwardRef)(({
|
15
|
+
style
|
16
|
+
}, ref) => {
|
17
|
+
const {
|
18
|
+
debuggerState: {
|
19
|
+
detailsData
|
20
|
+
}
|
21
|
+
} = (0, _react.useContext)(_contexts.MainContext);
|
22
|
+
const item = detailsData?.data;
|
15
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
16
|
-
|
24
|
+
ref: ref,
|
25
|
+
style: [styles.container, {
|
26
|
+
backgroundColor: (0, _utils.getConsoleTypeColor)(item?.type ?? '')
|
27
|
+
}, style],
|
17
28
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
18
|
-
|
29
|
+
style: styles.text,
|
30
|
+
children: (0, _utils.formatLogMessage)(item?.values ?? [])
|
19
31
|
})
|
20
32
|
});
|
21
|
-
}
|
33
|
+
});
|
22
34
|
const styles = _reactNative.StyleSheet.create({
|
23
35
|
container: {
|
24
36
|
flex: 1,
|
25
|
-
|
37
|
+
padding: 8
|
26
38
|
},
|
27
|
-
|
28
|
-
|
29
|
-
|
39
|
+
text: {
|
40
|
+
color: _colors.default.black,
|
41
|
+
fontSize: 14
|
30
42
|
}
|
31
43
|
});
|
44
|
+
var _default = exports.default = LogMessageDetails;
|
32
45
|
//# sourceMappingURL=LogMessageDetails.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_utils","_colors","_interopRequireDefault","_jsxRuntime","e","__esModule","default","LogMessageDetails","item","
|
1
|
+
{"version":3,"names":["_reactNative","require","_utils","_colors","_interopRequireDefault","_react","_contexts","_jsxRuntime","e","__esModule","default","LogMessageDetails","forwardRef","style","ref","debuggerState","detailsData","useContext","MainContext","item","data","jsx","ScrollView","styles","container","backgroundColor","getConsoleTypeColor","type","children","Text","text","formatLogMessage","values","StyleSheet","create","flex","padding","color","colors","black","fontSize","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/details/LogMessageDetails.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAAgD,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAG,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhD,MAAMG,iBAAiB,gBAAG,IAAAC,iBAAU,EAClC,CAAC;EAAEC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAClB,MAAM;IACJC,aAAa,EAAE;MAAEC;IAAY;EAC/B,CAAC,GAAG,IAAAC,iBAAU,EAACC,qBAAW,CAAE;EAE5B,MAAMC,IAAI,GAAGH,WAAW,EAAEI,IAA8B;EAExD,oBACE,IAAAb,WAAA,CAAAc,GAAA,EAACrB,YAAA,CAAAsB,UAAU;IACTR,GAAG,EAAEA,GAAI;IACTD,KAAK,EAAE,CACLU,MAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAE,IAAAC,0BAAmB,EAACP,IAAI,EAAEQ,IAAI,IAAI,EAAE;IAAE,CAAC,EAC1Dd,KAAK,CACL;IAAAe,QAAA,eAEF,IAAArB,WAAA,CAAAc,GAAA,EAACrB,YAAA,CAAA6B,IAAI;MAAChB,KAAK,EAAEU,MAAM,CAACO,IAAK;MAAAF,QAAA,EAAE,IAAAG,uBAAgB,EAACZ,IAAI,EAAEa,MAAM,IAAI,EAAE;IAAC,CAAO;EAAC,CAC7D,CAAC;AAEjB,CACF,CAAC;AAED,MAAMT,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE;EACX,CAAC;EACDN,IAAI,EAAE;IACJO,KAAK,EAAEC,eAAM,CAACC,KAAK;IACnBC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAhC,OAAA,GAEYC,iBAAiB","ignoreList":[]}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.default =
|
6
|
+
exports.default = void 0;
|
7
7
|
var _react = require("react");
|
8
8
|
var _reactNative = require("react-native");
|
9
9
|
var _contexts = require("../../../contexts");
|
@@ -12,16 +12,17 @@ var _colors = _interopRequireDefault(require("../../../theme/colors"));
|
|
12
12
|
var _NetworkRequestDetailsItem = _interopRequireDefault(require("../items/NetworkRequestDetailsItem"));
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
15
|
-
|
16
|
-
|
17
|
-
}) {
|
15
|
+
const NetworkRequestDetails = /*#__PURE__*/(0, _react.forwardRef)(({
|
16
|
+
style
|
17
|
+
}, ref) => {
|
18
18
|
const {
|
19
19
|
debuggerState: {
|
20
20
|
detailsData
|
21
21
|
}
|
22
22
|
} = (0, _react.useContext)(_contexts.MainContext);
|
23
|
+
const item = detailsData?.data;
|
23
24
|
const beautified = (0, _react.useRef)(null);
|
24
|
-
const shouldBeautifiedRefUpdate = beautified.current !== detailsData?.beautified;
|
25
|
+
const shouldBeautifiedRefUpdate = beautified.current !== detailsData?.beautified && typeof detailsData?.beautified === 'boolean';
|
25
26
|
const {
|
26
27
|
isHttp,
|
27
28
|
requestUrl,
|
@@ -38,7 +39,15 @@ function NetworkRequestDetails({
|
|
38
39
|
response: null,
|
39
40
|
messages: null
|
40
41
|
});
|
41
|
-
if (
|
42
|
+
if (!item) {
|
43
|
+
content.current.overview = null;
|
44
|
+
content.current.headers = null;
|
45
|
+
content.current.request = null;
|
46
|
+
content.current.response = null;
|
47
|
+
content.current.messages = null;
|
48
|
+
beautified.current = null;
|
49
|
+
}
|
50
|
+
if (overviewShown && !content.current.overview && item) {
|
42
51
|
content.current.overview = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
43
52
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
44
53
|
label: "Request Type",
|
@@ -49,75 +58,90 @@ function NetworkRequestDetails({
|
|
49
58
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
50
59
|
label: "Request Method",
|
51
60
|
content: (0, _utils.formatRequestMethod)(isHttp ? item.method : undefined)
|
52
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
53
|
-
label: "Duration",
|
54
|
-
content: (0, _utils.formatRequestDuration)(item.duration)
|
55
61
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
56
62
|
label: "Status Code",
|
57
63
|
content: (0, _utils.formatRequestStatusCode)(item.status)
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
65
|
+
label: "Start Time",
|
66
|
+
content: new Date(item.startTime ?? 0).toUTCString()
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
68
|
+
label: "End Time",
|
69
|
+
content: new Date(item.endTime ?? 0).toUTCString()
|
70
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
71
|
+
label: "Duration",
|
72
|
+
content: (0, _utils.formatRequestDuration)(item.startTime, item.endTime)
|
58
73
|
})]
|
59
74
|
});
|
60
75
|
}
|
61
|
-
if (headersShown && !content.current.headers) {
|
76
|
+
if (headersShown && !content.current.headers && item) {
|
77
|
+
let headers = [];
|
78
|
+
let requestHeaders = [];
|
79
|
+
let responseHeaders = [];
|
80
|
+
if (!isHttp) {
|
81
|
+
headers = Object.entries(item.options?.headers ?? {});
|
82
|
+
}
|
83
|
+
if (isHttp) {
|
84
|
+
for (const [key, value] of (item.requestHeaders ?? new Map()).entries()) {
|
85
|
+
requestHeaders.push([key, value]);
|
86
|
+
}
|
87
|
+
for (const [key, value] of (item.responseHeaders ?? new Map()).entries()) {
|
88
|
+
responseHeaders.push([key, value]);
|
89
|
+
}
|
90
|
+
}
|
62
91
|
content.current.headers = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
63
|
-
children: [!isHttp && /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
92
|
+
children: [!isHttp && !!headers.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
64
93
|
label: "Headers",
|
65
|
-
content:
|
66
|
-
}), isHttp && /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
94
|
+
content: headers
|
95
|
+
}), isHttp && !!requestHeaders.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
67
96
|
label: "Request Headers",
|
68
|
-
content:
|
69
|
-
}), isHttp && /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
97
|
+
content: requestHeaders
|
98
|
+
}), isHttp && !!responseHeaders.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
70
99
|
label: "Response Headers",
|
71
|
-
content:
|
100
|
+
content: responseHeaders
|
72
101
|
})]
|
73
102
|
});
|
74
103
|
}
|
75
|
-
if (requestShown && shouldBeautifiedRefUpdate) {
|
76
|
-
|
104
|
+
if (requestShown && shouldBeautifiedRefUpdate && item && requestUrl.searchParams) {
|
105
|
+
let queryStringParameters = [];
|
77
106
|
requestUrl.searchParams.forEach((value, name) => {
|
78
|
-
queryStringParameters.push(
|
79
|
-
label: "Query String",
|
80
|
-
content: (0, _utils.keyValueToString)(name, value, null)
|
81
|
-
}, (0, _utils.keyValueToString)(name, value, null)));
|
107
|
+
queryStringParameters.push([name, value]);
|
82
108
|
});
|
109
|
+
const body = (0, _utils.beautify)(item.body, detailsData?.beautified ?? false);
|
83
110
|
content.current.request = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
84
|
-
children: [queryStringParameters
|
111
|
+
children: [!!queryStringParameters.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
112
|
+
label: "Query String",
|
113
|
+
content: queryStringParameters
|
114
|
+
}), !!body && /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
85
115
|
label: "Body",
|
86
|
-
content:
|
116
|
+
content: body
|
87
117
|
})]
|
88
118
|
});
|
89
119
|
}
|
90
|
-
if (responseShown && shouldBeautifiedRefUpdate) {
|
120
|
+
if (responseShown && shouldBeautifiedRefUpdate && item) {
|
91
121
|
content.current.response = /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
92
122
|
label: "Response",
|
93
123
|
content: (0, _utils.beautify)(item.response, detailsData?.beautified ?? false)
|
94
124
|
});
|
95
125
|
}
|
96
|
-
if (messagesShown && !content.current.messages) {
|
126
|
+
if (messagesShown && !content.current.messages && item) {
|
97
127
|
content.current.messages = /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkRequestDetailsItem.default, {
|
98
128
|
label: "Messages",
|
99
|
-
content:
|
129
|
+
content: item.messages
|
100
130
|
});
|
101
131
|
}
|
102
132
|
if (shouldBeautifiedRefUpdate) {
|
103
133
|
beautified.current = detailsData?.beautified ?? false;
|
104
134
|
}
|
105
135
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
106
|
-
|
107
|
-
|
108
|
-
children: content.current[detailsData
|
136
|
+
ref: ref,
|
137
|
+
style: [styles.container, style],
|
138
|
+
children: content.current[detailsData?.selectedTab]
|
109
139
|
});
|
110
|
-
}
|
140
|
+
});
|
111
141
|
const styles = _reactNative.StyleSheet.create({
|
112
142
|
container: {
|
113
|
-
flex: 1
|
114
|
-
|
115
|
-
contentContainer: {
|
116
|
-
paddingHorizontal: 8
|
117
|
-
},
|
118
|
-
divider: {
|
119
|
-
height: _reactNative.StyleSheet.hairlineWidth,
|
120
|
-
backgroundColor: _colors.default.gray
|
143
|
+
flex: 1,
|
144
|
+
padding: 8
|
121
145
|
},
|
122
146
|
text: {
|
123
147
|
fontSize: 14,
|
@@ -135,4 +159,5 @@ const styles = _reactNative.StyleSheet.create({
|
|
135
159
|
alignItems: 'center'
|
136
160
|
}
|
137
161
|
});
|
162
|
+
var _default = exports.default = NetworkRequestDetails;
|
138
163
|
//# sourceMappingURL=NetworkRequestDetails.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_contexts","_utils","_colors","_interopRequireDefault","_NetworkRequestDetailsItem","_jsxRuntime","e","__esModule","default","NetworkRequestDetails","
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_contexts","_utils","_colors","_interopRequireDefault","_NetworkRequestDetailsItem","_jsxRuntime","e","__esModule","default","NetworkRequestDetails","forwardRef","style","ref","debuggerState","detailsData","useContext","MainContext","item","data","beautified","useRef","shouldBeautifiedRefUpdate","current","isHttp","requestUrl","overviewShown","headersShown","requestShown","responseShown","messagesShown","getNetworkUtils","content","overview","headers","request","response","messages","jsxs","Fragment","children","jsx","label","type","url","formatRequestMethod","method","undefined","formatRequestStatusCode","status","Date","startTime","toUTCString","endTime","formatRequestDuration","requestHeaders","responseHeaders","Object","entries","options","key","value","Map","push","length","searchParams","queryStringParameters","forEach","name","body","beautify","ScrollView","styles","container","selectedTab","StyleSheet","create","flex","padding","text","fontSize","color","colors","black","fontWeight","buttonContent","borderRadius","borderWidth","alignItems","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/details/NetworkRequestDetails.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAOA,IAAAI,OAAA,GAAAC,sBAAA,CAAAL,OAAA;AAEA,IAAAM,0BAAA,GAAAD,sBAAA,CAAAL,OAAA;AAA2E,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAK,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE3E,MAAMG,qBAAqB,gBAAG,IAAAC,iBAAU,EACtC,CAAC;EAAEC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAClB,MAAM;IACJC,aAAa,EAAE;MAAEC;IAAY;EAC/B,CAAC,GAAG,IAAAC,iBAAU,EAACC,qBAAW,CAAE;EAE5B,MAAMC,IAAI,GAAGH,WAAW,EAAEI,IAAkD;EAE5E,MAAMC,UAAU,GAAG,IAAAC,aAAM,EAAiB,IAAI,CAAC;EAC/C,MAAMC,yBAAyB,GAC7BF,UAAU,CAACG,OAAO,KAAKR,WAAW,EAAEK,UAAU,IAC9C,OAAOL,WAAW,EAAEK,UAAU,KAAK,SAAS;EAE9C,MAAM;IACJI,MAAM;IACNC,UAAU;IACVC,aAAa;IACbC,YAAY;IAC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AAAI,OAAyB;MACxBiC,KAAK,EAAC,UAAU;MAChBV,OAAO,EAAGd,IAAI,CAAsBmB;IAAU,CAC/C,CACF;EACH;EAEA,IAAIf,yBAAyB,EAAE;IAC7BF,UAAU,CAACG,OAAO,GAAGR,WAAW,EAAEK,UAAU,IAAI,KAAK;EACvD;EAEA,oBACE,IAAAd,WAAA,CAAAmC,GAAA,EAACzC,YAAA,CAAAuE,UAAU;IAAC1D,GAAG,EAAEA,GAAI;IAACD,KAAK,EAAE,CAAC4D,MAAM,CAACC,SAAS,EAAE7D,KAAK,CAAE;IAAA4B,QAAA,EACpDR,OAAO,CAACT,OAAO,CAACR,WAAW,EAAE2D,WAAW;EAAiC,CAChE,CAAC;AAEjB,CACF,CAAC;AAED,MAAMF,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE;EACX,CAAC;EACDC,IAAI,EAAE;IACJC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEC,eAAM,CAACC;EAChB,CAAC;EACDzC,KAAK,EAAE;IACLsC,QAAQ,EAAE,EAAE;IACZI,UAAU,EAAE,MAAM;IAClBH,KAAK,EAAEC,eAAM,CAACC;EAChB,CAAC;EACDE,aAAa,EAAE;IACbP,OAAO,EAAE,CAAC;IACVQ,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjF,OAAA,GAEYC,qBAAqB","ignoreList":[]}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
var _react = require("react");
|
8
|
+
var _Divider = _interopRequireDefault(require("../common/Divider"));
|
9
|
+
var _HeaderComponents = _interopRequireDefault(require("./HeaderComponents"));
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
12
|
+
const ConsoleHeader = /*#__PURE__*/(0, _react.forwardRef)(({
|
13
|
+
selectedPanel,
|
14
|
+
style
|
15
|
+
}, ref) => {
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_HeaderComponents.default.Wrapper, {
|
17
|
+
ref: ref,
|
18
|
+
style: style,
|
19
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderComponents.default.Back, {
|
20
|
+
selectedPanel: selectedPanel
|
21
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderComponents.default.MainButtons, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Divider.default, {
|
22
|
+
type: "vertical"
|
23
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderComponents.default.TabItem, {
|
24
|
+
tab: "logMessage",
|
25
|
+
label: "Console"
|
26
|
+
})]
|
27
|
+
});
|
28
|
+
});
|
29
|
+
var _default = exports.default = ConsoleHeader;
|
30
|
+
//# sourceMappingURL=ConsoleHeader.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["_react","require","_Divider","_interopRequireDefault","_HeaderComponents","_jsxRuntime","e","__esModule","default","ConsoleHeader","forwardRef","selectedPanel","style","ref","jsxs","Wrapper","children","jsx","Back","MainButtons","type","TabItem","tab","label","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/headers/ConsoleHeader.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAAkD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQlD,MAAMG,aAAa,gBAAG,IAAAC,iBAAU,EAC9B,CAAC;EAAEC,aAAa;EAAEC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACjC,oBACE,IAAAR,WAAA,CAAAS,IAAA,EAACV,iBAAA,CAAAI,OAAgB,CAACO,OAAO;IAACF,GAAG,EAAEA,GAAI;IAACD,KAAK,EAAEA,KAAM;IAAAI,QAAA,gBAC/C,IAAAX,WAAA,CAAAY,GAAA,EAACb,iBAAA,CAAAI,OAAgB,CAACU,IAAI;MAACP,aAAa,EAAEA;IAAc,CAAE,CAAC,eACvD,IAAAN,WAAA,CAAAY,GAAA,EAACb,iBAAA,CAAAI,OAAgB,CAACW,WAAW,IAAE,CAAC,eAChC,IAAAd,WAAA,CAAAY,GAAA,EAACf,QAAA,CAAAM,OAAO;MAACY,IAAI,EAAC;IAAU,CAAE,CAAC,eAC3B,IAAAf,WAAA,CAAAY,GAAA,EAACb,iBAAA,CAAAI,OAAgB,CAACa,OAAO;MAACC,GAAG,EAAC,YAAY;MAACC,KAAK,EAAC;IAAS,CAAE,CAAC;EAAA,CACrC,CAAC;AAE/B,CACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjB,OAAA,GAEaC,aAAa","ignoreList":[]}
|