@buoy-gg/shared-ui 7.0.15 → 7.0.16

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.
Files changed (57) hide show
  1. package/lib/commonjs/JsModal.web.js +1588 -0
  2. package/lib/commonjs/env/EnvironmentIndicator.web.js +114 -0
  3. package/lib/commonjs/env/EnvironmentSelectorInline.web.js +178 -0
  4. package/lib/commonjs/hooks/safe-area-impl.js +1 -1
  5. package/lib/commonjs/icons/index.js +14 -0
  6. package/lib/commonjs/index.js +3 -3
  7. package/lib/commonjs/stores/ignoredPatternsCore.js +68 -0
  8. package/lib/commonjs/stores/ignoredPatternsStore.js +16 -52
  9. package/lib/commonjs/stores/ignoredPatternsStore.web.js +236 -0
  10. package/lib/commonjs/stores/index.js +1 -1
  11. package/lib/commonjs/ui/gameUI/constants/gameUIColors.js +5 -3
  12. package/lib/module/JsModal.web.js +1586 -0
  13. package/lib/module/env/EnvironmentIndicator.web.js +108 -0
  14. package/lib/module/env/EnvironmentSelectorInline.web.js +173 -0
  15. package/lib/module/hooks/safe-area-impl.js +1 -1
  16. package/lib/module/icons/index.js +1 -0
  17. package/lib/module/index.js +3 -3
  18. package/lib/module/stores/ignoredPatternsCore.js +62 -0
  19. package/lib/module/stores/ignoredPatternsStore.js +5 -51
  20. package/lib/module/stores/ignoredPatternsStore.web.js +221 -0
  21. package/lib/module/stores/index.js +1 -1
  22. package/lib/module/ui/gameUI/constants/gameUIColors.js +4 -2
  23. package/lib/typescript/commonjs/JsModal.web.d.ts +138 -0
  24. package/lib/typescript/commonjs/JsModal.web.d.ts.map +1 -0
  25. package/lib/typescript/commonjs/env/EnvironmentIndicator.web.d.ts +16 -0
  26. package/lib/typescript/commonjs/env/EnvironmentIndicator.web.d.ts.map +1 -0
  27. package/lib/typescript/commonjs/env/EnvironmentSelectorInline.web.d.ts +8 -0
  28. package/lib/typescript/commonjs/env/EnvironmentSelectorInline.web.d.ts.map +1 -0
  29. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
  30. package/lib/typescript/commonjs/icons/index.d.ts +1 -0
  31. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
  32. package/lib/typescript/commonjs/stores/ignoredPatternsCore.d.ts +37 -0
  33. package/lib/typescript/commonjs/stores/ignoredPatternsCore.d.ts.map +1 -0
  34. package/lib/typescript/commonjs/stores/ignoredPatternsStore.d.ts +3 -27
  35. package/lib/typescript/commonjs/stores/ignoredPatternsStore.d.ts.map +1 -1
  36. package/lib/typescript/commonjs/stores/ignoredPatternsStore.web.d.ts +72 -0
  37. package/lib/typescript/commonjs/stores/ignoredPatternsStore.web.d.ts.map +1 -0
  38. package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts +56 -0
  39. package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
  40. package/lib/typescript/module/JsModal.web.d.ts +138 -0
  41. package/lib/typescript/module/JsModal.web.d.ts.map +1 -0
  42. package/lib/typescript/module/env/EnvironmentIndicator.web.d.ts +16 -0
  43. package/lib/typescript/module/env/EnvironmentIndicator.web.d.ts.map +1 -0
  44. package/lib/typescript/module/env/EnvironmentSelectorInline.web.d.ts +8 -0
  45. package/lib/typescript/module/env/EnvironmentSelectorInline.web.d.ts.map +1 -0
  46. package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
  47. package/lib/typescript/module/icons/index.d.ts +1 -0
  48. package/lib/typescript/module/icons/index.d.ts.map +1 -1
  49. package/lib/typescript/module/stores/ignoredPatternsCore.d.ts +37 -0
  50. package/lib/typescript/module/stores/ignoredPatternsCore.d.ts.map +1 -0
  51. package/lib/typescript/module/stores/ignoredPatternsStore.d.ts +3 -27
  52. package/lib/typescript/module/stores/ignoredPatternsStore.d.ts.map +1 -1
  53. package/lib/typescript/module/stores/ignoredPatternsStore.web.d.ts +72 -0
  54. package/lib/typescript/module/stores/ignoredPatternsStore.web.d.ts.map +1 -0
  55. package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts +56 -0
  56. package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
  57. package/package.json +4 -4
@@ -0,0 +1,8 @@
1
+ import { type Environment } from '../types/types';
2
+ export interface EnvironmentSelectorInlineProps {
3
+ currentEnvironment: Environment | string;
4
+ availableEnvironments: Array<Environment | string>;
5
+ onSelect: (env: Environment) => void;
6
+ }
7
+ export declare function EnvironmentSelectorInline({ currentEnvironment, availableEnvironments, onSelect, }: EnvironmentSelectorInlineProps): import("react").JSX.Element;
8
+ //# sourceMappingURL=EnvironmentSelectorInline.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentSelectorInline.web.d.ts","sourceRoot":"","sources":["../../../../src/env/EnvironmentSelectorInline.web.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAKlD,MAAM,WAAW,8BAA8B;IAC7C,kBAAkB,EAAE,WAAW,GAAG,MAAM,CAAC;IACzC,qBAAqB,EAAE,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC,CAAC;IACnD,QAAQ,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACtC;AA0CD,wBAAgB,yBAAyB,CAAC,EACxC,kBAAkB,EAClB,qBAAqB,EACrB,QAAQ,GACT,EAAE,8BAA8B,+BA6HhC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Auto-generated safe area implementation
3
3
  * Detected: none
4
- * Generated at: 2026-08-05T21:40:54.216Z
4
+ * Generated at: 2026-08-06T20:33:57.771Z
5
5
  *
6
6
  * DO NOT EDIT - This file is generated by scripts/detect-safe-area.js
7
7
  *
@@ -3,6 +3,7 @@ export { NetworkIcon, NETWORK_ICON_COLOR } from "@buoy-gg/floating-tools-core";
3
3
  export { EnvIcon, ENV_ICON_COLOR } from "@buoy-gg/floating-tools-core";
4
4
  export { ConsoleIcon, CONSOLE_ICON_COLOR } from "@buoy-gg/floating-tools-core";
5
5
  export { ImagesIcon, IMAGES_ICON_COLOR } from "@buoy-gg/floating-tools-core";
6
+ export { AssetsIcon, ASSETS_ICON_COLOR } from "@buoy-gg/floating-tools-core";
6
7
  export { ImpersonateIcon, IMPERSONATE_ICON_COLOR } from "@buoy-gg/floating-tools-core";
7
8
  export { ImageOverlayIcon, IMAGE_OVERLAY_ICON_COLOR } from "@buoy-gg/floating-tools-core";
8
9
  export { ZustandIcon, ZUSTAND_ICON_COLOR } from "@buoy-gg/floating-tools-core";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/index.tsx"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAG7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAKvE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAG3E,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAA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AoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Pure, dependency-free part of the ignored-patterns feature — split from
3
+ * ignoredPatternsStore.ts so web consumers (which shim `@buoy-gg/shared-ui`
4
+ * and must not pull the store's relative `../utils/persistentStorage` import
5
+ * with its expo/async-storage requires into the bundle graph) can share the
6
+ * exact matching semantics. The store imports and re-exports everything here;
7
+ * the native barrel is unchanged.
8
+ */
9
+ /**
10
+ * How a pattern matches a URL:
11
+ *
12
+ * - `contains`: case-insensitive substring match on the full URL (legacy behavior).
13
+ * - `exact`: smart equality — if pattern starts with `/`, matches URL.pathname;
14
+ * if it starts with `http://`/`https://`, matches origin+pathname; otherwise
15
+ * matches URL.host.
16
+ */
17
+ export type IgnoredPatternMatchMode = "contains" | "exact";
18
+ /** A single exclude pattern with its match mode. */
19
+ export interface IgnoredPattern {
20
+ value: string;
21
+ mode: IgnoredPatternMatchMode;
22
+ }
23
+ /** Patterns hidden by default — Buoy's own license API traffic. */
24
+ export declare const DEFAULT_IGNORED_PATTERNS: ReadonlyArray<IgnoredPattern>;
25
+ /**
26
+ * Returns true when `url` matches the ignored `pattern` according to its mode.
27
+ *
28
+ * `contains` → case-insensitive substring on the full URL (legacy behavior).
29
+ * `exact` → smart equality: pattern starting with `/` compares URL.pathname,
30
+ * full URLs compare origin+pathname (ignoring query/hash), bare
31
+ * values compare URL.host. Falls back to literal equality if URL
32
+ * parsing fails (e.g. relative URLs).
33
+ */
34
+ export declare function urlMatchesIgnoredPattern(url: string, pattern: IgnoredPattern): boolean;
35
+ /** Convenience: does `url` match ANY of the ignored `patterns`? */
36
+ export declare function isUrlIgnored(url: string, patterns: ReadonlyArray<IgnoredPattern>): boolean;
37
+ //# sourceMappingURL=ignoredPatternsCore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignoredPatternsCore.d.ts","sourceRoot":"","sources":["../../../../src/stores/ignoredPatternsCore.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,OAAO,CAAC;AAE3D,oDAAoD;AACpD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED,mEAAmE;AACnE,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,cAAc,CAElE,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,cAAc,GACtB,OAAO,CAoBT;AAED,mEAAmE;AACnE,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,aAAa,CAAC,cAAc,CAAC,GACtC,OAAO,CAGT"}
@@ -10,32 +10,9 @@
10
10
  * @buoy-gg/events) so the filter logic can be shared without @buoy-gg/events
11
11
  * having to take a hard dependency on @buoy-gg/network (which is optional).
12
12
  */
13
- /**
14
- * How an ignored-pattern entry should be compared against captured URLs.
15
- *
16
- * - `contains`: case-insensitive substring match on the full URL (legacy behavior).
17
- * - `exact`: smart equality — if pattern starts with `/`, matches URL.pathname;
18
- * if it starts with `http://`/`https://`, matches origin+pathname; otherwise
19
- * matches URL.host.
20
- */
21
- export type IgnoredPatternMatchMode = "contains" | "exact";
22
- /** A single exclude pattern with its match mode. */
23
- export interface IgnoredPattern {
24
- value: string;
25
- mode: IgnoredPatternMatchMode;
26
- }
27
- /**
28
- * Returns true when `url` matches the ignored `pattern` according to its mode.
29
- *
30
- * `contains` → case-insensitive substring on the full URL (legacy behavior).
31
- * `exact` → smart equality: pattern starting with `/` compares URL.pathname,
32
- * full URLs compare origin+pathname (ignoring query/hash), bare
33
- * values compare URL.host. Falls back to literal equality if URL
34
- * parsing fails (e.g. relative URLs).
35
- */
36
- export declare function urlMatchesIgnoredPattern(url: string, pattern: IgnoredPattern): boolean;
37
- /** Convenience: does `url` match ANY of the ignored `patterns`? */
38
- export declare function isUrlIgnored(url: string, patterns: ReadonlyArray<IgnoredPattern>): boolean;
13
+ import { type IgnoredPattern } from "./ignoredPatternsCore";
14
+ export type { IgnoredPatternMatchMode, IgnoredPattern, } from "./ignoredPatternsCore";
15
+ export { urlMatchesIgnoredPattern, isUrlIgnored, } from "./ignoredPatternsCore";
39
16
  type Listener = () => void;
40
17
  /**
41
18
  * Singleton store. One instance per JS runtime, so every consumer (Network tool,
@@ -80,5 +57,4 @@ export interface UseIgnoredPatternsResult {
80
57
  * see the same patterns and the same mutations.
81
58
  */
82
59
  export declare function useIgnoredPatterns(): UseIgnoredPatternsResult;
83
- export {};
84
60
  //# sourceMappingURL=ignoredPatternsStore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ignoredPatternsStore.d.ts","sourceRoot":"","sources":["../../../../src/stores/ignoredPatternsStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH;;;;;;;GAOG;AACH,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,OAAO,CAAC;AAE3D,oDAAoD;AACpD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAOD;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,cAAc,GACtB,OAAO,CAoBT;AAED,mEAAmE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,EAAE,CAAC;IAC3B,yEAAyE;IACzE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,GAAG,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAkBD;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,wBAAwB,CAwB7D"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * ignoredPatternsStore.web — web twin of ignoredPatternsStore.ts (the shared
3
+ * persisted "ignored patterns" singleton for network-style URL filtering).
4
+ *
5
+ * The native store imports shared's RN `persistentStorage` (whose module graph
6
+ * carries guarded expo-file-system / async-storage requires), which is why the
7
+ * web shims never re-exported it. This twin keeps the ENTIRE store class, hook
8
+ * and persistence contract identical — same class shape, same
9
+ * `devToolsStorageKeys.network.ignoredDomains()` storage key, same persisted
10
+ * JSON shape (`IgnoredPattern[]`, with the legacy `string[]` migration) — and
11
+ * swaps only the storage backing: a file-local localStorage adapter that
12
+ * matches the `persistentStorage` API (async getItem/setItem, best-effort,
13
+ * provenance: example-tauri/src/shims/shared-ui.web.ts's adapter — web Buoy
14
+ * chrome persistence lives in webview localStorage).
15
+ *
16
+ * Everything else — pure matching (`ignoredPatternsCore`), the migration +
17
+ * ensure-defaults logic, the dirty-flag load race guard, the module-scope
18
+ * stable mutation identities — is the native code, not a fork of its
19
+ * semantics. Web consumers get the same shared, persisted pattern list the
20
+ * phone has, keyed identically, so a DOM port and a react-native-web port of
21
+ * the same app read/write the same entry.
22
+ *
23
+ * @platform React DOM Web
24
+ */
25
+ import { type IgnoredPattern } from "./ignoredPatternsCore";
26
+ export type { IgnoredPatternMatchMode, IgnoredPattern, } from "./ignoredPatternsCore";
27
+ export { urlMatchesIgnoredPattern, isUrlIgnored, } from "./ignoredPatternsCore";
28
+ type Listener = () => void;
29
+ /**
30
+ * Singleton store. One instance per JS runtime, so every consumer (Network
31
+ * tool, Events tool, any web panel) shares the same patterns.
32
+ */
33
+ declare class IgnoredPatternsStore {
34
+ private patterns;
35
+ private readonly listeners;
36
+ private loaded;
37
+ private loadPromise;
38
+ /** Set once a mutation happens so a slow initial load can't clobber it. */
39
+ private dirty;
40
+ /** Current patterns (stable reference until a mutation occurs). */
41
+ getPatterns(): IgnoredPattern[];
42
+ subscribe(listener: Listener): () => void;
43
+ private emit;
44
+ private ensureLoaded;
45
+ private persist;
46
+ private commit;
47
+ /** Add a pattern (no-op if its value already exists). */
48
+ add(pattern: IgnoredPattern): void;
49
+ /** Remove a pattern by value. */
50
+ remove(value: string): void;
51
+ /** Add as `contains` if absent, otherwise remove (used by detail-view chips). */
52
+ toggle(value: string): void;
53
+ /** Flip an existing pattern between `contains` and `exact`. */
54
+ toggleMode(value: string): void;
55
+ }
56
+ export declare const ignoredPatternsStore: IgnoredPatternsStore;
57
+ export interface UseIgnoredPatternsResult {
58
+ /** The ordered list of ignored patterns. */
59
+ patterns: IgnoredPattern[];
60
+ /** Just the pattern values, as a Set (for presence checks in the UI). */
61
+ values: Set<string>;
62
+ add: (pattern: IgnoredPattern) => void;
63
+ remove: (value: string) => void;
64
+ toggle: (value: string) => void;
65
+ toggleMode: (value: string) => void;
66
+ }
67
+ /**
68
+ * Subscribe to the shared ignored-patterns store. All consumers in a runtime
69
+ * see the same patterns and the same mutations.
70
+ */
71
+ export declare function useIgnoredPatterns(): UseIgnoredPatternsResult;
72
+ //# sourceMappingURL=ignoredPatternsStore.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignoredPatternsStore.web.d.ts","sourceRoot":"","sources":["../../../../src/stores/ignoredPatternsStore.web.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAOH,OAAO,EAEL,KAAK,cAAc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AK,IAAI,CAAC;IAChC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAgBD;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,wBAAwB,CAwB7D"}
@@ -6,6 +6,62 @@
6
6
  * 2. Uncomment the theme you want
7
7
  * 3. Save and refresh
8
8
  */
9
+ export declare const _defaultTheme: {
10
+ border: string;
11
+ blackTint1: string;
12
+ blackTint2: string;
13
+ blackTint3: string;
14
+ success: string;
15
+ warning: string;
16
+ error: string;
17
+ info: string;
18
+ critical: string;
19
+ optional: string;
20
+ env: string;
21
+ storage: string;
22
+ query: string;
23
+ debug: string;
24
+ network: string;
25
+ dataTypes: {
26
+ object: string;
27
+ array: string;
28
+ string: string;
29
+ number: string;
30
+ boolean: string;
31
+ function: string;
32
+ undefined: string;
33
+ null: string;
34
+ };
35
+ text: string;
36
+ secondary: string;
37
+ tertiary: string;
38
+ muted: string;
39
+ neonGlow: {
40
+ primary: string;
41
+ secondary: string;
42
+ tertiary: string;
43
+ };
44
+ diff: {
45
+ addedBackground: string;
46
+ removedBackground: string;
47
+ modifiedBackground: string;
48
+ unchangedBackground: string;
49
+ contextBackground: string;
50
+ addedText: string;
51
+ removedText: string;
52
+ modifiedText: string;
53
+ unchangedText: string;
54
+ addedWordHighlight: string;
55
+ removedWordHighlight: string;
56
+ lineNumberBackground: string;
57
+ lineNumberText: string;
58
+ lineNumberBorder: string;
59
+ markerAddedBackground: string;
60
+ markerRemovedBackground: string;
61
+ markerModifiedBackground: string;
62
+ markerText: string;
63
+ };
64
+ };
9
65
  export declare const gameUIColors: {
10
66
  background: string;
11
67
  panel: string;
@@ -1 +1 @@
1
- {"version":3,"file":"gameUIColors.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/gameUI/constants/gameUIColors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA+HH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,YAAY,CAAC;AAEvD;;;;qEAIqE;AACrE,eAAO,MAAM,mBAAmB,YAG/B,CAAC;AAKF;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAsBb,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,UAAU,CAAC;AAGnD,eAAO,MAAM,UAAU;;;;;;;;CAQtB,CAAC"}
1
+ {"version":3,"file":"gameUIColors.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/gameUI/constants/gameUIColors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAaH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EzB,CAAC;AAuCF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,YAAY,CAAC;AAEvD;;;;qEAIqE;AACrE,eAAO,MAAM,mBAAmB,YAG/B,CAAC;AAKF;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAsBb,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,UAAU,CAAC;AAGnD,eAAO,MAAM,UAAU;;;;;;;;CAQtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/shared-ui",
3
- "version": "7.0.15",
3
+ "version": "7.0.16",
4
4
  "description": "Shared UI components, hooks, and utilities",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -136,10 +136,10 @@
136
136
  ],
137
137
  "sideEffects": false,
138
138
  "dependencies": {
139
- "@buoy-gg/floating-tools-core": "^7.0.15"
139
+ "@buoy-gg/floating-tools-core": "^7.0.16"
140
140
  },
141
141
  "peerDependencies": {
142
- "@buoy-gg/license": "7.0.15",
142
+ "@buoy-gg/license": "7.0.16",
143
143
  "@react-native-clipboard/clipboard": "*",
144
144
  "expo-clipboard": "*",
145
145
  "expo-file-system": "*",
@@ -167,7 +167,7 @@
167
167
  "expo-clipboard": "~7.1.5",
168
168
  "react-native-safe-area-context": "^5.6.2",
169
169
  "typescript": "~5.8.3",
170
- "@buoy-gg/license": "^7.0.15"
170
+ "@buoy-gg/license": "^7.0.16"
171
171
  },
172
172
  "react-native-builder-bob": {
173
173
  "source": "src",