@topol.io/editor 1.0.0-alpha.9 → 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.
Files changed (72) hide show
  1. package/README.md +160 -97
  2. package/dist/index.js +171 -0
  3. package/dist/types/src/email-editor/index.d.ts +16 -102
  4. package/dist/types/src/landing-page-editor/constants.d.ts +1 -1
  5. package/dist/types/src/landing-page-editor/index.d.ts +10 -5
  6. package/dist/types/src/landing-page-editor/schemas/api/apiSchema.d.ts +5 -11
  7. package/dist/types/src/landing-page-editor/schemas/contentBlock/contentBlockScheme.d.ts +34 -18
  8. package/dist/types/src/landing-page-editor/schemas/language/languageSchema.d.ts +1 -1
  9. package/dist/types/src/landing-page-editor/schemas/mjmlStore/mjmlStoreSchema.d.ts +8 -6
  10. package/dist/types/src/landing-page-editor/schemas/notification/notificationSchema.d.ts +0 -1
  11. package/dist/types/src/landing-page-editor/schemas/openAI/openAISchema.d.ts +1 -2
  12. package/dist/types/src/landing-page-editor/schemas/pluginOptions/pluginOptionsSchema.d.ts +65 -21
  13. package/dist/types/src/landing-page-editor/schemas/premadeSection/premadeSectionSchema.d.ts +30 -0
  14. package/dist/types/src/landing-page-editor/schemas/template/blocks/buttonBlockSchema.d.ts +687 -5
  15. package/dist/types/src/landing-page-editor/schemas/template/blocks/carouselBlockSchema.d.ts +9 -2
  16. package/dist/types/src/landing-page-editor/schemas/template/blocks/dividerBlockSchema.d.ts +11 -3
  17. package/dist/types/src/landing-page-editor/schemas/template/blocks/formBlockSchema.d.ts +1069 -0
  18. package/dist/types/src/landing-page-editor/schemas/template/blocks/imageAnGifBlockSchema.d.ts +35 -19
  19. package/dist/types/src/landing-page-editor/schemas/template/blocks/rawBlockSchema.d.ts +9 -1
  20. package/dist/types/src/landing-page-editor/schemas/template/blocks/socialBlockSchema.d.ts +11 -3
  21. package/dist/types/src/landing-page-editor/schemas/template/blocks/spacerBlockSchema.d.ts +18 -10
  22. package/dist/types/src/landing-page-editor/schemas/template/blocks/textBlockSchema.d.ts +9 -1
  23. package/dist/types/src/landing-page-editor/schemas/template/blocks/videoBlockSchema.d.ts +9 -1
  24. package/dist/types/src/landing-page-editor/schemas/template/commonSchema.d.ts +28 -8
  25. package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarCTASchema.d.ts +335 -0
  26. package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarHamburgerSchema.d.ts +1109 -0
  27. package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarLogoSchema.d.ts +252 -0
  28. package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarMenuSchema.d.ts +1209 -0
  29. package/dist/types/src/landing-page-editor/schemas/template/settingsSchema.d.ts +4058 -546
  30. package/dist/types/src/landing-page-editor/schemas/template/structure/blockSchema.d.ts +5007 -2328
  31. package/dist/types/src/landing-page-editor/schemas/template/structure/columnSchema.d.ts +5501 -2412
  32. package/dist/types/src/landing-page-editor/schemas/template/structure/navbarSchema.d.ts +4394 -0
  33. package/dist/types/src/landing-page-editor/schemas/template/structure/rowSchema.d.ts +11094 -0
  34. package/dist/types/src/landing-page-editor/schemas/template/structure/sectionSchema.d.ts +8602 -3337
  35. package/dist/types/src/landing-page-editor/schemas/template/styleSchema.d.ts +55 -44
  36. package/dist/types/src/landing-page-editor/schemas/templateSchema.d.ts +34865 -48464
  37. package/dist/types/src/landing-page-editor/schemas/templateSettings/templateSettingsSchema.d.ts +4304 -794
  38. package/dist/types/src/landing-page-editor/schemas/theme/themeSchema.d.ts +6 -1
  39. package/dist/types/src/landing-page-editor/schemas/utils/cssValue.d.ts +21 -0
  40. package/dist/types/src/landing-page-editor/schemas/utils/transformBorder.d.ts +10 -5
  41. package/dist/types/src/main.d.ts +28 -108
  42. package/dist/types/types/API/API.d.ts +8 -9
  43. package/dist/types/types/APIBlocks/APIBlocks.d.ts +9 -0
  44. package/dist/types/types/Auth/IAuthorize.d.ts +6 -0
  45. package/dist/types/types/Auth/INonceAuthCallbacks.d.ts +10 -0
  46. package/dist/types/types/Callbacks/ICallbackPayloads.d.ts +27 -23
  47. package/dist/types/types/Callbacks/IEmailCallbacks.d.ts +73 -155
  48. package/dist/types/types/Cloud/ICloudOptions.d.ts +32 -0
  49. package/dist/types/types/ContentBlock/IContentBlockOptions.d.ts +1 -1
  50. package/dist/types/types/Countdown/ICountdownOptions.d.ts +48 -0
  51. package/dist/types/types/{ITopolOptions.d.ts → IEmailConfig.d.ts} +80 -28
  52. package/dist/types/types/IEmailEditorInstance.d.ts +64 -0
  53. package/dist/types/types/IEmailOptions.d.ts +7 -0
  54. package/dist/types/types/Language/Language.d.ts +1 -1
  55. package/dist/types/types/MergeTag/IMergeTag.d.ts +18 -0
  56. package/dist/types/types/Notification/INotification.d.ts +2 -1
  57. package/dist/types/types/Sections/ISections.d.ts +41 -0
  58. package/dist/types/types/Shortcuts/EditorShortcut.d.ts +4 -0
  59. package/dist/types/types/Theme/ITheme.d.ts +12 -2
  60. package/dist/types/types/landing-page/ILandingPageEditorInstance.d.ts +65 -5
  61. package/dist/types/types/landing-page/ILandingPageOptions.d.ts +15 -12
  62. package/logo.svg +1 -0
  63. package/package.json +11 -13
  64. package/dist/topol-plugin.es.js +0 -277
  65. package/dist/topol-plugin.umd.js +0 -1
  66. package/dist/types/src/landing-page-editor/schemas/helpdesk/helpdeskSchema.d.ts +0 -8
  67. package/dist/types/src/landing-page-editor/schemas/premadeBlock/premadeBlockSchema.d.ts +0 -59750
  68. package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockApiSchema.d.ts +0 -44831
  69. package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockSchema.d.ts +0 -59725
  70. package/dist/types/src/landing-page-editor/schemas/template/blocks/index.d.ts +0 -12
  71. package/dist/types/types/ITopolPlugin.d.ts +0 -44
  72. package/dist/types/types/SavedBlock/ISavedBlock.d.ts +0 -6
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const TopolCarouslBlockSchema: 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
6
  hover: z.ZodCatch<z.ZodOptional<z.ZodObject<{
6
7
  "border-radius": z.ZodCatch<z.ZodOptional<z.ZodString>>;
@@ -44,7 +45,14 @@ export declare const TopolCarouslBlockSchema: z.ZodObject<{
44
45
  "transform-origin": z.ZodCatch<z.ZodOptional<z.ZodString>>;
45
46
  "backface-visibility": z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"hidden">, z.ZodLiteral<"visible">]>>>;
46
47
  }, z.core.$strip>>>;
47
- locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
48
+ locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
49
+ true: "true";
50
+ false: "false";
51
+ }>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
52
+ true: "true";
53
+ false: "false";
54
+ }>>>]>>>;
55
+ aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
48
56
  tagName: z.ZodLiteral<"mj-carousel">;
49
57
  attributes: z.ZodDefault<z.ZodObject<{
50
58
  "icon-width": z.ZodCatch<z.ZodString>;
@@ -71,4 +79,3 @@ export declare const TopolCarouslBlockSchema: z.ZodObject<{
71
79
  }, z.core.$strip>>;
72
80
  }, z.core.$strip>>>;
73
81
  }, z.core.$strip>;
74
- export type TopolCarouselBlock = z.infer<typeof TopolCarouslBlockSchema>;
@@ -43,8 +43,16 @@ export declare const TopolDividerBlockAttributesSchema: z.ZodObject<{
43
43
  }, z.core.$strip>;
44
44
  export declare const TopolDividerBlockSchema: z.ZodObject<{
45
45
  uid: z.ZodCatch<z.ZodString>;
46
+ id: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>>;
46
47
  customKey: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
47
- locked: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
48
+ locked: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
49
+ true: "true";
50
+ false: "false";
51
+ }>, z.ZodTransform<boolean, z.core.$InferEnumOutput<{
52
+ true: "true";
53
+ false: "false";
54
+ }>>>]>>>;
55
+ aiGenerateContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
48
56
  tagName: z.ZodLiteral<"mj-divider">;
49
57
  attributes: z.ZodPipe<z.ZodDefault<z.ZodObject<{
50
58
  overflow: z.ZodCatch<z.ZodOptional<z.ZodString>>;
@@ -123,7 +131,7 @@ export declare const TopolDividerBlockSchema: z.ZodObject<{
123
131
  saturation: "saturation";
124
132
  luminosity: "luminosity";
125
133
  }> | undefined;
126
- cursor?: "default" | "pointer" | "auto" | "crosshair" | "move" | "not-allowed" | undefined;
134
+ cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
127
135
  "box-shadow"?: string | undefined;
128
136
  "text-shadow"?: string | undefined;
129
137
  filter?: string | undefined;
@@ -171,7 +179,7 @@ export declare const TopolDividerBlockSchema: z.ZodObject<{
171
179
  saturation: "saturation";
172
180
  luminosity: "luminosity";
173
181
  }> | undefined;
174
- cursor?: "default" | "pointer" | "auto" | "crosshair" | "move" | "not-allowed" | undefined;
182
+ cursor?: "move" | "default" | "pointer" | "auto" | "crosshair" | "not-allowed" | undefined;
175
183
  "box-shadow"?: string | undefined;
176
184
  "text-shadow"?: string | undefined;
177
185
  filter?: string | undefined;