@paroicms/bo-plugin-lib
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "@paroicms/bo-plugin-lib", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Common utilitaries for paroicms plugins (back-office side).", | ||
@@ -5,0 +5,0 @@ "author": "Paroi Team", |
@@ -20,2 +20,18 @@ import type { FieldType } from "@paroicms/anywhere-lib"; | ||
onChange: (value: T | undefined) => void; | ||
createModalDialog(dialog: PluginDialog): PluginDialogHandler; | ||
} | ||
export interface PluginDialog { | ||
content?: HTMLElement; | ||
footer?: HTMLElement; | ||
header?: string; | ||
/** | ||
* The `handler` is called when the user clicks on the `x` button | ||
*/ | ||
onCancel?: () => void; | ||
} | ||
export interface PluginDialogHandler { | ||
show(): void; | ||
hide(): void; | ||
} |
1964
33