react-edit-to-html 1.2.17 → 1.2.19

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/dist/src/App.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { HtmlEditorProps } from './types';
3
- export default function HtmlEditor({ tableSchemas, placeholders, defaultLogo, defaultBanner, headerTitle, headerSubtitle, headerLogo, typographySizes, typographyWeights, typographyFonts, templatingLanguage, loopSyntax, onChange, onExport, onExportPdf, initialBlocks, defaultStyles, showImportHtml, showImportPdf, showClearCanvas, showPreview, showExport, showExportPdf, showHeader, sidebarPosition, themeColor, primaryColor, isTablesLoading, tablesLoading, isPlaceholdersLoading, placeholdersLoading, customButtonStyles, customButtonClassNames, customActionComponents }?: HtmlEditorProps): React.JSX.Element;
3
+ export default function HtmlEditor({ tableSchemas, placeholders, defaultLogo, defaultBanner, headerTitle, headerSubtitle, headerLogo, typographySizes, typographyWeights, typographyFonts, templatingLanguage, loopSyntax, onChange, onExport, onExportPdf, getHTMLOutput, initialBlocks, defaultStyles, showImportHtml, showImportPdf, showClearCanvas, showPreview, showExport, showExportPdf, showHeader, sidebarPosition, themeColor, primaryColor, isTablesLoading, tablesLoading, isPlaceholdersLoading, placeholdersLoading, customButtonStyles, customButtonClassNames, customActionComponents }?: HtmlEditorProps): React.JSX.Element;
@@ -101,6 +101,8 @@ export interface HtmlEditorProps {
101
101
  onChange?: (blocks: CanvasBlock[]) => void;
102
102
  onExport?: (html: string) => void;
103
103
  onExportPdf?: (html: string) => void;
104
+ /** Callback prop to receive or retrieve the latest compiled template HTML code on demand / changes */
105
+ getHTMLOutput?: (html: string) => void;
104
106
  initialBlocks?: CanvasBlock[];
105
107
  defaultStyles?: Record<string, Partial<TextStyle>>;
106
108
  showImportHtml?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-edit-to-html",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "author": "BEO Software (https://beo-software.in/)",
5
5
  "homepage": "https://beo-software.in/",
6
6
  "license": "SEE LICENSE IN LICENSE",