easy-email-extensions 3.1.10 → 3.1.13

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.
Files changed (147) hide show
  1. package/package.json +2 -2
  2. package/readme.md +138 -138
  3. package/lib/AttributePanel/AttributePanel.d.ts +0 -3
  4. package/lib/AttributePanel/components/UI/Help/index.d.ts +0 -7
  5. package/lib/AttributePanel/components/UI/HtmlEditor.d.ts +0 -5
  6. package/lib/AttributePanel/components/attributes/Align.d.ts +0 -3
  7. package/lib/AttributePanel/components/attributes/AttributesPanelWrapper/index.d.ts +0 -6
  8. package/lib/AttributePanel/components/attributes/Background.d.ts +0 -1
  9. package/lib/AttributePanel/components/attributes/BackgroundColor.d.ts +0 -3
  10. package/lib/AttributePanel/components/attributes/Border.d.ts +0 -1
  11. package/lib/AttributePanel/components/attributes/BorderColor.d.ts +0 -1
  12. package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +0 -5
  13. package/lib/AttributePanel/components/attributes/BorderWidth.d.ts +0 -1
  14. package/lib/AttributePanel/components/attributes/Color.d.ts +0 -4
  15. package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +0 -3
  16. package/lib/AttributePanel/components/attributes/Decoration.d.ts +0 -1
  17. package/lib/AttributePanel/components/attributes/Direction.d.ts +0 -1
  18. package/lib/AttributePanel/components/attributes/FontFamily.d.ts +0 -1
  19. package/lib/AttributePanel/components/attributes/FontSize.d.ts +0 -1
  20. package/lib/AttributePanel/components/attributes/FontStyle.d.ts +0 -1
  21. package/lib/AttributePanel/components/attributes/FontWeight.d.ts +0 -1
  22. package/lib/AttributePanel/components/attributes/Height.d.ts +0 -3
  23. package/lib/AttributePanel/components/attributes/LetterSpacing.d.ts +0 -1
  24. package/lib/AttributePanel/components/attributes/LineHeight.d.ts +0 -1
  25. package/lib/AttributePanel/components/attributes/Link.d.ts +0 -1
  26. package/lib/AttributePanel/components/attributes/Margin.d.ts +0 -1
  27. package/lib/AttributePanel/components/attributes/MergeTags.d.ts +0 -6
  28. package/lib/AttributePanel/components/attributes/NavbarLinkPadding.d.ts +0 -3
  29. package/lib/AttributePanel/components/attributes/Padding.d.ts +0 -5
  30. package/lib/AttributePanel/components/attributes/TextAlign.d.ts +0 -1
  31. package/lib/AttributePanel/components/attributes/TextDecoration.d.ts +0 -1
  32. package/lib/AttributePanel/components/attributes/TextTransform.d.ts +0 -1
  33. package/lib/AttributePanel/components/attributes/VerticalAlign.d.ts +0 -3
  34. package/lib/AttributePanel/components/attributes/Width.d.ts +0 -5
  35. package/lib/AttributePanel/components/attributes/index.d.ts +0 -29
  36. package/lib/AttributePanel/components/blocks/Accordion/index.d.ts +0 -1
  37. package/lib/AttributePanel/components/blocks/AccordionElement/index.d.ts +0 -1
  38. package/lib/AttributePanel/components/blocks/AccordionText/index.d.ts +0 -1
  39. package/lib/AttributePanel/components/blocks/AccordionTitle/index.d.ts +0 -1
  40. package/lib/AttributePanel/components/blocks/Button/index.d.ts +0 -1
  41. package/lib/AttributePanel/components/blocks/Carousel/index.d.ts +0 -1
  42. package/lib/AttributePanel/components/blocks/Column/index.d.ts +0 -1
  43. package/lib/AttributePanel/components/blocks/Divider/index.d.ts +0 -1
  44. package/lib/AttributePanel/components/blocks/Group/index.d.ts +0 -1
  45. package/lib/AttributePanel/components/blocks/Hero/index.d.ts +0 -1
  46. package/lib/AttributePanel/components/blocks/Image/index.d.ts +0 -1
  47. package/lib/AttributePanel/components/blocks/Navbar/index.d.ts +0 -1
  48. package/lib/AttributePanel/components/blocks/Page/index.d.ts +0 -1
  49. package/lib/AttributePanel/components/blocks/Raw/index.d.ts +0 -1
  50. package/lib/AttributePanel/components/blocks/Section/index.d.ts +0 -1
  51. package/lib/AttributePanel/components/blocks/Social/index.d.ts +0 -1
  52. package/lib/AttributePanel/components/blocks/Spacer/index.d.ts +0 -1
  53. package/lib/AttributePanel/components/blocks/Table/index.d.ts +0 -1
  54. package/lib/AttributePanel/components/blocks/Text/index.d.ts +0 -1
  55. package/lib/AttributePanel/components/blocks/Wrapper/index.d.ts +0 -1
  56. package/lib/AttributePanel/components/blocks/index.d.ts +0 -42
  57. package/lib/AttributePanel/components/provider/PresetColorsProvider/index.d.ts +0 -6
  58. package/lib/AttributePanel/components/provider/SelectionRangeProvider/index.d.ts +0 -6
  59. package/lib/AttributePanel/hooks/useSelectionRange.d.ts +0 -6
  60. package/lib/AttributePanel/index.d.ts +0 -3
  61. package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +0 -10
  62. package/lib/AttributePanel/utils/InputNumberAdapter.d.ts +0 -2
  63. package/lib/AttributePanel/utils/PromiseEach.d.ts +0 -1
  64. package/lib/AttributePanel/utils/Uploader.d.ts +0 -35
  65. package/lib/AttributePanel/utils/awaitForElement.d.ts +0 -4
  66. package/lib/AttributePanel/utils/classnames.d.ts +0 -1
  67. package/lib/AttributePanel/utils/getIconNameByBlockType.d.ts +0 -1
  68. package/lib/AttributePanel/utils/getImg.d.ts +0 -8
  69. package/lib/AttributePanel/utils/onDrag.d.ts +0 -10
  70. package/lib/AttributePanel/utils/previewLoadImage.d.ts +0 -1
  71. package/lib/BlockLayer/components/BlockTree/index.d.ts +0 -51
  72. package/lib/BlockLayer/components/BlockTree/transparentImage.d.ts +0 -1
  73. package/lib/BlockLayer/components/ContextMenu/index.d.ts +0 -14
  74. package/lib/BlockLayer/components/EyeIcon/index.d.ts +0 -7
  75. package/lib/BlockLayer/hooks/useAvatarWrapperDrop.d.ts +0 -24
  76. package/lib/BlockLayer/index.d.ts +0 -10
  77. package/lib/InteractivePrompt/components/FocusTooltip.d.ts +0 -1
  78. package/lib/InteractivePrompt/components/HoverTooltip.d.ts +0 -1
  79. package/lib/InteractivePrompt/components/Toolbar.d.ts +0 -5
  80. package/lib/InteractivePrompt/index.d.ts +0 -1
  81. package/lib/InteractivePrompt/utils/awaitForElement.d.ts +0 -4
  82. package/lib/ShortcutToolbar/ShortcutToolbar.d.ts +0 -1
  83. package/lib/ShortcutToolbar/components/BlockMaskWrapper/index.d.ts +0 -6
  84. package/lib/ShortcutToolbar/components/BlocksPanel/index.d.ts +0 -2
  85. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/AccordionBlockItem/index.d.ts +0 -1
  86. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ButtonBlockItem/index.d.ts +0 -1
  87. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/CarouselBlockItem/index.d.ts +0 -1
  88. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ColumnBlockItem/index.d.ts +0 -1
  89. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/DividerBlockItem/index.d.ts +0 -1
  90. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/GroupBlockItem/index.d.ts +0 -1
  91. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/HeroBlockItem/index.d.ts +0 -1
  92. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/ImageBlockItem/index.d.ts +0 -1
  93. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/NavbarBlockItem/index.d.ts +0 -1
  94. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/RawBlockItem/index.d.ts +0 -1
  95. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SectionBlockItem/index.d.ts +0 -1
  96. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SocialBlockItem/index.d.ts +0 -1
  97. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/SpacerBlockItem/index.d.ts +0 -1
  98. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/TextBlockItem/index.d.ts +0 -1
  99. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/WrapperBlockItem/index.d.ts +0 -1
  100. package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +0 -18
  101. package/lib/ShortcutToolbar/components/Picture/index.d.ts +0 -7
  102. package/lib/ShortcutToolbar/index.d.ts +0 -4
  103. package/lib/ShortcutToolbar/utils/BlockMarketManager.d.ts +0 -32
  104. package/lib/ShortcutToolbar/utils/getImg.d.ts +0 -68
  105. package/lib/SimpleLayout/SimpleLayout.d.ts +0 -2
  106. package/lib/SimpleLayout/index.d.ts +0 -1
  107. package/lib/SourceCodePanel/index.d.ts +0 -1
  108. package/lib/components/AddToCollection/index.d.ts +0 -5
  109. package/lib/components/Form/AddFont.d.ts +0 -1
  110. package/lib/components/Form/AutoComplete.d.ts +0 -11
  111. package/lib/components/Form/CheckBoxGroup.d.ts +0 -14
  112. package/lib/components/Form/CodemirrorEditor/index.d.ts +0 -8
  113. package/lib/components/Form/ColorPicker.d.ts +0 -10
  114. package/lib/components/Form/EditTab.d.ts +0 -10
  115. package/lib/components/Form/ImageUploader/index.d.ts +0 -8
  116. package/lib/components/Form/InlineTextField/index.d.ts +0 -7
  117. package/lib/components/Form/Input.d.ts +0 -7
  118. package/lib/components/Form/InputWithUnit.d.ts +0 -10
  119. package/lib/components/Form/RadioGroup.d.ts +0 -13
  120. package/lib/components/Form/RichTextField/index.d.ts +0 -2
  121. package/lib/components/Form/RichTextToolBar/RichTextToolBar.d.ts +0 -3
  122. package/lib/components/Form/RichTextToolBar/components/FontFamily/index.d.ts +0 -3
  123. package/lib/components/Form/RichTextToolBar/components/FontSizeList/index.d.ts +0 -3
  124. package/lib/components/Form/RichTextToolBar/components/Heading/index.d.ts +0 -3
  125. package/lib/components/Form/RichTextToolBar/components/Link/index.d.ts +0 -12
  126. package/lib/components/Form/RichTextToolBar/components/ToolItem/index.d.ts +0 -7
  127. package/lib/components/Form/RichTextToolBar/components/Tools/Tools.d.ts +0 -5
  128. package/lib/components/Form/RichTextToolBar/components/Tools/index.d.ts +0 -1
  129. package/lib/components/Form/RichTextToolBar/index.d.ts +0 -1
  130. package/lib/components/Form/Select.d.ts +0 -11
  131. package/lib/components/Form/UploadField.d.ts +0 -8
  132. package/lib/components/Form/enhancer.d.ts +0 -20
  133. package/lib/components/Form/index.d.ts +0 -32
  134. package/lib/components/RenderCount/index.d.ts +0 -1
  135. package/lib/components/ShadowDom/index.d.ts +0 -2
  136. package/lib/hooks/useAddToCollection.d.ts +0 -6
  137. package/lib/index.d.ts +0 -9
  138. package/lib/index.js +0 -7
  139. package/lib/index.js.map +0 -1
  140. package/lib/index2.js +0 -45220
  141. package/lib/index2.js.map +0 -1
  142. package/lib/index3.js +0 -11645
  143. package/lib/index3.js.map +0 -1
  144. package/lib/style.css +0 -1
  145. package/lib/utils/awaitForElement.d.ts +0 -4
  146. package/lib/utils/classnames.d.ts +0 -1
  147. package/lib/utils/getContextMergeTags.d.ts +0 -7
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "easy-email-extensions",
3
3
  "license": "MIT",
4
4
  "description": "Email editor",
5
- "version": "3.1.10",
5
+ "version": "3.1.13",
6
6
  "author": "m-Ryan",
7
7
  "repository": {
8
8
  "type": "git",
@@ -81,5 +81,5 @@
81
81
  "react-dom": "^17.0.2",
82
82
  "react-final-form": "^6.5.7"
83
83
  },
84
- "gitHead": "d7d88713ca9ed6489507d37515c67fa31a8aea34"
84
+ "gitHead": "1eeea30006df18e744f2191da42dc95094448fdb"
85
85
  }
package/readme.md CHANGED
@@ -1,138 +1,138 @@
1
- # Easy-email-extensions
2
-
3
- ## Introduction
4
-
5
- Provide default UI components, when they don’t meet your needs, you can refer to it and write your own
6
-
7
- ## usage
8
-
9
- ```sh
10
- $ npm install --save easy-email-extensions
11
- ```
12
-
13
- or
14
-
15
- ```sh
16
- $ yarn add easy-email-extensions
17
- ```
18
-
19
- ```js
20
- import React from 'react';
21
- import { BlockManager, BasicType } from 'easy-email-core';
22
- import { EmailEditor, EmailEditorProvider } from 'easy-email-editor';
23
- import { SimpleLayout } from 'easy-email-extensions';
24
-
25
- import 'easy-email-editor/lib/style.css';
26
- import 'easy-email-extensions/lib/style.css';
27
-
28
- const initialValues = {
29
- subject: 'Welcome to Easy-email',
30
- subTitle: 'Nice to meet you!',
31
- content: BlockManager.getBlockByType(BasicType.PAGE)!.create({}),
32
- };
33
-
34
- export function App() {
35
- return (
36
- <EmailEditorProvider
37
- data={initialValues}
38
- height={'calc(100vh - 72px)'}
39
- autoComplete
40
- dashed={false}
41
- >
42
- {({ values }) => {
43
- return (
44
- <SimpleLayout>
45
- <EmailEditor />
46
- </SimpleLayout>
47
- );
48
- }}
49
- </EmailEditorProvider>
50
- );
51
- }
52
- ```
53
-
54
- ## Extensions
55
-
56
- - `AttributePanel`
57
-
58
- - Basic block configuration panel
59
-
60
- - <img src="https://assets.maocanhua.cn/3e74a61d-ab22-4cf3-afc9-d511b82e08cd-image.png" alt="AttributePanel">
61
-
62
- - You can add or overwrite
63
-
64
- ```tsx
65
- import { BlockAttributeConfigurationManager } from "easy-email-extensions";
66
-
67
- BlockAttributeConfigurationManager.add({
68
- [BasicType.TEXT]: () => <div>will be overwrite `Text`</div>,
69
- });
70
- ```
71
-
72
- - `InteractivePrompt`
73
-
74
- - block hover and focus style
75
-
76
- - <img src="https://assets.maocanhua.cn/298d72d6-a509-4cd2-85c7-dfb915971620-image.png" alt="InteractivePrompt">
77
-
78
- - No configuration items
79
-
80
- - `BlockLayer`
81
-
82
- - <img src="https://assets.maocanhua.cn/de1f5211-350e-43c9-9c99-d97a2f196e04-image.png" alt="ShortcutToolbar">
83
- - No configuration items
84
-
85
- - `ShortcutToolbar`
86
-
87
- - <img src="https://assets.maocanhua.cn/f0e2ccc6-0627-472b-ad78-bc92bdb46ad1-image.png">
88
- - You can add or overwrite popover's preset blocks
89
-
90
- ```tsx
91
- import { BasicType } from "easy-email-core";
92
- import {
93
- BlockMarketManager,
94
- BlockMaskWrapper,
95
- } from "easy-email-extensions";
96
-
97
- BlockMarketManager.addCategories([
98
- {
99
- title: "Custom",
100
- name: "custom",
101
- blocks: [
102
- {
103
- type: BasicType.TEXT,
104
- title: "Text",
105
- description: "This block allows you to display text in your email.",
106
- component: () => {
107
- return (
108
- <BlockMaskWrapper
109
- type={BasicType.TEXT}
110
- payload={{
111
- attributes: {
112
- "font-size": "20px",
113
- align: "center",
114
- padding: "0px 0px 0px 0px",
115
- color: "#4A90E2",
116
- },
117
- data: {
118
- value: {
119
- content: "20px",
120
- },
121
- },
122
- }}
123
- >
124
- <div style={{ fontSize: 20, width: "100%", paddingLeft: 20 }}>
125
- 20px
126
- </div>
127
- </BlockMaskWrapper>
128
- );
129
- },
130
- },
131
- ],
132
- },
133
- ]);
134
- ```
135
-
136
- - `SimpleLayout`
137
-
138
- - All in one extension, provide basic and complete layout example. Refer to the above extension for configuration items.
1
+ # Easy-email-extensions
2
+
3
+ ## Introduction
4
+
5
+ Provide default UI components, when they don’t meet your needs, you can refer to it and write your own
6
+
7
+ ## usage
8
+
9
+ ```sh
10
+ $ npm install --save easy-email-extensions
11
+ ```
12
+
13
+ or
14
+
15
+ ```sh
16
+ $ yarn add easy-email-extensions
17
+ ```
18
+
19
+ ```js
20
+ import React from 'react';
21
+ import { BlockManager, BasicType } from 'easy-email-core';
22
+ import { EmailEditor, EmailEditorProvider } from 'easy-email-editor';
23
+ import { SimpleLayout } from 'easy-email-extensions';
24
+
25
+ import 'easy-email-editor/lib/style.css';
26
+ import 'easy-email-extensions/lib/style.css';
27
+
28
+ const initialValues = {
29
+ subject: 'Welcome to Easy-email',
30
+ subTitle: 'Nice to meet you!',
31
+ content: BlockManager.getBlockByType(BasicType.PAGE)!.create({}),
32
+ };
33
+
34
+ export function App() {
35
+ return (
36
+ <EmailEditorProvider
37
+ data={initialValues}
38
+ height={'calc(100vh - 72px)'}
39
+ autoComplete
40
+ dashed={false}
41
+ >
42
+ {({ values }) => {
43
+ return (
44
+ <SimpleLayout>
45
+ <EmailEditor />
46
+ </SimpleLayout>
47
+ );
48
+ }}
49
+ </EmailEditorProvider>
50
+ );
51
+ }
52
+ ```
53
+
54
+ ## Extensions
55
+
56
+ - `AttributePanel`
57
+
58
+ - Basic block configuration panel
59
+
60
+ - <img src="https://assets.maocanhua.cn/3e74a61d-ab22-4cf3-afc9-d511b82e08cd-image.png" alt="AttributePanel">
61
+
62
+ - You can add or overwrite
63
+
64
+ ```tsx
65
+ import { BlockAttributeConfigurationManager } from "easy-email-extensions";
66
+
67
+ BlockAttributeConfigurationManager.add({
68
+ [BasicType.TEXT]: () => <div>will be overwrite `Text`</div>,
69
+ });
70
+ ```
71
+
72
+ - `InteractivePrompt`
73
+
74
+ - block hover and focus style
75
+
76
+ - <img src="https://assets.maocanhua.cn/298d72d6-a509-4cd2-85c7-dfb915971620-image.png" alt="InteractivePrompt">
77
+
78
+ - No configuration items
79
+
80
+ - `BlockLayer`
81
+
82
+ - <img src="https://assets.maocanhua.cn/de1f5211-350e-43c9-9c99-d97a2f196e04-image.png" alt="ShortcutToolbar">
83
+ - No configuration items
84
+
85
+ - `ShortcutToolbar`
86
+
87
+ - <img src="https://assets.maocanhua.cn/f0e2ccc6-0627-472b-ad78-bc92bdb46ad1-image.png">
88
+ - You can add or overwrite popover's preset blocks
89
+
90
+ ```tsx
91
+ import { BasicType } from "easy-email-core";
92
+ import {
93
+ BlockMarketManager,
94
+ BlockMaskWrapper,
95
+ } from "easy-email-extensions";
96
+
97
+ BlockMarketManager.addCategories([
98
+ {
99
+ title: "Custom",
100
+ name: "custom",
101
+ blocks: [
102
+ {
103
+ type: BasicType.TEXT,
104
+ title: "Text",
105
+ description: "This block allows you to display text in your email.",
106
+ component: () => {
107
+ return (
108
+ <BlockMaskWrapper
109
+ type={BasicType.TEXT}
110
+ payload={{
111
+ attributes: {
112
+ "font-size": "20px",
113
+ align: "center",
114
+ padding: "0px 0px 0px 0px",
115
+ color: "#4A90E2",
116
+ },
117
+ data: {
118
+ value: {
119
+ content: "20px",
120
+ },
121
+ },
122
+ }}
123
+ >
124
+ <div style={{ fontSize: 20, width: "100%", paddingLeft: 20 }}>
125
+ 20px
126
+ </div>
127
+ </BlockMaskWrapper>
128
+ );
129
+ },
130
+ },
131
+ ],
132
+ },
133
+ ]);
134
+ ```
135
+
136
+ - `SimpleLayout`
137
+
138
+ - All in one extension, provide basic and complete layout example. Refer to the above extension for configuration items.
@@ -1,3 +0,0 @@
1
- export interface AttributePanelProps {
2
- }
3
- export declare function AttributePanel(): JSX.Element | null;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { TooltipProps } from '@arco-design/web-react';
3
- export declare function Help(props: TooltipProps & Partial<{
4
- style: Partial<React.CSSProperties>;
5
- }> & {
6
- title: React.ReactNode;
7
- }): JSX.Element;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const HtmlEditor: React.FC<{
3
- visible: boolean;
4
- setVisible: (v: boolean) => void;
5
- }>;
@@ -1,3 +0,0 @@
1
- export declare function Align({ inline }: {
2
- inline?: boolean;
3
- }): JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface AttributesPanelWrapper {
3
- style?: React.CSSProperties;
4
- extra?: React.ReactNode;
5
- }
6
- export declare const AttributesPanelWrapper: React.FC<AttributesPanelWrapper>;
@@ -1 +0,0 @@
1
- export declare function Background(): JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare function BackgroundColor({ title, }: {
2
- title?: string;
3
- }): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Border(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function BorderColor(): JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const borderStyleOptions: {
2
- value: string;
3
- label: string;
4
- }[];
5
- export declare function BorderStyle(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function BorderWidth(): JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare function Color({ title, }: {
2
- title?: string;
3
- inline?: boolean;
4
- }): JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare function ContainerBackgroundColor({ title, }: {
2
- title?: string;
3
- }): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Decoration(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Direction(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function FontFamily(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function FontSize(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function FontStyle(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function FontWeight(): JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare function Height({ inline }: {
2
- inline?: boolean;
3
- }): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function LetterSpacing(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function LineHeight(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Link(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Margin(): JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare const MergeTags: React.FC<{
3
- onChange: (v: string) => void;
4
- value: string;
5
- isSelect?: boolean;
6
- }>;
@@ -1,3 +0,0 @@
1
- export declare function NavbarLinkPadding({ name }: {
2
- name: string;
3
- }): JSX.Element;
@@ -1,5 +0,0 @@
1
- export interface PaddingProps {
2
- title?: string;
3
- attributeName?: 'padding' | 'inner-padding' | 'text-padding';
4
- }
5
- export declare function Padding(props?: PaddingProps): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function TextAlign(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function TextDecoration(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function TextTransform(): JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare function VerticalAlign({ attributeName, }: {
2
- attributeName?: string;
3
- }): JSX.Element;
@@ -1,5 +0,0 @@
1
- import { InputWithUnitProps } from '@extensions/components/Form/InputWithUnit';
2
- export declare function Width({ inline, unitOptions, }: {
3
- inline?: boolean;
4
- unitOptions?: InputWithUnitProps['unitOptions'];
5
- }): JSX.Element;
@@ -1,29 +0,0 @@
1
- export { Align } from './Align';
2
- export { Color } from './Color';
3
- export { Height } from './Height';
4
- export { TextAlign } from './TextAlign';
5
- export { AttributesPanelWrapper } from './AttributesPanelWrapper';
6
- export { ContainerBackgroundColor } from './ContainerBackgroundColor';
7
- export { LetterSpacing } from './LetterSpacing';
8
- export { TextDecoration } from './TextDecoration';
9
- export { Background } from './Background';
10
- export { Decoration } from './Decoration';
11
- export { LineHeight } from './LineHeight';
12
- export { TextTransform } from './TextTransform';
13
- export { BackgroundColor } from './BackgroundColor';
14
- export { Direction } from './Direction';
15
- export { Link } from './Link';
16
- export { VerticalAlign } from './VerticalAlign';
17
- export { Border } from './Border';
18
- export { FontFamily } from './FontFamily';
19
- export { Margin } from './Margin';
20
- export { Width } from './Width';
21
- export { BorderColor } from './BorderColor';
22
- export { FontSize } from './FontSize';
23
- export { MergeTags } from './MergeTags';
24
- export { BorderStyle } from './BorderStyle';
25
- export { FontStyle } from './FontStyle';
26
- export { NavbarLinkPadding } from './NavbarLinkPadding';
27
- export { BorderWidth } from './BorderWidth';
28
- export { FontWeight } from './FontWeight';
29
- export { Padding } from './Padding';
@@ -1 +0,0 @@
1
- export declare function Accordion(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function AccordionElement(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function AccordionText(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function AccordionTitle(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Button(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Carousel(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Column(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Divider(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Group(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Hero(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Image(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Navbar(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Page(): JSX.Element | null;
@@ -1 +0,0 @@
1
- export declare function Raw(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Section(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Social(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Spacer(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Table(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Text(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Wrapper(): JSX.Element;
@@ -1,42 +0,0 @@
1
- import { Page } from './Page';
2
- import { Section } from './Section';
3
- import { Column } from './Column';
4
- import { Text } from './Text';
5
- import { Image } from './Image';
6
- import { Group } from './Group';
7
- import { Button } from './Button';
8
- import { Divider } from './Divider';
9
- import { Wrapper } from './Wrapper';
10
- import { Spacer } from './Spacer';
11
- import { Raw } from './Raw';
12
- import { Accordion } from './Accordion';
13
- import { AccordionElement } from './AccordionElement';
14
- import { AccordionTitle } from './AccordionTitle';
15
- import { AccordionText } from './AccordionText';
16
- import { Carousel } from './Carousel';
17
- import { Hero } from './Hero';
18
- import { Navbar } from './Navbar';
19
- import { Social } from './Social';
20
- import { Table } from './Table';
21
- export declare const blocks: {
22
- page: typeof Page;
23
- section: typeof Section;
24
- column: typeof Column;
25
- text: typeof Text;
26
- image: typeof Image;
27
- group: typeof Group;
28
- button: typeof Button;
29
- divider: typeof Divider;
30
- wrapper: typeof Wrapper;
31
- spacer: typeof Spacer;
32
- raw: typeof Raw;
33
- accordion: typeof Accordion;
34
- "accordion-element": typeof AccordionElement;
35
- "accordion-title": typeof AccordionTitle;
36
- "accordion-text": typeof AccordionText;
37
- carousel: typeof Carousel;
38
- hero: typeof Hero;
39
- navbar: typeof Navbar;
40
- social: typeof Social;
41
- table: typeof Table;
42
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare const PresetColorsContext: React.Context<{
3
- colors: string[];
4
- addCurrentColor: (color: string) => void;
5
- }>;
6
- export declare const PresetColorsProvider: React.FC<{}>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare const SelectionRangeContext: React.Context<{
3
- selectionRange: Range | null;
4
- setSelectionRange: React.Dispatch<React.SetStateAction<Range | null>>;
5
- }>;
6
- export declare const SelectionRangeProvider: React.FC<{}>;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function useSelectionRange(): {
3
- selectionRange: Range | null;
4
- setSelectionRange: import("react").Dispatch<import("react").SetStateAction<Range | null>>;
5
- restoreRange: (range: Range) => void;
6
- };
@@ -1,3 +0,0 @@
1
- export { AttributePanel } from './AttributePanel';
2
- export { BlockAttributeConfigurationManager } from './utils/BlockAttributeConfigurationManager';
3
- export * from './components/attributes';
@@ -1,10 +0,0 @@
1
- declare type ObjectComponent = {
2
- [key: string]: () => JSX.Element | null;
3
- };
4
- export declare class BlockAttributeConfigurationManager {
5
- private static map;
6
- static add(componentMap: ObjectComponent): void;
7
- static get<T extends ObjectComponent>(name: keyof T): string;
8
- static getMap(): ObjectComponent;
9
- }
10
- export {};
@@ -1,2 +0,0 @@
1
- export declare function isNumber(num: any): num is number;
2
- export declare function InputNumberAdapter(val: string | number): string | number;
@@ -1 +0,0 @@
1
- export declare function PromiseEach(promiseLikes: PromiseLike<any>[]): Promise<unknown>;