@squaredr/fieldcraft-pro 1.6.4 → 1.8.0

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.
@@ -0,0 +1 @@
1
+ export { consultationBooking, consultationBookingMeta, consultationBookingSchema, ecommerceCheckout, ecommerceCheckoutMeta, ecommerceCheckoutSchema, proTemplates } from '../chunk-IW654Z3M.mjs';
@@ -38,10 +38,12 @@ type ThemeEditorTheme = {
38
38
  type ThemeEditorProps = {
39
39
  /** Initial theme to load. Defaults to resolving from host page CSS variables. */
40
40
  initialTheme?: FormEngineTheme;
41
- /** Called on every theme change. */
42
- onChange?: (theme: FormEngineTheme) => void;
43
- /** Called when user clicks Save or presses Ctrl+S. */
44
- onSave?: (theme: FormEngineTheme) => void;
41
+ /** Initial preset key (e.g. "clean", "clinical"). Restored from persistence. */
42
+ initialPreset?: string;
43
+ /** Called on every theme change. Includes the active preset key. */
44
+ onChange?: (theme: FormEngineTheme, presetKey?: string) => void;
45
+ /** Called when user clicks Save or presses Ctrl+S. Includes the active preset key. */
46
+ onSave?: (theme: FormEngineTheme, presetKey?: string) => void;
45
47
  /** Editor chrome theme. Controls toolbar, panel, and control appearance. */
46
48
  theme?: ThemeEditorTheme;
47
49
  /** Container height. */
@@ -93,7 +95,11 @@ declare const PRESET_FAMILIES: Record<string, PresetFamily>;
93
95
  */
94
96
  declare function resolveThemeFromDOM(): FormEngineTheme;
95
97
 
96
- /** Compact schema used in the ThemeEditor live preview panel. */
98
+ /**
99
+ * Comprehensive preview schema used in the ThemeEditor live preview panel.
100
+ * Includes all standard field types so the user can see how their theme
101
+ * affects every element. Uses "classic" displayMode (all sections visible).
102
+ */
97
103
  declare const PREVIEW_SCHEMA: FormEngineSchema;
98
104
 
99
105
  export { PRESET_FAMILIES, PREVIEW_SCHEMA, type PresetFamily, ThemeEditor, type ThemeEditorProps, type ThemeEditorTheme, ThemeEditorThemeProvider, resolveThemeFromDOM, themeEditorDarkPreset, themeEditorLightPreset, useEditorTheme };
@@ -38,10 +38,12 @@ type ThemeEditorTheme = {
38
38
  type ThemeEditorProps = {
39
39
  /** Initial theme to load. Defaults to resolving from host page CSS variables. */
40
40
  initialTheme?: FormEngineTheme;
41
- /** Called on every theme change. */
42
- onChange?: (theme: FormEngineTheme) => void;
43
- /** Called when user clicks Save or presses Ctrl+S. */
44
- onSave?: (theme: FormEngineTheme) => void;
41
+ /** Initial preset key (e.g. "clean", "clinical"). Restored from persistence. */
42
+ initialPreset?: string;
43
+ /** Called on every theme change. Includes the active preset key. */
44
+ onChange?: (theme: FormEngineTheme, presetKey?: string) => void;
45
+ /** Called when user clicks Save or presses Ctrl+S. Includes the active preset key. */
46
+ onSave?: (theme: FormEngineTheme, presetKey?: string) => void;
45
47
  /** Editor chrome theme. Controls toolbar, panel, and control appearance. */
46
48
  theme?: ThemeEditorTheme;
47
49
  /** Container height. */
@@ -93,7 +95,11 @@ declare const PRESET_FAMILIES: Record<string, PresetFamily>;
93
95
  */
94
96
  declare function resolveThemeFromDOM(): FormEngineTheme;
95
97
 
96
- /** Compact schema used in the ThemeEditor live preview panel. */
98
+ /**
99
+ * Comprehensive preview schema used in the ThemeEditor live preview panel.
100
+ * Includes all standard field types so the user can see how their theme
101
+ * affects every element. Uses "classic" displayMode (all sections visible).
102
+ */
97
103
  declare const PREVIEW_SCHEMA: FormEngineSchema;
98
104
 
99
105
  export { PRESET_FAMILIES, PREVIEW_SCHEMA, type PresetFamily, ThemeEditor, type ThemeEditorProps, type ThemeEditorTheme, ThemeEditorThemeProvider, resolveThemeFromDOM, themeEditorDarkPreset, themeEditorLightPreset, useEditorTheme };