@connectedxm/entity-editor 0.0.1 → 0.0.3
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 +205 -106
- package/dist/index.es.js +432 -400
- package/dist/src/Editor.d.ts +3 -3
- package/package.json +1 -1
package/dist/src/Editor.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface EditorRef {
|
|
|
4
4
|
selectEntity: (entityType: EntityType, startIndex: number, endIndex: number, newText: string) => void;
|
|
5
5
|
toggleMark: (markType: MarkType) => void;
|
|
6
6
|
}
|
|
7
|
-
interface EditorProps {
|
|
7
|
+
export interface EditorProps {
|
|
8
8
|
ref: React.RefObject<EditorRef | null>;
|
|
9
9
|
plainText: string;
|
|
10
10
|
setPlainText: (plainText: string) => void;
|
|
@@ -18,7 +18,7 @@ interface EditorProps {
|
|
|
18
18
|
className?: string;
|
|
19
19
|
options?: EntityOptions;
|
|
20
20
|
entityStyles?: StyleOptions;
|
|
21
|
+
placeholder?: string;
|
|
21
22
|
debug?: boolean;
|
|
22
23
|
}
|
|
23
|
-
export declare const Editor: ({ ref, plainText, setPlainText, entities, setEntities, markState, setMarkState, search, setSearch, options, entityStyles, debug, ...props }: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export {};
|
|
24
|
+
export declare const Editor: ({ ref, plainText, setPlainText, entities, setEntities, markState, setMarkState, search, setSearch, options, entityStyles, placeholder, debug, ...props }: EditorProps) => import("react/jsx-runtime").JSX.Element;
|