@buoy-gg/core 7.0.41 → 7.0.42
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 +14 -95
- package/bin/buoy.js +19 -340
- package/lib/commonjs/Buoy.js +1 -107
- package/lib/commonjs/browserRegister.js +1 -48
- package/lib/commonjs/browserRegister.server.js +1 -10
- package/lib/commonjs/earlyHookScript.js +1 -0
- package/lib/commonjs/earlyNetwork.js +1 -0
- package/lib/commonjs/floatingMenu/AppHost.js +1 -460
- package/lib/commonjs/floatingMenu/AppHost.web.js +1 -376
- package/lib/commonjs/floatingMenu/AppHostLogic.js +1 -50
- package/lib/commonjs/floatingMenu/AppIcon.js +1 -91
- package/lib/commonjs/floatingMenu/AppIcon.web.js +1 -53
- package/lib/commonjs/floatingMenu/BrowserToolRuntime.js +1 -150
- package/lib/commonjs/floatingMenu/DefaultConfigContext.js +1 -45
- package/lib/commonjs/floatingMenu/DevToolsSettingsModal.js +1 -18
- package/lib/commonjs/floatingMenu/DevToolsSettingsModal.shared.js +1 -1114
- package/lib/commonjs/floatingMenu/DevToolsSettingsModal.web.js +1 -48
- package/lib/commonjs/floatingMenu/DevToolsVisibilityContext.js +1 -49
- package/lib/commonjs/floatingMenu/FloatingDevTools.js +1 -559
- package/lib/commonjs/floatingMenu/FloatingDevTools.web.js +1 -415
- package/lib/commonjs/floatingMenu/FloatingMenu.js +1 -371
- package/lib/commonjs/floatingMenu/MinimizedToolsContext.js +1 -274
- package/lib/commonjs/floatingMenu/MinimizedToolsStack.js +1 -288
- package/lib/commonjs/floatingMenu/MinimizedToolsStack.web.js +1 -377
- package/lib/commonjs/floatingMenu/ToggleStateManager.js +1 -36
- package/lib/commonjs/floatingMenu/ToolHost.js +1 -281
- package/lib/commonjs/floatingMenu/ToolOpenerBridge.js +1 -41
- package/lib/commonjs/floatingMenu/autoDiscoverPresets.js +1 -471
- package/lib/commonjs/floatingMenu/autoExternalSync.js +1 -443
- package/lib/commonjs/floatingMenu/defaultConfig.js +1 -167
- package/lib/commonjs/floatingMenu/deviceIdentity.js +1 -173
- package/lib/commonjs/floatingMenu/dial/DialDevTools.js +1 -904
- package/lib/commonjs/floatingMenu/dial/DialDevTools.web.js +1 -895
- package/lib/commonjs/floatingMenu/dial/DialHyperspace.js +1 -177
- package/lib/commonjs/floatingMenu/dial/DialIcon.js +1 -304
- package/lib/commonjs/floatingMenu/dial/DialPagination.js +1 -165
- package/lib/commonjs/floatingMenu/dial/DialSnow.js +1 -92
- package/lib/commonjs/floatingMenu/dial/OnboardingTooltip.js +1 -246
- package/lib/commonjs/floatingMenu/dial/OnboardingTooltip.web.js +2 -147
- package/lib/commonjs/floatingMenu/dial/dialUsageStore.js +1 -93
- package/lib/commonjs/floatingMenu/dial/onboardingConstants.js +1 -42
- package/lib/commonjs/floatingMenu/dial/onboardingConstants.web.js +1 -42
- package/lib/commonjs/floatingMenu/externalSyncGate.js +1 -49
- package/lib/commonjs/floatingMenu/floatingTools.js +1 -42
- package/lib/commonjs/floatingMenu/floatingTools.web.js +1 -30
- package/lib/commonjs/floatingMenu/optionalRequire.js +1 -37
- package/lib/commonjs/floatingMenu/settingsBus.js +1 -12
- package/lib/commonjs/floatingMenu/sync/appSyncAdapter.js +1 -115
- package/lib/commonjs/floatingMenu/types.js +1 -5
- package/lib/commonjs/floatingMenu/useDesktopSyncStatus.js +1 -28
- package/lib/commonjs/floatingMenu/useDesktopSyncStatus.web.js +1 -14
- package/lib/commonjs/index.js +1 -291
- package/lib/commonjs/index.web.js +1 -241
- package/lib/commonjs/reactDevtoolsTypes.js +1 -1
- package/lib/commonjs/releaseOptIn.js +1 -0
- package/lib/commonjs/telemetry/installPing.js +1 -131
- package/lib/commonjs/toolkit.js +1 -584
- package/lib/commonjs/toolkitComponents.js +1 -241
- package/lib/commonjs/utils/autoDiscoverPresets.web.js +1 -46
- package/lib/commonjs/utils/createWebTool.js +1 -20
- package/lib/commonjs/utils/createWebTools.js +1 -30
- package/lib/commonjs/version.js +1 -18
- package/lib/module/Buoy.js +1 -102
- package/lib/module/browserRegister.js +1 -44
- package/lib/module/browserRegister.server.js +1 -6
- package/lib/module/earlyHookScript.js +1 -0
- package/lib/module/earlyNetwork.js +1 -0
- package/lib/module/floatingMenu/AppHost.js +1 -452
- package/lib/module/floatingMenu/AppHost.web.js +1 -368
- package/lib/module/floatingMenu/AppHostLogic.js +1 -45
- package/lib/module/floatingMenu/AppIcon.js +1 -84
- package/lib/module/floatingMenu/AppIcon.web.js +1 -47
- package/lib/module/floatingMenu/BrowserToolRuntime.js +1 -146
- package/lib/module/floatingMenu/DefaultConfigContext.js +1 -39
- package/lib/module/floatingMenu/DevToolsSettingsModal.js +1 -3
- package/lib/module/floatingMenu/DevToolsSettingsModal.shared.js +1 -1110
- package/lib/module/floatingMenu/DevToolsSettingsModal.web.js +1 -44
- package/lib/module/floatingMenu/DevToolsVisibilityContext.js +1 -44
- package/lib/module/floatingMenu/FloatingDevTools.js +1 -556
- package/lib/module/floatingMenu/FloatingDevTools.web.js +1 -412
- package/lib/module/floatingMenu/FloatingMenu.js +1 -366
- package/lib/module/floatingMenu/MinimizedToolsContext.js +1 -266
- package/lib/module/floatingMenu/MinimizedToolsStack.js +1 -285
- package/lib/module/floatingMenu/MinimizedToolsStack.web.js +1 -374
- package/lib/module/floatingMenu/ToggleStateManager.js +1 -32
- package/lib/module/floatingMenu/ToolHost.js +1 -273
- package/lib/module/floatingMenu/ToolOpenerBridge.js +1 -37
- package/lib/module/floatingMenu/autoDiscoverPresets.js +1 -467
- package/lib/module/floatingMenu/autoExternalSync.js +1 -436
- package/lib/module/floatingMenu/defaultConfig.js +1 -158
- package/lib/module/floatingMenu/deviceIdentity.js +1 -163
- package/lib/module/floatingMenu/dial/DialDevTools.js +1 -900
- package/lib/module/floatingMenu/dial/DialDevTools.web.js +1 -891
- package/lib/module/floatingMenu/dial/DialHyperspace.js +1 -173
- package/lib/module/floatingMenu/dial/DialIcon.js +1 -301
- package/lib/module/floatingMenu/dial/DialPagination.js +1 -160
- package/lib/module/floatingMenu/dial/DialSnow.js +1 -90
- package/lib/module/floatingMenu/dial/OnboardingTooltip.js +1 -240
- package/lib/module/floatingMenu/dial/OnboardingTooltip.web.js +2 -142
- package/lib/module/floatingMenu/dial/dialUsageStore.js +1 -85
- package/lib/module/floatingMenu/dial/onboardingConstants.js +1 -3
- package/lib/module/floatingMenu/dial/onboardingConstants.web.js +1 -3
- package/lib/module/floatingMenu/externalSyncGate.js +1 -44
- package/lib/module/floatingMenu/floatingTools.js +1 -27
- package/lib/module/floatingMenu/floatingTools.web.js +1 -3
- package/lib/module/floatingMenu/optionalRequire.js +1 -33
- package/lib/module/floatingMenu/settingsBus.js +1 -3
- package/lib/module/floatingMenu/sync/appSyncAdapter.js +1 -112
- package/lib/module/floatingMenu/types.js +1 -3
- package/lib/module/floatingMenu/useDesktopSyncStatus.js +1 -25
- package/lib/module/floatingMenu/useDesktopSyncStatus.web.js +1 -10
- package/lib/module/index.js +1 -41
- package/lib/module/index.web.js +1 -36
- package/lib/module/reactDevtoolsTypes.js +1 -1
- package/lib/module/releaseOptIn.js +1 -0
- package/lib/module/telemetry/installPing.js +1 -127
- package/lib/module/toolkit.js +1 -62
- package/lib/module/toolkitComponents.js +1 -230
- package/lib/module/utils/autoDiscoverPresets.web.js +1 -38
- package/lib/module/utils/createWebTool.js +1 -17
- package/lib/module/utils/createWebTools.js +1 -25
- package/lib/module/version.js +1 -14
- package/lib/typescript/commonjs/browserRegister.d.ts +9 -1
- package/lib/typescript/commonjs/browserRegister.server.d.ts +1 -0
- package/lib/typescript/commonjs/earlyHookScript.d.ts +12 -0
- package/lib/typescript/commonjs/earlyNetwork.d.ts +52 -0
- package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +1 -0
- package/lib/typescript/commonjs/releaseOptIn.d.ts +4 -0
- package/lib/typescript/commonjs/version.d.ts +1 -1
- package/lib/typescript/module/browserRegister.d.ts +9 -1
- package/lib/typescript/module/browserRegister.server.d.ts +1 -0
- package/lib/typescript/module/earlyHookScript.d.ts +12 -0
- package/lib/typescript/module/earlyNetwork.d.ts +52 -0
- package/lib/typescript/module/floatingMenu/defaultConfig.d.ts +1 -1
- package/lib/typescript/module/index.web.d.ts +1 -0
- package/lib/typescript/module/releaseOptIn.d.ts +4 -0
- package/lib/typescript/module/version.d.ts +1 -1
- package/lib/web/chunks/chunk-5SGL6QL4.mjs +1 -0
- package/lib/web/chunks/chunk-FROELTJH.mjs +1 -0
- package/lib/web/chunks/chunk-QZDVCMCT.mjs +1 -2
- package/lib/web/chunks/chunk-R7RGRTY5.mjs +1 -2
- package/lib/web/index.mjs +2 -3
- package/lib/web/register-server.mjs +1 -2
- package/lib/web/register.mjs +1 -2
- package/lib/web/toolkit.mjs +1 -2
- package/package.json +5 -5
- package/lib/typescript/commonjs/Buoy.d.ts.map +0 -1
- package/lib/typescript/commonjs/browserRegister.d.ts.map +0 -1
- package/lib/typescript/commonjs/browserRegister.server.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/AppHost.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/AppHost.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/AppHostLogic.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/AppIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/AppIcon.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/BrowserToolRuntime.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/DefaultConfigContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/DevToolsSettingsModal.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/DevToolsVisibilityContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingMenu.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/MinimizedToolsContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/MinimizedToolsStack.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/MinimizedToolsStack.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/ToggleStateManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/ToolHost.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/ToolOpenerBridge.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/autoDiscoverPresets.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/autoExternalSync.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/deviceIdentity.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialDevTools.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialDevTools.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialHyperspace.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialPagination.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialSnow.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/OnboardingTooltip.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/OnboardingTooltip.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/dialUsageStore.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/onboardingConstants.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/dial/onboardingConstants.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/externalSyncGate.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/floatingTools.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/floatingTools.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/optionalRequire.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/settingsBus.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/sync/appSyncAdapter.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/useDesktopSyncStatus.d.ts.map +0 -1
- package/lib/typescript/commonjs/floatingMenu/useDesktopSyncStatus.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/index.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/reactDevtoolsTypes.d.ts.map +0 -1
- package/lib/typescript/commonjs/telemetry/installPing.d.ts.map +0 -1
- package/lib/typescript/commonjs/toolkit.d.ts.map +0 -1
- package/lib/typescript/commonjs/toolkitComponents.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/autoDiscoverPresets.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/createWebTool.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/createWebTools.d.ts.map +0 -1
- package/lib/typescript/commonjs/version.d.ts.map +0 -1
- package/lib/typescript/module/Buoy.d.ts.map +0 -1
- package/lib/typescript/module/browserRegister.d.ts.map +0 -1
- package/lib/typescript/module/browserRegister.server.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/AppHost.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/AppHost.web.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/AppHostLogic.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/AppIcon.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/AppIcon.web.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/BrowserToolRuntime.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/DefaultConfigContext.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.shared.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/DevToolsSettingsModal.web.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/DevToolsVisibilityContext.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/FloatingDevTools.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/FloatingDevTools.web.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/FloatingMenu.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/MinimizedToolsContext.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/MinimizedToolsStack.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/MinimizedToolsStack.web.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/ToggleStateManager.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/ToolHost.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/ToolOpenerBridge.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/autoDiscoverPresets.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/autoExternalSync.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/defaultConfig.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/deviceIdentity.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/DialDevTools.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/DialDevTools.web.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/DialHyperspace.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/DialIcon.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/DialPagination.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/DialSnow.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/OnboardingTooltip.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/OnboardingTooltip.web.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/dialUsageStore.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/onboardingConstants.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/dial/onboardingConstants.web.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/externalSyncGate.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/floatingTools.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/floatingTools.web.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/optionalRequire.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/settingsBus.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/sync/appSyncAdapter.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/types.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/useDesktopSyncStatus.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/useDesktopSyncStatus.web.d.ts.map +0 -1
- package/lib/typescript/module/index.d.ts.map +0 -1
- package/lib/typescript/module/index.web.d.ts.map +0 -1
- package/lib/typescript/module/reactDevtoolsTypes.d.ts.map +0 -1
- package/lib/typescript/module/telemetry/installPing.d.ts.map +0 -1
- package/lib/typescript/module/toolkit.d.ts.map +0 -1
- package/lib/typescript/module/toolkitComponents.d.ts.map +0 -1
- package/lib/typescript/module/utils/autoDiscoverPresets.web.d.ts.map +0 -1
- package/lib/typescript/module/utils/createWebTool.d.ts.map +0 -1
- package/lib/typescript/module/utils/createWebTools.d.ts.map +0 -1
- package/lib/typescript/module/version.d.ts.map +0 -1
- package/lib/web/chunks/chunk-5NZOQR6Q.mjs +0 -2
- package/lib/web/chunks/chunk-CGDSLLZF.mjs +0 -2
- package/lib/web/chunks/chunk-DCJDUSNR.mjs +0 -2
- package/lib/web/chunks/chunk-IDSHFS6G.mjs +0 -2
- package/lib/web/chunks/chunk-JOAMJGCS.mjs +0 -2
- package/lib/web/chunks/chunk-KYKZ2N52.mjs +0 -2
- package/lib/web/chunks/chunk-NGM7JGGS.mjs +0 -2
- package/lib/web/chunks/chunk-Z3XWDDIO.mjs +0 -2
- package/lib/web/chunks/chunk-ZTGQ6TTY.mjs +0 -2
|
@@ -1,42 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "ARROW_BOTTOM_OFFSET", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _floating.ARROW_BOTTOM_OFFSET;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "ARROW_HEIGHT", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _floating.ARROW_HEIGHT;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "SPACING_GAP", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _floating.SPACING_GAP;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "calculateTargetPosition", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _floating.calculateTargetPosition;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "calculateTooltipPosition", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _floating.calculateTooltipPosition;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "getScreenCenterY", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _floating.getScreenCenterY;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
var _floating = require("@buoy-gg/shared-ui/floating");
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"ARROW_BOTTOM_OFFSET",{enumerable:true,get:function(){return _floating.ARROW_BOTTOM_OFFSET}});Object.defineProperty(exports,"ARROW_HEIGHT",{enumerable:true,get:function(){return _floating.ARROW_HEIGHT}});Object.defineProperty(exports,"SPACING_GAP",{enumerable:true,get:function(){return _floating.SPACING_GAP}});Object.defineProperty(exports,"calculateTargetPosition",{enumerable:true,get:function(){return _floating.calculateTargetPosition}});Object.defineProperty(exports,"calculateTooltipPosition",{enumerable:true,get:function(){return _floating.calculateTooltipPosition}});Object.defineProperty(exports,"getScreenCenterY",{enumerable:true,get:function(){return _floating.getScreenCenterY}});var _floating=require("@buoy-gg/shared-ui/floating");
|
|
@@ -1,49 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.externalSyncOptions = externalSyncOptions;
|
|
7
|
-
exports.shouldMountExternalSync = shouldMountExternalSync;
|
|
8
|
-
/**
|
|
9
|
-
* Decides whether FloatingDevTools mounts <AutoExternalSync /> — i.e. whether
|
|
10
|
-
* this build is allowed to dial the Buoy Desktop broker.
|
|
11
|
-
*
|
|
12
|
-
* Kept as a pure function in its own module (no react-native / no guarded
|
|
13
|
-
* requires) so the rule is unit-testable: the gate used to be an inline
|
|
14
|
-
* `isDevelopment && ...` in JSX, which silently made release builds unable to
|
|
15
|
-
* reach the desktop dashboard or MCP with no way to opt in from app code.
|
|
16
|
-
*
|
|
17
|
-
* The rule has two halves that must BOTH hold in a release build, because a
|
|
18
|
-
* shipped app must never contact a broker on an end user's device:
|
|
19
|
-
* 1. a real Pro license (never the Weekend Pass — see useProAccess), and
|
|
20
|
-
* 2. an EXPLICIT opt-in from app code (`externalSync.enableInRelease`).
|
|
21
|
-
* Dev builds keep the zero-config behavior: sync is on unless turned off.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/** The options object from the prop, or undefined when it's a boolean. */
|
|
25
|
-
function externalSyncOptions(externalSync) {
|
|
26
|
-
return typeof externalSync === "object" && externalSync !== null ? externalSync : undefined;
|
|
27
|
-
}
|
|
28
|
-
function shouldMountExternalSync({
|
|
29
|
-
isDevelopment,
|
|
30
|
-
isLicensed,
|
|
31
|
-
externalSync,
|
|
32
|
-
isAvailable
|
|
33
|
-
}) {
|
|
34
|
-
// Turned off outright, or the package isn't installed — nothing to mount.
|
|
35
|
-
if (externalSync === false) return false;
|
|
36
|
-
if (!isAvailable) return false;
|
|
37
|
-
|
|
38
|
-
// Dev builds: zero-config, on by default (historical behavior).
|
|
39
|
-
if (isDevelopment) return true;
|
|
40
|
-
|
|
41
|
-
// Release builds: opt-in only, and Pro only. `enableInRelease` has to be set
|
|
42
|
-
// by the app itself, so an app that just ships FloatingDevTools with a Pro
|
|
43
|
-
// key still never opens a socket on a customer's phone.
|
|
44
|
-
//
|
|
45
|
-
// The `isLicensed` half is belt-and-braces: FloatingDevTools already renders
|
|
46
|
-
// nothing at all for an unlicensed release build. Keep it anyway so this rule
|
|
47
|
-
// stands on its own and can't be broken by a change to that earlier return.
|
|
48
|
-
return isLicensed && externalSyncOptions(externalSync)?.enableInRelease === true;
|
|
49
|
-
}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.externalSyncOptions=externalSyncOptions;exports.shouldMountExternalSync=shouldMountExternalSync;function externalSyncOptions(e){return typeof e==="object"&&e!==null?e:void 0}function shouldMountExternalSync({isDevelopment:e,isLicensed:n,externalSync:t,isAvailable:r}){if(t===false)return false;if(!r)return false;if(e)return true;return n&&externalSyncOptions(t)?.enableInRelease===true}
|
|
@@ -1,42 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "Divider", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _sharedUi.FloatingToolDivider;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.FloatingTools = FloatingTools;
|
|
13
|
-
Object.defineProperty(exports, "UserStatus", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _sharedUi.FloatingToolUserStatus;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var _react = require("react");
|
|
20
|
-
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
21
|
-
var _MinimizedToolsStack = require("./MinimizedToolsStack");
|
|
22
|
-
var _MinimizedToolsContext = require("./MinimizedToolsContext.js");
|
|
23
|
-
var _AppHost = require("./AppHost");
|
|
24
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
-
/** The DevTools content adapter. All floating behavior lives in shared UI. */
|
|
26
|
-
function FloatingTools(props) {
|
|
27
|
-
const {
|
|
28
|
-
minimizedTools
|
|
29
|
-
} = (0, _MinimizedToolsContext.useMinimizedTools)();
|
|
30
|
-
const {
|
|
31
|
-
restore
|
|
32
|
-
} = (0, _AppHost.useAppHost)();
|
|
33
|
-
const onRestore = (0, _react.useCallback)(tool => restore(tool.instanceId, tool.modalState), [restore]);
|
|
34
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.FloatingTool, {
|
|
35
|
-
...props,
|
|
36
|
-
hasMinimizedStack: minimizedTools.length > 0,
|
|
37
|
-
minimizedStack: minimizedTools.length ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_MinimizedToolsStack.MinimizedToolsStack, {
|
|
38
|
-
onRestore: onRestore,
|
|
39
|
-
containerWidth: 32
|
|
40
|
-
}) : undefined
|
|
41
|
-
});
|
|
42
|
-
}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"Divider",{enumerable:true,get:function(){return _sharedUi.FloatingToolDivider}});exports.FloatingTools=FloatingTools;Object.defineProperty(exports,"UserStatus",{enumerable:true,get:function(){return _sharedUi.FloatingToolUserStatus}});var _react=require("react");var _sharedUi=require("@buoy-gg/shared-ui");var _MinimizedToolsStack=require("./MinimizedToolsStack");var _MinimizedToolsContext=require("./MinimizedToolsContext.js");var _AppHost=require("./AppHost");var _jsxRuntime=require("react/jsx-runtime");function FloatingTools(r){const{minimizedTools:e}=(0,_MinimizedToolsContext.useMinimizedTools)();const{restore:t}=(0,_AppHost.useAppHost)();const o=(0,_react.useCallback)(i=>t(i.instanceId,i.modalState),[t]);return(0,_jsxRuntime.jsx)(_sharedUi.FloatingTool,{...r,hasMinimizedStack:e.length>0,minimizedStack:e.length?(0,_jsxRuntime.jsx)(_MinimizedToolsStack.MinimizedToolsStack,{onRestore:o,containerWidth:32}):void 0})}
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "Divider", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _floating.FloatingToolDivider;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "FloatingTools", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _floating.FloatingTool;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "UserStatus", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _floating.FloatingToolUserStatus;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "getBubbleAnchorPosition", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _floating.getBubbleAnchorPosition;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
var _floating = require("@buoy-gg/shared-ui/floating");
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"Divider",{enumerable:true,get:function(){return _floating.FloatingToolDivider}});Object.defineProperty(exports,"FloatingTools",{enumerable:true,get:function(){return _floating.FloatingTool}});Object.defineProperty(exports,"UserStatus",{enumerable:true,get:function(){return _floating.FloatingToolUserStatus}});Object.defineProperty(exports,"getBubbleAnchorPosition",{enumerable:true,get:function(){return _floating.getBubbleAnchorPosition}});var _floating=require("@buoy-gg/shared-ui/floating");
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.reportOptionalRequireError = reportOptionalRequireError;
|
|
7
|
-
const isDev = typeof __DEV__ !== "undefined" && __DEV__;
|
|
8
|
-
const reported = new Set();
|
|
9
|
-
const MODULE_NOT_FOUND_RE = /could not be found within the project|Cannot find module|Unable to resolve module/i;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Call from the CATCH block of a guarded optional require (the require
|
|
13
|
-
* literal itself must stay lexically inside try{} for Metro to treat the
|
|
14
|
-
* dependency as optional — this helper only inspects the failure).
|
|
15
|
-
*
|
|
16
|
-
* Silent when the package simply isn't installed. Warns once per module
|
|
17
|
-
* (dev only) when the package IS present but threw during import — a broken
|
|
18
|
-
* transitive resolve (subpath exports, version skew) or a top-level crash —
|
|
19
|
-
* which otherwise fails silently and makes tools vanish with no clue.
|
|
20
|
-
*/
|
|
21
|
-
function reportOptionalRequireError(moduleName, err) {
|
|
22
|
-
if (!isDev) return;
|
|
23
|
-
// Under an ESM bundler (the desktop's Vite renderer) `require` itself does
|
|
24
|
-
// not exist, so every guarded require fails the same way. That says nothing
|
|
25
|
-
// about the package, so it is not worth a warning.
|
|
26
|
-
if (typeof require !== "function") return;
|
|
27
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
28
|
-
const code = err?.code;
|
|
29
|
-
const isNotFound = code === "MODULE_NOT_FOUND" || MODULE_NOT_FOUND_RE.test(message);
|
|
30
|
-
// "Not found" naming the module itself = expected (not installed).
|
|
31
|
-
// "Not found" naming a DIFFERENT module = broken transitive dep inside an
|
|
32
|
-
// installed package — a real error worth surfacing.
|
|
33
|
-
if (isNotFound && message.includes(moduleName)) return;
|
|
34
|
-
if (reported.has(moduleName)) return;
|
|
35
|
-
reported.add(moduleName);
|
|
36
|
-
console.warn(`[buoy] "${moduleName}" is installed but failed to load — its tools won't appear. ` + `Underlying error: ${message}`);
|
|
37
|
-
}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.reportOptionalRequireError=reportOptionalRequireError;const isDev=typeof __DEV__!=="undefined"&&__DEV__;const reported=new Set;const MODULE_NOT_FOUND_RE=/could not be found within the project|Cannot find module|Unable to resolve module/i;function reportOptionalRequireError(e,t){if(!isDev)return;if(typeof require!=="function")return;const o=t instanceof Error?t.message:String(t);const n=t?.code;const r=n==="MODULE_NOT_FOUND"||MODULE_NOT_FOUND_RE.test(o);if(r&&o.includes(e))return;if(reported.has(e))return;reported.add(e);console.warn(`[buoy] "${e}" is installed but failed to load \u2014 its tools won't appear. Underlying error: ${o}`)}
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "settingsBus", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _floatingToolsCore.settingsEventBus;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _floatingToolsCore = require("@buoy-gg/floating-tools-core");
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"settingsBus",{enumerable:true,get:function(){return _floatingToolsCore.settingsEventBus}});var _floatingToolsCore=require("@buoy-gg/floating-tools-core");
|
|
@@ -1,115 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.appSyncAdapter = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
9
|
-
/**
|
|
10
|
-
* Sync adapter for the "app" pseudo-tool — device-level capabilities that
|
|
11
|
-
* belong to the app itself rather than to any one Buoy tool, consumed by
|
|
12
|
-
* @buoy-gg/external-sync's `useExternalSync` (structurally matches its
|
|
13
|
-
* ToolSyncAdapter interface so this package doesn't need a dependency on it).
|
|
14
|
-
*
|
|
15
|
-
* Lives in core and is registered UNCONDITIONALLY, so a remote driver (Buoy
|
|
16
|
-
* Desktop, the MCP server) can count on it for every connected app — no tool
|
|
17
|
-
* package, and no native peer deps, required.
|
|
18
|
-
*
|
|
19
|
-
* Two things today: reloading the JS bundle, and what KIND of device this is.
|
|
20
|
-
* The snapshot is static (there is nothing to stream), it just advertises
|
|
21
|
-
* whether a reload would work and which mechanism would run, so a driver can
|
|
22
|
-
* say so up front instead of discovering it by failing.
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* When THIS JS realm booted. A reload replaces the realm, so a driver that
|
|
26
|
-
* remembers this value can tell "the app came back" apart from "the old,
|
|
27
|
-
* doomed realm answered me" — the difference between reporting a reload done
|
|
28
|
-
* and reporting it too early.
|
|
29
|
-
*/
|
|
30
|
-
const REALM_STARTED_AT = Date.now();
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Where this bundle came from, resolved once at module load.
|
|
34
|
-
*
|
|
35
|
-
* Reported so a remote driver can recover the app when the app itself can no
|
|
36
|
-
* longer be asked to: after a fatal render error the React tree is gone, every
|
|
37
|
-
* tool action goes unanswered, and `reloadApp` below is unreachable. The dev
|
|
38
|
-
* server's reload path runs natively and still works — but only for a driver
|
|
39
|
-
* that learned this origin while the app was healthy.
|
|
40
|
-
*/
|
|
41
|
-
const DEV_SERVER_ORIGIN = (0, _sharedUi.getDevServerOrigin)();
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* What kind of device this is, resolved once at module load.
|
|
45
|
-
*
|
|
46
|
-
* A dashboard cannot infer this from `platform` alone: an Apple TV and an
|
|
47
|
-
* iPhone both report "ios", and an Android TV and a phone both report
|
|
48
|
-
* "android". Without it Buoy Desktop has to show every tool for every device —
|
|
49
|
-
* including TV-only tools on a phone, where they can never do anything.
|
|
50
|
-
*
|
|
51
|
-
* `Platform.isTVOS` is `undefined` (not `false`) on Android TV, so it is only
|
|
52
|
-
* ever compared against `true`.
|
|
53
|
-
*/
|
|
54
|
-
const DEVICE = {
|
|
55
|
-
platform: _reactNative.Platform.OS,
|
|
56
|
-
isTV: _reactNative.Platform.isTV === true,
|
|
57
|
-
isTVOS: _reactNative.Platform.isTVOS === true
|
|
58
|
-
};
|
|
59
|
-
const appSyncAdapter = exports.appSyncAdapter = {
|
|
60
|
-
// v3 adds `device`. Consumers must tolerate its absence — an older app on a
|
|
61
|
-
// newer dashboard simply reports an unknown device kind.
|
|
62
|
-
version: 3,
|
|
63
|
-
getSnapshot: () => {
|
|
64
|
-
const strategy = (0, _sharedUi.resolveReloadStrategy)("auto");
|
|
65
|
-
return {
|
|
66
|
-
startedAt: REALM_STARTED_AT,
|
|
67
|
-
devServerOrigin: DEV_SERVER_ORIGIN,
|
|
68
|
-
device: DEVICE,
|
|
69
|
-
reload: {
|
|
70
|
-
available: strategy !== null,
|
|
71
|
-
strategy
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
},
|
|
75
|
-
// Nothing changes over time — take the callback and hand back a no-op
|
|
76
|
-
// unsubscribe so the sync layer's contract still holds.
|
|
77
|
-
subscribe: _onChange => () => {},
|
|
78
|
-
actions: {
|
|
79
|
-
/**
|
|
80
|
-
* Cheap round-trip liveness probe. Only a live JS realm can answer it, and
|
|
81
|
-
* `startedAt` identifies WHICH realm — that's how a driver confirms a
|
|
82
|
-
* reload actually completed rather than just being accepted.
|
|
83
|
-
*/
|
|
84
|
-
ping: () => ({
|
|
85
|
-
ok: true,
|
|
86
|
-
startedAt: REALM_STARTED_AT,
|
|
87
|
-
devServerOrigin: DEV_SERVER_ORIGIN
|
|
88
|
-
}),
|
|
89
|
-
/**
|
|
90
|
-
* Reload the app's JS bundle: RN's `DevSettings.reload()` in dev builds,
|
|
91
|
-
* `expo-updates` otherwise. The same primitive perf-monitor's batch runner
|
|
92
|
-
* uses between cases, and the MCP server's `reload_app`.
|
|
93
|
-
*
|
|
94
|
-
* Returns BEFORE the reload fires: the realm dies the moment it does, so
|
|
95
|
-
* the ack has to be on the wire first (scheduleReloadApp arms it a beat
|
|
96
|
-
* later). An unavailable mechanism throws here, so the caller gets a real
|
|
97
|
-
* error instead of a silent no-op.
|
|
98
|
-
*/
|
|
99
|
-
reloadApp: params => {
|
|
100
|
-
const p = params ?? {};
|
|
101
|
-
const {
|
|
102
|
-
strategy,
|
|
103
|
-
delayMs
|
|
104
|
-
} = (0, _sharedUi.scheduleReloadApp)({
|
|
105
|
-
strategy: p.strategy,
|
|
106
|
-
delayMs: p.delayMs
|
|
107
|
-
});
|
|
108
|
-
return {
|
|
109
|
-
scheduled: true,
|
|
110
|
-
strategy,
|
|
111
|
-
delayMs
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.appSyncAdapter=void 0;var _reactNative=require("react-native");var _sharedUi=require("@buoy-gg/shared-ui");const REALM_STARTED_AT=Date.now();const DEV_SERVER_ORIGIN=(0,_sharedUi.getDevServerOrigin)();const DEVICE={platform:_reactNative.Platform.OS,isTV:_reactNative.Platform.isTV===true,isTVOS:_reactNative.Platform.isTVOS===true};const appSyncAdapter=exports.appSyncAdapter={version:3,getSnapshot:()=>{const e=(0,_sharedUi.resolveReloadStrategy)("auto");return{startedAt:REALM_STARTED_AT,devServerOrigin:DEV_SERVER_ORIGIN,device:DEVICE,reload:{available:e!==null,strategy:e}}},subscribe:e=>()=>{},actions:{ping:()=>({ok:true,startedAt:REALM_STARTED_AT,devServerOrigin:DEV_SERVER_ORIGIN}),reloadApp:e=>{const t=e??{};const{strategy:r,delayMs:a}=(0,_sharedUi.scheduleReloadApp)({strategy:t.strategy,delayMs:t.delayMs});return{scheduled:true,strategy:r,delayMs:a}}}};
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useDesktopSyncStatus = useDesktopSyncStatus;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _optionalRequire = require("./optionalRequire.js");
|
|
9
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
10
|
-
|
|
11
|
-
// Guarded module-level require (same Metro constraint as autoExternalSync:
|
|
12
|
-
// the require literal must sit lexically inside try{} to stay optional).
|
|
13
|
-
let syncModule = null;
|
|
14
|
-
try {
|
|
15
|
-
syncModule = require("@buoy-gg/external-sync");
|
|
16
|
-
} catch (e) {
|
|
17
|
-
(0, _optionalRequire.reportOptionalRequireError)("@buoy-gg/external-sync", e);
|
|
18
|
-
}
|
|
19
|
-
const noopSubscribe = () => () => {};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Live desktop-sync status for the settings modal. Returns null when
|
|
23
|
-
* external-sync isn't installed or predates the sync-status store — the
|
|
24
|
-
* caller hides the status row in that case.
|
|
25
|
-
*/
|
|
26
|
-
function useDesktopSyncStatus() {
|
|
27
|
-
return (0, _react.useSyncExternalStore)(syncModule?.subscribeSyncStatus ?? noopSubscribe, () => syncModule?.getSyncStatus?.() ?? null);
|
|
28
|
-
}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.useDesktopSyncStatus=useDesktopSyncStatus;var _react=require("react");var _optionalRequire=require("./optionalRequire.js");let syncModule=null;try{syncModule=require("@buoy-gg/external-sync")}catch(e){(0,_optionalRequire.reportOptionalRequireError)("@buoy-gg/external-sync",e)}const noopSubscribe=()=>()=>{};function useDesktopSyncStatus(){return(0,_react.useSyncExternalStore)(syncModule?.subscribeSyncStatus??noopSubscribe,()=>syncModule?.getSyncStatus?.()??null)}
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useDesktopSyncStatus = useDesktopSyncStatus;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
9
|
-
const noopSubscribe = () => () => {};
|
|
10
|
-
const serverSnapshot = () => null;
|
|
11
|
-
function useDesktopSyncStatus() {
|
|
12
|
-
const sync = (0, _sharedUi.getRegisteredToolModule)("@buoy-gg/external-sync");
|
|
13
|
-
return (0, _react.useSyncExternalStore)(sync?.subscribeSyncStatus ?? noopSubscribe, () => sync?.getSyncStatus?.() ?? null, serverSnapshot);
|
|
14
|
-
}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.useDesktopSyncStatus=useDesktopSyncStatus;var _react=require("react");var _sharedUi=require("@buoy-gg/shared-ui");const noopSubscribe=()=>()=>{};const serverSnapshot=()=>null;function useDesktopSyncStatus(){const e=(0,_sharedUi.getRegisteredToolModule)("@buoy-gg/external-sync");return(0,_react.useSyncExternalStore)(e?.subscribeSyncStatus??noopSubscribe,()=>e?.getSyncStatus?.()??null,serverSnapshot)}
|