@dxos/react-ui-canvas-compute 0.8.2-staging.7ac8446 → 0.8.2

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 (106) hide show
  1. package/dist/lib/browser/index.mjs +1022 -836
  2. package/dist/lib/browser/index.mjs.map +3 -3
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node/index.cjs +1040 -854
  5. package/dist/lib/node/index.cjs.map +3 -3
  6. package/dist/lib/node/meta.json +1 -1
  7. package/dist/lib/node-esm/index.mjs +1022 -836
  8. package/dist/lib/node-esm/index.mjs.map +3 -3
  9. package/dist/lib/node-esm/meta.json +1 -1
  10. package/dist/types/src/components/DiagnosticOverlay.d.ts.map +1 -1
  11. package/dist/types/src/graph/controller.d.ts +2 -18
  12. package/dist/types/src/graph/controller.d.ts.map +1 -1
  13. package/dist/types/src/graph/node-defs.d.ts.map +1 -1
  14. package/dist/types/src/hooks/useComputeGraphController.d.ts.map +1 -1
  15. package/dist/types/src/hooks/useComputeNodeState.d.ts.map +1 -1
  16. package/dist/types/src/hooks/useGraphMonitor.d.ts.map +1 -1
  17. package/dist/types/src/json.test.d.ts +18 -18
  18. package/dist/types/src/json.test.d.ts.map +1 -1
  19. package/dist/types/src/shapes/Append.d.ts +19 -19
  20. package/dist/types/src/shapes/Append.d.ts.map +1 -1
  21. package/dist/types/src/shapes/Array.d.ts +19 -19
  22. package/dist/types/src/shapes/Array.d.ts.map +1 -1
  23. package/dist/types/src/shapes/Audio.d.ts +19 -19
  24. package/dist/types/src/shapes/Audio.d.ts.map +1 -1
  25. package/dist/types/src/shapes/Beacon.d.ts +19 -19
  26. package/dist/types/src/shapes/Beacon.d.ts.map +1 -1
  27. package/dist/types/src/shapes/Boolean.d.ts +70 -70
  28. package/dist/types/src/shapes/Boolean.d.ts.map +1 -1
  29. package/dist/types/src/shapes/Chat.d.ts +19 -19
  30. package/dist/types/src/shapes/Chat.d.ts.map +1 -1
  31. package/dist/types/src/shapes/Constant.d.ts +20 -20
  32. package/dist/types/src/shapes/Constant.d.ts.map +1 -1
  33. package/dist/types/src/shapes/Database.d.ts +19 -19
  34. package/dist/types/src/shapes/Database.d.ts.map +1 -1
  35. package/dist/types/src/shapes/Function.d.ts +19 -19
  36. package/dist/types/src/shapes/Function.d.ts.map +1 -1
  37. package/dist/types/src/shapes/Gpt.d.ts +19 -19
  38. package/dist/types/src/shapes/Gpt.d.ts.map +1 -1
  39. package/dist/types/src/shapes/GptRealtime.d.ts +19 -19
  40. package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -1
  41. package/dist/types/src/shapes/Json.d.ts +37 -37
  42. package/dist/types/src/shapes/Json.d.ts.map +1 -1
  43. package/dist/types/src/shapes/Logic.d.ts +37 -37
  44. package/dist/types/src/shapes/Logic.d.ts.map +1 -1
  45. package/dist/types/src/shapes/Queue.d.ts +19 -19
  46. package/dist/types/src/shapes/Queue.d.ts.map +1 -1
  47. package/dist/types/src/shapes/RNG.d.ts +21 -21
  48. package/dist/types/src/shapes/RNG.d.ts.map +1 -1
  49. package/dist/types/src/shapes/Scope.d.ts +19 -19
  50. package/dist/types/src/shapes/Scope.d.ts.map +1 -1
  51. package/dist/types/src/shapes/Surface.d.ts +19 -19
  52. package/dist/types/src/shapes/Surface.d.ts.map +1 -1
  53. package/dist/types/src/shapes/Switch.d.ts +19 -19
  54. package/dist/types/src/shapes/Switch.d.ts.map +1 -1
  55. package/dist/types/src/shapes/Table.d.ts +19 -19
  56. package/dist/types/src/shapes/Table.d.ts.map +1 -1
  57. package/dist/types/src/shapes/Template.d.ts +20 -20
  58. package/dist/types/src/shapes/Template.d.ts.map +1 -1
  59. package/dist/types/src/shapes/Text.d.ts +19 -19
  60. package/dist/types/src/shapes/Text.d.ts.map +1 -1
  61. package/dist/types/src/shapes/TextToImage.d.ts +19 -19
  62. package/dist/types/src/shapes/TextToImage.d.ts.map +1 -1
  63. package/dist/types/src/shapes/Thread.d.ts +19 -19
  64. package/dist/types/src/shapes/Thread.d.ts.map +1 -1
  65. package/dist/types/src/shapes/Trigger.d.ts +47 -45
  66. package/dist/types/src/shapes/Trigger.d.ts.map +1 -1
  67. package/dist/types/src/shapes/common/FunctionBody.d.ts +5 -5
  68. package/dist/types/src/shapes/common/FunctionBody.d.ts.map +1 -1
  69. package/dist/types/src/shapes/common/TypeSelect.d.ts.map +1 -1
  70. package/dist/types/src/shapes/defs.d.ts +18 -19
  71. package/dist/types/src/shapes/defs.d.ts.map +1 -1
  72. package/dist/types/src/testing/circuits.d.ts.map +1 -1
  73. package/dist/types/tsconfig.tsbuildinfo +1 -1
  74. package/package.json +42 -40
  75. package/src/compute.stories.tsx +3 -3
  76. package/src/graph/controller.ts +12 -12
  77. package/src/hooks/useComputeNodeState.ts +3 -3
  78. package/src/hooks/useGraphMonitor.ts +3 -5
  79. package/src/json.test.ts +10 -10
  80. package/src/schema.test.ts +7 -7
  81. package/src/shapes/Append.tsx +5 -5
  82. package/src/shapes/Array.tsx +5 -5
  83. package/src/shapes/Audio.tsx +5 -5
  84. package/src/shapes/Beacon.tsx +5 -5
  85. package/src/shapes/Boolean.tsx +5 -5
  86. package/src/shapes/Chat.tsx +5 -5
  87. package/src/shapes/Constant.tsx +6 -6
  88. package/src/shapes/Database.tsx +5 -5
  89. package/src/shapes/Function.tsx +8 -7
  90. package/src/shapes/Gpt.tsx +6 -6
  91. package/src/shapes/GptRealtime.tsx +8 -8
  92. package/src/shapes/Json.tsx +9 -9
  93. package/src/shapes/Logic.tsx +9 -9
  94. package/src/shapes/Queue.tsx +5 -5
  95. package/src/shapes/RNG.tsx +7 -7
  96. package/src/shapes/Scope.tsx +5 -5
  97. package/src/shapes/Surface.tsx +5 -5
  98. package/src/shapes/Switch.tsx +5 -5
  99. package/src/shapes/Table.tsx +6 -6
  100. package/src/shapes/Template.tsx +8 -7
  101. package/src/shapes/Text.tsx +5 -5
  102. package/src/shapes/TextToImage.tsx +5 -5
  103. package/src/shapes/Thread.tsx +6 -6
  104. package/src/shapes/Trigger.tsx +32 -33
  105. package/src/shapes/common/FunctionBody.tsx +11 -9
  106. package/src/shapes/defs.ts +9 -9
@@ -1,33 +1,33 @@
1
+ import { Schema } from 'effect';
1
2
  import React from 'react';
2
- import { S } from '@dxos/echo-schema';
3
3
  import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
4
  import { type CreateShapeProps } from './defs';
5
- export declare const SurfaceShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
5
+ export declare const SurfaceShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
6
6
  readonly id: string;
7
7
  readonly data?: any;
8
8
  }, {
9
9
  readonly id: string;
10
10
  readonly data?: any;
11
- }, never>, S.Struct<{
12
- type: typeof S.String;
13
- text: S.optional<typeof S.String>;
14
- guide: S.optional<typeof S.Boolean>;
15
- classNames: S.optional<typeof S.String>;
16
- }>>, S.Struct<{
17
- center: S.Struct<{
18
- x: typeof S.Number;
19
- y: typeof S.Number;
11
+ }, never>, Schema.Struct<{
12
+ type: typeof Schema.String;
13
+ text: Schema.optional<typeof Schema.String>;
14
+ guide: Schema.optional<typeof Schema.Boolean>;
15
+ classNames: Schema.optional<typeof Schema.String>;
16
+ }>>, Schema.Struct<{
17
+ center: Schema.Struct<{
18
+ x: typeof Schema.Number;
19
+ y: typeof Schema.Number;
20
20
  }>;
21
- size: S.mutable<S.Struct<{
22
- width: typeof S.Number;
23
- height: typeof S.Number;
21
+ size: Schema.mutable<Schema.Struct<{
22
+ width: typeof Schema.Number;
23
+ height: typeof Schema.Number;
24
24
  }>>;
25
- }>>>, S.mutable<S.Struct<{
26
- node: S.optional<S.SchemaClass<string, string, never>>;
27
- }>>>, S.Struct<{
28
- type: S.Literal<["surface"]>;
25
+ }>>>, Schema.mutable<Schema.Struct<{
26
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
27
+ }>>>, Schema.Struct<{
28
+ type: Schema.Literal<["surface"]>;
29
29
  }>>;
30
- export type SurfaceShape = S.Schema.Type<typeof SurfaceShape>;
30
+ export type SurfaceShape = Schema.Schema.Type<typeof SurfaceShape>;
31
31
  export type CreateSurfaceProps = CreateShapeProps<SurfaceShape>;
32
32
  export declare const createSurface: (props: CreateSurfaceProps) => {
33
33
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,YAAY;;;;;;;iBA0BA,EAAG,MAAM;UAAW,EACvC,QAAE,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAC7D,EAAA,QAAM,QAET,EAED,MAAM;;YAA8B,EAAG,MAAM;kBAClC,EAAG,MACb;kBACC,EAAE,MAAM;;UAAmB,EAAG,OAC/B,CAAC,EAAE,MAAM;sBACP,EAAG,MAAM;uBACN,EAAG,MAAM;;;;;;GAjCd,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,UAAW,kBAAkB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE9F,eAAO,MAAM,gBAAgB,cAAe,mBAAmB,CAAC,YAAY,CAAC,sBAgB5E,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAQ/C,CAAC"}
1
+ {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;GAKxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE9F,eAAO,MAAM,gBAAgB,GAAI,WAAW,mBAAmB,CAAC,YAAY,CAAC,sBAgB5E,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAQ/C,CAAC"}
@@ -1,33 +1,33 @@
1
+ import { Schema } from 'effect';
1
2
  import React from 'react';
2
- import { S } from '@dxos/echo-schema';
3
3
  import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
4
  import { type CreateShapeProps } from './defs';
5
- export declare const SwitchShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
5
+ export declare const SwitchShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
6
6
  readonly id: string;
7
7
  readonly data?: any;
8
8
  }, {
9
9
  readonly id: string;
10
10
  readonly data?: any;
11
- }, never>, S.Struct<{
12
- type: typeof S.String;
13
- text: S.optional<typeof S.String>;
14
- guide: S.optional<typeof S.Boolean>;
15
- classNames: S.optional<typeof S.String>;
16
- }>>, S.Struct<{
17
- center: S.Struct<{
18
- x: typeof S.Number;
19
- y: typeof S.Number;
11
+ }, never>, Schema.Struct<{
12
+ type: typeof Schema.String;
13
+ text: Schema.optional<typeof Schema.String>;
14
+ guide: Schema.optional<typeof Schema.Boolean>;
15
+ classNames: Schema.optional<typeof Schema.String>;
16
+ }>>, Schema.Struct<{
17
+ center: Schema.Struct<{
18
+ x: typeof Schema.Number;
19
+ y: typeof Schema.Number;
20
20
  }>;
21
- size: S.mutable<S.Struct<{
22
- width: typeof S.Number;
23
- height: typeof S.Number;
21
+ size: Schema.mutable<Schema.Struct<{
22
+ width: typeof Schema.Number;
23
+ height: typeof Schema.Number;
24
24
  }>>;
25
- }>>>, S.mutable<S.Struct<{
26
- node: S.optional<S.SchemaClass<string, string, never>>;
27
- }>>>, S.Struct<{
28
- type: S.Literal<["switch"]>;
25
+ }>>>, Schema.mutable<Schema.Struct<{
26
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
27
+ }>>>, Schema.Struct<{
28
+ type: Schema.Literal<["switch"]>;
29
29
  }>>;
30
- export type SwitchShape = S.Schema.Type<typeof SwitchShape>;
30
+ export type SwitchShape = Schema.Schema.Type<typeof SwitchShape>;
31
31
  export type CreateSwitchProps = CreateShapeProps<SwitchShape>;
32
32
  export declare const createSwitch: (props: CreateSwitchProps) => {
33
33
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Switch.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAmB,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExG,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,WAAW;;;;;;;iBAyBwC,EAAG,MAAM;UAAW,EAC9E,QAAG,QAAO,EACZ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AAe,GAAI,WAAW,mBAAmB,CAAC,WAAW,CAAC,sBAc1E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}
@@ -1,33 +1,33 @@
1
+ import { Schema } from 'effect';
1
2
  import React from 'react';
2
- import { S } from '@dxos/echo-schema';
3
3
  import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
4
  import { type CreateShapeProps } from './defs';
5
- export declare const TableShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
5
+ export declare const TableShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
6
6
  readonly id: string;
7
7
  readonly data?: any;
8
8
  }, {
9
9
  readonly id: string;
10
10
  readonly data?: any;
11
- }, never>, S.Struct<{
12
- type: typeof S.String;
13
- text: S.optional<typeof S.String>;
14
- guide: S.optional<typeof S.Boolean>;
15
- classNames: S.optional<typeof S.String>;
16
- }>>, S.Struct<{
17
- center: S.Struct<{
18
- x: typeof S.Number;
19
- y: typeof S.Number;
11
+ }, never>, Schema.Struct<{
12
+ type: typeof Schema.String;
13
+ text: Schema.optional<typeof Schema.String>;
14
+ guide: Schema.optional<typeof Schema.Boolean>;
15
+ classNames: Schema.optional<typeof Schema.String>;
16
+ }>>, Schema.Struct<{
17
+ center: Schema.Struct<{
18
+ x: typeof Schema.Number;
19
+ y: typeof Schema.Number;
20
20
  }>;
21
- size: S.mutable<S.Struct<{
22
- width: typeof S.Number;
23
- height: typeof S.Number;
21
+ size: Schema.mutable<Schema.Struct<{
22
+ width: typeof Schema.Number;
23
+ height: typeof Schema.Number;
24
24
  }>>;
25
- }>>>, S.mutable<S.Struct<{
26
- node: S.optional<S.SchemaClass<string, string, never>>;
27
- }>>>, S.Struct<{
28
- type: S.Literal<["table"]>;
25
+ }>>>, Schema.mutable<Schema.Struct<{
26
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
27
+ }>>>, Schema.Struct<{
28
+ type: Schema.Literal<["table"]>;
29
29
  }>>;
30
- export type TableShape = S.Schema.Type<typeof TableShape>;
30
+ export type TableShape = Schema.Schema.Type<typeof TableShape>;
31
31
  export type CreateTableProps = CreateShapeProps<TableShape>;
32
32
  export declare const createTable: (props: CreateTableProps) => {
33
33
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAK1E,eAAO,MAAM,UAAU;;;;;;;iBA6BvB,EAAE,MAAM;UAAW,EAAG,QAAQ,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAAoB,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;GAxB3U,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,UAAW,gBAAgB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE1F,eAAO,MAAM,cAAc,cAAe,mBAAmB,CAAC,UAAU,CAAC,sBAIxE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,UAAU,CAQ3C,CAAC"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAK1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;GAKtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE1F,eAAO,MAAM,cAAc,GAAI,WAAW,mBAAmB,CAAC,UAAU,CAAC,sBAIxE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,UAAU,CAQ3C,CAAC"}
@@ -1,33 +1,33 @@
1
- import { S } from '@dxos/echo-schema';
1
+ import { Schema } from 'effect';
2
2
  import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
3
  import { type CreateShapeProps } from './defs';
4
- export declare const TemplateShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
4
+ export declare const TemplateShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
5
  readonly id: string;
6
6
  readonly data?: any;
7
7
  }, {
8
8
  readonly id: string;
9
9
  readonly data?: any;
10
- }, never>, S.Struct<{
11
- type: typeof S.String;
12
- text: S.optional<typeof S.String>;
13
- guide: S.optional<typeof S.Boolean>;
14
- classNames: S.optional<typeof S.String>;
15
- }>>, S.Struct<{
16
- center: S.Struct<{
17
- x: typeof S.Number;
18
- y: typeof S.Number;
10
+ }, never>, Schema.Struct<{
11
+ type: typeof Schema.String;
12
+ text: Schema.optional<typeof Schema.String>;
13
+ guide: Schema.optional<typeof Schema.Boolean>;
14
+ classNames: Schema.optional<typeof Schema.String>;
15
+ }>>, Schema.Struct<{
16
+ center: Schema.Struct<{
17
+ x: typeof Schema.Number;
18
+ y: typeof Schema.Number;
19
19
  }>;
20
- size: S.mutable<S.Struct<{
21
- width: typeof S.Number;
22
- height: typeof S.Number;
20
+ size: Schema.mutable<Schema.Struct<{
21
+ width: typeof Schema.Number;
22
+ height: typeof Schema.Number;
23
23
  }>>;
24
- }>>>, S.mutable<S.Struct<{
25
- node: S.optional<S.SchemaClass<string, string, never>>;
26
- }>>>, S.Struct<{
27
- type: S.Literal<["template"]>;
28
- valueType: S.optional<S.Literal<["string", "number", "boolean", "object"]>>;
24
+ }>>>, Schema.mutable<Schema.Struct<{
25
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
26
+ }>>>, Schema.Struct<{
27
+ type: Schema.Literal<["template"]>;
28
+ valueType: Schema.optional<Schema.Literal<["string", "number", "boolean", "object"]>>;
29
29
  }>>;
30
- export type TemplateShape = S.Schema.Type<typeof TemplateShape>;
30
+ export type TemplateShape = Schema.Schema.Type<typeof TemplateShape>;
31
31
  export type CreateTemplateProps = CreateShapeProps<TemplateShape> & {
32
32
  text?: string;
33
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Template.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAgB,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAEL,KAAK,QAAQ,EAId,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO1E,eAAO,MAAM,aAAa;;;;;;;iBAyBP,EAAG,MACpB;UAAW,EAAG,QAAQ,QAAO,EAAG,MAAM;WAEtC,EAAC,QA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-1,33 +1,33 @@
1
+ import { Schema } from 'effect';
1
2
  import React from 'react';
2
- import { S } from '@dxos/echo-schema';
3
3
  import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
4
  import { type CreateShapeProps } from './defs';
5
- export declare const TextShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
5
+ export declare const TextShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
6
6
  readonly id: string;
7
7
  readonly data?: any;
8
8
  }, {
9
9
  readonly id: string;
10
10
  readonly data?: any;
11
- }, never>, S.Struct<{
12
- type: typeof S.String;
13
- text: S.optional<typeof S.String>;
14
- guide: S.optional<typeof S.Boolean>;
15
- classNames: S.optional<typeof S.String>;
16
- }>>, S.Struct<{
17
- center: S.Struct<{
18
- x: typeof S.Number;
19
- y: typeof S.Number;
11
+ }, never>, Schema.Struct<{
12
+ type: typeof Schema.String;
13
+ text: Schema.optional<typeof Schema.String>;
14
+ guide: Schema.optional<typeof Schema.Boolean>;
15
+ classNames: Schema.optional<typeof Schema.String>;
16
+ }>>, Schema.Struct<{
17
+ center: Schema.Struct<{
18
+ x: typeof Schema.Number;
19
+ y: typeof Schema.Number;
20
20
  }>;
21
- size: S.mutable<S.Struct<{
22
- width: typeof S.Number;
23
- height: typeof S.Number;
21
+ size: Schema.mutable<Schema.Struct<{
22
+ width: typeof Schema.Number;
23
+ height: typeof Schema.Number;
24
24
  }>>;
25
- }>>>, S.mutable<S.Struct<{
26
- node: S.optional<S.SchemaClass<string, string, never>>;
27
- }>>>, S.Struct<{
28
- type: S.Literal<["text"]>;
25
+ }>>>, Schema.mutable<Schema.Struct<{
26
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
27
+ }>>>, Schema.Struct<{
28
+ type: Schema.Literal<["text"]>;
29
29
  }>>;
30
- export type TextShape = S.Schema.Type<typeof TextShape>;
30
+ export type TextShape = Schema.Schema.Type<typeof TextShape>;
31
31
  export type CreateTextProps = CreateShapeProps<TextShape>;
32
32
  export declare const createText: (props: CreateTextProps) => {
33
33
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAW,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIhG,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,SAAS;;;;;;;iBAgCpB,EAAG,MAAM;UAAW,EAAG,QAAQ,QAAO,EAAI,MAC3C;WAAa,EACZ,QAAO,QACP,EAAC,OAAO;gBAAkB,EAC1B,QAAK,QAAO,EAAG,MAAM;;YACE,EACvB,MAAK;kBAAoB,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAC5F,MAAG;sBAEE,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;GApChD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,UAAU,UAAW,eAAe;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAExF,eAAO,MAAM,aAAa,cAAe,mBAAmB,CAAC,SAAS,CAAC,sBAgBtE,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,SAAS,CAQzC,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAW,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIhG,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;GAKrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAExF,eAAO,MAAM,aAAa,GAAI,WAAW,mBAAmB,CAAC,SAAS,CAAC,sBAgBtE,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,SAAS,CAQzC,CAAC"}
@@ -1,33 +1,33 @@
1
+ import { Schema } from 'effect';
1
2
  import React from 'react';
2
- import { S } from '@dxos/echo-schema';
3
3
  import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
4
  import { type CreateShapeProps } from './defs';
5
- export declare const TextToImageShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
5
+ export declare const TextToImageShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
6
6
  readonly id: string;
7
7
  readonly data?: any;
8
8
  }, {
9
9
  readonly id: string;
10
10
  readonly data?: any;
11
- }, never>, S.Struct<{
12
- type: typeof S.String;
13
- text: S.optional<typeof S.String>;
14
- guide: S.optional<typeof S.Boolean>;
15
- classNames: S.optional<typeof S.String>;
16
- }>>, S.Struct<{
17
- center: S.Struct<{
18
- x: typeof S.Number;
19
- y: typeof S.Number;
11
+ }, never>, Schema.Struct<{
12
+ type: typeof Schema.String;
13
+ text: Schema.optional<typeof Schema.String>;
14
+ guide: Schema.optional<typeof Schema.Boolean>;
15
+ classNames: Schema.optional<typeof Schema.String>;
16
+ }>>, Schema.Struct<{
17
+ center: Schema.Struct<{
18
+ x: typeof Schema.Number;
19
+ y: typeof Schema.Number;
20
20
  }>;
21
- size: S.mutable<S.Struct<{
22
- width: typeof S.Number;
23
- height: typeof S.Number;
21
+ size: Schema.mutable<Schema.Struct<{
22
+ width: typeof Schema.Number;
23
+ height: typeof Schema.Number;
24
24
  }>>;
25
- }>>>, S.mutable<S.Struct<{
26
- node: S.optional<S.SchemaClass<string, string, never>>;
27
- }>>>, S.Struct<{
28
- type: S.Literal<["text-to-image"]>;
25
+ }>>>, Schema.mutable<Schema.Struct<{
26
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
27
+ }>>>, Schema.Struct<{
28
+ type: Schema.Literal<["text-to-image"]>;
29
29
  }>>;
30
- export type TextToImageShape = S.Schema.Type<typeof TextToImageShape>;
30
+ export type TextToImageShape = Schema.Schema.Type<typeof TextToImageShape>;
31
31
  export type CreateTextToImageProps = CreateShapeProps<TextToImageShape>;
32
32
  export declare const createTextToImage: (props: CreateTextToImageProps) => {
33
33
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TextToImage.d.ts","sourceRoot":"","sources":["../../../../src/shapes/TextToImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1F,eAAO,MAAM,gBAAgB;;;;;;;iBA0BoE,EAAG,MAAM;UAAW,EAAG,QAAQ,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAAoB,EAAG,M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gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAOvD,CAAC"}
@@ -1,34 +1,34 @@
1
+ import { Schema } from 'effect';
1
2
  import React from 'react';
2
- import { S } from '@dxos/echo-schema';
3
3
  import { type ThemedClassName } from '@dxos/react-ui';
4
4
  import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
5
5
  import { type CreateShapeProps } from './defs';
6
- export declare const ThreadShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
6
+ export declare const ThreadShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
7
7
  readonly id: string;
8
8
  readonly data?: any;
9
9
  }, {
10
10
  readonly id: string;
11
11
  readonly data?: any;
12
- }, never>, S.Struct<{
13
- type: typeof S.String;
14
- text: S.optional<typeof S.String>;
15
- guide: S.optional<typeof S.Boolean>;
16
- classNames: S.optional<typeof S.String>;
17
- }>>, S.Struct<{
18
- center: S.Struct<{
19
- x: typeof S.Number;
20
- y: typeof S.Number;
12
+ }, never>, Schema.Struct<{
13
+ type: typeof Schema.String;
14
+ text: Schema.optional<typeof Schema.String>;
15
+ guide: Schema.optional<typeof Schema.Boolean>;
16
+ classNames: Schema.optional<typeof Schema.String>;
17
+ }>>, Schema.Struct<{
18
+ center: Schema.Struct<{
19
+ x: typeof Schema.Number;
20
+ y: typeof Schema.Number;
21
21
  }>;
22
- size: S.mutable<S.Struct<{
23
- width: typeof S.Number;
24
- height: typeof S.Number;
22
+ size: Schema.mutable<Schema.Struct<{
23
+ width: typeof Schema.Number;
24
+ height: typeof Schema.Number;
25
25
  }>>;
26
- }>>>, S.mutable<S.Struct<{
27
- node: S.optional<S.SchemaClass<string, string, never>>;
28
- }>>>, S.Struct<{
29
- type: S.Literal<["thread"]>;
26
+ }>>>, Schema.mutable<Schema.Struct<{
27
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
28
+ }>>>, Schema.Struct<{
29
+ type: Schema.Literal<["thread"]>;
30
30
  }>>;
31
- export type ThreadShape = S.Schema.Type<typeof ThreadShape>;
31
+ export type ThreadShape = Schema.Schema.Type<typeof ThreadShape>;
32
32
  export type CreateThreadProps = CreateShapeProps<ThreadShape>;
33
33
  export declare const createThread: (props: CreateThreadProps) => {
34
34
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Thread.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAK1E,eAAO,MAAM,WAAW;;;;;;;iBAuBf,EACL,MAAG;UAAW,EAAG,QAChB,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QACjF,QAAO,EAAG,MAAM;;YACR,EAAE,MAAM;kBAAoB,EAAI,MACxC;kBACO,EACL,MAAC;;UAID,EAAG,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAAyB,EAAG,MACjF;;;;;;GA9BF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,UAAW,iBAAiB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE5F,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,sBAkB1E,CAAC;AAEF,eAAO,MAAM,UAAU,yBAA0B,eAAe,CAAC;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,sBAwB9E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAQ7C,CAAC"}
1
+ {"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Thread.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAK1E,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;GAKvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE5F,eAAO,MAAM,eAAe,GAAI,WAAW,mBAAmB,CAAC,WAAW,CAAC,sBAkB1E,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,sBAAsB,eAAe,CAAC;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,sBAwB9E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAQ7C,CAAC"}
@@ -1,63 +1,65 @@
1
+ import { Schema } from 'effect';
1
2
  import React from 'react';
2
- import { S } from '@dxos/echo-schema';
3
- import { TriggerKind } from '@dxos/functions/types';
3
+ import { Ref } from '@dxos/echo-schema';
4
+ import { TriggerKind } from '@dxos/functions';
4
5
  import { SpaceId } from '@dxos/keys';
5
6
  import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
6
7
  import { type CreateShapeProps } from './defs';
7
- export declare const TriggerShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
8
+ export declare const TriggerShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
8
9
  readonly id: string;
9
10
  readonly data?: any;
10
11
  }, {
11
12
  readonly id: string;
12
13
  readonly data?: any;
13
- }, never>, S.Struct<{
14
- type: typeof S.String;
15
- text: S.optional<typeof S.String>;
16
- guide: S.optional<typeof S.Boolean>;
17
- classNames: S.optional<typeof S.String>;
18
- }>>, S.Struct<{
19
- center: S.Struct<{
20
- x: typeof S.Number;
21
- y: typeof S.Number;
14
+ }, never>, Schema.Struct<{
15
+ type: typeof Schema.String;
16
+ text: Schema.optional<typeof Schema.String>;
17
+ guide: Schema.optional<typeof Schema.Boolean>;
18
+ classNames: Schema.optional<typeof Schema.String>;
19
+ }>>, Schema.Struct<{
20
+ center: Schema.Struct<{
21
+ x: typeof Schema.Number;
22
+ y: typeof Schema.Number;
22
23
  }>;
23
- size: S.mutable<S.Struct<{
24
- width: typeof S.Number;
25
- height: typeof S.Number;
24
+ size: Schema.mutable<Schema.Struct<{
25
+ width: typeof Schema.Number;
26
+ height: typeof Schema.Number;
26
27
  }>>;
27
- }>>>, S.mutable<S.Struct<{
28
- node: S.optional<S.SchemaClass<string, string, never>>;
29
- }>>>, S.Struct<{
30
- type: S.Literal<["trigger"]>;
31
- functionTrigger: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
32
- readonly function: S.optional<S.SchemaClass<string, string, never>>;
33
- readonly enabled: S.optional<S.SchemaClass<boolean, boolean, never>>;
34
- readonly spec: S.optional<S.Union<[S.mutable<S.Struct<{
35
- type: S.Literal<[TriggerKind.Timer]>;
36
- cron: S.SchemaClass<string, string, never>;
37
- }>>, S.mutable<S.Struct<{
38
- type: S.Literal<[TriggerKind.Webhook]>;
39
- method: S.optional<S.SchemaClass<string, string, never>>;
40
- port: S.optional<S.SchemaClass<number, number, never>>;
41
- }>>, S.mutable<S.Struct<{
42
- type: S.Literal<[TriggerKind.Subscription]>;
43
- filter: S.Struct<{
44
- type: S.optional<S.SchemaClass<string, string, never>>;
45
- props: S.optional<S.Record$<typeof S.String, typeof S.Any>>;
28
+ }>>>, Schema.mutable<Schema.Struct<{
29
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
30
+ }>>>, Schema.Struct<{
31
+ type: Schema.Literal<["trigger"]>;
32
+ functionTrigger: Schema.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<Readonly<{
33
+ function: Schema.optional<Schema.SchemaClass<Ref<import("@dxos/echo-schema").Expando>, import("@dxos/echo-protocol").EncodedReference, never>>;
34
+ inputNodeId: Schema.optional<Schema.SchemaClass<string, string, never>>;
35
+ enabled: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
36
+ spec: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
37
+ kind: Schema.Literal<[TriggerKind.Timer]>;
38
+ cron: Schema.SchemaClass<string, string, never>;
39
+ }>>, Schema.mutable<Schema.Struct<{
40
+ kind: Schema.Literal<[TriggerKind.Webhook]>;
41
+ method: Schema.optional<Schema.SchemaClass<string, string, never>>;
42
+ port: Schema.optional<Schema.SchemaClass<number, number, never>>;
43
+ }>>, Schema.mutable<Schema.Struct<{
44
+ kind: Schema.Literal<[TriggerKind.Subscription]>;
45
+ filter: Schema.Struct<{
46
+ type: Schema.optional<Schema.SchemaClass<string, string, never>>;
47
+ props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
46
48
  }>;
47
- options: S.optional<S.Struct<{
48
- deep: S.optional<S.SchemaClass<boolean, boolean, never>>;
49
- delay: S.optional<S.SchemaClass<number, number, never>>;
49
+ options: Schema.optional<Schema.Struct<{
50
+ deep: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
51
+ delay: Schema.optional<Schema.SchemaClass<number, number, never>>;
50
52
  }>>;
51
- }>>, S.mutable<S.Struct<{
52
- type: S.Literal<[TriggerKind.Email]>;
53
- }>>, S.mutable<S.Struct<{
54
- type: S.Literal<[TriggerKind.Queue]>;
55
- queue: S.refine<string, typeof S.NonEmptyString>;
53
+ }>>, Schema.mutable<Schema.Struct<{
54
+ kind: Schema.Literal<[TriggerKind.Email]>;
55
+ }>>, Schema.mutable<Schema.Struct<{
56
+ kind: Schema.Literal<[TriggerKind.Queue]>;
57
+ queue: Schema.refine<string, typeof Schema.NonEmptyString>;
56
58
  }>>]>>;
57
- readonly meta: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
58
- }, import("@dxos/echo-schema").TypedObjectOptions>>>;
59
+ input: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
60
+ }>, import("@dxos/echo-schema").TypedObjectOptions>>>;
59
61
  }>>;
60
- export type TriggerShape = S.Schema.Type<typeof TriggerShape>;
62
+ export type TriggerShape = Schema.Schema.Type<typeof TriggerShape>;
61
63
  export type CreateTriggerProps = CreateShapeProps<Omit<TriggerShape, 'functionTrigger'>> & {
62
64
  spaceId?: SpaceId;
63
65
  triggerKind?: TriggerKind;
@@ -1 +1 @@
1
- {"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Trigger.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAUzC,OAAO,EAAiB,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAML,WAAW,EAGZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAO,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1E,eAAO,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MAAM,kBAAkB,GAAG,gBAAgB,CAAC,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC,GAAG;IACzF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,KAAG,YAWzD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,GAAI,WAAW,qBAAqB,kCAkChE,CAAC;AAsDF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAY/C,CAAC"}
@@ -1,15 +1,15 @@
1
+ import { type Schema } from 'effect';
1
2
  import { type JSX } from 'react';
2
- import { type S } from '@dxos/echo-schema';
3
3
  import { type Polygon, type Shape } from '@dxos/react-ui-canvas-editor';
4
4
  import { type BoxProps } from '../common';
5
5
  export type FunctionBodyProps = {
6
6
  shape: Shape;
7
7
  name?: string;
8
8
  content?: JSX.Element;
9
- inputSchema?: S.Schema.Any;
10
- outputSchema?: S.Schema.Any;
9
+ inputSchema?: Schema.Schema.Any;
10
+ outputSchema?: Schema.Schema.Any;
11
11
  } & Pick<BoxProps, 'status'>;
12
12
  export declare const FunctionBody: ({ shape, name, content, inputSchema, outputSchema, ...props }: FunctionBodyProps) => JSX.Element;
13
- export declare const getHeight: (input: S.Schema<any>) => number;
14
- export declare const createFunctionAnchors: (shape: Polygon, input?: S.Schema<any>, output?: S.Schema<any>) => Record<string, import("@dxos/react-ui-canvas-editor").Anchor>;
13
+ export declare const getHeight: (input: Schema.Schema<any>) => number;
14
+ export declare const createFunctionAnchors: (shape: Polygon, input?: Schema.Schema<any>, output?: Schema.Schema<any>) => Record<string, import("@dxos/react-ui-canvas-editor").Anchor>;
15
15
  //# sourceMappingURL=FunctionBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionBody.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/FunctionBody.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,GAAG,EAAoB,MAAM,OAAO,CAAC;AAG1D,OAAO,EAAO,KAAK,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAO,KAAK,QAAQ,EAA8B,MAAM,WAAW,CAAC;AAM3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;CAC7B,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAG7B,eAAO,MAAM,YAAY,kEAOtB,iBAAiB,gBAwEnB,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAG7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,UACzB,OAAO,UACP,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WACZ,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,kEAMtB,CAAC"}
1
+ {"version":3,"file":"FunctionBody.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/FunctionBody.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAa,MAAM,QAAQ,CAAC;AAChD,OAAc,EAAE,KAAK,GAAG,EAAoB,MAAM,OAAO,CAAC;AAI1D,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAO,KAAK,QAAQ,EAA8B,MAAM,WAAW,CAAC;AAM3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;CAClC,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAG7B,eAAO,MAAM,YAAY,GAAI,+DAO1B,iBAAiB,gBAwEnB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,WAGlD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,OAAO,OAAO,EACd,QAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAa,EACrC,SAAQ,MAAM,CAAC,MAAM,CAAC,GAAG,CAAc,kEAQxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TypeSelect.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/TypeSelect.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG9D,eAAO,MAAM,UAAU,6BAA8B,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,eAAe,CAAC,sBAoBpG,CAAC"}
1
+ {"version":3,"file":"TypeSelect.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/TypeSelect.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG9D,eAAO,MAAM,UAAU,GAAI,0BAA0B,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,eAAe,CAAC,sBAoBpG,CAAC"}