react-native-prod-debugger 1.0.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/LICENSE +21 -0
- package/README.md +350 -0
- package/lib/commonjs/core/DebugBubble.js +139 -0
- package/lib/commonjs/core/DebugBubble.js.map +1 -0
- package/lib/commonjs/core/DebugOverlay.js +184 -0
- package/lib/commonjs/core/DebugOverlay.js.map +1 -0
- package/lib/commonjs/core/DebuggerProvider.js +174 -0
- package/lib/commonjs/core/DebuggerProvider.js.map +1 -0
- package/lib/commonjs/core/GestureDetector.js +83 -0
- package/lib/commonjs/core/GestureDetector.js.map +1 -0
- package/lib/commonjs/core/PluginRegistry.js +124 -0
- package/lib/commonjs/core/PluginRegistry.js.map +1 -0
- package/lib/commonjs/core/theme.js +50 -0
- package/lib/commonjs/core/theme.js.map +1 -0
- package/lib/commonjs/core/types.js +6 -0
- package/lib/commonjs/core/types.js.map +1 -0
- package/lib/commonjs/core/useDebugger.js +27 -0
- package/lib/commonjs/core/useDebugger.js.map +1 -0
- package/lib/commonjs/core/utils.js +239 -0
- package/lib/commonjs/core/utils.js.map +1 -0
- package/lib/commonjs/index.js +132 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/plugins/console/ConsoleInterceptor.js +103 -0
- package/lib/commonjs/plugins/console/ConsoleInterceptor.js.map +1 -0
- package/lib/commonjs/plugins/console/ConsoleViewerPlugin.js +269 -0
- package/lib/commonjs/plugins/console/ConsoleViewerPlugin.js.map +1 -0
- package/lib/commonjs/plugins/crashReporter/CrashReporterPlugin.js +363 -0
- package/lib/commonjs/plugins/crashReporter/CrashReporterPlugin.js.map +1 -0
- package/lib/commonjs/plugins/customActions/CustomActionsPlugin.js +218 -0
- package/lib/commonjs/plugins/customActions/CustomActionsPlugin.js.map +1 -0
- package/lib/commonjs/plugins/customActions/actionStore.js +46 -0
- package/lib/commonjs/plugins/customActions/actionStore.js.map +1 -0
- package/lib/commonjs/plugins/deepLinkTester/DeepLinkTesterPlugin.js +268 -0
- package/lib/commonjs/plugins/deepLinkTester/DeepLinkTesterPlugin.js.map +1 -0
- package/lib/commonjs/plugins/deviceInfo/DeviceInfoPlugin.js +184 -0
- package/lib/commonjs/plugins/deviceInfo/DeviceInfoPlugin.js.map +1 -0
- package/lib/commonjs/plugins/featureFlags/FeatureFlagsPlugin.js +381 -0
- package/lib/commonjs/plugins/featureFlags/FeatureFlagsPlugin.js.map +1 -0
- package/lib/commonjs/plugins/featureFlags/flagStore.js +125 -0
- package/lib/commonjs/plugins/featureFlags/flagStore.js.map +1 -0
- package/lib/commonjs/plugins/navigationInspector/NavigationInspectorPlugin.js +250 -0
- package/lib/commonjs/plugins/navigationInspector/NavigationInspectorPlugin.js.map +1 -0
- package/lib/commonjs/plugins/navigationInspector/navigationStore.js +65 -0
- package/lib/commonjs/plugins/navigationInspector/navigationStore.js.map +1 -0
- package/lib/commonjs/plugins/network/NetworkInspectorPlugin.js +709 -0
- package/lib/commonjs/plugins/network/NetworkInspectorPlugin.js.map +1 -0
- package/lib/commonjs/plugins/network/NetworkInterceptor.js +305 -0
- package/lib/commonjs/plugins/network/NetworkInterceptor.js.map +1 -0
- package/lib/commonjs/plugins/performance/PerformanceMonitorPlugin.js +261 -0
- package/lib/commonjs/plugins/performance/PerformanceMonitorPlugin.js.map +1 -0
- package/lib/commonjs/plugins/remoteConfig/RemoteConfigPlugin.js +265 -0
- package/lib/commonjs/plugins/remoteConfig/RemoteConfigPlugin.js.map +1 -0
- package/lib/commonjs/plugins/remoteConfig/remoteConfigStore.js +50 -0
- package/lib/commonjs/plugins/remoteConfig/remoteConfigStore.js.map +1 -0
- package/lib/commonjs/plugins/stateInspector/StateInspectorPlugin.js +378 -0
- package/lib/commonjs/plugins/stateInspector/StateInspectorPlugin.js.map +1 -0
- package/lib/commonjs/plugins/stateInspector/stateAdapterRegistry.js +62 -0
- package/lib/commonjs/plugins/stateInspector/stateAdapterRegistry.js.map +1 -0
- package/lib/commonjs/plugins/storageBrowser/StorageBrowserPlugin.js +496 -0
- package/lib/commonjs/plugins/storageBrowser/StorageBrowserPlugin.js.map +1 -0
- package/lib/commonjs/plugins/storageBrowser/storageAdapterRegistry.js +44 -0
- package/lib/commonjs/plugins/storageBrowser/storageAdapterRegistry.js.map +1 -0
- package/lib/commonjs/plugins/timeline/TimelinePlugin.js +294 -0
- package/lib/commonjs/plugins/timeline/TimelinePlugin.js.map +1 -0
- package/lib/commonjs/plugins/timeline/timelineStore.js +61 -0
- package/lib/commonjs/plugins/timeline/timelineStore.js.map +1 -0
- package/lib/module/core/DebugBubble.js +131 -0
- package/lib/module/core/DebugBubble.js.map +1 -0
- package/lib/module/core/DebugOverlay.js +176 -0
- package/lib/module/core/DebugOverlay.js.map +1 -0
- package/lib/module/core/DebuggerProvider.js +167 -0
- package/lib/module/core/DebuggerProvider.js.map +1 -0
- package/lib/module/core/GestureDetector.js +75 -0
- package/lib/module/core/GestureDetector.js.map +1 -0
- package/lib/module/core/PluginRegistry.js +116 -0
- package/lib/module/core/PluginRegistry.js.map +1 -0
- package/lib/module/core/theme.js +43 -0
- package/lib/module/core/theme.js.map +1 -0
- package/lib/module/core/types.js +2 -0
- package/lib/module/core/types.js.map +1 -0
- package/lib/module/core/useDebugger.js +21 -0
- package/lib/module/core/useDebugger.js.map +1 -0
- package/lib/module/core/utils.js +219 -0
- package/lib/module/core/utils.js.map +1 -0
- package/lib/module/index.js +44 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/plugins/console/ConsoleInterceptor.js +97 -0
- package/lib/module/plugins/console/ConsoleInterceptor.js.map +1 -0
- package/lib/module/plugins/console/ConsoleViewerPlugin.js +262 -0
- package/lib/module/plugins/console/ConsoleViewerPlugin.js.map +1 -0
- package/lib/module/plugins/crashReporter/CrashReporterPlugin.js +357 -0
- package/lib/module/plugins/crashReporter/CrashReporterPlugin.js.map +1 -0
- package/lib/module/plugins/customActions/CustomActionsPlugin.js +211 -0
- package/lib/module/plugins/customActions/CustomActionsPlugin.js.map +1 -0
- package/lib/module/plugins/customActions/actionStore.js +38 -0
- package/lib/module/plugins/customActions/actionStore.js.map +1 -0
- package/lib/module/plugins/deepLinkTester/DeepLinkTesterPlugin.js +261 -0
- package/lib/module/plugins/deepLinkTester/DeepLinkTesterPlugin.js.map +1 -0
- package/lib/module/plugins/deviceInfo/DeviceInfoPlugin.js +177 -0
- package/lib/module/plugins/deviceInfo/DeviceInfoPlugin.js.map +1 -0
- package/lib/module/plugins/featureFlags/FeatureFlagsPlugin.js +374 -0
- package/lib/module/plugins/featureFlags/FeatureFlagsPlugin.js.map +1 -0
- package/lib/module/plugins/featureFlags/flagStore.js +117 -0
- package/lib/module/plugins/featureFlags/flagStore.js.map +1 -0
- package/lib/module/plugins/navigationInspector/NavigationInspectorPlugin.js +243 -0
- package/lib/module/plugins/navigationInspector/NavigationInspectorPlugin.js.map +1 -0
- package/lib/module/plugins/navigationInspector/navigationStore.js +58 -0
- package/lib/module/plugins/navigationInspector/navigationStore.js.map +1 -0
- package/lib/module/plugins/network/NetworkInspectorPlugin.js +703 -0
- package/lib/module/plugins/network/NetworkInspectorPlugin.js.map +1 -0
- package/lib/module/plugins/network/NetworkInterceptor.js +299 -0
- package/lib/module/plugins/network/NetworkInterceptor.js.map +1 -0
- package/lib/module/plugins/performance/PerformanceMonitorPlugin.js +254 -0
- package/lib/module/plugins/performance/PerformanceMonitorPlugin.js.map +1 -0
- package/lib/module/plugins/remoteConfig/RemoteConfigPlugin.js +258 -0
- package/lib/module/plugins/remoteConfig/RemoteConfigPlugin.js.map +1 -0
- package/lib/module/plugins/remoteConfig/remoteConfigStore.js +43 -0
- package/lib/module/plugins/remoteConfig/remoteConfigStore.js.map +1 -0
- package/lib/module/plugins/stateInspector/StateInspectorPlugin.js +372 -0
- package/lib/module/plugins/stateInspector/StateInspectorPlugin.js.map +1 -0
- package/lib/module/plugins/stateInspector/stateAdapterRegistry.js +54 -0
- package/lib/module/plugins/stateInspector/stateAdapterRegistry.js.map +1 -0
- package/lib/module/plugins/storageBrowser/StorageBrowserPlugin.js +489 -0
- package/lib/module/plugins/storageBrowser/StorageBrowserPlugin.js.map +1 -0
- package/lib/module/plugins/storageBrowser/storageAdapterRegistry.js +36 -0
- package/lib/module/plugins/storageBrowser/storageAdapterRegistry.js.map +1 -0
- package/lib/module/plugins/timeline/TimelinePlugin.js +287 -0
- package/lib/module/plugins/timeline/TimelinePlugin.js.map +1 -0
- package/lib/module/plugins/timeline/timelineStore.js +54 -0
- package/lib/module/plugins/timeline/timelineStore.js.map +1 -0
- package/lib/typescript/core/DebugBubble.d.ts +22 -0
- package/lib/typescript/core/DebugBubble.d.ts.map +1 -0
- package/lib/typescript/core/DebugOverlay.d.ts +18 -0
- package/lib/typescript/core/DebugOverlay.d.ts.map +1 -0
- package/lib/typescript/core/DebuggerProvider.d.ts +25 -0
- package/lib/typescript/core/DebuggerProvider.d.ts.map +1 -0
- package/lib/typescript/core/GestureDetector.d.ts +20 -0
- package/lib/typescript/core/GestureDetector.d.ts.map +1 -0
- package/lib/typescript/core/PluginRegistry.d.ts +41 -0
- package/lib/typescript/core/PluginRegistry.d.ts.map +1 -0
- package/lib/typescript/core/theme.d.ts +11 -0
- package/lib/typescript/core/theme.d.ts.map +1 -0
- package/lib/typescript/core/types.d.ts +269 -0
- package/lib/typescript/core/types.d.ts.map +1 -0
- package/lib/typescript/core/useDebugger.d.ts +14 -0
- package/lib/typescript/core/useDebugger.d.ts.map +1 -0
- package/lib/typescript/core/utils.d.ts +46 -0
- package/lib/typescript/core/utils.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +23 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/plugins/console/ConsoleInterceptor.d.ts +32 -0
- package/lib/typescript/plugins/console/ConsoleInterceptor.d.ts.map +1 -0
- package/lib/typescript/plugins/console/ConsoleViewerPlugin.d.ts +3 -0
- package/lib/typescript/plugins/console/ConsoleViewerPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/crashReporter/CrashReporterPlugin.d.ts +3 -0
- package/lib/typescript/plugins/crashReporter/CrashReporterPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/customActions/CustomActionsPlugin.d.ts +3 -0
- package/lib/typescript/plugins/customActions/CustomActionsPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/customActions/actionStore.d.ts +16 -0
- package/lib/typescript/plugins/customActions/actionStore.d.ts.map +1 -0
- package/lib/typescript/plugins/deepLinkTester/DeepLinkTesterPlugin.d.ts +3 -0
- package/lib/typescript/plugins/deepLinkTester/DeepLinkTesterPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/deviceInfo/DeviceInfoPlugin.d.ts +3 -0
- package/lib/typescript/plugins/deviceInfo/DeviceInfoPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/featureFlags/FeatureFlagsPlugin.d.ts +3 -0
- package/lib/typescript/plugins/featureFlags/FeatureFlagsPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/featureFlags/flagStore.d.ts +45 -0
- package/lib/typescript/plugins/featureFlags/flagStore.d.ts.map +1 -0
- package/lib/typescript/plugins/navigationInspector/NavigationInspectorPlugin.d.ts +3 -0
- package/lib/typescript/plugins/navigationInspector/NavigationInspectorPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/navigationInspector/navigationStore.d.ts +30 -0
- package/lib/typescript/plugins/navigationInspector/navigationStore.d.ts.map +1 -0
- package/lib/typescript/plugins/network/NetworkInspectorPlugin.d.ts +3 -0
- package/lib/typescript/plugins/network/NetworkInspectorPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/network/NetworkInterceptor.d.ts +42 -0
- package/lib/typescript/plugins/network/NetworkInterceptor.d.ts.map +1 -0
- package/lib/typescript/plugins/performance/PerformanceMonitorPlugin.d.ts +3 -0
- package/lib/typescript/plugins/performance/PerformanceMonitorPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/remoteConfig/RemoteConfigPlugin.d.ts +3 -0
- package/lib/typescript/plugins/remoteConfig/RemoteConfigPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/remoteConfig/remoteConfigStore.d.ts +20 -0
- package/lib/typescript/plugins/remoteConfig/remoteConfigStore.d.ts.map +1 -0
- package/lib/typescript/plugins/stateInspector/StateInspectorPlugin.d.ts +3 -0
- package/lib/typescript/plugins/stateInspector/StateInspectorPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/stateInspector/stateAdapterRegistry.d.ts +34 -0
- package/lib/typescript/plugins/stateInspector/stateAdapterRegistry.d.ts.map +1 -0
- package/lib/typescript/plugins/storageBrowser/StorageBrowserPlugin.d.ts +3 -0
- package/lib/typescript/plugins/storageBrowser/StorageBrowserPlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/storageBrowser/storageAdapterRegistry.d.ts +16 -0
- package/lib/typescript/plugins/storageBrowser/storageAdapterRegistry.d.ts.map +1 -0
- package/lib/typescript/plugins/timeline/TimelinePlugin.d.ts +3 -0
- package/lib/typescript/plugins/timeline/TimelinePlugin.d.ts.map +1 -0
- package/lib/typescript/plugins/timeline/timelineStore.d.ts +24 -0
- package/lib/typescript/plugins/timeline/timelineStore.d.ts.map +1 -0
- package/package.json +131 -0
- package/src/core/DebugBubble.tsx +149 -0
- package/src/core/DebugOverlay.tsx +211 -0
- package/src/core/DebuggerProvider.tsx +211 -0
- package/src/core/GestureDetector.tsx +95 -0
- package/src/core/PluginRegistry.ts +118 -0
- package/src/core/theme.ts +41 -0
- package/src/core/types.ts +339 -0
- package/src/core/useDebugger.ts +24 -0
- package/src/core/utils.ts +221 -0
- package/src/index.ts +67 -0
- package/src/plugins/console/ConsoleInterceptor.ts +110 -0
- package/src/plugins/console/ConsoleViewerPlugin.tsx +241 -0
- package/src/plugins/crashReporter/CrashReporterPlugin.tsx +316 -0
- package/src/plugins/customActions/CustomActionsPlugin.tsx +199 -0
- package/src/plugins/customActions/actionStore.ts +49 -0
- package/src/plugins/deepLinkTester/DeepLinkTesterPlugin.tsx +213 -0
- package/src/plugins/deviceInfo/DeviceInfoPlugin.tsx +153 -0
- package/src/plugins/featureFlags/FeatureFlagsPlugin.tsx +338 -0
- package/src/plugins/featureFlags/flagStore.ts +118 -0
- package/src/plugins/navigationInspector/NavigationInspectorPlugin.tsx +170 -0
- package/src/plugins/navigationInspector/navigationStore.ts +70 -0
- package/src/plugins/network/NetworkInspectorPlugin.tsx +598 -0
- package/src/plugins/network/NetworkInterceptor.ts +344 -0
- package/src/plugins/performance/PerformanceMonitorPlugin.tsx +194 -0
- package/src/plugins/remoteConfig/RemoteConfigPlugin.tsx +205 -0
- package/src/plugins/remoteConfig/remoteConfigStore.ts +48 -0
- package/src/plugins/stateInspector/StateInspectorPlugin.tsx +342 -0
- package/src/plugins/stateInspector/stateAdapterRegistry.ts +66 -0
- package/src/plugins/storageBrowser/StorageBrowserPlugin.tsx +410 -0
- package/src/plugins/storageBrowser/storageAdapterRegistry.ts +47 -0
- package/src/plugins/timeline/TimelinePlugin.tsx +242 -0
- package/src/plugins/timeline/timelineStore.ts +65 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createTimelinePlugin = createTimelinePlugin;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _timelineStore = require("./timelineStore");
|
|
10
|
+
var _utils = require("../../core/utils");
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
+
const CATEGORY_COLORS = {
|
|
13
|
+
navigation: '#5B8DEF',
|
|
14
|
+
network: '#FF9500',
|
|
15
|
+
state: '#AF52DE',
|
|
16
|
+
user: '#34C759',
|
|
17
|
+
lifecycle: '#FF3B30',
|
|
18
|
+
custom: '#8E8E93'
|
|
19
|
+
};
|
|
20
|
+
const TimelinePanel = ({
|
|
21
|
+
theme
|
|
22
|
+
}) => {
|
|
23
|
+
const [events, setEvents] = (0, _react.useState)([]);
|
|
24
|
+
const [searchQuery, setSearchQuery] = (0, _react.useState)('');
|
|
25
|
+
const [categoryFilter, setCategoryFilter] = (0, _react.useState)(null);
|
|
26
|
+
const [expandedId, setExpandedId] = (0, _react.useState)(null);
|
|
27
|
+
(0, _react.useEffect)(() => {
|
|
28
|
+
const unsub = _timelineStore.timelineStore.subscribe(setEvents);
|
|
29
|
+
return unsub;
|
|
30
|
+
}, []);
|
|
31
|
+
const categories = (0, _react.useMemo)(() => {
|
|
32
|
+
const cats = new Set();
|
|
33
|
+
for (const e of events) cats.add(e.category);
|
|
34
|
+
return Array.from(cats);
|
|
35
|
+
}, [events]);
|
|
36
|
+
const filteredEvents = (0, _react.useMemo)(() => {
|
|
37
|
+
let filtered = events;
|
|
38
|
+
if (categoryFilter) {
|
|
39
|
+
filtered = filtered.filter(e => e.category === categoryFilter);
|
|
40
|
+
}
|
|
41
|
+
if (searchQuery) {
|
|
42
|
+
const q = searchQuery.toLowerCase();
|
|
43
|
+
filtered = filtered.filter(e => e.title.toLowerCase().includes(q) || e.category.toLowerCase().includes(q));
|
|
44
|
+
}
|
|
45
|
+
return filtered;
|
|
46
|
+
}, [events, categoryFilter, searchQuery]);
|
|
47
|
+
const handleClear = (0, _react.useCallback)(() => {
|
|
48
|
+
_timelineStore.timelineStore.clear();
|
|
49
|
+
setExpandedId(null);
|
|
50
|
+
}, []);
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
52
|
+
style: styles.container
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
54
|
+
horizontal: true,
|
|
55
|
+
showsHorizontalScrollIndicator: false,
|
|
56
|
+
style: [styles.filterBar, {
|
|
57
|
+
backgroundColor: theme.surface
|
|
58
|
+
}],
|
|
59
|
+
contentContainerStyle: styles.filterContent
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
61
|
+
style: [styles.filterChip, {
|
|
62
|
+
backgroundColor: !categoryFilter ? theme.accent : theme.surfaceAlt,
|
|
63
|
+
borderColor: theme.border
|
|
64
|
+
}],
|
|
65
|
+
onPress: () => setCategoryFilter(null),
|
|
66
|
+
activeOpacity: 0.7
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
68
|
+
style: [styles.filterText, {
|
|
69
|
+
color: !categoryFilter ? '#FFF' : theme.textSecondary
|
|
70
|
+
}]
|
|
71
|
+
}, "All (", events.length, ")")), categories.map(cat => /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
72
|
+
key: cat,
|
|
73
|
+
style: [styles.filterChip, {
|
|
74
|
+
backgroundColor: categoryFilter === cat ? CATEGORY_COLORS[cat] || theme.accent : theme.surfaceAlt,
|
|
75
|
+
borderColor: theme.border
|
|
76
|
+
}],
|
|
77
|
+
onPress: () => setCategoryFilter(categoryFilter === cat ? null : cat),
|
|
78
|
+
activeOpacity: 0.7
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
80
|
+
style: [styles.filterText, {
|
|
81
|
+
color: categoryFilter === cat ? '#FFF' : CATEGORY_COLORS[cat] || theme.textSecondary
|
|
82
|
+
}]
|
|
83
|
+
}, cat))), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
84
|
+
onPress: handleClear,
|
|
85
|
+
style: [styles.filterChip, {
|
|
86
|
+
backgroundColor: theme.surfaceAlt,
|
|
87
|
+
borderColor: theme.error
|
|
88
|
+
}],
|
|
89
|
+
activeOpacity: 0.7
|
|
90
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
91
|
+
style: [styles.filterText, {
|
|
92
|
+
color: theme.error
|
|
93
|
+
}]
|
|
94
|
+
}, "Clear"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
95
|
+
style: [styles.searchContainer, {
|
|
96
|
+
backgroundColor: theme.surface
|
|
97
|
+
}]
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
|
|
99
|
+
style: [styles.searchInput, {
|
|
100
|
+
color: theme.text,
|
|
101
|
+
backgroundColor: theme.surfaceAlt,
|
|
102
|
+
borderColor: theme.border
|
|
103
|
+
}],
|
|
104
|
+
placeholder: "Search events...",
|
|
105
|
+
placeholderTextColor: theme.textMuted,
|
|
106
|
+
value: searchQuery,
|
|
107
|
+
onChangeText: setSearchQuery,
|
|
108
|
+
autoCapitalize: "none"
|
|
109
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
110
|
+
data: filteredEvents,
|
|
111
|
+
keyExtractor: item => item.id,
|
|
112
|
+
renderItem: ({
|
|
113
|
+
item,
|
|
114
|
+
index
|
|
115
|
+
}) => {
|
|
116
|
+
const catColor = CATEGORY_COLORS[item.category] || theme.textMuted;
|
|
117
|
+
const timeDiff = index < filteredEvents.length - 1 ? item.timestamp - filteredEvents[index + 1].timestamp : 0;
|
|
118
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
119
|
+
style: [styles.eventRow, {
|
|
120
|
+
borderBottomColor: theme.border
|
|
121
|
+
}],
|
|
122
|
+
onPress: () => setExpandedId(expandedId === item.id ? null : item.id),
|
|
123
|
+
activeOpacity: 0.7
|
|
124
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
125
|
+
style: styles.timelineTrack
|
|
126
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
127
|
+
style: [styles.timelineDot, {
|
|
128
|
+
backgroundColor: catColor
|
|
129
|
+
}]
|
|
130
|
+
}), index < filteredEvents.length - 1 && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
131
|
+
style: [styles.timelineLine, {
|
|
132
|
+
backgroundColor: theme.border
|
|
133
|
+
}]
|
|
134
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
135
|
+
style: styles.eventContent
|
|
136
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
137
|
+
style: styles.eventHeader
|
|
138
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
139
|
+
style: [styles.catBadge, {
|
|
140
|
+
backgroundColor: `${catColor}20`
|
|
141
|
+
}]
|
|
142
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
143
|
+
style: [styles.catText, {
|
|
144
|
+
color: catColor
|
|
145
|
+
}]
|
|
146
|
+
}, item.category)), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
147
|
+
style: [styles.eventTime, {
|
|
148
|
+
color: theme.textMuted
|
|
149
|
+
}]
|
|
150
|
+
}, (0, _utils.formatTimestamp)(item.timestamp))), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
151
|
+
style: [styles.eventTitle, {
|
|
152
|
+
color: theme.text
|
|
153
|
+
}]
|
|
154
|
+
}, item.title), timeDiff > 0 && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
155
|
+
style: [styles.timeDiff, {
|
|
156
|
+
color: theme.textMuted
|
|
157
|
+
}]
|
|
158
|
+
}, "+", timeDiff >= 1000 ? `${(timeDiff / 1000).toFixed(1)}s` : `${timeDiff}ms`), expandedId === item.id && item.data !== undefined && item.data !== null && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
159
|
+
style: [styles.dataBlock, {
|
|
160
|
+
backgroundColor: theme.codeBackground
|
|
161
|
+
}],
|
|
162
|
+
onLongPress: () => (0, _utils.copyToClipboard)((0, _utils.safeStringify)(item.data)),
|
|
163
|
+
activeOpacity: 0.7
|
|
164
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
165
|
+
style: [styles.dataText, {
|
|
166
|
+
color: theme.codeText
|
|
167
|
+
}],
|
|
168
|
+
selectable: true
|
|
169
|
+
}, String((0, _utils.safeStringify)(item.data))))));
|
|
170
|
+
},
|
|
171
|
+
ListEmptyComponent: /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
172
|
+
style: styles.emptyContainer
|
|
173
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
174
|
+
style: [styles.emptyText, {
|
|
175
|
+
color: theme.textMuted
|
|
176
|
+
}]
|
|
177
|
+
}, "No events logged")),
|
|
178
|
+
initialNumToRender: 30
|
|
179
|
+
}));
|
|
180
|
+
};
|
|
181
|
+
const styles = _reactNative.StyleSheet.create({
|
|
182
|
+
container: {
|
|
183
|
+
flex: 1
|
|
184
|
+
},
|
|
185
|
+
filterBar: {
|
|
186
|
+
maxHeight: 44
|
|
187
|
+
},
|
|
188
|
+
filterContent: {
|
|
189
|
+
paddingHorizontal: 12,
|
|
190
|
+
paddingVertical: 8,
|
|
191
|
+
gap: 6
|
|
192
|
+
},
|
|
193
|
+
filterChip: {
|
|
194
|
+
paddingHorizontal: 10,
|
|
195
|
+
paddingVertical: 4,
|
|
196
|
+
borderRadius: 12,
|
|
197
|
+
borderWidth: 1
|
|
198
|
+
},
|
|
199
|
+
filterText: {
|
|
200
|
+
fontSize: 11,
|
|
201
|
+
fontWeight: '600'
|
|
202
|
+
},
|
|
203
|
+
searchContainer: {
|
|
204
|
+
paddingHorizontal: 12,
|
|
205
|
+
paddingBottom: 8
|
|
206
|
+
},
|
|
207
|
+
searchInput: {
|
|
208
|
+
height: 36,
|
|
209
|
+
borderRadius: 8,
|
|
210
|
+
paddingHorizontal: 12,
|
|
211
|
+
fontSize: 13,
|
|
212
|
+
borderWidth: 1
|
|
213
|
+
},
|
|
214
|
+
eventRow: {
|
|
215
|
+
flexDirection: 'row',
|
|
216
|
+
borderBottomWidth: _reactNative.StyleSheet.hairlineWidth
|
|
217
|
+
},
|
|
218
|
+
timelineTrack: {
|
|
219
|
+
width: 30,
|
|
220
|
+
alignItems: 'center',
|
|
221
|
+
paddingTop: 14
|
|
222
|
+
},
|
|
223
|
+
timelineDot: {
|
|
224
|
+
width: 10,
|
|
225
|
+
height: 10,
|
|
226
|
+
borderRadius: 5,
|
|
227
|
+
zIndex: 1
|
|
228
|
+
},
|
|
229
|
+
timelineLine: {
|
|
230
|
+
width: 2,
|
|
231
|
+
flex: 1,
|
|
232
|
+
marginTop: -2
|
|
233
|
+
},
|
|
234
|
+
eventContent: {
|
|
235
|
+
flex: 1,
|
|
236
|
+
paddingVertical: 10,
|
|
237
|
+
paddingRight: 12
|
|
238
|
+
},
|
|
239
|
+
eventHeader: {
|
|
240
|
+
flexDirection: 'row',
|
|
241
|
+
justifyContent: 'space-between',
|
|
242
|
+
alignItems: 'center',
|
|
243
|
+
marginBottom: 4
|
|
244
|
+
},
|
|
245
|
+
catBadge: {
|
|
246
|
+
paddingHorizontal: 6,
|
|
247
|
+
paddingVertical: 2,
|
|
248
|
+
borderRadius: 4
|
|
249
|
+
},
|
|
250
|
+
catText: {
|
|
251
|
+
fontSize: 9,
|
|
252
|
+
fontWeight: '800',
|
|
253
|
+
textTransform: 'uppercase',
|
|
254
|
+
letterSpacing: 0.5
|
|
255
|
+
},
|
|
256
|
+
eventTime: {
|
|
257
|
+
fontSize: 10
|
|
258
|
+
},
|
|
259
|
+
eventTitle: {
|
|
260
|
+
fontSize: 13,
|
|
261
|
+
fontWeight: '500'
|
|
262
|
+
},
|
|
263
|
+
timeDiff: {
|
|
264
|
+
fontSize: 10,
|
|
265
|
+
marginTop: 2
|
|
266
|
+
},
|
|
267
|
+
dataBlock: {
|
|
268
|
+
padding: 8,
|
|
269
|
+
borderRadius: 6,
|
|
270
|
+
marginTop: 8
|
|
271
|
+
},
|
|
272
|
+
dataText: {
|
|
273
|
+
fontSize: 11,
|
|
274
|
+
fontFamily: 'monospace',
|
|
275
|
+
lineHeight: 16
|
|
276
|
+
},
|
|
277
|
+
emptyContainer: {
|
|
278
|
+
alignItems: 'center',
|
|
279
|
+
paddingVertical: 40
|
|
280
|
+
},
|
|
281
|
+
emptyText: {
|
|
282
|
+
fontSize: 13
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
function createTimelinePlugin() {
|
|
286
|
+
return {
|
|
287
|
+
id: 'timeline',
|
|
288
|
+
name: 'Timeline',
|
|
289
|
+
icon: '📊',
|
|
290
|
+
component: TimelinePanel,
|
|
291
|
+
order: 130
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
//# sourceMappingURL=TimelinePlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_timelineStore","_utils","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CATEGORY_COLORS","navigation","network","state","user","lifecycle","custom","TimelinePanel","theme","events","setEvents","useState","searchQuery","setSearchQuery","categoryFilter","setCategoryFilter","expandedId","setExpandedId","useEffect","unsub","timelineStore","subscribe","categories","useMemo","cats","Set","add","category","Array","from","filteredEvents","filtered","filter","q","toLowerCase","title","includes","handleClear","useCallback","clear","createElement","View","style","styles","container","ScrollView","horizontal","showsHorizontalScrollIndicator","filterBar","backgroundColor","surface","contentContainerStyle","filterContent","TouchableOpacity","filterChip","accent","surfaceAlt","borderColor","border","onPress","activeOpacity","Text","filterText","color","textSecondary","length","map","cat","key","error","searchContainer","TextInput","searchInput","text","placeholder","placeholderTextColor","textMuted","value","onChangeText","autoCapitalize","FlatList","data","keyExtractor","item","id","renderItem","index","catColor","timeDiff","timestamp","eventRow","borderBottomColor","timelineTrack","timelineDot","timelineLine","eventContent","eventHeader","catBadge","catText","eventTime","formatTimestamp","eventTitle","toFixed","undefined","dataBlock","codeBackground","onLongPress","copyToClipboard","safeStringify","dataText","codeText","selectable","String","ListEmptyComponent","emptyContainer","emptyText","initialNumToRender","StyleSheet","create","flex","maxHeight","paddingHorizontal","paddingVertical","gap","borderRadius","borderWidth","fontSize","fontWeight","paddingBottom","height","flexDirection","borderBottomWidth","hairlineWidth","width","alignItems","paddingTop","zIndex","marginTop","paddingRight","justifyContent","marginBottom","textTransform","letterSpacing","padding","fontFamily","lineHeight","createTimelinePlugin","name","icon","component","order"],"sourceRoot":"../../../../src","sources":["plugins/timeline/TimelinePlugin.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAmF,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAA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BAAoBA,CAAA,EAAmB;EACrD,OAAO;IACL9D,EAAE,EAAE,UAAU;IACd+D,IAAI,EAAE,UAAU;IAChBC,IAAI,EAAE,IAAI;IACVC,SAAS,EAAE9I,aAAa;IACxB+I,KAAK,EAAE;EACT,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.logTimelineEvent = logTimelineEvent;
|
|
7
|
+
exports.timelineStore = void 0;
|
|
8
|
+
var _utils = require("../../core/utils");
|
|
9
|
+
/**
|
|
10
|
+
* TimelineStore — Global event logger for tracking app lifecycle events.
|
|
11
|
+
*
|
|
12
|
+
* Records events with category, timestamp, and optional data.
|
|
13
|
+
* Useful for tracking user flows, state transitions, and debugging sequences.
|
|
14
|
+
*/
|
|
15
|
+
class TimelineStoreClass {
|
|
16
|
+
events = [];
|
|
17
|
+
listeners = new Set();
|
|
18
|
+
maxEvents = 500;
|
|
19
|
+
|
|
20
|
+
/** Log a timeline event. */
|
|
21
|
+
log(category, title, data) {
|
|
22
|
+
const event = {
|
|
23
|
+
id: (0, _utils.generateId)(),
|
|
24
|
+
timestamp: Date.now(),
|
|
25
|
+
category,
|
|
26
|
+
title,
|
|
27
|
+
data
|
|
28
|
+
};
|
|
29
|
+
this.events = [event, ...this.events].slice(0, this.maxEvents);
|
|
30
|
+
this.notify();
|
|
31
|
+
}
|
|
32
|
+
getAll() {
|
|
33
|
+
return [...this.events];
|
|
34
|
+
}
|
|
35
|
+
clear() {
|
|
36
|
+
this.events = [];
|
|
37
|
+
this.notify();
|
|
38
|
+
}
|
|
39
|
+
subscribe(listener) {
|
|
40
|
+
this.listeners.add(listener);
|
|
41
|
+
listener(this.events);
|
|
42
|
+
return () => this.listeners.delete(listener);
|
|
43
|
+
}
|
|
44
|
+
notify() {
|
|
45
|
+
const snapshot = this.events;
|
|
46
|
+
for (const l of this.listeners) {
|
|
47
|
+
try {
|
|
48
|
+
l(snapshot);
|
|
49
|
+
} catch {
|
|
50
|
+
/* ignore */
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const timelineStore = exports.timelineStore = new TimelineStoreClass();
|
|
56
|
+
|
|
57
|
+
/** Log a timeline event. */
|
|
58
|
+
function logTimelineEvent(category, title, data) {
|
|
59
|
+
timelineStore.log(category, title, data);
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=timelineStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_utils","require","TimelineStoreClass","events","listeners","Set","maxEvents","log","category","title","data","event","id","generateId","timestamp","Date","now","slice","notify","getAll","clear","subscribe","listener","add","delete","snapshot","l","timelineStore","exports","logTimelineEvent"],"sourceRoot":"../../../../src","sources":["plugins/timeline/timelineStore.ts"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,CAAC;EACfC,MAAM,GAAoB,EAAE;EAC5BC,SAAS,GAA0B,IAAIC,GAAG,CAAC,CAAC;EAC5CC,SAAS,GAAG,GAAG;;EAEvB;EACAC,GAAGA,CAACC,QAAmC,EAAEC,KAAa,EAAEC,IAAc,EAAQ;IAC5E,MAAMC,KAAoB,GAAG;MAC3BC,EAAE,EAAE,IAAAC,iBAAU,EAAC,CAAC;MAChBC,SAAS,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC;MACrBR,QAAQ;MACRC,KAAK;MACLC;IACF,CAAC;IACD,IAAI,CAACP,MAAM,GAAG,CAACQ,KAAK,EAAE,GAAG,IAAI,CAACR,MAAM,CAAC,CAACc,KAAK,CAAC,CAAC,EAAE,IAAI,CAACX,SAAS,CAAC;IAC9D,IAAI,CAACY,MAAM,CAAC,CAAC;EACf;EAEAC,MAAMA,CAAA,EAAoB;IACxB,OAAO,CAAC,GAAG,IAAI,CAAChB,MAAM,CAAC;EACzB;EACAiB,KAAKA,CAAA,EAAS;IACZ,IAAI,CAACjB,MAAM,GAAG,EAAE;IAChB,IAAI,CAACe,MAAM,CAAC,CAAC;EACf;EAEAG,SAASA,CAACC,QAA0B,EAAc;IAChD,IAAI,CAAClB,SAAS,CAACmB,GAAG,CAACD,QAAQ,CAAC;IAC5BA,QAAQ,CAAC,IAAI,CAACnB,MAAM,CAAC;IACrB,OAAO,MAAM,IAAI,CAACC,SAAS,CAACoB,MAAM,CAACF,QAAQ,CAAC;EAC9C;EAEQJ,MAAMA,CAAA,EAAS;IACrB,MAAMO,QAAQ,GAAG,IAAI,CAACtB,MAAM;IAC5B,KAAK,MAAMuB,CAAC,IAAI,IAAI,CAACtB,SAAS,EAAE;MAC9B,IAAI;QACFsB,CAAC,CAACD,QAAQ,CAAC;MACb,CAAC,CAAC,MAAM;QACN;MAAA;IAEJ;EACF;AACF;AAEO,MAAME,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAIzB,kBAAkB,CAAC,CAAC;;AAErD;AACO,SAAS2B,gBAAgBA,CAC9BrB,QAAmC,EACnCC,KAAa,EACbC,IAAc,EACR;EACNiB,aAAa,CAACpB,GAAG,CAACC,QAAQ,EAAEC,KAAK,EAAEC,IAAI,CAAC;AAC1C","ignoreList":[]}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React, { useRef, useMemo } from 'react';
|
|
3
|
+
import { Animated, PanResponder, TouchableOpacity, StyleSheet, Dimensions, Text, View } from 'react-native';
|
|
4
|
+
const SCREEN = Dimensions.get('window');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* DebugBubble — A floating, draggable FAB that opens the debug overlay.
|
|
8
|
+
*
|
|
9
|
+
* - Fully draggable via PanResponder
|
|
10
|
+
* - Snaps to the nearest screen edge on release
|
|
11
|
+
* - Pulses subtly to indicate interactivity
|
|
12
|
+
* - Renders above all other content
|
|
13
|
+
*/
|
|
14
|
+
export const DebugBubble = ({
|
|
15
|
+
onPress,
|
|
16
|
+
theme,
|
|
17
|
+
size = 50,
|
|
18
|
+
initialPosition
|
|
19
|
+
}) => {
|
|
20
|
+
const defaultPos = initialPosition ?? {
|
|
21
|
+
x: SCREEN.width - size - 16,
|
|
22
|
+
y: SCREEN.height * 0.7
|
|
23
|
+
};
|
|
24
|
+
const pan = useRef(new Animated.ValueXY(defaultPos)).current;
|
|
25
|
+
const scale = useRef(new Animated.Value(1)).current;
|
|
26
|
+
const panResponder = useMemo(() => PanResponder.create({
|
|
27
|
+
onStartShouldSetPanResponder: () => true,
|
|
28
|
+
onMoveShouldSetPanResponder: (_, gesture) => {
|
|
29
|
+
// Only claim the gesture if the user has dragged more than 5px
|
|
30
|
+
return Math.abs(gesture.dx) > 5 || Math.abs(gesture.dy) > 5;
|
|
31
|
+
},
|
|
32
|
+
onPanResponderGrant: () => {
|
|
33
|
+
// Flatten offset into the value so extractOffset works correctly
|
|
34
|
+
pan.extractOffset();
|
|
35
|
+
Animated.spring(scale, {
|
|
36
|
+
toValue: 1.15,
|
|
37
|
+
useNativeDriver: true,
|
|
38
|
+
friction: 5
|
|
39
|
+
}).start();
|
|
40
|
+
},
|
|
41
|
+
onPanResponderMove: Animated.event([null, {
|
|
42
|
+
dx: pan.x,
|
|
43
|
+
dy: pan.y
|
|
44
|
+
}], {
|
|
45
|
+
useNativeDriver: false
|
|
46
|
+
}),
|
|
47
|
+
onPanResponderRelease: (_, gesture) => {
|
|
48
|
+
pan.flattenOffset();
|
|
49
|
+
Animated.spring(scale, {
|
|
50
|
+
toValue: 1,
|
|
51
|
+
useNativeDriver: true,
|
|
52
|
+
friction: 5
|
|
53
|
+
}).start();
|
|
54
|
+
|
|
55
|
+
// Snap to nearest horizontal edge
|
|
56
|
+
const finalX = gesture.moveX > SCREEN.width / 2 ? SCREEN.width - size - 8 : 8;
|
|
57
|
+
|
|
58
|
+
// Clamp vertical position
|
|
59
|
+
const finalY = Math.max(50, Math.min(gesture.moveY - size / 2, SCREEN.height - size - 50));
|
|
60
|
+
Animated.spring(pan, {
|
|
61
|
+
toValue: {
|
|
62
|
+
x: finalX,
|
|
63
|
+
y: finalY
|
|
64
|
+
},
|
|
65
|
+
useNativeDriver: false,
|
|
66
|
+
friction: 7,
|
|
67
|
+
tension: 40
|
|
68
|
+
}).start();
|
|
69
|
+
|
|
70
|
+
// If the user barely moved, treat it as a tap
|
|
71
|
+
if (Math.abs(gesture.dx) < 10 && Math.abs(gesture.dy) < 10) {
|
|
72
|
+
onPress();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}), [pan, scale, size, onPress]);
|
|
76
|
+
return /*#__PURE__*/React.createElement(Animated.View, _extends({
|
|
77
|
+
style: [styles.container, {
|
|
78
|
+
width: size,
|
|
79
|
+
height: size,
|
|
80
|
+
borderRadius: size / 2,
|
|
81
|
+
backgroundColor: theme.bubbleBackground,
|
|
82
|
+
transform: [{
|
|
83
|
+
translateX: pan.x
|
|
84
|
+
}, {
|
|
85
|
+
translateY: pan.y
|
|
86
|
+
}, {
|
|
87
|
+
scale
|
|
88
|
+
}],
|
|
89
|
+
shadowColor: theme.shadow
|
|
90
|
+
}]
|
|
91
|
+
}, panResponder.panHandlers), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
92
|
+
activeOpacity: 0.8,
|
|
93
|
+
style: [styles.inner, {
|
|
94
|
+
width: size,
|
|
95
|
+
height: size,
|
|
96
|
+
borderRadius: size / 2
|
|
97
|
+
}],
|
|
98
|
+
onPress: onPress
|
|
99
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
100
|
+
style: styles.iconContainer
|
|
101
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
102
|
+
style: [styles.icon, {
|
|
103
|
+
fontSize: size * 0.45
|
|
104
|
+
}]
|
|
105
|
+
}, "\uD83D\uDC1B"))));
|
|
106
|
+
};
|
|
107
|
+
const styles = StyleSheet.create({
|
|
108
|
+
container: {
|
|
109
|
+
position: 'absolute',
|
|
110
|
+
zIndex: 99999,
|
|
111
|
+
elevation: 99999,
|
|
112
|
+
shadowOffset: {
|
|
113
|
+
width: 0,
|
|
114
|
+
height: 4
|
|
115
|
+
},
|
|
116
|
+
shadowOpacity: 0.3,
|
|
117
|
+
shadowRadius: 8
|
|
118
|
+
},
|
|
119
|
+
inner: {
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
justifyContent: 'center'
|
|
122
|
+
},
|
|
123
|
+
iconContainer: {
|
|
124
|
+
alignItems: 'center',
|
|
125
|
+
justifyContent: 'center'
|
|
126
|
+
},
|
|
127
|
+
icon: {
|
|
128
|
+
textAlign: 'center'
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
//# sourceMappingURL=DebugBubble.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useRef","useMemo","Animated","PanResponder","TouchableOpacity","StyleSheet","Dimensions","Text","View","SCREEN","get","DebugBubble","onPress","theme","size","initialPosition","defaultPos","x","width","y","height","pan","ValueXY","current","scale","Value","panResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","_","gesture","Math","abs","dx","dy","onPanResponderGrant","extractOffset","spring","toValue","useNativeDriver","friction","start","onPanResponderMove","event","onPanResponderRelease","flattenOffset","finalX","moveX","finalY","max","min","moveY","tension","createElement","_extends","style","styles","container","borderRadius","backgroundColor","bubbleBackground","transform","translateX","translateY","shadowColor","shadow","panHandlers","activeOpacity","inner","iconContainer","icon","fontSize","position","zIndex","elevation","shadowOffset","shadowOpacity","shadowRadius","alignItems","justifyContent","textAlign"],"sourceRoot":"../../../src","sources":["core/DebugBubble.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,MAAM,EAAEC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