@smithers-orchestrator/components 0.20.1 → 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.1",
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/db": "0.20.1",
28
- "@smithers-orchestrator/agents": "0.20.1",
29
- "@smithers-orchestrator/driver": "0.20.1",
30
- "@smithers-orchestrator/errors": "0.20.1",
31
- "@smithers-orchestrator/memory": "0.20.1",
32
- "@smithers-orchestrator/observability": "0.20.1",
33
- "@smithers-orchestrator/react-reconciler": "0.20.1",
34
- "@smithers-orchestrator/scheduler": "0.20.1",
35
- "@smithers-orchestrator/graph": "0.20.1"
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",
@@ -1,6 +1,7 @@
1
1
  import type React from "react";
2
2
 
3
3
  export type LoopProps = {
4
+ key?: string;
4
5
  id?: string;
5
6
  until?: boolean;
6
7
  maxIterations?: number;
@@ -1,6 +1,7 @@
1
1
  import type React from "react";
2
2
 
3
3
  export type SequenceProps = {
4
+ key?: string;
4
5
  skipIf?: boolean;
5
6
  children?: React.ReactNode;
6
7
  };
@@ -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
  }
package/src/index.d.ts CHANGED
@@ -262,6 +262,7 @@ type SignalProps$2<Schema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.Zod
262
262
  };
263
263
 
264
264
  type SequenceProps$2 = {
265
+ key?: string;
265
266
  skipIf?: boolean;
266
267
  children?: React.ReactNode;
267
268
  };
@@ -424,6 +425,7 @@ type ReviewLoopProps$2 = {
424
425
  };
425
426
 
426
427
  type LoopProps$2 = {
428
+ key?: string;
427
429
  id?: string;
428
430
  until?: boolean;
429
431
  maxIterations?: number;