@ixo/editor 2.27.1 → 2.28.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/dist/index.mjs
CHANGED
package/dist/mantine/index.d.ts
CHANGED
|
@@ -190,6 +190,8 @@ interface PayloadField {
|
|
|
190
190
|
label: string;
|
|
191
191
|
type: 'string' | 'number' | 'boolean' | 'object';
|
|
192
192
|
description?: string;
|
|
193
|
+
/** For object-type fields: known child fields */
|
|
194
|
+
childFields?: PayloadField[];
|
|
193
195
|
}
|
|
194
196
|
/**
|
|
195
197
|
* Defines an action that a block can perform and its resulting payload
|
|
@@ -199,6 +201,11 @@ interface BlockActionDefinition {
|
|
|
199
201
|
label: string;
|
|
200
202
|
description: string;
|
|
201
203
|
payloadSchema: PayloadField[];
|
|
204
|
+
/** Optional: resolve dynamic payload fields (e.g. survey fields) at config time */
|
|
205
|
+
resolveDynamicFields?: (context: {
|
|
206
|
+
handlers: any;
|
|
207
|
+
blockProps: Record<string, any>;
|
|
208
|
+
}) => Promise<PayloadField[]>;
|
|
202
209
|
}
|
|
203
210
|
/**
|
|
204
211
|
* Configuration field for a hooked action type
|
package/dist/mantine/index.mjs
CHANGED