@windoc/react 0.3.4 → 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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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;
|
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;
|
package/dist/index.js
CHANGED
|
@@ -2250,6 +2250,11 @@ function EditorInner({
|
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
2252
|
]);
|
|
2253
|
+
if (userOnDrop) {
|
|
2254
|
+
instance.override.drop = (evt) => {
|
|
2255
|
+
evt.preventDefault();
|
|
2256
|
+
};
|
|
2257
|
+
}
|
|
2253
2258
|
const closeDropdowns = (evt) => {
|
|
2254
2259
|
const visibleDom = document.querySelector(".visible");
|
|
2255
2260
|
if (!visibleDom) return;
|