@seafile/comment-editor 0.0.1-alpha.79 → 0.0.1-alpha.80

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.
@@ -44,6 +44,7 @@ const InsertElementDialog = _ref => {
44
44
  const uploadLocalVideoInputRef = (0, _react.useRef)();
45
45
  const onFileChanged = (0, _react.useCallback)(event => {
46
46
  const imgInfos = (0, _helpers.generateImageInfos)(event.target.files);
47
+ console.log('imgInfos', imgInfos);
47
48
  (0, _helpers.insertImage)(validEditor, imgInfos, validEditor.selection, insertPosition);
48
49
  if (uploadLocalImageInputRef.current) {
49
50
  uploadLocalImageInputRef.current.value = '';
@@ -316,6 +316,7 @@ const isImageUrlIsFromUpload = url => {
316
316
  };
317
317
  exports.isImageUrlIsFromUpload = isImageUrlIsFromUpload;
318
318
  const generateImageInfos = files => {
319
+ console.log('files', files);
319
320
  const newFiles = Array.from(files);
320
321
  const imgInfos = newFiles.filter(item => {
321
322
  if (item && !item.type.startsWith('image/')) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.79",
3
+ "version": "0.0.1-alpha.80",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",