@buoy-gg/network 1.7.5 → 1.7.9
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/lib/commonjs/network/components/NetworkEventDetailView.js +7 -0
- package/lib/commonjs/network/components/NetworkModal.js +7 -0
- package/lib/module/network/components/NetworkEventDetailView.js +8 -1
- package/lib/module/network/components/NetworkModal.js +7 -0
- package/lib/typescript/network/components/NetworkEventDetailView.d.ts.map +1 -1
- package/lib/typescript/network/components/NetworkModal.d.ts.map +1 -1
- package/package.json +2 -3
|
@@ -180,6 +180,13 @@ function NetworkEventDetailView({
|
|
|
180
180
|
} = (0, _sharedUi.useFeatureGate)();
|
|
181
181
|
const [showUpgradeModal, setShowUpgradeModal] = (0, _react.useState)(false);
|
|
182
182
|
|
|
183
|
+
// Auto-close upgrade modal when user becomes Pro
|
|
184
|
+
(0, _react.useEffect)(() => {
|
|
185
|
+
if (showUpgradeModal && isPro) {
|
|
186
|
+
setShowUpgradeModal(false);
|
|
187
|
+
}
|
|
188
|
+
}, [showUpgradeModal, isPro]);
|
|
189
|
+
|
|
183
190
|
// Generate full request details for copying
|
|
184
191
|
const getFullRequestDetails = () => {
|
|
185
192
|
const requestDetails = {
|
|
@@ -78,6 +78,13 @@ function NetworkModalInner({
|
|
|
78
78
|
} = (0, _sharedUi.useSafeAsyncStorage)();
|
|
79
79
|
const [showUpgradeModal, setShowUpgradeModal] = (0, _react.useState)(false);
|
|
80
80
|
|
|
81
|
+
// Auto-close upgrade modal when user becomes Pro
|
|
82
|
+
(0, _react.useEffect)(() => {
|
|
83
|
+
if (showUpgradeModal && isPro) {
|
|
84
|
+
setShowUpgradeModal(false);
|
|
85
|
+
}
|
|
86
|
+
}, [showUpgradeModal, isPro]);
|
|
87
|
+
|
|
81
88
|
// Load persisted filters on mount
|
|
82
89
|
(0, _react.useEffect)(() => {
|
|
83
90
|
if (!visible || hasLoadedFilters.current) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { useState } from "react";
|
|
3
|
+
import { useState, useEffect } from "react";
|
|
4
4
|
import { View, Text, StyleSheet, ScrollView, TouchableOpacity } from "react-native";
|
|
5
5
|
import { Clock, Upload, Download, AlertCircle, ChevronDown, ChevronUp, Lock, Unlock, FileJson, Filter, Globe, Link, Copy, InlineCopyButton, macOSColors, useFeatureGate, UpgradeModal } from "@buoy-gg/shared-ui";
|
|
6
6
|
import { formatBytes, formatDuration, formatHttpStatus } from "../utils/formatting";
|
|
@@ -177,6 +177,13 @@ export function NetworkEventDetailView({
|
|
|
177
177
|
} = useFeatureGate();
|
|
178
178
|
const [showUpgradeModal, setShowUpgradeModal] = useState(false);
|
|
179
179
|
|
|
180
|
+
// Auto-close upgrade modal when user becomes Pro
|
|
181
|
+
useEffect(() => {
|
|
182
|
+
if (showUpgradeModal && isPro) {
|
|
183
|
+
setShowUpgradeModal(false);
|
|
184
|
+
}
|
|
185
|
+
}, [showUpgradeModal, isPro]);
|
|
186
|
+
|
|
180
187
|
// Generate full request details for copying
|
|
181
188
|
const getFullRequestDetails = () => {
|
|
182
189
|
const requestDetails = {
|
|
@@ -74,6 +74,13 @@ function NetworkModalInner({
|
|
|
74
74
|
} = useSafeAsyncStorage();
|
|
75
75
|
const [showUpgradeModal, setShowUpgradeModal] = useState(false);
|
|
76
76
|
|
|
77
|
+
// Auto-close upgrade modal when user becomes Pro
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
if (showUpgradeModal && isPro) {
|
|
80
|
+
setShowUpgradeModal(false);
|
|
81
|
+
}
|
|
82
|
+
}, [showUpgradeModal, isPro]);
|
|
83
|
+
|
|
77
84
|
// Load persisted filters on mount
|
|
78
85
|
useEffect(() => {
|
|
79
86
|
if (!visible || hasLoadedFilters.current) return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkEventDetailView.d.ts","sourceRoot":"","sources":["../../../../src/network/components/NetworkEventDetailView.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAU7C,UAAU,2BAA2B;IACnC,KAAK,EAAE,YAAY,CAAC;IACpB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAmKD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,eAA2B,EAC3B,eAA0B,GAC3B,EAAE,2BAA2B,+
|
|
1
|
+
{"version":3,"file":"NetworkEventDetailView.d.ts","sourceRoot":"","sources":["../../../../src/network/components/NetworkEventDetailView.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAU7C,UAAU,2BAA2B;IACnC,KAAK,EAAE,YAAY,CAAC;IACpB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAmKD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,eAA2B,EAC3B,eAA0B,GAC3B,EAAE,2BAA2B,+BAkZ7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkModal.d.ts","sourceRoot":"","sources":["../../../../src/network/components/NetworkModal.tsx"],"names":[],"mappings":"AA2CA,UAAU,iBAAiB;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;
|
|
1
|
+
{"version":3,"file":"NetworkModal.d.ts","sourceRoot":"","sources":["../../../../src/network/components/NetworkModal.tsx"],"names":[],"mappings":"AA2CA,UAAU,iBAAiB;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAwhCD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAMpD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/network",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"description": "network package",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@buoy-gg/
|
|
16
|
-
"@buoy-gg/shared-ui": "1.7.5"
|
|
15
|
+
"@buoy-gg/shared-ui": "1.7.8"
|
|
17
16
|
},
|
|
18
17
|
"peerDependencies": {
|
|
19
18
|
"react": "*",
|