@topol.io/editor 1.0.0-alpha.10 → 1.0.0-alpha.11

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 (67) hide show
  1. package/README.md +17 -14
  2. package/dist/topol-plugin.es.js +109 -95
  3. package/dist/topol-plugin.umd.cjs +1 -1
  4. package/dist/types/src/email-editor/index.d.ts +3 -3
  5. package/dist/types/src/landing-page-editor/constants.d.ts +1 -1
  6. package/dist/types/src/landing-page-editor/index.d.ts +10 -5
  7. package/dist/types/src/landing-page-editor/schemas/api/apiSchema.d.ts +5 -10
  8. package/dist/types/src/landing-page-editor/schemas/contentBlock/contentBlockScheme.d.ts +33 -17
  9. package/dist/types/src/landing-page-editor/schemas/language/languageSchema.d.ts +1 -1
  10. package/dist/types/src/landing-page-editor/schemas/mjmlStore/mjmlStoreSchema.d.ts +8 -6
  11. package/dist/types/src/landing-page-editor/schemas/notification/notificationSchema.d.ts +0 -1
  12. package/dist/types/src/landing-page-editor/schemas/pluginOptions/pluginOptionsSchema.d.ts +66 -19
  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 +685 -3
  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 +9 -1
  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 +29 -13
  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 +9 -1
  21. package/dist/types/src/landing-page-editor/schemas/template/blocks/spacerBlockSchema.d.ts +16 -8
  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 +4675 -1996
  31. package/dist/types/src/landing-page-editor/schemas/template/structure/columnSchema.d.ts +5445 -2356
  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 +8365 -3100
  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 +34901 -48500
  37. package/dist/types/src/landing-page-editor/schemas/templateSettings/templateSettingsSchema.d.ts +4305 -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 +23 -42
  42. package/dist/types/types/API/API.d.ts +2 -2
  43. package/dist/types/types/APIBlocks/APIBlocks.d.ts +11 -0
  44. package/dist/types/types/Auth/IAuthorize.d.ts +18 -0
  45. package/dist/types/types/Auth/INonceAuthCallbacks.d.ts +2 -1
  46. package/dist/types/types/Callbacks/ICallbackPayloads.d.ts +11 -4
  47. package/dist/types/types/Callbacks/IEmailCallbacks.d.ts +30 -10
  48. package/dist/types/types/ContentBlock/IContentBlockOptions.d.ts +1 -1
  49. package/dist/types/types/Countdown/ICountdownOptions.d.ts +2 -2
  50. package/dist/types/types/IEmailConfig.d.ts +44 -18
  51. package/dist/types/types/IEmailEditorInstance.d.ts +16 -2
  52. package/dist/types/types/{ITopolOptions.d.ts → IEmailOptions.d.ts} +1 -1
  53. package/dist/types/types/MergeTag/IMergeTag.d.ts +18 -0
  54. package/dist/types/types/Notification/INotification.d.ts +2 -1
  55. package/dist/types/types/Sections/ISections.d.ts +12 -1
  56. package/dist/types/types/Shortcuts/EditorShortcut.d.ts +4 -0
  57. package/dist/types/types/Theme/ITheme.d.ts +12 -2
  58. package/dist/types/types/landing-page/ILandingPageEditorInstance.d.ts +65 -5
  59. package/dist/types/types/landing-page/ILandingPageOptions.d.ts +20 -10
  60. package/package.json +1 -1
  61. package/dist/types/src/landing-page-editor/schemas/helpdesk/helpdeskSchema.d.ts +0 -8
  62. package/dist/types/src/landing-page-editor/schemas/premadeBlock/premadeBlockSchema.d.ts +0 -59750
  63. package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockApiSchema.d.ts +0 -44831
  64. package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockSchema.d.ts +0 -59725
  65. package/dist/types/src/landing-page-editor/schemas/template/blocks/index.d.ts +0 -12
  66. package/dist/types/types/ITopolPlugin.d.ts +0 -2
  67. package/dist/types/types/SavedBlock/ISavedBlock.d.ts +0 -2
@@ -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>>;