mirror of
https://github.com/penpot/penpot.git
synced 2026-07-22 00:31:32 +02:00
ec1af4ad96
As commit 819a549e4928d2b1fa98e52bee82d59aec0f70d8
28 lines
472 B
TypeScript
28 lines
472 B
TypeScript
export interface InitPluginEvent {
|
|
type: 'init';
|
|
content: {
|
|
theme: string;
|
|
};
|
|
}
|
|
|
|
export interface InsertIconEvent {
|
|
type: 'insert-icon';
|
|
content: {
|
|
svg: string;
|
|
name: string;
|
|
};
|
|
}
|
|
|
|
export interface InitPluginUIEvent {
|
|
type: 'ready';
|
|
}
|
|
|
|
export type PluginUIEvent = InitPluginUIEvent | InsertIconEvent;
|
|
|
|
export interface ThemePluginEvent {
|
|
type: 'theme';
|
|
content: string;
|
|
}
|
|
|
|
export type PluginMessageEvent = InitPluginEvent | ThemePluginEvent;
|