@replohq/sandbox-runtime 0.1.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 (139) hide show
  1. package/ClientErrorBoundary.d.ts +10 -0
  2. package/ClientErrorBoundary.js +61 -0
  3. package/ClientErrorBoundary.js.map +7 -0
  4. package/DocumentReadyBeacon.d.ts +1 -0
  5. package/DocumentReadyBeacon.js +9 -0
  6. package/DocumentReadyBeacon.js.map +7 -0
  7. package/LICENSE +11 -0
  8. package/LinkInterceptor.d.ts +1 -0
  9. package/LinkInterceptor.js +128 -0
  10. package/LinkInterceptor.js.map +7 -0
  11. package/NextErrorReporter.d.ts +1 -0
  12. package/NextErrorReporter.js +92 -0
  13. package/NextErrorReporter.js.map +7 -0
  14. package/_vendor/replo-utils/lib/crypto.d.ts +30 -0
  15. package/_vendor/replo-utils/lib/errors.d.ts +83 -0
  16. package/_vendor/replo-utils/lib/fonts.d.ts +49 -0
  17. package/_vendor/replo-utils/lib/fonts.mjs +221 -0
  18. package/_vendor/replo-utils/lib/geometry.d.ts +18 -0
  19. package/_vendor/replo-utils/lib/geometry.mjs +9 -0
  20. package/_vendor/replo-utils/lib/json.d.ts +6 -0
  21. package/_vendor/replo-utils/lib/log.d.ts +11 -0
  22. package/_vendor/replo-utils/lib/misc.d.ts +145 -0
  23. package/_vendor/replo-utils/lib/misc.mjs +2 -0
  24. package/_vendor/replo-utils/lib/object.d.ts +31 -0
  25. package/_vendor/replo-utils/lib/parse.d.ts +15 -0
  26. package/_vendor/replo-utils/lib/posthogReplay.d.ts +43 -0
  27. package/_vendor/replo-utils/lib/posthogReplay.mjs +121 -0
  28. package/_vendor/replo-utils/react/use-iframe-rpc-channel.d.ts +14 -0
  29. package/_vendor/replo-utils/react/use-iframe-rpc-channel.mjs +14 -0
  30. package/_vendor/schemas/designLibrary.d.ts +361 -0
  31. package/_vendor/schemas/designLibrary.mjs +126 -0
  32. package/_vendor/schemas/errors.d.ts +459 -0
  33. package/_vendor/schemas/generated/errors.d.ts +61 -0
  34. package/_vendor/schemas/generated/pageAnnotations.d.ts +48 -0
  35. package/_vendor/schemas/generated/pageAnnotations.mjs +1 -0
  36. package/_vendor/schemas/generated/selectMode.d.ts +119 -0
  37. package/_vendor/schemas/generated/selectMode.mjs +1 -0
  38. package/_vendor/schemas/generated/selectModeIframeRpc.d.ts +100 -0
  39. package/_vendor/schemas/generated/selectModeIframeRpc.mjs +1 -0
  40. package/_vendor/schemas/iframeRpcChannel.d.ts +82 -0
  41. package/_vendor/schemas/iframeRpcChannel.mjs +520 -0
  42. package/_vendor/schemas/pageAnnotations.d.ts +134 -0
  43. package/_vendor/schemas/pageAnnotations.mjs +61 -0
  44. package/_vendor/schemas/savedStyles.d.ts +140 -0
  45. package/_vendor/schemas/selectMode.d.ts +522 -0
  46. package/_vendor/schemas/selectMode.mjs +3 -0
  47. package/_vendor/schemas/selectModeIframeRpc.d.ts +900 -0
  48. package/_vendor/schemas/selectModeIframeRpc.mjs +223 -0
  49. package/annotations/AnnotationLayerMount.d.ts +1 -0
  50. package/annotations/AnnotationLayerMount.js +13 -0
  51. package/annotations/AnnotationLayerMount.js.map +7 -0
  52. package/annotations/annotationController.d.ts +1 -0
  53. package/annotations/annotationController.js +384 -0
  54. package/annotations/annotationController.js.map +7 -0
  55. package/annotations/bridgeGate.d.ts +7 -0
  56. package/annotations/bridgeGate.js +22 -0
  57. package/annotations/bridgeGate.js.map +7 -0
  58. package/chunk-3UFG7XTQ.mjs +205 -0
  59. package/chunk-FNTGY7I5.mjs +68 -0
  60. package/chunk-N5EI2MOZ.mjs +1535 -0
  61. package/design-library-preview/DesignLibraryPreview.d.ts +1 -0
  62. package/design-library-preview/DesignLibraryPreview.js +93 -0
  63. package/design-library-preview/DesignLibraryPreview.js.map +7 -0
  64. package/package.json +41 -0
  65. package/posthog-relay.d.ts +11 -0
  66. package/posthog-relay.js +72 -0
  67. package/posthog-relay.js.map +7 -0
  68. package/sandbox-runtime.d.ts +1 -0
  69. package/sandbox-runtime.js +29 -0
  70. package/sandbox-runtime.js.map +7 -0
  71. package/select-mode/EditorSelection.d.ts +24 -0
  72. package/select-mode/EditorSelection.js +95 -0
  73. package/select-mode/EditorSelection.js.map +7 -0
  74. package/select-mode/annotationFrames.d.ts +33 -0
  75. package/select-mode/annotationFrames.js +119 -0
  76. package/select-mode/annotationFrames.js.map +7 -0
  77. package/select-mode/descriptor/elementDescriptor.d.ts +26 -0
  78. package/select-mode/descriptor/elementDescriptor.js +201 -0
  79. package/select-mode/descriptor/elementDescriptor.js.map +7 -0
  80. package/select-mode/descriptor/styleExtraction.d.ts +3 -0
  81. package/select-mode/descriptor/styleExtraction.js +271 -0
  82. package/select-mode/descriptor/styleExtraction.js.map +7 -0
  83. package/select-mode/displayModeStore.d.ts +10 -0
  84. package/select-mode/displayModeStore.js +47 -0
  85. package/select-mode/displayModeStore.js.map +7 -0
  86. package/select-mode/fast-refresh-relay.d.ts +3 -0
  87. package/select-mode/fast-refresh-relay.js +33 -0
  88. package/select-mode/fast-refresh-relay.js.map +7 -0
  89. package/select-mode/fiber.d.ts +49 -0
  90. package/select-mode/fiber.js +306 -0
  91. package/select-mode/fiber.js.map +7 -0
  92. package/select-mode/hooks/useCrosshairCursor.d.ts +12 -0
  93. package/select-mode/hooks/useCrosshairCursor.js +20 -0
  94. package/select-mode/hooks/useCrosshairCursor.js.map +7 -0
  95. package/select-mode/hooks/useEditModeStateMachine.d.ts +16 -0
  96. package/select-mode/hooks/useEditModeStateMachine.js +235 -0
  97. package/select-mode/hooks/useEditModeStateMachine.js.map +7 -0
  98. package/select-mode/hooks/useOptimisticOverrides.d.ts +17 -0
  99. package/select-mode/hooks/useOptimisticOverrides.js +283 -0
  100. package/select-mode/hooks/useOptimisticOverrides.js.map +7 -0
  101. package/select-mode/hooks/useParentMessaging.d.ts +36 -0
  102. package/select-mode/hooks/useParentMessaging.js +74 -0
  103. package/select-mode/hooks/useParentMessaging.js.map +7 -0
  104. package/select-mode/hooks/useSelectModeController.d.ts +8 -0
  105. package/select-mode/hooks/useSelectModeController.js +46 -0
  106. package/select-mode/hooks/useSelectModeController.js.map +7 -0
  107. package/select-mode/hooks/useSelectionHover.d.ts +22 -0
  108. package/select-mode/hooks/useSelectionHover.js +110 -0
  109. package/select-mode/hooks/useSelectionHover.js.map +7 -0
  110. package/select-mode/hooks/useSelectionInteractions.d.ts +37 -0
  111. package/select-mode/hooks/useSelectionInteractions.js +353 -0
  112. package/select-mode/hooks/useSelectionInteractions.js.map +7 -0
  113. package/select-mode/hooks/useSelectionScrollSync.d.ts +28 -0
  114. package/select-mode/hooks/useSelectionScrollSync.js +70 -0
  115. package/select-mode/hooks/useSelectionScrollSync.js.map +7 -0
  116. package/select-mode/hooks/useSiblingResolution.d.ts +6 -0
  117. package/select-mode/hooks/useSiblingResolution.js +59 -0
  118. package/select-mode/hooks/useSiblingResolution.js.map +7 -0
  119. package/select-mode/iframeRpcChannel.d.ts +356 -0
  120. package/select-mode/iframeRpcChannel.js +92 -0
  121. package/select-mode/iframeRpcChannel.js.map +7 -0
  122. package/select-mode/inlineTextMarks.d.ts +6 -0
  123. package/select-mode/inlineTextMarks.js +25 -0
  124. package/select-mode/inlineTextMarks.js.map +7 -0
  125. package/select-mode/interactions/selectionGeometry.d.ts +105 -0
  126. package/select-mode/interactions/selectionGeometry.js +192 -0
  127. package/select-mode/interactions/selectionGeometry.js.map +7 -0
  128. package/select-mode/selectModeSession.d.ts +21 -0
  129. package/select-mode/selectModeSession.js +7 -0
  130. package/select-mode/selectModeSession.js.map +7 -0
  131. package/select-mode/selectionFrame.d.ts +81 -0
  132. package/select-mode/selectionFrame.js +132 -0
  133. package/select-mode/selectionFrame.js.map +7 -0
  134. package/select-mode/symbolicate.d.ts +2 -0
  135. package/select-mode/symbolicate.js +200 -0
  136. package/select-mode/symbolicate.js.map +7 -0
  137. package/select-mode/tiptapInlineEditor.d.ts +23 -0
  138. package/select-mode/tiptapInlineEditor.js +120 -0
  139. package/select-mode/tiptapInlineEditor.js.map +7 -0
@@ -0,0 +1,361 @@
1
+ import { z } from "zod";
2
+ export declare const savedColorStyleSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"color">;
4
+ name: z.ZodString;
5
+ attributes: z.ZodObject<{
6
+ type: z.ZodLiteral<"color">;
7
+ color: z.ZodString;
8
+ colorType: z.ZodEnum<{
9
+ basic: "basic";
10
+ foregroundPrimary: "foregroundPrimary";
11
+ foregroundSecondary: "foregroundSecondary";
12
+ foregroundTertiary: "foregroundTertiary";
13
+ backgroundPrimary: "backgroundPrimary";
14
+ backgroundSecondary: "backgroundSecondary";
15
+ backgroundTertiary: "backgroundTertiary";
16
+ }>;
17
+ }, z.core.$strip>;
18
+ optionalUsageGuidelines: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
20
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
21
+ }, z.core.$strip>;
22
+ export declare const savedTextStyleSchema: z.ZodObject<{
23
+ type: z.ZodLiteral<"text">;
24
+ name: z.ZodString;
25
+ attributes: z.ZodObject<{
26
+ type: z.ZodLiteral<"text">;
27
+ htmlTag: z.ZodEnum<{
28
+ h1: "h1";
29
+ h2: "h2";
30
+ h3: "h3";
31
+ h4: "h4";
32
+ h5: "h5";
33
+ h6: "h6";
34
+ p: "p";
35
+ }>;
36
+ color: z.ZodOptional<z.ZodString>;
37
+ fontFamily: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ fontSize: z.ZodOptional<z.ZodString>;
39
+ fontWeight: z.ZodOptional<z.ZodEnum<{
40
+ 100: "100";
41
+ 200: "200";
42
+ 300: "300";
43
+ 400: "400";
44
+ 500: "500";
45
+ 600: "600";
46
+ 700: "700";
47
+ 800: "800";
48
+ 900: "900";
49
+ 950: "950";
50
+ }>>;
51
+ letterSpacing: z.ZodOptional<z.ZodString>;
52
+ lineHeight: z.ZodOptional<z.ZodString>;
53
+ textAlign: z.ZodOptional<z.ZodEnum<{
54
+ center: "center";
55
+ left: "left";
56
+ right: "right";
57
+ }>>;
58
+ textDecoration: z.ZodOptional<z.ZodEnum<{
59
+ none: "none";
60
+ italic: "italic";
61
+ underline: "underline";
62
+ "line-through": "line-through";
63
+ }>>;
64
+ textShadow: z.ZodOptional<z.ZodString>;
65
+ textStroke: z.ZodOptional<z.ZodString>;
66
+ textTransform: z.ZodOptional<z.ZodEnum<{
67
+ none: "none";
68
+ lowercase: "lowercase";
69
+ uppercase: "uppercase";
70
+ capitalize: "capitalize";
71
+ }>>;
72
+ }, z.core.$strip>;
73
+ optionalUsageGuidelines: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
75
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
76
+ }, z.core.$strip>;
77
+ export declare const designLibrarySavedStylesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
78
+ type: z.ZodLiteral<"color">;
79
+ name: z.ZodString;
80
+ attributes: z.ZodObject<{
81
+ type: z.ZodLiteral<"color">;
82
+ color: z.ZodString;
83
+ colorType: z.ZodEnum<{
84
+ basic: "basic";
85
+ foregroundPrimary: "foregroundPrimary";
86
+ foregroundSecondary: "foregroundSecondary";
87
+ foregroundTertiary: "foregroundTertiary";
88
+ backgroundPrimary: "backgroundPrimary";
89
+ backgroundSecondary: "backgroundSecondary";
90
+ backgroundTertiary: "backgroundTertiary";
91
+ }>;
92
+ }, z.core.$strip>;
93
+ optionalUsageGuidelines: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
95
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ type: z.ZodLiteral<"text">;
98
+ name: z.ZodString;
99
+ attributes: z.ZodObject<{
100
+ type: z.ZodLiteral<"text">;
101
+ htmlTag: z.ZodEnum<{
102
+ h1: "h1";
103
+ h2: "h2";
104
+ h3: "h3";
105
+ h4: "h4";
106
+ h5: "h5";
107
+ h6: "h6";
108
+ p: "p";
109
+ }>;
110
+ color: z.ZodOptional<z.ZodString>;
111
+ fontFamily: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ fontSize: z.ZodOptional<z.ZodString>;
113
+ fontWeight: z.ZodOptional<z.ZodEnum<{
114
+ 100: "100";
115
+ 200: "200";
116
+ 300: "300";
117
+ 400: "400";
118
+ 500: "500";
119
+ 600: "600";
120
+ 700: "700";
121
+ 800: "800";
122
+ 900: "900";
123
+ 950: "950";
124
+ }>>;
125
+ letterSpacing: z.ZodOptional<z.ZodString>;
126
+ lineHeight: z.ZodOptional<z.ZodString>;
127
+ textAlign: z.ZodOptional<z.ZodEnum<{
128
+ center: "center";
129
+ left: "left";
130
+ right: "right";
131
+ }>>;
132
+ textDecoration: z.ZodOptional<z.ZodEnum<{
133
+ none: "none";
134
+ italic: "italic";
135
+ underline: "underline";
136
+ "line-through": "line-through";
137
+ }>>;
138
+ textShadow: z.ZodOptional<z.ZodString>;
139
+ textStroke: z.ZodOptional<z.ZodString>;
140
+ textTransform: z.ZodOptional<z.ZodEnum<{
141
+ none: "none";
142
+ lowercase: "lowercase";
143
+ uppercase: "uppercase";
144
+ capitalize: "capitalize";
145
+ }>>;
146
+ }, z.core.$strip>;
147
+ optionalUsageGuidelines: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
149
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
150
+ }, z.core.$strip>]>>;
151
+ export declare const designLibrarySchema: z.ZodObject<{
152
+ id: z.ZodUUID;
153
+ createdAt: z.ZodDate;
154
+ updatedAt: z.ZodDate;
155
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
156
+ savedStyles: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
157
+ type: z.ZodLiteral<"color">;
158
+ name: z.ZodString;
159
+ attributes: z.ZodObject<{
160
+ type: z.ZodLiteral<"color">;
161
+ color: z.ZodString;
162
+ colorType: z.ZodEnum<{
163
+ basic: "basic";
164
+ foregroundPrimary: "foregroundPrimary";
165
+ foregroundSecondary: "foregroundSecondary";
166
+ foregroundTertiary: "foregroundTertiary";
167
+ backgroundPrimary: "backgroundPrimary";
168
+ backgroundSecondary: "backgroundSecondary";
169
+ backgroundTertiary: "backgroundTertiary";
170
+ }>;
171
+ }, z.core.$strip>;
172
+ optionalUsageGuidelines: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
174
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ type: z.ZodLiteral<"text">;
177
+ name: z.ZodString;
178
+ attributes: z.ZodObject<{
179
+ type: z.ZodLiteral<"text">;
180
+ htmlTag: z.ZodEnum<{
181
+ h1: "h1";
182
+ h2: "h2";
183
+ h3: "h3";
184
+ h4: "h4";
185
+ h5: "h5";
186
+ h6: "h6";
187
+ p: "p";
188
+ }>;
189
+ color: z.ZodOptional<z.ZodString>;
190
+ fontFamily: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ fontSize: z.ZodOptional<z.ZodString>;
192
+ fontWeight: z.ZodOptional<z.ZodEnum<{
193
+ 100: "100";
194
+ 200: "200";
195
+ 300: "300";
196
+ 400: "400";
197
+ 500: "500";
198
+ 600: "600";
199
+ 700: "700";
200
+ 800: "800";
201
+ 900: "900";
202
+ 950: "950";
203
+ }>>;
204
+ letterSpacing: z.ZodOptional<z.ZodString>;
205
+ lineHeight: z.ZodOptional<z.ZodString>;
206
+ textAlign: z.ZodOptional<z.ZodEnum<{
207
+ center: "center";
208
+ left: "left";
209
+ right: "right";
210
+ }>>;
211
+ textDecoration: z.ZodOptional<z.ZodEnum<{
212
+ none: "none";
213
+ italic: "italic";
214
+ underline: "underline";
215
+ "line-through": "line-through";
216
+ }>>;
217
+ textShadow: z.ZodOptional<z.ZodString>;
218
+ textStroke: z.ZodOptional<z.ZodString>;
219
+ textTransform: z.ZodOptional<z.ZodEnum<{
220
+ none: "none";
221
+ lowercase: "lowercase";
222
+ uppercase: "uppercase";
223
+ capitalize: "capitalize";
224
+ }>>;
225
+ }, z.core.$strip>;
226
+ optionalUsageGuidelines: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
228
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
229
+ }, z.core.$strip>]>>;
230
+ }, z.core.$strip>;
231
+ export declare const designLibrarySavedStyleMetadataSchema: z.ZodObject<{
232
+ library: z.ZodRecord<z.ZodString, z.ZodObject<{
233
+ styles: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
234
+ type: z.ZodLiteral<"color">;
235
+ name: z.ZodString;
236
+ attributes: z.ZodObject<{
237
+ type: z.ZodLiteral<"color">;
238
+ color: z.ZodString;
239
+ colorType: z.ZodEnum<{
240
+ basic: "basic";
241
+ foregroundPrimary: "foregroundPrimary";
242
+ foregroundSecondary: "foregroundSecondary";
243
+ foregroundTertiary: "foregroundTertiary";
244
+ backgroundPrimary: "backgroundPrimary";
245
+ backgroundSecondary: "backgroundSecondary";
246
+ backgroundTertiary: "backgroundTertiary";
247
+ }>;
248
+ }, z.core.$strip>;
249
+ optionalUsageGuidelines: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
251
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
252
+ }, z.core.$strip>, z.ZodObject<{
253
+ type: z.ZodLiteral<"text">;
254
+ name: z.ZodString;
255
+ attributes: z.ZodObject<{
256
+ type: z.ZodLiteral<"text">;
257
+ htmlTag: z.ZodEnum<{
258
+ h1: "h1";
259
+ h2: "h2";
260
+ h3: "h3";
261
+ h4: "h4";
262
+ h5: "h5";
263
+ h6: "h6";
264
+ p: "p";
265
+ }>;
266
+ color: z.ZodOptional<z.ZodString>;
267
+ fontFamily: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
+ fontSize: z.ZodOptional<z.ZodString>;
269
+ fontWeight: z.ZodOptional<z.ZodEnum<{
270
+ 100: "100";
271
+ 200: "200";
272
+ 300: "300";
273
+ 400: "400";
274
+ 500: "500";
275
+ 600: "600";
276
+ 700: "700";
277
+ 800: "800";
278
+ 900: "900";
279
+ 950: "950";
280
+ }>>;
281
+ letterSpacing: z.ZodOptional<z.ZodString>;
282
+ lineHeight: z.ZodOptional<z.ZodString>;
283
+ textAlign: z.ZodOptional<z.ZodEnum<{
284
+ center: "center";
285
+ left: "left";
286
+ right: "right";
287
+ }>>;
288
+ textDecoration: z.ZodOptional<z.ZodEnum<{
289
+ none: "none";
290
+ italic: "italic";
291
+ underline: "underline";
292
+ "line-through": "line-through";
293
+ }>>;
294
+ textShadow: z.ZodOptional<z.ZodString>;
295
+ textStroke: z.ZodOptional<z.ZodString>;
296
+ textTransform: z.ZodOptional<z.ZodEnum<{
297
+ none: "none";
298
+ lowercase: "lowercase";
299
+ uppercase: "uppercase";
300
+ capitalize: "capitalize";
301
+ }>>;
302
+ }, z.core.$strip>;
303
+ optionalUsageGuidelines: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
305
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
306
+ }, z.core.$strip>]>>;
307
+ }, z.core.$strip>>;
308
+ }, z.core.$strip>;
309
+ export declare const globalsCssTokenSchema: z.ZodObject<{
310
+ name: z.ZodString;
311
+ value: z.ZodString;
312
+ }, z.core.$strip>;
313
+ export declare const globalsCssScopeSchema: z.ZodObject<{
314
+ selector: z.ZodString;
315
+ tokens: z.ZodArray<z.ZodObject<{
316
+ name: z.ZodString;
317
+ value: z.ZodString;
318
+ }, z.core.$strip>>;
319
+ }, z.core.$strip>;
320
+ export declare const globalsCssSnapshotSchema: z.ZodObject<{
321
+ scopes: z.ZodArray<z.ZodObject<{
322
+ selector: z.ZodString;
323
+ tokens: z.ZodArray<z.ZodObject<{
324
+ name: z.ZodString;
325
+ value: z.ZodString;
326
+ }, z.core.$strip>>;
327
+ }, z.core.$strip>>;
328
+ }, z.core.$strip>;
329
+ export declare const siteFontRoleSchema: z.ZodObject<{
330
+ role: z.ZodString;
331
+ family: z.ZodNullable<z.ZodString>;
332
+ cssVar: z.ZodNullable<z.ZodString>;
333
+ rawValue: z.ZodString;
334
+ }, z.core.$strip>;
335
+ export declare const siteFontsSnapshotSchema: z.ZodObject<{
336
+ roles: z.ZodArray<z.ZodObject<{
337
+ role: z.ZodString;
338
+ family: z.ZodNullable<z.ZodString>;
339
+ cssVar: z.ZodNullable<z.ZodString>;
340
+ rawValue: z.ZodString;
341
+ }, z.core.$strip>>;
342
+ defaultRole: z.ZodNullable<z.ZodString>;
343
+ }, z.core.$strip>;
344
+ export declare const DESIGN_LIBRARY_PREVIEW_MESSAGE_TYPE = "replo:design-library:applyOverrides";
345
+ export declare const designLibraryPreviewFontSchema: z.ZodObject<{
346
+ family: z.ZodString;
347
+ cssVar: z.ZodString;
348
+ faceUrl: z.ZodOptional<z.ZodString>;
349
+ format: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$strip>;
351
+ export declare const designLibraryPreviewMessageSchema: z.ZodObject<{
352
+ type: z.ZodLiteral<"replo:design-library:applyOverrides">;
353
+ cssVars: z.ZodRecord<z.ZodString, z.ZodString>;
354
+ fonts: z.ZodArray<z.ZodObject<{
355
+ family: z.ZodString;
356
+ cssVar: z.ZodString;
357
+ faceUrl: z.ZodOptional<z.ZodString>;
358
+ format: z.ZodOptional<z.ZodString>;
359
+ }, z.core.$strip>>;
360
+ defaultFontCssVar: z.ZodNullable<z.ZodString>;
361
+ }, z.core.$strip>;
@@ -0,0 +1,126 @@
1
+ import { z } from 'zod';
2
+
3
+ // ../schemas/designLibrary.ts
4
+ var colorTypeSchema = z.enum([
5
+ "basic",
6
+ "foregroundPrimary",
7
+ "foregroundSecondary",
8
+ "foregroundTertiary",
9
+ "backgroundPrimary",
10
+ "backgroundSecondary",
11
+ "backgroundTertiary"
12
+ ]).describe("SavedStyleColorType");
13
+ var savedStyleColorAttributesSchema = z.object({
14
+ type: z.literal("color"),
15
+ color: z.string(),
16
+ colorType: colorTypeSchema
17
+ }).describe("SavedStyleColorAttributes");
18
+ var savedStyleTextHtmlTagSchema = z.enum([
19
+ "h1",
20
+ "h2",
21
+ "h3",
22
+ "h4",
23
+ "h5",
24
+ "h6",
25
+ "p"
26
+ ]);
27
+ var savedStyleTextAttributesSchema = z.object({
28
+ type: z.literal("text"),
29
+ htmlTag: savedStyleTextHtmlTagSchema,
30
+ color: z.string().optional(),
31
+ fontFamily: z.string().nullish(),
32
+ fontSize: z.string().optional(),
33
+ fontWeight: z.enum([
34
+ "100",
35
+ "200",
36
+ "300",
37
+ "400",
38
+ "500",
39
+ "600",
40
+ "700",
41
+ "800",
42
+ "900",
43
+ "950"
44
+ ]).optional(),
45
+ letterSpacing: z.string().optional(),
46
+ lineHeight: z.string().optional(),
47
+ textAlign: z.enum(["left", "center", "right"]).optional(),
48
+ textDecoration: z.enum(["underline", "line-through", "italic", "none"]).optional(),
49
+ textShadow: z.string().optional(),
50
+ textStroke: z.string().optional(),
51
+ textTransform: z.enum(["lowercase", "uppercase", "capitalize", "none"]).optional()
52
+ }).describe("SavedStyleTextAttributes");
53
+ z.discriminatedUnion("type", [
54
+ savedStyleColorAttributesSchema,
55
+ savedStyleTextAttributesSchema
56
+ ]).describe("SavedStyleAttributes");
57
+
58
+ // ../schemas/designLibrary.ts
59
+ var savedColorStyleSchema = z.object({
60
+ type: z.literal("color"),
61
+ name: z.string(),
62
+ attributes: savedStyleColorAttributesSchema,
63
+ optionalUsageGuidelines: z.string().nullish(),
64
+ deletedAt: z.coerce.date().nullish(),
65
+ isPrimary: z.boolean().optional()
66
+ }).describe("SavedColorStyle");
67
+ var savedTextStyleSchema = z.object({
68
+ type: z.literal("text"),
69
+ name: z.string(),
70
+ attributes: savedStyleTextAttributesSchema,
71
+ optionalUsageGuidelines: z.string().nullish(),
72
+ deletedAt: z.coerce.date().nullish(),
73
+ isPrimary: z.boolean().optional()
74
+ }).describe("SavedTextStyle");
75
+ var designLibrarySavedStylesSchema = z.record(z.string(), z.union([savedColorStyleSchema, savedTextStyleSchema])).describe("DesignLibrarySavedStylesMapping");
76
+ var designLibrarySchema = z.object({
77
+ id: z.uuid(),
78
+ createdAt: z.date(),
79
+ updatedAt: z.date(),
80
+ deletedAt: z.coerce.date().nullish(),
81
+ savedStyles: designLibrarySavedStylesSchema
82
+ }).describe("DesignLibrary");
83
+ var designLibrarySavedStyleMetadataSchema = z.object({
84
+ library: z.record(
85
+ z.string(),
86
+ z.object({
87
+ styles: designLibrarySavedStylesSchema
88
+ })
89
+ )
90
+ }).describe("DesignLibrarySavedStyleMetadata");
91
+ var globalsCssTokenSchema = z.object({
92
+ name: z.string(),
93
+ value: z.string()
94
+ }).describe("GlobalsCssToken");
95
+ var globalsCssScopeSchema = z.object({
96
+ selector: z.string(),
97
+ tokens: z.array(globalsCssTokenSchema)
98
+ }).describe("GlobalsCssScope");
99
+ var globalsCssSnapshotSchema = z.object({
100
+ scopes: z.array(globalsCssScopeSchema)
101
+ }).describe("GlobalsCssSnapshot");
102
+ var siteFontRoleSchema = z.object({
103
+ role: z.string(),
104
+ family: z.string().nullable(),
105
+ cssVar: z.string().nullable(),
106
+ rawValue: z.string()
107
+ }).describe("SiteFontRole");
108
+ var siteFontsSnapshotSchema = z.object({
109
+ roles: z.array(siteFontRoleSchema),
110
+ defaultRole: z.string().nullable()
111
+ }).describe("SiteFontsSnapshot");
112
+ var DESIGN_LIBRARY_PREVIEW_MESSAGE_TYPE = "replo:design-library:applyOverrides";
113
+ var designLibraryPreviewFontSchema = z.object({
114
+ family: z.string(),
115
+ cssVar: z.string(),
116
+ faceUrl: z.string().optional(),
117
+ format: z.string().optional()
118
+ }).describe("DesignLibraryPreviewFont");
119
+ var designLibraryPreviewMessageSchema = z.object({
120
+ type: z.literal(DESIGN_LIBRARY_PREVIEW_MESSAGE_TYPE),
121
+ cssVars: z.record(z.string(), z.string()),
122
+ fonts: z.array(designLibraryPreviewFontSchema),
123
+ defaultFontCssVar: z.string().nullable()
124
+ }).describe("DesignLibraryPreviewMessage");
125
+
126
+ export { DESIGN_LIBRARY_PREVIEW_MESSAGE_TYPE, designLibraryPreviewFontSchema, designLibraryPreviewMessageSchema, designLibrarySavedStyleMetadataSchema, designLibrarySavedStylesSchema, designLibrarySchema, globalsCssScopeSchema, globalsCssSnapshotSchema, globalsCssTokenSchema, savedColorStyleSchema, savedTextStyleSchema, siteFontRoleSchema, siteFontsSnapshotSchema };