@vokril/ui-solid 0.8.0 → 0.8.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to `@vokril/ui-solid` are listed here. Versions follow
5
5
  contain breaking changes. From 0.1.1 on, entries are written by Changesets
6
6
  (`npm run release:version`) above the previous release.
7
7
 
8
+ ## 0.8.2
9
+
10
+ ### Patch Changes
11
+
12
+ - `@vokril/icons` is accepted from `^0.1.2 || ^0.2.0`. A host on `@vokril/icons` 0.2.0 (413 new database, editor, grid, DBA and brand icons) now shares one copy with the kit, so `@vokril/ui-solid/icons` re-exports the new names instead of a nested 0.1 copy.
13
+
14
+ ## 0.8.1
15
+
16
+ ### Patch Changes
17
+
18
+ - `DesktopBridge.notificationOverlay` returns a `NotificationOverlayPort` — the eight overlay members the kit reads — instead of the host's whole browser workspace bridge. A host's browser contract can now change elsewhere (a field removed from an unrelated type) without breaking its `configureDesktopBridge({ notificationOverlay })` assignment. `NotificationOverlayPort` is declared with the desktop bridge and keeps its exports.
19
+
8
20
  ## 0.8.0
9
21
 
10
22
  ### Minor Changes
@@ -40,6 +40,12 @@ export interface DesktopFsService {
40
40
  }): Promise<ShowSaveDialogResult>;
41
41
  writeFile(filePath: string, content: string): Promise<unknown>;
42
42
  }
43
+ /**
44
+ * The native notification overlay's renderer-facing side — snapshot delivery and the events coming back
45
+ * from it. A host hands over this much of its browser workspace bridge and nothing more: the kit reads no
46
+ * other member, so the rest of the host's browser contract can change without touching the kit's types.
47
+ */
48
+ export type NotificationOverlayPort = Pick<BrowserWorkspaceApi, 'setNotificationOverlay' | 'onNotificationOverlayClose' | 'onNotificationOverlayAction' | 'onNotificationOverlayHover' | 'onNotificationOverlayFocus' | 'onNotificationOverlayPresented' | 'onNotificationOverlayToggleExpanded' | 'onNotificationOverlayCommand'>;
43
49
  /** ui extension: native behaviour a desktop host provides. Every member is optional. */
44
50
  export interface DesktopBridge {
45
51
  openExternal?(url: string): void | Promise<void>;
@@ -47,7 +53,7 @@ export interface DesktopBridge {
47
53
  setBadgeCount?(count: number): void | Promise<void>;
48
54
  readAudioAsDataUrl?(filePath: string): Promise<string | null>;
49
55
  fs?: DesktopFsService;
50
- notificationOverlay?(win: Window): BrowserWorkspaceApi | undefined;
56
+ notificationOverlay?(win: Window): NotificationOverlayPort | undefined;
51
57
  }
52
58
  /** ui extension: plug a desktop host's native implementations in (call once at boot). */
53
59
  export declare function configureDesktopBridge(next: DesktopBridge | null): void;
@@ -56,5 +62,5 @@ export declare function osNotify(opts: OsNotifyOptions): void;
56
62
  export declare function setOsBadgeCount(count: number): void;
57
63
  export declare function readAudioAsDataUrl(filePath: string): Promise<string | null>;
58
64
  export declare function getFsService(): DesktopFsService;
59
- /** Native notification overlay API of `win` (host app: `win.electronAPI.browser.workspace`). */
60
- export declare function notificationOverlayBridge(win: Window | undefined): BrowserWorkspaceApi | undefined;
65
+ /** Native notification overlay port of `win` (host app: from `win.electronAPI.browser.workspace`). */
66
+ export declare function notificationOverlayBridge(win: Window | undefined): NotificationOverlayPort | undefined;
@@ -40,6 +40,12 @@ export interface DesktopFsService {
40
40
  }): Promise<ShowSaveDialogResult>;
41
41
  writeFile(filePath: string, content: string): Promise<unknown>;
42
42
  }
43
+ /**
44
+ * The native notification overlay's renderer-facing side — snapshot delivery and the events coming back
45
+ * from it. A host hands over this much of its browser workspace bridge and nothing more: the kit reads no
46
+ * other member, so the rest of the host's browser contract can change without touching the kit's types.
47
+ */
48
+ export type NotificationOverlayPort = Pick<BrowserWorkspaceApi, 'setNotificationOverlay' | 'onNotificationOverlayClose' | 'onNotificationOverlayAction' | 'onNotificationOverlayHover' | 'onNotificationOverlayFocus' | 'onNotificationOverlayPresented' | 'onNotificationOverlayToggleExpanded' | 'onNotificationOverlayCommand'>;
43
49
  /** ui extension: native behaviour a desktop host provides. Every member is optional. */
44
50
  export interface DesktopBridge {
45
51
  openExternal?(url: string): void | Promise<void>;
@@ -47,7 +53,7 @@ export interface DesktopBridge {
47
53
  setBadgeCount?(count: number): void | Promise<void>;
48
54
  readAudioAsDataUrl?(filePath: string): Promise<string | null>;
49
55
  fs?: DesktopFsService;
50
- notificationOverlay?(win: Window): BrowserWorkspaceApi | undefined;
56
+ notificationOverlay?(win: Window): NotificationOverlayPort | undefined;
51
57
  }
52
58
  /** ui extension: plug a desktop host's native implementations in (call once at boot). */
53
59
  export declare function configureDesktopBridge(next: DesktopBridge | null): void;
@@ -56,5 +62,5 @@ export declare function osNotify(opts: OsNotifyOptions): void;
56
62
  export declare function setOsBadgeCount(count: number): void;
57
63
  export declare function readAudioAsDataUrl(filePath: string): Promise<string | null>;
58
64
  export declare function getFsService(): DesktopFsService;
59
- /** Native notification overlay API of `win` (host app: `win.electronAPI.browser.workspace`). */
60
- export declare function notificationOverlayBridge(win: Window | undefined): BrowserWorkspaceApi | undefined;
65
+ /** Native notification overlay port of `win` (host app: from `win.electronAPI.browser.workspace`). */
66
+ export declare function notificationOverlayBridge(win: Window | undefined): NotificationOverlayPort | undefined;
@@ -15,9 +15,9 @@
15
15
  * ui adapter: the host app reads `window.electronAPI.browser.workspace` directly; ui asks the desktop
16
16
  * bridge (`configureDesktopBridge({ notificationOverlay })`), so a plain browser gets no overlay.
17
17
  */
18
- import type { BrowserWorkspaceApi } from '../_internal/contract/browser/workspace.cjs';
19
- /** The overlay's renderer-facing side — snapshot delivery and the events coming back from it. */
20
- export type NotificationOverlayPort = Pick<BrowserWorkspaceApi, 'setNotificationOverlay' | 'onNotificationOverlayClose' | 'onNotificationOverlayAction' | 'onNotificationOverlayHover' | 'onNotificationOverlayFocus' | 'onNotificationOverlayPresented' | 'onNotificationOverlayToggleExpanded' | 'onNotificationOverlayCommand'>;
18
+ import { type NotificationOverlayPort } from '../_internal/app/platform/electronBridge.cjs';
19
+ /** The overlay's renderer-facing side — declared with the desktop bridge that hands it over. */
20
+ export type { NotificationOverlayPort };
21
21
  /** A window's overlay channel: the native overlay, or (in an auxiliary window) none. */
22
22
  export type NotificationOverlayChannel = {
23
23
  readonly kind: 'native';
@@ -15,9 +15,9 @@
15
15
  * ui adapter: the host app reads `window.electronAPI.browser.workspace` directly; ui asks the desktop
16
16
  * bridge (`configureDesktopBridge({ notificationOverlay })`), so a plain browser gets no overlay.
17
17
  */
18
- import type { BrowserWorkspaceApi } from '../_internal/contract/browser/workspace.js';
19
- /** The overlay's renderer-facing side — snapshot delivery and the events coming back from it. */
20
- export type NotificationOverlayPort = Pick<BrowserWorkspaceApi, 'setNotificationOverlay' | 'onNotificationOverlayClose' | 'onNotificationOverlayAction' | 'onNotificationOverlayHover' | 'onNotificationOverlayFocus' | 'onNotificationOverlayPresented' | 'onNotificationOverlayToggleExpanded' | 'onNotificationOverlayCommand'>;
18
+ import { type NotificationOverlayPort } from '../_internal/app/platform/electronBridge.js';
19
+ /** The overlay's renderer-facing side — declared with the desktop bridge that hands it over. */
20
+ export type { NotificationOverlayPort };
21
21
  /** A window's overlay channel: the native overlay, or (in an auxiliary window) none. */
22
22
  export type NotificationOverlayChannel = {
23
23
  readonly kind: 'native';
@@ -1,4 +1,4 @@
1
- import { notificationOverlayBridge } from '../_internal/app/platform/electronBridge';
1
+ import { notificationOverlayBridge, } from '../_internal/app/platform/electronBridge';
2
2
  export const NO_NOTIFICATION_OVERLAY = {
3
3
  kind: 'none',
4
4
  };