@go-mailer/easy-email-extensions 5.0.9 → 5.2.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.
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function ColumnGap(): React.JSX.Element;
@@ -29,4 +29,5 @@ export { NavbarLinkPadding } from './NavbarLinkPadding';
29
29
  export { BorderWidth } from './BorderWidth';
30
30
  export { FontWeight } from './FontWeight';
31
31
  export { Padding } from './Padding';
32
+ export { ColumnGap } from './ColumnGap';
32
33
  export { ClassName } from './ClassName';
@@ -1,7 +1,2 @@
1
1
  import React from 'react';
2
- interface PageProps {
3
- hideSubTitle?: boolean;
4
- hideSubject?: boolean;
5
- }
6
- export declare function Page({ hideSubTitle, hideSubject }: PageProps): React.JSX.Element | null;
7
- export {};
2
+ export declare function Page(): React.JSX.Element | null;
@@ -4,5 +4,6 @@ export interface GoMailerLayoutProps extends ExtensionProps {
4
4
  showSourceCode?: boolean;
5
5
  jsonReadOnly?: boolean;
6
6
  mjmlReadOnly?: boolean;
7
+ canvasBackground?: string;
7
8
  }
8
9
  export declare const GoMailerLayout: React.FC<GoMailerLayoutProps>;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare function Toolbar(): React.JSX.Element | null;
2
+ export declare function Toolbar(): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare function RichTextToolBar(props: {
3
3
  onChange: (s: string) => void;
4
- }): React.JSX.Element | null;
4
+ }): React.ReactPortal | null;
@@ -3,4 +3,4 @@ export interface FontFamilyProps {
3
3
  execCommand: (cmd: string, value: any) => void;
4
4
  getPopupContainer: () => HTMLElement;
5
5
  }
6
- export declare function FontFamily(props: FontFamilyProps): React.JSX.Element;
6
+ export declare function FontFamily({ execCommand }: FontFamilyProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface FontSizeControlProps {
3
+ selectionRange: Range | null;
4
+ focusBlockNode: Element | null;
5
+ restoreRange: (range: Range) => void;
6
+ onChange: (html: string) => void;
7
+ }
8
+ export declare function FontSizeControl({ selectionRange, focusBlockNode, restoreRange, onChange, }: FontSizeControlProps): React.JSX.Element;
@@ -3,4 +3,4 @@ export interface HeadingProps {
3
3
  execCommand: (cmd: string, value: any) => void;
4
4
  getPopupContainer: () => HTMLElement;
5
5
  }
6
- export declare function Heading(props: HeadingProps): React.JSX.Element;
6
+ export declare function Heading({ execCommand }: HeadingProps): React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface SelectOption {
3
+ value: string;
4
+ label: string;
5
+ /** Optional style applied to the option row so it previews how it renders. */
6
+ style?: React.CSSProperties;
7
+ }
8
+ export interface SelectToolProps {
9
+ options: SelectOption[];
10
+ placeholder: string;
11
+ width: number;
12
+ onChange: (value: string) => void;
13
+ }
14
+ export declare function SelectTool({ options, placeholder, width, onChange }: SelectToolProps): React.JSX.Element;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ /**
3
+ * A consistent, dimensionally-uniform set of rich-text toolbar icons.
4
+ *
5
+ * Every icon shares the same 24×24 viewBox, 16px render size, 2px rounded
6
+ * stroke and `currentColor` fill so they inherit the toolbar button color
7
+ * (including the active/hover states). This keeps every button visually
8
+ * aligned, unlike the previous mix of icon-font glyphs.
9
+ */
10
+ export interface ToolIconProps {
11
+ size?: number;
12
+ style?: React.CSSProperties;
13
+ }
14
+ export declare const BoldIcon: React.FC<ToolIconProps>;
15
+ export declare const ItalicIcon: React.FC<ToolIconProps>;
16
+ export declare const UnderlineIcon: React.FC<ToolIconProps>;
17
+ export declare const StrikeThroughIcon: React.FC<ToolIconProps>;
18
+ export declare const LinkIcon: React.FC<ToolIconProps>;
19
+ export declare const UnlinkIcon: React.FC<ToolIconProps>;
20
+ export declare const AlignLeftIcon: React.FC<ToolIconProps>;
21
+ export declare const AlignCenterIcon: React.FC<ToolIconProps>;
22
+ export declare const AlignRightIcon: React.FC<ToolIconProps>;
23
+ export declare const AlignJustifyIcon: React.FC<ToolIconProps>;
24
+ export declare const ListOrderedIcon: React.FC<ToolIconProps>;
25
+ export declare const ListUnorderedIcon: React.FC<ToolIconProps>;
26
+ export declare const HorizontalRuleIcon: React.FC<ToolIconProps>;
27
+ export declare const RemoveFormatIcon: React.FC<ToolIconProps>;
28
+ export declare const FontColorIcon: React.FC<ToolIconProps>;
29
+ export declare const BgColorIcon: React.FC<ToolIconProps>;
30
+ export declare const MergeTagsIcon: React.FC<ToolIconProps>;
31
+ export declare const PersonalizationIcon: React.FC<ToolIconProps>;
@@ -1 +1,2 @@
1
1
  export declare const RICH_TEXT_TOOL_BAR = "Tools";
2
+ export declare const RICH_TEXT_TOOLBAR_SLOT_ID = "go-mailer-rich-toolbar-slot";
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, ag as AutoCompleteField, l as Background, o as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, Q as BlockMarketManager, R as BlockMaskWrapper, r as Border, v as BorderColor, y as BorderStyle, E as BorderWidth, aj as CheckboxField, J as ClassName, h as CollapseWrapper, C as Color, an as ColorPickerField, i as Condition, j as ContainerBackgroundColor, D as Decoration, P as DefaultPageConfigPanel, p as Direction, al as EditGridTabField, ak as EditTabField, a1 as ExtensionContext, a2 as ExtensionProvider, F as FontFamily, w as FontSize, z as FontStyle, G as FontWeight, $ as GoMailerLayout, H as Height, ad as ImageUploaderField, am as InlineTextField, a6 as InputWithUnitField, X as InteractivePrompt, L as LetterSpacing, m as LineHeight, q as Link, t as Margin, a0 as MergeTagBadgePrompt, x as MergeTags, M as MjmlToJson, N as NavbarLinkPadding, a9 as NumberField, I as Padding, K as PresetColorsProvider, a4 as RICH_TEXT_TOOL_BAR, ah as RadioGroupField, ap as RichTextField, a7 as SearchField, ae as SelectField, S as SelectionRangeProvider, aq as ShadowDom, O as ShortcutToolbar, Y as SimpleLayout, aa as SliderField, U as SourceCodePanel, Z as StandardLayout, ab as StepperField, ai as SwitchField, T as TextAlign, a8 as TextAreaField, k as TextDecoration, a5 as TextField, n as TextTransform, af as TreeSelectField, _ as TwoColumnLayout, ac as UploadField, V as VerticalAlign, W as Width, ao as enhancer, b as getBlockTitle, g as getContextMergeTags, a as getIconNameByBlockType, s as setIconsMap, u as useAIContext, a3 as useExtensionProps } from "./index2.js";
1
+ export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, ai as AutoCompleteField, l as Background, o as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, R as BlockMarketManager, U as BlockMaskWrapper, r as Border, v as BorderColor, y as BorderStyle, E as BorderWidth, al as CheckboxField, K as ClassName, h as CollapseWrapper, C as Color, ap as ColorPickerField, J as ColumnGap, i as Condition, j as ContainerBackgroundColor, D as Decoration, P as DefaultPageConfigPanel, p as Direction, an as EditGridTabField, am as EditTabField, a2 as ExtensionContext, a3 as ExtensionProvider, F as FontFamily, w as FontSize, z as FontStyle, G as FontWeight, a0 as GoMailerLayout, H as Height, af as ImageUploaderField, ao as InlineTextField, a8 as InputWithUnitField, Y as InteractivePrompt, L as LetterSpacing, m as LineHeight, q as Link, t as Margin, a1 as MergeTagBadgePrompt, x as MergeTags, M as MjmlToJson, N as NavbarLinkPadding, ab as NumberField, I as Padding, O as PresetColorsProvider, a6 as RICH_TEXT_TOOLBAR_SLOT_ID, a5 as RICH_TEXT_TOOL_BAR, aj as RadioGroupField, ar as RichTextField, a9 as SearchField, ag as SelectField, S as SelectionRangeProvider, as as ShadowDom, Q as ShortcutToolbar, Z as SimpleLayout, ac as SliderField, X as SourceCodePanel, _ as StandardLayout, ad as StepperField, ak as SwitchField, T as TextAlign, aa as TextAreaField, k as TextDecoration, a7 as TextField, n as TextTransform, ah as TreeSelectField, $ as TwoColumnLayout, ae as UploadField, V as VerticalAlign, W as Width, aq as enhancer, b as getBlockTitle, g as getContextMergeTags, a as getIconNameByBlockType, s as setIconsMap, u as useAIContext, a4 as useExtensionProps } from "./index2.js";
2
2
  import "react";
3
3
  import "@go-mailer/easy-email-editor";
4
4
  import "@go-mailer/easy-email-core";