@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.
- package/dist/lib/browser/index.mjs +1022 -836
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +1040 -854
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +1022 -836
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/DiagnosticOverlay.d.ts.map +1 -1
- package/dist/types/src/graph/controller.d.ts +2 -18
- 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.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 +47 -45
- 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/common/TypeSelect.d.ts.map +1 -1
- package/dist/types/src/shapes/defs.d.ts +18 -19
- package/dist/types/src/shapes/defs.d.ts.map +1 -1
- package/dist/types/src/testing/circuits.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +42 -40
- package/src/compute.stories.tsx +3 -3
- package/src/graph/controller.ts +12 -12
- package/src/hooks/useComputeNodeState.ts +3 -3
- package/src/hooks/useGraphMonitor.ts +3 -5
- package/src/json.test.ts +10 -10
- package/src/schema.test.ts +7 -7
- 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 +8 -7
- package/src/shapes/Gpt.tsx +6 -6
- 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 +8 -7
- 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 +32 -33
- package/src/shapes/common/FunctionBody.tsx +11 -9
- 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:
|
|
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>,
|
|
12
|
-
type: typeof
|
|
13
|
-
text:
|
|
14
|
-
guide:
|
|
15
|
-
classNames:
|
|
16
|
-
}>>,
|
|
17
|
-
center:
|
|
18
|
-
x: typeof
|
|
19
|
-
y: typeof
|
|
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:
|
|
22
|
-
width: typeof
|
|
23
|
-
height: typeof
|
|
21
|
+
size: Schema.mutable<Schema.Struct<{
|
|
22
|
+
width: typeof Schema.Number;
|
|
23
|
+
height: typeof Schema.Number;
|
|
24
24
|
}>>;
|
|
25
|
-
}>>>,
|
|
26
|
-
node:
|
|
27
|
-
}>>>,
|
|
28
|
-
type:
|
|
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 =
|
|
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,
|
|
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:
|
|
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>,
|
|
12
|
-
type: typeof
|
|
13
|
-
text:
|
|
14
|
-
guide:
|
|
15
|
-
classNames:
|
|
16
|
-
}>>,
|
|
17
|
-
center:
|
|
18
|
-
x: typeof
|
|
19
|
-
y: typeof
|
|
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:
|
|
22
|
-
width: typeof
|
|
23
|
-
height: typeof
|
|
21
|
+
size: Schema.mutable<Schema.Struct<{
|
|
22
|
+
width: typeof Schema.Number;
|
|
23
|
+
height: typeof Schema.Number;
|
|
24
24
|
}>>;
|
|
25
|
-
}>>>,
|
|
26
|
-
node:
|
|
27
|
-
}>>>,
|
|
28
|
-
type:
|
|
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 =
|
|
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,
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Switch.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAmB,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExG,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,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;;;;;;;;;;;;;;;;;;;CACoC,CAAC;AAG1F,eAAO,MAAM,eAAe,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:
|
|
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>,
|
|
12
|
-
type: typeof
|
|
13
|
-
text:
|
|
14
|
-
guide:
|
|
15
|
-
classNames:
|
|
16
|
-
}>>,
|
|
17
|
-
center:
|
|
18
|
-
x: typeof
|
|
19
|
-
y: typeof
|
|
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:
|
|
22
|
-
width: typeof
|
|
23
|
-
height: typeof
|
|
21
|
+
size: Schema.mutable<Schema.Struct<{
|
|
22
|
+
width: typeof Schema.Number;
|
|
23
|
+
height: typeof Schema.Number;
|
|
24
24
|
}>>;
|
|
25
|
-
}>>>,
|
|
26
|
-
node:
|
|
27
|
-
}>>>,
|
|
28
|
-
type:
|
|
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 =
|
|
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,
|
|
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 {
|
|
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:
|
|
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>,
|
|
11
|
-
type: typeof
|
|
12
|
-
text:
|
|
13
|
-
guide:
|
|
14
|
-
classNames:
|
|
15
|
-
}>>,
|
|
16
|
-
center:
|
|
17
|
-
x: typeof
|
|
18
|
-
y: typeof
|
|
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:
|
|
21
|
-
width: typeof
|
|
22
|
-
height: typeof
|
|
20
|
+
size: Schema.mutable<Schema.Struct<{
|
|
21
|
+
width: typeof Schema.Number;
|
|
22
|
+
height: typeof Schema.Number;
|
|
23
23
|
}>>;
|
|
24
|
-
}>>>,
|
|
25
|
-
node:
|
|
26
|
-
}>>>,
|
|
27
|
-
type:
|
|
28
|
-
valueType:
|
|
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 =
|
|
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":"
|
|
1
|
+
{"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Template.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMhC,OAAO,EAEL,KAAK,QAAQ,EAId,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO1E,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,GAAI,OAAO,mBAAmB;;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAEhG,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,aAAa,CAQjD,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 TextShape:
|
|
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>,
|
|
12
|
-
type: typeof
|
|
13
|
-
text:
|
|
14
|
-
guide:
|
|
15
|
-
classNames:
|
|
16
|
-
}>>,
|
|
17
|
-
center:
|
|
18
|
-
x: typeof
|
|
19
|
-
y: typeof
|
|
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:
|
|
22
|
-
width: typeof
|
|
23
|
-
height: typeof
|
|
21
|
+
size: Schema.mutable<Schema.Struct<{
|
|
22
|
+
width: typeof Schema.Number;
|
|
23
|
+
height: typeof Schema.Number;
|
|
24
24
|
}>>;
|
|
25
|
-
}>>>,
|
|
26
|
-
node:
|
|
27
|
-
}>>>,
|
|
28
|
-
type:
|
|
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 =
|
|
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,
|
|
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:
|
|
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>,
|
|
12
|
-
type: typeof
|
|
13
|
-
text:
|
|
14
|
-
guide:
|
|
15
|
-
classNames:
|
|
16
|
-
}>>,
|
|
17
|
-
center:
|
|
18
|
-
x: typeof
|
|
19
|
-
y: typeof
|
|
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:
|
|
22
|
-
width: typeof
|
|
23
|
-
height: typeof
|
|
21
|
+
size: Schema.mutable<Schema.Struct<{
|
|
22
|
+
width: typeof Schema.Number;
|
|
23
|
+
height: typeof Schema.Number;
|
|
24
24
|
}>>;
|
|
25
|
-
}>>>,
|
|
26
|
-
node:
|
|
27
|
-
}>>>,
|
|
28
|
-
type:
|
|
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 =
|
|
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,
|
|
1
|
+
{"version":3,"file":"TextToImage.d.ts","sourceRoot":"","sources":["../../../../src/shapes/TextToImage.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAA6C,KAAK,gBAAgB,EAAE,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,GAAI,OAAO,sBAAsB;;;;;;;;;;;;;;;;;;;CACuC,CAAC;AAEvG,eAAO,MAAM,oBAAoB,GAAI,WAAW,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';
|
|
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:
|
|
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>,
|
|
13
|
-
type: typeof
|
|
14
|
-
text:
|
|
15
|
-
guide:
|
|
16
|
-
classNames:
|
|
17
|
-
}>>,
|
|
18
|
-
center:
|
|
19
|
-
x: typeof
|
|
20
|
-
y: typeof
|
|
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:
|
|
23
|
-
width: typeof
|
|
24
|
-
height: typeof
|
|
22
|
+
size: Schema.mutable<Schema.Struct<{
|
|
23
|
+
width: typeof Schema.Number;
|
|
24
|
+
height: typeof Schema.Number;
|
|
25
25
|
}>>;
|
|
26
|
-
}>>>,
|
|
27
|
-
node:
|
|
28
|
-
}>>>,
|
|
29
|
-
type:
|
|
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 =
|
|
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,
|
|
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 {
|
|
3
|
-
import { TriggerKind } from '@dxos/functions
|
|
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:
|
|
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>,
|
|
14
|
-
type: typeof
|
|
15
|
-
text:
|
|
16
|
-
guide:
|
|
17
|
-
classNames:
|
|
18
|
-
}>>,
|
|
19
|
-
center:
|
|
20
|
-
x: typeof
|
|
21
|
-
y: typeof
|
|
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:
|
|
24
|
-
width: typeof
|
|
25
|
-
height: typeof
|
|
24
|
+
size: Schema.mutable<Schema.Struct<{
|
|
25
|
+
width: typeof Schema.Number;
|
|
26
|
+
height: typeof Schema.Number;
|
|
26
27
|
}>>;
|
|
27
|
-
}>>>,
|
|
28
|
-
node:
|
|
29
|
-
}>>>,
|
|
30
|
-
type:
|
|
31
|
-
functionTrigger:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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:
|
|
48
|
-
deep:
|
|
49
|
-
delay:
|
|
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
|
-
}>>,
|
|
52
|
-
|
|
53
|
-
}>>,
|
|
54
|
-
|
|
55
|
-
queue:
|
|
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
|
-
|
|
58
|
-
}
|
|
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 =
|
|
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;
|
|
1
|
+
{"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Trigger.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAY,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAML,WAAW,EAQZ,MAAM,iBAAiB,CAAC;AACzB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMxB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE,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,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?:
|
|
10
|
-
outputSchema?:
|
|
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:
|
|
14
|
-
export declare const createFunctionAnchors: (shape: Polygon, input?:
|
|
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,
|
|
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,
|
|
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"}
|