pagepilot-visual-editor 1.0.29 → 1.0.33

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 (194) hide show
  1. package/CHANGELOG.md +116 -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-button/src/index.d.ts +6 -0
  8. package/dist/blocks-internal/block-container/src/index.d.ts +1 -1
  9. package/dist/blocks-internal/block-heading/src/index.d.ts +2 -2
  10. package/dist/blocks-internal/block-list/src/index.d.ts +12 -2
  11. package/dist/blocks-internal/block-mdx/src/index.d.ts +47 -0
  12. package/dist/blocks-internal/block-quill/src/index.d.ts +48 -0
  13. package/dist/editor/PagePreviewDialog.d.ts +14 -0
  14. package/dist/editor/Topbar.d.ts +3 -1
  15. package/dist/editor/pageUrls.d.ts +25 -0
  16. package/dist/editor/publish/PageLiveSuccessDialog.d.ts +9 -0
  17. package/dist/editor/publish/PagePublishDialog.d.ts +1 -0
  18. package/dist/editor/publish/PublishAccessibilityPanel.d.ts +8 -0
  19. package/dist/editor/publish/a11yLinter.d.ts +8 -0
  20. package/dist/editor/recordDirty.d.ts +16 -0
  21. package/dist/editor/renderSections.d.ts +2 -2
  22. package/dist/editor/savePipeline.d.ts +40 -0
  23. package/dist/editor/types.d.ts +35 -0
  24. package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +22 -0
  25. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandColorPalette.d.ts +9 -0
  26. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandEmptyLink.d.ts +8 -0
  27. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandPanel.styled.d.ts +22 -0
  28. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandSection.d.ts +8 -0
  29. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/EmptyText.d.ts +6 -0
  30. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/FontDetailsList.d.ts +6 -0
  31. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/index.d.ts +5 -0
  32. package/dist/editor-sample/App/InspectorDrawer/BrandPanel/useBrandApply.d.ts +9 -0
  33. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveDeviceTabs.d.ts +0 -2
  34. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +2 -8
  35. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/index.d.ts +1 -4
  36. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +2 -1
  37. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumns/ColumnSection.d.ts +2 -0
  38. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +2 -1
  39. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MdxSidebarPanel.d.ts +7 -0
  40. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +23 -1
  41. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/QuillSidebarPanel.d.ts +8 -0
  42. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +2 -2
  43. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/AnimationSection.d.ts +7 -5
  44. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +1 -1
  45. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/imageSizeUnit.d.ts +19 -0
  46. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +0 -2
  47. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/VariableLinkHint.d.ts +27 -0
  48. package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +8 -2
  49. package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
  50. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/AiSupportedBadge.d.ts +7 -0
  51. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/SectionsModal.d.ts +2 -10
  52. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +3 -5
  53. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers.d.ts +198 -0
  54. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/useDebouncedValue.d.ts +8 -0
  55. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/AiGenerateButton.d.ts +18 -0
  56. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ItemsArrayRepeatSection.d.ts +2 -3
  57. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarFieldRow.d.ts +4 -1
  58. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupDialog.d.ts +19 -0
  59. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupList.d.ts +5 -0
  60. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/aiFill.d.ts +75 -0
  61. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +14 -11
  62. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +8 -8
  63. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/useAutoRegisterTokenFields.d.ts +8 -0
  64. package/dist/editor-sample/App/InspectorDrawer/behaviourFields.d.ts +30 -0
  65. package/dist/editor-sample/App/InspectorDrawer/components/RichTextAiButton.d.ts +7 -0
  66. package/dist/editor-sample/App/InspectorDrawer/index.d.ts +8 -1
  67. package/dist/editor-sample/App/InspectorDrawer/publish/BackgroundPanel.d.ts +6 -0
  68. package/dist/editor-sample/App/InspectorDrawer/renderBehaviourField.d.ts +7 -0
  69. package/dist/editor-sample/App/TemplatePanel/hooks/useMainBoxStyles.d.ts +2 -1
  70. package/dist/editor-sample/App/TemplatePanel/index.d.ts +2 -1
  71. package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapSync.d.ts +2 -2
  72. package/dist/editor-sample/App/TemplatePanel/pageGuide/iframeSrcDoc.d.ts +3 -6
  73. package/dist/editor-sample/App/hooks/page/saveMenuHrefEdits.d.ts +1 -1
  74. package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +1 -0
  75. package/dist/editor-sample/App/hooks/useAutosave.d.ts +8 -3
  76. package/dist/editor-sample/App/hooks/useIsTemplateEditorRoute.d.ts +1 -0
  77. package/dist/editor-sample/App/hooks/useStretch.d.ts +9 -0
  78. package/dist/editor-sample/App/shared/PagePreviewFrame.d.ts +17 -2
  79. package/dist/editor-sample/App/shared/UploadImage.d.ts +4 -0
  80. package/dist/editor-sample/App/shared/editor.styles.d.ts +13 -3
  81. package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +6 -4
  82. package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +4 -0
  83. package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +33 -2
  84. package/dist/editor-sample/documents/blocks/List/ListEditor.d.ts +8 -0
  85. package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +4 -0
  86. package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +11 -0
  87. package/dist/editor-sample/documents/blocks/Table/TableCellEditor.d.ts +2 -1
  88. package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +15 -5
  89. package/dist/editor-sample/documents/blocks/Table/parseClipboardTable.d.ts +7 -0
  90. package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
  91. package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +2 -0
  92. package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
  93. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +1 -1
  94. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +1 -4
  95. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +0 -6
  96. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts +4 -1
  97. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +16 -4
  98. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/TableResizeOverlay.d.ts +17 -0
  99. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/styles.d.ts +2 -2
  100. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +2 -4
  101. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +2 -3
  102. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.styles.d.ts +17 -0
  103. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/saveAsTemplateUtils.d.ts +37 -7
  104. package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +55 -28
  105. package/dist/editor-sample/documents/blocks/helpers/responsiveStyle.d.ts +1 -1
  106. package/dist/editor-sample/documents/blocks/helpers/variableBinding.d.ts +9 -2
  107. package/dist/editor-sample/documents/editor/EditorBlock.d.ts +2 -6
  108. package/dist/editor-sample/documents/editor/EditorContext.d.ts +87 -20
  109. package/dist/editor-sample/documents/editor/LazyEditorBlock.d.ts +1 -0
  110. package/dist/editor-sample/documents/editor/core.d.ts +510 -390
  111. package/dist/editor-sample/documents/editor/templateVariables.d.ts +178 -25
  112. package/dist/editor-sample/documents/editor/useRootFontFamily.d.ts +10 -0
  113. package/dist/editor-sample/utils/editorStorageKey.d.ts +2 -0
  114. package/dist/editor-sample/utils/localStoragePref.d.ts +2 -0
  115. package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +1 -1
  116. package/dist/email-builder-core/blocks/Container/ContainerReader.d.ts +1 -1
  117. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +4 -0
  118. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
  119. package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +3 -0
  120. package/dist/email-builder-core/blocks/FlexColumns/flexColumnsHelpers.d.ts +4 -2
  121. package/dist/email-builder-core/blocks/MenuPicker/MenuColumns.d.ts +13 -0
  122. package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +10 -0
  123. package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
  124. package/dist/email-builder-core/index.d.ts +0 -2
  125. package/dist/email-builder-core/renderers/pageScripts.d.ts +0 -1
  126. package/dist/email-builder-core/renderers/themeTokens.d.ts +94 -132
  127. package/dist/host-stubs/history.d.ts +5 -0
  128. package/dist/host-stubs/hooks/useTenantFeatureCutoff.d.ts +8 -0
  129. package/dist/host-stubs/hooks/useTenantPlan.d.ts +18 -0
  130. package/dist/host-stubs/i18nAhdDefaults.d.ts +1 -0
  131. package/dist/host-stubs/modules/allSlugs/allSlugsActions.d.ts +1 -0
  132. package/dist/host-stubs/modules/allSlugs/allSlugsSelectors.d.ts +1 -0
  133. package/dist/host-stubs/modules/auth/authCurrentTenant.d.ts +6 -0
  134. package/dist/host-stubs/modules/forms/formsService.d.ts +3 -1
  135. package/dist/host-stubs/modules/forms/useFormsList.d.ts +4 -1
  136. package/dist/host-stubs/modules/menu/menuService.d.ts +4 -0
  137. package/dist/host-stubs/modules/page/pageService.d.ts +11 -0
  138. package/dist/host-stubs/modules/settings/settingsActions.d.ts +2 -0
  139. package/dist/host-stubs/modules/settings/settingsSelectors.d.ts +4 -0
  140. package/dist/host-stubs/modules/shared/axios/authAxios.d.ts +17 -0
  141. package/dist/host-stubs/modules/shared/constants.d.ts +14 -0
  142. package/dist/host-stubs/modules/store.d.ts +4 -0
  143. package/dist/host-stubs/modules/template/templateEnumerators.d.ts +19 -0
  144. package/dist/host-stubs/modules/tour/injectTourIntoPage.d.ts +20 -0
  145. package/dist/host-stubs/modules/websiteV2/propagateFromPage.d.ts +4 -0
  146. package/dist/host-stubs/style/icons.d.ts +57 -0
  147. package/dist/host-stubs/utils/dateFormats.d.ts +1 -0
  148. package/dist/host-stubs/view/branding/brandDefaultFont.d.ts +3 -1
  149. package/dist/host-stubs/view/branding/styles/BrandIcons.d.ts +9 -0
  150. package/dist/host-stubs/view/branding/styles/types.d.ts +76 -0
  151. package/dist/host-stubs/view/configurations/ConfigurationIcons.d.ts +9 -0
  152. package/dist/host-stubs/view/demo/DemoIcons.d.ts +9 -0
  153. package/dist/host-stubs/view/images/Icons.d.ts +6 -0
  154. package/dist/host-stubs/view/media/MediaGalleryDialog/types.d.ts +47 -0
  155. package/dist/host-stubs/view/media/MediaGalleryDialog/utils/fileUtils.d.ts +3 -0
  156. package/dist/host-stubs/view/media/MediaGalleryDialog/utils/mediaTypes.d.ts +9 -0
  157. package/dist/host-stubs/view/media/MediaGalleryDialog.d.ts +12 -2
  158. package/dist/host-stubs/view/media/styles/MediaIcons.d.ts +13 -0
  159. package/dist/host-stubs/view/shared/Confetti.d.ts +5 -0
  160. package/dist/host-stubs/view/shared/PagePilotLoader.d.ts +2 -0
  161. package/dist/host-stubs/view/shared/UpgradeDialog/UpgradeDialogContext.d.ts +1 -0
  162. package/dist/host-stubs/view/shared/common/CopyToClipboard.d.ts +7 -0
  163. package/dist/host-stubs/view/shared/editors/MdxEditor.d.ts +8 -0
  164. package/dist/host-stubs/view/shared/editors/QuillEditor.d.ts +3 -0
  165. package/dist/host-stubs/view/shared/editors/sanitize.d.ts +4 -0
  166. package/dist/host-stubs/view/shared/editors/types.d.ts +7 -0
  167. package/dist/host-stubs/view/shared/media/TemplatePreviewMedia.d.ts +29 -0
  168. package/dist/host-stubs/view/shared/modals/ConfigureDialog.d.ts +7 -0
  169. package/dist/host-stubs/view/shared/modals/ManageTemplateModal.d.ts +5 -0
  170. package/dist/host-stubs/view/shared/speech/index.d.ts +17 -0
  171. package/dist/host-stubs/view/shared/styles/Table.styles.d.ts +3 -0
  172. package/dist/host-stubs/view/template/form/TemplateFormModal.d.ts +10 -0
  173. package/dist/host-stubs/view/template/form/fields/types.d.ts +7 -0
  174. package/dist/{index-BN1BduFG.js → index-BONR8bWR.js} +1 -1
  175. package/dist/{index-DojXOBrb.js → index-B_cb-ZLC.js} +88415 -74153
  176. package/dist/index-BfIWhBCR.cjs +1561 -0
  177. package/dist/{index-BRq3RgdO.cjs → index-CFA3aG_U.cjs} +1 -1
  178. package/dist/index.cjs +1 -1
  179. package/dist/index.js +1 -1
  180. package/dist/render-core/combineSections.d.ts +33 -3
  181. package/dist/render-core/dateFormats.d.ts +14 -3
  182. package/dist/render-core/stubs/pickerEmptyState.d.ts +2 -0
  183. package/dist/render-core/stubs/styleIcons.d.ts +1 -0
  184. package/dist/render.cjs +272 -219
  185. package/dist/render.js +9856 -7949
  186. package/dist/style.css +1 -1
  187. package/dist/{xlsx-D2quXLTv.cjs → xlsx-CBpoXUEM.cjs} +1 -1
  188. package/dist/{xlsx-0y4dyiCO.js → xlsx-DSqBw3Em.js} +1 -1
  189. package/package.json +1 -1
  190. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveEditingBanner.d.ts +0 -13
  191. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BoxShadowControls.d.ts +0 -19
  192. package/dist/editor-sample/documents/blocks/AppBannerPicker/appBanner.styled.d.ts +0 -2
  193. package/dist/email-builder-core/blocks/boxShadowSchema.d.ts +0 -23
  194. package/dist/index-DEBoxZlq.cjs +0 -1510
@@ -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>, "border" | "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" | "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
+ };
@@ -1,4 +1,4 @@
1
- import { g as jl, c as fe } from "./index-DojXOBrb.js";
1
+ import { g as jl, c as fe } from "./index-B_cb-ZLC.js";
2
2
  import { c as It } from "./_commonjs-dynamic-modules-BpilXLfW.js";
3
3
  function Xl(e, n) {
4
4
  for (var t = 0; t < n.length; t++) {