@ixo/editor 5.24.0 → 5.25.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.
@@ -7675,7 +7675,9 @@ function processBarrierRunRecord(yDoc, sourceBlockId, record, barrierListenersBy
7675
7675
  }
7676
7676
  const allSources = trigger.sources || [];
7677
7677
  const currentState = readBarrierState(yDoc, listenerBlockId);
7678
- const allFired = allSources.length > 0 && allSources.every((s) => currentState.some((e) => e.sourceBlockId === s.sourceBlockId && e.eventName === s.eventName));
7678
+ const requiredSources = allSources.filter((s) => s.optional !== true);
7679
+ const gatingSources = requiredSources.length > 0 ? requiredSources : allSources;
7680
+ const allFired = gatingSources.length > 0 && gatingSources.every((s) => currentState.some((e) => e.sourceBlockId === s.sourceBlockId && e.eventName === s.eventName));
7679
7681
  if (!allFired) continue;
7680
7682
  const assigneeDid = resolveAssignee(listenerBlock) || "unassigned";
7681
7683
  const id = computeBarrierInvocationId(currentState, listenerBlockId);
@@ -10797,4 +10799,4 @@ export {
10797
10799
  executeQueuedFlowAgentCoreCommands,
10798
10800
  FlowAgentService
10799
10801
  };
10800
- //# sourceMappingURL=chunk-UWRUVSMP.mjs.map
10802
+ //# sourceMappingURL=chunk-UMS6GCME.mjs.map