@pstdio/workbench 0.43.1 → 0.44.0-nightly.20261015030224
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/extensions.d.ts +27 -8
- package/dist/extensions.js +482 -413
- package/dist/extensions.js.map +1 -1
- package/dist/{file-renderer-view-BRBYhjKd.js → file-renderer-view-B93kU2ZC.js} +217 -216
- package/dist/file-renderer-view-B93kU2ZC.js.map +1 -0
- package/dist/{index-onoay_1m.d.ts → index-CYWM-xe_.d.ts} +22 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +717 -651
- package/dist/index.js.map +1 -1
- package/dist/{kanban-presentation-DO5U25GX.d.ts → kanban-presentation-BwUNb4SN.d.ts} +1 -1
- package/dist/{react-BsyyXmgz.js → react-DITDrArT.js} +2763 -2638
- package/dist/react-DITDrArT.js.map +1 -0
- package/dist/react.d.ts +3 -2
- package/dist/react.js +2 -2
- package/dist/storage.d.ts +1 -1
- package/dist/webview-runtime.js +1 -1
- package/package.json +3 -3
- package/dist/file-renderer-view-BRBYhjKd.js.map +0 -1
- package/dist/react-BsyyXmgz.js.map +0 -1
package/dist/extensions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bn as FileRendererRefreshEnvelope, Di as NavigationTargetCommand, Dt as PreferenceValue, Ei as NavigationTarget$1, F as WorkbenchModuleContext, Ft as RegisteredWorkbenchNotification, Ht as WorkbenchOwnedPlacementItem, Ir as TreeContext, Jr as MenuPath, Kr as WorkbenchPanelRenderInput, M as WorkbenchCore, Ni as Command, Qt as WorkbenchTerminalController, _r as KanbanRendererCreateSubmission, bn as WorkbenchPageContribution, br as KanbanRendererViewsProvider, ha as Disposable, ii as WorkbenchPanelInstance, lr as CollectionViewsProvider, qi as ResourceRef$1, qr as MenuItem, xn as WorkbenchPlacementPresentation, zi as WorkbenchCommandExecutionContext, zr as TreeNode } from "./index-
|
|
2
|
-
import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-
|
|
1
|
+
import { Bn as FileRendererRefreshEnvelope, Di as NavigationTargetCommand, Dt as PreferenceValue, Ei as NavigationTarget$1, Et as PreferenceScopeRef, F as WorkbenchModuleContext, Ft as RegisteredWorkbenchNotification, Ht as WorkbenchOwnedPlacementItem, Ir as TreeContext, Jr as MenuPath, Kr as WorkbenchPanelRenderInput, M as WorkbenchCore, Ni as Command, Qt as WorkbenchTerminalController, _r as KanbanRendererCreateSubmission, bn as WorkbenchPageContribution, br as KanbanRendererViewsProvider, ha as Disposable, ii as WorkbenchPanelInstance, lr as CollectionViewsProvider, qi as ResourceRef$1, qr as MenuItem, xn as WorkbenchPlacementPresentation, zi as WorkbenchCommandExecutionContext, zr as TreeNode } from "./index-CYWM-xe_.js";
|
|
2
|
+
import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-BwUNb4SN.js";
|
|
3
3
|
import { DataTableRendererSettings, Localizable, NavigationTarget, ResourceRef, WebviewHostCapability } from "@pstdio/sdk/extensions";
|
|
4
4
|
import { CommandExecuteRequest, CommandExecuteResponse, ExtensionCommandPaletteContribution, ExtensionMenuContribution, WorkbenchExtensionCommandPaletteResourceRecord, WorkbenchExtensionMetadata, WorkbenchExtensionMetadata as WorkbenchExtensionMetadata$1 } from "@pstdio/sdk/api";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -32,6 +32,7 @@ interface HostEventPublisher {
|
|
|
32
32
|
interface BridgeWebviewRenderContext {
|
|
33
33
|
workbench: WorkbenchCore;
|
|
34
34
|
webviewId: string;
|
|
35
|
+
extensionId?: string;
|
|
35
36
|
placement: WorkbenchPanelInstance;
|
|
36
37
|
/** Channel for pushing host events (e.g. terminal output) into this webview. */
|
|
37
38
|
hostEvents: HostEventPublisher;
|
|
@@ -82,25 +83,40 @@ interface ExtensionWebviewArtifactCapabilities {
|
|
|
82
83
|
}): Promise<unknown> | unknown;
|
|
83
84
|
}
|
|
84
85
|
//#endregion
|
|
86
|
+
//#region src/extensions/bridge/webview-preferences-capability.d.ts
|
|
87
|
+
interface WebviewOwnedPreferences {
|
|
88
|
+
get(name: string, scope?: PreferenceScopeRef): Promise<PreferenceValue | undefined> | PreferenceValue | undefined;
|
|
89
|
+
set(name: string, value: PreferenceValue, scope: PreferenceScopeRef): Promise<void> | void;
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
85
92
|
//#region src/extensions/bridge/webview-host-capabilities.d.ts
|
|
86
93
|
interface CreateWorkbenchWebviewHostCapabilitiesInput {
|
|
87
94
|
dispatchKeyboardEvent?: (event: KeyboardEventInit) => void;
|
|
88
95
|
workbench: WorkbenchCore;
|
|
89
96
|
placement?: WorkbenchPanelInstance;
|
|
97
|
+
extensionId?: string;
|
|
98
|
+
ownedPreferences?: WebviewOwnedPreferences;
|
|
99
|
+
warn?: (message: string) => void;
|
|
90
100
|
/** Event channel into the guest; terminal.session is only offered when present. */
|
|
91
101
|
hostEvents?: HostEventPublisher;
|
|
92
102
|
}
|
|
93
103
|
export declare const createWorkbenchWebviewHostCapabilities: (input: CreateWorkbenchWebviewHostCapabilitiesInput) => {
|
|
94
104
|
"terminal.session"?: HostCapability | undefined;
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
105
|
+
"host.dispatchKeyboardEvent": (params: unknown) => void;
|
|
106
|
+
"preferences.get": (params: unknown) => PreferenceValue | Promise<PreferenceValue | undefined> | undefined;
|
|
107
|
+
"preferences.set": (params: unknown) => Promise<{
|
|
108
|
+
name: string;
|
|
109
|
+
value: PreferenceValue;
|
|
110
|
+
}> | {
|
|
100
111
|
name: string;
|
|
101
112
|
value: PreferenceValue;
|
|
102
113
|
};
|
|
103
|
-
"
|
|
114
|
+
"commands.execute": (params: unknown) => Promise<unknown>;
|
|
115
|
+
"page.params.update": (params: unknown) => {
|
|
116
|
+
location: import("@pstdio/sdk/extensions").PageLocation;
|
|
117
|
+
};
|
|
118
|
+
"navigation.open": (params: unknown) => Promise<readonly unknown[]>;
|
|
119
|
+
"notification.show": (params: unknown) => RegisteredWorkbenchNotification;
|
|
104
120
|
"placement.close"?: ((params: unknown) => void) | undefined;
|
|
105
121
|
};
|
|
106
122
|
//#endregion
|
|
@@ -137,6 +153,8 @@ type JsonObject = {
|
|
|
137
153
|
};
|
|
138
154
|
//#endregion
|
|
139
155
|
//#region ../pstdio-api-contracts/src/extension-kernel/types/pages.d.ts
|
|
156
|
+
type PageParamValue$1 = string | number | boolean | readonly string[];
|
|
157
|
+
type PageParams = Readonly<Record<string, PageParamValue$1>>;
|
|
140
158
|
/** One-based source coordinates. Owners clamp them to the loaded document. */
|
|
141
159
|
interface FileSourcePosition {
|
|
142
160
|
readonly line: number;
|
|
@@ -179,6 +197,7 @@ interface MetadataPageTarget {
|
|
|
179
197
|
open?: "preview" | "pin";
|
|
180
198
|
section?: z.infer<typeof sectionSchema>;
|
|
181
199
|
position?: FileSourcePosition;
|
|
200
|
+
params?: PageParams;
|
|
182
201
|
parent?: MetadataPageTarget;
|
|
183
202
|
}
|
|
184
203
|
//#endregion
|