@paroicms/public-admin-ui-lib 0.29.11 → 0.30.1

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.1",
4
4
  "description": "Common utilitaries for paroicms plugins (admin UI side).",
5
5
  "author": "Paroi Team",
6
6
  "repository": {
@@ -18,7 +18,7 @@
18
18
  "dev": "tsc --watch --preserveWatchOutput"
19
19
  },
20
20
  "dependencies": {
21
- "@paroicms/public-anywhere-lib": "0.41.0"
21
+ "@paroicms/public-anywhere-lib": "0.41.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "rimraf": "~6.1.2",
@@ -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>;
@@ -137,6 +137,8 @@ export interface PluginDialog {
137
137
  * The `handler` is called when the user clicks on the `x` button
138
138
  */
139
139
  onCancel?: () => void;
140
+ /** Default size is "md" */
141
+ size?: "sm" | "md" | "lg" | "innerContent";
140
142
  }
141
143
 
142
144
  export type PluginHTMLElement = HTMLElement | false | PluginHTMLElement[];
@@ -148,8 +150,9 @@ export interface PluginDialogHandler<T = undefined> {
148
150
  hide(): void;
149
151
  }
150
152
 
151
- export interface AdminUiToastOptions {
152
- severity?: "success" | "info" | "warn" | "error" | "secondary";
153
+ export interface AdminUiAlertOptions {
154
+ severity?: "info" | "warning" | "error";
155
+ autoDismiss?: boolean;
153
156
  }
154
157
 
155
158
  export interface AdminUiImageVariant {