@buoy-gg/shared-ui 7.0.15 → 7.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) 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/index.js +7 -0
  5. package/lib/commonjs/hooks/safe-area-impl.js +1 -1
  6. package/lib/commonjs/hooks/usePersistedState.js +71 -0
  7. package/lib/commonjs/icons/index.js +28 -0
  8. package/lib/commonjs/index.js +45 -3
  9. package/lib/commonjs/storage/devToolsStorageKeys.js +22 -0
  10. package/lib/commonjs/stores/ignoredPatternsCore.js +68 -0
  11. package/lib/commonjs/stores/ignoredPatternsStore.js +16 -52
  12. package/lib/commonjs/stores/ignoredPatternsStore.web.js +236 -0
  13. package/lib/commonjs/stores/index.js +1 -1
  14. package/lib/commonjs/ui/components/ModalHeader.js +69 -0
  15. package/lib/commonjs/ui/components/ToolButton.js +90 -0
  16. package/lib/commonjs/ui/components/index.js +7 -0
  17. package/lib/commonjs/ui/gameUI/constants/gameUIColors.js +5 -3
  18. package/lib/commonjs/ui/index.js +8 -0
  19. package/lib/commonjs/ui/toolTheme.js +96 -0
  20. package/lib/commonjs/utils/index.js +38 -0
  21. package/lib/commonjs/utils/stateSnapshotRegistry.js +62 -0
  22. package/lib/module/JsModal.web.js +1586 -0
  23. package/lib/module/env/EnvironmentIndicator.web.js +108 -0
  24. package/lib/module/env/EnvironmentSelectorInline.web.js +173 -0
  25. package/lib/module/hooks/index.js +1 -0
  26. package/lib/module/hooks/safe-area-impl.js +1 -1
  27. package/lib/module/hooks/usePersistedState.js +68 -0
  28. package/lib/module/icons/index.js +2 -0
  29. package/lib/module/index.js +7 -3
  30. package/lib/module/storage/devToolsStorageKeys.js +22 -0
  31. package/lib/module/stores/ignoredPatternsCore.js +62 -0
  32. package/lib/module/stores/ignoredPatternsStore.js +5 -51
  33. package/lib/module/stores/ignoredPatternsStore.web.js +221 -0
  34. package/lib/module/stores/index.js +1 -1
  35. package/lib/module/ui/components/ModalHeader.js +70 -2
  36. package/lib/module/ui/components/ToolButton.js +86 -0
  37. package/lib/module/ui/components/index.js +1 -0
  38. package/lib/module/ui/gameUI/constants/gameUIColors.js +4 -2
  39. package/lib/module/ui/index.js +3 -0
  40. package/lib/module/ui/toolTheme.js +93 -0
  41. package/lib/module/utils/index.js +2 -0
  42. package/lib/module/utils/stateSnapshotRegistry.js +55 -0
  43. package/lib/typescript/commonjs/JsModal.web.d.ts +138 -0
  44. package/lib/typescript/commonjs/JsModal.web.d.ts.map +1 -0
  45. package/lib/typescript/commonjs/env/EnvironmentIndicator.web.d.ts +16 -0
  46. package/lib/typescript/commonjs/env/EnvironmentIndicator.web.d.ts.map +1 -0
  47. package/lib/typescript/commonjs/env/EnvironmentSelectorInline.web.d.ts +8 -0
  48. package/lib/typescript/commonjs/env/EnvironmentSelectorInline.web.d.ts.map +1 -0
  49. package/lib/typescript/commonjs/hooks/index.d.ts +1 -0
  50. package/lib/typescript/commonjs/hooks/index.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
  52. package/lib/typescript/commonjs/hooks/usePersistedState.d.ts +16 -0
  53. package/lib/typescript/commonjs/hooks/usePersistedState.d.ts.map +1 -0
  54. package/lib/typescript/commonjs/icons/index.d.ts +2 -0
  55. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
  56. package/lib/typescript/commonjs/index.d.ts +1 -1
  57. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  58. package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts +19 -0
  59. package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts.map +1 -1
  60. package/lib/typescript/commonjs/stores/ignoredPatternsCore.d.ts +37 -0
  61. package/lib/typescript/commonjs/stores/ignoredPatternsCore.d.ts.map +1 -0
  62. package/lib/typescript/commonjs/stores/ignoredPatternsStore.d.ts +3 -27
  63. package/lib/typescript/commonjs/stores/ignoredPatternsStore.d.ts.map +1 -1
  64. package/lib/typescript/commonjs/stores/ignoredPatternsStore.web.d.ts +72 -0
  65. package/lib/typescript/commonjs/stores/ignoredPatternsStore.web.d.ts.map +1 -0
  66. package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts +13 -1
  67. package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts.map +1 -1
  68. package/lib/typescript/commonjs/ui/components/ToolButton.d.ts +24 -0
  69. package/lib/typescript/commonjs/ui/components/ToolButton.d.ts.map +1 -0
  70. package/lib/typescript/commonjs/ui/components/index.d.ts +4 -0
  71. package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -1
  72. package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts +56 -0
  73. package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
  74. package/lib/typescript/commonjs/ui/index.d.ts +1 -0
  75. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
  76. package/lib/typescript/commonjs/ui/toolTheme.d.ts +68 -0
  77. package/lib/typescript/commonjs/ui/toolTheme.d.ts.map +1 -0
  78. package/lib/typescript/commonjs/utils/index.d.ts +2 -0
  79. package/lib/typescript/commonjs/utils/index.d.ts.map +1 -1
  80. package/lib/typescript/commonjs/utils/stateSnapshotRegistry.d.ts +67 -0
  81. package/lib/typescript/commonjs/utils/stateSnapshotRegistry.d.ts.map +1 -0
  82. package/lib/typescript/module/JsModal.web.d.ts +138 -0
  83. package/lib/typescript/module/JsModal.web.d.ts.map +1 -0
  84. package/lib/typescript/module/env/EnvironmentIndicator.web.d.ts +16 -0
  85. package/lib/typescript/module/env/EnvironmentIndicator.web.d.ts.map +1 -0
  86. package/lib/typescript/module/env/EnvironmentSelectorInline.web.d.ts +8 -0
  87. package/lib/typescript/module/env/EnvironmentSelectorInline.web.d.ts.map +1 -0
  88. package/lib/typescript/module/hooks/index.d.ts +1 -0
  89. package/lib/typescript/module/hooks/index.d.ts.map +1 -1
  90. package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
  91. package/lib/typescript/module/hooks/usePersistedState.d.ts +16 -0
  92. package/lib/typescript/module/hooks/usePersistedState.d.ts.map +1 -0
  93. package/lib/typescript/module/icons/index.d.ts +2 -0
  94. package/lib/typescript/module/icons/index.d.ts.map +1 -1
  95. package/lib/typescript/module/index.d.ts +1 -1
  96. package/lib/typescript/module/index.d.ts.map +1 -1
  97. package/lib/typescript/module/storage/devToolsStorageKeys.d.ts +19 -0
  98. package/lib/typescript/module/storage/devToolsStorageKeys.d.ts.map +1 -1
  99. package/lib/typescript/module/stores/ignoredPatternsCore.d.ts +37 -0
  100. package/lib/typescript/module/stores/ignoredPatternsCore.d.ts.map +1 -0
  101. package/lib/typescript/module/stores/ignoredPatternsStore.d.ts +3 -27
  102. package/lib/typescript/module/stores/ignoredPatternsStore.d.ts.map +1 -1
  103. package/lib/typescript/module/stores/ignoredPatternsStore.web.d.ts +72 -0
  104. package/lib/typescript/module/stores/ignoredPatternsStore.web.d.ts.map +1 -0
  105. package/lib/typescript/module/ui/components/ModalHeader.d.ts +13 -1
  106. package/lib/typescript/module/ui/components/ModalHeader.d.ts.map +1 -1
  107. package/lib/typescript/module/ui/components/ToolButton.d.ts +24 -0
  108. package/lib/typescript/module/ui/components/ToolButton.d.ts.map +1 -0
  109. package/lib/typescript/module/ui/components/index.d.ts +4 -0
  110. package/lib/typescript/module/ui/components/index.d.ts.map +1 -1
  111. package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts +56 -0
  112. package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
  113. package/lib/typescript/module/ui/index.d.ts +1 -0
  114. package/lib/typescript/module/ui/index.d.ts.map +1 -1
  115. package/lib/typescript/module/ui/toolTheme.d.ts +68 -0
  116. package/lib/typescript/module/ui/toolTheme.d.ts.map +1 -0
  117. package/lib/typescript/module/utils/index.d.ts +2 -0
  118. package/lib/typescript/module/utils/index.d.ts.map +1 -1
  119. package/lib/typescript/module/utils/stateSnapshotRegistry.d.ts +67 -0
  120. package/lib/typescript/module/utils/stateSnapshotRegistry.d.ts.map +1 -0
  121. package/package.json +4 -4
@@ -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;AACnE,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,aAAa,CAAC,cAAc,CAAC,GACtC,OAAO,CAGT;AAmCD,KAAK,QAAQ,GAAG,MAAM,IAAI,CAAC;AAE3B;;;GAGG;AACH,cAAM,oBAAoB;IACxB,OAAO,CAAC,QAAQ,CAEd;IACF,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuB;IACjD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAA8B;IACjD,2EAA2E;IAC3E,OAAO,CAAC,KAAK,CAAS;IAEtB,mEAAmE;IACnE,WAAW,IAAI,cAAc,EAAE;IAI/B,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,IAAI;IASzC,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,YAAY;IAyBpB,OAAO,CAAC,OAAO;IAWf,OAAO,CAAC,MAAM;IAOd,yDAAyD;IACzD,GAAG,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAOlC,iCAAiC;IACjC,MAAM,CAAC,KAAK,EAAE,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,WAAW,IAAI,cAAc,EAAE;IAI/B,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,IAAI;IASzC,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,YAAY;IAyBpB,OAAO,CAAC,OAAO;IAWf,OAAO,CAAC,MAAM;IAOd,yDAAyD;IACzD,GAAG,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAOlC,iCAAiC;IACjC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK3B,iFAAiF;IACjF,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAU3B,+DAA+D;IAC/D,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAUhC;AAED,eAAO,MAAM,oBAAoB,sBAA6B,CAAC;AAE/D,MAAM,WAAW,wBAAwB;IACvC,4CAA4C;IAC5C,QAAQ,EAAE,cAAc,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,EACpB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,uBAAuB,EACvB,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,wBAAwB,EACxB,YAAY,GACb,MAAM,uBAAuB,CAAC;AA4D/B,KAAK,QAAQ,GAAG,MAAM,IAAI,CAAC;AAE3B;;;GAGG;AACH,cAAM,oBAAoB;IACxB,OAAO,CAAC,QAAQ,CAEd;IACF,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuB;IACjD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAA8B;IACjD,2EAA2E;IAC3E,OAAO,CAAC,KAAK,CAAS;IAEtB,mEAAmE;IACnE,WAAW,IAAI,cAAc,EAAE;IAI/B,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,IAAI;IASzC,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,YAAY;IAyBpB,OAAO,CAAC,OAAO;IAWf,OAAO,CAAC,MAAM;IAOd,yDAAyD;IACzD,GAAG,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAOlC,iCAAiC;IACjC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK3B,iFAAiF;IACjF,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAU3B,+DAA+D;IAC/D,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAUhC;AAED,eAAO,MAAM,oBAAoB,sBAA6B,CAAC;AAE/D,MAAM,WAAW,wBAAwB;IACvC,4CAA4C;IAC5C,QAAQ,EAAE,cAAc,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;AAgBD;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,wBAAwB,CAwB7D"}
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from "react";
1
+ import { type ReactNode } from "react";
2
2
  interface ModalHeaderProps {
3
3
  children: ReactNode;
4
4
  }
@@ -7,6 +7,7 @@ export declare namespace ModalHeader {
7
7
  var Navigation: typeof import("./ModalHeader").Navigation;
8
8
  var Content: typeof import("./ModalHeader").Content;
9
9
  var Actions: typeof import("./ModalHeader").Actions;
10
+ var Search: typeof HeaderSearch;
10
11
  }
11
12
  interface NavigationProps {
12
13
  onBack?: () => void;
@@ -30,5 +31,16 @@ export declare function Actions({ children }: ActionsProps): import("react").JSX
30
31
  export declare namespace Actions {
31
32
  var displayName: string;
32
33
  }
34
+ interface SearchProps {
35
+ value: string;
36
+ onChangeText: (text: string) => void;
37
+ /** Called when the user dismisses search (the inline ✕). Clear your query
38
+ * and flip your `isSearchActive` state here. */
39
+ onCancel: () => void;
40
+ placeholder?: string;
41
+ /** Focus the input as soon as it appears (default true). */
42
+ autoFocus?: boolean;
43
+ }
44
+ export declare function HeaderSearch({ value, onChangeText, onCancel, placeholder, autoFocus, }: SearchProps): import("react").JSX.Element;
33
45
  export {};
34
46
  //# sourceMappingURL=ModalHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ModalHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,UAAU,gBAAgB;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAEzD;yBAFe,WAAW;;;;;AAK3B,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,eAAe,sCAiCnF;AAGD,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE,YAAY,+BAoCd;AAID,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,YAAY,+BAMjD;yBANe,OAAO"}
1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D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,WAAyB,EACzB,SAAgB,GACjB,EAAE,WAAW,+BAyBb"}
@@ -0,0 +1,24 @@
1
+ import type { ReactNode } from "react";
2
+ import { type ViewStyle } from "react-native";
3
+ export interface ToolButtonProps {
4
+ label: string;
5
+ onPress: () => void;
6
+ /**
7
+ * - primary: filled teal — the screen's main action
8
+ * - danger: outlined red — destructive actions (clear, delete)
9
+ * - warning: outlined amber — revert/override actions
10
+ * - ghost: borderless — secondary actions
11
+ */
12
+ variant?: "primary" | "danger" | "warning" | "ghost";
13
+ size?: "small" | "medium";
14
+ disabled?: boolean;
15
+ /** Optional leading icon element. */
16
+ icon?: ReactNode;
17
+ style?: ViewStyle;
18
+ }
19
+ /**
20
+ * The shared action button for dev-tool surfaces. Fills the gap where every
21
+ * tool hand-styled its own TouchableOpacity for "Clear", "Apply", "Reset".
22
+ */
23
+ export declare function ToolButton({ label, onPress, variant, size, disabled, icon, style, }: ToolButtonProps): import("react").JSX.Element;
24
+ //# sourceMappingURL=ToolButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ToolButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IACrD,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,OAAO,EACP,OAAmB,EACnB,IAAe,EACf,QAAgB,EAChB,IAAI,EACJ,KAAK,GACN,EAAE,eAAe,+BAgCjB"}
@@ -12,9 +12,13 @@ export { CompactFilterChips, } from "./CompactFilterChips";
12
12
  export type { FilterChipGroup } from "./CompactFilterChips";
13
13
  export { Badge, StatusBadge, CountBadge, TypeBadge, MethodBadge, } from "./Badge";
14
14
  export { TabSelector } from "./TabSelector";
15
+ export type { Tab } from "./TabSelector";
16
+ export { ToolButton } from "./ToolButton";
17
+ export type { ToolButtonProps } from "./ToolButton";
15
18
  export { EventListItem } from "./EventListItem";
16
19
  export { StatsCard } from "./StatsCard";
17
20
  export { CompactRow } from "./CompactRow";
21
+ export type { CompactRowProps } from "./CompactRow";
18
22
  export { DevToolsCard, DEVTOOLS_CARD_CONSTANTS } from "./DevToolsCard";
19
23
  export type { DevToolsCardProps } from "./DevToolsCard";
20
24
  export { HeaderSearchButton } from "./HeaderSearchButton";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAA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AAa,CAAC;AACxC,OAAO,EACL,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG/D,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,UAAU,EACV,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE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 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"}
@@ -1,4 +1,5 @@
1
1
  export * from "./components";
2
+ export { toolTheme, type ToolTheme } from "./toolTheme";
2
3
  export { CyberpunkSectionButton } from "./console/CyberpunkSectionButton";
3
4
  export * from "./gameUI";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAG7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAG7B,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,cAAc,UAAU,CAAC"}
@@ -0,0 +1,68 @@
1
+ import type { TextStyle } from "react-native";
2
+ /**
3
+ * Semantic design tokens for dev-tool surfaces — the single documented entry
4
+ * point for custom-tool authors (and, over time, internal tools).
5
+ *
6
+ * Buoy historically grew three color systems (`buoyColors`, `gameUIColors`,
7
+ * `macOSColors`) with tribal knowledge about which to use where. `toolTheme`
8
+ * encodes that knowledge: surfaces/text come from the brand palette, semantic
9
+ * status colors from the gameUI palette. Consumers should not need to know
10
+ * that split exists.
11
+ */
12
+ export declare const toolTheme: {
13
+ readonly colors: {
14
+ /** Modal/page background. */
15
+ readonly surface: "#121212";
16
+ /** Card / row background, one step above surface. */
17
+ readonly card: "#1A1A1A";
18
+ /** Pressed/hover background. */
19
+ readonly hover: "#242424";
20
+ /** Text-input background. */
21
+ readonly input: "#2A2A2A";
22
+ readonly border: "#333333";
23
+ readonly borderStrong: "#444444";
24
+ readonly text: "#E0E0E0";
25
+ readonly textSecondary: "#A0A0A0";
26
+ readonly textMuted: "#888888";
27
+ /** Buoy teal — primary accent. */
28
+ readonly accent: "#20C997";
29
+ readonly success: string;
30
+ readonly warning: string;
31
+ readonly error: string;
32
+ readonly info: string;
33
+ };
34
+ /**
35
+ * Text presets matching the styles internal tools re-declare per file.
36
+ * Spread into a style: `style={[toolTheme.text.label, { color: ... }]}`.
37
+ */
38
+ readonly text: {
39
+ /** Modal/section titles. */
40
+ readonly title: TextStyle;
41
+ /** Default body copy. */
42
+ readonly body: TextStyle;
43
+ /** Secondary copy under a primary line. */
44
+ readonly subtitle: TextStyle;
45
+ /** ALL-CAPS section labels ("LOCAL OVERRIDES"). */
46
+ readonly label: TextStyle;
47
+ /** Monospace values (keys, ids, payload snippets). */
48
+ readonly mono: TextStyle;
49
+ /** Timestamps and fine print. */
50
+ readonly small: TextStyle;
51
+ };
52
+ /** 4-based spacing scale used across tool surfaces. */
53
+ readonly spacing: {
54
+ readonly xs: 4;
55
+ readonly sm: 8;
56
+ readonly md: 12;
57
+ readonly lg: 16;
58
+ readonly xl: 24;
59
+ };
60
+ readonly radius: {
61
+ readonly sm: 6;
62
+ readonly md: 8;
63
+ readonly lg: 12;
64
+ readonly pill: 9999;
65
+ };
66
+ };
67
+ export type ToolTheme = typeof toolTheme;
68
+ //# sourceMappingURL=toolTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolTheme.d.ts","sourceRoot":"","sources":["../../../../src/ui/toolTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS;;QAElB,6BAA6B;;QAE7B,qDAAqD;;QAErD,gCAAgC;;QAEhC,6BAA6B;;;;;;;QAS7B,kCAAkC;;;;;;;IAQpC;;;OAGG;;QAED,4BAA4B;wBAKvB,SAAS;QACd,yBAAyB;uBAIpB,SAAS;QACd,2CAA2C;2BAItC,SAAS;QACd,mDAAmD;wBAO9C,SAAS;QACd,sDAAsD;uBAKjD,SAAS;QACd,iCAAiC;wBAK5B,SAAS;;IAGhB,uDAAuD;;;;;;;;;;;;;;CAe/C,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC"}
@@ -7,6 +7,8 @@ export { getValueType, isPrimitive, isJsonSerializable, isValidJson, getConstruc
7
7
  export { parseValue, formatValue, getTypeColor, truncateText, flattenObject, formatPath, } from "./valueFormatting";
8
8
  export { loadOptionalModule, getCachedOptionalModule } from "./loadOptionalModule";
9
9
  export { setRenderCaptureProvider, getRenderCaptureProvider, type RenderCaptureProvider, type RenderCaptureSummary, type RenderCaptureTopComponent, } from "./renderCaptureRegistry";
10
+ export { registerStateSnapshotProvider, getStateSnapshotProviders, getStateSnapshotProvider, subscribeToStateSnapshotProviders, type StateSnapshotProvider, type StateSnapshotProviderStatus, type StateSnapshotCapture, type StateSnapshotRestoreResult, } from "./stateSnapshotRegistry";
11
+ export { serialize as superJsonSerialize, deserialize as superJsonDeserialize, type SuperJSONResult, } from "./minimalSuperJSON";
10
12
  export { reloadApp, scheduleReloadApp, resolveReloadStrategy, REMOTE_RELOAD_DELAY_MS, type ReloadStrategy, type ResolvedReloadStrategy, } from "./reloadApp";
11
13
  export { Subscribable, type SubscribableListener } from "./subscribable";
12
14
  export { subscriberCountNotifier, subscribeToSubscriberCountChanges, notifySubscriberCountChange, } from "./subscriberCountNotifier";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,OAAO,EACP,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,KAAK,cAAc,EACnB,KAAK,sBAAsB,GAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,aAAa,EACb,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,OAAO,EACP,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,wBAAwB,EACxB,iCAAiC,EACjC,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,GAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,SAAS,IAAI,kBAAkB,EAC/B,WAAW,IAAI,oBAAoB,EACnC,KAAK,eAAe,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,KAAK,cAAc,EACnB,KAAK,sBAAsB,GAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,aAAa,EACb,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Cross-package bridge for app-state snapshot & restore (Time Machine).
3
+ *
4
+ * Each state tool (`@buoy-gg/storage`, `@buoy-gg/redux`, `@buoy-gg/zustand`,
5
+ * `@buoy-gg/jotai`, `@buoy-gg/react-query`) registers a provider here at
6
+ * module init (or from its app-lifetime sync hook); `@buoy-gg/time-machine`
7
+ * consumes the registry. Neither side imports the other — same
8
+ * optional-capability pattern as renderCaptureRegistry.
9
+ *
10
+ * Apps can also register custom providers for state Buoy doesn't know about.
11
+ */
12
+ export interface StateSnapshotProviderStatus {
13
+ canCapture: boolean;
14
+ canRestore: boolean;
15
+ /** Human-actionable reason when a capability is unavailable. */
16
+ detail?: string;
17
+ }
18
+ export interface StateSnapshotCapture {
19
+ /**
20
+ * Raw JS value tree. May contain Date/Map/Set/etc. (the vault serializes
21
+ * with superjson) but MUST NOT contain functions — providers strip them
22
+ * and record how to re-graft on restore inside their own data envelope.
23
+ */
24
+ data: unknown;
25
+ warnings: string[];
26
+ }
27
+ export interface StateSnapshotRestoreResult {
28
+ /** True when the state verifiably changed (or was verified already-equal). */
29
+ ok: boolean;
30
+ /** Keys / stores / atoms / queries written. */
31
+ applied: number;
32
+ /** Items that could not be restored, with a reason each. */
33
+ skipped: {
34
+ id: string;
35
+ reason: string;
36
+ }[];
37
+ warnings: string[];
38
+ }
39
+ export interface StateSnapshotProvider {
40
+ /** Stable source id, e.g. "storage" | "redux" | "zustand" | "jotai" | "query". */
41
+ id: string;
42
+ /** Display name, e.g. "Storage", "React Query". */
43
+ label: string;
44
+ /** Cheap capability probe — drives UI gating and restore-mode suggestions. */
45
+ status(): StateSnapshotProviderStatus;
46
+ capture(): Promise<StateSnapshotCapture>;
47
+ restore(data: unknown): Promise<StateSnapshotRestoreResult>;
48
+ /**
49
+ * Optional: wipe this source to fresh-install state. Used by the
50
+ * "restore baseline" flow (typically followed by a JS reload so in-memory
51
+ * stores rebuild themselves from the wiped persisted state).
52
+ */
53
+ clear?(): Promise<StateSnapshotRestoreResult>;
54
+ }
55
+ type Listener = () => void;
56
+ /**
57
+ * Register a provider. Last registration wins for a given id.
58
+ * Returns an unregister function (only removes the provider if it is still
59
+ * the registered one for that id).
60
+ */
61
+ export declare function registerStateSnapshotProvider(provider: StateSnapshotProvider): () => void;
62
+ export declare function getStateSnapshotProviders(): StateSnapshotProvider[];
63
+ export declare function getStateSnapshotProvider(id: string): StateSnapshotProvider | null;
64
+ /** Notifies when providers register/unregister (query registers late). */
65
+ export declare function subscribeToStateSnapshotProviders(listener: Listener): () => void;
66
+ export {};
67
+ //# sourceMappingURL=stateSnapshotRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stateSnapshotRegistry.d.ts","sourceRoot":"","sources":["../../../../src/utils/stateSnapshotRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,gEAAgE;IAChE,MAAM,CAAC,EAAE,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  "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.17"
140
140
  },
141
141
  "peerDependencies": {
142
- "@buoy-gg/license": "7.0.15",
142
+ "@buoy-gg/license": "7.0.17",
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.17"
171
171
  },
172
172
  "react-native-builder-bob": {
173
173
  "source": "src",