monto-email-builder 1.0.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/LICENSE +21 -0
- package/README.md +169 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/index.d.ts +3 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/index.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts +8 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +8 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts +10 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts +15 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts +9 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts +14 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts +14 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts +10 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts +10 -0
- package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/StylesPanel.d.ts +3 -0
- package/dist/App/InspectorDrawer/StylesPanel.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/ToggleInspectorPanelButton.d.ts +3 -0
- package/dist/App/InspectorDrawer/ToggleInspectorPanelButton.d.ts.map +1 -0
- package/dist/App/InspectorDrawer/index.d.ts +4 -0
- package/dist/App/InspectorDrawer/index.d.ts.map +1 -0
- package/dist/App/LanguageSwitcher/index.d.ts +3 -0
- package/dist/App/LanguageSwitcher/index.d.ts.map +1 -0
- package/dist/App/SamplesDrawer/SidebarButton.d.ts +6 -0
- package/dist/App/SamplesDrawer/SidebarButton.d.ts.map +1 -0
- package/dist/App/SamplesDrawer/ToggleSamplesPanelButton.d.ts +3 -0
- package/dist/App/SamplesDrawer/ToggleSamplesPanelButton.d.ts.map +1 -0
- package/dist/App/SamplesDrawer/index.d.ts +4 -0
- package/dist/App/SamplesDrawer/index.d.ts.map +1 -0
- package/dist/App/TemplatePanel/DownloadJson/index.d.ts +3 -0
- package/dist/App/TemplatePanel/DownloadJson/index.d.ts.map +1 -0
- package/dist/App/TemplatePanel/HtmlPanel.d.ts +3 -0
- package/dist/App/TemplatePanel/HtmlPanel.d.ts.map +1 -0
- package/dist/App/TemplatePanel/ImportJson/ImportJsonDialog.d.ts +7 -0
- package/dist/App/TemplatePanel/ImportJson/ImportJsonDialog.d.ts.map +1 -0
- package/dist/App/TemplatePanel/ImportJson/index.d.ts +3 -0
- package/dist/App/TemplatePanel/ImportJson/index.d.ts.map +1 -0
- package/dist/App/TemplatePanel/ImportJson/validateJsonStringValue.d.ts +11 -0
- package/dist/App/TemplatePanel/ImportJson/validateJsonStringValue.d.ts.map +1 -0
- package/dist/App/TemplatePanel/JsonPanel.d.ts +3 -0
- package/dist/App/TemplatePanel/JsonPanel.d.ts.map +1 -0
- package/dist/App/TemplatePanel/MainTabsGroup.d.ts +3 -0
- package/dist/App/TemplatePanel/MainTabsGroup.d.ts.map +1 -0
- package/dist/App/TemplatePanel/ShareButton.d.ts +3 -0
- package/dist/App/TemplatePanel/ShareButton.d.ts.map +1 -0
- package/dist/App/TemplatePanel/helper/HighlightedCodePanel.d.ts +8 -0
- package/dist/App/TemplatePanel/helper/HighlightedCodePanel.d.ts.map +1 -0
- package/dist/App/TemplatePanel/helper/highlighters.d.ts +3 -0
- package/dist/App/TemplatePanel/helper/highlighters.d.ts.map +1 -0
- package/dist/App/TemplatePanel/index.d.ts +3 -0
- package/dist/App/TemplatePanel/index.d.ts.map +1 -0
- package/dist/App/index.d.ts +3 -0
- package/dist/App/index.d.ts.map +1 -0
- package/dist/EmailBuilder/index.d.ts +68 -0
- package/dist/EmailBuilder/index.d.ts.map +1 -0
- package/dist/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts +4 -0
- package/dist/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts.map +1 -0
- package/dist/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +136 -0
- package/dist/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts.map +1 -0
- package/dist/documents/blocks/Container/ContainerEditor.d.ts +4 -0
- package/dist/documents/blocks/Container/ContainerEditor.d.ts.map +1 -0
- package/dist/documents/blocks/Container/ContainerPropsSchema.d.ts +84 -0
- package/dist/documents/blocks/Container/ContainerPropsSchema.d.ts.map +1 -0
- package/dist/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts +4 -0
- package/dist/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts.map +1 -0
- package/dist/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +32 -0
- package/dist/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts +9 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts +10 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts +8 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts +7 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +10 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts +9 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/index.d.ts +13 -0
- package/dist/documents/blocks/helpers/EditorChildrenIds/index.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/TStyle.d.ts +12 -0
- package/dist/documents/blocks/helpers/TStyle.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +7 -0
- package/dist/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts +9 -0
- package/dist/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts +7 -0
- package/dist/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/fontFamily.d.ts +7 -0
- package/dist/documents/blocks/helpers/fontFamily.d.ts.map +1 -0
- package/dist/documents/blocks/helpers/zod.d.ts +22 -0
- package/dist/documents/blocks/helpers/zod.d.ts.map +1 -0
- package/dist/documents/editor/EditorBlock.d.ts +13 -0
- package/dist/documents/editor/EditorBlock.d.ts.map +1 -0
- package/dist/documents/editor/EditorContext.d.ts +40 -0
- package/dist/documents/editor/EditorContext.d.ts.map +1 -0
- package/dist/documents/editor/core.d.ts +2777 -0
- package/dist/documents/editor/core.d.ts.map +1 -0
- package/dist/getConfiguration/index.d.ts +3 -0
- package/dist/getConfiguration/index.d.ts.map +1 -0
- package/dist/getConfiguration/sample/empty-email-message.d.ts +4 -0
- package/dist/getConfiguration/sample/empty-email-message.d.ts.map +1 -0
- package/dist/getConfiguration/sample/one-time-passcode.d.ts +4 -0
- package/dist/getConfiguration/sample/one-time-passcode.d.ts.map +1 -0
- package/dist/getConfiguration/sample/order-ecommerce.d.ts +4 -0
- package/dist/getConfiguration/sample/order-ecommerce.d.ts.map +1 -0
- package/dist/getConfiguration/sample/post-metrics-report.d.ts +4 -0
- package/dist/getConfiguration/sample/post-metrics-report.d.ts.map +1 -0
- package/dist/getConfiguration/sample/reservation-reminder.d.ts +4 -0
- package/dist/getConfiguration/sample/reservation-reminder.d.ts.map +1 -0
- package/dist/getConfiguration/sample/reset-password.d.ts +4 -0
- package/dist/getConfiguration/sample/reset-password.d.ts.map +1 -0
- package/dist/getConfiguration/sample/respond-to-message.d.ts +4 -0
- package/dist/getConfiguration/sample/respond-to-message.d.ts.map +1 -0
- package/dist/getConfiguration/sample/subscription-receipt.d.ts +4 -0
- package/dist/getConfiguration/sample/subscription-receipt.d.ts.map +1 -0
- package/dist/getConfiguration/sample/welcome.d.ts +4 -0
- package/dist/getConfiguration/sample/welcome.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +18 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/useTranslation.d.ts +9 -0
- package/dist/i18n/useTranslation.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3534 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/samples-SfLrANbd.js +6038 -0
- package/dist/theme.d.ts +3 -0
- package/dist/theme.d.ts.map +1 -0
- package/package.json +102 -0
package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from '@mui/material';
|
|
3
|
+
type Props = {
|
|
4
|
+
label: string;
|
|
5
|
+
rows?: number;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
helperText?: string | JSX.Element;
|
|
8
|
+
InputProps?: InputProps;
|
|
9
|
+
defaultValue: string;
|
|
10
|
+
onChange: (v: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export default function TextInput({ helperText, label, placeholder, rows, InputProps, defaultValue, onChange }: Props): React.JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=TextInput.d.ts.map
|
package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAC;AAEtD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAClC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,KAAK,qBAqBpH"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SliderInputProps = {
|
|
3
|
+
iconLabel: JSX.Element;
|
|
4
|
+
step?: number;
|
|
5
|
+
marks?: boolean;
|
|
6
|
+
units: string;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
value: number;
|
|
10
|
+
setValue: (v: number) => void;
|
|
11
|
+
};
|
|
12
|
+
export default function RawSliderInput({ iconLabel, value, setValue, units, ...props }: SliderInputProps): React.JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=RawSliderInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RawSliderInput.d.ts","sourceRoot":"","sources":["../../../../../../../../src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,qBAsBvG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TStyle } from '../../../../../../documents/blocks/helpers/TStyle';
|
|
3
|
+
type MultiStylePropertyPanelProps = {
|
|
4
|
+
names: (keyof TStyle)[];
|
|
5
|
+
value: TStyle | undefined | null;
|
|
6
|
+
onChange: (style: TStyle) => void;
|
|
7
|
+
};
|
|
8
|
+
export default function MultiStylePropertyPanel({ names, value, onChange }: MultiStylePropertyPanelProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=MultiStylePropertyPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiStylePropertyPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AAI3E,KAAK,4BAA4B,GAAG;IAClC,KAAK,EAAE,CAAC,MAAM,MAAM,CAAC,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,4BAA4B,qBAQvG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TStyle } from '../../../../../../documents/blocks/helpers/TStyle';
|
|
3
|
+
type StylePropertyPanelProps = {
|
|
4
|
+
name: keyof TStyle;
|
|
5
|
+
value: TStyle;
|
|
6
|
+
onChange: (style: TStyle) => void;
|
|
7
|
+
};
|
|
8
|
+
export default function SingleStylePropertyPanel({ name, value, onChange }: StylePropertyPanelProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SingleStylePropertyPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SingleStylePropertyPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AAS3E,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,MAAM,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,uBAAuB,qBAuClG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StylesPanel.d.ts","sourceRoot":"","sources":["../../../src/App/InspectorDrawer/StylesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,CAAC,OAAO,UAAU,WAAW,sBAYlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleInspectorPanelButton.d.ts","sourceRoot":"","sources":["../../../src/App/InspectorDrawer/ToggleInspectorPanelButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,CAAC,OAAO,UAAU,0BAA0B,sBAkBjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/App/InspectorDrawer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,eAAe,sBAoCtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/App/LanguageSwitcher/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,CAAC,OAAO,UAAU,gBAAgB,sBAiCvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../src/App/SamplesDrawer/SidebarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAA;CAAE,qBAyBzG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleSamplesPanelButton.d.ts","sourceRoot":"","sources":["../../../src/App/SamplesDrawer/ToggleSamplesPanelButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,MAAM,CAAC,OAAO,UAAU,wBAAwB,sBAG/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/App/SamplesDrawer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,aAAa,sBAwEpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/App/TemplatePanel/DownloadJson/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,MAAM,CAAC,OAAO,UAAU,YAAY,sBAYnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HtmlPanel.d.ts","sourceRoot":"","sources":["../../../src/App/TemplatePanel/HtmlPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,UAAU,SAAS,sBAIhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImportJsonDialog.d.ts","sourceRoot":"","sources":["../../../../src/App/TemplatePanel/ImportJson/ImportJsonDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAkBxC,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE,qBAAqB,qBAmE1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/App/TemplatePanel/ImportJson/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,MAAM,CAAC,OAAO,UAAU,UAAU,sBAkBjC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TEditorConfiguration } from '../../../documents/editor/core';
|
|
2
|
+
type TResult = {
|
|
3
|
+
error: string;
|
|
4
|
+
data?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
data: TEditorConfiguration;
|
|
7
|
+
error?: undefined;
|
|
8
|
+
};
|
|
9
|
+
export default function validateTextAreaValue(value: string): TResult;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=validateJsonStringValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateJsonStringValue.d.ts","sourceRoot":"","sources":["../../../../src/App/TemplatePanel/ImportJson/validateJsonStringValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEjG,KAAK,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC;AAEvG,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAkBpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonPanel.d.ts","sourceRoot":"","sources":["../../../src/App/TemplatePanel/JsonPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,MAAM,CAAC,OAAO,UAAU,SAAS,sBAIhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MainTabsGroup.d.ts","sourceRoot":"","sources":["../../../src/App/TemplatePanel/MainTabsGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,CAAC,OAAO,UAAU,aAAa,sBAoDpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShareButton.d.ts","sourceRoot":"","sources":["../../../src/App/TemplatePanel/ShareButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,MAAM,CAAC,OAAO,UAAU,WAAW,sBA6BlC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type TextEditorPanelProps = {
|
|
3
|
+
type: 'json' | 'html' | 'javascript';
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
export default function HighlightedCodePanel({ type, value }: TextEditorPanelProps): React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=HighlightedCodePanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightedCodePanel.d.ts","sourceRoot":"","sources":["../../../../src/App/TemplatePanel/helper/HighlightedCodePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,oBAAoB,4BA+BjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlighters.d.ts","sourceRoot":"","sources":["../../../../src/App/TemplatePanel/helper/highlighters.tsx"],"names":[],"mappings":"AA+BA,wBAAsB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAOzD;AAED,wBAAsB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CASzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/App/TemplatePanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B,MAAM,CAAC,OAAO,UAAU,aAAa,sBAgGpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/App/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B,MAAM,CAAC,OAAO,UAAU,GAAG,sBA0B1B"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Language } from '../i18n';
|
|
3
|
+
import { TEditorConfiguration } from '../documents/editor/core';
|
|
4
|
+
import theme from '../theme';
|
|
5
|
+
export interface EmailBuilderProps {
|
|
6
|
+
/**
|
|
7
|
+
* 初始化的邮件模板配置 JSON
|
|
8
|
+
*/
|
|
9
|
+
initialDocument?: TEditorConfiguration;
|
|
10
|
+
/**
|
|
11
|
+
* 初始语言,可选值:'zh' | 'en'
|
|
12
|
+
* @default 'en'
|
|
13
|
+
*/
|
|
14
|
+
initialLanguage?: Language;
|
|
15
|
+
/**
|
|
16
|
+
* 图片上传回调函数
|
|
17
|
+
* 接收 File 对象,返回 Promise<string>,返回图片的 URL
|
|
18
|
+
*/
|
|
19
|
+
imageUploadHandler?: (file: File) => Promise<string>;
|
|
20
|
+
/**
|
|
21
|
+
* 文档变化时的回调函数
|
|
22
|
+
* 当用户编辑邮件模板时,会调用此函数并传入最新的配置
|
|
23
|
+
*/
|
|
24
|
+
onChange?: (document: TEditorConfiguration) => void;
|
|
25
|
+
/**
|
|
26
|
+
* 自定义主题(可选)
|
|
27
|
+
* 如果不提供,将使用默认的 Material-UI 主题
|
|
28
|
+
*/
|
|
29
|
+
theme?: typeof theme;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* EmailBuilder 组件
|
|
33
|
+
*
|
|
34
|
+
* 一个功能完整的邮件模板编辑器组件,可以在其他 React 项目中使用
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* import { EmailBuilder } from 'monto-email-builder';
|
|
39
|
+
*
|
|
40
|
+
* function MyApp() {
|
|
41
|
+
* const handleChange = (document) => {
|
|
42
|
+
* console.log('Document changed:', document);
|
|
43
|
+
* };
|
|
44
|
+
*
|
|
45
|
+
* const handleImageUpload = async (file: File) => {
|
|
46
|
+
* // 上传图片到服务器
|
|
47
|
+
* const formData = new FormData();
|
|
48
|
+
* formData.append('image', file);
|
|
49
|
+
* const response = await fetch('/api/upload', {
|
|
50
|
+
* method: 'POST',
|
|
51
|
+
* body: formData,
|
|
52
|
+
* });
|
|
53
|
+
* const data = await response.json();
|
|
54
|
+
* return data.url;
|
|
55
|
+
* };
|
|
56
|
+
*
|
|
57
|
+
* return (
|
|
58
|
+
* <EmailBuilder
|
|
59
|
+
* initialLanguage="zh"
|
|
60
|
+
* imageUploadHandler={handleImageUpload}
|
|
61
|
+
* onChange={handleChange}
|
|
62
|
+
* />
|
|
63
|
+
* );
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export default function EmailBuilder({ initialDocument, initialLanguage, imageUploadHandler, onChange, theme: customTheme, }: EmailBuilderProps): React.JSX.Element;
|
|
68
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/EmailBuilder/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAWzC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,MAAM,UAAU,CAAC;AAI7B,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,eAAe,CAAC,EAAE,oBAAoB,CAAC;IAEvC;;;OAGG;IACH,eAAe,CAAC,EAAE,QAAQ,CAAC;IAE3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAErD;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAEpD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,eAAe,EACf,eAAsB,EACtB,kBAAkB,EAClB,QAAQ,EACR,KAAK,EAAE,WAAW,GACnB,EAAE,iBAAiB,qBAmDnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnsContainerEditor.d.ts","sourceRoot":"","sources":["../../../../src/documents/blocks/ColumnsContainer/ColumnsContainerEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAoC,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAInG,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,qBAAqB,qBAoCrF"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
top: z.ZodNumber;
|
|
7
|
+
bottom: z.ZodNumber;
|
|
8
|
+
right: z.ZodNumber;
|
|
9
|
+
left: z.ZodNumber;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
top: number;
|
|
12
|
+
bottom: number;
|
|
13
|
+
right: number;
|
|
14
|
+
left: number;
|
|
15
|
+
}, {
|
|
16
|
+
top: number;
|
|
17
|
+
bottom: number;
|
|
18
|
+
right: number;
|
|
19
|
+
left: number;
|
|
20
|
+
}>>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
backgroundColor?: string | null | undefined;
|
|
23
|
+
padding?: {
|
|
24
|
+
top: number;
|
|
25
|
+
bottom: number;
|
|
26
|
+
right: number;
|
|
27
|
+
left: number;
|
|
28
|
+
} | null | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
backgroundColor?: string | null | undefined;
|
|
31
|
+
padding?: {
|
|
32
|
+
top: number;
|
|
33
|
+
bottom: number;
|
|
34
|
+
right: number;
|
|
35
|
+
left: number;
|
|
36
|
+
} | null | undefined;
|
|
37
|
+
}>>>;
|
|
38
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
39
|
+
columns: z.ZodTuple<[z.ZodObject<{
|
|
40
|
+
childrenIds: z.ZodArray<z.ZodString, "many">;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
childrenIds: string[];
|
|
43
|
+
}, {
|
|
44
|
+
childrenIds: string[];
|
|
45
|
+
}>, z.ZodObject<{
|
|
46
|
+
childrenIds: z.ZodArray<z.ZodString, "many">;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
childrenIds: string[];
|
|
49
|
+
}, {
|
|
50
|
+
childrenIds: string[];
|
|
51
|
+
}>, z.ZodObject<{
|
|
52
|
+
childrenIds: z.ZodArray<z.ZodString, "many">;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
childrenIds: string[];
|
|
55
|
+
}, {
|
|
56
|
+
childrenIds: string[];
|
|
57
|
+
}>], null>;
|
|
58
|
+
fixedWidths: z.ZodNullable<z.ZodOptional<z.ZodTuple<[z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodOptional<z.ZodNullable<z.ZodNumber>>], null>>>;
|
|
59
|
+
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<3>]>>>;
|
|
60
|
+
columnsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
61
|
+
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
columns: [{
|
|
64
|
+
childrenIds: string[];
|
|
65
|
+
}, {
|
|
66
|
+
childrenIds: string[];
|
|
67
|
+
}, {
|
|
68
|
+
childrenIds: string[];
|
|
69
|
+
}];
|
|
70
|
+
fixedWidths?: [number | null | undefined, number | null | undefined, number | null | undefined] | null | undefined;
|
|
71
|
+
columnsCount?: 2 | 3 | null | undefined;
|
|
72
|
+
columnsGap?: number | null | undefined;
|
|
73
|
+
contentAlignment?: "top" | "middle" | "bottom" | null | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
columns: [{
|
|
76
|
+
childrenIds: string[];
|
|
77
|
+
}, {
|
|
78
|
+
childrenIds: string[];
|
|
79
|
+
}, {
|
|
80
|
+
childrenIds: string[];
|
|
81
|
+
}];
|
|
82
|
+
fixedWidths?: [number | null | undefined, number | null | undefined, number | null | undefined] | null | undefined;
|
|
83
|
+
columnsCount?: 2 | 3 | null | undefined;
|
|
84
|
+
columnsGap?: number | null | undefined;
|
|
85
|
+
contentAlignment?: "top" | "middle" | "bottom" | null | undefined;
|
|
86
|
+
}>>>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
style?: {
|
|
89
|
+
backgroundColor?: string | null | undefined;
|
|
90
|
+
padding?: {
|
|
91
|
+
top: number;
|
|
92
|
+
bottom: number;
|
|
93
|
+
right: number;
|
|
94
|
+
left: number;
|
|
95
|
+
} | null | undefined;
|
|
96
|
+
} | null | undefined;
|
|
97
|
+
props?: {
|
|
98
|
+
columns: [{
|
|
99
|
+
childrenIds: string[];
|
|
100
|
+
}, {
|
|
101
|
+
childrenIds: string[];
|
|
102
|
+
}, {
|
|
103
|
+
childrenIds: string[];
|
|
104
|
+
}];
|
|
105
|
+
fixedWidths?: [number | null | undefined, number | null | undefined, number | null | undefined] | null | undefined;
|
|
106
|
+
columnsCount?: 2 | 3 | null | undefined;
|
|
107
|
+
columnsGap?: number | null | undefined;
|
|
108
|
+
contentAlignment?: "top" | "middle" | "bottom" | null | undefined;
|
|
109
|
+
} | null | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
style?: {
|
|
112
|
+
backgroundColor?: string | null | undefined;
|
|
113
|
+
padding?: {
|
|
114
|
+
top: number;
|
|
115
|
+
bottom: number;
|
|
116
|
+
right: number;
|
|
117
|
+
left: number;
|
|
118
|
+
} | null | undefined;
|
|
119
|
+
} | null | undefined;
|
|
120
|
+
props?: {
|
|
121
|
+
columns: [{
|
|
122
|
+
childrenIds: string[];
|
|
123
|
+
}, {
|
|
124
|
+
childrenIds: string[];
|
|
125
|
+
}, {
|
|
126
|
+
childrenIds: string[];
|
|
127
|
+
}];
|
|
128
|
+
fixedWidths?: [number | null | undefined, number | null | undefined, number | null | undefined] | null | undefined;
|
|
129
|
+
columnsCount?: 2 | 3 | null | undefined;
|
|
130
|
+
columnsGap?: number | null | undefined;
|
|
131
|
+
contentAlignment?: "top" | "middle" | "bottom" | null | undefined;
|
|
132
|
+
} | null | undefined;
|
|
133
|
+
}>;
|
|
134
|
+
export type ColumnsContainerProps = z.infer<typeof ColumnsContainerPropsSchema>;
|
|
135
|
+
export default ColumnsContainerPropsSchema;
|
|
136
|
+
//# sourceMappingURL=ColumnsContainerPropsSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnsContainerPropsSchema.d.ts","sourceRoot":"","sources":["../../../../src/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerEditor.d.ts","sourceRoot":"","sources":["../../../../src/documents/blocks/Container/ContainerEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,qBA0BvE"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const ContainerPropsSchema: z.ZodObject<{
|
|
3
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
+
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8
|
+
top: z.ZodNumber;
|
|
9
|
+
bottom: z.ZodNumber;
|
|
10
|
+
right: z.ZodNumber;
|
|
11
|
+
left: z.ZodNumber;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
top: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
right: number;
|
|
16
|
+
left: number;
|
|
17
|
+
}, {
|
|
18
|
+
top: number;
|
|
19
|
+
bottom: number;
|
|
20
|
+
right: number;
|
|
21
|
+
left: number;
|
|
22
|
+
}>>>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
backgroundColor?: string | null | undefined;
|
|
25
|
+
borderColor?: string | null | undefined;
|
|
26
|
+
borderRadius?: number | null | undefined;
|
|
27
|
+
padding?: {
|
|
28
|
+
top: number;
|
|
29
|
+
bottom: number;
|
|
30
|
+
right: number;
|
|
31
|
+
left: number;
|
|
32
|
+
} | null | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
backgroundColor?: string | null | undefined;
|
|
35
|
+
borderColor?: string | null | undefined;
|
|
36
|
+
borderRadius?: number | null | undefined;
|
|
37
|
+
padding?: {
|
|
38
|
+
top: number;
|
|
39
|
+
bottom: number;
|
|
40
|
+
right: number;
|
|
41
|
+
left: number;
|
|
42
|
+
} | null | undefined;
|
|
43
|
+
}>>>;
|
|
44
|
+
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
45
|
+
childrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
childrenIds?: string[] | null | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
childrenIds?: string[] | null | undefined;
|
|
50
|
+
}>>>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
style?: {
|
|
53
|
+
backgroundColor?: string | null | undefined;
|
|
54
|
+
borderColor?: string | null | undefined;
|
|
55
|
+
borderRadius?: number | null | undefined;
|
|
56
|
+
padding?: {
|
|
57
|
+
top: number;
|
|
58
|
+
bottom: number;
|
|
59
|
+
right: number;
|
|
60
|
+
left: number;
|
|
61
|
+
} | null | undefined;
|
|
62
|
+
} | null | undefined;
|
|
63
|
+
props?: {
|
|
64
|
+
childrenIds?: string[] | null | undefined;
|
|
65
|
+
} | null | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
style?: {
|
|
68
|
+
backgroundColor?: string | null | undefined;
|
|
69
|
+
borderColor?: string | null | undefined;
|
|
70
|
+
borderRadius?: number | null | undefined;
|
|
71
|
+
padding?: {
|
|
72
|
+
top: number;
|
|
73
|
+
bottom: number;
|
|
74
|
+
right: number;
|
|
75
|
+
left: number;
|
|
76
|
+
} | null | undefined;
|
|
77
|
+
} | null | undefined;
|
|
78
|
+
props?: {
|
|
79
|
+
childrenIds?: string[] | null | undefined;
|
|
80
|
+
} | null | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
export default ContainerPropsSchema;
|
|
83
|
+
export type ContainerProps = z.infer<typeof ContainerPropsSchema>;
|
|
84
|
+
//# sourceMappingURL=ContainerPropsSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerPropsSchema.d.ts","sourceRoot":"","sources":["../../../../src/documents/blocks/Container/ContainerPropsSchema.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,eAAe,oBAAoB,CAAC;AAEpC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailLayoutEditor.d.ts","sourceRoot":"","sources":["../../../../src/documents/blocks/EmailLayout/EmailLayoutEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AA0B5D,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,qBAsEhE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const EmailLayoutPropsSchema: z.ZodObject<{
|
|
3
|
+
backdropColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
6
|
+
canvasColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
fontFamily: z.ZodOptional<z.ZodNullable<z.ZodEnum<["MODERN_SANS", "BOOK_SANS", "ORGANIC_SANS", "GEOMETRIC_SANS", "HEAVY_SANS", "ROUNDED_SANS", "MODERN_SERIF", "BOOK_SERIF", "MONOSPACE"]>>>;
|
|
9
|
+
width: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
childrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
backdropColor?: string | null | undefined;
|
|
13
|
+
borderColor?: string | null | undefined;
|
|
14
|
+
borderRadius?: number | null | undefined;
|
|
15
|
+
canvasColor?: string | null | undefined;
|
|
16
|
+
textColor?: string | null | undefined;
|
|
17
|
+
fontFamily?: "MODERN_SANS" | "BOOK_SANS" | "ORGANIC_SANS" | "GEOMETRIC_SANS" | "HEAVY_SANS" | "ROUNDED_SANS" | "MODERN_SERIF" | "BOOK_SERIF" | "MONOSPACE" | null | undefined;
|
|
18
|
+
width?: number | null | undefined;
|
|
19
|
+
childrenIds?: string[] | null | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
backdropColor?: string | null | undefined;
|
|
22
|
+
borderColor?: string | null | undefined;
|
|
23
|
+
borderRadius?: number | null | undefined;
|
|
24
|
+
canvasColor?: string | null | undefined;
|
|
25
|
+
textColor?: string | null | undefined;
|
|
26
|
+
fontFamily?: "MODERN_SANS" | "BOOK_SANS" | "ORGANIC_SANS" | "GEOMETRIC_SANS" | "HEAVY_SANS" | "ROUNDED_SANS" | "MODERN_SERIF" | "BOOK_SERIF" | "MONOSPACE" | null | undefined;
|
|
27
|
+
width?: number | null | undefined;
|
|
28
|
+
childrenIds?: string[] | null | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export default EmailLayoutPropsSchema;
|
|
31
|
+
export type EmailLayoutProps = z.infer<typeof EmailLayoutPropsSchema>;
|
|
32
|
+
//# sourceMappingURL=EmailLayoutPropsSchema.d.ts.map
|