@buoy-gg/shared-ui 7.0.36 → 7.0.39
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 +33 -26
- package/floating.d.ts +1 -0
- package/floating.js +2 -0
- package/lib/commonjs/JsModal.js +16 -1
- package/lib/commonjs/JsModal.web.js +16 -1
- package/lib/commonjs/dataViewer/CyberpunkInput.js +6 -1
- package/lib/commonjs/dataViewer/LiveExplorer.js +28 -16
- package/lib/commonjs/hooks/safe-area-impl.js +1 -1
- package/lib/commonjs/icons/ReactQueryIcon.js +9 -161
- package/lib/commonjs/icons/SentryBugIcon.js +9 -171
- package/lib/commonjs/index.js +57 -6
- package/lib/commonjs/license/AccountSetup.js +56 -0
- package/lib/commonjs/license/AccountSetup.web.js +81 -0
- package/lib/commonjs/license/FeatureGate.js +10 -43
- package/lib/commonjs/license/FreeAccountPrompt.js +35 -12
- package/lib/commonjs/license/index.js +0 -6
- package/lib/commonjs/license/licenseModule.js +56 -36
- package/lib/commonjs/license/tierLimits.js +12 -63
- package/lib/commonjs/storage/devToolsStorageKeys.js +8 -1
- package/lib/commonjs/stores/BaseEventStore.js +21 -5
- package/lib/commonjs/stores/createToolStore.js +21 -3
- package/lib/commonjs/stores/floatingToolStore.js +71 -0
- package/lib/commonjs/stores/floatingToolStore.test.js +112 -0
- package/lib/commonjs/sync/toolActionRegistry.js +85 -2
- package/lib/commonjs/ui/backgrounds/README.md +52 -0
- package/lib/commonjs/ui/backgrounds/ToolBackground.js +4 -2
- package/lib/commonjs/ui/backgrounds/index.js +8 -1
- package/lib/commonjs/ui/backgrounds/registry.js +8 -0
- package/lib/commonjs/ui/backgrounds/variants/wormhole/motion.js +48 -0
- package/lib/commonjs/ui/backgrounds/variants/wormhole/textures.js +3 -0
- package/lib/commonjs/ui/backgrounds/variants/wormhole.js +133 -0
- package/lib/commonjs/ui/components/ClipboardHintBanner.js +5 -6
- package/lib/commonjs/ui/components/CompactRow.js +94 -74
- package/lib/commonjs/ui/components/DraggableHeader.js +16 -1
- package/lib/commonjs/ui/components/HeaderSearchButton.js +17 -4
- package/lib/commonjs/ui/floating/FloatingTool.js +1010 -0
- package/lib/commonjs/ui/floating/FloatingTool.web.js +591 -0
- package/lib/commonjs/ui/floating/FloatingToolHost.js +32 -0
- package/lib/commonjs/ui/floating/FloatingToolHost.web.js +28 -0
- package/lib/commonjs/ui/floating/index.js +105 -0
- package/lib/commonjs/ui/floating/index.web.js +105 -0
- package/lib/commonjs/ui/floating/onboardingConstants.js +70 -0
- package/lib/commonjs/ui/floating/onboardingConstants.web.js +34 -0
- package/lib/commonjs/ui/gameUI/constants/gameUIColors.js +3 -1
- package/lib/commonjs/ui/index.js +118 -2
- package/lib/commonjs/ui/night/nightTheme.js +10 -0
- package/lib/commonjs/ui/night/primitives.js +22 -5
- package/lib/commonjs/ui/otto/OttoSceneView.js +69 -0
- package/lib/commonjs/ui/otto/index.js +22 -0
- package/lib/commonjs/ui/otto/ottoEngine.js +10 -7
- package/lib/commonjs/ui/otto/ottoScenes.js +949 -0
- package/lib/commonjs/utils/minimalSuperJSON.js +13 -3
- package/lib/module/JsModal.js +16 -1
- package/lib/module/JsModal.web.js +16 -1
- package/lib/module/dataViewer/CyberpunkInput.js +6 -1
- package/lib/module/dataViewer/LiveExplorer.js +28 -16
- package/lib/module/hooks/safe-area-impl.js +1 -1
- package/lib/module/icons/ReactQueryIcon.js +9 -161
- package/lib/module/icons/SentryBugIcon.js +9 -171
- package/lib/module/index.js +4 -1
- package/lib/module/license/AccountSetup.js +52 -0
- package/lib/module/license/AccountSetup.web.js +77 -0
- package/lib/module/license/FeatureGate.js +10 -43
- package/lib/module/license/FreeAccountPrompt.js +35 -12
- package/lib/module/license/index.js +1 -1
- package/lib/module/license/licenseModule.js +50 -35
- package/lib/module/license/tierLimits.js +13 -63
- package/lib/module/storage/devToolsStorageKeys.js +8 -1
- package/lib/module/stores/BaseEventStore.js +21 -5
- package/lib/module/stores/createToolStore.js +21 -3
- package/lib/module/stores/floatingToolStore.js +61 -0
- package/lib/module/stores/floatingToolStore.test.js +111 -0
- package/lib/module/sync/toolActionRegistry.js +84 -2
- package/lib/module/ui/backgrounds/README.md +52 -0
- package/lib/module/ui/backgrounds/ToolBackground.js +4 -2
- package/lib/module/ui/backgrounds/index.js +2 -1
- package/lib/module/ui/backgrounds/registry.js +8 -0
- package/lib/module/ui/backgrounds/variants/wormhole/motion.js +44 -0
- package/lib/module/ui/backgrounds/variants/wormhole/textures.js +3 -0
- package/lib/module/ui/backgrounds/variants/wormhole.js +129 -0
- package/lib/module/ui/components/ClipboardHintBanner.js +5 -6
- package/lib/module/ui/components/CompactRow.js +94 -74
- package/lib/module/ui/components/DraggableHeader.js +16 -1
- package/lib/module/ui/components/HeaderSearchButton.js +17 -4
- package/lib/module/ui/floating/FloatingTool.js +1003 -0
- package/lib/module/ui/floating/FloatingTool.web.js +590 -0
- package/lib/module/ui/floating/FloatingToolHost.js +29 -0
- package/lib/module/ui/floating/FloatingToolHost.web.js +25 -0
- package/lib/module/ui/floating/index.js +6 -0
- package/lib/module/ui/floating/index.web.js +6 -0
- package/lib/module/ui/floating/onboardingConstants.js +64 -0
- package/lib/module/ui/floating/onboardingConstants.web.js +27 -0
- package/lib/module/ui/gameUI/constants/gameUIColors.js +3 -1
- package/lib/module/ui/index.js +5 -1
- package/lib/module/ui/night/nightTheme.js +10 -0
- package/lib/module/ui/night/primitives.js +22 -5
- package/lib/module/ui/otto/OttoSceneView.js +64 -0
- package/lib/module/ui/otto/index.js +3 -1
- package/lib/module/ui/otto/ottoEngine.js +10 -7
- package/lib/module/ui/otto/ottoScenes.js +942 -0
- package/lib/module/utils/minimalSuperJSON.js +13 -3
- package/lib/typescript/commonjs/JsModal.d.ts +43 -2
- package/lib/typescript/commonjs/JsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/JsModal.web.d.ts +5 -2
- package/lib/typescript/commonjs/JsModal.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dataViewer/CyberpunkInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/dataViewer/LiveExplorer.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ReactQueryIcon.d.ts +1 -2
- package/lib/typescript/commonjs/icons/ReactQueryIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/SentryBugIcon.d.ts +1 -2
- package/lib/typescript/commonjs/icons/SentryBugIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +4 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/AccountSetup.d.ts +4 -0
- package/lib/typescript/commonjs/license/AccountSetup.d.ts.map +1 -0
- package/lib/typescript/commonjs/license/AccountSetup.web.d.ts +2 -0
- package/lib/typescript/commonjs/license/AccountSetup.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/license/FeatureGate.d.ts +3 -19
- package/lib/typescript/commonjs/license/FeatureGate.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/FreeAccountPrompt.d.ts +8 -11
- package/lib/typescript/commonjs/license/FreeAccountPrompt.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/index.d.ts +1 -1
- package/lib/typescript/commonjs/license/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/licenseModule.d.ts +18 -31
- package/lib/typescript/commonjs/license/licenseModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/tierLimits.d.ts +9 -52
- package/lib/typescript/commonjs/license/tierLimits.d.ts.map +1 -1
- package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts +6 -0
- package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/stores/BaseEventStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/stores/createToolStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/stores/floatingToolStore.d.ts +27 -0
- package/lib/typescript/commonjs/stores/floatingToolStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/stores/floatingToolStore.test.d.ts +2 -0
- package/lib/typescript/commonjs/stores/floatingToolStore.test.d.ts.map +1 -0
- package/lib/typescript/commonjs/sync/toolActionRegistry.d.ts +4 -32
- package/lib/typescript/commonjs/sync/toolActionRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/backgrounds/ToolBackground.d.ts +7 -1
- package/lib/typescript/commonjs/ui/backgrounds/ToolBackground.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/backgrounds/index.d.ts +2 -1
- package/lib/typescript/commonjs/ui/backgrounds/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/backgrounds/registry.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/backgrounds/types.d.ts +11 -1
- package/lib/typescript/commonjs/ui/backgrounds/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/backgrounds/variants/wormhole/motion.d.ts +24 -0
- package/lib/typescript/commonjs/ui/backgrounds/variants/wormhole/motion.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/backgrounds/variants/wormhole/textures.d.ts +13 -0
- package/lib/typescript/commonjs/ui/backgrounds/variants/wormhole/textures.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/backgrounds/variants/wormhole.d.ts +3 -0
- package/lib/typescript/commonjs/ui/backgrounds/variants/wormhole.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ClipboardHintBanner.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/CompactRow.d.ts +8 -1
- package/lib/typescript/commonjs/ui/components/CompactRow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/DraggableHeader.d.ts +4 -1
- package/lib/typescript/commonjs/ui/components/DraggableHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/HeaderSearchButton.d.ts +7 -1
- package/lib/typescript/commonjs/ui/components/HeaderSearchButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/floating/FloatingTool.d.ts +79 -0
- package/lib/typescript/commonjs/ui/floating/FloatingTool.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/floating/FloatingTool.web.d.ts +64 -0
- package/lib/typescript/commonjs/ui/floating/FloatingTool.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/floating/FloatingToolHost.d.ts +3 -0
- package/lib/typescript/commonjs/ui/floating/FloatingToolHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/floating/FloatingToolHost.web.d.ts +3 -0
- package/lib/typescript/commonjs/ui/floating/FloatingToolHost.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/floating/index.d.ts +7 -0
- package/lib/typescript/commonjs/ui/floating/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/floating/index.web.d.ts +7 -0
- package/lib/typescript/commonjs/ui/floating/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/floating/onboardingConstants.d.ts +30 -0
- package/lib/typescript/commonjs/ui/floating/onboardingConstants.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/floating/onboardingConstants.web.d.ts +13 -0
- package/lib/typescript/commonjs/ui/floating/onboardingConstants.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts +2 -0
- package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +6 -0
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/night/nightTheme.d.ts +10 -0
- package/lib/typescript/commonjs/ui/night/nightTheme.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/night/primitives.d.ts +10 -3
- package/lib/typescript/commonjs/ui/night/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/otto/OttoSceneView.d.ts +30 -0
- package/lib/typescript/commonjs/ui/otto/OttoSceneView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/otto/index.d.ts +2 -0
- package/lib/typescript/commonjs/ui/otto/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/otto/ottoEngine.d.ts +1 -1
- package/lib/typescript/commonjs/ui/otto/ottoEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/otto/ottoScenes.d.ts +75 -0
- package/lib/typescript/commonjs/ui/otto/ottoScenes.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/minimalSuperJSON.d.ts.map +1 -1
- package/lib/typescript/module/JsModal.d.ts +43 -2
- package/lib/typescript/module/JsModal.d.ts.map +1 -1
- package/lib/typescript/module/JsModal.web.d.ts +5 -2
- package/lib/typescript/module/JsModal.web.d.ts.map +1 -1
- package/lib/typescript/module/dataViewer/CyberpunkInput.d.ts.map +1 -1
- package/lib/typescript/module/dataViewer/LiveExplorer.d.ts.map +1 -1
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/icons/ReactQueryIcon.d.ts +1 -2
- package/lib/typescript/module/icons/ReactQueryIcon.d.ts.map +1 -1
- package/lib/typescript/module/icons/SentryBugIcon.d.ts +1 -2
- package/lib/typescript/module/icons/SentryBugIcon.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +4 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/license/AccountSetup.d.ts +4 -0
- package/lib/typescript/module/license/AccountSetup.d.ts.map +1 -0
- package/lib/typescript/module/license/AccountSetup.web.d.ts +2 -0
- package/lib/typescript/module/license/AccountSetup.web.d.ts.map +1 -0
- package/lib/typescript/module/license/FeatureGate.d.ts +3 -19
- package/lib/typescript/module/license/FeatureGate.d.ts.map +1 -1
- package/lib/typescript/module/license/FreeAccountPrompt.d.ts +8 -11
- package/lib/typescript/module/license/FreeAccountPrompt.d.ts.map +1 -1
- package/lib/typescript/module/license/index.d.ts +1 -1
- package/lib/typescript/module/license/index.d.ts.map +1 -1
- package/lib/typescript/module/license/licenseModule.d.ts +18 -31
- package/lib/typescript/module/license/licenseModule.d.ts.map +1 -1
- package/lib/typescript/module/license/tierLimits.d.ts +9 -52
- package/lib/typescript/module/license/tierLimits.d.ts.map +1 -1
- package/lib/typescript/module/storage/devToolsStorageKeys.d.ts +6 -0
- package/lib/typescript/module/storage/devToolsStorageKeys.d.ts.map +1 -1
- package/lib/typescript/module/stores/BaseEventStore.d.ts.map +1 -1
- package/lib/typescript/module/stores/createToolStore.d.ts.map +1 -1
- package/lib/typescript/module/stores/floatingToolStore.d.ts +27 -0
- package/lib/typescript/module/stores/floatingToolStore.d.ts.map +1 -0
- package/lib/typescript/module/stores/floatingToolStore.test.d.ts +2 -0
- package/lib/typescript/module/stores/floatingToolStore.test.d.ts.map +1 -0
- package/lib/typescript/module/sync/toolActionRegistry.d.ts +4 -32
- package/lib/typescript/module/sync/toolActionRegistry.d.ts.map +1 -1
- package/lib/typescript/module/ui/backgrounds/ToolBackground.d.ts +7 -1
- package/lib/typescript/module/ui/backgrounds/ToolBackground.d.ts.map +1 -1
- package/lib/typescript/module/ui/backgrounds/index.d.ts +2 -1
- package/lib/typescript/module/ui/backgrounds/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/backgrounds/registry.d.ts.map +1 -1
- package/lib/typescript/module/ui/backgrounds/types.d.ts +11 -1
- package/lib/typescript/module/ui/backgrounds/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/backgrounds/variants/wormhole/motion.d.ts +24 -0
- package/lib/typescript/module/ui/backgrounds/variants/wormhole/motion.d.ts.map +1 -0
- package/lib/typescript/module/ui/backgrounds/variants/wormhole/textures.d.ts +13 -0
- package/lib/typescript/module/ui/backgrounds/variants/wormhole/textures.d.ts.map +1 -0
- package/lib/typescript/module/ui/backgrounds/variants/wormhole.d.ts +3 -0
- package/lib/typescript/module/ui/backgrounds/variants/wormhole.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ClipboardHintBanner.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/CompactRow.d.ts +8 -1
- package/lib/typescript/module/ui/components/CompactRow.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/DraggableHeader.d.ts +4 -1
- package/lib/typescript/module/ui/components/DraggableHeader.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/HeaderSearchButton.d.ts +7 -1
- package/lib/typescript/module/ui/components/HeaderSearchButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/floating/FloatingTool.d.ts +79 -0
- package/lib/typescript/module/ui/floating/FloatingTool.d.ts.map +1 -0
- package/lib/typescript/module/ui/floating/FloatingTool.web.d.ts +64 -0
- package/lib/typescript/module/ui/floating/FloatingTool.web.d.ts.map +1 -0
- package/lib/typescript/module/ui/floating/FloatingToolHost.d.ts +3 -0
- package/lib/typescript/module/ui/floating/FloatingToolHost.d.ts.map +1 -0
- package/lib/typescript/module/ui/floating/FloatingToolHost.web.d.ts +3 -0
- package/lib/typescript/module/ui/floating/FloatingToolHost.web.d.ts.map +1 -0
- package/lib/typescript/module/ui/floating/index.d.ts +7 -0
- package/lib/typescript/module/ui/floating/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/floating/index.web.d.ts +7 -0
- package/lib/typescript/module/ui/floating/index.web.d.ts.map +1 -0
- package/lib/typescript/module/ui/floating/onboardingConstants.d.ts +30 -0
- package/lib/typescript/module/ui/floating/onboardingConstants.d.ts.map +1 -0
- package/lib/typescript/module/ui/floating/onboardingConstants.web.d.ts +13 -0
- package/lib/typescript/module/ui/floating/onboardingConstants.web.d.ts.map +1 -0
- package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts +2 -0
- package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +6 -0
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/night/nightTheme.d.ts +10 -0
- package/lib/typescript/module/ui/night/nightTheme.d.ts.map +1 -1
- package/lib/typescript/module/ui/night/primitives.d.ts +10 -3
- package/lib/typescript/module/ui/night/primitives.d.ts.map +1 -1
- package/lib/typescript/module/ui/otto/OttoSceneView.d.ts +30 -0
- package/lib/typescript/module/ui/otto/OttoSceneView.d.ts.map +1 -0
- package/lib/typescript/module/ui/otto/index.d.ts +2 -0
- package/lib/typescript/module/ui/otto/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/otto/ottoEngine.d.ts +1 -1
- package/lib/typescript/module/ui/otto/ottoEngine.d.ts.map +1 -1
- package/lib/typescript/module/ui/otto/ottoScenes.d.ts +75 -0
- package/lib/typescript/module/ui/otto/ottoScenes.d.ts.map +1 -0
- package/lib/typescript/module/utils/minimalSuperJSON.d.ts.map +1 -1
- package/package.json +25 -5
- package/scripts/generate-wormhole-textures.cjs +261 -0
- package/scripts/test-wormhole-motion.cjs +59 -0
|
@@ -122,6 +122,12 @@ export declare const devToolsStorageKeys: {
|
|
|
122
122
|
readonly timeMachine: {
|
|
123
123
|
readonly root: () => "@react_buoy_time_machine";
|
|
124
124
|
readonly diffViewerMode: () => "@react_buoy_time_machine_diff_viewer_mode";
|
|
125
|
+
/** The restore point the floating restore bar restores on tap (snapshot id). */
|
|
126
|
+
readonly armedPoint: () => "@react_buoy_time_machine_armed_point";
|
|
127
|
+
/** "1" when the action bar restores in reload mode (storage, then a JS reload). */
|
|
128
|
+
readonly barReloadMode: () => "@react_buoy_time_machine_bar_reload_mode";
|
|
129
|
+
/** Source ids switched OFF in the Sources strip (JSON string array). */
|
|
130
|
+
readonly disabledSources: () => "@react_buoy_time_machine_disabled_sources";
|
|
125
131
|
};
|
|
126
132
|
/**
|
|
127
133
|
* Scenarios storage keys. The library (saved + draft scenarios) and the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devToolsStorageKeys.d.ts","sourceRoot":"","sources":["../../../../src/storage/devToolsStorageKeys.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;IAC9B;;OAEG;;IAGH;;OAEG;;;;;;;IASH;;OAEG;;;;;;;;IAUH;;;;;;;;;;OAUG;8BACc,MAAM;;QAInB,kEAAkE;;;QAGlE,iCAAiC;sBAC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,GAAG,EAAE,MAAM,GAAG,OAAO,CA0BzD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAE9D;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,EAAE,CAsBpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEventStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/BaseEventStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseEventStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/BaseEventStore.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,8BAAsB,cAAc,CAAC,MAAM,CAAE,SAAQ,YAAY,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IACtF,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,CAAM;IAChC,SAAS,CAAC,cAAc,EAAE,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAa;IACjE,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,cAAc,CAA8B;gBAEx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KACf;CAOF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createToolStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/createToolStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createToolStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/createToolStore.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,mEAAmE;AACnE,MAAM,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElD,MAAM,WAAW,gBAAgB;IAC/B;qEACiE;IACjE,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,8DAA8D;IAC9D,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,oFAAoF;IACpF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,6EAA6E;IAC7E,SAAS,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,IAAI,CAAC;IACnD,yDAAyD;IACzD,WAAW,IAAI,CAAC,EAAE,CAAC;IACnB,uBAAuB;IACvB,IAAI,IAAI,MAAM,CAAC;IACf,uFAAuF;IACvF,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACnB,iFAAiF;IACjF,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC;IACrB,gFAAgF;IAChF,MAAM,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC;IACtC,iEAAiE;IACjE,KAAK,IAAI,IAAI,CAAC;IACd,sFAAsF;IACtF,OAAO,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,IAAI,CAAC;IACjD,2EAA2E;IAC3E,MAAM,IAAI,IAAI,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,4EAA4E;IAC5E,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,QAAQ,IAAI,OAAO,CAAC;IACpB,oEAAoE;IACpE,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,IAAI,MAAM,CAAC;IACjB,oDAAoD;IACpD,OAAO,IAAI,MAAM,CAAC;IAClB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,mDAAmD;IACnD,aAAa,IAAI,MAAM,CAAC;IACxB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB;AAYD,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAAC,CAAC,CAAC,CA8K1E"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface FloatingToolRenderContext {
|
|
3
|
+
id: string;
|
|
4
|
+
/** Changes when an existing tool is opened again, so its grip can restore it. */
|
|
5
|
+
revealToken: number;
|
|
6
|
+
dismiss(): void;
|
|
7
|
+
}
|
|
8
|
+
export interface FloatingToolRegistration {
|
|
9
|
+
/** Unique across the app; also use this id on FloatingTool for isolated position storage. */
|
|
10
|
+
id: string;
|
|
11
|
+
render(context: FloatingToolRenderContext): ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export interface FloatingToolEntry extends FloatingToolRegistration {
|
|
14
|
+
revealToken: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const getFloatingTools: () => readonly FloatingToolEntry[];
|
|
17
|
+
export declare const subscribeFloatingTools: (listener: () => void) => () => void;
|
|
18
|
+
/** Open or restore one tool. Mount FloatingToolHost once at the application root. */
|
|
19
|
+
export declare function openFloatingTool(tool: FloatingToolRegistration): void;
|
|
20
|
+
/** Removes the UI only. Tool actions such as Stop belong to the tool's own controller. */
|
|
21
|
+
export declare function dismissFloatingTool(id: string): void;
|
|
22
|
+
/** Register at app startup to restore an open tool using its existing position storage. */
|
|
23
|
+
export declare function registerPersistentFloatingTool(tool: FloatingToolRegistration, storage: {
|
|
24
|
+
getItem(key: string): Promise<string | null>;
|
|
25
|
+
setItem(key: string, value: string): Promise<unknown>;
|
|
26
|
+
}): () => void;
|
|
27
|
+
//# sourceMappingURL=floatingToolStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floatingToolStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/floatingToolStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,iFAAiF;IACjF,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,IAAI,IAAI,CAAC;CACjB;AACD,MAAM,WAAW,wBAAwB;IACvC,6FAA6F;IAC7F,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,OAAO,EAAE,yBAAyB,GAAG,SAAS,CAAC;CACvD;AACD,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IAAG,WAAW,EAAE,MAAM,CAAA;CAAE;AAK3F,eAAO,MAAM,gBAAgB,oCAAgB,CAAC;AAC9C,eAAO,MAAM,sBAAsB,GAAI,UAAU,MAAM,IAAI,eAA+E,CAAC;AAE3I,qFAAqF;AACrF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,wBAAwB,GAAG,IAAI,CAOrE;AAED,0FAA0F;AAC1F,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAIpD;AAED,2FAA2F;AAC3F,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,wBAAwB,EAC9B,OAAO,EAAE;IAAE,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAAE,GAC/G,MAAM,IAAI,CAqBZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floatingToolStore.test.d.ts","sourceRoot":"","sources":["../../../../src/stores/floatingToolStore.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* toolActionRegistry — the on-device twin of the broker's action dispatch.
|
|
3
|
-
*
|
|
4
|
-
* Buoy already has exactly one place where `{toolId, action, params}` becomes a
|
|
5
|
-
* real call into a tool: `handleAction` in external-sync, fed by the adapter
|
|
6
|
-
* map that `autoExternalSync` assembles. That map was private to the React
|
|
7
|
-
* tree, so anything running ON the device (the Scenarios runner) had no way to
|
|
8
|
-
* reach it and would have had to duplicate the map — two dispatch paths that
|
|
9
|
-
* drift the first time an adapter changes.
|
|
10
|
-
*
|
|
11
|
-
* This module publishes the SAME map through a global seam, so a scenario step,
|
|
12
|
-
* a desktop click and an MCP call are one code path with two entry points.
|
|
13
|
-
*
|
|
14
|
-
* WHY A GLOBAL, NOT AN IMPORT: the map is built inside a component (the
|
|
15
|
-
* react-query adapter is a hook, the env adapter is a factory closed over a
|
|
16
|
-
* prop, and custom tools arrive as props), so it cannot be a module constant.
|
|
17
|
-
* Meanwhile the consumer must not import `@buoy-gg/core` — that package imports
|
|
18
|
-
* the tools, and a tool importing it back is the require cycle that puts a
|
|
19
|
-
* LogBox on every reload. Same reasoning, and the same shape, as
|
|
20
|
-
* `crashFlush.ts` in external-sync.
|
|
21
|
-
*
|
|
22
|
-
* WE STORE A GETTER, NOT A SNAPSHOT, for the reason `attachDeviceSync` does:
|
|
23
|
-
* the adapter map is re-created on renders that change its inputs, and a stale
|
|
24
|
-
* captured copy would keep dispatching into adapters the tree has replaced.
|
|
25
|
-
*
|
|
26
|
-
* SAFETY: this registry is populated only while `AutoExternalSync` is mounted,
|
|
27
|
-
* which is itself gated (dev, or release + an explicit opt-in + a real Pro
|
|
28
|
-
* license). It is deliberately NOT a substitute for a caller's own production
|
|
29
|
-
* gate — anything that bends app state through it must check `__DEV__` itself,
|
|
30
|
-
* because the actions reachable here (network overrides, storage writes,
|
|
31
|
-
* impersonation) have no business running in a shipped app.
|
|
32
|
-
*/
|
|
33
1
|
/** The duck-typed adapter shape, matching external-sync's `ToolSyncAdapter`. */
|
|
34
2
|
export interface RegisteredToolAdapter {
|
|
35
3
|
version?: number;
|
|
4
|
+
/** Internal teardown of resources this adapter owns. Never exposed as an action. */
|
|
5
|
+
dispose?: (cleanup: (toolId: string, action: string, params?: unknown) => Promise<unknown>) => void | Promise<void>;
|
|
36
6
|
getSnapshot?: () => unknown;
|
|
37
7
|
subscribe?: (onChange: () => void) => () => void;
|
|
38
8
|
actions?: Record<string, (params: unknown) => unknown | Promise<unknown>>;
|
|
@@ -82,4 +52,6 @@ export declare function dispatchToolAction(toolId: string, action: string, param
|
|
|
82
52
|
* caller can say "Buoy tools are still starting up" instead of "unknown tool".
|
|
83
53
|
*/
|
|
84
54
|
export declare function waitForToolRegistry(timeoutMs?: number): Promise<boolean>;
|
|
55
|
+
/** Guard retained references too, and discard results completed after revocation. */
|
|
56
|
+
export declare function guardToolAdapter<T extends RegisteredToolAdapter>(adapter: T): T;
|
|
85
57
|
//# sourceMappingURL=toolActionRegistry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolActionRegistry.d.ts","sourceRoot":"","sources":["../../../../src/sync/toolActionRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolActionRegistry.d.ts","sourceRoot":"","sources":["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AM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,OAAO,CAAC,CAalB;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,SAAS,SAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ5E;AAED,qFAAqF;AACrF,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,qBAAqB,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAgC/E"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* selection (`backgroundStore`), so switching it in one tool switches it in all
|
|
15
15
|
* of them.
|
|
16
16
|
*/
|
|
17
|
-
import type { BackgroundId } from "./types";
|
|
17
|
+
import type { BackgroundFocus, BackgroundId } from "./types";
|
|
18
18
|
export interface ToolBackgroundProps {
|
|
19
19
|
/**
|
|
20
20
|
* Force a specific preset instead of following the shared selection. The
|
|
@@ -25,6 +25,12 @@ export interface ToolBackgroundProps {
|
|
|
25
25
|
motion?: boolean;
|
|
26
26
|
/** Multiplied into the whole layer's opacity — dial it down per tool. */
|
|
27
27
|
opacity?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Pin the preset's point of interest (Wormhole's eye) to a spot on this
|
|
30
|
+
* surface, as fractions of its size. The dial passes the centre so the eye
|
|
31
|
+
* sits under the hub; tools omit it and get the preset's own framing.
|
|
32
|
+
*/
|
|
33
|
+
focus?: BackgroundFocus;
|
|
28
34
|
}
|
|
29
35
|
export declare const ToolBackground: import("react").NamedExoticComponent<ToolBackgroundProps>;
|
|
30
36
|
//# sourceMappingURL=ToolBackground.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBackground.d.ts","sourceRoot":"","sources":["../../../../../src/ui/backgrounds/ToolBackground.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolBackground.d.ts","sourceRoot":"","sources":["../../../../../src/ui/backgrounds/ToolBackground.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAU7D,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,yDAAyD;IACzD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,eAAO,MAAM,cAAc,2DAiCzB,CAAC"}
|
|
@@ -2,7 +2,7 @@ export { ToolBackground, type ToolBackgroundProps } from "./ToolBackground";
|
|
|
2
2
|
export { BackgroundSwitcher } from "./BackgroundSwitcher";
|
|
3
3
|
export { backgroundStore, BACKGROUND_STORAGE_KEY, useToolBackground, type UseToolBackgroundResult, } from "./backgroundStore";
|
|
4
4
|
export { BACKGROUND_PRESETS, DEFAULT_BACKGROUND, getPreset, presetAt, presetIndex, type BackgroundPreset, } from "./registry";
|
|
5
|
-
export type { BackgroundId, BackgroundVariantProps } from "./types";
|
|
5
|
+
export type { BackgroundFocus, BackgroundId, BackgroundVariantProps } from "./types";
|
|
6
6
|
export { LinearFade, RadialGlow, RasterLayer, useLoop, usePulse, } from "./primitives";
|
|
7
7
|
export { scatter, withAlpha as withBgAlpha } from "./rng";
|
|
8
8
|
export { DeepFieldTunable, type DeepFieldTuning, type HaloMode, type TwinkleMode, } from "./variants/deepField";
|
|
@@ -10,4 +10,5 @@ export { MoonlightTunable, type MoonlightTuning } from "./variants/moonlight";
|
|
|
10
10
|
export { DaylightTunable, type DaylightTuning } from "./variants/daylight";
|
|
11
11
|
export { LiveSkyTunable, type LiveSkyTuning } from "./variants/liveSky";
|
|
12
12
|
export { getSkyScrub, setSkyScrub, useSkyScrub } from "./skyClock";
|
|
13
|
+
export { Wormhole } from "./variants/wormhole";
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/backgrounds/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/backgrounds/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAIrF,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EACX,OAAO,EACP,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,OAAO,CAAC;AAG1D,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,WAAW,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../src/ui/backgrounds/registry.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../src/ui/backgrounds/registry.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM3C,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE;QAAE,EAAE,EAAE,YAAY,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,SAAS,EAAE,aAAa,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAmEhD,CAAC;AAIF,eAAO,MAAM,kBAAkB,EAAE,YAAoB,CAAC;AAEtD,wBAAgB,WAAW,CAAC,EAAE,EAAE,YAAY,GAAG,MAAM,CAGpD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAGxD;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,YAAY,GAAG,gBAAgB,CAE5D"}
|
|
@@ -9,6 +9,16 @@ export interface BackgroundVariantProps {
|
|
|
9
9
|
* of disappearing.
|
|
10
10
|
*/
|
|
11
11
|
animated: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Where the preset's point of interest should sit, as fractions of the
|
|
14
|
+
* surface (0–1 each). Omitted → the preset's own composition. Presets with
|
|
15
|
+
* no focal point ignore it; Wormhole puts the eye of the tunnel here.
|
|
16
|
+
*/
|
|
17
|
+
focus?: BackgroundFocus;
|
|
18
|
+
}
|
|
19
|
+
export interface BackgroundFocus {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
12
22
|
}
|
|
13
|
-
export type BackgroundId = "off" | "deepfield" | "hyperspace" | "livesky" | "abyss" | "bubbles" | "jellyfish";
|
|
23
|
+
export type BackgroundId = "off" | "deepfield" | "hyperspace" | "livesky" | "abyss" | "bubbles" | "jellyfish" | "wormhole";
|
|
14
24
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ui/backgrounds/types.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,MAAM,WAAW,sBAAsB;IACrC,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ui/backgrounds/types.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,MAAM,WAAW,sBAAsB;IACrC,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,WAAW,GACX,YAAY,GACZ,SAAS,GACT,OAAO,GACP,SAAS,GACT,WAAW,GACX,UAAU,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** One slow camera cycle containing four faster forward passes.
|
|
2
|
+
* Keyframes run on Animated's native driver; this math runs only at import.
|
|
3
|
+
*
|
|
4
|
+
* The sheet texture is self-similar: scaled by WORMHOLE_PERIOD and rotated by
|
|
5
|
+
* WORMHOLE_TWIST it is the same picture (scripts/generate-wormhole-textures.cjs
|
|
6
|
+
* builds it that way and checks it). The two shells sit exactly one period
|
|
7
|
+
* apart, so at every instant they show identical pixels and the crossfade
|
|
8
|
+
* between them — and each shell's reset — cannot be seen. Change either
|
|
9
|
+
* constant and regenerate the textures; the sheet must be rebuilt to match.
|
|
10
|
+
*/
|
|
11
|
+
export declare const WORMHOLE_CYCLE_MS = 24000;
|
|
12
|
+
export declare const WORMHOLE_PASSES = 4;
|
|
13
|
+
/** Scale ratio between the two shells; one pass covers two periods (×6). */
|
|
14
|
+
export declare const WORMHOLE_PERIOD: number;
|
|
15
|
+
/** Degrees the picture turns per period — its spiral symmetry. */
|
|
16
|
+
export declare const WORMHOLE_TWIST = 21;
|
|
17
|
+
export declare const WORMHOLE_INPUT: number[];
|
|
18
|
+
export declare const WORMHOLE_SHELLS: {
|
|
19
|
+
scale: number[];
|
|
20
|
+
opacity: number[];
|
|
21
|
+
rotate: string[];
|
|
22
|
+
}[];
|
|
23
|
+
export declare const WORMHOLE_CAMERA_ROTATION: string[];
|
|
24
|
+
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/backgrounds/variants/wormhole/motion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,4EAA4E;AAC5E,eAAO,MAAM,eAAe,QAAe,CAAC;AAC5C,kEAAkE;AAClE,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,eAAO,MAAM,cAAc,UAG1B,CAAC;AAYF,eAAO,MAAM,eAAe;;;;GAWzB,CAAC;AAGJ,eAAO,MAAM,wBAAwB,UAEpC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** The website frame as captured (reduced motion / animation off). */
|
|
2
|
+
export declare const WORMHOLE_STILL: {
|
|
3
|
+
uri: string;
|
|
4
|
+
};
|
|
5
|
+
/** Opaque cloud sheet, self-similar under scale ×2.4495 + rotate 21°; stretched over the plane. */
|
|
6
|
+
export declare const WORMHOLE_SHEET: {
|
|
7
|
+
uri: string;
|
|
8
|
+
};
|
|
9
|
+
/** The destination, feathered; drawn static over the sheets at half the plane's size. */
|
|
10
|
+
export declare const WORMHOLE_CORE: {
|
|
11
|
+
uri: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=textures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textures.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/backgrounds/variants/wormhole/textures.ts"],"names":[],"mappings":"AAEA,sEAAsE;AACtE,eAAO,MAAM,cAAc;;CAAit3E,CAAC;AAC7u3E,mGAAmG;AACnG,eAAO,MAAM,cAAc;;CAAipwP,CAAC;AAC7qwP,yFAAyF;AACzF,eAAO,MAAM,aAAa;;CAAwvzM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wormhole.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/backgrounds/variants/wormhole.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAuBvD,eAAO,MAAM,QAAQ,8DA+CnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClipboardHintBanner.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ClipboardHintBanner.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"ClipboardHintBanner.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ClipboardHintBanner.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAeH,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,gEAmD9B,CAAC"}
|
|
@@ -28,6 +28,13 @@ export interface CompactRowProps {
|
|
|
28
28
|
/** Handle for the line under it — the row's own metadata. */
|
|
29
29
|
secondaryTestID?: string;
|
|
30
30
|
accessibilityLabel?: string;
|
|
31
|
+
/**
|
|
32
|
+
* A control that sits at the row's right edge, outside the row's own
|
|
33
|
+
* touchable. Put any button here rather than in `customBadge`: on web the
|
|
34
|
+
* row is a real <button>, and HTML forbids a button inside a button (the
|
|
35
|
+
* inner press would also bubble to the row).
|
|
36
|
+
*/
|
|
37
|
+
trailingAction?: ReactNode;
|
|
31
38
|
}
|
|
32
|
-
export declare function CompactRow({ statusDotColor, statusLabel, statusSublabel, primaryText, secondaryText, secondaryAccessory, expandedContent, isExpanded, badgeText, badgeColor, customBadge, showChevron, bottomRightText, isSelected, onPress, disabled, expandedGlowColor, testID, statusTestID, statusSublabelTestID, primaryTestID, secondaryTestID, accessibilityLabel, }: CompactRowProps): import("react").JSX.Element;
|
|
39
|
+
export declare function CompactRow({ statusDotColor, statusLabel, statusSublabel, primaryText, secondaryText, secondaryAccessory, expandedContent, isExpanded, badgeText, badgeColor, customBadge, showChevron, bottomRightText, isSelected, onPress, disabled, expandedGlowColor, testID, statusTestID, statusSublabelTestID, primaryTestID, secondaryTestID, accessibilityLabel, trailingAction, }: CompactRowProps): import("react").JSX.Element;
|
|
33
40
|
//# sourceMappingURL=CompactRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompactRow.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/CompactRow.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,MAAM,WAAW,eAAe;IAE9B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,eAAe,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAG3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,M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C;IAC9B,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B;AAED,wBAAgB,UAAU,CAAC,EACzB,cAAc,EACd,WAAW,EACX,cAAc,EACd,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,MAAM,EACN,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,cAAc,GACf,EAAE,eAAe,+BA6IjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { Animated, type ViewStyle, type StyleProp } from "react-native";
|
|
2
|
+
import { Animated, type ViewStyle, type StyleProp, type ViewProps } from "react-native";
|
|
3
3
|
interface DraggableHeaderProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
position: Animated.ValueXY;
|
|
@@ -29,6 +29,9 @@ interface DraggableHeaderProps {
|
|
|
29
29
|
};
|
|
30
30
|
style?: StyleProp<ViewStyle>;
|
|
31
31
|
enabled?: boolean;
|
|
32
|
+
claimOnMove?: boolean;
|
|
33
|
+
onLayout?: ViewProps["onLayout"];
|
|
34
|
+
hitSlop?: ViewProps["hitSlop"];
|
|
32
35
|
testID?: string;
|
|
33
36
|
accessibilityLabel?: string;
|
|
34
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableHeader.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/DraggableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,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
|
|
|
5
5
|
style?: any;
|
|
6
6
|
accessibilityLabel?: string;
|
|
7
7
|
testID?: string;
|
|
8
|
+
/**
|
|
9
|
+
* "chip" is the 32×32 dark-glass square every Network header action uses,
|
|
10
|
+
* so a tool hosted by the core shell lines up with the hand-built headers.
|
|
11
|
+
* "plain" is the bare glyph older headers still use.
|
|
12
|
+
*/
|
|
13
|
+
variant?: "plain" | "chip";
|
|
8
14
|
}
|
|
9
|
-
export declare function HeaderSearchButton({ onPress, size, color, style, accessibilityLabel, testID, }: HeaderSearchButtonProps): import("react").JSX.Element;
|
|
15
|
+
export declare function HeaderSearchButton({ onPress, size, color, style, accessibilityLabel, testID, variant, }: HeaderSearchButtonProps): import("react").JSX.Element;
|
|
10
16
|
export {};
|
|
11
17
|
//# sourceMappingURL=HeaderSearchButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSearchButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/HeaderSearchButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderSearchButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/HeaderSearchButton.tsx"],"names":[],"mappings":"AAKA,UAAU,uBAAuB;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,IAAS,EACT,KAAK,EACL,KAAK,EACL,kBAA6B,EAC7B,MAAM,EACN,OAAiB,GAClB,EAAE,uBAAuB,+BAiBzB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import type { Environment } from "@buoy-gg/floating-tools-core";
|
|
3
|
+
import { type UserRole } from "@buoy-gg/floating-tools-core";
|
|
4
|
+
export type { UserRole };
|
|
5
|
+
export declare function Divider(): import("react").JSX.Element;
|
|
6
|
+
export declare function UserStatus({ userRole, onPress, }: {
|
|
7
|
+
userRole: UserRole;
|
|
8
|
+
onPress?: () => void;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export type FloatingToolProps = {
|
|
11
|
+
/** Use a stable, unique id for each custom tool. Omit only for the legacy DevTools bubble. */
|
|
12
|
+
id?: string;
|
|
13
|
+
suspendPointerEvents?: boolean;
|
|
14
|
+
revealToken?: number;
|
|
15
|
+
variant?: "bubble" | "strip";
|
|
16
|
+
/** Allow dragging the background while child controls keep their gestures. */
|
|
17
|
+
dragFromSurface?: boolean;
|
|
18
|
+
accessibilityLabel?: string;
|
|
19
|
+
minimizedStack?: ReactNode;
|
|
20
|
+
hasMinimizedStack?: boolean;
|
|
21
|
+
accessory?: ReactNode;
|
|
22
|
+
handleAdornment?: ReactNode;
|
|
23
|
+
enablePositionPersistence?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Where a tool with no saved position first appears. "top" is the bubble's
|
|
26
|
+
* classic spot under the status bar; "bottom" sits above the home indicator,
|
|
27
|
+
* out of the way of app headers.
|
|
28
|
+
*/
|
|
29
|
+
defaultPlacement?: "top" | "bottom";
|
|
30
|
+
children?: ReactNode;
|
|
31
|
+
/** When true, pushes the bubble to the side (hidden position) */
|
|
32
|
+
pushToSide?: boolean;
|
|
33
|
+
/** When true, centers the bubble on screen (for onboarding) */
|
|
34
|
+
centerOnboarding?: boolean;
|
|
35
|
+
/** Current environment for the environment selector */
|
|
36
|
+
environment?: Environment;
|
|
37
|
+
/** Available environments for switching */
|
|
38
|
+
availableEnvironments?: Environment[];
|
|
39
|
+
/** Callback when environment is selected */
|
|
40
|
+
onEnvironmentSwitch?: (env: Environment) => void;
|
|
41
|
+
/** Whether environment selector should be shown */
|
|
42
|
+
showEnvironmentSelector?: boolean;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* FloatingTools - A draggable, resizable bubble for development tools
|
|
46
|
+
*
|
|
47
|
+
* This component provides a floating bubble interface that can contain various
|
|
48
|
+
* development tools and controls. It features:
|
|
49
|
+
* - Drag and drop positioning with boundary constraints
|
|
50
|
+
* - Hide/show functionality by dragging to screen edge
|
|
51
|
+
* - Position persistence across app restarts
|
|
52
|
+
* - Safe area aware positioning
|
|
53
|
+
* - Automatic divider insertion between child components
|
|
54
|
+
*
|
|
55
|
+
* @param props - Configuration for the floating tools
|
|
56
|
+
* @param props.enablePositionPersistence - Whether to save/restore position (default: true)
|
|
57
|
+
* @param props.children - Child components to render in the bubble
|
|
58
|
+
*
|
|
59
|
+
* @returns JSX.Element representing the floating tools bubble
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* <FloatingTools enablePositionPersistence={true}>
|
|
64
|
+
* <UserStatus userRole="admin" onPress={handleUserPress} />
|
|
65
|
+
* <ToolButton onPress={openSettings} />
|
|
66
|
+
* </FloatingTools>
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @performance Uses native driver animations for smooth positioning
|
|
70
|
+
* @performance Implements efficient boundary checking and position validation
|
|
71
|
+
* @performance Includes debounced position saving for optimal storage performance
|
|
72
|
+
*/
|
|
73
|
+
export declare function FloatingTool({ id, suspendPointerEvents, revealToken, variant, dragFromSurface, accessibilityLabel, minimizedStack, hasMinimizedStack, accessory, handleAdornment, enablePositionPersistence, defaultPlacement, pushToSide, centerOnboarding, children, environment, availableEnvironments, onEnvironmentSwitch, showEnvironmentSelector, }: FloatingToolProps): import("react").JSX.Element | null;
|
|
74
|
+
/** Native AppHost gets its anchor from the minimized-tools provider. */
|
|
75
|
+
export declare function getBubbleAnchorPosition(): {
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
} | null;
|
|
79
|
+
//# sourceMappingURL=FloatingTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingTool.d.ts","sourceRoot":"","sources":["../../../../../src/ui/floating/FloatingTool.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,SAAS,EACV,MAAM,OAAO,CAAC;AAkBf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAIhE,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,8BAA8B,CAAC;AAGtC,YAAY,EAAE,QAAQ,EAAE,CAAC;AA2SzB,wBAAgB,OAAO,gCAQtB;AAuBD,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,+BA8CA;AAmBD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,8FAA8F;IAC9F,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B,8EAA8E;IAC9E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,SAAS,CAAC;IAE5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uDAAuD;IACvD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,2CAA2C;IAC3C,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,mDAAmD;IACnD,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,YAAY,CAAC,EAC3B,EAAE,EACF,oBAA4B,EAC5B,WAAW,EACX,OAAkB,EAClB,eAAuB,EACvB,kBAA4C,EAC5C,cAAc,EACd,iBAAyB,EACzB,SAAS,EACT,eAAe,EAEf,yBAAgC,EAChC,gBAAwB,EACxB,UAAkB,EAClB,gBAAwB,EACxB,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,uBAA+B,GAChC,EAAE,iBAAiB,sCAkjBnB;AAED,wEAAwE;AACxE,wBAAgB,uBAAuB,IAAI;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAiB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FloatingTools - Web renderer using shared React bindings.
|
|
3
|
+
*
|
|
4
|
+
* This file contains ONLY web-specific code (React DOM):
|
|
5
|
+
* - Pointer event handling (mouse + touch — WKWebView/Capacitor included)
|
|
6
|
+
* - requestAnimationFrame animation
|
|
7
|
+
* - Web JSX (div, span)
|
|
8
|
+
* - localStorage adapter
|
|
9
|
+
*
|
|
10
|
+
* All logic is shared via @buoy-gg/floating-tools-react
|
|
11
|
+
*
|
|
12
|
+
* @platform React DOM Web (Vite, CRA, Next.js, Electron)
|
|
13
|
+
*/
|
|
14
|
+
import { type ReactNode } from 'react';
|
|
15
|
+
import { type UserRole } from '@buoy-gg/floating-tools-react/floating';
|
|
16
|
+
export type { UserRole };
|
|
17
|
+
export declare function Divider(): import("react").JSX.Element;
|
|
18
|
+
export declare function UserStatus({ userRole, onPress, }: {
|
|
19
|
+
userRole: UserRole;
|
|
20
|
+
onPress?: () => void;
|
|
21
|
+
}): import("react").JSX.Element;
|
|
22
|
+
export interface FloatingToolProps {
|
|
23
|
+
id?: string;
|
|
24
|
+
revealToken?: number;
|
|
25
|
+
variant?: "bubble" | "strip";
|
|
26
|
+
/** Allow dragging the background while child controls keep their gestures. */
|
|
27
|
+
dragFromSurface?: boolean;
|
|
28
|
+
accessibilityLabel?: string;
|
|
29
|
+
accessory?: ReactNode;
|
|
30
|
+
handleAdornment?: ReactNode;
|
|
31
|
+
enablePositionPersistence?: boolean;
|
|
32
|
+
/** Accepted for parity with the native shell; the browser store picks the first position. */
|
|
33
|
+
defaultPlacement?: "top" | "bottom";
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Slide the bubble to the screen edge while a dial/tool is open and
|
|
37
|
+
* restore it after (native `pushToSide`, FloatingMenu.tsx:178-181).
|
|
38
|
+
*/
|
|
39
|
+
pushToSide?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Disable pointer events on the bubble while overlays own the screen —
|
|
42
|
+
* native sets pointerEvents:"none" on the floating layer while the dial
|
|
43
|
+
* is open so its pager buttons aren't eaten by bubble gestures.
|
|
44
|
+
*/
|
|
45
|
+
suspendPointerEvents?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Center the bubble under the onboarding tooltip arrow
|
|
48
|
+
* (native `centerOnboarding`, floatingTools.tsx:706-744).
|
|
49
|
+
*/
|
|
50
|
+
centerOnboarding?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Minimized-tools stack node, rendered fused to the top of the drag handle
|
|
53
|
+
* (native floatingTools.tsx:944-960: absolute bottom 100%, left 0, width 32).
|
|
54
|
+
*/
|
|
55
|
+
minimizedStack?: ReactNode;
|
|
56
|
+
/** Whether the stack has items — morphs the bubble's top-left corner flat. */
|
|
57
|
+
hasMinimizedStack?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export declare function getBubbleAnchorPosition(): {
|
|
60
|
+
x: number;
|
|
61
|
+
y: number;
|
|
62
|
+
} | null;
|
|
63
|
+
export declare function FloatingTool({ id, revealToken, variant, dragFromSurface, accessibilityLabel, accessory, handleAdornment, enablePositionPersistence, children, pushToSide, suspendPointerEvents, centerOnboarding, minimizedStack, hasMinimizedStack, }: FloatingToolProps): import("react").JSX.Element | null;
|
|
64
|
+
//# sourceMappingURL=FloatingTool.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingTool.web.d.ts","sourceRoot":"","sources":["../../../../../src/ui/floating/FloatingTool.web.tsx"],"names":[],"mappings":"AACA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAiBL,KAAK,QAAQ,EAEd,MAAM,wCAAwC,CAAC;AAGhD,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,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B,8EAA8E;IAC9E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,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,YAAY,CAAC,EAC3B,EAAE,EACF,WAAW,EACX,OAAkB,EAClB,eAAuB,EACvB,kBAAkC,EAClC,SAAS,EACT,eAAe,EACf,yBAAgC,EAChC,QAAQ,EACR,UAAkB,EAClB,oBAA4B,EAC5B,gBAAwB,EACxB,cAAc,EACd,iBAAyB,GAC1B,EAAE,iBAAiB,sCAkUnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingToolHost.d.ts","sourceRoot":"","sources":["../../../../../src/ui/floating/FloatingToolHost.tsx"],"names":[],"mappings":"AAIA,2FAA2F;AAC3F,wBAAgB,gBAAgB,gCAK/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingToolHost.web.d.ts","sourceRoot":"","sources":["../../../../../src/ui/floating/FloatingToolHost.web.tsx"],"names":[],"mappings":"AAGA,kFAAkF;AAClF,wBAAgB,gBAAgB,gCAK/B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { FloatingTool, Divider as FloatingToolDivider, UserStatus as FloatingToolUserStatus, getBubbleAnchorPosition } from "./FloatingTool";
|
|
2
|
+
export type { FloatingToolProps } from "./FloatingTool";
|
|
3
|
+
export { FloatingToolHost } from "./FloatingToolHost";
|
|
4
|
+
export { openFloatingTool, dismissFloatingTool, registerPersistentFloatingTool, getFloatingTools, subscribeFloatingTools } from "../../stores/floatingToolStore";
|
|
5
|
+
export type { FloatingToolRegistration, FloatingToolRenderContext } from "../../stores/floatingToolStore";
|
|
6
|
+
export { ARROW_BOTTOM_OFFSET, ARROW_HEIGHT, SPACING_GAP, getScreenCenterY, calculateTooltipPosition, calculateTargetPosition } from "./onboardingConstants";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/floating/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,IAAI,mBAAmB,EAAE,UAAU,IAAI,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC7I,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACjK,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC1G,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { FloatingTool, Divider as FloatingToolDivider, UserStatus as FloatingToolUserStatus, getBubbleAnchorPosition } from "./FloatingTool.web";
|
|
2
|
+
export type { FloatingToolProps } from "./FloatingTool.web";
|
|
3
|
+
export { FloatingToolHost } from "./FloatingToolHost.web";
|
|
4
|
+
export { openFloatingTool, dismissFloatingTool, registerPersistentFloatingTool, getFloatingTools, subscribeFloatingTools } from "../../stores/floatingToolStore";
|
|
5
|
+
export type { FloatingToolRegistration, FloatingToolRenderContext } from "../../stores/floatingToolStore";
|
|
6
|
+
export { ARROW_BOTTOM_OFFSET, ARROW_HEIGHT, SPACING_GAP, getScreenCenterY, calculateTooltipPosition, calculateTargetPosition } from "./onboardingConstants.web";
|
|
7
|
+
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../../src/ui/floating/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,IAAI,mBAAmB,EAAE,UAAU,IAAI,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACjJ,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACjK,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC1G,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared constants for onboarding tooltip positioning
|
|
3
|
+
* These ensure the floating menu aligns perfectly under the tooltip arrow
|
|
4
|
+
* All positions are calculated dynamically based on screen size
|
|
5
|
+
*/
|
|
6
|
+
export declare const ARROW_BOTTOM_OFFSET = -40;
|
|
7
|
+
export declare const ARROW_HEIGHT = 20;
|
|
8
|
+
export declare const SPACING_GAP = 10;
|
|
9
|
+
/**
|
|
10
|
+
* Calculate the center Y position of the screen
|
|
11
|
+
* This is used to vertically center the onboarding UI
|
|
12
|
+
*
|
|
13
|
+
* @returns Y coordinate at the center of the screen
|
|
14
|
+
*/
|
|
15
|
+
export declare function getScreenCenterY(): number;
|
|
16
|
+
/**
|
|
17
|
+
* Calculate the tooltip position to center it vertically on screen
|
|
18
|
+
* Uses flexbox-style centering - tooltip will center itself with its actual size
|
|
19
|
+
*
|
|
20
|
+
* @returns Distance from screen bottom for tooltip positioning
|
|
21
|
+
*/
|
|
22
|
+
export declare function calculateTooltipPosition(): number;
|
|
23
|
+
/**
|
|
24
|
+
* Calculate the position where a target element should be placed
|
|
25
|
+
* to align directly under the tooltip arrow
|
|
26
|
+
*
|
|
27
|
+
* @returns Distance from screen bottom where element should be positioned
|
|
28
|
+
*/
|
|
29
|
+
export declare function calculateTargetPosition(): number;
|
|
30
|
+
//# sourceMappingURL=onboardingConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboardingConstants.d.ts","sourceRoot":"","sources":["../../../../../src/ui/floating/onboardingConstants.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAGH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAGzC;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAUjD;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAWhD"}
|