@windoc/react 0.3.3 → 0.3.5
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.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1138 -410
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1138 -410
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/styles/editor.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -169,7 +169,12 @@ type EditorInstance = {
|
|
|
169
169
|
on: (event: string, callback: (...args: unknown[]) => void) => void;
|
|
170
170
|
[key: string]: unknown;
|
|
171
171
|
};
|
|
172
|
-
override:
|
|
172
|
+
override: {
|
|
173
|
+
drop?: ((evt: DragEvent) => unknown) | undefined;
|
|
174
|
+
paste?: ((evt?: ClipboardEvent) => unknown) | undefined;
|
|
175
|
+
copy?: (() => unknown) | undefined;
|
|
176
|
+
[key: string]: unknown;
|
|
177
|
+
};
|
|
173
178
|
version: string;
|
|
174
179
|
destroy: () => void;
|
|
175
180
|
use: (plugin: object) => void;
|
|
@@ -279,7 +284,7 @@ interface EditorProps {
|
|
|
279
284
|
/** Called when cursor/selection style changes — use this instead of overwriting editor.listener.rangeStyleChange via onReady */
|
|
280
285
|
onRangeStyleChange?: (payload: RangeStylePayload) => void;
|
|
281
286
|
}
|
|
282
|
-
declare function Editor({ defaultValue, options: userOptions, onChange, onReady, onRangeStyleChange, toolbar, footer, renderToolbar, renderFooter, children, className, style, onDrop: userOnDrop
|
|
287
|
+
declare function Editor({ defaultValue, options: userOptions, onChange, onReady, onRangeStyleChange, toolbar, footer, renderToolbar, renderFooter, children, className, style, onDrop: userOnDrop }: EditorProps): react_jsx_runtime.JSX.Element;
|
|
283
288
|
|
|
284
289
|
interface EditorContextValue {
|
|
285
290
|
editorRef: MutableRefObject<EditorInstance | null>;
|
package/dist/index.d.ts
CHANGED
|
@@ -169,7 +169,12 @@ type EditorInstance = {
|
|
|
169
169
|
on: (event: string, callback: (...args: unknown[]) => void) => void;
|
|
170
170
|
[key: string]: unknown;
|
|
171
171
|
};
|
|
172
|
-
override:
|
|
172
|
+
override: {
|
|
173
|
+
drop?: ((evt: DragEvent) => unknown) | undefined;
|
|
174
|
+
paste?: ((evt?: ClipboardEvent) => unknown) | undefined;
|
|
175
|
+
copy?: (() => unknown) | undefined;
|
|
176
|
+
[key: string]: unknown;
|
|
177
|
+
};
|
|
173
178
|
version: string;
|
|
174
179
|
destroy: () => void;
|
|
175
180
|
use: (plugin: object) => void;
|
|
@@ -279,7 +284,7 @@ interface EditorProps {
|
|
|
279
284
|
/** Called when cursor/selection style changes — use this instead of overwriting editor.listener.rangeStyleChange via onReady */
|
|
280
285
|
onRangeStyleChange?: (payload: RangeStylePayload) => void;
|
|
281
286
|
}
|
|
282
|
-
declare function Editor({ defaultValue, options: userOptions, onChange, onReady, onRangeStyleChange, toolbar, footer, renderToolbar, renderFooter, children, className, style, onDrop: userOnDrop
|
|
287
|
+
declare function Editor({ defaultValue, options: userOptions, onChange, onReady, onRangeStyleChange, toolbar, footer, renderToolbar, renderFooter, children, className, style, onDrop: userOnDrop }: EditorProps): react_jsx_runtime.JSX.Element;
|
|
283
288
|
|
|
284
289
|
interface EditorContextValue {
|
|
285
290
|
editorRef: MutableRefObject<EditorInstance | null>;
|