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/index.cjs +20 -20
- package/dist/index.js +3199 -3195
- package/dist/src/App.d.ts +1 -1
- package/dist/src/types.d.ts +2 -0
- package/package.json +1 -1
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;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -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;
|