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.
- package/README.md +2 -5
- package/dist/models/MjmlAccordionElementNode.d.ts +1 -1
- package/dist/models/MjmlAccordionElementProps.d.ts +11 -11
- package/dist/models/MjmlAccordionNode.d.ts +1 -1
- package/dist/models/MjmlAccordionProps.d.ts +16 -16
- package/dist/models/MjmlAccordionTextNode.d.ts +1 -1
- package/dist/models/MjmlAccordionTextProps.d.ts +12 -12
- package/dist/models/MjmlAccordionTitleNode.d.ts +1 -1
- package/dist/models/MjmlAccordionTitleProps.d.ts +10 -10
- package/dist/models/MjmlAttributeField.d.ts +1 -1
- package/dist/models/MjmlAttributeKind.d.ts +9 -8
- package/dist/models/MjmlAttributeKind.js +8 -9
- package/dist/models/MjmlAttributeType.d.ts +6 -6
- package/dist/models/MjmlBlockTypeDefinition.d.ts +2 -2
- package/dist/models/MjmlButtonNode.d.ts +1 -1
- package/dist/models/MjmlButtonProps.d.ts +33 -33
- package/dist/models/MjmlCarouselImageNode.d.ts +1 -1
- package/dist/models/MjmlCarouselImageProps.d.ts +11 -11
- package/dist/models/MjmlCarouselNode.d.ts +1 -1
- package/dist/models/MjmlCarouselProps.d.ts +17 -17
- package/dist/models/MjmlColumnNode.d.ts +1 -1
- package/dist/models/MjmlColumnProps.d.ts +22 -22
- package/dist/models/MjmlContentKind.d.ts +6 -5
- package/dist/models/MjmlContentKind.js +5 -6
- package/dist/models/MjmlDirection.d.ts +6 -5
- package/dist/models/MjmlDirection.js +5 -6
- package/dist/models/MjmlDividerNode.d.ts +1 -1
- package/dist/models/MjmlDividerProps.d.ts +11 -11
- package/dist/models/MjmlGroupNode.d.ts +1 -1
- package/dist/models/MjmlGroupProps.d.ts +4 -4
- package/dist/models/MjmlHeroNode.d.ts +1 -1
- package/dist/models/MjmlHeroProps.d.ts +20 -20
- package/dist/models/MjmlImageNode.d.ts +1 -1
- package/dist/models/MjmlImageProps.d.ts +29 -29
- package/dist/models/MjmlNavbarLinkNode.d.ts +1 -1
- package/dist/models/MjmlNavbarLinkProps.d.ts +18 -18
- package/dist/models/MjmlNavbarNode.d.ts +1 -1
- package/dist/models/MjmlNavbarProps.d.ts +22 -22
- package/dist/models/MjmlNodeType.d.ts +25 -24
- package/dist/models/MjmlNodeType.js +24 -25
- package/dist/models/MjmlRawNode.d.ts +1 -1
- package/dist/models/MjmlRawProps.d.ts +1 -1
- package/dist/models/MjmlRenderSpecification.d.ts +1 -1
- package/dist/models/MjmlRichText.d.ts +1 -1
- package/dist/models/MjmlRootProps.d.ts +9 -9
- package/dist/models/MjmlSectionNode.d.ts +1 -1
- package/dist/models/MjmlSectionProps.d.ts +23 -23
- package/dist/models/MjmlSocialElementNode.d.ts +1 -1
- package/dist/models/MjmlSocialElementProps.d.ts +31 -31
- package/dist/models/MjmlSocialNode.d.ts +1 -1
- package/dist/models/MjmlSocialProps.d.ts +24 -24
- package/dist/models/MjmlSpacerNode.d.ts +1 -1
- package/dist/models/MjmlSpacerProps.d.ts +12 -12
- package/dist/models/MjmlTableNode.d.ts +1 -1
- package/dist/models/MjmlTableProps.d.ts +19 -19
- package/dist/models/MjmlTextNode.d.ts +1 -1
- package/dist/models/MjmlTextProps.d.ts +19 -19
- package/dist/models/MjmlWrapperNode.d.ts +1 -1
- package/dist/models/MjmlWrapperProps.d.ts +24 -24
- package/dist/services/MjmlContentKindSchemaMap.d.ts +1 -1
- package/dist/services/MjmlContentKindSchemaMap.js +3 -3
- package/dist/services/checkMjmlAlternativeText.d.ts +2 -2
- package/dist/services/components/createMjmlAccordionTextType.js +2 -2
- package/dist/services/components/createMjmlRichTextType.js +3 -3
- package/dist/services/components/createMjmlTextType.js +2 -2
- package/dist/services/components/mjAccordion.js +4 -4
- package/dist/services/components/mjAccordionElement.js +6 -6
- package/dist/services/components/mjAccordionTitle.js +7 -7
- package/dist/services/components/mjButton.js +7 -7
- package/dist/services/components/mjCarousel.js +4 -4
- package/dist/services/components/mjCarouselImage.js +3 -3
- package/dist/services/components/mjColumn.js +14 -14
- package/dist/services/components/mjDivider.js +3 -3
- package/dist/services/components/mjGroup.js +4 -4
- package/dist/services/components/mjHero.js +14 -14
- package/dist/services/components/mjImage.js +3 -3
- package/dist/services/components/mjNavbar.js +4 -4
- package/dist/services/components/mjNavbarLink.js +7 -7
- package/dist/services/components/mjRaw.js +7 -7
- package/dist/services/components/mjSection.js +6 -6
- package/dist/services/components/mjSocial.js +4 -4
- package/dist/services/components/mjSocialElement.js +7 -7
- package/dist/services/components/mjSpacer.js +3 -3
- package/dist/services/components/mjTable.js +7 -7
- package/dist/services/components/mjWrapper.js +6 -6
- package/dist/services/constants.js +5 -5
- package/dist/services/createTypeSchema.js +7 -7
- package/dist/services/mjmlNodeChildren.js +23 -23
- package/dist/services/mjmlNodeSchema.js +23 -23
- package/dist/services/parseMjmlAttributeType.js +7 -7
- package/dist/services/readMjmlContent.js +4 -4
- package/dist/services/readMjmlNode.js +2 -1
- package/dist/services/readMjmlNodes.js +2 -1
- package/dist/services/renderMjmlNode.js +8 -8
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -80,14 +80,11 @@ const document = createMjmlDocumentSchema(registry, bodyChildrenSchema, Number.M
|
|
|
80
80
|
props: {
|
|
81
81
|
children: [
|
|
82
82
|
{
|
|
83
|
-
props: {
|
|
84
|
-
children: [{ props: { content: { text: "Hello" }, id: crypto.randomUUID() }, type: "mj-text" }],
|
|
85
|
-
id: crypto.randomUUID(),
|
|
86
|
-
},
|
|
83
|
+
props: { children: [{ props: { content: { text: "Hello" }, id: v7() }, type: "mj-text" }], id: v7() },
|
|
87
84
|
type: "mj-column",
|
|
88
85
|
},
|
|
89
86
|
],
|
|
90
|
-
id:
|
|
87
|
+
id: v7(),
|
|
91
88
|
},
|
|
92
89
|
type: "mj-section",
|
|
93
90
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlAccordionElementProps } from "./MjmlAccordionElementProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlAccordionElementNode = BlockNode<MjmlNodeType.AccordionElement, MjmlAccordionElementProps>;
|
|
4
|
+
export type MjmlAccordionElementNode = BlockNode<typeof MjmlNodeType.AccordionElement, MjmlAccordionElementProps>;
|
|
@@ -3,16 +3,16 @@ import { MjmlAccordionTitleNode } from "./MjmlAccordionTitleNode.js";
|
|
|
3
3
|
import { MjmlRawNode } from "./MjmlRawNode.js";
|
|
4
4
|
import { BlockNodeProps } from "vue-block-editor-headless";
|
|
5
5
|
export interface MjmlAccordionElementProps extends BlockNodeProps {
|
|
6
|
-
"background-color"?: string;
|
|
7
|
-
border?: string;
|
|
6
|
+
"background-color"?: string | undefined;
|
|
7
|
+
border?: string | undefined;
|
|
8
8
|
children: (MjmlAccordionTextNode | MjmlAccordionTitleNode | MjmlRawNode)[];
|
|
9
|
-
"font-family"?: string;
|
|
10
|
-
"icon-align"?: string;
|
|
11
|
-
"icon-height"?: string;
|
|
12
|
-
"icon-position"?: string;
|
|
13
|
-
"icon-unwrapped-alt"?: string;
|
|
14
|
-
"icon-unwrapped-url"?: string;
|
|
15
|
-
"icon-width"?: string;
|
|
16
|
-
"icon-wrapped-alt"?: string;
|
|
17
|
-
"icon-wrapped-url"?: string;
|
|
9
|
+
"font-family"?: string | undefined;
|
|
10
|
+
"icon-align"?: string | undefined;
|
|
11
|
+
"icon-height"?: string | undefined;
|
|
12
|
+
"icon-position"?: string | undefined;
|
|
13
|
+
"icon-unwrapped-alt"?: string | undefined;
|
|
14
|
+
"icon-unwrapped-url"?: string | undefined;
|
|
15
|
+
"icon-width"?: string | undefined;
|
|
16
|
+
"icon-wrapped-alt"?: string | undefined;
|
|
17
|
+
"icon-wrapped-url"?: string | undefined;
|
|
18
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlAccordionProps } from "./MjmlAccordionProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlAccordionNode = BlockNode<MjmlNodeType.Accordion, MjmlAccordionProps>;
|
|
4
|
+
export type MjmlAccordionNode = BlockNode<typeof MjmlNodeType.Accordion, MjmlAccordionProps>;
|
|
@@ -2,21 +2,21 @@ import { MjmlAccordionElementNode } from "./MjmlAccordionElementNode.js";
|
|
|
2
2
|
import { MjmlRawNode } from "./MjmlRawNode.js";
|
|
3
3
|
import { BlockNodeProps } from "vue-block-editor-headless";
|
|
4
4
|
export interface MjmlAccordionProps extends BlockNodeProps {
|
|
5
|
-
border?: string;
|
|
5
|
+
border?: string | undefined;
|
|
6
6
|
children: (MjmlAccordionElementNode | MjmlRawNode)[];
|
|
7
|
-
"container-background-color"?: string;
|
|
8
|
-
"font-family"?: string;
|
|
9
|
-
"icon-align"?: string;
|
|
10
|
-
"icon-height"?: string;
|
|
11
|
-
"icon-position"?: string;
|
|
12
|
-
"icon-unwrapped-alt"?: string;
|
|
13
|
-
"icon-unwrapped-url"?: string;
|
|
14
|
-
"icon-width"?: string;
|
|
15
|
-
"icon-wrapped-alt"?: string;
|
|
16
|
-
"icon-wrapped-url"?: string;
|
|
17
|
-
padding?: string;
|
|
18
|
-
"padding-bottom"?: string;
|
|
19
|
-
"padding-left"?: string;
|
|
20
|
-
"padding-right"?: string;
|
|
21
|
-
"padding-top"?: string;
|
|
7
|
+
"container-background-color"?: string | undefined;
|
|
8
|
+
"font-family"?: string | undefined;
|
|
9
|
+
"icon-align"?: string | undefined;
|
|
10
|
+
"icon-height"?: string | undefined;
|
|
11
|
+
"icon-position"?: string | undefined;
|
|
12
|
+
"icon-unwrapped-alt"?: string | undefined;
|
|
13
|
+
"icon-unwrapped-url"?: string | undefined;
|
|
14
|
+
"icon-width"?: string | undefined;
|
|
15
|
+
"icon-wrapped-alt"?: string | undefined;
|
|
16
|
+
"icon-wrapped-url"?: string | undefined;
|
|
17
|
+
padding?: string | undefined;
|
|
18
|
+
"padding-bottom"?: string | undefined;
|
|
19
|
+
"padding-left"?: string | undefined;
|
|
20
|
+
"padding-right"?: string | undefined;
|
|
21
|
+
"padding-top"?: string | undefined;
|
|
22
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlAccordionTextProps } from "./MjmlAccordionTextProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlAccordionTextNode = BlockNode<MjmlNodeType.AccordionText, MjmlAccordionTextProps>;
|
|
4
|
+
export type MjmlAccordionTextNode = BlockNode<typeof MjmlNodeType.AccordionText, MjmlAccordionTextProps>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { MjmlRichText } from "./MjmlRichText.js";
|
|
2
2
|
import { BlockNodeProps } from "vue-block-editor-headless";
|
|
3
3
|
export interface MjmlAccordionTextProps extends BlockNodeProps {
|
|
4
|
-
"background-color"?: string;
|
|
5
|
-
color?: string;
|
|
4
|
+
"background-color"?: string | undefined;
|
|
5
|
+
color?: string | undefined;
|
|
6
6
|
content: MjmlRichText;
|
|
7
|
-
"font-family"?: string;
|
|
8
|
-
"font-size"?: string;
|
|
9
|
-
"font-weight"?: string;
|
|
10
|
-
"letter-spacing"?: string;
|
|
11
|
-
"line-height"?: string;
|
|
12
|
-
padding?: string;
|
|
13
|
-
"padding-bottom"?: string;
|
|
14
|
-
"padding-left"?: string;
|
|
15
|
-
"padding-right"?: string;
|
|
16
|
-
"padding-top"?: string;
|
|
7
|
+
"font-family"?: string | undefined;
|
|
8
|
+
"font-size"?: string | undefined;
|
|
9
|
+
"font-weight"?: string | undefined;
|
|
10
|
+
"letter-spacing"?: string | undefined;
|
|
11
|
+
"line-height"?: string | undefined;
|
|
12
|
+
padding?: string | undefined;
|
|
13
|
+
"padding-bottom"?: string | undefined;
|
|
14
|
+
"padding-left"?: string | undefined;
|
|
15
|
+
"padding-right"?: string | undefined;
|
|
16
|
+
"padding-top"?: string | undefined;
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlAccordionTitleProps } from "./MjmlAccordionTitleProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlAccordionTitleNode = BlockNode<MjmlNodeType.AccordionTitle, MjmlAccordionTitleProps>;
|
|
4
|
+
export type MjmlAccordionTitleNode = BlockNode<typeof MjmlNodeType.AccordionTitle, MjmlAccordionTitleProps>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BlockNodeProps } from "vue-block-editor-headless";
|
|
2
2
|
export interface MjmlAccordionTitleProps extends BlockNodeProps {
|
|
3
|
-
"background-color"?: string;
|
|
4
|
-
color?: string;
|
|
3
|
+
"background-color"?: string | undefined;
|
|
4
|
+
color?: string | undefined;
|
|
5
5
|
content: string;
|
|
6
|
-
"font-family"?: string;
|
|
7
|
-
"font-size"?: string;
|
|
8
|
-
"font-weight"?: string;
|
|
9
|
-
padding?: string;
|
|
10
|
-
"padding-bottom"?: string;
|
|
11
|
-
"padding-left"?: string;
|
|
12
|
-
"padding-right"?: string;
|
|
13
|
-
"padding-top"?: string;
|
|
6
|
+
"font-family"?: string | undefined;
|
|
7
|
+
"font-size"?: string | undefined;
|
|
8
|
+
"font-weight"?: string | undefined;
|
|
9
|
+
padding?: string | undefined;
|
|
10
|
+
"padding-bottom"?: string | undefined;
|
|
11
|
+
"padding-left"?: string | undefined;
|
|
12
|
+
"padding-right"?: string | undefined;
|
|
13
|
+
"padding-top"?: string | undefined;
|
|
14
14
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
Boolean
|
|
3
|
-
Color
|
|
4
|
-
Enum
|
|
5
|
-
Integer
|
|
6
|
-
String
|
|
7
|
-
Unit
|
|
8
|
-
}
|
|
1
|
+
export declare const MjmlAttributeKind: {
|
|
2
|
+
readonly Boolean: "boolean";
|
|
3
|
+
readonly Color: "color";
|
|
4
|
+
readonly Enum: "enum";
|
|
5
|
+
readonly Integer: "integer";
|
|
6
|
+
readonly String: "string";
|
|
7
|
+
readonly Unit: "unit";
|
|
8
|
+
};
|
|
9
|
+
export type MjmlAttributeKind = (typeof MjmlAttributeKind)[keyof typeof MjmlAttributeKind];
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// src/models/MjmlAttributeKind.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}({});
|
|
2
|
+
const MjmlAttributeKind = {
|
|
3
|
+
Boolean: "boolean",
|
|
4
|
+
Color: "color",
|
|
5
|
+
Enum: "enum",
|
|
6
|
+
Integer: "integer",
|
|
7
|
+
String: "string",
|
|
8
|
+
Unit: "unit"
|
|
9
|
+
};
|
|
11
10
|
export { MjmlAttributeKind };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { MjmlAttributeKind } from "./MjmlAttributeKind.js";
|
|
2
2
|
export type MjmlAttributeType = {
|
|
3
3
|
isNegativeAllowed: boolean;
|
|
4
|
-
kind: MjmlAttributeKind.Unit;
|
|
4
|
+
kind: typeof MjmlAttributeKind.Unit;
|
|
5
5
|
maxCount: number;
|
|
6
6
|
minCount: number;
|
|
7
7
|
units: string[];
|
|
8
8
|
} | {
|
|
9
|
-
kind: MjmlAttributeKind.Boolean;
|
|
9
|
+
kind: typeof MjmlAttributeKind.Boolean;
|
|
10
10
|
} | {
|
|
11
|
-
kind: MjmlAttributeKind.Color;
|
|
11
|
+
kind: typeof MjmlAttributeKind.Color;
|
|
12
12
|
} | {
|
|
13
|
-
kind: MjmlAttributeKind.Enum;
|
|
13
|
+
kind: typeof MjmlAttributeKind.Enum;
|
|
14
14
|
options: string[];
|
|
15
15
|
} | {
|
|
16
|
-
kind: MjmlAttributeKind.Integer;
|
|
16
|
+
kind: typeof MjmlAttributeKind.Integer;
|
|
17
17
|
} | {
|
|
18
|
-
kind: MjmlAttributeKind.String;
|
|
18
|
+
kind: typeof MjmlAttributeKind.String;
|
|
19
19
|
};
|
|
@@ -11,10 +11,10 @@ type MjmlBlockTypeFields<TNode extends BlockNode, TContext> = Pick<BlockTypeDefi
|
|
|
11
11
|
render: (node: BlockNode, slots: Record<string, MjmlJson[]>, context: TContext) => MjmlJson;
|
|
12
12
|
};
|
|
13
13
|
type MjmlContentDefinition<TNode extends BlockNode> = {
|
|
14
|
-
contentKind: MjmlContentKind.Label | MjmlContentKind.Raw;
|
|
14
|
+
contentKind: typeof MjmlContentKind.Label | typeof MjmlContentKind.Raw;
|
|
15
15
|
propsSchema: z.ZodType<MjmlStringContentProps<TNode>>;
|
|
16
16
|
} | {
|
|
17
|
-
contentKind: MjmlContentKind.RichText;
|
|
17
|
+
contentKind: typeof MjmlContentKind.RichText;
|
|
18
18
|
propsSchema: z.ZodType<OwnProps<TNode["props"]>>;
|
|
19
19
|
} | {
|
|
20
20
|
contentKind?: undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlButtonProps } from "./MjmlButtonProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlButtonNode = BlockNode<MjmlNodeType.Button, MjmlButtonProps>;
|
|
4
|
+
export type MjmlButtonNode = BlockNode<typeof MjmlNodeType.Button, MjmlButtonProps>;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { BlockNodeProps } from "vue-block-editor-headless";
|
|
2
2
|
export interface MjmlButtonProps extends BlockNodeProps {
|
|
3
|
-
align?: string;
|
|
4
|
-
"background-color"?: 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
|
-
color?: string;
|
|
12
|
-
"container-background-color"?: string;
|
|
3
|
+
align?: string | undefined;
|
|
4
|
+
"background-color"?: 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
|
+
color?: string | undefined;
|
|
12
|
+
"container-background-color"?: string | undefined;
|
|
13
13
|
content: string;
|
|
14
|
-
"font-family"?: string;
|
|
15
|
-
"font-size"?: string;
|
|
16
|
-
"font-style"?: string;
|
|
17
|
-
"font-weight"?: string;
|
|
18
|
-
height?: string;
|
|
19
|
-
href?: string;
|
|
20
|
-
"inner-padding"?: string;
|
|
21
|
-
"letter-spacing"?: string;
|
|
22
|
-
"line-height"?: string;
|
|
23
|
-
name?: string;
|
|
24
|
-
padding?: string;
|
|
25
|
-
"padding-bottom"?: string;
|
|
26
|
-
"padding-left"?: string;
|
|
27
|
-
"padding-right"?: string;
|
|
28
|
-
"padding-top"?: string;
|
|
29
|
-
rel?: string;
|
|
30
|
-
target?: string;
|
|
31
|
-
"text-align"?: string;
|
|
32
|
-
"text-decoration"?: string;
|
|
33
|
-
"text-transform"?: string;
|
|
34
|
-
title?: string;
|
|
35
|
-
"vertical-align"?: string;
|
|
36
|
-
width?: string;
|
|
14
|
+
"font-family"?: string | undefined;
|
|
15
|
+
"font-size"?: string | undefined;
|
|
16
|
+
"font-style"?: string | undefined;
|
|
17
|
+
"font-weight"?: string | undefined;
|
|
18
|
+
height?: string | undefined;
|
|
19
|
+
href?: string | undefined;
|
|
20
|
+
"inner-padding"?: string | undefined;
|
|
21
|
+
"letter-spacing"?: string | undefined;
|
|
22
|
+
"line-height"?: string | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
padding?: string | undefined;
|
|
25
|
+
"padding-bottom"?: string | undefined;
|
|
26
|
+
"padding-left"?: string | undefined;
|
|
27
|
+
"padding-right"?: string | undefined;
|
|
28
|
+
"padding-top"?: string | undefined;
|
|
29
|
+
rel?: string | undefined;
|
|
30
|
+
target?: string | undefined;
|
|
31
|
+
"text-align"?: string | undefined;
|
|
32
|
+
"text-decoration"?: string | undefined;
|
|
33
|
+
"text-transform"?: string | undefined;
|
|
34
|
+
title?: string | undefined;
|
|
35
|
+
"vertical-align"?: string | undefined;
|
|
36
|
+
width?: string | undefined;
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlCarouselImageProps } from "./MjmlCarouselImageProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlCarouselImageNode = BlockNode<MjmlNodeType.CarouselImage, MjmlCarouselImageProps>;
|
|
4
|
+
export type MjmlCarouselImageNode = BlockNode<typeof MjmlNodeType.CarouselImage, MjmlCarouselImageProps>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BlockNodeProps } from "vue-block-editor-headless";
|
|
2
2
|
export interface MjmlCarouselImageProps extends BlockNodeProps {
|
|
3
|
-
alt?: string;
|
|
4
|
-
"border-radius"?: string;
|
|
5
|
-
decorative?: boolean;
|
|
6
|
-
href?: string;
|
|
7
|
-
rel?: string;
|
|
8
|
-
src?: string;
|
|
9
|
-
target?: string;
|
|
10
|
-
"tb-border"?: string;
|
|
11
|
-
"tb-border-radius"?: string;
|
|
12
|
-
"thumbnails-src"?: string;
|
|
13
|
-
title?: string;
|
|
3
|
+
alt?: string | undefined;
|
|
4
|
+
"border-radius"?: string | undefined;
|
|
5
|
+
decorative?: boolean | undefined;
|
|
6
|
+
href?: string | undefined;
|
|
7
|
+
rel?: string | undefined;
|
|
8
|
+
src?: string | undefined;
|
|
9
|
+
target?: string | undefined;
|
|
10
|
+
"tb-border"?: string | undefined;
|
|
11
|
+
"tb-border-radius"?: string | undefined;
|
|
12
|
+
"thumbnails-src"?: string | undefined;
|
|
13
|
+
title?: string | undefined;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlCarouselProps } from "./MjmlCarouselProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlCarouselNode = BlockNode<MjmlNodeType.Carousel, MjmlCarouselProps>;
|
|
4
|
+
export type MjmlCarouselNode = BlockNode<typeof MjmlNodeType.Carousel, MjmlCarouselProps>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { MjmlCarouselImageNode } from "./MjmlCarouselImageNode.js";
|
|
2
2
|
import { BlockNodeProps } from "vue-block-editor-headless";
|
|
3
3
|
export interface MjmlCarouselProps extends BlockNodeProps {
|
|
4
|
-
align?: string;
|
|
5
|
-
"border-radius"?: string;
|
|
4
|
+
align?: string | undefined;
|
|
5
|
+
"border-radius"?: string | undefined;
|
|
6
6
|
children: MjmlCarouselImageNode[];
|
|
7
|
-
"container-background-color"?: string;
|
|
8
|
-
"icon-width"?: string;
|
|
9
|
-
"left-icon"?: string;
|
|
10
|
-
padding?: string;
|
|
11
|
-
"padding-bottom"?: string;
|
|
12
|
-
"padding-left"?: string;
|
|
13
|
-
"padding-right"?: string;
|
|
14
|
-
"padding-top"?: string;
|
|
15
|
-
"right-icon"?: string;
|
|
16
|
-
"tb-border"?: string;
|
|
17
|
-
"tb-border-radius"?: string;
|
|
18
|
-
"tb-hover-border-color"?: string;
|
|
19
|
-
"tb-selected-border-color"?: string;
|
|
20
|
-
"tb-width"?: string;
|
|
21
|
-
thumbnails?: string;
|
|
7
|
+
"container-background-color"?: string | undefined;
|
|
8
|
+
"icon-width"?: string | undefined;
|
|
9
|
+
"left-icon"?: 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
|
+
"right-icon"?: string | undefined;
|
|
16
|
+
"tb-border"?: string | undefined;
|
|
17
|
+
"tb-border-radius"?: string | undefined;
|
|
18
|
+
"tb-hover-border-color"?: string | undefined;
|
|
19
|
+
"tb-selected-border-color"?: string | undefined;
|
|
20
|
+
"tb-width"?: string | undefined;
|
|
21
|
+
thumbnails?: string | undefined;
|
|
22
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlColumnProps } from "./MjmlColumnProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlColumnNode = BlockNode<MjmlNodeType.Column, MjmlColumnProps>;
|
|
4
|
+
export type MjmlColumnNode = BlockNode<typeof MjmlNodeType.Column, MjmlColumnProps>;
|
|
@@ -2,27 +2,27 @@ 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 MjmlColumnProps extends BlockNodeProps {
|
|
5
|
-
"background-color"?: string;
|
|
6
|
-
border?: string;
|
|
7
|
-
"border-bottom"?: string;
|
|
8
|
-
"border-left"?: string;
|
|
9
|
-
"border-radius"?: string;
|
|
10
|
-
"border-right"?: string;
|
|
11
|
-
"border-top"?: string;
|
|
5
|
+
"background-color"?: string | undefined;
|
|
6
|
+
border?: string | undefined;
|
|
7
|
+
"border-bottom"?: string | undefined;
|
|
8
|
+
"border-left"?: string | undefined;
|
|
9
|
+
"border-radius"?: string | undefined;
|
|
10
|
+
"border-right"?: string | undefined;
|
|
11
|
+
"border-top"?: string | undefined;
|
|
12
12
|
children: (MjmlFlowNode | MjmlLeafNode)[];
|
|
13
|
-
direction?: string;
|
|
14
|
-
"inner-background-color"?: string;
|
|
15
|
-
"inner-border"?: string;
|
|
16
|
-
"inner-border-bottom"?: string;
|
|
17
|
-
"inner-border-left"?: string;
|
|
18
|
-
"inner-border-radius"?: string;
|
|
19
|
-
"inner-border-right"?: string;
|
|
20
|
-
"inner-border-top"?: string;
|
|
21
|
-
padding?: string;
|
|
22
|
-
"padding-bottom"?: string;
|
|
23
|
-
"padding-left"?: string;
|
|
24
|
-
"padding-right"?: string;
|
|
25
|
-
"padding-top"?: string;
|
|
26
|
-
"vertical-align"?: string;
|
|
27
|
-
width?: string;
|
|
13
|
+
direction?: string | undefined;
|
|
14
|
+
"inner-background-color"?: string | undefined;
|
|
15
|
+
"inner-border"?: string | undefined;
|
|
16
|
+
"inner-border-bottom"?: string | undefined;
|
|
17
|
+
"inner-border-left"?: string | undefined;
|
|
18
|
+
"inner-border-radius"?: string | undefined;
|
|
19
|
+
"inner-border-right"?: string | undefined;
|
|
20
|
+
"inner-border-top"?: 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
|
+
"vertical-align"?: string | undefined;
|
|
27
|
+
width?: string | undefined;
|
|
28
28
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
Label
|
|
3
|
-
Raw
|
|
4
|
-
RichText
|
|
5
|
-
}
|
|
1
|
+
export declare const MjmlContentKind: {
|
|
2
|
+
readonly Label: "label";
|
|
3
|
+
readonly Raw: "raw";
|
|
4
|
+
readonly RichText: "richText";
|
|
5
|
+
};
|
|
6
|
+
export type MjmlContentKind = (typeof MjmlContentKind)[keyof typeof MjmlContentKind];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// src/models/MjmlContentKind.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}({});
|
|
2
|
+
const MjmlContentKind = {
|
|
3
|
+
Label: "label",
|
|
4
|
+
Raw: "raw",
|
|
5
|
+
RichText: "richText"
|
|
6
|
+
};
|
|
8
7
|
export { MjmlContentKind };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
Auto
|
|
3
|
-
Ltr
|
|
4
|
-
Rtl
|
|
5
|
-
}
|
|
1
|
+
export declare const MjmlDirection: {
|
|
2
|
+
readonly Auto: "auto";
|
|
3
|
+
readonly Ltr: "ltr";
|
|
4
|
+
readonly Rtl: "rtl";
|
|
5
|
+
};
|
|
6
|
+
export type MjmlDirection = (typeof MjmlDirection)[keyof typeof MjmlDirection];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// src/models/MjmlDirection.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}({});
|
|
2
|
+
const MjmlDirection = {
|
|
3
|
+
Auto: "auto",
|
|
4
|
+
Ltr: "ltr",
|
|
5
|
+
Rtl: "rtl"
|
|
6
|
+
};
|
|
8
7
|
export { MjmlDirection };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlDividerProps } from "./MjmlDividerProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlDividerNode = BlockNode<MjmlNodeType.Divider, MjmlDividerProps>;
|
|
4
|
+
export type MjmlDividerNode = BlockNode<typeof MjmlNodeType.Divider, MjmlDividerProps>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BlockNodeProps } from "vue-block-editor-headless";
|
|
2
2
|
export interface MjmlDividerProps extends BlockNodeProps {
|
|
3
|
-
align?: string;
|
|
4
|
-
"border-color"?: string;
|
|
5
|
-
"border-style"?: string;
|
|
6
|
-
"border-width"?: string;
|
|
7
|
-
"container-background-color"?: string;
|
|
8
|
-
padding?: string;
|
|
9
|
-
"padding-bottom"?: string;
|
|
10
|
-
"padding-left"?: string;
|
|
11
|
-
"padding-right"?: string;
|
|
12
|
-
"padding-top"?: string;
|
|
13
|
-
width?: string;
|
|
3
|
+
align?: string | undefined;
|
|
4
|
+
"border-color"?: string | undefined;
|
|
5
|
+
"border-style"?: string | undefined;
|
|
6
|
+
"border-width"?: string | undefined;
|
|
7
|
+
"container-background-color"?: string | undefined;
|
|
8
|
+
padding?: string | undefined;
|
|
9
|
+
"padding-bottom"?: string | undefined;
|
|
10
|
+
"padding-left"?: string | undefined;
|
|
11
|
+
"padding-right"?: string | undefined;
|
|
12
|
+
"padding-top"?: string | undefined;
|
|
13
|
+
width?: string | undefined;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlGroupProps } from "./MjmlGroupProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlGroupNode = BlockNode<MjmlNodeType.Group, MjmlGroupProps>;
|
|
4
|
+
export type MjmlGroupNode = BlockNode<typeof MjmlNodeType.Group, MjmlGroupProps>;
|
|
@@ -2,9 +2,9 @@ import { MjmlColumnNode } from "./MjmlColumnNode.js";
|
|
|
2
2
|
import { MjmlRawNode } from "./MjmlRawNode.js";
|
|
3
3
|
import { BlockNodeProps } from "vue-block-editor-headless";
|
|
4
4
|
export interface MjmlGroupProps extends BlockNodeProps {
|
|
5
|
-
"background-color"?: string;
|
|
5
|
+
"background-color"?: string | undefined;
|
|
6
6
|
children: (MjmlColumnNode | MjmlRawNode)[];
|
|
7
|
-
direction?: string;
|
|
8
|
-
"vertical-align"?: string;
|
|
9
|
-
width?: string;
|
|
7
|
+
direction?: string | undefined;
|
|
8
|
+
"vertical-align"?: string | undefined;
|
|
9
|
+
width?: string | undefined;
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MjmlHeroProps } from "./MjmlHeroProps.js";
|
|
2
2
|
import { MjmlNodeType } from "./MjmlNodeType.js";
|
|
3
3
|
import { BlockNode } from "vue-block-editor-headless";
|
|
4
|
-
export type MjmlHeroNode = BlockNode<MjmlNodeType.Hero, MjmlHeroProps>;
|
|
4
|
+
export type MjmlHeroNode = BlockNode<typeof MjmlNodeType.Hero, MjmlHeroProps>;
|