@dxos/react-ui-canvas-compute 0.8.2-main.fbd8ed0 → 0.8.2-staging.7ac8446
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 +137 -138
- 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 +137 -138
- 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 +17 -1
- 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 +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/common/TypeSelect.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/dist/types/src/testing/circuits.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +40 -40
- package/src/compute.stories.tsx +2 -2
- package/src/hooks/useComputeNodeState.ts +3 -3
- package/src/hooks/useGraphMonitor.ts +5 -3
- 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 +7 -8
- 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 +33 -32
- package/src/shapes/common/FunctionBody.tsx +9 -11
- package/src/shapes/defs.ts +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Array.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Array.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;AAM1E,eAAO,MAAM,YAAY;;;;;;;iBAwCU,EAAG,MAAM;UAAW,EACrD,QAAO,QAAO,EAAG,MAAM;WACjB,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAEzD,EAAG,MAAM;kBAAoB,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;GAvCjM,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAM9D,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,cAAe,qBAAqB,sBAEhE,CAAC;AAMF,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,YAAY,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAErF,eAAO,MAAM,aAAa,0BAIvB,iBAAiB,KAAG,YAKnB,CAAC;AAEL,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAO/C,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 AudioShape:
|
|
5
|
+
export declare const AudioShape: 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<["audio"]>;
|
|
29
29
|
}>>;
|
|
30
|
-
export type AudioShape =
|
|
30
|
+
export type AudioShape = S.Schema.Type<typeof AudioShape>;
|
|
31
31
|
export type CreateAudioProps = CreateShapeProps<AudioShape>;
|
|
32
32
|
export declare const createAudio: (props: CreateAudioProps) => {
|
|
33
33
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Audio.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Audio.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,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,UAAU;;;;;;;iBA0BgE,EAAG,MAAM;UACxF,EAAG,QACT,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QACpC,EACF,OAAG;gBAIF,EAAG,QAAQ,QAAO,EAAG,MAAM;;YACpB,EAAG,MACX;kBACI,EAAE,MAAM;kBACd,EAAC,MAAM;;UACP,EAAA,OAAO,CAAC,EAAE,MAAM;sBACJ,EAAG,MAAM;uBAAyB,EAAE,MAAM;;;;;;GAnCvD,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;;;;;;;;;;;;;;;;;;;CACoC,CAAC;AAExF,eAAO,MAAM,cAAc,cAAe,mBAAmB,CAAC,UAAU,CAAC,sBAkBxE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,UAAU,CAO3C,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 BeaconShape:
|
|
5
|
+
export declare const BeaconShape: 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<["beacon"]>;
|
|
29
29
|
}>>;
|
|
30
|
-
export type BeaconShape =
|
|
30
|
+
export type BeaconShape = S.Schema.Type<typeof BeaconShape>;
|
|
31
31
|
export type CreateBeaconProps = CreateShapeProps<BeaconShape>;
|
|
32
32
|
export declare const createBeacon: (props: CreateBeaconProps) => {
|
|
33
33
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Beacon.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Beacon.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Beacon.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Beacon.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAmB,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGxG,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,WAAW;;;;;;;iBAuBsF,EACtG,MAAF;UACA,EAAA,QACJ,QAAO,EACP,MACA;WAES,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAClC,EAAG,QAAQ,QACX,EAAG,MAAM;;YACY,EACxB,MAAK;kBAAoB,EACzB,MAAI;kBAAmB,EACvB,MAAG;;UACD,EAAA,OAAK,CAAC,EAAE,MAAM;sBACL,EAAG,MAAM;uBAAyB,EAC3C,MAAC;;;;;;GAlCJ,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;AAE1F,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,sBAc1E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAU7C,CAAC"}
|
|
@@ -1,60 +1,60 @@
|
|
|
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
4
|
type GateType = 'and' | 'or' | 'not';
|
|
5
|
-
declare const GateShape:
|
|
5
|
+
declare const GateShape: 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: typeof
|
|
25
|
+
}>>>, S.mutable<S.Struct<{
|
|
26
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
27
|
+
}>>>, S.Struct<{
|
|
28
|
+
type: typeof S.String;
|
|
29
29
|
}>>;
|
|
30
|
-
type GateShape =
|
|
30
|
+
type GateShape = S.Schema.Type<typeof GateShape>;
|
|
31
31
|
type CreateGateProps = CreateShapeProps<GateShape> & {
|
|
32
32
|
type: GateType;
|
|
33
33
|
};
|
|
34
|
-
export declare const AndShape:
|
|
34
|
+
export declare const AndShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
|
|
35
35
|
readonly id: string;
|
|
36
36
|
readonly data?: any;
|
|
37
37
|
}, {
|
|
38
38
|
readonly id: string;
|
|
39
39
|
readonly data?: any;
|
|
40
|
-
}, never>,
|
|
41
|
-
type: typeof
|
|
42
|
-
text:
|
|
43
|
-
guide:
|
|
44
|
-
classNames:
|
|
45
|
-
}>>,
|
|
46
|
-
center:
|
|
47
|
-
x: typeof
|
|
48
|
-
y: typeof
|
|
40
|
+
}, never>, S.Struct<{
|
|
41
|
+
type: typeof S.String;
|
|
42
|
+
text: S.optional<typeof S.String>;
|
|
43
|
+
guide: S.optional<typeof S.Boolean>;
|
|
44
|
+
classNames: S.optional<typeof S.String>;
|
|
45
|
+
}>>, S.Struct<{
|
|
46
|
+
center: S.Struct<{
|
|
47
|
+
x: typeof S.Number;
|
|
48
|
+
y: typeof S.Number;
|
|
49
49
|
}>;
|
|
50
|
-
size:
|
|
51
|
-
width: typeof
|
|
52
|
-
height: typeof
|
|
50
|
+
size: S.mutable<S.Struct<{
|
|
51
|
+
width: typeof S.Number;
|
|
52
|
+
height: typeof S.Number;
|
|
53
53
|
}>>;
|
|
54
|
-
}>>>,
|
|
55
|
-
node:
|
|
56
|
-
}>>>,
|
|
57
|
-
type: typeof
|
|
54
|
+
}>>>, S.mutable<S.Struct<{
|
|
55
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
56
|
+
}>>>, S.Struct<{
|
|
57
|
+
type: typeof S.String;
|
|
58
58
|
}>>;
|
|
59
59
|
export type AndShape = GateShape;
|
|
60
60
|
export declare const createAnd: (props: Omit<CreateGateProps, "type" | "node">) => {
|
|
@@ -97,30 +97,30 @@ export declare const andShape: ShapeDef<{
|
|
|
97
97
|
} & {
|
|
98
98
|
readonly type: string;
|
|
99
99
|
}>;
|
|
100
|
-
export declare const OrShape:
|
|
100
|
+
export declare const OrShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
|
|
101
101
|
readonly id: string;
|
|
102
102
|
readonly data?: any;
|
|
103
103
|
}, {
|
|
104
104
|
readonly id: string;
|
|
105
105
|
readonly data?: any;
|
|
106
|
-
}, never>,
|
|
107
|
-
type: typeof
|
|
108
|
-
text:
|
|
109
|
-
guide:
|
|
110
|
-
classNames:
|
|
111
|
-
}>>,
|
|
112
|
-
center:
|
|
113
|
-
x: typeof
|
|
114
|
-
y: typeof
|
|
106
|
+
}, never>, S.Struct<{
|
|
107
|
+
type: typeof S.String;
|
|
108
|
+
text: S.optional<typeof S.String>;
|
|
109
|
+
guide: S.optional<typeof S.Boolean>;
|
|
110
|
+
classNames: S.optional<typeof S.String>;
|
|
111
|
+
}>>, S.Struct<{
|
|
112
|
+
center: S.Struct<{
|
|
113
|
+
x: typeof S.Number;
|
|
114
|
+
y: typeof S.Number;
|
|
115
115
|
}>;
|
|
116
|
-
size:
|
|
117
|
-
width: typeof
|
|
118
|
-
height: typeof
|
|
116
|
+
size: S.mutable<S.Struct<{
|
|
117
|
+
width: typeof S.Number;
|
|
118
|
+
height: typeof S.Number;
|
|
119
119
|
}>>;
|
|
120
|
-
}>>>,
|
|
121
|
-
node:
|
|
122
|
-
}>>>,
|
|
123
|
-
type: typeof
|
|
120
|
+
}>>>, S.mutable<S.Struct<{
|
|
121
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
122
|
+
}>>>, S.Struct<{
|
|
123
|
+
type: typeof S.String;
|
|
124
124
|
}>>;
|
|
125
125
|
export type OrShape = GateShape;
|
|
126
126
|
export declare const createOr: (props: Omit<CreateGateProps, "type" | "node">) => {
|
|
@@ -163,30 +163,30 @@ export declare const orShape: ShapeDef<{
|
|
|
163
163
|
} & {
|
|
164
164
|
readonly type: string;
|
|
165
165
|
}>;
|
|
166
|
-
export declare const NotShape:
|
|
166
|
+
export declare const NotShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
|
|
167
167
|
readonly id: string;
|
|
168
168
|
readonly data?: any;
|
|
169
169
|
}, {
|
|
170
170
|
readonly id: string;
|
|
171
171
|
readonly data?: any;
|
|
172
|
-
}, never>,
|
|
173
|
-
type: typeof
|
|
174
|
-
text:
|
|
175
|
-
guide:
|
|
176
|
-
classNames:
|
|
177
|
-
}>>,
|
|
178
|
-
center:
|
|
179
|
-
x: typeof
|
|
180
|
-
y: typeof
|
|
172
|
+
}, never>, S.Struct<{
|
|
173
|
+
type: typeof S.String;
|
|
174
|
+
text: S.optional<typeof S.String>;
|
|
175
|
+
guide: S.optional<typeof S.Boolean>;
|
|
176
|
+
classNames: S.optional<typeof S.String>;
|
|
177
|
+
}>>, S.Struct<{
|
|
178
|
+
center: S.Struct<{
|
|
179
|
+
x: typeof S.Number;
|
|
180
|
+
y: typeof S.Number;
|
|
181
181
|
}>;
|
|
182
|
-
size:
|
|
183
|
-
width: typeof
|
|
184
|
-
height: typeof
|
|
182
|
+
size: S.mutable<S.Struct<{
|
|
183
|
+
width: typeof S.Number;
|
|
184
|
+
height: typeof S.Number;
|
|
185
185
|
}>>;
|
|
186
|
-
}>>>,
|
|
187
|
-
node:
|
|
188
|
-
}>>>,
|
|
189
|
-
type: typeof
|
|
186
|
+
}>>>, S.mutable<S.Struct<{
|
|
187
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
188
|
+
}>>>, S.Struct<{
|
|
189
|
+
type: typeof S.String;
|
|
190
190
|
}>>;
|
|
191
191
|
export type NotShape = GateShape;
|
|
192
192
|
export declare const createNot: (props: Omit<CreateGateProps, "type" | "node">) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Boolean.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Boolean.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Boolean.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Boolean.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO1F,KAAK,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;AAErC,QAAA,MAAM,SAAS;;;;;;;iBAwC4B,EAAG,MAAM;UAAW,EAAG,QAAQ,QACpE,EACJ,MAAK;WAEH,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAE9B,EAAA,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAIxD,EACR,MAEE;kBAAoB,EAAE,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAErE,EAAC,MAAM;uBACD,EAAI,MAAK;;;;;;GAnDd,CAAC;AAEF,KAAK,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjD,KAAK,eAAe,GAAG,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAuGxE,eAAO,MAAM,QAAQ;;;;;;;iBAxEsB,EAAG,MAAM;UAAW,EAAG,QAAQ,QACpE,EACJ,MAAK;WAEH,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAE9B,EAAA,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAIxD,EACR,MAEE;kBAAoB,EAAE,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAErE,EAAC,MAAM;uBACD,EAAI,MAAK;;;;;;GAwDkB,CAAC;AAClC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC;AAEjC,eAAO,MAAM,SAAS,UAAW,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;CAEtE,CAAC;AACF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;EAOnB,CAAC;AAqBH,eAAO,MAAM,OAAO;;;;;;;iBA1GuB,EAAG,MAAM;UAAW,EAAG,QAAQ,QACpE,EACJ,MAAK;WAEH,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAE9B,EAAA,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAIxD,EACR,MAEE;kBAAoB,EAAE,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAErE,EAAC,MAAM;uBACD,EAAI,MAAK;;;;;;GA0FiB,CAAC;AACjC,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC;AAEhC,eAAO,MAAM,QAAQ,UAAW,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;CAErE,CAAC;AACF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;EAOlB,CAAC;AAuBH,eAAO,MAAM,QAAQ;;;;;;;iBA9IsB,EAAG,MAAM;UAAW,EAAG,QAAQ,QACpE,EACJ,MAAK;WAEH,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAE9B,EAAA,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAIxD,EACR,MAEE;kBAAoB,EAAE,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAErE,EAAC,MAAM;uBACD,EAAI,MAAK;;;;;;GA8HkB,CAAC;AAClC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC;AAEjC,eAAO,MAAM,SAAS,UAAW,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;CAEtE,CAAC;AACF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;EAOnB,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, type TextBoxProps } from '@dxos/react-ui-canvas-editor';
|
|
4
4
|
import { type CreateShapeProps } from './defs';
|
|
5
|
-
export declare const ChatShape:
|
|
5
|
+
export declare const ChatShape: 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<["chat"]>;
|
|
29
29
|
}>>;
|
|
30
|
-
export type ChatShape =
|
|
30
|
+
export type ChatShape = S.Schema.Type<typeof ChatShape>;
|
|
31
31
|
export type TextInputComponentProps = ShapeComponentProps<ChatShape> & TextBoxProps & {
|
|
32
32
|
title?: string;
|
|
33
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Chat.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Chat.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EAGb,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO1F,eAAO,MAAM,SAAS;;;;;;;iBA6BkB,EAAG,MAAM;UAAW,EAAG,QAC1D,QACH,EACF,MAEC;WAID,EAAE,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAErD,EAAI,MAAK;;YAA8B,EAAG,MAAM;kBAClC,EAAG,MAAM;kBAAmB,EAAI,MAAK;;UAAmB,EAAG,OAAO,CAAE,EAAC,MAEpF;sBAAwB,EAAG,MAAM;uBACxB,EAAG,MACV;;;;;;GAxCH,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAMxD,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,SAAS,CAAC,GAAG,YAAY,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzG,eAAO,MAAM,kBAAkB,+BAAgC,uBAAuB,sBAiBrF,CAAC;AAMF,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,UAAU,UAAW,eAAe;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAExF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,SAAS,CAQzC,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 ShapeComponentProps, type ShapeDef, type TextBoxProps } from '@dxos/react-ui-canvas-editor';
|
|
4
4
|
import { type CreateShapeProps } from './defs';
|
|
5
|
-
export declare const ConstantShape:
|
|
5
|
+
export declare const ConstantShape: 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:
|
|
29
|
-
value:
|
|
25
|
+
}>>>, S.mutable<S.Struct<{
|
|
26
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
27
|
+
}>>>, S.Struct<{
|
|
28
|
+
type: S.Literal<["constant"]>;
|
|
29
|
+
value: S.optional<typeof S.Any>;
|
|
30
30
|
}>>;
|
|
31
|
-
export type ConstantShape =
|
|
31
|
+
export type ConstantShape = S.Schema.Type<typeof ConstantShape>;
|
|
32
32
|
export type ConstantComponentProps = ShapeComponentProps<ConstantShape> & TextBoxProps & {
|
|
33
33
|
title?: string;
|
|
34
34
|
chat?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constant.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Constant.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Constant.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Constant.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAG7D,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EAGb,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO1F,eAAO,MAAM,aAAa;;;;;;;iBA0BxB,EACD,MAEE;UAAW,EAAG,QAAQ,QAAQ,EAAG,MAAK;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAC/E,EAAG,QAAQ,QAAO,EAAG,MAAM;;YACjB,EAAG,MAAM;kBAAoB,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UACvE,EAAE,OAAO,CAAE,EAAC,MAAM;sBAExB,EAAC,MAAM;uBAAwB,EAAG,MAAM;;;;;;;GA5BzC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAMhE,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,CAAC,aAAa,CAAC,GACrE,YAAY,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAcpD,eAAO,MAAM,iBAAiB,qCAAsC,sBAAsB,sBAiDzF,CAAC;AAMF,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAElE,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 DatabaseShape:
|
|
5
|
+
export declare const DatabaseShape: 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<["database"]>;
|
|
29
29
|
}>>;
|
|
30
|
-
export type DatabaseShape =
|
|
30
|
+
export type DatabaseShape = S.Schema.Type<typeof DatabaseShape>;
|
|
31
31
|
export type CreateDatabaseProps = CreateShapeProps<DatabaseShape>;
|
|
32
32
|
export declare const createDatabase: (props: CreateDatabaseProps) => {
|
|
33
33
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Database.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Database.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Database.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Database.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,aAAa;;;;;;;iBA0B8H,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;;;;;;GArBpe,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAElE,eAAO,MAAM,cAAc,UAAW,mBAAmB;;;;;;;;;;;;;;;;;;;CACqC,CAAC;AAE/F,eAAO,MAAM,iBAAiB,cAAe,mBAAmB,CAAC,aAAa,CAAC,sBAE9E,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,aAAa,CAOjD,CAAC"}
|
|
@@ -1,32 +1,32 @@
|
|
|
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 FunctionShape:
|
|
4
|
+
export declare const FunctionShape: 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:
|
|
24
|
+
}>>>, S.mutable<S.Struct<{
|
|
25
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
26
|
+
}>>>, S.Struct<{
|
|
27
|
+
type: S.Literal<["function"]>;
|
|
28
28
|
}>>;
|
|
29
|
-
export type FunctionShape =
|
|
29
|
+
export type FunctionShape = S.Schema.Type<typeof FunctionShape>;
|
|
30
30
|
export type CreateFunctionProps = CreateShapeProps<FunctionShape>;
|
|
31
31
|
export declare const createFunction: (props: CreateFunctionProps) => {
|
|
32
32
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Function.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Function.tsx"],"names":[],"mappings":"AAOA,OAAO,EAA6B,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAIjE,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1E,eAAO,MAAM,aAAa;;;;;;;iBAqBpB,EAAG,MAAM;UAAW,EACxB,QAAK,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EACpD,OAAM;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAE5C;;YAA8B,EAC7B,MAAG;kBAAqB,EACtB,MAAA;kBAAmB,EAAG,MAC3B;;UAAmB,EAAG,OAAO,CAAE,EAAE,MAAK;sBAC5B,EAAG,MAAM;uBACX,EAAG,MACV;;;;;;GA1BD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAElE,eAAO,MAAM,cAAc,UAAW,mBAAmB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAuEhG,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,aAAa,CAOjD,CAAC"}
|