@atlaskit/editor-common 74.29.3 → 74.31.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.
Files changed (223) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/i18n/cs.js +19 -0
  3. package/dist/cjs/i18n/da.js +19 -0
  4. package/dist/cjs/i18n/de.js +19 -0
  5. package/dist/cjs/i18n/es.js +19 -0
  6. package/dist/cjs/i18n/fi.js +19 -0
  7. package/dist/cjs/i18n/fr.js +19 -0
  8. package/dist/cjs/i18n/hu.js +19 -0
  9. package/dist/cjs/i18n/it.js +19 -0
  10. package/dist/cjs/i18n/ja.js +19 -0
  11. package/dist/cjs/i18n/ko.js +19 -0
  12. package/dist/cjs/i18n/nb.js +19 -0
  13. package/dist/cjs/i18n/nl.js +19 -0
  14. package/dist/cjs/i18n/pl.js +19 -0
  15. package/dist/cjs/i18n/pt_BR.js +19 -0
  16. package/dist/cjs/i18n/ru.js +19 -0
  17. package/dist/cjs/i18n/sv.js +19 -0
  18. package/dist/cjs/i18n/th.js +19 -0
  19. package/dist/cjs/i18n/tr.js +19 -0
  20. package/dist/cjs/i18n/uk.js +19 -0
  21. package/dist/cjs/i18n/vi.js +19 -0
  22. package/dist/cjs/i18n/zh.js +19 -0
  23. package/dist/cjs/i18n/zh_TW.js +19 -0
  24. package/dist/cjs/lists/analytics.js +40 -0
  25. package/dist/cjs/lists/indentation.js +24 -0
  26. package/dist/cjs/lists/index.js +89 -0
  27. package/dist/cjs/lists/node.js +97 -0
  28. package/dist/cjs/lists/replace-content.js +24 -0
  29. package/dist/cjs/lists/selection.js +59 -0
  30. package/dist/cjs/mark/commands.js +201 -0
  31. package/dist/cjs/mark/index.js +30 -0
  32. package/dist/cjs/messages/full-page.js +25 -0
  33. package/dist/cjs/messages/index.js +7 -0
  34. package/dist/cjs/monitoring/error.js +1 -1
  35. package/dist/cjs/node-width/index.js +10 -2
  36. package/dist/cjs/ui/DropList/index.js +1 -1
  37. package/dist/cjs/ui/Toolbar/index.js +8 -0
  38. package/dist/cjs/ui/index.js +7 -0
  39. package/dist/cjs/ui-menu/DropdownMenu/index.js +16 -2
  40. package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +219 -0
  41. package/dist/cjs/ui-menu/index.js +23 -4
  42. package/dist/cjs/utils/commands.js +110 -2
  43. package/dist/cjs/utils/document.js +26 -1
  44. package/dist/cjs/utils/index.js +51 -2
  45. package/dist/cjs/utils/prosemirror/autojoin.js +68 -0
  46. package/dist/cjs/version.json +1 -1
  47. package/dist/es2019/i18n/cs.js +19 -0
  48. package/dist/es2019/i18n/da.js +19 -0
  49. package/dist/es2019/i18n/de.js +19 -0
  50. package/dist/es2019/i18n/es.js +19 -0
  51. package/dist/es2019/i18n/fi.js +19 -0
  52. package/dist/es2019/i18n/fr.js +19 -0
  53. package/dist/es2019/i18n/hu.js +19 -0
  54. package/dist/es2019/i18n/it.js +19 -0
  55. package/dist/es2019/i18n/ja.js +19 -0
  56. package/dist/es2019/i18n/ko.js +19 -0
  57. package/dist/es2019/i18n/nb.js +19 -0
  58. package/dist/es2019/i18n/nl.js +19 -0
  59. package/dist/es2019/i18n/pl.js +19 -0
  60. package/dist/es2019/i18n/pt_BR.js +19 -0
  61. package/dist/es2019/i18n/ru.js +19 -0
  62. package/dist/es2019/i18n/sv.js +19 -0
  63. package/dist/es2019/i18n/th.js +19 -0
  64. package/dist/es2019/i18n/tr.js +19 -0
  65. package/dist/es2019/i18n/uk.js +19 -0
  66. package/dist/es2019/i18n/vi.js +19 -0
  67. package/dist/es2019/i18n/zh.js +19 -0
  68. package/dist/es2019/i18n/zh_TW.js +19 -0
  69. package/dist/es2019/lists/analytics.js +36 -0
  70. package/dist/es2019/lists/indentation.js +18 -0
  71. package/dist/es2019/lists/index.js +6 -0
  72. package/dist/es2019/lists/node.js +97 -0
  73. package/dist/es2019/lists/replace-content.js +18 -0
  74. package/dist/es2019/lists/selection.js +53 -0
  75. package/dist/es2019/mark/commands.js +205 -0
  76. package/dist/es2019/mark/index.js +1 -0
  77. package/dist/es2019/messages/full-page.js +18 -0
  78. package/dist/es2019/messages/index.js +1 -0
  79. package/dist/es2019/monitoring/error.js +1 -1
  80. package/dist/es2019/node-width/index.js +7 -0
  81. package/dist/es2019/ui/DropList/index.js +1 -1
  82. package/dist/es2019/ui/Toolbar/index.js +1 -0
  83. package/dist/es2019/ui/index.js +2 -1
  84. package/dist/es2019/ui-menu/DropdownMenu/index.js +16 -2
  85. package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +209 -0
  86. package/dist/es2019/ui-menu/index.js +5 -4
  87. package/dist/es2019/utils/commands.js +106 -2
  88. package/dist/es2019/utils/document.js +25 -1
  89. package/dist/es2019/utils/index.js +3 -2
  90. package/dist/es2019/utils/prosemirror/autojoin.js +57 -0
  91. package/dist/es2019/version.json +1 -1
  92. package/dist/esm/i18n/cs.js +19 -0
  93. package/dist/esm/i18n/da.js +19 -0
  94. package/dist/esm/i18n/de.js +19 -0
  95. package/dist/esm/i18n/es.js +19 -0
  96. package/dist/esm/i18n/fi.js +19 -0
  97. package/dist/esm/i18n/fr.js +19 -0
  98. package/dist/esm/i18n/hu.js +19 -0
  99. package/dist/esm/i18n/it.js +19 -0
  100. package/dist/esm/i18n/ja.js +19 -0
  101. package/dist/esm/i18n/ko.js +19 -0
  102. package/dist/esm/i18n/nb.js +19 -0
  103. package/dist/esm/i18n/nl.js +19 -0
  104. package/dist/esm/i18n/pl.js +19 -0
  105. package/dist/esm/i18n/pt_BR.js +19 -0
  106. package/dist/esm/i18n/ru.js +19 -0
  107. package/dist/esm/i18n/sv.js +19 -0
  108. package/dist/esm/i18n/th.js +19 -0
  109. package/dist/esm/i18n/tr.js +19 -0
  110. package/dist/esm/i18n/uk.js +19 -0
  111. package/dist/esm/i18n/vi.js +19 -0
  112. package/dist/esm/i18n/zh.js +19 -0
  113. package/dist/esm/i18n/zh_TW.js +19 -0
  114. package/dist/esm/lists/analytics.js +32 -0
  115. package/dist/esm/lists/indentation.js +17 -0
  116. package/dist/esm/lists/index.js +6 -0
  117. package/dist/esm/lists/node.js +87 -0
  118. package/dist/esm/lists/replace-content.js +17 -0
  119. package/dist/esm/lists/selection.js +50 -0
  120. package/dist/esm/mark/commands.js +190 -0
  121. package/dist/esm/mark/index.js +1 -0
  122. package/dist/esm/messages/full-page.js +18 -0
  123. package/dist/esm/messages/index.js +1 -0
  124. package/dist/esm/monitoring/error.js +1 -1
  125. package/dist/esm/node-width/index.js +7 -0
  126. package/dist/esm/ui/DropList/index.js +1 -1
  127. package/dist/esm/ui/Toolbar/index.js +1 -0
  128. package/dist/esm/ui/index.js +2 -1
  129. package/dist/esm/ui-menu/DropdownMenu/index.js +15 -2
  130. package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +207 -0
  131. package/dist/esm/ui-menu/index.js +5 -4
  132. package/dist/esm/utils/commands.js +104 -2
  133. package/dist/esm/utils/document.js +25 -1
  134. package/dist/esm/utils/index.js +3 -2
  135. package/dist/esm/utils/prosemirror/autojoin.js +63 -0
  136. package/dist/esm/version.json +1 -1
  137. package/dist/types/i18n/cs.d.ts +19 -0
  138. package/dist/types/i18n/da.d.ts +19 -0
  139. package/dist/types/i18n/de.d.ts +19 -0
  140. package/dist/types/i18n/es.d.ts +19 -0
  141. package/dist/types/i18n/fi.d.ts +19 -0
  142. package/dist/types/i18n/fr.d.ts +19 -0
  143. package/dist/types/i18n/hu.d.ts +19 -0
  144. package/dist/types/i18n/it.d.ts +19 -0
  145. package/dist/types/i18n/ja.d.ts +19 -0
  146. package/dist/types/i18n/ko.d.ts +19 -0
  147. package/dist/types/i18n/nb.d.ts +19 -0
  148. package/dist/types/i18n/nl.d.ts +19 -0
  149. package/dist/types/i18n/pl.d.ts +19 -0
  150. package/dist/types/i18n/pt_BR.d.ts +19 -0
  151. package/dist/types/i18n/ru.d.ts +19 -0
  152. package/dist/types/i18n/sv.d.ts +19 -0
  153. package/dist/types/i18n/th.d.ts +19 -0
  154. package/dist/types/i18n/tr.d.ts +19 -0
  155. package/dist/types/i18n/uk.d.ts +19 -0
  156. package/dist/types/i18n/vi.d.ts +19 -0
  157. package/dist/types/i18n/zh.d.ts +19 -0
  158. package/dist/types/i18n/zh_TW.d.ts +19 -0
  159. package/dist/types/lists/analytics.d.ts +4 -0
  160. package/dist/types/lists/indentation.d.ts +5 -0
  161. package/dist/types/lists/index.d.ts +6 -0
  162. package/dist/types/lists/node.d.ts +18 -0
  163. package/dist/types/lists/replace-content.d.ts +8 -0
  164. package/dist/types/lists/selection.d.ts +13 -0
  165. package/dist/types/mark/commands.d.ts +18 -0
  166. package/dist/types/mark/index.d.ts +1 -0
  167. package/dist/types/messages/full-page.d.ts +17 -0
  168. package/dist/types/messages/index.d.ts +1 -0
  169. package/dist/types/node-width/index.d.ts +1 -0
  170. package/dist/types/ui/Toolbar/index.d.ts +5 -0
  171. package/dist/types/ui/index.d.ts +2 -0
  172. package/dist/types/ui-menu/DropdownMenu/index.d.ts +2 -1
  173. package/dist/types/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +30 -0
  174. package/dist/types/ui-menu/index.d.ts +7 -6
  175. package/dist/types/utils/commands.d.ts +36 -2
  176. package/dist/types/utils/document.d.ts +4 -0
  177. package/dist/types/utils/index.d.ts +4 -2
  178. package/dist/types/utils/prosemirror/autojoin.d.ts +13 -0
  179. package/dist/types-ts4.5/i18n/cs.d.ts +19 -0
  180. package/dist/types-ts4.5/i18n/da.d.ts +19 -0
  181. package/dist/types-ts4.5/i18n/de.d.ts +19 -0
  182. package/dist/types-ts4.5/i18n/es.d.ts +19 -0
  183. package/dist/types-ts4.5/i18n/fi.d.ts +19 -0
  184. package/dist/types-ts4.5/i18n/fr.d.ts +19 -0
  185. package/dist/types-ts4.5/i18n/hu.d.ts +19 -0
  186. package/dist/types-ts4.5/i18n/it.d.ts +19 -0
  187. package/dist/types-ts4.5/i18n/ja.d.ts +19 -0
  188. package/dist/types-ts4.5/i18n/ko.d.ts +19 -0
  189. package/dist/types-ts4.5/i18n/nb.d.ts +19 -0
  190. package/dist/types-ts4.5/i18n/nl.d.ts +19 -0
  191. package/dist/types-ts4.5/i18n/pl.d.ts +19 -0
  192. package/dist/types-ts4.5/i18n/pt_BR.d.ts +19 -0
  193. package/dist/types-ts4.5/i18n/ru.d.ts +19 -0
  194. package/dist/types-ts4.5/i18n/sv.d.ts +19 -0
  195. package/dist/types-ts4.5/i18n/th.d.ts +19 -0
  196. package/dist/types-ts4.5/i18n/tr.d.ts +19 -0
  197. package/dist/types-ts4.5/i18n/uk.d.ts +19 -0
  198. package/dist/types-ts4.5/i18n/vi.d.ts +19 -0
  199. package/dist/types-ts4.5/i18n/zh.d.ts +19 -0
  200. package/dist/types-ts4.5/i18n/zh_TW.d.ts +19 -0
  201. package/dist/types-ts4.5/lists/analytics.d.ts +4 -0
  202. package/dist/types-ts4.5/lists/indentation.d.ts +5 -0
  203. package/dist/types-ts4.5/lists/index.d.ts +6 -0
  204. package/dist/types-ts4.5/lists/node.d.ts +18 -0
  205. package/dist/types-ts4.5/lists/replace-content.d.ts +8 -0
  206. package/dist/types-ts4.5/lists/selection.d.ts +13 -0
  207. package/dist/types-ts4.5/mark/commands.d.ts +18 -0
  208. package/dist/types-ts4.5/mark/index.d.ts +1 -0
  209. package/dist/types-ts4.5/messages/full-page.d.ts +17 -0
  210. package/dist/types-ts4.5/messages/index.d.ts +1 -0
  211. package/dist/types-ts4.5/node-width/index.d.ts +1 -0
  212. package/dist/types-ts4.5/ui/Toolbar/index.d.ts +5 -0
  213. package/dist/types-ts4.5/ui/index.d.ts +2 -0
  214. package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +2 -1
  215. package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +30 -0
  216. package/dist/types-ts4.5/ui-menu/index.d.ts +7 -6
  217. package/dist/types-ts4.5/utils/commands.d.ts +42 -2
  218. package/dist/types-ts4.5/utils/document.d.ts +4 -0
  219. package/dist/types-ts4.5/utils/index.d.ts +4 -2
  220. package/dist/types-ts4.5/utils/prosemirror/autojoin.d.ts +13 -0
  221. package/lists/package.json +15 -0
  222. package/mark/package.json +15 -0
  223. package/package.json +6 -3
@@ -17,9 +17,12 @@ export default {
17
17
  'fabric.editor.blockDescription': 'Показати більше інформації про посилання, у тому числі зведені дані й дії',
18
18
  'fabric.editor.blockTitle': 'Картка',
19
19
  'fabric.editor.blockquote': 'цитата',
20
+ 'fabric.editor.bug': 'Несправність',
20
21
  'fabric.editor.cancelButton': 'Скасувати',
21
22
  'fabric.editor.captionPlaceholder': 'Додати підпис',
22
23
  'fabric.editor.cardFloatingControls': 'Параметри картки',
24
+ 'fabric.editor.clearLink': 'Видалити посилання',
25
+ 'fabric.editor.clearLinkText': 'Видалити текст',
23
26
  'fabric.editor.codeBidiWarningLabel': 'Двонаправлені символи змінюють порядок відображення тексту. Такий спосіб може використовуватися, щоб приховати зловмисний код.',
24
27
  'fabric.editor.codeBlockCopyButton.copiedToClipboard': 'Скопійовано',
25
28
  'fabric.editor.codeBlockCopyButton.copyToClipboard': 'Копіювати як текст',
@@ -34,11 +37,13 @@ export default {
34
37
  'fabric.editor.date.description': 'Вставити дату через календар',
35
38
  'fabric.editor.decision': 'Рішення',
36
39
  'fabric.editor.decision.description': 'Зафіксувати рішення, щоб його було легко знайти',
40
+ 'fabric.editor.defaultAltText': 'Елемент списку',
37
41
  'fabric.editor.displayBlock': 'Показати картку',
38
42
  'fabric.editor.displayEmbed': 'Показати вбудований об’єкт',
39
43
  'fabric.editor.displayInline': 'Показати лише заголовок',
40
44
  'fabric.editor.displayLink': 'Показати як текст',
41
45
  'fabric.editor.displayOptionUnavailableInParentNode': 'Цей параметр відображення недоступний для вузла {node}',
46
+ 'fabric.editor.displayText': 'Текст для відображення',
42
47
  'fabric.editor.ecombedDescription': 'Показати інтерактивний попередній перегляд посилання',
43
48
  'fabric.editor.edit.datasource': 'Редагувати пошуковий запит',
44
49
  'fabric.editor.editLink': 'Редагування посилання',
@@ -47,6 +52,7 @@ export default {
47
52
  'fabric.editor.emoji': 'Емодзі',
48
53
  'fabric.editor.emoji.description': 'Виразити ідеї 🎉 чи емоції 😄 через емодзі',
49
54
  'fabric.editor.emptyLink': 'Введіть посилання.',
55
+ 'fabric.editor.epic': 'Епос',
50
56
  'fabric.editor.expand': 'Розгортка',
51
57
  'fabric.editor.expand.description': 'Вставити розгортку',
52
58
  'fabric.editor.expandDefaultTitle': 'Натисніть, щоб розгорнути…',
@@ -54,12 +60,22 @@ export default {
54
60
  'fabric.editor.expandPlaceholder': 'Назвіть розгорнутий вміст…',
55
61
  'fabric.editor.feedbackDialog': 'Залишити відгук',
56
62
  'fabric.editor.feedbackDialog.description': 'Поділіться враженнями від нового редактора',
63
+ 'fabric.editor.headingLink.hyperlinkIconBlogLabel': 'Блог',
64
+ 'fabric.editor.headingLink.hyperlinkIconBugLabel': 'Несправність',
65
+ 'fabric.editor.headingLink.hyperlinkIconIssueLabel': 'Задача',
66
+ 'fabric.editor.headingLink.hyperlinkIconPageLabel': 'Сторінка',
67
+ 'fabric.editor.headingLink.hyperlinkIconStoryLabel': 'Історія',
68
+ 'fabric.editor.headingLink.hyperlinkIconTaskLabel': 'Задача',
57
69
  'fabric.editor.help': 'Допомога',
58
70
  'fabric.editor.help.description': 'Переглянути всі сполучення клавіш і параметри розмітки',
59
71
  'fabric.editor.horizontalRule': 'Роздільник',
60
72
  'fabric.editor.horizontalRule.description': 'Відокремити інформацію горизонтальною лінією',
73
+ 'fabric.editor.hyperlink.linkAriaLabel': 'Мітка посилання',
74
+ 'fabric.editor.hyperlink.searchLinkAriaDescription': 'Коли ви будете набирати у полі текст, нижче з’явиться список варіантів',
75
+ 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {нічого не знайдено} one {{count,number} результат} few {{count,number} результати} many {{count,number} результатів} other {{count,number} результатів}}',
61
76
  'fabric.editor.hyperlinkToolbarPlaceholder': 'Вставте або знайдіть посилання',
62
77
  'fabric.editor.image': 'зображення',
78
+ 'fabric.editor.improvement': 'Покращення',
63
79
  'fabric.editor.inlineDescription': 'Показати посилання як вбудований текст',
64
80
  'fabric.editor.inlineTitle': 'У рядку',
65
81
  'fabric.editor.insertMenu': 'Вставити',
@@ -85,8 +101,11 @@ export default {
85
101
  'fabric.editor.settingsLinks': 'Перейти до параметрів посилань',
86
102
  'fabric.editor.status': 'Стан',
87
103
  'fabric.editor.status.description': 'Додати власний стан',
104
+ 'fabric.editor.story': 'Історія',
105
+ 'fabric.editor.subTask': 'Вкладене завдання',
88
106
  'fabric.editor.table': 'Таблиця',
89
107
  'fabric.editor.table.description': 'Вставити таблицю',
108
+ 'fabric.editor.task': 'Завдання',
90
109
  'fabric.editor.time.ago': 'тому',
91
110
  'fabric.editor.time.updated': 'Змінено',
92
111
  'fabric.editor.time.viewed': 'Переглянуто',
@@ -17,9 +17,12 @@ export default {
17
17
  'fabric.editor.blockDescription': 'Hiển thị thêm thông tin về liên kết, bao gồm bản tóm tắt và các thao tác',
18
18
  'fabric.editor.blockTitle': 'Thẻ',
19
19
  'fabric.editor.blockquote': 'một dấu ngoặc kép',
20
+ 'fabric.editor.bug': 'Lỗi',
20
21
  'fabric.editor.cancelButton': 'Hủy',
21
22
  'fabric.editor.captionPlaceholder': 'Thêm chú thích',
22
23
  'fabric.editor.cardFloatingControls': 'Tùy chọn thẻ',
24
+ 'fabric.editor.clearLink': 'Xóa liên kết',
25
+ 'fabric.editor.clearLinkText': 'Xóa văn bản',
23
26
  'fabric.editor.codeBidiWarningLabel': 'Ký tự hai chiều thay đổi thứ tự kết xuất văn bản. Điều này có thể được dùng để che giấu mã độc hại.',
24
27
  'fabric.editor.codeBlockCopyButton.copiedToClipboard': 'Đã sao chép!',
25
28
  'fabric.editor.codeBlockCopyButton.copyToClipboard': 'Sao chép dưới dạng văn bản',
@@ -34,11 +37,13 @@ export default {
34
37
  'fabric.editor.date.description': 'Thêm ngày bằng cách sử dụng lịch',
35
38
  'fabric.editor.decision': 'Quyết định',
36
39
  'fabric.editor.decision.description': 'Thu thập các quyết định để dễ dàng theo dõi',
40
+ 'fabric.editor.defaultAltText': 'Mục danh sách',
37
41
  'fabric.editor.displayBlock': 'Hiển thị thẻ',
38
42
  'fabric.editor.displayEmbed': 'Hiển thị đối tượng nhúng',
39
43
  'fabric.editor.displayInline': 'Hiển thị nội tuyến',
40
44
  'fabric.editor.displayLink': 'Hiển thị dạng văn bản',
41
45
  'fabric.editor.displayOptionUnavailableInParentNode': 'Tùy chọn hiển thị này không dùng được bên trong {node}',
46
+ 'fabric.editor.displayText': 'Văn bản cần hiển thị',
42
47
  'fabric.editor.ecombedDescription': 'Hiển thị bản xem trước tương tác của một liên kết',
43
48
  'fabric.editor.edit.datasource': 'Sửa truy vấn tìm kiếm',
44
49
  'fabric.editor.editLink': 'Chỉnh sửa liên kết',
@@ -47,6 +52,7 @@ export default {
47
52
  'fabric.editor.emoji': 'Biểu tượng cảm xúc',
48
53
  'fabric.editor.emoji.description': 'Sử dụng biểu tượng cảm xúc để thể hiện ý kiến 🎉 và cảm xúc 😄',
49
54
  'fabric.editor.emptyLink': 'Vui lòng nhập một liên kết.',
55
+ 'fabric.editor.epic': 'Quá trình',
50
56
  'fabric.editor.expand': 'Mở rộng',
51
57
  'fabric.editor.expand.description': 'Chèn đoạn mở rộng',
52
58
  'fabric.editor.expandDefaultTitle': 'Nhấp vào đây để mở rộng...',
@@ -54,12 +60,22 @@ export default {
54
60
  'fabric.editor.expandPlaceholder': 'Đặt tiêu đề cho phần mở rộng này...',
55
61
  'fabric.editor.feedbackDialog': 'Đưa ra phản hồi',
56
62
  'fabric.editor.feedbackDialog.description': 'Cho chúng tôi biết về trải nghiệm của bạn khi sử dụng trình chỉnh sửa mới',
63
+ 'fabric.editor.headingLink.hyperlinkIconBlogLabel': 'Blog',
64
+ 'fabric.editor.headingLink.hyperlinkIconBugLabel': 'Lỗi',
65
+ 'fabric.editor.headingLink.hyperlinkIconIssueLabel': 'Vấn đề',
66
+ 'fabric.editor.headingLink.hyperlinkIconPageLabel': 'Trang',
67
+ 'fabric.editor.headingLink.hyperlinkIconStoryLabel': 'Câu chuyện',
68
+ 'fabric.editor.headingLink.hyperlinkIconTaskLabel': 'Tác vụ',
57
69
  'fabric.editor.help': 'Trợ giúp',
58
70
  'fabric.editor.help.description': 'Duyệt qua tất cả các phím tắt trên bàn phím và các tùy chọn đánh dấu',
59
71
  'fabric.editor.horizontalRule': 'Trình phân chia',
60
72
  'fabric.editor.horizontalRule.description': 'Chia tách nội dung bằng một đường ngang',
73
+ 'fabric.editor.hyperlink.linkAriaLabel': 'Nhãn liên kết',
74
+ 'fabric.editor.hyperlink.searchLinkAriaDescription': 'Các đề xuất sẽ xuất hiện bên dưới khi bạn nhập thông tin vào trường',
75
+ 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {không tìm thấy kết quả} other {Đã tìm thấy {count,number} kết quả}}',
61
76
  'fabric.editor.hyperlinkToolbarPlaceholder': 'Dán hoặc tìm kiếm liên kết',
62
77
  'fabric.editor.image': 'hình ảnh',
78
+ 'fabric.editor.improvement': 'Cải tiến',
63
79
  'fabric.editor.inlineDescription': 'Hiển thị liên kết dưới dạng văn bản nội tuyến',
64
80
  'fabric.editor.inlineTitle': 'Nội tuyến',
65
81
  'fabric.editor.insertMenu': 'Chèn',
@@ -85,8 +101,11 @@ export default {
85
101
  'fabric.editor.settingsLinks': 'Vào phần Tùy chọn liên kết',
86
102
  'fabric.editor.status': 'Trạng thái',
87
103
  'fabric.editor.status.description': 'Thêm một nhãn trạng thái tùy chỉnh',
104
+ 'fabric.editor.story': 'Câu chuyện',
105
+ 'fabric.editor.subTask': 'Tác vụ con',
88
106
  'fabric.editor.table': 'Bảng',
89
107
  'fabric.editor.table.description': 'Chèn bảng',
108
+ 'fabric.editor.task': 'Tác vụ',
90
109
  'fabric.editor.time.ago': 'trước',
91
110
  'fabric.editor.time.updated': 'Đã cập nhật',
92
111
  'fabric.editor.time.viewed': 'Đã xem',
@@ -17,9 +17,12 @@ export default {
17
17
  'fabric.editor.blockDescription': '显示有关链接的更多信息,包括摘要和操作',
18
18
  'fabric.editor.blockTitle': '卡片',
19
19
  'fabric.editor.blockquote': '引用',
20
+ 'fabric.editor.bug': '缺陷',
20
21
  'fabric.editor.cancelButton': '取消',
21
22
  'fabric.editor.captionPlaceholder': '添加标题',
22
23
  'fabric.editor.cardFloatingControls': '卡片选项',
24
+ 'fabric.editor.clearLink': '清除链接',
25
+ 'fabric.editor.clearLinkText': '清除文本',
23
26
  'fabric.editor.codeBidiWarningLabel': '双向字符会更改文本的呈现顺序。这可能被用于掩盖恶意代码。',
24
27
  'fabric.editor.codeBlockCopyButton.copiedToClipboard': '已复制!',
25
28
  'fabric.editor.codeBlockCopyButton.copyToClipboard': '复制为文本',
@@ -34,11 +37,13 @@ export default {
34
37
  'fabric.editor.date.description': '使用日历添加日期',
35
38
  'fabric.editor.decision': '决定',
36
39
  'fabric.editor.decision.description': '捕获决策,以便轻松跟踪',
40
+ 'fabric.editor.defaultAltText': '列出项目',
37
41
  'fabric.editor.displayBlock': '显示卡片',
38
42
  'fabric.editor.displayEmbed': '显示嵌入',
39
43
  'fabric.editor.displayInline': '显示内联',
40
44
  'fabric.editor.displayLink': '显示为文本',
41
45
  'fabric.editor.displayOptionUnavailableInParentNode': '无法在 {node} 内使用此显示选项',
46
+ 'fabric.editor.displayText': '待显示的文本',
42
47
  'fabric.editor.ecombedDescription': '显示链接的交互式预览',
43
48
  'fabric.editor.edit.datasource': '编辑搜索查询',
44
49
  'fabric.editor.editLink': '编辑链接',
@@ -47,6 +52,7 @@ export default {
47
52
  'fabric.editor.emoji': '表情符号',
48
53
  'fabric.editor.emoji.description': '使用表情符号传达理念 🎉 和情绪 😄',
49
54
  'fabric.editor.emptyLink': '请输入链接。',
55
+ 'fabric.editor.epic': '长篇故事',
50
56
  'fabric.editor.expand': '扩展',
51
57
  'fabric.editor.expand.description': '插入扩展',
52
58
  'fabric.editor.expandDefaultTitle': '点击此处展开...',
@@ -54,12 +60,22 @@ export default {
54
60
  'fabric.editor.expandPlaceholder': '为此展开添加标题......',
55
61
  'fabric.editor.feedbackDialog': '提供反馈意见',
56
62
  'fabric.editor.feedbackDialog.description': '跟我们讲讲您对新编辑器的使用体验',
63
+ 'fabric.editor.headingLink.hyperlinkIconBlogLabel': '博文',
64
+ 'fabric.editor.headingLink.hyperlinkIconBugLabel': '缺陷',
65
+ 'fabric.editor.headingLink.hyperlinkIconIssueLabel': '事务',
66
+ 'fabric.editor.headingLink.hyperlinkIconPageLabel': '页面',
67
+ 'fabric.editor.headingLink.hyperlinkIconStoryLabel': '故事',
68
+ 'fabric.editor.headingLink.hyperlinkIconTaskLabel': '任务',
57
69
  'fabric.editor.help': '帮助',
58
70
  'fabric.editor.help.description': '浏览所有键盘快捷键和文本标记选项',
59
71
  'fabric.editor.horizontalRule': '分隔条',
60
72
  'fabric.editor.horizontalRule.description': '使用水平线分隔内容',
73
+ 'fabric.editor.hyperlink.linkAriaLabel': '链接标签',
74
+ 'fabric.editor.hyperlink.searchLinkAriaDescription': '在字段中输入内容时,下方会显示建议内容',
75
+ 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {未找到结果} other {找到 {count,number} 个结果}}',
61
76
  'fabric.editor.hyperlinkToolbarPlaceholder': '粘贴或搜索链接',
62
77
  'fabric.editor.image': '图片',
78
+ 'fabric.editor.improvement': '改进',
63
79
  'fabric.editor.inlineDescription': '以内联文本显示链接',
64
80
  'fabric.editor.inlineTitle': '内联',
65
81
  'fabric.editor.insertMenu': '插入',
@@ -85,8 +101,11 @@ export default {
85
101
  'fabric.editor.settingsLinks': '转到“链接首选项”',
86
102
  'fabric.editor.status': '状态',
87
103
  'fabric.editor.status.description': '添加自定义状态标签',
104
+ 'fabric.editor.story': '故事',
105
+ 'fabric.editor.subTask': '子任务',
88
106
  'fabric.editor.table': '表格',
89
107
  'fabric.editor.table.description': '插入表格',
108
+ 'fabric.editor.task': '任务',
90
109
  'fabric.editor.time.ago': '前',
91
110
  'fabric.editor.time.updated': '上次更新时间',
92
111
  'fabric.editor.time.viewed': '上次查看时间',
@@ -17,9 +17,12 @@ export default {
17
17
  'fabric.editor.blockDescription': '顯示有關連結的更多資訊,包括摘要和動作',
18
18
  'fabric.editor.blockTitle': '卡片',
19
19
  'fabric.editor.blockquote': '引述',
20
+ 'fabric.editor.bug': '錯誤',
20
21
  'fabric.editor.cancelButton': '取消',
21
22
  'fabric.editor.captionPlaceholder': '新增標題',
22
23
  'fabric.editor.cardFloatingControls': '卡片選項',
24
+ 'fabric.editor.clearLink': '清除連結',
25
+ 'fabric.editor.clearLinkText': '清除文字',
23
26
  'fabric.editor.codeBidiWarningLabel': '雙向字元會變更文字呈現的順序。這可用來將惡意程式碼模糊化。',
24
27
  'fabric.editor.codeBlockCopyButton.copiedToClipboard': '已複製!',
25
28
  'fabric.editor.codeBlockCopyButton.copyToClipboard': '複製文字',
@@ -34,11 +37,13 @@ export default {
34
37
  'fabric.editor.date.description': '使用日曆新增日期',
35
38
  'fabric.editor.decision': '決定',
36
39
  'fabric.editor.decision.description': '擷取決定以便追蹤',
40
+ 'fabric.editor.defaultAltText': '清單項目',
37
41
  'fabric.editor.displayBlock': '顯示卡片',
38
42
  'fabric.editor.displayEmbed': '顯示嵌入',
39
43
  'fabric.editor.displayInline': '顯示內嵌',
40
44
  'fabric.editor.displayLink': '以文字顯示',
41
45
  'fabric.editor.displayOptionUnavailableInParentNode': '{node} 內無法使用此顯示選項',
46
+ 'fabric.editor.displayText': '要顯示的文字',
42
47
  'fabric.editor.ecombedDescription': '顯示連結的互動式預覽',
43
48
  'fabric.editor.edit.datasource': '編輯搜尋查詢',
44
49
  'fabric.editor.editLink': '編輯連結',
@@ -47,6 +52,7 @@ export default {
47
52
  'fabric.editor.emoji': '表情符號',
48
53
  'fabric.editor.emoji.description': '使用表情符號來傳達想法 🎉 和情緒 😄',
49
54
  'fabric.editor.emptyLink': '請輸入連結。',
55
+ 'fabric.editor.epic': '大型工作',
50
56
  'fabric.editor.expand': '擴充',
51
57
  'fabric.editor.expand.description': '插入擴充',
52
58
  'fabric.editor.expandDefaultTitle': '按一下此處以展開...',
@@ -54,12 +60,22 @@ export default {
54
60
  'fabric.editor.expandPlaceholder': '為此展開設定標題...',
55
61
  'fabric.editor.feedbackDialog': '提供意見回饋',
56
62
  'fabric.editor.feedbackDialog.description': '請說明您對於新編輯器的使用體驗',
63
+ 'fabric.editor.headingLink.hyperlinkIconBlogLabel': '部落格',
64
+ 'fabric.editor.headingLink.hyperlinkIconBugLabel': '錯誤',
65
+ 'fabric.editor.headingLink.hyperlinkIconIssueLabel': '問題',
66
+ 'fabric.editor.headingLink.hyperlinkIconPageLabel': '頁面',
67
+ 'fabric.editor.headingLink.hyperlinkIconStoryLabel': '故事',
68
+ 'fabric.editor.headingLink.hyperlinkIconTaskLabel': '任務',
57
69
  'fabric.editor.help': '說明',
58
70
  'fabric.editor.help.description': '瀏覽所有鍵盤快速鍵和 Markdown 選項',
59
71
  'fabric.editor.horizontalRule': '分隔線',
60
72
  'fabric.editor.horizontalRule.description': '使用水平線來區隔內容',
73
+ 'fabric.editor.hyperlink.linkAriaLabel': '連結標籤',
74
+ 'fabric.editor.hyperlink.searchLinkAriaDescription': '當您在欄位中輸入內容時,建議會顯示在下方',
75
+ 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {沒有找到任何結果} other {找到 {count,number} 個結果}}',
61
76
  'fabric.editor.hyperlinkToolbarPlaceholder': '貼上或搜尋連結',
62
77
  'fabric.editor.image': '影像',
78
+ 'fabric.editor.improvement': '改善',
63
79
  'fabric.editor.inlineDescription': '將連結顯示為內嵌文字',
64
80
  'fabric.editor.inlineTitle': '內嵌',
65
81
  'fabric.editor.insertMenu': '插入',
@@ -85,8 +101,11 @@ export default {
85
101
  'fabric.editor.settingsLinks': '前往連結偏好設定',
86
102
  'fabric.editor.status': '狀態',
87
103
  'fabric.editor.status.description': '新增自訂狀態標籤',
104
+ 'fabric.editor.story': '故事',
105
+ 'fabric.editor.subTask': '子任務',
88
106
  'fabric.editor.table': '表格',
89
107
  'fabric.editor.table.description': '插入表格',
108
+ 'fabric.editor.task': '任務',
90
109
  'fabric.editor.time.ago': '前',
91
110
  'fabric.editor.time.updated': '已更新',
92
111
  'fabric.editor.time.viewed': '已檢視',
@@ -0,0 +1,36 @@
1
+ import { isListItemNode, isListNode } from '../utils';
2
+ import { getListItemAttributes } from './selection';
3
+ export const getCommonListAnalyticsAttributes = state => {
4
+ const {
5
+ selection: {
6
+ $from,
7
+ $to
8
+ }
9
+ } = state;
10
+ const fromAttrs = getListItemAttributes($from);
11
+ const toAttrs = getListItemAttributes($to);
12
+ return {
13
+ itemIndexAtSelectionStart: fromAttrs.itemIndex,
14
+ itemIndexAtSelectionEnd: toAttrs.itemIndex,
15
+ indentLevelAtSelectionStart: fromAttrs.indentLevel,
16
+ indentLevelAtSelectionEnd: toAttrs.indentLevel,
17
+ itemsInSelection: countListItemsInSelection(state)
18
+ };
19
+ };
20
+ export const countListItemsInSelection = state => {
21
+ const {
22
+ from,
23
+ to
24
+ } = state.selection;
25
+ if (from === to) {
26
+ return 1;
27
+ }
28
+ let count = 0;
29
+ const listSlice = state.doc.cut(from, to);
30
+ listSlice.content.nodesBetween(0, listSlice.content.size, (node, pos, parent, index) => {
31
+ if (parent && isListItemNode(parent) && !isListNode(node) && index === 0) {
32
+ count++;
33
+ }
34
+ });
35
+ return count;
36
+ };
@@ -0,0 +1,18 @@
1
+ import { numberNestedLists } from './selection';
2
+ export const hasValidListIndentationLevel = ({
3
+ tr,
4
+ maxIndentation
5
+ }) => {
6
+ const initialIndentationLevel = numberNestedLists(tr.selection.$from);
7
+ let currentIndentationLevel;
8
+ let currentPos = tr.selection.$to.pos;
9
+ do {
10
+ const resolvedPos = tr.doc.resolve(currentPos);
11
+ currentIndentationLevel = numberNestedLists(resolvedPos);
12
+ if (currentIndentationLevel > maxIndentation) {
13
+ return false;
14
+ }
15
+ currentPos++;
16
+ } while (currentIndentationLevel >= initialIndentationLevel);
17
+ return true;
18
+ };
@@ -0,0 +1,6 @@
1
+ export { getListItemAttributes, normalizeListItemsSelection } from './selection';
2
+ export { moveTargetIntoList } from './replace-content';
3
+ export { JoinDirection, isListNodeValidContent, joinSiblingLists } from './node';
4
+ export { getCommonListAnalyticsAttributes, countListItemsInSelection } from './analytics';
5
+ export { hasValidListIndentationLevel } from './indentation';
6
+ export { isListNode, isListItemNode, isBulletList, isParagraphNode } from '../utils';
@@ -0,0 +1,97 @@
1
+ import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
+ import { isListItemNode, isListNode } from '../utils';
3
+ export function isListNodeValidContent(node) {
4
+ const {
5
+ bulletList
6
+ } = node.type.schema.nodes;
7
+ if (!bulletList) {
8
+ return false;
9
+ }
10
+ const listFragment = Fragment.from(bulletList.createAndFill());
11
+ return !isListItemNode(node) && node.type.validContent(listFragment);
12
+ }
13
+ export let JoinDirection = /*#__PURE__*/function (JoinDirection) {
14
+ JoinDirection[JoinDirection["LEFT"] = 1] = "LEFT";
15
+ JoinDirection[JoinDirection["RIGHT"] = -1] = "RIGHT";
16
+ return JoinDirection;
17
+ }({});
18
+ export const joinSiblingLists = ({
19
+ tr,
20
+ direction,
21
+ forceListType
22
+ }) => {
23
+ const result = {
24
+ orderedList: 0,
25
+ bulletList: 0
26
+ };
27
+ const {
28
+ doc,
29
+ selection: {
30
+ $from,
31
+ $to
32
+ },
33
+ selection
34
+ } = tr;
35
+ const range = $from.blockRange($to, isListNodeValidContent);
36
+ if (!range) {
37
+ return result;
38
+ }
39
+ const rootListNode = doc.nodeAt(range.start);
40
+ const from = isListNode(rootListNode) ? range.start : 0;
41
+ const to = isListNode(rootListNode) ? range.end : tr.doc.content.size;
42
+ const joins = [];
43
+ doc.nodesBetween(from, to, (node, pos, parent) => {
44
+ const resolvedPos = doc.resolve(pos);
45
+ const {
46
+ nodeBefore,
47
+ nodeAfter
48
+ } = resolvedPos;
49
+ if (!nodeBefore || !nodeAfter || !isListNode(nodeBefore) || !isListNode(nodeAfter)) {
50
+ return;
51
+ }
52
+ const isNestedList = isListItemNode(parent);
53
+ if (!isNestedList && nodeBefore.type !== nodeAfter.type && !forceListType) {
54
+ return;
55
+ }
56
+ const index = resolvedPos.index();
57
+ const positionPreviousNode = resolvedPos.posAtIndex(index - 1);
58
+ const positionCurrentNode = resolvedPos.posAtIndex(index);
59
+
60
+ // If the previous node is part of the selection, OR
61
+ // If the previous node is not part of the selection and the previous node has the same list type that we’re converting to
62
+ const joinBefore = positionPreviousNode >= from || nodeBefore.type === forceListType;
63
+ if (forceListType) {
64
+ if (joinBefore) {
65
+ tr.setNodeMarkup(positionPreviousNode, forceListType);
66
+ }
67
+ tr.setNodeMarkup(positionCurrentNode, forceListType);
68
+ }
69
+ if (isNestedList && nodeBefore.type !== nodeAfter.type) {
70
+ const nodeType = direction === JoinDirection.RIGHT ? nodeAfter.type : nodeBefore.type;
71
+ tr.setNodeMarkup(positionPreviousNode, nodeType);
72
+ }
73
+ if (joinBefore) {
74
+ joins.push(pos);
75
+ }
76
+ });
77
+ if (selection.empty && rootListNode && isListNode(rootListNode)) {
78
+ const resolvedPos = doc.resolve(range.start + rootListNode.nodeSize);
79
+ const {
80
+ nodeBefore,
81
+ nodeAfter
82
+ } = resolvedPos;
83
+ if (nodeBefore && nodeAfter && isListNode(nodeBefore) && isListNode(nodeAfter) && nodeAfter.type === nodeBefore.type) {
84
+ joins.push(resolvedPos.pos);
85
+ }
86
+ }
87
+ for (let i = joins.length - 1; i >= 0; i--) {
88
+ const listNode = tr.doc.nodeAt(joins[i]);
89
+ const listName = listNode === null || listNode === void 0 ? void 0 : listNode.type.name;
90
+ if (listName && (listName === 'orderedList' || listName === 'bulletList')) {
91
+ const amount = result[listName] || 0;
92
+ result[listName] = amount + 1;
93
+ }
94
+ tr.join(joins[i]);
95
+ }
96
+ return result;
97
+ };
@@ -0,0 +1,18 @@
1
+ import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
2
+ export const moveTargetIntoList = ({
3
+ insertPosition,
4
+ $target
5
+ }) => {
6
+ var _$target$nodeAfter;
7
+ // take the text content of the paragraph and insert after the paragraph up until before the the cut
8
+ const from = insertPosition;
9
+ const to = $target.pos + (((_$target$nodeAfter = $target.nodeAfter) === null || _$target$nodeAfter === void 0 ? void 0 : _$target$nodeAfter.nodeSize) || 0); //$cut.pos + $cut.nodeAfter.nodeSize;
10
+ const gapFrom = $target.posAtIndex(0, $target.depth + 1); // start pos of the child
11
+ const gapTo = $target.doc.resolve(gapFrom).end(); // end pos of the paragraph
12
+
13
+ if (gapTo - gapFrom === 0) {
14
+ return new ReplaceStep(from, to, $target.doc.slice(insertPosition, $target.pos));
15
+ }
16
+ const step = new ReplaceAroundStep(from, to, gapFrom, gapTo, $target.doc.slice(insertPosition, $target.pos), 0, true);
17
+ return step;
18
+ };
@@ -0,0 +1,53 @@
1
+ import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
2
+ import { findParentNodeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
3
+ import { isListItemNode, isListNode } from '../utils';
4
+ export const numberNestedLists = resolvedPos => {
5
+ let count = 0;
6
+ for (let i = resolvedPos.depth - 1; i > 0; i--) {
7
+ const node = resolvedPos.node(i);
8
+ if (isListNode(node)) {
9
+ count += 1;
10
+ }
11
+ }
12
+ return count;
13
+ };
14
+ export const getListItemAttributes = $pos => {
15
+ const indentLevel = numberNestedLists($pos) - 1;
16
+ const itemAtPos = findParentNodeClosestToPos($pos, isListItemNode);
17
+
18
+ // Get the index of the current item relative to parent (parent is at item depth - 1)
19
+ const itemIndex = $pos.index(itemAtPos ? itemAtPos.depth - 1 : undefined);
20
+ return {
21
+ indentLevel,
22
+ itemIndex
23
+ };
24
+ };
25
+ export const normalizeListItemsSelection = ({
26
+ selection,
27
+ doc
28
+ }) => {
29
+ if (selection.empty) {
30
+ return selection;
31
+ }
32
+ const {
33
+ $from,
34
+ $to
35
+ } = selection;
36
+ if (selection instanceof NodeSelection) {
37
+ const head = resolvePositionToStartOfListItem($from);
38
+ return new TextSelection(head, head);
39
+ }
40
+ const head = resolvePositionToStartOfListItem($from);
41
+ const anchor = resolvePositionToEndOfListItem($to);
42
+ return new TextSelection(anchor, head);
43
+ };
44
+ const resolvePositionToStartOfListItem = $pos => {
45
+ const fromRange = $pos.blockRange($pos, isListItemNode);
46
+ const fromPosition = fromRange && $pos.textOffset === 0 && fromRange.end - 1 === $pos.pos ? Selection.near($pos.doc.resolve(fromRange.end + 1), 1).$from : $pos;
47
+ return fromPosition;
48
+ };
49
+ const resolvePositionToEndOfListItem = $pos => {
50
+ const toRange = $pos.blockRange($pos, isListItemNode);
51
+ const toPosition = toRange && $pos.textOffset === 0 && toRange.start + 1 === $pos.pos ? Selection.near($pos.doc.resolve(toRange.start - 1), -1).$to : $pos;
52
+ return toPosition;
53
+ };