@topol.io/editor 1.0.0-alpha.8 → 1.0.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/README.md +160 -97
- package/dist/index.js +171 -0
- package/dist/types/src/email-editor/index.d.ts +16 -102
- package/dist/types/src/landing-page-editor/constants.d.ts +1 -1
- package/dist/types/src/landing-page-editor/index.d.ts +11 -6
- package/dist/types/src/landing-page-editor/schemas/api/apiSchema.d.ts +5 -11
- package/dist/types/src/landing-page-editor/schemas/contentBlock/contentBlockScheme.d.ts +34 -18
- package/dist/types/src/landing-page-editor/schemas/language/languageSchema.d.ts +1 -1
- package/dist/types/src/landing-page-editor/schemas/mjmlStore/mjmlStoreSchema.d.ts +8 -6
- package/dist/types/src/landing-page-editor/schemas/notification/notificationSchema.d.ts +0 -1
- package/dist/types/src/landing-page-editor/schemas/openAI/openAISchema.d.ts +1 -2
- package/dist/types/src/landing-page-editor/schemas/pluginOptions/pluginOptionsSchema.d.ts +150 -17
- package/dist/types/src/landing-page-editor/schemas/premadeSection/premadeSectionSchema.d.ts +30 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/buttonBlockSchema.d.ts +687 -5
- package/dist/types/src/landing-page-editor/schemas/template/blocks/carouselBlockSchema.d.ts +9 -2
- package/dist/types/src/landing-page-editor/schemas/template/blocks/dividerBlockSchema.d.ts +11 -3
- package/dist/types/src/landing-page-editor/schemas/template/blocks/formBlockSchema.d.ts +1069 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/imageAnGifBlockSchema.d.ts +35 -19
- package/dist/types/src/landing-page-editor/schemas/template/blocks/rawBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/blocks/socialBlockSchema.d.ts +11 -3
- package/dist/types/src/landing-page-editor/schemas/template/blocks/spacerBlockSchema.d.ts +18 -10
- package/dist/types/src/landing-page-editor/schemas/template/blocks/textBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/blocks/videoBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/commonSchema.d.ts +28 -8
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarCTASchema.d.ts +335 -0
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarHamburgerSchema.d.ts +1109 -0
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarLogoSchema.d.ts +252 -0
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarMenuSchema.d.ts +1209 -0
- package/dist/types/src/landing-page-editor/schemas/template/settingsSchema.d.ts +4058 -546
- package/dist/types/src/landing-page-editor/schemas/template/structure/blockSchema.d.ts +5007 -2328
- package/dist/types/src/landing-page-editor/schemas/template/structure/columnSchema.d.ts +5501 -2412
- package/dist/types/src/landing-page-editor/schemas/template/structure/navbarSchema.d.ts +4394 -0
- package/dist/types/src/landing-page-editor/schemas/template/structure/rowSchema.d.ts +11094 -0
- package/dist/types/src/landing-page-editor/schemas/template/structure/sectionSchema.d.ts +8602 -3337
- package/dist/types/src/landing-page-editor/schemas/template/styleSchema.d.ts +55 -44
- package/dist/types/src/landing-page-editor/schemas/templateSchema.d.ts +34865 -48464
- package/dist/types/src/landing-page-editor/schemas/templateSettings/templateSettingsSchema.d.ts +4304 -794
- package/dist/types/src/landing-page-editor/schemas/theme/themeSchema.d.ts +6 -1
- package/dist/types/src/landing-page-editor/schemas/utils/cssValue.d.ts +21 -0
- package/dist/types/src/landing-page-editor/schemas/utils/transformBorder.d.ts +10 -5
- package/dist/types/src/main.d.ts +28 -108
- package/dist/types/types/API/API.d.ts +8 -9
- package/dist/types/types/APIBlocks/APIBlocks.d.ts +9 -0
- package/dist/types/types/Auth/IAuthorize.d.ts +6 -0
- package/dist/types/types/Auth/INonceAuthCallbacks.d.ts +10 -0
- package/dist/types/types/Callbacks/ICallbackPayloads.d.ts +27 -23
- package/dist/types/types/Callbacks/IEmailCallbacks.d.ts +73 -155
- package/dist/types/types/Cloud/ICloudOptions.d.ts +32 -0
- package/dist/types/types/ContentBlock/IContentBlockOptions.d.ts +1 -1
- package/dist/types/types/Countdown/ICountdownOptions.d.ts +48 -0
- package/dist/types/types/{ITopolOptions.d.ts → IEmailConfig.d.ts} +80 -28
- package/dist/types/types/IEmailEditorInstance.d.ts +64 -0
- package/dist/types/types/IEmailOptions.d.ts +7 -0
- package/dist/types/types/Language/Language.d.ts +1 -1
- package/dist/types/types/MergeTag/IMergeTag.d.ts +18 -0
- package/dist/types/types/Notification/INotification.d.ts +2 -1
- package/dist/types/types/Sections/ISections.d.ts +41 -0
- package/dist/types/types/Shortcuts/EditorShortcut.d.ts +4 -0
- package/dist/types/types/Theme/ITheme.d.ts +12 -2
- package/dist/types/types/landing-page/ILandingPageEditorInstance.d.ts +65 -5
- package/dist/types/types/landing-page/ILandingPageOptions.d.ts +105 -69
- package/logo.svg +1 -0
- package/package.json +11 -13
- package/dist/topol-plugin.es.js +0 -284
- package/dist/topol-plugin.umd.js +0 -1
- package/dist/types/src/landing-page-editor/schemas/helpdesk/helpdeskSchema.d.ts +0 -8
- package/dist/types/src/landing-page-editor/schemas/premadeBlock/premadeBlockSchema.d.ts +0 -59750
- package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockApiSchema.d.ts +0 -44831
- package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockSchema.d.ts +0 -59725
- package/dist/types/src/landing-page-editor/schemas/template/blocks/index.d.ts +0 -12
- package/dist/types/types/ITopolPlugin.d.ts +0 -44
- package/dist/types/types/SavedBlock/ISavedBlock.d.ts +0 -6
package/dist/types/src/landing-page-editor/schemas/template/blocks/imageAnGifBlockSchema.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const TopolImageGifStyleAttributesSchema: z.ZodObject<{
|
|
3
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
3
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
4
4
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
5
5
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
6
6
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -82,7 +82,7 @@ export declare const TopolImageGifHoverSchema: z.ZodObject<{
|
|
|
82
82
|
"backface-visibility": z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"hidden">, z.ZodLiteral<"visible">]>>>;
|
|
83
83
|
}, z.core.$strip>;
|
|
84
84
|
export declare const TopolImageGifBlockAttributesSchema: z.ZodObject<{
|
|
85
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
85
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
86
86
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
87
87
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
88
88
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -158,7 +158,7 @@ export declare const TopolImageGifBlockAttributesSchema: z.ZodObject<{
|
|
|
158
158
|
}>>>;
|
|
159
159
|
}, z.core.$strip>;
|
|
160
160
|
export declare const TopolImageGifBlockAttributesTransformSchema: z.ZodPipe<z.ZodObject<{
|
|
161
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
161
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
162
162
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
163
163
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
164
164
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -257,7 +257,7 @@ export declare const TopolImageGifBlockAttributesTransformSchema: z.ZodPipe<z.Zo
|
|
|
257
257
|
saturation: "saturation";
|
|
258
258
|
luminosity: "luminosity";
|
|
259
259
|
}> | undefined;
|
|
260
|
-
cursor?: "
|
|
260
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
261
261
|
"box-shadow"?: string | undefined;
|
|
262
262
|
"text-shadow"?: string | undefined;
|
|
263
263
|
filter?: string | undefined;
|
|
@@ -324,7 +324,7 @@ export declare const TopolImageGifBlockAttributesTransformSchema: z.ZodPipe<z.Zo
|
|
|
324
324
|
saturation: "saturation";
|
|
325
325
|
luminosity: "luminosity";
|
|
326
326
|
}> | undefined;
|
|
327
|
-
cursor?: "
|
|
327
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
328
328
|
"box-shadow"?: string | undefined;
|
|
329
329
|
"text-shadow"?: string | undefined;
|
|
330
330
|
filter?: string | undefined;
|
|
@@ -370,10 +370,18 @@ export declare const TopolImageGifBlockAttributesTransformSchema: z.ZodPipe<z.Zo
|
|
|
370
370
|
export declare const imageTagAttributes: readonly ["src", "alt", "title"];
|
|
371
371
|
export declare const TopolImageBlockSchema: z.ZodObject<{
|
|
372
372
|
uid: z.ZodCatch<z.ZodString>;
|
|
373
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>>;
|
|
373
374
|
customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
374
|
-
locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean
|
|
375
|
+
locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
376
|
+
true: "true";
|
|
377
|
+
false: "false";
|
|
378
|
+
}>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
|
|
379
|
+
true: "true";
|
|
380
|
+
false: "false";
|
|
381
|
+
}>>>]>>>;
|
|
382
|
+
aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
375
383
|
attributes: z.ZodDefault<z.ZodPipe<z.ZodObject<{
|
|
376
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
384
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
377
385
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
378
386
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
379
387
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -472,7 +480,7 @@ export declare const TopolImageBlockSchema: z.ZodObject<{
|
|
|
472
480
|
saturation: "saturation";
|
|
473
481
|
luminosity: "luminosity";
|
|
474
482
|
}> | undefined;
|
|
475
|
-
cursor?: "
|
|
483
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
476
484
|
"box-shadow"?: string | undefined;
|
|
477
485
|
"text-shadow"?: string | undefined;
|
|
478
486
|
filter?: string | undefined;
|
|
@@ -539,7 +547,7 @@ export declare const TopolImageBlockSchema: z.ZodObject<{
|
|
|
539
547
|
saturation: "saturation";
|
|
540
548
|
luminosity: "luminosity";
|
|
541
549
|
}> | undefined;
|
|
542
|
-
cursor?: "
|
|
550
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
543
551
|
"box-shadow"?: string | undefined;
|
|
544
552
|
"text-shadow"?: string | undefined;
|
|
545
553
|
filter?: string | undefined;
|
|
@@ -583,7 +591,7 @@ export declare const TopolImageBlockSchema: z.ZodObject<{
|
|
|
583
591
|
}> | undefined;
|
|
584
592
|
}>>>;
|
|
585
593
|
mdAttributes: z.ZodDefault<z.ZodObject<{
|
|
586
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
594
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
587
595
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
588
596
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
589
597
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -630,7 +638,7 @@ export declare const TopolImageBlockSchema: z.ZodObject<{
|
|
|
630
638
|
}>>>;
|
|
631
639
|
}, z.core.$strip>>;
|
|
632
640
|
smAttributes: z.ZodDefault<z.ZodObject<{
|
|
633
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
641
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
634
642
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
635
643
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
636
644
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -677,7 +685,7 @@ export declare const TopolImageBlockSchema: z.ZodObject<{
|
|
|
677
685
|
}>>>;
|
|
678
686
|
}, z.core.$strip>>;
|
|
679
687
|
xsAttributes: z.ZodDefault<z.ZodObject<{
|
|
680
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
688
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
681
689
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
682
690
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
683
691
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -762,10 +770,18 @@ export declare const TopolImageBlockSchema: z.ZodObject<{
|
|
|
762
770
|
}, z.core.$strip>;
|
|
763
771
|
export declare const TopolGifBlockSchema: z.ZodObject<{
|
|
764
772
|
uid: z.ZodCatch<z.ZodString>;
|
|
773
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>>;
|
|
765
774
|
customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
766
|
-
locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean
|
|
775
|
+
locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
776
|
+
true: "true";
|
|
777
|
+
false: "false";
|
|
778
|
+
}>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
|
|
779
|
+
true: "true";
|
|
780
|
+
false: "false";
|
|
781
|
+
}>>>]>>>;
|
|
782
|
+
aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
767
783
|
attributes: z.ZodDefault<z.ZodPipe<z.ZodObject<{
|
|
768
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
784
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
769
785
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
770
786
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
771
787
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -864,7 +880,7 @@ export declare const TopolGifBlockSchema: z.ZodObject<{
|
|
|
864
880
|
saturation: "saturation";
|
|
865
881
|
luminosity: "luminosity";
|
|
866
882
|
}> | undefined;
|
|
867
|
-
cursor?: "
|
|
883
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
868
884
|
"box-shadow"?: string | undefined;
|
|
869
885
|
"text-shadow"?: string | undefined;
|
|
870
886
|
filter?: string | undefined;
|
|
@@ -931,7 +947,7 @@ export declare const TopolGifBlockSchema: z.ZodObject<{
|
|
|
931
947
|
saturation: "saturation";
|
|
932
948
|
luminosity: "luminosity";
|
|
933
949
|
}> | undefined;
|
|
934
|
-
cursor?: "
|
|
950
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
935
951
|
"box-shadow"?: string | undefined;
|
|
936
952
|
"text-shadow"?: string | undefined;
|
|
937
953
|
filter?: string | undefined;
|
|
@@ -975,7 +991,7 @@ export declare const TopolGifBlockSchema: z.ZodObject<{
|
|
|
975
991
|
}> | undefined;
|
|
976
992
|
}>>>;
|
|
977
993
|
mdAttributes: z.ZodDefault<z.ZodObject<{
|
|
978
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
994
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
979
995
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
980
996
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
981
997
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -1022,7 +1038,7 @@ export declare const TopolGifBlockSchema: z.ZodObject<{
|
|
|
1022
1038
|
}>>>;
|
|
1023
1039
|
}, z.core.$strip>>;
|
|
1024
1040
|
smAttributes: z.ZodDefault<z.ZodObject<{
|
|
1025
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
1041
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
1026
1042
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1027
1043
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
1028
1044
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -1069,7 +1085,7 @@ export declare const TopolGifBlockSchema: z.ZodObject<{
|
|
|
1069
1085
|
}>>>;
|
|
1070
1086
|
}, z.core.$strip>>;
|
|
1071
1087
|
xsAttributes: z.ZodDefault<z.ZodObject<{
|
|
1072
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]
|
|
1088
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodTransform<string | number | undefined, string | number>>>;
|
|
1073
1089
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1074
1090
|
opacity: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
1075
1091
|
"mix-blend-mode": z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const TopolRawBlockSchema: z.ZodObject<{
|
|
3
3
|
uid: z.ZodCatch<z.ZodString>;
|
|
4
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>>;
|
|
4
5
|
customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
5
|
-
locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean
|
|
6
|
+
locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
7
|
+
true: "true";
|
|
8
|
+
false: "false";
|
|
9
|
+
}>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
|
|
10
|
+
true: "true";
|
|
11
|
+
false: "false";
|
|
12
|
+
}>>>]>>>;
|
|
13
|
+
aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
6
14
|
tagName: z.ZodLiteral<"mj-raw">;
|
|
7
15
|
content: z.ZodCatch<z.ZodString>;
|
|
8
16
|
custom: z.ZodCatch<z.ZodOptional<z.ZodLiteral<true>>>;
|
|
@@ -88,6 +88,7 @@ export declare const TopolSocialBlockAttributesSchema: z.ZodObject<{
|
|
|
88
88
|
}, z.core.$strip>;
|
|
89
89
|
export declare const TopolSocialBlockSchema: z.ZodObject<{
|
|
90
90
|
uid: z.ZodCatch<z.ZodString>;
|
|
91
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>>;
|
|
91
92
|
customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
92
93
|
hover: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
93
94
|
"border-radius": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -131,7 +132,14 @@ export declare const TopolSocialBlockSchema: z.ZodObject<{
|
|
|
131
132
|
"transform-origin": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
132
133
|
"backface-visibility": z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"hidden">, z.ZodLiteral<"visible">]>>>;
|
|
133
134
|
}, z.core.$strip>>>;
|
|
134
|
-
locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean
|
|
135
|
+
locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
136
|
+
true: "true";
|
|
137
|
+
false: "false";
|
|
138
|
+
}>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
|
|
139
|
+
true: "true";
|
|
140
|
+
false: "false";
|
|
141
|
+
}>>>]>>>;
|
|
142
|
+
aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
135
143
|
tagName: z.ZodLiteral<"mj-social">;
|
|
136
144
|
attributes: z.ZodPipe<z.ZodDefault<z.ZodObject<{
|
|
137
145
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -244,7 +252,7 @@ export declare const TopolSocialBlockSchema: z.ZodObject<{
|
|
|
244
252
|
saturation: "saturation";
|
|
245
253
|
luminosity: "luminosity";
|
|
246
254
|
}> | undefined;
|
|
247
|
-
cursor?: "
|
|
255
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
248
256
|
"box-shadow"?: string | undefined;
|
|
249
257
|
"text-shadow"?: string | undefined;
|
|
250
258
|
filter?: string | undefined;
|
|
@@ -326,7 +334,7 @@ export declare const TopolSocialBlockSchema: z.ZodObject<{
|
|
|
326
334
|
saturation: "saturation";
|
|
327
335
|
luminosity: "luminosity";
|
|
328
336
|
}> | undefined;
|
|
329
|
-
cursor?: "
|
|
337
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
330
338
|
"box-shadow"?: string | undefined;
|
|
331
339
|
"text-shadow"?: string | undefined;
|
|
332
340
|
filter?: string | undefined;
|
|
@@ -37,7 +37,7 @@ export declare const TopolSpacerBlockAttributesSchema: z.ZodObject<{
|
|
|
37
37
|
block: "block";
|
|
38
38
|
none: "none";
|
|
39
39
|
}>>>;
|
|
40
|
-
height: z.ZodCatch<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
40
|
+
height: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodTransform<string | undefined, string | number>>>>;
|
|
41
41
|
"background-color": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
42
42
|
"background-image": z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
43
43
|
"background-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -48,8 +48,16 @@ export declare const TopolSpacerBlockAttributesSchema: z.ZodObject<{
|
|
|
48
48
|
}, z.core.$strip>;
|
|
49
49
|
export declare const TopolSpacerBlockSchema: z.ZodObject<{
|
|
50
50
|
uid: z.ZodCatch<z.ZodString>;
|
|
51
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>>;
|
|
51
52
|
customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
52
|
-
locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean
|
|
53
|
+
locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
54
|
+
true: "true";
|
|
55
|
+
false: "false";
|
|
56
|
+
}>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
|
|
57
|
+
true: "true";
|
|
58
|
+
false: "false";
|
|
59
|
+
}>>>]>>>;
|
|
60
|
+
aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
53
61
|
tagName: z.ZodLiteral<"mj-spacer">;
|
|
54
62
|
attributes: z.ZodPipe<z.ZodDefault<z.ZodObject<{
|
|
55
63
|
overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -89,7 +97,7 @@ export declare const TopolSpacerBlockSchema: z.ZodObject<{
|
|
|
89
97
|
block: "block";
|
|
90
98
|
none: "none";
|
|
91
99
|
}>>>;
|
|
92
|
-
height: z.ZodCatch<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
100
|
+
height: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodTransform<string | undefined, string | number>>>>;
|
|
93
101
|
"background-color": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
94
102
|
"background-image": z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
95
103
|
"background-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -128,7 +136,7 @@ export declare const TopolSpacerBlockSchema: z.ZodObject<{
|
|
|
128
136
|
saturation: "saturation";
|
|
129
137
|
luminosity: "luminosity";
|
|
130
138
|
}> | undefined;
|
|
131
|
-
cursor?: "
|
|
139
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
132
140
|
"box-shadow"?: string | undefined;
|
|
133
141
|
"text-shadow"?: string | undefined;
|
|
134
142
|
filter?: string | undefined;
|
|
@@ -145,7 +153,7 @@ export declare const TopolSpacerBlockSchema: z.ZodObject<{
|
|
|
145
153
|
block: "block";
|
|
146
154
|
none: "none";
|
|
147
155
|
}> | undefined;
|
|
148
|
-
height?: string |
|
|
156
|
+
height?: string | undefined;
|
|
149
157
|
"background-color"?: string | undefined;
|
|
150
158
|
"background-image"?: string | null | undefined;
|
|
151
159
|
"background-size"?: string | undefined;
|
|
@@ -176,7 +184,7 @@ export declare const TopolSpacerBlockSchema: z.ZodObject<{
|
|
|
176
184
|
saturation: "saturation";
|
|
177
185
|
luminosity: "luminosity";
|
|
178
186
|
}> | undefined;
|
|
179
|
-
cursor?: "
|
|
187
|
+
cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
|
|
180
188
|
"box-shadow"?: string | undefined;
|
|
181
189
|
"text-shadow"?: string | undefined;
|
|
182
190
|
filter?: string | undefined;
|
|
@@ -193,7 +201,7 @@ export declare const TopolSpacerBlockSchema: z.ZodObject<{
|
|
|
193
201
|
block: "block";
|
|
194
202
|
none: "none";
|
|
195
203
|
}> | undefined;
|
|
196
|
-
height?: string |
|
|
204
|
+
height?: string | undefined;
|
|
197
205
|
"background-color"?: string | undefined;
|
|
198
206
|
"background-image"?: string | null | undefined;
|
|
199
207
|
"background-size"?: string | undefined;
|
|
@@ -242,7 +250,7 @@ export declare const TopolSpacerBlockSchema: z.ZodObject<{
|
|
|
242
250
|
block: "block";
|
|
243
251
|
none: "none";
|
|
244
252
|
}>>>;
|
|
245
|
-
height: z.ZodCatch<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
253
|
+
height: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodTransform<string | undefined, string | number>>>>;
|
|
246
254
|
"background-color": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
247
255
|
"background-image": z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
248
256
|
"background-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -289,7 +297,7 @@ export declare const TopolSpacerBlockSchema: z.ZodObject<{
|
|
|
289
297
|
block: "block";
|
|
290
298
|
none: "none";
|
|
291
299
|
}>>>;
|
|
292
|
-
height: z.ZodCatch<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
300
|
+
height: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodTransform<string | undefined, string | number>>>>;
|
|
293
301
|
"background-color": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
294
302
|
"background-image": z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
295
303
|
"background-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -336,7 +344,7 @@ export declare const TopolSpacerBlockSchema: z.ZodObject<{
|
|
|
336
344
|
block: "block";
|
|
337
345
|
none: "none";
|
|
338
346
|
}>>>;
|
|
339
|
-
height: z.ZodCatch<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]
|
|
347
|
+
height: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodTransform<string | undefined, string | number>>>>;
|
|
340
348
|
"background-color": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
341
349
|
"background-image": z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
342
350
|
"background-size": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -175,8 +175,16 @@ export declare const TopolTextBlockAttributesSchema: z.ZodObject<{
|
|
|
175
175
|
export type TopolTextBlockStyleAttributes = z.infer<typeof TopolTextStyleAttributesSchema>;
|
|
176
176
|
export declare const TopolTextBlockSchema: z.ZodObject<{
|
|
177
177
|
uid: z.ZodCatch<z.ZodString>;
|
|
178
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>>;
|
|
178
179
|
customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
179
|
-
locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean
|
|
180
|
+
locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
181
|
+
true: "true";
|
|
182
|
+
false: "false";
|
|
183
|
+
}>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
|
|
184
|
+
true: "true";
|
|
185
|
+
false: "false";
|
|
186
|
+
}>>>]>>>;
|
|
187
|
+
aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
180
188
|
tagName: z.ZodLiteral<"mj-text">;
|
|
181
189
|
attributes: z.ZodDefault<z.ZodObject<{
|
|
182
190
|
"css-class": z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
|
|
@@ -84,8 +84,16 @@ export declare const TopolVideoHoverSchema: z.ZodObject<{
|
|
|
84
84
|
}, z.core.$strip>;
|
|
85
85
|
export declare const TopolVideoBlockSchema: z.ZodObject<{
|
|
86
86
|
uid: z.ZodCatch<z.ZodString>;
|
|
87
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>>;
|
|
87
88
|
customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
88
|
-
locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean
|
|
89
|
+
locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
90
|
+
true: "true";
|
|
91
|
+
false: "false";
|
|
92
|
+
}>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
|
|
93
|
+
true: "true";
|
|
94
|
+
false: "false";
|
|
95
|
+
}>>>]>>>;
|
|
96
|
+
aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
89
97
|
tagName: z.ZodLiteral<"mj-video">;
|
|
90
98
|
isVideo: z.ZodCatch<z.ZodOptional<z.ZodLiteral<true>>>;
|
|
91
99
|
attributes: z.ZodDefault<z.ZodObject<{
|
|
@@ -52,13 +52,6 @@ export declare const TopolAlignItemsSchema: z.ZodEnum<{
|
|
|
52
52
|
end: "end";
|
|
53
53
|
stretch: "stretch";
|
|
54
54
|
}>;
|
|
55
|
-
export declare const TopolPositionSchema: z.ZodEnum<{
|
|
56
|
-
static: "static";
|
|
57
|
-
relative: "relative";
|
|
58
|
-
absolute: "absolute";
|
|
59
|
-
fixed: "fixed";
|
|
60
|
-
sticky: "sticky";
|
|
61
|
-
}>;
|
|
62
55
|
export declare const TopolLayoutSchema: z.ZodObject<{
|
|
63
56
|
display: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
64
57
|
block: "block";
|
|
@@ -214,9 +207,21 @@ export declare const TopolHoverSchema: z.ZodObject<{
|
|
|
214
207
|
"transform-origin": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
215
208
|
"backface-visibility": z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"hidden">, z.ZodLiteral<"visible">]>>>;
|
|
216
209
|
}, z.core.$strip>;
|
|
210
|
+
/**
|
|
211
|
+
* Legacy templates store the lock flag as "true"/"false". Decoded explicitly:
|
|
212
|
+
* z.coerce.boolean() reads "false" as true. Anything else means unlocked.
|
|
213
|
+
*/
|
|
214
|
+
export declare const TopolLockedSchema: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
215
|
+
true: "true";
|
|
216
|
+
false: "false";
|
|
217
|
+
}>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
|
|
218
|
+
true: "true";
|
|
219
|
+
false: "false";
|
|
220
|
+
}>>>]>>>;
|
|
217
221
|
export declare const TopolBasicSchema: z.ZodObject<{
|
|
218
222
|
tagName: z.ZodString;
|
|
219
223
|
uid: z.ZodCatch<z.ZodString>;
|
|
224
|
+
id: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>>;
|
|
220
225
|
customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
221
226
|
hover: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
222
227
|
"border-radius": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
@@ -260,6 +265,21 @@ export declare const TopolBasicSchema: z.ZodObject<{
|
|
|
260
265
|
"transform-origin": z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
261
266
|
"backface-visibility": z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"hidden">, z.ZodLiteral<"visible">]>>>;
|
|
262
267
|
}, z.core.$strip>>>;
|
|
263
|
-
locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean
|
|
268
|
+
locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
269
|
+
true: "true";
|
|
270
|
+
false: "false";
|
|
271
|
+
}>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
|
|
272
|
+
true: "true";
|
|
273
|
+
false: "false";
|
|
274
|
+
}>>>]>>>;
|
|
275
|
+
aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
264
276
|
}, z.core.$strip>;
|
|
265
277
|
export type TopolHover = z.infer<typeof TopolHoverSchema>;
|
|
278
|
+
export declare const TopolPositionSchema: z.ZodObject<{
|
|
279
|
+
position: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"static">, z.ZodLiteral<"relative">, z.ZodLiteral<"absolute">, z.ZodLiteral<"sticky">]>>>;
|
|
280
|
+
top: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
281
|
+
right: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
282
|
+
bottom: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
283
|
+
left: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
284
|
+
"z-index": z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
285
|
+
}, z.core.$strip>;
|