easy-email-pro-editor 1.52.0 → 1.53.1
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/CHANGELOG.md +12 -0
- package/lib/index.js +5229 -5210
- package/lib/typings/components/Elements/BaseElement.d.ts +1 -2
- package/lib/typings/components/Elements/ElementMap.d.ts +3 -2
- package/lib/typings/components/Elements/components/PageElementContextProvider.d.ts +13 -0
- package/lib/typings/components/Elements/useElement.d.ts +3 -3
- package/lib/typings/typings/index.d.ts +1 -0
- package/package.json +1 -1
- package/lib/typings/components/Elements/atom/Button.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Column.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Divider.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Group.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Hero.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Image.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Navbar.d.ts +0 -0
- package/lib/typings/components/Elements/atom/NavbarLink.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Page.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Raw.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Section.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Social.d.ts +0 -0
- package/lib/typings/components/Elements/atom/SocialElement.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Spacer.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Table.d.ts +0 -0
- package/lib/typings/components/Elements/atom/Text.d.ts +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { RenderElementProps } from "slate-react";
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "easy-email-pro-core";
|
|
4
4
|
export type BaseElementProps<T extends Element> = Omit<RenderElementProps, "element"> & {
|
|
5
5
|
element: T;
|
|
6
6
|
elementAttributes: T["attributes"];
|
|
7
|
-
context: PageElement;
|
|
8
7
|
placeholder?: React.ReactNode;
|
|
9
8
|
isMobileActive: boolean;
|
|
10
9
|
attributesVariables?: Record<string, any>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Element } from "easy-email-pro-core";
|
|
1
|
+
import { Element, PageElement } from "easy-email-pro-core";
|
|
2
2
|
import { BaseElementProps } from "./BaseElement";
|
|
3
3
|
import React from "react";
|
|
4
4
|
declare const ElementMap: Record<string, React.FC<Omit<BaseElementProps<any>, "attributes"> & {
|
|
5
5
|
attributes?: BaseElementProps<any>["attributes"] | undefined;
|
|
6
6
|
}> | undefined>;
|
|
7
|
-
export declare const MJMLElementRender: React.FC<Pick<BaseElementProps<Element>, "
|
|
7
|
+
export declare const MJMLElementRender: React.FC<Pick<BaseElementProps<Element>, "isMobileActive"> & {
|
|
8
8
|
mjmlString: string;
|
|
9
|
+
context: PageElement;
|
|
9
10
|
}>;
|
|
10
11
|
export { ElementMap };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PageElement } from "easy-email-pro-core";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const PageElementContext: React.Context<{
|
|
4
|
+
context: PageElement;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const PageElementContextProvider: ({ children, context: pageElement, isMobileActive, }: {
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
context: PageElement;
|
|
9
|
+
isMobileActive: boolean;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export declare const usePageElementContext: () => {
|
|
12
|
+
context: PageElement;
|
|
13
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Element } from "easy-email-pro-core";
|
|
2
|
+
import { Element, PageElement } from "easy-email-pro-core";
|
|
3
3
|
import { BaseElement, BaseElementProps } from "./BaseElement";
|
|
4
|
-
export declare const useElement: <T extends Element>({ element,
|
|
4
|
+
export declare const useElement: <T extends Element>({ element, attributesVariables, defaultAttributes, allowedAttributes, getDefaultStyles, Com, isWrapperParent, ...rest }: Omit<import("slate-react").RenderElementProps, "element"> & {
|
|
5
5
|
element: T;
|
|
6
6
|
elementAttributes: T["attributes"];
|
|
7
|
-
context: import("easy-email-pro-core").PageElement;
|
|
8
7
|
placeholder?: import("react").ReactNode;
|
|
9
8
|
isMobileActive: boolean;
|
|
10
9
|
attributesVariables?: Record<string, any> | undefined;
|
|
@@ -14,6 +13,7 @@ export declare const useElement: <T extends Element>({ element, context, attribu
|
|
|
14
13
|
getDefaultStyles?: ((attrs: T["attributes"]) => Record<string, any>) | undefined;
|
|
15
14
|
Com: BaseElement<T>;
|
|
16
15
|
isWrapperParent?: boolean | undefined;
|
|
16
|
+
context?: PageElement | undefined;
|
|
17
17
|
}) => {
|
|
18
18
|
attributes: T["attributes"];
|
|
19
19
|
getHtmlAttributes: (attributes: Record<string, any> | string) => {};
|
|
@@ -96,6 +96,7 @@ export interface BasicEditorProps extends Partial<Pick<EditableProps, "onDOMBefo
|
|
|
96
96
|
showPreviousLevelIcon?: boolean;
|
|
97
97
|
showBlockPaths?: boolean;
|
|
98
98
|
loadingElement?: React.ReactNode;
|
|
99
|
+
enabledAutoComplete?: boolean;
|
|
99
100
|
handleUploadClick?: ({ onChange, accept, }: {
|
|
100
101
|
onChange: (url: string) => void;
|
|
101
102
|
accept?: string;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|