@buoy-gg/core 2.1.12 → 2.1.13
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/floatingMenu/DevToolsSettingsModal.js +0 -5
- package/lib/commonjs/floatingMenu/FloatingDevTools.js +14 -1
- package/lib/commonjs/floatingMenu/autoDiscoverPresets.js +16 -15
- package/lib/commonjs/floatingMenu/defaultConfig.js +4 -4
- package/lib/commonjs/floatingMenu/floatingTools.js +2 -61
- package/lib/commonjs/utils/autoDiscoverPresets.web.js +0 -7
- package/lib/module/floatingMenu/DevToolsSettingsModal.js +1 -6
- package/lib/module/floatingMenu/FloatingDevTools.js +14 -1
- package/lib/module/floatingMenu/autoDiscoverPresets.js +16 -15
- package/lib/module/floatingMenu/defaultConfig.js +4 -4
- package/lib/module/floatingMenu/floatingTools.js +2 -63
- package/lib/module/utils/autoDiscoverPresets.web.js +0 -7
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/autoDiscoverPresets.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts +2 -2
- package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/floatingTools.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/autoDiscoverPresets.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/FloatingDevTools.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/autoDiscoverPresets.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/defaultConfig.d.ts +2 -2
- package/lib/typescript/module/floatingMenu/defaultConfig.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/floatingTools.d.ts.map +1 -1
- package/lib/typescript/module/utils/autoDiscoverPresets.web.d.ts.map +1 -1
- package/package.json +5 -5
- package/lib/commonjs/floatingMenu/DraggableHeader.js +0 -114
- package/lib/module/floatingMenu/DraggableHeader.js +0 -110
- package/lib/typescript/commonjs/floatingMenu/DraggableHeader.d.ts +0 -30
- package/lib/typescript/commonjs/floatingMenu/DraggableHeader.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/DraggableHeader.d.ts +0 -30
- package/lib/typescript/module/floatingMenu/DraggableHeader.d.ts.map +0 -1
|
@@ -440,11 +440,6 @@ const DevToolsSettingsModal = ({
|
|
|
440
440
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_floatingToolsCore.HighlighterIcon, {
|
|
441
441
|
size: 16
|
|
442
442
|
});
|
|
443
|
-
case "benchmark":
|
|
444
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.BenchmarkIcon, {
|
|
445
|
-
size: 16,
|
|
446
|
-
color: _sharedUi.buoyColors.textSecondary
|
|
447
|
-
});
|
|
448
443
|
case "redux":
|
|
449
444
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_floatingToolsCore.ReduxIcon, {
|
|
450
445
|
size: 16
|
|
@@ -250,6 +250,19 @@ const FloatingDevTools = ({
|
|
|
250
250
|
}
|
|
251
251
|
}, []);
|
|
252
252
|
|
|
253
|
+
// Check if perf-monitor is installed and auto-render the floating HUD
|
|
254
|
+
const PerfMonitorOverlay = (0, _react.useMemo)(() => {
|
|
255
|
+
try {
|
|
256
|
+
// @ts-ignore - Dynamic import that may not exist
|
|
257
|
+
const {
|
|
258
|
+
PerfMonitorOverlay: Overlay
|
|
259
|
+
} = require("@buoy-gg/perf-monitor");
|
|
260
|
+
return Overlay;
|
|
261
|
+
} catch {
|
|
262
|
+
return null;
|
|
263
|
+
}
|
|
264
|
+
}, []);
|
|
265
|
+
|
|
253
266
|
// Check if route-events is installed and auto-render the RouteTracker
|
|
254
267
|
// This enables automatic route tracking without requiring users to add <RouteTracker /> manually
|
|
255
268
|
const RouteTracker = (0, _react.useMemo)(() => {
|
|
@@ -316,7 +329,7 @@ const FloatingDevTools = ({
|
|
|
316
329
|
environment: resolvedEnvironment
|
|
317
330
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AppHost.AppOverlay, {})]
|
|
318
331
|
})
|
|
319
|
-
}), children, DebugBordersOverlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(DebugBordersOverlay, {}), HighlightUpdatesOverlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(HighlightUpdatesOverlay, {}), ImageOverlayOverlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(ImageOverlayOverlay, {}), RouteTracker && /*#__PURE__*/(0, _jsxRuntime.jsx)(RouteTracker, {})]
|
|
332
|
+
}), children, DebugBordersOverlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(DebugBordersOverlay, {}), HighlightUpdatesOverlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(HighlightUpdatesOverlay, {}), ImageOverlayOverlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(ImageOverlayOverlay, {}), PerfMonitorOverlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(PerfMonitorOverlay, {}), RouteTracker && /*#__PURE__*/(0, _jsxRuntime.jsx)(RouteTracker, {})]
|
|
320
333
|
})
|
|
321
334
|
})
|
|
322
335
|
})
|
|
@@ -165,21 +165,6 @@ function autoDiscoverPresets() {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
-
// Benchmark Tools
|
|
169
|
-
{
|
|
170
|
-
name: "@buoy-gg/benchmark",
|
|
171
|
-
loader: () => {
|
|
172
|
-
try {
|
|
173
|
-
// @ts-ignore - Dynamic import that may not exist
|
|
174
|
-
const {
|
|
175
|
-
benchmarkPreset
|
|
176
|
-
} = require("@buoy-gg/benchmark");
|
|
177
|
-
return benchmarkPreset;
|
|
178
|
-
} catch {
|
|
179
|
-
return null;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
168
|
// Redux DevTools
|
|
184
169
|
{
|
|
185
170
|
name: "@buoy-gg/redux",
|
|
@@ -254,6 +239,22 @@ function autoDiscoverPresets() {
|
|
|
254
239
|
return null;
|
|
255
240
|
}
|
|
256
241
|
}
|
|
242
|
+
},
|
|
243
|
+
// Performance Monitor (toggle + modal)
|
|
244
|
+
{
|
|
245
|
+
name: "@buoy-gg/perf-monitor",
|
|
246
|
+
loader: () => {
|
|
247
|
+
try {
|
|
248
|
+
// @ts-ignore - Dynamic import that may not exist
|
|
249
|
+
const {
|
|
250
|
+
perfMonitorPreset,
|
|
251
|
+
perfMonitorModalPreset
|
|
252
|
+
} = require("@buoy-gg/perf-monitor");
|
|
253
|
+
return [perfMonitorPreset, perfMonitorModalPreset];
|
|
254
|
+
} catch {
|
|
255
|
+
return null;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
257
258
|
}];
|
|
258
259
|
|
|
259
260
|
// Attempt to load each preset
|
|
@@ -32,7 +32,7 @@ exports.validateDialConfig = validateDialConfig;
|
|
|
32
32
|
* This is a union type of all auto-discovered tool IDs.
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
|
-
//
|
|
35
|
+
// Render count analysis modal (@buoy-gg/highlight-updates)
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Special floating-only tool IDs that only appear in the floating bubble row.
|
|
@@ -88,7 +88,7 @@ const MAX_DIAL_TOOLS = exports.MAX_DIAL_TOOLS = 6;
|
|
|
88
88
|
* // Returns: ['env', 'network', 'storage']
|
|
89
89
|
*
|
|
90
90
|
* // This truncates and warns
|
|
91
|
-
* validateDialConfig(['env', 'network', 'storage', 'query', 'route-events', 'debug-borders', '
|
|
91
|
+
* validateDialConfig(['env', 'network', 'storage', 'query', 'route-events', 'debug-borders', 'highlight-updates']);
|
|
92
92
|
* // Console warning, returns: ['env', 'network', 'storage', 'query', 'route-events', 'debug-borders']
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
@@ -139,7 +139,7 @@ function createDefaultConfig(config) {
|
|
|
139
139
|
* Type guard to check if a string is a valid FloatingToolId.
|
|
140
140
|
*/
|
|
141
141
|
function isFloatingToolId(id) {
|
|
142
|
-
const validIds = ['env', 'network', 'storage', 'query', 'query-wifi-toggle', 'route-events', 'debug-borders', 'highlight-updates', 'highlight-updates-modal', '
|
|
142
|
+
const validIds = ['env', 'network', 'storage', 'query', 'query-wifi-toggle', 'route-events', 'debug-borders', 'highlight-updates', 'highlight-updates-modal', 'environment'];
|
|
143
143
|
return validIds.includes(id);
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -147,7 +147,7 @@ function isFloatingToolId(id) {
|
|
|
147
147
|
* Type guard to check if a string is a valid DialToolId.
|
|
148
148
|
*/
|
|
149
149
|
function isDialToolId(id) {
|
|
150
|
-
const validIds = ['env', 'network', 'storage', 'query', 'query-wifi-toggle', 'route-events', 'debug-borders', 'highlight-updates', 'highlight-updates-modal'
|
|
150
|
+
const validIds = ['env', 'network', 'storage', 'query', 'query-wifi-toggle', 'route-events', 'debug-borders', 'highlight-updates', 'highlight-updates-modal'];
|
|
151
151
|
return validIds.includes(id);
|
|
152
152
|
}
|
|
153
153
|
|
|
@@ -9,7 +9,6 @@ exports.UserStatus = UserStatus;
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _reactNative = require("react-native");
|
|
11
11
|
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
12
|
-
var _DraggableHeader = require("./DraggableHeader.js");
|
|
13
12
|
var _onboardingConstants = require("./dial/onboardingConstants.js");
|
|
14
13
|
var _MinimizedToolsStack = require("./MinimizedToolsStack.js");
|
|
15
14
|
var _MinimizedToolsContext = require("./MinimizedToolsContext.js");
|
|
@@ -22,64 +21,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
22
21
|
|
|
23
22
|
// Using Views to render grip dots; no react-native-svg dependency
|
|
24
23
|
|
|
25
|
-
// =============================
|
|
26
|
-
// Icons (using shared layout calculation)
|
|
27
|
-
// =============================
|
|
28
|
-
/**
|
|
29
|
-
* Grip icon component for draggable areas
|
|
30
|
-
*
|
|
31
|
-
* Renders a vertical grip pattern using View components to avoid SVG dependencies.
|
|
32
|
-
* Uses shared getGripIconLayout for consistent sizing across platforms.
|
|
33
|
-
*/
|
|
34
|
-
function GripVerticalIcon({
|
|
35
|
-
size = 24,
|
|
36
|
-
color = _sharedUi.buoyColors.textSecondary + "CC"
|
|
37
|
-
}) {
|
|
38
|
-
// Use shared layout calculation from floating-tools-core
|
|
39
|
-
const layout = (0, _floatingToolsCore.getGripIconLayout)(size);
|
|
40
|
-
const containerStyle = {
|
|
41
|
-
width: size,
|
|
42
|
-
height: size,
|
|
43
|
-
flexDirection: "row",
|
|
44
|
-
alignItems: "center",
|
|
45
|
-
justifyContent: "center"
|
|
46
|
-
};
|
|
47
|
-
const columnStyle = {
|
|
48
|
-
flexDirection: "column",
|
|
49
|
-
alignItems: "center",
|
|
50
|
-
justifyContent: "center",
|
|
51
|
-
marginHorizontal: layout.columnGap / 2
|
|
52
|
-
};
|
|
53
|
-
const dotStyle = {
|
|
54
|
-
width: layout.dotSize,
|
|
55
|
-
height: layout.dotSize,
|
|
56
|
-
borderRadius: layout.dotSize / 2,
|
|
57
|
-
backgroundColor: color,
|
|
58
|
-
marginVertical: layout.rowGap / 2
|
|
59
|
-
};
|
|
60
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
61
|
-
style: containerStyle,
|
|
62
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
63
|
-
style: columnStyle,
|
|
64
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
65
|
-
style: dotStyle
|
|
66
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
67
|
-
style: dotStyle
|
|
68
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
69
|
-
style: dotStyle
|
|
70
|
-
})]
|
|
71
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
72
|
-
style: columnStyle,
|
|
73
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
74
|
-
style: dotStyle
|
|
75
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
76
|
-
style: dotStyle
|
|
77
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
78
|
-
style: dotStyle
|
|
79
|
-
})]
|
|
80
|
-
})]
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
24
|
const STORAGE_KEYS = {
|
|
84
25
|
BUBBLE_POSITION_X: "@react_buoy_bubble_position_x",
|
|
85
26
|
BUBBLE_POSITION_Y: "@react_buoy_bubble_position_y"
|
|
@@ -925,7 +866,7 @@ function FloatingTools({
|
|
|
925
866
|
height
|
|
926
867
|
});
|
|
927
868
|
},
|
|
928
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
869
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.DraggableHeader, {
|
|
929
870
|
position: animatedPosition,
|
|
930
871
|
onDragStart: handleDragStart,
|
|
931
872
|
onDragEnd: handleDragEnd,
|
|
@@ -942,7 +883,7 @@ function FloatingTools({
|
|
|
942
883
|
style: dragHandleStyle,
|
|
943
884
|
enabled: true,
|
|
944
885
|
maxOverflowX: bubbleSize.width,
|
|
945
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(GripVerticalIcon, {
|
|
886
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.GripVerticalIcon, {
|
|
946
887
|
size: 12,
|
|
947
888
|
color: _sharedUi.buoyColors.textSecondary + "CC"
|
|
948
889
|
})
|
|
@@ -86,13 +86,6 @@ const defaultToolPresets = exports.defaultToolPresets = [{
|
|
|
86
86
|
slot: 'dial',
|
|
87
87
|
icon: '📐',
|
|
88
88
|
color: '#10b981'
|
|
89
|
-
}, {
|
|
90
|
-
id: 'benchmark',
|
|
91
|
-
name: 'BENCHMARK',
|
|
92
|
-
description: 'Performance benchmarks',
|
|
93
|
-
slot: 'dial',
|
|
94
|
-
icon: '⚡',
|
|
95
|
-
color: '#F59E0B'
|
|
96
89
|
}];
|
|
97
90
|
|
|
98
91
|
// =============================
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { useState, useEffect, useCallback, useMemo } from "react";
|
|
4
4
|
import { View, Text, StyleSheet, ScrollView, TouchableOpacity, Dimensions } from "react-native";
|
|
5
5
|
import { settingsBus } from "./settingsBus.js";
|
|
6
|
-
import { SentryBugIcon, WifiCircuitIcon,
|
|
6
|
+
import { SentryBugIcon, WifiCircuitIcon, ImageOverlayIcon, RenderCountIcon, Info, Layers, ChevronRightIcon, ChevronDown, getStorageBackendType, persistentStorage, Database, Trash2, CheckCircle2, AlertTriangle, Zap, FileText, HardDrive, Copy, FileCode, copyToClipboard, LicenseEntryModal, SectionHeader } from "@buoy-gg/shared-ui";
|
|
7
7
|
import { EnvIcon, StorageIcon, RoutesIcon, NetworkIcon, QueryIcon, HighlighterIcon, ReduxIcon, EventsIcon } from "@buoy-gg/floating-tools-core";
|
|
8
8
|
import { useDefaultConfig } from "./DefaultConfigContext.js";
|
|
9
9
|
import { JsModal, devToolsStorageKeys } from "@buoy-gg/shared-ui";
|
|
@@ -441,11 +441,6 @@ export const DevToolsSettingsModal = ({
|
|
|
441
441
|
return /*#__PURE__*/_jsx(HighlighterIcon, {
|
|
442
442
|
size: 16
|
|
443
443
|
});
|
|
444
|
-
case "benchmark":
|
|
445
|
-
return /*#__PURE__*/_jsx(BenchmarkIcon, {
|
|
446
|
-
size: 16,
|
|
447
|
-
color: buoyColors.textSecondary
|
|
448
|
-
});
|
|
449
444
|
case "redux":
|
|
450
445
|
return /*#__PURE__*/_jsx(ReduxIcon, {
|
|
451
446
|
size: 16
|
|
@@ -246,6 +246,19 @@ export const FloatingDevTools = ({
|
|
|
246
246
|
}
|
|
247
247
|
}, []);
|
|
248
248
|
|
|
249
|
+
// Check if perf-monitor is installed and auto-render the floating HUD
|
|
250
|
+
const PerfMonitorOverlay = useMemo(() => {
|
|
251
|
+
try {
|
|
252
|
+
// @ts-ignore - Dynamic import that may not exist
|
|
253
|
+
const {
|
|
254
|
+
PerfMonitorOverlay: Overlay
|
|
255
|
+
} = require("@buoy-gg/perf-monitor");
|
|
256
|
+
return Overlay;
|
|
257
|
+
} catch {
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
}, []);
|
|
261
|
+
|
|
249
262
|
// Check if route-events is installed and auto-render the RouteTracker
|
|
250
263
|
// This enables automatic route tracking without requiring users to add <RouteTracker /> manually
|
|
251
264
|
const RouteTracker = useMemo(() => {
|
|
@@ -312,7 +325,7 @@ export const FloatingDevTools = ({
|
|
|
312
325
|
environment: resolvedEnvironment
|
|
313
326
|
}), /*#__PURE__*/_jsx(AppOverlay, {})]
|
|
314
327
|
})
|
|
315
|
-
}), children, DebugBordersOverlay && /*#__PURE__*/_jsx(DebugBordersOverlay, {}), HighlightUpdatesOverlay && /*#__PURE__*/_jsx(HighlightUpdatesOverlay, {}), ImageOverlayOverlay && /*#__PURE__*/_jsx(ImageOverlayOverlay, {}), RouteTracker && /*#__PURE__*/_jsx(RouteTracker, {})]
|
|
328
|
+
}), children, DebugBordersOverlay && /*#__PURE__*/_jsx(DebugBordersOverlay, {}), HighlightUpdatesOverlay && /*#__PURE__*/_jsx(HighlightUpdatesOverlay, {}), ImageOverlayOverlay && /*#__PURE__*/_jsx(ImageOverlayOverlay, {}), PerfMonitorOverlay && /*#__PURE__*/_jsx(PerfMonitorOverlay, {}), RouteTracker && /*#__PURE__*/_jsx(RouteTracker, {})]
|
|
316
329
|
})
|
|
317
330
|
})
|
|
318
331
|
})
|
|
@@ -160,21 +160,6 @@ export function autoDiscoverPresets() {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
|
-
// Benchmark Tools
|
|
164
|
-
{
|
|
165
|
-
name: "@buoy-gg/benchmark",
|
|
166
|
-
loader: () => {
|
|
167
|
-
try {
|
|
168
|
-
// @ts-ignore - Dynamic import that may not exist
|
|
169
|
-
const {
|
|
170
|
-
benchmarkPreset
|
|
171
|
-
} = require("@buoy-gg/benchmark");
|
|
172
|
-
return benchmarkPreset;
|
|
173
|
-
} catch {
|
|
174
|
-
return null;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
163
|
// Redux DevTools
|
|
179
164
|
{
|
|
180
165
|
name: "@buoy-gg/redux",
|
|
@@ -249,6 +234,22 @@ export function autoDiscoverPresets() {
|
|
|
249
234
|
return null;
|
|
250
235
|
}
|
|
251
236
|
}
|
|
237
|
+
},
|
|
238
|
+
// Performance Monitor (toggle + modal)
|
|
239
|
+
{
|
|
240
|
+
name: "@buoy-gg/perf-monitor",
|
|
241
|
+
loader: () => {
|
|
242
|
+
try {
|
|
243
|
+
// @ts-ignore - Dynamic import that may not exist
|
|
244
|
+
const {
|
|
245
|
+
perfMonitorPreset,
|
|
246
|
+
perfMonitorModalPreset
|
|
247
|
+
} = require("@buoy-gg/perf-monitor");
|
|
248
|
+
return [perfMonitorPreset, perfMonitorModalPreset];
|
|
249
|
+
} catch {
|
|
250
|
+
return null;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
252
253
|
}];
|
|
253
254
|
|
|
254
255
|
// Attempt to load each preset
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* This is a union type of all auto-discovered tool IDs.
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
//
|
|
26
|
+
// Render count analysis modal (@buoy-gg/highlight-updates)
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Special floating-only tool IDs that only appear in the floating bubble row.
|
|
@@ -79,7 +79,7 @@ export const MAX_DIAL_TOOLS = 6;
|
|
|
79
79
|
* // Returns: ['env', 'network', 'storage']
|
|
80
80
|
*
|
|
81
81
|
* // This truncates and warns
|
|
82
|
-
* validateDialConfig(['env', 'network', 'storage', 'query', 'route-events', 'debug-borders', '
|
|
82
|
+
* validateDialConfig(['env', 'network', 'storage', 'query', 'route-events', 'debug-borders', 'highlight-updates']);
|
|
83
83
|
* // Console warning, returns: ['env', 'network', 'storage', 'query', 'route-events', 'debug-borders']
|
|
84
84
|
* ```
|
|
85
85
|
*/
|
|
@@ -130,7 +130,7 @@ export function createDefaultConfig(config) {
|
|
|
130
130
|
* Type guard to check if a string is a valid FloatingToolId.
|
|
131
131
|
*/
|
|
132
132
|
export function isFloatingToolId(id) {
|
|
133
|
-
const validIds = ['env', 'network', 'storage', 'query', 'query-wifi-toggle', 'route-events', 'debug-borders', 'highlight-updates', 'highlight-updates-modal', '
|
|
133
|
+
const validIds = ['env', 'network', 'storage', 'query', 'query-wifi-toggle', 'route-events', 'debug-borders', 'highlight-updates', 'highlight-updates-modal', 'environment'];
|
|
134
134
|
return validIds.includes(id);
|
|
135
135
|
}
|
|
136
136
|
|
|
@@ -138,7 +138,7 @@ export function isFloatingToolId(id) {
|
|
|
138
138
|
* Type guard to check if a string is a valid DialToolId.
|
|
139
139
|
*/
|
|
140
140
|
export function isDialToolId(id) {
|
|
141
|
-
const validIds = ['env', 'network', 'storage', 'query', 'query-wifi-toggle', 'route-events', 'debug-borders', 'highlight-updates', 'highlight-updates-modal'
|
|
141
|
+
const validIds = ['env', 'network', 'storage', 'query', 'query-wifi-toggle', 'route-events', 'debug-borders', 'highlight-updates', 'highlight-updates-modal'];
|
|
142
142
|
return validIds.includes(id);
|
|
143
143
|
}
|
|
144
144
|
|
|
@@ -2,80 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
import { useEffect, useMemo, useRef, useState, useContext, createContext, useCallback, Children } from "react";
|
|
4
4
|
import { Animated, Dimensions, View, Text, TouchableOpacity } from "react-native";
|
|
5
|
-
import { getSafeAreaInsets, persistentStorage,
|
|
6
|
-
import { DraggableHeader } from "./DraggableHeader.js";
|
|
7
|
-
import { useSafeAreaInsets } from "@buoy-gg/shared-ui";
|
|
5
|
+
import { DraggableHeader, EnvironmentSelectorInline, GripVerticalIcon, buoyColors, getSafeAreaInsets, persistentStorage, useSafeAreaInsets } from "@buoy-gg/shared-ui";
|
|
8
6
|
import { calculateTargetPosition } from "./dial/onboardingConstants.js";
|
|
9
7
|
import { MinimizedToolsStack } from "./MinimizedToolsStack.js";
|
|
10
8
|
import { useMinimizedTools } from "./MinimizedToolsContext.js";
|
|
11
9
|
import { useAppHost } from "./AppHost.js";
|
|
12
|
-
import { EnvironmentSelectorInline } from "@buoy-gg/shared-ui";
|
|
13
10
|
|
|
14
11
|
// Shared utilities from floating-tools-core
|
|
15
|
-
import { getUserStatusConfig as getStatusConfig,
|
|
12
|
+
import { getUserStatusConfig as getStatusConfig, filterValidChildren, floatingToolsColors } from "@buoy-gg/floating-tools-core";
|
|
16
13
|
|
|
17
14
|
// Re-export UserRole type for consumers
|
|
18
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
16
|
// Using Views to render grip dots; no react-native-svg dependency
|
|
20
17
|
|
|
21
|
-
// =============================
|
|
22
|
-
// Icons (using shared layout calculation)
|
|
23
|
-
// =============================
|
|
24
|
-
/**
|
|
25
|
-
* Grip icon component for draggable areas
|
|
26
|
-
*
|
|
27
|
-
* Renders a vertical grip pattern using View components to avoid SVG dependencies.
|
|
28
|
-
* Uses shared getGripIconLayout for consistent sizing across platforms.
|
|
29
|
-
*/
|
|
30
|
-
function GripVerticalIcon({
|
|
31
|
-
size = 24,
|
|
32
|
-
color = buoyColors.textSecondary + "CC"
|
|
33
|
-
}) {
|
|
34
|
-
// Use shared layout calculation from floating-tools-core
|
|
35
|
-
const layout = getGripIconLayout(size);
|
|
36
|
-
const containerStyle = {
|
|
37
|
-
width: size,
|
|
38
|
-
height: size,
|
|
39
|
-
flexDirection: "row",
|
|
40
|
-
alignItems: "center",
|
|
41
|
-
justifyContent: "center"
|
|
42
|
-
};
|
|
43
|
-
const columnStyle = {
|
|
44
|
-
flexDirection: "column",
|
|
45
|
-
alignItems: "center",
|
|
46
|
-
justifyContent: "center",
|
|
47
|
-
marginHorizontal: layout.columnGap / 2
|
|
48
|
-
};
|
|
49
|
-
const dotStyle = {
|
|
50
|
-
width: layout.dotSize,
|
|
51
|
-
height: layout.dotSize,
|
|
52
|
-
borderRadius: layout.dotSize / 2,
|
|
53
|
-
backgroundColor: color,
|
|
54
|
-
marginVertical: layout.rowGap / 2
|
|
55
|
-
};
|
|
56
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
57
|
-
style: containerStyle,
|
|
58
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
59
|
-
style: columnStyle,
|
|
60
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
61
|
-
style: dotStyle
|
|
62
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
63
|
-
style: dotStyle
|
|
64
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
65
|
-
style: dotStyle
|
|
66
|
-
})]
|
|
67
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
68
|
-
style: columnStyle,
|
|
69
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
70
|
-
style: dotStyle
|
|
71
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
72
|
-
style: dotStyle
|
|
73
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
74
|
-
style: dotStyle
|
|
75
|
-
})]
|
|
76
|
-
})]
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
18
|
const STORAGE_KEYS = {
|
|
80
19
|
BUBBLE_POSITION_X: "@react_buoy_bubble_position_x",
|
|
81
20
|
BUBBLE_POSITION_Y: "@react_buoy_bubble_position_y"
|
|
@@ -79,13 +79,6 @@ export const defaultToolPresets = [{
|
|
|
79
79
|
slot: 'dial',
|
|
80
80
|
icon: '📐',
|
|
81
81
|
color: '#10b981'
|
|
82
|
-
}, {
|
|
83
|
-
id: 'benchmark',
|
|
84
|
-
name: 'BENCHMARK',
|
|
85
|
-
description: 'Performance benchmarks',
|
|
86
|
-
slot: 'dial',
|
|
87
|
-
icon: '⚡',
|
|
88
|
-
color: '#F59E0B'
|
|
89
82
|
}];
|
|
90
83
|
|
|
91
84
|
// =============================
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevToolsSettingsModal.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DevToolsSettingsModal.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,EAAE,EAAE,MAAM,OAAO,CAAC;AAqJtE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4EAA4E;IAC5E,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,uFAAuF;IACvF,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QACvC,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,kDAAkD;IAClD,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC;AAED,UAAU,0BAA0B;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACxD,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,aAAa,CAAC,EAAE;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAA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,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;;;;;OAaG;IACH,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IAE7C;;;;;;;;;;;;;;OAcG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IAErC;;;;;;;;;;;;;;;;OAgBG;IACH,qBAAqB,CAAC,EAAE,OAAO,oBAAoB,EAAE,WAAW,EAAE,CAAC;IAEnE;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,oBAAoB,EAAE,WAAW,KAAK,IAAI,CAAC;IAEtF;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;;;;;OAkBG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,eAAO,MAAM,gBAAgB,GAAI,kMAa9B,qBAAqB,6BA4NvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoDiscoverPresets.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/autoDiscoverPresets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"autoDiscoverPresets.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/autoDiscoverPresets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,EAAE,CA8MpD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,YAAY,EAAE,GAC1B,YAAY,EAAE,CAahB"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* All known tool IDs that can appear in the floating menu or dial menu.
|
|
20
20
|
* This is a union type of all auto-discovered tool IDs.
|
|
21
21
|
*/
|
|
22
|
-
export type BuiltInToolId = 'env' | 'network' | 'storage' | 'query' | 'query-wifi-toggle' | 'route-events' | 'debug-borders' | 'highlight-updates' | 'highlight-updates-modal'
|
|
22
|
+
export type BuiltInToolId = 'env' | 'network' | 'storage' | 'query' | 'query-wifi-toggle' | 'route-events' | 'debug-borders' | 'highlight-updates' | 'highlight-updates-modal';
|
|
23
23
|
/**
|
|
24
24
|
* Special floating-only tool IDs that only appear in the floating bubble row.
|
|
25
25
|
*/
|
|
@@ -72,7 +72,7 @@ export type DefaultDialConfig = DialToolId[];
|
|
|
72
72
|
* // Returns: ['env', 'network', 'storage']
|
|
73
73
|
*
|
|
74
74
|
* // This truncates and warns
|
|
75
|
-
* validateDialConfig(['env', 'network', 'storage', 'query', 'route-events', 'debug-borders', '
|
|
75
|
+
* validateDialConfig(['env', 'network', 'storage', 'query', 'route-events', 'debug-borders', 'highlight-updates']);
|
|
76
76
|
* // Console warning, returns: ['env', 'network', 'storage', 'query', 'route-events', 'debug-borders']
|
|
77
77
|
* ```
|
|
78
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/defaultConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AACH,MAAM,MAAM,aAAa,GACrB,KAAK,GACL,SAAS,GACT,SAAS,GACT,OAAO,GACP,mBAAmB,GACnB,cAAc,GACd,eAAe,GACf,mBAAmB,GACnB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/defaultConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AACH,MAAM,MAAM,aAAa,GACrB,KAAK,GACL,SAAS,GACT,SAAS,GACT,OAAO,GACP,mBAAmB,GACnB,cAAc,GACd,eAAe,GACf,mBAAmB,GACnB,yBAAyB,CAAC;AAE9B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,kBAAkB,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,EAAE,CAAC;AAErD;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,EAAE,CAAC;AAE7C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,iBAAiB,CAW9E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CACjC,CAAC,SAAS,cAAc,EAAE,EAC1B,CAAC,SAAS,UAAU,EAAE,EACtB,MAAM,EAAE;IACR,QAAQ,CAAC,EAAE,CAAC,CAAC;IACb,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,GAAG;IACF,QAAQ,EAAE,CAAC,GAAG,SAAS,CAAC;IACxB,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC;CACrB,CAUA;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,cAAc,CAcjE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,UAAU,CAazD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAC9C,GAAG,EAAE,CAAC,EAAE,EACR,cAAc,EAAE,CAAC,EAAE,GAClB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floatingTools.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/floatingTools.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,SAAS,EACV,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"floatingTools.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/floatingTools.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,SAAS,EACV,MAAM,OAAO,CAAC;AAUf,OAAO,EAQL,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAC;AAO5B,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,8BAA8B,CAAC;AAGtC,YAAY,EAAE,QAAQ,EAAE,CAAC;AAiSzB,wBAAgB,OAAO,gCAQtB;AAuBD,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,+BA8CA;AAmBD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uDAAuD;IACvD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,2CAA2C;IAC3C,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,mDAAmD;IACnD,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,aAAa,CAAC,EAC5B,yBAAgC,EAChC,UAAkB,EAClB,gBAAwB,EACxB,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,uBAA+B,GAChC,EAAE,kBAAkB,sCAsgBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoDiscoverPresets.web.d.ts","sourceRoot":"","sources":["../../../../src/utils/autoDiscoverPresets.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAOnE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"autoDiscoverPresets.web.d.ts","sourceRoot":"","sources":["../../../../src/utils/autoDiscoverPresets.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAOnE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAyD7C,CAAC;AAMF;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,IAAI,aAAa,EAAE,CAkBxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,GAAE,aAAa,EAAO,GAChC,aAAa,EAAE,CAejB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,EAAE,EACtB,IAAI,EAAE,MAAM,GAAG,KAAK,GACnB,aAAa,EAAE,CAKjB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,aAAa,EAAE,EACtB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,GACjC,aAAa,EAAE,CAGjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevToolsSettingsModal.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DevToolsSettingsModal.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,EAAE,EAAE,MAAM,OAAO,CAAC;AAqJtE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4EAA4E;IAC5E,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,uFAAuF;IACvF,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QACvC,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,kDAAkD;IAClD,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC;AAED,UAAU,0BAA0B;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACxD,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,aAAa,CAAC,EAAE;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,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AY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;;;;;OAaG;IACH,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IAE7C;;;;;;;;;;;;;;OAcG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IAErC;;;;;;;;;;;;;;;;OAgBG;IACH,qBAAqB,CAAC,EAAE,OAAO,oBAAoB,EAAE,WAAW,EAAE,CAAC;IAEnE;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,oBAAoB,EAAE,WAAW,KAAK,IAAI,CAAC;IAEtF;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;;;;;OAkBG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,eAAO,MAAM,gBAAgB,GAAI,kMAa9B,qBAAqB,6BA4NvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoDiscoverPresets.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/autoDiscoverPresets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"autoDiscoverPresets.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/autoDiscoverPresets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,EAAE,CA8MpD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,YAAY,EAAE,GAC1B,YAAY,EAAE,CAahB"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* All known tool IDs that can appear in the floating menu or dial menu.
|
|
20
20
|
* This is a union type of all auto-discovered tool IDs.
|
|
21
21
|
*/
|
|
22
|
-
export type BuiltInToolId = 'env' | 'network' | 'storage' | 'query' | 'query-wifi-toggle' | 'route-events' | 'debug-borders' | 'highlight-updates' | 'highlight-updates-modal'
|
|
22
|
+
export type BuiltInToolId = 'env' | 'network' | 'storage' | 'query' | 'query-wifi-toggle' | 'route-events' | 'debug-borders' | 'highlight-updates' | 'highlight-updates-modal';
|
|
23
23
|
/**
|
|
24
24
|
* Special floating-only tool IDs that only appear in the floating bubble row.
|
|
25
25
|
*/
|
|
@@ -72,7 +72,7 @@ export type DefaultDialConfig = DialToolId[];
|
|
|
72
72
|
* // Returns: ['env', 'network', 'storage']
|
|
73
73
|
*
|
|
74
74
|
* // This truncates and warns
|
|
75
|
-
* validateDialConfig(['env', 'network', 'storage', 'query', 'route-events', 'debug-borders', '
|
|
75
|
+
* validateDialConfig(['env', 'network', 'storage', 'query', 'route-events', 'debug-borders', 'highlight-updates']);
|
|
76
76
|
* // Console warning, returns: ['env', 'network', 'storage', 'query', 'route-events', 'debug-borders']
|
|
77
77
|
* ```
|
|
78
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/defaultConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AACH,MAAM,MAAM,aAAa,GACrB,KAAK,GACL,SAAS,GACT,SAAS,GACT,OAAO,GACP,mBAAmB,GACnB,cAAc,GACd,eAA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,EAAE,MAAM,GAAG,EAAE,IAAI,UAAU,CAazD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAC9C,GAAG,EAAE,CAAC,EAAE,EACR,cAAc,EAAE,CAAC,EAAE,GAClB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floatingTools.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/floatingTools.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,SAAS,EACV,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"floatingTools.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/floatingTools.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,SAAS,EACV,MAAM,OAAO,CAAC;AAUf,OAAO,EAQL,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAC;AAO5B,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,8BAA8B,CAAC;AAGtC,YAAY,EAAE,QAAQ,EAAE,CAAC;AAiSzB,wBAAgB,OAAO,gCAQtB;AAuBD,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,+BA8CA;AAmBD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uDAAuD;IACvD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,2CAA2C;IAC3C,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,mDAAmD;IACnD,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,aAAa,CAAC,EAC5B,yBAAgC,EAChC,UAAkB,EAClB,gBAAwB,EACxB,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,uBAA+B,GAChC,EAAE,kBAAkB,sCAsgBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoDiscoverPresets.web.d.ts","sourceRoot":"","sources":["../../../../src/utils/autoDiscoverPresets.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAOnE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"autoDiscoverPresets.web.d.ts","sourceRoot":"","sources":["../../../../src/utils/autoDiscoverPresets.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAOnE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAyD7C,CAAC;AAMF;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,IAAI,aAAa,EAAE,CAkBxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,GAAE,aAAa,EAAO,GAChC,aAAa,EAAE,CAejB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,EAAE,EACtB,IAAI,EAAE,MAAM,GAAG,KAAK,GACnB,aAAa,EAAE,CAKjB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,aAAa,EAAE,EACtB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,GACjC,aAAa,EAAE,CAGjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.13",
|
|
4
4
|
"description": "Floating dev tools launcher and AppHost",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
],
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@buoy-gg/shared-ui": "2.1.
|
|
26
|
-
"@buoy-gg/
|
|
27
|
-
"@buoy-gg/
|
|
28
|
-
"@buoy-gg/floating-tools-
|
|
25
|
+
"@buoy-gg/shared-ui": "2.1.13",
|
|
26
|
+
"@buoy-gg/floating-tools-core": "2.1.13",
|
|
27
|
+
"@buoy-gg/license": "2.1.13",
|
|
28
|
+
"@buoy-gg/floating-tools-react": "2.1.13"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": "*",
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DraggableHeader = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
const DraggableHeader = exports.DraggableHeader = /*#__PURE__*/(0, _react.memo)(function DraggableHeader({
|
|
11
|
-
children,
|
|
12
|
-
position,
|
|
13
|
-
onDragStart,
|
|
14
|
-
onDragEnd,
|
|
15
|
-
onTap,
|
|
16
|
-
containerBounds = _reactNative.Dimensions.get('window'),
|
|
17
|
-
elementSize = {
|
|
18
|
-
width: 100,
|
|
19
|
-
height: 50
|
|
20
|
-
},
|
|
21
|
-
minPosition = {
|
|
22
|
-
x: 0,
|
|
23
|
-
y: 0
|
|
24
|
-
},
|
|
25
|
-
style,
|
|
26
|
-
enabled = true,
|
|
27
|
-
maxOverflowX = 0
|
|
28
|
-
}) {
|
|
29
|
-
const isDraggingRef = (0, _react.useRef)(false);
|
|
30
|
-
const dragDistanceRef = (0, _react.useRef)(0);
|
|
31
|
-
const touchOffsetRef = (0, _react.useRef)({
|
|
32
|
-
x: 0,
|
|
33
|
-
y: 0
|
|
34
|
-
});
|
|
35
|
-
const startPositionRef = (0, _react.useRef)({
|
|
36
|
-
x: 0,
|
|
37
|
-
y: 0
|
|
38
|
-
});
|
|
39
|
-
const panResponder = (0, _react.useMemo)(() => _reactNative.PanResponder.create({
|
|
40
|
-
onStartShouldSetPanResponder: () => enabled,
|
|
41
|
-
onMoveShouldSetPanResponder: (_, g) => enabled && (Math.abs(g.dx) > 1 || Math.abs(g.dy) > 1),
|
|
42
|
-
onPanResponderTerminationRequest: () => false,
|
|
43
|
-
onPanResponderGrant: evt => {
|
|
44
|
-
isDraggingRef.current = false;
|
|
45
|
-
dragDistanceRef.current = 0;
|
|
46
|
-
touchOffsetRef.current = {
|
|
47
|
-
x: evt.nativeEvent.locationX,
|
|
48
|
-
y: evt.nativeEvent.locationY
|
|
49
|
-
};
|
|
50
|
-
// Capture starting position in parent coords; avoid relying on window pageX/pageY
|
|
51
|
-
position.stopAnimation(({
|
|
52
|
-
x,
|
|
53
|
-
y
|
|
54
|
-
}) => {
|
|
55
|
-
startPositionRef.current = {
|
|
56
|
-
x,
|
|
57
|
-
y
|
|
58
|
-
};
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
onPanResponderMove: (_evt, gestureState) => {
|
|
62
|
-
const totalDistance = Math.abs(gestureState.dx) + Math.abs(gestureState.dy);
|
|
63
|
-
dragDistanceRef.current = totalDistance;
|
|
64
|
-
if (totalDistance > 5 && !isDraggingRef.current) {
|
|
65
|
-
isDraggingRef.current = true;
|
|
66
|
-
onDragStart?.();
|
|
67
|
-
}
|
|
68
|
-
// Use dx/dy relative movement so parent padding/margins don't affect dragging
|
|
69
|
-
const x = startPositionRef.current.x + gestureState.dx;
|
|
70
|
-
const y = startPositionRef.current.y + gestureState.dy;
|
|
71
|
-
position.setValue({
|
|
72
|
-
x,
|
|
73
|
-
y
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
onPanResponderRelease: () => {
|
|
77
|
-
// Check if this was a tap (minimal movement) before doing anything else
|
|
78
|
-
const wasTap = dragDistanceRef.current <= 5 && !isDraggingRef.current;
|
|
79
|
-
if (wasTap) {
|
|
80
|
-
// For taps, just call the tap handler immediately - no position manipulation needed
|
|
81
|
-
onTap?.();
|
|
82
|
-
isDraggingRef.current = false;
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// For drags, get the final position and clamp it
|
|
87
|
-
position.stopAnimation(({
|
|
88
|
-
x: currentX,
|
|
89
|
-
y: currentY
|
|
90
|
-
}) => {
|
|
91
|
-
const maxX = containerBounds.width - elementSize.width + maxOverflowX;
|
|
92
|
-
const clampedX = Math.max(minPosition.x, Math.min(currentX, maxX));
|
|
93
|
-
const clampedY = Math.max(minPosition.y, Math.min(currentY, containerBounds.height - elementSize.height));
|
|
94
|
-
position.setValue({
|
|
95
|
-
x: clampedX,
|
|
96
|
-
y: clampedY
|
|
97
|
-
});
|
|
98
|
-
onDragEnd?.({
|
|
99
|
-
x: clampedX,
|
|
100
|
-
y: clampedY
|
|
101
|
-
});
|
|
102
|
-
isDraggingRef.current = false;
|
|
103
|
-
});
|
|
104
|
-
},
|
|
105
|
-
onPanResponderTerminate: () => {
|
|
106
|
-
isDraggingRef.current = false;
|
|
107
|
-
}
|
|
108
|
-
}), [enabled, position, onDragStart, onDragEnd, onTap, containerBounds, elementSize, minPosition, maxOverflowX]);
|
|
109
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
110
|
-
style: style,
|
|
111
|
-
...panResponder.panHandlers,
|
|
112
|
-
children: children
|
|
113
|
-
});
|
|
114
|
-
});
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useRef, useMemo, memo } from 'react';
|
|
4
|
-
import { View, PanResponder, Dimensions } from 'react-native';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export const DraggableHeader = /*#__PURE__*/memo(function DraggableHeader({
|
|
7
|
-
children,
|
|
8
|
-
position,
|
|
9
|
-
onDragStart,
|
|
10
|
-
onDragEnd,
|
|
11
|
-
onTap,
|
|
12
|
-
containerBounds = Dimensions.get('window'),
|
|
13
|
-
elementSize = {
|
|
14
|
-
width: 100,
|
|
15
|
-
height: 50
|
|
16
|
-
},
|
|
17
|
-
minPosition = {
|
|
18
|
-
x: 0,
|
|
19
|
-
y: 0
|
|
20
|
-
},
|
|
21
|
-
style,
|
|
22
|
-
enabled = true,
|
|
23
|
-
maxOverflowX = 0
|
|
24
|
-
}) {
|
|
25
|
-
const isDraggingRef = useRef(false);
|
|
26
|
-
const dragDistanceRef = useRef(0);
|
|
27
|
-
const touchOffsetRef = useRef({
|
|
28
|
-
x: 0,
|
|
29
|
-
y: 0
|
|
30
|
-
});
|
|
31
|
-
const startPositionRef = useRef({
|
|
32
|
-
x: 0,
|
|
33
|
-
y: 0
|
|
34
|
-
});
|
|
35
|
-
const panResponder = useMemo(() => PanResponder.create({
|
|
36
|
-
onStartShouldSetPanResponder: () => enabled,
|
|
37
|
-
onMoveShouldSetPanResponder: (_, g) => enabled && (Math.abs(g.dx) > 1 || Math.abs(g.dy) > 1),
|
|
38
|
-
onPanResponderTerminationRequest: () => false,
|
|
39
|
-
onPanResponderGrant: evt => {
|
|
40
|
-
isDraggingRef.current = false;
|
|
41
|
-
dragDistanceRef.current = 0;
|
|
42
|
-
touchOffsetRef.current = {
|
|
43
|
-
x: evt.nativeEvent.locationX,
|
|
44
|
-
y: evt.nativeEvent.locationY
|
|
45
|
-
};
|
|
46
|
-
// Capture starting position in parent coords; avoid relying on window pageX/pageY
|
|
47
|
-
position.stopAnimation(({
|
|
48
|
-
x,
|
|
49
|
-
y
|
|
50
|
-
}) => {
|
|
51
|
-
startPositionRef.current = {
|
|
52
|
-
x,
|
|
53
|
-
y
|
|
54
|
-
};
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
onPanResponderMove: (_evt, gestureState) => {
|
|
58
|
-
const totalDistance = Math.abs(gestureState.dx) + Math.abs(gestureState.dy);
|
|
59
|
-
dragDistanceRef.current = totalDistance;
|
|
60
|
-
if (totalDistance > 5 && !isDraggingRef.current) {
|
|
61
|
-
isDraggingRef.current = true;
|
|
62
|
-
onDragStart?.();
|
|
63
|
-
}
|
|
64
|
-
// Use dx/dy relative movement so parent padding/margins don't affect dragging
|
|
65
|
-
const x = startPositionRef.current.x + gestureState.dx;
|
|
66
|
-
const y = startPositionRef.current.y + gestureState.dy;
|
|
67
|
-
position.setValue({
|
|
68
|
-
x,
|
|
69
|
-
y
|
|
70
|
-
});
|
|
71
|
-
},
|
|
72
|
-
onPanResponderRelease: () => {
|
|
73
|
-
// Check if this was a tap (minimal movement) before doing anything else
|
|
74
|
-
const wasTap = dragDistanceRef.current <= 5 && !isDraggingRef.current;
|
|
75
|
-
if (wasTap) {
|
|
76
|
-
// For taps, just call the tap handler immediately - no position manipulation needed
|
|
77
|
-
onTap?.();
|
|
78
|
-
isDraggingRef.current = false;
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// For drags, get the final position and clamp it
|
|
83
|
-
position.stopAnimation(({
|
|
84
|
-
x: currentX,
|
|
85
|
-
y: currentY
|
|
86
|
-
}) => {
|
|
87
|
-
const maxX = containerBounds.width - elementSize.width + maxOverflowX;
|
|
88
|
-
const clampedX = Math.max(minPosition.x, Math.min(currentX, maxX));
|
|
89
|
-
const clampedY = Math.max(minPosition.y, Math.min(currentY, containerBounds.height - elementSize.height));
|
|
90
|
-
position.setValue({
|
|
91
|
-
x: clampedX,
|
|
92
|
-
y: clampedY
|
|
93
|
-
});
|
|
94
|
-
onDragEnd?.({
|
|
95
|
-
x: clampedX,
|
|
96
|
-
y: clampedY
|
|
97
|
-
});
|
|
98
|
-
isDraggingRef.current = false;
|
|
99
|
-
});
|
|
100
|
-
},
|
|
101
|
-
onPanResponderTerminate: () => {
|
|
102
|
-
isDraggingRef.current = false;
|
|
103
|
-
}
|
|
104
|
-
}), [enabled, position, onDragStart, onDragEnd, onTap, containerBounds, elementSize, minPosition, maxOverflowX]);
|
|
105
|
-
return /*#__PURE__*/_jsx(View, {
|
|
106
|
-
style: style,
|
|
107
|
-
...panResponder.panHandlers,
|
|
108
|
-
children: children
|
|
109
|
-
});
|
|
110
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { Animated, type ViewStyle, type StyleProp } from 'react-native';
|
|
3
|
-
interface DraggableHeaderProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
position: Animated.ValueXY;
|
|
6
|
-
onDragStart?: () => void;
|
|
7
|
-
onDragEnd?: (finalPosition: {
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
}) => void;
|
|
11
|
-
onTap?: () => void;
|
|
12
|
-
containerBounds?: {
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
};
|
|
16
|
-
elementSize?: {
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
20
|
-
minPosition?: {
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
};
|
|
24
|
-
style?: StyleProp<ViewStyle>;
|
|
25
|
-
enabled?: boolean;
|
|
26
|
-
maxOverflowX?: number;
|
|
27
|
-
}
|
|
28
|
-
export declare const DraggableHeader: import("react").NamedExoticComponent<DraggableHeaderProps>;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=DraggableHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableHeader.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DraggableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAsB,QAAQ,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAExG,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,CAAC,aAAa,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,WAAW,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,eAAe,4DA4F1B,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { Animated, type ViewStyle, type StyleProp } from 'react-native';
|
|
3
|
-
interface DraggableHeaderProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
position: Animated.ValueXY;
|
|
6
|
-
onDragStart?: () => void;
|
|
7
|
-
onDragEnd?: (finalPosition: {
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
}) => void;
|
|
11
|
-
onTap?: () => void;
|
|
12
|
-
containerBounds?: {
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
};
|
|
16
|
-
elementSize?: {
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
20
|
-
minPosition?: {
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
};
|
|
24
|
-
style?: StyleProp<ViewStyle>;
|
|
25
|
-
enabled?: boolean;
|
|
26
|
-
maxOverflowX?: number;
|
|
27
|
-
}
|
|
28
|
-
export declare const DraggableHeader: import("react").NamedExoticComponent<DraggableHeaderProps>;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=DraggableHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableHeader.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DraggableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAsB,QAAQ,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAExG,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,CAAC,aAAa,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,WAAW,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,eAAe,4DA4F1B,CAAC"}
|