@dxos/react-ui-canvas-compute 0.9.1-staging.ee54ba693a → 0.11.0
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/index.mjs +2164 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/types/src/compute.stories.d.ts.map +1 -1
- package/dist/types/src/shapes/Append.d.ts +2 -51
- package/dist/types/src/shapes/Append.d.ts.map +1 -1
- package/dist/types/src/shapes/Array.d.ts +2 -34
- package/dist/types/src/shapes/Array.d.ts.map +1 -1
- package/dist/types/src/shapes/Audio.d.ts +2 -51
- package/dist/types/src/shapes/Audio.d.ts.map +1 -1
- package/dist/types/src/shapes/Beacon.d.ts +2 -51
- package/dist/types/src/shapes/Beacon.d.ts.map +1 -1
- package/dist/types/src/shapes/Chat.d.ts +2 -51
- package/dist/types/src/shapes/Chat.d.ts.map +1 -1
- package/dist/types/src/shapes/Constant.d.ts +2 -53
- package/dist/types/src/shapes/Constant.d.ts.map +1 -1
- package/dist/types/src/shapes/Database.d.ts +2 -51
- package/dist/types/src/shapes/Database.d.ts.map +1 -1
- package/dist/types/src/shapes/Feed.d.ts +2 -51
- package/dist/types/src/shapes/Feed.d.ts.map +1 -1
- package/dist/types/src/shapes/Function.d.ts +7 -50
- package/dist/types/src/shapes/Function.d.ts.map +1 -1
- package/dist/types/src/shapes/Gpt.d.ts +2 -51
- package/dist/types/src/shapes/Gpt.d.ts.map +1 -1
- package/dist/types/src/shapes/GptRealtime.d.ts +2 -51
- package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -1
- package/dist/types/src/shapes/Json.d.ts +2 -101
- package/dist/types/src/shapes/Json.d.ts.map +1 -1
- package/dist/types/src/shapes/Logic.d.ts +2 -103
- package/dist/types/src/shapes/Logic.d.ts.map +1 -1
- package/dist/types/src/shapes/RNG.d.ts +2 -55
- package/dist/types/src/shapes/RNG.d.ts.map +1 -1
- package/dist/types/src/shapes/Scope.d.ts +2 -51
- package/dist/types/src/shapes/Scope.d.ts.map +1 -1
- package/dist/types/src/shapes/Surface.d.ts +2 -51
- package/dist/types/src/shapes/Surface.d.ts.map +1 -1
- package/dist/types/src/shapes/Switch.d.ts +2 -51
- package/dist/types/src/shapes/Switch.d.ts.map +1 -1
- package/dist/types/src/shapes/Table.d.ts +2 -51
- package/dist/types/src/shapes/Table.d.ts.map +1 -1
- package/dist/types/src/shapes/Template.d.ts +4 -55
- package/dist/types/src/shapes/Template.d.ts.map +1 -1
- package/dist/types/src/shapes/Text.d.ts +2 -51
- package/dist/types/src/shapes/Text.d.ts.map +1 -1
- package/dist/types/src/shapes/TextToImage.d.ts +2 -51
- package/dist/types/src/shapes/TextToImage.d.ts.map +1 -1
- package/dist/types/src/shapes/Thread.d.ts +2 -51
- package/dist/types/src/shapes/Thread.d.ts.map +1 -1
- package/dist/types/src/shapes/Trigger.d.ts +2 -17
- package/dist/types/src/shapes/Trigger.d.ts.map +1 -1
- package/dist/types/src/shapes/append-def.d.ts +52 -0
- package/dist/types/src/shapes/append-def.d.ts.map +1 -0
- package/dist/types/src/shapes/array-def.d.ts +35 -0
- package/dist/types/src/shapes/array-def.d.ts.map +1 -0
- package/dist/types/src/shapes/audio-def.d.ts +52 -0
- package/dist/types/src/shapes/audio-def.d.ts.map +1 -0
- package/dist/types/src/shapes/beacon-def.d.ts +52 -0
- package/dist/types/src/shapes/beacon-def.d.ts.map +1 -0
- package/dist/types/src/shapes/chat-def.d.ts +52 -0
- package/dist/types/src/shapes/chat-def.d.ts.map +1 -0
- package/dist/types/src/shapes/common/Box.d.ts +0 -2
- package/dist/types/src/shapes/common/Box.d.ts.map +1 -1
- package/dist/types/src/shapes/common/FunctionBody.d.ts +1 -3
- package/dist/types/src/shapes/common/FunctionBody.d.ts.map +1 -1
- package/dist/types/src/shapes/common/box-defs.d.ts +3 -0
- package/dist/types/src/shapes/common/box-defs.d.ts.map +1 -0
- package/dist/types/src/shapes/common/function-anchors.d.ts +7 -0
- package/dist/types/src/shapes/common/function-anchors.d.ts.map +1 -0
- package/dist/types/src/shapes/common/index.d.ts +2 -0
- package/dist/types/src/shapes/common/index.d.ts.map +1 -1
- package/dist/types/src/shapes/constant-def.d.ts +54 -0
- package/dist/types/src/shapes/constant-def.d.ts.map +1 -0
- package/dist/types/src/shapes/database-def.d.ts +52 -0
- package/dist/types/src/shapes/database-def.d.ts.map +1 -0
- package/dist/types/src/shapes/feed-def.d.ts +52 -0
- package/dist/types/src/shapes/feed-def.d.ts.map +1 -0
- package/dist/types/src/shapes/function-def.d.ts +52 -0
- package/dist/types/src/shapes/function-def.d.ts.map +1 -0
- package/dist/types/src/shapes/gpt-def.d.ts +52 -0
- package/dist/types/src/shapes/gpt-def.d.ts.map +1 -0
- package/dist/types/src/shapes/gpt-realtime-def.d.ts +52 -0
- package/dist/types/src/shapes/gpt-realtime-def.d.ts.map +1 -0
- package/dist/types/src/shapes/index.d.ts +23 -0
- package/dist/types/src/shapes/index.d.ts.map +1 -1
- package/dist/types/src/shapes/json-def.d.ts +102 -0
- package/dist/types/src/shapes/json-def.d.ts.map +1 -0
- package/dist/types/src/shapes/logic-def.d.ts +104 -0
- package/dist/types/src/shapes/logic-def.d.ts.map +1 -0
- package/dist/types/src/shapes/rng-def.d.ts +56 -0
- package/dist/types/src/shapes/rng-def.d.ts.map +1 -0
- package/dist/types/src/shapes/scope-def.d.ts +52 -0
- package/dist/types/src/shapes/scope-def.d.ts.map +1 -0
- package/dist/types/src/shapes/surface-def.d.ts +52 -0
- package/dist/types/src/shapes/surface-def.d.ts.map +1 -0
- package/dist/types/src/shapes/switch-def.d.ts +52 -0
- package/dist/types/src/shapes/switch-def.d.ts.map +1 -0
- package/dist/types/src/shapes/table-def.d.ts +52 -0
- package/dist/types/src/shapes/table-def.d.ts.map +1 -0
- package/dist/types/src/shapes/template-def.d.ts +56 -0
- package/dist/types/src/shapes/template-def.d.ts.map +1 -0
- package/dist/types/src/shapes/text-def.d.ts +52 -0
- package/dist/types/src/shapes/text-def.d.ts.map +1 -0
- package/dist/types/src/shapes/text-to-image-def.d.ts +52 -0
- package/dist/types/src/shapes/text-to-image-def.d.ts.map +1 -0
- package/dist/types/src/shapes/thread-def.d.ts +52 -0
- package/dist/types/src/shapes/thread-def.d.ts.map +1 -0
- package/dist/types/src/shapes/trigger-def.d.ts +18 -0
- package/dist/types/src/shapes/trigger-def.d.ts.map +1 -0
- package/dist/types/src/shapes/trigger-spec.d.ts +9 -0
- package/dist/types/src/shapes/trigger-spec.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -46
- package/src/compute.stories.tsx +1 -1
- package/src/shapes/Append.tsx +3 -31
- package/src/shapes/Array.tsx +3 -43
- package/src/shapes/Audio.tsx +2 -26
- package/src/shapes/Beacon.tsx +2 -29
- package/src/shapes/Chat.tsx +1 -36
- package/src/shapes/Constant.tsx +1 -37
- package/src/shapes/Database.tsx +2 -27
- package/src/shapes/Feed.tsx +4 -35
- package/src/shapes/Function.tsx +4 -38
- package/src/shapes/Gpt.tsx +3 -33
- package/src/shapes/GptRealtime.tsx +2 -36
- package/src/shapes/Json.tsx +4 -70
- package/src/shapes/Logic.tsx +3 -58
- package/src/shapes/RNG.tsx +2 -32
- package/src/shapes/Scope.tsx +2 -31
- package/src/shapes/Surface.tsx +2 -32
- package/src/shapes/Switch.tsx +2 -26
- package/src/shapes/Table.tsx +3 -34
- package/src/shapes/Template.tsx +6 -36
- package/src/shapes/Text.tsx +2 -28
- package/src/shapes/TextToImage.tsx +2 -27
- package/src/shapes/Thread.tsx +3 -34
- package/src/shapes/Trigger.tsx +6 -79
- package/src/shapes/append-def.ts +42 -0
- package/src/shapes/array-def.ts +54 -0
- package/src/shapes/audio-def.ts +36 -0
- package/src/shapes/beacon-def.ts +39 -0
- package/src/shapes/chat-def.tsx +47 -0
- package/src/shapes/common/Box.tsx +2 -5
- package/src/shapes/common/FunctionBody.tsx +6 -25
- package/src/shapes/common/box-defs.ts +10 -0
- package/src/shapes/common/function-anchors.ts +37 -0
- package/src/shapes/common/index.ts +3 -0
- package/src/shapes/constant-def.tsx +48 -0
- package/src/shapes/database-def.ts +37 -0
- package/src/shapes/feed-def.ts +44 -0
- package/src/shapes/function-def.ts +46 -0
- package/src/shapes/gpt-def.ts +43 -0
- package/src/shapes/gpt-realtime-def.ts +46 -0
- package/src/shapes/index.ts +25 -0
- package/src/shapes/json-def.ts +80 -0
- package/src/shapes/logic-def.ts +69 -0
- package/src/shapes/rng-def.ts +42 -0
- package/src/shapes/scope-def.ts +41 -0
- package/src/shapes/surface-def.ts +42 -0
- package/src/shapes/switch-def.ts +36 -0
- package/src/shapes/table-def.ts +45 -0
- package/src/shapes/template-def.ts +48 -0
- package/src/shapes/text-def.ts +38 -0
- package/src/shapes/text-to-image-def.ts +37 -0
- package/src/shapes/thread-def.ts +45 -0
- package/src/shapes/trigger-def.ts +63 -0
- package/src/shapes/trigger-spec.ts +44 -0
- package/dist/lib/browser/index.mjs +0 -2596
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/node-esm/index.mjs +0 -2596
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { type ShapeComponentProps
|
|
4
|
-
import { type
|
|
5
|
-
export declare const BeaconShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly data?: any;
|
|
8
|
-
}, {
|
|
9
|
-
readonly data?: any;
|
|
10
|
-
readonly id: string;
|
|
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
|
-
}>;
|
|
21
|
-
size: Schema.mutable<Schema.Struct<{
|
|
22
|
-
width: typeof Schema.Number;
|
|
23
|
-
height: typeof Schema.Number;
|
|
24
|
-
}>>;
|
|
25
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
26
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
27
|
-
}>>>, Schema.Struct<{
|
|
28
|
-
type: Schema.Literal<["beacon"]>;
|
|
29
|
-
}>>;
|
|
30
|
-
export type BeaconShape = Schema.Schema.Type<typeof BeaconShape>;
|
|
31
|
-
export type CreateBeaconProps = CreateShapeProps<BeaconShape>;
|
|
32
|
-
export declare const createBeacon: (props: CreateBeaconProps) => {
|
|
33
|
-
id: string;
|
|
34
|
-
data?: any;
|
|
35
|
-
type: string;
|
|
36
|
-
text?: string | undefined;
|
|
37
|
-
guide?: boolean | undefined;
|
|
38
|
-
classNames?: string | undefined;
|
|
39
|
-
center: {
|
|
40
|
-
readonly x: number;
|
|
41
|
-
readonly y: number;
|
|
42
|
-
};
|
|
43
|
-
size: {
|
|
44
|
-
width: number;
|
|
45
|
-
height: number;
|
|
46
|
-
};
|
|
47
|
-
} & {
|
|
48
|
-
node?: string | undefined;
|
|
49
|
-
} & {
|
|
50
|
-
readonly type: "beacon";
|
|
51
|
-
};
|
|
2
|
+
import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
|
|
3
|
+
import { type BeaconShape } from './beacon-def';
|
|
52
4
|
export declare const BeaconComponent: ({ shape }: ShapeComponentProps<BeaconShape>) => React.JSX.Element;
|
|
53
|
-
export declare const beaconShape: ShapeDef<BeaconShape>;
|
|
54
5
|
//# sourceMappingURL=Beacon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Beacon.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Beacon.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"Beacon.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Beacon.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,sBAc1E,CAAC"}
|
|
@@ -1,57 +1,8 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { type ShapeComponentProps, type
|
|
4
|
-
import { type
|
|
5
|
-
export declare const ChatShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly data?: any;
|
|
8
|
-
}, {
|
|
9
|
-
readonly data?: any;
|
|
10
|
-
readonly id: string;
|
|
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
|
-
}>;
|
|
21
|
-
size: Schema.mutable<Schema.Struct<{
|
|
22
|
-
width: typeof Schema.Number;
|
|
23
|
-
height: typeof Schema.Number;
|
|
24
|
-
}>>;
|
|
25
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
26
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
27
|
-
}>>>, Schema.Struct<{
|
|
28
|
-
type: Schema.Literal<["chat"]>;
|
|
29
|
-
}>>;
|
|
30
|
-
export type ChatShape = Schema.Schema.Type<typeof ChatShape>;
|
|
2
|
+
import { type ShapeComponentProps, type TextBoxProps } from '@dxos/react-ui-canvas-editor';
|
|
3
|
+
import { type ChatShape } from './chat-def';
|
|
31
4
|
export type TextInputComponentProps = ShapeComponentProps<ChatShape> & TextBoxProps & {
|
|
32
5
|
title?: string;
|
|
33
6
|
};
|
|
34
7
|
export declare const TextInputComponent: ({ shape, title, ...props }: TextInputComponentProps) => React.JSX.Element;
|
|
35
|
-
export type CreateChatProps = CreateShapeProps<ChatShape>;
|
|
36
|
-
export declare const createChat: (props: CreateChatProps) => {
|
|
37
|
-
id: string;
|
|
38
|
-
data?: any;
|
|
39
|
-
type: string;
|
|
40
|
-
text?: string | undefined;
|
|
41
|
-
guide?: boolean | undefined;
|
|
42
|
-
classNames?: string | undefined;
|
|
43
|
-
center: {
|
|
44
|
-
readonly x: number;
|
|
45
|
-
readonly y: number;
|
|
46
|
-
};
|
|
47
|
-
size: {
|
|
48
|
-
width: number;
|
|
49
|
-
height: number;
|
|
50
|
-
};
|
|
51
|
-
} & {
|
|
52
|
-
node?: string | undefined;
|
|
53
|
-
} & {
|
|
54
|
-
readonly type: "chat";
|
|
55
|
-
};
|
|
56
|
-
export declare const chatShape: ShapeDef<ChatShape>;
|
|
57
8
|
//# sourceMappingURL=Chat.d.ts.map
|
|
@@ -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,EACL,KAAK,mBAAmB,EAGxB,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,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"}
|
|
@@ -1,60 +1,9 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { type ShapeComponentProps, type
|
|
4
|
-
import { type
|
|
5
|
-
export declare const ConstantShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly data?: any;
|
|
8
|
-
}, {
|
|
9
|
-
readonly data?: any;
|
|
10
|
-
readonly id: string;
|
|
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
|
-
}>;
|
|
21
|
-
size: Schema.mutable<Schema.Struct<{
|
|
22
|
-
width: typeof Schema.Number;
|
|
23
|
-
height: typeof Schema.Number;
|
|
24
|
-
}>>;
|
|
25
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
26
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
27
|
-
}>>>, Schema.Struct<{
|
|
28
|
-
type: Schema.Literal<["constant"]>;
|
|
29
|
-
value: Schema.optional<typeof Schema.Any>;
|
|
30
|
-
}>>;
|
|
31
|
-
export type ConstantShape = Schema.Schema.Type<typeof ConstantShape>;
|
|
2
|
+
import { type ShapeComponentProps, type TextBoxProps } from '@dxos/react-ui-canvas-editor';
|
|
3
|
+
import { type ConstantShape } from './constant-def';
|
|
32
4
|
export type ConstantComponentProps = ShapeComponentProps<ConstantShape> & TextBoxProps & {
|
|
33
5
|
title?: string;
|
|
34
6
|
chat?: boolean;
|
|
35
7
|
};
|
|
36
8
|
export declare const ConstantComponent: ({ shape, title, chat, ...props }: ConstantComponentProps) => React.JSX.Element;
|
|
37
|
-
export type CreateConstantProps = CreateShapeProps<ConstantShape>;
|
|
38
|
-
export declare const createConstant: (props: CreateConstantProps) => {
|
|
39
|
-
id: string;
|
|
40
|
-
data?: any;
|
|
41
|
-
type: string;
|
|
42
|
-
text?: string | undefined;
|
|
43
|
-
guide?: boolean | undefined;
|
|
44
|
-
classNames?: string | undefined;
|
|
45
|
-
center: {
|
|
46
|
-
readonly x: number;
|
|
47
|
-
readonly y: number;
|
|
48
|
-
};
|
|
49
|
-
size: {
|
|
50
|
-
width: number;
|
|
51
|
-
height: number;
|
|
52
|
-
};
|
|
53
|
-
} & {
|
|
54
|
-
node?: string | undefined;
|
|
55
|
-
} & {
|
|
56
|
-
readonly type: "constant";
|
|
57
|
-
readonly value?: any;
|
|
58
|
-
};
|
|
59
|
-
export declare const constantShape: ShapeDef<ConstantShape>;
|
|
60
9
|
//# sourceMappingURL=Constant.d.ts.map
|
|
@@ -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;AAI7D,OAAO,EACL,KAAK,mBAAmB,EAGxB,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAMpD,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"}
|
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { type ShapeComponentProps
|
|
4
|
-
import { type
|
|
5
|
-
export declare const DatabaseShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly data?: any;
|
|
8
|
-
}, {
|
|
9
|
-
readonly data?: any;
|
|
10
|
-
readonly id: string;
|
|
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
|
-
}>;
|
|
21
|
-
size: Schema.mutable<Schema.Struct<{
|
|
22
|
-
width: typeof Schema.Number;
|
|
23
|
-
height: typeof Schema.Number;
|
|
24
|
-
}>>;
|
|
25
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
26
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
27
|
-
}>>>, Schema.Struct<{
|
|
28
|
-
type: Schema.Literal<["database"]>;
|
|
29
|
-
}>>;
|
|
30
|
-
export type DatabaseShape = Schema.Schema.Type<typeof DatabaseShape>;
|
|
31
|
-
export type CreateDatabaseProps = CreateShapeProps<DatabaseShape>;
|
|
32
|
-
export declare const createDatabase: (props: CreateDatabaseProps) => {
|
|
33
|
-
id: string;
|
|
34
|
-
data?: any;
|
|
35
|
-
type: string;
|
|
36
|
-
text?: string | undefined;
|
|
37
|
-
guide?: boolean | undefined;
|
|
38
|
-
classNames?: string | undefined;
|
|
39
|
-
center: {
|
|
40
|
-
readonly x: number;
|
|
41
|
-
readonly y: number;
|
|
42
|
-
};
|
|
43
|
-
size: {
|
|
44
|
-
width: number;
|
|
45
|
-
height: number;
|
|
46
|
-
};
|
|
47
|
-
} & {
|
|
48
|
-
node?: string | undefined;
|
|
49
|
-
} & {
|
|
50
|
-
readonly type: "database";
|
|
51
|
-
};
|
|
2
|
+
import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
|
|
3
|
+
import { type DatabaseShape } from './database-def';
|
|
52
4
|
export declare const DatabaseComponent: ({ shape }: ShapeComponentProps<DatabaseShape>) => React.JSX.Element;
|
|
53
|
-
export declare const databaseShape: ShapeDef<DatabaseShape>;
|
|
54
5
|
//# sourceMappingURL=Database.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Database.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Database.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"Database.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Database.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,cAAe,mBAAmB,CAAC,aAAa,CAAC,sBAE9E,CAAC"}
|
|
@@ -1,58 +1,9 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
|
-
import { type ShapeComponentProps
|
|
5
|
-
import { type
|
|
6
|
-
export declare const FeedShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
|
|
7
|
-
readonly id: string;
|
|
8
|
-
readonly data?: any;
|
|
9
|
-
}, {
|
|
10
|
-
readonly data?: any;
|
|
11
|
-
readonly id: string;
|
|
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
|
-
}>;
|
|
22
|
-
size: Schema.mutable<Schema.Struct<{
|
|
23
|
-
width: typeof Schema.Number;
|
|
24
|
-
height: typeof Schema.Number;
|
|
25
|
-
}>>;
|
|
26
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
27
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
28
|
-
}>>>, Schema.Struct<{
|
|
29
|
-
type: Schema.Literal<["queue"]>;
|
|
30
|
-
}>>;
|
|
31
|
-
export type FeedShape = Schema.Schema.Type<typeof FeedShape>;
|
|
32
|
-
export type CreateFeedProps = CreateShapeProps<FeedShape>;
|
|
33
|
-
export declare const createFeed: (props: CreateFeedProps) => {
|
|
34
|
-
id: string;
|
|
35
|
-
data?: any;
|
|
36
|
-
type: string;
|
|
37
|
-
text?: string | undefined;
|
|
38
|
-
guide?: boolean | undefined;
|
|
39
|
-
classNames?: string | undefined;
|
|
40
|
-
center: {
|
|
41
|
-
readonly x: number;
|
|
42
|
-
readonly y: number;
|
|
43
|
-
};
|
|
44
|
-
size: {
|
|
45
|
-
width: number;
|
|
46
|
-
height: number;
|
|
47
|
-
};
|
|
48
|
-
} & {
|
|
49
|
-
node?: string | undefined;
|
|
50
|
-
} & {
|
|
51
|
-
readonly type: "queue";
|
|
52
|
-
};
|
|
3
|
+
import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
|
|
4
|
+
import { type FeedShape } from './feed-def';
|
|
53
5
|
export declare const FeedComponent: ({ shape }: ShapeComponentProps<FeedShape>) => React.JSX.Element;
|
|
54
6
|
export declare const FeedItem: ({ classNames, item }: ThemedClassName<{
|
|
55
7
|
item: any;
|
|
56
8
|
}>) => React.JSX.Element;
|
|
57
|
-
export declare const feedShape: ShapeDef<FeedShape>;
|
|
58
9
|
//# sourceMappingURL=Feed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feed.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Feed.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Feed.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Feed.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAKxE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,aAAa,cAAe,mBAAmB,CAAC,SAAS,CAAC,sBAqBtE,CAAC;AAEF,eAAO,MAAM,QAAQ,yBAA0B,eAAe,CAAC;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,sBAe5E,CAAC"}
|
|
@@ -1,52 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
readonly data?: any;
|
|
7
|
-
}, {
|
|
8
|
-
readonly data?: any;
|
|
9
|
-
readonly id: string;
|
|
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
|
-
}>;
|
|
20
|
-
size: Schema.mutable<Schema.Struct<{
|
|
21
|
-
width: typeof Schema.Number;
|
|
22
|
-
height: typeof Schema.Number;
|
|
23
|
-
}>>;
|
|
24
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
25
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
26
|
-
}>>>, Schema.Struct<{
|
|
27
|
-
type: Schema.Literal<["function"]>;
|
|
28
|
-
}>>;
|
|
29
|
-
export type FunctionShape = Schema.Schema.Type<typeof FunctionShape>;
|
|
30
|
-
export type CreateFunctionProps = CreateShapeProps<FunctionShape>;
|
|
31
|
-
export declare const createFunction: (props: CreateFunctionProps) => {
|
|
32
|
-
id: string;
|
|
33
|
-
data?: any;
|
|
34
|
-
type: string;
|
|
35
|
-
text?: string | undefined;
|
|
36
|
-
guide?: boolean | undefined;
|
|
37
|
-
classNames?: string | undefined;
|
|
38
|
-
center: {
|
|
39
|
-
readonly x: number;
|
|
40
|
-
readonly y: number;
|
|
41
|
-
};
|
|
42
|
-
size: {
|
|
43
|
-
width: number;
|
|
44
|
-
height: number;
|
|
45
|
-
};
|
|
46
|
-
} & {
|
|
47
|
-
node?: string | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
readonly type: "function";
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ShapeComponentProps, type TextBoxProps } from '@dxos/react-ui-canvas-editor';
|
|
3
|
+
import { type FunctionShape } from './function-def';
|
|
4
|
+
type FunctionShapeComponentProps = ShapeComponentProps<FunctionShape> & TextBoxProps & {
|
|
5
|
+
title?: string;
|
|
50
6
|
};
|
|
51
|
-
export declare const
|
|
7
|
+
export declare const FunctionShapeComponent: ({ shape, title, ...props }: FunctionShapeComponentProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
52
9
|
//# sourceMappingURL=Function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Function.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Function.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,OAAO,EACL,KAAK,mBAAmB,EAGxB,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAMpD,KAAK,2BAA2B,GAAG,mBAAmB,CAAC,aAAa,CAAC,GAAG,YAAY,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1G,eAAO,MAAM,sBAAsB,+BAAgC,2BAA2B,sBAuD7F,CAAC"}
|
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { type ShapeComponentProps
|
|
4
|
-
import { type
|
|
5
|
-
export declare const GptShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly data?: any;
|
|
8
|
-
}, {
|
|
9
|
-
readonly data?: any;
|
|
10
|
-
readonly id: string;
|
|
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
|
-
}>;
|
|
21
|
-
size: Schema.mutable<Schema.Struct<{
|
|
22
|
-
width: typeof Schema.Number;
|
|
23
|
-
height: typeof Schema.Number;
|
|
24
|
-
}>>;
|
|
25
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
26
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
27
|
-
}>>>, Schema.Struct<{
|
|
28
|
-
type: Schema.Literal<["gpt"]>;
|
|
29
|
-
}>>;
|
|
30
|
-
export type GptShape = Schema.Schema.Type<typeof GptShape>;
|
|
31
|
-
export type CreateGptProps = CreateShapeProps<GptShape>;
|
|
32
|
-
export declare const createGpt: (props: CreateGptProps) => {
|
|
33
|
-
id: string;
|
|
34
|
-
data?: any;
|
|
35
|
-
type: string;
|
|
36
|
-
text?: string | undefined;
|
|
37
|
-
guide?: boolean | undefined;
|
|
38
|
-
classNames?: string | undefined;
|
|
39
|
-
center: {
|
|
40
|
-
readonly x: number;
|
|
41
|
-
readonly y: number;
|
|
42
|
-
};
|
|
43
|
-
size: {
|
|
44
|
-
width: number;
|
|
45
|
-
height: number;
|
|
46
|
-
};
|
|
47
|
-
} & {
|
|
48
|
-
node?: string | undefined;
|
|
49
|
-
} & {
|
|
50
|
-
readonly type: "gpt";
|
|
51
|
-
};
|
|
2
|
+
import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
|
|
3
|
+
import { type GptShape } from './gpt-def';
|
|
52
4
|
export declare const GptComponent: ({ shape }: ShapeComponentProps<GptShape>) => React.JSX.Element;
|
|
53
|
-
export declare const gptShape: ShapeDef<GptShape>;
|
|
54
5
|
//# sourceMappingURL=Gpt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gpt.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Gpt.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Gpt.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Gpt.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAIxE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,eAAO,MAAM,YAAY,cAAe,mBAAmB,CAAC,QAAQ,CAAC,sBAqDpE,CAAC"}
|
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { type ShapeComponentProps
|
|
4
|
-
import { type
|
|
5
|
-
export declare const GptRealtimeShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly data?: any;
|
|
8
|
-
}, {
|
|
9
|
-
readonly data?: any;
|
|
10
|
-
readonly id: string;
|
|
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
|
-
}>;
|
|
21
|
-
size: Schema.mutable<Schema.Struct<{
|
|
22
|
-
width: typeof Schema.Number;
|
|
23
|
-
height: typeof Schema.Number;
|
|
24
|
-
}>>;
|
|
25
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
26
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
27
|
-
}>>>, Schema.Struct<{
|
|
28
|
-
type: Schema.Literal<["gpt-realtime"]>;
|
|
29
|
-
}>>;
|
|
30
|
-
export type GptRealtimeShape = Schema.Schema.Type<typeof GptRealtimeShape>;
|
|
31
|
-
export type CreateGptRealtimeProps = CreateShapeProps<GptRealtimeShape>;
|
|
32
|
-
export declare const createGptRealtime: (props: CreateGptRealtimeProps) => {
|
|
33
|
-
id: string;
|
|
34
|
-
data?: any;
|
|
35
|
-
type: string;
|
|
36
|
-
text?: string | undefined;
|
|
37
|
-
guide?: boolean | undefined;
|
|
38
|
-
classNames?: string | undefined;
|
|
39
|
-
center: {
|
|
40
|
-
readonly x: number;
|
|
41
|
-
readonly y: number;
|
|
42
|
-
};
|
|
43
|
-
size: {
|
|
44
|
-
width: number;
|
|
45
|
-
height: number;
|
|
46
|
-
};
|
|
47
|
-
} & {
|
|
48
|
-
node?: string | undefined;
|
|
49
|
-
} & {
|
|
50
|
-
readonly type: "gpt-realtime";
|
|
51
|
-
};
|
|
2
|
+
import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
|
|
3
|
+
import { type GptRealtimeShape } from './gpt-realtime-def';
|
|
52
4
|
export declare const GptRealtimeComponent: ({ shape }: ShapeComponentProps<GptRealtimeShape>) => React.JSX.Element;
|
|
53
|
-
export declare const gptRealtimeShape: ShapeDef<GptRealtimeShape>;
|
|
54
5
|
//# sourceMappingURL=GptRealtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GptRealtime.d.ts","sourceRoot":"","sources":["../../../../src/shapes/GptRealtime.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"GptRealtime.d.ts","sourceRoot":"","sources":["../../../../src/shapes/GptRealtime.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,eAAO,MAAM,oBAAoB,cAAe,mBAAmB,CAAC,gBAAgB,CAAC,sBA6HpF,CAAC"}
|
|
@@ -1,107 +1,8 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { type ShapeComponentProps
|
|
4
|
-
import { type
|
|
5
|
-
export declare const JsonShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly data?: any;
|
|
8
|
-
}, {
|
|
9
|
-
readonly data?: any;
|
|
10
|
-
readonly id: string;
|
|
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
|
-
}>;
|
|
21
|
-
size: Schema.mutable<Schema.Struct<{
|
|
22
|
-
width: typeof Schema.Number;
|
|
23
|
-
height: typeof Schema.Number;
|
|
24
|
-
}>>;
|
|
25
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
26
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
27
|
-
}>>>, Schema.Struct<{
|
|
28
|
-
type: Schema.Literal<["json"]>;
|
|
29
|
-
}>>;
|
|
30
|
-
export type JsonShape = Schema.Schema.Type<typeof JsonShape>;
|
|
31
|
-
export declare const JsonTransformShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
|
|
32
|
-
readonly id: string;
|
|
33
|
-
readonly data?: any;
|
|
34
|
-
}, {
|
|
35
|
-
readonly data?: any;
|
|
36
|
-
readonly id: string;
|
|
37
|
-
}, never>, Schema.Struct<{
|
|
38
|
-
type: typeof Schema.String;
|
|
39
|
-
text: Schema.optional<typeof Schema.String>;
|
|
40
|
-
guide: Schema.optional<typeof Schema.Boolean>;
|
|
41
|
-
classNames: Schema.optional<typeof Schema.String>;
|
|
42
|
-
}>>, Schema.Struct<{
|
|
43
|
-
center: Schema.Struct<{
|
|
44
|
-
x: typeof Schema.Number;
|
|
45
|
-
y: typeof Schema.Number;
|
|
46
|
-
}>;
|
|
47
|
-
size: Schema.mutable<Schema.Struct<{
|
|
48
|
-
width: typeof Schema.Number;
|
|
49
|
-
height: typeof Schema.Number;
|
|
50
|
-
}>>;
|
|
51
|
-
}>>>, Schema.mutable<Schema.Struct<{
|
|
52
|
-
node: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
53
|
-
}>>>, Schema.Struct<{
|
|
54
|
-
type: Schema.Literal<["json-transform"]>;
|
|
55
|
-
}>>;
|
|
56
|
-
export type JsonTransformShape = Schema.Schema.Type<typeof JsonTransformShape>;
|
|
2
|
+
import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
|
|
3
|
+
import { type JsonShape, type JsonTransformShape } from './json-def';
|
|
57
4
|
export type JsonComponentProps = ShapeComponentProps<JsonShape>;
|
|
58
5
|
export declare const JsonComponent: ({ shape, ...props }: JsonComponentProps) => React.JSX.Element;
|
|
59
6
|
export type JsonTransformComponentProps = ShapeComponentProps<JsonTransformShape>;
|
|
60
7
|
export declare const JsonTransformComponent: ({ shape, ...props }: JsonTransformComponentProps) => React.JSX.Element;
|
|
61
|
-
export type CreateJsonProps = CreateShapeProps<JsonShape>;
|
|
62
|
-
export declare const createJson: (props: CreateJsonProps) => {
|
|
63
|
-
id: string;
|
|
64
|
-
data?: any;
|
|
65
|
-
type: string;
|
|
66
|
-
text?: string | undefined;
|
|
67
|
-
guide?: boolean | undefined;
|
|
68
|
-
classNames?: string | undefined;
|
|
69
|
-
center: {
|
|
70
|
-
readonly x: number;
|
|
71
|
-
readonly y: number;
|
|
72
|
-
};
|
|
73
|
-
size: {
|
|
74
|
-
width: number;
|
|
75
|
-
height: number;
|
|
76
|
-
};
|
|
77
|
-
} & {
|
|
78
|
-
node?: string | undefined;
|
|
79
|
-
} & {
|
|
80
|
-
readonly type: "json";
|
|
81
|
-
};
|
|
82
|
-
export declare const jsonShape: ShapeDef<JsonShape>;
|
|
83
|
-
export type CreateJsonTransformProps = CreateShapeProps<JsonTransformShape> & {
|
|
84
|
-
expression?: string;
|
|
85
|
-
};
|
|
86
|
-
export declare const createJsonTransform: (props: CreateJsonTransformProps) => {
|
|
87
|
-
id: string;
|
|
88
|
-
data?: any;
|
|
89
|
-
type: string;
|
|
90
|
-
text?: string | undefined;
|
|
91
|
-
guide?: boolean | undefined;
|
|
92
|
-
classNames?: string | undefined;
|
|
93
|
-
center: {
|
|
94
|
-
readonly x: number;
|
|
95
|
-
readonly y: number;
|
|
96
|
-
};
|
|
97
|
-
size: {
|
|
98
|
-
width: number;
|
|
99
|
-
height: number;
|
|
100
|
-
};
|
|
101
|
-
} & {
|
|
102
|
-
node?: string | undefined;
|
|
103
|
-
} & {
|
|
104
|
-
readonly type: "json-transform";
|
|
105
|
-
};
|
|
106
|
-
export declare const jsonTransformShape: ShapeDef<JsonTransformShape>;
|
|
107
8
|
//# sourceMappingURL=Json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Json.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Json.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"Json.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Json.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAKxE,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAMrE,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,wBAAyB,kBAAkB,sBAiBpE,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;AAElF,eAAO,MAAM,sBAAsB,wBAAyB,2BAA2B,sBAEtF,CAAC"}
|