@dxos/react-ui-canvas-compute 0.8.2-main.2f9c567 → 0.8.2-main.36232bc
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 +120 -121
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +160 -161
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +120 -121
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/graph/controller.d.ts +17 -1
- package/dist/types/src/graph/controller.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeNodeState.d.ts.map +1 -1
- package/dist/types/src/hooks/useGraphMonitor.d.ts.map +1 -1
- package/dist/types/src/json.test.d.ts +18 -18
- package/dist/types/src/json.test.d.ts.map +1 -1
- package/dist/types/src/shapes/Append.d.ts +19 -19
- package/dist/types/src/shapes/Append.d.ts.map +1 -1
- package/dist/types/src/shapes/Array.d.ts +19 -19
- package/dist/types/src/shapes/Array.d.ts.map +1 -1
- package/dist/types/src/shapes/Audio.d.ts +19 -19
- package/dist/types/src/shapes/Audio.d.ts.map +1 -1
- package/dist/types/src/shapes/Beacon.d.ts +19 -19
- package/dist/types/src/shapes/Beacon.d.ts.map +1 -1
- package/dist/types/src/shapes/Boolean.d.ts +70 -70
- package/dist/types/src/shapes/Boolean.d.ts.map +1 -1
- package/dist/types/src/shapes/Chat.d.ts +19 -19
- package/dist/types/src/shapes/Chat.d.ts.map +1 -1
- package/dist/types/src/shapes/Constant.d.ts +20 -20
- package/dist/types/src/shapes/Constant.d.ts.map +1 -1
- package/dist/types/src/shapes/Database.d.ts +19 -19
- package/dist/types/src/shapes/Database.d.ts.map +1 -1
- package/dist/types/src/shapes/Function.d.ts +19 -19
- package/dist/types/src/shapes/Function.d.ts.map +1 -1
- package/dist/types/src/shapes/Gpt.d.ts +19 -19
- package/dist/types/src/shapes/Gpt.d.ts.map +1 -1
- package/dist/types/src/shapes/GptRealtime.d.ts +19 -19
- package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -1
- package/dist/types/src/shapes/Json.d.ts +37 -37
- package/dist/types/src/shapes/Json.d.ts.map +1 -1
- package/dist/types/src/shapes/Logic.d.ts +37 -37
- package/dist/types/src/shapes/Logic.d.ts.map +1 -1
- package/dist/types/src/shapes/Queue.d.ts +19 -19
- package/dist/types/src/shapes/Queue.d.ts.map +1 -1
- package/dist/types/src/shapes/RNG.d.ts +21 -21
- package/dist/types/src/shapes/RNG.d.ts.map +1 -1
- package/dist/types/src/shapes/Scope.d.ts +19 -19
- package/dist/types/src/shapes/Scope.d.ts.map +1 -1
- package/dist/types/src/shapes/Surface.d.ts +19 -19
- package/dist/types/src/shapes/Surface.d.ts.map +1 -1
- package/dist/types/src/shapes/Switch.d.ts +19 -19
- package/dist/types/src/shapes/Switch.d.ts.map +1 -1
- package/dist/types/src/shapes/Table.d.ts +19 -19
- package/dist/types/src/shapes/Table.d.ts.map +1 -1
- package/dist/types/src/shapes/Template.d.ts +20 -20
- package/dist/types/src/shapes/Template.d.ts.map +1 -1
- package/dist/types/src/shapes/Text.d.ts +19 -19
- package/dist/types/src/shapes/Text.d.ts.map +1 -1
- package/dist/types/src/shapes/TextToImage.d.ts +19 -19
- package/dist/types/src/shapes/TextToImage.d.ts.map +1 -1
- package/dist/types/src/shapes/Thread.d.ts +19 -19
- package/dist/types/src/shapes/Thread.d.ts.map +1 -1
- package/dist/types/src/shapes/Trigger.d.ts +45 -47
- package/dist/types/src/shapes/Trigger.d.ts.map +1 -1
- package/dist/types/src/shapes/common/FunctionBody.d.ts +5 -5
- package/dist/types/src/shapes/common/FunctionBody.d.ts.map +1 -1
- package/dist/types/src/shapes/defs.d.ts +19 -18
- package/dist/types/src/shapes/defs.d.ts.map +1 -1
- package/package.json +39 -40
- package/src/compute.stories.tsx +1 -1
- package/src/hooks/useComputeNodeState.ts +3 -3
- package/src/hooks/useGraphMonitor.ts +6 -4
- package/src/json.test.ts +10 -10
- package/src/schema.test.ts +5 -5
- package/src/shapes/Append.tsx +5 -5
- package/src/shapes/Array.tsx +5 -5
- package/src/shapes/Audio.tsx +5 -5
- package/src/shapes/Beacon.tsx +5 -5
- package/src/shapes/Boolean.tsx +5 -5
- package/src/shapes/Chat.tsx +5 -5
- package/src/shapes/Constant.tsx +6 -6
- package/src/shapes/Database.tsx +5 -5
- package/src/shapes/Function.tsx +6 -7
- package/src/shapes/Gpt.tsx +5 -5
- package/src/shapes/GptRealtime.tsx +8 -8
- package/src/shapes/Json.tsx +9 -9
- package/src/shapes/Logic.tsx +9 -9
- package/src/shapes/Queue.tsx +5 -5
- package/src/shapes/RNG.tsx +7 -7
- package/src/shapes/Scope.tsx +5 -5
- package/src/shapes/Surface.tsx +5 -5
- package/src/shapes/Switch.tsx +5 -5
- package/src/shapes/Table.tsx +6 -6
- package/src/shapes/Template.tsx +7 -8
- package/src/shapes/Text.tsx +5 -5
- package/src/shapes/TextToImage.tsx +5 -5
- package/src/shapes/Thread.tsx +6 -6
- package/src/shapes/Trigger.tsx +16 -15
- package/src/shapes/common/FunctionBody.tsx +9 -11
- package/src/shapes/defs.ts +9 -9
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
1
|
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:
|
|
5
|
+
export declare const SwitchShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.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>,
|
|
12
|
-
type: typeof
|
|
13
|
-
text:
|
|
14
|
-
guide:
|
|
15
|
-
classNames:
|
|
16
|
-
}>>,
|
|
17
|
-
center:
|
|
18
|
-
x: typeof
|
|
19
|
-
y: typeof
|
|
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;
|
|
20
20
|
}>;
|
|
21
|
-
size:
|
|
22
|
-
width: typeof
|
|
23
|
-
height: typeof
|
|
21
|
+
size: S.mutable<S.Struct<{
|
|
22
|
+
width: typeof S.Number;
|
|
23
|
+
height: typeof S.Number;
|
|
24
24
|
}>>;
|
|
25
|
-
}>>>,
|
|
26
|
-
node:
|
|
27
|
-
}>>>,
|
|
28
|
-
type:
|
|
25
|
+
}>>>, S.mutable<S.Struct<{
|
|
26
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
27
|
+
}>>>, S.Struct<{
|
|
28
|
+
type: S.Literal<["switch"]>;
|
|
29
29
|
}>>;
|
|
30
|
-
export type SwitchShape =
|
|
30
|
+
export type SwitchShape = S.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,
|
|
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,MAAC;WAIL,EAAC,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAI,QAC7C,QAAO,EAAG,MACZ;;YACY,EAAG,MAAM;kBAChB,EAAG,MAAM;kBACX,EAAG,MAAM;;UACV,EAAG,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAI,MAAK;uBAAyB,EAAG,MAAK;;;;;;GAhCvF,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;;;;;;;;;;;;;;;;;;;CACoC,CAAC;AAG1F,eAAO,MAAM,eAAe,cAAe,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';
|
|
2
1
|
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:
|
|
5
|
+
export declare const TableShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.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>,
|
|
12
|
-
type: typeof
|
|
13
|
-
text:
|
|
14
|
-
guide:
|
|
15
|
-
classNames:
|
|
16
|
-
}>>,
|
|
17
|
-
center:
|
|
18
|
-
x: typeof
|
|
19
|
-
y: typeof
|
|
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;
|
|
20
20
|
}>;
|
|
21
|
-
size:
|
|
22
|
-
width: typeof
|
|
23
|
-
height: typeof
|
|
21
|
+
size: S.mutable<S.Struct<{
|
|
22
|
+
width: typeof S.Number;
|
|
23
|
+
height: typeof S.Number;
|
|
24
24
|
}>>;
|
|
25
|
-
}>>>,
|
|
26
|
-
node:
|
|
27
|
-
}>>>,
|
|
28
|
-
type:
|
|
25
|
+
}>>>, S.mutable<S.Struct<{
|
|
26
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
27
|
+
}>>>, S.Struct<{
|
|
28
|
+
type: S.Literal<["table"]>;
|
|
29
29
|
}>>;
|
|
30
|
-
export type TableShape =
|
|
30
|
+
export type TableShape = S.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,
|
|
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,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S } from '@dxos/echo-schema';
|
|
2
2
|
import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
3
3
|
import { type CreateShapeProps } from './defs';
|
|
4
|
-
export declare const TemplateShape:
|
|
4
|
+
export declare const TemplateShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.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>,
|
|
11
|
-
type: typeof
|
|
12
|
-
text:
|
|
13
|
-
guide:
|
|
14
|
-
classNames:
|
|
15
|
-
}>>,
|
|
16
|
-
center:
|
|
17
|
-
x: typeof
|
|
18
|
-
y: typeof
|
|
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;
|
|
19
19
|
}>;
|
|
20
|
-
size:
|
|
21
|
-
width: typeof
|
|
22
|
-
height: typeof
|
|
20
|
+
size: S.mutable<S.Struct<{
|
|
21
|
+
width: typeof S.Number;
|
|
22
|
+
height: typeof S.Number;
|
|
23
23
|
}>>;
|
|
24
|
-
}>>>,
|
|
25
|
-
node:
|
|
26
|
-
}>>>,
|
|
27
|
-
type:
|
|
28
|
-
valueType:
|
|
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"]>>;
|
|
29
29
|
}>>;
|
|
30
|
-
export type TemplateShape =
|
|
30
|
+
export type TemplateShape = S.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":"
|
|
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,QAEE,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAC1C,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAE7C,EAAG,MAAM;kBACX,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAGjD,EACH,MAAC;uBAEC,EAAA,MAAG;;;;;;;GAlCR,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAmDhE,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,33 +1,33 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
1
|
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:
|
|
5
|
+
export declare const TextShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.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>,
|
|
12
|
-
type: typeof
|
|
13
|
-
text:
|
|
14
|
-
guide:
|
|
15
|
-
classNames:
|
|
16
|
-
}>>,
|
|
17
|
-
center:
|
|
18
|
-
x: typeof
|
|
19
|
-
y: typeof
|
|
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;
|
|
20
20
|
}>;
|
|
21
|
-
size:
|
|
22
|
-
width: typeof
|
|
23
|
-
height: typeof
|
|
21
|
+
size: S.mutable<S.Struct<{
|
|
22
|
+
width: typeof S.Number;
|
|
23
|
+
height: typeof S.Number;
|
|
24
24
|
}>>;
|
|
25
|
-
}>>>,
|
|
26
|
-
node:
|
|
27
|
-
}>>>,
|
|
28
|
-
type:
|
|
25
|
+
}>>>, S.mutable<S.Struct<{
|
|
26
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
27
|
+
}>>>, S.Struct<{
|
|
28
|
+
type: S.Literal<["text"]>;
|
|
29
29
|
}>>;
|
|
30
|
-
export type TextShape =
|
|
30
|
+
export type TextShape = S.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,
|
|
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,33 +1,33 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
1
|
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:
|
|
5
|
+
export declare const TextToImageShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.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>,
|
|
12
|
-
type: typeof
|
|
13
|
-
text:
|
|
14
|
-
guide:
|
|
15
|
-
classNames:
|
|
16
|
-
}>>,
|
|
17
|
-
center:
|
|
18
|
-
x: typeof
|
|
19
|
-
y: typeof
|
|
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;
|
|
20
20
|
}>;
|
|
21
|
-
size:
|
|
22
|
-
width: typeof
|
|
23
|
-
height: typeof
|
|
21
|
+
size: S.mutable<S.Struct<{
|
|
22
|
+
width: typeof S.Number;
|
|
23
|
+
height: typeof S.Number;
|
|
24
24
|
}>>;
|
|
25
|
-
}>>>,
|
|
26
|
-
node:
|
|
27
|
-
}>>>,
|
|
28
|
-
type:
|
|
25
|
+
}>>>, S.mutable<S.Struct<{
|
|
26
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
27
|
+
}>>>, S.Struct<{
|
|
28
|
+
type: S.Literal<["text-to-image"]>;
|
|
29
29
|
}>>;
|
|
30
|
-
export type TextToImageShape =
|
|
30
|
+
export type TextToImageShape = S.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,
|
|
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,MAAM;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;GArB7a,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtE,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,34 +1,34 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
1
|
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:
|
|
6
|
+
export declare const ThreadShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.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>,
|
|
13
|
-
type: typeof
|
|
14
|
-
text:
|
|
15
|
-
guide:
|
|
16
|
-
classNames:
|
|
17
|
-
}>>,
|
|
18
|
-
center:
|
|
19
|
-
x: typeof
|
|
20
|
-
y: typeof
|
|
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;
|
|
21
21
|
}>;
|
|
22
|
-
size:
|
|
23
|
-
width: typeof
|
|
24
|
-
height: typeof
|
|
22
|
+
size: S.mutable<S.Struct<{
|
|
23
|
+
width: typeof S.Number;
|
|
24
|
+
height: typeof S.Number;
|
|
25
25
|
}>>;
|
|
26
|
-
}>>>,
|
|
27
|
-
node:
|
|
28
|
-
}>>>,
|
|
29
|
-
type:
|
|
26
|
+
}>>>, S.mutable<S.Struct<{
|
|
27
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
28
|
+
}>>>, S.Struct<{
|
|
29
|
+
type: S.Literal<["thread"]>;
|
|
30
30
|
}>>;
|
|
31
|
-
export type ThreadShape =
|
|
31
|
+
export type ThreadShape = S.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,
|
|
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,65 +1,63 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { TriggerKind } from '@dxos/functions';
|
|
2
|
+
import { S } from '@dxos/echo-schema';
|
|
3
|
+
import { TriggerKind } from '@dxos/functions/types';
|
|
5
4
|
import { SpaceId } from '@dxos/keys';
|
|
6
5
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
7
6
|
import { type CreateShapeProps } from './defs';
|
|
8
|
-
export declare const TriggerShape:
|
|
7
|
+
export declare const TriggerShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
|
|
9
8
|
readonly id: string;
|
|
10
9
|
readonly data?: any;
|
|
11
10
|
}, {
|
|
12
11
|
readonly id: string;
|
|
13
12
|
readonly data?: any;
|
|
14
|
-
}, never>,
|
|
15
|
-
type: typeof
|
|
16
|
-
text:
|
|
17
|
-
guide:
|
|
18
|
-
classNames:
|
|
19
|
-
}>>,
|
|
20
|
-
center:
|
|
21
|
-
x: typeof
|
|
22
|
-
y: typeof
|
|
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;
|
|
23
22
|
}>;
|
|
24
|
-
size:
|
|
25
|
-
width: typeof
|
|
26
|
-
height: typeof
|
|
23
|
+
size: S.mutable<S.Struct<{
|
|
24
|
+
width: typeof S.Number;
|
|
25
|
+
height: typeof S.Number;
|
|
27
26
|
}>>;
|
|
28
|
-
}>>>,
|
|
29
|
-
node:
|
|
30
|
-
}>>>,
|
|
31
|
-
type:
|
|
32
|
-
functionTrigger:
|
|
33
|
-
function:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
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>>;
|
|
48
46
|
}>;
|
|
49
|
-
options:
|
|
50
|
-
deep:
|
|
51
|
-
delay:
|
|
47
|
+
options: S.optional<S.Struct<{
|
|
48
|
+
deep: S.optional<S.SchemaClass<boolean, boolean, never>>;
|
|
49
|
+
delay: S.optional<S.SchemaClass<number, number, never>>;
|
|
52
50
|
}>>;
|
|
53
|
-
}>>,
|
|
54
|
-
type:
|
|
55
|
-
}>>,
|
|
56
|
-
type:
|
|
57
|
-
queue:
|
|
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>;
|
|
58
56
|
}>>]>>;
|
|
59
|
-
|
|
60
|
-
}
|
|
57
|
+
readonly meta: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
58
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
61
59
|
}>>;
|
|
62
|
-
export type TriggerShape =
|
|
60
|
+
export type TriggerShape = S.Schema.Type<typeof TriggerShape>;
|
|
63
61
|
export type CreateTriggerProps = CreateShapeProps<Omit<TriggerShape, 'functionTrigger'>> & {
|
|
64
62
|
spaceId?: SpaceId;
|
|
65
63
|
triggerKind?: TriggerKind;
|
|
@@ -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,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,MAAM,YAAY;;;;;;;iBAcyB,EAAG,MAAM;UAAY,EAAG,QACrE,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QACzC,EAAC,OAAO;gBACD,EAAG,QAAQ,QAAO,EAAG,MAC9B;;YACwB,EAAG,MAAM;kBACjB,EACd,MAAE;kBAAmB,EAAG,MAAM;;UAC5B,EAAI,OAAM,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAEvD,EACH,MAEE;;;;;;;2BAiFe,EAAG,QAAQ,CAAC,EAAE,WAAW;0BACE,EAAG,QAAQ,CAAC,EACpD,WAAM;uBACC,EAAG,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,EAAE,MAC3C;kBAAgB,EAAG,OAAO,EAAE,YAAY,KACxC;kBACY,EAAG,WAAW;aAGA,EAAG,OAAO,CAAC,EAAE,MAAM;kBACtC,EAAG,OAAO,EAChB,YAAW,OACZ;oBAAmB,EAAG,QAAQ,CAAC,EAC9B,WAAS;kBACQ,EAAG,QACtB,CAAE,EAAC,WAAW;aACS,EACjB,OAAA,CAAC,EAAE,MACP;kBACI,EAAA,OAAK,EAAE,YAAY,YAAY;oBAAmB,EAAG,MAAM;sBAAoB,EACjF,QACF,CACF,EAAE,WAAW;uBAA4C,EAAG,QAAQ,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;qBAAgC,EAAG,QAAQ,CAAC,EAAE,MAAM;sBAAoB,EAAG,QAAQ,CAAC,EAAE,WAAW;uBAA8C,EAAG,QAAQ,CAAC,EAAE,WAAW;;aAA+C,EAAG,OAAO,CAAC,EAAE,MAAM;kBAAgB,EAAG,OAAO,EAAE,YAAY,KAAK;aAAY,EAAG,OAAO,CAAC,EAAE,MAAM;kBAAgB,EAAG,OAAO,EAAE,YAAY,KAAK;mBAAkB,EAAG,MAAM,gBAAe,EAAG,cAAc;;uBAAiC,EAAG,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;GA5HvmB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D,MAAM,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,UAAW,kBAAkB,KAAG,YAWzD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,cAAe,qBAAqB,kCAkChE,CAAC;AAsDF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAY/C,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { type Schema } from 'effect';
|
|
2
1
|
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?:
|
|
10
|
-
outputSchema?:
|
|
9
|
+
inputSchema?: S.Schema.Any;
|
|
10
|
+
outputSchema?: S.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:
|
|
14
|
-
export declare const createFunctionAnchors: (shape: Polygon, input?:
|
|
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>;
|
|
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,
|
|
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,37 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SchemaAST as AST } from 'effect';
|
|
2
|
+
import { S } from '@dxos/echo-schema';
|
|
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';
|
|
5
|
-
export declare const getProperties: (ast:
|
|
6
|
+
export declare const getProperties: (ast: AST.AST) => {
|
|
6
7
|
name: string;
|
|
7
8
|
}[];
|
|
8
9
|
export declare const createAnchorId: (kind: PropertyKind, property?: string) => string;
|
|
9
10
|
export declare const parseAnchorId: (id: string) => [PropertyKind | undefined, string];
|
|
10
11
|
export type CreateShapeProps<S extends Polygon> = Omit<MakeOptional<S, 'id' | 'size'>, 'type' | 'node'>;
|
|
11
|
-
export declare const ComputeShape:
|
|
12
|
+
export declare const ComputeShape: S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
|
|
12
13
|
readonly id: string;
|
|
13
14
|
readonly data?: any;
|
|
14
15
|
}, {
|
|
15
16
|
readonly id: string;
|
|
16
17
|
readonly data?: any;
|
|
17
|
-
}, never>,
|
|
18
|
-
type: typeof
|
|
19
|
-
text:
|
|
20
|
-
guide:
|
|
21
|
-
classNames:
|
|
22
|
-
}>>,
|
|
23
|
-
center:
|
|
24
|
-
x: typeof
|
|
25
|
-
y: typeof
|
|
18
|
+
}, never>, S.Struct<{
|
|
19
|
+
type: typeof S.String;
|
|
20
|
+
text: S.optional<typeof S.String>;
|
|
21
|
+
guide: S.optional<typeof S.Boolean>;
|
|
22
|
+
classNames: S.optional<typeof S.String>;
|
|
23
|
+
}>>, S.Struct<{
|
|
24
|
+
center: S.Struct<{
|
|
25
|
+
x: typeof S.Number;
|
|
26
|
+
y: typeof S.Number;
|
|
26
27
|
}>;
|
|
27
|
-
size:
|
|
28
|
-
width: typeof
|
|
29
|
-
height: typeof
|
|
28
|
+
size: S.mutable<S.Struct<{
|
|
29
|
+
width: typeof S.Number;
|
|
30
|
+
height: typeof S.Number;
|
|
30
31
|
}>>;
|
|
31
|
-
}>>>,
|
|
32
|
-
node:
|
|
32
|
+
}>>>, S.mutable<S.Struct<{
|
|
33
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
33
34
|
}>>>;
|
|
34
|
-
export type ComputeShape =
|
|
35
|
+
export type ComputeShape = S.Schema.Type<typeof ComputeShape>;
|
|
35
36
|
export declare const createShape: <S extends ComputeShape>({ id, ...rest }: CreateShapeProps<S> & {
|
|
36
37
|
type: string;
|
|
37
38
|
}) => S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../src/shapes/defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../src/shapes/defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,IAAI,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,EAAY,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAChD,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,GAAG,CAAC,GAAG;;GACqC,CAAC;AAEhF,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;;;;;;;iBAUkE,EAAG,MAAM;UAAY,EAAG,QAC9G,QACD,EAAA,MAAM;WAAa,EAAG,QACzB,QAAO,EAAG,OACN;gBAEK,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;;;;IAV5O,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,YAAY,mBAAmB,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAG,CAK7G,CAAC"}
|