@go-mailer/easy-email-extensions 5.0.2 → 5.0.4
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/lib/AttributePanel/components/adapter/index.d.ts +1 -0
- package/lib/AttributePanel/components/attributes/ContainerBackgroundColor.d.ts +1 -1
- package/lib/AttributePanel/components/attributes/PersonalizationPanel.d.ts +4 -0
- package/lib/GoMailerLayout/GoMailerLayout.d.ts +8 -0
- package/lib/GoMailerLayout/PresetBlocks.d.ts +2 -0
- package/lib/GoMailerLayout/VideoBlock/Panel.d.ts +2 -0
- package/lib/GoMailerLayout/VideoBlock/index.d.ts +9 -0
- package/lib/GoMailerLayout/index.d.ts +2 -0
- package/lib/TwoColumnLayout/TwoColumnLayout.d.ts +9 -0
- package/lib/TwoColumnLayout/index.d.ts +2 -0
- package/lib/components/Form/NativeSlider/index.d.ts +11 -0
- package/lib/components/Form/RichTextToolBar/components/Personalization/index.d.ts +1 -1
- package/lib/components/Form/index.d.ts +3 -2
- package/lib/components/Providers/ExtensionProvider.d.ts +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/lib/index2.js +2896 -2494
- package/lib/index2.js.map +1 -1
- package/lib/style.css +2 -2
- package/package.json +3 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtensionProps } from '../components/Providers/ExtensionProvider';
|
|
3
|
+
export interface GoMailerLayoutProps extends ExtensionProps {
|
|
4
|
+
showSourceCode?: boolean;
|
|
5
|
+
jsonReadOnly?: boolean;
|
|
6
|
+
mjmlReadOnly?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const GoMailerLayout: React.FC<GoMailerLayoutProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBlockData } from '@go-mailer/easy-email-core';
|
|
2
|
+
export declare const VideoBlockType = "go-mailer-video";
|
|
3
|
+
export type IVideoBlock = IBlockData<{
|
|
4
|
+
src: string;
|
|
5
|
+
href: string;
|
|
6
|
+
width: string;
|
|
7
|
+
'container-background-color': string;
|
|
8
|
+
}, Record<string, never>>;
|
|
9
|
+
export declare const VideoBlock: import("@go-mailer/easy-email-core").IBlock<IVideoBlock>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtensionProps } from '../components/Providers/ExtensionProvider';
|
|
3
|
+
export interface TwoColumnLayoutProps extends ExtensionProps {
|
|
4
|
+
showSourceCode?: boolean;
|
|
5
|
+
jsonReadOnly?: boolean;
|
|
6
|
+
mjmlReadOnly?: boolean;
|
|
7
|
+
showBlockLayer?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const TwoColumnLayout: React.FC<TwoColumnLayoutProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface NativeSliderProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
onChange?: (val: number) => void;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
/** If true the value badge shows a % suffix instead of px */
|
|
9
|
+
percentMode?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function NativeSlider({ value, onChange, min, max, step, percentMode, }: NativeSliderProps): React.JSX.Element;
|
|
@@ -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 Personalization(props: FontFamilyProps): React.JSX.Element;
|
|
6
|
+
export declare function Personalization(props: FontFamilyProps): React.JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { InputNumberProps, SwitchProps, TextAreaProps, CheckboxGroupProps, TreeSelectProps } from '@arco-design/web-react';
|
|
3
3
|
import { ImageUploaderProps } from './ImageUploader';
|
|
4
4
|
import { UploadFieldProps } from './UploadField';
|
|
5
5
|
import { SelectProps } from './Select';
|
|
@@ -13,13 +13,14 @@ import { InlineTextProps } from './InlineTextField';
|
|
|
13
13
|
import { AutoCompleteProps } from './AutoComplete';
|
|
14
14
|
import { InputSearchProps } from '@arco-design/web-react/es/Input';
|
|
15
15
|
import { ColorPickerField } from './ColorPickerField';
|
|
16
|
+
import { NativeSliderProps } from './NativeSlider';
|
|
16
17
|
export { RichTextField } from './RichTextField';
|
|
17
18
|
export declare const TextField: (props: import("./enhancer").EnhancerProps & Omit<InputProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
|
|
18
19
|
export declare const InputWithUnitField: (props: import("./enhancer").EnhancerProps & Omit<InputWithUnitProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
|
|
19
20
|
export declare const SearchField: (props: import("./enhancer").EnhancerProps & Omit<InputSearchProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
|
|
20
21
|
export declare const TextAreaField: (props: import("./enhancer").EnhancerProps & Omit<TextAreaProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
|
|
21
22
|
export declare const NumberField: (props: import("./enhancer").EnhancerProps & Omit<InputNumberProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
|
|
22
|
-
export declare const SliderField: (props: import("./enhancer").EnhancerProps & Omit<
|
|
23
|
+
export declare const SliderField: (props: import("./enhancer").EnhancerProps & Omit<NativeSliderProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
|
|
23
24
|
export declare const UploadField: (props: import("./enhancer").EnhancerProps & Omit<UploadFieldProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
|
|
24
25
|
export declare const ImageUploaderField: (props: import("./enhancer").EnhancerProps & Omit<ImageUploaderProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
|
|
25
26
|
export declare const SelectField: (props: import("./enhancer").EnhancerProps & Omit<SelectProps, "value" | "onChange" | "mutators">) => import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { BlockLayerProps } from '../../BlockLayer';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export interface ExtensionProps extends BlockLayerProps {
|
|
4
4
|
children?: React.ReactNode | React.ReactElement;
|
|
5
|
-
categories
|
|
5
|
+
categories?: Array<{
|
|
6
6
|
label: string;
|
|
7
7
|
active?: boolean;
|
|
8
8
|
blocks: Array<{
|
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './SourceCodePanel';
|
|
|
6
6
|
export * from './InteractivePrompt';
|
|
7
7
|
export * from './SimpleLayout';
|
|
8
8
|
export * from './StandardLayout';
|
|
9
|
+
export * from './TwoColumnLayout';
|
|
10
|
+
export * from './GoMailerLayout';
|
|
9
11
|
export * from './MergeTagBadgePrompt';
|
|
10
12
|
export * from './components/Providers/ExtensionProvider';
|
|
11
13
|
export * from './constants';
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { e as Align, A as AttributePanel, f as AttributesPanelWrapper,
|
|
1
|
+
export { e as Align, A as AttributePanel, f as AttributesPanelWrapper, ae as AutoCompleteField, l as Background, o as BackgroundColor, d as BlockAttributeConfigurationManager, B as BlockLayer, O as BlockMarketManager, Q as BlockMaskWrapper, r as Border, u as BorderColor, x as BorderStyle, z as BorderWidth, ah as CheckboxField, I as ClassName, h as CollapseWrapper, C as Color, al as ColorPickerField, i as Condition, j as ContainerBackgroundColor, D as Decoration, P as DefaultPageConfigPanel, p as Direction, aj as EditGridTabField, ai as EditTabField, a0 as ExtensionContext, a1 as ExtensionProvider, F as FontFamily, v as FontSize, y as FontStyle, E as FontWeight, _ as GoMailerLayout, H as Height, ab as ImageUploaderField, ak as InlineTextField, a5 as InputWithUnitField, U as InteractivePrompt, L as LetterSpacing, m as LineHeight, q as Link, t as Margin, $ as MergeTagBadgePrompt, w as MergeTags, M as MjmlToJson, N as NavbarLinkPadding, a8 as NumberField, G as Padding, J as PresetColorsProvider, a3 as RICH_TEXT_TOOL_BAR, af as RadioGroupField, an as RichTextField, a6 as SearchField, ac as SelectField, S as SelectionRangeProvider, ao as ShadowDom, K as ShortcutToolbar, X as SimpleLayout, a9 as SliderField, R as SourceCodePanel, Y as StandardLayout, ag as SwitchField, T as TextAlign, a7 as TextAreaField, k as TextDecoration, a4 as TextField, n as TextTransform, ad as TreeSelectField, Z as TwoColumnLayout, aa as UploadField, V as VerticalAlign, W as Width, am as enhancer, b as getBlockTitle, g as getContextMergeTags, a as getIconNameByBlockType, s as setIconsMap, a2 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";
|