@topol.io/editor 1.0.0-alpha.1 → 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 (74) hide show
  1. package/README.md +153 -101
  2. package/dist/topol-plugin.es.js +146 -191
  3. package/dist/topol-plugin.umd.cjs +1 -0
  4. package/dist/types/src/core/script-loader.d.ts +15 -0
  5. package/dist/types/src/email-editor/constants.d.ts +3 -3
  6. package/dist/types/src/email-editor/index.d.ts +16 -91
  7. package/dist/types/src/landing-page-editor/constants.d.ts +1 -1
  8. package/dist/types/src/landing-page-editor/index.d.ts +27 -10
  9. package/dist/types/src/landing-page-editor/schemas/api/apiSchema.d.ts +5 -10
  10. package/dist/types/src/landing-page-editor/schemas/contentBlock/contentBlockScheme.d.ts +34 -18
  11. package/dist/types/src/landing-page-editor/schemas/language/languageSchema.d.ts +1 -1
  12. package/dist/types/src/landing-page-editor/schemas/mjmlStore/mjmlStoreSchema.d.ts +8 -6
  13. package/dist/types/src/landing-page-editor/schemas/notification/notificationSchema.d.ts +0 -1
  14. package/dist/types/src/landing-page-editor/schemas/openAI/openAISchema.d.ts +1 -2
  15. package/dist/types/src/landing-page-editor/schemas/pluginOptions/pluginOptionsSchema.d.ts +153 -17
  16. package/dist/types/src/landing-page-editor/schemas/premadeSection/premadeSectionSchema.d.ts +30 -0
  17. package/dist/types/src/landing-page-editor/schemas/template/blocks/buttonBlockSchema.d.ts +687 -5
  18. package/dist/types/src/landing-page-editor/schemas/template/blocks/carouselBlockSchema.d.ts +9 -2
  19. package/dist/types/src/landing-page-editor/schemas/template/blocks/dividerBlockSchema.d.ts +11 -3
  20. package/dist/types/src/landing-page-editor/schemas/template/blocks/formBlockSchema.d.ts +1069 -0
  21. package/dist/types/src/landing-page-editor/schemas/template/blocks/imageAnGifBlockSchema.d.ts +35 -19
  22. package/dist/types/src/landing-page-editor/schemas/template/blocks/rawBlockSchema.d.ts +9 -1
  23. package/dist/types/src/landing-page-editor/schemas/template/blocks/socialBlockSchema.d.ts +11 -3
  24. package/dist/types/src/landing-page-editor/schemas/template/blocks/spacerBlockSchema.d.ts +18 -10
  25. package/dist/types/src/landing-page-editor/schemas/template/blocks/textBlockSchema.d.ts +9 -1
  26. package/dist/types/src/landing-page-editor/schemas/template/blocks/videoBlockSchema.d.ts +9 -1
  27. package/dist/types/src/landing-page-editor/schemas/template/commonSchema.d.ts +28 -8
  28. package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarCTASchema.d.ts +335 -0
  29. package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarHamburgerSchema.d.ts +1109 -0
  30. package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarLogoSchema.d.ts +252 -0
  31. package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarMenuSchema.d.ts +1209 -0
  32. package/dist/types/src/landing-page-editor/schemas/template/settingsSchema.d.ts +4058 -546
  33. package/dist/types/src/landing-page-editor/schemas/template/structure/blockSchema.d.ts +5007 -2328
  34. package/dist/types/src/landing-page-editor/schemas/template/structure/columnSchema.d.ts +5501 -2412
  35. package/dist/types/src/landing-page-editor/schemas/template/structure/navbarSchema.d.ts +4394 -0
  36. package/dist/types/src/landing-page-editor/schemas/template/structure/rowSchema.d.ts +11094 -0
  37. package/dist/types/src/landing-page-editor/schemas/template/structure/sectionSchema.d.ts +8602 -3337
  38. package/dist/types/src/landing-page-editor/schemas/template/styleSchema.d.ts +55 -44
  39. package/dist/types/src/landing-page-editor/schemas/templateSchema.d.ts +34865 -48464
  40. package/dist/types/src/landing-page-editor/schemas/templateSettings/templateSettingsSchema.d.ts +4305 -794
  41. package/dist/types/src/landing-page-editor/schemas/theme/themeSchema.d.ts +6 -1
  42. package/dist/types/src/landing-page-editor/schemas/utils/cssValue.d.ts +21 -0
  43. package/dist/types/src/landing-page-editor/schemas/utils/transformBorder.d.ts +10 -5
  44. package/dist/types/src/main.d.ts +28 -101
  45. package/dist/types/types/API/API.d.ts +10 -9
  46. package/dist/types/types/APIBlocks/APIBlocks.d.ts +11 -0
  47. package/dist/types/types/Auth/IAuthorize.d.ts +18 -0
  48. package/dist/types/types/Auth/INonceAuthCallbacks.d.ts +10 -0
  49. package/dist/types/types/Callbacks/ICallbackPayloads.d.ts +28 -18
  50. package/dist/types/types/Callbacks/IEmailCallbacks.d.ts +85 -104
  51. package/dist/types/types/Cloud/ICloudOptions.d.ts +32 -0
  52. package/dist/types/types/ContentBlock/IContentBlockOptions.d.ts +1 -1
  53. package/dist/types/types/Countdown/ICountdownOptions.d.ts +48 -0
  54. package/dist/types/types/IEmailConfig.d.ts +225 -0
  55. package/dist/types/types/IEmailEditorInstance.d.ts +68 -0
  56. package/dist/types/types/IEmailOptions.d.ts +7 -0
  57. package/dist/types/types/Language/Language.d.ts +6 -1
  58. package/dist/types/types/MergeTag/IMergeTag.d.ts +18 -0
  59. package/dist/types/types/Notification/INotification.d.ts +2 -1
  60. package/dist/types/types/Sections/ISections.d.ts +41 -0
  61. package/dist/types/types/Shortcuts/EditorShortcut.d.ts +4 -0
  62. package/dist/types/types/Theme/ITheme.d.ts +12 -2
  63. package/dist/types/types/landing-page/ILandingPageEditorInstance.d.ts +73 -9
  64. package/dist/types/types/landing-page/ILandingPageOptions.d.ts +110 -62
  65. package/package.json +10 -13
  66. package/dist/topol-plugin.umd.js +0 -1
  67. package/dist/types/src/landing-page-editor/schemas/helpdesk/helpdeskSchema.d.ts +0 -8
  68. package/dist/types/src/landing-page-editor/schemas/premadeBlock/premadeBlockSchema.d.ts +0 -59750
  69. package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockApiSchema.d.ts +0 -44831
  70. package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockSchema.d.ts +0 -59725
  71. package/dist/types/src/landing-page-editor/schemas/template/blocks/index.d.ts +0 -12
  72. package/dist/types/types/ITopolOptions.d.ts +0 -123
  73. package/dist/types/types/ITopolPlugin.d.ts +0 -37
  74. 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;