@omniviewdev/runtime 0.14.0 → 0.16.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/pkg/plugin/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/models.d.ts +18 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +1 -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/bindings/github.com/omniviewdev/omniview/internal/profiling/index.d.ts +0 -1
- package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/servicewrapper.d.ts +2 -2
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/profiling/index.d.ts +1 -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 +1 -1
- package/dist/models-BTzXdmUY.js +0 -1240
- package/dist/models-BhsFYb70.cjs +0 -1
- package/dist/models-NYvUa5Yc.cjs +0 -1
- package/dist/servicewrapper-B-DdHGSp.cjs +0 -1
- package/dist/servicewrapper-Bl98xvmZ.js +0 -639
- /package/dist/bindings/github.com/omniviewdev/{omniview/internal → plugin-sdk/pkg}/profiling/models.d.ts +0 -0
|
@@ -125,7 +125,11 @@ export declare enum Kind {
|
|
|
125
125
|
/**
|
|
126
126
|
* KindPanel renders only a drawer tab strip and the drawer tab content.
|
|
127
127
|
*/
|
|
128
|
-
KindPanel = "panel"
|
|
128
|
+
KindPanel = "panel",
|
|
129
|
+
/**
|
|
130
|
+
* KindSettings renders the compact settings shell.
|
|
131
|
+
*/
|
|
132
|
+
KindSettings = "settings"
|
|
129
133
|
}
|
|
130
134
|
/**
|
|
131
135
|
* OpenRequest describes a window to open.
|
|
@@ -159,6 +163,20 @@ export declare class OpenRequest {
|
|
|
159
163
|
*/
|
|
160
164
|
static createFrom($$source?: any): OpenRequest;
|
|
161
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* SettingsState is the backend-owned location and visibility of settings.
|
|
168
|
+
*/
|
|
169
|
+
export declare class SettingsState {
|
|
170
|
+
"requestId": number;
|
|
171
|
+
"target": string;
|
|
172
|
+
"visible": boolean;
|
|
173
|
+
/** Creates a new SettingsState instance. */
|
|
174
|
+
constructor($$source?: Partial<SettingsState>);
|
|
175
|
+
/**
|
|
176
|
+
* Creates a new SettingsState instance from a string or object.
|
|
177
|
+
*/
|
|
178
|
+
static createFrom($$source?: any): SettingsState;
|
|
179
|
+
}
|
|
162
180
|
/**
|
|
163
181
|
* WindowClosedEvent is the payload of EventWindowClosed. States holds the
|
|
164
182
|
* closed window's last saved slots (slot -> JSON).
|
|
@@ -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>;
|
package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/servicewrapper.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
|
|
2
|
-
import * as $
|
|
3
|
-
export declare function GetStatus(): $CancellablePromise
|
|
2
|
+
import * as profiling$0 from "../../../plugin-sdk/pkg/profiling/models.js";
|
|
3
|
+
export declare function GetStatus(): $CancellablePromise<profiling$0.Status>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Status } from './models.js';
|
|
@@ -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 {};
|