@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
@@ -34,7 +34,7 @@ import {
34
34
  useCreateCollaborativeIxoEditor,
35
35
  useCreateIxoEditor,
36
36
  validateCapabilityChain
37
- } from "./chunk-HT2SFUTR.mjs";
37
+ } from "./chunk-I6Q5SHHA.mjs";
38
38
  export {
39
39
  ApiRequestBlockSpec,
40
40
  AuthorizationTab,
@@ -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
@@ -41,7 +41,7 @@ import {
41
41
  useListBlocksUIStore,
42
42
  usePanel,
43
43
  usePanelStore
44
- } from "../chunk-HT2SFUTR.mjs";
44
+ } from "../chunk-I6Q5SHHA.mjs";
45
45
  export {
46
46
  ApiRequestBlockSpec,
47
47
  AuthorizationTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "2.27.1",
3
+ "version": "2.28.0",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",