@buoy-gg/core 7.0.40 → 7.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/bin/buoy.js +25 -31
- package/lib/commonjs/browserRegister.js +48 -0
- package/lib/commonjs/browserRegister.server.js +10 -0
- package/lib/commonjs/floatingMenu/AppHost.web.js +71 -59
- package/lib/commonjs/floatingMenu/BrowserToolRuntime.js +150 -0
- package/lib/commonjs/floatingMenu/DevToolsSettingsModal.js +10 -1111
- package/lib/commonjs/floatingMenu/DevToolsSettingsModal.shared.js +1114 -0
- package/lib/commonjs/floatingMenu/DevToolsSettingsModal.web.js +28 -1028
- package/lib/commonjs/floatingMenu/FloatingDevTools.js +7 -2
- package/lib/commonjs/floatingMenu/FloatingDevTools.web.js +54 -40
- package/lib/commonjs/floatingMenu/MinimizedToolsStack.web.js +8 -2
- package/lib/commonjs/floatingMenu/autoDiscoverPresets.js +10 -0
- package/lib/commonjs/floatingMenu/autoExternalSync.js +9 -0
- package/lib/commonjs/floatingMenu/dial/DialDevTools.web.js +86 -12
- package/lib/commonjs/floatingMenu/dial/DialIcon.js +4 -2
- package/lib/commonjs/floatingMenu/settingsBus.js +6 -17
- package/lib/commonjs/floatingMenu/useDesktopSyncStatus.web.js +14 -0
- package/lib/commonjs/index.web.js +92 -1
- package/lib/commonjs/reactDevtoolsTypes.js +1 -0
- package/lib/commonjs/utils/autoDiscoverPresets.web.js +5 -178
- package/lib/commonjs/utils/createWebTool.js +20 -0
- package/lib/commonjs/utils/createWebTools.js +30 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/module/browserRegister.js +44 -0
- package/lib/module/browserRegister.server.js +6 -0
- package/lib/module/floatingMenu/AppHost.web.js +71 -59
- package/lib/module/floatingMenu/BrowserToolRuntime.js +146 -0
- package/lib/module/floatingMenu/DevToolsSettingsModal.js +1 -1113
- package/lib/module/floatingMenu/DevToolsSettingsModal.shared.js +1110 -0
- package/lib/module/floatingMenu/DevToolsSettingsModal.web.js +32 -1043
- package/lib/module/floatingMenu/FloatingDevTools.js +7 -2
- package/lib/module/floatingMenu/FloatingDevTools.web.js +55 -42
- package/lib/module/floatingMenu/MinimizedToolsStack.web.js +8 -2
- package/lib/module/floatingMenu/autoDiscoverPresets.js +10 -0
- package/lib/module/floatingMenu/autoExternalSync.js +9 -0
- package/lib/module/floatingMenu/dial/DialDevTools.web.js +87 -14
- package/lib/module/floatingMenu/dial/DialIcon.js +4 -2
- package/lib/module/floatingMenu/settingsBus.js +1 -17
- package/lib/module/floatingMenu/useDesktopSyncStatus.web.js +10 -0
- package/lib/module/index.web.js +8 -1
- package/lib/module/reactDevtoolsTypes.js +1 -0
- package/lib/module/utils/autoDiscoverPresets.web.js +5 -180
- package/lib/module/utils/createWebTool.js +17 -0
- package/lib/module/utils/createWebTools.js +25 -0
- package/lib/module/version.js +1 -1
- package/lib/typescript/commonjs/browserRegister.d.ts +5 -0
- package/lib/typescript/commonjs/browserRegister.d.ts.map +1 -0
- package/lib/typescript/commonjs/browserRegister.server.d.ts +5 -0
- package/lib/typescript/commonjs/browserRegister.server.d.ts.map +1 -0
- package/lib/typescript/commonjs/floatingMenu/AppHost.web.d.ts +3 -3
- package/lib/typescript/commonjs/floatingMenu/AppHost.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/BrowserToolRuntime.d.ts +14 -0
- package/lib/typescript/commonjs/floatingMenu/BrowserToolRuntime.d.ts.map +1 -0
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.d.ts +2 -67
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.shared.d.ts +71 -0
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.web.d.ts +3 -16
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.web.d.ts +12 -6
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/MinimizedToolsStack.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/autoDiscoverPresets.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/autoExternalSync.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts +1 -1
- package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialDevTools.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/settingsBus.d.ts +1 -9
- package/lib/typescript/commonjs/floatingMenu/settingsBus.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/useDesktopSyncStatus.web.d.ts +3 -0
- package/lib/typescript/commonjs/floatingMenu/useDesktopSyncStatus.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.web.d.ts +6 -0
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/reactDevtoolsTypes.d.ts +8 -0
- package/lib/typescript/commonjs/reactDevtoolsTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/autoDiscoverPresets.web.d.ts +3 -40
- package/lib/typescript/commonjs/utils/autoDiscoverPresets.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/createWebTool.d.ts +6 -0
- package/lib/typescript/commonjs/utils/createWebTool.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/createWebTools.d.ts +4 -0
- package/lib/typescript/commonjs/utils/createWebTools.d.ts.map +1 -0
- package/lib/typescript/commonjs/version.d.ts +1 -1
- package/lib/typescript/module/browserRegister.d.ts +5 -0
- package/lib/typescript/module/browserRegister.d.ts.map +1 -0
- package/lib/typescript/module/browserRegister.server.d.ts +5 -0
- package/lib/typescript/module/browserRegister.server.d.ts.map +1 -0
- package/lib/typescript/module/floatingMenu/AppHost.web.d.ts +3 -3
- package/lib/typescript/module/floatingMenu/AppHost.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/BrowserToolRuntime.d.ts +14 -0
- package/lib/typescript/module/floatingMenu/BrowserToolRuntime.d.ts.map +1 -0
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.d.ts +2 -67
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.shared.d.ts +71 -0
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.shared.d.ts.map +1 -0
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.web.d.ts +3 -16
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/FloatingDevTools.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/FloatingDevTools.web.d.ts +12 -6
- package/lib/typescript/module/floatingMenu/FloatingDevTools.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/MinimizedToolsStack.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/autoDiscoverPresets.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/autoExternalSync.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/defaultConfig.d.ts +1 -1
- package/lib/typescript/module/floatingMenu/defaultConfig.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/dial/DialDevTools.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/dial/DialIcon.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/settingsBus.d.ts +1 -9
- package/lib/typescript/module/floatingMenu/settingsBus.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/useDesktopSyncStatus.web.d.ts +3 -0
- package/lib/typescript/module/floatingMenu/useDesktopSyncStatus.web.d.ts.map +1 -0
- package/lib/typescript/module/index.web.d.ts +6 -0
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/reactDevtoolsTypes.d.ts +8 -0
- package/lib/typescript/module/reactDevtoolsTypes.d.ts.map +1 -0
- package/lib/typescript/module/utils/autoDiscoverPresets.web.d.ts +3 -40
- package/lib/typescript/module/utils/autoDiscoverPresets.web.d.ts.map +1 -1
- package/lib/typescript/module/utils/createWebTool.d.ts +6 -0
- package/lib/typescript/module/utils/createWebTool.d.ts.map +1 -0
- package/lib/typescript/module/utils/createWebTools.d.ts +4 -0
- package/lib/typescript/module/utils/createWebTools.d.ts.map +1 -0
- package/lib/typescript/module/version.d.ts +1 -1
- package/lib/web/chunks/chunk-5NZOQR6Q.mjs +2 -0
- package/lib/web/chunks/chunk-CGDSLLZF.mjs +2 -0
- package/lib/web/chunks/chunk-DCJDUSNR.mjs +2 -0
- package/lib/web/chunks/chunk-IDSHFS6G.mjs +2 -0
- package/lib/web/chunks/chunk-JOAMJGCS.mjs +2 -0
- package/lib/web/chunks/chunk-KYKZ2N52.mjs +2 -0
- package/lib/web/chunks/chunk-NGM7JGGS.mjs +2 -0
- package/lib/web/chunks/chunk-QZDVCMCT.mjs +2 -0
- package/lib/web/chunks/chunk-R7RGRTY5.mjs +2 -0
- package/lib/web/chunks/chunk-Z3XWDDIO.mjs +2 -0
- package/lib/web/chunks/chunk-ZTGQ6TTY.mjs +2 -0
- package/lib/web/index.mjs +11 -0
- package/lib/web/register-server.mjs +2 -0
- package/lib/web/register.mjs +2 -0
- package/lib/web/toolkit.mjs +2 -0
- package/package.json +50 -12
|
@@ -1,189 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* Uses Vite's import.meta.glob to discover installed @buoy-gg/* packages
|
|
7
|
-
* at build time. This provides Metro-like auto-discovery behavior for web.
|
|
8
|
-
*
|
|
9
|
-
* How it works:
|
|
10
|
-
* 1. import.meta.glob scans node_modules at build time
|
|
11
|
-
* 2. Only packages that are actually installed are included
|
|
12
|
-
* 3. Missing packages don't cause errors (like Metro's try-catch)
|
|
13
|
-
* 4. Custom tools can override discovered ones by ID
|
|
14
|
-
*
|
|
15
|
-
* @platform React DOM Web (Vite, CRA, Next.js, Electron)
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import { NetworkIcon, EnvIcon, StorageIcon, QueryIcon, RoutesIcon, RendersIcon } from '@buoy-gg/floating-tools-core';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Dashed-square glyph for debug-borders (no BIF brand icon exists for it
|
|
22
|
-
* yet). Plain SVG so it renders identically everywhere — emoji icons are
|
|
23
|
-
* banned here: WKWebView (Capacitor/Tauri) renders them as tofu boxes.
|
|
24
|
-
*/
|
|
25
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
-
function DebugBordersGlyph({
|
|
27
|
-
size
|
|
28
|
-
}) {
|
|
29
|
-
return /*#__PURE__*/_jsxs("svg", {
|
|
30
|
-
width: size,
|
|
31
|
-
height: size,
|
|
32
|
-
viewBox: "0 0 24 24",
|
|
33
|
-
"aria-hidden": "true",
|
|
34
|
-
children: [/*#__PURE__*/_jsx("rect", {
|
|
35
|
-
x: "3",
|
|
36
|
-
y: "3",
|
|
37
|
-
width: "18",
|
|
38
|
-
height: "18",
|
|
39
|
-
rx: "2",
|
|
40
|
-
fill: "none",
|
|
41
|
-
stroke: "#10b981",
|
|
42
|
-
strokeWidth: "2",
|
|
43
|
-
strokeDasharray: "4 3"
|
|
44
|
-
}), /*#__PURE__*/_jsx("rect", {
|
|
45
|
-
x: "8",
|
|
46
|
-
y: "8",
|
|
47
|
-
width: "8",
|
|
48
|
-
height: "8",
|
|
49
|
-
rx: "1",
|
|
50
|
-
fill: "#10b98155"
|
|
51
|
-
})]
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// =============================
|
|
56
|
-
// Default Tool Presets (Fallback)
|
|
57
|
-
// =============================
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Default tool presets for when packages don't export web presets yet.
|
|
61
|
-
* These will be used until each @buoy-gg/* package exports its own preset.
|
|
62
|
-
* Icons are the BIF brand icon components (same artwork as native) —
|
|
63
|
-
* never emoji strings (tofu in WKWebView).
|
|
64
|
-
*/
|
|
65
|
-
export const defaultToolPresets = [{
|
|
66
|
-
id: 'env',
|
|
67
|
-
name: 'ENV',
|
|
68
|
-
description: 'Environment variables debugger',
|
|
69
|
-
slot: 'both',
|
|
70
|
-
icon: size => /*#__PURE__*/_jsx(EnvIcon, {
|
|
71
|
-
size: size
|
|
72
|
-
}),
|
|
73
|
-
color: '#4AFF9F'
|
|
74
|
-
}, {
|
|
75
|
-
id: 'storage',
|
|
76
|
-
name: 'STORAGE',
|
|
77
|
-
description: 'AsyncStorage browser',
|
|
78
|
-
slot: 'both',
|
|
79
|
-
icon: size => /*#__PURE__*/_jsx(StorageIcon, {
|
|
80
|
-
size: size
|
|
81
|
-
}),
|
|
82
|
-
color: '#BA68C8'
|
|
83
|
-
}, {
|
|
84
|
-
id: 'network',
|
|
85
|
-
name: 'NET',
|
|
86
|
-
description: 'Network request logger',
|
|
87
|
-
slot: 'both',
|
|
88
|
-
icon: size => /*#__PURE__*/_jsx(NetworkIcon, {
|
|
89
|
-
size: size
|
|
90
|
-
}),
|
|
91
|
-
color: '#4AFF9F'
|
|
92
|
-
}, {
|
|
93
|
-
id: 'query',
|
|
94
|
-
name: 'QUERY',
|
|
95
|
-
description: 'React Query inspector',
|
|
96
|
-
slot: 'both',
|
|
97
|
-
icon: size => /*#__PURE__*/_jsx(QueryIcon, {
|
|
98
|
-
size: size
|
|
99
|
-
}),
|
|
100
|
-
color: '#FF4154'
|
|
101
|
-
}, {
|
|
102
|
-
id: 'route-events',
|
|
103
|
-
name: 'ROUTES',
|
|
104
|
-
description: 'Route tracking & navigation inspector',
|
|
105
|
-
slot: 'both',
|
|
106
|
-
icon: size => /*#__PURE__*/_jsx(RoutesIcon, {
|
|
107
|
-
size: size
|
|
108
|
-
}),
|
|
109
|
-
color: '#FF9F1C'
|
|
110
|
-
}, {
|
|
111
|
-
id: 'highlight-updates',
|
|
112
|
-
name: 'RENDERS',
|
|
113
|
-
description: 'View component render tracking',
|
|
114
|
-
slot: 'dial',
|
|
115
|
-
icon: size => /*#__PURE__*/_jsx(RendersIcon, {
|
|
116
|
-
size: size
|
|
117
|
-
}),
|
|
118
|
-
color: '#10b981'
|
|
119
|
-
}, {
|
|
120
|
-
id: 'debug-borders',
|
|
121
|
-
name: 'DEBUG BORDERS',
|
|
122
|
-
description: 'Component layout borders',
|
|
123
|
-
slot: 'dial',
|
|
124
|
-
icon: size => /*#__PURE__*/_jsx(DebugBordersGlyph, {
|
|
125
|
-
size: size
|
|
126
|
-
}),
|
|
127
|
-
color: '#10b981'
|
|
128
|
-
}];
|
|
3
|
+
/** Browser tools are registered through FloatingDevTools.apps. */
|
|
4
|
+
export const defaultToolPresets = [];
|
|
129
5
|
|
|
130
|
-
|
|
131
|
-
// Auto-Discovery Functions
|
|
132
|
-
// =============================
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Auto-discover installed @buoy-gg/* tool packages.
|
|
136
|
-
*
|
|
137
|
-
* Uses Vite's import.meta.glob to find packages at build time.
|
|
138
|
-
* Only installed packages are included (no errors for missing ones).
|
|
139
|
-
*
|
|
140
|
-
* Note: Until packages export web presets, this returns default presets.
|
|
141
|
-
*
|
|
142
|
-
* @returns Array of discovered tool configurations
|
|
143
|
-
*/
|
|
6
|
+
/** @deprecated Pass explicitly imported presets through FloatingDevTools.apps. */
|
|
144
7
|
export function autoDiscoverWebPresets() {
|
|
145
|
-
|
|
146
|
-
//
|
|
147
|
-
// const modules = import.meta.glob(
|
|
148
|
-
// '/node_modules/@buoy-gg/*/dist/preset.{js,mjs}',
|
|
149
|
-
// { eager: true, import: 'default' }
|
|
150
|
-
// );
|
|
151
|
-
//
|
|
152
|
-
// const presets: WebToolConfig[] = [];
|
|
153
|
-
// for (const [path, preset] of Object.entries(modules)) {
|
|
154
|
-
// if (preset && typeof preset === 'object' && 'id' in preset) {
|
|
155
|
-
// presets.push(preset as WebToolConfig);
|
|
156
|
-
// }
|
|
157
|
-
// }
|
|
158
|
-
// return presets;
|
|
159
|
-
|
|
160
|
-
// For now, return default presets
|
|
161
|
-
return [...defaultToolPresets];
|
|
8
|
+
return [];
|
|
162
9
|
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Merge custom tools with auto-discovered ones.
|
|
166
|
-
*
|
|
167
|
-
* Custom tools take precedence - if a custom tool has the same ID as
|
|
168
|
-
* a discovered tool, the custom one is used (same behavior as mobile).
|
|
169
|
-
*
|
|
170
|
-
* @param customTools - Custom tools to merge (optional)
|
|
171
|
-
* @returns Merged array with custom tools taking precedence
|
|
172
|
-
*/
|
|
173
10
|
export function autoDiscoverWithCustom(customTools = []) {
|
|
174
|
-
|
|
175
|
-
if (customTools.length === 0) {
|
|
176
|
-
return discovered;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// Create set of custom tool IDs for quick lookup
|
|
180
|
-
const customIds = new Set(customTools.map(t => t.id));
|
|
181
|
-
|
|
182
|
-
// Filter out discovered tools that have custom overrides
|
|
183
|
-
const filteredDiscovered = discovered.filter(t => !customIds.has(t.id));
|
|
184
|
-
|
|
185
|
-
// Custom tools first, then remaining discovered
|
|
186
|
-
return [...customTools, ...filteredDiscovered];
|
|
11
|
+
return [...new Map(customTools.map(tool => [tool.id, tool])).values()];
|
|
187
12
|
}
|
|
188
13
|
|
|
189
14
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createElement } from "react";
|
|
4
|
+
|
|
5
|
+
/** Adapt a shared tool preset to the browser menu's icon renderer. */
|
|
6
|
+
|
|
7
|
+
export function createWebTool(preset) {
|
|
8
|
+
const icon = preset.icon;
|
|
9
|
+
return {
|
|
10
|
+
...preset,
|
|
11
|
+
icon: typeof icon === "function" ? size => /*#__PURE__*/createElement(icon, {
|
|
12
|
+
size,
|
|
13
|
+
slot: preset.slot ?? "both",
|
|
14
|
+
color: preset.color
|
|
15
|
+
}) : () => icon
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { registerToolModules } from '@buoy-gg/shared-ui';
|
|
4
|
+
import { createWebTool } from "./createWebTool.js";
|
|
5
|
+
import { useDevToolsVisibility } from "../floatingMenu/DevToolsVisibilityContext.js";
|
|
6
|
+
import * as license from '@buoy-gg/license';
|
|
7
|
+
import * as shared from '@buoy-gg/shared-ui';
|
|
8
|
+
import * as dataViewer from '@buoy-gg/shared-ui/dataViewer';
|
|
9
|
+
export function createWebTools(modules) {
|
|
10
|
+
registerToolModules({
|
|
11
|
+
core: {
|
|
12
|
+
useDevToolsVisibility
|
|
13
|
+
},
|
|
14
|
+
license,
|
|
15
|
+
'shared-ui': shared,
|
|
16
|
+
'shared-ui/dataViewer': dataViewer,
|
|
17
|
+
...modules
|
|
18
|
+
});
|
|
19
|
+
const seen = new Set();
|
|
20
|
+
return Object.values(modules).flatMap(module => Object.entries(module).flatMap(([name, value]) => {
|
|
21
|
+
if (!name.endsWith('Preset') || !value || typeof value.id !== 'string' || !value.component || seen.has(value.id)) return [];
|
|
22
|
+
seen.add(value.id);
|
|
23
|
+
return [createWebTool(value)];
|
|
24
|
+
}));
|
|
25
|
+
}
|
package/lib/module/version.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browserRegister.d.ts","sourceRoot":"","sources":["../../../src/browserRegister.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,wBAAgB,uBAAuB,CAAC,OAAO,GAAE;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAiC5F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browserRegister.server.d.ts","sourceRoot":"","sources":["../../../src/browserRegister.server.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,wBAAgB,uBAAuB,CAAC,QAAQ,GAAE;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAE7F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { AppInstance, OpenDefinition } from "./AppHostLogic";
|
|
2
|
+
import { AppInstance, OpenDefinition, type ModalRestoreState } from "./AppHostLogic";
|
|
3
3
|
type AppHostContextValue = {
|
|
4
4
|
openApps: AppInstance[];
|
|
5
5
|
isAnyOpen: boolean;
|
|
@@ -8,9 +8,9 @@ type AppHostContextValue = {
|
|
|
8
8
|
closeAll: () => void;
|
|
9
9
|
registerApps: (apps: any[]) => void;
|
|
10
10
|
/** Minimize a tool - hides the modal but keeps state */
|
|
11
|
-
minimize: (instanceId: string) => void;
|
|
11
|
+
minimize: (instanceId: string, restoreState?: ModalRestoreState) => void;
|
|
12
12
|
/** Restore a minimized tool to visible state */
|
|
13
|
-
restore: (instanceId: string) => void;
|
|
13
|
+
restore: (instanceId: string, restoreState?: ModalRestoreState) => void;
|
|
14
14
|
/** Check if a specific tool is minimized */
|
|
15
15
|
isMinimized: (instanceId: string) => boolean;
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppHost.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/AppHost.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppHost.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/AppHost.web.tsx"],"names":[],"mappings":"AAMA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,WAAW,EACX,cAAc,EACd,KAAK,iBAAiB,EAEvB,MAAM,gBAAgB,CAAC;AAMxB,KAAK,mBAAmB,GAAG;IACzB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,MAAM,CAAC;IACtC,KAAK,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACpC,wDAAwD;IACxD,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzE,gDAAgD;IAChD,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACxE,4CAA4C;IAC5C,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9C,CAAC;AAsBF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,gCAiNpE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAO,mBAgB7B,CAAC;AAiHF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,0CAgCtB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BrowserToolModules } from '../utils/createWebTools';
|
|
2
|
+
import type { BrowserToolConfig } from '../utils/createWebTool';
|
|
3
|
+
import type { ExternalSyncOptions } from './autoExternalSync';
|
|
4
|
+
import type { EnvVarConfig } from './FloatingDevTools';
|
|
5
|
+
export interface BrowserToolRuntimeProps {
|
|
6
|
+
modules: BrowserToolModules;
|
|
7
|
+
apps?: BrowserToolConfig[];
|
|
8
|
+
requiredEnvVars?: EnvVarConfig[];
|
|
9
|
+
externalSync?: boolean | ExternalSyncOptions;
|
|
10
|
+
headless?: boolean;
|
|
11
|
+
sentryGetClient?: () => unknown;
|
|
12
|
+
}
|
|
13
|
+
export declare function BrowserToolRuntime(props: BrowserToolRuntimeProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=BrowserToolRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserToolRuntime.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/BrowserToolRuntime.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKvD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;IACjC,YAAY,CAAC,EAAE,OAAO,GAAG,mBAAmB,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC;CACjC;AAKD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAOhE"}
|
|
@@ -1,68 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Global settings that apply to all dev tools.
|
|
5
|
-
* These settings override individual tool configurations.
|
|
6
|
-
*/
|
|
7
|
-
export interface GlobalDevToolsSettings {
|
|
8
|
-
/**
|
|
9
|
-
* When true, all modals share the same dimensions/position.
|
|
10
|
-
* When false (default), each modal has its own independent persistence.
|
|
11
|
-
* Priority: Settings UI > Prop override > Default (false)
|
|
12
|
-
*/
|
|
13
|
-
enableSharedModalDimensions?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* When true (default), window control buttons expand on tap for easier pressing.
|
|
16
|
-
* When false, buttons are directly tappable at small size.
|
|
17
|
-
*/
|
|
18
|
-
expandableWindowControls?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Serialized preferences that power the floating dev tools UI. Values persist across sessions
|
|
22
|
-
* via AsyncStorage so teams can tailor which tools appear in the dial or floating row.
|
|
23
|
-
*/
|
|
24
|
-
export interface DevToolsSettings {
|
|
25
|
-
/** Map of dial tool ids to enabled state (max slots enforced elsewhere). */
|
|
26
|
-
dialTools: Record<string, boolean>;
|
|
27
|
-
/** Map of floating tool ids to enabled state plus the environment indicator toggle. */
|
|
28
|
-
floatingTools: Record<string, boolean> & {
|
|
29
|
-
environment: boolean;
|
|
30
|
-
};
|
|
31
|
-
/** Global settings that apply to all dev tools */
|
|
32
|
-
globalSettings?: GlobalDevToolsSettings;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* The subset of InstalledApp the settings modal needs per tool. `icon`/`color`
|
|
36
|
-
* let rows fall back to the tool's own glyph when getToolIcon() has no
|
|
37
|
-
* night-tuned override for it.
|
|
38
|
-
*/
|
|
39
|
-
interface SettingsToolInfo {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
description?: string;
|
|
43
|
-
slot?: "dial" | "row" | "both";
|
|
44
|
-
icon?: InstalledApp["icon"];
|
|
45
|
-
color?: string;
|
|
46
|
-
}
|
|
47
|
-
interface DevToolsSettingsModalProps {
|
|
48
|
-
visible: boolean;
|
|
49
|
-
onClose: () => void;
|
|
50
|
-
onSettingsChange?: (settings: DevToolsSettings) => void;
|
|
51
|
-
initialSettings?: DevToolsSettings;
|
|
52
|
-
availableApps?: SettingsToolInfo[];
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Configurable modal surface that lets engineers pick which dev tools appear in the dial and
|
|
56
|
-
* floating row. Persists preferences and enforces slot limits for a consistent UX.
|
|
57
|
-
*
|
|
58
|
-
* Styled in the "night" language (Everlights port — see shared-ui's
|
|
59
|
-
* ui/night): section labels outside near-black cards, hairline-separated
|
|
60
|
-
* rows, real switches, and a transparent header the star field runs through.
|
|
61
|
-
*/
|
|
62
|
-
export declare const DevToolsSettingsModal: FC<DevToolsSettingsModalProps>;
|
|
63
|
-
export declare const useDevToolsSettings: () => {
|
|
64
|
-
settings: DevToolsSettings;
|
|
65
|
-
refreshSettings: () => void;
|
|
66
|
-
};
|
|
67
|
-
export {};
|
|
1
|
+
export { DevToolsSettingsModal, useDevToolsSettings } from "./DevToolsSettingsModal.shared";
|
|
2
|
+
export type { DevToolsSettings, GlobalDevToolsSettings } from "./DevToolsSettingsModal.shared";
|
|
68
3
|
//# sourceMappingURL=DevToolsSettingsModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevToolsSettingsModal.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DevToolsSettingsModal.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import type { InstalledApp } from "./types";
|
|
3
|
+
import type { StorageAdapter } from "@buoy-gg/floating-tools-react";
|
|
4
|
+
/**
|
|
5
|
+
* Global settings that apply to all dev tools.
|
|
6
|
+
* These settings override individual tool configurations.
|
|
7
|
+
*/
|
|
8
|
+
export interface GlobalDevToolsSettings {
|
|
9
|
+
/**
|
|
10
|
+
* When true, all modals share the same dimensions/position.
|
|
11
|
+
* When false (default), each modal has its own independent persistence.
|
|
12
|
+
* Priority: Settings UI > Prop override > Default (false)
|
|
13
|
+
*/
|
|
14
|
+
enableSharedModalDimensions?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* When true (default), window control buttons expand on tap for easier pressing.
|
|
17
|
+
* When false, buttons are directly tappable at small size.
|
|
18
|
+
*/
|
|
19
|
+
expandableWindowControls?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Serialized preferences that power the floating dev tools UI. Values persist across sessions
|
|
23
|
+
* via AsyncStorage so teams can tailor which tools appear in the dial or floating row.
|
|
24
|
+
*/
|
|
25
|
+
export interface DevToolsSettings {
|
|
26
|
+
/** Map of dial tool ids to enabled state (max slots enforced elsewhere). */
|
|
27
|
+
dialTools: Record<string, boolean>;
|
|
28
|
+
/** Map of floating tool ids to enabled state plus the environment indicator toggle. */
|
|
29
|
+
floatingTools: Record<string, boolean> & {
|
|
30
|
+
environment: boolean;
|
|
31
|
+
};
|
|
32
|
+
/** Global settings that apply to all dev tools */
|
|
33
|
+
globalSettings?: GlobalDevToolsSettings;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The subset of InstalledApp the settings modal needs per tool. `icon`/`color`
|
|
37
|
+
* let rows fall back to the tool's own glyph when getToolIcon() has no
|
|
38
|
+
* night-tuned override for it.
|
|
39
|
+
*/
|
|
40
|
+
interface SettingsToolInfo {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
slot?: "dial" | "row" | "both";
|
|
45
|
+
icon?: InstalledApp["icon"];
|
|
46
|
+
color?: string;
|
|
47
|
+
}
|
|
48
|
+
interface DevToolsSettingsModalProps {
|
|
49
|
+
visible: boolean;
|
|
50
|
+
onClose: () => void;
|
|
51
|
+
onSettingsChange?: (settings: DevToolsSettings) => void;
|
|
52
|
+
initialSettings?: DevToolsSettings;
|
|
53
|
+
availableApps?: SettingsToolInfo[];
|
|
54
|
+
storage?: StorageAdapter;
|
|
55
|
+
zIndex?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Configurable modal surface that lets engineers pick which dev tools appear in the dial and
|
|
59
|
+
* floating row. Persists preferences and enforces slot limits for a consistent UX.
|
|
60
|
+
*
|
|
61
|
+
* Styled in the "night" language (Everlights port — see shared-ui's
|
|
62
|
+
* ui/night): section labels outside near-black cards, hairline-separated
|
|
63
|
+
* rows, real switches, and a transparent header the star field runs through.
|
|
64
|
+
*/
|
|
65
|
+
export declare const DevToolsSettingsModal: FC<DevToolsSettingsModalProps>;
|
|
66
|
+
export declare const useDevToolsSettings: () => {
|
|
67
|
+
settings: DevToolsSettings;
|
|
68
|
+
refreshSettings: () => void;
|
|
69
|
+
};
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=DevToolsSettingsModal.shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DevToolsSettingsModal.shared.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.shared.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,EAAE,EAAa,MAAM,OAAO,CAAC;AA4CjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAmFpE;;;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;;;;GAIG;AACH,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;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,gBAAgB,EAAE,CAAC;IACnC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAsDD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAiyBhE,CAAC;AA8FF,eAAO,MAAM,mBAAmB;;;CAuD/B,CAAC"}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* DevToolsSettingsModal - Web renderer for the dev tools settings modal.
|
|
3
|
-
*
|
|
4
|
-
* Uses shared configuration and logic from @buoy-gg/floating-tools-react.
|
|
5
|
-
* Platform-specific: CSS, mouse events, web JSX.
|
|
6
|
-
*
|
|
7
|
-
* VISUAL PARITY: styled 1:1 against the native reference
|
|
8
|
-
* (devtools-floating-menu/src/floatingMenu/DevToolsSettingsModal.tsx, which
|
|
9
|
-
* renders in the "night" language — shared-ui's ui/night Everlights port —
|
|
10
|
-
* inside JsModal variant="night"). shared-ui is RN-only, so the night tokens
|
|
11
|
-
* and primitive styles are inlined below with provenance comments.
|
|
12
|
-
*
|
|
13
|
-
* @platform React DOM Web (Vite, CRA, Next.js, Electron)
|
|
14
|
-
*/
|
|
15
|
-
import { type AvailableToolConfig, type DevToolsSettings, type StorageAdapter } from '@buoy-gg/floating-tools-react';
|
|
1
|
+
import type { AvailableToolConfig, DevToolsSettings, StorageAdapter } from "@buoy-gg/floating-tools-react";
|
|
16
2
|
export interface SettingsModalProps {
|
|
17
3
|
visible: boolean;
|
|
18
4
|
onClose: () => void;
|
|
@@ -22,5 +8,6 @@ export interface SettingsModalProps {
|
|
|
22
8
|
storage?: StorageAdapter;
|
|
23
9
|
onSettingsChange?: (settings: DevToolsSettings) => void;
|
|
24
10
|
}
|
|
25
|
-
|
|
11
|
+
/** Adapts the browser host to the shared settings and account panel. */
|
|
12
|
+
export declare function SettingsModal({ visible, onClose, availableTools, defaultFloatingTools, defaultDialTools, storage, onSettingsChange, }: SettingsModalProps): import("react").JSX.Element;
|
|
26
13
|
//# sourceMappingURL=DevToolsSettingsModal.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevToolsSettingsModal.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DevToolsSettingsModal.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAO3G,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACvC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,CAAC,EA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H,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,QAAQ,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,4EAA4E;IAC5E,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;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,mBAAmB,CAAC;IAE7C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,eAAO,MAAM,gBAAgB,GAAI,oPAgB9B,qBAAqB,6BAmcvB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { type WebToolConfig, type Environment, type UserRole } from '@buoy-gg/floating-tools-react';
|
|
2
|
+
import { type BrowserToolModules } from '../utils/createWebTools';
|
|
3
|
+
import type { BrowserToolConfig } from '../utils/createWebTool';
|
|
4
|
+
import type { ExternalSyncOptions } from './autoExternalSync';
|
|
5
|
+
import type { EnvVarConfig } from './FloatingDevTools';
|
|
2
6
|
export interface FloatingDevToolsProps {
|
|
3
7
|
/** Current environment (local, dev, qa, staging, prod) */
|
|
4
8
|
environment?: Environment;
|
|
@@ -8,14 +12,16 @@ export interface FloatingDevToolsProps {
|
|
|
8
12
|
availableEnvironments?: Environment[];
|
|
9
13
|
/** Callback when environment is switched */
|
|
10
14
|
onEnvironmentSwitch?: (env: Environment) => void;
|
|
11
|
-
/** Custom tools to add
|
|
12
|
-
apps?:
|
|
15
|
+
/** Custom tools to add to the registered packages. */
|
|
16
|
+
apps?: BrowserToolConfig[];
|
|
17
|
+
/** Imported tool packages, keyed by package name. */
|
|
18
|
+
modules?: BrowserToolModules;
|
|
19
|
+
externalSync?: boolean | ExternalSyncOptions;
|
|
20
|
+
requiredEnvVars?: EnvVarConfig[];
|
|
21
|
+
sentryGetClient?: () => unknown;
|
|
13
22
|
/** Disable onboarding tooltips */
|
|
14
23
|
disableHints?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* API parity with native. Desktop sync is native-only, so headless mode
|
|
17
|
-
* on web simply renders nothing.
|
|
18
|
-
*/
|
|
24
|
+
/** Keep capture and desktop sync running without the floating menu. */
|
|
19
25
|
headless?: boolean;
|
|
20
26
|
licenseKey?: string;
|
|
21
27
|
/** @deprecated Accounts are required for all dev tools. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingDevTools.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/FloatingDevTools.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FloatingDevTools.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/FloatingDevTools.web.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,QAAQ,EAId,MAAM,+BAA+B,CAAC;AAevC,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,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gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,cAAmB,EAAE,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"MinimizedToolsStack.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/MinimizedToolsStack.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiMH,MAAM,WAAW,wBAAwB;IACvC,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,cAAmB,EAAE,EAAE,wBAAwB,sCAyMpF"}
|
|
@@ -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;AAG5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AAG5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,EAAE,CAmVpD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,YAAY,EAAE,GAC1B,YAAY,EAAE,CAahB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoExternalSync.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/autoExternalSync.tsx"],"names":[],"mappings":"AAoBA,OAAO,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C,EAAE,YAAY,EAAE,CAAC;CAC7B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,eAAe,EACf,UAAU,GACX,EAAE,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAS/C;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,eAAe,EACf,UAAU,GACX,EAAE,mBAAmB,QAYrB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,eAAe,EACf,KAAK,EACL,IAAI,EACJ,UAAU,EACV,UAAU,GACX,EAAE,qBAAqB,QA4DvB"}
|
|
@@ -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' | 'redux' | 'zustand' | 'jotai' | 'events' | 'time-machine' | 'scenarios' | 'ask-buoy' | 'image-overlay' | 'perf-monitor' | 'perf-monitor-modal';
|
|
22
|
+
export type BuiltInToolId = 'env' | 'network' | 'push-notifications' | 'storage' | 'query' | 'query-wifi-toggle' | 'route-events' | 'debug-borders' | 'highlight-updates' | 'highlight-updates-modal' | 'redux' | 'zustand' | 'jotai' | 'events' | 'time-machine' | 'scenarios' | 'ask-buoy' | 'image-overlay' | 'perf-monitor' | 'perf-monitor-modal';
|
|
23
23
|
/**
|
|
24
24
|
* Special floating-only tool IDs that only appear in the floating bubble row.
|
|
25
25
|
*/
|
|
@@ -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,G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MAAM,EAC9C,GAAG,EAAE,CAAC,EAAE,EACR,cAAc,EAAE,CAAC,EAAE,GAClB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASzB"}
|
|
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,oBAAoB,GACpB,SAAS,GACT,OAAO,GACP,mBAAmB,GACnB,cAAc,GACd,eAAe,GACf,mBAAmB,GACnB,yBAAyB,GACzB,OAAO,GACP,SAAS,GACT,OAAO,GACP,QAAQ,GACR,cAAc,GACd,WAAW,GACX,UAAU,GACV,eAAe,GACf,cAAc,GACd,oBAAoB,CAAC;AAEzB;;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":"DialDevTools.web.d.ts","sourceRoot":"","sources":["../../../../../src/floatingMenu/dial/DialDevTools.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAqD,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DialDevTools.web.d.ts","sourceRoot":"","sources":["../../../../../src/floatingMenu/dial/DialDevTools.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAqD,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AA2C9G,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+DAA+D;IAC/D,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAoQD,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,OAAO,EACP,WAAoB,EACpB,aAAa,EACb,YAAoB,EACpB,aAAqB,GACtB,EAAE,aAAa,+BAgpBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialIcon.d.ts","sourceRoot":"","sources":["../../../../../src/floatingMenu/dial/DialIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,EAAE,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAML,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"DialIcon.d.ts","sourceRoot":"","sources":["../../../../../src/floatingMenu/dial/DialIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,EAAE,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAML,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAiD1C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,aAAa,EAAE,QAAQ,CAAC,KAAK,CAAC;IAC9B,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,KAAK,CA0M9B,CAAC"}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type Listener<T> = (payload: T) => void;
|
|
3
|
-
declare class SimpleEventBus<T = DevToolsSettings> {
|
|
4
|
-
private listeners;
|
|
5
|
-
emit(payload: T): void;
|
|
6
|
-
addListener(listener: Listener<T>): () => boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const settingsBus: SimpleEventBus<DevToolsSettings>;
|
|
9
|
-
export {};
|
|
1
|
+
export { settingsEventBus as settingsBus } from "@buoy-gg/floating-tools-core";
|
|
10
2
|
//# sourceMappingURL=settingsBus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settingsBus.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/settingsBus.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"settingsBus.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/settingsBus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC"}
|