@seafile/sdoc-editor 1.0.198-test2.1 → 1.0.198-test2.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.
@@ -77,6 +77,16 @@ const SelectSdocFileDialog = _ref => {
77
77
  let fileInfo = {
78
78
  ...currentSelectedFile
79
79
  };
80
+ console.log(22, fileInfo, file_uuid, currentSelectedFile);
81
+
82
+ // Insert whiteboard file in sdoc
83
+ if (dialogType === _constants.ELEMENT_TYPE.WHITEBOARD) {
84
+ insertFile(fileInfo);
85
+ closeDialog();
86
+ console.log(7);
87
+ return;
88
+ }
89
+
80
90
  // File has no id
81
91
  if (!file_uuid || file_uuid === '') {
82
92
  console.log('no operation');
@@ -36,6 +36,7 @@
36
36
  left: 0;
37
37
  }
38
38
 
39
+ .sdoc-file-icon-container .whiteboard-file-img,
39
40
  .sdoc-file-icon-container .sdoc-file-img {
40
41
  position: absolute;
41
42
  width: 21.6px;
@@ -95,6 +96,7 @@
95
96
  white-space: nowrap;
96
97
  }
97
98
 
99
+ .sdoc-folder-container.sdoc-folder-search-results .sdoc-file-info .sdoc-file-icon-container .whiteboard-file-img,
98
100
  .sdoc-folder-container.sdoc-folder-search-results .sdoc-file-info .sdoc-file-icon-container .sdoc-file-img {
99
101
  width: 36px;
100
102
  height: 36px;
@@ -174,7 +174,7 @@ const LocalFiles = _ref => {
174
174
  src: (0, _helpers.sdocFileIcon)(),
175
175
  alt: ""
176
176
  }), fileType === 'draw' && /*#__PURE__*/_react.default.createElement("img", {
177
- className: "sdoc-file-img",
177
+ className: "whiteboard-file-img",
178
178
  src: (0, _helpers.whiteboardFileIcon)(),
179
179
  alt: ""
180
180
  })), /*#__PURE__*/_react.default.createElement("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.198-test2.1",
3
+ "version": "1.0.198-test2.3",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",