@jetcrab/pi-desk-sdk 1.1.7-dev → 1.1.8
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/browser.d.ts +64 -1
- package/dist/host-runtime/base.js +14 -9
- package/dist/react-base.d.ts +1 -0
- package/dist/react-base.js +1 -0
- package/dist/react-popover.d.ts +12 -0
- package/dist/react-popover.js +27 -0
- package/package.json +1 -1
package/dist/browser.d.ts
CHANGED
|
@@ -192,6 +192,15 @@ export interface BrowserApplicationTarget {
|
|
|
192
192
|
initialContext: BrowserApplicationContext | null;
|
|
193
193
|
close(): void;
|
|
194
194
|
}
|
|
195
|
+
export interface BrowserWidgetTarget {
|
|
196
|
+
kind: 'widget';
|
|
197
|
+
source: PluginSource;
|
|
198
|
+
}
|
|
199
|
+
export interface BrowserSessionHeaderItemTarget {
|
|
200
|
+
kind: 'session-header-item';
|
|
201
|
+
source: PluginSource;
|
|
202
|
+
presentation: 'inline' | 'overflow';
|
|
203
|
+
}
|
|
195
204
|
export interface BrowserComposerPanelTarget {
|
|
196
205
|
kind: 'composer-panel';
|
|
197
206
|
source: PluginSource;
|
|
@@ -284,7 +293,13 @@ export interface BrowserMessageViewImplementation {
|
|
|
284
293
|
export interface BrowserSessionSidebarTabImplementation {
|
|
285
294
|
mount: BrowserMount<BrowserSessionSidebarTabTarget>;
|
|
286
295
|
}
|
|
287
|
-
export
|
|
296
|
+
export interface BrowserWidgetImplementation {
|
|
297
|
+
mount: BrowserMount<BrowserWidgetTarget>;
|
|
298
|
+
}
|
|
299
|
+
export interface BrowserSessionHeaderItemImplementation {
|
|
300
|
+
mount: BrowserMount<BrowserSessionHeaderItemTarget>;
|
|
301
|
+
}
|
|
302
|
+
export type BrowserContributionImplementation = BrowserWidgetImplementation | BrowserSessionHeaderItemImplementation | BrowserApplicationImplementation | BrowserComposerPanelImplementation | BrowserSettingsPageImplementation | BrowserMessageViewImplementation | BrowserSessionSidebarTabImplementation;
|
|
288
303
|
export interface BrowserApplicationResolveContext {
|
|
289
304
|
readonly workSessions: readonly PluginWorkSession[];
|
|
290
305
|
readonly host: BrowserPluginHost;
|
|
@@ -318,6 +333,38 @@ export interface BrowserSessionSidebarTabContributionDefinition {
|
|
|
318
333
|
icon?: import('./shared.js').BrowserContributionIcon;
|
|
319
334
|
load(): Promise<BrowserSessionSidebarTabImplementation>;
|
|
320
335
|
}
|
|
336
|
+
export interface BrowserWidgetDefinition {
|
|
337
|
+
placement?: 'aboveEditor' | 'belowEditor';
|
|
338
|
+
load(): Promise<BrowserWidgetImplementation>;
|
|
339
|
+
}
|
|
340
|
+
export interface BrowserSessionHeaderActionContext {
|
|
341
|
+
source: PluginSource;
|
|
342
|
+
host: BrowserPluginHost;
|
|
343
|
+
signal: AbortSignal;
|
|
344
|
+
}
|
|
345
|
+
export interface BrowserSessionHeaderAction {
|
|
346
|
+
type: 'action';
|
|
347
|
+
icon: import('./shared.js').BrowserContributionIcon;
|
|
348
|
+
label: string;
|
|
349
|
+
onSelect(context: BrowserSessionHeaderActionContext): void | Promise<void>;
|
|
350
|
+
load?: never;
|
|
351
|
+
minWidthRem?: never;
|
|
352
|
+
}
|
|
353
|
+
export interface BrowserSessionHeaderCustom {
|
|
354
|
+
type: 'custom';
|
|
355
|
+
load(): Promise<BrowserSessionHeaderItemImplementation>;
|
|
356
|
+
icon?: never;
|
|
357
|
+
label?: never;
|
|
358
|
+
onSelect?: never;
|
|
359
|
+
}
|
|
360
|
+
export interface BrowserSessionHeaderItemDefinition {
|
|
361
|
+
inline: BrowserSessionHeaderAction | (BrowserSessionHeaderCustom & {
|
|
362
|
+
minWidthRem: number;
|
|
363
|
+
});
|
|
364
|
+
overflow: BrowserSessionHeaderAction | (BrowserSessionHeaderCustom & {
|
|
365
|
+
minWidthRem?: never;
|
|
366
|
+
});
|
|
367
|
+
}
|
|
321
368
|
export interface BrowserContributionDefinitionMap {
|
|
322
369
|
application: BrowserApplicationContributionDefinition;
|
|
323
370
|
'composer-panel': BrowserComposerPanelContributionDefinition;
|
|
@@ -333,6 +380,20 @@ export interface BrowserContributionImplementationMap {
|
|
|
333
380
|
'session-sidebar-tab': BrowserSessionSidebarTabImplementation;
|
|
334
381
|
}
|
|
335
382
|
export type BrowserContributionDescriptor = {
|
|
383
|
+
kind: 'widget';
|
|
384
|
+
contributionName: string;
|
|
385
|
+
placement: 'aboveEditor' | 'belowEditor';
|
|
386
|
+
} | {
|
|
387
|
+
kind: 'session-header-item';
|
|
388
|
+
contributionName: string;
|
|
389
|
+
inline: Pick<BrowserSessionHeaderAction, 'type' | 'icon' | 'label'> | {
|
|
390
|
+
type: 'custom';
|
|
391
|
+
minWidthRem: number;
|
|
392
|
+
};
|
|
393
|
+
overflow: Pick<BrowserSessionHeaderAction, 'type' | 'icon' | 'label'> | {
|
|
394
|
+
type: 'custom';
|
|
395
|
+
};
|
|
396
|
+
} | {
|
|
336
397
|
kind: 'application';
|
|
337
398
|
contributionName: string;
|
|
338
399
|
label: string;
|
|
@@ -374,6 +435,8 @@ export interface BrowserPluginFacade {
|
|
|
374
435
|
readonly notifications: BrowserPluginNotifications;
|
|
375
436
|
notify(input: BrowserNotificationInput): void;
|
|
376
437
|
registerContribution<K extends BrowserContributionKind>(kind: K, contributionName: string, definition: BrowserContributionDefinitionMap[K]): void;
|
|
438
|
+
registerWidget(contributionName: string, definition: BrowserWidgetDefinition): void;
|
|
439
|
+
registerSessionHeaderItem(contributionName: string, definition: BrowserSessionHeaderItemDefinition): void;
|
|
377
440
|
onPush(listener: (message: PluginPushMessage) => void): PluginDisposer;
|
|
378
441
|
}
|
|
379
442
|
/**
|