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.
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { Path } from "slate";
3
+ export declare const ImageWithTextPanel: ({ nodePath }: {
4
+ nodePath: Path;
5
+ }) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ElementDefinition } from "easy-email-pro-core";
2
+ import { CommonImageWithTextElement } from "../../../typings";
3
+ export declare const CommonImageWithText: ElementDefinition<CommonImageWithTextElement>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { Path } from "slate";
3
+ export declare const VideoPanel: ({ nodePath }: {
4
+ nodePath: Path;
5
+ }) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { CommonVideoElement } from "../../../typings";
3
+ export declare const Video: (props: {
4
+ attributes: CommonVideoElement["attributes"];
5
+ data: CommonVideoElement["data"];
6
+ scale: number;
7
+ }) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ElementDefinition } from "easy-email-pro-core";
2
+ import { CommonVideoElement } from "../../../typings";
3
+ export declare const CommonVideo: ElementDefinition<CommonVideoElement>;
@@ -0,0 +1,2 @@
1
+ export * from "./Video";
2
+ export * from "./ImageWithText";
@@ -0,0 +1,2 @@
1
+ export * from "./marketing";
2
+ export * from "./common";
@@ -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 type KitElementType = typeof MarketingType;
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
  }
@@ -10,4 +10,10 @@ declare class Countdown extends ElementPlugin {
10
10
  declare class QRCode extends ElementPlugin {
11
11
  generateElement(): void;
12
12
  }
13
- export { Shopwindow, Countdown, QRCode };
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
- export { Shopwindow, Countdown, QRCode };
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-kit",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"