pagepilot-visual-editor 1.0.29 → 1.0.30
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/CHANGELOG.md +96 -0
- package/README.md +42 -28
- package/dist/PagePilotEditor.d.ts +12 -9
- package/dist/api/ApiClientContext.d.ts +1 -0
- package/dist/api/PagepilotApiClient.d.ts +7 -0
- package/dist/assets/aiChatbotIcon.d.ts +1 -0
- package/dist/blocks-internal/block-container/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-list/src/index.d.ts +11 -1
- package/dist/blocks-internal/block-mdx/src/index.d.ts +47 -0
- package/dist/blocks-internal/block-quill/src/index.d.ts +48 -0
- package/dist/editor/PagePreviewDialog.d.ts +14 -0
- package/dist/editor/Topbar.d.ts +3 -1
- package/dist/editor/pageUrls.d.ts +25 -0
- package/dist/editor/publish/PageLiveSuccessDialog.d.ts +9 -0
- package/dist/editor/publish/PagePublishDialog.d.ts +1 -0
- package/dist/editor/publish/PublishAccessibilityPanel.d.ts +8 -0
- package/dist/editor/publish/a11yLinter.d.ts +8 -0
- package/dist/editor/recordDirty.d.ts +16 -0
- package/dist/editor/renderSections.d.ts +2 -2
- package/dist/editor/savePipeline.d.ts +40 -0
- package/dist/editor/types.d.ts +35 -0
- package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandColorPalette.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandEmptyLink.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandPanel.styled.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandSection.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/EmptyText.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/FontDetailsList.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/index.d.ts +5 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/useBrandApply.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveDeviceTabs.d.ts +0 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +2 -8
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/index.d.ts +1 -4
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumns/ColumnSection.d.ts +2 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MdxSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/QuillSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/AnimationSection.d.ts +7 -5
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/imageSizeUnit.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +0 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/VariableLinkHint.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +8 -2
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/AiSupportedBadge.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/SectionsModal.d.ts +2 -10
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +3 -5
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers.d.ts +226 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/useDebouncedValue.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/AiFillAllDialog.d.ts +21 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/AiGenerateButton.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarFieldRow.d.ts +4 -1
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupDialog.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupList.d.ts +5 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/aiFill.d.ts +36 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +14 -11
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +8 -8
- package/dist/editor-sample/App/InspectorDrawer/behaviourFields.d.ts +30 -0
- package/dist/editor-sample/App/InspectorDrawer/index.d.ts +8 -1
- package/dist/editor-sample/App/InspectorDrawer/publish/BackgroundPanel.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/renderBehaviourField.d.ts +7 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useMainBoxStyles.d.ts +2 -1
- package/dist/editor-sample/App/TemplatePanel/index.d.ts +2 -1
- package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapSync.d.ts +2 -2
- package/dist/editor-sample/App/hooks/page/saveMenuHrefEdits.d.ts +1 -1
- package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +1 -0
- package/dist/editor-sample/App/hooks/useAutosave.d.ts +8 -3
- package/dist/editor-sample/App/hooks/useIsTemplateEditorRoute.d.ts +1 -0
- package/dist/editor-sample/App/hooks/useStretch.d.ts +9 -0
- package/dist/editor-sample/App/shared/UploadImage.d.ts +4 -0
- package/dist/editor-sample/App/shared/editor.styles.d.ts +11 -1
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +6 -4
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +33 -2
- package/dist/editor-sample/documents/blocks/List/ListEditor.d.ts +8 -0
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +4 -0
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/Table/TableCellEditor.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +11 -1
- package/dist/editor-sample/documents/blocks/Table/parseClipboardTable.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +1 -4
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +0 -6
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts +4 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +16 -4
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/styles.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +2 -4
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +2 -3
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.styles.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/saveAsTemplateUtils.d.ts +29 -1
- package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +33 -26
- package/dist/editor-sample/documents/blocks/helpers/variableBinding.d.ts +9 -0
- package/dist/editor-sample/documents/editor/EditorBlock.d.ts +2 -6
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +77 -20
- package/dist/editor-sample/documents/editor/LazyEditorBlock.d.ts +1 -0
- package/dist/editor-sample/documents/editor/core.d.ts +492 -390
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +151 -14
- package/dist/editor-sample/documents/editor/useRootFontFamily.d.ts +10 -0
- package/dist/editor-sample/utils/editorStorageKey.d.ts +2 -0
- package/dist/editor-sample/utils/localStoragePref.d.ts +2 -0
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +1 -1
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/index.d.ts +0 -2
- package/dist/email-builder-core/renderers/pageScripts.d.ts +0 -1
- package/dist/email-builder-core/renderers/themeTokens.d.ts +4 -138
- package/dist/host-stubs/history.d.ts +5 -0
- package/dist/host-stubs/hooks/useTenantFeatureCutoff.d.ts +8 -0
- package/dist/host-stubs/hooks/useTenantPlan.d.ts +18 -0
- package/dist/host-stubs/i18nAhdDefaults.d.ts +1 -0
- package/dist/host-stubs/modules/auth/authCurrentTenant.d.ts +6 -0
- package/dist/host-stubs/modules/forms/formsService.d.ts +3 -1
- package/dist/host-stubs/modules/forms/useFormsList.d.ts +4 -1
- package/dist/host-stubs/modules/menu/menuService.d.ts +4 -0
- package/dist/host-stubs/modules/page/pageService.d.ts +11 -0
- package/dist/host-stubs/modules/settings/settingsActions.d.ts +2 -0
- package/dist/host-stubs/modules/settings/settingsSelectors.d.ts +4 -0
- package/dist/host-stubs/modules/shared/axios/authAxios.d.ts +16 -0
- package/dist/host-stubs/modules/shared/constants.d.ts +14 -0
- package/dist/host-stubs/modules/store.d.ts +4 -0
- package/dist/host-stubs/modules/template/templateEnumerators.d.ts +19 -0
- package/dist/host-stubs/modules/tour/injectTourIntoPage.d.ts +20 -0
- package/dist/host-stubs/style/icons.d.ts +57 -0
- package/dist/host-stubs/utils/dateFormats.d.ts +1 -0
- package/dist/host-stubs/view/branding/brandDefaultFont.d.ts +3 -1
- package/dist/host-stubs/view/branding/styles/BrandIcons.d.ts +9 -0
- package/dist/host-stubs/view/branding/styles/types.d.ts +76 -0
- package/dist/host-stubs/view/configurations/ConfigurationIcons.d.ts +9 -0
- package/dist/host-stubs/view/demo/DemoIcons.d.ts +9 -0
- package/dist/host-stubs/view/images/Icons.d.ts +6 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/types.d.ts +47 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/utils/fileUtils.d.ts +3 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/utils/mediaTypes.d.ts +9 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog.d.ts +12 -2
- package/dist/host-stubs/view/media/styles/MediaIcons.d.ts +13 -0
- package/dist/host-stubs/view/shared/Confetti.d.ts +5 -0
- package/dist/host-stubs/view/shared/PagePilotLoader.d.ts +2 -0
- package/dist/host-stubs/view/shared/UpgradeDialog/UpgradeDialogContext.d.ts +1 -0
- package/dist/host-stubs/view/shared/common/CopyToClipboard.d.ts +7 -0
- package/dist/host-stubs/view/shared/editors/MdxEditor.d.ts +8 -0
- package/dist/host-stubs/view/shared/editors/QuillEditor.d.ts +3 -0
- package/dist/host-stubs/view/shared/editors/sanitize.d.ts +4 -0
- package/dist/host-stubs/view/shared/editors/types.d.ts +7 -0
- package/dist/host-stubs/view/shared/media/TemplatePreviewMedia.d.ts +29 -0
- package/dist/host-stubs/view/shared/modals/ConfigureDialog.d.ts +7 -0
- package/dist/host-stubs/view/shared/modals/ManageTemplateModal.d.ts +5 -0
- package/dist/host-stubs/view/shared/speech/index.d.ts +17 -0
- package/dist/host-stubs/view/shared/styles/Table.styles.d.ts +3 -0
- package/dist/host-stubs/view/template/form/TemplateFormModal.d.ts +10 -0
- package/dist/host-stubs/view/template/form/fields/types.d.ts +7 -0
- package/dist/{index-DojXOBrb.js → index-B8pdGALF.js} +86282 -73896
- package/dist/{index-BRq3RgdO.cjs → index-C-KL2oQP.cjs} +1 -1
- package/dist/{index-BN1BduFG.js → index-CStZQ7E0.js} +1 -1
- package/dist/index-DVx38kGU.cjs +1553 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render-core/combineSections.d.ts +33 -3
- package/dist/render-core/dateFormats.d.ts +14 -3
- package/dist/render-core/stubs/pickerEmptyState.d.ts +2 -0
- package/dist/render-core/stubs/styleIcons.d.ts +1 -0
- package/dist/render.cjs +262 -217
- package/dist/render.js +9255 -7732
- package/dist/style.css +1 -1
- package/dist/{xlsx-D2quXLTv.cjs → xlsx-DUs4Mvqq.cjs} +1 -1
- package/dist/{xlsx-0y4dyiCO.js → xlsx-bYU68TCR.js} +1 -1
- package/package.json +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveEditingBanner.d.ts +0 -13
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BoxShadowControls.d.ts +0 -19
- package/dist/editor-sample/documents/blocks/AppBannerPicker/appBanner.styled.d.ts +0 -2
- package/dist/email-builder-core/blocks/boxShadowSchema.d.ts +0 -23
- package/dist/index-DEBoxZlq.cjs +0 -1510
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare const BrowserIcon: {
|
|
3
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
muiName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const RedoIcon: {
|
|
7
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const UndoIcon: {
|
|
11
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
muiName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const GridDotsOuter: {
|
|
15
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
muiName: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const BracketsIcon: {
|
|
19
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
muiName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const ClipBoardIcon: {
|
|
23
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
muiName: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const ListIcon: {
|
|
27
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
muiName: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const CodeIcon: {
|
|
31
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
muiName: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const DotsGridIcon: {
|
|
35
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
muiName: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const RollerBrushIcon: {
|
|
39
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
muiName: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const AlignLeftIcon: {
|
|
43
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
muiName: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const AlignCenterIcon: {
|
|
47
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
muiName: string;
|
|
49
|
+
};
|
|
50
|
+
export declare const AlignRightIcon: {
|
|
51
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
muiName: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const AlignJustifyIcon: {
|
|
55
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
muiName: string;
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../render-core/dateFormats';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { BrandTypography, BrandTypographyLevel, DEFAULT_BRAND_FONT_KEY } from './styles/types';
|
|
2
|
+
export { DEFAULT_BRAND_FONT_KEY };
|
|
2
3
|
export declare function resolveRootFontFamily(rootFontFamily?: string | null): string;
|
|
3
4
|
export declare function getBrandDefaultFontFamily(): string;
|
|
5
|
+
export declare function getBrandTypographyLevel(_tag: keyof BrandTypography): BrandTypographyLevel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare const InfoCircleIcon: {
|
|
3
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
muiName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const StopIcon: {
|
|
7
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export type BrandColor = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
color: string;
|
|
5
|
+
};
|
|
6
|
+
export type BrandFontWeight = '400' | '500' | '600' | '700';
|
|
7
|
+
export type BrandFont = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
fontFamily: string;
|
|
11
|
+
weight: BrandFontWeight;
|
|
12
|
+
color: string;
|
|
13
|
+
fontSize?: number | null;
|
|
14
|
+
};
|
|
15
|
+
export type BrandLink = {
|
|
16
|
+
id: string;
|
|
17
|
+
url: string;
|
|
18
|
+
};
|
|
19
|
+
export type BrandButtonHover = {
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
backgroundColor?: string | null;
|
|
22
|
+
textColor?: string | null;
|
|
23
|
+
};
|
|
24
|
+
export type BrandButtonBorder = {
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
color?: string | null;
|
|
27
|
+
width?: number | null;
|
|
28
|
+
};
|
|
29
|
+
export type BrandButton = {
|
|
30
|
+
primaryColor: string;
|
|
31
|
+
textColor: string;
|
|
32
|
+
width: number | null;
|
|
33
|
+
padding: number | null;
|
|
34
|
+
fontFamily: string;
|
|
35
|
+
fontSize: number | null;
|
|
36
|
+
cornerRadius: number | null;
|
|
37
|
+
hover: BrandButtonHover;
|
|
38
|
+
border: BrandButtonBorder;
|
|
39
|
+
};
|
|
40
|
+
export type BrandAsset = {
|
|
41
|
+
url: string;
|
|
42
|
+
name: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const DEFAULT_BRAND_FONT_KEY = "INTER";
|
|
45
|
+
export type BrandTypographyLevel = {
|
|
46
|
+
fontSize: number | null;
|
|
47
|
+
fontSizeTablet?: number | null;
|
|
48
|
+
fontSizeMobile?: number | null;
|
|
49
|
+
color: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type BrandTypography = {
|
|
52
|
+
h1: BrandTypographyLevel;
|
|
53
|
+
h2: BrandTypographyLevel;
|
|
54
|
+
h3: BrandTypographyLevel;
|
|
55
|
+
h4: BrandTypographyLevel;
|
|
56
|
+
h5: BrandTypographyLevel;
|
|
57
|
+
h6: BrandTypographyLevel;
|
|
58
|
+
p: BrandTypographyLevel;
|
|
59
|
+
};
|
|
60
|
+
export type BrandingConfig = {
|
|
61
|
+
colors: BrandColor[];
|
|
62
|
+
backgroundColors: BrandColor[];
|
|
63
|
+
fonts: BrandFont[];
|
|
64
|
+
defaultFontFamily: string;
|
|
65
|
+
typography: BrandTypography;
|
|
66
|
+
links: BrandLink[];
|
|
67
|
+
button: BrandButton;
|
|
68
|
+
organizationLogo?: BrandAsset | null;
|
|
69
|
+
favicon?: BrandAsset | null;
|
|
70
|
+
showBranding?: boolean;
|
|
71
|
+
};
|
|
72
|
+
export declare const EMPTY_BUTTON: BrandButton;
|
|
73
|
+
export declare const EMPTY_TYPOGRAPHY_LEVEL: BrandTypographyLevel;
|
|
74
|
+
export declare const EMPTY_TYPOGRAPHY: BrandTypography;
|
|
75
|
+
export declare const DEFAULT_BRANDING: BrandingConfig;
|
|
76
|
+
export declare const isButtonEmpty: (b: BrandButton) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare const InfoCircleIcon: {
|
|
3
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
muiName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const MagicWandIcon: {
|
|
7
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare const TabletIcon: {
|
|
3
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
muiName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DesktopIcon: {
|
|
7
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
|
@@ -647,3 +647,9 @@ export declare const ImagePlusIcon: {
|
|
|
647
647
|
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
648
648
|
muiName: string;
|
|
649
649
|
};
|
|
650
|
+
export declare const TimerBlockIcon: (props: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
651
|
+
export declare const ProgressBarIcon: (props: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
652
|
+
export declare const PageLiveIcon: {
|
|
653
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
654
|
+
muiName: string;
|
|
655
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type MediaType = 'video' | 'image' | 'both';
|
|
2
|
+
export interface MediaGalleryDialogProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onFilesSelected: (files: any[]) => void;
|
|
6
|
+
fetcher?: () => void;
|
|
7
|
+
mediaType?: MediaType;
|
|
8
|
+
multiSelect?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface MediaItem {
|
|
11
|
+
_id: string | number;
|
|
12
|
+
title?: string;
|
|
13
|
+
size: number;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
fileName: string;
|
|
17
|
+
thumbnailUrl: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface FileUploadData {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
sizeInBytes: number;
|
|
24
|
+
publicUrl: string | null;
|
|
25
|
+
privateUrl: string;
|
|
26
|
+
downloadUrl: string;
|
|
27
|
+
new: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface FileCredentials {
|
|
30
|
+
uploadCredentials: {
|
|
31
|
+
url: string;
|
|
32
|
+
fields?: Record<string, string>;
|
|
33
|
+
publicUrl?: string;
|
|
34
|
+
};
|
|
35
|
+
downloadUrl: string;
|
|
36
|
+
privateUrl: string;
|
|
37
|
+
}
|
|
38
|
+
export interface EditModalState {
|
|
39
|
+
isOpen: boolean;
|
|
40
|
+
item: MediaItem | null;
|
|
41
|
+
mode: 'name' | 'image' | '';
|
|
42
|
+
fileName: string;
|
|
43
|
+
imageUrl: string;
|
|
44
|
+
uploading: boolean;
|
|
45
|
+
selectedFile: File | null;
|
|
46
|
+
previewUrl: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MediaType } from '../types';
|
|
2
|
+
export declare const VIDEO_EXTENSIONS: string[];
|
|
3
|
+
export declare const IMAGE_EXTENSIONS: string[];
|
|
4
|
+
export declare const VIDEO_MIME_TYPES: string[];
|
|
5
|
+
export declare const IMAGE_MIME_TYPES: string[];
|
|
6
|
+
export declare const isVideoFile: (filename: string) => boolean;
|
|
7
|
+
export declare const isImageFile: (filename: string) => boolean;
|
|
8
|
+
export declare const getAcceptedTypes: (mediaType?: MediaType) => string[];
|
|
9
|
+
export declare const matchesMediaType: (fileName: string, mediaType?: MediaType) => boolean;
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { MediaItem } from './MediaGalleryDialog/types';
|
|
2
|
+
type MediaType = 'image' | 'video' | 'both' | string;
|
|
3
|
+
export interface MediaGalleryDialogProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onFilesSelected: (files: MediaItem[]) => void;
|
|
7
|
+
mediaType?: MediaType;
|
|
8
|
+
multiSelect?: boolean;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export default function MediaGalleryDialog({ isOpen, onClose, onFilesSelected, mediaType, multiSelect, }: MediaGalleryDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare const CloudUploadIcon: {
|
|
3
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
muiName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const NoImagesIcon: {
|
|
7
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const IconLibraryIcon: {
|
|
11
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
muiName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useUpgradeDialog } from '../../../../editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface EditorProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const MdxEditor: ({ value, onChange, readOnly, placeholder }: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default MdxEditor;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function normalizeTables(html: string): string;
|
|
2
|
+
export declare function sanitizePastedHtml(html: string): string;
|
|
3
|
+
export declare function sanitizeAndNormalize(html: string): string;
|
|
4
|
+
export declare function renderMarkdownToHtml(markdown: string): string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const isVideoName: (name?: string) => boolean;
|
|
3
|
+
export declare const isVideoAsset: (asset?: {
|
|
4
|
+
name?: string;
|
|
5
|
+
downloadUrl?: string;
|
|
6
|
+
publicUrl?: string;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Pick the preview asset for a template. The `image[0]` slot holds whichever
|
|
10
|
+
* media the author uploaded — MediaUploader writes both images and videos into
|
|
11
|
+
* this single array so the record model stays uniform.
|
|
12
|
+
*/
|
|
13
|
+
export declare const resolveTemplatePreviewAsset: (template?: any) => any | null;
|
|
14
|
+
type Props = {
|
|
15
|
+
src?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
alt?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
width?: number | string;
|
|
21
|
+
height?: number | string;
|
|
22
|
+
autoPlay?: boolean;
|
|
23
|
+
loop?: boolean;
|
|
24
|
+
controls?: boolean;
|
|
25
|
+
onClick?: React.MouseEventHandler;
|
|
26
|
+
onLoad?: React.ReactEventHandler<HTMLImageElement | HTMLVideoElement>;
|
|
27
|
+
};
|
|
28
|
+
declare const TemplatePreviewMedia: React.FC<Props>;
|
|
29
|
+
export default TemplatePreviewMedia;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type SpeechApi = {
|
|
2
|
+
supported: boolean;
|
|
3
|
+
listening: boolean;
|
|
4
|
+
interim: string;
|
|
5
|
+
toggle: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function useSpeechRecognition(_onResult: (text: string) => void, _active?: boolean): SpeechApi;
|
|
8
|
+
export declare const SpeechInterimBubble: (_props: {
|
|
9
|
+
listening: boolean;
|
|
10
|
+
interim: string;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}) => any;
|
|
13
|
+
export declare const MicIcon: (_props: {
|
|
14
|
+
size?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: unknown;
|
|
17
|
+
}) => any;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const StyledCellContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
2
|
+
export declare const StyledCellValue: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "top" | "bottom" | "right" | "left" | "padding" | "margin" | "style" | "lineHeight" | "children" | "className" | "fontSize" | "fontFamily" | "fontWeight" | "fontStyle" | "textAlign" | "marginBottom" | "width" | "height" | "borderRadius" | "borderColor" | "gap" | "p" | "color" | "flex" | "display" | "position" | "border" | "paddingBottom" | "align" | "bgcolor" | "borderTop" | "px" | "boxShadow" | "overflow" | "variant" | "paddingX" | "paddingY" | "marginX" | "marginY" | "maxWidth" | "maxHeight" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "py" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
3
|
+
export declare const StyledCopyIconContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface TemplateFormModalProps {
|
|
2
|
+
type?: string;
|
|
3
|
+
open?: boolean;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
record?: unknown;
|
|
6
|
+
onSuccess?: (...args: unknown[]) => void;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
declare const TemplateFormModal: (_props: TemplateFormModalProps) => any;
|
|
10
|
+
export default TemplateFormModal;
|