@atlaskit/editor-common 76.12.0 → 76.12.2

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 (158) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/i18n/cs.js +41 -1
  3. package/dist/cjs/i18n/da.js +41 -1
  4. package/dist/cjs/i18n/de.js +41 -1
  5. package/dist/cjs/i18n/en.js +44 -1
  6. package/dist/cjs/i18n/en_GB.js +44 -1
  7. package/dist/cjs/i18n/en_ZZ.js +44 -1
  8. package/dist/cjs/i18n/es.js +41 -1
  9. package/dist/cjs/i18n/fi.js +41 -1
  10. package/dist/cjs/i18n/fr.js +41 -1
  11. package/dist/cjs/i18n/hu.js +41 -1
  12. package/dist/cjs/i18n/it.js +41 -1
  13. package/dist/cjs/i18n/ja.js +41 -1
  14. package/dist/cjs/i18n/ko.js +41 -1
  15. package/dist/cjs/i18n/nb.js +41 -1
  16. package/dist/cjs/i18n/nl.js +41 -1
  17. package/dist/cjs/i18n/pl.js +41 -1
  18. package/dist/cjs/i18n/pt_BR.js +41 -1
  19. package/dist/cjs/i18n/ru.js +41 -1
  20. package/dist/cjs/i18n/sv.js +41 -1
  21. package/dist/cjs/i18n/th.js +41 -1
  22. package/dist/cjs/i18n/tr.js +41 -1
  23. package/dist/cjs/i18n/uk.js +41 -1
  24. package/dist/cjs/i18n/vi.js +41 -1
  25. package/dist/cjs/i18n/zh.js +41 -1
  26. package/dist/cjs/i18n/zh_TW.js +41 -1
  27. package/dist/cjs/monitoring/error.js +1 -1
  28. package/dist/cjs/types/selection-toolbar.js +5 -0
  29. package/dist/cjs/ui/DropList/index.js +1 -1
  30. package/dist/cjs/utils/calculate-toolbar-position.js +146 -0
  31. package/dist/cjs/utils/index.js +13 -0
  32. package/dist/es2019/i18n/cs.js +41 -1
  33. package/dist/es2019/i18n/da.js +41 -1
  34. package/dist/es2019/i18n/de.js +41 -1
  35. package/dist/es2019/i18n/en.js +44 -1
  36. package/dist/es2019/i18n/en_GB.js +44 -1
  37. package/dist/es2019/i18n/en_ZZ.js +44 -1
  38. package/dist/es2019/i18n/es.js +41 -1
  39. package/dist/es2019/i18n/fi.js +41 -1
  40. package/dist/es2019/i18n/fr.js +41 -1
  41. package/dist/es2019/i18n/hu.js +41 -1
  42. package/dist/es2019/i18n/it.js +41 -1
  43. package/dist/es2019/i18n/ja.js +41 -1
  44. package/dist/es2019/i18n/ko.js +41 -1
  45. package/dist/es2019/i18n/nb.js +41 -1
  46. package/dist/es2019/i18n/nl.js +41 -1
  47. package/dist/es2019/i18n/pl.js +41 -1
  48. package/dist/es2019/i18n/pt_BR.js +41 -1
  49. package/dist/es2019/i18n/ru.js +41 -1
  50. package/dist/es2019/i18n/sv.js +41 -1
  51. package/dist/es2019/i18n/th.js +41 -1
  52. package/dist/es2019/i18n/tr.js +41 -1
  53. package/dist/es2019/i18n/uk.js +41 -1
  54. package/dist/es2019/i18n/vi.js +41 -1
  55. package/dist/es2019/i18n/zh.js +41 -1
  56. package/dist/es2019/i18n/zh_TW.js +41 -1
  57. package/dist/es2019/monitoring/error.js +1 -1
  58. package/dist/es2019/types/selection-toolbar.js +1 -0
  59. package/dist/es2019/ui/DropList/index.js +1 -1
  60. package/dist/es2019/utils/calculate-toolbar-position.js +140 -0
  61. package/dist/es2019/utils/index.js +2 -1
  62. package/dist/esm/i18n/cs.js +41 -1
  63. package/dist/esm/i18n/da.js +41 -1
  64. package/dist/esm/i18n/de.js +41 -1
  65. package/dist/esm/i18n/en.js +44 -1
  66. package/dist/esm/i18n/en_GB.js +44 -1
  67. package/dist/esm/i18n/en_ZZ.js +44 -1
  68. package/dist/esm/i18n/es.js +41 -1
  69. package/dist/esm/i18n/fi.js +41 -1
  70. package/dist/esm/i18n/fr.js +41 -1
  71. package/dist/esm/i18n/hu.js +41 -1
  72. package/dist/esm/i18n/it.js +41 -1
  73. package/dist/esm/i18n/ja.js +41 -1
  74. package/dist/esm/i18n/ko.js +41 -1
  75. package/dist/esm/i18n/nb.js +41 -1
  76. package/dist/esm/i18n/nl.js +41 -1
  77. package/dist/esm/i18n/pl.js +41 -1
  78. package/dist/esm/i18n/pt_BR.js +41 -1
  79. package/dist/esm/i18n/ru.js +41 -1
  80. package/dist/esm/i18n/sv.js +41 -1
  81. package/dist/esm/i18n/th.js +41 -1
  82. package/dist/esm/i18n/tr.js +41 -1
  83. package/dist/esm/i18n/uk.js +41 -1
  84. package/dist/esm/i18n/vi.js +41 -1
  85. package/dist/esm/i18n/zh.js +41 -1
  86. package/dist/esm/i18n/zh_TW.js +41 -1
  87. package/dist/esm/monitoring/error.js +1 -1
  88. package/dist/esm/types/selection-toolbar.js +1 -0
  89. package/dist/esm/ui/DropList/index.js +1 -1
  90. package/dist/esm/utils/calculate-toolbar-position.js +140 -0
  91. package/dist/esm/utils/index.js +2 -1
  92. package/dist/types/analytics/types/events.d.ts +1 -1
  93. package/dist/types/i18n/cs.d.ts +41 -1
  94. package/dist/types/i18n/da.d.ts +41 -1
  95. package/dist/types/i18n/de.d.ts +41 -1
  96. package/dist/types/i18n/en.d.ts +44 -1
  97. package/dist/types/i18n/en_GB.d.ts +44 -1
  98. package/dist/types/i18n/en_ZZ.d.ts +44 -1
  99. package/dist/types/i18n/es.d.ts +41 -1
  100. package/dist/types/i18n/fi.d.ts +41 -1
  101. package/dist/types/i18n/fr.d.ts +41 -1
  102. package/dist/types/i18n/hu.d.ts +41 -1
  103. package/dist/types/i18n/it.d.ts +41 -1
  104. package/dist/types/i18n/ja.d.ts +41 -1
  105. package/dist/types/i18n/ko.d.ts +41 -1
  106. package/dist/types/i18n/nb.d.ts +41 -1
  107. package/dist/types/i18n/nl.d.ts +41 -1
  108. package/dist/types/i18n/pl.d.ts +41 -1
  109. package/dist/types/i18n/pt_BR.d.ts +41 -1
  110. package/dist/types/i18n/ru.d.ts +41 -1
  111. package/dist/types/i18n/sv.d.ts +41 -1
  112. package/dist/types/i18n/th.d.ts +41 -1
  113. package/dist/types/i18n/tr.d.ts +41 -1
  114. package/dist/types/i18n/uk.d.ts +41 -1
  115. package/dist/types/i18n/vi.d.ts +41 -1
  116. package/dist/types/i18n/zh.d.ts +41 -1
  117. package/dist/types/i18n/zh_TW.d.ts +41 -1
  118. package/dist/types/types/editor-plugin.d.ts +9 -0
  119. package/dist/types/types/index.d.ts +1 -0
  120. package/dist/types/types/selection-toolbar.d.ts +19 -0
  121. package/dist/types/ui/MediaSingle/grid.d.ts +2 -2
  122. package/dist/types/utils/calculate-toolbar-position.d.ts +10 -0
  123. package/dist/types/utils/extension-handler.d.ts +1 -1
  124. package/dist/types/utils/index.d.ts +1 -0
  125. package/dist/types-ts4.5/analytics/types/events.d.ts +1 -1
  126. package/dist/types-ts4.5/i18n/cs.d.ts +41 -1
  127. package/dist/types-ts4.5/i18n/da.d.ts +41 -1
  128. package/dist/types-ts4.5/i18n/de.d.ts +41 -1
  129. package/dist/types-ts4.5/i18n/en.d.ts +44 -1
  130. package/dist/types-ts4.5/i18n/en_GB.d.ts +44 -1
  131. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +44 -1
  132. package/dist/types-ts4.5/i18n/es.d.ts +41 -1
  133. package/dist/types-ts4.5/i18n/fi.d.ts +41 -1
  134. package/dist/types-ts4.5/i18n/fr.d.ts +41 -1
  135. package/dist/types-ts4.5/i18n/hu.d.ts +41 -1
  136. package/dist/types-ts4.5/i18n/it.d.ts +41 -1
  137. package/dist/types-ts4.5/i18n/ja.d.ts +41 -1
  138. package/dist/types-ts4.5/i18n/ko.d.ts +41 -1
  139. package/dist/types-ts4.5/i18n/nb.d.ts +41 -1
  140. package/dist/types-ts4.5/i18n/nl.d.ts +41 -1
  141. package/dist/types-ts4.5/i18n/pl.d.ts +41 -1
  142. package/dist/types-ts4.5/i18n/pt_BR.d.ts +41 -1
  143. package/dist/types-ts4.5/i18n/ru.d.ts +41 -1
  144. package/dist/types-ts4.5/i18n/sv.d.ts +41 -1
  145. package/dist/types-ts4.5/i18n/th.d.ts +41 -1
  146. package/dist/types-ts4.5/i18n/tr.d.ts +41 -1
  147. package/dist/types-ts4.5/i18n/uk.d.ts +41 -1
  148. package/dist/types-ts4.5/i18n/vi.d.ts +41 -1
  149. package/dist/types-ts4.5/i18n/zh.d.ts +41 -1
  150. package/dist/types-ts4.5/i18n/zh_TW.d.ts +41 -1
  151. package/dist/types-ts4.5/types/editor-plugin.d.ts +9 -0
  152. package/dist/types-ts4.5/types/index.d.ts +1 -0
  153. package/dist/types-ts4.5/types/selection-toolbar.d.ts +19 -0
  154. package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +2 -2
  155. package/dist/types-ts4.5/utils/calculate-toolbar-position.d.ts +10 -0
  156. package/dist/types-ts4.5/utils/extension-handler.d.ts +1 -1
  157. package/dist/types-ts4.5/utils/index.d.ts +1 -0
  158. package/package.json +5 -4
@@ -10,13 +10,19 @@ export default {
10
10
  'fabric.editor.action': 'Mục thao tác',
11
11
  'fabric.editor.action.description': 'Tạo và chỉ định các mục thao tác',
12
12
  'fabric.editor.addMediaFiles': 'Thêm ảnh, video hoặc tệp',
13
+ 'fabric.editor.alignCenter': 'Căn giữa',
13
14
  'fabric.editor.alignImageCenter': 'Căn giữa',
14
15
  'fabric.editor.alignImageLeft': 'Căn trái',
15
16
  'fabric.editor.alignImageRight': 'Căn phải',
17
+ 'fabric.editor.alignLeft': 'Căn trái',
18
+ 'fabric.editor.alignRight': 'Căn phải',
19
+ 'fabric.editor.annotationToolbar': 'Thanh công cụ chú thích',
16
20
  'fabric.editor.blockCardUnavailable': 'Liên kết nội tuyến nằm trong {node} và không thể thay đổi chế độ xem liên kết',
17
21
  '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
22
  'fabric.editor.blockTitle': 'Thẻ',
19
23
  'fabric.editor.blockquote': 'một dấu ngoặc kép',
24
+ 'fabric.editor.blockquote.description': 'Chèn trích dẫn hoặc tham chiếu',
25
+ 'fabric.editor.blockquote2': 'Trích dẫn',
20
26
  'fabric.editor.bold': 'In đậm',
21
27
  'fabric.editor.bug': 'Lỗi',
22
28
  'fabric.editor.cancelButton': 'Hủy',
@@ -32,11 +38,17 @@ export default {
32
38
  'fabric.editor.codeBlockCopyButton.copyToClipboard': 'Sao chép dưới dạng văn bản',
33
39
  'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': 'Tắt cuộn',
34
40
  'fabric.editor.codeBlockWrapButton.wrapCodeBlock': 'Bật cuộn',
41
+ 'fabric.editor.codeblock': 'Đoạn mã',
42
+ 'fabric.editor.codeblock.description': 'Hiển thị mã có bôi đậm cú pháp',
35
43
  'fabric.editor.collapseNode': 'thu gọn nội dung',
36
44
  'fabric.editor.columns': 'Bố cục',
37
45
  'fabric.editor.columns.description': 'Thiết lập cấu trúc trang của bạn bằng cách sử dụng các mục',
38
46
  'fabric.editor.copiedToClipboard': 'Đã sao chép!',
39
47
  'fabric.editor.copyToClipboard': 'Sao chép',
48
+ 'fabric.editor.createComment': 'Bình luận',
49
+ 'fabric.editor.createCommentInvalid': 'Bạn chỉ có thể bình luận về văn bản và tiêu đề',
50
+ 'fabric.editor.customPanel': 'Bảng tùy chỉnh',
51
+ 'fabric.editor.customPanel.description': 'Thêm ghi chú với biểu tượng cảm xúc và nền màu',
40
52
  'fabric.editor.datasourceTitle': 'Sửa truy vấn tìm kiếm',
41
53
  'fabric.editor.date': 'Ngày',
42
54
  'fabric.editor.date.description': 'Thêm ngày bằng cách sử dụng lịch',
@@ -63,6 +75,8 @@ export default {
63
75
  '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 😄',
64
76
  'fabric.editor.emptyLink': 'Vui lòng nhập một liên kết.',
65
77
  'fabric.editor.epic': 'Quá trình',
78
+ 'fabric.editor.errorPanel': 'Ô lỗi',
79
+ 'fabric.editor.errorPanel.description': 'Chỉ ra lỗi bằng ô màu',
66
80
  'fabric.editor.expand': 'Mở rộng',
67
81
  'fabric.editor.expand.description': 'Chèn đoạn mở rộng',
68
82
  'fabric.editor.expandDefaultTitle': 'Nhấp vào đây để mở rộng...',
@@ -70,6 +84,18 @@ export default {
70
84
  'fabric.editor.expandPlaceholder': 'Đặt tiêu đề cho phần mở rộng này...',
71
85
  'fabric.editor.feedbackDialog': 'Đưa ra phản hồi',
72
86
  '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',
87
+ 'fabric.editor.heading1': 'Heading 1',
88
+ 'fabric.editor.heading1Description': 'Sử dụng kiểu chữ này cho tiêu đề chính',
89
+ 'fabric.editor.heading2': 'Heading 2',
90
+ 'fabric.editor.heading2Description': 'Sử dụng kiểu chữ này cho những phần quan trọng',
91
+ 'fabric.editor.heading3': 'Heading 3',
92
+ 'fabric.editor.heading3Description': 'Sử dụng kiểu chữ này cho những phần phụ và tiêu đề nhóm',
93
+ 'fabric.editor.heading4': 'Heading 4',
94
+ 'fabric.editor.heading4Description': 'Sử dụng kiểu chữ này cho những tiêu đề ẩn',
95
+ 'fabric.editor.heading5': 'Heading 5',
96
+ 'fabric.editor.heading5Description': 'Sử dụng kiểu chữ này để phân loại các danh mục',
97
+ 'fabric.editor.heading6': 'Heading 6',
98
+ 'fabric.editor.heading6Description': 'Sử dụng kiểu chữ này cho những tiêu đề phụ phía dưới',
73
99
  'fabric.editor.headingLink.hyperlinkIconBlogLabel': 'Blog',
74
100
  'fabric.editor.headingLink.hyperlinkIconBugLabel': 'Lỗi',
75
101
  'fabric.editor.headingLink.hyperlinkIconIssueLabel': 'Vấn đề',
@@ -80,12 +106,15 @@ export default {
80
106
  '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',
81
107
  'fabric.editor.horizontalRule': 'Trình phân chia',
82
108
  'fabric.editor.horizontalRule.description': 'Chia tách nội dung bằng một đường ngang',
83
- 'fabric.editor.hyperlink.linkAriaLabel': 'Nhãn liên kết',
109
+ 'fabric.editor.hyperlink.linkVisibleLabel': 'Dán hoặc tìm kiếm liên kết',
84
110
  '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',
85
111
  '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ả}}',
112
+ 'fabric.editor.hyperlink.textVisibleLabel': 'Văn bản hiển thị (không bắt buộc)',
86
113
  'fabric.editor.hyperlinkToolbarPlaceholder': 'Dán hoặc tìm kiếm liên kết',
87
114
  'fabric.editor.image': 'hình ảnh',
88
115
  'fabric.editor.improvement': 'Cải tiến',
116
+ 'fabric.editor.infoPanel': 'Ô thông tin',
117
+ 'fabric.editor.infoPanel.description': 'Bôi đậm thông tin bằng ô màu',
89
118
  'fabric.editor.inlineDescription': 'Hiển thị liên kết dưới dạng văn bản nội tuyến',
90
119
  'fabric.editor.inlineTitle': 'Nội tuyến',
91
120
  'fabric.editor.insertMenu': 'Chèn',
@@ -107,14 +136,19 @@ export default {
107
136
  'fabric.editor.moreFormatting': 'Thêm định dạng',
108
137
  'fabric.editor.navigate.toolbar.editor': 'Điều hướng đến thanh công cụ trình biên tập',
109
138
  'fabric.editor.navigate.toolbar.floating': 'Điều hướng đến thanh công cụ nổi',
139
+ 'fabric.editor.normal': 'Văn bản bình thường',
140
+ 'fabric.editor.notePanel': 'Ô ghi chú',
141
+ 'fabric.editor.notePanel.description': 'Thêm ghi chú bằng ô màu',
110
142
  'fabric.editor.off': '{formattingType} đang tắt',
111
143
  'fabric.editor.on': '{formattingType} đang bật',
112
144
  'fabric.editor.openLink': 'Mở liên kết trong tab mới',
113
145
  'fabric.editor.orderedList': 'Danh sách được đánh số',
114
146
  'fabric.editor.orderedList.description': 'Tạo một danh sách kiểu sắp xếp',
147
+ 'fabric.editor.other': 'Khác...',
115
148
  'fabric.editor.pageActionsLabel': 'Thao tác trang',
116
149
  'fabric.editor.placeholderText': 'Văn bản giữ chỗ',
117
150
  'fabric.editor.placeholderText.description': 'Chèn văn bản giữ chỗ vào trang',
151
+ 'fabric.editor.redo': 'Làm lại',
118
152
  'fabric.editor.remove': 'Xóa',
119
153
  'fabric.editor.removeEmoji': 'Xóa biểu tượng cảm xúc',
120
154
  'fabric.editor.saveButton': 'Lưu',
@@ -126,12 +160,15 @@ export default {
126
160
  'fabric.editor.subTask': 'Tác vụ con',
127
161
  'fabric.editor.subscript': 'Chỉ số dưới',
128
162
  'fabric.editor.subscript.off.superscript.on': 'Chỉ số dưới đang tắt, chỉ số trên đang bật',
163
+ 'fabric.editor.successPanel': 'Ô thành công',
164
+ 'fabric.editor.successPanel.description': 'Thêm mẹo bằng ô màu',
129
165
  'fabric.editor.superscript': 'Chỉ số trên',
130
166
  'fabric.editor.superscript.off.subscript.on': 'Chỉ số trên đang tắt, chỉ số dưới đang bật',
131
167
  'fabric.editor.table': 'Bảng',
132
168
  'fabric.editor.table.description': 'Chèn bảng',
133
169
  'fabric.editor.task': 'Tác vụ',
134
170
  'fabric.editor.text.formatting.off': 'Định dạng văn bản đang tắt',
171
+ 'fabric.editor.textStyles': 'Kiểu văn bản',
135
172
  'fabric.editor.time.ago': 'trước',
136
173
  'fabric.editor.time.updated': 'Đã cập nhật',
137
174
  'fabric.editor.time.viewed': 'Đã xem',
@@ -144,6 +181,7 @@ export default {
144
181
  'fabric.editor.tooltip.taskList': 'một mục thao tác',
145
182
  'fabric.editor.unableToOpenLink': 'Không thể mở liên kết này',
146
183
  'fabric.editor.underline': 'Gạch dưới',
184
+ 'fabric.editor.undo': 'Hoàn tác',
147
185
  'fabric.editor.unlink': 'Hủy liên kết',
148
186
  'fabric.editor.unorderedList': 'Danh sách dấu đầu dòng',
149
187
  'fabric.editor.unorderedList.description': 'Tạo một danh sách kiểu không sắp xếp',
@@ -155,6 +193,8 @@ export default {
155
193
  'fabric.editor.urlTitle': 'URL',
156
194
  'fabric.editor.viewMore': 'Xem thêm',
157
195
  'fabric.editor.visit': 'Mở liên kết trong cửa sổ mới',
196
+ 'fabric.editor.warningPanel': 'Ô cảnh báo',
197
+ 'fabric.editor.warningPanel.description': 'Thêm ghi chú thận trọng bằng ô màu',
158
198
  'fabric.editor.wrapLeft': 'Cuộn sang trái',
159
199
  'fabric.editor.wrapRight': 'Cuộn sang phải',
160
200
  'fabric.theme.blue': 'Xanh lam',
@@ -10,13 +10,19 @@ export default {
10
10
  'fabric.editor.action': '操作项',
11
11
  'fabric.editor.action.description': '创建和指派操作项目',
12
12
  'fabric.editor.addMediaFiles': '添加图像、视频或文件',
13
+ 'fabric.editor.alignCenter': '居中对齐',
13
14
  'fabric.editor.alignImageCenter': '居中',
14
15
  'fabric.editor.alignImageLeft': '左对齐',
15
16
  'fabric.editor.alignImageRight': '右对齐',
17
+ 'fabric.editor.alignLeft': '左对齐',
18
+ 'fabric.editor.alignRight': '右对齐',
19
+ 'fabric.editor.annotationToolbar': '标注工具栏',
16
20
  'fabric.editor.blockCardUnavailable': '内联链接位于 {node} 内部,无法更改其视图',
17
21
  'fabric.editor.blockDescription': '显示有关链接的更多信息,包括摘要和操作',
18
22
  'fabric.editor.blockTitle': '卡片',
19
23
  'fabric.editor.blockquote': '引用',
24
+ 'fabric.editor.blockquote.description': '插入引用',
25
+ 'fabric.editor.blockquote2': '引用',
20
26
  'fabric.editor.bold': '粗体',
21
27
  'fabric.editor.bug': '缺陷',
22
28
  'fabric.editor.cancelButton': '取消',
@@ -32,11 +38,17 @@ export default {
32
38
  'fabric.editor.codeBlockCopyButton.copyToClipboard': '复制为文本',
33
39
  'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': '关闭换行',
34
40
  'fabric.editor.codeBlockWrapButton.wrapCodeBlock': '开启换行',
41
+ 'fabric.editor.codeblock': '代码片段',
42
+ 'fabric.editor.codeblock.description': '显示带语法高亮的代码',
35
43
  'fabric.editor.collapseNode': '收起内容',
36
44
  'fabric.editor.columns': '布局',
37
45
  'fabric.editor.columns.description': '使用分段组织页面',
38
46
  'fabric.editor.copiedToClipboard': '已复制!',
39
47
  'fabric.editor.copyToClipboard': '复制',
48
+ 'fabric.editor.createComment': '评论',
49
+ 'fabric.editor.createCommentInvalid': '您只可评论文本和标题',
50
+ 'fabric.editor.customPanel': '自定义面板',
51
+ 'fabric.editor.customPanel.description': '使用表情和彩色背景来添加注释',
40
52
  'fabric.editor.datasourceTitle': '编辑搜索查询',
41
53
  'fabric.editor.date': '日期',
42
54
  'fabric.editor.date.description': '使用日历添加日期',
@@ -63,6 +75,8 @@ export default {
63
75
  'fabric.editor.emoji.description': '使用表情符号传达理念 🎉 和情绪 😄',
64
76
  'fabric.editor.emptyLink': '请输入链接。',
65
77
  'fabric.editor.epic': '长篇故事',
78
+ 'fabric.editor.errorPanel': '错误面板',
79
+ 'fabric.editor.errorPanel.description': '在彩色面板调出错误',
66
80
  'fabric.editor.expand': '扩展',
67
81
  'fabric.editor.expand.description': '插入扩展',
68
82
  'fabric.editor.expandDefaultTitle': '点击此处展开...',
@@ -70,6 +84,18 @@ export default {
70
84
  'fabric.editor.expandPlaceholder': '为此展开添加标题......',
71
85
  'fabric.editor.feedbackDialog': '提供反馈意见',
72
86
  'fabric.editor.feedbackDialog.description': '跟我们讲讲您对新编辑器的使用体验',
87
+ 'fabric.editor.heading1': '标题 1',
88
+ 'fabric.editor.heading1Description': '用于顶级标题',
89
+ 'fabric.editor.heading2': '标题 2',
90
+ 'fabric.editor.heading2Description': '用于主体部分',
91
+ 'fabric.editor.heading3': '标题 3',
92
+ 'fabric.editor.heading3Description': '用于分节和组标题',
93
+ 'fabric.editor.heading4': '标题 4',
94
+ 'fabric.editor.heading4Description': '用于深层标题',
95
+ 'fabric.editor.heading5': '标题 5',
96
+ 'fabric.editor.heading5Description': '用于对列表项进行分组',
97
+ 'fabric.editor.heading6': '标题 6',
98
+ 'fabric.editor.heading6Description': '用于次级标题',
73
99
  'fabric.editor.headingLink.hyperlinkIconBlogLabel': '博文',
74
100
  'fabric.editor.headingLink.hyperlinkIconBugLabel': '缺陷',
75
101
  'fabric.editor.headingLink.hyperlinkIconIssueLabel': '事务',
@@ -80,12 +106,15 @@ export default {
80
106
  'fabric.editor.help.description': '浏览所有键盘快捷键和文本标记选项',
81
107
  'fabric.editor.horizontalRule': '分隔条',
82
108
  'fabric.editor.horizontalRule.description': '使用水平线分隔内容',
83
- 'fabric.editor.hyperlink.linkAriaLabel': '链接标签',
109
+ 'fabric.editor.hyperlink.linkVisibleLabel': '粘贴或搜索链接',
84
110
  'fabric.editor.hyperlink.searchLinkAriaDescription': '在字段中输入内容时,下方会显示建议内容',
85
111
  'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {未找到结果} other {找到 {count,number} 个结果}}',
112
+ 'fabric.editor.hyperlink.textVisibleLabel': '显示文本(可选)',
86
113
  'fabric.editor.hyperlinkToolbarPlaceholder': '粘贴或搜索链接',
87
114
  'fabric.editor.image': '图片',
88
115
  'fabric.editor.improvement': '改进',
116
+ 'fabric.editor.infoPanel': '信息面板',
117
+ 'fabric.editor.infoPanel.description': '在彩色面板高亮显示信息',
89
118
  'fabric.editor.inlineDescription': '以内联文本显示链接',
90
119
  'fabric.editor.inlineTitle': '内联',
91
120
  'fabric.editor.insertMenu': '插入',
@@ -107,14 +136,19 @@ export default {
107
136
  'fabric.editor.moreFormatting': '更多格式',
108
137
  'fabric.editor.navigate.toolbar.editor': '导航到编辑器工具栏',
109
138
  'fabric.editor.navigate.toolbar.floating': '导航到浮动工具栏',
139
+ 'fabric.editor.normal': '普通文本',
140
+ 'fabric.editor.notePanel': '备注面板',
141
+ 'fabric.editor.notePanel.description': '在彩色面板添加注释',
110
142
  'fabric.editor.off': '{formattingType}已关闭',
111
143
  'fabric.editor.on': '{formattingType}已开启',
112
144
  'fabric.editor.openLink': '在新选项卡打开链接',
113
145
  'fabric.editor.orderedList': '有序列表',
114
146
  'fabric.editor.orderedList.description': '创建有序列表',
147
+ 'fabric.editor.other': '其他...',
115
148
  'fabric.editor.pageActionsLabel': '页面操作',
116
149
  'fabric.editor.placeholderText': '占位文本',
117
150
  'fabric.editor.placeholderText.description': '向页面插入一个文本占位符',
151
+ 'fabric.editor.redo': '重做',
118
152
  'fabric.editor.remove': '删除',
119
153
  'fabric.editor.removeEmoji': '删除表情',
120
154
  'fabric.editor.saveButton': '保存',
@@ -126,12 +160,15 @@ export default {
126
160
  'fabric.editor.subTask': '子任务',
127
161
  'fabric.editor.subscript': '下标',
128
162
  'fabric.editor.subscript.off.superscript.on': '禁用下标,启用上标',
163
+ 'fabric.editor.successPanel': '成功面板',
164
+ 'fabric.editor.successPanel.description': '在彩色面板添加提示',
129
165
  'fabric.editor.superscript': '上标',
130
166
  'fabric.editor.superscript.off.subscript.on': '禁用上标,启用下标',
131
167
  'fabric.editor.table': '表格',
132
168
  'fabric.editor.table.description': '插入表格',
133
169
  'fabric.editor.task': '任务',
134
170
  'fabric.editor.text.formatting.off': '文本格式已关闭',
171
+ 'fabric.editor.textStyles': '文本样式',
135
172
  'fabric.editor.time.ago': '前',
136
173
  'fabric.editor.time.updated': '上次更新时间',
137
174
  'fabric.editor.time.viewed': '上次查看时间',
@@ -144,6 +181,7 @@ export default {
144
181
  'fabric.editor.tooltip.taskList': '操作项',
145
182
  'fabric.editor.unableToOpenLink': '无法打开此链接',
146
183
  'fabric.editor.underline': '下划线',
184
+ 'fabric.editor.undo': '撤消',
147
185
  'fabric.editor.unlink': '取消链接',
148
186
  'fabric.editor.unorderedList': '无序列表',
149
187
  'fabric.editor.unorderedList.description': '创建无序列表',
@@ -155,6 +193,8 @@ export default {
155
193
  'fabric.editor.urlTitle': 'URL',
156
194
  'fabric.editor.viewMore': '查看更多',
157
195
  'fabric.editor.visit': '在新窗口中打开链接',
196
+ 'fabric.editor.warningPanel': '警告面板',
197
+ 'fabric.editor.warningPanel.description': '在彩色面板添加提醒注释',
158
198
  'fabric.editor.wrapLeft': '隐藏左边',
159
199
  'fabric.editor.wrapRight': '隐藏右边',
160
200
  'fabric.theme.blue': '蓝色',
@@ -10,13 +10,19 @@ export default {
10
10
  'fabric.editor.action': '動作項目',
11
11
  'fabric.editor.action.description': '建立並指派動作項目',
12
12
  'fabric.editor.addMediaFiles': '新增圖片、影片或檔案',
13
+ 'fabric.editor.alignCenter': '置中對齊',
13
14
  'fabric.editor.alignImageCenter': '置中對齊',
14
15
  'fabric.editor.alignImageLeft': '靠左對齊',
15
16
  'fabric.editor.alignImageRight': '靠右對齊',
17
+ 'fabric.editor.alignLeft': '靠左對齊',
18
+ 'fabric.editor.alignRight': '靠右對齊',
19
+ 'fabric.editor.annotationToolbar': '註解工具列',
16
20
  'fabric.editor.blockCardUnavailable': '內嵌連結位於 {node} 內,無法變更其檢視',
17
21
  'fabric.editor.blockDescription': '顯示有關連結的更多資訊,包括摘要和動作',
18
22
  'fabric.editor.blockTitle': '卡片',
19
23
  'fabric.editor.blockquote': '引述',
24
+ 'fabric.editor.blockquote.description': '插入引述或引文',
25
+ 'fabric.editor.blockquote2': '引述',
20
26
  'fabric.editor.bold': '粗體',
21
27
  'fabric.editor.bug': '錯誤',
22
28
  'fabric.editor.cancelButton': '取消',
@@ -32,11 +38,17 @@ export default {
32
38
  'fabric.editor.codeBlockCopyButton.copyToClipboard': '複製文字',
33
39
  'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': '關閉圍繞',
34
40
  'fabric.editor.codeBlockWrapButton.wrapCodeBlock': '開啟圍繞',
41
+ 'fabric.editor.codeblock': '程式碼片段',
42
+ 'fabric.editor.codeblock.description': '顯示程式碼並醒目提示語法',
35
43
  'fabric.editor.collapseNode': '摺疊內容',
36
44
  'fabric.editor.columns': '版面配置',
37
45
  'fabric.editor.columns.description': '使用區段建立頁面的結構',
38
46
  'fabric.editor.copiedToClipboard': '已複製!',
39
47
  'fabric.editor.copyToClipboard': '複製',
48
+ 'fabric.editor.createComment': '留言',
49
+ 'fabric.editor.createCommentInvalid': '您只能在文字和標題上留言',
50
+ 'fabric.editor.customPanel': '自訂面板',
51
+ 'fabric.editor.customPanel.description': '新增一個帶有表情符號和彩色背景的附註',
40
52
  'fabric.editor.datasourceTitle': '編輯搜尋查詢',
41
53
  'fabric.editor.date': '日期',
42
54
  'fabric.editor.date.description': '使用日曆新增日期',
@@ -63,6 +75,8 @@ export default {
63
75
  'fabric.editor.emoji.description': '使用表情符號來傳達想法 🎉 和情緒 😄',
64
76
  'fabric.editor.emptyLink': '請輸入連結。',
65
77
  'fabric.editor.epic': '大型工作',
78
+ 'fabric.editor.errorPanel': '錯誤面板',
79
+ 'fabric.editor.errorPanel.description': '以彩色面板呼叫錯誤',
66
80
  'fabric.editor.expand': '擴充',
67
81
  'fabric.editor.expand.description': '插入擴充',
68
82
  'fabric.editor.expandDefaultTitle': '按一下此處以展開...',
@@ -70,6 +84,18 @@ export default {
70
84
  'fabric.editor.expandPlaceholder': '為此展開設定標題...',
71
85
  'fabric.editor.feedbackDialog': '提供意見回饋',
72
86
  'fabric.editor.feedbackDialog.description': '請說明您對於新編輯器的使用體驗',
87
+ 'fabric.editor.heading1': '標題 1',
88
+ 'fabric.editor.heading1Description': '用於最高層級的標題',
89
+ 'fabric.editor.heading2': '標題 2',
90
+ 'fabric.editor.heading2Description': '用於主要區段',
91
+ 'fabric.editor.heading3': '標題 3',
92
+ 'fabric.editor.heading3Description': '用於子區段和群組標題',
93
+ 'fabric.editor.heading4': '標題 4',
94
+ 'fabric.editor.heading4Description': '用於多層標題',
95
+ 'fabric.editor.heading5': '標題 5',
96
+ 'fabric.editor.heading5Description': '用於分組清單項目',
97
+ 'fabric.editor.heading6': '標題 6',
98
+ 'fabric.editor.heading6Description': '用於低層級標題',
73
99
  'fabric.editor.headingLink.hyperlinkIconBlogLabel': '部落格',
74
100
  'fabric.editor.headingLink.hyperlinkIconBugLabel': '錯誤',
75
101
  'fabric.editor.headingLink.hyperlinkIconIssueLabel': '問題',
@@ -80,12 +106,15 @@ export default {
80
106
  'fabric.editor.help.description': '瀏覽所有鍵盤快速鍵和 Markdown 選項',
81
107
  'fabric.editor.horizontalRule': '分隔線',
82
108
  'fabric.editor.horizontalRule.description': '使用水平線來區隔內容',
83
- 'fabric.editor.hyperlink.linkAriaLabel': '連結標籤',
109
+ 'fabric.editor.hyperlink.linkVisibleLabel': '貼上或搜尋連結',
84
110
  'fabric.editor.hyperlink.searchLinkAriaDescription': '當您在欄位中輸入內容時,建議會顯示在下方',
85
111
  'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {沒有找到任何結果} other {找到 {count,number} 個結果}}',
112
+ 'fabric.editor.hyperlink.textVisibleLabel': '顯示文字 (選擇性)',
86
113
  'fabric.editor.hyperlinkToolbarPlaceholder': '貼上或搜尋連結',
87
114
  'fabric.editor.image': '影像',
88
115
  'fabric.editor.improvement': '改善',
116
+ 'fabric.editor.infoPanel': '資訊面板',
117
+ 'fabric.editor.infoPanel.description': '以彩色面板醒目提示資訊',
89
118
  'fabric.editor.inlineDescription': '將連結顯示為內嵌文字',
90
119
  'fabric.editor.inlineTitle': '內嵌',
91
120
  'fabric.editor.insertMenu': '插入',
@@ -107,14 +136,19 @@ export default {
107
136
  'fabric.editor.moreFormatting': '更多格式設定',
108
137
  'fabric.editor.navigate.toolbar.editor': '導覽至編輯器工具列',
109
138
  'fabric.editor.navigate.toolbar.floating': '導覽至浮動工具列',
139
+ 'fabric.editor.normal': '一般文字',
140
+ 'fabric.editor.notePanel': '附註面板',
141
+ 'fabric.editor.notePanel.description': '以彩色面板新增附註',
110
142
  'fabric.editor.off': '{formattingType} 關閉',
111
143
  'fabric.editor.on': '{formattingType} 開啟',
112
144
  'fabric.editor.openLink': '在新的索引標籤中開啟連結',
113
145
  'fabric.editor.orderedList': '編號清單',
114
146
  'fabric.editor.orderedList.description': '建立已排序的清單',
147
+ 'fabric.editor.other': '其他...',
115
148
  'fabric.editor.pageActionsLabel': '頁面動作',
116
149
  'fabric.editor.placeholderText': '預留位置文字',
117
150
  'fabric.editor.placeholderText.description': '在頁面中插入文字預留位置',
151
+ 'fabric.editor.redo': '重做',
118
152
  'fabric.editor.remove': '移除',
119
153
  'fabric.editor.removeEmoji': '移除表情符號',
120
154
  'fabric.editor.saveButton': '儲存',
@@ -126,12 +160,15 @@ export default {
126
160
  'fabric.editor.subTask': '子任務',
127
161
  'fabric.editor.subscript': '下標',
128
162
  'fabric.editor.subscript.off.superscript.on': '下標關閉,上標開啟',
163
+ 'fabric.editor.successPanel': '成功面板',
164
+ 'fabric.editor.successPanel.description': '以彩色面板新增提示',
129
165
  'fabric.editor.superscript': '上標',
130
166
  'fabric.editor.superscript.off.subscript.on': '上標關閉,下標開啟',
131
167
  'fabric.editor.table': '表格',
132
168
  'fabric.editor.table.description': '插入表格',
133
169
  'fabric.editor.task': '任務',
134
170
  'fabric.editor.text.formatting.off': '文字格式設定關閉',
171
+ 'fabric.editor.textStyles': '文字樣式',
135
172
  'fabric.editor.time.ago': '前',
136
173
  'fabric.editor.time.updated': '已更新',
137
174
  'fabric.editor.time.viewed': '已檢視',
@@ -144,6 +181,7 @@ export default {
144
181
  'fabric.editor.tooltip.taskList': '動作項目',
145
182
  'fabric.editor.unableToOpenLink': '無法開啟此連結',
146
183
  'fabric.editor.underline': '底線',
184
+ 'fabric.editor.undo': '復原',
147
185
  'fabric.editor.unlink': '取消連結',
148
186
  'fabric.editor.unorderedList': '項目符號清單',
149
187
  'fabric.editor.unorderedList.description': '建立未排序的清單',
@@ -155,6 +193,8 @@ export default {
155
193
  'fabric.editor.urlTitle': 'URL',
156
194
  'fabric.editor.viewMore': '檢視更多',
157
195
  'fabric.editor.visit': '在新視窗中開啟連結',
196
+ 'fabric.editor.warningPanel': '警告面板',
197
+ 'fabric.editor.warningPanel.description': '以彩色面板新增注意附註',
158
198
  'fabric.editor.wrapLeft': '靠左圍繞',
159
199
  'fabric.editor.wrapRight': '靠右圍繞',
160
200
  'fabric.theme.blue': '藍色',
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "76.12.0";
3
+ const packageVersion = "76.12.2";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -0,0 +1 @@
1
+ export {};
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
9
9
  import { borderRadius } from '@atlaskit/theme/constants';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "76.12.0";
12
+ const packageVersion = "76.12.2";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -0,0 +1,140 @@
1
+ /*
2
+ Calculates the position of the floating toolbar relative to the selection.
3
+ This is a re-implementation which closely matches the behaviour on Confluence renderer.
4
+ The main difference is the popup is always above the selection.
5
+ Things to consider:
6
+ - popup is always above the selection
7
+ - coordinates of head X and getBoundingClientRect() are absolute in client viewport (not including scroll offsets)
8
+ - popup may appear in '.fabric-editor-popup-scroll-parent' (or body)
9
+ - we use the toolbarRect to center align toolbar
10
+ - use wrapperBounds to clamp values
11
+ - editorView.dom bounds differ to wrapperBounds, convert at the end
12
+ */
13
+ export const calculateToolbarPositionAboveSelection = toolbarTitle => (editorView, nextPos) => {
14
+ const toolbar = document.querySelector(`div[aria-label="${toolbarTitle}"]`);
15
+ if (!toolbar) {
16
+ return nextPos;
17
+ }
18
+ // scroll wrapper for full page, fall back to document body
19
+ // TODO: look into using getScrollGutterOptions()
20
+ const scrollWrapper = editorView.dom.closest('.fabric-editor-popup-scroll-parent') || document.body;
21
+ const wrapperBounds = scrollWrapper.getBoundingClientRect();
22
+ const selection = window && window.getSelection();
23
+ const range = selection && !selection.isCollapsed && selection.getRangeAt(0);
24
+ if (!range) {
25
+ return nextPos;
26
+ }
27
+ const toolbarRect = toolbar.getBoundingClientRect();
28
+ const {
29
+ head,
30
+ anchor
31
+ } = editorView.state.selection;
32
+ const topCoords = editorView.coordsAtPos(Math.min(head, anchor));
33
+ const bottomCoords = editorView.coordsAtPos(Math.max(head, anchor) - Math.min(range.endOffset, 1));
34
+ let top = (topCoords.top || 0) - toolbarRect.height * 1.5;
35
+ let left = 0;
36
+ // If not on the same line
37
+ if (topCoords.top !== bottomCoords.top) {
38
+ // selecting downwards
39
+ if (head > anchor) {
40
+ left = Math.max(topCoords.right, bottomCoords.right);
41
+ } else {
42
+ left = Math.min(topCoords.left, bottomCoords.left);
43
+ }
44
+ /*
45
+ short selection above a long paragraph
46
+ eg. short {<}heading
47
+ The purpose of this text is to show the selection range{>}.
48
+ The horizontal positioning should center around "heading",
49
+ not where it ends at "range".
50
+ Note: if it was "head<b>ing</b>" then it would only center
51
+ around "head". Undesireable but matches the current renderer.
52
+ */
53
+ const cliffPosition = range.getClientRects()[0];
54
+ if (cliffPosition.right < left) {
55
+ left = cliffPosition.left + cliffPosition.width / 2;
56
+ }
57
+ } else {
58
+ // Otherwise center on the single line selection
59
+ left = topCoords.left + (bottomCoords.right - topCoords.left) / 2;
60
+ }
61
+ left -= toolbarRect.width / 2;
62
+ // Place toolbar below selection if not sufficient space above
63
+ if (top < wrapperBounds.top) {
64
+ ({
65
+ top,
66
+ left
67
+ } = getCoordsBelowSelection(bottomCoords, toolbarRect));
68
+ }
69
+ // remap positions from browser document to wrapperBounds
70
+ return {
71
+ top: top - wrapperBounds.top + scrollWrapper.scrollTop,
72
+ left: Math.max(0, left - wrapperBounds.left)
73
+ };
74
+ };
75
+ /*
76
+ Calculates the position of the floating toolbar relative to the selection.
77
+ This is a re-implementation which closely matches the behaviour on Confluence renderer.
78
+ The main difference is the popup is always above the selection.
79
+ Things to consider:
80
+ - stick as close to the head X release coordinates as possible
81
+ - coordinates of head X and getBoundingClientRect() are absolute in client viewport (not including scroll offsets)
82
+ - popup may appear in '.fabric-editor-popup-scroll-parent' (or body)
83
+ - we use the toolbarRect to center align toolbar
84
+ - use wrapperBounds to clamp values
85
+ - editorView.dom bounds differ to wrapperBounds, convert at the end
86
+ */
87
+ export const calculateToolbarPositionTrackHead = toolbarTitle => (editorView, nextPos) => {
88
+ const toolbar = document.querySelector(`div[aria-label="${toolbarTitle}"]`);
89
+ if (!toolbar) {
90
+ return nextPos;
91
+ }
92
+ // scroll wrapper for full page, fall back to document body
93
+ // TODO: look into using getScrollGutterOptions()
94
+ const scrollWrapper = editorView.dom.closest('.fabric-editor-popup-scroll-parent') || document.body;
95
+ const wrapperBounds = scrollWrapper.getBoundingClientRect();
96
+ const selection = window && window.getSelection();
97
+ const range = selection && !selection.isCollapsed && selection.getRangeAt(0);
98
+ if (!range) {
99
+ return nextPos;
100
+ }
101
+ const toolbarRect = toolbar.getBoundingClientRect();
102
+ const {
103
+ head,
104
+ anchor
105
+ } = editorView.state.selection;
106
+ let topCoords = editorView.coordsAtPos(Math.min(head, anchor));
107
+ let bottomCoords = editorView.coordsAtPos(Math.max(head, anchor) - Math.min(range.endOffset, 1));
108
+ let top;
109
+ // If not the same line, display toolbar below.
110
+ if (head > anchor && topCoords.top !== bottomCoords.top) {
111
+ // We are taking the previous pos to the maxium, so avoid end of line positions
112
+ // returning the next line's rect.
113
+ top = (bottomCoords.top || 0) + toolbarRect.height / 1.15;
114
+ } else {
115
+ top = (topCoords.top || 0) - toolbarRect.height * 1.5;
116
+ }
117
+ let left = (head > anchor ? bottomCoords.right : topCoords.left) - toolbarRect.width / 2;
118
+ // Place toolbar below selection if not sufficient space above
119
+ if (top < wrapperBounds.top) {
120
+ ({
121
+ top,
122
+ left
123
+ } = getCoordsBelowSelection(bottomCoords, toolbarRect));
124
+ }
125
+ // remap positions from browser document to wrapperBounds
126
+ return {
127
+ top: top - wrapperBounds.top + scrollWrapper.scrollTop,
128
+ left: Math.max(0, left - wrapperBounds.left)
129
+ };
130
+ };
131
+
132
+ /**
133
+ * Returns the coordintes at the bottom the selection.
134
+ */
135
+ const getCoordsBelowSelection = (bottomCoords, toolbarRect) => {
136
+ return {
137
+ top: (bottomCoords.top || 0) + toolbarRect.height / 1.15,
138
+ left: bottomCoords.right - toolbarRect.width / 2
139
+ };
140
+ };
@@ -214,4 +214,5 @@ export function isInEmptyLine(state) {
214
214
  export { dedupe } from './dedupe';
215
215
  export { createWrapSelectionTransaction } from './create-wrap-selection-transaction';
216
216
  export { wrapSelectionIn } from './wrap-selection-in';
217
- export { toJSON, nodeToJSON } from './nodes';
217
+ export { toJSON, nodeToJSON } from './nodes';
218
+ export { calculateToolbarPositionAboveSelection, calculateToolbarPositionTrackHead } from './calculate-toolbar-position';