@seafile/seafile-editor 0.3.94 → 0.3.95

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.
@@ -59,9 +59,7 @@ var DetailListView = /*#__PURE__*/function (_React$Component) {
59
59
  var _this$props = this.props,
60
60
  fileTagList = _this$props.fileTagList,
61
61
  fileInfo = _this$props.fileInfo;
62
- var _this$props$editorApi = this.props.editorApi,
63
- filePath = _this$props$editorApi.filePath,
64
- serviceUrl = _this$props$editorApi.serviceUrl;
62
+ var filePath = this.props.editorApi.filePath;
65
63
  return /*#__PURE__*/React.createElement("div", {
66
64
  className: "dirent-table-container"
67
65
  }, /*#__PURE__*/React.createElement("table", {
@@ -102,4 +102,4 @@
102
102
  .article .diff-replaced .new-paragraph {
103
103
  background-color: #e6ffed;
104
104
  margin-top: 0;
105
- }
105
+ }
@@ -1,5 +1,5 @@
1
1
  .keyboard-shortcut-dialog {
2
- max-width: 560px;
2
+ max-width: 500px;
3
3
  }
4
4
 
5
5
  .keyboard-shortcut-dialog .modal-body {
@@ -73,4 +73,4 @@
73
73
  .sf-files-tag .file-tag-name {
74
74
  margin-left: 5px;
75
75
  white-space: nowrap;
76
- }
76
+ }
@@ -66,4 +66,4 @@
66
66
  .seafile-md-viewer-content {
67
67
  padding: 20px;
68
68
  }
69
- }
69
+ }
@@ -181,4 +181,4 @@
181
181
  .comment-dialog .comment-dialog-quote ul,
182
182
  .comment-dialog .comment-dialog-quote ol {
183
183
  padding-left: 1rem;
184
- }
184
+ }
@@ -54,4 +54,4 @@
54
54
 
55
55
  .seafile-editor-module .rc-calendar-table tr {
56
56
  height: 1.75rem;
57
- }
57
+ }
@@ -16,4 +16,4 @@
16
16
  border: 2px dashed #ebebeb;
17
17
  min-height: 40px;
18
18
  overflow-x: auto;
19
- }
19
+ }
@@ -3,9 +3,11 @@
3
3
  display: inline-block;
4
4
  max-width: 100%;
5
5
  }
6
+
6
7
  .seafile-ed-image .seafile-ed-image-inResizing {
7
8
  box-shadow: 0 0 0 2px #007bff;
8
9
  }
10
+
9
11
  .seafile-ed-image .image-resizer {
10
12
  width: 10px;
11
13
  height: 10px;
@@ -17,6 +19,7 @@
17
19
  border: 1px solid #fff;
18
20
  cursor: se-resize;
19
21
  }
22
+
20
23
  .image-size {
21
24
  display: inline-block;
22
25
  padding: 5px;
@@ -99,40 +102,33 @@
99
102
  }
100
103
 
101
104
  /* set button font style in image previewer */
105
+ .sf-editor-image-previewer button.dtable-icon-fork-number,
106
+ .sf-editor-image-previewer .dtable-icon-right,
102
107
  .sf-editor-image-previewer .dtable-icon-left {
103
108
  font-family: "iconfont" !important;
104
- font-size: 16px;
105
109
  font-style: normal;
106
110
  -webkit-font-smoothing: antialiased;
107
111
  -moz-osx-font-smoothing: grayscale;
108
112
  }
109
113
 
110
- .sf-editor-image-previewer .dtable-icon-left:before {
111
- content: "\e756";
112
- }
113
-
114
- .sf-editor-image-previewer .dtable-icon-right {
115
- font-family: "iconfont" !important;
114
+ .sf-editor-image-previewer button.dtable-icon-fork-number {
116
115
  font-size: 16px;
117
- font-style: normal;
118
- -webkit-font-smoothing: antialiased;
119
- -moz-osx-font-smoothing: grayscale;
120
116
  line-height: normal;
121
117
  }
122
118
 
123
- .sf-editor-image-previewer .dtable-icon-right:before {
124
- content: "\e755";
119
+ .sf-editor-image-previewer .dtable-icon-left:before {
120
+ content: "\e756";
125
121
  }
126
122
 
127
- .sf-editor-image-previewer button.dtable-icon-fork-number {
128
- font-family: "iconfont" !important;
129
- font-size: 16px;
130
- font-style: normal;
131
- -webkit-font-smoothing: antialiased;
132
- -moz-osx-font-smoothing: grayscale;
133
- line-height: normal;
123
+ .sf-editor-image-previewer .dtable-icon-right:before {
124
+ content: "\e755";
134
125
  }
135
126
 
136
127
  .sf-editor-image-previewer .dtable-icon-fork-number:before {
137
128
  content: "\e6ce";
138
129
  }
130
+
131
+ .sf-editor-image-previewer.ril__outer .ril__navButtonPrev.dtable-font,
132
+ .sf-editor-image-previewer.ril__outer .ril__navButtonNext.dtable-font {
133
+ padding: 40px 30px 80px;
134
+ }
@@ -4,4 +4,4 @@
4
4
 
5
5
  .article .virtual-link:hover {
6
6
  text-decoration: underline;
7
- }
7
+ }
@@ -80,4 +80,4 @@
80
80
  .rich-menu .side-panel-btn {
81
81
  display: block;
82
82
  }
83
- }
83
+ }
@@ -19,4 +19,4 @@
19
19
  }
20
20
  .participants .participant-avatar, .participants .add-participants {
21
21
  margin-right: -0.5rem;
22
- }
22
+ }
@@ -39,4 +39,4 @@
39
39
  flex: 1, 1, auto;
40
40
  height: 100%;
41
41
  margin: 0 auto;
42
- }
42
+ }
@@ -81,4 +81,4 @@
81
81
 
82
82
  .help-shortcut-right-container:not(:first-child) {
83
83
  margin-top: 10px;
84
- }
84
+ }
@@ -54,4 +54,4 @@
54
54
  margin: -1px;
55
55
  border-right: 1px double #ffa94d;
56
56
  z-index: 2;
57
- }
57
+ }
@@ -64,4 +64,4 @@
64
64
 
65
65
  .seafile-editor-module .folder-toggle-icon.folder-caret-right {
66
66
  left: -2.5px;
67
- }
67
+ }
@@ -449,4 +449,4 @@ p.tip {
449
449
 
450
450
  .seafile-simple-editor .header-list-container {
451
451
  border-left: 0;
452
- }
452
+ }
@@ -1,7 +1,7 @@
1
1
  import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
- import { Editor, Path, Node } from 'slate';
4
+ import { Editor, Path } from 'slate';
5
5
  import ListUtils from '../editor-utils/block-element-utils/list-utils';
6
6
  import CodeUtils from '../editor-utils/block-element-utils/code-utils';
7
7
  import { isRangeCollapsed } from '../editor-utils/range-utils';
@@ -233,13 +233,13 @@ var ImagePreviewer = /*#__PURE__*/function (_React$Component2) {
233
233
  _createClass(ImagePreviewer, [{
234
234
  key: "render",
235
235
  value: function render() {
236
- var imageUrl = this.props.imageUrl;
237
236
  var imageIndex = this.state.imageIndex;
238
237
  var imageItemsLength = this.images.length;
238
+ var mainSrc = this.images[imageIndex];
239
239
  var imageTitle = '';
240
240
 
241
241
  try {
242
- imageTitle = imageUrl ? decodeURI(imageUrl.slice(imageUrl.lastIndexOf('/') + 1)) : '';
242
+ imageTitle = mainSrc ? decodeURI(mainSrc.slice(mainSrc.lastIndexOf('/') + 1)) : '';
243
243
  } catch (error) {
244
244
  // eslint-disable-next-line no-console
245
245
  console.log(error);
@@ -252,7 +252,6 @@ var ImagePreviewer = /*#__PURE__*/function (_React$Component2) {
252
252
  }, imageTitle), /*#__PURE__*/React.createElement("span", {
253
253
  className: "flex-shrink-0"
254
254
  }, "(", imageIndex + 1, "/", this.images.length, ")"));
255
- var mainSrc = this.images[imageIndex];
256
255
  return /*#__PURE__*/React.createElement(Lightbox, {
257
256
  wrapperClassName: "sf-editor-image-previewer",
258
257
  imageTitle: imageTitleEl,
@@ -343,7 +343,7 @@ var EditorUtils = /*#__PURE__*/function () {
343
343
 
344
344
  if (listAncesstor.type && listAncesstor.type.includes('list')) {
345
345
  _this.editor.exec({
346
- type: "modify_sublist_type",
346
+ type: 'modify_sublist_type',
347
347
  target_list_type: type
348
348
  });
349
349
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "0.3.94",
3
+ "version": "0.3.95",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^0.0.9",
@@ -11166,4 +11166,4 @@ Icon input
11166
11166
  box-shadow: 0 0 0 2px rgba(241, 150, 69, 0.25); }
11167
11167
 
11168
11168
 
11169
- /*# sourceMappingURL=seafile-ui.map*/
11169
+ /*# sourceMappingURL=seafile-ui.map*/
package/dist/config-0.js DELETED
@@ -1,15 +0,0 @@
1
- var serverConfig = {
2
- serviceUrl: "https://download.seafile.top",
3
- username: "xxx",
4
- password: "xxx",
5
- repoID: "xxxxxxx-xxxx-xxx-xxx-xxxx",
6
- userInfo: {
7
- username: 'xxx',
8
- name: 'xxx',
9
- contact_email: 'xxxx'
10
- },
11
- filePath: '/demo.md',
12
- fileName: 'demo.md',
13
- dirPath: '/'
14
- };
15
- export { serverConfig };