@thanhpv102/easy-email-editor 4.19.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/assets/font/iconfont.d.ts +0 -0
- package/lib/components/EmailEditor/components/DesktopEmailPreview/index.d.ts +2 -0
- package/lib/components/EmailEditor/components/EditEmailPreview/components/MjmlDomRender.d.ts +2 -0
- package/lib/components/EmailEditor/components/EditEmailPreview/components/ShadowStyle.d.ts +2 -0
- package/lib/components/EmailEditor/components/EditEmailPreview/index.d.ts +2 -0
- package/lib/components/EmailEditor/components/MobileEmailPreview/index.d.ts +2 -0
- package/lib/components/EmailEditor/components/ToolsPanel/index.d.ts +2 -0
- package/lib/components/EmailEditor/index.d.ts +4 -0
- package/lib/components/IconFont/index.d.ts +9 -0
- package/lib/components/Provider/BlocksProvider/index.d.ts +21 -0
- package/lib/components/Provider/EmailEditorProvider/index.d.ts +11 -0
- package/lib/components/Provider/FocusBlockLayoutProvider/index.d.ts +7 -0
- package/lib/components/Provider/HoverIdxProvider/index.d.ts +29 -0
- package/lib/components/Provider/LanguageProvider/index.d.ts +5 -0
- package/lib/components/Provider/PreviewEmailProvider/index.d.ts +11 -0
- package/lib/components/Provider/PropsProvider/index.d.ts +75 -0
- package/lib/components/Provider/RecordProvider/index.d.ts +14 -0
- package/lib/components/Provider/ScrollProvider/index.d.ts +14 -0
- package/lib/components/RenderCount/index.d.ts +2 -0
- package/lib/components/UI/Button/index.d.ts +10 -0
- package/lib/components/UI/IframeComponent/index.d.ts +8 -0
- package/lib/components/UI/Stack/components/Item/index.d.ts +12 -0
- package/lib/components/UI/Stack/index.d.ts +23 -0
- package/lib/components/UI/Stack/utils/components.d.ts +16 -0
- package/lib/components/UI/Stack/utils/css.d.ts +4 -0
- package/lib/components/UI/SyncScrollIframeComponent/index.d.ts +10 -0
- package/lib/components/UI/SyncScrollShadowDom/index.d.ts +4 -0
- package/lib/components/UI/Tabs/index.d.ts +22 -0
- package/lib/components/UI/TextStyle/index.d.ts +7 -0
- package/lib/components/wrapper/BlockAvatarWrapper/index.d.ts +11 -0
- package/lib/components/wrapper/index.d.ts +2 -0
- package/lib/constants.d.ts +17 -0
- package/lib/easy-email-editor.css +1 -0
- package/lib/hooks/useActiveTab.d.ts +4 -0
- package/lib/hooks/useBlock.d.ts +26 -0
- package/lib/hooks/useDataTransfer.d.ts +4 -0
- package/lib/hooks/useDomScrollHeight.d.ts +7 -0
- package/lib/hooks/useDragable.d.ts +4 -0
- package/lib/hooks/useDropBlock.d.ts +3 -0
- package/lib/hooks/useEditorContext.d.ts +8 -0
- package/lib/hooks/useEditorProps.d.ts +4 -0
- package/lib/hooks/useFocusBlockLayout.d.ts +3 -0
- package/lib/hooks/useFocusIdx.d.ts +4 -0
- package/lib/hooks/useHotKeys.d.ts +1 -0
- package/lib/hooks/useHoverIdx.d.ts +8 -0
- package/lib/hooks/useLazyState.d.ts +1 -0
- package/lib/hooks/usePreviewEmail.d.ts +6 -0
- package/lib/hooks/useRefState.d.ts +1 -0
- package/lib/index.d.ts +31 -0
- package/lib/index.js +9289 -0
- package/lib/index.js.map +1 -0
- package/lib/locales.json +1 -0
- package/lib/typings/index.d.ts +14 -0
- package/lib/typings/mjml-browser.d.ts +37 -0
- package/lib/utils/EventManager.d.ts +19 -0
- package/lib/utils/HtmlStringToPreviewReactNodes.d.ts +3 -0
- package/lib/utils/HtmlStringToReactNodes.d.ts +6 -0
- package/lib/utils/MergeTagBadge.d.ts +4 -0
- package/lib/utils/awaitForElement.d.ts +4 -0
- package/lib/utils/classnames.d.ts +1 -0
- package/lib/utils/contenteditable.d.ts +4 -0
- package/lib/utils/generateTranslate.d.ts +1 -0
- package/lib/utils/getBlockNodeByChildEle.d.ts +1 -0
- package/lib/utils/getBlockNodeByIdx.d.ts +1 -0
- package/lib/utils/getBlockNodes.d.ts +1 -0
- package/lib/utils/getContentEditableClassName.d.ts +1 -0
- package/lib/utils/getDirectionPosition.d.ts +15 -0
- package/lib/utils/getEditorRoot.d.ts +1 -0
- package/lib/utils/getImg.d.ts +5 -0
- package/lib/utils/getInsertPosition.d.ts +17 -0
- package/lib/utils/getPluginElement.d.ts +1 -0
- package/lib/utils/getShadowRoot.d.ts +1 -0
- package/lib/utils/index.d.ts +12 -0
- package/lib/utils/isButtonBlock.d.ts +1 -0
- package/lib/utils/isNavbarBlock.d.ts +1 -0
- package/lib/utils/isTableBlock.d.ts +1 -0
- package/lib/utils/isTextBlock.d.ts +1 -0
- package/lib/utils/logger.d.ts +2 -0
- package/lib/utils/scrollBlockEleIntoView.d.ts +3 -0
- package/package.json +78 -0
- package/readme.md +43 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useHotKeys(): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function useHoverIdx(): {
|
|
2
|
+
hoverIdx: string;
|
|
3
|
+
setHoverIdx: import("lodash").DebouncedFunc<import("react").Dispatch<import("react").SetStateAction<string>>>;
|
|
4
|
+
isDragging: boolean;
|
|
5
|
+
setIsDragging: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
6
|
+
direction: string;
|
|
7
|
+
setDirection: import("lodash").DebouncedFunc<import("react").Dispatch<import("react").SetStateAction<string>>>;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLazyState<T>(state: T, debounceTime: number): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useRefState<T>(state: T): import("react").RefObject<T>;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from './components/Provider/EmailEditorProvider';
|
|
2
|
+
export { BlockAvatarWrapper } from './components/wrapper';
|
|
3
|
+
export { EmailEditor } from './components/EmailEditor';
|
|
4
|
+
export { EditEmailPreview } from './components/EmailEditor/components/EditEmailPreview';
|
|
5
|
+
export { MobileEmailPreview } from './components/EmailEditor/components/MobileEmailPreview';
|
|
6
|
+
export { DesktopEmailPreview } from './components/EmailEditor/components/DesktopEmailPreview';
|
|
7
|
+
export { ToolsPanel } from './components/EmailEditor/components/ToolsPanel';
|
|
8
|
+
export * from './utils/index';
|
|
9
|
+
export { useActiveTab } from './hooks/useActiveTab';
|
|
10
|
+
export { useEditorProps } from './hooks/useEditorProps';
|
|
11
|
+
export { useBlock } from './hooks/useBlock';
|
|
12
|
+
export { useEditorContext } from './hooks/useEditorContext';
|
|
13
|
+
export { useDomScrollHeight } from './hooks/useDomScrollHeight';
|
|
14
|
+
export { useRefState } from './hooks/useRefState';
|
|
15
|
+
export { useLazyState } from './hooks/useLazyState';
|
|
16
|
+
export { useFocusBlockLayout } from './hooks/useFocusBlockLayout';
|
|
17
|
+
export * from './hooks/useDataTransfer';
|
|
18
|
+
export * from './hooks/useFocusIdx';
|
|
19
|
+
export * from './hooks/useHoverIdx';
|
|
20
|
+
export { ActiveTabKeys } from './components/Provider/BlocksProvider';
|
|
21
|
+
export { IconFont } from './components/IconFont';
|
|
22
|
+
export { TextStyle } from './components/UI/TextStyle';
|
|
23
|
+
export { Stack } from './components/UI/Stack';
|
|
24
|
+
export { Tabs, TabPane } from './components/UI/Tabs';
|
|
25
|
+
export * from './typings';
|
|
26
|
+
export type { StackProps } from './components/UI/Stack';
|
|
27
|
+
export type { PropsProviderProps } from './components/Provider/PropsProvider';
|
|
28
|
+
export { AvailableTools } from './components/Provider/PropsProvider';
|
|
29
|
+
export type { BlockAvatarWrapperProps } from './components/wrapper';
|
|
30
|
+
export type { BlockGroup, CollectedBlock } from './components/Provider/PropsProvider';
|
|
31
|
+
export * from './constants';
|