@paroicms/public-admin-ui-lib 0.29.11 → 0.30.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/public-admin-ui-lib",
3
- "version": "0.29.11",
3
+ "version": "0.30.0",
4
4
  "description": "Common utilitaries for paroicms plugins (admin UI side).",
5
5
  "author": "Paroi Team",
6
6
  "repository": {
@@ -79,7 +79,7 @@ export interface AdminUiPluginService {
79
79
  resizeRule: ResizeRule;
80
80
  },
81
81
  ): Promise<AdminUiImageVariant | undefined>;
82
- showToast(message: string, options?: AdminUiToastOptions): void;
82
+ showAlert(message: string, options?: AdminUiAlertOptions): void;
83
83
  executeHook<T = unknown>(hookName: string, params?: unknown): T[];
84
84
  searchDocuments(payload: PluginDocumentSearchPayload): Promise<PluginDocumentResult[]>;
85
85
  getDocument(lNodeId: string): Promise<PluginDocumentResult | undefined>;
@@ -148,8 +148,9 @@ export interface PluginDialogHandler<T = undefined> {
148
148
  hide(): void;
149
149
  }
150
150
 
151
- export interface AdminUiToastOptions {
152
- severity?: "success" | "info" | "warn" | "error" | "secondary";
151
+ export interface AdminUiAlertOptions {
152
+ severity?: "info" | "warning" | "error";
153
+ autoDismiss?: boolean;
153
154
  }
154
155
 
155
156
  export interface AdminUiImageVariant {