mirror of
https://github.com/penpot/penpot.git
synced 2026-02-26 06:14:02 +00:00
30 lines
525 B
TypeScript
30 lines
525 B
TypeScript
import { Shape } from '@penpot/plugin-types';
|
|
|
|
export interface InitPluginUIEvent {
|
|
type: 'ready';
|
|
}
|
|
|
|
export type PluginUIEvent = InitPluginUIEvent;
|
|
|
|
export interface InitPluginEvent {
|
|
type: 'init';
|
|
content: {
|
|
theme: string;
|
|
selection: Shape[];
|
|
};
|
|
}
|
|
export interface SelectionPluginEvent {
|
|
type: 'selection';
|
|
content: Shape[];
|
|
}
|
|
|
|
export interface ThemePluginEvent {
|
|
type: 'theme';
|
|
content: string;
|
|
}
|
|
|
|
export type PluginMessageEvent =
|
|
| InitPluginEvent
|
|
| SelectionPluginEvent
|
|
| ThemePluginEvent;
|