@buoy-gg/network 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -530,14 +530,10 @@ function NetworkModalInner({
530
530
  size: 14,
531
531
  color: filteredEvents.length > 0 ? _sharedUi.macOSColors.text.secondary : _sharedUi.macOSColors.text.disabled
532
532
  })
533
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
534
- "sentry-label": "ignore toggle interception",
535
- onPress: toggleInterception,
536
- style: [styles.headerActionButton, isEnabled ? styles.startButton : styles.stopButton],
537
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Power, {
538
- size: 14,
539
- color: isEnabled ? _sharedUi.macOSColors.semantic.success : _sharedUi.macOSColors.semantic.error
540
- })
533
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.PowerToggleButton, {
534
+ isEnabled: isEnabled,
535
+ onToggle: toggleInterception,
536
+ accessibilityLabel: "Toggle network interception"
541
537
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
542
538
  "sentry-label": "ignore clear events",
543
539
  onPress: clearEvents,
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useState, useRef, useMemo, useCallback, useEffect } from "react";
4
4
  import { View, Text, StyleSheet, TouchableOpacity, TextInput, FlatList } from "react-native";
5
- import { Globe, Trash2, Power, Search, Filter, CheckCircle, XCircle, Clock, X, Copy, JsModal, ModalHeader, devToolsStorageKeys, macOSColors, persistentStorage, CopyButton, TabSelector, useFeatureGate, UpgradeModal, ProBadge, Zap } from "@buoy-gg/shared-ui";
5
+ import { Globe, Trash2, Power, Search, Filter, CheckCircle, XCircle, Clock, X, Copy, JsModal, ModalHeader, devToolsStorageKeys, macOSColors, persistentStorage, CopyButton, TabSelector, useFeatureGate, UpgradeModal, ProBadge, Zap, PowerToggleButton } from "@buoy-gg/shared-ui";
6
6
  import { NetworkEventItemCompact } from "./NetworkEventItemCompact";
7
7
  import { NetworkFilterViewV3 } from "./NetworkFilterViewV3";
8
8
  import { TickProvider } from "../hooks/useTickEveryMinute";
@@ -526,14 +526,10 @@ function NetworkModalInner({
526
526
  size: 14,
527
527
  color: filteredEvents.length > 0 ? macOSColors.text.secondary : macOSColors.text.disabled
528
528
  })
529
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
530
- "sentry-label": "ignore toggle interception",
531
- onPress: toggleInterception,
532
- style: [styles.headerActionButton, isEnabled ? styles.startButton : styles.stopButton],
533
- children: /*#__PURE__*/_jsx(Power, {
534
- size: 14,
535
- color: isEnabled ? macOSColors.semantic.success : macOSColors.semantic.error
536
- })
529
+ }), /*#__PURE__*/_jsx(PowerToggleButton, {
530
+ isEnabled: isEnabled,
531
+ onToggle: toggleInterception,
532
+ accessibilityLabel: "Toggle network interception"
537
533
  }), /*#__PURE__*/_jsx(TouchableOpacity, {
538
534
  "sentry-label": "ignore clear events",
539
535
  onPress: clearEvents,
@@ -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;AAuhCD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAMpD"}
1
+ {"version":3,"file":"NetworkModal.d.ts","sourceRoot":"","sources":["../../../../src/network/components/NetworkModal.tsx"],"names":[],"mappings":"AA4CA,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;AA2gCD;;;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": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "network package",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@buoy-gg/shared-ui": "2.1.1"
29
+ "@buoy-gg/shared-ui": "2.1.2"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "*",