@atlaskit/editor-common 77.0.5 → 77.1.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.
- package/CHANGELOG.md +21 -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/messages/full-page.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/messages/full-page.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/messages/full-page.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/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/next-editor-plugin.d.ts +1 -4
- package/package.json +8 -8
package/dist/cjs/i18n/uk.js
CHANGED
|
@@ -15,9 +15,11 @@ exports.default = void 0;
|
|
|
15
15
|
var _default = exports.default = {
|
|
16
16
|
'fabric.editor.action': 'Задача',
|
|
17
17
|
'fabric.editor.action.description': 'Створити та призначити задачу',
|
|
18
|
-
'fabric.editor.
|
|
18
|
+
'fabric.editor.addColumnLeft': 'Додати стовпець ліворуч',
|
|
19
|
+
'fabric.editor.addColumnRight': 'Додати стовпець справа',
|
|
19
20
|
'fabric.editor.addMediaFiles': 'Додати зображення, відео або файл',
|
|
20
|
-
'fabric.editor.
|
|
21
|
+
'fabric.editor.addRowAbove': 'Додати рядок угорі',
|
|
22
|
+
'fabric.editor.addRowBelow': 'Додати рядок знизу',
|
|
21
23
|
'fabric.editor.alignCenter': 'Вирівнювання по центру',
|
|
22
24
|
'fabric.editor.alignImageCenter': 'Вирівнювання по центру',
|
|
23
25
|
'fabric.editor.alignImageLeft': 'Вирівнювання по лівому краю',
|
|
@@ -55,6 +57,7 @@ var _default = exports.default = {
|
|
|
55
57
|
'fabric.editor.codeblock.description': 'Показати код із розміткою синтаксису',
|
|
56
58
|
'fabric.editor.collapseNode': 'Згорніть вміст',
|
|
57
59
|
'fabric.editor.collapseTable': 'Згорнути таблицю',
|
|
60
|
+
'fabric.editor.columnDragHandle': 'Параметри стовпців',
|
|
58
61
|
'fabric.editor.columns': 'Макет',
|
|
59
62
|
'fabric.editor.columns.description': 'Впорядкувати сторінку за допомогою розділів',
|
|
60
63
|
'fabric.editor.copiedToClipboard': 'Скопійовано',
|
|
@@ -92,6 +95,11 @@ var _default = exports.default = {
|
|
|
92
95
|
'fabric.editor.elementbrowser.search.empty-state.heading': 'За вашим запитом результатів не знайдено',
|
|
93
96
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': 'Спробуйте змінити пошуковий запит або перегляньте нові додатки для продуктів Atlassian.',
|
|
94
97
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': 'Відкрийте для себе Atlassian Marketplace',
|
|
98
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': 'За вашим запитом результатів не знайдено',
|
|
99
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': 'Це кількість доступних пропозицій для введеного тексту.',
|
|
100
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': 'Це кількість доступних пропозицій для введеного тексту.',
|
|
101
|
+
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Ввести',
|
|
102
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': 'Пошук',
|
|
95
103
|
'fabric.editor.elementbrowser.sidebar.heading': 'Перегляд',
|
|
96
104
|
'fabric.editor.embedTitle': 'Вбудувати',
|
|
97
105
|
'fabric.editor.emoji': 'Емодзі',
|
|
@@ -147,6 +155,7 @@ var _default = exports.default = {
|
|
|
147
155
|
'fabric.editor.infoPanel': 'Панель з інформацією',
|
|
148
156
|
'fabric.editor.infoPanel.description': 'Панель із виділеною кольорами інформацією',
|
|
149
157
|
'fabric.editor.inlineDescription': 'Показати посилання як вбудований текст',
|
|
158
|
+
'fabric.editor.inlineOverlay': 'Налаштування',
|
|
150
159
|
'fabric.editor.inlineTitle': 'У рядку',
|
|
151
160
|
'fabric.editor.insertColumn': 'Вставити стовпець справа',
|
|
152
161
|
'fabric.editor.insertColumnDrag': 'Вставити стовпець',
|
|
@@ -167,12 +176,15 @@ var _default = exports.default = {
|
|
|
167
176
|
'fabric.editor.mediaAddLink': 'Додати посилання',
|
|
168
177
|
'fabric.editor.mediaFiles': 'Зображення, відео або файл',
|
|
169
178
|
'fabric.editor.mediaFiles.description': 'Додати на сторінку файли та зображення',
|
|
170
|
-
'fabric.editor.media_change_mediainline': 'Вбудоване зображення',
|
|
171
179
|
'fabric.editor.media_change_mediasingle': 'Вихідний розмір',
|
|
172
180
|
'fabric.editor.mention': 'Згадка',
|
|
173
181
|
'fabric.editor.mention.description': 'Згадати користувача та надіслати йому сповіщення',
|
|
174
182
|
'fabric.editor.mergeCells': 'Об’єднати клітинки',
|
|
175
183
|
'fabric.editor.moreFormatting': 'Додаткове форматування',
|
|
184
|
+
'fabric.editor.moveColumnLeft': '{0, plural, one {Переміщення стовпця(-ів) уліво} few {Переміщення стовпців уліво} many {Переміщення стовпців уліво} other {Переміщення стовпців уліво}}',
|
|
185
|
+
'fabric.editor.moveColumnRight': '{0, plural, one {Переміщення стовпця(-ів) управо} few {Переміщення стовпців управо} many {Переміщення стовпців управо} other {Переміщення стовпців управо}}',
|
|
186
|
+
'fabric.editor.moveDownDown': '{0, plural, one {Переміщення рядка(-ів) униз} few {Переміщення рядків униз} many {Переміщення рядків униз} other {Переміщення рядків униз}}',
|
|
187
|
+
'fabric.editor.moveRowUp': '{0, plural, one {Переміщення рядка(-ів) угору} few {Переміщення рядків угору} many {Переміщення рядків угору} other {Переміщення рядків угору}}',
|
|
176
188
|
'fabric.editor.navigate.toolbar.editor': 'Перейти на панель інструментів редактора',
|
|
177
189
|
'fabric.editor.navigate.toolbar.floating': 'Перейти на рухому панель інструментів',
|
|
178
190
|
'fabric.editor.normal': 'Звичайний текст',
|
|
@@ -198,11 +210,14 @@ var _default = exports.default = {
|
|
|
198
210
|
'fabric.editor.removeRows': '{0, plural, one {Видалити рядок} few {Видалити рядки} many {Видалити рядки} other {Видалити рядки}}',
|
|
199
211
|
'fabric.editor.rightSidebar': 'Бічна панель праворуч',
|
|
200
212
|
'fabric.editor.rowControl': 'Виділити рядок',
|
|
213
|
+
'fabric.editor.rowDragHandle': 'Параметри рядків',
|
|
201
214
|
'fabric.editor.saveButton': 'Зберегти',
|
|
202
215
|
'fabric.editor.settingsLinks': 'Перейти до параметрів посилань',
|
|
203
216
|
'fabric.editor.single': 'Один стовпець',
|
|
204
217
|
'fabric.editor.sortColumnASC': 'Сортувати стовпці від А до Я',
|
|
205
218
|
'fabric.editor.sortColumnDESC': 'Сортувати стовпці від Я до А',
|
|
219
|
+
'fabric.editor.sortColumnDecreasing': 'Сортування за зменшенням',
|
|
220
|
+
'fabric.editor.sortColumnIncreasing': 'Сортування за збільшенням',
|
|
206
221
|
'fabric.editor.splitCell': 'Розділити клітинки',
|
|
207
222
|
'fabric.editor.status': 'Стан',
|
|
208
223
|
'fabric.editor.status.description': 'Додати власний стан',
|
|
@@ -221,6 +236,10 @@ var _default = exports.default = {
|
|
|
221
236
|
'fabric.editor.tableOptions': 'Параметри таблиці',
|
|
222
237
|
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, one {Ширину таблиці зменшено до {newWidth,number} пікселя.} few {Ширину таблиці зменшено до {newWidth,number} пікселів.} many {Ширину таблиці зменшено до {newWidth,number} пікселів.} other {Ширину таблиці зменшено до {newWidth,number} пікселів.}}',
|
|
223
238
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, one {Ширину таблиці збільшено до {newWidth,number} пікселя.} few {Ширину таблиці збільшено до {newWidth,number} пікселів.} many {Ширину таблиці збільшено до {newWidth,number} пікселів.} other {Ширину таблиці збільшено до {newWidth,number} пікселів.}}',
|
|
239
|
+
'fabric.editor.tableSelector': 'Розмір таблиці',
|
|
240
|
+
'fabric.editor.tableSelector.description': 'Додайте таблицю за допомогою спливного списку, щоб вибрати потрібний розмір',
|
|
241
|
+
'fabric.editor.tableSizeSelectorButton': 'Створити таблицю вибраного розміру',
|
|
242
|
+
'fabric.editor.tableSizeSelectorPopup': 'Засіб вибору розміру таблиці',
|
|
224
243
|
'fabric.editor.tables.adjustColumn': 'Налаштувати стовпець',
|
|
225
244
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Видалення розширення {nodeName} порушить роботу всього, що з ним пов’язано.',
|
|
226
245
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Видалити',
|
|
@@ -241,7 +260,7 @@ var _default = exports.default = {
|
|
|
241
260
|
'fabric.editor.tooltip.nestedExpand': 'вкладена розгортка',
|
|
242
261
|
'fabric.editor.tooltip.taskList': 'задача',
|
|
243
262
|
'fabric.editor.twoColumns': 'Два стовпці',
|
|
244
|
-
'fabric.editor.unableToLoadContent': 'Не вдалося завантажити цей
|
|
263
|
+
'fabric.editor.unableToLoadContent': 'Не вдалося завантажити цей вміст',
|
|
245
264
|
'fabric.editor.unableToOpenLink': 'Не вдалося відкрити посилання',
|
|
246
265
|
'fabric.editor.underline': 'Підкреслювання',
|
|
247
266
|
'fabric.editor.undo': 'Скасувати',
|
|
@@ -311,5 +330,6 @@ var _default = exports.default = {
|
|
|
311
330
|
'fabric.theme.subtle-yellow': 'Блідий жовтий',
|
|
312
331
|
'fabric.theme.teal': 'Бірюзовий',
|
|
313
332
|
'fabric.theme.white': 'Білий',
|
|
314
|
-
'fabric.theme.yellow': 'Жовтий'
|
|
333
|
+
'fabric.theme.yellow': 'Жовтий',
|
|
334
|
+
'fabrid.editor.rowNumbers': 'Номери рядків'
|
|
315
335
|
};
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -15,9 +15,11 @@ exports.default = void 0;
|
|
|
15
15
|
var _default = exports.default = {
|
|
16
16
|
'fabric.editor.action': 'Mục thao tác',
|
|
17
17
|
'fabric.editor.action.description': 'Tạo và chỉ định các mục thao tác',
|
|
18
|
-
'fabric.editor.
|
|
18
|
+
'fabric.editor.addColumnLeft': 'Thêm cột bên trái',
|
|
19
|
+
'fabric.editor.addColumnRight': 'Thêm cột bên phải',
|
|
19
20
|
'fabric.editor.addMediaFiles': 'Thêm ảnh, video hoặc tệp',
|
|
20
|
-
'fabric.editor.
|
|
21
|
+
'fabric.editor.addRowAbove': 'Thêm hàng bên trên',
|
|
22
|
+
'fabric.editor.addRowBelow': 'Thêm hàng bên dưới',
|
|
21
23
|
'fabric.editor.alignCenter': 'Căn giữa',
|
|
22
24
|
'fabric.editor.alignImageCenter': 'Căn giữa',
|
|
23
25
|
'fabric.editor.alignImageLeft': 'Căn trái',
|
|
@@ -55,6 +57,7 @@ var _default = exports.default = {
|
|
|
55
57
|
'fabric.editor.codeblock.description': 'Hiển thị mã có bôi đậm cú pháp',
|
|
56
58
|
'fabric.editor.collapseNode': 'thu gọn nội dung',
|
|
57
59
|
'fabric.editor.collapseTable': 'Thu gọn bảng',
|
|
60
|
+
'fabric.editor.columnDragHandle': 'Tùy chọn cột',
|
|
58
61
|
'fabric.editor.columns': 'Bố cục',
|
|
59
62
|
'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',
|
|
60
63
|
'fabric.editor.copiedToClipboard': 'Đã sao chép!',
|
|
@@ -92,6 +95,11 @@ var _default = exports.default = {
|
|
|
92
95
|
'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',
|
|
93
96
|
'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.',
|
|
94
97
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': 'Khám phá Atlassian Marketplace',
|
|
98
|
+
'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',
|
|
99
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': 'đề xuất có sẵn cho văn bản đã nhập.',
|
|
100
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': 'đề xuất có sẵn cho văn bản đã nhập.',
|
|
101
|
+
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Nhấn Enter',
|
|
102
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': 'Tìm kiếm',
|
|
95
103
|
'fabric.editor.elementbrowser.sidebar.heading': 'Duyệt',
|
|
96
104
|
'fabric.editor.embedTitle': 'Đã nhúng',
|
|
97
105
|
'fabric.editor.emoji': 'Biểu tượng cảm xúc',
|
|
@@ -147,6 +155,7 @@ var _default = exports.default = {
|
|
|
147
155
|
'fabric.editor.infoPanel': 'Ô thông tin',
|
|
148
156
|
'fabric.editor.infoPanel.description': 'Bôi đậm thông tin bằng ô màu',
|
|
149
157
|
'fabric.editor.inlineDescription': 'Hiển thị liên kết dưới dạng văn bản nội tuyến',
|
|
158
|
+
'fabric.editor.inlineOverlay': 'Đặt cấu hình',
|
|
150
159
|
'fabric.editor.inlineTitle': 'Nội tuyến',
|
|
151
160
|
'fabric.editor.insertColumn': 'Chèn cột vào bên phải',
|
|
152
161
|
'fabric.editor.insertColumnDrag': 'Chèn cột',
|
|
@@ -167,12 +176,15 @@ var _default = exports.default = {
|
|
|
167
176
|
'fabric.editor.mediaAddLink': 'Thêm liên kết',
|
|
168
177
|
'fabric.editor.mediaFiles': 'Ảnh, video hoặc tệp',
|
|
169
178
|
'fabric.editor.mediaFiles.description': 'Thêm hình ảnh và các tập tin khác vào trang của bạn',
|
|
170
|
-
'fabric.editor.media_change_mediainline': 'Nội tuyến',
|
|
171
179
|
'fabric.editor.media_change_mediasingle': 'Kích thước gốc',
|
|
172
180
|
'fabric.editor.mention': 'Đề cập',
|
|
173
181
|
'fabric.editor.mention.description': 'Đề cập đến ai đó để gửi thông báo cho họ',
|
|
174
182
|
'fabric.editor.mergeCells': 'Hợp nhất ô',
|
|
175
183
|
'fabric.editor.moreFormatting': 'Thêm định dạng',
|
|
184
|
+
'fabric.editor.moveColumnLeft': '{0, plural, other {Di chuyển cột sang trái}}',
|
|
185
|
+
'fabric.editor.moveColumnRight': '{0, plural, other {Di chuyển cột sang phải}}',
|
|
186
|
+
'fabric.editor.moveDownDown': '{0, plural, other {Di chuyển hàng xuống dưới}}',
|
|
187
|
+
'fabric.editor.moveRowUp': '{0, plural, other {Di chuyển hàng lên trên}}',
|
|
176
188
|
'fabric.editor.navigate.toolbar.editor': 'Điều hướng đến thanh công cụ trình biên tập',
|
|
177
189
|
'fabric.editor.navigate.toolbar.floating': 'Điều hướng đến thanh công cụ nổi',
|
|
178
190
|
'fabric.editor.normal': 'Văn bản bình thường',
|
|
@@ -198,11 +210,14 @@ var _default = exports.default = {
|
|
|
198
210
|
'fabric.editor.removeRows': '{0, plural, other {Xóa hàng}}',
|
|
199
211
|
'fabric.editor.rightSidebar': 'Thanh bên phải',
|
|
200
212
|
'fabric.editor.rowControl': 'Làm nổi bật hàng',
|
|
213
|
+
'fabric.editor.rowDragHandle': 'Tùy chọn hàng',
|
|
201
214
|
'fabric.editor.saveButton': 'Lưu',
|
|
202
215
|
'fabric.editor.settingsLinks': 'Vào phần Tùy chọn liên kết',
|
|
203
216
|
'fabric.editor.single': 'Cột đơn',
|
|
204
217
|
'fabric.editor.sortColumnASC': 'Sắp xếp cột A → Z',
|
|
205
218
|
'fabric.editor.sortColumnDESC': 'Sắp xếp cột Z → A',
|
|
219
|
+
'fabric.editor.sortColumnDecreasing': 'Sắp xếp theo thứ tự giảm dần',
|
|
220
|
+
'fabric.editor.sortColumnIncreasing': 'Sắp xếp theo thứ tự tăng dần',
|
|
206
221
|
'fabric.editor.splitCell': 'Tách ô',
|
|
207
222
|
'fabric.editor.status': 'Trạng thái',
|
|
208
223
|
'fabric.editor.status.description': 'Thêm một nhãn trạng thái tùy chỉnh',
|
|
@@ -221,6 +236,10 @@ var _default = exports.default = {
|
|
|
221
236
|
'fabric.editor.tableOptions': 'Tùy chọn bảng',
|
|
222
237
|
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, other {Chiều rộng bảng đã giảm xuống {newWidth,number} pixel.}}',
|
|
223
238
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, other {Chiều rộng bảng đã tăng lên {newWidth,number} pixel.}}',
|
|
239
|
+
'fabric.editor.tableSelector': 'Kích thước bảng',
|
|
240
|
+
'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',
|
|
241
|
+
'fabric.editor.tableSizeSelectorButton': 'Tạo bảng theo kích thước',
|
|
242
|
+
'fabric.editor.tableSizeSelectorPopup': 'Bộ chọn kích thước bảng',
|
|
224
243
|
'fabric.editor.tables.adjustColumn': 'Điều chỉnh cột',
|
|
225
244
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Việc xóa {nodeName} sẽ ngắt mọi nội dung được kết nối.',
|
|
226
245
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Xóa',
|
|
@@ -311,5 +330,6 @@ var _default = exports.default = {
|
|
|
311
330
|
'fabric.theme.subtle-yellow': 'Vàng phớt',
|
|
312
331
|
'fabric.theme.teal': 'Xanh mòng két',
|
|
313
332
|
'fabric.theme.white': 'Trắng',
|
|
314
|
-
'fabric.theme.yellow': 'Vàng'
|
|
333
|
+
'fabric.theme.yellow': 'Vàng',
|
|
334
|
+
'fabrid.editor.rowNumbers': 'Số lượng hàng'
|
|
315
335
|
};
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -15,9 +15,11 @@ exports.default = void 0;
|
|
|
15
15
|
var _default = exports.default = {
|
|
16
16
|
'fabric.editor.action': '操作项',
|
|
17
17
|
'fabric.editor.action.description': '创建和指派操作项目',
|
|
18
|
-
'fabric.editor.
|
|
18
|
+
'fabric.editor.addColumnLeft': '在左侧添加列',
|
|
19
|
+
'fabric.editor.addColumnRight': '在右侧添加列',
|
|
19
20
|
'fabric.editor.addMediaFiles': '添加图像、视频或文件',
|
|
20
|
-
'fabric.editor.
|
|
21
|
+
'fabric.editor.addRowAbove': '在上方添加行',
|
|
22
|
+
'fabric.editor.addRowBelow': '在下方添加行',
|
|
21
23
|
'fabric.editor.alignCenter': '居中对齐',
|
|
22
24
|
'fabric.editor.alignImageCenter': '居中',
|
|
23
25
|
'fabric.editor.alignImageLeft': '左对齐',
|
|
@@ -55,6 +57,7 @@ var _default = exports.default = {
|
|
|
55
57
|
'fabric.editor.codeblock.description': '显示带语法高亮的代码',
|
|
56
58
|
'fabric.editor.collapseNode': '收起内容',
|
|
57
59
|
'fabric.editor.collapseTable': '收起表格',
|
|
60
|
+
'fabric.editor.columnDragHandle': '列选项',
|
|
58
61
|
'fabric.editor.columns': '布局',
|
|
59
62
|
'fabric.editor.columns.description': '使用分段组织页面',
|
|
60
63
|
'fabric.editor.copiedToClipboard': '已复制!',
|
|
@@ -92,6 +95,9 @@ var _default = exports.default = {
|
|
|
92
95
|
'fabric.editor.elementbrowser.search.empty-state.heading': '未找到与您的搜索条件相匹配的内容',
|
|
93
96
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': '请尝试用其他术语搜索或寻找适用于 Atlassian 产品的新应用。',
|
|
94
97
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': '浏览 Atlassian Marketplace',
|
|
98
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': '未找到与您的搜索条件相匹配的内容',
|
|
99
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': '条针对已输入文本的建议已生成。',
|
|
100
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': '搜索',
|
|
95
101
|
'fabric.editor.elementbrowser.sidebar.heading': '浏览',
|
|
96
102
|
'fabric.editor.embedTitle': '嵌入',
|
|
97
103
|
'fabric.editor.emoji': '表情符号',
|
|
@@ -147,6 +153,7 @@ var _default = exports.default = {
|
|
|
147
153
|
'fabric.editor.infoPanel': '信息面板',
|
|
148
154
|
'fabric.editor.infoPanel.description': '在彩色面板高亮显示信息',
|
|
149
155
|
'fabric.editor.inlineDescription': '以内联文本显示链接',
|
|
156
|
+
'fabric.editor.inlineOverlay': '配置',
|
|
150
157
|
'fabric.editor.inlineTitle': '内联',
|
|
151
158
|
'fabric.editor.insertColumn': '在右侧插入列',
|
|
152
159
|
'fabric.editor.insertColumnDrag': '插入列',
|
|
@@ -167,12 +174,15 @@ var _default = exports.default = {
|
|
|
167
174
|
'fabric.editor.mediaAddLink': '添加链接',
|
|
168
175
|
'fabric.editor.mediaFiles': '图像、视频或文件',
|
|
169
176
|
'fabric.editor.mediaFiles.description': '向页面添加图像和其他文件',
|
|
170
|
-
'fabric.editor.
|
|
171
|
-
'fabric.editor.media_change_mediasingle': '原始尺寸',
|
|
177
|
+
'fabric.editor.media_change_mediasingle': '原始大小',
|
|
172
178
|
'fabric.editor.mention': '提到',
|
|
173
179
|
'fabric.editor.mention.description': '提及某人以发送通知',
|
|
174
180
|
'fabric.editor.mergeCells': '合并单元格',
|
|
175
181
|
'fabric.editor.moreFormatting': '更多格式',
|
|
182
|
+
'fabric.editor.moveColumnLeft': '{0, plural, other {将列左移}}',
|
|
183
|
+
'fabric.editor.moveColumnRight': '{0, plural, other {将列右移}}',
|
|
184
|
+
'fabric.editor.moveDownDown': '{0, plural, other {将行下移}}',
|
|
185
|
+
'fabric.editor.moveRowUp': '{0, plural, other {将行上移}}',
|
|
176
186
|
'fabric.editor.navigate.toolbar.editor': '导航到编辑器工具栏',
|
|
177
187
|
'fabric.editor.navigate.toolbar.floating': '导航到浮动工具栏',
|
|
178
188
|
'fabric.editor.normal': '普通文本',
|
|
@@ -198,11 +208,14 @@ var _default = exports.default = {
|
|
|
198
208
|
'fabric.editor.removeRows': '{0, plural, other {删除行}}',
|
|
199
209
|
'fabric.editor.rightSidebar': '右侧栏',
|
|
200
210
|
'fabric.editor.rowControl': '突出显示行',
|
|
211
|
+
'fabric.editor.rowDragHandle': '行选项',
|
|
201
212
|
'fabric.editor.saveButton': '保存',
|
|
202
213
|
'fabric.editor.settingsLinks': '转到“链接首选项”',
|
|
203
214
|
'fabric.editor.single': '单列',
|
|
204
215
|
'fabric.editor.sortColumnASC': '对列 A → Z 进行排序',
|
|
205
216
|
'fabric.editor.sortColumnDESC': '对列 Z → A 进行排序',
|
|
217
|
+
'fabric.editor.sortColumnDecreasing': '按降序排序',
|
|
218
|
+
'fabric.editor.sortColumnIncreasing': '按升序排序',
|
|
206
219
|
'fabric.editor.splitCell': '拆分单元格',
|
|
207
220
|
'fabric.editor.status': '状态',
|
|
208
221
|
'fabric.editor.status.description': '添加自定义状态标签',
|
|
@@ -221,6 +234,10 @@ var _default = exports.default = {
|
|
|
221
234
|
'fabric.editor.tableOptions': '表格选项',
|
|
222
235
|
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, other {表格宽度已减少到 {newWidth,number} 像素。}}',
|
|
223
236
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, other {表格宽度已增加到 {newWidth,number} 像素。}}',
|
|
237
|
+
'fabric.editor.tableSelector': '表格大小',
|
|
238
|
+
'fabric.editor.tableSelector.description': '使用弹出窗口添加表格以选择自定义大小',
|
|
239
|
+
'fabric.editor.tableSizeSelectorButton': '创建特定大小的表格',
|
|
240
|
+
'fabric.editor.tableSizeSelectorPopup': '表格大小选择器',
|
|
224
241
|
'fabric.editor.tables.adjustColumn': '调整列',
|
|
225
242
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': '删除 {nodeName} 将断开与其连接的所有内容。',
|
|
226
243
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': '删除',
|
|
@@ -311,5 +328,6 @@ var _default = exports.default = {
|
|
|
311
328
|
'fabric.theme.subtle-yellow': '浅黄',
|
|
312
329
|
'fabric.theme.teal': '蓝绿',
|
|
313
330
|
'fabric.theme.white': '白',
|
|
314
|
-
'fabric.theme.yellow': '黄'
|
|
331
|
+
'fabric.theme.yellow': '黄',
|
|
332
|
+
'fabrid.editor.rowNumbers': '行号'
|
|
315
333
|
};
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -15,9 +15,11 @@ exports.default = void 0;
|
|
|
15
15
|
var _default = exports.default = {
|
|
16
16
|
'fabric.editor.action': '動作項目',
|
|
17
17
|
'fabric.editor.action.description': '建立並指派動作項目',
|
|
18
|
-
'fabric.editor.
|
|
18
|
+
'fabric.editor.addColumnLeft': '新增左側欄',
|
|
19
|
+
'fabric.editor.addColumnRight': '新增右欄',
|
|
19
20
|
'fabric.editor.addMediaFiles': '新增圖片、影片或檔案',
|
|
20
|
-
'fabric.editor.
|
|
21
|
+
'fabric.editor.addRowAbove': '在上方新增列',
|
|
22
|
+
'fabric.editor.addRowBelow': '在下方新增列',
|
|
21
23
|
'fabric.editor.alignCenter': '置中對齊',
|
|
22
24
|
'fabric.editor.alignImageCenter': '置中對齊',
|
|
23
25
|
'fabric.editor.alignImageLeft': '靠左對齊',
|
|
@@ -55,6 +57,7 @@ var _default = exports.default = {
|
|
|
55
57
|
'fabric.editor.codeblock.description': '顯示程式碼並醒目提示語法',
|
|
56
58
|
'fabric.editor.collapseNode': '摺疊內容',
|
|
57
59
|
'fabric.editor.collapseTable': '摺疊表格',
|
|
60
|
+
'fabric.editor.columnDragHandle': '欄選項',
|
|
58
61
|
'fabric.editor.columns': '版面配置',
|
|
59
62
|
'fabric.editor.columns.description': '使用區段建立頁面的結構',
|
|
60
63
|
'fabric.editor.copiedToClipboard': '已複製!',
|
|
@@ -92,6 +95,11 @@ var _default = exports.default = {
|
|
|
92
95
|
'fabric.editor.elementbrowser.search.empty-state.heading': '沒有任何項目符合您的搜尋內容',
|
|
93
96
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': '請試著使用不同的詞彙搜尋,或探索 Atlassian 產品的新應用程式。',
|
|
94
97
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': '探索 Atlassian Marketplace',
|
|
98
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': '沒有任何項目符合您的搜尋內容',
|
|
99
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': '輸入文字的建議。',
|
|
100
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': '輸入文字的建議。',
|
|
101
|
+
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Enter',
|
|
102
|
+
'fabric.editor.elementbrowser.searchbar.placeholder': '搜尋',
|
|
95
103
|
'fabric.editor.elementbrowser.sidebar.heading': '瀏覽',
|
|
96
104
|
'fabric.editor.embedTitle': '嵌入',
|
|
97
105
|
'fabric.editor.emoji': '表情符號',
|
|
@@ -147,6 +155,7 @@ var _default = exports.default = {
|
|
|
147
155
|
'fabric.editor.infoPanel': '資訊面板',
|
|
148
156
|
'fabric.editor.infoPanel.description': '以彩色面板醒目提示資訊',
|
|
149
157
|
'fabric.editor.inlineDescription': '將連結顯示為內嵌文字',
|
|
158
|
+
'fabric.editor.inlineOverlay': '設定',
|
|
150
159
|
'fabric.editor.inlineTitle': '內嵌',
|
|
151
160
|
'fabric.editor.insertColumn': '在右側插入直欄',
|
|
152
161
|
'fabric.editor.insertColumnDrag': '插入直欄',
|
|
@@ -167,12 +176,15 @@ var _default = exports.default = {
|
|
|
167
176
|
'fabric.editor.mediaAddLink': '新增連結',
|
|
168
177
|
'fabric.editor.mediaFiles': '圖片、影片或檔案',
|
|
169
178
|
'fabric.editor.mediaFiles.description': '將影像和其他檔案新增至頁面',
|
|
170
|
-
'fabric.editor.media_change_mediainline': '內嵌',
|
|
171
179
|
'fabric.editor.media_change_mediasingle': '原始尺寸',
|
|
172
180
|
'fabric.editor.mention': '提及',
|
|
173
181
|
'fabric.editor.mention.description': '提及他人以傳送通知',
|
|
174
182
|
'fabric.editor.mergeCells': '合併儲存格',
|
|
175
183
|
'fabric.editor.moreFormatting': '更多格式設定',
|
|
184
|
+
'fabric.editor.moveColumnLeft': '{0, plural, other {將欄向左移動}}',
|
|
185
|
+
'fabric.editor.moveColumnRight': '{0, plural, other {將欄向右移動}}',
|
|
186
|
+
'fabric.editor.moveDownDown': '{0, plural, other {向下移動列}}',
|
|
187
|
+
'fabric.editor.moveRowUp': '{0, plural, other {向上移動列}}',
|
|
176
188
|
'fabric.editor.navigate.toolbar.editor': '導覽至編輯器工具列',
|
|
177
189
|
'fabric.editor.navigate.toolbar.floating': '導覽至浮動工具列',
|
|
178
190
|
'fabric.editor.normal': '一般文字',
|
|
@@ -198,11 +210,14 @@ var _default = exports.default = {
|
|
|
198
210
|
'fabric.editor.removeRows': '{0, plural, other {刪除列}}',
|
|
199
211
|
'fabric.editor.rightSidebar': '右側資訊看板',
|
|
200
212
|
'fabric.editor.rowControl': '醒目提示列',
|
|
213
|
+
'fabric.editor.rowDragHandle': '列選項',
|
|
201
214
|
'fabric.editor.saveButton': '儲存',
|
|
202
215
|
'fabric.editor.settingsLinks': '前往連結偏好設定',
|
|
203
216
|
'fabric.editor.single': '單欄',
|
|
204
217
|
'fabric.editor.sortColumnASC': '以 A → Z 排序直欄',
|
|
205
218
|
'fabric.editor.sortColumnDESC': '以 Z → A 排序直欄',
|
|
219
|
+
'fabric.editor.sortColumnDecreasing': '排序遞減',
|
|
220
|
+
'fabric.editor.sortColumnIncreasing': '排序遞增',
|
|
206
221
|
'fabric.editor.splitCell': '分割儲存格',
|
|
207
222
|
'fabric.editor.status': '狀態',
|
|
208
223
|
'fabric.editor.status.description': '新增自訂狀態標籤',
|
|
@@ -221,6 +236,10 @@ var _default = exports.default = {
|
|
|
221
236
|
'fabric.editor.tableOptions': '表格選項',
|
|
222
237
|
'fabric.editor.tableResizeDecreaseScreenReaderInformation': '{newWidth, plural, other {表格寬度已降低至 {newWidth,number} 像素。}}',
|
|
223
238
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, other {表格寬度已提升至 {newWidth,number} 像素。}}',
|
|
239
|
+
'fabric.editor.tableSelector': '表格尺寸',
|
|
240
|
+
'fabric.editor.tableSelector.description': '使用彈出視窗新增表格,以選取自訂大小',
|
|
241
|
+
'fabric.editor.tableSizeSelectorButton': '建立特定大小的表格',
|
|
242
|
+
'fabric.editor.tableSizeSelectorPopup': '表格大小選取器',
|
|
224
243
|
'fabric.editor.tables.adjustColumn': '調整欄',
|
|
225
244
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': '刪除 {nodeName} 將中斷與其連結的任何內容。',
|
|
226
245
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': '刪除',
|
|
@@ -311,5 +330,6 @@ var _default = exports.default = {
|
|
|
311
330
|
'fabric.theme.subtle-yellow': '內斂黃',
|
|
312
331
|
'fabric.theme.teal': '藍綠色',
|
|
313
332
|
'fabric.theme.white': '白色',
|
|
314
|
-
'fabric.theme.yellow': '黃色'
|
|
333
|
+
'fabric.theme.yellow': '黃色',
|
|
334
|
+
'fabrid.editor.rowNumbers': '列數'
|
|
315
335
|
};
|
|
@@ -8,7 +8,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
8
8
|
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
toolbarLabel: {
|
|
10
10
|
id: 'fabric.editor.toolbarLabel',
|
|
11
|
-
defaultMessage: 'Editor
|
|
11
|
+
defaultMessage: 'Editor',
|
|
12
12
|
description: 'Label for the ARIA region landmark'
|
|
13
13
|
},
|
|
14
14
|
pageActionsLabel: {
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "77.0
|
|
19
|
+
var packageVersion = "77.1.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "77.0
|
|
25
|
+
var packageVersion = "77.1.0";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { ACTION } from '../../analytics';
|
|
4
|
+
import { sendMBEAnalyticsEvent } from './utils';
|
|
5
|
+
export const useMultiBodiedExtensionActions = ({
|
|
6
|
+
updateActiveChild,
|
|
7
|
+
editorView,
|
|
8
|
+
getPos,
|
|
9
|
+
node,
|
|
10
|
+
eventDispatcher
|
|
11
|
+
}) => {
|
|
12
|
+
const actions = React.useMemo(() => {
|
|
13
|
+
return {
|
|
14
|
+
changeActive(index) {
|
|
15
|
+
const {
|
|
16
|
+
state,
|
|
17
|
+
dispatch
|
|
18
|
+
} = editorView;
|
|
19
|
+
const 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
|
+
const mbeNode = state.doc.nodeAt(state.tr.selection.from);
|
|
25
|
+
let desiredPos = state.tr.selection.from || 0;
|
|
26
|
+
if (mbeNode && mbeNode !== null && mbeNode !== void 0 && mbeNode.content) {
|
|
27
|
+
for (let i = 0; i <= index && i < (mbeNode === null || mbeNode === void 0 ? void 0 : (_mbeNode$content = mbeNode.content) === null || _mbeNode$content === void 0 ? void 0 : _mbeNode$content.childCount); i++) {
|
|
28
|
+
var _mbeNode$content, _mbeNode$content2, _mbeNode$content2$chi;
|
|
29
|
+
desiredPos += (mbeNode === null || mbeNode === void 0 ? void 0 : (_mbeNode$content2 = mbeNode.content) === null || _mbeNode$content2 === void 0 ? void 0 : (_mbeNode$content2$chi = _mbeNode$content2.child(i)) === null || _mbeNode$content2$chi === void 0 ? void 0 : _mbeNode$content2$chi.nodeSize) || 0;
|
|
30
|
+
}
|
|
31
|
+
dispatch(state.tr.setSelection(new TextSelection(state.doc.resolve(desiredPos))));
|
|
32
|
+
}
|
|
33
|
+
return updateActiveChildResult;
|
|
34
|
+
},
|
|
35
|
+
addChild() {
|
|
36
|
+
const {
|
|
37
|
+
state,
|
|
38
|
+
dispatch
|
|
39
|
+
} = editorView;
|
|
40
|
+
if (node.content.childCount >= node.attrs.maxFrames) {
|
|
41
|
+
throw new Error(`Cannot add more than ${node.attrs.maxFrames} frames`);
|
|
42
|
+
}
|
|
43
|
+
const p = state.schema.nodes.paragraph.createAndFill({});
|
|
44
|
+
if (!p) {
|
|
45
|
+
throw new Error('Could not create paragraph');
|
|
46
|
+
}
|
|
47
|
+
const frame = state.schema.nodes.extensionFrame.createAndFill({}, [p]);
|
|
48
|
+
const pos = getPos();
|
|
49
|
+
if (typeof pos !== 'number' || !frame) {
|
|
50
|
+
throw new Error('Could not create frame or position not valid');
|
|
51
|
+
}
|
|
52
|
+
const insertAt = Math.min((pos || 1) + node.content.size, state.doc.content.size);
|
|
53
|
+
dispatch(state.tr.insert(insertAt, frame));
|
|
54
|
+
if (eventDispatcher) {
|
|
55
|
+
sendMBEAnalyticsEvent(ACTION.ADD_CHILD, node, eventDispatcher);
|
|
56
|
+
}
|
|
57
|
+
return true;
|
|
58
|
+
},
|
|
59
|
+
getChildrenCount() {
|
|
60
|
+
return node.content.childCount;
|
|
61
|
+
},
|
|
62
|
+
removeChild(index) {
|
|
63
|
+
const pos = getPos();
|
|
64
|
+
// TODO: Add child index validation here, don't trust this data
|
|
65
|
+
if (typeof pos !== 'number' || typeof index !== 'number') {
|
|
66
|
+
throw new Error('Position or index not valid');
|
|
67
|
+
}
|
|
68
|
+
const {
|
|
69
|
+
state,
|
|
70
|
+
dispatch
|
|
71
|
+
} = editorView;
|
|
72
|
+
if (node.content.childCount === 1) {
|
|
73
|
+
const tr = state.tr;
|
|
74
|
+
tr.deleteRange(pos, pos + node.content.size);
|
|
75
|
+
dispatch(tr);
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
const $pos = state.doc.resolve(pos);
|
|
79
|
+
const $startNodePos = state.doc.resolve($pos.start($pos.depth + 1));
|
|
80
|
+
const startFramePosition = $startNodePos.posAtIndex(index);
|
|
81
|
+
const maybeFrameNode = state.doc.nodeAt(startFramePosition);
|
|
82
|
+
if (!maybeFrameNode) {
|
|
83
|
+
throw new Error('Could not find frame node');
|
|
84
|
+
}
|
|
85
|
+
const endFramePosition = maybeFrameNode.content.size + startFramePosition;
|
|
86
|
+
const tr = state.tr;
|
|
87
|
+
tr.deleteRange(startFramePosition, endFramePosition);
|
|
88
|
+
dispatch(tr);
|
|
89
|
+
if (eventDispatcher) {
|
|
90
|
+
sendMBEAnalyticsEvent(ACTION.REMOVE_CHILD, node, eventDispatcher);
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
93
|
+
},
|
|
94
|
+
updateParameters(parameters) {
|
|
95
|
+
const {
|
|
96
|
+
state,
|
|
97
|
+
dispatch
|
|
98
|
+
} = editorView;
|
|
99
|
+
const pos = getPos();
|
|
100
|
+
if (typeof pos !== 'number') {
|
|
101
|
+
throw new Error('Position not valid');
|
|
102
|
+
}
|
|
103
|
+
const tr = state.tr.setNodeMarkup(pos, undefined, {
|
|
104
|
+
...node.attrs,
|
|
105
|
+
parameters: {
|
|
106
|
+
...node.attrs.parameters,
|
|
107
|
+
macroParams: parameters
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
dispatch(tr);
|
|
111
|
+
if (eventDispatcher) {
|
|
112
|
+
sendMBEAnalyticsEvent(ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
|
|
113
|
+
}
|
|
114
|
+
return true;
|
|
115
|
+
},
|
|
116
|
+
getChildren() {
|
|
117
|
+
var _state$doc$nodeAt;
|
|
118
|
+
const {
|
|
119
|
+
state
|
|
120
|
+
} = editorView;
|
|
121
|
+
const pos = getPos();
|
|
122
|
+
if (typeof pos !== 'number') {
|
|
123
|
+
return [];
|
|
124
|
+
}
|
|
125
|
+
const children = (_state$doc$nodeAt = state.doc.nodeAt(pos)) === null || _state$doc$nodeAt === void 0 ? void 0 : _state$doc$nodeAt.content;
|
|
126
|
+
if (eventDispatcher) {
|
|
127
|
+
sendMBEAnalyticsEvent(ACTION.GET_CHILDERN, node, eventDispatcher);
|
|
128
|
+
}
|
|
129
|
+
return children ? children.toJSON() : [];
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}, [node, editorView, getPos, updateActiveChild, eventDispatcher]);
|
|
133
|
+
return actions;
|
|
134
|
+
};
|