easy-email-extensions 3.1.50 → 3.1.51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/lib/AttributePanel/AttributePanel.d.ts +3 -3
  2. package/lib/AttributePanel/components/UI/Help/index.d.ts +7 -7
  3. package/lib/AttributePanel/components/UI/HtmlEditor.d.ts +5 -5
  4. package/lib/AttributePanel/components/attributes/Align.d.ts +3 -3
  5. package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +6 -6
  6. package/lib/AttributePanel/components/attributes/Background.d.ts +1 -1
  7. package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +3 -3
  8. package/lib/AttributePanel/components/attributes/Border.d.ts +1 -1
  9. package/lib/AttributePanel/components/attributes/BorderColor.d.ts +1 -1
  10. package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +5 -5
  11. package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +1 -1
  12. package/lib/AttributePanel/components/attributes/Color.d.ts +4 -4
  13. package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +3 -3
  14. package/lib/AttributePanel/components/attributes/Decoration.d.ts +1 -1
  15. package/lib/AttributePanel/components/attributes/Direction.d.ts +1 -1
  16. package/lib/AttributePanel/components/attributes/FontFamily.d.ts +1 -1
  17. package/lib/AttributePanel/components/attributes/FontSize.d.ts +1 -1
  18. package/lib/AttributePanel/components/attributes/FontStyle.d.ts +1 -1
  19. package/lib/AttributePanel/components/attributes/FontWeight.d.ts +1 -1
  20. package/lib/AttributePanel/components/attributes/Height.d.ts +3 -3
  21. package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +1 -1
  22. package/lib/AttributePanel/components/attributes/LineHeight.d.ts +1 -1
  23. package/lib/AttributePanel/components/attributes/Link.d.ts +1 -1
  24. package/lib/AttributePanel/components/attributes/Margin.d.ts +1 -1
  25. package/lib/AttributePanel/components/attributes/MergeTags.d.ts +6 -6
  26. package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +3 -3
  27. package/lib/AttributePanel/components/attributes/Padding.d.ts +5 -5
  28. package/lib/AttributePanel/components/attributes/TextAlign.d.ts +1 -1
  29. package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +1 -1
  30. package/lib/AttributePanel/components/attributes/TextTransform.d.ts +1 -1
  31. package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +3 -3
  32. package/lib/AttributePanel/components/attributes/Width.d.ts +5 -5
  33. package/lib/AttributePanel/components/attributes/index.d.ts +29 -29
  34. package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +1 -1
  35. package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +1 -1
  36. package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +1 -1
  37. package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +1 -1
  38. package/lib/AttributePanel/components/blocks/Button/index.d.ts +1 -1
  39. package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +1 -1
  40. package/lib/AttributePanel/components/blocks/Column/index.d.ts +1 -1
  41. package/lib/AttributePanel/components/blocks/Divider/index.d.ts +1 -1
  42. package/lib/AttributePanel/components/blocks/Group/index.d.ts +1 -1
  43. package/lib/AttributePanel/components/blocks/Hero/index.d.ts +1 -1
  44. package/lib/AttributePanel/components/blocks/Image/index.d.ts +1 -1
  45. package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +1 -1
  46. package/lib/AttributePanel/components/blocks/Page/index.d.ts +1 -1
  47. package/lib/AttributePanel/components/blocks/Raw/index.d.ts +1 -1
  48. package/lib/AttributePanel/components/blocks/Section/index.d.ts +1 -1
  49. package/lib/AttributePanel/components/blocks/Social/index.d.ts +1 -1
  50. package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +1 -1
  51. package/lib/AttributePanel/components/blocks/Table/index.d.ts +1 -1
  52. package/lib/AttributePanel/components/blocks/Text/index.d.ts +1 -1
  53. package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +1 -1
  54. package/lib/AttributePanel/components/blocks/index.d.ts +42 -42
  55. package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +6 -6
  56. package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +6 -6
  57. package/lib/AttributePanel/hooks/useSelectionRange.d.ts +6 -6
  58. package/lib/AttributePanel/index.d.ts +3 -3
  59. package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +10 -10
  60. package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +2 -2
  61. package/lib/AttributePanel/utils/PromiseEach.d.ts +1 -1
  62. package/lib/AttributePanel/utils/Uploader.d.ts +35 -35
  63. package/lib/AttributePanel/utils/awaitForElement.d.ts +4 -4
  64. package/lib/AttributePanel/utils/classnames.d.ts +1 -1
  65. package/lib/AttributePanel/utils/getImg.d.ts +8 -8
  66. package/lib/AttributePanel/utils/onDrag.d.ts +10 -10
  67. package/lib/AttributePanel/utils/previewLoadImage.d.ts +1 -1
  68. package/lib/BlockLayer/components/BlockTree/index.d.ts +51 -51
  69. package/lib/BlockLayer/components/BlockTree/transparentImage.d.ts +1 -1
  70. package/lib/BlockLayer/components/ContextMenu/index.d.ts +14 -14
  71. package/lib/BlockLayer/components/EyeIcon/index.d.ts +7 -7
  72. package/lib/BlockLayer/hooks/useAvatarWrapperDrop.d.ts +24 -24
  73. package/lib/BlockLayer/index.d.ts +13 -13
  74. package/lib/InteractivePrompt/components/FocusTooltip.d.ts +1 -1
  75. package/lib/InteractivePrompt/components/HoverTooltip.d.ts +1 -1
  76. package/lib/InteractivePrompt/components/Toolbar.d.ts +1 -1
  77. package/lib/InteractivePrompt/index.d.ts +1 -1
  78. package/lib/InteractivePrompt/utils/awaitForElement.d.ts +4 -4
  79. package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +1 -1
  80. package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +6 -6
  81. package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +2 -2
  82. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +1 -1
  83. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +1 -1
  84. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +1 -1
  85. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +1 -1
  86. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +1 -1
  87. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +1 -1
  88. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +1 -1
  89. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +1 -1
  90. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +1 -1
  91. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +1 -1
  92. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +1 -1
  93. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +1 -1
  94. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +1 -1
  95. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +1 -1
  96. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +1 -1
  97. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +18 -18
  98. package/lib/ShortcutToolbar/components/Picture/index.d.ts +7 -7
  99. package/lib/ShortcutToolbar/index.d.ts +4 -4
  100. package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +32 -32
  101. package/lib/ShortcutToolbar/utils/getImg.d.ts +68 -68
  102. package/lib/SimpleLayout/SimpleLayout.d.ts +5 -5
  103. package/lib/SimpleLayout/index.d.ts +1 -1
  104. package/lib/SourceCodePanel/index.d.ts +1 -1
  105. package/lib/components/AddToCollection/index.d.ts +5 -5
  106. package/lib/components/Form/AddFont.d.ts +1 -1
  107. package/lib/components/Form/AutoComplete.d.ts +11 -11
  108. package/lib/components/Form/CheckBoxGroup.d.ts +14 -14
  109. package/lib/components/Form/CodemirrorEditor/index.d.ts +8 -8
  110. package/lib/components/Form/ColorPicker.d.ts +10 -10
  111. package/lib/components/Form/EditTab.d.ts +10 -10
  112. package/lib/components/Form/ImageUploader/index.d.ts +8 -8
  113. package/lib/components/Form/InlineTextField/index.d.ts +7 -7
  114. package/lib/components/Form/Input.d.ts +7 -7
  115. package/lib/components/Form/InputWithUnit.d.ts +10 -10
  116. package/lib/components/Form/RadioGroup.d.ts +13 -13
  117. package/lib/components/Form/RichTextField/index.d.ts +2 -2
  118. package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +3 -3
  119. package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +3 -3
  120. package/lib/components/Form/RichTextToolBar/components/FontSizeList/index.d.ts +3 -3
  121. package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +3 -3
  122. package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +12 -12
  123. package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +7 -7
  124. package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +5 -5
  125. package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +1 -1
  126. package/lib/components/Form/RichTextToolBar/index.d.ts +1 -1
  127. package/lib/components/Form/Select.d.ts +11 -11
  128. package/lib/components/Form/UploadField.d.ts +8 -8
  129. package/lib/components/Form/enhancer.d.ts +20 -20
  130. package/lib/components/Form/index.d.ts +32 -32
  131. package/lib/components/RenderCount/index.d.ts +1 -1
  132. package/lib/components/ShadowDom/index.d.ts +2 -2
  133. package/lib/hooks/useAddToCollection.d.ts +6 -6
  134. package/lib/index.d.ts +11 -11
  135. package/lib/index2.js +1 -1
  136. package/lib/index2.js.map +1 -1
  137. package/lib/index3.js.map +1 -1
  138. package/lib/utils/awaitForElement.d.ts +4 -4
  139. package/lib/utils/classnames.d.ts +1 -1
  140. package/lib/utils/getBlockTitle.d.ts +2 -2
  141. package/lib/utils/getContextMergeTags.d.ts +7 -7
  142. package/lib/utils/getIconNameByBlockType.d.ts +1 -1
  143. package/lib/utils/getPreviewClassName.d.ts +1 -1
  144. package/package.json +2 -2
  145. package/readme.md +138 -138
@@ -1,4 +1,4 @@
1
- export declare function awaitForElement<T extends HTMLElement>(idx: string): {
2
- cancel: () => void;
3
- promise: Promise<T>;
4
- };
1
+ export declare function awaitForElement<T extends HTMLElement>(idx: string): {
2
+ cancel: () => void;
3
+ promise: Promise<T>;
4
+ };
@@ -1 +1 @@
1
- export declare function classnames(...rest: any[]): string;
1
+ export declare function classnames(...rest: any[]): string;
@@ -1,8 +1,8 @@
1
- declare const defaultImagesMap: {
2
- IMAGE_59: string;
3
- AttributePanel_01: string;
4
- AttributePanel_02: string;
5
- AttributePanel_03: string;
6
- };
7
- export declare function getImg(name: keyof typeof defaultImagesMap): string;
8
- export {};
1
+ declare const defaultImagesMap: {
2
+ IMAGE_59: string;
3
+ AttributePanel_01: string;
4
+ AttributePanel_02: string;
5
+ AttributePanel_03: string;
6
+ };
7
+ export declare function getImg(name: keyof typeof defaultImagesMap): string;
8
+ export {};
@@ -1,10 +1,10 @@
1
- export declare const isMouseEvent: (event: MouseEvent | TouchEvent) => event is MouseEvent;
2
- /**
3
- *
4
- * @param event
5
- */
6
- export declare const onDrag: ({ event, onMove, onEnd, }: {
7
- event: TouchEvent | MouseEvent;
8
- onMove: (x: number, y: number) => void;
9
- onEnd?: (() => void) | undefined;
10
- }) => void;
1
+ export declare const isMouseEvent: (event: MouseEvent | TouchEvent) => event is MouseEvent;
2
+ /**
3
+ *
4
+ * @param event
5
+ */
6
+ export declare const onDrag: ({ event, onMove, onEnd, }: {
7
+ event: TouchEvent | MouseEvent;
8
+ onMove: (x: number, y: number) => void;
9
+ onEnd?: (() => void) | undefined;
10
+ }) => void;
@@ -1 +1 @@
1
- export declare function previewLoadImage(url: string): Promise<HTMLImageElement>;
1
+ export declare function previewLoadImage(url: string): Promise<HTMLImageElement>;
@@ -1,51 +1,51 @@
1
- import React from 'react';
2
- interface TreeNode<T> {
3
- id: string;
4
- children?: T[];
5
- }
6
- export interface BlockTreeProps<T extends TreeNode<T>> {
7
- treeData: T[];
8
- selectedKeys?: string[];
9
- expandedKeys?: string[];
10
- onSelect: (selectedId: string) => void;
11
- onContextMenu?: (nodeData: T, ev: React.MouseEvent) => void;
12
- onDragStart?: () => void;
13
- onDragEnd?: () => void;
14
- onMouseLeave?: () => void;
15
- onMouseEnter?: (id: string) => void;
16
- renderTitle: (data: T) => React.ReactNode;
17
- defaultExpandAll?: boolean;
18
- allowDrop: (o: {
19
- dragNode: {
20
- type: string;
21
- } | {
22
- key: string;
23
- };
24
- dropNode: {
25
- dataRef: T;
26
- parent: T;
27
- key: string;
28
- };
29
- dropPosition: number;
30
- }) => false | {
31
- key: string;
32
- position: number;
33
- };
34
- onDrop: (o: {
35
- dragNode: {
36
- dataRef: T;
37
- parent: T;
38
- key: string;
39
- parentKey: string;
40
- };
41
- dropNode: {
42
- dataRef: T;
43
- parent: T;
44
- key: string;
45
- parentKey: string;
46
- };
47
- dropPosition: number;
48
- }) => void;
49
- }
50
- export declare function BlockTree<T extends TreeNode<T>>(props: BlockTreeProps<T>): JSX.Element;
51
- export {};
1
+ import React from 'react';
2
+ interface TreeNode<T> {
3
+ id: string;
4
+ children?: T[];
5
+ }
6
+ export interface BlockTreeProps<T extends TreeNode<T>> {
7
+ treeData: T[];
8
+ selectedKeys?: string[];
9
+ expandedKeys?: string[];
10
+ onSelect: (selectedId: string) => void;
11
+ onContextMenu?: (nodeData: T, ev: React.MouseEvent) => void;
12
+ onDragStart?: () => void;
13
+ onDragEnd?: () => void;
14
+ onMouseLeave?: () => void;
15
+ onMouseEnter?: (id: string) => void;
16
+ renderTitle: (data: T) => React.ReactNode;
17
+ defaultExpandAll?: boolean;
18
+ allowDrop: (o: {
19
+ dragNode: {
20
+ type: string;
21
+ } | {
22
+ key: string;
23
+ };
24
+ dropNode: {
25
+ dataRef: T;
26
+ parent: T;
27
+ key: string;
28
+ };
29
+ dropPosition: number;
30
+ }) => false | {
31
+ key: string;
32
+ position: number;
33
+ };
34
+ onDrop: (o: {
35
+ dragNode: {
36
+ dataRef: T;
37
+ parent: T;
38
+ key: string;
39
+ parentKey: string;
40
+ };
41
+ dropNode: {
42
+ dataRef: T;
43
+ parent: T;
44
+ key: string;
45
+ parentKey: string;
46
+ };
47
+ dropPosition: number;
48
+ }) => void;
49
+ }
50
+ export declare function BlockTree<T extends TreeNode<T>>(props: BlockTreeProps<T>): JSX.Element;
51
+ export {};
@@ -1 +1 @@
1
- export declare const transparentImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==";
1
+ export declare const transparentImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==";
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import { useBlock } from 'easy-email-editor';
3
- import { IBlockDataWithId } from '../../../BlockLayer';
4
- export declare function ContextMenu({ moveBlock, copyBlock, removeBlock, contextMenuData, onClose, }: {
5
- onClose: (ev?: React.MouseEvent) => void;
6
- moveBlock: ReturnType<typeof useBlock>['moveBlock'];
7
- copyBlock: ReturnType<typeof useBlock>['copyBlock'];
8
- removeBlock: ReturnType<typeof useBlock>['removeBlock'];
9
- contextMenuData: {
10
- blockData: IBlockDataWithId;
11
- left: number;
12
- top: number;
13
- };
14
- }): JSX.Element;
1
+ import React from 'react';
2
+ import { useBlock } from 'easy-email-editor';
3
+ import { IBlockDataWithId } from '../../../BlockLayer';
4
+ export declare function ContextMenu({ moveBlock, copyBlock, removeBlock, contextMenuData, onClose, }: {
5
+ onClose: (ev?: React.MouseEvent) => void;
6
+ moveBlock: ReturnType<typeof useBlock>['moveBlock'];
7
+ copyBlock: ReturnType<typeof useBlock>['copyBlock'];
8
+ removeBlock: ReturnType<typeof useBlock>['removeBlock'];
9
+ contextMenuData: {
10
+ blockData: IBlockDataWithId;
11
+ left: number;
12
+ top: number;
13
+ };
14
+ }): JSX.Element;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import { IBlockDataWithId } from '../..';
3
- export declare function EyeIcon({ blockData, hidden, onToggleVisible, }: {
4
- blockData: IBlockDataWithId;
5
- hidden?: boolean;
6
- onToggleVisible: (blockData: IBlockDataWithId, ev: React.MouseEvent) => void;
7
- }): JSX.Element | null;
1
+ import React from 'react';
2
+ import { IBlockDataWithId } from '../..';
3
+ export declare function EyeIcon({ blockData, hidden, onToggleVisible, }: {
4
+ blockData: IBlockDataWithId;
5
+ hidden?: boolean;
6
+ onToggleVisible: (blockData: IBlockDataWithId, ev: React.MouseEvent) => void;
7
+ }): JSX.Element | null;
@@ -1,24 +1,24 @@
1
- /// <reference types="react" />
2
- import { IBlockDataWithId } from '..';
3
- export declare function useAvatarWrapperDrop(): {
4
- setBlockLayerRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
5
- blockLayerRef: HTMLElement | null;
6
- allowDrop: (o: {
7
- dragNode: {
8
- type: string;
9
- } | {
10
- key: string;
11
- };
12
- dropNode: {
13
- dataRef: IBlockDataWithId;
14
- parent: IBlockDataWithId;
15
- key: string;
16
- };
17
- dropPosition: number;
18
- }) => false | {
19
- key: string;
20
- position: number;
21
- };
22
- removeHightLightClassName: () => void;
23
- };
24
- export declare function getDirectionFormDropPosition(position: number): "" | "top" | "bottom";
1
+ /// <reference types="react" />
2
+ import { IBlockDataWithId } from '..';
3
+ export declare function useAvatarWrapperDrop(): {
4
+ setBlockLayerRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
5
+ blockLayerRef: HTMLElement | null;
6
+ allowDrop: (o: {
7
+ dragNode: {
8
+ type: string;
9
+ } | {
10
+ key: string;
11
+ };
12
+ dropNode: {
13
+ dataRef: IBlockDataWithId;
14
+ parent: IBlockDataWithId;
15
+ key: string;
16
+ };
17
+ dropPosition: number;
18
+ }) => false | {
19
+ key: string;
20
+ position: number;
21
+ };
22
+ removeHightLightClassName: () => void;
23
+ };
24
+ export declare function getDirectionFormDropPosition(position: number): "" | "top" | "bottom";
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- import { IBlockData } from 'easy-email-core';
3
- export interface IBlockDataWithId extends IBlockData {
4
- id: string;
5
- icon?: React.ReactElement;
6
- parent: IBlockDataWithId | null;
7
- children: IBlockDataWithId[];
8
- className?: string;
9
- }
10
- export interface BlockLayerProps {
11
- renderTitle?: (block: IBlockDataWithId) => React.ReactNode;
12
- }
13
- export declare function BlockLayer(props: BlockLayerProps): JSX.Element | null;
1
+ import React from 'react';
2
+ import { IBlockData } from 'easy-email-core';
3
+ export interface IBlockDataWithId extends IBlockData {
4
+ id: string;
5
+ icon?: React.ReactElement;
6
+ parent: IBlockDataWithId | null;
7
+ children: IBlockDataWithId[];
8
+ className?: string;
9
+ }
10
+ export interface BlockLayerProps {
11
+ renderTitle?: (block: IBlockDataWithId) => React.ReactNode;
12
+ }
13
+ export declare function BlockLayer(props: BlockLayerProps): JSX.Element | null;
@@ -1 +1 @@
1
- export declare function FocusTooltip(): JSX.Element | null;
1
+ export declare function FocusTooltip(): JSX.Element | null;
@@ -1 +1 @@
1
- export declare function HoverTooltip(): JSX.Element | null;
1
+ export declare function HoverTooltip(): JSX.Element | null;
@@ -1 +1 @@
1
- export declare function Toolbar(): JSX.Element | null;
1
+ export declare function Toolbar(): JSX.Element | null;
@@ -1 +1 @@
1
- export declare function InteractivePrompt(): JSX.Element | null;
1
+ export declare function InteractivePrompt(): JSX.Element | null;
@@ -1,4 +1,4 @@
1
- export declare function awaitForElement<T extends HTMLElement>(idx: string): {
2
- cancel: () => void;
3
- promise: Promise<T>;
4
- };
1
+ export declare function awaitForElement<T extends HTMLElement>(idx: string): {
2
+ cancel: () => void;
3
+ promise: Promise<T>;
4
+ };
@@ -1 +1 @@
1
- export declare function ShortcutToolbar(): JSX.Element;
1
+ export declare function ShortcutToolbar(): JSX.Element;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { BlockType } from 'easy-email-core';
3
- export declare const BlockMaskWrapper: React.FC<{
4
- type: BlockType | string;
5
- payload: any;
6
- }>;
1
+ import React from 'react';
2
+ import { BlockType } from 'easy-email-core';
3
+ export declare const BlockMaskWrapper: React.FC<{
4
+ type: BlockType | string;
5
+ payload: any;
6
+ }>;
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const BlocksPanel: React.FC;
1
+ import React from 'react';
2
+ export declare const BlocksPanel: React.FC;
@@ -1 +1 @@
1
- export declare function AccordionBlockItem(): JSX.Element;
1
+ export declare function AccordionBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function ButtonBlockItem(): JSX.Element;
1
+ export declare function ButtonBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function CarouselBlockItem(): JSX.Element;
1
+ export declare function CarouselBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function ColumnBlockItem(): JSX.Element;
1
+ export declare function ColumnBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function DividerBlockItem(): JSX.Element;
1
+ export declare function DividerBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function GroupBlockItem(): JSX.Element;
1
+ export declare function GroupBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function HeroBlockItem(): JSX.Element;
1
+ export declare function HeroBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function ImageBlockItem(): JSX.Element;
1
+ export declare function ImageBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function NavbarBlockItem(): JSX.Element;
1
+ export declare function NavbarBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function RawBlockItem(): JSX.Element;
1
+ export declare function RawBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function SectionBlockItem(): JSX.Element;
1
+ export declare function SectionBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function SocialBlockItem(): JSX.Element;
1
+ export declare function SocialBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function SpacerBlockItem(): JSX.Element;
1
+ export declare function SpacerBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function TextBlockItem(): JSX.Element;
1
+ export declare function TextBlockItem(): JSX.Element;
@@ -1 +1 @@
1
- export declare function WrapperBlockItem(): JSX.Element;
1
+ export declare function WrapperBlockItem(): JSX.Element;
@@ -1,18 +1,18 @@
1
- import { BasicType } from 'easy-email-core';
2
- import { TextBlockItem } from './TextBlockItem';
3
- import { ImageBlockItem } from './ImageBlockItem';
4
- export declare const defaultCategories: {
5
- title: string;
6
- name: string;
7
- blocks: ({
8
- type: BasicType;
9
- title: string;
10
- description: string;
11
- component: typeof TextBlockItem;
12
- } | {
13
- type: BasicType;
14
- title: string;
15
- description: JSX.Element;
16
- component: typeof ImageBlockItem;
17
- })[];
18
- }[];
1
+ import { BasicType } from 'easy-email-core';
2
+ import { TextBlockItem } from './TextBlockItem';
3
+ import { ImageBlockItem } from './ImageBlockItem';
4
+ export declare const defaultCategories: {
5
+ title: string;
6
+ name: string;
7
+ blocks: ({
8
+ type: BasicType;
9
+ title: string;
10
+ description: string;
11
+ component: typeof TextBlockItem;
12
+ } | {
13
+ type: BasicType;
14
+ title: string;
15
+ description: JSX.Element;
16
+ component: typeof ImageBlockItem;
17
+ })[];
18
+ }[];
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- interface IPictureProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLImageElement>, HTMLElement> {
3
- src: string;
4
- className?: string;
5
- }
6
- export declare function Picture(props: IPictureProps): JSX.Element;
7
- export {};
1
+ import React from 'react';
2
+ interface IPictureProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLImageElement>, HTMLElement> {
3
+ src: string;
4
+ className?: string;
5
+ }
6
+ export declare function Picture(props: IPictureProps): JSX.Element;
7
+ export {};
@@ -1,4 +1,4 @@
1
- export { ShortcutToolbar } from './ShortcutToolbar';
2
- export { BlockMarketManager } from './utils/BlockMarketManager';
3
- export type { BlockMarketCategory } from './utils/BlockMarketManager';
4
- export { BlockMaskWrapper } from './components/BlockMaskWrapper';
1
+ export { ShortcutToolbar } from './ShortcutToolbar';
2
+ export { BlockMarketManager } from './utils/BlockMarketManager';
3
+ export type { BlockMarketCategory } from './utils/BlockMarketManager';
4
+ export { BlockMaskWrapper } from './components/BlockMaskWrapper';
@@ -1,32 +1,32 @@
1
- /// <reference types="react" />
2
- import { IBlockData } from 'easy-email-core';
3
- export interface BlockMarketCategory {
4
- name: string;
5
- title: string;
6
- blocks: {
7
- type: string;
8
- title: string;
9
- description?: React.ReactNode;
10
- thumbnail?: string;
11
- payload?: IBlockData;
12
- component: () => JSX.Element | null;
13
- }[];
14
- }
15
- export declare class BlockMarketManager {
16
- private static category;
17
- private static subscriptHandles;
18
- static subscribe(fn: (category: BlockMarketCategory[]) => void): number;
19
- static unsubscribe(fn: (category: BlockMarketCategory[]) => void): ((category: BlockMarketCategory[]) => void)[];
20
- static notify(): void;
21
- static getCategory(name: string): BlockMarketCategory | undefined;
22
- static getCategories(): BlockMarketCategory[];
23
- static addCategories(list: BlockMarketCategory[]): void;
24
- static addCategory(name: string, title: string, blocks: {
25
- type: string;
26
- title: string;
27
- description?: React.ReactNode;
28
- component: () => JSX.Element | null;
29
- }[]): void;
30
- static removeCategories(list: BlockMarketCategory[]): void;
31
- static removeCategory(name: string): void;
32
- }
1
+ /// <reference types="react" />
2
+ import { IBlockData } from 'easy-email-core';
3
+ export interface BlockMarketCategory {
4
+ name: string;
5
+ title: string;
6
+ blocks: {
7
+ type: string;
8
+ title: string;
9
+ description?: React.ReactNode;
10
+ thumbnail?: string;
11
+ payload?: IBlockData;
12
+ component: () => JSX.Element | null;
13
+ }[];
14
+ }
15
+ export declare class BlockMarketManager {
16
+ private static category;
17
+ private static subscriptHandles;
18
+ static subscribe(fn: (category: BlockMarketCategory[]) => void): number;
19
+ static unsubscribe(fn: (category: BlockMarketCategory[]) => void): ((category: BlockMarketCategory[]) => void)[];
20
+ static notify(): void;
21
+ static getCategory(name: string): BlockMarketCategory | undefined;
22
+ static getCategories(): BlockMarketCategory[];
23
+ static addCategories(list: BlockMarketCategory[]): void;
24
+ static addCategory(name: string, title: string, blocks: {
25
+ type: string;
26
+ title: string;
27
+ description?: React.ReactNode;
28
+ component: () => JSX.Element | null;
29
+ }[]): void;
30
+ static removeCategories(list: BlockMarketCategory[]): void;
31
+ static removeCategory(name: string): void;
32
+ }