mjml-blocks 4.10.1 → 4.12.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 (95) hide show
  1. package/README.md +2 -5
  2. package/dist/models/MjmlAccordionElementNode.d.ts +1 -1
  3. package/dist/models/MjmlAccordionElementProps.d.ts +11 -11
  4. package/dist/models/MjmlAccordionNode.d.ts +1 -1
  5. package/dist/models/MjmlAccordionProps.d.ts +16 -16
  6. package/dist/models/MjmlAccordionTextNode.d.ts +1 -1
  7. package/dist/models/MjmlAccordionTextProps.d.ts +12 -12
  8. package/dist/models/MjmlAccordionTitleNode.d.ts +1 -1
  9. package/dist/models/MjmlAccordionTitleProps.d.ts +10 -10
  10. package/dist/models/MjmlAttributeField.d.ts +1 -1
  11. package/dist/models/MjmlAttributeKind.d.ts +9 -8
  12. package/dist/models/MjmlAttributeKind.js +8 -9
  13. package/dist/models/MjmlAttributeType.d.ts +6 -6
  14. package/dist/models/MjmlBlockTypeDefinition.d.ts +2 -2
  15. package/dist/models/MjmlButtonNode.d.ts +1 -1
  16. package/dist/models/MjmlButtonProps.d.ts +33 -33
  17. package/dist/models/MjmlCarouselImageNode.d.ts +1 -1
  18. package/dist/models/MjmlCarouselImageProps.d.ts +11 -11
  19. package/dist/models/MjmlCarouselNode.d.ts +1 -1
  20. package/dist/models/MjmlCarouselProps.d.ts +17 -17
  21. package/dist/models/MjmlColumnNode.d.ts +1 -1
  22. package/dist/models/MjmlColumnProps.d.ts +22 -22
  23. package/dist/models/MjmlContentKind.d.ts +6 -5
  24. package/dist/models/MjmlContentKind.js +5 -6
  25. package/dist/models/MjmlDirection.d.ts +6 -5
  26. package/dist/models/MjmlDirection.js +5 -6
  27. package/dist/models/MjmlDividerNode.d.ts +1 -1
  28. package/dist/models/MjmlDividerProps.d.ts +11 -11
  29. package/dist/models/MjmlGroupNode.d.ts +1 -1
  30. package/dist/models/MjmlGroupProps.d.ts +4 -4
  31. package/dist/models/MjmlHeroNode.d.ts +1 -1
  32. package/dist/models/MjmlHeroProps.d.ts +20 -20
  33. package/dist/models/MjmlImageNode.d.ts +1 -1
  34. package/dist/models/MjmlImageProps.d.ts +29 -29
  35. package/dist/models/MjmlNavbarLinkNode.d.ts +1 -1
  36. package/dist/models/MjmlNavbarLinkProps.d.ts +18 -18
  37. package/dist/models/MjmlNavbarNode.d.ts +1 -1
  38. package/dist/models/MjmlNavbarProps.d.ts +22 -22
  39. package/dist/models/MjmlNodeType.d.ts +25 -24
  40. package/dist/models/MjmlNodeType.js +24 -25
  41. package/dist/models/MjmlRawNode.d.ts +1 -1
  42. package/dist/models/MjmlRawProps.d.ts +1 -1
  43. package/dist/models/MjmlRenderSpecification.d.ts +1 -1
  44. package/dist/models/MjmlRichText.d.ts +1 -1
  45. package/dist/models/MjmlRootProps.d.ts +9 -9
  46. package/dist/models/MjmlSectionNode.d.ts +1 -1
  47. package/dist/models/MjmlSectionProps.d.ts +23 -23
  48. package/dist/models/MjmlSocialElementNode.d.ts +1 -1
  49. package/dist/models/MjmlSocialElementProps.d.ts +31 -31
  50. package/dist/models/MjmlSocialNode.d.ts +1 -1
  51. package/dist/models/MjmlSocialProps.d.ts +24 -24
  52. package/dist/models/MjmlSpacerNode.d.ts +1 -1
  53. package/dist/models/MjmlSpacerProps.d.ts +12 -12
  54. package/dist/models/MjmlTableNode.d.ts +1 -1
  55. package/dist/models/MjmlTableProps.d.ts +19 -19
  56. package/dist/models/MjmlTextNode.d.ts +1 -1
  57. package/dist/models/MjmlTextProps.d.ts +19 -19
  58. package/dist/models/MjmlWrapperNode.d.ts +1 -1
  59. package/dist/models/MjmlWrapperProps.d.ts +24 -24
  60. package/dist/services/MjmlContentKindSchemaMap.d.ts +1 -1
  61. package/dist/services/MjmlContentKindSchemaMap.js +3 -3
  62. package/dist/services/checkMjmlAlternativeText.d.ts +2 -2
  63. package/dist/services/components/createMjmlAccordionTextType.js +2 -2
  64. package/dist/services/components/createMjmlRichTextType.js +3 -3
  65. package/dist/services/components/createMjmlTextType.js +2 -2
  66. package/dist/services/components/mjAccordion.js +4 -4
  67. package/dist/services/components/mjAccordionElement.js +6 -6
  68. package/dist/services/components/mjAccordionTitle.js +7 -7
  69. package/dist/services/components/mjButton.js +7 -7
  70. package/dist/services/components/mjCarousel.js +4 -4
  71. package/dist/services/components/mjCarouselImage.js +3 -3
  72. package/dist/services/components/mjColumn.js +14 -14
  73. package/dist/services/components/mjDivider.js +3 -3
  74. package/dist/services/components/mjGroup.js +4 -4
  75. package/dist/services/components/mjHero.js +14 -14
  76. package/dist/services/components/mjImage.js +3 -3
  77. package/dist/services/components/mjNavbar.js +4 -4
  78. package/dist/services/components/mjNavbarLink.js +7 -7
  79. package/dist/services/components/mjRaw.js +7 -7
  80. package/dist/services/components/mjSection.js +6 -6
  81. package/dist/services/components/mjSocial.js +4 -4
  82. package/dist/services/components/mjSocialElement.js +7 -7
  83. package/dist/services/components/mjSpacer.js +3 -3
  84. package/dist/services/components/mjTable.js +7 -7
  85. package/dist/services/components/mjWrapper.js +6 -6
  86. package/dist/services/constants.js +5 -5
  87. package/dist/services/createTypeSchema.js +7 -7
  88. package/dist/services/mjmlNodeChildren.js +23 -23
  89. package/dist/services/mjmlNodeSchema.js +23 -23
  90. package/dist/services/parseMjmlAttributeType.js +7 -7
  91. package/dist/services/readMjmlContent.js +4 -4
  92. package/dist/services/readMjmlNode.js +2 -1
  93. package/dist/services/readMjmlNodes.js +2 -1
  94. package/dist/services/renderMjmlNode.js +8 -8
  95. package/package.json +7 -6
@@ -2,25 +2,25 @@ import { MjmlFlowNode } from "./MjmlFlowNode.js";
2
2
  import { MjmlLeafNode } from "./MjmlLeafNode.js";
3
3
  import { BlockNodeProps } from "vue-block-editor-headless";
4
4
  export interface MjmlHeroProps extends BlockNodeProps {
5
- "background-color"?: string;
6
- "background-height"?: string;
7
- "background-position"?: string;
8
- "background-url"?: string;
9
- "background-width"?: string;
10
- "border-radius"?: string;
5
+ "background-color"?: string | undefined;
6
+ "background-height"?: string | undefined;
7
+ "background-position"?: string | undefined;
8
+ "background-url"?: string | undefined;
9
+ "background-width"?: string | undefined;
10
+ "border-radius"?: string | undefined;
11
11
  children: (MjmlFlowNode | MjmlLeafNode)[];
12
- height?: string;
13
- "inner-background-color"?: string;
14
- "inner-padding"?: string;
15
- "inner-padding-bottom"?: string;
16
- "inner-padding-left"?: string;
17
- "inner-padding-right"?: string;
18
- "inner-padding-top"?: string;
19
- mode?: string;
20
- padding?: string;
21
- "padding-bottom"?: string;
22
- "padding-left"?: string;
23
- "padding-right"?: string;
24
- "padding-top"?: string;
25
- "vertical-align"?: string;
12
+ height?: string | undefined;
13
+ "inner-background-color"?: string | undefined;
14
+ "inner-padding"?: string | undefined;
15
+ "inner-padding-bottom"?: string | undefined;
16
+ "inner-padding-left"?: string | undefined;
17
+ "inner-padding-right"?: string | undefined;
18
+ "inner-padding-top"?: string | undefined;
19
+ mode?: string | undefined;
20
+ padding?: string | undefined;
21
+ "padding-bottom"?: string | undefined;
22
+ "padding-left"?: string | undefined;
23
+ "padding-right"?: string | undefined;
24
+ "padding-top"?: string | undefined;
25
+ "vertical-align"?: string | undefined;
26
26
  }
@@ -1,4 +1,4 @@
1
1
  import { MjmlImageProps } from "./MjmlImageProps.js";
2
2
  import { MjmlNodeType } from "./MjmlNodeType.js";
3
3
  import { BlockNode } from "vue-block-editor-headless";
4
- export type MjmlImageNode = BlockNode<MjmlNodeType.Image, MjmlImageProps>;
4
+ export type MjmlImageNode = BlockNode<typeof MjmlNodeType.Image, MjmlImageProps>;
@@ -1,32 +1,32 @@
1
1
  import { BlockNodeProps } from "vue-block-editor-headless";
2
2
  export interface MjmlImageProps extends BlockNodeProps {
3
- align?: string;
4
- alt?: string;
5
- border?: string;
6
- "border-bottom"?: string;
7
- "border-left"?: string;
8
- "border-radius"?: string;
9
- "border-right"?: string;
10
- "border-top"?: string;
11
- "container-background-color"?: string;
12
- decorative?: boolean;
13
- "fluid-on-mobile"?: string;
14
- "font-size"?: string;
15
- height?: string;
16
- href?: string;
17
- "max-height"?: string;
18
- name?: string;
19
- padding?: string;
20
- "padding-bottom"?: string;
21
- "padding-left"?: string;
22
- "padding-right"?: string;
23
- "padding-top"?: string;
24
- rel?: string;
25
- sizes?: string;
26
- src?: string;
27
- srcset?: string;
28
- target?: string;
29
- title?: string;
30
- usemap?: string;
31
- width?: string;
3
+ align?: string | undefined;
4
+ alt?: string | undefined;
5
+ border?: string | undefined;
6
+ "border-bottom"?: string | undefined;
7
+ "border-left"?: string | undefined;
8
+ "border-radius"?: string | undefined;
9
+ "border-right"?: string | undefined;
10
+ "border-top"?: string | undefined;
11
+ "container-background-color"?: string | undefined;
12
+ decorative?: boolean | undefined;
13
+ "fluid-on-mobile"?: string | undefined;
14
+ "font-size"?: string | undefined;
15
+ height?: string | undefined;
16
+ href?: string | undefined;
17
+ "max-height"?: string | undefined;
18
+ name?: string | undefined;
19
+ padding?: string | undefined;
20
+ "padding-bottom"?: string | undefined;
21
+ "padding-left"?: string | undefined;
22
+ "padding-right"?: string | undefined;
23
+ "padding-top"?: string | undefined;
24
+ rel?: string | undefined;
25
+ sizes?: string | undefined;
26
+ src?: string | undefined;
27
+ srcset?: string | undefined;
28
+ target?: string | undefined;
29
+ title?: string | undefined;
30
+ usemap?: string | undefined;
31
+ width?: string | undefined;
32
32
  }
@@ -1,4 +1,4 @@
1
1
  import { MjmlNavbarLinkProps } from "./MjmlNavbarLinkProps.js";
2
2
  import { MjmlNodeType } from "./MjmlNodeType.js";
3
3
  import { BlockNode } from "vue-block-editor-headless";
4
- export type MjmlNavbarLinkNode = BlockNode<MjmlNodeType.NavbarLink, MjmlNavbarLinkProps>;
4
+ export type MjmlNavbarLinkNode = BlockNode<typeof MjmlNodeType.NavbarLink, MjmlNavbarLinkProps>;
@@ -1,22 +1,22 @@
1
1
  import { BlockNodeProps } from "vue-block-editor-headless";
2
2
  export interface MjmlNavbarLinkProps extends BlockNodeProps {
3
- color?: string;
3
+ color?: string | undefined;
4
4
  content: string;
5
- "font-family"?: string;
6
- "font-size"?: string;
7
- "font-style"?: string;
8
- "font-weight"?: string;
9
- href?: string;
10
- "letter-spacing"?: string;
11
- "line-height"?: string;
12
- name?: string;
13
- padding?: string;
14
- "padding-bottom"?: string;
15
- "padding-left"?: string;
16
- "padding-right"?: string;
17
- "padding-top"?: string;
18
- rel?: string;
19
- target?: string;
20
- "text-decoration"?: string;
21
- "text-transform"?: string;
5
+ "font-family"?: string | undefined;
6
+ "font-size"?: string | undefined;
7
+ "font-style"?: string | undefined;
8
+ "font-weight"?: string | undefined;
9
+ href?: string | undefined;
10
+ "letter-spacing"?: string | undefined;
11
+ "line-height"?: string | undefined;
12
+ name?: string | undefined;
13
+ padding?: string | undefined;
14
+ "padding-bottom"?: string | undefined;
15
+ "padding-left"?: string | undefined;
16
+ "padding-right"?: string | undefined;
17
+ "padding-top"?: string | undefined;
18
+ rel?: string | undefined;
19
+ target?: string | undefined;
20
+ "text-decoration"?: string | undefined;
21
+ "text-transform"?: string | undefined;
22
22
  }
@@ -1,4 +1,4 @@
1
1
  import { MjmlNavbarProps } from "./MjmlNavbarProps.js";
2
2
  import { MjmlNodeType } from "./MjmlNodeType.js";
3
3
  import { BlockNode } from "vue-block-editor-headless";
4
- export type MjmlNavbarNode = BlockNode<MjmlNodeType.Navbar, MjmlNavbarProps>;
4
+ export type MjmlNavbarNode = BlockNode<typeof MjmlNodeType.Navbar, MjmlNavbarProps>;
@@ -2,27 +2,27 @@ import { MjmlNavbarLinkNode } from "./MjmlNavbarLinkNode.js";
2
2
  import { MjmlRawNode } from "./MjmlRawNode.js";
3
3
  import { BlockNodeProps } from "vue-block-editor-headless";
4
4
  export interface MjmlNavbarProps extends BlockNodeProps {
5
- align?: string;
6
- "base-url"?: string;
5
+ align?: string | undefined;
6
+ "base-url"?: string | undefined;
7
7
  children: (MjmlNavbarLinkNode | MjmlRawNode)[];
8
- hamburger?: string;
9
- "ico-align"?: string;
10
- "ico-close"?: string;
11
- "ico-color"?: string;
12
- "ico-font-family"?: string;
13
- "ico-font-size"?: string;
14
- "ico-line-height"?: string;
15
- "ico-open"?: string;
16
- "ico-padding"?: string;
17
- "ico-padding-bottom"?: string;
18
- "ico-padding-left"?: string;
19
- "ico-padding-right"?: string;
20
- "ico-padding-top"?: string;
21
- "ico-text-decoration"?: string;
22
- "ico-text-transform"?: string;
23
- padding?: string;
24
- "padding-bottom"?: string;
25
- "padding-left"?: string;
26
- "padding-right"?: string;
27
- "padding-top"?: string;
8
+ hamburger?: string | undefined;
9
+ "ico-align"?: string | undefined;
10
+ "ico-close"?: string | undefined;
11
+ "ico-color"?: string | undefined;
12
+ "ico-font-family"?: string | undefined;
13
+ "ico-font-size"?: string | undefined;
14
+ "ico-line-height"?: string | undefined;
15
+ "ico-open"?: string | undefined;
16
+ "ico-padding"?: string | undefined;
17
+ "ico-padding-bottom"?: string | undefined;
18
+ "ico-padding-left"?: string | undefined;
19
+ "ico-padding-right"?: string | undefined;
20
+ "ico-padding-top"?: string | undefined;
21
+ "ico-text-decoration"?: string | undefined;
22
+ "ico-text-transform"?: string | undefined;
23
+ padding?: string | undefined;
24
+ "padding-bottom"?: string | undefined;
25
+ "padding-left"?: string | undefined;
26
+ "padding-right"?: string | undefined;
27
+ "padding-top"?: string | undefined;
28
28
  }
@@ -1,24 +1,25 @@
1
- export declare enum MjmlNodeType {
2
- Accordion = "mj-accordion",
3
- AccordionElement = "mj-accordion-element",
4
- AccordionText = "mj-accordion-text",
5
- AccordionTitle = "mj-accordion-title",
6
- Button = "mj-button",
7
- Carousel = "mj-carousel",
8
- CarouselImage = "mj-carousel-image",
9
- Column = "mj-column",
10
- Divider = "mj-divider",
11
- Group = "mj-group",
12
- Hero = "mj-hero",
13
- Image = "mj-image",
14
- Navbar = "mj-navbar",
15
- NavbarLink = "mj-navbar-link",
16
- Raw = "mj-raw",
17
- Section = "mj-section",
18
- Social = "mj-social",
19
- SocialElement = "mj-social-element",
20
- Spacer = "mj-spacer",
21
- Table = "mj-table",
22
- Text = "mj-text",
23
- Wrapper = "mj-wrapper"
24
- }
1
+ export declare const MjmlNodeType: {
2
+ readonly Accordion: "mj-accordion";
3
+ readonly AccordionElement: "mj-accordion-element";
4
+ readonly AccordionText: "mj-accordion-text";
5
+ readonly AccordionTitle: "mj-accordion-title";
6
+ readonly Button: "mj-button";
7
+ readonly Carousel: "mj-carousel";
8
+ readonly CarouselImage: "mj-carousel-image";
9
+ readonly Column: "mj-column";
10
+ readonly Divider: "mj-divider";
11
+ readonly Group: "mj-group";
12
+ readonly Hero: "mj-hero";
13
+ readonly Image: "mj-image";
14
+ readonly Navbar: "mj-navbar";
15
+ readonly NavbarLink: "mj-navbar-link";
16
+ readonly Raw: "mj-raw";
17
+ readonly Section: "mj-section";
18
+ readonly Social: "mj-social";
19
+ readonly SocialElement: "mj-social-element";
20
+ readonly Spacer: "mj-spacer";
21
+ readonly Table: "mj-table";
22
+ readonly Text: "mj-text";
23
+ readonly Wrapper: "mj-wrapper";
24
+ };
25
+ export type MjmlNodeType = (typeof MjmlNodeType)[keyof typeof MjmlNodeType];
@@ -1,27 +1,26 @@
1
1
  // src/models/MjmlNodeType.ts
2
- let MjmlNodeType = /* @__PURE__ */ function(MjmlNodeType) {
3
- MjmlNodeType["Accordion"] = "mj-accordion";
4
- MjmlNodeType["AccordionElement"] = "mj-accordion-element";
5
- MjmlNodeType["AccordionText"] = "mj-accordion-text";
6
- MjmlNodeType["AccordionTitle"] = "mj-accordion-title";
7
- MjmlNodeType["Button"] = "mj-button";
8
- MjmlNodeType["Carousel"] = "mj-carousel";
9
- MjmlNodeType["CarouselImage"] = "mj-carousel-image";
10
- MjmlNodeType["Column"] = "mj-column";
11
- MjmlNodeType["Divider"] = "mj-divider";
12
- MjmlNodeType["Group"] = "mj-group";
13
- MjmlNodeType["Hero"] = "mj-hero";
14
- MjmlNodeType["Image"] = "mj-image";
15
- MjmlNodeType["Navbar"] = "mj-navbar";
16
- MjmlNodeType["NavbarLink"] = "mj-navbar-link";
17
- MjmlNodeType["Raw"] = "mj-raw";
18
- MjmlNodeType["Section"] = "mj-section";
19
- MjmlNodeType["Social"] = "mj-social";
20
- MjmlNodeType["SocialElement"] = "mj-social-element";
21
- MjmlNodeType["Spacer"] = "mj-spacer";
22
- MjmlNodeType["Table"] = "mj-table";
23
- MjmlNodeType["Text"] = "mj-text";
24
- MjmlNodeType["Wrapper"] = "mj-wrapper";
25
- return MjmlNodeType;
26
- }({});
2
+ const MjmlNodeType = {
3
+ Accordion: "mj-accordion",
4
+ AccordionElement: "mj-accordion-element",
5
+ AccordionText: "mj-accordion-text",
6
+ AccordionTitle: "mj-accordion-title",
7
+ Button: "mj-button",
8
+ Carousel: "mj-carousel",
9
+ CarouselImage: "mj-carousel-image",
10
+ Column: "mj-column",
11
+ Divider: "mj-divider",
12
+ Group: "mj-group",
13
+ Hero: "mj-hero",
14
+ Image: "mj-image",
15
+ Navbar: "mj-navbar",
16
+ NavbarLink: "mj-navbar-link",
17
+ Raw: "mj-raw",
18
+ Section: "mj-section",
19
+ Social: "mj-social",
20
+ SocialElement: "mj-social-element",
21
+ Spacer: "mj-spacer",
22
+ Table: "mj-table",
23
+ Text: "mj-text",
24
+ Wrapper: "mj-wrapper"
25
+ };
27
26
  export { MjmlNodeType };
@@ -1,4 +1,4 @@
1
1
  import { MjmlNodeType } from "./MjmlNodeType.js";
2
2
  import { MjmlRawProps } from "./MjmlRawProps.js";
3
3
  import { BlockNode } from "vue-block-editor-headless";
4
- export type MjmlRawNode = BlockNode<MjmlNodeType.Raw, MjmlRawProps>;
4
+ export type MjmlRawNode = BlockNode<typeof MjmlNodeType.Raw, MjmlRawProps>;
@@ -1,5 +1,5 @@
1
1
  import { BlockNodeProps } from "vue-block-editor-headless";
2
2
  export interface MjmlRawProps extends BlockNodeProps {
3
3
  content: string;
4
- position?: string;
4
+ position?: string | undefined;
5
5
  }
@@ -2,7 +2,7 @@ import { MjmlContentKind } from "./MjmlContentKind.js";
2
2
  import { MjmlNodeType } from "./MjmlNodeType.js";
3
3
  export interface MjmlRenderSpecification {
4
4
  allowedAttributes: Record<string, string>;
5
- contentKind?: MjmlContentKind;
5
+ contentKind?: MjmlContentKind | undefined;
6
6
  hasAlternativeText: boolean;
7
7
  hasChildren: boolean;
8
8
  tagName: MjmlNodeType;
@@ -1,6 +1,6 @@
1
1
  import { MjmlRichTextAttributeValue } from "./MjmlRichTextAttributeValue.js";
2
2
  export interface MjmlRichText {
3
- attrs?: Record<string, MjmlRichTextAttributeValue>;
3
+ attrs?: Record<string, MjmlRichTextAttributeValue> | undefined;
4
4
  content?: MjmlRichText[];
5
5
  marks?: {
6
6
  attrs?: Record<string, MjmlRichTextAttributeValue>;
@@ -1,20 +1,20 @@
1
1
  import { MjmlDirection } from "./MjmlDirection.js";
2
2
  export interface MjmlRootProps {
3
- attributes?: Record<string, Record<string, string>>;
4
- body?: Record<string, string>;
5
- breakpoint?: {
3
+ attributes?: Record<string, Record<string, string>> | undefined;
4
+ body?: Record<string, string> | undefined;
5
+ breakpoint?: undefined | {
6
6
  width: string;
7
7
  };
8
- direction?: MjmlDirection;
9
- fonts?: {
8
+ direction?: MjmlDirection | undefined;
9
+ fonts?: undefined | {
10
10
  href: string;
11
11
  name: string;
12
12
  }[];
13
- lang?: string;
14
- preview?: string;
15
- styles?: {
13
+ lang?: string | undefined;
14
+ preview?: string | undefined;
15
+ styles?: undefined | {
16
16
  css: string;
17
17
  inline: boolean;
18
18
  }[];
19
- title?: string;
19
+ title?: string | undefined;
20
20
  }
@@ -1,4 +1,4 @@
1
1
  import { MjmlNodeType } from "./MjmlNodeType.js";
2
2
  import { MjmlSectionProps } from "./MjmlSectionProps.js";
3
3
  import { BlockNode } from "vue-block-editor-headless";
4
- export type MjmlSectionNode = BlockNode<MjmlNodeType.Section, MjmlSectionProps>;
4
+ export type MjmlSectionNode = BlockNode<typeof MjmlNodeType.Section, MjmlSectionProps>;
@@ -3,28 +3,28 @@ import { MjmlGroupNode } from "./MjmlGroupNode.js";
3
3
  import { MjmlRawNode } from "./MjmlRawNode.js";
4
4
  import { BlockNodeProps } from "vue-block-editor-headless";
5
5
  export interface MjmlSectionProps extends BlockNodeProps {
6
- "background-color"?: string;
7
- "background-position"?: string;
8
- "background-position-x"?: string;
9
- "background-position-y"?: string;
10
- "background-repeat"?: string;
11
- "background-size"?: string;
12
- "background-url"?: string;
13
- border?: string;
14
- "border-bottom"?: string;
15
- "border-left"?: string;
16
- "border-radius"?: string;
17
- "border-right"?: string;
18
- "border-top"?: string;
6
+ "background-color"?: string | undefined;
7
+ "background-position"?: string | undefined;
8
+ "background-position-x"?: string | undefined;
9
+ "background-position-y"?: string | undefined;
10
+ "background-repeat"?: string | undefined;
11
+ "background-size"?: string | undefined;
12
+ "background-url"?: string | undefined;
13
+ border?: string | undefined;
14
+ "border-bottom"?: string | undefined;
15
+ "border-left"?: string | undefined;
16
+ "border-radius"?: string | undefined;
17
+ "border-right"?: string | undefined;
18
+ "border-top"?: string | undefined;
19
19
  children: (MjmlColumnNode | MjmlGroupNode | MjmlRawNode)[];
20
- direction?: string;
21
- "full-width"?: string;
22
- gutter?: string;
23
- padding?: string;
24
- "padding-bottom"?: string;
25
- "padding-left"?: string;
26
- "padding-right"?: string;
27
- "padding-top"?: string;
28
- "text-align"?: string;
29
- "text-padding"?: string;
20
+ direction?: string | undefined;
21
+ "full-width"?: string | undefined;
22
+ gutter?: string | undefined;
23
+ padding?: string | undefined;
24
+ "padding-bottom"?: string | undefined;
25
+ "padding-left"?: string | undefined;
26
+ "padding-right"?: string | undefined;
27
+ "padding-top"?: string | undefined;
28
+ "text-align"?: string | undefined;
29
+ "text-padding"?: string | undefined;
30
30
  }
@@ -1,4 +1,4 @@
1
1
  import { MjmlNodeType } from "./MjmlNodeType.js";
2
2
  import { MjmlSocialElementProps } from "./MjmlSocialElementProps.js";
3
3
  import { BlockNode } from "vue-block-editor-headless";
4
- export type MjmlSocialElementNode = BlockNode<MjmlNodeType.SocialElement, MjmlSocialElementProps>;
4
+ export type MjmlSocialElementNode = BlockNode<typeof MjmlNodeType.SocialElement, MjmlSocialElementProps>;
@@ -1,35 +1,35 @@
1
1
  import { BlockNodeProps } from "vue-block-editor-headless";
2
2
  export interface MjmlSocialElementProps extends BlockNodeProps {
3
- align?: string;
4
- alt?: string;
5
- "background-color"?: string;
6
- border?: string;
7
- "border-radius"?: string;
8
- color?: string;
3
+ align?: string | undefined;
4
+ alt?: string | undefined;
5
+ "background-color"?: string | undefined;
6
+ border?: string | undefined;
7
+ "border-radius"?: string | undefined;
8
+ color?: string | undefined;
9
9
  content: string;
10
- "font-family"?: string;
11
- "font-size"?: string;
12
- "font-style"?: string;
13
- "font-weight"?: string;
14
- href?: string;
15
- "icon-height"?: string;
16
- "icon-padding"?: string;
17
- "icon-position"?: string;
18
- "icon-size"?: string;
19
- "line-height"?: string;
20
- name?: string;
21
- padding?: string;
22
- "padding-bottom"?: string;
23
- "padding-left"?: string;
24
- "padding-right"?: string;
25
- "padding-top"?: string;
26
- rel?: string;
27
- sizes?: string;
28
- src?: string;
29
- srcset?: string;
30
- target?: string;
31
- "text-decoration"?: string;
32
- "text-padding"?: string;
33
- title?: string;
34
- "vertical-align"?: string;
10
+ "font-family"?: string | undefined;
11
+ "font-size"?: string | undefined;
12
+ "font-style"?: string | undefined;
13
+ "font-weight"?: string | undefined;
14
+ href?: string | undefined;
15
+ "icon-height"?: string | undefined;
16
+ "icon-padding"?: string | undefined;
17
+ "icon-position"?: string | undefined;
18
+ "icon-size"?: string | undefined;
19
+ "line-height"?: string | undefined;
20
+ name?: string | undefined;
21
+ padding?: string | undefined;
22
+ "padding-bottom"?: string | undefined;
23
+ "padding-left"?: string | undefined;
24
+ "padding-right"?: string | undefined;
25
+ "padding-top"?: string | undefined;
26
+ rel?: string | undefined;
27
+ sizes?: string | undefined;
28
+ src?: string | undefined;
29
+ srcset?: string | undefined;
30
+ target?: string | undefined;
31
+ "text-decoration"?: string | undefined;
32
+ "text-padding"?: string | undefined;
33
+ title?: string | undefined;
34
+ "vertical-align"?: string | undefined;
35
35
  }
@@ -1,4 +1,4 @@
1
1
  import { MjmlNodeType } from "./MjmlNodeType.js";
2
2
  import { MjmlSocialProps } from "./MjmlSocialProps.js";
3
3
  import { BlockNode } from "vue-block-editor-headless";
4
- export type MjmlSocialNode = BlockNode<MjmlNodeType.Social, MjmlSocialProps>;
4
+ export type MjmlSocialNode = BlockNode<typeof MjmlNodeType.Social, MjmlSocialProps>;
@@ -2,29 +2,29 @@ import { MjmlRawNode } from "./MjmlRawNode.js";
2
2
  import { MjmlSocialElementNode } from "./MjmlSocialElementNode.js";
3
3
  import { BlockNodeProps } from "vue-block-editor-headless";
4
4
  export interface MjmlSocialProps extends BlockNodeProps {
5
- align?: string;
6
- border?: string;
7
- "border-radius"?: string;
5
+ align?: string | undefined;
6
+ border?: string | undefined;
7
+ "border-radius"?: string | undefined;
8
8
  children: (MjmlRawNode | MjmlSocialElementNode)[];
9
- color?: string;
10
- "container-background-color"?: string;
11
- "font-family"?: string;
12
- "font-size"?: string;
13
- "font-style"?: string;
14
- "font-weight"?: string;
15
- "icon-height"?: string;
16
- "icon-padding"?: string;
17
- "icon-size"?: string;
18
- "inner-padding"?: string;
19
- "line-height"?: string;
20
- mode?: string;
21
- padding?: string;
22
- "padding-bottom"?: string;
23
- "padding-left"?: string;
24
- "padding-right"?: string;
25
- "padding-top"?: string;
26
- "table-layout"?: string;
27
- "text-decoration"?: string;
28
- "text-padding"?: string;
29
- "vertical-align"?: string;
9
+ color?: string | undefined;
10
+ "container-background-color"?: string | undefined;
11
+ "font-family"?: string | undefined;
12
+ "font-size"?: string | undefined;
13
+ "font-style"?: string | undefined;
14
+ "font-weight"?: string | undefined;
15
+ "icon-height"?: string | undefined;
16
+ "icon-padding"?: string | undefined;
17
+ "icon-size"?: string | undefined;
18
+ "inner-padding"?: string | undefined;
19
+ "line-height"?: string | undefined;
20
+ mode?: string | undefined;
21
+ padding?: string | undefined;
22
+ "padding-bottom"?: string | undefined;
23
+ "padding-left"?: string | undefined;
24
+ "padding-right"?: string | undefined;
25
+ "padding-top"?: string | undefined;
26
+ "table-layout"?: string | undefined;
27
+ "text-decoration"?: string | undefined;
28
+ "text-padding"?: string | undefined;
29
+ "vertical-align"?: string | undefined;
30
30
  }
@@ -1,4 +1,4 @@
1
1
  import { MjmlNodeType } from "./MjmlNodeType.js";
2
2
  import { MjmlSpacerProps } from "./MjmlSpacerProps.js";
3
3
  import { BlockNode } from "vue-block-editor-headless";
4
- export type MjmlSpacerNode = BlockNode<MjmlNodeType.Spacer, MjmlSpacerProps>;
4
+ export type MjmlSpacerNode = BlockNode<typeof MjmlNodeType.Spacer, MjmlSpacerProps>;
@@ -1,15 +1,15 @@
1
1
  import { BlockNodeProps } from "vue-block-editor-headless";
2
2
  export interface MjmlSpacerProps extends BlockNodeProps {
3
- border?: string;
4
- "border-bottom"?: string;
5
- "border-left"?: string;
6
- "border-right"?: string;
7
- "border-top"?: string;
8
- "container-background-color"?: string;
9
- height?: string;
10
- padding?: string;
11
- "padding-bottom"?: string;
12
- "padding-left"?: string;
13
- "padding-right"?: string;
14
- "padding-top"?: string;
3
+ border?: string | undefined;
4
+ "border-bottom"?: string | undefined;
5
+ "border-left"?: string | undefined;
6
+ "border-right"?: string | undefined;
7
+ "border-top"?: string | undefined;
8
+ "container-background-color"?: string | undefined;
9
+ height?: string | undefined;
10
+ padding?: string | undefined;
11
+ "padding-bottom"?: string | undefined;
12
+ "padding-left"?: string | undefined;
13
+ "padding-right"?: string | undefined;
14
+ "padding-top"?: string | undefined;
15
15
  }
@@ -1,4 +1,4 @@
1
1
  import { MjmlNodeType } from "./MjmlNodeType.js";
2
2
  import { MjmlTableProps } from "./MjmlTableProps.js";
3
3
  import { BlockNode } from "vue-block-editor-headless";
4
- export type MjmlTableNode = BlockNode<MjmlNodeType.Table, MjmlTableProps>;
4
+ export type MjmlTableNode = BlockNode<typeof MjmlNodeType.Table, MjmlTableProps>;