@smithers-orchestrator/components 0.20.3 → 0.20.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithers-orchestrator/components",
3
- "version": "0.20.3",
3
+ "version": "0.20.4",
4
4
  "description": "React components for Smithers workflows",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -24,15 +24,15 @@
24
24
  "react": "^19.2.5",
25
25
  "react-dom": "^19.2.5",
26
26
  "zod": "^4.3.6",
27
- "@smithers-orchestrator/agents": "0.20.3",
28
- "@smithers-orchestrator/db": "0.20.3",
29
- "@smithers-orchestrator/driver": "0.20.3",
30
- "@smithers-orchestrator/errors": "0.20.3",
31
- "@smithers-orchestrator/memory": "0.20.3",
32
- "@smithers-orchestrator/graph": "0.20.3",
33
- "@smithers-orchestrator/observability": "0.20.3",
34
- "@smithers-orchestrator/react-reconciler": "0.20.3",
35
- "@smithers-orchestrator/scheduler": "0.20.3"
27
+ "@smithers-orchestrator/agents": "0.20.4",
28
+ "@smithers-orchestrator/db": "0.20.4",
29
+ "@smithers-orchestrator/driver": "0.20.4",
30
+ "@smithers-orchestrator/errors": "0.20.4",
31
+ "@smithers-orchestrator/graph": "0.20.4",
32
+ "@smithers-orchestrator/react-reconciler": "0.20.4",
33
+ "@smithers-orchestrator/memory": "0.20.4",
34
+ "@smithers-orchestrator/scheduler": "0.20.4",
35
+ "@smithers-orchestrator/observability": "0.20.4"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@tanstack/react-query": "^5.99.1",
@@ -5,7 +5,11 @@ import React from "react";
5
5
  */
6
6
  function mapChildren(node) {
7
7
  if (Array.isArray(node)) {
8
- return node.map((child) => forceContinueOnFail(child));
8
+ const mapped = [];
9
+ for (const child of node) {
10
+ mapped.push(forceContinueOnFail(child));
11
+ }
12
+ return mapped;
9
13
  }
10
14
  if (React.isValidElement(node)) {
11
15
  return forceContinueOnFail(node);
@@ -19,6 +23,9 @@ function mapChildren(node) {
19
23
  * @returns {React.ReactNode}
20
24
  */
21
25
  export function forceContinueOnFail(node) {
26
+ if (Array.isArray(node)) {
27
+ return mapChildren(node);
28
+ }
22
29
  if (!React.isValidElement(node)) {
23
30
  return node;
24
31
  }