@pretextbook/web-editor 0.0.17 → 0.0.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.
@@ -1,6 +1,8 @@
1
1
  interface CodeEditorProps {
2
2
  content: string;
3
3
  onChange: (value: string | undefined) => void;
4
+ onRebuild?: () => void;
5
+ onSave?: () => void;
4
6
  }
5
- declare const CodeEditor: ({ content, onChange }: CodeEditorProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const CodeEditor: ({ content, onChange, onRebuild, onSave }: CodeEditorProps) => import("react/jsx-runtime").JSX.Element;
6
8
  export default CodeEditor;
@@ -8,6 +8,7 @@ export interface editorProps {
8
8
  saveButtonLabel?: string;
9
9
  onCancelButton?: () => void;
10
10
  cancelButtonLabel?: string;
11
+ onSave?: () => void;
11
12
  onPreviewRebuild?: (content: string, title: string, postToIframe: (url: string, data: any) => void) => void;
12
13
  }
13
14
  declare const Editors: (props: editorProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,5 +4,8 @@ interface FullPreviewProps {
4
4
  title?: string;
5
5
  onRebuild: (content: string, title: string, postToIframe: (url: string, data: any) => void) => void;
6
6
  }
7
- declare const FullPreview: ({ content, title, onRebuild }: FullPreviewProps) => import("react/jsx-runtime").JSX.Element;
7
+ export interface FullPreviewHandle {
8
+ rebuild: () => void;
9
+ }
10
+ declare const FullPreview: import("react").ForwardRefExoticComponent<FullPreviewProps & import("react").RefAttributes<FullPreviewHandle>>;
8
11
  export default FullPreview;