@book.dev/ui 1.64.0 → 1.65.0
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/dist/{EmojiGrid-THzuvC4K.js → EmojiGrid-BjFEmkhL.js} +1 -1
- package/dist/blockeditor/kit/groupSync.d.ts +10 -1
- package/dist/{format-D9FO3jG9.js → format-BXeG5xQH.js} +121 -121
- package/dist/index.js +3951 -3942
- package/dist/{lucideIcons-Dv5yzk2L.js → lucideIcons-DvomlmkS.js} +523 -510
- package/dist/providers/PreferencesProvider.d.ts +8 -1
- package/dist/providers/WorkspaceProvider.d.ts +4 -2
- package/dist/{toHtml-DeWpCU0o.js → toHtml-B6gQeUnu.js} +2 -2
- package/package.json +2 -2
|
@@ -26,9 +26,16 @@ export interface Preferences {
|
|
|
26
26
|
}
|
|
27
27
|
export declare const DEFAULT_PREFERENCES: Preferences;
|
|
28
28
|
/** A nested partial — every key optional, recursively — for `update(patch)`. */
|
|
29
|
-
type DeepPartial<T> = {
|
|
29
|
+
export type DeepPartial<T> = {
|
|
30
30
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
31
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Shallow-merge a `patch` per section (one level of nesting) over `base`. The single
|
|
34
|
+
* normalization `update` applies — exported so the account-sync layer can predict the
|
|
35
|
+
* exact post-merge {profile,general,features} shape it will produce, and record that
|
|
36
|
+
* (not the raw server blob) as its no-op baseline (ER-9).
|
|
37
|
+
*/
|
|
38
|
+
export declare function mergePreferences(base: Preferences, patch: DeepPartial<Preferences>): Preferences;
|
|
32
39
|
interface PreferencesContextValue {
|
|
33
40
|
preferences: Preferences;
|
|
34
41
|
/** Shallow-merge a patch per section (one level of nesting), then persist. */
|
|
@@ -30,8 +30,10 @@ export interface WorkspaceContext {
|
|
|
30
30
|
/** Edit a workspace's name/icon/url in place. */
|
|
31
31
|
updateWorkspace: (id: string, patch: Partial<Omit<Workspace, 'id'>>) => void;
|
|
32
32
|
/** Replace the whole list (account sync adopting a synced list). Always keeps a
|
|
33
|
-
* local workspace + the active server present, and never switches servers.
|
|
34
|
-
|
|
33
|
+
* local workspace + the active server present, and never switches servers. Returns
|
|
34
|
+
* the normalized list it stored (it may filter/prepend/synthesize entries), so the
|
|
35
|
+
* caller can record the exact result as a sync baseline (ER-9). */
|
|
36
|
+
replaceWorkspaces: (list: Workspace[]) => Workspace[];
|
|
35
37
|
}
|
|
36
38
|
/** A short, human label for a server URL (its host), falling back to the raw value. */
|
|
37
39
|
export declare const workspaceHostLabel: (serverUrl: string | null) => string;
|