@dxos/react-ui-canvas-compute 0.10.0 → 0.11.1

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
@@ -1,109 +1,8 @@
1
- import * as Schema from 'effect/Schema';
2
1
  import React from 'react';
3
- import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
- import { type CreateShapeProps } from './defs';
5
- export declare const IfShape: 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<["if"]>;
29
- }>>;
30
- export type IfShape = Schema.Schema.Type<typeof IfShape>;
31
- export declare const IfElseShape: 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<["if-else"]>;
55
- }>>;
56
- export type IfElseShape = Schema.Schema.Type<typeof IfElseShape>;
2
+ import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
3
+ import { type IfElseShape, type IfShape } from './logic-def';
57
4
  export type IfComponentProps = ShapeComponentProps<IfShape>;
58
5
  export declare const IfComponent: ({ shape, ...props }: IfComponentProps) => React.JSX.Element;
59
6
  export type IfElseComponentProps = ShapeComponentProps<IfElseShape>;
60
7
  export declare const IfElseComponent: ({ shape, ...props }: IfElseComponentProps) => React.JSX.Element;
61
- export type CreateIfProps = CreateShapeProps<IfShape> & {
62
- if?: string;
63
- };
64
- export declare const createIf: (props: CreateIfProps) => {
65
- id: string;
66
- data?: any;
67
- type: string;
68
- text?: string | undefined;
69
- guide?: boolean | undefined;
70
- classNames?: string | undefined;
71
- center: {
72
- readonly x: number;
73
- readonly y: number;
74
- };
75
- size: {
76
- width: number;
77
- height: number;
78
- };
79
- } & {
80
- node?: string | undefined;
81
- } & {
82
- readonly type: "if";
83
- };
84
- export declare const ifShape: ShapeDef<IfShape>;
85
- export type CreateIfElseProps = CreateShapeProps<IfShape> & {
86
- if?: string;
87
- };
88
- export declare const createIfElse: (props: CreateIfElseProps) => {
89
- id: string;
90
- data?: any;
91
- type: string;
92
- text?: string | undefined;
93
- guide?: boolean | undefined;
94
- classNames?: string | undefined;
95
- center: {
96
- readonly x: number;
97
- readonly y: number;
98
- };
99
- size: {
100
- width: number;
101
- height: number;
102
- };
103
- } & {
104
- node?: string | undefined;
105
- } & {
106
- readonly type: "if-else";
107
- };
108
- export declare const ifElseShape: ShapeDef<IfElseShape>;
109
8
  //# sourceMappingURL=Logic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logic.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Logic.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAAgB,KAAK,gBAAgB,EAAe,MAAM,QAAQ,CAAC;AAM1E,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,gBAAgB,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,wBAAyB,gBAAgB,sBAEhE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAEpE,eAAO,MAAM,eAAe,wBAAyB,oBAAoB,sBAExE,CAAC;AAMF,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"}
1
+ {"version":3,"file":"Logic.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Logic.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAM7D,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,wBAAyB,gBAAgB,sBAEhE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAEpE,eAAO,MAAM,eAAe,wBAAyB,oBAAoB,sBAExE,CAAC"}
@@ -1,58 +1,5 @@
1
- import * as Schema from 'effect/Schema';
2
1
  import React from 'react';
3
- import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
- import { type CreateShapeProps } from './defs';
5
- export declare const RandomShape: 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<["rng"]>;
29
- min: Schema.optional<typeof Schema.Number>;
30
- max: Schema.optional<typeof Schema.Number>;
31
- }>>;
32
- export type RandomShape = Schema.Schema.Type<typeof RandomShape>;
33
- export type CreateRandomProps = CreateShapeProps<RandomShape>;
34
- export declare const createRandom: (props: CreateRandomProps) => {
35
- id: string;
36
- data?: any;
37
- type: string;
38
- text?: string | undefined;
39
- guide?: boolean | undefined;
40
- classNames?: string | undefined;
41
- center: {
42
- readonly x: number;
43
- readonly y: number;
44
- };
45
- size: {
46
- width: number;
47
- height: number;
48
- };
49
- } & {
50
- node?: string | undefined;
51
- } & {
52
- readonly type: "rng";
53
- readonly min?: number | undefined;
54
- readonly max?: number | undefined;
55
- };
2
+ import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
3
+ import { type RandomShape } from './rng-def';
56
4
  export declare const RandomComponent: ({ shape }: ShapeComponentProps<RandomShape>) => React.JSX.Element;
57
- export declare const randomShape: ShapeDef<RandomShape>;
58
5
  //# sourceMappingURL=RNG.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RNG.d.ts","sourceRoot":"","sources":["../../../../src/shapes/RNG.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAmB,MAAM,8BAA8B,CAAC;AAGxG,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAE1F,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;AAcL,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,sBA+B1E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}
1
+ {"version":3,"file":"RNG.d.ts","sourceRoot":"","sources":["../../../../src/shapes/RNG.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAc7C,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,sBA+B1E,CAAC"}
@@ -1,54 +1,5 @@
1
- import * as Schema from 'effect/Schema';
2
1
  import React from 'react';
3
- import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
- import { type CreateShapeProps } from './defs';
5
- export declare const ScopeShape: 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<["scope"]>;
29
- }>>;
30
- export type ScopeShape = Schema.Schema.Type<typeof ScopeShape>;
31
- export type CreateScopeProps = CreateShapeProps<ScopeShape>;
32
- export declare const createScope: (props: CreateScopeProps) => {
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: "scope";
51
- };
2
+ import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
3
+ import { type ScopeShape } from './scope-def';
52
4
  export declare const ScopeComponent: ({ shape }: ShapeComponentProps<ScopeShape>) => React.JSX.Element;
53
- export declare const scopeShape: ShapeDef<ScopeShape>;
54
5
  //# sourceMappingURL=Scope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Scope.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAmB,MAAM,8BAA8B,CAAC;AAIxG,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAE1F,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,cAAc,cAAe,mBAAmB,CAAC,UAAU,CAAC,sBAWxE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,UAAU,CAO3C,CAAC"}
1
+ {"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Scope.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAIxE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,eAAO,MAAM,cAAc,cAAe,mBAAmB,CAAC,UAAU,CAAC,sBAWxE,CAAC"}
@@ -1,54 +1,5 @@
1
- import * as Schema from 'effect/Schema';
2
1
  import React from 'react';
3
- import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
- import { type CreateShapeProps } from './defs';
5
- export declare const SurfaceShape: 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<["surface"]>;
29
- }>>;
30
- export type SurfaceShape = Schema.Schema.Type<typeof SurfaceShape>;
31
- export type CreateSurfaceProps = CreateShapeProps<SurfaceShape>;
32
- export declare const createSurface: (props: CreateSurfaceProps) => {
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: "surface";
51
- };
2
+ import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
3
+ import { type SurfaceShape } from './surface-def';
52
4
  export declare const SurfaceComponent: ({ shape }: ShapeComponentProps<SurfaceShape>) => React.JSX.Element;
53
- export declare const surfaceShape: ShapeDef<SurfaceShape>;
54
5
  //# sourceMappingURL=Surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAKvF,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAE1F,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,gBAAgB,cAAe,mBAAmB,CAAC,YAAY,CAAC,sBAmB5E,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAQ/C,CAAC"}
1
+ {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAIxE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,gBAAgB,cAAe,mBAAmB,CAAC,YAAY,CAAC,sBAmB5E,CAAC"}
@@ -1,54 +1,5 @@
1
- import * as Schema from 'effect/Schema';
2
1
  import React from 'react';
3
- import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
- import { type CreateShapeProps } from './defs';
5
- export declare const SwitchShape: 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<["switch"]>;
29
- }>>;
30
- export type SwitchShape = Schema.Schema.Type<typeof SwitchShape>;
31
- export type CreateSwitchProps = CreateShapeProps<SwitchShape>;
32
- export declare const createSwitch: (props: CreateSwitchProps) => {
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: "switch";
51
- };
2
+ import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
3
+ import { type SwitchShape } from './switch-def';
52
4
  export declare const SwitchComponent: ({ shape }: ShapeComponentProps<SwitchShape>) => React.JSX.Element;
53
- export declare const switchShape: ShapeDef<SwitchShape>;
54
5
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Switch.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAmB,MAAM,8BAA8B,CAAC;AAGxG,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAE1F,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;AAG1F,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,sBAc1E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Switch.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,sBAc1E,CAAC"}
@@ -1,54 +1,5 @@
1
- import * as Schema from 'effect/Schema';
2
1
  import React from 'react';
3
- import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
- import { type CreateShapeProps } from './defs';
5
- export declare const TableShape: 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<["table"]>;
29
- }>>;
30
- export type TableShape = Schema.Schema.Type<typeof TableShape>;
31
- export type CreateTableProps = CreateShapeProps<TableShape>;
32
- export declare const createTable: (props: CreateTableProps) => {
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: "table";
51
- };
2
+ import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
3
+ import { type TableShape } from './table-def';
52
4
  export declare const TableComponent: ({ shape }: ShapeComponentProps<TableShape>) => React.JSX.Element;
53
- export declare const tableShape: ShapeDef<TableShape>;
54
5
  //# sourceMappingURL=Table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAAgB,KAAK,gBAAgB,EAAe,MAAM,QAAQ,CAAC;AAK1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;GAKtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,UAAW,gBAAgB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE1F,eAAO,MAAM,cAAc,cAAe,mBAAmB,CAAC,UAAU,CAAC,sBAIxE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,UAAU,CAQ3C,CAAC"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Table.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,eAAO,MAAM,cAAc,cAAe,mBAAmB,CAAC,UAAU,CAAC,sBAIxE,CAAC"}
@@ -1,56 +1,5 @@
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 TemplateShape: 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<["template"]>;
28
- valueType: Schema.optional<Schema.Literal<["string", "number", "boolean", "object"]>>;
29
- }>>;
30
- export type TemplateShape = Schema.Schema.Type<typeof TemplateShape>;
31
- export type CreateTemplateProps = CreateShapeProps<TemplateShape> & {
32
- text?: string;
33
- };
34
- export declare const createTemplate: (props: CreateTemplateProps) => {
35
- id: string;
36
- data?: any;
37
- type: string;
38
- text?: string | undefined;
39
- guide?: boolean | undefined;
40
- classNames?: string | undefined;
41
- center: {
42
- readonly x: number;
43
- readonly y: number;
44
- };
45
- size: {
46
- width: number;
47
- height: number;
48
- };
49
- } & {
50
- node?: string | undefined;
51
- } & {
52
- readonly type: "template";
53
- readonly valueType?: "boolean" | "number" | "object" | "string" | undefined;
54
- };
55
- export declare const templateShape: ShapeDef<TemplateShape>;
1
+ import React from 'react';
2
+ import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
3
+ import { type TemplateShape } from './template-def';
4
+ export declare const TemplateComponent: (props: ShapeComponentProps<TemplateShape>) => React.JSX.Element;
56
5
  //# sourceMappingURL=Template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Template.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAEL,KAAK,QAAQ,EAId,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAgB,KAAK,gBAAgB,EAAe,MAAM,QAAQ,CAAC;AAM1E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;GAMzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAmDrE,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtF,eAAO,MAAM,cAAc,UAAW,mBAAmB;;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAEhG,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,aAAa,CAQjD,CAAC"}
1
+ {"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Template.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAKtC,OAAO,EACL,KAAK,mBAAmB,EAIzB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AA+CpD,eAAO,MAAM,iBAAiB,UAAW,mBAAmB,CAAC,aAAa,CAAC,sBAE1E,CAAC"}
@@ -1,54 +1,5 @@
1
- import * as Schema from 'effect/Schema';
2
1
  import React from 'react';
3
- import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
- import { type CreateShapeProps } from './defs';
5
- export declare const TextShape: 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<["text"]>;
29
- }>>;
30
- export type TextShape = Schema.Schema.Type<typeof TextShape>;
31
- export type CreateTextProps = CreateShapeProps<TextShape>;
32
- export declare const createText: (props: CreateTextProps) => {
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: "text";
51
- };
2
+ import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
3
+ import { type TextShape } from './text-def';
52
4
  export declare const TextComponent: ({ shape }: ShapeComponentProps<TextShape>) => React.JSX.Element;
53
- export declare const textShape: ShapeDef<TextShape>;
54
5
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAW,MAAM,8BAA8B,CAAC;AAKhG,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAE1F,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;GAKrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,UAAU,UAAW,eAAe;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAExF,eAAO,MAAM,aAAa,cAAe,mBAAmB,CAAC,SAAS,CAAC,sBAgBtE,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,SAAS,CAQzC,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,mBAAmB,EAAW,MAAM,8BAA8B,CAAC;AAIjF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,aAAa,cAAe,mBAAmB,CAAC,SAAS,CAAC,sBAgBtE,CAAC"}
@@ -1,54 +1,5 @@
1
- import * as Schema from 'effect/Schema';
2
1
  import React from 'react';
3
- import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
4
- import { type CreateShapeProps } from './defs';
5
- export declare const TextToImageShape: 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<["text-to-image"]>;
29
- }>>;
30
- export type TextToImageShape = Schema.Schema.Type<typeof TextToImageShape>;
31
- export type CreateTextToImageProps = CreateShapeProps<TextToImageShape>;
32
- export declare const createTextToImage: (props: CreateTextToImageProps) => {
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: "text-to-image";
51
- };
2
+ import { type ShapeComponentProps } from '@dxos/react-ui-canvas-editor';
3
+ import { type TextToImageShape } from './text-to-image-def';
52
4
  export declare const TextToImageComponent: ({ shape }: ShapeComponentProps<TextToImageShape>) => React.JSX.Element;
53
- export declare const textToImageShape: ShapeDef<TextToImageShape>;
54
5
  //# sourceMappingURL=TextToImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextToImage.d.ts","sourceRoot":"","sources":["../../../../src/shapes/TextToImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAAgB,KAAK,gBAAgB,EAA+B,MAAM,QAAQ,CAAC;AAE1F,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;GAK5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB,UAAW,sBAAsB;;;;;;;;;;;;;;;;;;;CACuC,CAAC;AAEvG,eAAO,MAAM,oBAAoB,cAAe,mBAAmB,CAAC,gBAAgB,CAAC,sBAEpF,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAOvD,CAAC"}
1
+ {"version":3,"file":"TextToImage.d.ts","sourceRoot":"","sources":["../../../../src/shapes/TextToImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,oBAAoB,cAAe,mBAAmB,CAAC,gBAAgB,CAAC,sBAEpF,CAAC"}