@atlaskit/editor-common 99.6.1 → 99.7.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 +24 -0
- package/dist/cjs/i18n/cs.js +5 -0
- package/dist/cjs/i18n/da.js +5 -0
- package/dist/cjs/i18n/de.js +6 -0
- package/dist/cjs/i18n/en.js +80 -0
- package/dist/cjs/i18n/en_GB.js +80 -0
- package/dist/cjs/i18n/en_ZZ.js +80 -0
- package/dist/cjs/i18n/es.js +10 -0
- package/dist/cjs/i18n/fi.js +5 -0
- package/dist/cjs/i18n/fr.js +6 -0
- package/dist/cjs/i18n/hu.js +6 -0
- package/dist/cjs/i18n/it.js +5 -0
- package/dist/cjs/i18n/ja.js +5 -0
- package/dist/cjs/i18n/ko.js +5 -0
- package/dist/cjs/i18n/nb.js +5 -0
- package/dist/cjs/i18n/nl.js +5 -0
- package/dist/cjs/i18n/pl.js +6 -0
- package/dist/cjs/i18n/pt_BR.js +5 -0
- package/dist/cjs/i18n/ru.js +9 -0
- package/dist/cjs/i18n/sv.js +5 -0
- package/dist/cjs/i18n/th.js +5 -0
- package/dist/cjs/i18n/tr.js +5 -0
- package/dist/cjs/i18n/uk.js +9 -0
- package/dist/cjs/i18n/vi.js +6 -0
- package/dist/cjs/i18n/zh.js +5 -0
- package/dist/cjs/i18n/zh_TW.js +5 -0
- package/dist/cjs/link/LinkSearch/index.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +41 -4
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +75 -19
- package/dist/cjs/react-node-view/onVisibleObserverFactory.js +48 -0
- package/dist/cjs/safe-plugin/index.js +1 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +1 -0
- package/dist/cjs/utils/compare-props.js +2 -2
- package/dist/cjs/utils/compareNodes.js +2 -2
- package/dist/cjs/utils/filter/privacy-filter.js +3 -3
- package/dist/cjs/utils/index.js +6 -6
- package/dist/cjs/utils/performance/measure-tti.js +3 -3
- package/dist/cjs/utils/track-unsupported-content.js +2 -2
- package/dist/cjs/utils/validator.js +3 -3
- package/dist/cjs/with-plugin-state/index.js +1 -0
- package/dist/es2019/i18n/cs.js +5 -0
- package/dist/es2019/i18n/da.js +5 -0
- package/dist/es2019/i18n/de.js +6 -0
- package/dist/es2019/i18n/en.js +80 -0
- package/dist/es2019/i18n/en_GB.js +80 -0
- package/dist/es2019/i18n/en_ZZ.js +80 -0
- package/dist/es2019/i18n/es.js +10 -0
- package/dist/es2019/i18n/fi.js +5 -0
- package/dist/es2019/i18n/fr.js +6 -0
- package/dist/es2019/i18n/hu.js +6 -0
- package/dist/es2019/i18n/it.js +5 -0
- package/dist/es2019/i18n/ja.js +5 -0
- package/dist/es2019/i18n/ko.js +5 -0
- package/dist/es2019/i18n/nb.js +5 -0
- package/dist/es2019/i18n/nl.js +5 -0
- package/dist/es2019/i18n/pl.js +6 -0
- package/dist/es2019/i18n/pt_BR.js +5 -0
- package/dist/es2019/i18n/ru.js +9 -0
- package/dist/es2019/i18n/sv.js +5 -0
- package/dist/es2019/i18n/th.js +5 -0
- package/dist/es2019/i18n/tr.js +5 -0
- package/dist/es2019/i18n/uk.js +9 -0
- package/dist/es2019/i18n/vi.js +6 -0
- package/dist/es2019/i18n/zh.js +5 -0
- package/dist/es2019/i18n/zh_TW.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +39 -4
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +79 -20
- package/dist/es2019/react-node-view/onVisibleObserverFactory.js +31 -0
- package/dist/es2019/safe-plugin/index.js +1 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/i18n/cs.js +5 -0
- package/dist/esm/i18n/da.js +5 -0
- package/dist/esm/i18n/de.js +6 -0
- package/dist/esm/i18n/en.js +80 -0
- package/dist/esm/i18n/en_GB.js +80 -0
- package/dist/esm/i18n/en_ZZ.js +80 -0
- package/dist/esm/i18n/es.js +10 -0
- package/dist/esm/i18n/fi.js +5 -0
- package/dist/esm/i18n/fr.js +6 -0
- package/dist/esm/i18n/hu.js +6 -0
- package/dist/esm/i18n/it.js +5 -0
- package/dist/esm/i18n/ja.js +5 -0
- package/dist/esm/i18n/ko.js +5 -0
- package/dist/esm/i18n/nb.js +5 -0
- package/dist/esm/i18n/nl.js +5 -0
- package/dist/esm/i18n/pl.js +6 -0
- package/dist/esm/i18n/pt_BR.js +5 -0
- package/dist/esm/i18n/ru.js +9 -0
- package/dist/esm/i18n/sv.js +5 -0
- package/dist/esm/i18n/th.js +5 -0
- package/dist/esm/i18n/tr.js +5 -0
- package/dist/esm/i18n/uk.js +9 -0
- package/dist/esm/i18n/vi.js +6 -0
- package/dist/esm/i18n/zh.js +5 -0
- package/dist/esm/i18n/zh_TW.js +5 -0
- package/dist/esm/link/LinkSearch/index.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +41 -4
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +75 -19
- package/dist/esm/react-node-view/onVisibleObserverFactory.js +41 -0
- package/dist/esm/safe-plugin/index.js +1 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -0
- package/dist/esm/utils/compare-props.js +3 -2
- package/dist/esm/utils/compareNodes.js +2 -2
- package/dist/esm/utils/filter/privacy-filter.js +3 -3
- package/dist/esm/utils/index.js +6 -6
- package/dist/esm/utils/performance/measure-tti.js +3 -3
- package/dist/esm/utils/track-unsupported-content.js +3 -2
- package/dist/esm/utils/validator.js +3 -3
- package/dist/esm/with-plugin-state/index.js +1 -0
- package/dist/types/i18n/cs.d.ts +5 -0
- package/dist/types/i18n/da.d.ts +5 -0
- package/dist/types/i18n/de.d.ts +6 -0
- package/dist/types/i18n/en.d.ts +80 -0
- package/dist/types/i18n/en_GB.d.ts +80 -0
- package/dist/types/i18n/en_ZZ.d.ts +80 -0
- package/dist/types/i18n/es.d.ts +10 -0
- package/dist/types/i18n/fi.d.ts +5 -0
- package/dist/types/i18n/fr.d.ts +6 -0
- package/dist/types/i18n/hu.d.ts +6 -0
- package/dist/types/i18n/it.d.ts +5 -0
- package/dist/types/i18n/ja.d.ts +5 -0
- package/dist/types/i18n/ko.d.ts +5 -0
- package/dist/types/i18n/nb.d.ts +5 -0
- package/dist/types/i18n/nl.d.ts +5 -0
- package/dist/types/i18n/pl.d.ts +6 -0
- package/dist/types/i18n/pt_BR.d.ts +5 -0
- package/dist/types/i18n/ru.d.ts +9 -0
- package/dist/types/i18n/sv.d.ts +5 -0
- package/dist/types/i18n/th.d.ts +5 -0
- package/dist/types/i18n/tr.d.ts +5 -0
- package/dist/types/i18n/uk.d.ts +9 -0
- package/dist/types/i18n/vi.d.ts +6 -0
- package/dist/types/i18n/zh.d.ts +5 -0
- package/dist/types/i18n/zh_TW.d.ts +5 -0
- package/dist/types/react-node-view/onVisibleObserverFactory.d.ts +8 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +5 -0
- package/dist/types-ts4.5/i18n/da.d.ts +5 -0
- package/dist/types-ts4.5/i18n/de.d.ts +6 -0
- package/dist/types-ts4.5/i18n/en.d.ts +80 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +80 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +80 -0
- package/dist/types-ts4.5/i18n/es.d.ts +10 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +5 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +6 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +6 -0
- package/dist/types-ts4.5/i18n/it.d.ts +5 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +5 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +5 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +5 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +5 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +6 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +5 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +9 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +5 -0
- package/dist/types-ts4.5/i18n/th.d.ts +5 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +5 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +9 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +6 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +5 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +5 -0
- package/dist/types-ts4.5/react-node-view/onVisibleObserverFactory.d.ts +8 -0
- package/package.json +13 -10
package/dist/esm/i18n/th.js
CHANGED
|
@@ -86,6 +86,7 @@ export default {
|
|
|
86
86
|
'fabric.editor.columnMovedRight': 'คอลัมน์ย้ายไปทางขวาที่ {index} จาก {total}',
|
|
87
87
|
'fabric.editor.columnSelected': 'เลือกคอลัมน์ {index} จาก {total} แล้ว',
|
|
88
88
|
'fabric.editor.columns': 'มุมมอง',
|
|
89
|
+
'fabric.editor.columns.advanced.layout.description': '{numberOfColumns, plural, other {แทรกคอลัมน์ที่เท่ากัน {numberOfColumns} คอลัมน์}}',
|
|
89
90
|
'fabric.editor.columns.description': 'ปรับโครงสร้างหน้าข้อมูลของคุณโดยใช้การแบ่งส่วน',
|
|
90
91
|
'fabric.editor.columnsAreInserted': '{count, plural, other {แทรกแล้ว {count} คอลัมน์}}',
|
|
91
92
|
'fabric.editor.columnsAreRemoved': '{count, plural, other {ลบแล้ว {count} คอลัมน์}}',
|
|
@@ -296,6 +297,7 @@ export default {
|
|
|
296
297
|
'fabric.editor.keyboardShortcuts': 'ปุ่มลัด',
|
|
297
298
|
'fabric.editor.layout.columnOption': '{count, plural, other {{count} คอลัมน์}}',
|
|
298
299
|
'fabric.editor.layout.placeholder': 'เพิ่มเนื้อหา',
|
|
300
|
+
'fabric.editor.layout.resizeLayout': 'ปรับขนาดเค้าโครง',
|
|
299
301
|
'fabric.editor.layoutFixedWidth': 'กลับไปตรงกลาง',
|
|
300
302
|
'fabric.editor.layoutFullWidth': 'แสดงแบบเต็มความกว้าง',
|
|
301
303
|
'fabric.editor.layoutWide': 'แสดงแบบกว้างขึ้น',
|
|
@@ -363,6 +365,8 @@ export default {
|
|
|
363
365
|
'fabric.editor.notePanel.description': 'เพิ่มข้อความบันทึกในแผงสี',
|
|
364
366
|
'fabric.editor.numberedColumn': 'คอลัมน์แบบมีตัวเลข',
|
|
365
367
|
'fabric.editor.off': 'ปิด {formattingType}',
|
|
368
|
+
'fabric.editor.offlineErrorFallbackDescription': 'ลองโหลดหน้าข้อมูลใหม่อีกครั้ง',
|
|
369
|
+
'fabric.editor.offlineErrorFallbackHeading': 'เกิดข้อผิดพลาดบางอย่าง!',
|
|
366
370
|
'fabric.editor.on': 'เปิด {formattingType}',
|
|
367
371
|
'fabric.editor.openCellOptions': 'เปิดตัวเลือกช่องข้อมูล',
|
|
368
372
|
'fabric.editor.openLink': 'เปิดลิงก์ในแถบใหม่',
|
|
@@ -501,6 +505,7 @@ export default {
|
|
|
501
505
|
'fabric.editor.unableToOpenLink': 'ไม่สามารถเปิดลิงก์นี้ได้',
|
|
502
506
|
'fabric.editor.underline': 'ขีดเส้นใต้',
|
|
503
507
|
'fabric.editor.undo': 'เลิกทำ',
|
|
508
|
+
'fabric.editor.unknown.label': 'ไม่รู้จัก',
|
|
504
509
|
'fabric.editor.unlink': 'ปลดการเชื่อมโยง',
|
|
505
510
|
'fabric.editor.unorderedList': 'การแสดงรายการแบบไม่มีเลขลำดับ',
|
|
506
511
|
'fabric.editor.unorderedList.description': 'สร้างรายการแบบไม่มีเลขลำดับ',
|
package/dist/esm/i18n/tr.js
CHANGED
|
@@ -86,6 +86,7 @@ export default {
|
|
|
86
86
|
'fabric.editor.columnMovedRight': 'Sütun {total} sütundan {index}. sütunun sağına taşındı',
|
|
87
87
|
'fabric.editor.columnSelected': 'Sütun {index}/{total} seçildi',
|
|
88
88
|
'fabric.editor.columns': 'Düzenler',
|
|
89
|
+
'fabric.editor.columns.advanced.layout.description': '{numberOfColumns, plural, one {{numberOfColumns} eşit sütun ekleyin} other {{numberOfColumns} eşit sütun ekleyin}}',
|
|
89
90
|
'fabric.editor.columns.description': 'Bölümler aracılığıyla sayfanızı yapılandırın',
|
|
90
91
|
'fabric.editor.columnsAreInserted': '{count, plural, one {Bir sütun eklendi} other {{count} sütun eklendi}}',
|
|
91
92
|
'fabric.editor.columnsAreRemoved': '{count, plural, one {Sütun kaldırıldı} other {{count} sütun kaldırıldı}}',
|
|
@@ -296,6 +297,7 @@ export default {
|
|
|
296
297
|
'fabric.editor.keyboardShortcuts': 'Klavye kısayolları',
|
|
297
298
|
'fabric.editor.layout.columnOption': '{count, plural, one {Sütun} other {{count} Sütun}}',
|
|
298
299
|
'fabric.editor.layout.placeholder': 'İçerik ekleyin',
|
|
300
|
+
'fabric.editor.layout.resizeLayout': 'Yerleşimi yeniden boyutlandır',
|
|
299
301
|
'fabric.editor.layoutFixedWidth': 'Ortaya getir',
|
|
300
302
|
'fabric.editor.layoutFullWidth': 'Tam genişliğe geç',
|
|
301
303
|
'fabric.editor.layoutWide': 'Genişlet',
|
|
@@ -363,6 +365,8 @@ export default {
|
|
|
363
365
|
'fabric.editor.notePanel.description': 'Renkli bir panoya not ekleyin',
|
|
364
366
|
'fabric.editor.numberedColumn': 'Numaralı sütun',
|
|
365
367
|
'fabric.editor.off': '{formattingType} Kapalı',
|
|
368
|
+
'fabric.editor.offlineErrorFallbackDescription': 'Sayfayı yeniden yüklemeyi deneyin.',
|
|
369
|
+
'fabric.editor.offlineErrorFallbackHeading': 'Bir hata oluştu!',
|
|
366
370
|
'fabric.editor.on': '{formattingType} Açık',
|
|
367
371
|
'fabric.editor.openCellOptions': 'Hücre seçeneklerini aç',
|
|
368
372
|
'fabric.editor.openLink': 'Bağlantıyı yeni sekmede açın',
|
|
@@ -501,6 +505,7 @@ export default {
|
|
|
501
505
|
'fabric.editor.unableToOpenLink': 'Bu bağlantı açılamıyor',
|
|
502
506
|
'fabric.editor.underline': 'Altı çizili',
|
|
503
507
|
'fabric.editor.undo': 'Geri al',
|
|
508
|
+
'fabric.editor.unknown.label': 'Bilinmiyor',
|
|
504
509
|
'fabric.editor.unlink': 'Bağlantıyı kaldır',
|
|
505
510
|
'fabric.editor.unorderedList': 'Madde işaretli liste',
|
|
506
511
|
'fabric.editor.unorderedList.description': 'Sırasız liste oluşturun',
|
package/dist/esm/i18n/uk.js
CHANGED
|
@@ -22,6 +22,10 @@ export default {
|
|
|
22
22
|
'fabric.editor.addMediaFiles': 'Додати зображення, відео або файл',
|
|
23
23
|
'fabric.editor.addRowAbove': 'Додати рядок угорі',
|
|
24
24
|
'fabric.editor.addRowBelow': 'Додати рядок знизу',
|
|
25
|
+
'fabric.editor.ai.proactive.error.markdownErrorMessage': 'Не вдалося створити попередню версію. Закрийте діалогове вікно й повторіть спробу.',
|
|
26
|
+
'fabric.editor.ai.proactive.error.unhandledErrorMessage': 'Сталася помилка. Закрийте діалогове вікно й повторіть спробу.',
|
|
27
|
+
'fabric.editor.ai.proactive.preview.insertBelowProactiveRecommendation': 'Вставити знизу',
|
|
28
|
+
'fabric.editor.ai.proactive.preview.replaceProactiveRecommendation': 'Замінити',
|
|
25
29
|
'fabric.editor.ai.selectionToolbar.define.disabled.tooltip': 'Позначте термін, акронім або абревіатуру',
|
|
26
30
|
'fabric.editor.ai.selectionToolbar.define.title': 'Визначити',
|
|
27
31
|
'fabric.editor.alignCenter': 'Вирівнювання по центру',
|
|
@@ -86,6 +90,7 @@ export default {
|
|
|
86
90
|
'fabric.editor.columnMovedRight': 'Стовпець переміщено праворуч на позицію {index} з {total}',
|
|
87
91
|
'fabric.editor.columnSelected': 'Вибрано стовпець {index} з {total}',
|
|
88
92
|
'fabric.editor.columns': 'Макет',
|
|
93
|
+
'fabric.editor.columns.advanced.layout.description': '{numberOfColumns, plural, one {Вставити {numberOfColumns} однаковий стовпець} few {Вставити {numberOfColumns} однакові стовпці} many {Вставити {numberOfColumns} однакових стовпців} other {Вставити {numberOfColumns} однакових стовпців}}',
|
|
89
94
|
'fabric.editor.columns.description': 'Впорядкувати сторінку за допомогою розділів',
|
|
90
95
|
'fabric.editor.columnsAreInserted': '{count, plural, one {Додано {count} стовпець} few {Додано {count} стовпці} many {Додано {count} стовпців} other {Додано {count} стовпців}}',
|
|
91
96
|
'fabric.editor.columnsAreRemoved': '{count, plural, one {Видалено {count} стовпець} few {Видалено {count} стовпці} many {Видалено {count} стовпців} other {Видалено {count} стовпців}}',
|
|
@@ -296,6 +301,7 @@ export default {
|
|
|
296
301
|
'fabric.editor.keyboardShortcuts': 'Гарячі клавіші',
|
|
297
302
|
'fabric.editor.layout.columnOption': '{count, plural, one {{count} стовпець} few {{count} стовпці} many {{count} стовпців} other {{count} стовпців}}',
|
|
298
303
|
'fabric.editor.layout.placeholder': 'Додайте вміст',
|
|
304
|
+
'fabric.editor.layout.resizeLayout': 'Зміна розміру макета',
|
|
299
305
|
'fabric.editor.layoutFixedWidth': 'Стандартне відображення',
|
|
300
306
|
'fabric.editor.layoutFullWidth': 'Відобразити повну ширину',
|
|
301
307
|
'fabric.editor.layoutWide': 'Розширити',
|
|
@@ -363,6 +369,8 @@ export default {
|
|
|
363
369
|
'fabric.editor.notePanel.description': 'Додати примітку на панель із кольорами',
|
|
364
370
|
'fabric.editor.numberedColumn': 'Нумерований стовпець',
|
|
365
371
|
'fabric.editor.off': '{formattingType} вимкнуто',
|
|
372
|
+
'fabric.editor.offlineErrorFallbackDescription': 'Спробуйте перезавантажити сторінку.',
|
|
373
|
+
'fabric.editor.offlineErrorFallbackHeading': 'Сталася помилка',
|
|
366
374
|
'fabric.editor.on': '{formattingType} увімкнуто',
|
|
367
375
|
'fabric.editor.openCellOptions': 'Відкрити параметри клітинки',
|
|
368
376
|
'fabric.editor.openLink': 'Відкрити посилання в новій вкладці',
|
|
@@ -501,6 +509,7 @@ export default {
|
|
|
501
509
|
'fabric.editor.unableToOpenLink': 'Не вдалося відкрити посилання',
|
|
502
510
|
'fabric.editor.underline': 'Підкреслювання',
|
|
503
511
|
'fabric.editor.undo': 'Скасувати',
|
|
512
|
+
'fabric.editor.unknown.label': 'Невідомо',
|
|
504
513
|
'fabric.editor.unlink': 'Відв’язати',
|
|
505
514
|
'fabric.editor.unorderedList': 'Маркований список',
|
|
506
515
|
'fabric.editor.unorderedList.description': 'Створити невпорядкований список',
|
package/dist/esm/i18n/vi.js
CHANGED
|
@@ -86,6 +86,7 @@ export default {
|
|
|
86
86
|
'fabric.editor.columnMovedRight': 'Đã di chuyển cột sang phải đến vị trí {index}/{total}',
|
|
87
87
|
'fabric.editor.columnSelected': 'Đã chọn cột {index}/{total}',
|
|
88
88
|
'fabric.editor.columns': 'Bố cục',
|
|
89
|
+
'fabric.editor.columns.advanced.layout.description': '{numberOfColumns, plural, other {Chèn {numberOfColumns} cột bằng nhau}}',
|
|
89
90
|
'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',
|
|
90
91
|
'fabric.editor.columnsAreInserted': '{count, plural, other {Đã chèn {count} cột}}',
|
|
91
92
|
'fabric.editor.columnsAreRemoved': '{count, plural, other {Đã xóa {count} cột}}',
|
|
@@ -296,6 +297,7 @@ export default {
|
|
|
296
297
|
'fabric.editor.keyboardShortcuts': 'Phím tắt bàn phím',
|
|
297
298
|
'fabric.editor.layout.columnOption': '{count, plural, other {{count} cột}}',
|
|
298
299
|
'fabric.editor.layout.placeholder': 'Thêm nội dung',
|
|
300
|
+
'fabric.editor.layout.resizeLayout': 'Đổi cỡ bố cục',
|
|
299
301
|
'fabric.editor.layoutFixedWidth': 'Quay lại chính giữa',
|
|
300
302
|
'fabric.editor.layoutFullWidth': 'Hiển thị toàn chiều rộng',
|
|
301
303
|
'fabric.editor.layoutWide': 'Hiển thị rộng hơn',
|
|
@@ -363,6 +365,8 @@ export default {
|
|
|
363
365
|
'fabric.editor.notePanel.description': 'Thêm ghi chú bằng ô màu',
|
|
364
366
|
'fabric.editor.numberedColumn': 'Cột được đánh số',
|
|
365
367
|
'fabric.editor.off': '{formattingType} đang tắt',
|
|
368
|
+
'fabric.editor.offlineErrorFallbackDescription': 'Hãy thử tải lại trang.',
|
|
369
|
+
'fabric.editor.offlineErrorFallbackHeading': 'Đã xảy ra lỗi!',
|
|
366
370
|
'fabric.editor.on': '{formattingType} đang bật',
|
|
367
371
|
'fabric.editor.openCellOptions': 'Mở tùy chọn ô',
|
|
368
372
|
'fabric.editor.openLink': 'Mở liên kết trong tab mới',
|
|
@@ -467,6 +471,7 @@ export default {
|
|
|
467
471
|
'fabric.editor.text.formatting.off': 'Định dạng văn bản đang tắt',
|
|
468
472
|
'fabric.editor.textColor': 'Màu văn bản {selectedColorName}',
|
|
469
473
|
'fabric.editor.textColorTooltip': 'Màu văn bản',
|
|
474
|
+
'fabric.editor.textFormat': 'Định dạng văn bản',
|
|
470
475
|
'fabric.editor.textFormatting': 'Định dang văn bản',
|
|
471
476
|
'fabric.editor.textStyles': 'Kiểu văn bản {blockTypeName}',
|
|
472
477
|
'fabric.editor.textStylesTooltip': 'Kiểu văn bản',
|
|
@@ -500,6 +505,7 @@ export default {
|
|
|
500
505
|
'fabric.editor.unableToOpenLink': 'Không thể mở liên kết này',
|
|
501
506
|
'fabric.editor.underline': 'Gạch dưới',
|
|
502
507
|
'fabric.editor.undo': 'Hoàn tác',
|
|
508
|
+
'fabric.editor.unknown.label': 'Không xác định',
|
|
503
509
|
'fabric.editor.unlink': 'Hủy liên kết',
|
|
504
510
|
'fabric.editor.unorderedList': 'Danh sách dấu đầu dòng',
|
|
505
511
|
'fabric.editor.unorderedList.description': 'Tạo một danh sách kiểu không sắp xếp',
|
package/dist/esm/i18n/zh.js
CHANGED
|
@@ -86,6 +86,7 @@ export default {
|
|
|
86
86
|
'fabric.editor.columnMovedRight': '列已向右移至第 {index} 列(共 {total} 列)',
|
|
87
87
|
'fabric.editor.columnSelected': '已选中第 {index} 列(共 {total} 列)',
|
|
88
88
|
'fabric.editor.columns': '布局',
|
|
89
|
+
'fabric.editor.columns.advanced.layout.description': '{numberOfColumns, plural, other {插入 {numberOfColumns} 个相等的列}}',
|
|
89
90
|
'fabric.editor.columns.description': '使用分段组织页面',
|
|
90
91
|
'fabric.editor.columnsAreInserted': '{count, plural, other {已插入 {count} 列}}',
|
|
91
92
|
'fabric.editor.columnsAreRemoved': '{count, plural, other {已移除 {count} 列}}',
|
|
@@ -296,6 +297,7 @@ export default {
|
|
|
296
297
|
'fabric.editor.keyboardShortcuts': '键盘快捷键',
|
|
297
298
|
'fabric.editor.layout.columnOption': '{count, plural, other {{count} 列}}',
|
|
298
299
|
'fabric.editor.layout.placeholder': '添加内容',
|
|
300
|
+
'fabric.editor.layout.resizeLayout': '调整布局大小',
|
|
299
301
|
'fabric.editor.layoutFixedWidth': '返回至中心',
|
|
300
302
|
'fabric.editor.layoutFullWidth': '显示全宽',
|
|
301
303
|
'fabric.editor.layoutWide': '显示宽屏',
|
|
@@ -363,6 +365,8 @@ export default {
|
|
|
363
365
|
'fabric.editor.notePanel.description': '在彩色面板添加注释',
|
|
364
366
|
'fabric.editor.numberedColumn': '编号列',
|
|
365
367
|
'fabric.editor.off': '{formattingType}已关闭',
|
|
368
|
+
'fabric.editor.offlineErrorFallbackDescription': '请尝试重新加载该页面。',
|
|
369
|
+
'fabric.editor.offlineErrorFallbackHeading': '出错了!',
|
|
366
370
|
'fabric.editor.on': '{formattingType}已开启',
|
|
367
371
|
'fabric.editor.openCellOptions': '打开单元格选项',
|
|
368
372
|
'fabric.editor.openLink': '在新选项卡打开链接',
|
|
@@ -501,6 +505,7 @@ export default {
|
|
|
501
505
|
'fabric.editor.unableToOpenLink': '无法打开此链接',
|
|
502
506
|
'fabric.editor.underline': '下划线',
|
|
503
507
|
'fabric.editor.undo': '撤消',
|
|
508
|
+
'fabric.editor.unknown.label': '未知',
|
|
504
509
|
'fabric.editor.unlink': '取消链接',
|
|
505
510
|
'fabric.editor.unorderedList': '无序列表',
|
|
506
511
|
'fabric.editor.unorderedList.description': '创建无序列表',
|
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -86,6 +86,7 @@ export default {
|
|
|
86
86
|
'fabric.editor.columnMovedRight': '直欄已右移至第 {index} 欄,總共有 {total} 欄',
|
|
87
87
|
'fabric.editor.columnSelected': '已選取第 {index} 欄,總共有 {total} 欄',
|
|
88
88
|
'fabric.editor.columns': '版面配置',
|
|
89
|
+
'fabric.editor.columns.advanced.layout.description': '{numberOfColumns, plural, other {插入 {numberOfColumns} 個相等的欄}}',
|
|
89
90
|
'fabric.editor.columns.description': '使用區段建立頁面的結構',
|
|
90
91
|
'fabric.editor.columnsAreInserted': '{count, plural, other {已插入 {count} 欄}}',
|
|
91
92
|
'fabric.editor.columnsAreRemoved': '{count, plural, other {已移除 {count} 欄}}',
|
|
@@ -296,6 +297,7 @@ export default {
|
|
|
296
297
|
'fabric.editor.keyboardShortcuts': '鍵盤快速鍵',
|
|
297
298
|
'fabric.editor.layout.columnOption': '{count, plural, other {{count} 欄}}',
|
|
298
299
|
'fabric.editor.layout.placeholder': '新增內容',
|
|
300
|
+
'fabric.editor.layout.resizeLayout': '重新調整版面配置的大小',
|
|
299
301
|
'fabric.editor.layoutFixedWidth': '返回中央',
|
|
300
302
|
'fabric.editor.layoutFullWidth': '採用完整寬度',
|
|
301
303
|
'fabric.editor.layoutWide': '採用寬版',
|
|
@@ -363,6 +365,8 @@ export default {
|
|
|
363
365
|
'fabric.editor.notePanel.description': '以彩色面板新增附註',
|
|
364
366
|
'fabric.editor.numberedColumn': '編號直欄',
|
|
365
367
|
'fabric.editor.off': '{formattingType} 關閉',
|
|
368
|
+
'fabric.editor.offlineErrorFallbackDescription': '請嘗試重新載入頁面。',
|
|
369
|
+
'fabric.editor.offlineErrorFallbackHeading': '發生錯誤!',
|
|
366
370
|
'fabric.editor.on': '{formattingType} 開啟',
|
|
367
371
|
'fabric.editor.openCellOptions': '開啟儲存格選項',
|
|
368
372
|
'fabric.editor.openLink': '在新的索引標籤中開啟連結',
|
|
@@ -501,6 +505,7 @@ export default {
|
|
|
501
505
|
'fabric.editor.unableToOpenLink': '無法開啟此連結',
|
|
502
506
|
'fabric.editor.underline': '底線',
|
|
503
507
|
'fabric.editor.undo': '復原',
|
|
508
|
+
'fabric.editor.unknown.label': '未知',
|
|
504
509
|
'fabric.editor.unlink': '取消連結',
|
|
505
510
|
'fabric.editor.unorderedList': '項目符號清單',
|
|
506
511
|
'fabric.editor.unorderedList.description': '建立未排序的清單',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _readOnlyError from "@babel/runtime/helpers/readOnlyError";
|
|
1
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "99.
|
|
10
|
+
var packageVersion = "99.7.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth, akLayoutGutterOffset, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
import { BODIED_EXT_PADDING } from '../styles/shared/extension';
|
|
4
5
|
import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles/shared/layout';
|
|
6
|
+
import { tableCellPadding } from '../styles/shared/table';
|
|
5
7
|
import { absoluteBreakoutWidth } from '../utils/breakout';
|
|
6
8
|
var GRID_SIZE = 8;
|
|
7
9
|
export var layoutToWidth = {
|
|
@@ -44,7 +46,7 @@ export var getParentNodeWidth = function getParentNodeWidth(pos, state, containe
|
|
|
44
46
|
return state['contextPanelPluginKey$'];
|
|
45
47
|
}
|
|
46
48
|
};
|
|
47
|
-
if (node.type === schema.nodes.layoutSection) {
|
|
49
|
+
if (node.type === schema.nodes.layoutSection && !fg('platform_editor_nested_tables_resizing')) {
|
|
48
50
|
var _contextPanelPluginKe, _contextPanelPluginKe2;
|
|
49
51
|
parentWidth += akLayoutGutterOffset * 2; // extra width that gets added to layout
|
|
50
52
|
|
|
@@ -61,10 +63,27 @@ export var getParentNodeWidth = function getParentNodeWidth(pos, state, containe
|
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
|
-
|
|
65
|
-
// account for the padding of the parent node
|
|
66
66
|
switch (node.type) {
|
|
67
67
|
case schema.nodes.layoutSection:
|
|
68
|
+
if (fg('platform_editor_nested_tables_resizing')) {
|
|
69
|
+
var _contextPanelPluginKe3, _contextPanelPluginKe4;
|
|
70
|
+
parentWidth += akLayoutGutterOffset * 2; // extra width that gets added to layout
|
|
71
|
+
|
|
72
|
+
// Calculate width of parent layout column when
|
|
73
|
+
// Parallel layout with viewport greater than 1024px
|
|
74
|
+
// OR side panel of an extension is open and change the node width to smaller than containerWidth
|
|
75
|
+
if (containerWidth.width > gridMediumMaxWidth || ((_contextPanelPluginKe3 = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe3 === void 0 ? void 0 : _contextPanelPluginKe3.contents.length) > 0 && ((_contextPanelPluginKe4 = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe4 === void 0 ? void 0 : _contextPanelPluginKe4.contents[0]) !== undefined) {
|
|
76
|
+
parentWidth -= (LAYOUT_SECTION_MARGIN + 2) * (node.childCount - 1); // margin between sections
|
|
77
|
+
var _$pos = state.doc.resolve(pos);
|
|
78
|
+
var _column = findParentNodeOfTypeClosestToPos(_$pos, [state.schema.nodes.layoutColumn]);
|
|
79
|
+
if (_column && _column.node && !isNaN(_column.node.attrs.width)) {
|
|
80
|
+
// get exact width of parent layout column using node attrs
|
|
81
|
+
parentWidth = Math.round(parentWidth * _column.node.attrs.width * 0.01);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// account for the padding of the parent node
|
|
68
87
|
parentWidth -= LAYOUT_COLUMN_PADDING * 2;
|
|
69
88
|
break;
|
|
70
89
|
case schema.nodes.bodiedExtension:
|
|
@@ -83,6 +102,19 @@ export var getParentNodeWidth = function getParentNodeWidth(pos, state, containe
|
|
|
83
102
|
// padding left
|
|
84
103
|
parentWidth -= GRID_SIZE * 4 - GRID_SIZE / 2;
|
|
85
104
|
break;
|
|
105
|
+
case schema.nodes.tableCell:
|
|
106
|
+
case schema.nodes.tableHeader:
|
|
107
|
+
if (fg('platform_editor_nested_tables_resizing')) {
|
|
108
|
+
// Calculate the available column width
|
|
109
|
+
if (Array.isArray(node.attrs.colwidth)) {
|
|
110
|
+
parentWidth = node.attrs.colwidth.slice(0, node.attrs.colspan).reduce(function (sum, width) {
|
|
111
|
+
return sum + width;
|
|
112
|
+
}, 0);
|
|
113
|
+
}
|
|
114
|
+
// Compensate for padding
|
|
115
|
+
parentWidth -= tableCellPadding * 2;
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
86
118
|
}
|
|
87
119
|
parentWidth -= 2; // border
|
|
88
120
|
|
|
@@ -93,7 +125,12 @@ var getNestedParentNode = function getNestedParentNode(tablePos, state) {
|
|
|
93
125
|
return null;
|
|
94
126
|
}
|
|
95
127
|
var $pos = state.doc.resolve(tablePos);
|
|
96
|
-
var parent
|
|
128
|
+
var parent;
|
|
129
|
+
if (fg('platform_editor_nested_tables_resizing')) {
|
|
130
|
+
parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand, state.schema.nodes.tableCell, state.schema.nodes.tableHeader]);
|
|
131
|
+
} else {
|
|
132
|
+
parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand]);
|
|
133
|
+
}
|
|
97
134
|
return parent ? parent.node : null;
|
|
98
135
|
};
|
|
99
136
|
var calcBreakoutNodeWidth = function calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled) {
|
|
@@ -10,18 +10,25 @@ import React from 'react';
|
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
|
+
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
15
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
14
16
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
15
17
|
import { analyticsEventKey, browser, getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered } from '../utils';
|
|
16
18
|
import { ZERO_WIDTH_SPACE } from '../whitespace';
|
|
17
19
|
import { generateUniqueNodeKey } from './generateUniqueNodeKey';
|
|
20
|
+
import { getOrCreateOnVisibleObserver } from './onVisibleObserverFactory';
|
|
18
21
|
export var inlineNodeViewClassname = 'inlineNodeView';
|
|
22
|
+
var canRenderFallback = function canRenderFallback(node) {
|
|
23
|
+
return node.type.isInline && node.type.isAtom && node.type.isLeaf;
|
|
24
|
+
};
|
|
19
25
|
function createNodeView(_ref) {
|
|
20
26
|
var nodeViewParams = _ref.nodeViewParams,
|
|
21
27
|
pmPluginFactoryParams = _ref.pmPluginFactoryParams,
|
|
22
28
|
Component = _ref.Component,
|
|
23
29
|
extraComponentProps = _ref.extraComponentProps,
|
|
24
30
|
extraNodeViewProps = _ref.extraNodeViewProps;
|
|
31
|
+
var shouldVirtualize = fg('platform_editor_lego__inline_node_virtualization');
|
|
25
32
|
// We set a variable for the current node which is
|
|
26
33
|
// used for comparisions when doing updates, before being
|
|
27
34
|
// overwritten to the updated node.
|
|
@@ -65,22 +72,58 @@ function createNodeView(_ref) {
|
|
|
65
72
|
extraComponentProps: extraComponentProps
|
|
66
73
|
}), domRef, key);
|
|
67
74
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
var didRenderComponentWithIntersectionObserver = false;
|
|
76
|
+
var destroyed = false;
|
|
77
|
+
var removeIntersectionObserver = function removeIntersectionObserver() {};
|
|
78
|
+
function renderFallback() {
|
|
79
|
+
var _currentNode$type;
|
|
80
|
+
if (canRenderFallback(currentNode) && typeof ((_currentNode$type = currentNode.type) === null || _currentNode$type === void 0 || (_currentNode$type = _currentNode$type.spec) === null || _currentNode$type === void 0 ? void 0 : _currentNode$type.toDOM) === 'function') {
|
|
81
|
+
var fallback = DOMSerializer.renderSpec(document, currentNode.type.spec.toDOM(currentNode));
|
|
82
|
+
domRef.replaceChildren(fallback.dom);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function attachNodeViewObserver() {
|
|
86
|
+
var observer = getOrCreateOnVisibleObserver(nodeViewParams.view);
|
|
87
|
+
removeIntersectionObserver = observer.observe(domRef, function () {
|
|
88
|
+
if (!didRenderComponentWithIntersectionObserver && !destroyed) {
|
|
89
|
+
domRef.replaceChildren();
|
|
90
|
+
renderComponent();
|
|
91
|
+
didRenderComponentWithIntersectionObserver = true;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
if (shouldVirtualize) {
|
|
96
|
+
renderFallback();
|
|
97
|
+
attachNodeViewObserver();
|
|
98
|
+
} else {
|
|
99
|
+
var _getPerformanceOption = getPerformanceOptions(nodeViewParams.view),
|
|
100
|
+
samplingRate = _getPerformanceOption.samplingRate,
|
|
101
|
+
slowThreshold = _getPerformanceOption.slowThreshold,
|
|
102
|
+
trackingEnabled = _getPerformanceOption.trackingEnabled;
|
|
103
|
+
trackingEnabled && startMeasureReactNodeViewRendered({
|
|
104
|
+
nodeTypeName: currentNode.type.name
|
|
105
|
+
});
|
|
75
106
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
107
|
+
// We render the component while creating the node view
|
|
108
|
+
renderComponent();
|
|
109
|
+
trackingEnabled && stopMeasureReactNodeViewRendered({
|
|
110
|
+
nodeTypeName: currentNode.type.name,
|
|
111
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
112
|
+
samplingRate: samplingRate,
|
|
113
|
+
slowThreshold: slowThreshold
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
var extraNodeViewPropsWithStopEvent = _objectSpread(_objectSpread({}, extraNodeViewProps), fg('platform_editor_lego__inline_node_virtualization') ? {
|
|
117
|
+
// This is not related to virtualization, but it's something we should fix/handle
|
|
118
|
+
// Remove this comment when `platform_editor_lego__inline_node_virtualization` FF is cleaned up
|
|
119
|
+
stopEvent: function stopEvent(event) {
|
|
120
|
+
var maybeStopEvent = extraNodeViewProps === null || extraNodeViewProps === void 0 ? void 0 : extraNodeViewProps.stopEvent;
|
|
121
|
+
if (typeof maybeStopEvent === 'function') {
|
|
122
|
+
return maybeStopEvent(event);
|
|
123
|
+
}
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
} : {});
|
|
84
127
|
|
|
85
128
|
// https://prosemirror.net/docs/ref/#view.NodeView
|
|
86
129
|
var nodeView = _objectSpread({
|
|
@@ -112,10 +155,20 @@ function createNodeView(_ref) {
|
|
|
112
155
|
setDomAttrs(nextNode, domRef);
|
|
113
156
|
}
|
|
114
157
|
currentNode = nextNode;
|
|
115
|
-
|
|
158
|
+
if (shouldVirtualize) {
|
|
159
|
+
if (didRenderComponentWithIntersectionObserver) {
|
|
160
|
+
renderComponent();
|
|
161
|
+
}
|
|
162
|
+
} else {
|
|
163
|
+
renderComponent();
|
|
164
|
+
}
|
|
116
165
|
return true;
|
|
117
166
|
},
|
|
118
167
|
destroy: function destroy() {
|
|
168
|
+
if (shouldVirtualize) {
|
|
169
|
+
removeIntersectionObserver();
|
|
170
|
+
}
|
|
171
|
+
|
|
119
172
|
// When prosemirror destroys the node view, we need to clean up
|
|
120
173
|
// what we have previously rendered using the editor portal
|
|
121
174
|
// provider api.
|
|
@@ -124,8 +177,11 @@ function createNodeView(_ref) {
|
|
|
124
177
|
// of HTMLSpanElement type however once the node view has
|
|
125
178
|
// been destroyed no other consumers should still be using it.
|
|
126
179
|
domRef = undefined;
|
|
180
|
+
if (shouldVirtualize) {
|
|
181
|
+
destroyed = true;
|
|
182
|
+
}
|
|
127
183
|
}
|
|
128
|
-
},
|
|
184
|
+
}, extraNodeViewPropsWithStopEvent);
|
|
129
185
|
return nodeView;
|
|
130
186
|
}
|
|
131
187
|
|
|
@@ -145,7 +201,7 @@ function getPortalChildren(_ref2) {
|
|
|
145
201
|
Component = _ref2.Component,
|
|
146
202
|
extraComponentProps = _ref2.extraComponentProps;
|
|
147
203
|
return function portalChildren() {
|
|
148
|
-
var _currentNode$type$nam, _currentNode$
|
|
204
|
+
var _currentNode$type$nam, _currentNode$type2;
|
|
149
205
|
// All inline nodes use `display: inline` to allow for multi-line
|
|
150
206
|
// wrapping. This does produce an issue in Chrome where it is not
|
|
151
207
|
// possible to click select the position after the node,
|
|
@@ -169,7 +225,7 @@ function getPortalChildren(_ref2) {
|
|
|
169
225
|
|
|
170
226
|
return jsx(ErrorBoundary, {
|
|
171
227
|
component: ACTION_SUBJECT.REACT_NODE_VIEW,
|
|
172
|
-
componentId: (_currentNode$type$nam = currentNode === null || currentNode === void 0 || (_currentNode$
|
|
228
|
+
componentId: (_currentNode$type$nam = currentNode === null || currentNode === void 0 || (_currentNode$type2 = currentNode.type) === null || _currentNode$type2 === void 0 ? void 0 : _currentNode$type2.name) !== null && _currentNode$type$nam !== void 0 ? _currentNode$type$nam : ACTION_SUBJECT_ID.UNKNOWN_NODE,
|
|
173
229
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent
|
|
174
230
|
}, jsx("span", {
|
|
175
231
|
className: "zeroWidthSpaceContainer"
|
|
@@ -0,0 +1,41 @@
|
|
|
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 memoize from 'lodash/memoize';
|
|
5
|
+
// Use this selector to set the intersection observer boundary for editor's inline node views
|
|
6
|
+
// If this does not exist, it will use the IntersectionObserver's default root
|
|
7
|
+
var INTERSECTION_OBSERVER_ROOT_SELECTOR = '[data-editor-scroll-container="true"]';
|
|
8
|
+
var INTERSECTION_OBSERVER_OPTIONS = {
|
|
9
|
+
rootMargin: '0px 0px 100px 0px',
|
|
10
|
+
threshold: 0
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// Parameterized singleton
|
|
14
|
+
export var getOrCreateOnVisibleObserver = memoize(function (view) {
|
|
15
|
+
var intersectionObserverOptions = _objectSpread({
|
|
16
|
+
root: view.dom.closest(INTERSECTION_OBSERVER_ROOT_SELECTOR)
|
|
17
|
+
}, INTERSECTION_OBSERVER_OPTIONS);
|
|
18
|
+
var callbackMap = new WeakMap();
|
|
19
|
+
var observer = new IntersectionObserver(function (entries) {
|
|
20
|
+
entries.filter(function (entry) {
|
|
21
|
+
return entry.isIntersecting;
|
|
22
|
+
}) // Only process visible entries
|
|
23
|
+
.map(function (entry) {
|
|
24
|
+
return callbackMap.get(entry.target);
|
|
25
|
+
})
|
|
26
|
+
// Invoke callbacks together to group browser rendering
|
|
27
|
+
// Avoiding requestAnimationFrame to reduce visual flickering
|
|
28
|
+
.forEach(function (cb) {
|
|
29
|
+
return cb === null || cb === void 0 ? void 0 : cb();
|
|
30
|
+
});
|
|
31
|
+
}, intersectionObserverOptions);
|
|
32
|
+
return {
|
|
33
|
+
observe: function observe(el, callback) {
|
|
34
|
+
callbackMap.set(el, callback);
|
|
35
|
+
observer.observe(el);
|
|
36
|
+
return function () {
|
|
37
|
+
return observer.unobserve(el);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
});
|
|
@@ -9,7 +9,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { createProseMirrorMetadata } from '../prosemirror-dom-metadata';
|
|
14
13
|
/**
|
|
15
14
|
* 🧱 Internal Helper Function: Editor FE Platform
|
|
@@ -62,7 +61,7 @@ var wrapGetPosExceptions = function wrapGetPosExceptions(spec) {
|
|
|
62
61
|
// eslint-disable-next-line no-extra-bind
|
|
63
62
|
}.bind(thisArg);
|
|
64
63
|
var result = Reflect.apply(target, thisArg, [node, view, safeGetPos].concat(_toConsumableArray(more)));
|
|
65
|
-
if ((result === null || result === void 0 ? void 0 : result.dom) instanceof HTMLElement
|
|
64
|
+
if ((result === null || result === void 0 ? void 0 : result.dom) instanceof HTMLElement) {
|
|
66
65
|
attachGenericProseMirrorMetadata({
|
|
67
66
|
nodeOrMark: node,
|
|
68
67
|
dom: result.dom
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "99.
|
|
23
|
+
var packageVersion = "99.7.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _readOnlyError from "@babel/runtime/helpers/readOnlyError";
|
|
1
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -41,7 +41,7 @@ export var serializeValue = function serializeValue(value) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
var _getPropsDifference = function getPropsDifference(object1, object2) {
|
|
45
45
|
var curDepth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
46
46
|
var maxDepth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 2;
|
|
47
47
|
var keysToIgnore = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
|
|
@@ -68,7 +68,7 @@ export var getPropsDifference = function getPropsDifference(object1, object2) {
|
|
|
68
68
|
});
|
|
69
69
|
} else if (value1Type === 'object' && value2Type === 'object') {
|
|
70
70
|
if (curDepth <= maxDepth) {
|
|
71
|
-
var difference =
|
|
71
|
+
var difference = _getPropsDifference(value1, value2, curDepth + 1, maxDepth);
|
|
72
72
|
changed.push({
|
|
73
73
|
key: key,
|
|
74
74
|
difference: difference
|
|
@@ -94,6 +94,7 @@ export var getPropsDifference = function getPropsDifference(object1, object2) {
|
|
|
94
94
|
removed: removed
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
+
export { _getPropsDifference as getPropsDifference };
|
|
97
98
|
export var getShallowPropsDifference = function getShallowPropsDifference(object1, object2) {
|
|
98
99
|
var _getKeysAddedRemovedC2 = getKeysAddedRemovedCommon(object1, object2),
|
|
99
100
|
added = _getKeysAddedRemovedC2.added,
|
|
@@ -30,8 +30,8 @@ function parseLocaleNumber(stringNumber, groupPattern, fractionPattern) {
|
|
|
30
30
|
export function createNormalizeTextParser() {
|
|
31
31
|
// Source: https://stackoverflow.com/questions/12004808/does-javascript-take-local-decimal-separators-into-account
|
|
32
32
|
var locale = window.navigator.language;
|
|
33
|
-
var thousandSeparator = Intl.NumberFormat(locale).format(11111).replace(/(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])/g, '');
|
|
34
|
-
var decimalSeparator = Intl.NumberFormat(locale).format(1.1).replace(/(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])/g, '');
|
|
33
|
+
var thousandSeparator = Intl.NumberFormat(locale).format(11111).replace(/(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDD40-\uDD49\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDED0-\uDEE3\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59\uDFF0-\uDFF9]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD818[\uDD30-\uDD39]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDD70-\uDD79\uDE80-\uDE96]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9\uDDF1-\uDDFA]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])/g, '');
|
|
34
|
+
var decimalSeparator = Intl.NumberFormat(locale).format(1.1).replace(/(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDD40-\uDD49\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDED0-\uDEE3\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59\uDFF0-\uDFF9]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD818[\uDD30-\uDD39]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDD70-\uDD79\uDE80-\uDE96]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9\uDDF1-\uDDFA]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])/g, '');
|
|
35
35
|
|
|
36
36
|
// Ignored via go/ees005
|
|
37
37
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -31,7 +31,7 @@ export function sanitizeNodeForPrivacy(json, providerFactory) {
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
if (hasCacheableMentions && providerFactory) {
|
|
34
|
-
var
|
|
34
|
+
var _handler = function handler(_name, providerPromise) {
|
|
35
35
|
if (providerPromise) {
|
|
36
36
|
providerPromise.then(function (provider) {
|
|
37
37
|
if (isResolvingMentionProvider(provider)) {
|
|
@@ -39,12 +39,12 @@ export function sanitizeNodeForPrivacy(json, providerFactory) {
|
|
|
39
39
|
provider.cacheMentionName(id, name);
|
|
40
40
|
});
|
|
41
41
|
mentionNames.clear();
|
|
42
|
-
providerFactory.unsubscribe('mentionProvider',
|
|
42
|
+
providerFactory.unsubscribe('mentionProvider', _handler);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
providerFactory.subscribe('mentionProvider',
|
|
47
|
+
providerFactory.subscribe('mentionProvider', _handler);
|
|
48
48
|
}
|
|
49
49
|
return sanitizedJSON;
|
|
50
50
|
}
|