@ixo/editor 5.20.0-experimental.2 → 5.20.0-experimental.4

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.
@@ -397,23 +397,13 @@ registerAction({
397
397
  { path: "skipped", displayName: "Skipped", type: "boolean", description: "False when a parent entity was selected" }
398
398
  ],
399
399
  pendingDisplayFields: ["selectedEntityName", "selectedEntityDid"]
400
- },
401
- {
402
- name: "skipped",
403
- displayName: "Selection Skipped",
404
- description: "Fires when parent entity selection is skipped.",
405
- payloadSchema: [
406
- { path: "selectedEntityDid", displayName: "Selected Entity DID", type: "string", description: "Null when skipped" },
407
- { path: "skipped", displayName: "Skipped", type: "boolean", description: "True when skipped" }
408
- ],
409
- pendingDisplayFields: ["skipped"]
410
400
  }
411
401
  ],
412
402
  run: async (inputs) => {
413
403
  const skipped = !!inputs.skipped;
414
404
  if (skipped) {
415
405
  const output2 = { selectedEntityDid: null, selectedEntityName: "", selectedEntityType: "", skipped: true };
416
- return { output: output2, events: [{ name: "skipped", payload: output2 }] };
406
+ return { output: output2, events: [] };
417
407
  }
418
408
  const selectedEntityDid = String(inputs.selectedEntityDid || "").trim();
419
409
  if (!selectedEntityDid) throw new Error("selectedEntityDid is required when not skipping");
@@ -606,15 +596,27 @@ registerAction({
606
596
  ],
607
597
  events: [
608
598
  {
609
- name: "configured",
610
- displayName: "Flow Templates Configured",
611
- description: "Fires when protocol flow templates are selected for the POD.",
599
+ name: "selected",
600
+ displayName: "Flow Templates Selected",
601
+ description: "Fires when the flow template selection is confirmed, including an empty selection.",
612
602
  payloadSchema: [
613
603
  {
614
604
  path: "flowTemplateConfig",
615
605
  displayName: "Flow Template Config",
616
606
  type: "object",
617
607
  description: "Selected templates grouped by their protocol DID for later import"
608
+ },
609
+ {
610
+ path: "selectedProtocolTemplates",
611
+ displayName: "Selected Protocol Templates",
612
+ type: "array",
613
+ description: "Selected protocol templates with protocol DID and source room ID"
614
+ },
615
+ {
616
+ path: "selectedFlowDids",
617
+ displayName: "Selected Flow Room IDs",
618
+ type: "array",
619
+ description: "Source Matrix room IDs for selected templates"
618
620
  }
619
621
  ],
620
622
  pendingDisplayFields: ["flowTemplateConfig.templateCount", "flowTemplateConfig.protocolCount"]
@@ -631,7 +633,16 @@ registerAction({
631
633
  };
632
634
  return {
633
635
  output: { selectedProtocolTemplates, selectedFlowDids, flowTemplateConfig },
634
- events: [{ name: "configured", payload: { flowTemplateConfig } }]
636
+ events: [
637
+ {
638
+ name: "selected",
639
+ payload: {
640
+ flowTemplateConfig,
641
+ selectedProtocolTemplates,
642
+ selectedFlowDids
643
+ }
644
+ }
645
+ ]
635
646
  };
636
647
  }
637
648
  });
@@ -10194,4 +10205,4 @@ export {
10194
10205
  executeQueuedFlowAgentCoreCommands,
10195
10206
  FlowAgentService
10196
10207
  };
10197
- //# sourceMappingURL=chunk-OK3ILV2C.mjs.map
10208
+ //# sourceMappingURL=chunk-25XKVLR3.mjs.map