@buoy-gg/core 7.0.32 → 7.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/floatingMenu/FloatingDevTools.js +24 -1
- package/lib/commonjs/floatingMenu/autoDiscoverPresets.js +21 -5
- package/lib/commonjs/floatingMenu/autoExternalSync.js +32 -17
- package/lib/commonjs/floatingMenu/deviceIdentity.js +173 -0
- package/lib/commonjs/floatingMenu/dial/DialDevTools.js +5 -46
- package/lib/commonjs/floatingMenu/dial/DialIcon.js +2 -46
- package/lib/commonjs/version.js +1 -1
- package/lib/module/floatingMenu/FloatingDevTools.js +24 -1
- package/lib/module/floatingMenu/autoDiscoverPresets.js +21 -5
- package/lib/module/floatingMenu/autoExternalSync.js +32 -17
- package/lib/module/floatingMenu/deviceIdentity.js +163 -0
- package/lib/module/floatingMenu/dial/DialDevTools.js +6 -47
- package/lib/module/floatingMenu/dial/DialIcon.js +2 -46
- package/lib/module/version.js +1 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.d.ts +38 -1
- package/lib/typescript/commonjs/floatingMenu/FloatingDevTools.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/autoDiscoverPresets.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/autoExternalSync.d.ts +12 -2
- package/lib/typescript/commonjs/floatingMenu/autoExternalSync.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts +1 -1
- package/lib/typescript/commonjs/floatingMenu/defaultConfig.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/deviceIdentity.d.ts +66 -0
- package/lib/typescript/commonjs/floatingMenu/deviceIdentity.d.ts.map +1 -0
- package/lib/typescript/commonjs/floatingMenu/dial/DialDevTools.d.ts +0 -7
- package/lib/typescript/commonjs/floatingMenu/dial/DialDevTools.d.ts.map +1 -1
- package/lib/typescript/commonjs/floatingMenu/dial/DialIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/version.d.ts +1 -1
- package/lib/typescript/module/floatingMenu/FloatingDevTools.d.ts +38 -1
- package/lib/typescript/module/floatingMenu/FloatingDevTools.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/autoDiscoverPresets.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/autoExternalSync.d.ts +12 -2
- package/lib/typescript/module/floatingMenu/autoExternalSync.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/defaultConfig.d.ts +1 -1
- package/lib/typescript/module/floatingMenu/defaultConfig.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/deviceIdentity.d.ts +66 -0
- package/lib/typescript/module/floatingMenu/deviceIdentity.d.ts.map +1 -0
- package/lib/typescript/module/floatingMenu/dial/DialDevTools.d.ts +0 -7
- package/lib/typescript/module/floatingMenu/dial/DialDevTools.d.ts.map +1 -1
- package/lib/typescript/module/floatingMenu/dial/DialIcon.d.ts.map +1 -1
- package/lib/typescript/module/version.d.ts +1 -1
- package/package.json +5 -5
- package/lib/commonjs/floatingMenu/allToolsRegistry.js +0 -159
- package/lib/module/floatingMenu/allToolsRegistry.js +0 -155
- package/lib/typescript/commonjs/floatingMenu/allToolsRegistry.d.ts +0 -42
- package/lib/typescript/commonjs/floatingMenu/allToolsRegistry.d.ts.map +0 -1
- package/lib/typescript/module/floatingMenu/allToolsRegistry.d.ts +0 -42
- package/lib/typescript/module/floatingMenu/allToolsRegistry.d.ts.map +0 -1
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Canonical registry of ALL dial-eligible tools React Buoy offers on mobile.
|
|
3
|
-
*
|
|
4
|
-
* This is the single source of truth used to compute which tools are
|
|
5
|
-
* "unavailable" (offered but not installed in the current app). It lives
|
|
6
|
-
* inside the floating-menu package so nothing outside needs to be imported.
|
|
7
|
-
*
|
|
8
|
-
* Rules for this file:
|
|
9
|
-
* - Only import from REQUIRED dependencies (@buoy-gg/floating-tools-core,
|
|
10
|
-
* @buoy-gg/shared-ui, react-native) so the icons are always resolvable,
|
|
11
|
-
* even when the optional tool packages are not installed.
|
|
12
|
-
* - Only include tools whose preset slot is NOT "row" (row-only tools never
|
|
13
|
-
* appear in the dial and have no "unavailable" state to show).
|
|
14
|
-
* - Keep the order intentional: this order is the fallback when no usage
|
|
15
|
-
* data exists for new/unavailable tools.
|
|
16
|
-
*/
|
|
17
|
-
import React from "react";
|
|
18
|
-
export interface AllToolsEntry {
|
|
19
|
-
/** Unique tool ID — must match the preset id from the tool's package */
|
|
20
|
-
id: string;
|
|
21
|
-
/** Display name (shown in the dial + unavailable label) */
|
|
22
|
-
name: string;
|
|
23
|
-
/** Accent color */
|
|
24
|
-
color: string;
|
|
25
|
-
/** Icon render function — receives the requested pixel size */
|
|
26
|
-
renderIcon: (size: number) => React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Full list of every dial-eligible tool React Buoy offers on mobile.
|
|
30
|
-
*
|
|
31
|
-
* Available (installed) tools are shown normally in the dial.
|
|
32
|
-
* Unavailable (not installed) tools are appended at the end of the dial and look
|
|
33
|
-
* like a normal item (real icon + real name) with a small muted "Unavailable"
|
|
34
|
-
* caption added; they are non-interactive.
|
|
35
|
-
*
|
|
36
|
-
* To add a new tool to Buoy:
|
|
37
|
-
* 1. Add its preset to autoDiscoverPresets.ts
|
|
38
|
-
* 2. Add an entry here so it appears in the "unavailable" section for apps
|
|
39
|
-
* that haven't installed it yet.
|
|
40
|
-
*/
|
|
41
|
-
export declare const ALL_TOOLS_REGISTRY: AllToolsEntry[];
|
|
42
|
-
//# sourceMappingURL=allToolsRegistry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allToolsRegistry.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/allToolsRegistry.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AA8C1B,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAC;IACX,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CAC/C;AAID;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAa,EA2F7C,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Canonical registry of ALL dial-eligible tools React Buoy offers on mobile.
|
|
3
|
-
*
|
|
4
|
-
* This is the single source of truth used to compute which tools are
|
|
5
|
-
* "unavailable" (offered but not installed in the current app). It lives
|
|
6
|
-
* inside the floating-menu package so nothing outside needs to be imported.
|
|
7
|
-
*
|
|
8
|
-
* Rules for this file:
|
|
9
|
-
* - Only import from REQUIRED dependencies (@buoy-gg/floating-tools-core,
|
|
10
|
-
* @buoy-gg/shared-ui, react-native) so the icons are always resolvable,
|
|
11
|
-
* even when the optional tool packages are not installed.
|
|
12
|
-
* - Only include tools whose preset slot is NOT "row" (row-only tools never
|
|
13
|
-
* appear in the dial and have no "unavailable" state to show).
|
|
14
|
-
* - Keep the order intentional: this order is the fallback when no usage
|
|
15
|
-
* data exists for new/unavailable tools.
|
|
16
|
-
*/
|
|
17
|
-
import React from "react";
|
|
18
|
-
export interface AllToolsEntry {
|
|
19
|
-
/** Unique tool ID — must match the preset id from the tool's package */
|
|
20
|
-
id: string;
|
|
21
|
-
/** Display name (shown in the dial + unavailable label) */
|
|
22
|
-
name: string;
|
|
23
|
-
/** Accent color */
|
|
24
|
-
color: string;
|
|
25
|
-
/** Icon render function — receives the requested pixel size */
|
|
26
|
-
renderIcon: (size: number) => React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Full list of every dial-eligible tool React Buoy offers on mobile.
|
|
30
|
-
*
|
|
31
|
-
* Available (installed) tools are shown normally in the dial.
|
|
32
|
-
* Unavailable (not installed) tools are appended at the end of the dial and look
|
|
33
|
-
* like a normal item (real icon + real name) with a small muted "Unavailable"
|
|
34
|
-
* caption added; they are non-interactive.
|
|
35
|
-
*
|
|
36
|
-
* To add a new tool to Buoy:
|
|
37
|
-
* 1. Add its preset to autoDiscoverPresets.ts
|
|
38
|
-
* 2. Add an entry here so it appears in the "unavailable" section for apps
|
|
39
|
-
* that haven't installed it yet.
|
|
40
|
-
*/
|
|
41
|
-
export declare const ALL_TOOLS_REGISTRY: AllToolsEntry[];
|
|
42
|
-
//# sourceMappingURL=allToolsRegistry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allToolsRegistry.d.ts","sourceRoot":"","sources":["../../../../src/floatingMenu/allToolsRegistry.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AA8C1B,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAC;IACX,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CAC/C;AAID;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAa,EA2F7C,CAAC"}
|