pagepilot-visual-editor 1.0.28 → 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.
Files changed (180) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/README.md +42 -28
  3. package/dist/PagePilotEditor.d.ts +12 -9
  4. package/dist/api/ApiClientContext.d.ts +1 -0
  5. package/dist/api/PagepilotApiClient.d.ts +7 -0
  6. package/dist/assets/aiChatbotIcon.d.ts +1 -0
  7. package/dist/blocks-internal/block-container/src/index.d.ts +1 -1
  8. package/dist/blocks-internal/block-heading/src/index.d.ts +1 -1
  9. package/dist/blocks-internal/block-list/src/index.d.ts +11 -1
  10. package/dist/blocks-internal/block-mdx/src/index.d.ts +47 -0
  11. package/dist/blocks-internal/block-quill/src/index.d.ts +48 -0
  12. package/dist/editor/PagePreviewDialog.d.ts +14 -0
  13. package/dist/editor/Topbar.d.ts +3 -1
  14. package/dist/editor/pageUrls.d.ts +25 -0
  15. package/dist/editor/publish/PageLiveSuccessDialog.d.ts +9 -0
  16. package/dist/editor/publish/PagePublishDialog.d.ts +1 -0
  17. package/dist/editor/publish/PublishAccessibilityPanel.d.ts +8 -0
  18. package/dist/editor/publish/a11yLinter.d.ts +8 -0
  19. package/dist/editor/recordDirty.d.ts +16 -0
  20. package/dist/editor/renderSections.d.ts +2 -2
  21. package/dist/editor/savePipeline.d.ts +40 -0
  22. package/dist/editor/types.d.ts +35 -0
  23. package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +22 -0
  24. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandColorPalette.d.ts +9 -0
  25. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandEmptyLink.d.ts +8 -0
  26. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandPanel.styled.d.ts +22 -0
  27. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandSection.d.ts +8 -0
  28. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/EmptyText.d.ts +6 -0
  29. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/FontDetailsList.d.ts +6 -0
  30. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/index.d.ts +5 -0
  31. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/useBrandApply.d.ts +9 -0
  32. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveDeviceTabs.d.ts +0 -2
  33. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +2 -8
  34. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/index.d.ts +1 -4
  35. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +2 -1
  36. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumns/ColumnSection.d.ts +2 -0
  37. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +2 -1
  38. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MdxSidebarPanel.d.ts +7 -0
  39. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +22 -0
  40. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/QuillSidebarPanel.d.ts +8 -0
  41. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +2 -2
  42. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/AnimationSection.d.ts +7 -5
  43. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +1 -1
  44. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/imageSizeUnit.d.ts +19 -0
  45. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +0 -2
  46. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/VariableLinkHint.d.ts +8 -0
  47. package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +8 -2
  48. package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +1 -1
  49. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/AiSupportedBadge.d.ts +7 -0
  50. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/SectionsModal.d.ts +2 -10
  51. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +3 -5
  52. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers.d.ts +226 -0
  53. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/useDebouncedValue.d.ts +8 -0
  54. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/AiFillAllDialog.d.ts +21 -0
  55. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/AiGenerateButton.d.ts +14 -0
  56. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarFieldRow.d.ts +4 -1
  57. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupDialog.d.ts +19 -0
  58. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupList.d.ts +5 -0
  59. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/aiFill.d.ts +36 -0
  60. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +14 -11
  61. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +8 -8
  62. package/dist/editor-sample/App/InspectorDrawer/behaviourFields.d.ts +30 -0
  63. package/dist/editor-sample/App/InspectorDrawer/index.d.ts +8 -1
  64. package/dist/editor-sample/App/InspectorDrawer/publish/BackgroundPanel.d.ts +6 -0
  65. package/dist/editor-sample/App/InspectorDrawer/renderBehaviourField.d.ts +7 -0
  66. package/dist/editor-sample/App/TemplatePanel/hooks/useMainBoxStyles.d.ts +2 -1
  67. package/dist/editor-sample/App/TemplatePanel/index.d.ts +2 -1
  68. package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapSync.d.ts +2 -2
  69. package/dist/editor-sample/App/hooks/page/saveMenuHrefEdits.d.ts +1 -1
  70. package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +1 -0
  71. package/dist/editor-sample/App/hooks/useAutosave.d.ts +8 -3
  72. package/dist/editor-sample/App/hooks/useIsTemplateEditorRoute.d.ts +1 -0
  73. package/dist/editor-sample/App/hooks/useStretch.d.ts +9 -0
  74. package/dist/editor-sample/App/shared/UploadImage.d.ts +4 -0
  75. package/dist/editor-sample/App/shared/editor.styles.d.ts +11 -1
  76. package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +6 -4
  77. package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +33 -2
  78. package/dist/editor-sample/documents/blocks/List/ListEditor.d.ts +8 -0
  79. package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +4 -0
  80. package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +6 -0
  81. package/dist/editor-sample/documents/blocks/Table/TableCellEditor.d.ts +2 -1
  82. package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +11 -1
  83. package/dist/editor-sample/documents/blocks/Table/parseClipboardTable.d.ts +7 -0
  84. package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
  85. package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +2 -0
  86. package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
  87. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +1 -1
  88. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +1 -4
  89. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +0 -6
  90. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts +4 -1
  91. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +16 -4
  92. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/styles.d.ts +2 -2
  93. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +2 -4
  94. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +2 -3
  95. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.styles.d.ts +17 -0
  96. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/saveAsTemplateUtils.d.ts +29 -1
  97. package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +33 -26
  98. package/dist/editor-sample/documents/blocks/helpers/variableBinding.d.ts +9 -0
  99. package/dist/editor-sample/documents/editor/EditorBlock.d.ts +2 -6
  100. package/dist/editor-sample/documents/editor/EditorContext.d.ts +77 -20
  101. package/dist/editor-sample/documents/editor/LazyEditorBlock.d.ts +1 -0
  102. package/dist/editor-sample/documents/editor/core.d.ts +492 -390
  103. package/dist/editor-sample/documents/editor/templateVariables.d.ts +151 -14
  104. package/dist/editor-sample/documents/editor/useRootFontFamily.d.ts +10 -0
  105. package/dist/editor-sample/utils/editorStorageKey.d.ts +2 -0
  106. package/dist/editor-sample/utils/localStoragePref.d.ts +2 -0
  107. package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +1 -1
  108. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
  109. package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
  110. package/dist/email-builder-core/blocks/Timer/variants/CircularProgressView.d.ts +5 -1
  111. package/dist/email-builder-core/blocks/Timer/variants/DigitalFlipView.d.ts +4 -1
  112. package/dist/email-builder-core/blocks/Timer/variants/TextInlineView.d.ts +3 -1
  113. package/dist/email-builder-core/blocks/helpers/blockStyleHelpers.d.ts +22 -0
  114. package/dist/email-builder-core/renderers/pageScripts.d.ts +0 -1
  115. package/dist/email-builder-core/renderers/themeTokens.d.ts +5 -126
  116. package/dist/host-stubs/history.d.ts +5 -0
  117. package/dist/host-stubs/hooks/useTenantFeatureCutoff.d.ts +8 -0
  118. package/dist/host-stubs/hooks/useTenantPlan.d.ts +18 -0
  119. package/dist/host-stubs/i18nAhdDefaults.d.ts +1 -0
  120. package/dist/host-stubs/modules/auth/authCurrentTenant.d.ts +6 -0
  121. package/dist/host-stubs/modules/forms/formsService.d.ts +3 -1
  122. package/dist/host-stubs/modules/forms/useFormsList.d.ts +4 -1
  123. package/dist/host-stubs/modules/menu/menuService.d.ts +4 -0
  124. package/dist/host-stubs/modules/page/pageService.d.ts +11 -0
  125. package/dist/host-stubs/modules/settings/settingsActions.d.ts +2 -0
  126. package/dist/host-stubs/modules/settings/settingsSelectors.d.ts +4 -0
  127. package/dist/host-stubs/modules/shared/axios/authAxios.d.ts +16 -0
  128. package/dist/host-stubs/modules/shared/constants.d.ts +14 -0
  129. package/dist/host-stubs/modules/store.d.ts +4 -0
  130. package/dist/host-stubs/modules/template/templateEnumerators.d.ts +19 -0
  131. package/dist/host-stubs/modules/tour/injectTourIntoPage.d.ts +20 -0
  132. package/dist/host-stubs/style/icons.d.ts +57 -0
  133. package/dist/host-stubs/utils/dateFormats.d.ts +1 -0
  134. package/dist/host-stubs/view/branding/brandDefaultFont.d.ts +3 -1
  135. package/dist/host-stubs/view/branding/styles/BrandIcons.d.ts +9 -0
  136. package/dist/host-stubs/view/branding/styles/types.d.ts +76 -0
  137. package/dist/host-stubs/view/configurations/ConfigurationIcons.d.ts +9 -0
  138. package/dist/host-stubs/view/demo/DemoIcons.d.ts +9 -0
  139. package/dist/host-stubs/view/images/Icons.d.ts +6 -0
  140. package/dist/host-stubs/view/media/MediaGalleryDialog/types.d.ts +47 -0
  141. package/dist/host-stubs/view/media/MediaGalleryDialog/utils/fileUtils.d.ts +3 -0
  142. package/dist/host-stubs/view/media/MediaGalleryDialog/utils/mediaTypes.d.ts +9 -0
  143. package/dist/host-stubs/view/media/MediaGalleryDialog.d.ts +12 -2
  144. package/dist/host-stubs/view/media/styles/MediaIcons.d.ts +13 -0
  145. package/dist/host-stubs/view/shared/Confetti.d.ts +5 -0
  146. package/dist/host-stubs/view/shared/PagePilotLoader.d.ts +2 -0
  147. package/dist/host-stubs/view/shared/UpgradeDialog/UpgradeDialogContext.d.ts +1 -0
  148. package/dist/host-stubs/view/shared/common/CopyToClipboard.d.ts +7 -0
  149. package/dist/host-stubs/view/shared/editors/MdxEditor.d.ts +8 -0
  150. package/dist/host-stubs/view/shared/editors/QuillEditor.d.ts +3 -0
  151. package/dist/host-stubs/view/shared/editors/sanitize.d.ts +4 -0
  152. package/dist/host-stubs/view/shared/editors/types.d.ts +7 -0
  153. package/dist/host-stubs/view/shared/media/TemplatePreviewMedia.d.ts +29 -0
  154. package/dist/host-stubs/view/shared/modals/ConfigureDialog.d.ts +7 -0
  155. package/dist/host-stubs/view/shared/modals/ManageTemplateModal.d.ts +5 -0
  156. package/dist/host-stubs/view/shared/speech/index.d.ts +17 -0
  157. package/dist/host-stubs/view/shared/styles/Table.styles.d.ts +3 -0
  158. package/dist/host-stubs/view/template/form/TemplateFormModal.d.ts +10 -0
  159. package/dist/host-stubs/view/template/form/fields/types.d.ts +7 -0
  160. package/dist/{index-DcN8zC8_.js → index-B8pdGALF.js} +86258 -73803
  161. package/dist/{index-SYmY8c1I.cjs → index-C-KL2oQP.cjs} +1 -1
  162. package/dist/{index-Cp5AeqH5.js → index-CStZQ7E0.js} +1 -1
  163. package/dist/index-DVx38kGU.cjs +1553 -0
  164. package/dist/index.cjs +1 -1
  165. package/dist/index.js +1 -1
  166. package/dist/render-core/combineSections.d.ts +33 -3
  167. package/dist/render-core/dateFormats.d.ts +14 -3
  168. package/dist/render-core/stubs/pickerEmptyState.d.ts +2 -0
  169. package/dist/render-core/stubs/styleIcons.d.ts +1 -0
  170. package/dist/render.cjs +281 -219
  171. package/dist/render.js +9858 -8266
  172. package/dist/style.css +1 -1
  173. package/dist/{xlsx-vznvhtjT.cjs → xlsx-DUs4Mvqq.cjs} +1 -1
  174. package/dist/{xlsx-Bk2GErZO.js → xlsx-bYU68TCR.js} +1 -1
  175. package/package.json +1 -1
  176. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveEditingBanner.d.ts +0 -13
  177. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BoxShadowControls.d.ts +0 -19
  178. package/dist/editor-sample/documents/blocks/AppBannerPicker/appBanner.styled.d.ts +0 -2
  179. package/dist/email-builder-core/blocks/boxShadowSchema.d.ts +0 -23
  180. package/dist/index-Br_dDd3Z.cjs +0 -1493
@@ -0,0 +1,20 @@
1
+ export declare const stripAhdIntegration: (html: string) => string;
2
+ /** Returns the exact AHD integration block from a chunk of HTML, or '' if absent. */
3
+ export declare const extractAhdIntegrationBlock: (html: string) => string;
4
+ export declare const buildAhdIntegrationSnippet: (tenantId: string, slug: string) => string;
5
+ export declare const injectAhdIntegration: (html: string, slug: string, tenantId?: string) => string;
6
+ type LinkedPageSources = {
7
+ tourData?: any;
8
+ record?: any;
9
+ searchParams?: URLSearchParams | null;
10
+ };
11
+ /**
12
+ * Resolves the linked page's slug and id from tour data, record, and URL search params
13
+ * (in that order). When `mode === 'remove'`, strips the AHD integration block from the
14
+ * linked page's first section. Otherwise (re)injects it.
15
+ */
16
+ export declare function injectPageGuideIntoLinkedPage(tourId: string | undefined, sources: LinkedPageSources, mode?: 'inject' | 'remove'): Promise<void>;
17
+ /** Strips the AHD integration block from every section of the linked page. */
18
+ export declare const removeTourFromPage: (pageSlug: string, pageId?: string) => Promise<void>;
19
+ export declare const injectTourIntoPage: (pageSlug: string, _tourId?: string, pageId?: string) => Promise<void>;
20
+ export {};
@@ -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
- export declare const DEFAULT_BRAND_FONT_KEY = "INTER";
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,3 @@
1
+ export declare const extractExtensionFrom: (filename: string) => string | null;
2
+ export declare const extractIdFromUrl: (url: string) => string;
3
+ export declare const formatSizeKB: (sizeInBytes: number) => number;
@@ -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
- declare const MediaGalleryDialog: any;
2
- export default MediaGalleryDialog;
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,5 @@
1
+ interface ConfettiProps {
2
+ zIndex?: number;
3
+ }
4
+ export default function Confetti(_props?: ConfettiProps): any;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const PagePilotLoader: () => import("react/jsx-runtime").JSX.Element;
2
+ export default PagePilotLoader;
@@ -0,0 +1 @@
1
+ export { useUpgradeDialog } from '../../../../editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog';
@@ -0,0 +1,7 @@
1
+ type CopyToClipboardProps = {
2
+ content: string;
3
+ contentName?: string;
4
+ fontSize?: number;
5
+ };
6
+ export default function CopyToClipboard({ content, contentName, fontSize, }: CopyToClipboardProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -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,3 @@
1
+ import { EditorProps } from './types';
2
+ declare const QuillEditor: ({ value, onChange, readOnly, placeholder }: EditorProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default QuillEditor;
@@ -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,7 @@
1
+ export type EditorType = 'summernote' | 'quill';
2
+ export interface EditorProps {
3
+ value: string;
4
+ onChange: (html: string, rawSource?: string) => void;
5
+ readOnly?: boolean;
6
+ placeholder?: string;
7
+ }
@@ -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,7 @@
1
+ export interface ConfigureDialogProps {
2
+ open?: boolean;
3
+ onClose?: () => void;
4
+ [key: string]: unknown;
5
+ }
6
+ declare const ConfigureDialog: (_props: ConfigureDialogProps) => any;
7
+ export default ConfigureDialog;
@@ -0,0 +1,5 @@
1
+ declare const ManageTemplateModalContainer: ({ open, onClose }: {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default ManageTemplateModalContainer;
@@ -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;
@@ -0,0 +1,7 @@
1
+ export declare const codeSx: {
2
+ readonly px: 0.5;
3
+ readonly py: 0.1;
4
+ readonly borderRadius: 0.75;
5
+ readonly bgcolor: "action.hover";
6
+ readonly fontSize: "0.85em";
7
+ };