@dxos/react-ui-canvas-compute 0.8.3 → 0.8.4-main.1c7ec43d41
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/dist/lib/browser/index.mjs +1054 -1266
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +1054 -1266
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/DiagnosticOverlay.d.ts.map +1 -1
- package/dist/types/src/compute-layout.d.ts.map +1 -1
- package/dist/types/src/compute.stories.d.ts +33 -5
- package/dist/types/src/compute.stories.d.ts.map +1 -1
- package/dist/types/src/graph/controller.d.ts +45 -27
- package/dist/types/src/graph/controller.d.ts.map +1 -1
- package/dist/types/src/graph/node-defs.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeGraphController.d.ts +2 -2
- package/dist/types/src/hooks/useComputeGraphController.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeNodeState.d.ts +4 -4
- package/dist/types/src/hooks/useComputeNodeState.d.ts.map +1 -1
- package/dist/types/src/hooks/useGraphMonitor.d.ts +2 -2
- package/dist/types/src/hooks/useGraphMonitor.d.ts.map +1 -1
- package/dist/types/src/json.test.d.ts +1 -1
- package/dist/types/src/json.test.d.ts.map +1 -1
- package/dist/types/src/shapes/Append.d.ts +2 -2
- package/dist/types/src/shapes/Append.d.ts.map +1 -1
- package/dist/types/src/shapes/Array.d.ts +2 -2
- package/dist/types/src/shapes/Array.d.ts.map +1 -1
- package/dist/types/src/shapes/Audio.d.ts +2 -2
- package/dist/types/src/shapes/Audio.d.ts.map +1 -1
- package/dist/types/src/shapes/Beacon.d.ts +2 -2
- package/dist/types/src/shapes/Beacon.d.ts.map +1 -1
- package/dist/types/src/shapes/Boolean.d.ts +8 -8
- package/dist/types/src/shapes/Boolean.d.ts.map +1 -1
- package/dist/types/src/shapes/Chat.d.ts +2 -2
- package/dist/types/src/shapes/Chat.d.ts.map +1 -1
- package/dist/types/src/shapes/Constant.d.ts +2 -2
- package/dist/types/src/shapes/Constant.d.ts.map +1 -1
- package/dist/types/src/shapes/Database.d.ts +2 -2
- package/dist/types/src/shapes/Database.d.ts.map +1 -1
- package/dist/types/src/shapes/{Queue.d.ts → Feed.d.ts} +10 -10
- package/dist/types/src/shapes/Feed.d.ts.map +1 -0
- package/dist/types/src/shapes/Function.d.ts +2 -2
- package/dist/types/src/shapes/Function.d.ts.map +1 -1
- package/dist/types/src/shapes/Gpt.d.ts +2 -2
- package/dist/types/src/shapes/Gpt.d.ts.map +1 -1
- package/dist/types/src/shapes/GptRealtime.d.ts +2 -2
- package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -1
- package/dist/types/src/shapes/Json.d.ts +3 -3
- package/dist/types/src/shapes/Json.d.ts.map +1 -1
- package/dist/types/src/shapes/Logic.d.ts +3 -3
- package/dist/types/src/shapes/Logic.d.ts.map +1 -1
- package/dist/types/src/shapes/RNG.d.ts +3 -3
- package/dist/types/src/shapes/RNG.d.ts.map +1 -1
- package/dist/types/src/shapes/Scope.d.ts +2 -2
- package/dist/types/src/shapes/Scope.d.ts.map +1 -1
- package/dist/types/src/shapes/Surface.d.ts +2 -2
- package/dist/types/src/shapes/Surface.d.ts.map +1 -1
- package/dist/types/src/shapes/Switch.d.ts +2 -2
- package/dist/types/src/shapes/Switch.d.ts.map +1 -1
- package/dist/types/src/shapes/Table.d.ts +2 -2
- package/dist/types/src/shapes/Table.d.ts.map +1 -1
- package/dist/types/src/shapes/Template.d.ts +3 -3
- package/dist/types/src/shapes/Template.d.ts.map +1 -1
- package/dist/types/src/shapes/Text.d.ts +2 -2
- package/dist/types/src/shapes/Text.d.ts.map +1 -1
- package/dist/types/src/shapes/TextToImage.d.ts +2 -2
- package/dist/types/src/shapes/TextToImage.d.ts.map +1 -1
- package/dist/types/src/shapes/Thread.d.ts +2 -2
- package/dist/types/src/shapes/Thread.d.ts.map +1 -1
- package/dist/types/src/shapes/Trigger.d.ts +8 -35
- package/dist/types/src/shapes/Trigger.d.ts.map +1 -1
- package/dist/types/src/shapes/common/Box.d.ts +4 -4
- package/dist/types/src/shapes/common/Box.d.ts.map +1 -1
- package/dist/types/src/shapes/common/FunctionBody.d.ts +3 -3
- package/dist/types/src/shapes/common/FunctionBody.d.ts.map +1 -1
- package/dist/types/src/shapes/common/TypeSelect.d.ts +1 -1
- package/dist/types/src/shapes/common/TypeSelect.d.ts.map +1 -1
- package/dist/types/src/shapes/defs.d.ts +3 -2
- package/dist/types/src/shapes/defs.d.ts.map +1 -1
- package/dist/types/src/shapes/index.d.ts +2 -2
- package/dist/types/src/shapes/index.d.ts.map +1 -1
- package/dist/types/src/testing/circuits.d.ts +18 -24
- package/dist/types/src/testing/circuits.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +61 -54
- package/src/README.md +0 -3
- package/src/compute-layout.ts +1 -1
- package/src/compute.stories.tsx +104 -140
- package/src/graph/controller.ts +153 -81
- package/src/graph/node-defs.ts +34 -33
- package/src/hooks/useComputeGraphController.ts +2 -2
- package/src/hooks/useComputeNodeState.ts +9 -8
- package/src/hooks/useGraphMonitor.ts +11 -10
- package/src/json.test.ts +4 -4
- package/src/registry.ts +4 -4
- package/src/schema.test.ts +13 -13
- package/src/shapes/Append.tsx +3 -3
- package/src/shapes/Array.tsx +3 -3
- package/src/shapes/Audio.tsx +4 -4
- package/src/shapes/Beacon.tsx +4 -5
- package/src/shapes/Boolean.tsx +4 -4
- package/src/shapes/Chat.tsx +3 -3
- package/src/shapes/Constant.tsx +3 -3
- package/src/shapes/Database.tsx +2 -2
- package/src/shapes/{Queue.tsx → Feed.tsx} +29 -23
- package/src/shapes/Function.tsx +19 -16
- package/src/shapes/Gpt.tsx +12 -6
- package/src/shapes/GptRealtime.tsx +2 -2
- package/src/shapes/Json.tsx +12 -5
- package/src/shapes/Logic.tsx +3 -3
- package/src/shapes/RNG.tsx +9 -6
- package/src/shapes/Scope.tsx +4 -4
- package/src/shapes/Surface.tsx +15 -6
- package/src/shapes/Switch.tsx +3 -3
- package/src/shapes/Table.tsx +7 -6
- package/src/shapes/Template.tsx +5 -5
- package/src/shapes/Text.tsx +4 -4
- package/src/shapes/TextToImage.tsx +2 -2
- package/src/shapes/Thread.tsx +21 -14
- package/src/shapes/Trigger.tsx +47 -59
- package/src/shapes/common/Box.tsx +7 -10
- package/src/shapes/common/FunctionBody.tsx +5 -4
- package/src/shapes/common/TypeSelect.tsx +1 -1
- package/src/shapes/defs.ts +5 -4
- package/src/shapes/index.ts +2 -2
- package/src/testing/circuits.ts +10 -19
- package/dist/lib/node/index.cjs +0 -2896
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/types/src/shapes/Queue.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
4
|
import { type CreateShapeProps } from './defs';
|
|
@@ -6,8 +6,8 @@ export declare const TableShape: Schema.extend<Schema.extend<Schema.mutable<Sche
|
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly data?: any;
|
|
8
8
|
}, {
|
|
9
|
-
readonly id: string;
|
|
10
9
|
readonly data?: any;
|
|
10
|
+
readonly id: string;
|
|
11
11
|
}, never>, Schema.Struct<{
|
|
12
12
|
type: typeof Schema.String;
|
|
13
13
|
text: Schema.optional<typeof Schema.String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAAgB,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,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,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
3
3
|
import { type CreateShapeProps } from './defs';
|
|
4
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
|
-
readonly id: string;
|
|
9
8
|
readonly data?: any;
|
|
9
|
+
readonly id: string;
|
|
10
10
|
}, never>, Schema.Struct<{
|
|
11
11
|
type: typeof Schema.String;
|
|
12
12
|
text: Schema.optional<typeof Schema.String>;
|
|
@@ -50,7 +50,7 @@ export declare const createTemplate: (props: CreateTemplateProps) => {
|
|
|
50
50
|
node?: string | undefined;
|
|
51
51
|
} & {
|
|
52
52
|
readonly type: "template";
|
|
53
|
-
readonly valueType?: "
|
|
53
|
+
readonly valueType?: "boolean" | "number" | "object" | "string" | undefined;
|
|
54
54
|
};
|
|
55
55
|
export declare const templateShape: ShapeDef<TemplateShape>;
|
|
56
56
|
//# sourceMappingURL=Template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Template.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Template.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAEL,KAAK,QAAQ,EAId,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAgB,KAAK,gBAAgB,EAAe,MAAM,QAAQ,CAAC;AAM1E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;GAMzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAmDrE,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtF,eAAO,MAAM,cAAc,UAAW,mBAAmB;;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAEhG,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,aAAa,CAQjD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
4
|
import { type CreateShapeProps } from './defs';
|
|
@@ -6,8 +6,8 @@ export declare const TextShape: Schema.extend<Schema.extend<Schema.mutable<Schem
|
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly data?: any;
|
|
8
8
|
}, {
|
|
9
|
-
readonly id: string;
|
|
10
9
|
readonly data?: any;
|
|
10
|
+
readonly id: string;
|
|
11
11
|
}, never>, Schema.Struct<{
|
|
12
12
|
type: typeof Schema.String;
|
|
13
13
|
text: Schema.optional<typeof Schema.String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAW,MAAM,8BAA8B,CAAC;AAKhG,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAE1F,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,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,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
4
|
import { type CreateShapeProps } from './defs';
|
|
@@ -6,8 +6,8 @@ export declare const TextToImageShape: Schema.extend<Schema.extend<Schema.mutabl
|
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly data?: any;
|
|
8
8
|
}, {
|
|
9
|
-
readonly id: string;
|
|
10
9
|
readonly data?: any;
|
|
10
|
+
readonly id: string;
|
|
11
11
|
}, never>, Schema.Struct<{
|
|
12
12
|
type: typeof Schema.String;
|
|
13
13
|
text: Schema.optional<typeof Schema.String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextToImage.d.ts","sourceRoot":"","sources":["../../../../src/shapes/TextToImage.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"TextToImage.d.ts","sourceRoot":"","sources":["../../../../src/shapes/TextToImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAE1F,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;GAK5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB,UAAW,sBAAsB;;;;;;;;;;;;;;;;;;;CACuC,CAAC;AAEvG,eAAO,MAAM,oBAAoB,cAAe,mBAAmB,CAAC,gBAAgB,CAAC,sBAEpF,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAOvD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
4
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
@@ -7,8 +7,8 @@ export declare const ThreadShape: Schema.extend<Schema.extend<Schema.mutable<Sch
|
|
|
7
7
|
readonly id: string;
|
|
8
8
|
readonly data?: any;
|
|
9
9
|
}, {
|
|
10
|
-
readonly id: string;
|
|
11
10
|
readonly data?: any;
|
|
11
|
+
readonly id: string;
|
|
12
12
|
}, never>, Schema.Struct<{
|
|
13
13
|
type: typeof Schema.String;
|
|
14
14
|
text: Schema.optional<typeof Schema.String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Thread.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Thread.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAKvF,OAAO,EAAgB,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,UAAW,iBAAiB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE5F,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,sBAoB1E,CAAC;AAEF,eAAO,MAAM,UAAU,yBAA0B,eAAe,CAAC;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,sBA4B9E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAQ7C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Trigger } from '@dxos/compute';
|
|
4
|
+
import { Ref } from '@dxos/echo';
|
|
5
5
|
import { SpaceId } from '@dxos/keys';
|
|
6
6
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
7
7
|
import { type CreateShapeProps } from './defs';
|
|
@@ -9,8 +9,8 @@ export declare const TriggerShape: Schema.extend<Schema.extend<Schema.mutable<Sc
|
|
|
9
9
|
readonly id: string;
|
|
10
10
|
readonly data?: any;
|
|
11
11
|
}, {
|
|
12
|
-
readonly id: string;
|
|
13
12
|
readonly data?: any;
|
|
13
|
+
readonly id: string;
|
|
14
14
|
}, never>, Schema.Struct<{
|
|
15
15
|
type: typeof Schema.String;
|
|
16
16
|
text: Schema.optional<typeof Schema.String>;
|
|
@@ -29,40 +29,13 @@ export declare const TriggerShape: Schema.extend<Schema.extend<Schema.mutable<Sc
|
|
|
29
29
|
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
30
30
|
}>>>, Schema.Struct<{
|
|
31
31
|
type: Schema.Literal<["trigger"]>;
|
|
32
|
-
functionTrigger: Schema.optional<import("@dxos/echo
|
|
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>>;
|
|
48
|
-
}>;
|
|
49
|
-
options: Schema.optional<Schema.Struct<{
|
|
50
|
-
deep: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
51
|
-
delay: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
52
|
-
}>>;
|
|
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>;
|
|
58
|
-
}>>]>>;
|
|
59
|
-
input: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
60
|
-
}>, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
32
|
+
functionTrigger: Schema.optional<Ref.RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Trigger.Trigger>>;
|
|
61
33
|
}>>;
|
|
62
|
-
export
|
|
34
|
+
export interface TriggerShape extends Schema.Schema.Type<typeof TriggerShape> {
|
|
35
|
+
}
|
|
63
36
|
export type CreateTriggerProps = CreateShapeProps<Omit<TriggerShape, 'functionTrigger'>> & {
|
|
64
37
|
spaceId?: SpaceId;
|
|
65
|
-
triggerKind?:
|
|
38
|
+
triggerKind?: Trigger.Kind;
|
|
66
39
|
};
|
|
67
40
|
export declare const createTrigger: (props: CreateTriggerProps) => TriggerShape;
|
|
68
41
|
export type TriggerComponentProps = ShapeComponentProps<TriggerShape>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Trigger.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Trigger.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,OAAO,EAAgB,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAsB,GAAG,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EAAO,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAAgB,KAAK,gBAAgB,EAAe,MAAM,QAAQ,CAAC;AAE1E,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;GAMxB,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC;CAAG;AAEhF,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC,GAAG;IACzF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,KAAG,YAWzD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,cAAe,qBAAqB,kCAsChE,CAAC;AAsDF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAQ/C,CAAC"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import React, { type PropsWithChildren, type ReactNode } from 'react';
|
|
2
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
-
import { type
|
|
3
|
+
import { type CanvasBoard } from '@dxos/react-ui-canvas-editor';
|
|
4
4
|
export declare const headerHeight = 32;
|
|
5
5
|
export declare const footerHeight = 32;
|
|
6
6
|
export type BoxActionHandler = (action: 'run' | 'open' | 'close') => void;
|
|
7
7
|
export type BoxProps = PropsWithChildren<ThemedClassName<{
|
|
8
|
-
shape: Shape;
|
|
8
|
+
shape: CanvasBoard.Shape;
|
|
9
9
|
title?: string;
|
|
10
10
|
status?: string | ReactNode;
|
|
11
11
|
open?: boolean;
|
|
12
12
|
onAction?: BoxActionHandler;
|
|
13
13
|
}>>;
|
|
14
14
|
export declare const Box: React.ForwardRefExoticComponent<Omit<{
|
|
15
|
-
shape: Shape;
|
|
15
|
+
shape: CanvasBoard.Shape;
|
|
16
16
|
title?: string;
|
|
17
17
|
status?: string | ReactNode;
|
|
18
18
|
open?: boolean;
|
|
19
19
|
onAction?: BoxActionHandler;
|
|
20
20
|
}, "className"> & {
|
|
21
|
-
classNames?: import("@dxos/
|
|
21
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
22
22
|
} & {
|
|
23
23
|
children?: ReactNode | undefined;
|
|
24
24
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/Box.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/Box.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAGlF,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,KAAK,WAAW,EAAiC,MAAM,8BAA8B,CAAC;AAG/F,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;AAE1E,MAAM,MAAM,QAAQ,GAAG,iBAAiB,CACtC,eAAe,CAAC;IACd,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B,CAAC,CACH,CAAC;AAEF,eAAO,MAAM,GAAG;WARL,WAAW,CAAC,KAAK;YAChB,MAAM;aACL,MAAM,GAAG,SAAS;WACpB,OAAO;eACH,gBAAgB;;;;;wCAgD9B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type * as Schema from 'effect/Schema';
|
|
2
2
|
import { type JSX } from 'react';
|
|
3
|
-
import { type
|
|
3
|
+
import { type CanvasBoard, type Polygon } from '@dxos/react-ui-canvas-editor';
|
|
4
4
|
import { type BoxProps } from '../common';
|
|
5
5
|
export type FunctionBodyProps = {
|
|
6
|
-
shape: Shape;
|
|
6
|
+
shape: CanvasBoard.Shape;
|
|
7
7
|
name?: string;
|
|
8
8
|
content?: JSX.Element;
|
|
9
9
|
inputSchema?: Schema.Schema.Any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionBody.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/FunctionBody.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"FunctionBody.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/FunctionBody.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAE7C,OAAc,EAAE,KAAK,GAAG,EAAoB,MAAM,OAAO,CAAC;AAI1D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAG9E,OAAO,EAAO,KAAK,QAAQ,EAA8B,MAAM,WAAW,CAAC;AAM3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC;IACzB,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,kEAOtB,iBAAiB,gBAwEnB,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,WAGlD,CAAC;AAEF,eAAO,MAAM,qBAAqB,UACzB,OAAO,UACP,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,WACjB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,kEAQ3B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type SelectRootProps } from '@dxos/react-ui';
|
|
3
|
-
export declare const TypeSelect: ({ value, onValueChange }: Pick<SelectRootProps,
|
|
3
|
+
export declare const TypeSelect: ({ value, onValueChange }: Pick<SelectRootProps, 'value' | 'onValueChange'>) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=TypeSelect.d.ts.map
|
|
@@ -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,
|
|
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,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import * as SchemaAST from 'effect/SchemaAST';
|
|
2
3
|
import { Polygon } from '@dxos/react-ui-canvas-editor';
|
|
3
4
|
import { type MakeOptional } from '@dxos/util';
|
|
4
5
|
export type PropertyKind = 'input' | 'output';
|
|
@@ -12,8 +13,8 @@ export declare const ComputeShape: Schema.extend<Schema.mutable<Schema.extend<Sc
|
|
|
12
13
|
readonly id: string;
|
|
13
14
|
readonly data?: any;
|
|
14
15
|
}, {
|
|
15
|
-
readonly id: string;
|
|
16
16
|
readonly data?: any;
|
|
17
|
+
readonly id: string;
|
|
17
18
|
}, never>, Schema.Struct<{
|
|
18
19
|
type: typeof Schema.String;
|
|
19
20
|
text: Schema.optional<typeof Schema.String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../src/shapes/defs.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../src/shapes/defs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAI9C,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAM/C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE9C,eAAO,MAAM,aAAa,QAAS,SAAS,CAAC,GAAG;;GACqC,CAAC;AAEtF,eAAO,MAAM,cAAc,SAAU,YAAY,8BACrB,CAAC;AAE7B,eAAO,MAAM,aAAa,OAAQ,MAAM,KAAG,CAAC,YAAY,GAAG,SAAS,EAAE,MAAM,CAG3E,CAAC;AAMF,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAExG,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;IAMxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,YAAY,mBAAmB,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,CAK7G,CAAC"}
|
|
@@ -8,11 +8,12 @@ export * from './Boolean';
|
|
|
8
8
|
export * from './Chat';
|
|
9
9
|
export * from './Constant';
|
|
10
10
|
export * from './Database';
|
|
11
|
+
export * from './Feed';
|
|
11
12
|
export * from './Function';
|
|
12
13
|
export * from './Gpt';
|
|
14
|
+
export * from './GptRealtime';
|
|
13
15
|
export * from './Json';
|
|
14
16
|
export * from './Logic';
|
|
15
|
-
export * from './Queue';
|
|
16
17
|
export * from './RNG';
|
|
17
18
|
export * from './Scope';
|
|
18
19
|
export * from './Surface';
|
|
@@ -23,5 +24,4 @@ export * from './Text';
|
|
|
23
24
|
export * from './Thread';
|
|
24
25
|
export * from './TextToImage';
|
|
25
26
|
export * from './Trigger';
|
|
26
|
-
export * from './GptRealtime';
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shapes/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AAEvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shapes/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AAEvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
|
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import type { ServiceContainer } from '@dxos/functions';
|
|
2
1
|
import { CanvasGraphModel } from '@dxos/react-ui-canvas-editor';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
} & {
|
|
23
|
-
node?: string | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
};
|
|
2
|
+
export declare const createEmptyCircuit: () => CanvasGraphModel<{
|
|
3
|
+
id: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
type: string;
|
|
6
|
+
text?: string | undefined;
|
|
7
|
+
guide?: boolean | undefined;
|
|
8
|
+
classNames?: string | undefined;
|
|
9
|
+
center: {
|
|
10
|
+
readonly x: number;
|
|
11
|
+
readonly y: number;
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
} & {
|
|
18
|
+
node?: string | undefined;
|
|
19
|
+
}>;
|
|
26
20
|
export declare const createBasicCircuit: () => CanvasGraphModel<{
|
|
27
21
|
id: string;
|
|
28
22
|
data?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circuits.d.ts","sourceRoot":"","sources":["../../../../src/testing/circuits.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"circuits.d.ts","sourceRoot":"","sources":["../../../../src/testing/circuits.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAyD,MAAM,8BAA8B,CAAC;AAiCvH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;EAE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;EAa9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;EAiBlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;EAmB9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;EA2BhC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;EAiEjC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;EAqBjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa;IACxC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;;;;;;;;;;;;;;;;;EA6DA,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;EAIpC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;EAS9B,CAAC"}
|