@quadrats/common 0.6.5 → 0.6.6
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/file-uploader/typings.d.ts +1 -1
- package/image/createImage.js +0 -2
- package/image/index.cjs.js +0 -2
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ interface FileUploaderImplement {
|
|
|
29
29
|
onload: (() => void) | null;
|
|
30
30
|
open: (method: string, url: string | URL) => void;
|
|
31
31
|
setRequestHeader: (key: string, value: string) => void;
|
|
32
|
-
send(body?: Document |
|
|
32
|
+
send(body?: Document | BodyInit | null): void;
|
|
33
33
|
readonly status: number;
|
|
34
34
|
readonly response: any;
|
|
35
35
|
readonly upload: FileUploaderUploadImplement;
|
package/image/createImage.js
CHANGED
|
@@ -125,9 +125,7 @@ function createImage(options = {}) {
|
|
|
125
125
|
const imageContainer = Editor.parent(editor, wrapperLocation);
|
|
126
126
|
if (imageContainer) {
|
|
127
127
|
const [imageElement, imageLocation] = imageContainer;
|
|
128
|
-
console.log(imageLocation, imageContainer);
|
|
129
128
|
if (imageElement.type === types.figure) {
|
|
130
|
-
console.log('???');
|
|
131
129
|
Transforms.removeNodes(editor, { at: imageLocation });
|
|
132
130
|
}
|
|
133
131
|
}
|
package/image/index.cjs.js
CHANGED
|
@@ -153,9 +153,7 @@ function createImage(options = {}) {
|
|
|
153
153
|
const imageContainer = core.Editor.parent(editor, wrapperLocation);
|
|
154
154
|
if (imageContainer) {
|
|
155
155
|
const [imageElement, imageLocation] = imageContainer;
|
|
156
|
-
console.log(imageLocation, imageContainer);
|
|
157
156
|
if (imageElement.type === types.figure) {
|
|
158
|
-
console.log('???');
|
|
159
157
|
core.Transforms.removeNodes(editor, { at: imageLocation });
|
|
160
158
|
}
|
|
161
159
|
}
|