@buoy-gg/core 7.0.15 → 7.0.17
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/AppHost.js +18 -0
- package/lib/commonjs/floatingMenu/AppHost.web.js +359 -0
- package/lib/commonjs/floatingMenu/AppHostLogic.js +6 -0
- package/lib/commonjs/floatingMenu/DevToolsSettingsModal.web.js +787 -418
- package/lib/commonjs/floatingMenu/FloatingDevTools.js +1 -1
- package/lib/commonjs/floatingMenu/FloatingDevTools.web.js +244 -36
- package/lib/commonjs/floatingMenu/FloatingMenu.js +4 -3
- package/lib/commonjs/floatingMenu/MinimizedToolsContext.js +2 -3
- package/lib/commonjs/floatingMenu/MinimizedToolsStack.web.js +287 -0
- package/lib/commonjs/floatingMenu/ToolHost.js +264 -0
- package/lib/commonjs/floatingMenu/allToolsRegistry.js +7 -0
- package/lib/commonjs/floatingMenu/autoDiscoverPresets.js +32 -0
- package/lib/commonjs/floatingMenu/autoExternalSync.js +18 -0
- package/lib/commonjs/floatingMenu/dial/DialDevTools.js +9 -5
- package/lib/commonjs/floatingMenu/dial/DialDevTools.web.js +373 -231
- package/lib/commonjs/floatingMenu/dial/DialIcon.js +25 -3
- package/lib/commonjs/floatingMenu/dial/OnboardingTooltip.js +1 -1
- package/lib/commonjs/floatingMenu/dial/OnboardingTooltip.web.js +154 -0
- package/lib/commonjs/floatingMenu/dial/onboardingConstants.web.js +34 -0
- package/lib/commonjs/floatingMenu/floatingTools.js +3 -3
- package/lib/commonjs/floatingMenu/floatingTools.web.js +191 -28
- package/lib/commonjs/index.js +29 -2
- package/lib/commonjs/index.web.js +19 -0
- package/lib/commonjs/toolkit.js +427 -0
- package/lib/commonjs/utils/autoDiscoverPresets.web.js +50 -5
- package/lib/module/floatingMenu/AppHost.js +18 -0
- package/lib/module/floatingMenu/AppHost.web.js +351 -0
- package/lib/module/floatingMenu/AppHostLogic.js +6 -0
- package/lib/module/floatingMenu/DevToolsSettingsModal.web.js +792 -422
- package/lib/module/floatingMenu/FloatingDevTools.js +2 -2
- package/lib/module/floatingMenu/FloatingDevTools.web.js +247 -38
- package/lib/module/floatingMenu/FloatingMenu.js +4 -3
- package/lib/module/floatingMenu/MinimizedToolsContext.js +2 -3
- package/lib/module/floatingMenu/MinimizedToolsStack.web.js +284 -0
- package/lib/module/floatingMenu/ToolHost.js +256 -0
- package/lib/module/floatingMenu/allToolsRegistry.js +8 -1
- package/lib/module/floatingMenu/autoDiscoverPresets.js +32 -0
- package/lib/module/floatingMenu/autoExternalSync.js +18 -0
- package/lib/module/floatingMenu/dial/DialDevTools.js +10 -6
- package/lib/module/floatingMenu/dial/DialDevTools.web.js +375 -233
- package/lib/module/floatingMenu/dial/DialIcon.js +26 -4
- package/lib/module/floatingMenu/dial/OnboardingTooltip.js +1 -1
- package/lib/module/floatingMenu/dial/OnboardingTooltip.web.js +149 -0
- package/lib/module/floatingMenu/dial/onboardingConstants.web.js +27 -0
- package/lib/module/floatingMenu/floatingTools.js +3 -3
- package/lib/module/floatingMenu/floatingTools.web.js +190 -28
- package/lib/module/index.js +8 -2
- package/lib/module/index.web.js +5 -0
- package/lib/module/toolkit.js +45 -0
- package/lib/module/utils/autoDiscoverPresets.web.js +53 -7
- package/lib/typescript/commonjs/floatingMenu/AppHost.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/AppHost.web.d.ts +38 -0
- package/lib/typescript/commonjs/floatingMenu/AppHost.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/floatingMenu/AppHostLogic.d.ts +24 -1
- package/lib/typescript/commonjs/floatingMenu/AppHostLogic.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.web.d.ts +5 -2
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.web.d.ts +2 -14
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/MinimizedToolsContext.d.ts +2 -20
- package/lib/typescript/commonjs/floatingMenu/MinimizedToolsContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/MinimizedToolsStack.web.d.ts +21 -0
- package/lib/typescript/commonjs/floatingMenu/MinimizedToolsStack.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/floatingMenu/ToolHost.d.ts +72 -0
- package/lib/typescript/commonjs/floatingMenu/ToolHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/floatingMenu/allToolsRegistry.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.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialDevTools.web.d.ts +16 -2
- 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/dial/OnboardingTooltip.web.d.ts +9 -0
- package/lib/typescript/commonjs/floatingMenu/dial/OnboardingTooltip.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/floatingMenu/dial/onboardingConstants.web.d.ts +13 -0
- package/lib/typescript/commonjs/floatingMenu/dial/onboardingConstants.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/floatingMenu/floatingTools.web.d.ts +29 -2
- package/lib/typescript/commonjs/floatingMenu/floatingTools.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/types.d.ts +30 -1
- package/lib/typescript/commonjs/floatingMenu/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +1 -0
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/toolkit.d.ts +22 -0
- package/lib/typescript/commonjs/toolkit.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/autoDiscoverPresets.web.d.ts +2 -0
- package/lib/typescript/commonjs/utils/autoDiscoverPresets.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/AppHost.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/AppHost.web.d.ts +38 -0
- package/lib/typescript/module/floatingMenu/AppHost.web.d.ts.map +1 -0
- package/lib/typescript/module/floatingMenu/AppHostLogic.d.ts +24 -1
- package/lib/typescript/module/floatingMenu/AppHostLogic.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.web.d.ts +5 -2
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/FloatingDevTools.web.d.ts +2 -14
- package/lib/typescript/module/floatingMenu/FloatingDevTools.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/FloatingMenu.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/MinimizedToolsContext.d.ts +2 -20
- package/lib/typescript/module/floatingMenu/MinimizedToolsContext.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/MinimizedToolsStack.web.d.ts +21 -0
- package/lib/typescript/module/floatingMenu/MinimizedToolsStack.web.d.ts.map +1 -0
- package/lib/typescript/module/floatingMenu/ToolHost.d.ts +72 -0
- package/lib/typescript/module/floatingMenu/ToolHost.d.ts.map +1 -0
- package/lib/typescript/module/floatingMenu/allToolsRegistry.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.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/dial/DialDevTools.web.d.ts +16 -2
- 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/dial/OnboardingTooltip.web.d.ts +9 -0
- package/lib/typescript/module/floatingMenu/dial/OnboardingTooltip.web.d.ts.map +1 -0
- package/lib/typescript/module/floatingMenu/dial/onboardingConstants.web.d.ts +13 -0
- package/lib/typescript/module/floatingMenu/dial/onboardingConstants.web.d.ts.map +1 -0
- package/lib/typescript/module/floatingMenu/floatingTools.web.d.ts +29 -2
- package/lib/typescript/module/floatingMenu/floatingTools.web.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/types.d.ts +30 -1
- package/lib/typescript/module/floatingMenu/types.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +1 -0
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/toolkit.d.ts +22 -0
- package/lib/typescript/module/toolkit.d.ts.map +1 -0
- package/lib/typescript/module/utils/autoDiscoverPresets.web.d.ts +2 -0
- package/lib/typescript/module/utils/autoDiscoverPresets.web.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* FloatingTools - Web renderer using shared React bindings.
|
|
3
3
|
*
|
|
4
4
|
* This file contains ONLY web-specific code (React DOM):
|
|
5
|
-
* -
|
|
5
|
+
* - Pointer event handling (mouse + touch — WKWebView/Capacitor included)
|
|
6
6
|
* - requestAnimationFrame animation
|
|
7
7
|
* - Web JSX (div, span)
|
|
8
8
|
* - localStorage adapter
|
|
@@ -22,6 +22,33 @@ export declare function UserStatus({ userRole, onPress, }: {
|
|
|
22
22
|
export interface FloatingToolsProps {
|
|
23
23
|
enablePositionPersistence?: boolean;
|
|
24
24
|
children?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Slide the bubble to the screen edge while a dial/tool is open and
|
|
27
|
+
* restore it after (native `pushToSide`, FloatingMenu.tsx:178-181).
|
|
28
|
+
*/
|
|
29
|
+
pushToSide?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Disable pointer events on the bubble while overlays own the screen —
|
|
32
|
+
* native sets pointerEvents:"none" on the floating layer while the dial
|
|
33
|
+
* is open so its pager buttons aren't eaten by bubble gestures.
|
|
34
|
+
*/
|
|
35
|
+
suspendPointerEvents?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Center the bubble under the onboarding tooltip arrow
|
|
38
|
+
* (native `centerOnboarding`, floatingTools.tsx:706-744).
|
|
39
|
+
*/
|
|
40
|
+
centerOnboarding?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Minimized-tools stack node, rendered fused to the top of the drag handle
|
|
43
|
+
* (native floatingTools.tsx:944-960: absolute bottom 100%, left 0, width 32).
|
|
44
|
+
*/
|
|
45
|
+
minimizedStack?: ReactNode;
|
|
46
|
+
/** Whether the stack has items — morphs the bubble's top-left corner flat. */
|
|
47
|
+
hasMinimizedStack?: boolean;
|
|
25
48
|
}
|
|
26
|
-
export declare function
|
|
49
|
+
export declare function getBubbleAnchorPosition(): {
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
} | null;
|
|
53
|
+
export declare function FloatingTools({ enablePositionPersistence, children, pushToSide, suspendPointerEvents, centerOnboarding, minimizedStack, hasMinimizedStack, }: FloatingToolsProps): import("react").JSX.Element | null;
|
|
27
54
|
//# sourceMappingURL=floatingTools.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floatingTools.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/floatingTools.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"floatingTools.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/floatingTools.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAiBL,KAAK,QAAQ,EAEd,MAAM,+BAA+B,CAAC;AAGvC,YAAY,EAAE,QAAQ,EAAE,CAAC;AAgFzB,wBAAgB,OAAO,gCAWtB;AAgBD,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,+BAyDA;AAkDD,MAAM,WAAW,kBAAkB;IACjC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAKD,wBAAgB,uBAAuB,IAAI;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAEzE;AAED,wBAAgB,aAAa,CAAC,EAC5B,yBAAgC,EAChC,QAAQ,EACR,UAAkB,EAClB,oBAA4B,EAC5B,gBAAwB,EACxB,cAAc,EACd,iBAAyB,GAC1B,EAAE,kBAAkB,sCAgSpB"}
|
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
import { ComponentType } from "react";
|
|
1
|
+
import { ComponentType, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Declarative modal chrome for a custom tool. When present (with the default
|
|
4
|
+
* `self-modal` launch mode), the AppHost wraps `component` in the shared
|
|
5
|
+
* JsModal + header shell — drag/resize, floating⇄bottom-sheet, minimize,
|
|
6
|
+
* window controls, dimension persistence, header search and toasts all come
|
|
7
|
+
* for free, and `component` renders just the tool BODY.
|
|
8
|
+
*
|
|
9
|
+
* Without `modal`, `self-modal` components are rendered raw and must provide
|
|
10
|
+
* their own chrome (this is what Buoy's first-party tools do).
|
|
11
|
+
*/
|
|
12
|
+
export interface ToolModalConfig {
|
|
13
|
+
/** Header title; defaults to the app's `name`. */
|
|
14
|
+
title?: string;
|
|
15
|
+
/** Secondary line under the title. */
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
/** Show the header search button; the query is read via `useToolHost().search`. */
|
|
18
|
+
searchable?: boolean;
|
|
19
|
+
searchPlaceholder?: string;
|
|
20
|
+
/** Static header action buttons (elements may be stateful components). */
|
|
21
|
+
headerActions?: ReactNode;
|
|
22
|
+
/** Starting presentation; users can toggle and it persists. Default "bottomSheet". */
|
|
23
|
+
initialMode?: "bottomSheet" | "floating";
|
|
24
|
+
}
|
|
2
25
|
/** Where a tool should render within the floating menu surface. */
|
|
3
26
|
export type AppSlot = "row" | "dial" | "both";
|
|
4
27
|
/** Generic, dynamic context shared with floating tools. */
|
|
@@ -35,6 +58,12 @@ export interface InstalledApp {
|
|
|
35
58
|
color?: string;
|
|
36
59
|
/** Plug-and-play launching component handled by the AppHost. */
|
|
37
60
|
component: ComponentType<any>;
|
|
61
|
+
/**
|
|
62
|
+
* Declarative chrome: when set, `component` is rendered as a plain body
|
|
63
|
+
* inside the shared modal shell (JsModal + header + search + toasts).
|
|
64
|
+
* See {@link ToolModalConfig}.
|
|
65
|
+
*/
|
|
66
|
+
modal?: ToolModalConfig;
|
|
38
67
|
/** Props to pass to the launched component (e.g. requiredEnvVars). */
|
|
39
68
|
props?: Record<string, unknown>;
|
|
40
69
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,sFAAsF;IACtF,WAAW,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC;CAC1C;AAED,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9C,2DAA2D;AAC3D,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACxD,sDAAsD;AACtD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,CAAC;AAE3E;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,2DAA2D;IAC3D,IAAI,EAAE,OAAO,CAAC;IACd,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B,CAAC;AAEF,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,EAAE,EAAE,MAAM,CAAC;IACX,2EAA2E;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,EAAE,qBAAqB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1E,oEAAoE;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,gEAAgE;IAChE,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAC9B;;;;OAIG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,aAAa,CAAC;IACpE,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACnD"}
|
|
@@ -12,6 +12,8 @@ export * from "./floatingMenu/types";
|
|
|
12
12
|
export { DevToolsSettingsModal, useDevToolsSettings, } from "./floatingMenu/DevToolsSettingsModal";
|
|
13
13
|
export type { DevToolsSettings, GlobalDevToolsSettings } from "./floatingMenu/DevToolsSettingsModal";
|
|
14
14
|
export { AppHostProvider, AppOverlay, useAppHost, } from "./floatingMenu/AppHost";
|
|
15
|
+
export { useToolHost, useToolHeader, type ToolHostContextValue, type ToolHeaderOverride, type ToolToastType, } from "./floatingMenu/ToolHost";
|
|
16
|
+
export * from "./toolkit";
|
|
15
17
|
export { DevToolsVisibilityProvider, useDevToolsVisibility, } from "./floatingMenu/DevToolsVisibilityContext";
|
|
16
18
|
export { toggleStateManager } from "./floatingMenu/ToggleStateManager";
|
|
17
19
|
export { MinimizedToolsProvider, useMinimizedTools, getIconPosition, getIconSize, } from "./floatingMenu/MinimizedToolsContext";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,YAAY,EACV,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,GACjB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAI3E,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGpE,OAAO,EACL,mBAAmB,EACnB,6BAA6B,GAC9B,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAc,GACf,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAGrG,OAAO,EACL,eAAe,EACf,UAAU,EAC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Y,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAGrG,OAAO,EACL,eAAe,EACf,UAAU,EACV,UAAU,GACX,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,WAAW,EACX,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,GACnB,MAAM,yBAAyB,CAAC;AAGjC,cAAc,WAAW,CAAC;AAG1B,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,0CAA0C,CAAC;AAGlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,WAAW,GACZ,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,YAAY,GACb,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAIzE,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,KAAK,EACL,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC"}
|
|
@@ -14,6 +14,7 @@ export { DialMenu } from "./floatingMenu/dial/DialDevTools.web";
|
|
|
14
14
|
export type { DialIcon, DialMenuProps } from "./floatingMenu/dial/DialDevTools.web";
|
|
15
15
|
export { SettingsModal } from "./floatingMenu/DevToolsSettingsModal.web";
|
|
16
16
|
export type { SettingsModalProps } from "./floatingMenu/DevToolsSettingsModal.web";
|
|
17
|
+
export { AppHostProvider, AppOverlay, useAppHost } from "./floatingMenu/AppHost.web";
|
|
17
18
|
export { autoDiscoverWebPresets, autoDiscoverWithCustom, getToolsBySlot, getEnabledTools, defaultToolPresets, } from "./utils/autoDiscoverPresets.web";
|
|
18
19
|
export type { WebToolConfig, Environment, UserRole, StorageAdapter, DevToolsSettings, AvailableToolConfig, } from "@buoy-gg/floating-tools-react";
|
|
19
20
|
export { useSettings, useFloatingTools, getToolLabel, getToolDescription, getToolColor, settingsColors, settingsStyles, dialColors, dialStyles, } from "@buoy-gg/floating-tools-react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,YAAY,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAGjF,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACtF,YAAY,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,YAAY,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAGjF,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACtF,YAAY,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAKnF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGrF,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAGzC,YAAY,EACV,aAAa,EACb,WAAW,EACX,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,UAAU,EACV,UAAU,GACX,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The public custom-tools toolkit — the blessed subset of Buoy's shared UI
|
|
3
|
+
* re-exported from `@buoy-gg/core`, so third-party tool authors need exactly
|
|
4
|
+
* one dependency and never touch `@buoy-gg/shared-ui` (which stays internal
|
|
5
|
+
* and free to churn).
|
|
6
|
+
*
|
|
7
|
+
* Everything here is considered API: additions are minor bumps, removals are
|
|
8
|
+
* major. If a component you want is missing, that's deliberate — request it
|
|
9
|
+
* rather than deep-importing.
|
|
10
|
+
*/
|
|
11
|
+
export { toolTheme, type ToolTheme } from "@buoy-gg/shared-ui";
|
|
12
|
+
export { CompactRow, type CompactRowProps, SectionHeader, TabSelector, type Tab, EmptyState, NoDataEmptyState, NoResultsEmptyState, NoSearchResultsEmptyState, } from "@buoy-gg/shared-ui";
|
|
13
|
+
export { Badge, StatusBadge, CountBadge, TypeBadge, MethodBadge, } from "@buoy-gg/shared-ui";
|
|
14
|
+
export { ToolButton, type ToolButtonProps, CopyButton, InlineCopyButton, ToolbarCopyButton, ToolbarClearButton, PowerToggleButton, type PowerToggleButtonProps, HeaderSearchButton, } from "@buoy-gg/shared-ui";
|
|
15
|
+
export { EventStepperFooter, type EventStepperFooterProps } from "@buoy-gg/shared-ui";
|
|
16
|
+
export { DataViewer } from "@buoy-gg/shared-ui/dataViewer";
|
|
17
|
+
export { RelativeTime, formatRelativeTime } from "@buoy-gg/shared-ui";
|
|
18
|
+
export { persistentStorage, devToolsStorageKeys, usePersistedState, } from "@buoy-gg/shared-ui";
|
|
19
|
+
export { useSafeAreaInsets, copyToClipboard, displayValue, safeStringify, } from "@buoy-gg/shared-ui";
|
|
20
|
+
export { JsModal, type ModalMode, ModalHeader } from "@buoy-gg/shared-ui";
|
|
21
|
+
export { Activity, AlertTriangle, Bug, Check, CheckCircle, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clock, Copy, Database, Eye, EyeOff, FileJson, FileText, Filter, FlaskConical, Globe, Hash, Info, Key, Layers, Lock, Pause, Play, Plus, Power, RefreshCw, Search, Settings, Shield, Trash2, User, Wifi, X, Zap, } from "@buoy-gg/shared-ui";
|
|
22
|
+
//# sourceMappingURL=toolkit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolkit.d.ts","sourceRoot":"","sources":["../../../src/toolkit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/D,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,aAAa,EACb,WAAW,EACX,KAAK,GAAG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,oBAAoB,CAAC"}
|
|
@@ -16,6 +16,8 @@ import type { WebToolConfig } from '@buoy-gg/floating-tools-react';
|
|
|
16
16
|
/**
|
|
17
17
|
* Default tool presets for when packages don't export web presets yet.
|
|
18
18
|
* These will be used until each @buoy-gg/* package exports its own preset.
|
|
19
|
+
* Icons are the BIF brand icon components (same artwork as native) —
|
|
20
|
+
* never emoji strings (tofu in WKWebView).
|
|
19
21
|
*/
|
|
20
22
|
export declare const defaultToolPresets: WebToolConfig[];
|
|
21
23
|
/**
|
|
@@ -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;
|
|
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;AAsCnE;;;;;GAKG;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":"AppHost.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/AppHost.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAQZ,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,WAAW,EAIZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"AppHost.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/AppHost.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAQZ,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,WAAW,EAIZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAIjC,KAAK,mBAAmB,GAAG;IACzB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,KAAK,MAAM,CAAC;IACvD,KAAK,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACrC,wDAAwD;IACxD,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,mFAAmF;IACnF,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;AAaF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sBA4NpE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,2BAgBtB,CAAC;AAkHF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,gCAsFtB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { AppInstance, OpenDefinition } from "./AppHostLogic";
|
|
3
|
+
type AppHostContextValue = {
|
|
4
|
+
openApps: AppInstance[];
|
|
5
|
+
isAnyOpen: boolean;
|
|
6
|
+
open: (def: OpenDefinition) => string;
|
|
7
|
+
close: (instanceId?: string) => void;
|
|
8
|
+
closeAll: () => void;
|
|
9
|
+
registerApps: (apps: any[]) => void;
|
|
10
|
+
/** Minimize a tool - hides the modal but keeps state */
|
|
11
|
+
minimize: (instanceId: string) => void;
|
|
12
|
+
/** Restore a minimized tool to visible state */
|
|
13
|
+
restore: (instanceId: string) => void;
|
|
14
|
+
/** Check if a specific tool is minimized */
|
|
15
|
+
isMinimized: (instanceId: string) => boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Provides the floating dev tools application host for web. Tracks open tool
|
|
19
|
+
* instances, restores persisted state, and exposes the same imperative
|
|
20
|
+
* helpers as the native `AppHostProvider`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const AppHostProvider: ({ children }: {
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}) => import("react").JSX.Element;
|
|
25
|
+
/**
|
|
26
|
+
* Accessor hook for the web app host. Falls back to a no-op implementation
|
|
27
|
+
* when rendered outside the provider — same contract as native.
|
|
28
|
+
*/
|
|
29
|
+
export declare const useAppHost: () => AppHostContextValue;
|
|
30
|
+
/**
|
|
31
|
+
* Renders all open dev tool surfaces — DOM twin of the native `AppOverlay`.
|
|
32
|
+
* Later-opened tools stack on top (base z 9000 + index). Minimized tools are
|
|
33
|
+
* shown by the MinimizedToolsStack fused to the floating bubble (native
|
|
34
|
+
* parity) — the old fixed bottom-right MinimizedDock was replaced by it.
|
|
35
|
+
*/
|
|
36
|
+
export declare const AppOverlay: () => import("react").JSX.Element | null;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=AppHost.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppHost.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/AppHost.web.tsx"],"names":[],"mappings":"AAuBA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,WAAW,EACX,cAAc,EAEf,MAAM,gBAAgB,CAAC;AAGxB,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,KAAK,IAAI,CAAC;IACvC,gDAAgD;IAChD,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,4CAA4C;IAC5C,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9C,CAAC;AAuBF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,gCAsNpE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAO,mBAgB7B,CAAC;AAmGF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,0CA8BtB,CAAC"}
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode } from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ToolModalConfig } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Modal state to restore when reopening a minimized tool. Defined here (the
|
|
5
|
+
* platform-free logic module) so the web host doesn't pull in the native
|
|
6
|
+
* MinimizedToolsContext; that file re-exports this type for back-compat.
|
|
7
|
+
*/
|
|
8
|
+
export interface ModalRestoreState {
|
|
9
|
+
/** Modal display mode */
|
|
10
|
+
mode: "bottomSheet" | "floating";
|
|
11
|
+
/** Panel height for bottom sheet mode */
|
|
12
|
+
panelHeight?: number;
|
|
13
|
+
/** Position for floating mode */
|
|
14
|
+
floatingPosition?: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
18
|
+
/** Dimensions for floating mode */
|
|
19
|
+
floatingDimensions?: {
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
3
24
|
export type LaunchMode = "self-modal" | "host-modal" | "inline" | "toggle-only";
|
|
4
25
|
export type AppInstance = {
|
|
5
26
|
instanceId: string;
|
|
@@ -17,6 +38,8 @@ export type AppInstance = {
|
|
|
17
38
|
color?: string;
|
|
18
39
|
/** Modal state to restore when un-minimizing */
|
|
19
40
|
restoreState?: ModalRestoreState;
|
|
41
|
+
/** Declarative chrome config — when set, AppHost wraps the component in the shared modal shell. */
|
|
42
|
+
modal?: ToolModalConfig;
|
|
20
43
|
};
|
|
21
44
|
export type OpenDefinition = Omit<AppInstance, "instanceId">;
|
|
22
45
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppHostLogic.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/AppHostLogic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AppHostLogic.d.ts","sourceRoot":"","sources":["../../../../src/floatingMen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EAAE,YAAY,CAAC,CAAC;AAE7D;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,WAAW,EAAE,EACtB,KAAK,cAAc,EACnB,YAAY,MAAM,MAAM,KACvB;IAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAuBlE,CAAC"}
|
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
* Uses shared configuration and logic from @buoy-gg/floating-tools-react.
|
|
5
5
|
* Platform-specific: CSS, mouse events, web JSX.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* VISUAL PARITY: styled 1:1 against the native reference
|
|
8
|
+
* (devtools-floating-menu/src/floatingMenu/DevToolsSettingsModal.tsx, which
|
|
9
|
+
* renders inside JsModal + ModalHeader + TabSelector from @buoy-gg/shared-ui).
|
|
10
|
+
* shared-ui is RN-only, so its buoyColors palette and the native-only style
|
|
11
|
+
* values are inlined below with provenance comments.
|
|
9
12
|
*
|
|
10
13
|
* @platform React DOM Web (Vite, CRA, Next.js, Electron)
|
|
11
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevToolsSettingsModal.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.web.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"DevToolsSettingsModal.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/DevToolsSettingsModal.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAaL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAEpB,MAAM,+BAA+B,CAAC;AA6DvC,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,EAAE,cAAc,CAAC;IACzB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACzD;AAqdD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,OAAO,EACP,cAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,OAA2B,EAC3B,gBAAgB,GACjB,EAAE,kBAAkB,sCAoapB"}
|
|
@@ -28,7 +28,7 @@ export interface FloatingDevToolsProps {
|
|
|
28
28
|
onEnvironmentSwitch?: (env: Environment) => void;
|
|
29
29
|
/** Custom tools to add (will be merged with auto-discovered) */
|
|
30
30
|
apps?: WebToolConfig[];
|
|
31
|
-
/** Disable onboarding
|
|
31
|
+
/** Disable onboarding tooltips */
|
|
32
32
|
disableHints?: boolean;
|
|
33
33
|
/**
|
|
34
34
|
* API parity with native. Desktop sync is native-only, so headless mode
|
|
@@ -36,18 +36,6 @@ export interface FloatingDevToolsProps {
|
|
|
36
36
|
*/
|
|
37
37
|
headless?: boolean;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
* Unified FloatingDevTools component - self-contained, no wrapping required.
|
|
41
|
-
*
|
|
42
|
-
* Matches mobile API exactly:
|
|
43
|
-
* ```tsx
|
|
44
|
-
* // Mobile
|
|
45
|
-
* <FloatingDevTools environment="qa" userRole={userRole} />
|
|
46
|
-
*
|
|
47
|
-
* // Web (this component)
|
|
48
|
-
* <FloatingDevTools environment="qa" userRole="admin" />
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export declare function FloatingDevTools({ environment: _environment, userRole, availableEnvironments: _availableEnvironments, onEnvironmentSwitch: _onEnvironmentSwitch, apps, disableHints: _disableHints, headless, }: FloatingDevToolsProps): import("react").JSX.Element | null;
|
|
39
|
+
export declare function FloatingDevTools(props: FloatingDevToolsProps): import("react").JSX.Element;
|
|
52
40
|
export type { WebToolConfig, Environment, UserRole };
|
|
53
41
|
//# sourceMappingURL=FloatingDevTools.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingDevTools.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/FloatingDevTools.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3,"file":"FloatingDevTools.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/FloatingDevTools.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,QAAQ,EAId,MAAM,+BAA+B,CAAC;AA+BvC,MAAM,WAAW,qBAAqB;IAEpC,0DAA0D;IAC1D,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,2CAA2C;IAC3C,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IAGjD,gEAAgE;IAChE,IAAI,CAAC,EAAE,aAAa,EAAE,CAAC;IAEvB,kCAAkC;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAmCD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAQ5D;AAiWD,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingMenu.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/FloatingMenu.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAA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AAC;AACjB,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AActD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,sFAAsF;IACtF,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,iFAAiF;IACjF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uFAAuF;IACvF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,kFAAkF;IAClF,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IAC7C,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IACrC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1D;AAWD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAyU9C,CAAC"}
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export interface ModalRestoreState {
|
|
6
|
-
/** Modal display mode */
|
|
7
|
-
mode: "bottomSheet" | "floating";
|
|
8
|
-
/** Panel height for bottom sheet mode */
|
|
9
|
-
panelHeight?: number;
|
|
10
|
-
/** Position for floating mode */
|
|
11
|
-
floatingPosition?: {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
};
|
|
15
|
-
/** Dimensions for floating mode */
|
|
16
|
-
floatingDimensions?: {
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
2
|
+
import type { ModalRestoreState } from "./AppHostLogic";
|
|
3
|
+
export type { ModalRestoreState } from "./AppHostLogic";
|
|
21
4
|
/**
|
|
22
5
|
* Represents a minimized tool that can be restored
|
|
23
6
|
*/
|
|
@@ -91,5 +74,4 @@ export declare function MinimizedToolsProvider({ children, getToolIcon, }: Minim
|
|
|
91
74
|
* Must be used within a MinimizedToolsProvider.
|
|
92
75
|
*/
|
|
93
76
|
export declare function useMinimizedTools(): MinimizedToolsContextValue;
|
|
94
|
-
export {};
|
|
95
77
|
//# sourceMappingURL=MinimizedToolsContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinimizedToolsContext.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/MinimizedToolsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAOZ,SAAS,EAEV,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MinimizedToolsContext.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/MinimizedToolsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAOZ,SAAS,EAEV,MAAM,OAAO,CAAC;AAUf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,IAAI,EAAE,SAAS,CAAC;IAChB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,i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|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MinimizedToolsStack — Web twin of MinimizedToolsStack.tsx +
|
|
3
|
+
* shared-ui's ExpandablePopover (inlined: the popover is only used here on
|
|
4
|
+
* web). A vertical stack of minimized-tool icons fused to the top of the
|
|
5
|
+
* floating bubble's drag handle:
|
|
6
|
+
* - collapsed: a 28px "peek" tab (chevron-up + count) with top corners only
|
|
7
|
+
* - expanded: animated-height panel, icons newest-first, collapse chevron
|
|
8
|
+
* - expanded state persists under "@react_buoy_minimized_stack_expanded"
|
|
9
|
+
* - each icon runs the native randomized glitch loop (translateX shake +
|
|
10
|
+
* opacity flicker + scale pulse, 80ms), scheduled every 2-6s + index*300ms
|
|
11
|
+
*
|
|
12
|
+
* Data comes from the web AppHost (openApps with minimized === true) instead
|
|
13
|
+
* of the native MinimizedToolsContext — same derivation the MinimizedDock
|
|
14
|
+
* used before this replaced it.
|
|
15
|
+
*/
|
|
16
|
+
export interface MinimizedToolsStackProps {
|
|
17
|
+
/** Width of the stack — native matches the drag handle (32). */
|
|
18
|
+
containerWidth?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function MinimizedToolsStack({ containerWidth }: MinimizedToolsStackProps): import("react").JSX.Element | null;
|
|
21
|
+
//# sourceMappingURL=MinimizedToolsStack.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MinimizedToolsStack.web.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/MinimizedToolsStack.web.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAyHH,MAAM,WAAW,wBAAwB;IACvC,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,cAAmB,EAAE,EAAE,wBAAwB,sCAsKpF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ToolHost — the declarative chrome layer for custom tools.
|
|
3
|
+
*
|
|
4
|
+
* When an `InstalledApp` declares `modal: {...}`, the AppHost renders its
|
|
5
|
+
* component inside `ToolModalShell` instead of raw: the shared JsModal
|
|
6
|
+
* (drag/resize, floating⇄bottom-sheet, minimize, dimension persistence) plus
|
|
7
|
+
* a managed header (title/subtitle, back navigation, search, actions) and a
|
|
8
|
+
* lightweight toast layer. The tool body talks back to the shell through
|
|
9
|
+
* `useToolHost()` / `useToolHeader()`.
|
|
10
|
+
*/
|
|
11
|
+
import React, { type DependencyList, type ReactNode } from "react";
|
|
12
|
+
import type { AppInstance, ModalRestoreState } from "./AppHostLogic";
|
|
13
|
+
import type { ToolModalConfig } from "./types";
|
|
14
|
+
/** Per-screen header overrides a tool body can apply (see `useToolHeader`). */
|
|
15
|
+
export interface ToolHeaderOverride {
|
|
16
|
+
title?: string;
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
/** Replaces the preset's static `headerActions` while active. */
|
|
19
|
+
actions?: ReactNode;
|
|
20
|
+
/** Shows the back chevron (and wires JsModal's top-left tap zone). */
|
|
21
|
+
onBack?: () => void;
|
|
22
|
+
}
|
|
23
|
+
export type ToolToastType = "success" | "error" | "info";
|
|
24
|
+
export interface ToolHostContextValue {
|
|
25
|
+
/** Current header-search query ("" while search is closed). */
|
|
26
|
+
search: string;
|
|
27
|
+
isSearchActive: boolean;
|
|
28
|
+
/** Close and clear the header search. */
|
|
29
|
+
clearSearch: () => void;
|
|
30
|
+
/** Close this tool. */
|
|
31
|
+
close: () => void;
|
|
32
|
+
/** Show a transient toast inside the tool modal. */
|
|
33
|
+
showToast: (message: string, type?: ToolToastType) => void;
|
|
34
|
+
/** Low-level header override setter — prefer `useToolHeader`. */
|
|
35
|
+
setHeaderOverride: (override: ToolHeaderOverride | null) => void;
|
|
36
|
+
/** Instance id assigned by the AppHost. */
|
|
37
|
+
instanceId?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Access the hosting shell from a custom tool body: search query, toasts,
|
|
41
|
+
* close. Safe to call outside the shell (returns inert no-ops) so tool
|
|
42
|
+
* components can also be mounted standalone.
|
|
43
|
+
*/
|
|
44
|
+
export declare function useToolHost(): ToolHostContextValue;
|
|
45
|
+
/**
|
|
46
|
+
* Declare per-screen header state (title/subtitle/actions/back) from inside a
|
|
47
|
+
* tool body. Applies while the calling component is mounted and reverts to
|
|
48
|
+
* the preset's static config on unmount — so a detail screen simply mounts
|
|
49
|
+
* with its own header and the list header returns when it unmounts.
|
|
50
|
+
*
|
|
51
|
+
* ```tsx
|
|
52
|
+
* useToolHeader(
|
|
53
|
+
* { title: flag.key, onBack: () => setScreen("list"), actions: <CopyButton value={flag} /> },
|
|
54
|
+
* [flag.key]
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function useToolHeader(override: ToolHeaderOverride | null, deps: DependencyList): void;
|
|
59
|
+
interface ToolModalShellProps {
|
|
60
|
+
app: AppInstance;
|
|
61
|
+
config: ToolModalConfig;
|
|
62
|
+
visible: boolean;
|
|
63
|
+
zIndex: number;
|
|
64
|
+
onClose: () => void;
|
|
65
|
+
onMinimize: (modalState?: ModalRestoreState) => void;
|
|
66
|
+
initialModalState?: ModalRestoreState;
|
|
67
|
+
enableSharedModalDimensions?: boolean;
|
|
68
|
+
bodyProps: Record<string, unknown>;
|
|
69
|
+
}
|
|
70
|
+
export declare function ToolModalShell({ app, config, visible, zIndex, onClose, onMinimize, initialModalState, enableSharedModalDimensions, bodyProps, }: ToolModalShellProps): React.JSX.Element;
|
|
71
|
+
export {};
|
|
72
|
+
//# sourceMappingURL=ToolHost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolHost.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/ToolHost.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,EAQZ,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAUf,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EAAE,CAAC,UAAU,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACrD,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAQD,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,2BAA2B,EAC3B,SAAS,GACV,EAAE,mBAAmB,qBAiGrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allToolsRegistry.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/allToolsRegistry.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"allToolsRegistry.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/allToolsRegistry.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AA0C1B,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAC;IACX,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CAC/C;AAID;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAa,EA+E7C,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;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,CAkSpD;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":"AAiBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"autoExternalSync.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/autoExternalSync.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AA4IvD,iFAAiF;AACjF,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD;AAED,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAuBD,UAAU,qBAAqB;IAC7B,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,6EAA6E;IAC7E,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;IACjC,8EAA8E;IAC9E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,eAAe,EACf,KAAK,EACL,UAAU,GACX,EAAE,qBAAqB,QAyHvB"}
|
|
@@ -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' | 'image-overlay' | 'perf-monitor' | 'perf-monitor-modal';
|
|
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' | '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,GACL,SAAS,GACT,SAAS,GACT,OAAO,GACP,mBAAmB,GACnB,cAAc,GACd,eAAe,GACf,mBAAmB,GACnB,yBAAyB,GACzB,OAAO,GACP,SAAS,GACT,OAAO,GACP,QAAQ,GACR,eAAe,GACf,cAAc,GACd,oBAAoB,CAAC;AAEzB;;GAEG;AACH,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,
|
|
1
|
+
{"version":3,"file":"DialDevTools.d.ts","sourceRoot":"","sources":["../../../../../src/floatingMenu/dial/DialDevTools.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,SAAS,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAgC5E,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAqBlB,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAChB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;QAAC,OAAO,CAAC,EAAE,mBAAmB,CAAA;KAAE,KAAK,SAAS,CAAC;IAC/H,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAWF,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAurB9C,CAAC"}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* Uses shared layout calculations, styling, and animation config from @buoy-gg/floating-tools-core.
|
|
5
5
|
* Platform-specific: CSS animations, mouse events, web JSX.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Visuals mirror the native DialDevTools.tsx exactly — values that never made
|
|
8
|
+
* it into the shared dial.ts are inlined here with provenance comments.
|
|
8
9
|
*
|
|
9
10
|
* @platform React DOM Web (Vite, CRA, Next.js, Electron)
|
|
10
11
|
*/
|
|
@@ -15,12 +16,25 @@ export interface DialIcon {
|
|
|
15
16
|
icon: ReactNode;
|
|
16
17
|
color?: string;
|
|
17
18
|
onPress: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Tool can't be launched (no component/onPress on web). Rendered like the
|
|
21
|
+
* native uninstalled state: real icon + name with a muted "Unavailable"
|
|
22
|
+
* caption, non-interactive, and the dial stays open on tap.
|
|
23
|
+
*/
|
|
24
|
+
unavailable?: boolean;
|
|
18
25
|
}
|
|
19
26
|
export interface DialMenuProps {
|
|
20
27
|
icons: DialIcon[];
|
|
21
28
|
onClose: () => void;
|
|
22
29
|
centerLabel?: string;
|
|
23
30
|
onCenterPress?: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* The settings modal is open above the dial — center label becomes the
|
|
33
|
+
* stacked CLOSE / SETTINGS (native DialDevTools.tsx:716-724).
|
|
34
|
+
*/
|
|
35
|
+
settingsOpen?: boolean;
|
|
36
|
+
/** Suppress the settings onboarding tooltip (disableHints). */
|
|
37
|
+
hintsDisabled?: boolean;
|
|
24
38
|
}
|
|
25
|
-
export declare function DialMenu({ icons, onClose, centerLabel, onCenterPress, }: DialMenuProps): import("react").JSX.Element;
|
|
39
|
+
export declare function DialMenu({ icons, onClose, centerLabel, onCenterPress, settingsOpen, hintsDisabled, }: DialMenuProps): import("react").JSX.Element;
|
|
26
40
|
//# sourceMappingURL=DialDevTools.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialDevTools.web.d.ts","sourceRoot":"","sources":["../../../../../src/floatingMenu/dial/DialDevTools.web.tsx"],"names":[],"mappings":"AAAA
|
|
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;AAwC9G,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;AAsQD,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,OAAO,EACP,WAAoB,EACpB,aAAa,EACb,YAAoB,EACpB,aAAqB,GACtB,EAAE,aAAa,+BA4jBf"}
|
|
@@ -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;AAkB1C,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,CAwO9B,CAAC"}
|