@underverse-ui/underverse 1.0.157 → 1.0.159

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.d.cts CHANGED
@@ -3327,7 +3327,11 @@ interface UEditorProps {
3327
3327
  onSave?: () => void;
3328
3328
  onExport?: () => void;
3329
3329
  onSourceCode?: () => void;
3330
- onPreview?: () => void;
3330
+ /**
3331
+ * Fires when View > Preview or the eye button is clicked.
3332
+ * Return false to prevent the built-in preview dialog.
3333
+ */
3334
+ onPreview?: (html: string) => void | false;
3331
3335
  }
3332
3336
  type UEditorVariant = NonNullable<UEditorProps["variant"]>;
3333
3337
 
package/dist/index.d.ts CHANGED
@@ -3327,7 +3327,11 @@ interface UEditorProps {
3327
3327
  onSave?: () => void;
3328
3328
  onExport?: () => void;
3329
3329
  onSourceCode?: () => void;
3330
- onPreview?: () => void;
3330
+ /**
3331
+ * Fires when View > Preview or the eye button is clicked.
3332
+ * Return false to prevent the built-in preview dialog.
3333
+ */
3334
+ onPreview?: (html: string) => void | false;
3331
3335
  }
3332
3336
  type UEditorVariant = NonNullable<UEditorProps["variant"]>;
3333
3337