wysimark-lite 0.9.0 → 0.9.2

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,4 +1,3 @@
1
- import react from 'react';
2
1
  import * as slate from 'slate';
3
2
  import { Element as Element$1, BaseEditor, NodeEntry, BaseRange, Location, Editor, Descendant, Path, BaseText } from 'slate';
4
3
  import { Client } from '@portive/client';
@@ -6,6 +5,7 @@ import { SetReturnType, SetOptional, UnionToIntersection, Simplify, RequireExact
6
5
  import * as zustand from 'zustand';
7
6
  import { HistoryEditor } from 'slate-history';
8
7
  import { ReactEditor, Editable } from 'slate-react';
8
+ import react from 'react';
9
9
  import { RenderElementProps, RenderLeafProps, RenderPlaceholderProps, EditableProps } from 'slate-react/dist/components/editable';
10
10
 
11
11
  /**
@@ -1019,20 +1019,9 @@ type Wysimark = {
1019
1019
  getMarkdown: () => string;
1020
1020
  setMarkdown: (markdown: string) => void;
1021
1021
  };
1022
- type ReadOnlyOptions = {
1023
- markdown: string;
1024
- className?: string;
1025
- style?: react.CSSProperties;
1026
- };
1027
- /**
1028
- + * Creates a read-only version of Wysimark that doesn't show the toolbar and doesn't allow editing.
1029
- + */
1030
- declare function createMarkdownDisplay(containerElement: HTMLElement, options?: ReadOnlyOptions): {
1031
- unmount(): void;
1032
- };
1033
1022
  /**
1034
1023
  * The primary entry point for the standalone version of Wysimark.
1035
1024
  */
1036
1025
  declare function createWysimark(containerElement: HTMLElement, options: StandaloneOptions): Wysimark;
1037
1026
 
1038
- export { Wysimark, createMarkdownDisplay, createWysimark };
1027
+ export { Wysimark, createWysimark };