@kontakto/email-template-editor 2.11.0 → 2.12.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/dist/index.cjs +859 -789
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +650 -580
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5976,6 +5976,13 @@ interface EmailEditorProviderProps {
|
|
|
5976
5976
|
declare const EmailEditorProvider: React.FC<EmailEditorProviderProps>;
|
|
5977
5977
|
declare const useEmailEditor: () => EmailEditorContextType;
|
|
5978
5978
|
|
|
5979
|
+
type CustomBlock = {
|
|
5980
|
+
label: string;
|
|
5981
|
+
icon?: React.ReactNode;
|
|
5982
|
+
blocks: Record<string, TEditorBlock>;
|
|
5983
|
+
rootBlockId: string;
|
|
5984
|
+
};
|
|
5985
|
+
|
|
5979
5986
|
type UploadedImage = {
|
|
5980
5987
|
url: string;
|
|
5981
5988
|
width?: number;
|
|
@@ -6140,7 +6147,27 @@ interface EmailEditorProps {
|
|
|
6140
6147
|
* email content and user data are never translated.
|
|
6141
6148
|
*/
|
|
6142
6149
|
locale?: SupportedLocale | string;
|
|
6150
|
+
/**
|
|
6151
|
+
* Hex color strings shown as quick-pick swatches at the top of every color
|
|
6152
|
+
* picker. Useful for brand colors the user reaches for often.
|
|
6153
|
+
*/
|
|
6154
|
+
favoriteColors?: string[];
|
|
6155
|
+
/**
|
|
6156
|
+
* Pre-built block templates that appear in the "Add block" menu.
|
|
6157
|
+
* Each entry needs a label, a block map, and the root block ID within that map.
|
|
6158
|
+
*/
|
|
6159
|
+
customBlocks?: CustomBlock[];
|
|
6160
|
+
/**
|
|
6161
|
+
* Called when the user clicks "Send Test" in the toolbar. Receives the
|
|
6162
|
+
* rendered HTML, plain text, and subject. The button is only shown when
|
|
6163
|
+
* this callback is provided. The host application handles actual delivery.
|
|
6164
|
+
*/
|
|
6165
|
+
onTestSend?: (payload: {
|
|
6166
|
+
html: string;
|
|
6167
|
+
text: string;
|
|
6168
|
+
subject?: string;
|
|
6169
|
+
}) => void | Promise<void>;
|
|
6143
6170
|
}
|
|
6144
6171
|
declare const EmailEditor: React.ForwardRefExoticComponent<EmailEditorProps & React.RefAttributes<EmailEditorRef>>;
|
|
6145
6172
|
|
|
6146
|
-
export { Avatar, AvatarProps, AvatarPropsDefaults, AvatarPropsSchema, BlockConfiguration, Button, ButtonProps, ButtonPropsDefaults, ButtonPropsSchema, ColumnsContainer, ColumnsContainerProps$1 as ColumnsContainerProps, ColumnsContainerPropsSchema$1 as ColumnsContainerPropsSchema, ColumnsContainerReader, Container, ContainerProps$1 as ContainerProps, ContainerPropsSchema$1 as ContainerPropsSchema, ContainerReader, Divider, DividerProps, DividerPropsDefaults, DividerPropsSchema, DocumentBlocksDictionary, EmailEditor, type EmailEditorContextType, type EmailEditorProps, EmailEditorProvider, type EmailEditorProviderProps, type EmailEditorRef, EmailLayoutPropsSchema, EmailLayoutReader, EmailMarkdown, type HandlebarsContext, Heading, HeadingProps, HeadingPropsDefaults, HeadingPropsSchema, Html, HtmlProps, HtmlPropsSchema, Image, type ImageCallbacks, ImageProps, ImagePropsSchema, type LibraryImage, Reader, ReaderBlock, ReaderBlockSchema, ReaderDocumentSchema, SUPPORTED_LOCALES, type SavePayload, Signature, SignatureProps, SignaturePropsDefaults, SignaturePropsSchema, Spacer, SpacerProps, SpacerPropsDefaults, SpacerPropsSchema, type SupportedLocale, type TReaderBlock, type TReaderBlockProps, type TReaderDocument, type TReaderProps, type TemplateKind, type TemplateListItem, TemplateVariableSchema, Text, TextProps, TextPropsDefaults, TextPropsSchema, type UploadedImage, buildBlockComponent, buildBlockConfigurationDictionary, buildBlockConfigurationSchema, editorHandlebars, evaluateHandlebars, htmlToEditorConfig, renderToStaticMarkup, renderToText, THEME as theme, useEmailEditor };
|
|
6173
|
+
export { Avatar, AvatarProps, AvatarPropsDefaults, AvatarPropsSchema, BlockConfiguration, Button, ButtonProps, ButtonPropsDefaults, ButtonPropsSchema, ColumnsContainer, ColumnsContainerProps$1 as ColumnsContainerProps, ColumnsContainerPropsSchema$1 as ColumnsContainerPropsSchema, ColumnsContainerReader, Container, ContainerProps$1 as ContainerProps, ContainerPropsSchema$1 as ContainerPropsSchema, ContainerReader, type CustomBlock, Divider, DividerProps, DividerPropsDefaults, DividerPropsSchema, DocumentBlocksDictionary, EmailEditor, type EmailEditorContextType, type EmailEditorProps, EmailEditorProvider, type EmailEditorProviderProps, type EmailEditorRef, EmailLayoutPropsSchema, EmailLayoutReader, EmailMarkdown, type HandlebarsContext, Heading, HeadingProps, HeadingPropsDefaults, HeadingPropsSchema, Html, HtmlProps, HtmlPropsSchema, Image, type ImageCallbacks, ImageProps, ImagePropsSchema, type LibraryImage, Reader, ReaderBlock, ReaderBlockSchema, ReaderDocumentSchema, SUPPORTED_LOCALES, type SavePayload, Signature, SignatureProps, SignaturePropsDefaults, SignaturePropsSchema, Spacer, SpacerProps, SpacerPropsDefaults, SpacerPropsSchema, type SupportedLocale, type TReaderBlock, type TReaderBlockProps, type TReaderDocument, type TReaderProps, type TemplateKind, type TemplateListItem, TemplateVariableSchema, Text, TextProps, TextPropsDefaults, TextPropsSchema, type UploadedImage, buildBlockComponent, buildBlockConfigurationDictionary, buildBlockConfigurationSchema, editorHandlebars, evaluateHandlebars, htmlToEditorConfig, renderToStaticMarkup, renderToText, THEME as theme, useEmailEditor };
|
package/dist/index.d.ts
CHANGED
|
@@ -5976,6 +5976,13 @@ interface EmailEditorProviderProps {
|
|
|
5976
5976
|
declare const EmailEditorProvider: React.FC<EmailEditorProviderProps>;
|
|
5977
5977
|
declare const useEmailEditor: () => EmailEditorContextType;
|
|
5978
5978
|
|
|
5979
|
+
type CustomBlock = {
|
|
5980
|
+
label: string;
|
|
5981
|
+
icon?: React.ReactNode;
|
|
5982
|
+
blocks: Record<string, TEditorBlock>;
|
|
5983
|
+
rootBlockId: string;
|
|
5984
|
+
};
|
|
5985
|
+
|
|
5979
5986
|
type UploadedImage = {
|
|
5980
5987
|
url: string;
|
|
5981
5988
|
width?: number;
|
|
@@ -6140,7 +6147,27 @@ interface EmailEditorProps {
|
|
|
6140
6147
|
* email content and user data are never translated.
|
|
6141
6148
|
*/
|
|
6142
6149
|
locale?: SupportedLocale | string;
|
|
6150
|
+
/**
|
|
6151
|
+
* Hex color strings shown as quick-pick swatches at the top of every color
|
|
6152
|
+
* picker. Useful for brand colors the user reaches for often.
|
|
6153
|
+
*/
|
|
6154
|
+
favoriteColors?: string[];
|
|
6155
|
+
/**
|
|
6156
|
+
* Pre-built block templates that appear in the "Add block" menu.
|
|
6157
|
+
* Each entry needs a label, a block map, and the root block ID within that map.
|
|
6158
|
+
*/
|
|
6159
|
+
customBlocks?: CustomBlock[];
|
|
6160
|
+
/**
|
|
6161
|
+
* Called when the user clicks "Send Test" in the toolbar. Receives the
|
|
6162
|
+
* rendered HTML, plain text, and subject. The button is only shown when
|
|
6163
|
+
* this callback is provided. The host application handles actual delivery.
|
|
6164
|
+
*/
|
|
6165
|
+
onTestSend?: (payload: {
|
|
6166
|
+
html: string;
|
|
6167
|
+
text: string;
|
|
6168
|
+
subject?: string;
|
|
6169
|
+
}) => void | Promise<void>;
|
|
6143
6170
|
}
|
|
6144
6171
|
declare const EmailEditor: React.ForwardRefExoticComponent<EmailEditorProps & React.RefAttributes<EmailEditorRef>>;
|
|
6145
6172
|
|
|
6146
|
-
export { Avatar, AvatarProps, AvatarPropsDefaults, AvatarPropsSchema, BlockConfiguration, Button, ButtonProps, ButtonPropsDefaults, ButtonPropsSchema, ColumnsContainer, ColumnsContainerProps$1 as ColumnsContainerProps, ColumnsContainerPropsSchema$1 as ColumnsContainerPropsSchema, ColumnsContainerReader, Container, ContainerProps$1 as ContainerProps, ContainerPropsSchema$1 as ContainerPropsSchema, ContainerReader, Divider, DividerProps, DividerPropsDefaults, DividerPropsSchema, DocumentBlocksDictionary, EmailEditor, type EmailEditorContextType, type EmailEditorProps, EmailEditorProvider, type EmailEditorProviderProps, type EmailEditorRef, EmailLayoutPropsSchema, EmailLayoutReader, EmailMarkdown, type HandlebarsContext, Heading, HeadingProps, HeadingPropsDefaults, HeadingPropsSchema, Html, HtmlProps, HtmlPropsSchema, Image, type ImageCallbacks, ImageProps, ImagePropsSchema, type LibraryImage, Reader, ReaderBlock, ReaderBlockSchema, ReaderDocumentSchema, SUPPORTED_LOCALES, type SavePayload, Signature, SignatureProps, SignaturePropsDefaults, SignaturePropsSchema, Spacer, SpacerProps, SpacerPropsDefaults, SpacerPropsSchema, type SupportedLocale, type TReaderBlock, type TReaderBlockProps, type TReaderDocument, type TReaderProps, type TemplateKind, type TemplateListItem, TemplateVariableSchema, Text, TextProps, TextPropsDefaults, TextPropsSchema, type UploadedImage, buildBlockComponent, buildBlockConfigurationDictionary, buildBlockConfigurationSchema, editorHandlebars, evaluateHandlebars, htmlToEditorConfig, renderToStaticMarkup, renderToText, THEME as theme, useEmailEditor };
|
|
6173
|
+
export { Avatar, AvatarProps, AvatarPropsDefaults, AvatarPropsSchema, BlockConfiguration, Button, ButtonProps, ButtonPropsDefaults, ButtonPropsSchema, ColumnsContainer, ColumnsContainerProps$1 as ColumnsContainerProps, ColumnsContainerPropsSchema$1 as ColumnsContainerPropsSchema, ColumnsContainerReader, Container, ContainerProps$1 as ContainerProps, ContainerPropsSchema$1 as ContainerPropsSchema, ContainerReader, type CustomBlock, Divider, DividerProps, DividerPropsDefaults, DividerPropsSchema, DocumentBlocksDictionary, EmailEditor, type EmailEditorContextType, type EmailEditorProps, EmailEditorProvider, type EmailEditorProviderProps, type EmailEditorRef, EmailLayoutPropsSchema, EmailLayoutReader, EmailMarkdown, type HandlebarsContext, Heading, HeadingProps, HeadingPropsDefaults, HeadingPropsSchema, Html, HtmlProps, HtmlPropsSchema, Image, type ImageCallbacks, ImageProps, ImagePropsSchema, type LibraryImage, Reader, ReaderBlock, ReaderBlockSchema, ReaderDocumentSchema, SUPPORTED_LOCALES, type SavePayload, Signature, SignatureProps, SignaturePropsDefaults, SignaturePropsSchema, Spacer, SpacerProps, SpacerPropsDefaults, SpacerPropsSchema, type SupportedLocale, type TReaderBlock, type TReaderBlockProps, type TReaderDocument, type TReaderProps, type TemplateKind, type TemplateListItem, TemplateVariableSchema, Text, TextProps, TextPropsDefaults, TextPropsSchema, type UploadedImage, buildBlockComponent, buildBlockConfigurationDictionary, buildBlockConfigurationSchema, editorHandlebars, evaluateHandlebars, htmlToEditorConfig, renderToStaticMarkup, renderToText, THEME as theme, useEmailEditor };
|