easy-email-pro-kit 1.2.2 → 1.3.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/lib/index.cjs.js +1 -1
- package/lib/index.es.js +2762 -2185
- package/lib/typings/Elements/common/ImageWithText/Panel.d.ts +5 -0
- package/lib/typings/Elements/common/ImageWithText/index.d.ts +3 -0
- package/lib/typings/Elements/common/Video/Panel.d.ts +5 -0
- package/lib/typings/Elements/common/Video/Video.d.ts +7 -0
- package/lib/typings/Elements/common/Video/index.d.ts +3 -0
- package/lib/typings/Elements/common/index.d.ts +2 -0
- package/lib/typings/Elements/index.d.ts +2 -0
- package/lib/typings/constants/index.d.ts +12 -1
- package/lib/typings/custom-types.d.ts +2 -2
- package/lib/typings/index.d.ts +7 -1
- package/lib/typings/index.server.d.ts +7 -1
- package/lib/typings/typings/index.d.ts +26 -1
- package/package.json +1 -1
|
@@ -3,4 +3,15 @@ export declare const MarketingType: {
|
|
|
3
3
|
MARKETING_COUNTDOWN: "marketing-countdown";
|
|
4
4
|
MARKETING_QR_CODE: "marketing-qr-code";
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export declare const CommonType: {
|
|
7
|
+
COMMON_VIDEO: "common-video";
|
|
8
|
+
COMMON_IMAGE_WITH_TEXT: "common-image-with-text";
|
|
9
|
+
};
|
|
10
|
+
export declare const KitElementType: {
|
|
11
|
+
readonly COMMON_VIDEO: "common-video";
|
|
12
|
+
readonly COMMON_IMAGE_WITH_TEXT: "common-image-with-text";
|
|
13
|
+
readonly MARKETING_SHOPWINDOW: "marketing-shopwindow";
|
|
14
|
+
readonly MARKETING_COUNTDOWN: "marketing-countdown";
|
|
15
|
+
readonly MARKETING_QR_CODE: "marketing-qr-code";
|
|
16
|
+
};
|
|
17
|
+
export type KitElementType = typeof KitElementType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MarketingCountdownElement, MarketingShopwindowElement, MarketingQRCodeElement } from "./typings";
|
|
1
|
+
import { MarketingCountdownElement, MarketingShopwindowElement, MarketingQRCodeElement, CommonVideoElement, CommonImageWithTextElement } from "./typings";
|
|
2
2
|
declare module "easy-email-pro-core" {
|
|
3
3
|
interface CustomTypes {
|
|
4
|
-
Element: MarketingCountdownElement | MarketingShopwindowElement | MarketingQRCodeElement;
|
|
4
|
+
Element: MarketingCountdownElement | MarketingShopwindowElement | MarketingQRCodeElement | CommonVideoElement | CommonImageWithTextElement;
|
|
5
5
|
}
|
|
6
6
|
}
|
package/lib/typings/index.d.ts
CHANGED
|
@@ -10,4 +10,10 @@ declare class Countdown extends ElementPlugin {
|
|
|
10
10
|
declare class QRCode extends ElementPlugin {
|
|
11
11
|
generateElement(): void;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
declare class Video extends ElementPlugin {
|
|
14
|
+
generateElement(): void;
|
|
15
|
+
}
|
|
16
|
+
declare class ImageWithText extends ElementPlugin {
|
|
17
|
+
generateElement(): void;
|
|
18
|
+
}
|
|
19
|
+
export { Shopwindow, Countdown, QRCode, Video, ImageWithText };
|
|
@@ -10,4 +10,10 @@ declare class Countdown extends ElementPlugin {
|
|
|
10
10
|
declare class QRCode extends ElementPlugin {
|
|
11
11
|
generateElement(): void;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
declare class Video extends ElementPlugin {
|
|
14
|
+
generateElement(): void;
|
|
15
|
+
}
|
|
16
|
+
declare class ImageWithText extends ElementPlugin {
|
|
17
|
+
generateElement(): void;
|
|
18
|
+
}
|
|
19
|
+
export { Shopwindow, Countdown, QRCode, Video, ImageWithText };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { KitElementType } from "../constants";
|
|
2
|
-
import { BasicElement, ImageElement } from "easy-email-pro-core";
|
|
2
|
+
import { BasicElement, ImageElement, StandardSectionElement } from "easy-email-pro-core";
|
|
3
3
|
export type MarketingCountdownElement = BasicElement<{
|
|
4
4
|
align?: string;
|
|
5
5
|
color?: string;
|
|
@@ -71,3 +71,28 @@ export type MarketingShopwindowElement = BasicElement<Omit<ImageElement["attribu
|
|
|
71
71
|
}> & {
|
|
72
72
|
type: KitElementType["MARKETING_SHOPWINDOW"];
|
|
73
73
|
};
|
|
74
|
+
export type CommonVideoElement = BasicElement<Omit<ImageElement["attributes"], "inner-padding"> & {
|
|
75
|
+
"inner-padding-top"?: string;
|
|
76
|
+
"inner-padding-bottom"?: string;
|
|
77
|
+
"inner-padding-left"?: string;
|
|
78
|
+
"inner-padding-right"?: string;
|
|
79
|
+
"border-enabled"?: boolean;
|
|
80
|
+
"border-width"?: string;
|
|
81
|
+
"border-style"?: string;
|
|
82
|
+
"border-color"?: string;
|
|
83
|
+
}, {
|
|
84
|
+
thumbnail: string;
|
|
85
|
+
"video-link": string;
|
|
86
|
+
"video-mask-opacity": number;
|
|
87
|
+
"button-image": string;
|
|
88
|
+
"button-image-width": number;
|
|
89
|
+
}> & {
|
|
90
|
+
type: KitElementType["COMMON_VIDEO"];
|
|
91
|
+
};
|
|
92
|
+
export type CommonImageWithTextElement = BasicElement<StandardSectionElement["attributes"] & {
|
|
93
|
+
"first-column-width": number;
|
|
94
|
+
}, {
|
|
95
|
+
stackOnMobile: boolean;
|
|
96
|
+
}> & {
|
|
97
|
+
type: KitElementType["COMMON_IMAGE_WITH_TEXT"];
|
|
98
|
+
};
|