react-native-inapp-inspector 2.4.1 → 2.5.0
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.ar.md +163 -0
- package/README.de.md +163 -0
- package/README.es.md +164 -0
- package/README.fr.md +163 -0
- package/README.hi.md +163 -0
- package/README.ja.md +180 -0
- package/README.ko.md +163 -0
- package/README.md +340 -243
- package/README.pt-BR.md +163 -0
- package/README.ru.md +163 -0
- package/README.zh-CN.md +387 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +605 -23
- package/assets/banner_dark.svg +186 -0
- package/assets/banner_light.svg +186 -0
- package/assets/icon_circle.svg +148 -0
- package/assets/icon_square.svg +369 -0
- package/assets/inapp_inspector_icon.gif +0 -0
- package/assets/inapp_inspector_icon_original.gif +0 -0
- package/assets/social_preview.png +0 -0
- package/assets/walkthrough.gif +0 -0
- package/dist/commonjs/capture.d.ts +2 -0
- package/dist/commonjs/capture.js +1 -1
- package/dist/commonjs/components/AnalyticsDetail.js +23 -23
- package/dist/commonjs/components/AnalyticsEventCard.js +1 -1
- package/dist/commonjs/components/AnalyticsGraph.js +44 -44
- package/dist/commonjs/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/commonjs/components/AnimatedBrandOwl.js +175 -0
- package/dist/commonjs/components/AppHeaderLogo.d.ts +1 -0
- package/dist/commonjs/components/AppHeaderLogo.js +5 -3
- package/dist/commonjs/components/BrandCircleIcon.js +28 -28
- package/dist/commonjs/components/BrandSquareIcon.d.ts +5 -0
- package/dist/commonjs/components/BrandSquareIcon.js +139 -0
- package/dist/commonjs/components/ConsoleLogCard.d.ts +2 -1
- package/dist/commonjs/components/ConsoleLogCard.js +23 -39
- package/dist/commonjs/components/Inspector/AboutModal.js +44 -54
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +6 -6
- package/dist/commonjs/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/ConfirmationModal.js +30 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.js +12 -12
- package/dist/commonjs/components/Inspector/CrashTab.js +44 -9
- package/dist/commonjs/components/Inspector/DebuggingTab.js +17 -17
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +1 -1
- package/dist/commonjs/components/Inspector/FabLauncher.js +30 -33
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +2 -2
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.d.ts +3 -0
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +54 -0
- package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.d.ts +11 -0
- package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.js +234 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +137 -127
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +172 -0
- package/dist/commonjs/components/Inspector/MainScreen.js +55 -35
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +40 -35
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +36 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +341 -135
- package/dist/commonjs/components/Inspector/NetworkTab.js +50 -50
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/commonjs/components/Inspector/PushCard.d.ts +3 -2
- package/dist/commonjs/components/Inspector/PushCard.js +5 -4
- package/dist/commonjs/components/Inspector/PushDetail.js +41 -32
- package/dist/commonjs/components/Inspector/PushTab.js +12 -12
- package/dist/commonjs/components/Inspector/ReduxDetail.js +32 -32
- package/dist/commonjs/components/Inspector/ReduxTab.js +10 -8
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.d.ts +2 -0
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.js +43 -0
- package/dist/commonjs/components/Inspector/SettingsPanel.js +287 -139
- package/dist/commonjs/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SocketCard.js +116 -0
- package/dist/commonjs/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/commonjs/components/Inspector/SocketDetail.js +327 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/commonjs/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/SocketTab.js +112 -0
- package/dist/commonjs/components/Inspector/StorageTab.js +39 -37
- package/dist/commonjs/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/commonjs/components/Inspector/SupportModal.js +125 -0
- package/dist/commonjs/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SupportPage.js +227 -0
- package/dist/commonjs/components/Inspector/TabBar.js +24 -23
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +24 -24
- package/dist/commonjs/components/JsonViewer.js +50 -48
- package/dist/commonjs/components/LogCard.d.ts +3 -2
- package/dist/commonjs/components/LogCard.js +27 -25
- package/dist/commonjs/components/LogSyntaxHighlighter.js +5 -5
- package/dist/commonjs/components/ModuleErrorBoundary.js +5 -5
- package/dist/commonjs/components/NetworkIcons.d.ts +42 -0
- package/dist/commonjs/components/NetworkIcons.js +139 -6
- package/dist/commonjs/components/SegmentedTabs.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/crash.d.ts +1 -1
- package/dist/commonjs/crash.js +1 -1
- package/dist/commonjs/customHooks/crashHandler.d.ts +2 -1
- package/dist/commonjs/customHooks/crashHandler.js +7 -7
- package/dist/commonjs/customHooks/socketLogger.d.ts +26 -0
- package/dist/commonjs/customHooks/socketLogger.js +2 -0
- package/dist/commonjs/editor.d.ts +13 -0
- package/dist/commonjs/editor.js +1 -0
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +3 -3
- package/dist/commonjs/helpers/memoryManager.d.ts +1 -0
- package/dist/commonjs/helpers/memoryManager.js +1 -1
- package/dist/commonjs/helpers/searchQueryParser.d.ts +1 -1
- package/dist/commonjs/helpers/searchQueryParser.js +5 -1
- package/dist/commonjs/helpers/settingsStore.d.ts +1 -0
- package/dist/commonjs/helpers/settingsStore.js +1 -1
- package/dist/commonjs/helpers/shareFormatter.d.ts +3 -1
- package/dist/commonjs/helpers/shareFormatter.js +8 -7
- package/dist/commonjs/helpers/telemetry.js +1 -1
- package/dist/commonjs/i18n/index.d.ts +99 -1
- package/dist/commonjs/i18n/index.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -0
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -0
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -0
- package/dist/commonjs/i18n/locales/it.json +1 -0
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -0
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -0
- package/dist/commonjs/i18n/locales/mr.json +1 -0
- package/dist/commonjs/i18n/locales/nl.json +1 -0
- package/dist/commonjs/i18n/locales/pa.json +1 -0
- package/dist/commonjs/i18n/locales/pl.json +1 -0
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -0
- package/dist/commonjs/i18n/locales/te.json +1 -0
- package/dist/commonjs/i18n/locales/tr.json +1 -0
- package/dist/commonjs/i18n/locales/vi.json +1 -0
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.d.ts +16 -13
- package/dist/commonjs/index.js +5 -4
- package/dist/commonjs/native/NativeInspector.d.ts +4 -0
- package/dist/commonjs/native/NativeInspector.js +1 -1
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +4 -0
- package/dist/commonjs/socket.d.ts +4 -0
- package/dist/commonjs/socket.js +1 -0
- package/dist/commonjs/styles/AppColors.d.ts +42 -2
- package/dist/commonjs/styles/AppColors.js +1 -1
- package/dist/commonjs/styles/common.js +1 -1
- package/dist/commonjs/styles/index.d.ts +30 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/editor.d.ts +96 -0
- package/dist/commonjs/types/editor.js +1 -0
- package/dist/commonjs/types/enums.d.ts +40 -0
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +143 -1
- package/dist/esm/capture.d.ts +2 -0
- package/dist/esm/capture.js +1 -1
- package/dist/esm/components/AnalyticsDetail.js +31 -31
- package/dist/esm/components/AnalyticsEventCard.js +1 -1
- package/dist/esm/components/AnalyticsGraph.js +74 -74
- package/dist/esm/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/esm/components/AnimatedBrandOwl.js +175 -0
- package/dist/esm/components/AppHeaderLogo.d.ts +1 -0
- package/dist/esm/components/AppHeaderLogo.js +7 -5
- package/dist/esm/components/BrandCircleIcon.js +70 -70
- package/dist/esm/components/BrandSquareIcon.d.ts +5 -0
- package/dist/esm/components/BrandSquareIcon.js +139 -0
- package/dist/esm/components/ConsoleLogCard.d.ts +2 -1
- package/dist/esm/components/ConsoleLogCard.js +61 -77
- package/dist/esm/components/Inspector/AboutModal.js +85 -95
- package/dist/esm/components/Inspector/AnalyticsTab.js +24 -24
- package/dist/esm/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/esm/components/Inspector/ConfirmationModal.js +30 -0
- package/dist/esm/components/Inspector/ConsoleTab.js +48 -48
- package/dist/esm/components/Inspector/CrashTab.js +203 -168
- package/dist/esm/components/Inspector/DebuggingTab.js +29 -29
- package/dist/esm/components/Inspector/DeviceInfoTab.js +75 -75
- package/dist/esm/components/Inspector/FabLauncher.js +57 -60
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +7 -7
- package/dist/esm/components/Inspector/FloatingCaptureWidget.d.ts +3 -0
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +54 -0
- package/dist/esm/components/Inspector/GlobalCrashScreenModal.d.ts +11 -0
- package/dist/esm/components/Inspector/GlobalCrashScreenModal.js +234 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +162 -152
- package/dist/esm/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/esm/components/Inspector/LanguageSelectorModal.js +172 -0
- package/dist/esm/components/Inspector/MainScreen.js +130 -110
- package/dist/esm/components/Inspector/MediaGalleryTab.js +83 -78
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +36 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.js +345 -139
- package/dist/esm/components/Inspector/NetworkTab.js +130 -130
- package/dist/esm/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/esm/components/Inspector/PushCard.d.ts +3 -2
- package/dist/esm/components/Inspector/PushCard.js +23 -22
- package/dist/esm/components/Inspector/PushDetail.js +45 -36
- package/dist/esm/components/Inspector/PushTab.js +23 -23
- package/dist/esm/components/Inspector/ReduxDetail.js +42 -42
- package/dist/esm/components/Inspector/ReduxTab.js +20 -18
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.d.ts +2 -0
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.js +43 -0
- package/dist/esm/components/Inspector/SettingsPanel.js +526 -378
- package/dist/esm/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/esm/components/Inspector/SocketCard.js +116 -0
- package/dist/esm/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/esm/components/Inspector/SocketDetail.js +327 -0
- package/dist/esm/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/esm/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/esm/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/esm/components/Inspector/SocketTab.js +112 -0
- package/dist/esm/components/Inspector/StorageTab.js +139 -137
- package/dist/esm/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/esm/components/Inspector/SupportModal.js +125 -0
- package/dist/esm/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/esm/components/Inspector/SupportPage.js +227 -0
- package/dist/esm/components/Inspector/TabBar.js +36 -35
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +22 -22
- package/dist/esm/components/JsonViewer.js +66 -64
- package/dist/esm/components/LogCard.d.ts +3 -2
- package/dist/esm/components/LogCard.js +57 -55
- package/dist/esm/components/LogSyntaxHighlighter.js +5 -5
- package/dist/esm/components/ModuleErrorBoundary.js +23 -23
- package/dist/esm/components/NetworkIcons.d.ts +42 -0
- package/dist/esm/components/NetworkIcons.js +139 -6
- package/dist/esm/components/SegmentedTabs.js +7 -7
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.d.ts +1 -1
- package/dist/esm/crash.js +1 -1
- package/dist/esm/customHooks/crashHandler.d.ts +2 -1
- package/dist/esm/customHooks/crashHandler.js +7 -7
- package/dist/esm/customHooks/socketLogger.d.ts +26 -0
- package/dist/esm/customHooks/socketLogger.js +2 -0
- package/dist/esm/editor.d.ts +13 -0
- package/dist/esm/editor.js +1 -0
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +4 -4
- package/dist/esm/helpers/memoryManager.d.ts +1 -0
- package/dist/esm/helpers/memoryManager.js +1 -1
- package/dist/esm/helpers/searchQueryParser.d.ts +1 -1
- package/dist/esm/helpers/searchQueryParser.js +5 -1
- package/dist/esm/helpers/settingsStore.d.ts +1 -0
- package/dist/esm/helpers/settingsStore.js +1 -1
- package/dist/esm/helpers/shareFormatter.d.ts +3 -1
- package/dist/esm/helpers/shareFormatter.js +8 -7
- package/dist/esm/helpers/telemetry.js +1 -1
- package/dist/esm/i18n/index.d.ts +99 -1
- package/dist/esm/i18n/index.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -0
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -0
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -0
- package/dist/esm/i18n/locales/it.json +1 -0
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -0
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -0
- package/dist/esm/i18n/locales/mr.json +1 -0
- package/dist/esm/i18n/locales/nl.json +1 -0
- package/dist/esm/i18n/locales/pa.json +1 -0
- package/dist/esm/i18n/locales/pl.json +1 -0
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -0
- package/dist/esm/i18n/locales/te.json +1 -0
- package/dist/esm/i18n/locales/tr.json +1 -0
- package/dist/esm/i18n/locales/vi.json +1 -0
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.d.ts +16 -13
- package/dist/esm/index.js +8 -7
- package/dist/esm/native/NativeInspector.d.ts +4 -0
- package/dist/esm/native/NativeInspector.js +1 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +4 -0
- package/dist/esm/socket.d.ts +4 -0
- package/dist/esm/socket.js +1 -0
- package/dist/esm/styles/AppColors.d.ts +42 -2
- package/dist/esm/styles/AppColors.js +1 -1
- package/dist/esm/styles/common.js +1 -1
- package/dist/esm/styles/index.d.ts +30 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/editor.d.ts +96 -0
- package/dist/esm/types/editor.js +1 -0
- package/dist/esm/types/enums.d.ts +40 -0
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +143 -1
- package/editor.d.ts +1 -0
- package/editor.js +1 -0
- package/ios/NetworkInspectorModule.mm +531 -12
- package/package.json +213 -2
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +65 -4
- package/src/native/NativeNetworkInspector.ts +4 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,l,o){o===void 0&&(o=l);var r=Object.getOwnPropertyDescriptor(t,l);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[l]}}),Object.defineProperty(e,o,r)}):(function(e,t,l,o){o===void 0&&(o=l),e[o]=t[l]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),__importStar=this&&this.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(l){var o=[];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(o[o.length]=r);return o},e(t)};return function(t){if(t&&t.__esModule)return t;var l={};if(t!=null)for(var o=e(t),r=0;r<o.length;r++)o[r]!=="default"&&__createBinding(l,t,o[r]);return __setModuleDefault(l,t),l}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),i18n_1=require("../i18n"),TreeNode_1=__importDefault(require("./TreeNode")),HighlightText_1=__importDefault(require("./HighlightText")),TouchableScale_1=__importDefault(require("./TouchableScale")),NetworkIcons_1=require("./NetworkIcons"),AppColors_1=require("../styles/AppColors"),AppFonts_1=require("../styles/AppFonts"),helpers_1=require("../helpers"),NativeInspector_1=require("../native/NativeInspector"),monoFont=react_native_1.Platform.select({ios:"Menlo",android:"monospace",default:"monospace"}),getTypeDetails=e=>e===null?{label:"null",color:AppColors_1.AppColors.errorColor,bg:AppColors_1.AppColors.errorCardBg,border:AppColors_1.AppColors.errorBorder}:e===void 0?{label:"undef",color:AppColors_1.AppColors.errorColor,bg:AppColors_1.AppColors.errorCardBg,border:AppColors_1.AppColors.errorBorder}:Array.isArray(e)?{label:`arr[${e.length}]`,color:AppColors_1.AppColors.blue600,bg:AppColors_1.AppColors.blueBg,border:AppColors_1.AppColors.sky100}:typeof e=="object"?{label:`obj{${Object.keys(e).length}}`,color:AppColors_1.AppColors.violet600,bg:AppColors_1.AppColors.purple50,border:AppColors_1.AppColors.purple200}:typeof e=="number"?{label:"num",color:AppColors_1.AppColors.amber600,bg:AppColors_1.AppColors.amber100,border:AppColors_1.AppColors.amber200}:typeof e=="boolean"?{label:"bool",color:AppColors_1.AppColors.pink600,bg:AppColors_1.AppColors.roseBg,border:AppColors_1.AppColors.roseBorder}:{label:"str",color:AppColors_1.AppColors.emerald600,bg:AppColors_1.AppColors.emeraldBg,border:AppColors_1.AppColors.emeraldBorder},RawValueText=react_1.default.memo(({text:e,search:t,detectLinks:l})=>{const o=e.trim();let r=localStyles.rawMonospaceText;return o.startsWith('"')?r=localStyles.syntaxString:o==="null"||o.startsWith("null,")||o==="undefined"?r=localStyles.syntaxNull:o==="true"||o.startsWith("true,")||o==="false"||o.startsWith("false,")?r=localStyles.syntaxBoolean:/^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?,?$/.test(o)&&(r=localStyles.syntaxNumber),<HighlightText_1.default text={e}search={t}detectLinks={l}style={r}selectable={!0}highlightStyle={localStyles.highlight}/>}),RawJsonLine=react_1.default.memo(({line:e,search:t,detectLinks:l})=>{const o=e.match(/^(\s+)(.*)$/),r=o?o[1]:"",d=o?o[2]:e,u=r?r.replace(/ /g,"\xB7 ").replace(/ /g,"\xB7"):"",
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,l,o){o===void 0&&(o=l);var r=Object.getOwnPropertyDescriptor(t,l);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[l]}}),Object.defineProperty(e,o,r)}):(function(e,t,l,o){o===void 0&&(o=l),e[o]=t[l]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),__importStar=this&&this.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(l){var o=[];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(o[o.length]=r);return o},e(t)};return function(t){if(t&&t.__esModule)return t;var l={};if(t!=null)for(var o=e(t),r=0;r<o.length;r++)o[r]!=="default"&&__createBinding(l,t,o[r]);return __setModuleDefault(l,t),l}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),i18n_1=require("../i18n"),TreeNode_1=__importDefault(require("./TreeNode")),HighlightText_1=__importDefault(require("./HighlightText")),TouchableScale_1=__importDefault(require("./TouchableScale")),NetworkIcons_1=require("./NetworkIcons"),AppColors_1=require("../styles/AppColors"),AppFonts_1=require("../styles/AppFonts"),helpers_1=require("../helpers"),NativeInspector_1=require("../native/NativeInspector"),monoFont=react_native_1.Platform.select({ios:"Menlo",android:"monospace",default:"monospace"}),getTypeDetails=e=>e===null?{label:"null",color:AppColors_1.AppColors.errorColor,bg:AppColors_1.AppColors.errorCardBg,border:AppColors_1.AppColors.errorBorder}:e===void 0?{label:"undef",color:AppColors_1.AppColors.errorColor,bg:AppColors_1.AppColors.errorCardBg,border:AppColors_1.AppColors.errorBorder}:Array.isArray(e)?{label:`arr[${e.length}]`,color:AppColors_1.AppColors.blue600,bg:AppColors_1.AppColors.blueBg,border:AppColors_1.AppColors.sky100}:typeof e=="object"?{label:`obj{${Object.keys(e).length}}`,color:AppColors_1.AppColors.violet600,bg:AppColors_1.AppColors.purple50,border:AppColors_1.AppColors.purple200}:typeof e=="number"?{label:"num",color:AppColors_1.AppColors.amber600,bg:AppColors_1.AppColors.amber100,border:AppColors_1.AppColors.amber200}:typeof e=="boolean"?{label:"bool",color:AppColors_1.AppColors.pink600,bg:AppColors_1.AppColors.roseBg,border:AppColors_1.AppColors.roseBorder}:{label:"str",color:AppColors_1.AppColors.emerald600,bg:AppColors_1.AppColors.emeraldBg,border:AppColors_1.AppColors.emeraldBorder},RawValueText=react_1.default.memo(({text:e,search:t,detectLinks:l})=>{const o=e.trim();let r=localStyles.rawMonospaceText;return o.startsWith('"')?r=localStyles.syntaxString:o==="null"||o.startsWith("null,")||o==="undefined"?r=localStyles.syntaxNull:o==="true"||o.startsWith("true,")||o==="false"||o.startsWith("false,")?r=localStyles.syntaxBoolean:/^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?,?$/.test(o)&&(r=localStyles.syntaxNumber),<HighlightText_1.default text={e}search={t}detectLinks={l}style={r}selectable={!0}highlightStyle={localStyles.highlight}/>}),RawJsonLine=react_1.default.memo(({line:e,search:t,detectLinks:l})=>{const o=e.match(/^(\s+)(.*)$/),r=o?o[1]:"",d=o?o[2]:e,u=r?r.replace(/ /g,"\xB7 ").replace(/ /g,"\xB7"):"",a=d.match(/^("(?:[^"\\]|\\.)*")(\s*:\s*)(.*)$/);if(a){const c=a[1],y=a[2],i=a[3];return<react_native_1.View style={localStyles.rawLineContentRow}>
|
|
2
2
|
{u.length>0&&<react_native_1.Text style={localStyles.indentDots}>{u}</react_native_1.Text>}
|
|
3
|
-
<HighlightText_1.default text={
|
|
3
|
+
<HighlightText_1.default text={c}search={t}style={localStyles.syntaxKey}selectable={!0}highlightStyle={localStyles.highlight}/>
|
|
4
4
|
<react_native_1.Text style={localStyles.syntaxColon}>{y}</react_native_1.Text>
|
|
5
|
-
<RawValueText text={
|
|
5
|
+
<RawValueText text={i}search={t}detectLinks={l}/>
|
|
6
6
|
</react_native_1.View>}return<react_native_1.View style={localStyles.rawLineContentRow}>
|
|
7
7
|
{u.length>0&&<react_native_1.Text style={localStyles.indentDots}>{u}</react_native_1.Text>}
|
|
8
8
|
<RawValueText text={d}search={t}detectLinks={l}/>
|
|
9
|
-
</react_native_1.View>}),JsonTableRow=react_1.default.memo(({itemKey:e,val:t,search:l,index:o})=>{const[r,d]=(0,react_1.useState)(!1),u=t!==null&&typeof t=="object",
|
|
10
|
-
`)||
|
|
9
|
+
</react_native_1.View>}),JsonTableRow=react_1.default.memo(({itemKey:e,val:t,search:l,index:o})=>{const[r,d]=(0,react_1.useState)(!1),u=t!==null&&typeof t=="object",a=getTypeDetails(t);let c="";if(t===null)c="null";else if(t===void 0)c="undefined";else if(u)try{c=JSON.stringify(t,null,2)}catch{c=String(t)}else c=String(t);const y=c.includes(`
|
|
10
|
+
`)||c.length>80;return<react_native_1.View style={[localStyles.tableRow,o%2===1&&localStyles.tableRowAlt]}>
|
|
11
11
|
|
|
12
12
|
<react_native_1.View style={localStyles.tableColKey}>
|
|
13
13
|
<HighlightText_1.default text={e}search={l}style={localStyles.tableCellKey}highlightStyle={localStyles.highlight}/>
|
|
14
|
-
<react_native_1.View style={[localStyles.typePill,{backgroundColor:
|
|
15
|
-
<react_native_1.Text style={[localStyles.typePillText,{color:
|
|
16
|
-
{
|
|
14
|
+
<react_native_1.View style={[localStyles.typePill,{backgroundColor:a.bg,borderColor:a.border}]}>
|
|
15
|
+
<react_native_1.Text style={[localStyles.typePillText,{color:a.color}]}>
|
|
16
|
+
{a.label}
|
|
17
17
|
</react_native_1.Text>
|
|
18
18
|
</react_native_1.View>
|
|
19
19
|
</react_native_1.View>
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
|
|
22
22
|
<react_native_1.View style={localStyles.tableColVal}>
|
|
23
23
|
<react_native_1.View style={u?localStyles.tableCodeBox:void 0}>
|
|
24
|
-
<HighlightText_1.default text={
|
|
24
|
+
<HighlightText_1.default text={c}search={l}style={[localStyles.tableCellValue,t==null?localStyles.syntaxNull:void 0,typeof t=="number"?localStyles.syntaxNumber:void 0,typeof t=="boolean"?localStyles.syntaxBoolean:void 0,typeof t=="string"?localStyles.syntaxString:void 0]}highlightStyle={localStyles.highlight}numberOfLines={r?void 0:3}selectable={!0}/>
|
|
25
25
|
</react_native_1.View>
|
|
26
|
-
{y&&<react_native_1.TouchableOpacity onPress={()=>d(
|
|
26
|
+
{y&&<react_native_1.TouchableOpacity onPress={()=>d(i=>!i)}hitSlop={6}style={localStyles.showMoreBtn}>
|
|
27
27
|
<react_native_1.Text style={localStyles.showMoreText}>
|
|
28
28
|
{r?"Collapse":"Expand"}
|
|
29
29
|
</react_native_1.Text>
|
|
30
|
-
<NetworkIcons_1.ChevronIcon direction={r?"up":"down"}size={9}color=
|
|
30
|
+
<NetworkIcons_1.ChevronIcon direction={r?"up":"down"}size={9}color={AppColors_1.AppColors.purple}/>
|
|
31
31
|
</react_native_1.TouchableOpacity>}
|
|
32
32
|
</react_native_1.View>
|
|
33
|
-
</react_native_1.View>}),JsonViewer=react_1.default.memo(({data:e,search:t,forceOpen:l,defaultExpandDepth:o=1,wrap:r,fullHeight:d=!1,maxHeight:u,mode:
|
|
34
|
-
`):[""],[A]),q=(0,react_1.useMemo)(()=>
|
|
35
|
-
`).length:1,[
|
|
33
|
+
</react_native_1.View>}),JsonViewer=react_1.default.memo(({data:e,search:t,forceOpen:l,defaultExpandDepth:o=1,wrap:r,fullHeight:d=!1,maxHeight:u,mode:a,onModeChange:c,hideTabs:y=!1})=>{const{t:i}=(0,i18n_1.useTranslation)(),[O,B]=(0,react_1.useState)(a??"raw"),[z,R]=(0,react_1.useState)(!1),[f,k]=(0,react_1.useState)(r??!0),[w,N]=(0,react_1.useState)("compact"),[b,F]=(0,react_1.useState)(l),[D,M]=(0,react_1.useState)(!1),s=c&&a?a:O,m=n=>{B(n),c&&c(n)};(0,react_1.useEffect)(()=>{r!==void 0&&k(r)},[r]),(0,react_1.useEffect)(()=>{l!==void 0&&F(l)},[l]),(0,react_1.useEffect)(()=>{a&&B(a)},[a]);const g=(0,react_1.useMemo)(()=>{if(e==null)return"";if(typeof e=="string"){const n=e.trim();try{const p=JSON.parse(n);return JSON.stringify(p,null,2)}catch{return e}}try{return JSON.stringify(e,null,2)??""}catch{return String(e)||""}},[e]),S=(0,react_1.useMemo)(()=>{if(typeof e=="string"){const n=e.trim();try{const p=JSON.parse(n);return JSON.stringify(p)}catch{return e}}try{return JSON.stringify(e)??""}catch{return String(e)||""}},[e]),H=w==="formatted"?g:S,I=5e4,h=typeof H=="string"?H:"",j=h.length>I&&!D,A=j?h.slice(0,I):h,V=(0,react_1.useMemo)(()=>A?A.split(`
|
|
34
|
+
`):[""],[A]),q=(0,react_1.useMemo)(()=>s==="raw"?V.length:g?g.split(`
|
|
35
|
+
`).length:1,[s,V.length,g]),J=(0,react_1.useMemo)(()=>(0,helpers_1.getSize)(e),[e]),L=(0,react_1.useCallback)(()=>{(0,NativeInspector_1.triggerNativeHaptic)("success"),(0,helpers_1.copyToClipboard)(w==="compact"?S:g,"JSON"),R(!0),setTimeout(()=>R(!1),1200)},[w,S,g]),v=typeof e=="object"&&e!==null,E=e==null||v&&Object.keys(e).length===0,W=()=>{if(!v)return<react_native_1.View style={localStyles.tableRow}>
|
|
36
36
|
<react_native_1.View style={localStyles.tableColKey}>
|
|
37
37
|
<react_native_1.Text style={localStyles.tableCellKey}>
|
|
38
|
-
{
|
|
38
|
+
{i("network.jsonViewer.value")}
|
|
39
39
|
</react_native_1.Text>
|
|
40
40
|
</react_native_1.View>
|
|
41
41
|
<react_native_1.View style={localStyles.tableColVal}>
|
|
@@ -43,15 +43,17 @@
|
|
|
43
43
|
</react_native_1.View>
|
|
44
44
|
</react_native_1.View>;let n=Object.keys(e);if(t&&t.trim().length>0){const p=t.trim().toLowerCase();n=n.filter(x=>{const T=e[x],K=typeof T=="object"&&T!==null?JSON.stringify(T):String(T);return x.toLowerCase().includes(p)||K.toLowerCase().includes(p)})}return n.length===0?<react_native_1.View style={localStyles.emptyContainer}>
|
|
45
45
|
<react_native_1.Text style={localStyles.emptyText}>
|
|
46
|
-
{t&&t.trim().length>0?"No matching keys or values found":
|
|
46
|
+
{t&&t.trim().length>0?i("network.jsonViewer.noMatchingKeys","No matching keys or values found"):i("network.jsonViewer.emptyTable")}
|
|
47
47
|
</react_native_1.Text>
|
|
48
48
|
</react_native_1.View>:<react_native_1.View style={localStyles.tableView}>
|
|
49
49
|
|
|
50
50
|
<react_native_1.View style={localStyles.tableHeaderRow}>
|
|
51
51
|
<react_native_1.Text style={[localStyles.tableHeaderCell,{flex:2}]}>
|
|
52
|
-
KEY / PROPERTY
|
|
52
|
+
{i("network.jsonViewer.keyProperty","KEY / PROPERTY")}
|
|
53
|
+
</react_native_1.Text>
|
|
54
|
+
<react_native_1.Text style={[localStyles.tableHeaderCell,{flex:3}]}>
|
|
55
|
+
{i("network.jsonViewer.value","VALUE")}
|
|
53
56
|
</react_native_1.Text>
|
|
54
|
-
<react_native_1.Text style={[localStyles.tableHeaderCell,{flex:3}]}>VALUE</react_native_1.Text>
|
|
55
57
|
</react_native_1.View>
|
|
56
58
|
{n.map((p,x)=><JsonTableRow key={p}index={x}itemKey={p}val={e[p]}search={t}/>)}
|
|
57
59
|
</react_native_1.View>},C=<TreeNode_1.default data={e}search={t}forceOpen={b}defaultExpandDepth={b?99:o}/>,_=()=><react_native_1.View style={localStyles.rawLinesWrapper}>
|
|
@@ -68,7 +70,7 @@
|
|
|
68
70
|
<RawJsonLine line={n}search={t}detectLinks={h.length<2e4}/>
|
|
69
71
|
</react_native_1.View>
|
|
70
72
|
</react_native_1.View>)}
|
|
71
|
-
</react_native_1.View>,
|
|
73
|
+
</react_native_1.View>,P=()=>j?<react_native_1.TouchableOpacity onPress={()=>M(!0)}activeOpacity={.8}style={localStyles.truncationBanner}>
|
|
72
74
|
<react_native_1.Text style={localStyles.truncationText}>
|
|
73
75
|
Showing first 50 KB ({Math.round(h.length/1024)} KB
|
|
74
76
|
total) · Tap to load full payload
|
|
@@ -78,24 +80,24 @@
|
|
|
78
80
|
<react_native_1.View style={localStyles.snippetHeader}>
|
|
79
81
|
|
|
80
82
|
{!y&&<react_native_1.View style={localStyles.snippetTabs}>
|
|
81
|
-
<TouchableScale_1.default onPress={()=>m("raw")}style={[localStyles.snippetTabBtn,
|
|
82
|
-
<NetworkIcons_1.RawIcon color={
|
|
83
|
-
<react_native_1.Text style={[localStyles.snippetTabText,
|
|
84
|
-
{
|
|
83
|
+
<TouchableScale_1.default onPress={()=>m("raw")}style={[localStyles.snippetTabBtn,s==="raw"&&localStyles.snippetTabBtnActive]}>
|
|
84
|
+
<NetworkIcons_1.RawIcon color={s==="raw"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={11.5}/>
|
|
85
|
+
<react_native_1.Text style={[localStyles.snippetTabText,s==="raw"&&localStyles.snippetTabTextActive]}>
|
|
86
|
+
{i("network.jsonViewer.raw","Raw")}
|
|
85
87
|
</react_native_1.Text>
|
|
86
88
|
</TouchableScale_1.default>
|
|
87
89
|
|
|
88
|
-
<TouchableScale_1.default onPress={()=>m("pretty")}style={[localStyles.snippetTabBtn,
|
|
89
|
-
<NetworkIcons_1.PrettyIcon color={
|
|
90
|
-
<react_native_1.Text style={[localStyles.snippetTabText,
|
|
91
|
-
{
|
|
90
|
+
<TouchableScale_1.default onPress={()=>m("pretty")}style={[localStyles.snippetTabBtn,s==="pretty"&&localStyles.snippetTabBtnActive]}>
|
|
91
|
+
<NetworkIcons_1.PrettyIcon color={s==="pretty"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={11.5}/>
|
|
92
|
+
<react_native_1.Text style={[localStyles.snippetTabText,s==="pretty"&&localStyles.snippetTabTextActive]}>
|
|
93
|
+
{i("network.jsonViewer.pretty","Pretty")}
|
|
92
94
|
</react_native_1.Text>
|
|
93
95
|
</TouchableScale_1.default>
|
|
94
96
|
|
|
95
|
-
<TouchableScale_1.default onPress={()=>m("table")}style={[localStyles.snippetTabBtn,
|
|
96
|
-
<NetworkIcons_1.TableIcon color={
|
|
97
|
-
<react_native_1.Text style={[localStyles.snippetTabText,
|
|
98
|
-
{
|
|
97
|
+
<TouchableScale_1.default onPress={()=>m("table")}style={[localStyles.snippetTabBtn,s==="table"&&localStyles.snippetTabBtnActive]}>
|
|
98
|
+
<NetworkIcons_1.TableIcon color={s==="table"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={11.5}/>
|
|
99
|
+
<react_native_1.Text style={[localStyles.snippetTabText,s==="table"&&localStyles.snippetTabTextActive]}>
|
|
100
|
+
{i("network.jsonViewer.table","Table")}
|
|
99
101
|
</react_native_1.Text>
|
|
100
102
|
</TouchableScale_1.default>
|
|
101
103
|
</react_native_1.View>}
|
|
@@ -103,30 +105,30 @@
|
|
|
103
105
|
|
|
104
106
|
<react_native_1.View style={localStyles.headerRight}>
|
|
105
107
|
|
|
106
|
-
{
|
|
108
|
+
{s==="raw"&&<>
|
|
107
109
|
<TouchableScale_1.default onPress={()=>N(n=>n==="compact"?"formatted":"compact")}style={[localStyles.toolToggleBtn,w==="compact"&&localStyles.toolToggleBtnActive]}>
|
|
108
110
|
<react_native_1.Text style={[localStyles.toolToggleText,w==="compact"&&localStyles.toolToggleTextActive]}>
|
|
109
|
-
{
|
|
111
|
+
{i("jsonViewer.min","Min")}
|
|
110
112
|
</react_native_1.Text>
|
|
111
113
|
</TouchableScale_1.default>
|
|
112
114
|
|
|
113
|
-
<TouchableScale_1.default onPress={()=>
|
|
115
|
+
<TouchableScale_1.default onPress={()=>k(n=>!n)}style={[localStyles.toolToggleBtn,f&&localStyles.toolToggleBtnActive]}>
|
|
114
116
|
<react_native_1.Text style={[localStyles.toolToggleText,f&&localStyles.toolToggleTextActive]}>
|
|
115
|
-
{
|
|
117
|
+
{i("jsonViewer.wrap","Wrap")}
|
|
116
118
|
</react_native_1.Text>
|
|
117
119
|
</TouchableScale_1.default>
|
|
118
120
|
</>}
|
|
119
121
|
|
|
120
122
|
|
|
121
|
-
{
|
|
123
|
+
{s==="pretty"&&v&&<TouchableScale_1.default onPress={()=>F(n=>!n)}style={[localStyles.toolToggleBtn,b&&localStyles.toolToggleBtnActive]}>
|
|
122
124
|
<react_native_1.Text style={[localStyles.toolToggleText,b&&localStyles.toolToggleTextActive]}>
|
|
123
|
-
{b?
|
|
125
|
+
{b?i("jsonViewer.fold","Fold"):i("jsonViewer.expand","Expand")}
|
|
124
126
|
</react_native_1.Text>
|
|
125
127
|
</TouchableScale_1.default>}
|
|
126
128
|
|
|
127
129
|
|
|
128
|
-
<TouchableScale_1.default onPress={
|
|
129
|
-
{
|
|
130
|
+
<TouchableScale_1.default onPress={L}hitSlop={6}style={[localStyles.copyBtn,z&&localStyles.copyBtnSuccess]}>
|
|
131
|
+
{z?<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.emerald500}size={13}/>:<NetworkIcons_1.CopyIcon color={AppColors_1.AppColors.grayText}size={13}/>}
|
|
130
132
|
</TouchableScale_1.default>
|
|
131
133
|
</react_native_1.View>
|
|
132
134
|
</react_native_1.View>
|
|
@@ -134,9 +136,9 @@
|
|
|
134
136
|
|
|
135
137
|
<react_native_1.View style={[localStyles.editorBody,d&&{flex:1,maxHeight:void 0},!d&&u!=null&&{maxHeight:u}]}>
|
|
136
138
|
|
|
137
|
-
{
|
|
139
|
+
{s==="pretty"&&(E?<react_native_1.View style={localStyles.emptyContainer}>
|
|
138
140
|
<react_native_1.Text style={localStyles.emptyText}>
|
|
139
|
-
{
|
|
141
|
+
{i("network.jsonViewer.emptyPayload")}
|
|
140
142
|
</react_native_1.Text>
|
|
141
143
|
</react_native_1.View>:f?d?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={localStyles.prettyContainer}showsVerticalScrollIndicator={!0}>
|
|
142
144
|
{C}
|
|
@@ -149,7 +151,7 @@
|
|
|
149
151
|
</react_native_1.ScrollView>)}
|
|
150
152
|
|
|
151
153
|
|
|
152
|
-
{
|
|
154
|
+
{s==="raw"&&(d?<react_native_1.ScrollView style={localStyles.fullHeightScrollView}contentContainerStyle={localStyles.fullHeightScrollContent}showsVerticalScrollIndicator={!0}showsHorizontalScrollIndicator={!1}>
|
|
153
155
|
{f?<react_native_1.View style={localStyles.rawEditorFullWidth}>
|
|
154
156
|
{_()}
|
|
155
157
|
</react_native_1.View>:<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!0}contentContainerStyle={localStyles.rawHorizontalContent}>
|
|
@@ -157,7 +159,7 @@
|
|
|
157
159
|
{_()}
|
|
158
160
|
</react_native_1.View>
|
|
159
161
|
</react_native_1.ScrollView>}
|
|
160
|
-
{
|
|
162
|
+
{P()}
|
|
161
163
|
</react_native_1.ScrollView>:<react_native_1.View style={localStyles.rawEditorAutoHeight}>
|
|
162
164
|
{f?<react_native_1.View style={localStyles.rawEditorFullWidth}>
|
|
163
165
|
{_()}
|
|
@@ -166,12 +168,12 @@
|
|
|
166
168
|
{_()}
|
|
167
169
|
</react_native_1.View>
|
|
168
170
|
</react_native_1.ScrollView>}
|
|
169
|
-
{
|
|
171
|
+
{P()}
|
|
170
172
|
</react_native_1.View>)}
|
|
171
173
|
|
|
172
174
|
|
|
173
|
-
{
|
|
174
|
-
{
|
|
175
|
-
</react_native_1.ScrollView>:<react_native_1.View style={localStyles.tableView}>{
|
|
175
|
+
{s==="table"&&(d?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{flexGrow:1}}showsVerticalScrollIndicator={!0}>
|
|
176
|
+
{W()}
|
|
177
|
+
</react_native_1.ScrollView>:<react_native_1.View style={localStyles.tableView}>{W()}</react_native_1.View>)}
|
|
176
178
|
</react_native_1.View>
|
|
177
|
-
</react_native_1.View>}),localStyles=react_native_1.StyleSheet.create({container:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",shadowColor:AppColors_1.AppColors.brandPurple,shadowOpacity:.04,shadowRadius:6,shadowOffset:{width:0,height:2},elevation:2,width:"100%"},snippetHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:8,paddingVertical:5,gap:6,minHeight:38},headerLeft:{flexDirection:"row",alignItems:"center",gap:5,flexShrink:1,minWidth:0},langBadge:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,gap:4.5},langDot:{width:5,height:5,borderRadius:2.5,backgroundColor:AppColors_1.AppColors.emerald500},langBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.primaryBlack,fontWeight:"700",letterSpacing:.3},metaBadge:{backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,flexShrink:1},metaBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,fontWeight:"600"},headerRight:{flexDirection:"row",alignItems:"center",gap:4.5,flexShrink:0},snippetTabs:{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.slate200}80`,borderRadius:8,padding:2.5,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,gap:2},snippetTabBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingVertical:3.5,paddingHorizontal:8,borderRadius:6},snippetTabBtnActive:{backgroundColor:AppColors_1.AppColors.brandPurple,shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:2,elevation:1},snippetTabText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.grayText},snippetTabTextActive:{color:AppColors_1.AppColors.white,fontFamily:AppFonts_1.AppFonts.interBold},toolToggleBtn:{paddingHorizontal:8,paddingVertical:3.5,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},toolToggleBtnActive:{backgroundColor:AppColors_1.AppColors.purpleShade50,borderColor:`${AppColors_1.AppColors.brandPurple}60`},toolToggleText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.grayText},toolToggleTextActive:{color:AppColors_1.AppColors.brandPurple,fontFamily:AppFonts_1.AppFonts.interBold},copyBtn:{width:27,height:27,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},copyBtnSuccess:{borderColor:AppColors_1.AppColors.greenMintBorder,backgroundColor:AppColors_1.AppColors.greenMintBg},editorBody:{backgroundColor:
|
|
179
|
+
</react_native_1.View>}),localStyles=react_native_1.StyleSheet.create({container:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",shadowColor:AppColors_1.AppColors.brandPurple,shadowOpacity:.04,shadowRadius:6,shadowOffset:{width:0,height:2},elevation:2,width:"100%"},snippetHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:8,paddingVertical:5,gap:6,minHeight:38},headerLeft:{flexDirection:"row",alignItems:"center",gap:5,flexShrink:1,minWidth:0},langBadge:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,gap:4.5},langDot:{width:5,height:5,borderRadius:2.5,backgroundColor:AppColors_1.AppColors.emerald500},langBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.primaryBlack,fontWeight:"700",letterSpacing:.3},metaBadge:{backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,flexShrink:1},metaBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,fontWeight:"600"},headerRight:{flexDirection:"row",alignItems:"center",gap:4.5,flexShrink:0},snippetTabs:{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.slate200}80`,borderRadius:8,padding:2.5,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,gap:2},snippetTabBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingVertical:3.5,paddingHorizontal:8,borderRadius:6},snippetTabBtnActive:{backgroundColor:AppColors_1.AppColors.brandPurple,shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:2,elevation:1},snippetTabText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.grayText},snippetTabTextActive:{color:AppColors_1.AppColors.white,fontFamily:AppFonts_1.AppFonts.interBold},toolToggleBtn:{paddingHorizontal:8,paddingVertical:3.5,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},toolToggleBtnActive:{backgroundColor:AppColors_1.AppColors.purpleShade50,borderColor:`${AppColors_1.AppColors.brandPurple}60`},toolToggleText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.grayText},toolToggleTextActive:{color:AppColors_1.AppColors.brandPurple,fontFamily:AppFonts_1.AppFonts.interBold},copyBtn:{width:27,height:27,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},copyBtnSuccess:{borderColor:AppColors_1.AppColors.greenMintBorder,backgroundColor:AppColors_1.AppColors.greenMintBg},editorBody:{backgroundColor:AppColors_1.AppColors.white,minHeight:80},prettyContainer:{padding:10,minWidth:"100%",backgroundColor:AppColors_1.AppColors.white},fullHeightScrollView:{flex:1},fullHeightScrollContent:{flexGrow:1},rawEditorAutoHeight:{width:"100%"},rawEditorFullWidth:{width:"100%"},rawHorizontalContent:{minWidth:"100%"},rawLinesWrapper:{paddingVertical:6,backgroundColor:AppColors_1.AppColors.white,width:"100%"},rawCodeLineRow:{flexDirection:"row",alignItems:"flex-start",minHeight:20,width:"100%"},gutterCell:{width:38,paddingRight:8,paddingTop:1,alignItems:"flex-end",justifyContent:"flex-start",borderRightWidth:1,borderRightColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:AppColors_1.AppColors.grayBackground,userSelect:"none"},gutterNumber:{fontFamily:monoFont,fontSize:11,lineHeight:18,color:AppColors_1.AppColors.slate400,textAlign:"right"},rawTextCell:{flex:1,paddingLeft:8,paddingRight:8,paddingTop:1,alignItems:"flex-start"},rawLineContentRow:{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap",minHeight:18},indentDots:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.gray300,letterSpacing:.5},rawMonospaceText:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.slate900},syntaxKey:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxKey,fontWeight:"700"},syntaxColon:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxColon,marginRight:4},syntaxString:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxString},syntaxNumber:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxNumber},syntaxBoolean:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxBoolean},syntaxNull:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxNull,fontStyle:"italic"},truncationBanner:{margin:10,backgroundColor:AppColors_1.AppColors.purple50,paddingVertical:8,paddingHorizontal:12,borderRadius:6,alignItems:"center",borderWidth:1,borderColor:AppColors_1.AppColors.purple200},truncationText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11,color:AppColors_1.AppColors.brandPurple},tableView:{flex:1,width:"100%"},tableHeaderRow:{flexDirection:"row",backgroundColor:AppColors_1.AppColors.slate100,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.slate200,paddingVertical:7,paddingHorizontal:12},tableHeaderCell:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.slate600,letterSpacing:.5,textTransform:"uppercase"},tableRow:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.slate100,paddingVertical:8,paddingHorizontal:12,alignItems:"flex-start",backgroundColor:AppColors_1.AppColors.white},tableRowAlt:{backgroundColor:AppColors_1.AppColors.slate50},tableColKey:{flex:2,paddingRight:8},tableColVal:{flex:3},tableCellKey:{fontFamily:monoFont,fontSize:11.5,fontWeight:"700",color:AppColors_1.AppColors.brandPurple},typePill:{alignSelf:"flex-start",borderRadius:4,borderWidth:1,paddingHorizontal:4,paddingVertical:1,marginTop:3},typePillText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9},tableCellValue:{fontFamily:monoFont,fontSize:11.5,color:AppColors_1.AppColors.slate900,lineHeight:17},tableCodeBox:{backgroundColor:AppColors_1.AppColors.slate100,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.slate200,padding:6},showMoreBtn:{flexDirection:"row",alignItems:"center",gap:4,alignSelf:"flex-start",marginTop:4,paddingVertical:2,paddingHorizontal:4},showMoreText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.brandPurple},emptyContainer:{padding:24,alignItems:"center",justifyContent:"center"},emptyText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.slate500},highlight:{backgroundColor:AppColors_1.AppColors.yellow200,color:AppColors_1.AppColors.yellow800,fontFamily:monoFont,fontWeight:"700",borderRadius:2,paddingHorizontal:2}});exports.default=JsonViewer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LogCardProps } from '../types';
|
|
3
|
-
declare
|
|
4
|
-
|
|
3
|
+
declare function LogCard({ item, onPress, timelineMinStart, timelineTotalRange, isNew, isSelected, onToggleSelect, searchStr, }: LogCardProps): React.JSX.Element;
|
|
4
|
+
declare const _default: React.MemoExoticComponent<typeof LogCard>;
|
|
5
|
+
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,a,n){n===void 0&&(n=a);var o=Object.getOwnPropertyDescriptor(t,a);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,n,o)}):(function(e,t,a,n){n===void 0&&(n=a),e[n]=t[a]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),__importStar=this&&this.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(a){var n=[];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[n.length]=o);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var n=e(t),o=0;o<n.length;o++)n[o]!=="default"&&__createBinding(a,t,n[o]);return __setModuleDefault(a,t),a}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),AppColors_1=require("../styles/AppColors"),constants_1=require("../constants"),helpers_1=require("../helpers"),NetworkIcons_1=require("./NetworkIcons"),AppFonts_1=require("../styles/AppFonts"),HighlightText_1=__importDefault(require("./HighlightText")),TouchableScale_1=__importDefault(require("./TouchableScale")),i18n_1=require("../i18n");function LogCard({item:e,onPress:t,timelineMinStart:a,timelineTotalRange:n,isNew:o,isSelected:h,onToggleSelect:_,searchStr:C}){const{t:p}=(0,i18n_1.useTranslation)(),f=constants_1.METHOD_COLORS[e.method]??constants_1.METHOD_COLORS.ALL,l=(0,react_1.useMemo)(()=>{try{const r=new URL(e.url),d=r.host,w=r.pathname+(r.search?r.search:""),V=r.protocol==="https:";return{host:d,path:w||"/",isHttps:V}}catch{const r=e.url.toLowerCase().startsWith("https:"),d=(0,helpers_1.getPath)(e.url);return{host:(0,helpers_1.getBaseUrl)(e.url).replace(/^https?:\/\//,""),path:d||e.url,isHttps:r}}},[e.url]),b=r=>{r?.stopPropagation?.(),react_native_1.Alert.alert(p("common.openInBrowser")||"Open in Browser",`${p("common.openInBrowserPrompt")||"Are you sure you want to open this URL in your external browser?"}
|
|
2
2
|
|
|
3
|
-
${e.url}`,[{text:p("common.cancel")||"Cancel",style:"cancel"},{text:p("common.open")||"Open",onPress:()=>{react_native_1.Linking.canOpenURL(e.url).then(d=>{d?react_native_1.Linking.openURL(e.url):react_native_1.Linking.openURL(e.url).catch(()=>{})}).catch(()=>{})}}])},
|
|
4
|
-
<TouchableScale_1.default onPress={
|
|
3
|
+
${e.url}`,[{text:p("common.cancel")||"Cancel",style:"cancel"},{text:p("common.open")||"Open",onPress:()=>{react_native_1.Linking.canOpenURL(e.url).then(d=>{d?react_native_1.Linking.openURL(e.url):react_native_1.Linking.openURL(e.url).catch(()=>{})}).catch(()=>{})}}])},i=e.status===0||e.status!=null&&e.status>=400,s=e.status==null,u=(0,helpers_1.getStatusColor)(e.status),c=(0,helpers_1.getDurationColor)(e.duration),y=s?AppColors_1.AppColors.darkOrange:i?AppColors_1.AppColors.errorColor:AppColors_1.AppColors.greenColor,g=(0,react_1.useRef)(new react_native_1.Animated.Value(o?.35:0)).current;(0,react_1.useEffect)(()=>{o&&react_native_1.Animated.timing(g,{toValue:0,duration:1200,useNativeDriver:!0}).start()},[o,g]);const x=()=>{if(s)return"...";if(e.status===0||e.status==null)return p("network.statusFailed")||"FAILED";const r=typeof e.status=="number"?e.status:parseInt(String(e.status||0),10);return r===200?"200 OK":r===201?"201 Created":r===204?"204 No Content":r===304?"304 Not Modified":r===400?"400 Bad Req":r===401?"401 Unauth":r===403?"403 Forbidden":r===404?"404 Not Found":r===500?"500 Error":String(e.status)},A=()=>{if(s)return<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.darkOrange}size={10}/>;const r=typeof e.status=="number"?e.status:parseInt(String(e.status||0),10);return r>=200&&r<300?<NetworkIcons_1.CircleCheckIcon color={AppColors_1.AppColors.greenColor}size={10}/>:r>=300&&r<400?<NetworkIcons_1.RepeatIcon color={AppColors_1.AppColors.amber700}size={10}/>:r>=400&&r<500?<NetworkIcons_1.CircleAlertIcon color={AppColors_1.AppColors.darkOrange}size={10}/>:<NetworkIcons_1.CircleXIcon color={AppColors_1.AppColors.errorColor}size={10}/>},T=(0,helpers_1.formatDateTime)(e.startTime),v=e.url.split("?")[0].toLowerCase().endsWith(".json");return<react_native_1.View style={styles.container}>
|
|
4
|
+
<TouchableScale_1.default onPress={t}style={[styles.card,{borderLeftWidth:3.5,borderLeftColor:y,backgroundColor:i?AppColors_1.AppColors.errorCardBg:AppColors_1.AppColors.white}]}>
|
|
5
5
|
<react_native_1.View style={styles.cardBody}>
|
|
6
6
|
|
|
7
7
|
<react_native_1.View style={styles.cardHeaderRow}>
|
|
8
8
|
<react_native_1.View style={styles.cardHeaderLeft}>
|
|
9
|
-
<react_native_1.Pressable onPress={()=>
|
|
9
|
+
<react_native_1.Pressable onPress={()=>_(e.id)}hitSlop={12}style={[styles.smallCheckbox,h&&styles.smallCheckboxChecked]}>
|
|
10
10
|
{h&&<react_native_svg_1.default width={9}height={9}viewBox="0 0 24 24"fill="none">
|
|
11
11
|
<react_native_svg_1.Path d="M20 6L9 17l-5-5"stroke={AppColors_1.AppColors.white}strokeWidth="4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
12
12
|
</react_native_svg_1.default>}
|
|
@@ -14,7 +14,7 @@ ${e.url}`,[{text:p("common.cancel")||"Cancel",style:"cancel"},{text:p("common.op
|
|
|
14
14
|
|
|
15
15
|
<react_native_1.Text style={styles.serialNumber}>#{e.id+1}</react_native_1.Text>
|
|
16
16
|
|
|
17
|
-
<react_native_1.View style={[styles.methodBadge,{backgroundColor:
|
|
17
|
+
<react_native_1.View style={[styles.methodBadge,{backgroundColor:f}]}>
|
|
18
18
|
<react_native_1.Text style={styles.methodBadgeText}>
|
|
19
19
|
{e.method}
|
|
20
20
|
</react_native_1.Text>
|
|
@@ -35,13 +35,13 @@ ${e.url}`,[{text:p("common.cancel")||"Cancel",style:"cancel"},{text:p("common.op
|
|
|
35
35
|
</react_native_1.View>
|
|
36
36
|
|
|
37
37
|
<react_native_1.View style={styles.cardHeaderRight}>
|
|
38
|
-
<react_native_1.View style={[styles.statusPill,{backgroundColor:
|
|
39
|
-
{
|
|
40
|
-
<react_native_1.Text style={[styles.statusPillText,{color:
|
|
41
|
-
{
|
|
38
|
+
<react_native_1.View style={[styles.statusPill,{backgroundColor:i?`${AppColors_1.AppColors.errorColor}14`:s?`${AppColors_1.AppColors.darkOrange}14`:`${u}14`,borderColor:i?`${AppColors_1.AppColors.errorColor}33`:s?`${AppColors_1.AppColors.darkOrange}33`:`${u}33`}]}>
|
|
39
|
+
{A()}
|
|
40
|
+
<react_native_1.Text style={[styles.statusPillText,{color:i?AppColors_1.AppColors.errorColor:s?AppColors_1.AppColors.darkOrange:u}]}>
|
|
41
|
+
{x()}
|
|
42
42
|
</react_native_1.Text>
|
|
43
43
|
</react_native_1.View>
|
|
44
|
-
<react_native_1.Pressable onPress={
|
|
44
|
+
<react_native_1.Pressable onPress={b}hitSlop={8}style={styles.globeBtn}accessibilityRole="button"accessibilityLabel="Open in Browser">
|
|
45
45
|
<NetworkIcons_1.GlobeIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
46
46
|
</react_native_1.Pressable>
|
|
47
47
|
<NetworkIcons_1.ForwardChevronIcon color={AppColors_1.AppColors.grayTextWeak}size={13}/>
|
|
@@ -50,10 +50,18 @@ ${e.url}`,[{text:p("common.cancel")||"Cancel",style:"cancel"},{text:p("common.op
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
<react_native_1.View style={styles.urlBox}>
|
|
53
|
+
|
|
53
54
|
<react_native_1.View style={styles.urlMainRow}>
|
|
54
|
-
<
|
|
55
|
+
<react_native_1.View style={styles.hostRow}>
|
|
56
|
+
<react_native_1.View style={[styles.protoBadge,{backgroundColor:l.isHttps?`${AppColors_1.AppColors.emerald600}12`:`${AppColors_1.AppColors.amber600}12`,borderColor:l.isHttps?`${AppColors_1.AppColors.emerald600}2B`:`${AppColors_1.AppColors.amber600}2B`}]}>
|
|
57
|
+
<react_native_1.Text style={[styles.protoBadgeText,{color:l.isHttps?AppColors_1.AppColors.emerald600:AppColors_1.AppColors.amber700}]}>
|
|
58
|
+
{l.isHttps?"HTTPS":"HTTP"}
|
|
59
|
+
</react_native_1.Text>
|
|
60
|
+
</react_native_1.View>
|
|
61
|
+
<HighlightText_1.default text={l.host||e.url}search={C}style={styles.hostText}highlightStyle={styles.highlight}numberOfLines={1}ellipsizeMode="tail"/>
|
|
62
|
+
</react_native_1.View>
|
|
55
63
|
<react_native_1.View style={styles.urlBadgeRow}>
|
|
56
|
-
{
|
|
64
|
+
{v&&<react_native_1.View style={styles.jsonBadge}>
|
|
57
65
|
<react_native_1.Text style={styles.jsonBadgeText}>.json</react_native_1.Text>
|
|
58
66
|
</react_native_1.View>}
|
|
59
67
|
{e.duplicateCount!=null&&e.duplicateCount>1&&<react_native_1.View style={styles.dupBadge}>
|
|
@@ -62,15 +70,9 @@ ${e.url}`,[{text:p("common.cancel")||"Cancel",style:"cancel"},{text:p("common.op
|
|
|
62
70
|
</react_native_1.View>
|
|
63
71
|
</react_native_1.View>
|
|
64
72
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
{i.isHttps?"HTTPS":"HTTP"}
|
|
69
|
-
</react_native_1.Text>
|
|
70
|
-
</react_native_1.View>
|
|
71
|
-
<react_native_1.Text style={styles.hostText}numberOfLines={1}ellipsizeMode="tail">
|
|
72
|
-
{i.host||e.url}
|
|
73
|
-
</react_native_1.Text>
|
|
73
|
+
|
|
74
|
+
<react_native_1.View style={styles.slugRow}>
|
|
75
|
+
<HighlightText_1.default text={l.path}search={C}style={styles.pathText}highlightStyle={styles.highlight}numberOfLines={1}ellipsizeMode="middle"/>
|
|
74
76
|
</react_native_1.View>
|
|
75
77
|
</react_native_1.View>
|
|
76
78
|
|
|
@@ -91,7 +93,7 @@ ${e.url}`,[{text:p("common.cancel")||"Cancel",style:"cancel"},{text:p("common.op
|
|
|
91
93
|
</react_native_1.Text>
|
|
92
94
|
</react_native_1.View>}
|
|
93
95
|
|
|
94
|
-
{e.duration!=null&&!
|
|
96
|
+
{e.duration!=null&&!i&&<react_native_1.View style={[styles.metaStatChip,{backgroundColor:`${c}12`,borderColor:`${c}2E`}]}>
|
|
95
97
|
<NetworkIcons_1.ClockIcon color={c}size={9}/>
|
|
96
98
|
<react_native_1.Text style={[styles.metaStatText,{color:c}]}>
|
|
97
99
|
{e.duration}ms
|
|
@@ -102,10 +104,10 @@ ${e.url}`,[{text:p("common.cancel")||"Cancel",style:"cancel"},{text:p("common.op
|
|
|
102
104
|
|
|
103
105
|
|
|
104
106
|
<react_native_1.View style={styles.waterfallContainer}>
|
|
105
|
-
{typeof e.duration=="number"&&e.duration>0&&!
|
|
107
|
+
{typeof e.duration=="number"&&e.duration>0&&!i&&<react_native_1.View style={[styles.waterfallBar,{width:`${Math.min(100,Math.max(6,e.duration/1200*100))}%`,backgroundColor:c}]}/>}
|
|
106
108
|
</react_native_1.View>
|
|
107
109
|
</react_native_1.View>
|
|
108
110
|
|
|
109
|
-
{
|
|
111
|
+
{o&&<react_native_1.Animated.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:f,opacity:g}]}/>}
|
|
110
112
|
</TouchableScale_1.default>
|
|
111
|
-
</react_native_1.View>}
|
|
113
|
+
</react_native_1.View>}const styles=react_native_1.StyleSheet.create({container:{paddingHorizontal:8,paddingVertical:4,height:126,justifyContent:"center"},card:{height:118,alignSelf:"stretch",borderRadius:10,overflow:"hidden",borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.shadowColorString},cardBody:{height:"100%",paddingHorizontal:8,paddingTop:8,paddingBottom:6,justifyContent:"space-between"},cardHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:22,minHeight:22,maxHeight:22},cardHeaderLeft:{flexDirection:"row",alignItems:"center",flex:1,marginRight:4,gap:4.5,minWidth:0,overflow:"hidden"},cardHeaderRight:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},smallCheckbox:{width:15,height:15,borderRadius:4,borderWidth:1.5,borderColor:AppColors_1.AppColors.grayTextWeak,alignItems:"center",justifyContent:"center",backgroundColor:AppColors_1.AppColors.white},smallCheckboxChecked:{backgroundColor:AppColors_1.AppColors.purple,borderColor:AppColors_1.AppColors.purple},serialNumber:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.grayTextWeak,fontSize:10},methodBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:5,alignItems:"center",justifyContent:"center"},methodBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,lineHeight:12,letterSpacing:.5,color:AppColors_1.AppColors.white},chip:{paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:4,borderWidth:1},chipText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,lineHeight:12},statusPill:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:6,paddingVertical:2,borderRadius:6,borderWidth:1,flexShrink:0},statusPillText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,lineHeight:12},globeBtn:{padding:3,borderRadius:4,backgroundColor:`${AppColors_1.AppColors.grayTextWeak}12`,alignItems:"center",justifyContent:"center"},urlBox:{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:7,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:7,paddingVertical:4.5,height:48,minHeight:48,maxHeight:48,justifyContent:"center",gap:2.5,overflow:"hidden"},urlMainRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:4,minHeight:16},hostRow:{flexDirection:"row",alignItems:"center",gap:5,flex:1,minWidth:0},protoBadge:{paddingHorizontal:4,paddingVertical:1,borderRadius:3.5,borderWidth:1},protoBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:10},hostText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,lineHeight:15,color:AppColors_1.AppColors.primaryBlack,flex:1},urlBadgeRow:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},jsonBadge:{backgroundColor:`${AppColors_1.AppColors.darkOrange}14`,borderColor:`${AppColors_1.AppColors.darkOrange}2E`,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:3.5},jsonBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.darkOrange},dupBadge:{backgroundColor:`${AppColors_1.AppColors.purple}14`,borderColor:`${AppColors_1.AppColors.purple}2E`,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:3.5},dupBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.purple},slugRow:{flexDirection:"row",alignItems:"center",minHeight:15},pathText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,lineHeight:14,color:AppColors_1.AppColors.slate600||AppColors_1.AppColors.grayText,flex:1},highlight:{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.primaryBlack,borderRadius:2},cardFooterRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:18,minHeight:18,maxHeight:18,gap:4},footerLeft:{flexDirection:"row",alignItems:"center",gap:4.5,flex:1,minWidth:0,overflow:"hidden"},footerRight:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},cardDateRow:{flexDirection:"row",alignItems:"center",gap:3.5},cardDateText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.slate400},metaStatChip:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:AppColors_1.AppColors.violetSoftBg,borderColor:AppColors_1.AppColors.violetSoftBorder,borderWidth:1,paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:4},metaStatText:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.violetSoftText,fontSize:9,lineHeight:12},waterfallContainer:{height:2.5,width:"100%",backgroundColor:AppColors_1.AppColors.graySurface,borderRadius:1.5,overflow:"hidden",marginTop:2},waterfallBar:{height:"100%",borderRadius:1.5}});function areLogCardPropsEqual(e,t){return e.item===t.item&&e.isSelected===t.isSelected&&e.isNew===t.isNew&&e.searchStr===t.searchStr&&e.timelineMinStart===t.timelineMinStart&&e.timelineTotalRange===t.timelineTotalRange&&e.onPress===t.onPress&&e.onToggleSelect===t.onToggleSelect}exports.default=react_1.default.memo(LogCard,areLogCardPropsEqual);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LogSyntaxHighlighter=exports.tokenizeText=void 0;const react_1=__importDefault(require("react")),react_native_1=require("react-native"),AppColors_1=require("../styles/AppColors"),AppFonts_1=require("../styles/AppFonts"),helpers_1=require("../helpers"),TOKEN_REGEX=/("(?:\\.|[^"\\])*"(?=\s*:))|("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')|(\b-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b)|(\b(?:true|false)\b)|(\b(?:null|undefined|NaN)\b)|(https?:\/\/[^\s"',]+)|(\[[\w\s_-]+\])|([{}[\],:])|([^"'\d\s{}[\],:]+|[ \t\r\n]+)/g,tokenizeText=r=>{if(!r)return[];const t=[];let e;for(TOKEN_REGEX.lastIndex=0;(e=TOKEN_REGEX.exec(r))!==null;)e[1]?t.push({type:"key",value:e[1]}):e[2]?t.push({type:"string",value:e[2]}):e[3]?t.push({type:"number",value:e[3]}):e[4]?t.push({type:"boolean",value:e[4]}):e[5]?t.push({type:"null",value:e[5]}):e[6]?t.push({type:"url",value:e[6]}):e[7]?t.push({type:"tag",value:e[7]}):e[8]?t.push({type:"bracket",value:e[8]}):e[9]&&t.push({type:"plain",value:e[9]});return t};exports.tokenizeText=tokenizeText;const getTokenColor=r=>{switch(r){case"key":return AppColors_1.AppColors.sky600;case"string":return AppColors_1.AppColors.emerald600;case"number":return AppColors_1.AppColors.amber600;case"boolean":return AppColors_1.AppColors.purple;case"null":return AppColors_1.AppColors.red600;case"url":return AppColors_1.AppColors.sky600;case"tag":return AppColors_1.AppColors.violet600;case"bracket":return AppColors_1.AppColors.slate500;default:return AppColors_1.AppColors.primaryBlack}};exports.LogSyntaxHighlighter=react_1.default.memo(({text:r,search:t,numberOfLines:e,style:u,detectLinks:a=!0})=>{if(!r)return null;const c=react_1.default.useMemo(()=>(0,exports.tokenizeText)(r),[r]),y=(s,
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LogSyntaxHighlighter=exports.tokenizeText=void 0;const react_1=__importDefault(require("react")),react_native_1=require("react-native"),AppColors_1=require("../styles/AppColors"),AppFonts_1=require("../styles/AppFonts"),helpers_1=require("../helpers"),TOKEN_REGEX=/("(?:\\.|[^"\\])*"(?=\s*:))|("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')|(\b-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b)|(\b(?:true|false)\b)|(\b(?:null|undefined|NaN)\b)|(https?:\/\/[^\s"',]+)|(\[[\w\s_-]+\])|([{}[\],:])|([^"'\d\s{}[\],:]+|[ \t\r\n]+)/g,tokenizeText=r=>{if(!r)return[];const t=[];let e;for(TOKEN_REGEX.lastIndex=0;(e=TOKEN_REGEX.exec(r))!==null;)e[1]?t.push({type:"key",value:e[1]}):e[2]?t.push({type:"string",value:e[2]}):e[3]?t.push({type:"number",value:e[3]}):e[4]?t.push({type:"boolean",value:e[4]}):e[5]?t.push({type:"null",value:e[5]}):e[6]?t.push({type:"url",value:e[6]}):e[7]?t.push({type:"tag",value:e[7]}):e[8]?t.push({type:"bracket",value:e[8]}):e[9]&&t.push({type:"plain",value:e[9]});return t};exports.tokenizeText=tokenizeText;const getTokenColor=r=>{switch(r){case"key":return AppColors_1.AppColors.sky600;case"string":return AppColors_1.AppColors.emerald600;case"number":return AppColors_1.AppColors.amber600;case"boolean":return AppColors_1.AppColors.purple;case"null":return AppColors_1.AppColors.red600;case"url":return AppColors_1.AppColors.sky600;case"tag":return AppColors_1.AppColors.violet600;case"bracket":return AppColors_1.AppColors.slate500;default:return AppColors_1.AppColors.primaryBlack}};exports.LogSyntaxHighlighter=react_1.default.memo(({text:r,search:t,numberOfLines:e,style:u,detectLinks:a=!0})=>{if(!r)return null;const c=react_1.default.useMemo(()=>(0,exports.tokenizeText)(r),[r]),y=(s,p)=>{const h=getTokenColor(s.type),n=s.type==="url",x=s.type==="key",l={color:h,fontFamily:x?AppFonts_1.AppFonts.interBold:AppFonts_1.AppFonts.interRegular,textDecorationLine:n?"underline":"none"};if(!t||t.trim().length===0)return<react_native_1.Text key={p}style={l}onPress={n&&a?()=>(0,helpers_1.handleOpenExternalLink)(s.value):void 0}>
|
|
2
2
|
{s.value}
|
|
3
|
-
</react_native_1.Text>;const
|
|
4
|
-
{g.map((o,
|
|
3
|
+
</react_native_1.Text>;const f=new RegExp(`(${(0,helpers_1.escapeRegex)(t.trim())})`,"gi"),g=s.value.split(f);return<react_native_1.Text key={p}style={l}>
|
|
4
|
+
{g.map((o,i)=>o.toLowerCase()===t.trim().toLowerCase()?<react_native_1.Text key={i}style={[l,styles.searchHighlight]}>
|
|
5
5
|
{o}
|
|
6
|
-
</react_native_1.Text>:<react_native_1.Text key={
|
|
6
|
+
</react_native_1.Text>:<react_native_1.Text key={i}style={l}onPress={n&&a?()=>(0,helpers_1.handleOpenExternalLink)(s.value):void 0}>
|
|
7
7
|
{o}
|
|
8
8
|
</react_native_1.Text>)}
|
|
9
9
|
</react_native_1.Text>};return<react_native_1.Text style={[styles.containerText,u]}numberOfLines={e}>
|
|
10
10
|
{c.map(y)}
|
|
11
|
-
</react_native_1.Text>});const styles=react_native_1.StyleSheet.create({containerText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,lineHeight:18,color:AppColors_1.AppColors.primaryBlack},searchHighlight:{backgroundColor:
|
|
11
|
+
</react_native_1.Text>});const styles=react_native_1.StyleSheet.create({containerText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,lineHeight:18,color:AppColors_1.AppColors.primaryBlack},searchHighlight:{backgroundColor:AppColors_1.AppColors.yellow200,color:AppColors_1.AppColors.yellow800,fontFamily:AppFonts_1.AppFonts.interBold,borderRadius:2}});exports.default=exports.LogSyntaxHighlighter;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var o=Object.getOwnPropertyDescriptor(e,t);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,o)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),__importStar=this&&this.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var r=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[r.length]=o);return r},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=i(e),o=0;o<r.length;o++)r[o]!=="default"&&__createBinding(t,e,r[o]);return __setModuleDefault(t,e),t}})();Object.defineProperty(exports,"__esModule",{value:!0}),exports.ModuleErrorBoundary=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),AppFonts_1=require("../styles/AppFonts"),AppColors_1=require("../styles/AppColors"),helpers_1=require("../helpers"),NetworkIcons_1=require("./NetworkIcons"),crashHandler_1=require("../customHooks/crashHandler"),enums_1=require("../types/enums");class ModuleErrorBoundary extends react_1.Component{constructor(){super(...arguments),this.state={hasError:!1,error:null,copied:!1},this.handleRetry=()=>{this.setState({hasError:!1,error:null,copied:!1}),this.props.onRetry&&this.props.onRetry()},this.handleCopy=()=>{if(!this.state.error)return;const e=`[Module Error: ${this.props.moduleName||"Micro-Feature"}]
|
|
2
2
|
Message: ${this.state.error.message}
|
|
3
3
|
Stack: ${this.state.error.stack||"N/A"}`;(0,helpers_1.copyToClipboard)(e),this.setState({copied:!0}),setTimeout(()=>{this.setState({copied:!1})},2e3)}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){try{(0,crashHandler_1.handleInterceptedCrash)(e,e?.stack,!1,enums_1.CrashType.Js,t.componentStack||void 0)}catch{}this.props.onError&&this.props.onError(e,t)}render(){if(this.state.hasError&&this.state.error){const{fallback:e,moduleName:t="UI Module",containerStyle:r}=this.props;return typeof e=="function"?e(this.state.error,this.handleRetry):e||<react_native_1.View style={[styles.card,r]}>
|
|
4
4
|
<react_native_1.View style={styles.headerRow}>
|
|
5
5
|
<react_native_1.View style={styles.titleRow}>
|
|
6
|
-
<NetworkIcons_1.WarningTriangleIcon color=
|
|
6
|
+
<NetworkIcons_1.WarningTriangleIcon color={AppColors_1.AppColors.red600}size={16}/>
|
|
7
7
|
<react_native_1.Text style={styles.moduleName}numberOfLines={1}>
|
|
8
8
|
{t}
|
|
9
9
|
</react_native_1.Text>
|
|
@@ -19,15 +19,15 @@ Stack: ${this.state.error.stack||"N/A"}`;(0,helpers_1.copyToClipboard)(e),this.s
|
|
|
19
19
|
|
|
20
20
|
<react_native_1.View style={styles.actionsRow}>
|
|
21
21
|
<react_native_1.TouchableOpacity style={styles.retryButton}onPress={this.handleRetry}activeOpacity={.7}>
|
|
22
|
-
<NetworkIcons_1.RefreshCcwIcon color=
|
|
22
|
+
<NetworkIcons_1.RefreshCcwIcon color={AppColors_1.AppColors.white}size={12}/>
|
|
23
23
|
<react_native_1.Text style={styles.retryText}>Retry Module</react_native_1.Text>
|
|
24
24
|
</react_native_1.TouchableOpacity>
|
|
25
25
|
|
|
26
26
|
<react_native_1.TouchableOpacity style={styles.copyButton}onPress={this.handleCopy}activeOpacity={.7}>
|
|
27
|
-
<NetworkIcons_1.CopyIcon color=
|
|
27
|
+
<NetworkIcons_1.CopyIcon color={AppColors_1.AppColors.slate600}size={12}/>
|
|
28
28
|
<react_native_1.Text style={styles.copyText}>
|
|
29
29
|
{this.state.copied?"Copied":"Copy Error"}
|
|
30
30
|
</react_native_1.Text>
|
|
31
31
|
</react_native_1.TouchableOpacity>
|
|
32
32
|
</react_native_1.View>
|
|
33
|
-
</react_native_1.View>}return this.props.children}}exports.ModuleErrorBoundary=ModuleErrorBoundary,exports.default=ModuleErrorBoundary;const styles=react_native_1.StyleSheet.create({card:{backgroundColor:
|
|
33
|
+
</react_native_1.View>}return this.props.children}}exports.ModuleErrorBoundary=ModuleErrorBoundary,exports.default=ModuleErrorBoundary;const styles=react_native_1.StyleSheet.create({card:{backgroundColor:AppColors_1.AppColors.red50,borderColor:`${AppColors_1.AppColors.red500}33`,borderWidth:1.2,borderRadius:16,padding:14,marginVertical:6,gap:10,...react_native_1.Platform?.select?react_native_1.Platform.select({ios:{shadowColor:AppColors_1.AppColors.red600,shadowOffset:{width:0,height:2},shadowOpacity:.06,shadowRadius:6},android:{elevation:2}}):{elevation:2}},headerRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:6},titleRow:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:1},moduleName:{fontSize:12.5,fontWeight:"800",color:AppColors_1.AppColors.redErrorText,fontFamily:AppFonts_1.AppFonts.interBold,flexShrink:1},badge:{backgroundColor:AppColors_1.AppColors.red100,paddingHorizontal:6,paddingVertical:2,borderRadius:6,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}4D`},badgeText:{fontSize:8.5,fontWeight:"800",color:AppColors_1.AppColors.rose700,letterSpacing:.4},message:{fontSize:11.5,color:AppColors_1.AppColors.redErrorText,lineHeight:16,fontFamily:AppFonts_1.AppFonts.interRegular},actionsRow:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2},retryButton:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:AppColors_1.AppColors.red600,paddingVertical:7,paddingHorizontal:12,borderRadius:9},retryText:{fontSize:11,fontWeight:"700",color:AppColors_1.AppColors.white,fontFamily:AppFonts_1.AppFonts.interBold},copyButton:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:4,backgroundColor:AppColors_1.AppColors.graySurface,paddingVertical:7,paddingHorizontal:12,borderRadius:9,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},copyText:{fontSize:11,fontWeight:"600",color:AppColors_1.AppColors.grayText,fontFamily:AppFonts_1.AppFonts.interMedium}});
|
|
@@ -47,6 +47,7 @@ export declare const DebugIcon: ({ color, size }: IconProps) => React.JSX.Elemen
|
|
|
47
47
|
export declare const SunIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
48
48
|
export declare const MoonIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
49
49
|
export { BrandCircleIcon } from './BrandCircleIcon';
|
|
50
|
+
export { BrandSquareIcon } from './BrandSquareIcon';
|
|
50
51
|
export declare const HtmlIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
51
52
|
export declare const CssIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
52
53
|
export declare const JsIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
@@ -144,6 +145,9 @@ export declare const HelpCircleIcon: ({ color, size, }: IconProps) => React.JSX.
|
|
|
144
145
|
export declare const SendIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
145
146
|
export declare const LifeBuoyIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
146
147
|
export declare const CameraIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
148
|
+
export declare const ScreenshotCaptureIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
149
|
+
export declare const CameraLensIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
150
|
+
export declare const ScreenRecordIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
147
151
|
export declare const VideoCameraIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
148
152
|
export declare const MicrophoneIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
149
153
|
export declare const GifIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
@@ -168,3 +172,41 @@ export declare const HeartFaceIcon: ({ color, size, }: IconProps) => React.JSX.E
|
|
|
168
172
|
export declare const BellIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
169
173
|
export declare const NotificationIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
170
174
|
export declare const CloudPushIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
175
|
+
export declare const SocketIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
176
|
+
export declare const WebsocketIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
177
|
+
export declare const SendFrameIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
178
|
+
export declare const ReceiveFrameIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
179
|
+
export declare const PingIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
180
|
+
export declare const BroadcastIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
181
|
+
export declare const VolumeIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
182
|
+
export declare const BuildingIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
183
|
+
export declare const ArrowUpIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
184
|
+
export declare const ArrowDownIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
185
|
+
export declare const SupportIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
186
|
+
export declare const HeartIcon: ({ color, size, fill, }: IconProps & {
|
|
187
|
+
fill?: string;
|
|
188
|
+
}) => React.JSX.Element;
|
|
189
|
+
export declare const CropIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
190
|
+
export declare const RotateIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
191
|
+
export declare const RedactIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
192
|
+
export declare const AnnotateIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
193
|
+
export declare const ScissorsIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
194
|
+
export declare const VolumeXIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
195
|
+
export declare const MailIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
196
|
+
export declare const ActivityIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
197
|
+
export declare const SpeedIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
198
|
+
export declare const BatteryChargingIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
199
|
+
export declare const BatteryFullIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
200
|
+
export declare const PenIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
201
|
+
export declare const ShapesIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
202
|
+
export declare const RectangleIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
203
|
+
export declare const CircleIconOutline: ({ color, size }: IconProps) => React.JSX.Element;
|
|
204
|
+
export declare const EllipseIconOutline: ({ color, size }: IconProps) => React.JSX.Element;
|
|
205
|
+
export declare const TypeIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
206
|
+
export declare const BlurIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
207
|
+
export declare const ZoomInIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
208
|
+
export declare const ZoomOutIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
209
|
+
export declare const UndoIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
210
|
+
export declare const ResizeIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
211
|
+
export declare const AspectRatioIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
212
|
+
export declare const GripVerticalIcon: ({ color, size }: IconProps) => React.JSX.Element;
|