@buoy-gg/shared-ui 7.0.48 → 7.0.50
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/index.js +1 -1
- package/lib/commonjs/stores/index.js +1 -1
- package/lib/commonjs/stores/teamSettingsStore.js +1 -0
- package/lib/commonjs/sync/settingsSync.js +1 -1
- package/lib/commonjs/ui/components/DynamicFilterView.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/stores/index.js +1 -1
- package/lib/module/stores/teamSettingsStore.js +1 -0
- package/lib/module/sync/settingsSync.js +1 -1
- package/lib/module/ui/components/DynamicFilterView.js +1 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/stores/index.d.ts +1 -0
- package/lib/typescript/commonjs/stores/teamSettingsStore.d.ts +12 -0
- package/lib/typescript/commonjs/sync/settingsSync.d.ts +20 -3
- package/lib/typescript/commonjs/ui/components/DynamicFilterView.d.ts +2 -0
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/stores/index.d.ts +1 -0
- package/lib/typescript/module/stores/teamSettingsStore.d.ts +12 -0
- package/lib/typescript/module/sync/settingsSync.d.ts +20 -3
- package/lib/typescript/module/ui/components/DynamicFilterView.d.ts +2 -0
- package/lib/web/chunks/chunk-3S2CBY6A.mjs +14 -0
- package/lib/web/dataViewer.mjs +1 -1
- package/lib/web/index.mjs +2 -2
- package/lib/web/ui.mjs +1 -1
- package/package.json +5 -5
- package/lib/web/chunks/chunk-U2BTZZID.mjs +0 -14
|
@@ -45,6 +45,15 @@ export interface SettingsSyncDeps {
|
|
|
45
45
|
/** Settings this device just took from buoy.gg, so live stores can re-read them. */
|
|
46
46
|
onApplied: (keys: string[]) => void;
|
|
47
47
|
}
|
|
48
|
+
type AppliedListener = (keys: string[]) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Hears which settings a pull just saved from buoy.gg, so state that loaded
|
|
51
|
+
* once at start (the dial and floating row) can read them again. Most tools
|
|
52
|
+
* read their settings when they open, so they need nothing.
|
|
53
|
+
*/
|
|
54
|
+
export declare function onSettingsApplied(listener: AppliedListener): () => void;
|
|
55
|
+
/** What the app does with settings a pull just saved. */
|
|
56
|
+
export declare function applyPulledSettings(keys: string[]): void;
|
|
48
57
|
export declare class SettingsSync {
|
|
49
58
|
private readonly deps;
|
|
50
59
|
private started;
|
|
@@ -57,7 +66,8 @@ export declare class SettingsSync {
|
|
|
57
66
|
private unsubscribe;
|
|
58
67
|
/** The token buoy.gg last turned down; sync waits for a different one. */
|
|
59
68
|
private refusedToken;
|
|
60
|
-
|
|
69
|
+
/** Anything not given uses this app's own (storage, sign-in, fetch, timers). */
|
|
70
|
+
constructor(deps?: Partial<SettingsSyncDeps>);
|
|
61
71
|
/** Starts syncing. Safe to call more than once. */
|
|
62
72
|
start(): void;
|
|
63
73
|
stop(): void;
|
|
@@ -73,6 +83,13 @@ export declare class SettingsSync {
|
|
|
73
83
|
/** Sends waiting changes. Keeps them for later when buoy.gg can't be reached. Never throws. */
|
|
74
84
|
push(): Promise<void>;
|
|
75
85
|
}
|
|
76
|
-
/**
|
|
77
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Starts settings sync for this app. Called by FloatingDevTools; safe to call
|
|
88
|
+
* often. Buoy Desktop passes its own `credential` and `fetch`, because its
|
|
89
|
+
* main process holds the sign-in. Only the first call's options count.
|
|
90
|
+
*/
|
|
91
|
+
export declare function startSettingsSync(deps?: Partial<SettingsSyncDeps>): void;
|
|
92
|
+
/** Pulls right away, e.g. just after a sign-in, instead of at the next retry. */
|
|
93
|
+
export declare function syncSettingsNow(): void;
|
|
94
|
+
export {};
|
|
78
95
|
//# sourceMappingURL=settingsSync.d.ts.map
|
|
@@ -49,6 +49,8 @@ export interface DynamicFilterConfig {
|
|
|
49
49
|
patterns: Set<string>;
|
|
50
50
|
onPatternToggle: (pattern: string) => void;
|
|
51
51
|
onPatternAdd: (pattern: string) => void;
|
|
52
|
+
/** Optional label beside each pattern (e.g. a TEAM badge). */
|
|
53
|
+
renderPatternMeta?: (pattern: string) => React.ReactNode;
|
|
52
54
|
};
|
|
53
55
|
availableItemsSection?: {
|
|
54
56
|
enabled: boolean;
|