@topol.io/editor 0.2.1 → 1.0.0-alpha.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/LICENSE +1 -1
- package/dist/topol-plugin.es.js +107 -20
- package/dist/topol-plugin.umd.js +1 -1
- package/dist/types/src/core/script-loader.d.ts +7 -0
- package/dist/types/src/email-editor/constants.d.ts +7 -0
- package/dist/types/src/email-editor/index.d.ts +97 -0
- package/dist/types/src/landing-page-editor/constants.d.ts +1 -0
- package/dist/types/src/landing-page-editor/index.d.ts +55 -0
- package/dist/types/src/landing-page-editor/schemas/ai/aiSchema.d.ts +15 -0
- package/dist/types/src/landing-page-editor/schemas/api/apiSchema.d.ts +33 -0
- package/dist/types/src/landing-page-editor/schemas/authHeaderConfig/authHeaderConfigScheme.d.ts +3 -0
- package/dist/types/src/landing-page-editor/schemas/autosave/autosaveSchema.d.ts +33 -0
- package/dist/types/src/landing-page-editor/schemas/comments/commentsSchema.d.ts +91 -0
- package/dist/types/src/landing-page-editor/schemas/contentBlock/contentBlockScheme.d.ts +470 -0
- package/dist/types/src/landing-page-editor/schemas/font/fontSchema.d.ts +12 -0
- package/dist/types/src/landing-page-editor/schemas/helpdesk/helpdeskSchema.d.ts +8 -0
- package/dist/types/src/landing-page-editor/schemas/image/imageSchema.d.ts +26 -0
- package/dist/types/src/landing-page-editor/schemas/language/languageSchema.d.ts +3 -0
- package/dist/types/src/landing-page-editor/schemas/mjmlStore/mjmlStoreSchema.d.ts +31 -0
- package/dist/types/src/landing-page-editor/schemas/notification/notificationSchema.d.ts +16 -0
- package/dist/types/src/landing-page-editor/schemas/openAI/openAISchema.d.ts +7 -0
- package/dist/types/src/landing-page-editor/schemas/pluginOptions/pluginOptionsSchema.d.ts +81 -0
- package/dist/types/src/landing-page-editor/schemas/premadeBlock/premadeBlockSchema.d.ts +59750 -0
- package/dist/types/src/landing-page-editor/schemas/premadeTemplates/premadeTemplatesSchema.d.ts +65 -0
- package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockApiSchema.d.ts +44831 -0
- package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockSchema.d.ts +59725 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/buttonBlockSchema.d.ts +700 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/carouselBlockSchema.d.ts +74 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/dividerBlockSchema.d.ts +362 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/imageAnGifBlockSchema.d.ts +1157 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/index.d.ts +12 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/rawBlockSchema.d.ts +45 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/socialBlockSchema.d.ts +637 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/spacerBlockSchema.d.ts +392 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/textBlockSchema.d.ts +480 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/videoBlockSchema.d.ts +333 -0
- package/dist/types/src/landing-page-editor/schemas/template/commonSchema.d.ts +265 -0
- package/dist/types/src/landing-page-editor/schemas/template/settingsSchema.d.ts +4812 -0
- package/dist/types/src/landing-page-editor/schemas/template/structure/blockSchema.d.ts +7502 -0
- package/dist/types/src/landing-page-editor/schemas/template/structure/columnSchema.d.ts +7983 -0
- package/dist/types/src/landing-page-editor/schemas/template/structure/sectionSchema.d.ts +15074 -0
- package/dist/types/src/landing-page-editor/schemas/template/styleSchema.d.ts +185 -0
- package/dist/types/src/landing-page-editor/schemas/templateSchema.d.ts +58720 -0
- package/dist/types/src/landing-page-editor/schemas/templateSettings/templateSettingsSchema.d.ts +4959 -0
- package/dist/types/src/landing-page-editor/schemas/theme/themeSchema.d.ts +40 -0
- package/dist/types/src/landing-page-editor/schemas/user/userSchema.d.ts +13 -0
- package/dist/types/src/landing-page-editor/schemas/utils/transformBorder.d.ts +9 -0
- package/dist/types/src/main.d.ts +78 -24
- package/dist/types/types/Callbacks/ICallbackPayloads.d.ts +29 -0
- package/dist/types/types/Callbacks/IEmailCallbacks.d.ts +109 -0
- package/dist/types/types/ITopolOptions.d.ts +20 -38
- package/dist/types/types/ITopolPlugin.d.ts +7 -0
- package/dist/types/types/landing-page/ILandingPageEditorInstance.d.ts +19 -0
- package/dist/types/types/landing-page/ILandingPageOptions.d.ts +114 -0
- package/package.json +12 -6
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./buttonBlockSchema";
|
|
2
|
+
export * from "./carouselBlockSchema";
|
|
3
|
+
export * from "./dividerBlockSchema";
|
|
4
|
+
export * from "./imageAnGifBlockSchema";
|
|
5
|
+
export * from "./rawBlockSchema";
|
|
6
|
+
export * from "./socialBlockSchema";
|
|
7
|
+
export * from "./spacerBlockSchema";
|
|
8
|
+
export * from "./textBlockSchema";
|
|
9
|
+
export * from "./videoBlockSchema";
|
|
10
|
+
export { TopolTextStyleSchema, TopolListStyleSchema } from "../styleSchema";
|
|
11
|
+
export { TopolSectionStyleSchema, TopolContainerAttributesSchema } from "../structure/sectionSchema";
|
|
12
|
+
export { TopolColumnStyleSchema } from "../structure/columnSchema";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TopolRawBlockSchema: z.ZodObject<{
|
|
3
|
+
uid: z.ZodCatch<z.ZodString>;
|
|
4
|
+
customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
5
|
+
locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
|
|
6
|
+
tagName: z.ZodLiteral<"mj-raw">;
|
|
7
|
+
content: z.ZodCatch<z.ZodString>;
|
|
8
|
+
custom: z.ZodCatch<z.ZodOptional<z.ZodLiteral<true>>>;
|
|
9
|
+
key: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
attributes: z.ZodCatch<z.ZodObject<{
|
|
11
|
+
display: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
block: "block";
|
|
13
|
+
none: "none";
|
|
14
|
+
}>>>;
|
|
15
|
+
"css-class": z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
|
|
16
|
+
"": "";
|
|
17
|
+
hide_on_mobile: "hide_on_mobile";
|
|
18
|
+
hide_on_desktop: "hide_on_desktop";
|
|
19
|
+
}>, z.ZodArray<z.ZodString>]>>, z.ZodTransform<"" | string[] | null, string[] | z.core.$InferEnumOutput<{
|
|
20
|
+
"": "";
|
|
21
|
+
hide_on_mobile: "hide_on_mobile";
|
|
22
|
+
hide_on_desktop: "hide_on_desktop";
|
|
23
|
+
}> | null>>>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
mdAttributes: z.ZodDefault<z.ZodObject<{
|
|
26
|
+
display: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
block: "block";
|
|
28
|
+
none: "none";
|
|
29
|
+
}>>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
smAttributes: z.ZodDefault<z.ZodObject<{
|
|
32
|
+
display: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
block: "block";
|
|
34
|
+
none: "none";
|
|
35
|
+
}>>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
xsAttributes: z.ZodDefault<z.ZodObject<{
|
|
38
|
+
display: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
block: "block";
|
|
40
|
+
none: "none";
|
|
41
|
+
}>>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
hover: z.ZodCatch<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type TopolRawBlock = z.infer<typeof TopolRawBlockSchema>;
|