@seafile/sdoc-editor 1.0.93 → 1.0.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.
@@ -19,7 +19,7 @@ class ImagePreviewer extends _react.default.Component {
19
19
  while (nodes && nodeIndex <= nodes.length - 1) {
20
20
  const currentNode = nodes[nodeIndex];
21
21
  if (currentNode.type === 'image') {
22
- const url = (0, _helpers.getImageURL)(currentNode.data.src);
22
+ const url = (0, _helpers.getImageURL)(currentNode.data);
23
23
  url && list.push(url);
24
24
  } else {
25
25
  list.push(...this.getImageNodes(currentNode.children));
@@ -63,7 +63,9 @@ const insertImage = function (editor, srcList, selection) {
63
63
  }
64
64
  const imageNodes = srcList.map(src => {
65
65
  const isCommentEditor = editor.editorType === _constants.COMMENT_EDITOR;
66
- const imgSrc = isCommentEditor ? getImageURL(src) : src;
66
+ const imgSrc = isCommentEditor ? getImageURL({
67
+ src
68
+ }) : src;
67
69
  return generateImageNode(imgSrc);
68
70
  });
69
71
  const validSelection = selection || editor.selection;
@@ -292,7 +292,7 @@ const ImageHoverMenu = _ref => {
292
292
  className: "sdocfont sdoc-check-mark sdoc-dropdown-item-right-icon"
293
293
  })));
294
294
  })), isShowImagePreview && /*#__PURE__*/_react.default.createElement(_imagePreviewer.default, {
295
- imageUrl: (0, _helpers.getImageURL)(data.src),
295
+ imageUrl: (0, _helpers.getImageURL)(data),
296
296
  editor: editor,
297
297
  toggleImagePreviewer: () => {
298
298
  setIsShowImagePreview(!isShowImagePreview);
@@ -36,7 +36,7 @@ class TableSetting extends _react.default.Component {
36
36
  }
37
37
  return /*#__PURE__*/_react.default.createElement("div", {
38
38
  className: "setting-item table-setting"
39
- }, /*#__PURE__*/_react.default.createElement(_reactstrap.Label, null, t('Table')), /*#__PURE__*/_react.default.createElement(_DTableSelect2.default, {
39
+ }, /*#__PURE__*/_react.default.createElement(_reactstrap.Label, null, t('Sub_table')), /*#__PURE__*/_react.default.createElement(_DTableSelect2.default, {
40
40
  value: selectedOption,
41
41
  options: options,
42
42
  onChange: this.props.onTableChange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "last year",
563
563
  "the_next_numbers_of_days": "the next numbers of days",
564
564
  "the_past_numbers_of_days": "the past numbers of days",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "Enter comment, Enter for new line, Shift + Enter to send",
567
+ "Sub_table": "Tabulka"
566
568
  }
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "last year",
563
563
  "the_next_numbers_of_days": "the next numbers of days",
564
564
  "the_past_numbers_of_days": "the past numbers of days",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "Enter comment, Enter for new line, Shift + Enter to send",
567
+ "Sub_table": "Tabelle"
566
568
  }
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "last year",
563
563
  "the_next_numbers_of_days": "the next numbers of days",
564
564
  "the_past_numbers_of_days": "the past numbers of days",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "Enter comment, Enter for new line, Shift + Enter to send",
567
+ "Sub_table": "Table"
566
568
  }
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "last year",
563
563
  "the_next_numbers_of_days": "the next numbers of days",
564
564
  "the_past_numbers_of_days": "the past numbers of days",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "Enter comment, Enter for new line, Shift + Enter to send",
567
+ "Sub_table": "Tabla"
566
568
  }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "Bold": "Negrita",
3
3
  "Italic": "Itálica",
4
- "Underline": "Underline",
4
+ "Underline": "Subrayado",
5
5
  "Strikethrough": "Tachado",
6
- "Superscript": "Superscript",
7
- "Subscript": "Subscript",
6
+ "Superscript": "Superíndice",
7
+ "Subscript": "Subíndice",
8
8
  "Inline_code": "Código",
9
9
  "Header_one": "Encabezado 1",
10
10
  "Header_two": "Encabezado 2",
@@ -17,15 +17,15 @@
17
17
  "Ordered_list": "Lista ordenada",
18
18
  "Unordered_list": "Lista desordenada",
19
19
  "Check_list": "Check list",
20
- "Insert_image": "Insert image",
21
- "Insert_formula": "Insert formula",
20
+ "Insert_image": "Insertar Imagen",
21
+ "Insert_formula": "Insertar Fórmula",
22
22
  "Formula": "Fórmula",
23
- "Insert_file": "Insert file",
23
+ "Insert_file": "Insertar Archivo",
24
24
  "Code": "Inline code",
25
- "Code_block": "Code block",
26
- "Insert_link": "Insert link",
27
- "Insert_table": "Insert table",
28
- "Valid_values_for_rows_and_columns": "Valid values for the number of rows and columns are 0 to 50",
25
+ "Code_block": "Bloque de Código",
26
+ "Insert_link": "Insertar Enlace",
27
+ "Insert_table": "Insertar Tabla",
28
+ "Valid_values_for_rows_and_columns": "Los valores válidos para el número de filas y columnas son 0 a 50",
29
29
  "Save": "Guardar",
30
30
  "More": "Más",
31
31
  "Invalid_url": "URL Inválida",
@@ -39,10 +39,10 @@
39
39
  "Help": "Ayuda",
40
40
  "Column": "Columna",
41
41
  "Row": "Fila",
42
- "Delete_table": "Delete table",
43
- "Delete_row": "Delete row",
44
- "Delete_column": "Delete column",
45
- "Insert_row": "Insert row",
42
+ "Delete_table": "Eliminar Tabla",
43
+ "Delete_row": "Eliminar fila",
44
+ "Delete_column": "Eliminar columna",
45
+ "Insert_row": "Insertar Fila",
46
46
  "Set_align": "Establecer alineación",
47
47
  "Left": "Izquierda",
48
48
  "Center": "Centrar",
@@ -53,7 +53,7 @@
53
53
  "Edit": "Editar",
54
54
  "Copy": "Copiar",
55
55
  "Copied": "Copiado",
56
- "Cut": "Cut",
56
+ "Cut": "Cortar",
57
57
  "Internal_link": "Enlace interno",
58
58
  "Copy_internal_link": "El enlace interno ha sido copiado al portapapeles",
59
59
  "Internal_link_desc": "Un enlace interno es un enlace a un archivo o carpeta que puede ser accedido por usuarios con permiso de lectura al archivo o carpeta. ",
@@ -81,28 +81,28 @@
81
81
  "Insert_network_image": "Insertar imágen desde la red",
82
82
  "Upload_local_image": "Subir imagen local",
83
83
  "Add_link": "Agregar enlace",
84
- "File_history": "File history",
85
- "History_version": "History versions",
86
- "Back_to_viewer": "Back to viewer",
84
+ "File_history": "Historial del Archivo",
85
+ "History_version": "Historial de Versiones",
86
+ "Back_to_viewer": "Volver al Visualizador",
87
87
  "Link_title": "Título del enlace",
88
88
  "Local_draft": "Borrador local",
89
89
  "Use_draft": "Usar borrador",
90
90
  "Delete_draft": "Eliminar borrador",
91
91
  "You_have_an_unsaved_draft_do_you_like_to_use_it": "Tienes un borrador sin guardar. ¿Deseas utilizarlo?",
92
92
  "Local_draft_saved": "Borrador local guardado",
93
- "New_draft": "New draft",
94
- "View_draft": "View draft",
93
+ "New_draft": "Nuevo Borrador",
94
+ "View_draft": "Ver Borrador",
95
95
  "Publish": "Publicar",
96
96
  "This_file_has_a_draft": "Este archivo tiene un borrador",
97
97
  "Delete": "Borrar",
98
98
  "Reply": "Responder",
99
99
  "Comment": "Comentar",
100
100
  "Comments": "Comentarios",
101
- "All_comments": "All comments",
102
- "Resolved_comments": "Resolved comments",
103
- "Unresolved_comments": "Unresolved comments",
104
- "Total_1_comment": "Total 1 comment",
105
- "Total_count_comments": "Total {{count}} comments",
101
+ "All_comments": "Todos los comentarios",
102
+ "Resolved_comments": "Comentarios resueltos",
103
+ "Unresolved_comments": "Comentarios sin resolver",
104
+ "Total_1_comment": "Total 1 comentario",
105
+ "Total_count_comments": "Total {{count}} comentarios",
106
106
  "Add_a_comment": "Agregar un comentario...",
107
107
  "No_comment_yet": "No hay comentarios.",
108
108
  "Mark_as_Resolved": "Marcar como Resuelto",
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "last year",
563
563
  "the_next_numbers_of_days": "the next numbers of days",
564
564
  "the_past_numbers_of_days": "the past numbers of days",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "Enter comment, Enter for new line, Shift + Enter to send",
567
+ "Sub_table": "Tabla"
566
568
  }
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "last year",
563
563
  "the_next_numbers_of_days": "the next numbers of days",
564
564
  "the_past_numbers_of_days": "the past numbers of days",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "Enter comment, Enter for new line, Shift + Enter to send",
567
+ "Sub_table": "Tabla"
566
568
  }
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "last year",
563
563
  "the_next_numbers_of_days": "the next numbers of days",
564
564
  "the_past_numbers_of_days": "the past numbers of days",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "Enter comment, Enter for new line, Shift + Enter to send",
567
+ "Sub_table": "Tableau"
566
568
  }
@@ -477,17 +477,17 @@
477
477
  "No_columns_available_to_be_hidden": "No columns available to be hidden.",
478
478
  "Hide_all": "Hide all",
479
479
  "Show_all": "Show all",
480
- "Sort": "Sort",
481
- "1 Sort": "1 sort",
482
- "Sorts": "sorts",
480
+ "Sort": "Ordinamento",
481
+ "1 Sort": "1 ordinamento",
482
+ "Sorts": "ordinamenti",
483
483
  "No_sorts": "No sorts",
484
484
  "Add_sort": "Add sort",
485
485
  "No_sort_added": "No sort added",
486
486
  "up": "Up",
487
487
  "down": "Down",
488
488
  "No_results": "No results",
489
- "Filter": "Filter",
490
- "1 Filter": "1 filter",
489
+ "Filter": "Filtro",
490
+ "1 Filter": "1 filtro",
491
491
  "Filters": "filters",
492
492
  "Add_filter": "Add filter",
493
493
  "No_filters": "No filters",
@@ -495,7 +495,7 @@
495
495
  "Or": "Or",
496
496
  "Select_option(s)": "Select option(s)",
497
497
  "Select_an_option": "Select an option",
498
- "Search_option": "Search option",
498
+ "Search_option": "Opzione di ricerca",
499
499
  "Add_collaborator": "Add collaborator",
500
500
  "Add_a_creator": "Add a creator",
501
501
  "Add_a_last_modifier": "Add a last modifier",
@@ -509,18 +509,18 @@
509
509
  "Deleted_department": "Deleted department",
510
510
  "Data_settings": "Data settings",
511
511
  "Style_settings": "Style settings",
512
- "contains": "contains",
513
- "does_not_contain": "does not contain",
514
- "is": "is",
515
- "is_not": "is not",
512
+ "contains": "contiene",
513
+ "does_not_contain": "non contiene",
514
+ "is": "è",
515
+ "is_not": "non è",
516
516
  "equal": "\u003d",
517
517
  "not_equal": "\u2260",
518
518
  "less": "\u003C",
519
519
  "greater": "\u003E",
520
520
  "less_or_equal": "\u2264",
521
521
  "greater_or_equal": "\u2265",
522
- "is_empty": "is empty",
523
- "is_not_empty": "is not empty",
522
+ "is_empty": "è vuoto",
523
+ "is_not_empty": "non è vuoto",
524
524
  "is_within": "is within",
525
525
  "is_before": "is before",
526
526
  "is_after": "is after",
@@ -530,14 +530,14 @@
530
530
  "has_all_of": "has all of",
531
531
  "has_none_of": "has none of",
532
532
  "is_exactly": "is exactly",
533
- "is_current_user_ID": "is current user's ID",
533
+ "is_current_user_ID": "è l'ID dell'utente corrente",
534
534
  "Current_date": "Current date",
535
535
  "Specific_date": "Specific date",
536
536
  "x_days_before_current_date": "x days before current date",
537
537
  "x_days_after_current_date": "x days after current date",
538
538
  "is_any_of": "is any of",
539
539
  "is_none_of": "is none of",
540
- "include_me": "include the current user",
540
+ "include_me": "includere l'utente corrente",
541
541
  "today": "today",
542
542
  "tomorrow": "tomorrow",
543
543
  "yesterday": "yesterday",
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "last year",
563
563
  "the_next_numbers_of_days": "the next numbers of days",
564
564
  "the_past_numbers_of_days": "the past numbers of days",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Double click to enter edit mode and adjust field width",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "Enter comment, Enter for new line, Shift + Enter to send",
567
+ "Sub_table": "Tabella"
566
568
  }
@@ -273,8 +273,8 @@
273
273
  "Delete_reply": "Удалить ответ",
274
274
  "Are_you_sure_to_delete_this_comment": "Вы уверены, что удалите этот комментарий?",
275
275
  "Are_you_sure_to_delete_this_reply": "Вы уверены, что удалите этот ответ?",
276
- "Enter_comment_shift_enter_for_new_line_Enter_to_send": "Enter comment, Shift + Enter for new line, Enter to send",
277
- "Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Enter reply, Shift + Enter for new line, Enter to send",
276
+ "Enter_comment_shift_enter_for_new_line_Enter_to_send": "Введите комментарий, Shift + Enter для новой строки, Enter для отправки",
277
+ "Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Введите ответ, Shift + Enter для новой строки, Enter для отправки",
278
278
  "Reopen_discussion": "Добавление ответа приведёт к возобновлению обсуждения.",
279
279
  "Confirm": "Подтвердить",
280
280
  "View_changes": "Просмотр изменений",
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "в прошлом году",
563
563
  "the_next_numbers_of_days": "ближайшее количество дней",
564
564
  "the_past_numbers_of_days": "прошедшее количество дней",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Дважды щелкните, чтобы войти в режим редактирования и отрегулировать ширину поля"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "Дважды щелкните, чтобы войти в режим редактирования и отрегулировать ширину поля",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "Введите комментарий, Enter для новой строки, Shift + Enter для отправки",
567
+ "Sub_table": "Таблица"
566
568
  }
@@ -363,7 +363,7 @@
363
363
  "Style": "样式",
364
364
  "Insert": "插入",
365
365
  "Image": "图片",
366
- "Table": "子表",
366
+ "Table": "表格",
367
367
  "Link": "链接",
368
368
  "Transform_to": "转化为",
369
369
  "Last_modification": "上一个修改",
@@ -562,5 +562,7 @@
562
562
  "the_past_year": "去年",
563
563
  "the_next_numbers_of_days": "今天之后的指定天数",
564
564
  "the_past_numbers_of_days": "今天之前的指定天数",
565
- "Double_click_to_enter_edit_mode_and_adjust_field_width" : "双击可进入编辑模式并调整字段宽度"
565
+ "Double_click_to_enter_edit_mode_and_adjust_field_width" : "双击可进入编辑模式并调整字段宽度",
566
+ "Enter_comment_Enter_for_new_line_shift_enter_to_send": "输入评论,Enter 换行,Shift + Enter 发送",
567
+ "Sub_table": "子表"
566
568
  }