easy-email-extensions 4.6.0 → 4.7.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.
@@ -1,5 +1,5 @@
1
1
  export declare const borderStyleOptions: {
2
2
  value: string;
3
- label: string;
3
+ readonly label: string;
4
4
  }[];
5
5
  export declare function BorderStyle(): JSX.Element;
@@ -1 +1,6 @@
1
- export declare function Page(): JSX.Element | null;
1
+ interface PageProps {
2
+ hideSubTitle?: boolean;
3
+ hideSubject?: boolean;
4
+ }
5
+ export declare function Page({ hideSubTitle, hideSubject }: PageProps): JSX.Element | null;
6
+ export {};
@@ -1,3 +1,4 @@
1
1
  export { AttributePanel } from './AttributePanel';
2
2
  export { BlockAttributeConfigurationManager } from './utils/BlockAttributeConfigurationManager';
3
3
  export * from './components/attributes';
4
+ export { Page as DefaultPageConfigPanel } from './components/blocks/Page';
@@ -1,5 +1,6 @@
1
+ import { ReactNode } from 'react';
1
2
  declare type ObjectComponent = {
2
- [key: string]: () => JSX.Element | null;
3
+ [key: string]: ReactNode;
3
4
  };
4
5
  export declare class BlockAttributeConfigurationManager {
5
6
  private static map;
@@ -2,17 +2,17 @@ import { AdvancedType } from 'easy-email-core';
2
2
  import { TextBlockItem } from './TextBlockItem';
3
3
  import { ImageBlockItem } from './ImageBlockItem';
4
4
  export declare const defaultCategories: {
5
- title: string;
5
+ readonly title: string;
6
6
  name: string;
7
7
  blocks: ({
8
8
  type: AdvancedType;
9
- title: string;
10
- description: string;
9
+ readonly title: string;
10
+ readonly description: string;
11
11
  component: typeof TextBlockItem;
12
12
  } | {
13
13
  type: AdvancedType;
14
- title: string;
15
- description: JSX.Element;
14
+ readonly title: string;
15
+ readonly description: JSX.Element;
16
16
  component: typeof ImageBlockItem;
17
17
  })[];
18
18
  }[];
@@ -1,5 +1,4 @@
1
- import { IBlockData } from 'easy-email-core';
2
- import { RecursivePartial } from 'easy-email-core';
1
+ import { IBlockData, RecursivePartial } from 'easy-email-core';
3
2
  export interface DragIconProps<T extends IBlockData> {
4
3
  type: string;
5
4
  payload?: RecursivePartial<T>;
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, a6 as AutoCompleteField, k as Background, n as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, z as BlockMarketManager, E as BlockMaskWrapper, q as Border, r as BorderColor, u as BorderStyle, w as BorderWidth, a9 as CheckboxField, y as ClassName, h as CollapseWrapper, C as Color, ad as ColorPickerField, i as ContainerBackgroundColor, D as Decoration, o as Direction, ab as EditGridTabField, aa as EditTabField, Q as ExtensionContext, R as ExtensionProvider, F as FontFamily, s as FontSize, v as FontStyle, x as FontWeight, H as Height, a3 as ImageUploaderField, ac as InlineTextField, Z as InputWithUnitField, I as InteractivePrompt, L as LetterSpacing, l as LineHeight, p as Link, M as Margin, O as MergeTagBadgePrompt, t as MergeTags, N as NavbarLinkPadding, a0 as NumberField, P as Padding, X as RICH_TEXT_TOOL_BAR, a7 as RadioGroupField, af as RichTextField, _ as SearchField, a4 as SelectField, S as ShortcutToolbar, J as SimpleLayout, a1 as SliderField, G as SourceCodePanel, K as StandardLayout, a8 as SwitchField, T as TextAlign, $ as TextAreaField, j as TextDecoration, Y as TextField, m as TextTransform, a5 as TreeSelectField, a2 as UploadField, V as VerticalAlign, W as Width, ae as enhancer, b as getBlockTitle, g as getContextMergeTags, a as getIconNameByBlockType, U as useExtensionProps } from "./index2.js";
1
+ export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, a7 as AutoCompleteField, k as Background, n as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, E as BlockMarketManager, G as BlockMaskWrapper, q as Border, r as BorderColor, u as BorderStyle, w as BorderWidth, aa as CheckboxField, z as ClassName, h as CollapseWrapper, C as Color, ae as ColorPickerField, i as ContainerBackgroundColor, D as Decoration, P as DefaultPageConfigPanel, o as Direction, ac as EditGridTabField, ab as EditTabField, R as ExtensionContext, U as ExtensionProvider, F as FontFamily, s as FontSize, v as FontStyle, x as FontWeight, H as Height, a4 as ImageUploaderField, ad as InlineTextField, _ as InputWithUnitField, J as InteractivePrompt, L as LetterSpacing, l as LineHeight, p as Link, M as Margin, Q as MergeTagBadgePrompt, t as MergeTags, N as NavbarLinkPadding, a1 as NumberField, y as Padding, Y as RICH_TEXT_TOOL_BAR, a8 as RadioGroupField, ag as RichTextField, $ as SearchField, a5 as SelectField, S as ShortcutToolbar, K as SimpleLayout, a2 as SliderField, I as SourceCodePanel, O as StandardLayout, a9 as SwitchField, T as TextAlign, a0 as TextAreaField, j as TextDecoration, Z as TextField, m as TextTransform, a6 as TreeSelectField, a3 as UploadField, V as VerticalAlign, W as Width, af as enhancer, b as getBlockTitle, g as getContextMergeTags, a as getIconNameByBlockType, X as useExtensionProps } from "./index2.js";
2
2
  import "react";
3
3
  import "easy-email-editor";
4
4
  import "easy-email-core";