@maily-to/core 0.0.23 → 0.0.25
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/extensions/index.d.mts +11 -1
- package/dist/extensions/index.d.ts +11 -1
- package/dist/extensions/index.js +278 -86
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/index.mjs +230 -42
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +317 -95
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +278 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -227,19 +227,29 @@ declare const DEFAULT_BUTTON_VARIANT: AllowedButtonVariant;
|
|
|
227
227
|
declare const DEFAULT_BUTTON_BORDER_RADIUS: AllowedButtonBorderRadius;
|
|
228
228
|
declare const DEFAULT_BUTTON_BACKGROUND_COLOR = "#000000";
|
|
229
229
|
declare const DEFAULT_BUTTON_TEXT_COLOR = "#ffffff";
|
|
230
|
+
declare const DEFAULT_BUTTON_PADDING_TOP = 10;
|
|
231
|
+
declare const DEFAULT_BUTTON_PADDING_RIGHT = 32;
|
|
232
|
+
declare const DEFAULT_BUTTON_PADDING_BOTTOM = 10;
|
|
233
|
+
declare const DEFAULT_BUTTON_PADDING_LEFT = 32;
|
|
230
234
|
declare const allowedButtonVariant: readonly ["filled", "outline"];
|
|
231
235
|
type AllowedButtonVariant = (typeof allowedButtonVariant)[number];
|
|
232
236
|
declare const allowedButtonBorderRadius: readonly ["sharp", "smooth", "round"];
|
|
233
237
|
type AllowedButtonBorderRadius = (typeof allowedButtonBorderRadius)[number];
|
|
234
238
|
type ButtonAttributes = {
|
|
235
239
|
text: string;
|
|
240
|
+
isTextVariable: boolean;
|
|
236
241
|
url: string;
|
|
242
|
+
isUrlVariable: boolean;
|
|
237
243
|
alignment: AllowedLogoAlignment;
|
|
238
244
|
variant: AllowedButtonVariant;
|
|
239
245
|
borderRadius: AllowedButtonBorderRadius;
|
|
240
246
|
buttonColor: string;
|
|
241
247
|
textColor: string;
|
|
242
248
|
showIfKey: string;
|
|
249
|
+
paddingTop: number;
|
|
250
|
+
paddingRight: number;
|
|
251
|
+
paddingBottom: number;
|
|
252
|
+
paddingLeft: number;
|
|
243
253
|
};
|
|
244
254
|
declare module '@tiptap/core' {
|
|
245
255
|
interface Commands<ReturnType> {
|
|
@@ -297,4 +307,4 @@ type VariableListProps = {
|
|
|
297
307
|
declare const VariableList: react.ForwardRefExoticComponent<VariableListProps & react.RefAttributes<unknown>>;
|
|
298
308
|
declare function getVariableSuggestions(variables?: Variables, char?: string): Omit<SuggestionOptions, 'editor'>;
|
|
299
309
|
|
|
300
|
-
export { type AllowedButtonBorderRadius, type AllowedButtonVariant, type AllowedColumnVerticalAlign, type AllowedLogoAlignment, type AllowedLogoSize, type AllowedSpacerSize, ButtonExtension, Color, ColumnExtension, ColumnsExtension, DEFAULT_BUTTON_ALIGNMENT, DEFAULT_BUTTON_BACKGROUND_COLOR, DEFAULT_BUTTON_BORDER_RADIUS, DEFAULT_BUTTON_TEXT_COLOR, DEFAULT_BUTTON_VARIANT, DEFAULT_COLUMNS_GAP, DEFAULT_COLUMN_VERTICAL_ALIGN, DEFAULT_COLUMN_WIDTH, DEFAULT_LOGO_SIZE, DEFAULT_SECTION_ALIGN, DEFAULT_SECTION_BACKGROUND_COLOR, DEFAULT_SECTION_BORDER_COLOR, DEFAULT_SECTION_BORDER_RADIUS, DEFAULT_SECTION_BORDER_WIDTH, DEFAULT_SECTION_MARGIN_BOTTOM, DEFAULT_SECTION_MARGIN_LEFT, DEFAULT_SECTION_MARGIN_RIGHT, DEFAULT_SECTION_MARGIN_TOP, DEFAULT_SECTION_PADDING_BOTTOM, DEFAULT_SECTION_PADDING_LEFT, DEFAULT_SECTION_PADDING_RIGHT, DEFAULT_SECTION_PADDING_TOP, DEFAULT_SECTION_SHOW_IF_KEY, Footer, type FooterOptions, ForExtension, HorizontalRule, ImageExtension, LinkExtension, type LogoAttributes, LogoExtension, MailyKit, type MailyKitOptions, SectionExtension, SlashCommandExtension, type SlashCommandOptions, Spacer, type SpacerOptions, VariableExtension, VariableList, type VariableOptions, VariablePluginKey, allowedButtonBorderRadius, allowedButtonVariant, allowedLogoAlignment, allowedLogoSize, allowedSpacerSize, getSlashCommandSuggestions, getVariableSuggestions, logoSizes };
|
|
310
|
+
export { type AllowedButtonBorderRadius, type AllowedButtonVariant, type AllowedColumnVerticalAlign, type AllowedLogoAlignment, type AllowedLogoSize, type AllowedSpacerSize, type ButtonAttributes, ButtonExtension, Color, ColumnExtension, ColumnsExtension, DEFAULT_BUTTON_ALIGNMENT, DEFAULT_BUTTON_BACKGROUND_COLOR, DEFAULT_BUTTON_BORDER_RADIUS, DEFAULT_BUTTON_PADDING_BOTTOM, DEFAULT_BUTTON_PADDING_LEFT, DEFAULT_BUTTON_PADDING_RIGHT, DEFAULT_BUTTON_PADDING_TOP, DEFAULT_BUTTON_TEXT_COLOR, DEFAULT_BUTTON_VARIANT, DEFAULT_COLUMNS_GAP, DEFAULT_COLUMN_VERTICAL_ALIGN, DEFAULT_COLUMN_WIDTH, DEFAULT_LOGO_SIZE, DEFAULT_SECTION_ALIGN, DEFAULT_SECTION_BACKGROUND_COLOR, DEFAULT_SECTION_BORDER_COLOR, DEFAULT_SECTION_BORDER_RADIUS, DEFAULT_SECTION_BORDER_WIDTH, DEFAULT_SECTION_MARGIN_BOTTOM, DEFAULT_SECTION_MARGIN_LEFT, DEFAULT_SECTION_MARGIN_RIGHT, DEFAULT_SECTION_MARGIN_TOP, DEFAULT_SECTION_PADDING_BOTTOM, DEFAULT_SECTION_PADDING_LEFT, DEFAULT_SECTION_PADDING_RIGHT, DEFAULT_SECTION_PADDING_TOP, DEFAULT_SECTION_SHOW_IF_KEY, Footer, type FooterOptions, ForExtension, HorizontalRule, ImageExtension, LinkExtension, type LogoAttributes, LogoExtension, MailyKit, type MailyKitOptions, SectionExtension, SlashCommandExtension, type SlashCommandOptions, Spacer, type SpacerOptions, VariableExtension, VariableList, type VariableOptions, VariablePluginKey, allowedButtonBorderRadius, allowedButtonVariant, allowedLogoAlignment, allowedLogoSize, allowedSpacerSize, getSlashCommandSuggestions, getVariableSuggestions, logoSizes };
|
|
@@ -227,19 +227,29 @@ declare const DEFAULT_BUTTON_VARIANT: AllowedButtonVariant;
|
|
|
227
227
|
declare const DEFAULT_BUTTON_BORDER_RADIUS: AllowedButtonBorderRadius;
|
|
228
228
|
declare const DEFAULT_BUTTON_BACKGROUND_COLOR = "#000000";
|
|
229
229
|
declare const DEFAULT_BUTTON_TEXT_COLOR = "#ffffff";
|
|
230
|
+
declare const DEFAULT_BUTTON_PADDING_TOP = 10;
|
|
231
|
+
declare const DEFAULT_BUTTON_PADDING_RIGHT = 32;
|
|
232
|
+
declare const DEFAULT_BUTTON_PADDING_BOTTOM = 10;
|
|
233
|
+
declare const DEFAULT_BUTTON_PADDING_LEFT = 32;
|
|
230
234
|
declare const allowedButtonVariant: readonly ["filled", "outline"];
|
|
231
235
|
type AllowedButtonVariant = (typeof allowedButtonVariant)[number];
|
|
232
236
|
declare const allowedButtonBorderRadius: readonly ["sharp", "smooth", "round"];
|
|
233
237
|
type AllowedButtonBorderRadius = (typeof allowedButtonBorderRadius)[number];
|
|
234
238
|
type ButtonAttributes = {
|
|
235
239
|
text: string;
|
|
240
|
+
isTextVariable: boolean;
|
|
236
241
|
url: string;
|
|
242
|
+
isUrlVariable: boolean;
|
|
237
243
|
alignment: AllowedLogoAlignment;
|
|
238
244
|
variant: AllowedButtonVariant;
|
|
239
245
|
borderRadius: AllowedButtonBorderRadius;
|
|
240
246
|
buttonColor: string;
|
|
241
247
|
textColor: string;
|
|
242
248
|
showIfKey: string;
|
|
249
|
+
paddingTop: number;
|
|
250
|
+
paddingRight: number;
|
|
251
|
+
paddingBottom: number;
|
|
252
|
+
paddingLeft: number;
|
|
243
253
|
};
|
|
244
254
|
declare module '@tiptap/core' {
|
|
245
255
|
interface Commands<ReturnType> {
|
|
@@ -297,4 +307,4 @@ type VariableListProps = {
|
|
|
297
307
|
declare const VariableList: react.ForwardRefExoticComponent<VariableListProps & react.RefAttributes<unknown>>;
|
|
298
308
|
declare function getVariableSuggestions(variables?: Variables, char?: string): Omit<SuggestionOptions, 'editor'>;
|
|
299
309
|
|
|
300
|
-
export { type AllowedButtonBorderRadius, type AllowedButtonVariant, type AllowedColumnVerticalAlign, type AllowedLogoAlignment, type AllowedLogoSize, type AllowedSpacerSize, ButtonExtension, Color, ColumnExtension, ColumnsExtension, DEFAULT_BUTTON_ALIGNMENT, DEFAULT_BUTTON_BACKGROUND_COLOR, DEFAULT_BUTTON_BORDER_RADIUS, DEFAULT_BUTTON_TEXT_COLOR, DEFAULT_BUTTON_VARIANT, DEFAULT_COLUMNS_GAP, DEFAULT_COLUMN_VERTICAL_ALIGN, DEFAULT_COLUMN_WIDTH, DEFAULT_LOGO_SIZE, DEFAULT_SECTION_ALIGN, DEFAULT_SECTION_BACKGROUND_COLOR, DEFAULT_SECTION_BORDER_COLOR, DEFAULT_SECTION_BORDER_RADIUS, DEFAULT_SECTION_BORDER_WIDTH, DEFAULT_SECTION_MARGIN_BOTTOM, DEFAULT_SECTION_MARGIN_LEFT, DEFAULT_SECTION_MARGIN_RIGHT, DEFAULT_SECTION_MARGIN_TOP, DEFAULT_SECTION_PADDING_BOTTOM, DEFAULT_SECTION_PADDING_LEFT, DEFAULT_SECTION_PADDING_RIGHT, DEFAULT_SECTION_PADDING_TOP, DEFAULT_SECTION_SHOW_IF_KEY, Footer, type FooterOptions, ForExtension, HorizontalRule, ImageExtension, LinkExtension, type LogoAttributes, LogoExtension, MailyKit, type MailyKitOptions, SectionExtension, SlashCommandExtension, type SlashCommandOptions, Spacer, type SpacerOptions, VariableExtension, VariableList, type VariableOptions, VariablePluginKey, allowedButtonBorderRadius, allowedButtonVariant, allowedLogoAlignment, allowedLogoSize, allowedSpacerSize, getSlashCommandSuggestions, getVariableSuggestions, logoSizes };
|
|
310
|
+
export { type AllowedButtonBorderRadius, type AllowedButtonVariant, type AllowedColumnVerticalAlign, type AllowedLogoAlignment, type AllowedLogoSize, type AllowedSpacerSize, type ButtonAttributes, ButtonExtension, Color, ColumnExtension, ColumnsExtension, DEFAULT_BUTTON_ALIGNMENT, DEFAULT_BUTTON_BACKGROUND_COLOR, DEFAULT_BUTTON_BORDER_RADIUS, DEFAULT_BUTTON_PADDING_BOTTOM, DEFAULT_BUTTON_PADDING_LEFT, DEFAULT_BUTTON_PADDING_RIGHT, DEFAULT_BUTTON_PADDING_TOP, DEFAULT_BUTTON_TEXT_COLOR, DEFAULT_BUTTON_VARIANT, DEFAULT_COLUMNS_GAP, DEFAULT_COLUMN_VERTICAL_ALIGN, DEFAULT_COLUMN_WIDTH, DEFAULT_LOGO_SIZE, DEFAULT_SECTION_ALIGN, DEFAULT_SECTION_BACKGROUND_COLOR, DEFAULT_SECTION_BORDER_COLOR, DEFAULT_SECTION_BORDER_RADIUS, DEFAULT_SECTION_BORDER_WIDTH, DEFAULT_SECTION_MARGIN_BOTTOM, DEFAULT_SECTION_MARGIN_LEFT, DEFAULT_SECTION_MARGIN_RIGHT, DEFAULT_SECTION_MARGIN_TOP, DEFAULT_SECTION_PADDING_BOTTOM, DEFAULT_SECTION_PADDING_LEFT, DEFAULT_SECTION_PADDING_RIGHT, DEFAULT_SECTION_PADDING_TOP, DEFAULT_SECTION_SHOW_IF_KEY, Footer, type FooterOptions, ForExtension, HorizontalRule, ImageExtension, LinkExtension, type LogoAttributes, LogoExtension, MailyKit, type MailyKitOptions, SectionExtension, SlashCommandExtension, type SlashCommandOptions, Spacer, type SpacerOptions, VariableExtension, VariableList, type VariableOptions, VariablePluginKey, allowedButtonBorderRadius, allowedButtonVariant, allowedLogoAlignment, allowedLogoSize, allowedSpacerSize, getSlashCommandSuggestions, getVariableSuggestions, logoSizes };
|