@atlaskit/editor-common 81.2.1 → 82.0.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 +39 -0
- package/dist/cjs/analytics/index.js +6 -0
- package/dist/cjs/analytics/types/index.js +6 -0
- package/dist/cjs/analytics/types/table-events.js +8 -2
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/cjs/guideline/utils.js +1 -1
- package/dist/cjs/i18n/cs.js +5 -0
- package/dist/cjs/i18n/da.js +3 -2
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/en.js +4 -0
- package/dist/cjs/i18n/en_GB.js +4 -0
- package/dist/cjs/i18n/en_ZZ.js +4 -0
- package/dist/cjs/i18n/es.js +1 -0
- package/dist/cjs/i18n/fi.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/hu.js +1 -0
- package/dist/cjs/i18n/it.js +1 -0
- package/dist/cjs/i18n/ja.js +1 -0
- package/dist/cjs/i18n/ko.js +1 -0
- package/dist/cjs/i18n/nb.js +5 -0
- package/dist/cjs/i18n/nl.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/sv.js +1 -0
- package/dist/cjs/i18n/th.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/uk.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh.js +1 -0
- package/dist/cjs/i18n/zh_TW.js +5 -0
- package/dist/cjs/keymaps/index.js +8 -3
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -29
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +10 -5
- package/dist/cjs/media-single/utils.js +1 -1
- package/dist/cjs/messages/help-dialog.js +12 -12
- package/dist/cjs/messages/insert-block.js +5 -0
- package/dist/cjs/messages/table.js +0 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/breakout.js +7 -6
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/types/index.js +1 -1
- package/dist/es2019/analytics/types/table-events.js +8 -1
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +2 -2
- package/dist/es2019/guideline/utils.js +2 -2
- package/dist/es2019/i18n/cs.js +5 -0
- package/dist/es2019/i18n/da.js +3 -2
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/en.js +4 -0
- package/dist/es2019/i18n/en_GB.js +4 -0
- package/dist/es2019/i18n/en_ZZ.js +4 -0
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +5 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +5 -0
- package/dist/es2019/keymaps/index.js +5 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +19 -23
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +10 -5
- package/dist/es2019/media-single/utils.js +2 -2
- package/dist/es2019/messages/help-dialog.js +12 -12
- package/dist/es2019/messages/insert-block.js +5 -0
- package/dist/es2019/messages/table.js +0 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/breakout.js +7 -7
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/types/index.js +1 -1
- package/dist/esm/analytics/types/table-events.js +8 -1
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +2 -2
- package/dist/esm/guideline/utils.js +2 -2
- package/dist/esm/i18n/cs.js +5 -0
- package/dist/esm/i18n/da.js +3 -2
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/en.js +4 -0
- package/dist/esm/i18n/en_GB.js +4 -0
- package/dist/esm/i18n/en_ZZ.js +4 -0
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +5 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -0
- package/dist/esm/i18n/zh_TW.js +5 -0
- package/dist/esm/keymaps/index.js +5 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -29
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +10 -5
- package/dist/esm/media-single/utils.js +2 -2
- package/dist/esm/messages/help-dialog.js +12 -12
- package/dist/esm/messages/insert-block.js +5 -0
- package/dist/esm/messages/table.js +0 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/breakout.js +7 -6
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/analytics/types/index.d.ts +1 -1
- package/dist/types/analytics/types/table-events.d.ts +7 -1
- package/dist/types/card/types.d.ts +10 -4
- package/dist/types/i18n/cs.d.ts +5 -0
- package/dist/types/i18n/da.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/en.d.ts +4 -0
- package/dist/types/i18n/en_GB.d.ts +4 -0
- package/dist/types/i18n/en_ZZ.d.ts +4 -0
- package/dist/types/i18n/es.d.ts +1 -0
- package/dist/types/i18n/fi.d.ts +1 -0
- package/dist/types/i18n/fr.d.ts +1 -0
- package/dist/types/i18n/hu.d.ts +1 -0
- package/dist/types/i18n/it.d.ts +1 -0
- package/dist/types/i18n/ja.d.ts +1 -0
- package/dist/types/i18n/ko.d.ts +1 -0
- package/dist/types/i18n/nb.d.ts +5 -0
- package/dist/types/i18n/nl.d.ts +1 -0
- package/dist/types/i18n/pl.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/sv.d.ts +1 -0
- package/dist/types/i18n/th.d.ts +1 -0
- package/dist/types/i18n/tr.d.ts +1 -0
- package/dist/types/i18n/uk.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +5 -0
- package/dist/types/keymaps/index.d.ts +4 -0
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +3 -2
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +6 -5
- package/dist/types/messages/help-dialog.d.ts +6 -6
- package/dist/types/messages/insert-block.d.ts +5 -0
- package/dist/types/messages/table.d.ts +0 -5
- package/dist/types/utils/breakout.d.ts +1 -1
- package/dist/types-ts4.5/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +7 -1
- package/dist/types-ts4.5/card/types.d.ts +10 -4
- package/dist/types-ts4.5/i18n/cs.d.ts +5 -0
- package/dist/types-ts4.5/i18n/da.d.ts +1 -0
- package/dist/types-ts4.5/i18n/de.d.ts +1 -0
- package/dist/types-ts4.5/i18n/en.d.ts +4 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +4 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +4 -0
- package/dist/types-ts4.5/i18n/es.d.ts +1 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +1 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +1 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +1 -0
- package/dist/types-ts4.5/i18n/it.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +1 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +5 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +1 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +1 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +1 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +1 -0
- package/dist/types-ts4.5/i18n/th.d.ts +1 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +1 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +1 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +5 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +4 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +3 -2
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +6 -5
- package/dist/types-ts4.5/messages/help-dialog.d.ts +6 -6
- package/dist/types-ts4.5/messages/insert-block.d.ts +5 -0
- package/dist/types-ts4.5/messages/table.d.ts +0 -5
- package/dist/types-ts4.5/utils/breakout.d.ts +1 -1
- package/package.json +6 -6
package/dist/esm/i18n/ru.js
CHANGED
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'Информация',
|
|
246
246
|
'fabric.editor.infoPanel': 'Информационная панель',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'Выделение информации цветом',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'Настроить ссылку',
|
|
248
249
|
'fabric.editor.inlineDescription': 'Отображение ссылки в виде встроенного текста',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'Настроить',
|
|
250
251
|
'fabric.editor.inlineTitle': 'Встроенный текст',
|
package/dist/esm/i18n/sv.js
CHANGED
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'Info',
|
|
246
246
|
'fabric.editor.infoPanel': 'Informationspanel',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'Markera information med en färgad panel',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'Konfigurera länk',
|
|
248
249
|
'fabric.editor.inlineDescription': 'Visa länk som infogad text',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'Konfigurera',
|
|
250
251
|
'fabric.editor.inlineTitle': 'Inline',
|
package/dist/esm/i18n/th.js
CHANGED
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'ข้อมูล',
|
|
246
246
|
'fabric.editor.infoPanel': 'แผงข้อมูล',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'ไฮไลท์ข้อมูลในแผงสี',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'กำหนดค่าลิงก์',
|
|
248
249
|
'fabric.editor.inlineDescription': 'แสดงลิงก์เป็นข้อความแบบบรรทัดเดียว',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'กำหนดค่า',
|
|
250
251
|
'fabric.editor.inlineTitle': 'บรรทัดเดียว',
|
package/dist/esm/i18n/tr.js
CHANGED
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'Bilgi',
|
|
246
246
|
'fabric.editor.infoPanel': 'Bilgi panosu',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'Renkli bir panoda bilgileri vurgulayın',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'Bağlantıyı yapılandırın',
|
|
248
249
|
'fabric.editor.inlineDescription': 'Bağlantıyı satır içi metin olarak gösterir',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'Yapılandır',
|
|
250
251
|
'fabric.editor.inlineTitle': 'Satır içi',
|
package/dist/esm/i18n/uk.js
CHANGED
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'Інформація',
|
|
246
246
|
'fabric.editor.infoPanel': 'Панель з інформацією',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'Панель із виділеною кольорами інформацією',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'Посилання для налаштування',
|
|
248
249
|
'fabric.editor.inlineDescription': 'Показати посилання як вбудований текст',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'Налаштування',
|
|
250
251
|
'fabric.editor.inlineTitle': 'У рядку',
|
package/dist/esm/i18n/vi.js
CHANGED
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'Thông tin',
|
|
246
246
|
'fabric.editor.infoPanel': 'Ô thông tin',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'Bôi đậm thông tin bằng ô màu',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'Định cấu hình liên kết',
|
|
248
249
|
'fabric.editor.inlineDescription': 'Hiển thị liên kết dưới dạng văn bản nội tuyến',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'Đặt cấu hình',
|
|
250
251
|
'fabric.editor.inlineTitle': 'Nội tuyến',
|
package/dist/esm/i18n/zh.js
CHANGED
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': '信息',
|
|
246
246
|
'fabric.editor.infoPanel': '信息面板',
|
|
247
247
|
'fabric.editor.infoPanel.description': '在彩色面板高亮显示信息',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': '配置链接',
|
|
248
249
|
'fabric.editor.inlineDescription': '以内联文本显示链接',
|
|
249
250
|
'fabric.editor.inlineOverlay': '配置',
|
|
250
251
|
'fabric.editor.inlineTitle': '内联',
|
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -130,6 +130,10 @@ export default {
|
|
|
130
130
|
'fabric.editor.edit.searchInput': '新增連結',
|
|
131
131
|
'fabric.editor.editAltText': '編輯替代文字',
|
|
132
132
|
'fabric.editor.editDateText': '編輯日期',
|
|
133
|
+
'fabric.editor.editDropdownEditDatasourceTitle': '編輯搜尋查詢',
|
|
134
|
+
'fabric.editor.editDropdownEditLinkTitle': '編輯連結',
|
|
135
|
+
'fabric.editor.editDropdownExpandIconLabel': '展開下拉式選單',
|
|
136
|
+
'fabric.editor.editDropdownTriggerTitle': '編輯',
|
|
133
137
|
'fabric.editor.editLink': '編輯連結',
|
|
134
138
|
'fabric.editor.editMode.inviteToEditButton.title': '邀請編輯',
|
|
135
139
|
'fabric.editor.editStatusColor': '編輯狀態顏色',
|
|
@@ -245,6 +249,7 @@ export default {
|
|
|
245
249
|
'fabric.editor.info': '資訊',
|
|
246
250
|
'fabric.editor.infoPanel': '資訊面板',
|
|
247
251
|
'fabric.editor.infoPanel.description': '以彩色面板醒目提示資訊',
|
|
252
|
+
'fabric.editor.inlineConfigureLink': '設定連結',
|
|
248
253
|
'fabric.editor.inlineDescription': '將連結顯示為內嵌文字',
|
|
249
254
|
'fabric.editor.inlineOverlay': '設定',
|
|
250
255
|
'fabric.editor.inlineTitle': '內嵌',
|
|
@@ -66,6 +66,11 @@ export var addRowBefore = makeKeyMapWithCommon('Add Row Above', 'Ctrl-Alt-ArrowU
|
|
|
66
66
|
export var addRowAfter = makeKeyMapWithCommon('Add Row Below', 'Ctrl-Alt-ArrowDown');
|
|
67
67
|
export var addColumnAfter = makeKeyMapWithCommon('Add Column After', 'Ctrl-Alt-ArrowRight');
|
|
68
68
|
export var addColumnBefore = makeKeyMapWithCommon('Add Column Before', 'Ctrl-Alt-ArrowLeft');
|
|
69
|
+
// The following few shortcuts that end in VO are added specifically for Voice Over users, as shortcuts that perform the same role when using Voice Over don't work because they conflict with default shortcuts in Voice Over
|
|
70
|
+
export var addRowBeforeVO = makeKeyMapWithCommon('Add Row Above', 'Mod-Alt-[');
|
|
71
|
+
export var addRowAfterVO = makeKeyMapWithCommon('Add Row Below', 'Mod-Alt-]');
|
|
72
|
+
export var addColumnAfterVO = makeKeyMapWithCommon('Add Column After', 'Mod-Alt-=');
|
|
73
|
+
export var addColumnBeforeVO = makeKeyMapWithCommon('Add Column Before', 'Mod-Alt--');
|
|
69
74
|
export var moveColumnLeft = makeKeyMapWithCommon('Move Column Left', 'Ctrl-Alt-Shift-ArrowLeft');
|
|
70
75
|
export var moveColumnRight = makeKeyMapWithCommon('Move Column Right', 'Ctrl-Alt-Shift-ArrowRight');
|
|
71
76
|
export var moveRowDown = makeKeyMapWithCommon('Move Row Down', 'Ctrl-Alt-Shift-ArrowDown');
|
|
@@ -165,13 +165,12 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
165
165
|
_defineProperty(_assertThisInitialized(_this), "analyticSource", 'createLinkInlineDialog');
|
|
166
166
|
_defineProperty(_assertThisInitialized(_this), "quickSearch", /*#__PURE__*/function () {
|
|
167
167
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(input, items, quickSearchLimit) {
|
|
168
|
-
var
|
|
169
|
-
var _this$state, searchProvider, displayUrl, pluginState, queryVersion, perfStart, _pluginState$searchSe2, searchProviderResultItems, searchItems, perfStop, duration, _perfStop, _duration;
|
|
168
|
+
var _this$state, searchProvider, displayUrl, searchSessionId, queryVersion, perfStart, searchProviderResultItems, searchItems, perfStop, duration, _perfStop, _duration;
|
|
170
169
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
171
170
|
while (1) switch (_context.prev = _context.next) {
|
|
172
171
|
case 0:
|
|
173
172
|
_this$state = _this.state, searchProvider = _this$state.searchProvider, displayUrl = _this$state.displayUrl;
|
|
174
|
-
|
|
173
|
+
searchSessionId = _this.props.searchSessionId;
|
|
175
174
|
if (searchProvider) {
|
|
176
175
|
_context.next = 4;
|
|
177
176
|
break;
|
|
@@ -187,7 +186,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
187
186
|
queryLength: input.length,
|
|
188
187
|
queryVersion: queryVersion,
|
|
189
188
|
queryHash: sha1(input),
|
|
190
|
-
searchSessionId:
|
|
189
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
191
190
|
wordCount: wordCount(input),
|
|
192
191
|
source: _this.analyticSource
|
|
193
192
|
},
|
|
@@ -230,7 +229,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
230
229
|
attributes: {
|
|
231
230
|
source: _this.analyticSource,
|
|
232
231
|
postQueryRequestDurationMs: duration,
|
|
233
|
-
searchSessionId:
|
|
232
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
234
233
|
resultCount: searchProviderResultItems.length,
|
|
235
234
|
results: searchProviderResultItems.map(function (item) {
|
|
236
235
|
return {
|
|
@@ -436,7 +435,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
436
435
|
});
|
|
437
436
|
_defineProperty(_assertThisInitialized(_this), "handleInsert", function (href, title, inputType, interaction) {
|
|
438
437
|
var _this$props2 = _this.props,
|
|
439
|
-
|
|
438
|
+
searchSessionId = _this$props2.searchSessionId,
|
|
440
439
|
onSubmit = _this$props2.onSubmit;
|
|
441
440
|
var _this$state5 = _this.state,
|
|
442
441
|
items = _this$state5.items,
|
|
@@ -447,7 +446,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
447
446
|
onSubmit(href, title, displayText, inputType);
|
|
448
447
|
}
|
|
449
448
|
if (interaction === 'click' || _this.isUrlPopulatedWithSelectedItem()) {
|
|
450
|
-
var
|
|
449
|
+
var _selectedItem$prefetc;
|
|
451
450
|
/**
|
|
452
451
|
* When it's a mouse click even or the selectedItem.url matches displayUrl, we think
|
|
453
452
|
* it's selected from the result list and fire the
|
|
@@ -459,7 +458,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
459
458
|
actionSubject: ACTION_SUBJECT.SEARCH_RESULT,
|
|
460
459
|
attributes: {
|
|
461
460
|
source: _this.analyticSource,
|
|
462
|
-
searchSessionId:
|
|
461
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
463
462
|
trigger: interaction,
|
|
464
463
|
resultCount: items.length,
|
|
465
464
|
selectedResultId: selectedItem.objectId,
|
|
@@ -528,9 +527,9 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
528
527
|
items = _this$state9.items,
|
|
529
528
|
selectedIndex = _this$state9.selectedIndex;
|
|
530
529
|
var _this$props3 = _this.props,
|
|
531
|
-
pluginState = _this$props3.pluginState,
|
|
532
530
|
view = _this$props3.view,
|
|
533
|
-
onEscapeCallback = _this$props3.onEscapeCallback
|
|
531
|
+
onEscapeCallback = _this$props3.onEscapeCallback,
|
|
532
|
+
searchSessionId = _this$props3.searchSessionId;
|
|
534
533
|
var keyCode = event.keyCode;
|
|
535
534
|
var KEY_CODE_ESCAPE = 27;
|
|
536
535
|
var KEY_CODE_ARROW_DOWN = 40;
|
|
@@ -557,7 +556,6 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
557
556
|
updatedIndex = selectedIndex > 0 ? selectedIndex - 1 : items.length - 1;
|
|
558
557
|
}
|
|
559
558
|
if ([KEY_CODE_ARROW_DOWN, KEY_CODE_ARROW_UP].includes(keyCode) && items[updatedIndex]) {
|
|
560
|
-
var _pluginState$searchSe4;
|
|
561
559
|
_this.setState({
|
|
562
560
|
selectedIndex: updatedIndex,
|
|
563
561
|
displayUrl: items[updatedIndex].url
|
|
@@ -567,7 +565,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
567
565
|
actionSubject: ACTION_SUBJECT.SEARCH_RESULT,
|
|
568
566
|
attributes: {
|
|
569
567
|
source: _this.analyticSource,
|
|
570
|
-
searchSessionId:
|
|
568
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
571
569
|
selectedResultId: items[updatedIndex].objectId,
|
|
572
570
|
selectedRelativePosition: updatedIndex
|
|
573
571
|
},
|
|
@@ -608,22 +606,20 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
608
606
|
key: "componentDidMount",
|
|
609
607
|
value: function () {
|
|
610
608
|
var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
611
|
-
var
|
|
612
|
-
|
|
613
|
-
_this2 = this;
|
|
614
|
-
var pluginState, _yield$Promise$all, _yield$Promise$all2, activityProvider, searchProvider;
|
|
609
|
+
var _this2 = this;
|
|
610
|
+
var _this$props5, timesViewed, inputMethod, searchSessionId, _yield$Promise$all, _yield$Promise$all2, activityProvider, searchProvider;
|
|
615
611
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
616
612
|
while (1) switch (_context4.prev = _context4.next) {
|
|
617
613
|
case 0:
|
|
618
|
-
|
|
614
|
+
_this$props5 = this.props, timesViewed = _this$props5.timesViewed, inputMethod = _this$props5.inputMethod, searchSessionId = _this$props5.searchSessionId;
|
|
619
615
|
document.addEventListener('mousedown', this.handleClickOutside);
|
|
620
616
|
this.fireAnalytics({
|
|
621
617
|
action: ACTION.VIEWED,
|
|
622
618
|
actionSubject: ACTION_SUBJECT.CREATE_LINK_INLINE_DIALOG,
|
|
623
619
|
attributes: {
|
|
624
|
-
timesViewed:
|
|
625
|
-
searchSessionId:
|
|
626
|
-
trigger:
|
|
620
|
+
timesViewed: timesViewed !== null && timesViewed !== void 0 ? timesViewed : 0,
|
|
621
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
622
|
+
trigger: inputMethod !== null && inputMethod !== void 0 ? inputMethod : ''
|
|
627
623
|
},
|
|
628
624
|
eventType: EVENT_TYPE.SCREEN
|
|
629
625
|
});
|
|
@@ -657,16 +653,15 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
657
653
|
}, {
|
|
658
654
|
key: "componentWillUnmount",
|
|
659
655
|
value: function componentWillUnmount() {
|
|
660
|
-
var
|
|
656
|
+
var searchSessionId = this.props.searchSessionId;
|
|
661
657
|
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
662
658
|
if (!this.submitted) {
|
|
663
|
-
var _pluginState$searchSe6;
|
|
664
659
|
this.fireAnalytics({
|
|
665
660
|
action: ACTION.DISMISSED,
|
|
666
661
|
actionSubject: ACTION_SUBJECT.CREATE_LINK_INLINE_DIALOG,
|
|
667
662
|
attributes: {
|
|
668
663
|
source: this.analyticSource,
|
|
669
|
-
searchSessionId:
|
|
664
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
670
665
|
trigger: 'blur'
|
|
671
666
|
},
|
|
672
667
|
eventType: EVENT_TYPE.UI
|
|
@@ -677,11 +672,11 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
677
672
|
key: "getRecentItems",
|
|
678
673
|
value: function () {
|
|
679
674
|
var _getRecentItems = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(activityProvider, query) {
|
|
680
|
-
var
|
|
675
|
+
var searchSessionId, perfStart, activityRecentItems, _items2, perfStop, duration, _perfStop2, _duration2;
|
|
681
676
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
682
677
|
while (1) switch (_context5.prev = _context5.next) {
|
|
683
678
|
case 0:
|
|
684
|
-
|
|
679
|
+
searchSessionId = this.props.searchSessionId;
|
|
685
680
|
perfStart = performance.now();
|
|
686
681
|
_context5.prev = 2;
|
|
687
682
|
_context5.t0 = limit;
|
|
@@ -723,7 +718,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
723
718
|
attributes: {
|
|
724
719
|
source: this.analyticSource,
|
|
725
720
|
preQueryRequestDurationMs: duration,
|
|
726
|
-
searchSessionId:
|
|
721
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
727
722
|
resultCount: _items2.length,
|
|
728
723
|
results: activityRecentItems.map(function (item) {
|
|
729
724
|
var _item$type;
|
|
@@ -824,9 +819,9 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
824
819
|
selectedIndex = _this$state11.selectedIndex,
|
|
825
820
|
displayUrl = _this$state11.displayUrl,
|
|
826
821
|
displayText = _this$state11.displayText;
|
|
827
|
-
var _this$
|
|
828
|
-
formatMessage = _this$
|
|
829
|
-
activityProvider = _this$
|
|
822
|
+
var _this$props6 = this.props,
|
|
823
|
+
formatMessage = _this$props6.intl.formatMessage,
|
|
824
|
+
activityProvider = _this$props6.activityProvider;
|
|
830
825
|
var formatClearLinkText = formatMessage(messages.clearLink);
|
|
831
826
|
var screenReaderDescriptionId = 'search-recent-links-field-description';
|
|
832
827
|
var linkSearchListId = 'hyperlink-search-list';
|
|
@@ -31,7 +31,10 @@ export function HyperlinkAddToolbar(_ref2) {
|
|
|
31
31
|
onClose = _ref2.onClose,
|
|
32
32
|
onEscapeCallback = _ref2.onEscapeCallback,
|
|
33
33
|
onClickAwayCallback = _ref2.onClickAwayCallback,
|
|
34
|
-
|
|
34
|
+
editorAppearance = _ref2.editorAppearance,
|
|
35
|
+
inputMethod = _ref2.inputMethod,
|
|
36
|
+
searchSessionId = _ref2.searchSessionId,
|
|
37
|
+
timesViewed = _ref2.timesViewed;
|
|
35
38
|
return /*#__PURE__*/React.createElement(WithProviders, {
|
|
36
39
|
providers: ['activityProvider', 'searchProvider'],
|
|
37
40
|
providerFactory: providerFactory,
|
|
@@ -43,8 +46,8 @@ export function HyperlinkAddToolbar(_ref2) {
|
|
|
43
46
|
view: view,
|
|
44
47
|
invokeMethod: // Provide `invokeMethod` prop as preferred value (card plugin passes as prop) otherwise assume this
|
|
45
48
|
// is being used from inside the hyperlink plugin and use inputMethod from plugin state
|
|
46
|
-
invokeMethod !== null && invokeMethod !== void 0 ? invokeMethod :
|
|
47
|
-
editorAppearance:
|
|
49
|
+
invokeMethod !== null && invokeMethod !== void 0 ? invokeMethod : inputMethod,
|
|
50
|
+
editorAppearance: editorAppearance
|
|
48
51
|
}, linkPickerOptions, {
|
|
49
52
|
url: displayUrl,
|
|
50
53
|
displayText: displayText,
|
|
@@ -61,10 +64,12 @@ export function HyperlinkAddToolbar(_ref2) {
|
|
|
61
64
|
onSubmit: onSubmit,
|
|
62
65
|
displayText: displayText,
|
|
63
66
|
displayUrl: displayUrl,
|
|
64
|
-
pluginState: hyperlinkPluginState,
|
|
65
67
|
view: view,
|
|
66
68
|
onEscapeCallback: onEscapeCallback,
|
|
67
|
-
onClickAwayCallback: onClickAwayCallback
|
|
69
|
+
onClickAwayCallback: onClickAwayCallback,
|
|
70
|
+
inputMethod: inputMethod,
|
|
71
|
+
searchSessionId: searchSessionId,
|
|
72
|
+
timesViewed: timesViewed
|
|
68
73
|
});
|
|
69
74
|
}
|
|
70
75
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth,
|
|
2
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { floatingLayouts, isRichMediaInsideOfBlockNode } from '../utils/rich-media-utils';
|
|
4
4
|
import { DEFAULT_IMAGE_WIDTH, DEFAULT_ROUNDING_INTERVAL, MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH, wrappedLayouts } from './constants';
|
|
5
5
|
|
|
@@ -93,7 +93,7 @@ var calcLegacyWideWidth = function calcLegacyWideWidth(containerWidth, origWidth
|
|
|
93
93
|
* @param containerWidth width of editor container
|
|
94
94
|
*/
|
|
95
95
|
export var calcMediaSingleMaxWidth = function calcMediaSingleMaxWidth(containerWidth) {
|
|
96
|
-
var fullWidthPadding =
|
|
96
|
+
var fullWidthPadding = akEditorGutterPaddingDynamic() * 2;
|
|
97
97
|
return Math.min(containerWidth - fullWidthPadding, akEditorFullWidthLayoutWidth);
|
|
98
98
|
};
|
|
99
99
|
|
|
@@ -30,6 +30,16 @@ export var helpDialogMessages = defineMessages({
|
|
|
30
30
|
defaultMessage: 'Toggle action item',
|
|
31
31
|
description: 'For Check/Uncheck Action item use shortcut'
|
|
32
32
|
},
|
|
33
|
+
InsertTableColumn: {
|
|
34
|
+
id: 'fabric.editor.insertTableColumn',
|
|
35
|
+
defaultMessage: 'Insert table column',
|
|
36
|
+
description: 'For insert table column'
|
|
37
|
+
},
|
|
38
|
+
InsertTableRow: {
|
|
39
|
+
id: 'fabric.editor.insertTableRow',
|
|
40
|
+
defaultMessage: 'Insert table row',
|
|
41
|
+
description: 'For insert table row'
|
|
42
|
+
},
|
|
33
43
|
altText: {
|
|
34
44
|
id: 'fabric.editor.altText',
|
|
35
45
|
defaultMessage: 'Alt text',
|
|
@@ -50,24 +60,14 @@ export var helpDialogMessages = defineMessages({
|
|
|
50
60
|
defaultMessage: 'Select column resize',
|
|
51
61
|
description: 'Hint for selecting a column resize a shortcut'
|
|
52
62
|
},
|
|
53
|
-
increaseColumnSize: {
|
|
54
|
-
id: 'fabric.editor.increaseColumnSize',
|
|
55
|
-
defaultMessage: 'Increase column size',
|
|
56
|
-
description: 'Hint for increasing a column size shortcut'
|
|
57
|
-
},
|
|
58
|
-
decreaseColumnSize: {
|
|
59
|
-
id: 'fabric.editor.decreaseColumnSize',
|
|
60
|
-
defaultMessage: 'Decrease column size',
|
|
61
|
-
description: 'Hint for decreasing a column size shortcut'
|
|
62
|
-
},
|
|
63
63
|
increaseSize: {
|
|
64
64
|
id: 'fabric.editor.increaseSize',
|
|
65
|
-
defaultMessage: 'Increase size',
|
|
65
|
+
defaultMessage: 'Increase table or media size',
|
|
66
66
|
description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to increase the width of the selected element. Optimal characters less than 21.'
|
|
67
67
|
},
|
|
68
68
|
decreaseSize: {
|
|
69
69
|
id: 'fabric.editor.decreaseSize',
|
|
70
|
-
defaultMessage: 'Decrease size',
|
|
70
|
+
defaultMessage: 'Decrease table or media size',
|
|
71
71
|
description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to decrease the width of the selected element. Optimal characters less than 21.'
|
|
72
72
|
},
|
|
73
73
|
focusTableResizeHandle: {
|
|
@@ -209,5 +209,10 @@ export var toolbarInsertBlockMessages = defineMessages({
|
|
|
209
209
|
id: 'fabric.editor.recordVideo.description',
|
|
210
210
|
defaultMessage: 'Record and share your screen and thoughts',
|
|
211
211
|
description: 'Record and share your screen and thoughts'
|
|
212
|
+
},
|
|
213
|
+
recordLoomShortTitle: {
|
|
214
|
+
id: 'fabric.editor.recordLoomShortTitle',
|
|
215
|
+
defaultMessage: 'Record',
|
|
216
|
+
description: 'Record'
|
|
212
217
|
}
|
|
213
218
|
});
|
|
@@ -240,11 +240,6 @@ export var messages = defineMessages({
|
|
|
240
240
|
defaultMessage: 'Fixed column widths',
|
|
241
241
|
description: 'Toggle button to enable fixed column widths'
|
|
242
242
|
},
|
|
243
|
-
unlockColumnWidths: {
|
|
244
|
-
id: 'fabric.editor.unLockColumns',
|
|
245
|
-
defaultMessage: 'Variable column widths',
|
|
246
|
-
description: 'Toggle button to enable variable column widths'
|
|
247
|
-
},
|
|
248
243
|
rowControl: {
|
|
249
244
|
id: 'fabric.editor.rowControl',
|
|
250
245
|
defaultMessage: 'Highlight row',
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "
|
|
9
|
+
var packageVersion = "82.0.0";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
15
15
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
16
16
|
import Layer from '../Layer';
|
|
17
17
|
var packageName = "@atlaskit/editor-common";
|
|
18
|
-
var packageVersion = "
|
|
18
|
+
var packageVersion = "82.0.0";
|
|
19
19
|
var halfFocusRing = 1;
|
|
20
20
|
var dropOffset = '0, 8';
|
|
21
21
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -21,8 +21,8 @@ var breakoutConsts = {
|
|
|
21
21
|
/**
|
|
22
22
|
* This function can return percentage value or px value depending upon the inputs
|
|
23
23
|
*/
|
|
24
|
-
calcBreakoutWidth: function calcBreakoutWidth(layout, containerWidth) {
|
|
25
|
-
var effectiveFullWidth = containerWidth - breakoutConsts.padding;
|
|
24
|
+
calcBreakoutWidth: function calcBreakoutWidth(layout, containerWidth, padding) {
|
|
25
|
+
var effectiveFullWidth = containerWidth - (padding !== null && padding !== void 0 ? padding : breakoutConsts.padding);
|
|
26
26
|
switch (layout) {
|
|
27
27
|
case 'full-width':
|
|
28
28
|
return "".concat(Math.min(effectiveFullWidth, breakoutConsts.fullWidthLayoutWidth), "px");
|
|
@@ -30,7 +30,7 @@ var breakoutConsts = {
|
|
|
30
30
|
if (effectiveFullWidth <= 0) {
|
|
31
31
|
return '100%';
|
|
32
32
|
}
|
|
33
|
-
var wideWidth = breakoutConsts.calcWideWidth(containerWidth);
|
|
33
|
+
var wideWidth = breakoutConsts.calcWideWidth(containerWidth, undefined, undefined, padding);
|
|
34
34
|
if (wideWidth.endsWith('%')) {
|
|
35
35
|
return "".concat(Math.min(effectiveFullWidth, breakoutConsts.fullWidthLayoutWidth), "px");
|
|
36
36
|
}
|
|
@@ -46,7 +46,8 @@ var breakoutConsts = {
|
|
|
46
46
|
var containerWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : breakoutConsts.defaultLayoutWidth;
|
|
47
47
|
var maxWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Infinity;
|
|
48
48
|
var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '100%';
|
|
49
|
-
var
|
|
49
|
+
var padding = arguments.length > 3 ? arguments[3] : undefined;
|
|
50
|
+
var effectiveFullWidth = containerWidth - (padding !== null && padding !== void 0 ? padding : breakoutConsts.padding);
|
|
50
51
|
var layoutMaxWidth = breakoutConsts.mapBreakpointToLayoutMaxWidth(breakoutConsts.getBreakpoint(containerWidth));
|
|
51
52
|
var wideWidth = Math.min(Math.ceil(layoutMaxWidth * breakoutConsts.wideScaleRatio), effectiveFullWidth);
|
|
52
53
|
return layoutMaxWidth > wideWidth ? fallback : "".concat(Math.min(maxWidth, wideWidth), "px");
|
|
@@ -114,8 +115,8 @@ export function calculateBreakoutStyles(_ref) {
|
|
|
114
115
|
marginLeft: "50%"
|
|
115
116
|
};
|
|
116
117
|
}
|
|
117
|
-
export function calcBreakoutWidthPx(mode, widthStateWidth) {
|
|
118
|
-
return parsePx(calcBreakoutWidth(mode, widthStateWidth));
|
|
118
|
+
export function calcBreakoutWidthPx(mode, widthStateWidth, padding) {
|
|
119
|
+
return parsePx(calcBreakoutWidth(mode, widthStateWidth, padding));
|
|
119
120
|
}
|
|
120
121
|
export var getNextBreakoutMode = function getNextBreakoutMode(currentMode) {
|
|
121
122
|
if (currentMode === 'full-width') {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, BROWSER_FREEZE_INTERACTION_TYPE, CONTENT_COMPONENT, DELETE_DIRECTION, EVENT_TYPE, FLOATING_CONTROLS_TITLE, FULL_WIDTH_MODE, GAP_CURSOR_POSITION, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LAYOUT_TYPE, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, LIST_TEXT_SCENARIOS, JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST, OUTDENT_SCENARIOS, MODE, PLATFORMS, PUNC, PasteContents, PasteSources, PasteTypes, RESOLVE_METHOD, SELECTION_TYPE, SELECTION_POSITION, SMART_LINK_TYPE, SYMBOL, SmartLinkNodeContexts, TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_CHANGE_TRIGGER, TABLE_STATUS, TARGET_SELECTION_SOURCE, TOOLBAR_ACTION_SUBJECT_ID, TRIGGER_METHOD, USER_CONTEXT, TABLE_DISPLAY_MODE, VIEW_METHOD, } from './types';
|
|
1
|
+
export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, BROWSER_FREEZE_INTERACTION_TYPE, CONTENT_COMPONENT, CHANGE_ALIGNMENT_REASON, DELETE_DIRECTION, EVENT_TYPE, FLOATING_CONTROLS_TITLE, FULL_WIDTH_MODE, GAP_CURSOR_POSITION, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LAYOUT_TYPE, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, LIST_TEXT_SCENARIOS, JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST, OUTDENT_SCENARIOS, MODE, PLATFORMS, PUNC, PasteContents, PasteSources, PasteTypes, RESOLVE_METHOD, SELECTION_TYPE, SELECTION_POSITION, SMART_LINK_TYPE, SYMBOL, SmartLinkNodeContexts, TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_CHANGE_TRIGGER, TABLE_STATUS, TARGET_SELECTION_SOURCE, TOOLBAR_ACTION_SUBJECT_ID, TRIGGER_METHOD, USER_CONTEXT, TABLE_DISPLAY_MODE, VIEW_METHOD, } from './types';
|
|
2
2
|
export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadCallback, AnalyticsEventPayloadWithChannel, AnnotationAEP, AnnotationAEPAttributes, AnnotationActionType, AnnotationDraftAEPAttributes, AnnotationResolvedAEPAttributes, CaptionTrackAction, ColorPickerAEP, CommonListAnalyticsAttributes, RestartListsAttributesForListOutdented, CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, DismissedCreateLinkInlineDialogAEP, DispatchAnalyticsEvent, EditLinkToolbarAEP, EnteredTextLinkSearchInputAEP, ErrorEventAttributes, ErrorEventPayload, ExperimentalEventPayload, ExtensionEventPayload, ExtensionType, FeatureExposureAEP, FormatEventPayload, GeneralEventPayload, HighlightedSearchResultsAEP, InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, InsertSmartLinkAEP, ListEventPayload, MediaSwitchType, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, MediaResizeTrackAction, MediaInputResizeTrackAction, NodeCount, NodeEventPayload, OperationalAEP, PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, PluginMethodReport, PluginPerformanceReportData, PluginsReport, QuickSearchPerfAEP, RecentActivitiesPerfAEP, SelectAllAEP, SelectCellAEP, SelectNodeAEP, SelectRangeAEP, SelectedSearchResultsAEP, SelectionEventPayload, SelectionJson, ShownPostQuerySearchResultsAEP, ShownPreQuerySearchResultsAEP, SimplifiedNode, SmartLinkNodeContext, SubstituteEventPayload, TableEventPayload, TextColorSelectedAEP, TextColorSelectedAttr, TextColorShowPaletteToggleAEP, TextColorShowPaletteToggleAttr, ToolbarEventPayload, TransactionEventPayload, TypeAheadPayload, UfoSessionCompletePayloadAEP, UnlinkToolbarAEP, ViewedCreateLinkInlineDialogAEP, FireAnalyticsCallback, FireAnalyticsEvent, FireAnalyticsEventPayload, InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, OverflowStateInfo, } from './types';
|
|
3
3
|
export type { EditorAnalyticsAPI } from './api';
|
|
4
4
|
export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
|
|
@@ -8,7 +8,7 @@ export { PUNC, SYMBOL } from './substitute-events';
|
|
|
8
8
|
export { BROWSER_FREEZE_INTERACTION_TYPE, FULL_WIDTH_MODE, MODE, PLATFORMS, } from './general-events';
|
|
9
9
|
export { LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, USER_CONTEXT } from './insert-events';
|
|
10
10
|
export type { InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, } from './insert-events';
|
|
11
|
-
export { TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_CHANGE_TRIGGER, TABLE_STATUS, TABLE_DISPLAY_MODE, } from './table-events';
|
|
11
|
+
export { CHANGE_ALIGNMENT_REASON, TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_CHANGE_TRIGGER, TABLE_STATUS, TABLE_DISPLAY_MODE, } from './table-events';
|
|
12
12
|
export type { TableEventPayload, OverflowStateInfo } from './table-events';
|
|
13
13
|
export { PasteContents, PasteSources, PasteTypes } from './paste-events';
|
|
14
14
|
export type { PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, } from './paste-events';
|
|
@@ -190,11 +190,17 @@ type TableChangedDisplayModeAEP = TableAEP<TABLE_ACTION.CHANGED_DISPLAY_MODE, {
|
|
|
190
190
|
tableWidth: number | null;
|
|
191
191
|
} & TotalRowAndColCount, undefined>;
|
|
192
192
|
type AlignmentOptions = 'center' | 'align-start';
|
|
193
|
+
export declare enum CHANGE_ALIGNMENT_REASON {
|
|
194
|
+
TABLE_RESIZING = "tableResizing",
|
|
195
|
+
EDITOR_APPEARANCE_CHANGED = "editorAppearanceChanged",
|
|
196
|
+
TOOLBAR_OPTION_CHANGED = "toolbarOptionChanged"
|
|
197
|
+
}
|
|
193
198
|
type TableChangedAlignmentAEP = TableAEP<TABLE_ACTION.CHANGED_ALIGNMENT, {
|
|
194
199
|
newAlignment: AlignmentOptions;
|
|
195
200
|
previousAlignment: AlignmentOptions | null;
|
|
196
201
|
tableWidth: number | null;
|
|
197
|
-
inputMethod: INPUT_METHOD.FLOATING_TB;
|
|
202
|
+
inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.AUTO;
|
|
203
|
+
reason: CHANGE_ALIGNMENT_REASON;
|
|
198
204
|
} & TotalRowAndColCount, undefined>;
|
|
199
205
|
export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP | TableChangedAlignmentAEP;
|
|
200
206
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { type IntlShape } from 'react-intl-next';
|
|
1
2
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
3
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
4
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import type { ACTION, EditorAnalyticsAPI, INPUT_METHOD } from '../analytics';
|
|
5
|
-
import type
|
|
6
|
-
import type { Command } from '../types';
|
|
6
|
+
import { type CardAppearance, type ProviderFactory } from '../provider-factory';
|
|
7
|
+
import type { Command, FloatingToolbarItem } from '../types';
|
|
7
8
|
export interface OptionConfig {
|
|
8
9
|
appearance?: CardAppearance;
|
|
9
10
|
title: string;
|
|
@@ -19,9 +20,14 @@ export type QueueCardsFromTransactionAction = (state: EditorState, tr: Transacti
|
|
|
19
20
|
export type HideLinkToolbarAction = (tr: Transaction) => Transaction;
|
|
20
21
|
export type ChangeSelectedCardToLink = (text?: string, href?: string, sendAnalytics?: boolean, node?: Node, pos?: number, editorAnalyticsApi?: EditorAnalyticsAPI) => Command;
|
|
21
22
|
export type SetSelectedCardAppearance = (appearance: CardAppearance, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
|
|
23
|
+
export type GetStartingToolbarItems = (intl: IntlShape, link: string, providerFactory: ProviderFactory, onEditLink: Command, metadata: {
|
|
24
|
+
url: string;
|
|
25
|
+
title: string;
|
|
26
|
+
}) => FloatingToolbarItem<Command>[];
|
|
27
|
+
export type GetEndingToolbarItems = (intl: IntlShape, link: string) => FloatingToolbarItem<Command>[];
|
|
22
28
|
export type CardPluginActions = {
|
|
23
29
|
queueCardsFromChangedTr: QueueCardsFromTransactionAction;
|
|
24
30
|
hideLinkToolbar: HideLinkToolbarAction;
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
getStartingToolbarItems: GetStartingToolbarItems;
|
|
32
|
+
getEndingToolbarItems: GetEndingToolbarItems;
|
|
27
33
|
};
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -128,6 +128,10 @@ declare const _default: {
|
|
|
128
128
|
'fabric.editor.edit.searchInput': string;
|
|
129
129
|
'fabric.editor.editAltText': string;
|
|
130
130
|
'fabric.editor.editDateText': string;
|
|
131
|
+
'fabric.editor.editDropdownEditDatasourceTitle': string;
|
|
132
|
+
'fabric.editor.editDropdownEditLinkTitle': string;
|
|
133
|
+
'fabric.editor.editDropdownExpandIconLabel': string;
|
|
134
|
+
'fabric.editor.editDropdownTriggerTitle': string;
|
|
131
135
|
'fabric.editor.editLink': string;
|
|
132
136
|
'fabric.editor.editMode.inviteToEditButton.title': string;
|
|
133
137
|
'fabric.editor.editStatusColor': string;
|
|
@@ -243,6 +247,7 @@ declare const _default: {
|
|
|
243
247
|
'fabric.editor.info': string;
|
|
244
248
|
'fabric.editor.infoPanel': string;
|
|
245
249
|
'fabric.editor.infoPanel.description': string;
|
|
250
|
+
'fabric.editor.inlineConfigureLink': string;
|
|
246
251
|
'fabric.editor.inlineDescription': string;
|
|
247
252
|
'fabric.editor.inlineOverlay': string;
|
|
248
253
|
'fabric.editor.inlineTitle': string;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -243,6 +243,7 @@ declare const _default: {
|
|
|
243
243
|
'fabric.editor.info': string;
|
|
244
244
|
'fabric.editor.infoPanel': string;
|
|
245
245
|
'fabric.editor.infoPanel.description': string;
|
|
246
|
+
'fabric.editor.inlineConfigureLink': string;
|
|
246
247
|
'fabric.editor.inlineDescription': string;
|
|
247
248
|
'fabric.editor.inlineOverlay': string;
|
|
248
249
|
'fabric.editor.inlineTitle': string;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -243,6 +243,7 @@ declare const _default: {
|
|
|
243
243
|
'fabric.editor.info': string;
|
|
244
244
|
'fabric.editor.infoPanel': string;
|
|
245
245
|
'fabric.editor.infoPanel.description': string;
|
|
246
|
+
'fabric.editor.inlineConfigureLink': string;
|
|
246
247
|
'fabric.editor.inlineDescription': string;
|
|
247
248
|
'fabric.editor.inlineOverlay': string;
|
|
248
249
|
'fabric.editor.inlineTitle': string;
|
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -128,6 +128,10 @@ declare const _default: {
|
|
|
128
128
|
'fabric.editor.edit.searchInput': string;
|
|
129
129
|
'fabric.editor.editAltText': string;
|
|
130
130
|
'fabric.editor.editDateText': string;
|
|
131
|
+
'fabric.editor.editDropdownEditDatasourceTitle': string;
|
|
132
|
+
'fabric.editor.editDropdownEditLinkTitle': string;
|
|
133
|
+
'fabric.editor.editDropdownExpandIconLabel': string;
|
|
134
|
+
'fabric.editor.editDropdownTriggerTitle': string;
|
|
131
135
|
'fabric.editor.editLink': string;
|
|
132
136
|
'fabric.editor.editMode.inviteToEditButton.title': string;
|
|
133
137
|
'fabric.editor.editStatusColor': string;
|
|
@@ -128,6 +128,10 @@ declare const _default: {
|
|
|
128
128
|
'fabric.editor.edit.searchInput': string;
|
|
129
129
|
'fabric.editor.editAltText': string;
|
|
130
130
|
'fabric.editor.editDateText': string;
|
|
131
|
+
'fabric.editor.editDropdownEditDatasourceTitle': string;
|
|
132
|
+
'fabric.editor.editDropdownEditLinkTitle': string;
|
|
133
|
+
'fabric.editor.editDropdownExpandIconLabel': string;
|
|
134
|
+
'fabric.editor.editDropdownTriggerTitle': string;
|
|
131
135
|
'fabric.editor.editLink': string;
|
|
132
136
|
'fabric.editor.editMode.inviteToEditButton.title': string;
|
|
133
137
|
'fabric.editor.editStatusColor': string;
|
|
@@ -128,6 +128,10 @@ declare const _default: {
|
|
|
128
128
|
'fabric.editor.edit.searchInput': string;
|
|
129
129
|
'fabric.editor.editAltText': string;
|
|
130
130
|
'fabric.editor.editDateText': string;
|
|
131
|
+
'fabric.editor.editDropdownEditDatasourceTitle': string;
|
|
132
|
+
'fabric.editor.editDropdownEditLinkTitle': string;
|
|
133
|
+
'fabric.editor.editDropdownExpandIconLabel': string;
|
|
134
|
+
'fabric.editor.editDropdownTriggerTitle': string;
|
|
131
135
|
'fabric.editor.editLink': string;
|
|
132
136
|
'fabric.editor.editMode.inviteToEditButton.title': string;
|
|
133
137
|
'fabric.editor.editStatusColor': string;
|
package/dist/types/i18n/es.d.ts
CHANGED
|
@@ -243,6 +243,7 @@ declare const _default: {
|
|
|
243
243
|
'fabric.editor.info': string;
|
|
244
244
|
'fabric.editor.infoPanel': string;
|
|
245
245
|
'fabric.editor.infoPanel.description': string;
|
|
246
|
+
'fabric.editor.inlineConfigureLink': string;
|
|
246
247
|
'fabric.editor.inlineDescription': string;
|
|
247
248
|
'fabric.editor.inlineOverlay': string;
|
|
248
249
|
'fabric.editor.inlineTitle': string;
|