@stackable-labs/sdk-extension-contracts 1.24.4 → 1.25.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -78,8 +78,20 @@ interface FetchResponse {
78
78
  /** Payload for actions.toast capability */
79
79
  interface ToastPayload {
80
80
  message: string;
81
+ description?: string;
81
82
  type?: 'success' | 'error' | 'info' | 'warning';
82
83
  duration?: number;
84
+ position?: 'top-center' | 'bottom-center';
85
+ dismissible?: boolean;
86
+ closeButton?: boolean;
87
+ /** When present, host calls data.fetch with these params and manages loading → success/error toast */
88
+ fetch?: FetchRequest;
89
+ /** Loading message shown while fetch is in progress (requires fetch) */
90
+ loading?: string;
91
+ /** Success message shown when fetch resolves (requires fetch; falls back to message) */
92
+ success?: string;
93
+ /** Error message shown when fetch rejects (requires fetch) */
94
+ error?: string;
83
95
  }
84
96
  /** Payload for actions.invoke capability */
85
97
  interface ActionInvokePayload {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackable-labs/sdk-extension-contracts",
3
- "version": "1.24.4",
3
+ "version": "1.25.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",