@getmateo/plugin 0.18.0 → 0.19.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.
|
@@ -130,7 +130,24 @@ interface PluginClientContextAliases {
|
|
|
130
130
|
/** @deprecated Use `addSidebarHeaderItem`. */
|
|
131
131
|
addSidebarItem(contribution: PluginSidebarContribution): PluginCleanup;
|
|
132
132
|
}
|
|
133
|
+
export interface PluginBrowserAccessInput {
|
|
134
|
+
workspaceId: string;
|
|
135
|
+
domains: readonly string[];
|
|
136
|
+
capability: "read" | "upload";
|
|
137
|
+
}
|
|
138
|
+
export interface PluginBrowserAccessResult {
|
|
139
|
+
granted: string[];
|
|
140
|
+
notGranted: string[];
|
|
141
|
+
}
|
|
142
|
+
export interface PluginBrowserAccess {
|
|
143
|
+
status(input: PluginBrowserAccessInput): Promise<PluginBrowserAccessResult>;
|
|
144
|
+
request(input: PluginBrowserAccessInput & {
|
|
145
|
+
reason: string;
|
|
146
|
+
}): Promise<PluginBrowserAccessResult>;
|
|
147
|
+
}
|
|
133
148
|
export interface PluginClientContext extends PluginCommandCapabilities, PluginClientContextAliases {
|
|
149
|
+
/** Present on the local desktop for an installation declaring browser domains. */
|
|
150
|
+
readonly browserAccess?: PluginBrowserAccess;
|
|
134
151
|
/** Play a base64-encoded audio file on this client; resolves when playback ends. */
|
|
135
152
|
playAudio(source: {
|
|
136
153
|
base64: string;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { PluginHostProps, PluginSurfaceProps, PluginScreenProps, PluginPopoverProps, PluginScreenParams, PluginOpenScreenInput, PluginScreenLocation, PluginSidebarItemProps, PluginSidebarItemContribution, PluginFloatingPanelProps, PluginFloatingPanelContribution, PluginIconProps, PluginPanelLocation, PluginPanelOpenLocation, PluginOpenPanelOptions, PluginWorkspacePanelProps, PluginAgentPanelProps, PluginClientOpenPanelOptions, PluginClientContext, PluginClientContribution, PluginWorkspacePanelContribution, PluginSettingsScreenContribution, PluginSurfaceContribution, PluginScreenContribution, PluginScreenTitle, PluginSidebarContribution, PluginTimelineTransformerContribution, PluginTimelineItemProps, PluginTimelineRendererContribution, PluginCommandCapabilities, PluginGlobalCommandContext, PluginWorkspaceCommandContext, PluginAgentCommandContext, PluginCommandCenterItemContribution, PluginClientSlashCommandContribution, SettingsState, } from "./contracts.js";
|
|
1
|
+
export type { PluginHostProps, PluginSurfaceProps, PluginScreenProps, PluginPopoverProps, PluginScreenParams, PluginOpenScreenInput, PluginScreenLocation, PluginSidebarItemProps, PluginSidebarItemContribution, PluginFloatingPanelProps, PluginFloatingPanelContribution, PluginIconProps, PluginPanelLocation, PluginPanelOpenLocation, PluginOpenPanelOptions, PluginWorkspacePanelProps, PluginAgentPanelProps, PluginClientOpenPanelOptions, PluginClientContext, PluginBrowserAccess, PluginBrowserAccessInput, PluginBrowserAccessResult, PluginClientContribution, PluginWorkspacePanelContribution, PluginSettingsScreenContribution, PluginSurfaceContribution, PluginScreenContribution, PluginScreenTitle, PluginSidebarContribution, PluginTimelineTransformerContribution, PluginTimelineItemProps, PluginTimelineRendererContribution, PluginCommandCapabilities, PluginGlobalCommandContext, PluginWorkspaceCommandContext, PluginAgentCommandContext, PluginCommandCenterItemContribution, PluginClientSlashCommandContribution, SettingsState, } from "./contracts.js";
|
|
2
2
|
export type { PluginMenuEntry, PluginMenuItem, PluginMenuPrompt, PluginMenuSeparator, PluginMenuSubmenu, } from "./menu.js";
|
|
3
3
|
export type { PluginSidebarProject, PluginSidebarProjectGroup, PluginSidebarProjectGroupHeaderProps, PluginSidebarProjectGroupingActions, PluginSidebarProjectGroupingActionsInput, PluginSidebarProjectGroupingContribution, PluginSidebarProjectGroupingContentProps, PluginSidebarProjectMove, PluginSidebarProjectHostRef, PluginSidebarProjectMenuContribution, PluginSidebarProjectMenuInput, } from "./sidebar-projects.js";
|
|
4
4
|
export type { PluginSidebarWorkspaceAccessoryContribution, PluginSidebarWorkspaceAccessoryProps, } from "./sidebar-workspaces.js";
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import type { ComponentType, FunctionComponent, ReactNode, ForwardRefExoticComponent, RefAttributes, ReactElement, Ref } from "react";
|
|
2
2
|
import type { StyleProp, ViewStyle, ScrollView as NativeScrollView, ScrollViewProps, FlatList as NativeFlatList, FlatListProps, TextInput as NativeTextInput, TextInputProps } from "react-native";
|
|
3
3
|
import type { PluginIconProps } from "./contracts.js";
|
|
4
|
+
export interface PluginImageViewerItem {
|
|
5
|
+
/** Stable asset identity, including its project when paths are only project-relative. */
|
|
6
|
+
readonly key: string;
|
|
7
|
+
readonly title?: string;
|
|
8
|
+
readonly group?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PluginImageViewerProps {
|
|
11
|
+
items: readonly PluginImageViewerItem[];
|
|
12
|
+
/** Null dismisses the viewer. Missing keys never select a different item. */
|
|
13
|
+
selectedKey: string | null;
|
|
14
|
+
onKeyChange(key: string): void;
|
|
15
|
+
onClose(): void;
|
|
16
|
+
/** Resolve the selected item's HTTPS URL or base64 raster data URI on this client. */
|
|
17
|
+
loadSource(key: string): string | Promise<string>;
|
|
18
|
+
details?: ReactNode;
|
|
19
|
+
actions?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/** Feature-detect before rendering: older hosts do not export this component. */
|
|
22
|
+
export declare const ImageViewer: ComponentType<PluginImageViewerProps> | undefined;
|
|
4
23
|
export interface ModalProps {
|
|
5
24
|
title: string;
|
|
25
|
+
/** Sets the desktop dialog width. Compact sheets keep their normal width. */
|
|
26
|
+
size?: "default" | "wide";
|
|
6
27
|
icon?: ReactNode;
|
|
7
28
|
open: boolean;
|
|
8
29
|
onOpenChange(open: boolean): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmateo/plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Mateo plugin SDK package",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"use-sync-external-store": "^1.6.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@getmateo/client": "0.
|
|
80
|
-
"@getmateo/protocol": "0.
|
|
79
|
+
"@getmateo/client": "0.19.0",
|
|
80
|
+
"@getmateo/protocol": "0.19.0",
|
|
81
81
|
"@types/node": "^20.9.0",
|
|
82
82
|
"@types/react": "~19.3.0",
|
|
83
83
|
"react": "19.3.0",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"zod": "4.6.7"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@getmateo/client": "0.
|
|
91
|
-
"@getmateo/protocol": "0.
|
|
90
|
+
"@getmateo/client": "0.19.0",
|
|
91
|
+
"@getmateo/protocol": "0.19.0",
|
|
92
92
|
"react": "^19.1.0",
|
|
93
93
|
"react-native": ">=0.81.5",
|
|
94
94
|
"zod": "4.6.7"
|