@atlaskit/editor-common 81.2.2 → 82.0.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 +40 -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/table.js +0 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/blockquote.js +1 -0
- 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/table.js +0 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/blockquote.js +1 -0
- 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/table.js +0 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/blockquote.js +1 -0
- 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/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/table.d.ts +0 -5
- package/dist/types-ts4.5/utils/breakout.d.ts +1 -1
- package/package.json +5 -5
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'Informações',
|
|
246
246
|
'fabric.editor.infoPanel': 'Painel de informações',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'Destacar informações em um painel colorido',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'Configurar link',
|
|
248
249
|
'fabric.editor.inlineDescription': 'Mostrar link como texto em linha',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'Configurar',
|
|
250
251
|
'fabric.editor.inlineTitle': 'Em linha',
|
package/dist/es2019/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/es2019/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/es2019/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/es2019/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/es2019/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/es2019/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/es2019/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': '内联',
|
|
@@ -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': '內嵌',
|
|
@@ -65,6 +65,11 @@ export const addRowBefore = makeKeyMapWithCommon('Add Row Above', 'Ctrl-Alt-Arro
|
|
|
65
65
|
export const addRowAfter = makeKeyMapWithCommon('Add Row Below', 'Ctrl-Alt-ArrowDown');
|
|
66
66
|
export const addColumnAfter = makeKeyMapWithCommon('Add Column After', 'Ctrl-Alt-ArrowRight');
|
|
67
67
|
export const addColumnBefore = makeKeyMapWithCommon('Add Column Before', 'Ctrl-Alt-ArrowLeft');
|
|
68
|
+
// 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
|
|
69
|
+
export const addRowBeforeVO = makeKeyMapWithCommon('Add Row Above', 'Mod-Alt-[');
|
|
70
|
+
export const addRowAfterVO = makeKeyMapWithCommon('Add Row Below', 'Mod-Alt-]');
|
|
71
|
+
export const addColumnAfterVO = makeKeyMapWithCommon('Add Column After', 'Mod-Alt-=');
|
|
72
|
+
export const addColumnBeforeVO = makeKeyMapWithCommon('Add Column Before', 'Mod-Alt--');
|
|
68
73
|
export const moveColumnLeft = makeKeyMapWithCommon('Move Column Left', 'Ctrl-Alt-Shift-ArrowLeft');
|
|
69
74
|
export const moveColumnRight = makeKeyMapWithCommon('Move Column Right', 'Ctrl-Alt-Shift-ArrowRight');
|
|
70
75
|
export const moveRowDown = makeKeyMapWithCommon('Move Row Down', 'Ctrl-Alt-Shift-ArrowDown');
|
|
@@ -146,13 +146,12 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
146
146
|
_defineProperty(this, "quickSearchQueryVersion", 0);
|
|
147
147
|
_defineProperty(this, "analyticSource", 'createLinkInlineDialog');
|
|
148
148
|
_defineProperty(this, "quickSearch", async (input, items, quickSearchLimit) => {
|
|
149
|
-
var _pluginState$searchSe;
|
|
150
149
|
const {
|
|
151
150
|
searchProvider,
|
|
152
151
|
displayUrl
|
|
153
152
|
} = this.state;
|
|
154
153
|
const {
|
|
155
|
-
|
|
154
|
+
searchSessionId
|
|
156
155
|
} = this.props;
|
|
157
156
|
if (!searchProvider) {
|
|
158
157
|
return;
|
|
@@ -166,7 +165,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
166
165
|
queryLength: input.length,
|
|
167
166
|
queryVersion,
|
|
168
167
|
queryHash: sha1(input),
|
|
169
|
-
searchSessionId:
|
|
168
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
170
169
|
wordCount: wordCount(input),
|
|
171
170
|
source: this.analyticSource
|
|
172
171
|
},
|
|
@@ -177,7 +176,6 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
177
176
|
});
|
|
178
177
|
const perfStart = performance.now();
|
|
179
178
|
try {
|
|
180
|
-
var _pluginState$searchSe2;
|
|
181
179
|
const searchProviderResultItems = await searchProvider.quickSearch(input, quickSearchLimit);
|
|
182
180
|
const searchItems = limit(filterUniqueItems([...items, ...searchProviderResultItems.map(mapSearchProviderResultToLinkSearchItemData)], (firstItem, secondItem) => firstItem.objectId === secondItem.objectId));
|
|
183
181
|
if (displayUrl === input && queryVersion === this.quickSearchQueryVersion) {
|
|
@@ -205,7 +203,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
205
203
|
attributes: {
|
|
206
204
|
source: this.analyticSource,
|
|
207
205
|
postQueryRequestDurationMs: duration,
|
|
208
|
-
searchSessionId:
|
|
206
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
209
207
|
resultCount: searchProviderResultItems.length,
|
|
210
208
|
results: searchProviderResultItems.map(item => ({
|
|
211
209
|
resultContentId: item.objectId,
|
|
@@ -349,7 +347,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
349
347
|
});
|
|
350
348
|
_defineProperty(this, "handleInsert", (href, title, inputType, interaction) => {
|
|
351
349
|
const {
|
|
352
|
-
|
|
350
|
+
searchSessionId,
|
|
353
351
|
onSubmit
|
|
354
352
|
} = this.props;
|
|
355
353
|
const {
|
|
@@ -362,7 +360,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
362
360
|
onSubmit(href, title, displayText, inputType);
|
|
363
361
|
}
|
|
364
362
|
if (interaction === 'click' || this.isUrlPopulatedWithSelectedItem()) {
|
|
365
|
-
var
|
|
363
|
+
var _selectedItem$prefetc;
|
|
366
364
|
/**
|
|
367
365
|
* When it's a mouse click even or the selectedItem.url matches displayUrl, we think
|
|
368
366
|
* it's selected from the result list and fire the
|
|
@@ -374,7 +372,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
374
372
|
actionSubject: ACTION_SUBJECT.SEARCH_RESULT,
|
|
375
373
|
attributes: {
|
|
376
374
|
source: this.analyticSource,
|
|
377
|
-
searchSessionId:
|
|
375
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
378
376
|
trigger: interaction,
|
|
379
377
|
resultCount: items.length,
|
|
380
378
|
selectedResultId: selectedItem.objectId,
|
|
@@ -447,9 +445,9 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
447
445
|
selectedIndex
|
|
448
446
|
} = this.state;
|
|
449
447
|
const {
|
|
450
|
-
pluginState,
|
|
451
448
|
view,
|
|
452
|
-
onEscapeCallback
|
|
449
|
+
onEscapeCallback,
|
|
450
|
+
searchSessionId
|
|
453
451
|
} = this.props;
|
|
454
452
|
const {
|
|
455
453
|
keyCode
|
|
@@ -481,7 +479,6 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
481
479
|
updatedIndex = selectedIndex > 0 ? selectedIndex - 1 : items.length - 1;
|
|
482
480
|
}
|
|
483
481
|
if ([KEY_CODE_ARROW_DOWN, KEY_CODE_ARROW_UP].includes(keyCode) && items[updatedIndex]) {
|
|
484
|
-
var _pluginState$searchSe4;
|
|
485
482
|
this.setState({
|
|
486
483
|
selectedIndex: updatedIndex,
|
|
487
484
|
displayUrl: items[updatedIndex].url
|
|
@@ -491,7 +488,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
491
488
|
actionSubject: ACTION_SUBJECT.SEARCH_RESULT,
|
|
492
489
|
attributes: {
|
|
493
490
|
source: this.analyticSource,
|
|
494
|
-
searchSessionId:
|
|
491
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
495
492
|
selectedResultId: items[updatedIndex].objectId,
|
|
496
493
|
selectedRelativePosition: updatedIndex
|
|
497
494
|
},
|
|
@@ -530,18 +527,19 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
530
527
|
this.fireCustomAnalytics = fireAnalyticsEvent(props.createAnalyticsEvent);
|
|
531
528
|
}
|
|
532
529
|
async componentDidMount() {
|
|
533
|
-
var _pluginState$searchSe5, _pluginState$inputMet;
|
|
534
530
|
const {
|
|
535
|
-
|
|
531
|
+
timesViewed,
|
|
532
|
+
inputMethod,
|
|
533
|
+
searchSessionId
|
|
536
534
|
} = this.props;
|
|
537
535
|
document.addEventListener('mousedown', this.handleClickOutside);
|
|
538
536
|
this.fireAnalytics({
|
|
539
537
|
action: ACTION.VIEWED,
|
|
540
538
|
actionSubject: ACTION_SUBJECT.CREATE_LINK_INLINE_DIALOG,
|
|
541
539
|
attributes: {
|
|
542
|
-
timesViewed:
|
|
543
|
-
searchSessionId:
|
|
544
|
-
trigger:
|
|
540
|
+
timesViewed: timesViewed !== null && timesViewed !== void 0 ? timesViewed : 0,
|
|
541
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
542
|
+
trigger: inputMethod !== null && inputMethod !== void 0 ? inputMethod : ''
|
|
545
543
|
},
|
|
546
544
|
eventType: EVENT_TYPE.SCREEN
|
|
547
545
|
});
|
|
@@ -556,17 +554,16 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
556
554
|
}
|
|
557
555
|
componentWillUnmount() {
|
|
558
556
|
const {
|
|
559
|
-
|
|
557
|
+
searchSessionId
|
|
560
558
|
} = this.props;
|
|
561
559
|
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
562
560
|
if (!this.submitted) {
|
|
563
|
-
var _pluginState$searchSe6;
|
|
564
561
|
this.fireAnalytics({
|
|
565
562
|
action: ACTION.DISMISSED,
|
|
566
563
|
actionSubject: ACTION_SUBJECT.CREATE_LINK_INLINE_DIALOG,
|
|
567
564
|
attributes: {
|
|
568
565
|
source: this.analyticSource,
|
|
569
|
-
searchSessionId:
|
|
566
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
570
567
|
trigger: 'blur'
|
|
571
568
|
},
|
|
572
569
|
eventType: EVENT_TYPE.UI
|
|
@@ -575,11 +572,10 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
575
572
|
}
|
|
576
573
|
async getRecentItems(activityProvider, query) {
|
|
577
574
|
const {
|
|
578
|
-
|
|
575
|
+
searchSessionId
|
|
579
576
|
} = this.props;
|
|
580
577
|
const perfStart = performance.now();
|
|
581
578
|
try {
|
|
582
|
-
var _pluginState$searchSe7;
|
|
583
579
|
const activityRecentItems = limit(query ? await activityProvider.searchRecent(query) : await activityProvider.getRecentItems());
|
|
584
580
|
const items = activityRecentItems.map(mapActivityProviderResultToLinkSearchItemData);
|
|
585
581
|
const perfStop = performance.now();
|
|
@@ -601,7 +597,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
601
597
|
attributes: {
|
|
602
598
|
source: this.analyticSource,
|
|
603
599
|
preQueryRequestDurationMs: duration,
|
|
604
|
-
searchSessionId:
|
|
600
|
+
searchSessionId: searchSessionId !== null && searchSessionId !== void 0 ? searchSessionId : '',
|
|
605
601
|
resultCount: items.length,
|
|
606
602
|
results: activityRecentItems.map(item => {
|
|
607
603
|
var _item$type;
|
|
@@ -29,7 +29,10 @@ export function HyperlinkAddToolbar({
|
|
|
29
29
|
onClose,
|
|
30
30
|
onEscapeCallback,
|
|
31
31
|
onClickAwayCallback,
|
|
32
|
-
|
|
32
|
+
editorAppearance,
|
|
33
|
+
inputMethod,
|
|
34
|
+
searchSessionId,
|
|
35
|
+
timesViewed
|
|
33
36
|
}) {
|
|
34
37
|
return /*#__PURE__*/React.createElement(WithProviders, {
|
|
35
38
|
providers: ['activityProvider', 'searchProvider'],
|
|
@@ -43,8 +46,8 @@ export function HyperlinkAddToolbar({
|
|
|
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({
|
|
|
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
|
|
|
@@ -90,7 +90,7 @@ const calcLegacyWideWidth = (containerWidth, origWidth, contentWidth) => {
|
|
|
90
90
|
* @param containerWidth width of editor container
|
|
91
91
|
*/
|
|
92
92
|
export const calcMediaSingleMaxWidth = containerWidth => {
|
|
93
|
-
const fullWidthPadding =
|
|
93
|
+
const fullWidthPadding = akEditorGutterPaddingDynamic() * 2;
|
|
94
94
|
return Math.min(containerWidth - fullWidthPadding, akEditorFullWidthLayoutWidth);
|
|
95
95
|
};
|
|
96
96
|
|
|
@@ -30,6 +30,16 @@ export const 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 const 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: {
|
|
@@ -240,11 +240,6 @@ export const 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',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "
|
|
3
|
+
const packageVersion = "82.0.1";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -3,6 +3,7 @@ import { akEditorBlockquoteBorderColor, blockNodesVerticalMargin } from '@atlask
|
|
|
3
3
|
export const blockquoteSharedStyles = css({
|
|
4
4
|
'& blockquote': {
|
|
5
5
|
boxSizing: 'border-box',
|
|
6
|
+
color: 'inherit',
|
|
6
7
|
paddingLeft: "var(--ds-space-200, 16px)",
|
|
7
8
|
borderLeft: `2px solid ${`var(--ds-border, ${akEditorBlockquoteBorderColor})`}`,
|
|
8
9
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "
|
|
10
|
+
const packageVersion = "82.0.1";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -21,8 +21,8 @@ const breakoutConsts = {
|
|
|
21
21
|
/**
|
|
22
22
|
* This function can return percentage value or px value depending upon the inputs
|
|
23
23
|
*/
|
|
24
|
-
calcBreakoutWidth: (layout, containerWidth) => {
|
|
25
|
-
const effectiveFullWidth = containerWidth - breakoutConsts.padding;
|
|
24
|
+
calcBreakoutWidth: (layout, containerWidth, padding) => {
|
|
25
|
+
const effectiveFullWidth = containerWidth - (padding !== null && padding !== void 0 ? padding : breakoutConsts.padding);
|
|
26
26
|
switch (layout) {
|
|
27
27
|
case 'full-width':
|
|
28
28
|
return `${Math.min(effectiveFullWidth, breakoutConsts.fullWidthLayoutWidth)}px`;
|
|
@@ -30,7 +30,7 @@ const breakoutConsts = {
|
|
|
30
30
|
if (effectiveFullWidth <= 0) {
|
|
31
31
|
return '100%';
|
|
32
32
|
}
|
|
33
|
-
let wideWidth = breakoutConsts.calcWideWidth(containerWidth);
|
|
33
|
+
let wideWidth = breakoutConsts.calcWideWidth(containerWidth, undefined, undefined, padding);
|
|
34
34
|
if (wideWidth.endsWith('%')) {
|
|
35
35
|
return `${Math.min(effectiveFullWidth, breakoutConsts.fullWidthLayoutWidth)}px`;
|
|
36
36
|
}
|
|
@@ -40,8 +40,8 @@ const breakoutConsts = {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
calcLineLength: () => breakoutConsts.defaultLayoutWidth,
|
|
43
|
-
calcWideWidth: (containerWidth = breakoutConsts.defaultLayoutWidth, maxWidth = Infinity, fallback = '100%') => {
|
|
44
|
-
const effectiveFullWidth = containerWidth - breakoutConsts.padding;
|
|
43
|
+
calcWideWidth: (containerWidth = breakoutConsts.defaultLayoutWidth, maxWidth = Infinity, fallback = '100%', padding) => {
|
|
44
|
+
const effectiveFullWidth = containerWidth - (padding !== null && padding !== void 0 ? padding : breakoutConsts.padding);
|
|
45
45
|
const layoutMaxWidth = breakoutConsts.mapBreakpointToLayoutMaxWidth(breakoutConsts.getBreakpoint(containerWidth));
|
|
46
46
|
const wideWidth = Math.min(Math.ceil(layoutMaxWidth * breakoutConsts.wideScaleRatio), effectiveFullWidth);
|
|
47
47
|
return layoutMaxWidth > wideWidth ? fallback : `${Math.min(maxWidth, wideWidth)}px`;
|
|
@@ -110,8 +110,8 @@ export function calculateBreakoutStyles({
|
|
|
110
110
|
marginLeft: `50%`
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
export function calcBreakoutWidthPx(mode, widthStateWidth) {
|
|
114
|
-
return parsePx(calcBreakoutWidth(mode, widthStateWidth));
|
|
113
|
+
export function calcBreakoutWidthPx(mode, widthStateWidth, padding) {
|
|
114
|
+
return parsePx(calcBreakoutWidth(mode, widthStateWidth, padding));
|
|
115
115
|
}
|
|
116
116
|
export const getNextBreakoutMode = currentMode => {
|
|
117
117
|
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 { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
|
|
3
3
|
export { getAnalyticsEventsFromTransaction } from './utils';
|
|
4
4
|
export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload } from './linking-utils';
|
|
@@ -3,7 +3,7 @@ export { INDENT_DIRECTION, INDENT_TYPE } from './format-events';
|
|
|
3
3
|
export { PUNC, SYMBOL } from './substitute-events';
|
|
4
4
|
export { BROWSER_FREEZE_INTERACTION_TYPE, FULL_WIDTH_MODE, MODE, PLATFORMS } from './general-events';
|
|
5
5
|
export { LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, USER_CONTEXT } from './insert-events';
|
|
6
|
-
export { TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_CHANGE_TRIGGER, TABLE_STATUS, TABLE_DISPLAY_MODE } from './table-events';
|
|
6
|
+
export { CHANGE_ALIGNMENT_REASON, TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_CHANGE_TRIGGER, TABLE_STATUS, TABLE_DISPLAY_MODE } from './table-events';
|
|
7
7
|
export { PasteContents, PasteSources, PasteTypes } from './paste-events';
|
|
8
8
|
export { DELETE_DIRECTION, LIST_TEXT_SCENARIOS, JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST, OUTDENT_SCENARIOS } from './list-events';
|
|
9
9
|
export { GAP_CURSOR_POSITION, TARGET_SELECTION_SOURCE } from './extension-events';
|
|
@@ -64,4 +64,11 @@ export var TABLE_DISPLAY_MODE = /*#__PURE__*/function (TABLE_DISPLAY_MODE) {
|
|
|
64
64
|
return TABLE_DISPLAY_MODE;
|
|
65
65
|
}({});
|
|
66
66
|
|
|
67
|
-
// currently duplicated in editor-plugin-table/src/types.ts
|
|
67
|
+
// currently duplicated in editor-plugin-table/src/types.ts
|
|
68
|
+
|
|
69
|
+
export var CHANGE_ALIGNMENT_REASON = /*#__PURE__*/function (CHANGE_ALIGNMENT_REASON) {
|
|
70
|
+
CHANGE_ALIGNMENT_REASON["TABLE_RESIZING"] = "tableResizing";
|
|
71
|
+
CHANGE_ALIGNMENT_REASON["EDITOR_APPEARANCE_CHANGED"] = "editorAppearanceChanged";
|
|
72
|
+
CHANGE_ALIGNMENT_REASON["TOOLBAR_OPTION_CHANGED"] = "toolbarOptionChanged";
|
|
73
|
+
return CHANGE_ALIGNMENT_REASON;
|
|
74
|
+
}({});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { Fragment } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import {
|
|
5
|
+
import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { useSharedPluginState } from '../../../hooks';
|
|
8
8
|
import { createWidthContext, WidthContext } from '../../../ui';
|
|
@@ -27,7 +27,7 @@ var InlineExtension = function InlineExtension(props) {
|
|
|
27
27
|
'with-border': showMacroInteractionDesignUpdates,
|
|
28
28
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered
|
|
29
29
|
});
|
|
30
|
-
var rendererContainerWidth = widthState ? widthState.width -
|
|
30
|
+
var rendererContainerWidth = widthState ? widthState.width - akEditorGutterPaddingDynamic() * 2 : 0;
|
|
31
31
|
var extendedInlineExtension = getBooleanFF('platform.editor.inline_extension.extended_lcqdn') || false;
|
|
32
32
|
var handleMouseEvent = function handleMouseEvent(didHover) {
|
|
33
33
|
if (setIsNodeHovered) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth,
|
|
2
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { getMediaSinglePixelWidth, roundToNearest } from '../media-single';
|
|
4
4
|
export var isNumber = function isNumber(x) {
|
|
5
5
|
return typeof x === 'number' && !isNaN(x) && isFinite(x);
|
|
@@ -53,7 +53,7 @@ export var getGuidelineTypeFromKey = function getGuidelineTypeFromKey(keys, guid
|
|
|
53
53
|
* width and editor gutter padding.
|
|
54
54
|
*/
|
|
55
55
|
export var getContainerWidthOrFullEditorWidth = function getContainerWidthOrFullEditorWidth(containerWidth) {
|
|
56
|
-
return Math.min(containerWidth -
|
|
56
|
+
return Math.min(containerWidth - akEditorGutterPaddingDynamic() * 2, akEditorFullWidthLayoutWidth) / 2;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
/**
|
package/dist/esm/i18n/cs.js
CHANGED
|
@@ -130,6 +130,10 @@ export default {
|
|
|
130
130
|
'fabric.editor.edit.searchInput': 'Přidat odkaz',
|
|
131
131
|
'fabric.editor.editAltText': 'Upravit alternativní text',
|
|
132
132
|
'fabric.editor.editDateText': 'Upravit datum',
|
|
133
|
+
'fabric.editor.editDropdownEditDatasourceTitle': 'Upravit vyhledávací dotaz',
|
|
134
|
+
'fabric.editor.editDropdownEditLinkTitle': 'Upravit odkaz',
|
|
135
|
+
'fabric.editor.editDropdownExpandIconLabel': 'Rozbalit rozevírací nabídku',
|
|
136
|
+
'fabric.editor.editDropdownTriggerTitle': 'Upravit',
|
|
133
137
|
'fabric.editor.editLink': 'Upravit odkaz',
|
|
134
138
|
'fabric.editor.editMode.inviteToEditButton.title': 'Pozvat k úpravám',
|
|
135
139
|
'fabric.editor.editStatusColor': 'Upravit barvu stavu',
|
|
@@ -245,6 +249,7 @@ export default {
|
|
|
245
249
|
'fabric.editor.info': 'Informace',
|
|
246
250
|
'fabric.editor.infoPanel': 'Informační panel',
|
|
247
251
|
'fabric.editor.infoPanel.description': 'Zvýraznit informace v barevném panelu',
|
|
252
|
+
'fabric.editor.inlineConfigureLink': 'Konfigurovat odkaz',
|
|
248
253
|
'fabric.editor.inlineDescription': 'Zobrazit odkaz jako vložený text',
|
|
249
254
|
'fabric.editor.inlineOverlay': 'Konfigurovat',
|
|
250
255
|
'fabric.editor.inlineTitle': 'Vložený',
|
package/dist/esm/i18n/da.js
CHANGED
|
@@ -215,7 +215,7 @@ export default {
|
|
|
215
215
|
'fabric.editor.headingLink.hyperlinkIconBugLabel': 'Fejl',
|
|
216
216
|
'fabric.editor.headingLink.hyperlinkIconIssueLabel': 'Sag',
|
|
217
217
|
'fabric.editor.headingLink.hyperlinkIconPageLabel': 'Side',
|
|
218
|
-
'fabric.editor.headingLink.hyperlinkIconStoryLabel': '
|
|
218
|
+
'fabric.editor.headingLink.hyperlinkIconStoryLabel': 'Historie',
|
|
219
219
|
'fabric.editor.headingLink.hyperlinkIconTaskLabel': 'Opgave',
|
|
220
220
|
'fabric.editor.headingLink.invalidLabel': '⚠️ En tabel med flettede celler kan ikke sorteres',
|
|
221
221
|
'fabric.editor.headingLink.noOrderLabel': 'Sortér kolonnen fra A til Å',
|
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'Info',
|
|
246
246
|
'fabric.editor.infoPanel': 'Informationspanel',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'Fremhæv information i et farvet panel',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'Konfigurer link',
|
|
248
249
|
'fabric.editor.inlineDescription': 'Vis link som indbygget tekst',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'Konfigurer',
|
|
250
251
|
'fabric.editor.inlineTitle': 'Indbyg',
|
|
@@ -366,7 +367,7 @@ export default {
|
|
|
366
367
|
'fabric.editor.status': 'Status',
|
|
367
368
|
'fabric.editor.status.description': 'Tilføj en brugerdefineret statusetiket',
|
|
368
369
|
'fabric.editor.statusPlaceholder': 'Angiv en status',
|
|
369
|
-
'fabric.editor.story': '
|
|
370
|
+
'fabric.editor.story': 'Historie',
|
|
370
371
|
'fabric.editor.strike': 'Gennemstreget',
|
|
371
372
|
'fabric.editor.subTask': 'Underopgave',
|
|
372
373
|
'fabric.editor.subscript': 'Sænket skrift',
|
package/dist/esm/i18n/de.js
CHANGED
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'Info',
|
|
246
246
|
'fabric.editor.infoPanel': 'Info-Panel',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'Informationen in einem farbigen Panel hervorheben',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'Link konfigurieren',
|
|
248
249
|
'fabric.editor.inlineDescription': 'Link als Inline-Text anzeigen',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'Konfigurieren',
|
|
250
251
|
'fabric.editor.inlineTitle': 'Inline',
|
package/dist/esm/i18n/en.js
CHANGED
|
@@ -130,6 +130,10 @@ export default {
|
|
|
130
130
|
'fabric.editor.edit.searchInput': 'Add a link',
|
|
131
131
|
'fabric.editor.editAltText': 'Edit alt text',
|
|
132
132
|
'fabric.editor.editDateText': 'Edit Date',
|
|
133
|
+
'fabric.editor.editDropdownEditDatasourceTitle': 'Edit search query',
|
|
134
|
+
'fabric.editor.editDropdownEditLinkTitle': 'Edit link',
|
|
135
|
+
'fabric.editor.editDropdownExpandIconLabel': 'Expand dropdown menu',
|
|
136
|
+
'fabric.editor.editDropdownTriggerTitle': 'Edit',
|
|
133
137
|
'fabric.editor.editLink': 'Edit link',
|
|
134
138
|
'fabric.editor.editMode.inviteToEditButton.title': 'Invite to edit',
|
|
135
139
|
'fabric.editor.editStatusColor': 'Edit Status Color',
|
package/dist/esm/i18n/en_GB.js
CHANGED
|
@@ -130,6 +130,10 @@ export default {
|
|
|
130
130
|
'fabric.editor.edit.searchInput': 'Add a link',
|
|
131
131
|
'fabric.editor.editAltText': 'Edit alt text',
|
|
132
132
|
'fabric.editor.editDateText': 'Edit Date',
|
|
133
|
+
'fabric.editor.editDropdownEditDatasourceTitle': 'Edit search query',
|
|
134
|
+
'fabric.editor.editDropdownEditLinkTitle': 'Edit link',
|
|
135
|
+
'fabric.editor.editDropdownExpandIconLabel': 'Expand dropdown menu',
|
|
136
|
+
'fabric.editor.editDropdownTriggerTitle': 'Edit',
|
|
133
137
|
'fabric.editor.editLink': 'Edit link',
|
|
134
138
|
'fabric.editor.editMode.inviteToEditButton.title': 'Invite to edit',
|
|
135
139
|
'fabric.editor.editStatusColor': 'Edit Status Colour',
|
package/dist/esm/i18n/en_ZZ.js
CHANGED
|
@@ -130,6 +130,10 @@ export default {
|
|
|
130
130
|
'fabric.editor.edit.searchInput': 'Add a link',
|
|
131
131
|
'fabric.editor.editAltText': 'Edit alt text',
|
|
132
132
|
'fabric.editor.editDateText': 'Edit Date',
|
|
133
|
+
'fabric.editor.editDropdownEditDatasourceTitle': 'Edit search query',
|
|
134
|
+
'fabric.editor.editDropdownEditLinkTitle': 'Edit link',
|
|
135
|
+
'fabric.editor.editDropdownExpandIconLabel': 'Expand dropdown menu',
|
|
136
|
+
'fabric.editor.editDropdownTriggerTitle': 'Edit',
|
|
133
137
|
'fabric.editor.editLink': 'Edit link',
|
|
134
138
|
'fabric.editor.editMode.inviteToEditButton.title': 'Invite to edit',
|
|
135
139
|
'fabric.editor.editStatusColor': 'Edit Status Color',
|
package/dist/esm/i18n/es.js
CHANGED
|
@@ -245,6 +245,7 @@ export default {
|
|
|
245
245
|
'fabric.editor.info': 'Información',
|
|
246
246
|
'fabric.editor.infoPanel': 'Panel de información',
|
|
247
247
|
'fabric.editor.infoPanel.description': 'Destacar información en un panel de color',
|
|
248
|
+
'fabric.editor.inlineConfigureLink': 'Configurar enlace',
|
|
248
249
|
'fabric.editor.inlineDescription': 'Mostrar enlace como texto insertado',
|
|
249
250
|
'fabric.editor.inlineOverlay': 'Configurar',
|
|
250
251
|
'fabric.editor.inlineTitle': 'Insertado',
|