react-edit-to-html 1.2.10 → 1.2.12
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/README.md +5 -0
- package/dist/index.cjs +37 -26
- package/dist/index.js +5472 -4357
- package/dist/react-edit-to-html.css +1 -1
- package/dist/src/App.d.ts +1 -1
- package/dist/src/types.d.ts +22 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -271,6 +271,10 @@ interface HtmlEditorProps {
|
|
|
271
271
|
showExportPdf?: boolean;
|
|
272
272
|
/** Position of the sidebar panel ('left' | 'right'). Defaults to 'left' */
|
|
273
273
|
sidebarPosition?: 'left' | 'right';
|
|
274
|
+
/** Primary UI theme color hex/string. Defaults to '#ea580c' (orange). Supports any valid CSS color. */
|
|
275
|
+
themeColor?: string;
|
|
276
|
+
/** Alias for themeColor */
|
|
277
|
+
primaryColor?: string;
|
|
274
278
|
customButtonStyles?: Record<string, React.CSSProperties>;
|
|
275
279
|
customButtonClassNames?: Record<string, string>;
|
|
276
280
|
customActionComponents?: {
|
|
@@ -285,6 +289,7 @@ interface HtmlEditorProps {
|
|
|
285
289
|
|
|
286
290
|
| Prop | Type | Default | Details |
|
|
287
291
|
| :--- | :--- | :--- | :--- |
|
|
292
|
+
| `themeColor` / `primaryColor` | `string` | `'#ea580c'` | Configures the primary theme color for the entire editor UI (buttons, active tabs, selected block outlines, range sliders, toggles, badges, drag lines). Accepts any valid hex (`#3b82f6`), RGB (`rgb(59, 130, 246)`), or named color (`purple`, `blue`). |
|
|
288
293
|
| `sidebarPosition` | `'left' \| 'right'` | `'left'` | Controls the sidebar panel position. Defaults to `'left'` (sidebar on left, canvas on right). Set to `'right'` to position the sidebar on the right side. |
|
|
289
294
|
| `templatingLanguage` | `'js' \| 'ts' \| 'handlebars' \| 'liquid' \| 'scriban' \| 'dotnet' \| 'csharp' \| 'custom'` | `'js'` | Configures loop-tag syntax mode for exported HTML tables. Supports JavaScript/TypeScript Template Literals (`js`/`ts`), Handlebars (`handlebars`), Liquid (`liquid`), Scriban (`scriban`), and C# Razor (`csharp`). |
|
|
290
295
|
| `tableSchemas` | `TableSchemaInfo[]` | `[]` | Configures dynamic table schemas. Supports top-level loop tables and nested sub-tables. |
|