@lincyaw/kernel 1.0.0-rc.114 → 1.0.0-rc.116

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lincyaw/kernel",
3
- "version": "1.0.0-rc.114",
3
+ "version": "1.0.0-rc.116",
4
4
  "description": "Presmium's shared kernel: the IR and plugin contracts, the service registry, anchors and checks",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -0,0 +1,23 @@
1
+ /** The installed app's bounded window/update bridge; ordinary browser sessions have no bridge. */
2
+ export interface DesktopUpdateState {
3
+ phase: 'idle' | 'checking' | 'current' | 'available' | 'downloading' | 'ready' | 'installing' | 'error'
4
+ version?: string
5
+ progress?: number
6
+ }
7
+
8
+ export interface DesktopState {
9
+ version: string
10
+ platform: 'darwin' | 'win32' | 'linux'
11
+ fullscreen: boolean
12
+ update: DesktopUpdateState
13
+ }
14
+
15
+ export interface DesktopHost {
16
+ getSnapshot(): DesktopState
17
+ subscribe(changed: () => void): () => void
18
+ activateUpdate(): Promise<void>
19
+ }
20
+
21
+ declare global {
22
+ interface Window { presmiumDesktop?: DesktopHost }
23
+ }
package/src/contracts.ts CHANGED
@@ -40,3 +40,4 @@ export * from './contracts/authoring-windows.ts'
40
40
  export * from './contracts/projects.ts'
41
41
  export * from './contracts/document-image.ts'
42
42
  export * from './contracts/media-uploads.ts'
43
+ export * from './contracts/desktop.ts'