@omniviewdev/runtime 0.15.0 → 0.17.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/api.cjs +1 -1
- package/dist/api.js +160 -219
- package/dist/bindings/events/index.d.ts +4 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/models.d.ts +19 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/service.d.ts +16 -0
- package/dist/context/settings/index.d.ts +1 -0
- package/dist/context/settings/settingsWindow.d.ts +4 -0
- package/dist/context/windows/activePageNavigator.d.ts +2 -3
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +400 -381
- package/dist/models-B8VGD21U.cjs +1 -0
- package/dist/models-BJZVpONm.cjs +1 -0
- package/dist/models-BlxGoC2X.js +1463 -0
- package/dist/{models-BJgLAHwq.js → models-ddVn9pLv.js} +79 -284
- package/dist/models.cjs +1 -1
- package/dist/models.js +33 -33
- package/dist/service-DKddH-QF.cjs +1 -0
- package/dist/service-lcq0B7wi.js +739 -0
- package/dist/settingsEditors.d.ts +35 -0
- package/package.json +3 -3
- package/dist/models-BTzXdmUY.js +0 -1240
- package/dist/models-BhsFYb70.cjs +0 -1
- package/dist/models-NYvUa5Yc.cjs +0 -1
- package/dist/servicewrapper-CZ9BUUjp.js +0 -662
- package/dist/servicewrapper-lF8bBrIo.cjs +0 -1
|
@@ -27,6 +27,10 @@ export declare function EndDrag(sessionID: string, clientX: number, clientY: num
|
|
|
27
27
|
* Focus shows, restores and focuses the named window.
|
|
28
28
|
*/
|
|
29
29
|
export declare function Focus(name: string): $CancellablePromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* GetSettingsState returns the current routing request and native visibility.
|
|
32
|
+
*/
|
|
33
|
+
export declare function GetSettingsState(): $CancellablePromise<$models.SettingsState>;
|
|
30
34
|
/**
|
|
31
35
|
* GetState returns the named window's slots (slot -> JSON). A window calls it
|
|
32
36
|
* once its frontend has loaded, which also releases the next queued restore.
|
|
@@ -34,6 +38,10 @@ export declare function Focus(name: string): $CancellablePromise<void>;
|
|
|
34
38
|
export declare function GetState(name: string): $CancellablePromise<{
|
|
35
39
|
[_ in string]?: string;
|
|
36
40
|
}>;
|
|
41
|
+
/**
|
|
42
|
+
* HideSettings keeps the native window and its frontend drafts alive.
|
|
43
|
+
*/
|
|
44
|
+
export declare function HideSettings(): $CancellablePromise<void>;
|
|
37
45
|
/**
|
|
38
46
|
* List returns the live windows in creation order.
|
|
39
47
|
*/
|
|
@@ -64,6 +72,10 @@ export declare function MoveToPointer(name: string, clientX: number, clientY: nu
|
|
|
64
72
|
* InitialState slots are served by GetState before the window loads.
|
|
65
73
|
*/
|
|
66
74
|
export declare function Open(req: $models.OpenRequest): $CancellablePromise<string>;
|
|
75
|
+
/**
|
|
76
|
+
* OpenSettings shows the single settings window. Empty targets preserve its location.
|
|
77
|
+
*/
|
|
78
|
+
export declare function OpenSettings(target: string): $CancellablePromise<string>;
|
|
67
79
|
/**
|
|
68
80
|
* ReportViewport records the named window's webview viewport size in CSS
|
|
69
81
|
* px. Together with the native bounds it locates the window's content on
|
|
@@ -81,3 +93,7 @@ export declare function RespondDrop(sessionID: string, accepted: boolean, target
|
|
|
81
93
|
* SaveState stores one slot of the named window and schedules persistence.
|
|
82
94
|
*/
|
|
83
95
|
export declare function SaveState(name: string, slot: string, stateJSON: string): $CancellablePromise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* SetSettingsLocation records only navigation accepted for the current request.
|
|
98
|
+
*/
|
|
99
|
+
export declare function SetSettingsLocation(target: string, requestID: number): $CancellablePromise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Returns a local settings route, without accepting external or look-alike URLs. */
|
|
2
|
+
export declare function settingsWindowTarget(path: string): string | null;
|
|
3
|
+
/** Opens or focuses the application-owned Settings window without changing workspace pages. */
|
|
4
|
+
export declare function openSettings(target?: string): Promise<string>;
|
|
@@ -5,9 +5,8 @@ type ActivePageNavigator = (path: string) => void;
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function registerActivePageNavigator(navigator: ActivePageNavigator): () => void;
|
|
7
7
|
/**
|
|
8
|
-
* Navigates the active page
|
|
9
|
-
*
|
|
10
|
-
* handlers) uses this instead of touching `window.location`.
|
|
8
|
+
* Navigates the active page, or activates the dedicated Settings window for
|
|
9
|
+
* settings routes. Code outside React uses this instead of touching window.location.
|
|
11
10
|
*/
|
|
12
11
|
export declare function navigateActivePage(path: string): void;
|
|
13
12
|
export {};
|