@dxos/react-ui-canvas-compute 0.8.4-main.c1de068 → 0.8.4-main.fd6878d

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.
Files changed (77) hide show
  1. package/dist/lib/browser/index.mjs +123 -104
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node-esm/index.mjs +123 -104
  5. package/dist/lib/node-esm/index.mjs.map +4 -4
  6. package/dist/lib/node-esm/meta.json +1 -1
  7. package/dist/types/src/graph/controller.d.ts +30 -4
  8. package/dist/types/src/graph/controller.d.ts.map +1 -1
  9. package/dist/types/src/graph/node-defs.d.ts.map +1 -1
  10. package/dist/types/src/hooks/useComputeGraphController.d.ts +1 -1
  11. package/dist/types/src/hooks/useComputeGraphController.d.ts.map +1 -1
  12. package/dist/types/src/hooks/useComputeNodeState.d.ts +3 -2
  13. package/dist/types/src/hooks/useComputeNodeState.d.ts.map +1 -1
  14. package/dist/types/src/hooks/useGraphMonitor.d.ts +1 -1
  15. package/dist/types/src/hooks/useGraphMonitor.d.ts.map +1 -1
  16. package/dist/types/src/shapes/Append.d.ts.map +1 -1
  17. package/dist/types/src/shapes/Array.d.ts.map +1 -1
  18. package/dist/types/src/shapes/Audio.d.ts.map +1 -1
  19. package/dist/types/src/shapes/Beacon.d.ts.map +1 -1
  20. package/dist/types/src/shapes/Boolean.d.ts.map +1 -1
  21. package/dist/types/src/shapes/Chat.d.ts.map +1 -1
  22. package/dist/types/src/shapes/Constant.d.ts +1 -1
  23. package/dist/types/src/shapes/Constant.d.ts.map +1 -1
  24. package/dist/types/src/shapes/Database.d.ts.map +1 -1
  25. package/dist/types/src/shapes/Function.d.ts.map +1 -1
  26. package/dist/types/src/shapes/Gpt.d.ts.map +1 -1
  27. package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -1
  28. package/dist/types/src/shapes/Json.d.ts.map +1 -1
  29. package/dist/types/src/shapes/Logic.d.ts.map +1 -1
  30. package/dist/types/src/shapes/Queue.d.ts.map +1 -1
  31. package/dist/types/src/shapes/RNG.d.ts.map +1 -1
  32. package/dist/types/src/shapes/Scope.d.ts.map +1 -1
  33. package/dist/types/src/shapes/Surface.d.ts.map +1 -1
  34. package/dist/types/src/shapes/Switch.d.ts.map +1 -1
  35. package/dist/types/src/shapes/Table.d.ts.map +1 -1
  36. package/dist/types/src/shapes/Template.d.ts.map +1 -1
  37. package/dist/types/src/shapes/Text.d.ts.map +1 -1
  38. package/dist/types/src/shapes/TextToImage.d.ts.map +1 -1
  39. package/dist/types/src/shapes/Thread.d.ts.map +1 -1
  40. package/dist/types/src/shapes/Trigger.d.ts.map +1 -1
  41. package/dist/types/src/shapes/common/Box.d.ts.map +1 -1
  42. package/dist/types/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +43 -42
  44. package/src/compute.stories.tsx +1 -1
  45. package/src/graph/controller.ts +8 -8
  46. package/src/graph/node-defs.ts +3 -3
  47. package/src/hooks/useComputeGraphController.ts +1 -1
  48. package/src/hooks/useComputeNodeState.ts +6 -4
  49. package/src/hooks/useGraphMonitor.ts +1 -1
  50. package/src/registry.ts +2 -2
  51. package/src/schema.test.ts +2 -2
  52. package/src/shapes/Append.tsx +2 -2
  53. package/src/shapes/Array.tsx +2 -2
  54. package/src/shapes/Audio.tsx +3 -2
  55. package/src/shapes/Beacon.tsx +3 -2
  56. package/src/shapes/Boolean.tsx +2 -2
  57. package/src/shapes/Chat.tsx +3 -2
  58. package/src/shapes/Constant.tsx +3 -2
  59. package/src/shapes/Database.tsx +1 -1
  60. package/src/shapes/Function.tsx +6 -5
  61. package/src/shapes/Gpt.tsx +6 -4
  62. package/src/shapes/GptRealtime.tsx +1 -1
  63. package/src/shapes/Json.tsx +3 -2
  64. package/src/shapes/Logic.tsx +2 -2
  65. package/src/shapes/Queue.tsx +3 -2
  66. package/src/shapes/RNG.tsx +3 -2
  67. package/src/shapes/Scope.tsx +4 -3
  68. package/src/shapes/Surface.tsx +3 -2
  69. package/src/shapes/Switch.tsx +3 -2
  70. package/src/shapes/Table.tsx +2 -2
  71. package/src/shapes/Template.tsx +4 -3
  72. package/src/shapes/Text.tsx +4 -3
  73. package/src/shapes/TextToImage.tsx +1 -1
  74. package/src/shapes/Thread.tsx +2 -2
  75. package/src/shapes/Trigger.tsx +4 -4
  76. package/src/shapes/common/Box.tsx +1 -1
  77. package/src/shapes/common/FunctionBody.tsx +1 -1
@@ -6,13 +6,14 @@ import { Schema } from 'effect';
6
6
  import React from 'react';
7
7
 
8
8
  import { DEFAULT_INPUT } from '@dxos/conductor';
9
- import { TextBox, type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
9
+ import { type ShapeComponentProps, type ShapeDef, TextBox } from '@dxos/react-ui-canvas-editor';
10
10
  import { createAnchorMap } from '@dxos/react-ui-canvas-editor';
11
11
 
12
- import { Box, type BoxActionHandler } from './common';
13
- import { ComputeShape, createAnchorId, createShape, type CreateShapeProps } from './defs';
14
12
  import { useComputeNodeState } from '../hooks';
15
13
 
14
+ import { Box, type BoxActionHandler } from './common';
15
+ import { ComputeShape, type CreateShapeProps, createAnchorId, createShape } from './defs';
16
+
16
17
  export const TextShape = Schema.extend(
17
18
  ComputeShape,
18
19
  Schema.Struct({
@@ -9,7 +9,7 @@ import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-e
9
9
  import { createAnchorMap } from '@dxos/react-ui-canvas-editor';
10
10
 
11
11
  import { Box } from './common';
12
- import { ComputeShape, createAnchorId, createShape, type CreateShapeProps } from './defs';
12
+ import { ComputeShape, type CreateShapeProps, createAnchorId, createShape } from './defs';
13
13
 
14
14
  export const TextToImageShape = Schema.extend(
15
15
  ComputeShape,
@@ -11,8 +11,8 @@ import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-e
11
11
  import { mx } from '@dxos/react-ui-theme';
12
12
  import { DataType } from '@dxos/schema';
13
13
 
14
- import { createFunctionAnchors, Box } from './common';
15
- import { ComputeShape, createShape, type CreateShapeProps } from './defs';
14
+ import { Box, createFunctionAnchors } from './common';
15
+ import { ComputeShape, type CreateShapeProps, createShape } from './defs';
16
16
 
17
17
  const InputSchema = createInputSchema(DataType.Message);
18
18
  const OutputSchema = createOutputSchema(Schema.mutable(Schema.Array(DataType.Message)));
@@ -14,11 +14,11 @@ import {
14
14
  type QueueTrigger,
15
15
  QueueTriggerOutput,
16
16
  type SubscriptionTrigger,
17
+ SubscriptionTriggerOutput,
17
18
  type TimerTrigger,
19
+ TimerTriggerOutput,
18
20
  TriggerKind,
19
21
  type TriggerType,
20
- SubscriptionTriggerOutput,
21
- TimerTriggerOutput,
22
22
  type WebhookTrigger,
23
23
  WebhookTriggerOutput,
24
24
  } from '@dxos/functions';
@@ -27,8 +27,8 @@ import { live, useSpace } from '@dxos/react-client/echo';
27
27
  import { Select, type SelectRootProps } from '@dxos/react-ui';
28
28
  import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
29
29
 
30
- import { createFunctionAnchors, FunctionBody, getHeight } from './common';
31
- import { ComputeShape, createShape, type CreateShapeProps } from './defs';
30
+ import { FunctionBody, createFunctionAnchors, getHeight } from './common';
31
+ import { ComputeShape, type CreateShapeProps, createShape } from './defs';
32
32
 
33
33
  export const TriggerShape = Schema.extend(
34
34
  ComputeShape,
@@ -2,7 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import React, { forwardRef, type PropsWithChildren, type ReactNode } from 'react';
5
+ import React, { type PropsWithChildren, type ReactNode, forwardRef } from 'react';
6
6
 
7
7
  import { invariant } from '@dxos/invariant';
8
8
  import { Icon, IconButton, type ThemedClassName } from '@dxos/react-ui';
@@ -8,7 +8,7 @@ import React, { type JSX, useRef, useState } from 'react';
8
8
  import { VoidInput, VoidOutput } from '@dxos/conductor';
9
9
  import { useCanvasContext } from '@dxos/react-ui-canvas';
10
10
  import { type Polygon, type Shape } from '@dxos/react-ui-canvas-editor';
11
- import { getParentShapeElement, createAnchors, rowHeight } from '@dxos/react-ui-canvas-editor';
11
+ import { createAnchors, getParentShapeElement, rowHeight } from '@dxos/react-ui-canvas-editor';
12
12
 
13
13
  import { Box, type BoxProps, footerHeight, headerHeight } from '../common';
14
14
  import { createAnchorId, getProperties } from '../defs';