@atlaskit/editor-common 77.0.6 → 77.1.1
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.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/action-api.js +131 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +62 -150
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +19 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/utils.js +26 -0
- package/dist/cjs/i18n/cs.js +0 -3
- package/dist/cjs/i18n/da.js +24 -4
- package/dist/cjs/i18n/de.js +0 -3
- package/dist/cjs/i18n/en.js +23 -5
- package/dist/cjs/i18n/en_GB.js +24 -6
- package/dist/cjs/i18n/en_ZZ.js +24 -6
- package/dist/cjs/i18n/es.js +24 -4
- package/dist/cjs/i18n/fi.js +23 -4
- package/dist/cjs/i18n/fr.js +24 -4
- package/dist/cjs/i18n/hu.js +24 -4
- package/dist/cjs/i18n/it.js +24 -4
- package/dist/cjs/i18n/ja.js +25 -2
- package/dist/cjs/i18n/ko.js +24 -4
- package/dist/cjs/i18n/nb.js +24 -2
- package/dist/cjs/i18n/nl.js +24 -4
- package/dist/cjs/i18n/pl.js +23 -4
- package/dist/cjs/i18n/pt_BR.js +22 -4
- package/dist/cjs/i18n/ru.js +22 -4
- package/dist/cjs/i18n/sv.js +24 -4
- package/dist/cjs/i18n/th.js +24 -4
- package/dist/cjs/i18n/tr.js +22 -4
- package/dist/cjs/i18n/uk.js +25 -5
- package/dist/cjs/i18n/vi.js +24 -4
- package/dist/cjs/i18n/zh.js +23 -5
- package/dist/cjs/i18n/zh_TW.js +24 -4
- package/dist/cjs/keymaps/index.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/action-api.js +134 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +55 -161
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +81 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/utils.js +20 -0
- package/dist/es2019/i18n/cs.js +0 -3
- package/dist/es2019/i18n/da.js +24 -4
- package/dist/es2019/i18n/de.js +0 -3
- package/dist/es2019/i18n/en.js +23 -5
- package/dist/es2019/i18n/en_GB.js +24 -6
- package/dist/es2019/i18n/en_ZZ.js +24 -6
- package/dist/es2019/i18n/es.js +24 -4
- package/dist/es2019/i18n/fi.js +23 -4
- package/dist/es2019/i18n/fr.js +24 -4
- package/dist/es2019/i18n/hu.js +24 -4
- package/dist/es2019/i18n/it.js +24 -4
- package/dist/es2019/i18n/ja.js +25 -2
- package/dist/es2019/i18n/ko.js +24 -4
- package/dist/es2019/i18n/nb.js +24 -2
- package/dist/es2019/i18n/nl.js +24 -4
- package/dist/es2019/i18n/pl.js +23 -4
- package/dist/es2019/i18n/pt_BR.js +22 -4
- package/dist/es2019/i18n/ru.js +22 -4
- package/dist/es2019/i18n/sv.js +24 -4
- package/dist/es2019/i18n/th.js +24 -4
- package/dist/es2019/i18n/tr.js +22 -4
- package/dist/es2019/i18n/uk.js +25 -5
- package/dist/es2019/i18n/vi.js +24 -4
- package/dist/es2019/i18n/zh.js +23 -5
- package/dist/es2019/i18n/zh_TW.js +24 -4
- package/dist/es2019/keymaps/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/action-api.js +124 -0
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +61 -150
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +13 -0
- package/dist/esm/extensibility/MultiBodiedExtension/utils.js +20 -0
- package/dist/esm/i18n/cs.js +0 -3
- package/dist/esm/i18n/da.js +24 -4
- package/dist/esm/i18n/de.js +0 -3
- package/dist/esm/i18n/en.js +23 -5
- package/dist/esm/i18n/en_GB.js +24 -6
- package/dist/esm/i18n/en_ZZ.js +24 -6
- package/dist/esm/i18n/es.js +24 -4
- package/dist/esm/i18n/fi.js +23 -4
- package/dist/esm/i18n/fr.js +24 -4
- package/dist/esm/i18n/hu.js +24 -4
- package/dist/esm/i18n/it.js +24 -4
- package/dist/esm/i18n/ja.js +25 -2
- package/dist/esm/i18n/ko.js +24 -4
- package/dist/esm/i18n/nb.js +24 -2
- package/dist/esm/i18n/nl.js +24 -4
- package/dist/esm/i18n/pl.js +23 -4
- package/dist/esm/i18n/pt_BR.js +22 -4
- package/dist/esm/i18n/ru.js +22 -4
- package/dist/esm/i18n/sv.js +24 -4
- package/dist/esm/i18n/th.js +24 -4
- package/dist/esm/i18n/tr.js +22 -4
- package/dist/esm/i18n/uk.js +25 -5
- package/dist/esm/i18n/vi.js +24 -4
- package/dist/esm/i18n/zh.js +23 -5
- package/dist/esm/i18n/zh_TW.js +24 -4
- package/dist/esm/keymaps/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/card/cardOptions.d.ts +7 -0
- package/dist/types/extensibility/MultiBodiedExtension/action-api.d.ts +13 -0
- package/dist/types/extensibility/MultiBodiedExtension/styles.d.ts +4 -0
- package/dist/types/extensibility/MultiBodiedExtension/utils.d.ts +6 -0
- package/dist/types/i18n/cs.d.ts +0 -3
- package/dist/types/i18n/da.d.ts +23 -3
- package/dist/types/i18n/de.d.ts +0 -3
- package/dist/types/i18n/en.d.ts +20 -2
- package/dist/types/i18n/en_GB.d.ts +20 -2
- package/dist/types/i18n/en_ZZ.d.ts +20 -2
- package/dist/types/i18n/es.d.ts +23 -3
- package/dist/types/i18n/fi.d.ts +22 -3
- package/dist/types/i18n/fr.d.ts +23 -3
- package/dist/types/i18n/hu.d.ts +23 -3
- package/dist/types/i18n/it.d.ts +23 -3
- package/dist/types/i18n/ja.d.ts +24 -1
- package/dist/types/i18n/ko.d.ts +23 -3
- package/dist/types/i18n/nb.d.ts +23 -1
- package/dist/types/i18n/nl.d.ts +23 -3
- package/dist/types/i18n/pl.d.ts +22 -3
- package/dist/types/i18n/pt_BR.d.ts +21 -3
- package/dist/types/i18n/ru.d.ts +21 -3
- package/dist/types/i18n/sv.d.ts +23 -3
- package/dist/types/i18n/th.d.ts +23 -3
- package/dist/types/i18n/tr.d.ts +21 -3
- package/dist/types/i18n/uk.d.ts +23 -3
- package/dist/types/i18n/vi.d.ts +23 -3
- package/dist/types/i18n/zh.d.ts +21 -3
- package/dist/types/i18n/zh_TW.d.ts +23 -3
- package/dist/types/types/feature-flags.d.ts +8 -0
- package/dist/types/types/floating-toolbar.d.ts +1 -0
- package/dist/types/types/next-editor-plugin.d.ts +1 -4
- package/dist/types-ts4.5/card/cardOptions.d.ts +7 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/action-api.d.ts +13 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/styles.d.ts +4 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/utils.d.ts +6 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -3
- package/dist/types-ts4.5/i18n/da.d.ts +23 -3
- package/dist/types-ts4.5/i18n/de.d.ts +0 -3
- package/dist/types-ts4.5/i18n/en.d.ts +20 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +20 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +20 -2
- package/dist/types-ts4.5/i18n/es.d.ts +23 -3
- package/dist/types-ts4.5/i18n/fi.d.ts +22 -3
- package/dist/types-ts4.5/i18n/fr.d.ts +23 -3
- package/dist/types-ts4.5/i18n/hu.d.ts +23 -3
- package/dist/types-ts4.5/i18n/it.d.ts +23 -3
- package/dist/types-ts4.5/i18n/ja.d.ts +24 -1
- package/dist/types-ts4.5/i18n/ko.d.ts +23 -3
- package/dist/types-ts4.5/i18n/nb.d.ts +23 -1
- package/dist/types-ts4.5/i18n/nl.d.ts +23 -3
- package/dist/types-ts4.5/i18n/pl.d.ts +22 -3
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +21 -3
- package/dist/types-ts4.5/i18n/ru.d.ts +21 -3
- package/dist/types-ts4.5/i18n/sv.d.ts +23 -3
- package/dist/types-ts4.5/i18n/th.d.ts +23 -3
- package/dist/types-ts4.5/i18n/tr.d.ts +21 -3
- package/dist/types-ts4.5/i18n/uk.d.ts +23 -3
- package/dist/types-ts4.5/i18n/vi.d.ts +23 -3
- package/dist/types-ts4.5/i18n/zh.d.ts +21 -3
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +23 -3
- package/dist/types-ts4.5/types/feature-flags.d.ts +8 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -0
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +1 -4
- package/package.json +9 -9
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
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
|
-
'fabric.editor.
|
|
12
|
+
'fabric.editor.addColumnLeft': 'Thêm cột bên trái',
|
|
13
|
+
'fabric.editor.addColumnRight': 'Thêm cột bên phải',
|
|
13
14
|
'fabric.editor.addMediaFiles': 'Thêm ảnh, video hoặc tệp',
|
|
14
|
-
'fabric.editor.
|
|
15
|
+
'fabric.editor.addRowAbove': 'Thêm hàng bên trên',
|
|
16
|
+
'fabric.editor.addRowBelow': 'Thêm hàng bên dưới',
|
|
15
17
|
'fabric.editor.alignCenter': 'Căn giữa',
|
|
16
18
|
'fabric.editor.alignImageCenter': 'Căn giữa',
|
|
17
19
|
'fabric.editor.alignImageLeft': 'Căn trái',
|
|
@@ -49,6 +51,7 @@ export default {
|
|
|
49
51
|
'fabric.editor.codeblock.description': 'Hiển thị mã có bôi đậm cú pháp',
|
|
50
52
|
'fabric.editor.collapseNode': 'thu gọn nội dung',
|
|
51
53
|
'fabric.editor.collapseTable': 'Thu gọn bảng',
|
|
54
|
+
'fabric.editor.columnDragHandle': 'Tùy chọn cột',
|
|
52
55
|
'fabric.editor.columns': 'Bố cục',
|
|
53
56
|
'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',
|
|
54
57
|
'fabric.editor.copiedToClipboard': 'Đã sao chép!',
|
|
@@ -86,6 +89,11 @@ export default {
|
|
|
86
89
|
'fabric.editor.elementbrowser.search.empty-state.heading': 'Không có nội dung nào phù hợp với yêu cầu tìm kiếm của bạn',
|
|
87
90
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': 'Hãy thử tìm theo một từ khác hoặc khám phá các ứng dụng mới dành cho sản phẩm của Atlassian.',
|
|
88
91
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': 'Khám phá Atlassian Marketplace',
|
|
92
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': 'Không có nội dung nào phù hợp với yêu cầu tìm kiếm của bạn',
|
|
93
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': 'đề xuất có sẵn cho văn bản đã nhập.',
|
|
94
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': 'đề xuất có sẵn cho văn bản đã nhập.',
|
|
95
|
+
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Nhấn Enter',
|
|
96
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': 'Tìm kiếm',
|
|
89
97
|
'fabric.editor.elementbrowser.sidebar.heading': 'Duyệt',
|
|
90
98
|
'fabric.editor.embedTitle': 'Đã nhúng',
|
|
91
99
|
'fabric.editor.emoji': 'Biểu tượng cảm xúc',
|
|
@@ -141,6 +149,7 @@ export default {
|
|
|
141
149
|
'fabric.editor.infoPanel': 'Ô thông tin',
|
|
142
150
|
'fabric.editor.infoPanel.description': 'Bôi đậm thông tin bằng ô màu',
|
|
143
151
|
'fabric.editor.inlineDescription': 'Hiển thị liên kết dưới dạng văn bản nội tuyến',
|
|
152
|
+
'fabric.editor.inlineOverlay': 'Đặt cấu hình',
|
|
144
153
|
'fabric.editor.inlineTitle': 'Nội tuyến',
|
|
145
154
|
'fabric.editor.insertColumn': 'Chèn cột vào bên phải',
|
|
146
155
|
'fabric.editor.insertColumnDrag': 'Chèn cột',
|
|
@@ -161,12 +170,15 @@ export default {
|
|
|
161
170
|
'fabric.editor.mediaAddLink': 'Thêm liên kết',
|
|
162
171
|
'fabric.editor.mediaFiles': 'Ảnh, video hoặc tệp',
|
|
163
172
|
'fabric.editor.mediaFiles.description': 'Thêm hình ảnh và các tập tin khác vào trang của bạn',
|
|
164
|
-
'fabric.editor.media_change_mediainline': 'Nội tuyến',
|
|
165
173
|
'fabric.editor.media_change_mediasingle': 'Kích thước gốc',
|
|
166
174
|
'fabric.editor.mention': 'Đề cập',
|
|
167
175
|
'fabric.editor.mention.description': 'Đề cập đến ai đó để gửi thông báo cho họ',
|
|
168
176
|
'fabric.editor.mergeCells': 'Hợp nhất ô',
|
|
169
177
|
'fabric.editor.moreFormatting': 'Thêm định dạng',
|
|
178
|
+
'fabric.editor.moveColumnLeft': '{0, plural, other {Di chuyển cột sang trái}}',
|
|
179
|
+
'fabric.editor.moveColumnRight': '{0, plural, other {Di chuyển cột sang phải}}',
|
|
180
|
+
'fabric.editor.moveDownDown': '{0, plural, other {Di chuyển hàng xuống dưới}}',
|
|
181
|
+
'fabric.editor.moveRowUp': '{0, plural, other {Di chuyển hàng lên trên}}',
|
|
170
182
|
'fabric.editor.navigate.toolbar.editor': 'Điều hướng đến thanh công cụ trình biên tập',
|
|
171
183
|
'fabric.editor.navigate.toolbar.floating': 'Điều hướng đến thanh công cụ nổi',
|
|
172
184
|
'fabric.editor.normal': 'Văn bản bình thường',
|
|
@@ -192,11 +204,14 @@ export default {
|
|
|
192
204
|
'fabric.editor.removeRows': '{0, plural, other {Xóa hàng}}',
|
|
193
205
|
'fabric.editor.rightSidebar': 'Thanh bên phải',
|
|
194
206
|
'fabric.editor.rowControl': 'Làm nổi bật hàng',
|
|
207
|
+
'fabric.editor.rowDragHandle': 'Tùy chọn hàng',
|
|
195
208
|
'fabric.editor.saveButton': 'Lưu',
|
|
196
209
|
'fabric.editor.settingsLinks': 'Vào phần Tùy chọn liên kết',
|
|
197
210
|
'fabric.editor.single': 'Cột đơn',
|
|
198
211
|
'fabric.editor.sortColumnASC': 'Sắp xếp cột A → Z',
|
|
199
212
|
'fabric.editor.sortColumnDESC': 'Sắp xếp cột Z → A',
|
|
213
|
+
'fabric.editor.sortColumnDecreasing': 'Sắp xếp theo thứ tự giảm dần',
|
|
214
|
+
'fabric.editor.sortColumnIncreasing': 'Sắp xếp theo thứ tự tăng dần',
|
|
200
215
|
'fabric.editor.splitCell': 'Tách ô',
|
|
201
216
|
'fabric.editor.status': 'Trạng thái',
|
|
202
217
|
'fabric.editor.status.description': 'Thêm một nhãn trạng thái tùy chỉnh',
|
|
@@ -215,6 +230,10 @@ export default {
|
|
|
215
230
|
'fabric.editor.tableOptions': 'Tùy chọn bảng',
|
|
216
231
|
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, other {Chiều rộng bảng đã giảm xuống {newWidth,number} pixel.}}',
|
|
217
232
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, other {Chiều rộng bảng đã tăng lên {newWidth,number} pixel.}}',
|
|
233
|
+
'fabric.editor.tableSelector': 'Kích thước bảng',
|
|
234
|
+
'fabric.editor.tableSelector.description': 'Thêm bảng bằng cách sử dụng cửa sổ bật lên để chọn kích thước tùy chỉnh',
|
|
235
|
+
'fabric.editor.tableSizeSelectorButton': 'Tạo bảng theo kích thước',
|
|
236
|
+
'fabric.editor.tableSizeSelectorPopup': 'Bộ chọn kích thước bảng',
|
|
218
237
|
'fabric.editor.tables.adjustColumn': 'Điều chỉnh cột',
|
|
219
238
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Việc xóa {nodeName} sẽ ngắt mọi nội dung được kết nối.',
|
|
220
239
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Xóa',
|
|
@@ -305,5 +324,6 @@ export default {
|
|
|
305
324
|
'fabric.theme.subtle-yellow': 'Vàng phớt',
|
|
306
325
|
'fabric.theme.teal': 'Xanh mòng két',
|
|
307
326
|
'fabric.theme.white': 'Trắng',
|
|
308
|
-
'fabric.theme.yellow': 'Vàng'
|
|
327
|
+
'fabric.theme.yellow': 'Vàng',
|
|
328
|
+
'fabrid.editor.rowNumbers': 'Số lượng hàng'
|
|
309
329
|
};
|
package/dist/es2019/i18n/zh.js
CHANGED
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': '操作项',
|
|
11
11
|
'fabric.editor.action.description': '创建和指派操作项目',
|
|
12
|
-
'fabric.editor.
|
|
12
|
+
'fabric.editor.addColumnLeft': '在左侧添加列',
|
|
13
|
+
'fabric.editor.addColumnRight': '在右侧添加列',
|
|
13
14
|
'fabric.editor.addMediaFiles': '添加图像、视频或文件',
|
|
14
|
-
'fabric.editor.
|
|
15
|
+
'fabric.editor.addRowAbove': '在上方添加行',
|
|
16
|
+
'fabric.editor.addRowBelow': '在下方添加行',
|
|
15
17
|
'fabric.editor.alignCenter': '居中对齐',
|
|
16
18
|
'fabric.editor.alignImageCenter': '居中',
|
|
17
19
|
'fabric.editor.alignImageLeft': '左对齐',
|
|
@@ -49,6 +51,7 @@ export default {
|
|
|
49
51
|
'fabric.editor.codeblock.description': '显示带语法高亮的代码',
|
|
50
52
|
'fabric.editor.collapseNode': '收起内容',
|
|
51
53
|
'fabric.editor.collapseTable': '收起表格',
|
|
54
|
+
'fabric.editor.columnDragHandle': '列选项',
|
|
52
55
|
'fabric.editor.columns': '布局',
|
|
53
56
|
'fabric.editor.columns.description': '使用分段组织页面',
|
|
54
57
|
'fabric.editor.copiedToClipboard': '已复制!',
|
|
@@ -86,6 +89,9 @@ export default {
|
|
|
86
89
|
'fabric.editor.elementbrowser.search.empty-state.heading': '未找到与您的搜索条件相匹配的内容',
|
|
87
90
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': '请尝试用其他术语搜索或寻找适用于 Atlassian 产品的新应用。',
|
|
88
91
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': '浏览 Atlassian Marketplace',
|
|
92
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': '未找到与您的搜索条件相匹配的内容',
|
|
93
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': '条针对已输入文本的建议已生成。',
|
|
94
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': '搜索',
|
|
89
95
|
'fabric.editor.elementbrowser.sidebar.heading': '浏览',
|
|
90
96
|
'fabric.editor.embedTitle': '嵌入',
|
|
91
97
|
'fabric.editor.emoji': '表情符号',
|
|
@@ -141,6 +147,7 @@ export default {
|
|
|
141
147
|
'fabric.editor.infoPanel': '信息面板',
|
|
142
148
|
'fabric.editor.infoPanel.description': '在彩色面板高亮显示信息',
|
|
143
149
|
'fabric.editor.inlineDescription': '以内联文本显示链接',
|
|
150
|
+
'fabric.editor.inlineOverlay': '配置',
|
|
144
151
|
'fabric.editor.inlineTitle': '内联',
|
|
145
152
|
'fabric.editor.insertColumn': '在右侧插入列',
|
|
146
153
|
'fabric.editor.insertColumnDrag': '插入列',
|
|
@@ -161,12 +168,15 @@ export default {
|
|
|
161
168
|
'fabric.editor.mediaAddLink': '添加链接',
|
|
162
169
|
'fabric.editor.mediaFiles': '图像、视频或文件',
|
|
163
170
|
'fabric.editor.mediaFiles.description': '向页面添加图像和其他文件',
|
|
164
|
-
'fabric.editor.
|
|
165
|
-
'fabric.editor.media_change_mediasingle': '原始尺寸',
|
|
171
|
+
'fabric.editor.media_change_mediasingle': '原始大小',
|
|
166
172
|
'fabric.editor.mention': '提到',
|
|
167
173
|
'fabric.editor.mention.description': '提及某人以发送通知',
|
|
168
174
|
'fabric.editor.mergeCells': '合并单元格',
|
|
169
175
|
'fabric.editor.moreFormatting': '更多格式',
|
|
176
|
+
'fabric.editor.moveColumnLeft': '{0, plural, other {将列左移}}',
|
|
177
|
+
'fabric.editor.moveColumnRight': '{0, plural, other {将列右移}}',
|
|
178
|
+
'fabric.editor.moveDownDown': '{0, plural, other {将行下移}}',
|
|
179
|
+
'fabric.editor.moveRowUp': '{0, plural, other {将行上移}}',
|
|
170
180
|
'fabric.editor.navigate.toolbar.editor': '导航到编辑器工具栏',
|
|
171
181
|
'fabric.editor.navigate.toolbar.floating': '导航到浮动工具栏',
|
|
172
182
|
'fabric.editor.normal': '普通文本',
|
|
@@ -192,11 +202,14 @@ export default {
|
|
|
192
202
|
'fabric.editor.removeRows': '{0, plural, other {删除行}}',
|
|
193
203
|
'fabric.editor.rightSidebar': '右侧栏',
|
|
194
204
|
'fabric.editor.rowControl': '突出显示行',
|
|
205
|
+
'fabric.editor.rowDragHandle': '行选项',
|
|
195
206
|
'fabric.editor.saveButton': '保存',
|
|
196
207
|
'fabric.editor.settingsLinks': '转到“链接首选项”',
|
|
197
208
|
'fabric.editor.single': '单列',
|
|
198
209
|
'fabric.editor.sortColumnASC': '对列 A → Z 进行排序',
|
|
199
210
|
'fabric.editor.sortColumnDESC': '对列 Z → A 进行排序',
|
|
211
|
+
'fabric.editor.sortColumnDecreasing': '按降序排序',
|
|
212
|
+
'fabric.editor.sortColumnIncreasing': '按升序排序',
|
|
200
213
|
'fabric.editor.splitCell': '拆分单元格',
|
|
201
214
|
'fabric.editor.status': '状态',
|
|
202
215
|
'fabric.editor.status.description': '添加自定义状态标签',
|
|
@@ -215,6 +228,10 @@ export default {
|
|
|
215
228
|
'fabric.editor.tableOptions': '表格选项',
|
|
216
229
|
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, other {表格宽度已减少到 {newWidth,number} 像素。}}',
|
|
217
230
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, other {表格宽度已增加到 {newWidth,number} 像素。}}',
|
|
231
|
+
'fabric.editor.tableSelector': '表格大小',
|
|
232
|
+
'fabric.editor.tableSelector.description': '使用弹出窗口添加表格以选择自定义大小',
|
|
233
|
+
'fabric.editor.tableSizeSelectorButton': '创建特定大小的表格',
|
|
234
|
+
'fabric.editor.tableSizeSelectorPopup': '表格大小选择器',
|
|
218
235
|
'fabric.editor.tables.adjustColumn': '调整列',
|
|
219
236
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': '删除 {nodeName} 将断开与其连接的所有内容。',
|
|
220
237
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': '删除',
|
|
@@ -305,5 +322,6 @@ export default {
|
|
|
305
322
|
'fabric.theme.subtle-yellow': '浅黄',
|
|
306
323
|
'fabric.theme.teal': '蓝绿',
|
|
307
324
|
'fabric.theme.white': '白',
|
|
308
|
-
'fabric.theme.yellow': '黄'
|
|
325
|
+
'fabric.theme.yellow': '黄',
|
|
326
|
+
'fabrid.editor.rowNumbers': '行号'
|
|
309
327
|
};
|
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
export default {
|
|
10
10
|
'fabric.editor.action': '動作項目',
|
|
11
11
|
'fabric.editor.action.description': '建立並指派動作項目',
|
|
12
|
-
'fabric.editor.
|
|
12
|
+
'fabric.editor.addColumnLeft': '新增左側欄',
|
|
13
|
+
'fabric.editor.addColumnRight': '新增右欄',
|
|
13
14
|
'fabric.editor.addMediaFiles': '新增圖片、影片或檔案',
|
|
14
|
-
'fabric.editor.
|
|
15
|
+
'fabric.editor.addRowAbove': '在上方新增列',
|
|
16
|
+
'fabric.editor.addRowBelow': '在下方新增列',
|
|
15
17
|
'fabric.editor.alignCenter': '置中對齊',
|
|
16
18
|
'fabric.editor.alignImageCenter': '置中對齊',
|
|
17
19
|
'fabric.editor.alignImageLeft': '靠左對齊',
|
|
@@ -49,6 +51,7 @@ export default {
|
|
|
49
51
|
'fabric.editor.codeblock.description': '顯示程式碼並醒目提示語法',
|
|
50
52
|
'fabric.editor.collapseNode': '摺疊內容',
|
|
51
53
|
'fabric.editor.collapseTable': '摺疊表格',
|
|
54
|
+
'fabric.editor.columnDragHandle': '欄選項',
|
|
52
55
|
'fabric.editor.columns': '版面配置',
|
|
53
56
|
'fabric.editor.columns.description': '使用區段建立頁面的結構',
|
|
54
57
|
'fabric.editor.copiedToClipboard': '已複製!',
|
|
@@ -86,6 +89,11 @@ export default {
|
|
|
86
89
|
'fabric.editor.elementbrowser.search.empty-state.heading': '沒有任何項目符合您的搜尋內容',
|
|
87
90
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': '請試著使用不同的詞彙搜尋,或探索 Atlassian 產品的新應用程式。',
|
|
88
91
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': '探索 Atlassian Marketplace',
|
|
92
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': '沒有任何項目符合您的搜尋內容',
|
|
93
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': '輸入文字的建議。',
|
|
94
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': '輸入文字的建議。',
|
|
95
|
+
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Enter',
|
|
96
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': '搜尋',
|
|
89
97
|
'fabric.editor.elementbrowser.sidebar.heading': '瀏覽',
|
|
90
98
|
'fabric.editor.embedTitle': '嵌入',
|
|
91
99
|
'fabric.editor.emoji': '表情符號',
|
|
@@ -141,6 +149,7 @@ export default {
|
|
|
141
149
|
'fabric.editor.infoPanel': '資訊面板',
|
|
142
150
|
'fabric.editor.infoPanel.description': '以彩色面板醒目提示資訊',
|
|
143
151
|
'fabric.editor.inlineDescription': '將連結顯示為內嵌文字',
|
|
152
|
+
'fabric.editor.inlineOverlay': '設定',
|
|
144
153
|
'fabric.editor.inlineTitle': '內嵌',
|
|
145
154
|
'fabric.editor.insertColumn': '在右側插入直欄',
|
|
146
155
|
'fabric.editor.insertColumnDrag': '插入直欄',
|
|
@@ -161,12 +170,15 @@ export default {
|
|
|
161
170
|
'fabric.editor.mediaAddLink': '新增連結',
|
|
162
171
|
'fabric.editor.mediaFiles': '圖片、影片或檔案',
|
|
163
172
|
'fabric.editor.mediaFiles.description': '將影像和其他檔案新增至頁面',
|
|
164
|
-
'fabric.editor.media_change_mediainline': '內嵌',
|
|
165
173
|
'fabric.editor.media_change_mediasingle': '原始尺寸',
|
|
166
174
|
'fabric.editor.mention': '提及',
|
|
167
175
|
'fabric.editor.mention.description': '提及他人以傳送通知',
|
|
168
176
|
'fabric.editor.mergeCells': '合併儲存格',
|
|
169
177
|
'fabric.editor.moreFormatting': '更多格式設定',
|
|
178
|
+
'fabric.editor.moveColumnLeft': '{0, plural, other {將欄向左移動}}',
|
|
179
|
+
'fabric.editor.moveColumnRight': '{0, plural, other {將欄向右移動}}',
|
|
180
|
+
'fabric.editor.moveDownDown': '{0, plural, other {向下移動列}}',
|
|
181
|
+
'fabric.editor.moveRowUp': '{0, plural, other {向上移動列}}',
|
|
170
182
|
'fabric.editor.navigate.toolbar.editor': '導覽至編輯器工具列',
|
|
171
183
|
'fabric.editor.navigate.toolbar.floating': '導覽至浮動工具列',
|
|
172
184
|
'fabric.editor.normal': '一般文字',
|
|
@@ -192,11 +204,14 @@ export default {
|
|
|
192
204
|
'fabric.editor.removeRows': '{0, plural, other {刪除列}}',
|
|
193
205
|
'fabric.editor.rightSidebar': '右側資訊看板',
|
|
194
206
|
'fabric.editor.rowControl': '醒目提示列',
|
|
207
|
+
'fabric.editor.rowDragHandle': '列選項',
|
|
195
208
|
'fabric.editor.saveButton': '儲存',
|
|
196
209
|
'fabric.editor.settingsLinks': '前往連結偏好設定',
|
|
197
210
|
'fabric.editor.single': '單欄',
|
|
198
211
|
'fabric.editor.sortColumnASC': '以 A → Z 排序直欄',
|
|
199
212
|
'fabric.editor.sortColumnDESC': '以 Z → A 排序直欄',
|
|
213
|
+
'fabric.editor.sortColumnDecreasing': '排序遞減',
|
|
214
|
+
'fabric.editor.sortColumnIncreasing': '排序遞增',
|
|
200
215
|
'fabric.editor.splitCell': '分割儲存格',
|
|
201
216
|
'fabric.editor.status': '狀態',
|
|
202
217
|
'fabric.editor.status.description': '新增自訂狀態標籤',
|
|
@@ -215,6 +230,10 @@ export default {
|
|
|
215
230
|
'fabric.editor.tableOptions': '表格選項',
|
|
216
231
|
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, other {表格寬度已降低至 {newWidth,number} 像素。}}',
|
|
217
232
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, other {表格寬度已提升至 {newWidth,number} 像素。}}',
|
|
233
|
+
'fabric.editor.tableSelector': '表格尺寸',
|
|
234
|
+
'fabric.editor.tableSelector.description': '使用彈出視窗新增表格,以選取自訂大小',
|
|
235
|
+
'fabric.editor.tableSizeSelectorButton': '建立特定大小的表格',
|
|
236
|
+
'fabric.editor.tableSizeSelectorPopup': '表格大小選取器',
|
|
218
237
|
'fabric.editor.tables.adjustColumn': '調整欄',
|
|
219
238
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': '刪除 {nodeName} 將中斷與其連結的任何內容。',
|
|
220
239
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': '刪除',
|
|
@@ -305,5 +324,6 @@ export default {
|
|
|
305
324
|
'fabric.theme.subtle-yellow': '內斂黃',
|
|
306
325
|
'fabric.theme.teal': '藍綠色',
|
|
307
326
|
'fabric.theme.white': '白色',
|
|
308
|
-
'fabric.theme.yellow': '黃色'
|
|
327
|
+
'fabric.theme.yellow': '黃色',
|
|
328
|
+
'fabrid.editor.rowNumbers': '列數'
|
|
309
329
|
};
|
|
@@ -60,7 +60,7 @@ export const previousCell = makeKeyMapWithCommon('Previous cell', 'Shift-Tab');
|
|
|
60
60
|
export const shiftArrowUp = makeKeyMapWithCommon('Shift ArrowUp', 'Shift-ArrowUp');
|
|
61
61
|
export const shiftTab = makeKeyMapWithCommon('Shift Tab', 'Shift-Tab');
|
|
62
62
|
export const toggleTable = makeKeyMapWithCommon('Table', 'Shift-Alt-t');
|
|
63
|
-
export const focusTableResizer = makeKeyMapWithCommon('Focus Table Resizer', 'Alt-
|
|
63
|
+
export const focusTableResizer = makeKeyMapWithCommon('Focus Table Resizer', 'Mod-Alt-Shift-r');
|
|
64
64
|
export const addRowBefore = makeKeyMapWithCommon('Add Row Above', 'Ctrl-Alt-ArrowUp');
|
|
65
65
|
export const addRowAfter = makeKeyMapWithCommon('Add Row Below', 'Ctrl-Alt-ArrowDown');
|
|
66
66
|
export const addColumnAfter = makeKeyMapWithCommon('Add Column After', 'Ctrl-Alt-ArrowRight');
|
|
@@ -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 = "77.
|
|
3
|
+
const packageVersion = "77.1.1";
|
|
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
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "77.
|
|
10
|
+
const packageVersion = "77.1.1";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import { ACTION } from '../../analytics';
|
|
7
|
+
import { sendMBEAnalyticsEvent } from './utils';
|
|
8
|
+
export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_ref) {
|
|
9
|
+
var updateActiveChild = _ref.updateActiveChild,
|
|
10
|
+
editorView = _ref.editorView,
|
|
11
|
+
getPos = _ref.getPos,
|
|
12
|
+
node = _ref.node,
|
|
13
|
+
eventDispatcher = _ref.eventDispatcher;
|
|
14
|
+
var actions = React.useMemo(function () {
|
|
15
|
+
return {
|
|
16
|
+
changeActive: function changeActive(index) {
|
|
17
|
+
var state = editorView.state,
|
|
18
|
+
dispatch = editorView.dispatch;
|
|
19
|
+
var updateActiveChildResult = updateActiveChild(index);
|
|
20
|
+
if (eventDispatcher) {
|
|
21
|
+
sendMBEAnalyticsEvent(ACTION.CHANGE_ACTIVE, node, eventDispatcher);
|
|
22
|
+
}
|
|
23
|
+
// On selection of a childFrame, we need to change the focus/selection to the end of the target child Frame
|
|
24
|
+
var mbeNode = state.doc.nodeAt(state.tr.selection.from);
|
|
25
|
+
var desiredPos = state.tr.selection.from || 0;
|
|
26
|
+
if (mbeNode && mbeNode !== null && mbeNode !== void 0 && mbeNode.content) {
|
|
27
|
+
for (var i = 0; i <= index && i < (mbeNode === null || mbeNode === void 0 || (_mbeNode$content = mbeNode.content) === null || _mbeNode$content === void 0 ? void 0 : _mbeNode$content.childCount); i++) {
|
|
28
|
+
var _mbeNode$content, _mbeNode$content2;
|
|
29
|
+
desiredPos += (mbeNode === null || mbeNode === void 0 || (_mbeNode$content2 = mbeNode.content) === null || _mbeNode$content2 === void 0 || (_mbeNode$content2 = _mbeNode$content2.child(i)) === null || _mbeNode$content2 === void 0 ? void 0 : _mbeNode$content2.nodeSize) || 0;
|
|
30
|
+
}
|
|
31
|
+
dispatch(state.tr.setSelection(new TextSelection(state.doc.resolve(desiredPos))));
|
|
32
|
+
}
|
|
33
|
+
return updateActiveChildResult;
|
|
34
|
+
},
|
|
35
|
+
addChild: function addChild() {
|
|
36
|
+
var state = editorView.state,
|
|
37
|
+
dispatch = editorView.dispatch;
|
|
38
|
+
if (node.content.childCount >= node.attrs.maxFrames) {
|
|
39
|
+
throw new Error("Cannot add more than ".concat(node.attrs.maxFrames, " frames"));
|
|
40
|
+
}
|
|
41
|
+
var p = state.schema.nodes.paragraph.createAndFill({});
|
|
42
|
+
if (!p) {
|
|
43
|
+
throw new Error('Could not create paragraph');
|
|
44
|
+
}
|
|
45
|
+
var frame = state.schema.nodes.extensionFrame.createAndFill({}, [p]);
|
|
46
|
+
var pos = getPos();
|
|
47
|
+
if (typeof pos !== 'number' || !frame) {
|
|
48
|
+
throw new Error('Could not create frame or position not valid');
|
|
49
|
+
}
|
|
50
|
+
var insertAt = Math.min((pos || 1) + node.content.size, state.doc.content.size);
|
|
51
|
+
dispatch(state.tr.insert(insertAt, frame));
|
|
52
|
+
if (eventDispatcher) {
|
|
53
|
+
sendMBEAnalyticsEvent(ACTION.ADD_CHILD, node, eventDispatcher);
|
|
54
|
+
}
|
|
55
|
+
return true;
|
|
56
|
+
},
|
|
57
|
+
getChildrenCount: function getChildrenCount() {
|
|
58
|
+
return node.content.childCount;
|
|
59
|
+
},
|
|
60
|
+
removeChild: function removeChild(index) {
|
|
61
|
+
var pos = getPos();
|
|
62
|
+
// TODO: Add child index validation here, don't trust this data
|
|
63
|
+
if (typeof pos !== 'number' || typeof index !== 'number') {
|
|
64
|
+
throw new Error('Position or index not valid');
|
|
65
|
+
}
|
|
66
|
+
var state = editorView.state,
|
|
67
|
+
dispatch = editorView.dispatch;
|
|
68
|
+
if (node.content.childCount === 1) {
|
|
69
|
+
var _tr = state.tr;
|
|
70
|
+
_tr.deleteRange(pos, pos + node.content.size);
|
|
71
|
+
dispatch(_tr);
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
var $pos = state.doc.resolve(pos);
|
|
75
|
+
var $startNodePos = state.doc.resolve($pos.start($pos.depth + 1));
|
|
76
|
+
var startFramePosition = $startNodePos.posAtIndex(index);
|
|
77
|
+
var maybeFrameNode = state.doc.nodeAt(startFramePosition);
|
|
78
|
+
if (!maybeFrameNode) {
|
|
79
|
+
throw new Error('Could not find frame node');
|
|
80
|
+
}
|
|
81
|
+
var endFramePosition = maybeFrameNode.content.size + startFramePosition;
|
|
82
|
+
var tr = state.tr;
|
|
83
|
+
tr.deleteRange(startFramePosition, endFramePosition);
|
|
84
|
+
dispatch(tr);
|
|
85
|
+
if (eventDispatcher) {
|
|
86
|
+
sendMBEAnalyticsEvent(ACTION.REMOVE_CHILD, node, eventDispatcher);
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
},
|
|
90
|
+
updateParameters: function updateParameters(parameters) {
|
|
91
|
+
var state = editorView.state,
|
|
92
|
+
dispatch = editorView.dispatch;
|
|
93
|
+
var pos = getPos();
|
|
94
|
+
if (typeof pos !== 'number') {
|
|
95
|
+
throw new Error('Position not valid');
|
|
96
|
+
}
|
|
97
|
+
var tr = state.tr.setNodeMarkup(pos, undefined, _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
98
|
+
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
99
|
+
macroParams: parameters
|
|
100
|
+
})
|
|
101
|
+
}));
|
|
102
|
+
dispatch(tr);
|
|
103
|
+
if (eventDispatcher) {
|
|
104
|
+
sendMBEAnalyticsEvent(ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
|
|
105
|
+
}
|
|
106
|
+
return true;
|
|
107
|
+
},
|
|
108
|
+
getChildren: function getChildren() {
|
|
109
|
+
var _state$doc$nodeAt;
|
|
110
|
+
var state = editorView.state;
|
|
111
|
+
var pos = getPos();
|
|
112
|
+
if (typeof pos !== 'number') {
|
|
113
|
+
return [];
|
|
114
|
+
}
|
|
115
|
+
var children = (_state$doc$nodeAt = state.doc.nodeAt(pos)) === null || _state$doc$nodeAt === void 0 ? void 0 : _state$doc$nodeAt.content;
|
|
116
|
+
if (eventDispatcher) {
|
|
117
|
+
sendMBEAnalyticsEvent(ACTION.GET_CHILDERN, node, eventDispatcher);
|
|
118
|
+
}
|
|
119
|
+
return children ? children.toJSON() : [];
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}, [node, editorView, getPos, updateActiveChild, eventDispatcher]);
|
|
123
|
+
return actions;
|
|
124
|
+
};
|