@getpaseo/plugin 0.5.0-beta.3 → 0.5.0-beta.4
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/contracts.d.ts +17 -0
- package/dist/host.d.ts +4 -2
- package/dist/host.js +3 -0
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/contracts.d.ts
CHANGED
|
@@ -92,6 +92,22 @@ export interface PluginSidebarContribution {
|
|
|
92
92
|
icon: string;
|
|
93
93
|
surface: string;
|
|
94
94
|
}
|
|
95
|
+
export interface PluginThemeColors {
|
|
96
|
+
background: string;
|
|
97
|
+
foreground: string;
|
|
98
|
+
raised: string;
|
|
99
|
+
control: string;
|
|
100
|
+
border: string;
|
|
101
|
+
accent?: string;
|
|
102
|
+
mutedForeground: string;
|
|
103
|
+
ring: string;
|
|
104
|
+
}
|
|
105
|
+
export interface PluginThemeContribution {
|
|
106
|
+
id: string;
|
|
107
|
+
name: string;
|
|
108
|
+
appearance: "light" | "dark";
|
|
109
|
+
colors: PluginThemeColors;
|
|
110
|
+
}
|
|
95
111
|
export interface PluginAttachmentSourceContribution {
|
|
96
112
|
id: string;
|
|
97
113
|
title: string;
|
|
@@ -145,6 +161,7 @@ export interface PluginContext {
|
|
|
145
161
|
addWorkspacePanel(contribution: PluginWorkspacePanelContribution): void;
|
|
146
162
|
addCommandCenterItem(contribution: PluginCommandCenterItemContribution): void;
|
|
147
163
|
addAttachmentSource(contribution: PluginAttachmentSourceContribution): void;
|
|
164
|
+
addTheme(contribution: PluginThemeContribution): void;
|
|
148
165
|
}
|
|
149
166
|
export type PluginCleanup = () => void | Promise<void>;
|
|
150
167
|
export type PluginContribution = (plugin: PluginContext) => PluginCleanup;
|
package/dist/host.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { PluginClientStateProvider, type PluginClientStateSource } from "./client-state.js";
|
|
2
|
-
import type { PluginAttachmentSourceContribution, PluginCommandCenterItemContribution, PluginContext, PluginSidebarContribution, PluginSurfaceContribution, PluginSurfaceProps, PluginWorkspacePanelContribution } from "./contracts.js";
|
|
2
|
+
import type { PluginAttachmentSourceContribution, PluginCommandCenterItemContribution, PluginContext, PluginSidebarContribution, PluginSurfaceContribution, PluginSurfaceProps, PluginThemeContribution, PluginWorkspacePanelContribution } from "./contracts.js";
|
|
3
3
|
import { PluginRpcProvider } from "./rpc-context.js";
|
|
4
4
|
import { PaseoApiProvider } from "./paseo-context.js";
|
|
5
5
|
import { callPluginRpc } from "./rpc.js";
|
|
@@ -10,6 +10,7 @@ interface PluginCollector {
|
|
|
10
10
|
addWorkspacePanel(contribution: PluginWorkspacePanelContribution): void;
|
|
11
11
|
addCommandCenterItem(contribution: PluginCommandCenterItemContribution): void;
|
|
12
12
|
addAttachmentSource(contribution: PluginAttachmentSourceContribution): void;
|
|
13
|
+
addTheme(contribution: PluginThemeContribution): void;
|
|
13
14
|
}
|
|
14
15
|
export interface PluginRegistrationCollector {
|
|
15
16
|
surfaces: PluginSurfaceContribution[];
|
|
@@ -17,8 +18,9 @@ export interface PluginRegistrationCollector {
|
|
|
17
18
|
workspacePanels: PluginWorkspacePanelContribution[];
|
|
18
19
|
commandCenterItems: PluginCommandCenterItemContribution[];
|
|
19
20
|
attachmentSources: PluginAttachmentSourceContribution[];
|
|
21
|
+
themes: PluginThemeContribution[];
|
|
20
22
|
}
|
|
21
|
-
export declare function createPluginContext(collector: PluginCollector): Pick<PluginContext, "addSurface" | "addSidebarItem" | "addWorkspacePanel" | "addCommandCenterItem" | "addAttachmentSource">;
|
|
23
|
+
export declare function createPluginContext(collector: PluginCollector): Pick<PluginContext, "addSurface" | "addSidebarItem" | "addWorkspacePanel" | "addCommandCenterItem" | "addAttachmentSource" | "addTheme">;
|
|
22
24
|
export declare function searchPluginAttachments(source: PluginAttachmentSourceContribution, invoke: (method: string, input: unknown) => Promise<unknown>, query: string): Promise<{
|
|
23
25
|
items: {
|
|
24
26
|
id: string;
|
package/dist/host.js
CHANGED
|
@@ -20,6 +20,9 @@ export function createPluginContext(collector) {
|
|
|
20
20
|
addAttachmentSource(contribution) {
|
|
21
21
|
collector.addAttachmentSource(contribution);
|
|
22
22
|
},
|
|
23
|
+
addTheme(contribution) {
|
|
24
|
+
collector.addTheme(contribution);
|
|
25
|
+
},
|
|
23
26
|
};
|
|
24
27
|
}
|
|
25
28
|
export async function searchPluginAttachments(source, invoke, query) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { PluginAttachmentItemSchema, PluginAttachmentSearchPayloadSchema, defineAttachmentSource, defineRpc, type PluginAttachmentItem, type PluginAttachmentSearchPayload, type PluginRpcContract, } from "./server.js";
|
|
2
|
-
export type { PluginAttachmentSourceContribution, PluginAgentCommandContext, PluginAgentPanelProps, PluginAgentSnapshot, PluginCleanup, PluginCommandCapabilities, PluginCommandCenterItemContribution, PluginContribution, PluginContext, PluginGlobalCommandContext, PluginHandlerContext, PluginHostProps, PluginTheme, PluginSidebarContribution, PluginSurfaceContribution, PluginSurfaceProps, PluginWorkspaceCommandContext, PluginWorkspacePanelContribution, PluginWorkspacePanelProps, PluginWorkspaceSnapshot, } from "./contracts.js";
|
|
2
|
+
export type { PluginAttachmentSourceContribution, PluginAgentCommandContext, PluginAgentPanelProps, PluginAgentSnapshot, PluginCleanup, PluginCommandCapabilities, PluginCommandCenterItemContribution, PluginContribution, PluginContext, PluginGlobalCommandContext, PluginHandlerContext, PluginHostProps, PluginTheme, PluginSidebarContribution, PluginSurfaceContribution, PluginSurfaceProps, PluginThemeColors, PluginThemeContribution, PluginWorkspaceCommandContext, PluginWorkspacePanelContribution, PluginWorkspacePanelProps, PluginWorkspaceSnapshot, } from "./contracts.js";
|
|
3
3
|
export { usePaseo } from "./paseo-context.js";
|
|
4
4
|
export { useAgent, useWorkspace } from "./client-state.js";
|
|
5
5
|
export { useRpc } from "./rpc-context.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/plugin",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.4",
|
|
4
4
|
"description": "Paseo plugin SDK package",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"use-sync-external-store": "^1.6.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@getpaseo/client": "0.5.0-beta.
|
|
42
|
+
"@getpaseo/client": "0.5.0-beta.4",
|
|
43
43
|
"@types/node": "^20.9.0",
|
|
44
44
|
"@types/react": "~19.2.0",
|
|
45
45
|
"react": "19.1.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"zod": "^4.4.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@getpaseo/client": "0.5.0-beta.
|
|
51
|
+
"@getpaseo/client": "0.5.0-beta.4",
|
|
52
52
|
"react": "19.1.0",
|
|
53
53
|
"zod": "^4.4.3"
|
|
54
54
|
}
|