@dxos/react-ui-canvas-compute 0.7.5-labs.5f04cf6

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.
Files changed (149) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +1 -0
  3. package/dist/lib/browser/index.mjs +2499 -0
  4. package/dist/lib/browser/index.mjs.map +7 -0
  5. package/dist/lib/browser/meta.json +1 -0
  6. package/dist/lib/node/index.cjs +2591 -0
  7. package/dist/lib/node/index.cjs.map +7 -0
  8. package/dist/lib/node/meta.json +1 -0
  9. package/dist/lib/node-esm/index.mjs +2499 -0
  10. package/dist/lib/node-esm/index.mjs.map +7 -0
  11. package/dist/lib/node-esm/meta.json +1 -0
  12. package/dist/types/src/compute-layout.d.ts +9 -0
  13. package/dist/types/src/compute-layout.d.ts.map +1 -0
  14. package/dist/types/src/compute.stories.d.ts +28 -0
  15. package/dist/types/src/compute.stories.d.ts.map +1 -0
  16. package/dist/types/src/graph/controller.d.ts +139 -0
  17. package/dist/types/src/graph/controller.d.ts.map +1 -0
  18. package/dist/types/src/graph/index.d.ts +3 -0
  19. package/dist/types/src/graph/index.d.ts.map +1 -0
  20. package/dist/types/src/graph/node-defs.d.ts +6 -0
  21. package/dist/types/src/graph/node-defs.d.ts.map +1 -0
  22. package/dist/types/src/hooks/compute-context.d.ts +7 -0
  23. package/dist/types/src/hooks/compute-context.d.ts.map +1 -0
  24. package/dist/types/src/hooks/index.d.ts +4 -0
  25. package/dist/types/src/hooks/index.d.ts.map +1 -0
  26. package/dist/types/src/hooks/useComputeNodeState.d.ts +19 -0
  27. package/dist/types/src/hooks/useComputeNodeState.d.ts.map +1 -0
  28. package/dist/types/src/hooks/useGraphMonitor.d.ts +14 -0
  29. package/dist/types/src/hooks/useGraphMonitor.d.ts.map +1 -0
  30. package/dist/types/src/index.d.ts +6 -0
  31. package/dist/types/src/index.d.ts.map +1 -0
  32. package/dist/types/src/json.test.d.ts +21 -0
  33. package/dist/types/src/json.test.d.ts.map +1 -0
  34. package/dist/types/src/registry.d.ts +9 -0
  35. package/dist/types/src/registry.d.ts.map +1 -0
  36. package/dist/types/src/schema.test.d.ts +2 -0
  37. package/dist/types/src/schema.test.d.ts.map +1 -0
  38. package/dist/types/src/shapes/Append.d.ts +54 -0
  39. package/dist/types/src/shapes/Append.d.ts.map +1 -0
  40. package/dist/types/src/shapes/Array.d.ts +38 -0
  41. package/dist/types/src/shapes/Array.d.ts.map +1 -0
  42. package/dist/types/src/shapes/Audio.d.ts +54 -0
  43. package/dist/types/src/shapes/Audio.d.ts.map +1 -0
  44. package/dist/types/src/shapes/Beacon.d.ts +54 -0
  45. package/dist/types/src/shapes/Beacon.d.ts.map +1 -0
  46. package/dist/types/src/shapes/Boolean.d.ts +233 -0
  47. package/dist/types/src/shapes/Boolean.d.ts.map +1 -0
  48. package/dist/types/src/shapes/Chat.d.ts +57 -0
  49. package/dist/types/src/shapes/Chat.d.ts.map +1 -0
  50. package/dist/types/src/shapes/Constant.d.ts +60 -0
  51. package/dist/types/src/shapes/Constant.d.ts.map +1 -0
  52. package/dist/types/src/shapes/Database.d.ts +54 -0
  53. package/dist/types/src/shapes/Database.d.ts.map +1 -0
  54. package/dist/types/src/shapes/Function.d.ts +54 -0
  55. package/dist/types/src/shapes/Function.d.ts.map +1 -0
  56. package/dist/types/src/shapes/Gpt.d.ts +54 -0
  57. package/dist/types/src/shapes/Gpt.d.ts.map +1 -0
  58. package/dist/types/src/shapes/GptRealtime.d.ts +54 -0
  59. package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -0
  60. package/dist/types/src/shapes/Json.d.ts +107 -0
  61. package/dist/types/src/shapes/Json.d.ts.map +1 -0
  62. package/dist/types/src/shapes/Logic.d.ts +109 -0
  63. package/dist/types/src/shapes/Logic.d.ts.map +1 -0
  64. package/dist/types/src/shapes/Queue.d.ts +58 -0
  65. package/dist/types/src/shapes/Queue.d.ts.map +1 -0
  66. package/dist/types/src/shapes/RNG.d.ts +58 -0
  67. package/dist/types/src/shapes/RNG.d.ts.map +1 -0
  68. package/dist/types/src/shapes/Scope.d.ts +54 -0
  69. package/dist/types/src/shapes/Scope.d.ts.map +1 -0
  70. package/dist/types/src/shapes/Surface.d.ts +54 -0
  71. package/dist/types/src/shapes/Surface.d.ts.map +1 -0
  72. package/dist/types/src/shapes/Switch.d.ts +54 -0
  73. package/dist/types/src/shapes/Switch.d.ts.map +1 -0
  74. package/dist/types/src/shapes/Table.d.ts +54 -0
  75. package/dist/types/src/shapes/Table.d.ts.map +1 -0
  76. package/dist/types/src/shapes/Template.d.ts +56 -0
  77. package/dist/types/src/shapes/Template.d.ts.map +1 -0
  78. package/dist/types/src/shapes/Text.d.ts +54 -0
  79. package/dist/types/src/shapes/Text.d.ts.map +1 -0
  80. package/dist/types/src/shapes/TextToImage.d.ts +54 -0
  81. package/dist/types/src/shapes/TextToImage.d.ts.map +1 -0
  82. package/dist/types/src/shapes/Thread.d.ts +58 -0
  83. package/dist/types/src/shapes/Thread.d.ts.map +1 -0
  84. package/dist/types/src/shapes/Trigger.d.ts +64 -0
  85. package/dist/types/src/shapes/Trigger.d.ts.map +1 -0
  86. package/dist/types/src/shapes/common/Box.d.ts +25 -0
  87. package/dist/types/src/shapes/common/Box.d.ts.map +1 -0
  88. package/dist/types/src/shapes/common/FunctionBody.d.ts +15 -0
  89. package/dist/types/src/shapes/common/FunctionBody.d.ts.map +1 -0
  90. package/dist/types/src/shapes/common/TypeSelect.d.ts +4 -0
  91. package/dist/types/src/shapes/common/TypeSelect.d.ts.map +1 -0
  92. package/dist/types/src/shapes/common/index.d.ts +4 -0
  93. package/dist/types/src/shapes/common/index.d.ts.map +1 -0
  94. package/dist/types/src/shapes/defs.d.ts +39 -0
  95. package/dist/types/src/shapes/defs.d.ts.map +1 -0
  96. package/dist/types/src/shapes/index.d.ts +27 -0
  97. package/dist/types/src/shapes/index.d.ts.map +1 -0
  98. package/dist/types/src/testing/circuits.d.ts +193 -0
  99. package/dist/types/src/testing/circuits.d.ts.map +1 -0
  100. package/dist/types/src/testing/index.d.ts +2 -0
  101. package/dist/types/src/testing/index.d.ts.map +1 -0
  102. package/dist/types/tsconfig.tsbuildinfo +1 -0
  103. package/package.json +85 -0
  104. package/src/README.md +47 -0
  105. package/src/compute-layout.ts +37 -0
  106. package/src/compute.stories.tsx +362 -0
  107. package/src/graph/controller.ts +405 -0
  108. package/src/graph/index.ts +6 -0
  109. package/src/graph/node-defs.ts +82 -0
  110. package/src/hooks/compute-context.ts +19 -0
  111. package/src/hooks/index.ts +7 -0
  112. package/src/hooks/useComputeNodeState.ts +83 -0
  113. package/src/hooks/useGraphMonitor.ts +133 -0
  114. package/src/index.ts +9 -0
  115. package/src/json.test.ts +35 -0
  116. package/src/registry.ts +100 -0
  117. package/src/schema.test.ts +62 -0
  118. package/src/shapes/Append.tsx +43 -0
  119. package/src/shapes/Array.tsx +61 -0
  120. package/src/shapes/Audio.tsx +55 -0
  121. package/src/shapes/Beacon.tsx +56 -0
  122. package/src/shapes/Boolean.tsx +215 -0
  123. package/src/shapes/Chat.tsx +77 -0
  124. package/src/shapes/Constant.tsx +125 -0
  125. package/src/shapes/Database.tsx +39 -0
  126. package/src/shapes/Function.tsx +40 -0
  127. package/src/shapes/Gpt.tsx +91 -0
  128. package/src/shapes/GptRealtime.tsx +168 -0
  129. package/src/shapes/Json.tsx +103 -0
  130. package/src/shapes/Logic.tsx +82 -0
  131. package/src/shapes/Queue.tsx +78 -0
  132. package/src/shapes/RNG.tsx +84 -0
  133. package/src/shapes/Scope.tsx +54 -0
  134. package/src/shapes/Surface.tsx +57 -0
  135. package/src/shapes/Switch.tsx +53 -0
  136. package/src/shapes/Table.tsx +45 -0
  137. package/src/shapes/Template.tsx +98 -0
  138. package/src/shapes/Text.tsx +56 -0
  139. package/src/shapes/TextToImage.tsx +39 -0
  140. package/src/shapes/Thread.tsx +87 -0
  141. package/src/shapes/Trigger.tsx +152 -0
  142. package/src/shapes/common/Box.tsx +74 -0
  143. package/src/shapes/common/FunctionBody.tsx +122 -0
  144. package/src/shapes/common/TypeSelect.tsx +27 -0
  145. package/src/shapes/common/index.ts +7 -0
  146. package/src/shapes/defs.ts +50 -0
  147. package/src/shapes/index.ts +31 -0
  148. package/src/testing/circuits.ts +320 -0
  149. package/src/testing/index.ts +5 -0
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import { S } from '@dxos/echo-schema';
3
+ import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
+ import { type CreateShapeProps } from './defs';
5
+ export declare const AudioShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
6
+ readonly id: string;
7
+ readonly data?: any;
8
+ }, {
9
+ readonly id: string;
10
+ readonly data?: any;
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
+ }>;
21
+ size: S.mutable<S.Struct<{
22
+ width: typeof S.Number;
23
+ height: typeof S.Number;
24
+ }>>;
25
+ }>>>, S.mutable<S.Struct<{
26
+ node: S.optional<S.SchemaClass<string, string, never>>;
27
+ }>>>, S.Struct<{
28
+ type: S.Literal<["audio"]>;
29
+ }>>;
30
+ export type AudioShape = S.Schema.Type<typeof AudioShape>;
31
+ export type CreateAudioProps = CreateShapeProps<AudioShape>;
32
+ export declare const createAudio: (props: CreateAudioProps) => {
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: "audio";
51
+ };
52
+ export declare const AudioComponent: ({ shape }: ShapeComponentProps<AudioShape>) => React.JSX.Element;
53
+ export declare const audioShape: ShapeDef<AudioShape>;
54
+ //# sourceMappingURL=Audio.d.ts.map
@@ -0,0 +1 @@
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;;;;;;;iBA0BkE,EAAG,MAAM;UACxF,EAAG,QACT,QAAO,EAAG,MAAM;WAAa,EAAG,QACnC,QACG,EAAA,OAAK;gBAIF,EAAG,QAAQ,QAAO,EAAG,MAAM;;YACpB,EACZ,MAAI;kBACG,EAAG,MAAM;kBAChB,EAAG,MAAM;;UACT,EAAE,OAAO,CAAC,EAAG,MAAK;sBACJ,EAAG,MAAM;uBAAyB,EAAE,MAAM;;;;;;GAnCzD,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"}
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import { S } from '@dxos/echo-schema';
3
+ import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
+ import { type CreateShapeProps } from './defs';
5
+ export declare const BeaconShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
6
+ readonly id: string;
7
+ readonly data?: any;
8
+ }, {
9
+ readonly id: string;
10
+ readonly data?: any;
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
+ }>;
21
+ size: S.mutable<S.Struct<{
22
+ width: typeof S.Number;
23
+ height: typeof S.Number;
24
+ }>>;
25
+ }>>>, S.mutable<S.Struct<{
26
+ node: S.optional<S.SchemaClass<string, string, never>>;
27
+ }>>>, S.Struct<{
28
+ type: S.Literal<["beacon"]>;
29
+ }>>;
30
+ export type BeaconShape = S.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
+ };
52
+ export declare const BeaconComponent: ({ shape }: ShapeComponentProps<BeaconShape>) => React.JSX.Element;
53
+ export declare const beaconShape: ShapeDef<BeaconShape>;
54
+ //# sourceMappingURL=Beacon.d.ts.map
@@ -0,0 +1 @@
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;;;;;;;iBAwBhB,EAAA,MAAA;UACF,EAAA,QACF,QACF,EAAC,MAGH;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBACjC,EAAE,QACV,QAAQ,EAAE,MAAM;;YAEd,EAAC,MAAM;kBACP,EAAA,MAAM;kBAAmB,EACzB,MAAK;;UACH,EAAA,OAAO,CAAC,EAAE,MAAM;sBACL,EAAG,MAAM;uBAAwB,EAC5C,MAAG;;;;;;GAlCN,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"}
@@ -0,0 +1,233 @@
1
+ import { S } from '@dxos/echo-schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ type GateType = 'and' | 'or' | 'not';
5
+ declare const GateShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
6
+ readonly id: string;
7
+ readonly data?: any;
8
+ }, {
9
+ readonly id: string;
10
+ readonly data?: any;
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
+ }>;
21
+ size: S.mutable<S.Struct<{
22
+ width: typeof S.Number;
23
+ height: typeof S.Number;
24
+ }>>;
25
+ }>>>, S.mutable<S.Struct<{
26
+ node: S.optional<S.SchemaClass<string, string, never>>;
27
+ }>>>, S.Struct<{
28
+ type: typeof S.String;
29
+ }>>;
30
+ type GateShape = S.Schema.Type<typeof GateShape>;
31
+ type CreateGateProps = CreateShapeProps<GateShape> & {
32
+ type: GateType;
33
+ };
34
+ export declare const AndShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
35
+ readonly id: string;
36
+ readonly data?: any;
37
+ }, {
38
+ readonly id: string;
39
+ readonly data?: any;
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
+ }>;
50
+ size: S.mutable<S.Struct<{
51
+ width: typeof S.Number;
52
+ height: typeof S.Number;
53
+ }>>;
54
+ }>>>, S.mutable<S.Struct<{
55
+ node: S.optional<S.SchemaClass<string, string, never>>;
56
+ }>>>, S.Struct<{
57
+ type: typeof S.String;
58
+ }>>;
59
+ export type AndShape = GateShape;
60
+ export declare const createAnd: (props: Omit<CreateGateProps, "type" | "node">) => {
61
+ id: string;
62
+ data?: any;
63
+ type: string;
64
+ text?: string | undefined;
65
+ guide?: boolean | undefined;
66
+ classNames?: string | undefined;
67
+ center: {
68
+ readonly x: number;
69
+ readonly y: number;
70
+ };
71
+ size: {
72
+ width: number;
73
+ height: number;
74
+ };
75
+ } & {
76
+ node?: string | undefined;
77
+ } & {
78
+ readonly type: string;
79
+ };
80
+ export declare const andShape: ShapeDef<{
81
+ id: string;
82
+ data?: any;
83
+ type: string;
84
+ text?: string | undefined;
85
+ guide?: boolean | undefined;
86
+ classNames?: string | undefined;
87
+ center: {
88
+ readonly x: number;
89
+ readonly y: number;
90
+ };
91
+ size: {
92
+ width: number;
93
+ height: number;
94
+ };
95
+ } & {
96
+ node?: string | undefined;
97
+ } & {
98
+ readonly type: string;
99
+ }>;
100
+ export declare const OrShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
101
+ readonly id: string;
102
+ readonly data?: any;
103
+ }, {
104
+ readonly id: string;
105
+ readonly data?: any;
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
+ }>;
116
+ size: S.mutable<S.Struct<{
117
+ width: typeof S.Number;
118
+ height: typeof S.Number;
119
+ }>>;
120
+ }>>>, S.mutable<S.Struct<{
121
+ node: S.optional<S.SchemaClass<string, string, never>>;
122
+ }>>>, S.Struct<{
123
+ type: typeof S.String;
124
+ }>>;
125
+ export type OrShape = GateShape;
126
+ export declare const createOr: (props: Omit<CreateGateProps, "type" | "node">) => {
127
+ id: string;
128
+ data?: any;
129
+ type: string;
130
+ text?: string | undefined;
131
+ guide?: boolean | undefined;
132
+ classNames?: string | undefined;
133
+ center: {
134
+ readonly x: number;
135
+ readonly y: number;
136
+ };
137
+ size: {
138
+ width: number;
139
+ height: number;
140
+ };
141
+ } & {
142
+ node?: string | undefined;
143
+ } & {
144
+ readonly type: string;
145
+ };
146
+ export declare const orShape: ShapeDef<{
147
+ id: string;
148
+ data?: any;
149
+ type: string;
150
+ text?: string | undefined;
151
+ guide?: boolean | undefined;
152
+ classNames?: string | undefined;
153
+ center: {
154
+ readonly x: number;
155
+ readonly y: number;
156
+ };
157
+ size: {
158
+ width: number;
159
+ height: number;
160
+ };
161
+ } & {
162
+ node?: string | undefined;
163
+ } & {
164
+ readonly type: string;
165
+ }>;
166
+ export declare const NotShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
167
+ readonly id: string;
168
+ readonly data?: any;
169
+ }, {
170
+ readonly id: string;
171
+ readonly data?: any;
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
+ }>;
182
+ size: S.mutable<S.Struct<{
183
+ width: typeof S.Number;
184
+ height: typeof S.Number;
185
+ }>>;
186
+ }>>>, S.mutable<S.Struct<{
187
+ node: S.optional<S.SchemaClass<string, string, never>>;
188
+ }>>>, S.Struct<{
189
+ type: typeof S.String;
190
+ }>>;
191
+ export type NotShape = GateShape;
192
+ export declare const createNot: (props: Omit<CreateGateProps, "type" | "node">) => {
193
+ id: string;
194
+ data?: any;
195
+ type: string;
196
+ text?: string | undefined;
197
+ guide?: boolean | undefined;
198
+ classNames?: string | undefined;
199
+ center: {
200
+ readonly x: number;
201
+ readonly y: number;
202
+ };
203
+ size: {
204
+ width: number;
205
+ height: number;
206
+ };
207
+ } & {
208
+ node?: string | undefined;
209
+ } & {
210
+ readonly type: string;
211
+ };
212
+ export declare const notShape: ShapeDef<{
213
+ id: string;
214
+ data?: any;
215
+ type: string;
216
+ text?: string | undefined;
217
+ guide?: boolean | undefined;
218
+ classNames?: string | undefined;
219
+ center: {
220
+ readonly x: number;
221
+ readonly y: number;
222
+ };
223
+ size: {
224
+ width: number;
225
+ height: number;
226
+ };
227
+ } & {
228
+ node?: string | undefined;
229
+ } & {
230
+ readonly type: string;
231
+ }>;
232
+ export {};
233
+ //# sourceMappingURL=Boolean.d.ts.map
@@ -0,0 +1 @@
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;;;;;;;iBAwC8B,EAAI,MAAK;UAAW,EAAI,QACpE,QACC,EAAC,MACF;WACK,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAEhC,EAAE,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAOnE,EAAA,MAAK;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAEvE,EAAG,MAAM;uBACD,EAAG,MAAM;;;;;;GAnDhB,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;;;;;;;iBAxEwB,EAAI,MAAK;UAAW,EAAI,QACpE,QACC,EAAC,MACF;WACK,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAEhC,EAAE,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAOnE,EAAA,MAAK;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAEvE,EAAG,MAAM;uBACD,EAAG,MAAM;;;;;;GAwDgB,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;;;;;;;iBA1GyB,EAAI,MAAK;UAAW,EAAI,QACpE,QACC,EAAC,MACF;WACK,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAEhC,EAAE,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAOnE,EAAA,MAAK;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAEvE,EAAG,MAAM;uBACD,EAAG,MAAM;;;;;;GA0Fe,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;;;;;;;iBA9IwB,EAAI,MAAK;UAAW,EAAI,QACpE,QACC,EAAC,MACF;WACK,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAEhC,EAAE,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAOnE,EAAA,MAAK;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAEvE,EAAG,MAAM;uBACD,EAAG,MAAM;;;;;;GA8HgB,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"}
@@ -0,0 +1,57 @@
1
+ import React from 'react';
2
+ import { S } from '@dxos/echo-schema';
3
+ import { type ShapeComponentProps, type ShapeDef, type TextBoxProps } from '@dxos/react-ui-canvas-editor';
4
+ import { type CreateShapeProps } from './defs';
5
+ export declare const ChatShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
6
+ readonly id: string;
7
+ readonly data?: any;
8
+ }, {
9
+ readonly id: string;
10
+ readonly data?: any;
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
+ }>;
21
+ size: S.mutable<S.Struct<{
22
+ width: typeof S.Number;
23
+ height: typeof S.Number;
24
+ }>>;
25
+ }>>>, S.mutable<S.Struct<{
26
+ node: S.optional<S.SchemaClass<string, string, never>>;
27
+ }>>>, S.Struct<{
28
+ type: S.Literal<["chat"]>;
29
+ }>>;
30
+ export type ChatShape = S.Schema.Type<typeof ChatShape>;
31
+ export type TextInputComponentProps = ShapeComponentProps<ChatShape> & TextBoxProps & {
32
+ title?: string;
33
+ };
34
+ 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
+ //# sourceMappingURL=Chat.d.ts.map
@@ -0,0 +1 @@
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;;;;;;;iBA6BoB,EAAG,MAAM;UAAY,EAC3D,QAAG,QACJ,EACF,MAGD;WAGC,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAErD,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAClC,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UAAoB,EAAE,OAAO,CAAC,EAEtF,MAAI;sBAAwB,EAAG,MAAM;uBACxB,EACX,MAAI;;;;;;GAxCL,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"}
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import { S } from '@dxos/echo-schema';
3
+ import { type ShapeComponentProps, type ShapeDef, type TextBoxProps } from '@dxos/react-ui-canvas-editor';
4
+ import { type CreateShapeProps } from './defs';
5
+ export declare const ConstantShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
6
+ readonly id: string;
7
+ readonly data?: any;
8
+ }, {
9
+ readonly id: string;
10
+ readonly data?: any;
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
+ }>;
21
+ size: S.mutable<S.Struct<{
22
+ width: typeof S.Number;
23
+ height: typeof S.Number;
24
+ }>>;
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
+ }>>;
31
+ export type ConstantShape = S.Schema.Type<typeof ConstantShape>;
32
+ export type ConstantComponentProps = ShapeComponentProps<ConstantShape> & TextBoxProps & {
33
+ title?: string;
34
+ chat?: boolean;
35
+ };
36
+ 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
+ //# sourceMappingURL=Constant.d.ts.map
@@ -0,0 +1 @@
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;;;;;;;iBA2B1B,EAEA,MAAK;UAAW,EAAG,QAAQ,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAC/E,EAAG,QAAQ,QAAO,EAAG,MAAM;;YACjB,EAAG,MAAM;kBAAoB,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UACxE,EAAG,OAAO,CAAC,EAAE,MAAM;sBAE1B,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;;GA5B3C,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"}
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import { S } from '@dxos/echo-schema';
3
+ import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
+ import { type CreateShapeProps } from './defs';
5
+ export declare const DatabaseShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
6
+ readonly id: string;
7
+ readonly data?: any;
8
+ }, {
9
+ readonly id: string;
10
+ readonly data?: any;
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
+ }>;
21
+ size: S.mutable<S.Struct<{
22
+ width: typeof S.Number;
23
+ height: typeof S.Number;
24
+ }>>;
25
+ }>>>, S.mutable<S.Struct<{
26
+ node: S.optional<S.SchemaClass<string, string, never>>;
27
+ }>>>, S.Struct<{
28
+ type: S.Literal<["database"]>;
29
+ }>>;
30
+ export type DatabaseShape = S.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
+ };
52
+ export declare const DatabaseComponent: ({ shape }: ShapeComponentProps<DatabaseShape>) => React.JSX.Element;
53
+ export declare const databaseShape: ShapeDef<DatabaseShape>;
54
+ //# sourceMappingURL=Database.d.ts.map
@@ -0,0 +1 @@
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;;;;;;;iBA0BgI,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;;;;;;GArBte,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"}
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import { S } from '@dxos/echo-schema';
3
+ import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
+ import { type CreateShapeProps } from './defs';
5
+ export declare const FunctionShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
6
+ readonly id: string;
7
+ readonly data?: any;
8
+ }, {
9
+ readonly id: string;
10
+ readonly data?: any;
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
+ }>;
21
+ size: S.mutable<S.Struct<{
22
+ width: typeof S.Number;
23
+ height: typeof S.Number;
24
+ }>>;
25
+ }>>>, S.mutable<S.Struct<{
26
+ node: S.optional<S.SchemaClass<string, string, never>>;
27
+ }>>>, S.Struct<{
28
+ type: S.Literal<["function"]>;
29
+ }>>;
30
+ export type FunctionShape = S.Schema.Type<typeof FunctionShape>;
31
+ export type CreateFunctionProps = CreateShapeProps<FunctionShape>;
32
+ export declare const createFunction: (props: CreateFunctionProps) => {
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: "function";
51
+ };
52
+ export declare const FunctionComponent: ({ shape }: ShapeComponentProps<FunctionShape>) => React.JSX.Element;
53
+ export declare const functionShape: ShapeDef<FunctionShape>;
54
+ //# sourceMappingURL=Function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Function.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;AAE1E,eAAO,MAAM,aAAa;;;;;;;iBA2BN,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;;;;;;GAtBhW,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;;;;;;;;;;;;;;;;;;;CAC2D,CAAC;AAErH,eAAO,MAAM,iBAAiB,cAAe,mBAAmB,CAAC,aAAa,CAAC,sBAE9E,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,aAAa,CAQjD,CAAC"}
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import { S } from '@dxos/echo-schema';
3
+ import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
+ import { type CreateShapeProps } from './defs';
5
+ export declare const GptShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
6
+ readonly id: string;
7
+ readonly data?: any;
8
+ }, {
9
+ readonly id: string;
10
+ readonly data?: any;
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
+ }>;
21
+ size: S.mutable<S.Struct<{
22
+ width: typeof S.Number;
23
+ height: typeof S.Number;
24
+ }>>;
25
+ }>>>, S.mutable<S.Struct<{
26
+ node: S.optional<S.SchemaClass<string, string, never>>;
27
+ }>>>, S.Struct<{
28
+ type: S.Literal<["gpt"]>;
29
+ }>>;
30
+ export type GptShape = S.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
+ };
52
+ export declare const GptComponent: ({ shape }: ShapeComponentProps<GptShape>) => React.JSX.Element;
53
+ export declare const gptShape: ShapeDef<GptShape>;
54
+ //# sourceMappingURL=Gpt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gpt.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Gpt.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,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;AAG1E,eAAO,MAAM,QAAQ;;;;;;;iBA8BZ,EAAI,MAAK;UACR,EAAA,QAAK,QAAQ,EAAE,MAAM;WAAa,EAAG,QAC7C,QAAQ,EAAE,OAAO;gBACP,EAAA,QAAI,QAAO,EAAG,MAAM;;YACV,EAAG,MAAM;kBACf,EAAA,MAAE;kBACA,EAAA,MAAT;;UAAmB,EAAI,OAAM,CAAC,EAAE,MAAM;sBAC1B,EAAG,MAAM;uBACV,EAAA,MAAK;;;;;;GAjCxB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AAExD,eAAO,MAAM,SAAS,UAAW,cAAc;;;;;;;;;;;;;;;;;;;CAK3C,CAAC;AAEL,eAAO,MAAM,YAAY,cAAe,mBAAmB,CAAC,QAAQ,CAAC,sBA+CpE,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAQvC,CAAC"}