@atlaskit/editor-common 76.12.0 → 76.12.2
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 +15 -0
- package/dist/cjs/i18n/cs.js +41 -1
- package/dist/cjs/i18n/da.js +41 -1
- package/dist/cjs/i18n/de.js +41 -1
- package/dist/cjs/i18n/en.js +44 -1
- package/dist/cjs/i18n/en_GB.js +44 -1
- package/dist/cjs/i18n/en_ZZ.js +44 -1
- package/dist/cjs/i18n/es.js +41 -1
- package/dist/cjs/i18n/fi.js +41 -1
- package/dist/cjs/i18n/fr.js +41 -1
- package/dist/cjs/i18n/hu.js +41 -1
- package/dist/cjs/i18n/it.js +41 -1
- package/dist/cjs/i18n/ja.js +41 -1
- package/dist/cjs/i18n/ko.js +41 -1
- package/dist/cjs/i18n/nb.js +41 -1
- package/dist/cjs/i18n/nl.js +41 -1
- package/dist/cjs/i18n/pl.js +41 -1
- package/dist/cjs/i18n/pt_BR.js +41 -1
- package/dist/cjs/i18n/ru.js +41 -1
- package/dist/cjs/i18n/sv.js +41 -1
- package/dist/cjs/i18n/th.js +41 -1
- package/dist/cjs/i18n/tr.js +41 -1
- package/dist/cjs/i18n/uk.js +41 -1
- package/dist/cjs/i18n/vi.js +41 -1
- package/dist/cjs/i18n/zh.js +41 -1
- package/dist/cjs/i18n/zh_TW.js +41 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/types/selection-toolbar.js +5 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/calculate-toolbar-position.js +146 -0
- package/dist/cjs/utils/index.js +13 -0
- package/dist/es2019/i18n/cs.js +41 -1
- package/dist/es2019/i18n/da.js +41 -1
- package/dist/es2019/i18n/de.js +41 -1
- package/dist/es2019/i18n/en.js +44 -1
- package/dist/es2019/i18n/en_GB.js +44 -1
- package/dist/es2019/i18n/en_ZZ.js +44 -1
- package/dist/es2019/i18n/es.js +41 -1
- package/dist/es2019/i18n/fi.js +41 -1
- package/dist/es2019/i18n/fr.js +41 -1
- package/dist/es2019/i18n/hu.js +41 -1
- package/dist/es2019/i18n/it.js +41 -1
- package/dist/es2019/i18n/ja.js +41 -1
- package/dist/es2019/i18n/ko.js +41 -1
- package/dist/es2019/i18n/nb.js +41 -1
- package/dist/es2019/i18n/nl.js +41 -1
- package/dist/es2019/i18n/pl.js +41 -1
- package/dist/es2019/i18n/pt_BR.js +41 -1
- package/dist/es2019/i18n/ru.js +41 -1
- package/dist/es2019/i18n/sv.js +41 -1
- package/dist/es2019/i18n/th.js +41 -1
- package/dist/es2019/i18n/tr.js +41 -1
- package/dist/es2019/i18n/uk.js +41 -1
- package/dist/es2019/i18n/vi.js +41 -1
- package/dist/es2019/i18n/zh.js +41 -1
- package/dist/es2019/i18n/zh_TW.js +41 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/types/selection-toolbar.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/calculate-toolbar-position.js +140 -0
- package/dist/es2019/utils/index.js +2 -1
- package/dist/esm/i18n/cs.js +41 -1
- package/dist/esm/i18n/da.js +41 -1
- package/dist/esm/i18n/de.js +41 -1
- package/dist/esm/i18n/en.js +44 -1
- package/dist/esm/i18n/en_GB.js +44 -1
- package/dist/esm/i18n/en_ZZ.js +44 -1
- package/dist/esm/i18n/es.js +41 -1
- package/dist/esm/i18n/fi.js +41 -1
- package/dist/esm/i18n/fr.js +41 -1
- package/dist/esm/i18n/hu.js +41 -1
- package/dist/esm/i18n/it.js +41 -1
- package/dist/esm/i18n/ja.js +41 -1
- package/dist/esm/i18n/ko.js +41 -1
- package/dist/esm/i18n/nb.js +41 -1
- package/dist/esm/i18n/nl.js +41 -1
- package/dist/esm/i18n/pl.js +41 -1
- package/dist/esm/i18n/pt_BR.js +41 -1
- package/dist/esm/i18n/ru.js +41 -1
- package/dist/esm/i18n/sv.js +41 -1
- package/dist/esm/i18n/th.js +41 -1
- package/dist/esm/i18n/tr.js +41 -1
- package/dist/esm/i18n/uk.js +41 -1
- package/dist/esm/i18n/vi.js +41 -1
- package/dist/esm/i18n/zh.js +41 -1
- package/dist/esm/i18n/zh_TW.js +41 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/types/selection-toolbar.js +1 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/calculate-toolbar-position.js +140 -0
- package/dist/esm/utils/index.js +2 -1
- package/dist/types/analytics/types/events.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +41 -1
- package/dist/types/i18n/da.d.ts +41 -1
- package/dist/types/i18n/de.d.ts +41 -1
- package/dist/types/i18n/en.d.ts +44 -1
- package/dist/types/i18n/en_GB.d.ts +44 -1
- package/dist/types/i18n/en_ZZ.d.ts +44 -1
- package/dist/types/i18n/es.d.ts +41 -1
- package/dist/types/i18n/fi.d.ts +41 -1
- package/dist/types/i18n/fr.d.ts +41 -1
- package/dist/types/i18n/hu.d.ts +41 -1
- package/dist/types/i18n/it.d.ts +41 -1
- package/dist/types/i18n/ja.d.ts +41 -1
- package/dist/types/i18n/ko.d.ts +41 -1
- package/dist/types/i18n/nb.d.ts +41 -1
- package/dist/types/i18n/nl.d.ts +41 -1
- package/dist/types/i18n/pl.d.ts +41 -1
- package/dist/types/i18n/pt_BR.d.ts +41 -1
- package/dist/types/i18n/ru.d.ts +41 -1
- package/dist/types/i18n/sv.d.ts +41 -1
- package/dist/types/i18n/th.d.ts +41 -1
- package/dist/types/i18n/tr.d.ts +41 -1
- package/dist/types/i18n/uk.d.ts +41 -1
- package/dist/types/i18n/vi.d.ts +41 -1
- package/dist/types/i18n/zh.d.ts +41 -1
- package/dist/types/i18n/zh_TW.d.ts +41 -1
- package/dist/types/types/editor-plugin.d.ts +9 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/selection-toolbar.d.ts +19 -0
- package/dist/types/ui/MediaSingle/grid.d.ts +2 -2
- package/dist/types/utils/calculate-toolbar-position.d.ts +10 -0
- package/dist/types/utils/extension-handler.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +41 -1
- package/dist/types-ts4.5/i18n/da.d.ts +41 -1
- package/dist/types-ts4.5/i18n/de.d.ts +41 -1
- package/dist/types-ts4.5/i18n/en.d.ts +44 -1
- package/dist/types-ts4.5/i18n/en_GB.d.ts +44 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +44 -1
- package/dist/types-ts4.5/i18n/es.d.ts +41 -1
- package/dist/types-ts4.5/i18n/fi.d.ts +41 -1
- package/dist/types-ts4.5/i18n/fr.d.ts +41 -1
- package/dist/types-ts4.5/i18n/hu.d.ts +41 -1
- package/dist/types-ts4.5/i18n/it.d.ts +41 -1
- package/dist/types-ts4.5/i18n/ja.d.ts +41 -1
- package/dist/types-ts4.5/i18n/ko.d.ts +41 -1
- package/dist/types-ts4.5/i18n/nb.d.ts +41 -1
- package/dist/types-ts4.5/i18n/nl.d.ts +41 -1
- package/dist/types-ts4.5/i18n/pl.d.ts +41 -1
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +41 -1
- package/dist/types-ts4.5/i18n/ru.d.ts +41 -1
- package/dist/types-ts4.5/i18n/sv.d.ts +41 -1
- package/dist/types-ts4.5/i18n/th.d.ts +41 -1
- package/dist/types-ts4.5/i18n/tr.d.ts +41 -1
- package/dist/types-ts4.5/i18n/uk.d.ts +41 -1
- package/dist/types-ts4.5/i18n/vi.d.ts +41 -1
- package/dist/types-ts4.5/i18n/zh.d.ts +41 -1
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +41 -1
- package/dist/types-ts4.5/types/editor-plugin.d.ts +9 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -0
- package/dist/types-ts4.5/types/selection-toolbar.d.ts +19 -0
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +2 -2
- package/dist/types-ts4.5/utils/calculate-toolbar-position.d.ts +10 -0
- package/dist/types-ts4.5/utils/extension-handler.d.ts +1 -1
- package/dist/types-ts4.5/utils/index.d.ts +1 -0
- package/package.json +5 -4
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -10,13 +10,19 @@ export default {
|
|
|
10
10
|
'fabric.editor.action': '動作項目',
|
|
11
11
|
'fabric.editor.action.description': '建立並指派動作項目',
|
|
12
12
|
'fabric.editor.addMediaFiles': '新增圖片、影片或檔案',
|
|
13
|
+
'fabric.editor.alignCenter': '置中對齊',
|
|
13
14
|
'fabric.editor.alignImageCenter': '置中對齊',
|
|
14
15
|
'fabric.editor.alignImageLeft': '靠左對齊',
|
|
15
16
|
'fabric.editor.alignImageRight': '靠右對齊',
|
|
17
|
+
'fabric.editor.alignLeft': '靠左對齊',
|
|
18
|
+
'fabric.editor.alignRight': '靠右對齊',
|
|
19
|
+
'fabric.editor.annotationToolbar': '註解工具列',
|
|
16
20
|
'fabric.editor.blockCardUnavailable': '內嵌連結位於 {node} 內,無法變更其檢視',
|
|
17
21
|
'fabric.editor.blockDescription': '顯示有關連結的更多資訊,包括摘要和動作',
|
|
18
22
|
'fabric.editor.blockTitle': '卡片',
|
|
19
23
|
'fabric.editor.blockquote': '引述',
|
|
24
|
+
'fabric.editor.blockquote.description': '插入引述或引文',
|
|
25
|
+
'fabric.editor.blockquote2': '引述',
|
|
20
26
|
'fabric.editor.bold': '粗體',
|
|
21
27
|
'fabric.editor.bug': '錯誤',
|
|
22
28
|
'fabric.editor.cancelButton': '取消',
|
|
@@ -32,11 +38,17 @@ export default {
|
|
|
32
38
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': '複製文字',
|
|
33
39
|
'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': '關閉圍繞',
|
|
34
40
|
'fabric.editor.codeBlockWrapButton.wrapCodeBlock': '開啟圍繞',
|
|
41
|
+
'fabric.editor.codeblock': '程式碼片段',
|
|
42
|
+
'fabric.editor.codeblock.description': '顯示程式碼並醒目提示語法',
|
|
35
43
|
'fabric.editor.collapseNode': '摺疊內容',
|
|
36
44
|
'fabric.editor.columns': '版面配置',
|
|
37
45
|
'fabric.editor.columns.description': '使用區段建立頁面的結構',
|
|
38
46
|
'fabric.editor.copiedToClipboard': '已複製!',
|
|
39
47
|
'fabric.editor.copyToClipboard': '複製',
|
|
48
|
+
'fabric.editor.createComment': '留言',
|
|
49
|
+
'fabric.editor.createCommentInvalid': '您只能在文字和標題上留言',
|
|
50
|
+
'fabric.editor.customPanel': '自訂面板',
|
|
51
|
+
'fabric.editor.customPanel.description': '新增一個帶有表情符號和彩色背景的附註',
|
|
40
52
|
'fabric.editor.datasourceTitle': '編輯搜尋查詢',
|
|
41
53
|
'fabric.editor.date': '日期',
|
|
42
54
|
'fabric.editor.date.description': '使用日曆新增日期',
|
|
@@ -63,6 +75,8 @@ export default {
|
|
|
63
75
|
'fabric.editor.emoji.description': '使用表情符號來傳達想法 🎉 和情緒 😄',
|
|
64
76
|
'fabric.editor.emptyLink': '請輸入連結。',
|
|
65
77
|
'fabric.editor.epic': '大型工作',
|
|
78
|
+
'fabric.editor.errorPanel': '錯誤面板',
|
|
79
|
+
'fabric.editor.errorPanel.description': '以彩色面板呼叫錯誤',
|
|
66
80
|
'fabric.editor.expand': '擴充',
|
|
67
81
|
'fabric.editor.expand.description': '插入擴充',
|
|
68
82
|
'fabric.editor.expandDefaultTitle': '按一下此處以展開...',
|
|
@@ -70,6 +84,18 @@ export default {
|
|
|
70
84
|
'fabric.editor.expandPlaceholder': '為此展開設定標題...',
|
|
71
85
|
'fabric.editor.feedbackDialog': '提供意見回饋',
|
|
72
86
|
'fabric.editor.feedbackDialog.description': '請說明您對於新編輯器的使用體驗',
|
|
87
|
+
'fabric.editor.heading1': '標題 1',
|
|
88
|
+
'fabric.editor.heading1Description': '用於最高層級的標題',
|
|
89
|
+
'fabric.editor.heading2': '標題 2',
|
|
90
|
+
'fabric.editor.heading2Description': '用於主要區段',
|
|
91
|
+
'fabric.editor.heading3': '標題 3',
|
|
92
|
+
'fabric.editor.heading3Description': '用於子區段和群組標題',
|
|
93
|
+
'fabric.editor.heading4': '標題 4',
|
|
94
|
+
'fabric.editor.heading4Description': '用於多層標題',
|
|
95
|
+
'fabric.editor.heading5': '標題 5',
|
|
96
|
+
'fabric.editor.heading5Description': '用於分組清單項目',
|
|
97
|
+
'fabric.editor.heading6': '標題 6',
|
|
98
|
+
'fabric.editor.heading6Description': '用於低層級標題',
|
|
73
99
|
'fabric.editor.headingLink.hyperlinkIconBlogLabel': '部落格',
|
|
74
100
|
'fabric.editor.headingLink.hyperlinkIconBugLabel': '錯誤',
|
|
75
101
|
'fabric.editor.headingLink.hyperlinkIconIssueLabel': '問題',
|
|
@@ -80,12 +106,15 @@ export default {
|
|
|
80
106
|
'fabric.editor.help.description': '瀏覽所有鍵盤快速鍵和 Markdown 選項',
|
|
81
107
|
'fabric.editor.horizontalRule': '分隔線',
|
|
82
108
|
'fabric.editor.horizontalRule.description': '使用水平線來區隔內容',
|
|
83
|
-
'fabric.editor.hyperlink.
|
|
109
|
+
'fabric.editor.hyperlink.linkVisibleLabel': '貼上或搜尋連結',
|
|
84
110
|
'fabric.editor.hyperlink.searchLinkAriaDescription': '當您在欄位中輸入內容時,建議會顯示在下方',
|
|
85
111
|
'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {沒有找到任何結果} other {找到 {count,number} 個結果}}',
|
|
112
|
+
'fabric.editor.hyperlink.textVisibleLabel': '顯示文字 (選擇性)',
|
|
86
113
|
'fabric.editor.hyperlinkToolbarPlaceholder': '貼上或搜尋連結',
|
|
87
114
|
'fabric.editor.image': '影像',
|
|
88
115
|
'fabric.editor.improvement': '改善',
|
|
116
|
+
'fabric.editor.infoPanel': '資訊面板',
|
|
117
|
+
'fabric.editor.infoPanel.description': '以彩色面板醒目提示資訊',
|
|
89
118
|
'fabric.editor.inlineDescription': '將連結顯示為內嵌文字',
|
|
90
119
|
'fabric.editor.inlineTitle': '內嵌',
|
|
91
120
|
'fabric.editor.insertMenu': '插入',
|
|
@@ -107,14 +136,19 @@ export default {
|
|
|
107
136
|
'fabric.editor.moreFormatting': '更多格式設定',
|
|
108
137
|
'fabric.editor.navigate.toolbar.editor': '導覽至編輯器工具列',
|
|
109
138
|
'fabric.editor.navigate.toolbar.floating': '導覽至浮動工具列',
|
|
139
|
+
'fabric.editor.normal': '一般文字',
|
|
140
|
+
'fabric.editor.notePanel': '附註面板',
|
|
141
|
+
'fabric.editor.notePanel.description': '以彩色面板新增附註',
|
|
110
142
|
'fabric.editor.off': '{formattingType} 關閉',
|
|
111
143
|
'fabric.editor.on': '{formattingType} 開啟',
|
|
112
144
|
'fabric.editor.openLink': '在新的索引標籤中開啟連結',
|
|
113
145
|
'fabric.editor.orderedList': '編號清單',
|
|
114
146
|
'fabric.editor.orderedList.description': '建立已排序的清單',
|
|
147
|
+
'fabric.editor.other': '其他...',
|
|
115
148
|
'fabric.editor.pageActionsLabel': '頁面動作',
|
|
116
149
|
'fabric.editor.placeholderText': '預留位置文字',
|
|
117
150
|
'fabric.editor.placeholderText.description': '在頁面中插入文字預留位置',
|
|
151
|
+
'fabric.editor.redo': '重做',
|
|
118
152
|
'fabric.editor.remove': '移除',
|
|
119
153
|
'fabric.editor.removeEmoji': '移除表情符號',
|
|
120
154
|
'fabric.editor.saveButton': '儲存',
|
|
@@ -126,12 +160,15 @@ export default {
|
|
|
126
160
|
'fabric.editor.subTask': '子任務',
|
|
127
161
|
'fabric.editor.subscript': '下標',
|
|
128
162
|
'fabric.editor.subscript.off.superscript.on': '下標關閉,上標開啟',
|
|
163
|
+
'fabric.editor.successPanel': '成功面板',
|
|
164
|
+
'fabric.editor.successPanel.description': '以彩色面板新增提示',
|
|
129
165
|
'fabric.editor.superscript': '上標',
|
|
130
166
|
'fabric.editor.superscript.off.subscript.on': '上標關閉,下標開啟',
|
|
131
167
|
'fabric.editor.table': '表格',
|
|
132
168
|
'fabric.editor.table.description': '插入表格',
|
|
133
169
|
'fabric.editor.task': '任務',
|
|
134
170
|
'fabric.editor.text.formatting.off': '文字格式設定關閉',
|
|
171
|
+
'fabric.editor.textStyles': '文字樣式',
|
|
135
172
|
'fabric.editor.time.ago': '前',
|
|
136
173
|
'fabric.editor.time.updated': '已更新',
|
|
137
174
|
'fabric.editor.time.viewed': '已檢視',
|
|
@@ -144,6 +181,7 @@ export default {
|
|
|
144
181
|
'fabric.editor.tooltip.taskList': '動作項目',
|
|
145
182
|
'fabric.editor.unableToOpenLink': '無法開啟此連結',
|
|
146
183
|
'fabric.editor.underline': '底線',
|
|
184
|
+
'fabric.editor.undo': '復原',
|
|
147
185
|
'fabric.editor.unlink': '取消連結',
|
|
148
186
|
'fabric.editor.unorderedList': '項目符號清單',
|
|
149
187
|
'fabric.editor.unorderedList.description': '建立未排序的清單',
|
|
@@ -155,6 +193,8 @@ export default {
|
|
|
155
193
|
'fabric.editor.urlTitle': 'URL',
|
|
156
194
|
'fabric.editor.viewMore': '檢視更多',
|
|
157
195
|
'fabric.editor.visit': '在新視窗中開啟連結',
|
|
196
|
+
'fabric.editor.warningPanel': '警告面板',
|
|
197
|
+
'fabric.editor.warningPanel.description': '以彩色面板新增注意附註',
|
|
158
198
|
'fabric.editor.wrapLeft': '靠左圍繞',
|
|
159
199
|
'fabric.editor.wrapRight': '靠右圍繞',
|
|
160
200
|
'fabric.theme.blue': '藍色',
|
|
@@ -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 = "76.12.
|
|
9
|
+
var packageVersion = "76.12.2";
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.12.
|
|
22
|
+
var packageVersion = "76.12.2";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Calculates the position of the floating toolbar relative to the selection.
|
|
3
|
+
This is a re-implementation which closely matches the behaviour on Confluence renderer.
|
|
4
|
+
The main difference is the popup is always above the selection.
|
|
5
|
+
Things to consider:
|
|
6
|
+
- popup is always above the selection
|
|
7
|
+
- coordinates of head X and getBoundingClientRect() are absolute in client viewport (not including scroll offsets)
|
|
8
|
+
- popup may appear in '.fabric-editor-popup-scroll-parent' (or body)
|
|
9
|
+
- we use the toolbarRect to center align toolbar
|
|
10
|
+
- use wrapperBounds to clamp values
|
|
11
|
+
- editorView.dom bounds differ to wrapperBounds, convert at the end
|
|
12
|
+
*/
|
|
13
|
+
export var calculateToolbarPositionAboveSelection = function calculateToolbarPositionAboveSelection(toolbarTitle) {
|
|
14
|
+
return function (editorView, nextPos) {
|
|
15
|
+
var toolbar = document.querySelector("div[aria-label=\"".concat(toolbarTitle, "\"]"));
|
|
16
|
+
if (!toolbar) {
|
|
17
|
+
return nextPos;
|
|
18
|
+
}
|
|
19
|
+
// scroll wrapper for full page, fall back to document body
|
|
20
|
+
// TODO: look into using getScrollGutterOptions()
|
|
21
|
+
var scrollWrapper = editorView.dom.closest('.fabric-editor-popup-scroll-parent') || document.body;
|
|
22
|
+
var wrapperBounds = scrollWrapper.getBoundingClientRect();
|
|
23
|
+
var selection = window && window.getSelection();
|
|
24
|
+
var range = selection && !selection.isCollapsed && selection.getRangeAt(0);
|
|
25
|
+
if (!range) {
|
|
26
|
+
return nextPos;
|
|
27
|
+
}
|
|
28
|
+
var toolbarRect = toolbar.getBoundingClientRect();
|
|
29
|
+
var _editorView$state$sel = editorView.state.selection,
|
|
30
|
+
head = _editorView$state$sel.head,
|
|
31
|
+
anchor = _editorView$state$sel.anchor;
|
|
32
|
+
var topCoords = editorView.coordsAtPos(Math.min(head, anchor));
|
|
33
|
+
var bottomCoords = editorView.coordsAtPos(Math.max(head, anchor) - Math.min(range.endOffset, 1));
|
|
34
|
+
var top = (topCoords.top || 0) - toolbarRect.height * 1.5;
|
|
35
|
+
var left = 0;
|
|
36
|
+
// If not on the same line
|
|
37
|
+
if (topCoords.top !== bottomCoords.top) {
|
|
38
|
+
// selecting downwards
|
|
39
|
+
if (head > anchor) {
|
|
40
|
+
left = Math.max(topCoords.right, bottomCoords.right);
|
|
41
|
+
} else {
|
|
42
|
+
left = Math.min(topCoords.left, bottomCoords.left);
|
|
43
|
+
}
|
|
44
|
+
/*
|
|
45
|
+
short selection above a long paragraph
|
|
46
|
+
eg. short {<}heading
|
|
47
|
+
The purpose of this text is to show the selection range{>}.
|
|
48
|
+
The horizontal positioning should center around "heading",
|
|
49
|
+
not where it ends at "range".
|
|
50
|
+
Note: if it was "head<b>ing</b>" then it would only center
|
|
51
|
+
around "head". Undesireable but matches the current renderer.
|
|
52
|
+
*/
|
|
53
|
+
var cliffPosition = range.getClientRects()[0];
|
|
54
|
+
if (cliffPosition.right < left) {
|
|
55
|
+
left = cliffPosition.left + cliffPosition.width / 2;
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
// Otherwise center on the single line selection
|
|
59
|
+
left = topCoords.left + (bottomCoords.right - topCoords.left) / 2;
|
|
60
|
+
}
|
|
61
|
+
left -= toolbarRect.width / 2;
|
|
62
|
+
// Place toolbar below selection if not sufficient space above
|
|
63
|
+
if (top < wrapperBounds.top) {
|
|
64
|
+
var _getCoordsBelowSelect = getCoordsBelowSelection(bottomCoords, toolbarRect);
|
|
65
|
+
top = _getCoordsBelowSelect.top;
|
|
66
|
+
left = _getCoordsBelowSelect.left;
|
|
67
|
+
}
|
|
68
|
+
// remap positions from browser document to wrapperBounds
|
|
69
|
+
return {
|
|
70
|
+
top: top - wrapperBounds.top + scrollWrapper.scrollTop,
|
|
71
|
+
left: Math.max(0, left - wrapperBounds.left)
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
/*
|
|
76
|
+
Calculates the position of the floating toolbar relative to the selection.
|
|
77
|
+
This is a re-implementation which closely matches the behaviour on Confluence renderer.
|
|
78
|
+
The main difference is the popup is always above the selection.
|
|
79
|
+
Things to consider:
|
|
80
|
+
- stick as close to the head X release coordinates as possible
|
|
81
|
+
- coordinates of head X and getBoundingClientRect() are absolute in client viewport (not including scroll offsets)
|
|
82
|
+
- popup may appear in '.fabric-editor-popup-scroll-parent' (or body)
|
|
83
|
+
- we use the toolbarRect to center align toolbar
|
|
84
|
+
- use wrapperBounds to clamp values
|
|
85
|
+
- editorView.dom bounds differ to wrapperBounds, convert at the end
|
|
86
|
+
*/
|
|
87
|
+
export var calculateToolbarPositionTrackHead = function calculateToolbarPositionTrackHead(toolbarTitle) {
|
|
88
|
+
return function (editorView, nextPos) {
|
|
89
|
+
var toolbar = document.querySelector("div[aria-label=\"".concat(toolbarTitle, "\"]"));
|
|
90
|
+
if (!toolbar) {
|
|
91
|
+
return nextPos;
|
|
92
|
+
}
|
|
93
|
+
// scroll wrapper for full page, fall back to document body
|
|
94
|
+
// TODO: look into using getScrollGutterOptions()
|
|
95
|
+
var scrollWrapper = editorView.dom.closest('.fabric-editor-popup-scroll-parent') || document.body;
|
|
96
|
+
var wrapperBounds = scrollWrapper.getBoundingClientRect();
|
|
97
|
+
var selection = window && window.getSelection();
|
|
98
|
+
var range = selection && !selection.isCollapsed && selection.getRangeAt(0);
|
|
99
|
+
if (!range) {
|
|
100
|
+
return nextPos;
|
|
101
|
+
}
|
|
102
|
+
var toolbarRect = toolbar.getBoundingClientRect();
|
|
103
|
+
var _editorView$state$sel2 = editorView.state.selection,
|
|
104
|
+
head = _editorView$state$sel2.head,
|
|
105
|
+
anchor = _editorView$state$sel2.anchor;
|
|
106
|
+
var topCoords = editorView.coordsAtPos(Math.min(head, anchor));
|
|
107
|
+
var bottomCoords = editorView.coordsAtPos(Math.max(head, anchor) - Math.min(range.endOffset, 1));
|
|
108
|
+
var top;
|
|
109
|
+
// If not the same line, display toolbar below.
|
|
110
|
+
if (head > anchor && topCoords.top !== bottomCoords.top) {
|
|
111
|
+
// We are taking the previous pos to the maxium, so avoid end of line positions
|
|
112
|
+
// returning the next line's rect.
|
|
113
|
+
top = (bottomCoords.top || 0) + toolbarRect.height / 1.15;
|
|
114
|
+
} else {
|
|
115
|
+
top = (topCoords.top || 0) - toolbarRect.height * 1.5;
|
|
116
|
+
}
|
|
117
|
+
var left = (head > anchor ? bottomCoords.right : topCoords.left) - toolbarRect.width / 2;
|
|
118
|
+
// Place toolbar below selection if not sufficient space above
|
|
119
|
+
if (top < wrapperBounds.top) {
|
|
120
|
+
var _getCoordsBelowSelect2 = getCoordsBelowSelection(bottomCoords, toolbarRect);
|
|
121
|
+
top = _getCoordsBelowSelect2.top;
|
|
122
|
+
left = _getCoordsBelowSelect2.left;
|
|
123
|
+
}
|
|
124
|
+
// remap positions from browser document to wrapperBounds
|
|
125
|
+
return {
|
|
126
|
+
top: top - wrapperBounds.top + scrollWrapper.scrollTop,
|
|
127
|
+
left: Math.max(0, left - wrapperBounds.left)
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Returns the coordintes at the bottom the selection.
|
|
134
|
+
*/
|
|
135
|
+
var getCoordsBelowSelection = function getCoordsBelowSelection(bottomCoords, toolbarRect) {
|
|
136
|
+
return {
|
|
137
|
+
top: (bottomCoords.top || 0) + toolbarRect.height / 1.15,
|
|
138
|
+
left: bottomCoords.right - toolbarRect.width / 2
|
|
139
|
+
};
|
|
140
|
+
};
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -217,4 +217,5 @@ export function isInEmptyLine(state) {
|
|
|
217
217
|
export { dedupe } from './dedupe';
|
|
218
218
|
export { createWrapSelectionTransaction } from './create-wrap-selection-transaction';
|
|
219
219
|
export { wrapSelectionIn } from './wrap-selection-in';
|
|
220
|
-
export { toJSON, nodeToJSON } from './nodes';
|
|
220
|
+
export { toJSON, nodeToJSON } from './nodes';
|
|
221
|
+
export { calculateToolbarPositionAboveSelection, calculateToolbarPositionTrackHead } from './calculate-toolbar-position';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { NewCollabSyncUpErrorAttributes } from '../../collab';
|
|
5
5
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -8,13 +8,19 @@ declare const _default: {
|
|
|
8
8
|
'fabric.editor.action': string;
|
|
9
9
|
'fabric.editor.action.description': string;
|
|
10
10
|
'fabric.editor.addMediaFiles': string;
|
|
11
|
+
'fabric.editor.alignCenter': string;
|
|
11
12
|
'fabric.editor.alignImageCenter': string;
|
|
12
13
|
'fabric.editor.alignImageLeft': string;
|
|
13
14
|
'fabric.editor.alignImageRight': string;
|
|
15
|
+
'fabric.editor.alignLeft': string;
|
|
16
|
+
'fabric.editor.alignRight': string;
|
|
17
|
+
'fabric.editor.annotationToolbar': string;
|
|
14
18
|
'fabric.editor.blockCardUnavailable': string;
|
|
15
19
|
'fabric.editor.blockDescription': string;
|
|
16
20
|
'fabric.editor.blockTitle': string;
|
|
17
21
|
'fabric.editor.blockquote': string;
|
|
22
|
+
'fabric.editor.blockquote.description': string;
|
|
23
|
+
'fabric.editor.blockquote2': string;
|
|
18
24
|
'fabric.editor.bold': string;
|
|
19
25
|
'fabric.editor.bug': string;
|
|
20
26
|
'fabric.editor.cancelButton': string;
|
|
@@ -30,11 +36,17 @@ declare const _default: {
|
|
|
30
36
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
31
37
|
'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': string;
|
|
32
38
|
'fabric.editor.codeBlockWrapButton.wrapCodeBlock': string;
|
|
39
|
+
'fabric.editor.codeblock': string;
|
|
40
|
+
'fabric.editor.codeblock.description': string;
|
|
33
41
|
'fabric.editor.collapseNode': string;
|
|
34
42
|
'fabric.editor.columns': string;
|
|
35
43
|
'fabric.editor.columns.description': string;
|
|
36
44
|
'fabric.editor.copiedToClipboard': string;
|
|
37
45
|
'fabric.editor.copyToClipboard': string;
|
|
46
|
+
'fabric.editor.createComment': string;
|
|
47
|
+
'fabric.editor.createCommentInvalid': string;
|
|
48
|
+
'fabric.editor.customPanel': string;
|
|
49
|
+
'fabric.editor.customPanel.description': string;
|
|
38
50
|
'fabric.editor.datasourceTitle': string;
|
|
39
51
|
'fabric.editor.date': string;
|
|
40
52
|
'fabric.editor.date.description': string;
|
|
@@ -61,6 +73,8 @@ declare const _default: {
|
|
|
61
73
|
'fabric.editor.emoji.description': string;
|
|
62
74
|
'fabric.editor.emptyLink': string;
|
|
63
75
|
'fabric.editor.epic': string;
|
|
76
|
+
'fabric.editor.errorPanel': string;
|
|
77
|
+
'fabric.editor.errorPanel.description': string;
|
|
64
78
|
'fabric.editor.expand': string;
|
|
65
79
|
'fabric.editor.expand.description': string;
|
|
66
80
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -68,6 +82,18 @@ declare const _default: {
|
|
|
68
82
|
'fabric.editor.expandPlaceholder': string;
|
|
69
83
|
'fabric.editor.feedbackDialog': string;
|
|
70
84
|
'fabric.editor.feedbackDialog.description': string;
|
|
85
|
+
'fabric.editor.heading1': string;
|
|
86
|
+
'fabric.editor.heading1Description': string;
|
|
87
|
+
'fabric.editor.heading2': string;
|
|
88
|
+
'fabric.editor.heading2Description': string;
|
|
89
|
+
'fabric.editor.heading3': string;
|
|
90
|
+
'fabric.editor.heading3Description': string;
|
|
91
|
+
'fabric.editor.heading4': string;
|
|
92
|
+
'fabric.editor.heading4Description': string;
|
|
93
|
+
'fabric.editor.heading5': string;
|
|
94
|
+
'fabric.editor.heading5Description': string;
|
|
95
|
+
'fabric.editor.heading6': string;
|
|
96
|
+
'fabric.editor.heading6Description': string;
|
|
71
97
|
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
72
98
|
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
73
99
|
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
@@ -78,12 +104,15 @@ declare const _default: {
|
|
|
78
104
|
'fabric.editor.help.description': string;
|
|
79
105
|
'fabric.editor.horizontalRule': string;
|
|
80
106
|
'fabric.editor.horizontalRule.description': string;
|
|
81
|
-
'fabric.editor.hyperlink.
|
|
107
|
+
'fabric.editor.hyperlink.linkVisibleLabel': string;
|
|
82
108
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
83
109
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
110
|
+
'fabric.editor.hyperlink.textVisibleLabel': string;
|
|
84
111
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
85
112
|
'fabric.editor.image': string;
|
|
86
113
|
'fabric.editor.improvement': string;
|
|
114
|
+
'fabric.editor.infoPanel': string;
|
|
115
|
+
'fabric.editor.infoPanel.description': string;
|
|
87
116
|
'fabric.editor.inlineDescription': string;
|
|
88
117
|
'fabric.editor.inlineTitle': string;
|
|
89
118
|
'fabric.editor.insertMenu': string;
|
|
@@ -105,14 +134,19 @@ declare const _default: {
|
|
|
105
134
|
'fabric.editor.moreFormatting': string;
|
|
106
135
|
'fabric.editor.navigate.toolbar.editor': string;
|
|
107
136
|
'fabric.editor.navigate.toolbar.floating': string;
|
|
137
|
+
'fabric.editor.normal': string;
|
|
138
|
+
'fabric.editor.notePanel': string;
|
|
139
|
+
'fabric.editor.notePanel.description': string;
|
|
108
140
|
'fabric.editor.off': string;
|
|
109
141
|
'fabric.editor.on': string;
|
|
110
142
|
'fabric.editor.openLink': string;
|
|
111
143
|
'fabric.editor.orderedList': string;
|
|
112
144
|
'fabric.editor.orderedList.description': string;
|
|
145
|
+
'fabric.editor.other': string;
|
|
113
146
|
'fabric.editor.pageActionsLabel': string;
|
|
114
147
|
'fabric.editor.placeholderText': string;
|
|
115
148
|
'fabric.editor.placeholderText.description': string;
|
|
149
|
+
'fabric.editor.redo': string;
|
|
116
150
|
'fabric.editor.remove': string;
|
|
117
151
|
'fabric.editor.removeEmoji': string;
|
|
118
152
|
'fabric.editor.saveButton': string;
|
|
@@ -124,12 +158,15 @@ declare const _default: {
|
|
|
124
158
|
'fabric.editor.subTask': string;
|
|
125
159
|
'fabric.editor.subscript': string;
|
|
126
160
|
'fabric.editor.subscript.off.superscript.on': string;
|
|
161
|
+
'fabric.editor.successPanel': string;
|
|
162
|
+
'fabric.editor.successPanel.description': string;
|
|
127
163
|
'fabric.editor.superscript': string;
|
|
128
164
|
'fabric.editor.superscript.off.subscript.on': string;
|
|
129
165
|
'fabric.editor.table': string;
|
|
130
166
|
'fabric.editor.table.description': string;
|
|
131
167
|
'fabric.editor.task': string;
|
|
132
168
|
'fabric.editor.text.formatting.off': string;
|
|
169
|
+
'fabric.editor.textStyles': string;
|
|
133
170
|
'fabric.editor.time.ago': string;
|
|
134
171
|
'fabric.editor.time.updated': string;
|
|
135
172
|
'fabric.editor.time.viewed': string;
|
|
@@ -142,6 +179,7 @@ declare const _default: {
|
|
|
142
179
|
'fabric.editor.tooltip.taskList': string;
|
|
143
180
|
'fabric.editor.unableToOpenLink': string;
|
|
144
181
|
'fabric.editor.underline': string;
|
|
182
|
+
'fabric.editor.undo': string;
|
|
145
183
|
'fabric.editor.unlink': string;
|
|
146
184
|
'fabric.editor.unorderedList': string;
|
|
147
185
|
'fabric.editor.unorderedList.description': string;
|
|
@@ -153,6 +191,8 @@ declare const _default: {
|
|
|
153
191
|
'fabric.editor.urlTitle': string;
|
|
154
192
|
'fabric.editor.viewMore': string;
|
|
155
193
|
'fabric.editor.visit': string;
|
|
194
|
+
'fabric.editor.warningPanel': string;
|
|
195
|
+
'fabric.editor.warningPanel.description': string;
|
|
156
196
|
'fabric.editor.wrapLeft': string;
|
|
157
197
|
'fabric.editor.wrapRight': string;
|
|
158
198
|
'fabric.theme.blue': string;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -8,13 +8,19 @@ declare const _default: {
|
|
|
8
8
|
'fabric.editor.action': string;
|
|
9
9
|
'fabric.editor.action.description': string;
|
|
10
10
|
'fabric.editor.addMediaFiles': string;
|
|
11
|
+
'fabric.editor.alignCenter': string;
|
|
11
12
|
'fabric.editor.alignImageCenter': string;
|
|
12
13
|
'fabric.editor.alignImageLeft': string;
|
|
13
14
|
'fabric.editor.alignImageRight': string;
|
|
15
|
+
'fabric.editor.alignLeft': string;
|
|
16
|
+
'fabric.editor.alignRight': string;
|
|
17
|
+
'fabric.editor.annotationToolbar': string;
|
|
14
18
|
'fabric.editor.blockCardUnavailable': string;
|
|
15
19
|
'fabric.editor.blockDescription': string;
|
|
16
20
|
'fabric.editor.blockTitle': string;
|
|
17
21
|
'fabric.editor.blockquote': string;
|
|
22
|
+
'fabric.editor.blockquote.description': string;
|
|
23
|
+
'fabric.editor.blockquote2': string;
|
|
18
24
|
'fabric.editor.bold': string;
|
|
19
25
|
'fabric.editor.bug': string;
|
|
20
26
|
'fabric.editor.cancelButton': string;
|
|
@@ -30,11 +36,17 @@ declare const _default: {
|
|
|
30
36
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
31
37
|
'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': string;
|
|
32
38
|
'fabric.editor.codeBlockWrapButton.wrapCodeBlock': string;
|
|
39
|
+
'fabric.editor.codeblock': string;
|
|
40
|
+
'fabric.editor.codeblock.description': string;
|
|
33
41
|
'fabric.editor.collapseNode': string;
|
|
34
42
|
'fabric.editor.columns': string;
|
|
35
43
|
'fabric.editor.columns.description': string;
|
|
36
44
|
'fabric.editor.copiedToClipboard': string;
|
|
37
45
|
'fabric.editor.copyToClipboard': string;
|
|
46
|
+
'fabric.editor.createComment': string;
|
|
47
|
+
'fabric.editor.createCommentInvalid': string;
|
|
48
|
+
'fabric.editor.customPanel': string;
|
|
49
|
+
'fabric.editor.customPanel.description': string;
|
|
38
50
|
'fabric.editor.datasourceTitle': string;
|
|
39
51
|
'fabric.editor.date': string;
|
|
40
52
|
'fabric.editor.date.description': string;
|
|
@@ -61,6 +73,8 @@ declare const _default: {
|
|
|
61
73
|
'fabric.editor.emoji.description': string;
|
|
62
74
|
'fabric.editor.emptyLink': string;
|
|
63
75
|
'fabric.editor.epic': string;
|
|
76
|
+
'fabric.editor.errorPanel': string;
|
|
77
|
+
'fabric.editor.errorPanel.description': string;
|
|
64
78
|
'fabric.editor.expand': string;
|
|
65
79
|
'fabric.editor.expand.description': string;
|
|
66
80
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -68,6 +82,18 @@ declare const _default: {
|
|
|
68
82
|
'fabric.editor.expandPlaceholder': string;
|
|
69
83
|
'fabric.editor.feedbackDialog': string;
|
|
70
84
|
'fabric.editor.feedbackDialog.description': string;
|
|
85
|
+
'fabric.editor.heading1': string;
|
|
86
|
+
'fabric.editor.heading1Description': string;
|
|
87
|
+
'fabric.editor.heading2': string;
|
|
88
|
+
'fabric.editor.heading2Description': string;
|
|
89
|
+
'fabric.editor.heading3': string;
|
|
90
|
+
'fabric.editor.heading3Description': string;
|
|
91
|
+
'fabric.editor.heading4': string;
|
|
92
|
+
'fabric.editor.heading4Description': string;
|
|
93
|
+
'fabric.editor.heading5': string;
|
|
94
|
+
'fabric.editor.heading5Description': string;
|
|
95
|
+
'fabric.editor.heading6': string;
|
|
96
|
+
'fabric.editor.heading6Description': string;
|
|
71
97
|
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
72
98
|
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
73
99
|
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
@@ -78,12 +104,15 @@ declare const _default: {
|
|
|
78
104
|
'fabric.editor.help.description': string;
|
|
79
105
|
'fabric.editor.horizontalRule': string;
|
|
80
106
|
'fabric.editor.horizontalRule.description': string;
|
|
81
|
-
'fabric.editor.hyperlink.
|
|
107
|
+
'fabric.editor.hyperlink.linkVisibleLabel': string;
|
|
82
108
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
83
109
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
110
|
+
'fabric.editor.hyperlink.textVisibleLabel': string;
|
|
84
111
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
85
112
|
'fabric.editor.image': string;
|
|
86
113
|
'fabric.editor.improvement': string;
|
|
114
|
+
'fabric.editor.infoPanel': string;
|
|
115
|
+
'fabric.editor.infoPanel.description': string;
|
|
87
116
|
'fabric.editor.inlineDescription': string;
|
|
88
117
|
'fabric.editor.inlineTitle': string;
|
|
89
118
|
'fabric.editor.insertMenu': string;
|
|
@@ -105,14 +134,19 @@ declare const _default: {
|
|
|
105
134
|
'fabric.editor.moreFormatting': string;
|
|
106
135
|
'fabric.editor.navigate.toolbar.editor': string;
|
|
107
136
|
'fabric.editor.navigate.toolbar.floating': string;
|
|
137
|
+
'fabric.editor.normal': string;
|
|
138
|
+
'fabric.editor.notePanel': string;
|
|
139
|
+
'fabric.editor.notePanel.description': string;
|
|
108
140
|
'fabric.editor.off': string;
|
|
109
141
|
'fabric.editor.on': string;
|
|
110
142
|
'fabric.editor.openLink': string;
|
|
111
143
|
'fabric.editor.orderedList': string;
|
|
112
144
|
'fabric.editor.orderedList.description': string;
|
|
145
|
+
'fabric.editor.other': string;
|
|
113
146
|
'fabric.editor.pageActionsLabel': string;
|
|
114
147
|
'fabric.editor.placeholderText': string;
|
|
115
148
|
'fabric.editor.placeholderText.description': string;
|
|
149
|
+
'fabric.editor.redo': string;
|
|
116
150
|
'fabric.editor.remove': string;
|
|
117
151
|
'fabric.editor.removeEmoji': string;
|
|
118
152
|
'fabric.editor.saveButton': string;
|
|
@@ -124,12 +158,15 @@ declare const _default: {
|
|
|
124
158
|
'fabric.editor.subTask': string;
|
|
125
159
|
'fabric.editor.subscript': string;
|
|
126
160
|
'fabric.editor.subscript.off.superscript.on': string;
|
|
161
|
+
'fabric.editor.successPanel': string;
|
|
162
|
+
'fabric.editor.successPanel.description': string;
|
|
127
163
|
'fabric.editor.superscript': string;
|
|
128
164
|
'fabric.editor.superscript.off.subscript.on': string;
|
|
129
165
|
'fabric.editor.table': string;
|
|
130
166
|
'fabric.editor.table.description': string;
|
|
131
167
|
'fabric.editor.task': string;
|
|
132
168
|
'fabric.editor.text.formatting.off': string;
|
|
169
|
+
'fabric.editor.textStyles': string;
|
|
133
170
|
'fabric.editor.time.ago': string;
|
|
134
171
|
'fabric.editor.time.updated': string;
|
|
135
172
|
'fabric.editor.time.viewed': string;
|
|
@@ -142,6 +179,7 @@ declare const _default: {
|
|
|
142
179
|
'fabric.editor.tooltip.taskList': string;
|
|
143
180
|
'fabric.editor.unableToOpenLink': string;
|
|
144
181
|
'fabric.editor.underline': string;
|
|
182
|
+
'fabric.editor.undo': string;
|
|
145
183
|
'fabric.editor.unlink': string;
|
|
146
184
|
'fabric.editor.unorderedList': string;
|
|
147
185
|
'fabric.editor.unorderedList.description': string;
|
|
@@ -153,6 +191,8 @@ declare const _default: {
|
|
|
153
191
|
'fabric.editor.urlTitle': string;
|
|
154
192
|
'fabric.editor.viewMore': string;
|
|
155
193
|
'fabric.editor.visit': string;
|
|
194
|
+
'fabric.editor.warningPanel': string;
|
|
195
|
+
'fabric.editor.warningPanel.description': string;
|
|
156
196
|
'fabric.editor.wrapLeft': string;
|
|
157
197
|
'fabric.editor.wrapRight': string;
|
|
158
198
|
'fabric.theme.blue': string;
|