@seafile/sdoc-editor 2.0.18-alph-0.1.1 → 2.0.18-alph-2.0.0

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.
@@ -23,6 +23,7 @@ const CommentParticipantsEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref
23
23
  const {
24
24
  collaborators
25
25
  } = (0, _hooks.useCollaborators)();
26
+ console.log(2, collaborators);
26
27
  const {
27
28
  t
28
29
  } = (0, _reactI18next.useTranslation)('sdoc-editor');
@@ -30,8 +30,12 @@ const getRowName = (columns, row, formula_rows) => {
30
30
  formulaRows = view.formula_rows || {};
31
31
  }
32
32
  const tables = window.app.state.value.tables;
33
- const departments = window.app.state;
33
+ const {
34
+ departments = []
35
+ } = window.seafile || window.seafileConfig;
34
36
  const collaborators = window.app.state.collaboratorsWithAppUsers;
37
+ // const { collaboratorManager } = window.seafile || window.seafileConfig;
38
+
35
39
  return (0, _dtableUtils.getCellValueDisplayString)(row, type, key, {
36
40
  formulaRows,
37
41
  data,
@@ -417,7 +421,6 @@ const getRowRecord = function (currentTableId, row, columns, unShowColumnKeyList
417
421
  if (UNSHOW_COLUMN_TYPE.includes(column.type)) return false;
418
422
  return true;
419
423
  }).map(column => {
420
- console.log(1, column);
421
424
  const searchValue = matchedResult && matchedResult[column.key];
422
425
  return getFormattedCell(column, row, {
423
426
  tableId: currentTableId,
@@ -71,6 +71,6 @@ const AddSeatableRowDialog = _ref => {
71
71
  color: "primary",
72
72
  disabled: false,
73
73
  onClick: submit
74
- }, t('Add_rows_record'))));
74
+ }, t('Add_row_record'))));
75
75
  };
76
76
  var _default = exports.default = AddSeatableRowDialog;
@@ -20,6 +20,7 @@ function withCollaborators(Component) {
20
20
  const {
21
21
  value
22
22
  } = this.props;
23
+ console.log(4444, value);
23
24
  if (!value || Array.isArray(value) && value.length === 0) {
24
25
  return null;
25
26
  }
@@ -64,6 +65,7 @@ function withCollaborators(Component) {
64
65
  collaboratorManager
65
66
  } = window.seafile || window.seafileConfig;
66
67
  const cellValue = this.getFormattedCellValue();
68
+ console.log(55, cellValue);
67
69
  if (!cellValue) {
68
70
  this.setState({
69
71
  isLoading: false,
@@ -72,6 +74,7 @@ function withCollaborators(Component) {
72
74
  return;
73
75
  }
74
76
  const emailUserMap = await collaboratorManager.getEmailUserMap(cellValue);
77
+ console.log(6, emailUserMap);
75
78
  if (emailUserMap) {
76
79
  const collaborators = cellValue.map(email => emailUserMap[email]);
77
80
  this.setState({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "2.0.18-alph-0.1.1",
3
+ "version": "2.0.18-alph-2.0.0",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",