@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.
Files changed (171) hide show
  1. package/dist/lib/index.mjs +2164 -0
  2. package/dist/lib/index.mjs.map +1 -0
  3. package/dist/types/src/compute.stories.d.ts.map +1 -1
  4. package/dist/types/src/shapes/Append.d.ts +2 -51
  5. package/dist/types/src/shapes/Append.d.ts.map +1 -1
  6. package/dist/types/src/shapes/Array.d.ts +2 -34
  7. package/dist/types/src/shapes/Array.d.ts.map +1 -1
  8. package/dist/types/src/shapes/Audio.d.ts +2 -51
  9. package/dist/types/src/shapes/Audio.d.ts.map +1 -1
  10. package/dist/types/src/shapes/Beacon.d.ts +2 -51
  11. package/dist/types/src/shapes/Beacon.d.ts.map +1 -1
  12. package/dist/types/src/shapes/Chat.d.ts +2 -51
  13. package/dist/types/src/shapes/Chat.d.ts.map +1 -1
  14. package/dist/types/src/shapes/Constant.d.ts +2 -53
  15. package/dist/types/src/shapes/Constant.d.ts.map +1 -1
  16. package/dist/types/src/shapes/Database.d.ts +2 -51
  17. package/dist/types/src/shapes/Database.d.ts.map +1 -1
  18. package/dist/types/src/shapes/Feed.d.ts +2 -51
  19. package/dist/types/src/shapes/Feed.d.ts.map +1 -1
  20. package/dist/types/src/shapes/Function.d.ts +7 -50
  21. package/dist/types/src/shapes/Function.d.ts.map +1 -1
  22. package/dist/types/src/shapes/Gpt.d.ts +2 -51
  23. package/dist/types/src/shapes/Gpt.d.ts.map +1 -1
  24. package/dist/types/src/shapes/GptRealtime.d.ts +2 -51
  25. package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -1
  26. package/dist/types/src/shapes/Json.d.ts +2 -101
  27. package/dist/types/src/shapes/Json.d.ts.map +1 -1
  28. package/dist/types/src/shapes/Logic.d.ts +2 -103
  29. package/dist/types/src/shapes/Logic.d.ts.map +1 -1
  30. package/dist/types/src/shapes/RNG.d.ts +2 -55
  31. package/dist/types/src/shapes/RNG.d.ts.map +1 -1
  32. package/dist/types/src/shapes/Scope.d.ts +2 -51
  33. package/dist/types/src/shapes/Scope.d.ts.map +1 -1
  34. package/dist/types/src/shapes/Surface.d.ts +2 -51
  35. package/dist/types/src/shapes/Surface.d.ts.map +1 -1
  36. package/dist/types/src/shapes/Switch.d.ts +2 -51
  37. package/dist/types/src/shapes/Switch.d.ts.map +1 -1
  38. package/dist/types/src/shapes/Table.d.ts +2 -51
  39. package/dist/types/src/shapes/Table.d.ts.map +1 -1
  40. package/dist/types/src/shapes/Template.d.ts +4 -55
  41. package/dist/types/src/shapes/Template.d.ts.map +1 -1
  42. package/dist/types/src/shapes/Text.d.ts +2 -51
  43. package/dist/types/src/shapes/Text.d.ts.map +1 -1
  44. package/dist/types/src/shapes/TextToImage.d.ts +2 -51
  45. package/dist/types/src/shapes/TextToImage.d.ts.map +1 -1
  46. package/dist/types/src/shapes/Thread.d.ts +2 -51
  47. package/dist/types/src/shapes/Thread.d.ts.map +1 -1
  48. package/dist/types/src/shapes/Trigger.d.ts +2 -17
  49. package/dist/types/src/shapes/Trigger.d.ts.map +1 -1
  50. package/dist/types/src/shapes/append-def.d.ts +52 -0
  51. package/dist/types/src/shapes/append-def.d.ts.map +1 -0
  52. package/dist/types/src/shapes/array-def.d.ts +35 -0
  53. package/dist/types/src/shapes/array-def.d.ts.map +1 -0
  54. package/dist/types/src/shapes/audio-def.d.ts +52 -0
  55. package/dist/types/src/shapes/audio-def.d.ts.map +1 -0
  56. package/dist/types/src/shapes/beacon-def.d.ts +52 -0
  57. package/dist/types/src/shapes/beacon-def.d.ts.map +1 -0
  58. package/dist/types/src/shapes/chat-def.d.ts +52 -0
  59. package/dist/types/src/shapes/chat-def.d.ts.map +1 -0
  60. package/dist/types/src/shapes/common/Box.d.ts +0 -2
  61. package/dist/types/src/shapes/common/Box.d.ts.map +1 -1
  62. package/dist/types/src/shapes/common/FunctionBody.d.ts +1 -3
  63. package/dist/types/src/shapes/common/FunctionBody.d.ts.map +1 -1
  64. package/dist/types/src/shapes/common/box-defs.d.ts +3 -0
  65. package/dist/types/src/shapes/common/box-defs.d.ts.map +1 -0
  66. package/dist/types/src/shapes/common/function-anchors.d.ts +7 -0
  67. package/dist/types/src/shapes/common/function-anchors.d.ts.map +1 -0
  68. package/dist/types/src/shapes/common/index.d.ts +2 -0
  69. package/dist/types/src/shapes/common/index.d.ts.map +1 -1
  70. package/dist/types/src/shapes/constant-def.d.ts +54 -0
  71. package/dist/types/src/shapes/constant-def.d.ts.map +1 -0
  72. package/dist/types/src/shapes/database-def.d.ts +52 -0
  73. package/dist/types/src/shapes/database-def.d.ts.map +1 -0
  74. package/dist/types/src/shapes/feed-def.d.ts +52 -0
  75. package/dist/types/src/shapes/feed-def.d.ts.map +1 -0
  76. package/dist/types/src/shapes/function-def.d.ts +52 -0
  77. package/dist/types/src/shapes/function-def.d.ts.map +1 -0
  78. package/dist/types/src/shapes/gpt-def.d.ts +52 -0
  79. package/dist/types/src/shapes/gpt-def.d.ts.map +1 -0
  80. package/dist/types/src/shapes/gpt-realtime-def.d.ts +52 -0
  81. package/dist/types/src/shapes/gpt-realtime-def.d.ts.map +1 -0
  82. package/dist/types/src/shapes/index.d.ts +23 -0
  83. package/dist/types/src/shapes/index.d.ts.map +1 -1
  84. package/dist/types/src/shapes/json-def.d.ts +102 -0
  85. package/dist/types/src/shapes/json-def.d.ts.map +1 -0
  86. package/dist/types/src/shapes/logic-def.d.ts +104 -0
  87. package/dist/types/src/shapes/logic-def.d.ts.map +1 -0
  88. package/dist/types/src/shapes/rng-def.d.ts +56 -0
  89. package/dist/types/src/shapes/rng-def.d.ts.map +1 -0
  90. package/dist/types/src/shapes/scope-def.d.ts +52 -0
  91. package/dist/types/src/shapes/scope-def.d.ts.map +1 -0
  92. package/dist/types/src/shapes/surface-def.d.ts +52 -0
  93. package/dist/types/src/shapes/surface-def.d.ts.map +1 -0
  94. package/dist/types/src/shapes/switch-def.d.ts +52 -0
  95. package/dist/types/src/shapes/switch-def.d.ts.map +1 -0
  96. package/dist/types/src/shapes/table-def.d.ts +52 -0
  97. package/dist/types/src/shapes/table-def.d.ts.map +1 -0
  98. package/dist/types/src/shapes/template-def.d.ts +56 -0
  99. package/dist/types/src/shapes/template-def.d.ts.map +1 -0
  100. package/dist/types/src/shapes/text-def.d.ts +52 -0
  101. package/dist/types/src/shapes/text-def.d.ts.map +1 -0
  102. package/dist/types/src/shapes/text-to-image-def.d.ts +52 -0
  103. package/dist/types/src/shapes/text-to-image-def.d.ts.map +1 -0
  104. package/dist/types/src/shapes/thread-def.d.ts +52 -0
  105. package/dist/types/src/shapes/thread-def.d.ts.map +1 -0
  106. package/dist/types/src/shapes/trigger-def.d.ts +18 -0
  107. package/dist/types/src/shapes/trigger-def.d.ts.map +1 -0
  108. package/dist/types/src/shapes/trigger-spec.d.ts +9 -0
  109. package/dist/types/src/shapes/trigger-spec.d.ts.map +1 -0
  110. package/dist/types/tsconfig.tsbuildinfo +1 -1
  111. package/package.json +43 -46
  112. package/src/compute.stories.tsx +1 -1
  113. package/src/shapes/Append.tsx +3 -31
  114. package/src/shapes/Array.tsx +3 -43
  115. package/src/shapes/Audio.tsx +2 -26
  116. package/src/shapes/Beacon.tsx +2 -29
  117. package/src/shapes/Chat.tsx +1 -36
  118. package/src/shapes/Constant.tsx +1 -37
  119. package/src/shapes/Database.tsx +2 -27
  120. package/src/shapes/Feed.tsx +4 -35
  121. package/src/shapes/Function.tsx +4 -38
  122. package/src/shapes/Gpt.tsx +3 -33
  123. package/src/shapes/GptRealtime.tsx +2 -36
  124. package/src/shapes/Json.tsx +4 -70
  125. package/src/shapes/Logic.tsx +3 -58
  126. package/src/shapes/RNG.tsx +2 -32
  127. package/src/shapes/Scope.tsx +2 -31
  128. package/src/shapes/Surface.tsx +2 -32
  129. package/src/shapes/Switch.tsx +2 -26
  130. package/src/shapes/Table.tsx +3 -34
  131. package/src/shapes/Template.tsx +6 -36
  132. package/src/shapes/Text.tsx +2 -28
  133. package/src/shapes/TextToImage.tsx +2 -27
  134. package/src/shapes/Thread.tsx +3 -34
  135. package/src/shapes/Trigger.tsx +6 -79
  136. package/src/shapes/append-def.ts +42 -0
  137. package/src/shapes/array-def.ts +54 -0
  138. package/src/shapes/audio-def.ts +36 -0
  139. package/src/shapes/beacon-def.ts +39 -0
  140. package/src/shapes/chat-def.tsx +47 -0
  141. package/src/shapes/common/Box.tsx +2 -5
  142. package/src/shapes/common/FunctionBody.tsx +6 -25
  143. package/src/shapes/common/box-defs.ts +10 -0
  144. package/src/shapes/common/function-anchors.ts +37 -0
  145. package/src/shapes/common/index.ts +3 -0
  146. package/src/shapes/constant-def.tsx +48 -0
  147. package/src/shapes/database-def.ts +37 -0
  148. package/src/shapes/feed-def.ts +44 -0
  149. package/src/shapes/function-def.ts +46 -0
  150. package/src/shapes/gpt-def.ts +43 -0
  151. package/src/shapes/gpt-realtime-def.ts +46 -0
  152. package/src/shapes/index.ts +25 -0
  153. package/src/shapes/json-def.ts +80 -0
  154. package/src/shapes/logic-def.ts +69 -0
  155. package/src/shapes/rng-def.ts +42 -0
  156. package/src/shapes/scope-def.ts +41 -0
  157. package/src/shapes/surface-def.ts +42 -0
  158. package/src/shapes/switch-def.ts +36 -0
  159. package/src/shapes/table-def.ts +45 -0
  160. package/src/shapes/template-def.ts +48 -0
  161. package/src/shapes/text-def.ts +38 -0
  162. package/src/shapes/text-to-image-def.ts +37 -0
  163. package/src/shapes/thread-def.ts +45 -0
  164. package/src/shapes/trigger-def.ts +63 -0
  165. package/src/shapes/trigger-spec.ts +44 -0
  166. package/dist/lib/browser/index.mjs +0 -2596
  167. package/dist/lib/browser/index.mjs.map +0 -7
  168. package/dist/lib/browser/meta.json +0 -1
  169. package/dist/lib/node-esm/index.mjs +0 -2596
  170. package/dist/lib/node-esm/index.mjs.map +0 -7
  171. package/dist/lib/node-esm/meta.json +0 -1
@@ -0,0 +1,52 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ export declare const FunctionShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
+ readonly id: string;
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";
50
+ };
51
+ export declare const functionShape: ShapeDef<FunctionShape>;
52
+ //# sourceMappingURL=function-def.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function-def.d.ts","sourceRoot":"","sources":["../../../../src/shapes/function-def.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAgB,KAAK,gBAAgB,EAAe,MAAM,QAAQ,CAAC;AAM1E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;GAKzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAElE,eAAO,MAAM,cAAc,UAAW,mBAAmB;;;;;;;;;;;;;;;;;;;CAKrD,CAAC;AAML,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,aAAa,CAOjD,CAAC"}
@@ -0,0 +1,52 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ export declare const GptShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
+ readonly id: string;
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<["gpt"]>;
28
+ }>>;
29
+ export type GptShape = Schema.Schema.Type<typeof GptShape>;
30
+ export type CreateGptProps = CreateShapeProps<GptShape>;
31
+ export declare const createGpt: (props: CreateGptProps) => {
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: "gpt";
50
+ };
51
+ export declare const gptShape: ShapeDef<GptShape>;
52
+ //# sourceMappingURL=gpt-def.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpt-def.d.ts","sourceRoot":"","sources":["../../../../src/shapes/gpt-def.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAgB,KAAK,gBAAgB,EAAe,MAAM,QAAQ,CAAC;AAM1E,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;GAKpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AAExD,eAAO,MAAM,SAAS,UAAW,cAAc;;;;;;;;;;;;;;;;;;;CAK3C,CAAC;AAEL,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAQvC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ export declare const GptRealtimeShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
+ readonly id: string;
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<["gpt-realtime"]>;
28
+ }>>;
29
+ export type GptRealtimeShape = Schema.Schema.Type<typeof GptRealtimeShape>;
30
+ export type CreateGptRealtimeProps = CreateShapeProps<GptRealtimeShape>;
31
+ export declare const createGptRealtime: (props: CreateGptRealtimeProps) => {
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: "gpt-realtime";
50
+ };
51
+ export declare const gptRealtimeShape: ShapeDef<GptRealtimeShape>;
52
+ //# sourceMappingURL=gpt-realtime-def.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpt-realtime-def.d.ts","sourceRoot":"","sources":["../../../../src/shapes/gpt-realtime-def.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAgB,KAAK,gBAAgB,EAAe,MAAM,QAAQ,CAAC;AAM1E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;GAK5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB,UAAW,sBAAsB;;;;;;;;;;;;;;;;;;;CACuC,CAAC;AAEvG,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAgBvD,CAAC"}
@@ -1,5 +1,28 @@
1
1
  export * from './common';
2
2
  export * from './defs';
3
+ export * from './append-def';
4
+ export * from './array-def';
5
+ export * from './audio-def';
6
+ export * from './beacon-def';
7
+ export * from './chat-def';
8
+ export * from './constant-def';
9
+ export * from './database-def';
10
+ export * from './feed-def';
11
+ export * from './function-def';
12
+ export * from './gpt-def';
13
+ export * from './gpt-realtime-def';
14
+ export * from './json-def';
15
+ export * from './logic-def';
16
+ export * from './rng-def';
17
+ export * from './scope-def';
18
+ export * from './surface-def';
19
+ export * from './switch-def';
20
+ export * from './table-def';
21
+ export * from './template-def';
22
+ export * from './text-def';
23
+ export * from './text-to-image-def';
24
+ export * from './thread-def';
25
+ export * from './trigger-def';
3
26
  export * from './Array';
4
27
  export * from './Append';
5
28
  export * from './Audio';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shapes/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AAEvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shapes/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AAGvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAE9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,102 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ export declare const JsonShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
+ readonly id: string;
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<["json"]>;
28
+ }>>;
29
+ export type JsonShape = Schema.Schema.Type<typeof JsonShape>;
30
+ export declare const JsonTransformShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
31
+ readonly id: string;
32
+ readonly data?: any;
33
+ }, {
34
+ readonly data?: any;
35
+ readonly id: string;
36
+ }, never>, Schema.Struct<{
37
+ type: typeof Schema.String;
38
+ text: Schema.optional<typeof Schema.String>;
39
+ guide: Schema.optional<typeof Schema.Boolean>;
40
+ classNames: Schema.optional<typeof Schema.String>;
41
+ }>>, Schema.Struct<{
42
+ center: Schema.Struct<{
43
+ x: typeof Schema.Number;
44
+ y: typeof Schema.Number;
45
+ }>;
46
+ size: Schema.mutable<Schema.Struct<{
47
+ width: typeof Schema.Number;
48
+ height: typeof Schema.Number;
49
+ }>>;
50
+ }>>>, Schema.mutable<Schema.Struct<{
51
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
52
+ }>>>, Schema.Struct<{
53
+ type: Schema.Literal<["json-transform"]>;
54
+ }>>;
55
+ export type JsonTransformShape = Schema.Schema.Type<typeof JsonTransformShape>;
56
+ export type CreateJsonProps = CreateShapeProps<JsonShape>;
57
+ export declare const createJson: (props: CreateJsonProps) => {
58
+ id: string;
59
+ data?: any;
60
+ type: string;
61
+ text?: string | undefined;
62
+ guide?: boolean | undefined;
63
+ classNames?: string | undefined;
64
+ center: {
65
+ readonly x: number;
66
+ readonly y: number;
67
+ };
68
+ size: {
69
+ width: number;
70
+ height: number;
71
+ };
72
+ } & {
73
+ node?: string | undefined;
74
+ } & {
75
+ readonly type: "json";
76
+ };
77
+ export declare const jsonShape: ShapeDef<JsonShape>;
78
+ export type CreateJsonTransformProps = CreateShapeProps<JsonTransformShape> & {
79
+ expression?: string;
80
+ };
81
+ export declare const createJsonTransform: (props: CreateJsonTransformProps) => {
82
+ id: string;
83
+ data?: any;
84
+ type: string;
85
+ text?: string | undefined;
86
+ guide?: boolean | undefined;
87
+ classNames?: string | undefined;
88
+ center: {
89
+ readonly x: number;
90
+ readonly y: number;
91
+ };
92
+ size: {
93
+ width: number;
94
+ height: number;
95
+ };
96
+ } & {
97
+ node?: string | undefined;
98
+ } & {
99
+ readonly type: "json-transform";
100
+ };
101
+ export declare const jsonTransformShape: ShapeDef<JsonTransformShape>;
102
+ //# sourceMappingURL=json-def.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-def.d.ts","sourceRoot":"","sources":["../../../../src/shapes/json-def.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAI7D,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAU1F,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;GAKrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAE7D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;GAK9B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM/E,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,CAYzC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtG,eAAO,MAAM,mBAAmB,UAAW,wBAAwB;;;;;;;;;;;;;;;;;;;CAK/D,CAAC;AAEL,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,kBAAkB,CAQ3D,CAAC"}
@@ -0,0 +1,104 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ export declare const IfShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
+ readonly id: string;
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<["if"]>;
28
+ }>>;
29
+ export type IfShape = Schema.Schema.Type<typeof IfShape>;
30
+ export declare const IfElseShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
31
+ readonly id: string;
32
+ readonly data?: any;
33
+ }, {
34
+ readonly data?: any;
35
+ readonly id: string;
36
+ }, never>, Schema.Struct<{
37
+ type: typeof Schema.String;
38
+ text: Schema.optional<typeof Schema.String>;
39
+ guide: Schema.optional<typeof Schema.Boolean>;
40
+ classNames: Schema.optional<typeof Schema.String>;
41
+ }>>, Schema.Struct<{
42
+ center: Schema.Struct<{
43
+ x: typeof Schema.Number;
44
+ y: typeof Schema.Number;
45
+ }>;
46
+ size: Schema.mutable<Schema.Struct<{
47
+ width: typeof Schema.Number;
48
+ height: typeof Schema.Number;
49
+ }>>;
50
+ }>>>, Schema.mutable<Schema.Struct<{
51
+ node: Schema.optional<Schema.SchemaClass<string, string, never>>;
52
+ }>>>, Schema.Struct<{
53
+ type: Schema.Literal<["if-else"]>;
54
+ }>>;
55
+ export type IfElseShape = Schema.Schema.Type<typeof IfElseShape>;
56
+ export type CreateIfProps = CreateShapeProps<IfShape> & {
57
+ if?: string;
58
+ };
59
+ export declare const createIf: (props: CreateIfProps) => {
60
+ id: string;
61
+ data?: any;
62
+ type: string;
63
+ text?: string | undefined;
64
+ guide?: boolean | undefined;
65
+ classNames?: string | undefined;
66
+ center: {
67
+ readonly x: number;
68
+ readonly y: number;
69
+ };
70
+ size: {
71
+ width: number;
72
+ height: number;
73
+ };
74
+ } & {
75
+ node?: string | undefined;
76
+ } & {
77
+ readonly type: "if";
78
+ };
79
+ export declare const ifShape: ShapeDef<IfShape>;
80
+ export type CreateIfElseProps = CreateShapeProps<IfShape> & {
81
+ if?: string;
82
+ };
83
+ export declare const createIfElse: (props: CreateIfElseProps) => {
84
+ id: string;
85
+ data?: any;
86
+ type: string;
87
+ text?: string | undefined;
88
+ guide?: boolean | undefined;
89
+ classNames?: string | undefined;
90
+ center: {
91
+ readonly x: number;
92
+ readonly y: number;
93
+ };
94
+ size: {
95
+ width: number;
96
+ height: number;
97
+ };
98
+ } & {
99
+ node?: string | undefined;
100
+ } & {
101
+ readonly type: "if-else";
102
+ };
103
+ export declare const ifElseShape: ShapeDef<IfElseShape>;
104
+ //# sourceMappingURL=logic-def.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logic-def.d.ts","sourceRoot":"","sources":["../../../../src/shapes/logic-def.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAgB,KAAK,gBAAgB,EAAe,MAAM,QAAQ,CAAC;AAU1E,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;GAKnB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC;AAEzD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;GAKvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAMjE,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,eAAO,MAAM,QAAQ,UAAW,aAAa;;;;;;;;;;;;;;;;;;;CACqD,CAAC;AAEnG,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,CAOrC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5E,eAAO,MAAM,YAAY,UAAW,iBAAiB;;;;;;;;;;;;;;;;;;;CAC0D,CAAC;AAEhH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}
@@ -0,0 +1,56 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ export declare const RandomShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
+ readonly id: string;
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<["rng"]>;
28
+ min: Schema.optional<typeof Schema.Number>;
29
+ max: Schema.optional<typeof Schema.Number>;
30
+ }>>;
31
+ export type RandomShape = Schema.Schema.Type<typeof RandomShape>;
32
+ export type CreateRandomProps = CreateShapeProps<RandomShape>;
33
+ export declare const createRandom: (props: CreateRandomProps) => {
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: "rng";
52
+ readonly min?: number | undefined;
53
+ readonly max?: number | undefined;
54
+ };
55
+ export declare const randomShape: ShapeDef<RandomShape>;
56
+ //# sourceMappingURL=rng-def.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rng-def.d.ts","sourceRoot":"","sources":["../../../../src/shapes/rng-def.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,QAAQ,EAAmB,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAM1F,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;GAOvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,UAAW,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAKjD,CAAC;AAEL,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}
@@ -0,0 +1,52 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ export declare const ScopeShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
+ readonly id: string;
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<["scope"]>;
28
+ }>>;
29
+ export type ScopeShape = Schema.Schema.Type<typeof ScopeShape>;
30
+ export type CreateScopeProps = CreateShapeProps<ScopeShape>;
31
+ export declare const createScope: (props: CreateScopeProps) => {
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: "scope";
50
+ };
51
+ export declare const scopeShape: ShapeDef<ScopeShape>;
52
+ //# sourceMappingURL=scope-def.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope-def.d.ts","sourceRoot":"","sources":["../../../../src/shapes/scope-def.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,QAAQ,EAAmB,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAM1F,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;GAKtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,UAAW,gBAAgB;;;;;;;;;;;;;;;;;;;CAM/C,CAAC;AAEL,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,UAAU,CAO3C,CAAC"}
@@ -0,0 +1,52 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ export declare const SurfaceShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
+ readonly id: string;
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<["surface"]>;
28
+ }>>;
29
+ export type SurfaceShape = Schema.Schema.Type<typeof SurfaceShape>;
30
+ export type CreateSurfaceProps = CreateShapeProps<SurfaceShape>;
31
+ export declare const createSurface: (props: CreateSurfaceProps) => {
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: "surface";
50
+ };
51
+ export declare const surfaceShape: ShapeDef<SurfaceShape>;
52
+ //# sourceMappingURL=surface-def.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surface-def.d.ts","sourceRoot":"","sources":["../../../../src/shapes/surface-def.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAM1F,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;GAKxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,UAAW,kBAAkB;;;;;;;;;;;;;;;;;;;CAKnD,CAAC;AAEL,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAQ/C,CAAC"}
@@ -0,0 +1,52 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type ShapeDef } from '@dxos/react-ui-canvas-editor';
3
+ import { type CreateShapeProps } from './defs';
4
+ export declare const SwitchShape: Schema.extend<Schema.extend<Schema.mutable<Schema.extend<Schema.extend<Schema.SchemaClass<{
5
+ readonly id: string;
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<["switch"]>;
28
+ }>>;
29
+ export type SwitchShape = Schema.Schema.Type<typeof SwitchShape>;
30
+ export type CreateSwitchProps = CreateShapeProps<SwitchShape>;
31
+ export declare const createSwitch: (props: CreateSwitchProps) => {
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: "switch";
50
+ };
51
+ export declare const switchShape: ShapeDef<SwitchShape>;
52
+ //# sourceMappingURL=switch-def.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-def.d.ts","sourceRoot":"","sources":["../../../../src/shapes/switch-def.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,QAAQ,EAAmB,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAM1F,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;GAKvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,UAAW,iBAAiB;;;;;;;;;;;;;;;;;;;CACoC,CAAC;AAE1F,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}