@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.
- package/ClientErrorBoundary.d.ts +10 -0
- package/ClientErrorBoundary.js +61 -0
- package/ClientErrorBoundary.js.map +7 -0
- package/DocumentReadyBeacon.d.ts +1 -0
- package/DocumentReadyBeacon.js +9 -0
- package/DocumentReadyBeacon.js.map +7 -0
- package/LICENSE +11 -0
- package/LinkInterceptor.d.ts +1 -0
- package/LinkInterceptor.js +128 -0
- package/LinkInterceptor.js.map +7 -0
- package/NextErrorReporter.d.ts +1 -0
- package/NextErrorReporter.js +92 -0
- package/NextErrorReporter.js.map +7 -0
- package/_vendor/replo-utils/lib/crypto.d.ts +30 -0
- package/_vendor/replo-utils/lib/errors.d.ts +83 -0
- package/_vendor/replo-utils/lib/fonts.d.ts +49 -0
- package/_vendor/replo-utils/lib/fonts.mjs +221 -0
- package/_vendor/replo-utils/lib/geometry.d.ts +18 -0
- package/_vendor/replo-utils/lib/geometry.mjs +9 -0
- package/_vendor/replo-utils/lib/json.d.ts +6 -0
- package/_vendor/replo-utils/lib/log.d.ts +11 -0
- package/_vendor/replo-utils/lib/misc.d.ts +145 -0
- package/_vendor/replo-utils/lib/misc.mjs +2 -0
- package/_vendor/replo-utils/lib/object.d.ts +31 -0
- package/_vendor/replo-utils/lib/parse.d.ts +15 -0
- package/_vendor/replo-utils/lib/posthogReplay.d.ts +43 -0
- package/_vendor/replo-utils/lib/posthogReplay.mjs +121 -0
- package/_vendor/replo-utils/react/use-iframe-rpc-channel.d.ts +14 -0
- package/_vendor/replo-utils/react/use-iframe-rpc-channel.mjs +14 -0
- package/_vendor/schemas/designLibrary.d.ts +361 -0
- package/_vendor/schemas/designLibrary.mjs +126 -0
- package/_vendor/schemas/errors.d.ts +459 -0
- package/_vendor/schemas/generated/errors.d.ts +61 -0
- package/_vendor/schemas/generated/pageAnnotations.d.ts +48 -0
- package/_vendor/schemas/generated/pageAnnotations.mjs +1 -0
- package/_vendor/schemas/generated/selectMode.d.ts +119 -0
- package/_vendor/schemas/generated/selectMode.mjs +1 -0
- package/_vendor/schemas/generated/selectModeIframeRpc.d.ts +100 -0
- package/_vendor/schemas/generated/selectModeIframeRpc.mjs +1 -0
- package/_vendor/schemas/iframeRpcChannel.d.ts +82 -0
- package/_vendor/schemas/iframeRpcChannel.mjs +520 -0
- package/_vendor/schemas/pageAnnotations.d.ts +134 -0
- package/_vendor/schemas/pageAnnotations.mjs +61 -0
- package/_vendor/schemas/savedStyles.d.ts +140 -0
- package/_vendor/schemas/selectMode.d.ts +522 -0
- package/_vendor/schemas/selectMode.mjs +3 -0
- package/_vendor/schemas/selectModeIframeRpc.d.ts +900 -0
- package/_vendor/schemas/selectModeIframeRpc.mjs +223 -0
- package/annotations/AnnotationLayerMount.d.ts +1 -0
- package/annotations/AnnotationLayerMount.js +13 -0
- package/annotations/AnnotationLayerMount.js.map +7 -0
- package/annotations/annotationController.d.ts +1 -0
- package/annotations/annotationController.js +384 -0
- package/annotations/annotationController.js.map +7 -0
- package/annotations/bridgeGate.d.ts +7 -0
- package/annotations/bridgeGate.js +22 -0
- package/annotations/bridgeGate.js.map +7 -0
- package/chunk-3UFG7XTQ.mjs +205 -0
- package/chunk-FNTGY7I5.mjs +68 -0
- package/chunk-N5EI2MOZ.mjs +1535 -0
- package/design-library-preview/DesignLibraryPreview.d.ts +1 -0
- package/design-library-preview/DesignLibraryPreview.js +93 -0
- package/design-library-preview/DesignLibraryPreview.js.map +7 -0
- package/package.json +41 -0
- package/posthog-relay.d.ts +11 -0
- package/posthog-relay.js +72 -0
- package/posthog-relay.js.map +7 -0
- package/sandbox-runtime.d.ts +1 -0
- package/sandbox-runtime.js +29 -0
- package/sandbox-runtime.js.map +7 -0
- package/select-mode/EditorSelection.d.ts +24 -0
- package/select-mode/EditorSelection.js +95 -0
- package/select-mode/EditorSelection.js.map +7 -0
- package/select-mode/annotationFrames.d.ts +33 -0
- package/select-mode/annotationFrames.js +119 -0
- package/select-mode/annotationFrames.js.map +7 -0
- package/select-mode/descriptor/elementDescriptor.d.ts +26 -0
- package/select-mode/descriptor/elementDescriptor.js +201 -0
- package/select-mode/descriptor/elementDescriptor.js.map +7 -0
- package/select-mode/descriptor/styleExtraction.d.ts +3 -0
- package/select-mode/descriptor/styleExtraction.js +271 -0
- package/select-mode/descriptor/styleExtraction.js.map +7 -0
- package/select-mode/displayModeStore.d.ts +10 -0
- package/select-mode/displayModeStore.js +47 -0
- package/select-mode/displayModeStore.js.map +7 -0
- package/select-mode/fast-refresh-relay.d.ts +3 -0
- package/select-mode/fast-refresh-relay.js +33 -0
- package/select-mode/fast-refresh-relay.js.map +7 -0
- package/select-mode/fiber.d.ts +49 -0
- package/select-mode/fiber.js +306 -0
- package/select-mode/fiber.js.map +7 -0
- package/select-mode/hooks/useCrosshairCursor.d.ts +12 -0
- package/select-mode/hooks/useCrosshairCursor.js +20 -0
- package/select-mode/hooks/useCrosshairCursor.js.map +7 -0
- package/select-mode/hooks/useEditModeStateMachine.d.ts +16 -0
- package/select-mode/hooks/useEditModeStateMachine.js +235 -0
- package/select-mode/hooks/useEditModeStateMachine.js.map +7 -0
- package/select-mode/hooks/useOptimisticOverrides.d.ts +17 -0
- package/select-mode/hooks/useOptimisticOverrides.js +283 -0
- package/select-mode/hooks/useOptimisticOverrides.js.map +7 -0
- package/select-mode/hooks/useParentMessaging.d.ts +36 -0
- package/select-mode/hooks/useParentMessaging.js +74 -0
- package/select-mode/hooks/useParentMessaging.js.map +7 -0
- package/select-mode/hooks/useSelectModeController.d.ts +8 -0
- package/select-mode/hooks/useSelectModeController.js +46 -0
- package/select-mode/hooks/useSelectModeController.js.map +7 -0
- package/select-mode/hooks/useSelectionHover.d.ts +22 -0
- package/select-mode/hooks/useSelectionHover.js +110 -0
- package/select-mode/hooks/useSelectionHover.js.map +7 -0
- package/select-mode/hooks/useSelectionInteractions.d.ts +37 -0
- package/select-mode/hooks/useSelectionInteractions.js +353 -0
- package/select-mode/hooks/useSelectionInteractions.js.map +7 -0
- package/select-mode/hooks/useSelectionScrollSync.d.ts +28 -0
- package/select-mode/hooks/useSelectionScrollSync.js +70 -0
- package/select-mode/hooks/useSelectionScrollSync.js.map +7 -0
- package/select-mode/hooks/useSiblingResolution.d.ts +6 -0
- package/select-mode/hooks/useSiblingResolution.js +59 -0
- package/select-mode/hooks/useSiblingResolution.js.map +7 -0
- package/select-mode/iframeRpcChannel.d.ts +356 -0
- package/select-mode/iframeRpcChannel.js +92 -0
- package/select-mode/iframeRpcChannel.js.map +7 -0
- package/select-mode/inlineTextMarks.d.ts +6 -0
- package/select-mode/inlineTextMarks.js +25 -0
- package/select-mode/inlineTextMarks.js.map +7 -0
- package/select-mode/interactions/selectionGeometry.d.ts +105 -0
- package/select-mode/interactions/selectionGeometry.js +192 -0
- package/select-mode/interactions/selectionGeometry.js.map +7 -0
- package/select-mode/selectModeSession.d.ts +21 -0
- package/select-mode/selectModeSession.js +7 -0
- package/select-mode/selectModeSession.js.map +7 -0
- package/select-mode/selectionFrame.d.ts +81 -0
- package/select-mode/selectionFrame.js +132 -0
- package/select-mode/selectionFrame.js.map +7 -0
- package/select-mode/symbolicate.d.ts +2 -0
- package/select-mode/symbolicate.js +200 -0
- package/select-mode/symbolicate.js.map +7 -0
- package/select-mode/tiptapInlineEditor.d.ts +23 -0
- package/select-mode/tiptapInlineEditor.js +120 -0
- package/select-mode/tiptapInlineEditor.js.map +7 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PAGE_ANNOTATIONS_PROTOCOL_VERSION = 1;
|
|
3
|
+
export declare const pageAnnotationColorSchema: z.ZodEnum<{
|
|
4
|
+
red: "red";
|
|
5
|
+
purple: "purple";
|
|
6
|
+
amber: "amber";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const pageAnnotationPlacementSchema: z.ZodEnum<{
|
|
9
|
+
element: "element";
|
|
10
|
+
pageTop: "pageTop";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const pageAnnotationMarkerSchema: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
number: z.ZodNumber;
|
|
15
|
+
color: z.ZodEnum<{
|
|
16
|
+
red: "red";
|
|
17
|
+
purple: "purple";
|
|
18
|
+
amber: "amber";
|
|
19
|
+
}>;
|
|
20
|
+
selector: z.ZodString;
|
|
21
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
22
|
+
element: "element";
|
|
23
|
+
pageTop: "pageTop";
|
|
24
|
+
}>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export declare const pageAnnotationViewportRectSchema: z.ZodObject<{
|
|
27
|
+
x: z.ZodNumber;
|
|
28
|
+
y: z.ZodNumber;
|
|
29
|
+
width: z.ZodNumber;
|
|
30
|
+
height: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const pageAnnotationsSetMessageSchema: z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"replo:annotations:set">;
|
|
34
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
35
|
+
setId: z.ZodString;
|
|
36
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
number: z.ZodNumber;
|
|
39
|
+
color: z.ZodEnum<{
|
|
40
|
+
red: "red";
|
|
41
|
+
purple: "purple";
|
|
42
|
+
amber: "amber";
|
|
43
|
+
}>;
|
|
44
|
+
selector: z.ZodString;
|
|
45
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
46
|
+
element: "element";
|
|
47
|
+
pageTop: "pageTop";
|
|
48
|
+
}>>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const pageAnnotationsClearMessageSchema: z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<"replo:annotations:clear">;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export declare const pageAnnotationsRequestReadyMessageSchema: z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<"replo:annotations:requestReady">;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const pageAnnotationsParentMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
58
|
+
type: z.ZodLiteral<"replo:annotations:set">;
|
|
59
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
60
|
+
setId: z.ZodString;
|
|
61
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
number: z.ZodNumber;
|
|
64
|
+
color: z.ZodEnum<{
|
|
65
|
+
red: "red";
|
|
66
|
+
purple: "purple";
|
|
67
|
+
amber: "amber";
|
|
68
|
+
}>;
|
|
69
|
+
selector: z.ZodString;
|
|
70
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
71
|
+
element: "element";
|
|
72
|
+
pageTop: "pageTop";
|
|
73
|
+
}>>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<"replo:annotations:clear">;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
type: z.ZodLiteral<"replo:annotations:requestReady">;
|
|
79
|
+
}, z.core.$strip>], "type">;
|
|
80
|
+
export declare const pageAnnotationsReadyMessageSchema: z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<"replo:annotations:ready">;
|
|
82
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export declare const pageAnnotationsClickedMessageSchema: z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"replo:annotations:clicked">;
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
viewportRect: z.ZodObject<{
|
|
88
|
+
x: z.ZodNumber;
|
|
89
|
+
y: z.ZodNumber;
|
|
90
|
+
width: z.ZodNumber;
|
|
91
|
+
height: z.ZodNumber;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export declare const pageAnnotationsActiveRectMessageSchema: z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"replo:annotations:activeRect">;
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
viewportRect: z.ZodObject<{
|
|
98
|
+
x: z.ZodNumber;
|
|
99
|
+
y: z.ZodNumber;
|
|
100
|
+
width: z.ZodNumber;
|
|
101
|
+
height: z.ZodNumber;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export declare const pageAnnotationsUnresolvedMessageSchema: z.ZodObject<{
|
|
105
|
+
type: z.ZodLiteral<"replo:annotations:unresolved">;
|
|
106
|
+
setId: z.ZodString;
|
|
107
|
+
ids: z.ZodArray<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export declare const pageAnnotationsIframeMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
110
|
+
type: z.ZodLiteral<"replo:annotations:ready">;
|
|
111
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<"replo:annotations:clicked">;
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
viewportRect: z.ZodObject<{
|
|
116
|
+
x: z.ZodNumber;
|
|
117
|
+
y: z.ZodNumber;
|
|
118
|
+
width: z.ZodNumber;
|
|
119
|
+
height: z.ZodNumber;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
+
type: z.ZodLiteral<"replo:annotations:activeRect">;
|
|
123
|
+
id: z.ZodString;
|
|
124
|
+
viewportRect: z.ZodObject<{
|
|
125
|
+
x: z.ZodNumber;
|
|
126
|
+
y: z.ZodNumber;
|
|
127
|
+
width: z.ZodNumber;
|
|
128
|
+
height: z.ZodNumber;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<"replo:annotations:unresolved">;
|
|
132
|
+
setId: z.ZodString;
|
|
133
|
+
ids: z.ZodArray<z.ZodString>;
|
|
134
|
+
}, z.core.$strip>], "type">;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
// ../schemas/pageAnnotations.ts
|
|
4
|
+
var PAGE_ANNOTATIONS_PROTOCOL_VERSION = 1;
|
|
5
|
+
var pageAnnotationColorSchema = z.enum(["red", "purple", "amber"]).describe("PageAnnotationColor");
|
|
6
|
+
var pageAnnotationPlacementSchema = z.enum(["element", "pageTop"]).describe("PageAnnotationPlacement");
|
|
7
|
+
var pageAnnotationMarkerSchema = z.object({
|
|
8
|
+
id: z.string().min(1).max(256),
|
|
9
|
+
number: z.number().int().min(1).max(99),
|
|
10
|
+
color: pageAnnotationColorSchema,
|
|
11
|
+
selector: z.string().min(1).max(2e3),
|
|
12
|
+
// "pageTop" markers ignore the selector and stack near the top of the
|
|
13
|
+
// page (page-wide findings); "element" markers pin to their selector.
|
|
14
|
+
placement: pageAnnotationPlacementSchema.default("element")
|
|
15
|
+
}).describe("PageAnnotationMarker");
|
|
16
|
+
var pageAnnotationViewportRectSchema = z.object({
|
|
17
|
+
x: z.number(),
|
|
18
|
+
y: z.number(),
|
|
19
|
+
width: z.number(),
|
|
20
|
+
height: z.number()
|
|
21
|
+
}).describe("PageAnnotationViewportRect");
|
|
22
|
+
var pageAnnotationsSetMessageSchema = z.object({
|
|
23
|
+
type: z.literal("replo:annotations:set"),
|
|
24
|
+
protocolVersion: z.literal(PAGE_ANNOTATIONS_PROTOCOL_VERSION),
|
|
25
|
+
setId: z.string().min(1),
|
|
26
|
+
markers: z.array(pageAnnotationMarkerSchema).max(50)
|
|
27
|
+
}).describe("PageAnnotationsSetMessage");
|
|
28
|
+
var pageAnnotationsClearMessageSchema = z.object({ type: z.literal("replo:annotations:clear") }).describe("PageAnnotationsClearMessage");
|
|
29
|
+
var pageAnnotationsRequestReadyMessageSchema = z.object({ type: z.literal("replo:annotations:requestReady") }).describe("PageAnnotationsRequestReadyMessage");
|
|
30
|
+
var pageAnnotationsParentMessageSchema = z.discriminatedUnion("type", [
|
|
31
|
+
pageAnnotationsSetMessageSchema,
|
|
32
|
+
pageAnnotationsClearMessageSchema,
|
|
33
|
+
pageAnnotationsRequestReadyMessageSchema
|
|
34
|
+
]).describe("PageAnnotationsParentMessage");
|
|
35
|
+
var pageAnnotationsReadyMessageSchema = z.object({
|
|
36
|
+
type: z.literal("replo:annotations:ready"),
|
|
37
|
+
protocolVersion: z.literal(PAGE_ANNOTATIONS_PROTOCOL_VERSION)
|
|
38
|
+
}).describe("PageAnnotationsReadyMessage");
|
|
39
|
+
var pageAnnotationsClickedMessageSchema = z.object({
|
|
40
|
+
type: z.literal("replo:annotations:clicked"),
|
|
41
|
+
id: z.string().min(1).max(256),
|
|
42
|
+
viewportRect: pageAnnotationViewportRectSchema
|
|
43
|
+
}).describe("PageAnnotationsClickedMessage");
|
|
44
|
+
var pageAnnotationsActiveRectMessageSchema = z.object({
|
|
45
|
+
type: z.literal("replo:annotations:activeRect"),
|
|
46
|
+
id: z.string().min(1).max(256),
|
|
47
|
+
viewportRect: pageAnnotationViewportRectSchema
|
|
48
|
+
}).describe("PageAnnotationsActiveRectMessage");
|
|
49
|
+
var pageAnnotationsUnresolvedMessageSchema = z.object({
|
|
50
|
+
type: z.literal("replo:annotations:unresolved"),
|
|
51
|
+
setId: z.string().min(1),
|
|
52
|
+
ids: z.array(z.string().min(1).max(256)).max(50)
|
|
53
|
+
}).describe("PageAnnotationsUnresolvedMessage");
|
|
54
|
+
var pageAnnotationsIframeMessageSchema = z.discriminatedUnion("type", [
|
|
55
|
+
pageAnnotationsReadyMessageSchema,
|
|
56
|
+
pageAnnotationsClickedMessageSchema,
|
|
57
|
+
pageAnnotationsActiveRectMessageSchema,
|
|
58
|
+
pageAnnotationsUnresolvedMessageSchema
|
|
59
|
+
]).describe("PageAnnotationsIframeMessage");
|
|
60
|
+
|
|
61
|
+
export { PAGE_ANNOTATIONS_PROTOCOL_VERSION, pageAnnotationColorSchema, pageAnnotationMarkerSchema, pageAnnotationPlacementSchema, pageAnnotationViewportRectSchema, pageAnnotationsActiveRectMessageSchema, pageAnnotationsClearMessageSchema, pageAnnotationsClickedMessageSchema, pageAnnotationsIframeMessageSchema, pageAnnotationsParentMessageSchema, pageAnnotationsReadyMessageSchema, pageAnnotationsRequestReadyMessageSchema, pageAnnotationsSetMessageSchema, pageAnnotationsUnresolvedMessageSchema };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const colorTypeSchema: z.ZodEnum<{
|
|
3
|
+
basic: "basic";
|
|
4
|
+
foregroundPrimary: "foregroundPrimary";
|
|
5
|
+
foregroundSecondary: "foregroundSecondary";
|
|
6
|
+
foregroundTertiary: "foregroundTertiary";
|
|
7
|
+
backgroundPrimary: "backgroundPrimary";
|
|
8
|
+
backgroundSecondary: "backgroundSecondary";
|
|
9
|
+
backgroundTertiary: "backgroundTertiary";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const savedStyleColorAttributesSchema: z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<"color">;
|
|
13
|
+
color: z.ZodString;
|
|
14
|
+
colorType: z.ZodEnum<{
|
|
15
|
+
basic: "basic";
|
|
16
|
+
foregroundPrimary: "foregroundPrimary";
|
|
17
|
+
foregroundSecondary: "foregroundSecondary";
|
|
18
|
+
foregroundTertiary: "foregroundTertiary";
|
|
19
|
+
backgroundPrimary: "backgroundPrimary";
|
|
20
|
+
backgroundSecondary: "backgroundSecondary";
|
|
21
|
+
backgroundTertiary: "backgroundTertiary";
|
|
22
|
+
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const savedStyleTextHtmlTagSchema: z.ZodEnum<{
|
|
25
|
+
h1: "h1";
|
|
26
|
+
h2: "h2";
|
|
27
|
+
h3: "h3";
|
|
28
|
+
h4: "h4";
|
|
29
|
+
h5: "h5";
|
|
30
|
+
h6: "h6";
|
|
31
|
+
p: "p";
|
|
32
|
+
}>;
|
|
33
|
+
export declare const savedStyleTextAttributesSchema: z.ZodObject<{
|
|
34
|
+
type: z.ZodLiteral<"text">;
|
|
35
|
+
htmlTag: z.ZodEnum<{
|
|
36
|
+
h1: "h1";
|
|
37
|
+
h2: "h2";
|
|
38
|
+
h3: "h3";
|
|
39
|
+
h4: "h4";
|
|
40
|
+
h5: "h5";
|
|
41
|
+
h6: "h6";
|
|
42
|
+
p: "p";
|
|
43
|
+
}>;
|
|
44
|
+
color: z.ZodOptional<z.ZodString>;
|
|
45
|
+
fontFamily: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
47
|
+
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
100: "100";
|
|
49
|
+
200: "200";
|
|
50
|
+
300: "300";
|
|
51
|
+
400: "400";
|
|
52
|
+
500: "500";
|
|
53
|
+
600: "600";
|
|
54
|
+
700: "700";
|
|
55
|
+
800: "800";
|
|
56
|
+
900: "900";
|
|
57
|
+
950: "950";
|
|
58
|
+
}>>;
|
|
59
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
60
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
61
|
+
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
center: "center";
|
|
63
|
+
left: "left";
|
|
64
|
+
right: "right";
|
|
65
|
+
}>>;
|
|
66
|
+
textDecoration: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
none: "none";
|
|
68
|
+
italic: "italic";
|
|
69
|
+
underline: "underline";
|
|
70
|
+
"line-through": "line-through";
|
|
71
|
+
}>>;
|
|
72
|
+
textShadow: z.ZodOptional<z.ZodString>;
|
|
73
|
+
textStroke: z.ZodOptional<z.ZodString>;
|
|
74
|
+
textTransform: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
none: "none";
|
|
76
|
+
lowercase: "lowercase";
|
|
77
|
+
uppercase: "uppercase";
|
|
78
|
+
capitalize: "capitalize";
|
|
79
|
+
}>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const savedStyleAttributesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
82
|
+
type: z.ZodLiteral<"color">;
|
|
83
|
+
color: z.ZodString;
|
|
84
|
+
colorType: z.ZodEnum<{
|
|
85
|
+
basic: "basic";
|
|
86
|
+
foregroundPrimary: "foregroundPrimary";
|
|
87
|
+
foregroundSecondary: "foregroundSecondary";
|
|
88
|
+
foregroundTertiary: "foregroundTertiary";
|
|
89
|
+
backgroundPrimary: "backgroundPrimary";
|
|
90
|
+
backgroundSecondary: "backgroundSecondary";
|
|
91
|
+
backgroundTertiary: "backgroundTertiary";
|
|
92
|
+
}>;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
type: z.ZodLiteral<"text">;
|
|
95
|
+
htmlTag: z.ZodEnum<{
|
|
96
|
+
h1: "h1";
|
|
97
|
+
h2: "h2";
|
|
98
|
+
h3: "h3";
|
|
99
|
+
h4: "h4";
|
|
100
|
+
h5: "h5";
|
|
101
|
+
h6: "h6";
|
|
102
|
+
p: "p";
|
|
103
|
+
}>;
|
|
104
|
+
color: z.ZodOptional<z.ZodString>;
|
|
105
|
+
fontFamily: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
fontSize: z.ZodOptional<z.ZodString>;
|
|
107
|
+
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
108
|
+
100: "100";
|
|
109
|
+
200: "200";
|
|
110
|
+
300: "300";
|
|
111
|
+
400: "400";
|
|
112
|
+
500: "500";
|
|
113
|
+
600: "600";
|
|
114
|
+
700: "700";
|
|
115
|
+
800: "800";
|
|
116
|
+
900: "900";
|
|
117
|
+
950: "950";
|
|
118
|
+
}>>;
|
|
119
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
120
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
121
|
+
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
center: "center";
|
|
123
|
+
left: "left";
|
|
124
|
+
right: "right";
|
|
125
|
+
}>>;
|
|
126
|
+
textDecoration: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
none: "none";
|
|
128
|
+
italic: "italic";
|
|
129
|
+
underline: "underline";
|
|
130
|
+
"line-through": "line-through";
|
|
131
|
+
}>>;
|
|
132
|
+
textShadow: z.ZodOptional<z.ZodString>;
|
|
133
|
+
textStroke: z.ZodOptional<z.ZodString>;
|
|
134
|
+
textTransform: z.ZodOptional<z.ZodEnum<{
|
|
135
|
+
none: "none";
|
|
136
|
+
lowercase: "lowercase";
|
|
137
|
+
uppercase: "uppercase";
|
|
138
|
+
capitalize: "capitalize";
|
|
139
|
+
}>>;
|
|
140
|
+
}, z.core.$strip>], "type">;
|