@atlaskit/editor-common 78.11.2 → 78.11.4
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 +14 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/doc-utils/editor-use-only.js +33 -0
- package/dist/cjs/doc-utils/index.js +12 -0
- package/dist/cjs/element-browser/messages.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +5 -1
- package/dist/cjs/extensibility/Extension/Extension/styles.js +36 -7
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -10
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -19
- package/dist/cjs/extensibility/MultiBodiedExtension/action-api.js +8 -3
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +9 -3
- package/dist/cjs/extensibility/extensionNodeView.js +1 -2
- package/dist/cjs/i18n/cs.js +8 -5
- package/dist/cjs/i18n/da.js +12 -8
- package/dist/cjs/i18n/de.js +13 -8
- package/dist/cjs/i18n/en.js +14 -10
- package/dist/cjs/i18n/en_GB.js +14 -10
- package/dist/cjs/i18n/en_ZZ.js +15 -11
- package/dist/cjs/i18n/es.js +12 -8
- package/dist/cjs/i18n/fi.js +12 -8
- package/dist/cjs/i18n/fr.js +12 -8
- package/dist/cjs/i18n/hu.js +12 -8
- package/dist/cjs/i18n/it.js +12 -8
- package/dist/cjs/i18n/ja.js +12 -8
- package/dist/cjs/i18n/ko.js +12 -8
- package/dist/cjs/i18n/nb.js +12 -8
- package/dist/cjs/i18n/nl.js +12 -8
- package/dist/cjs/i18n/pl.js +12 -8
- package/dist/cjs/i18n/pt_BR.js +14 -6
- package/dist/cjs/i18n/ru.js +12 -8
- package/dist/cjs/i18n/sv.js +12 -8
- package/dist/cjs/i18n/th.js +12 -8
- package/dist/cjs/i18n/tr.js +14 -9
- package/dist/cjs/i18n/uk.js +12 -8
- package/dist/cjs/i18n/vi.js +59 -5
- package/dist/cjs/i18n/zh.js +59 -5
- package/dist/cjs/i18n/zh_TW.js +59 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MultiBodiedExtension/index.js +13 -2
- package/dist/es2019/doc-utils/editor-use-only.js +25 -0
- package/dist/es2019/doc-utils/index.js +1 -0
- package/dist/es2019/element-browser/messages.js +2 -2
- package/dist/es2019/extensibility/Extension/Extension/index.js +5 -1
- package/dist/es2019/extensibility/Extension/Extension/styles.js +33 -35
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -7
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +2 -20
- package/dist/es2019/extensibility/MultiBodiedExtension/action-api.js +8 -3
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +10 -4
- package/dist/es2019/extensibility/extensionNodeView.js +1 -2
- package/dist/es2019/i18n/cs.js +8 -5
- package/dist/es2019/i18n/da.js +12 -8
- package/dist/es2019/i18n/de.js +13 -8
- package/dist/es2019/i18n/en.js +14 -10
- package/dist/es2019/i18n/en_GB.js +14 -10
- package/dist/es2019/i18n/en_ZZ.js +15 -11
- package/dist/es2019/i18n/es.js +12 -8
- package/dist/es2019/i18n/fi.js +12 -8
- package/dist/es2019/i18n/fr.js +12 -8
- package/dist/es2019/i18n/hu.js +12 -8
- package/dist/es2019/i18n/it.js +12 -8
- package/dist/es2019/i18n/ja.js +12 -8
- package/dist/es2019/i18n/ko.js +12 -8
- package/dist/es2019/i18n/nb.js +12 -8
- package/dist/es2019/i18n/nl.js +12 -8
- package/dist/es2019/i18n/pl.js +12 -8
- package/dist/es2019/i18n/pt_BR.js +14 -6
- package/dist/es2019/i18n/ru.js +12 -8
- package/dist/es2019/i18n/sv.js +12 -8
- package/dist/es2019/i18n/th.js +12 -8
- package/dist/es2019/i18n/tr.js +14 -9
- package/dist/es2019/i18n/uk.js +12 -8
- package/dist/es2019/i18n/vi.js +59 -5
- package/dist/es2019/i18n/zh.js +59 -5
- package/dist/es2019/i18n/zh_TW.js +59 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +12 -1
- package/dist/esm/doc-utils/editor-use-only.js +26 -0
- package/dist/esm/doc-utils/index.js +1 -0
- package/dist/esm/element-browser/messages.js +2 -2
- package/dist/esm/extensibility/Extension/Extension/index.js +5 -1
- package/dist/esm/extensibility/Extension/Extension/styles.js +36 -6
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -7
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +2 -18
- package/dist/esm/extensibility/MultiBodiedExtension/action-api.js +8 -3
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +10 -4
- package/dist/esm/extensibility/extensionNodeView.js +1 -2
- package/dist/esm/i18n/cs.js +8 -5
- package/dist/esm/i18n/da.js +12 -8
- package/dist/esm/i18n/de.js +13 -8
- package/dist/esm/i18n/en.js +14 -10
- package/dist/esm/i18n/en_GB.js +14 -10
- package/dist/esm/i18n/en_ZZ.js +15 -11
- package/dist/esm/i18n/es.js +12 -8
- package/dist/esm/i18n/fi.js +12 -8
- package/dist/esm/i18n/fr.js +12 -8
- package/dist/esm/i18n/hu.js +12 -8
- package/dist/esm/i18n/it.js +12 -8
- package/dist/esm/i18n/ja.js +12 -8
- package/dist/esm/i18n/ko.js +12 -8
- package/dist/esm/i18n/nb.js +12 -8
- package/dist/esm/i18n/nl.js +12 -8
- package/dist/esm/i18n/pl.js +12 -8
- package/dist/esm/i18n/pt_BR.js +14 -6
- package/dist/esm/i18n/ru.js +12 -8
- package/dist/esm/i18n/sv.js +12 -8
- package/dist/esm/i18n/th.js +12 -8
- package/dist/esm/i18n/tr.js +14 -9
- package/dist/esm/i18n/uk.js +12 -8
- package/dist/esm/i18n/vi.js +59 -5
- package/dist/esm/i18n/zh.js +59 -5
- package/dist/esm/i18n/zh_TW.js +59 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MultiBodiedExtension/index.js +12 -1
- package/dist/types/doc-utils/editor-use-only.d.ts +5 -0
- package/dist/types/doc-utils/index.d.ts +1 -0
- package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +1 -5
- package/dist/types/i18n/cs.d.ts +8 -5
- package/dist/types/i18n/da.d.ts +9 -5
- package/dist/types/i18n/de.d.ts +10 -5
- package/dist/types/i18n/en.d.ts +10 -6
- package/dist/types/i18n/en_GB.d.ts +10 -6
- package/dist/types/i18n/en_ZZ.d.ts +10 -6
- package/dist/types/i18n/es.d.ts +9 -5
- package/dist/types/i18n/fi.d.ts +9 -5
- package/dist/types/i18n/fr.d.ts +9 -5
- package/dist/types/i18n/hu.d.ts +9 -5
- package/dist/types/i18n/it.d.ts +9 -5
- package/dist/types/i18n/ja.d.ts +9 -5
- package/dist/types/i18n/ko.d.ts +9 -5
- package/dist/types/i18n/nb.d.ts +9 -5
- package/dist/types/i18n/nl.d.ts +9 -5
- package/dist/types/i18n/pl.d.ts +9 -5
- package/dist/types/i18n/pt_BR.d.ts +11 -3
- package/dist/types/i18n/ru.d.ts +9 -5
- package/dist/types/i18n/sv.d.ts +9 -5
- package/dist/types/i18n/th.d.ts +9 -5
- package/dist/types/i18n/tr.d.ts +10 -5
- package/dist/types/i18n/uk.d.ts +9 -5
- package/dist/types/i18n/vi.d.ts +57 -3
- package/dist/types/i18n/zh.d.ts +57 -3
- package/dist/types/i18n/zh_TW.d.ts +57 -3
- package/dist/types/ui/MultiBodiedExtension/index.d.ts +1 -0
- package/dist/types-ts4.5/doc-utils/editor-use-only.d.ts +5 -0
- package/dist/types-ts4.5/doc-utils/index.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +1 -5
- package/dist/types-ts4.5/i18n/cs.d.ts +8 -5
- package/dist/types-ts4.5/i18n/da.d.ts +9 -5
- package/dist/types-ts4.5/i18n/de.d.ts +10 -5
- package/dist/types-ts4.5/i18n/en.d.ts +10 -6
- package/dist/types-ts4.5/i18n/en_GB.d.ts +10 -6
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +10 -6
- package/dist/types-ts4.5/i18n/es.d.ts +9 -5
- package/dist/types-ts4.5/i18n/fi.d.ts +9 -5
- package/dist/types-ts4.5/i18n/fr.d.ts +9 -5
- package/dist/types-ts4.5/i18n/hu.d.ts +9 -5
- package/dist/types-ts4.5/i18n/it.d.ts +9 -5
- package/dist/types-ts4.5/i18n/ja.d.ts +9 -5
- package/dist/types-ts4.5/i18n/ko.d.ts +9 -5
- package/dist/types-ts4.5/i18n/nb.d.ts +9 -5
- package/dist/types-ts4.5/i18n/nl.d.ts +9 -5
- package/dist/types-ts4.5/i18n/pl.d.ts +9 -5
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +11 -3
- package/dist/types-ts4.5/i18n/ru.d.ts +9 -5
- package/dist/types-ts4.5/i18n/sv.d.ts +9 -5
- package/dist/types-ts4.5/i18n/th.d.ts +9 -5
- package/dist/types-ts4.5/i18n/tr.d.ts +10 -5
- package/dist/types-ts4.5/i18n/uk.d.ts +9 -5
- package/dist/types-ts4.5/i18n/vi.d.ts +57 -3
- package/dist/types-ts4.5/i18n/zh.d.ts +57 -3
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +57 -3
- package/dist/types-ts4.5/ui/MultiBodiedExtension/index.d.ts +1 -0
- package/doc-utils/package.json +15 -0
- package/package.json +6 -4
|
@@ -12,6 +12,7 @@ export default {
|
|
|
12
12
|
'fabric.editor.addAltText': '替代文字',
|
|
13
13
|
'fabric.editor.addColumnLeft': '新增左側欄',
|
|
14
14
|
'fabric.editor.addColumnRight': '新增右欄',
|
|
15
|
+
'fabric.editor.addCommentOnMedia': '新增留言',
|
|
15
16
|
'fabric.editor.addImageBorder': '新增邊框',
|
|
16
17
|
'fabric.editor.addMediaFiles': '新增圖片、影片或檔案',
|
|
17
18
|
'fabric.editor.addRowAbove': '在上方新增列',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
'fabric.editor.altText': '替代文字',
|
|
27
28
|
'fabric.editor.alttext.validation': '請移除替代文字中的所有特殊字元。',
|
|
28
29
|
'fabric.editor.annotationToolbar': '註解工具列',
|
|
30
|
+
'fabric.editor.backLink': '返回',
|
|
29
31
|
'fabric.editor.backgroundColor': '背景顏色',
|
|
30
32
|
'fabric.editor.blockCardUnavailable': '內嵌連結位於 {node} 內,無法變更其檢視',
|
|
31
33
|
'fabric.editor.blockDescription': '顯示有關連結的更多資訊,包括摘要和動作',
|
|
@@ -47,6 +49,8 @@ export default {
|
|
|
47
49
|
'fabric.editor.clearFormatting': '清除格式設定',
|
|
48
50
|
'fabric.editor.clearLink': '清除連結',
|
|
49
51
|
'fabric.editor.clearLinkText': '清除文字',
|
|
52
|
+
'fabric.editor.closeAltTextEdit': '返回',
|
|
53
|
+
'fabric.editor.closeFindReplaceDialog': '關閉',
|
|
50
54
|
'fabric.editor.closeHelpDialog': '關閉說明對話方塊',
|
|
51
55
|
'fabric.editor.code': '程式碼',
|
|
52
56
|
'fabric.editor.code.on': '{textFormattingOff},程式碼開啟',
|
|
@@ -63,7 +67,16 @@ export default {
|
|
|
63
67
|
'fabric.editor.columns': '版面配置',
|
|
64
68
|
'fabric.editor.columns.description': '使用區段建立頁面的結構',
|
|
65
69
|
'fabric.editor.configFailedToLoad': '無法載入',
|
|
70
|
+
'fabric.editor.configPanel.cancel': '取消',
|
|
71
|
+
'fabric.editor.configPanel.close': '關閉',
|
|
72
|
+
'fabric.editor.configPanel.customSelect.createOption': '建立',
|
|
73
|
+
'fabric.editor.configPanel.dateRange.custom.from': '從',
|
|
74
|
+
'fabric.editor.configPanel.dateRange.custom.to': '至',
|
|
75
|
+
'fabric.editor.configPanel.dateRange.grouping.collapse': '摺疊',
|
|
76
|
+
'fabric.editor.configPanel.dateRange.grouping.expand': '展開',
|
|
77
|
+
'fabric.editor.configPanel.dateRange.option.custom': '自訂',
|
|
66
78
|
'fabric.editor.configPanel.documentation': '說明文件',
|
|
79
|
+
'fabric.editor.configPanel.errorBoundary.note': '我們已經告訴團隊了。您仍然可以編輯和發布此頁面,或查看錯誤主控台以取得更多資訊。',
|
|
67
80
|
'fabric.editor.configPanel.errorBoundary.title': '發生錯誤。',
|
|
68
81
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': '無法結合 isMultiple 與 radio 風格',
|
|
69
82
|
'fabric.editor.configPanel.formType.addField': '新增欄位',
|
|
@@ -83,13 +96,15 @@ export default {
|
|
|
83
96
|
'fabric.editor.datasource.assetsObjects.description': '透過搜尋和篩選,從 Jira Service Management 中的 Assets 插入物件',
|
|
84
97
|
'fabric.editor.datasource.jiraIssue': 'Jira 議題',
|
|
85
98
|
'fabric.editor.datasource.jiraIssue.description': '透過增強的搜尋、篩選和組態,從 Jira Cloud 插入 Jira 議題。',
|
|
99
|
+
'fabric.editor.datasourceAppearanceTitle': '表格',
|
|
86
100
|
'fabric.editor.datasourceTitle': '編輯搜尋查詢',
|
|
87
101
|
'fabric.editor.date': '日期',
|
|
88
102
|
'fabric.editor.date.description': '使用日曆新增日期',
|
|
89
103
|
'fabric.editor.decision': '決定',
|
|
90
104
|
'fabric.editor.decision.description': '擷取決定以便追蹤',
|
|
91
105
|
'fabric.editor.decisionPlaceholder': '新增決定…',
|
|
92
|
-
'fabric.editor.
|
|
106
|
+
'fabric.editor.decreaseSize': '縮減大小',
|
|
107
|
+
'fabric.editor.defaultAltText': '文件',
|
|
93
108
|
'fabric.editor.description': '描述',
|
|
94
109
|
'fabric.editor.displayBlock': '顯示卡片',
|
|
95
110
|
'fabric.editor.displayEmbed': '顯示嵌入',
|
|
@@ -102,6 +117,7 @@ export default {
|
|
|
102
117
|
'fabric.editor.ecombedDescription': '顯示連結的互動式預覽',
|
|
103
118
|
'fabric.editor.edit': '編輯',
|
|
104
119
|
'fabric.editor.edit.datasource': '編輯搜尋查詢',
|
|
120
|
+
'fabric.editor.edit.searchInput': '新增連結',
|
|
105
121
|
'fabric.editor.editAltText': '編輯替代文字',
|
|
106
122
|
'fabric.editor.editDateText': '編輯日期',
|
|
107
123
|
'fabric.editor.editLink': '編輯連結',
|
|
@@ -113,6 +129,7 @@ export default {
|
|
|
113
129
|
'fabric.editor.editors': '編輯者',
|
|
114
130
|
'fabric.editor.elementBrowser.help': '說明',
|
|
115
131
|
'fabric.editor.elementbrowser.categorylist.category-admin': '管理',
|
|
132
|
+
'fabric.editor.elementbrowser.categorylist.category-ai': 'Atlassian Intelligence',
|
|
116
133
|
'fabric.editor.elementbrowser.categorylist.category-all': '全部',
|
|
117
134
|
'fabric.editor.elementbrowser.categorylist.category-communication': '通訊',
|
|
118
135
|
'fabric.editor.elementbrowser.categorylist.category-confluence-content': 'Confluence 內容',
|
|
@@ -126,9 +143,7 @@ export default {
|
|
|
126
143
|
'fabric.editor.elementbrowser.search.empty-state.heading': '沒有任何項目符合您的搜尋內容',
|
|
127
144
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': '請試著使用不同的詞彙搜尋,或探索 Atlassian 產品的新應用程式。',
|
|
128
145
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': '探索 Atlassian Marketplace',
|
|
129
|
-
'fabric.editor.elementbrowser.searchbar.assistive.text.
|
|
130
|
-
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': '輸入文字的建議。',
|
|
131
|
-
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': '輸入文字的建議。',
|
|
146
|
+
'fabric.editor.elementbrowser.searchbar.assistive.text.result': '{count, plural, =0 {沒有任何項目符合您的搜尋內容} other {適用於輸入文字的 {count} 個建議。}}',
|
|
132
147
|
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Enter',
|
|
133
148
|
'fabric.editor.elementbrowser.searchbar.placeholder': '搜尋',
|
|
134
149
|
'fabric.editor.elementbrowser.sidebar.heading': '瀏覽',
|
|
@@ -147,15 +162,18 @@ export default {
|
|
|
147
162
|
'fabric.editor.expandPlaceholder': '為此展開設定標題...',
|
|
148
163
|
'fabric.editor.extension.confirmDeleteLinkedModalMessage': '刪除 {nodeName} 將中斷與其連結的任何內容。',
|
|
149
164
|
'fabric.editor.extension.confirmDeleteLinkedModalMessagePrefix': '正在刪除',
|
|
165
|
+
'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '刪除',
|
|
150
166
|
'fabric.editor.extension.deleteElementTitle': '刪除元素',
|
|
151
167
|
'fabric.editor.extension.sourceNoTitledName': '這個元素',
|
|
152
168
|
'fabric.editor.extensions.config-panel.save-indicator': '系統會隨時自動儲存所有變更',
|
|
153
169
|
'fabric.editor.failed_to_upload': '無法上傳',
|
|
154
170
|
'fabric.editor.feedbackDialog': '提供意見回饋',
|
|
155
171
|
'fabric.editor.feedbackDialog.description': '請說明您對於新編輯器的使用體驗',
|
|
172
|
+
'fabric.editor.find': '尋找',
|
|
156
173
|
'fabric.editor.findNext': '尋找下一個',
|
|
157
174
|
'fabric.editor.findPrevious': '尋找上一個',
|
|
158
175
|
'fabric.editor.findReplaceToolbarButton': '尋找與取代',
|
|
176
|
+
'fabric.editor.floatingToolbar.confirmModalCancel': '取消',
|
|
159
177
|
'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': '同時刪除已連結的元素',
|
|
160
178
|
'fabric.editor.floatingToolbar.confirmModalConnectedUnit': '{amount, plural, =0 {{name}} other {{name} (+{amount,number} 個連結的元素)}}',
|
|
161
179
|
'fabric.editor.floatingToolbar.confirmModalHeading': '您確定嗎?',
|
|
@@ -164,6 +182,7 @@ export default {
|
|
|
164
182
|
'fabric.editor.floatingToolbar.floatingToolbarAriaLabel': '浮動工具列',
|
|
165
183
|
'fabric.editor.floatingToolbar.scrollLeft': '向左捲動',
|
|
166
184
|
'fabric.editor.floatingToolbar.scrollRight': '向右捲動',
|
|
185
|
+
'fabric.editor.focusTableResizeHandle': '聚焦於表格調整大小控點',
|
|
167
186
|
'fabric.editor.headerColumn': '標題欄',
|
|
168
187
|
'fabric.editor.headerRow': '標題列',
|
|
169
188
|
'fabric.editor.heading1': '標題 1',
|
|
@@ -196,9 +215,16 @@ export default {
|
|
|
196
215
|
'fabric.editor.hyperlinkToolbarPlaceholder': '貼上或搜尋連結',
|
|
197
216
|
'fabric.editor.image': '影像',
|
|
198
217
|
'fabric.editor.image.fullWidthLabel': '全寬',
|
|
218
|
+
'fabric.editor.imageBorderBold': '粗體',
|
|
219
|
+
'fabric.editor.imageBorderColor': '顏色',
|
|
220
|
+
'fabric.editor.imageBorderMedium': '普通',
|
|
199
221
|
'fabric.editor.imageBorderOptions': '邊框選項',
|
|
222
|
+
'fabric.editor.imageBorderSize': '大小',
|
|
223
|
+
'fabric.editor.imageBorderSubtle': '不明顯的',
|
|
200
224
|
'fabric.editor.improvement': '改善',
|
|
225
|
+
'fabric.editor.increaseSize': '增加大小',
|
|
201
226
|
'fabric.editor.indent': '增加縮排',
|
|
227
|
+
'fabric.editor.info': '資訊',
|
|
202
228
|
'fabric.editor.infoPanel': '資訊面板',
|
|
203
229
|
'fabric.editor.infoPanel.description': '以彩色面板醒目提示資訊',
|
|
204
230
|
'fabric.editor.inlineDescription': '將連結顯示為內嵌文字',
|
|
@@ -224,16 +250,25 @@ export default {
|
|
|
224
250
|
'fabric.editor.linkAddress': '連結位址',
|
|
225
251
|
'fabric.editor.linkPlaceholder': '貼上連結',
|
|
226
252
|
'fabric.editor.lists': '清單',
|
|
253
|
+
'fabric.editor.listsFormat': '列表格式設定',
|
|
227
254
|
'fabric.editor.markdown': 'Markdown',
|
|
228
255
|
'fabric.editor.matchCase': '大小寫須相符',
|
|
256
|
+
'fabric.editor.media.DefaultMediaWidthDecreased': '{newMediaWidth, plural, other {媒體寬度已降低至 {newMediaWidth,number} 像素。}}',
|
|
257
|
+
'fabric.editor.media.DefaultMediaWidthIncreased': '{newMediaWidth, plural, other {媒體寬度已提升至 {newMediaWidth,number} 像素。}}',
|
|
258
|
+
'fabric.editor.media.MediaWidthIsMin': '媒體已縮減至最小',
|
|
259
|
+
'fabric.editor.media.pixelEntry.MediaWidthIsMax': '媒體已增加至最大',
|
|
229
260
|
'fabric.editor.media.pixelEntry.inputHeightAriaLabel': '高度輸入',
|
|
261
|
+
'fabric.editor.media.pixelEntry.inputHeightTooltip': '高度',
|
|
230
262
|
'fabric.editor.media.pixelEntry.inputWidthAriaLabel': '最大寬度 {maxWidth}px',
|
|
263
|
+
'fabric.editor.media.pixelEntry.inputWidthTooltip': '最大寬度 {maxWidth}px',
|
|
231
264
|
'fabric.editor.media.pixelEntry.migrationButtonText': '轉換為像素',
|
|
232
265
|
'fabric.editor.media.pixelEntry.migrationButtonTooltip': '從百分比移轉為固定像素大小',
|
|
266
|
+
'fabric.editor.media.pixelEntry.submitButtonText': '提交',
|
|
233
267
|
'fabric.editor.media.pixelEntry.validationFailedMessage': '寬度驗證失敗',
|
|
234
268
|
'fabric.editor.mediaAddLink': '新增連結',
|
|
235
269
|
'fabric.editor.mediaFiles': '圖片、影片或檔案',
|
|
236
270
|
'fabric.editor.mediaFiles.description': '將影像和其他檔案新增至頁面',
|
|
271
|
+
'fabric.editor.mediaGroupDeleteLabel': '刪除',
|
|
237
272
|
'fabric.editor.media_change_mediainline_caption_warn': '內嵌 (標題將會移除)',
|
|
238
273
|
'fabric.editor.media_change_mediainline_default': '內嵌',
|
|
239
274
|
'fabric.editor.media_change_mediasingle': '原始尺寸',
|
|
@@ -241,6 +276,7 @@ export default {
|
|
|
241
276
|
'fabric.editor.mention.description': '提及他人以傳送通知',
|
|
242
277
|
'fabric.editor.mentionNode.label': '已標記使用者',
|
|
243
278
|
'fabric.editor.mentionsAddLabel': '新增圖示',
|
|
279
|
+
'fabric.editor.mentionsIconLabel': '提及',
|
|
244
280
|
'fabric.editor.mergeCells': '合併儲存格',
|
|
245
281
|
'fabric.editor.moreFormatting': '更多格式設定',
|
|
246
282
|
'fabric.editor.moveColumnLeft': '{0, plural, other {將欄向左移動}}',
|
|
@@ -252,6 +288,7 @@ export default {
|
|
|
252
288
|
'fabric.editor.noResultsFound': '沒有結果',
|
|
253
289
|
'fabric.editor.noSearchResults': '沒有搜尋結果',
|
|
254
290
|
'fabric.editor.normal': '一般文字',
|
|
291
|
+
'fabric.editor.note': '附註',
|
|
255
292
|
'fabric.editor.notePanel': '附註面板',
|
|
256
293
|
'fabric.editor.notePanel.description': '以彩色面板新增附註',
|
|
257
294
|
'fabric.editor.numberedColumn': '編號直欄',
|
|
@@ -264,11 +301,15 @@ export default {
|
|
|
264
301
|
'fabric.editor.outdent': '減少縮排',
|
|
265
302
|
'fabric.editor.pageActionsLabel': '頁面動作',
|
|
266
303
|
'fabric.editor.panel.backgroundColor': '背景顏色',
|
|
304
|
+
'fabric.editor.panel.emoji': '新增表情符號',
|
|
305
|
+
'fabric.editor.pasteOptions': '貼上選項',
|
|
267
306
|
'fabric.editor.pastePlainText': '貼上純文字',
|
|
268
307
|
'fabric.editor.placeholderAltText': '使用替代文字描述這張圖片',
|
|
269
308
|
'fabric.editor.placeholderText': '預留位置文字',
|
|
270
309
|
'fabric.editor.placeholderText.description': '在頁面中插入文字預留位置',
|
|
271
310
|
'fabric.editor.placeholderTextPlaceholder': '新增預留位置文字',
|
|
311
|
+
'fabric.editor.plainText': '使用純文字',
|
|
312
|
+
'fabric.editor.quickInsert': '快速插入',
|
|
272
313
|
'fabric.editor.recordVideo': '錄製影片',
|
|
273
314
|
'fabric.editor.recordVideo.description': '使用 Loom 錄製影片',
|
|
274
315
|
'fabric.editor.redo': '重做',
|
|
@@ -277,12 +318,20 @@ export default {
|
|
|
277
318
|
'fabric.editor.removeEmoji': '移除表情符號',
|
|
278
319
|
'fabric.editor.removeImageBorder': '移除邊框',
|
|
279
320
|
'fabric.editor.removeRows': '{0, plural, other {刪除列}}',
|
|
321
|
+
'fabric.editor.replace': '取代',
|
|
322
|
+
'fabric.editor.replaceAll': '全部取代',
|
|
323
|
+
'fabric.editor.replaceSuccess': '{numberOfMatches, plural, other {已替換 {numberOfMatches,number} 個相符項目}}',
|
|
324
|
+
'fabric.editor.replaceWith': '取代為',
|
|
280
325
|
'fabric.editor.resultsCount': '第 {selectedMatchPosition} 個,共 {totalResultsCount} 個',
|
|
326
|
+
'fabric.editor.richText': '使用 RTF',
|
|
281
327
|
'fabric.editor.rightSidebar': '右側資訊看板',
|
|
282
328
|
'fabric.editor.rowControl': '醒目提示列',
|
|
283
329
|
'fabric.editor.rowDragHandle': '列選項',
|
|
284
330
|
'fabric.editor.saveButton': '儲存',
|
|
331
|
+
'fabric.editor.searchResults': '{itemsLength, plural, other {有 {itemsLength,number} 個搜尋結果。請使用向上鍵和向下鍵導覽選項。按 Enter 鍵可選取選項。}}',
|
|
285
332
|
'fabric.editor.selectLanguage': '選取語言',
|
|
333
|
+
'fabric.editor.selectTableColumn': '選取表格欄',
|
|
334
|
+
'fabric.editor.selectTableRow': '選取表格列',
|
|
286
335
|
'fabric.editor.settingsLinks': '前往連結偏好設定',
|
|
287
336
|
'fabric.editor.shortcut': '文字快顯',
|
|
288
337
|
'fabric.editor.single': '單欄',
|
|
@@ -299,6 +348,7 @@ export default {
|
|
|
299
348
|
'fabric.editor.subTask': '子任務',
|
|
300
349
|
'fabric.editor.subscript': '下標',
|
|
301
350
|
'fabric.editor.subscript.off.superscript.on': '下標關閉,上標開啟',
|
|
351
|
+
'fabric.editor.success': '成功',
|
|
302
352
|
'fabric.editor.successPanel': '成功面板',
|
|
303
353
|
'fabric.editor.successPanel.description': '以彩色面板新增提示',
|
|
304
354
|
'fabric.editor.superscript': '上標',
|
|
@@ -311,7 +361,7 @@ export default {
|
|
|
311
361
|
'fabric.editor.tableResizeIncreaseScreenReaderInformation': '{newWidth, plural, other {表格寬度已提升至 {newWidth,number} 像素。}}',
|
|
312
362
|
'fabric.editor.tableSelector': '表格尺寸',
|
|
313
363
|
'fabric.editor.tableSelector.description': '使用彈出視窗新增表格,以選取自訂大小',
|
|
314
|
-
'fabric.editor.tableSizeSelectorButton': '
|
|
364
|
+
'fabric.editor.tableSizeSelectorButton': '{numberOfColumns} 乘以 {numberOfRows}',
|
|
315
365
|
'fabric.editor.tableSizeSelectorPopup': '表格大小選取器',
|
|
316
366
|
'fabric.editor.tables.adjustColumn': '調整欄',
|
|
317
367
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': '刪除 {nodeName} 將中斷與其連結的任何內容。',
|
|
@@ -321,6 +371,7 @@ export default {
|
|
|
321
371
|
'fabric.editor.taskPlaceholder': '輸入動作,使用「@」以指派給他人。',
|
|
322
372
|
'fabric.editor.text.formatting.off': '文字格式設定關閉',
|
|
323
373
|
'fabric.editor.textColor': '文字顏色',
|
|
374
|
+
'fabric.editor.textFormatting': '文字格式設定',
|
|
324
375
|
'fabric.editor.textStyles': '文字樣式',
|
|
325
376
|
'fabric.editor.threeColumns': '三欄',
|
|
326
377
|
'fabric.editor.threeColumnsWithSidebars': '三個包含資訊看板的直欄',
|
|
@@ -358,12 +409,15 @@ export default {
|
|
|
358
409
|
'fabric.editor.url': '顯示 URL',
|
|
359
410
|
'fabric.editor.urlDescription': '將連結顯示為 URL',
|
|
360
411
|
'fabric.editor.urlTitle': 'URL',
|
|
412
|
+
'fabric.editor.useMarkdown': '使用 Markdown',
|
|
361
413
|
'fabric.editor.viewMore': '檢視更多',
|
|
362
414
|
'fabric.editor.visit': '在新視窗中開啟連結',
|
|
415
|
+
'fabric.editor.warning': '警告',
|
|
363
416
|
'fabric.editor.warningPanel': '警告面板',
|
|
364
417
|
'fabric.editor.warningPanel.description': '以彩色面板新增注意附註',
|
|
365
418
|
'fabric.editor.wrapLeft': '靠左圍繞',
|
|
366
419
|
'fabric.editor.wrapRight': '靠右圍繞',
|
|
420
|
+
'fabric.emoji.label': '表情符號',
|
|
367
421
|
'fabric.theme.blue': '藍色',
|
|
368
422
|
'fabric.theme.bold-blue': '個性藍',
|
|
369
423
|
'fabric.theme.bold-gray': '個性灰',
|
|
@@ -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 = "78.11.
|
|
3
|
+
const packageVersion = "78.11.4";
|
|
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
|
|
@@ -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 = "78.11.
|
|
10
|
+
const packageVersion = "78.11.4";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -12,6 +12,9 @@ const mbeExtensionContainer = css({
|
|
|
12
12
|
right: `${"var(--ds-space-100, 8px)"} !important`
|
|
13
13
|
},
|
|
14
14
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
15
|
+
'&.remove-padding': {
|
|
16
|
+
paddingBottom: 0
|
|
17
|
+
},
|
|
15
18
|
position: 'relative',
|
|
16
19
|
verticalAlign: 'middle',
|
|
17
20
|
cursor: 'pointer',
|
|
@@ -37,7 +40,11 @@ const mbeNavigation = css({
|
|
|
37
40
|
borderBottom: 'none !important',
|
|
38
41
|
background: "var(--ds-surface, white)",
|
|
39
42
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
40
|
-
marginRight: "var(--ds-space-100, 8px)"
|
|
43
|
+
marginRight: "var(--ds-space-100, 8px)",
|
|
44
|
+
'&.remove-margins': {
|
|
45
|
+
marginLeft: 0,
|
|
46
|
+
marginRight: 0
|
|
47
|
+
}
|
|
41
48
|
});
|
|
42
49
|
const extensionFrameContent = css({
|
|
43
50
|
padding: `${"var(--ds-space-100, 8px)"} !important`,
|
|
@@ -61,6 +68,10 @@ const extensionFrameContent = css({
|
|
|
61
68
|
marginTop: `${"var(--ds-space-100, 8px)"} !important`
|
|
62
69
|
}
|
|
63
70
|
});
|
|
71
|
+
export const removeMargins = css({
|
|
72
|
+
marginLeft: 0,
|
|
73
|
+
marginRight: 0
|
|
74
|
+
});
|
|
64
75
|
export const sharedMultiBodiedExtensionStyles = {
|
|
65
76
|
mbeExtensionContainer,
|
|
66
77
|
mbeNavigation,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SectionMessage from '@atlaskit/section-message';
|
|
3
|
+
function AlternativePackagesMessage(_ref) {
|
|
4
|
+
var alternatePackages = _ref.alternatePackages;
|
|
5
|
+
if (!alternatePackages) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
if (alternatePackages.length === 1) {
|
|
9
|
+
return /*#__PURE__*/React.createElement("p", null, "Consider using", ' ', /*#__PURE__*/React.createElement("a", {
|
|
10
|
+
href: alternatePackages[0].link
|
|
11
|
+
}, alternatePackages[0].name), ' ', "instead.");
|
|
12
|
+
}
|
|
13
|
+
return /*#__PURE__*/React.createElement("p", null, "Consider using one of these packages instead:", /*#__PURE__*/React.createElement("ul", null, alternatePackages.map(function (p) {
|
|
14
|
+
return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
|
|
15
|
+
href: p.link
|
|
16
|
+
}, p.name));
|
|
17
|
+
})));
|
|
18
|
+
}
|
|
19
|
+
export function createEditorUseOnlyNotice(componentName, alternatePackages) {
|
|
20
|
+
return /*#__PURE__*/React.createElement(SectionMessage, {
|
|
21
|
+
title: "Internal Editor Use Only",
|
|
22
|
+
appearance: "error"
|
|
23
|
+
}, /*#__PURE__*/React.createElement("p", null, componentName, " is intended for internal use by the Editor Platform as a plugin dependency of the Editor within your product."), /*#__PURE__*/React.createElement("p", null, "Direct use of this component is not supported."), /*#__PURE__*/React.createElement(AlternativePackagesMessage, {
|
|
24
|
+
alternatePackages: alternatePackages
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createEditorUseOnlyNotice } from './editor-use-only';
|
|
@@ -12,12 +12,12 @@ export default defineMessages({
|
|
|
12
12
|
},
|
|
13
13
|
assistiveTextDefault: {
|
|
14
14
|
id: 'fabric.editor.elementbrowser.searchbar.assistive.text.default',
|
|
15
|
-
defaultMessage: '{count} suggestions available by default.',
|
|
15
|
+
defaultMessage: '{count, plural, =0 {Nothing matches your search.} one {{count} suggestion available by default.} other {{count} suggestions available by default.}}',
|
|
16
16
|
description: 'Assistive text to describe the default list of suggestions'
|
|
17
17
|
},
|
|
18
18
|
assistiveTextResult: {
|
|
19
19
|
id: 'fabric.editor.elementbrowser.searchbar.assistive.text.result',
|
|
20
|
-
defaultMessage: '{count, plural, =0 {Nothing matches your search} one {{count} suggestion available for typed text.} other {{count} suggestions available for typed text.}}',
|
|
20
|
+
defaultMessage: '{count, plural, =0 {Nothing matches your search.} one {{count} suggestion available for typed text.} other {{count} suggestions available for typed text.}}',
|
|
21
21
|
description: 'Assistive text to describe the list of suggestions filtered by typed user input'
|
|
22
22
|
}
|
|
23
23
|
});
|
|
@@ -56,6 +56,9 @@ function ExtensionWithPluginState(props) {
|
|
|
56
56
|
'with-children': hasChildren,
|
|
57
57
|
'without-frame': removeBorder
|
|
58
58
|
});
|
|
59
|
+
var contentClassNames = classnames({
|
|
60
|
+
'remove-padding': showMacroInteractionDesignUpdates
|
|
61
|
+
});
|
|
59
62
|
var customContainerStyles = {
|
|
60
63
|
width: '100%'
|
|
61
64
|
};
|
|
@@ -97,7 +100,8 @@ function ExtensionWithPluginState(props) {
|
|
|
97
100
|
node: node,
|
|
98
101
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
99
102
|
}), children), hasBody && jsx("div", {
|
|
100
|
-
css: newContentStyles
|
|
103
|
+
css: newContentStyles,
|
|
104
|
+
className: contentClassNames
|
|
101
105
|
}, jsx("div", {
|
|
102
106
|
css: content,
|
|
103
107
|
ref: handleContentDOMRef,
|
|
@@ -1,10 +1,40 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { N30 } from '@atlaskit/theme/colors';
|
|
5
3
|
import { padding, wrapperDefault } from '../styles';
|
|
6
4
|
export var widerLayoutClassName = 'wider-layout';
|
|
7
|
-
export var wrapperStyle = css(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export var wrapperStyle = css(wrapperDefault, {
|
|
6
|
+
'&.without-frame': {
|
|
7
|
+
background: 'transparent'
|
|
8
|
+
},
|
|
9
|
+
cursor: 'pointer',
|
|
10
|
+
width: '100%',
|
|
11
|
+
'.extension-overflow-wrapper:not(.with-body)': {
|
|
12
|
+
overflowX: 'auto'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export var header = css({
|
|
16
|
+
padding: "".concat(padding / 2, "px ").concat(padding / 2, "px 0px"),
|
|
17
|
+
verticalAlign: 'middle',
|
|
18
|
+
'&.with-children:not(.without-frame)': {
|
|
19
|
+
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
20
|
+
},
|
|
21
|
+
'&.without-frame': {
|
|
22
|
+
padding: 0
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export var content = css({
|
|
26
|
+
padding: "".concat(padding, "px"),
|
|
27
|
+
background: "var(--ds-surface, white)",
|
|
28
|
+
border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")")),
|
|
29
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
30
|
+
cursor: 'initial',
|
|
31
|
+
width: '100%'
|
|
32
|
+
});
|
|
33
|
+
export var contentWrapper = css({
|
|
34
|
+
padding: "0 ".concat(padding, "px ").concat(padding, "px"),
|
|
35
|
+
display: 'flex',
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
'&.remove-padding': {
|
|
38
|
+
padding: 0
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import { akEditorGutterPadding } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -20,11 +20,7 @@ var InlineExtension = function InlineExtension(props) {
|
|
|
20
20
|
var className = hasChildren ? 'with-overlay with-children' : 'with-overlay';
|
|
21
21
|
var rendererContainerWidth = widthState ? widthState.width - akEditorGutterPadding * 2 : 0;
|
|
22
22
|
var extendedInlineExtension = getBooleanFF('platform.editor.inline_extension.extended_lcqdn') || false;
|
|
23
|
-
var inlineExtensionInternal = jsx(
|
|
24
|
-
node: node,
|
|
25
|
-
isNodeSelected: isNodeSelected,
|
|
26
|
-
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
27
|
-
}), jsx("div", {
|
|
23
|
+
var inlineExtensionInternal = jsx("div", {
|
|
28
24
|
css: [wrapperStyle, extendedInlineExtension && inlineWrapperStyels],
|
|
29
25
|
className: "extension-container inline ".concat(className)
|
|
30
26
|
}, jsx("div", {
|
|
@@ -34,7 +30,7 @@ var InlineExtension = function InlineExtension(props) {
|
|
|
34
30
|
node: node,
|
|
35
31
|
isNodeSelected: isNodeSelected,
|
|
36
32
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
37
|
-
}))
|
|
33
|
+
}));
|
|
38
34
|
if (extendedInlineExtension) {
|
|
39
35
|
return jsx(WidthContext.Provider, {
|
|
40
36
|
value: createWidthContext(rendererContainerWidth)
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/react';
|
|
4
|
-
import classnames from 'classnames';
|
|
5
2
|
import { ZERO_WIDTH_SPACE } from '../utils';
|
|
6
|
-
var styles = css({
|
|
7
|
-
'&.inline-extension': {
|
|
8
|
-
display: 'inline-block'
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
3
|
/**
|
|
12
4
|
* If inlineExtension, add zero width space to the end of the nodes and wrap with span;
|
|
13
|
-
* Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
|
|
14
5
|
* else wrap with a div (for multi bodied extensions)
|
|
15
6
|
*
|
|
16
7
|
* @param param0
|
|
@@ -18,13 +9,6 @@ var styles = css({
|
|
|
18
9
|
*/
|
|
19
10
|
export var ExtensionNodeWrapper = function ExtensionNodeWrapper(_ref) {
|
|
20
11
|
var children = _ref.children,
|
|
21
|
-
nodeType = _ref.nodeType
|
|
22
|
-
|
|
23
|
-
var wrapperClassNames = classnames({
|
|
24
|
-
'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates
|
|
25
|
-
});
|
|
26
|
-
return jsx("span", {
|
|
27
|
-
className: wrapperClassNames,
|
|
28
|
-
css: styles
|
|
29
|
-
}, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
|
|
12
|
+
nodeType = _ref.nodeType;
|
|
13
|
+
return /*#__PURE__*/React.createElement("span", null, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
|
|
30
14
|
};
|
|
@@ -29,9 +29,14 @@ export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActi
|
|
|
29
29
|
var possiblyMbeNode = state.doc.nodeAt(pos);
|
|
30
30
|
var desiredPos = pos;
|
|
31
31
|
if (possiblyMbeNode && (possiblyMbeNode === null || possiblyMbeNode === void 0 || (_possiblyMbeNode$type = possiblyMbeNode.type) === null || _possiblyMbeNode$type === void 0 ? void 0 : _possiblyMbeNode$type.name) === 'multiBodiedExtension' && possiblyMbeNode !== null && possiblyMbeNode !== void 0 && possiblyMbeNode.content) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
var _possiblyMbeNode$cont;
|
|
33
|
+
if (index < 0 || index >= (possiblyMbeNode === null || possiblyMbeNode === void 0 || (_possiblyMbeNode$cont = possiblyMbeNode.content) === null || _possiblyMbeNode$cont === void 0 ? void 0 : _possiblyMbeNode$cont.childCount)) {
|
|
34
|
+
var _possiblyMbeNode$cont2;
|
|
35
|
+
throw new Error("Index out of bounds: valid range is 0-".concat((possiblyMbeNode === null || possiblyMbeNode === void 0 || (_possiblyMbeNode$cont2 = possiblyMbeNode.content) === null || _possiblyMbeNode$cont2 === void 0 ? void 0 : _possiblyMbeNode$cont2.childCount) - 1, " inclusive"));
|
|
36
|
+
}
|
|
37
|
+
for (var i = 0; i <= index && i < (possiblyMbeNode === null || possiblyMbeNode === void 0 || (_possiblyMbeNode$cont3 = possiblyMbeNode.content) === null || _possiblyMbeNode$cont3 === void 0 ? void 0 : _possiblyMbeNode$cont3.childCount); i++) {
|
|
38
|
+
var _possiblyMbeNode$cont3, _possiblyMbeNode$cont4;
|
|
39
|
+
desiredPos += (possiblyMbeNode === null || possiblyMbeNode === void 0 || (_possiblyMbeNode$cont4 = possiblyMbeNode.content) === null || _possiblyMbeNode$cont4 === void 0 || (_possiblyMbeNode$cont4 = _possiblyMbeNode$cont4.child(i)) === null || _possiblyMbeNode$cont4 === void 0 ? void 0 : _possiblyMbeNode$cont4.nodeSize) || 0;
|
|
35
40
|
}
|
|
36
41
|
/* desiredPos gives the cursor at the end of last child of the current frame, in case of paragraph nodes, this will be the end of the paragraph
|
|
37
42
|
* Performing -1 brings the cursor inside the paragraph, similar to a user click, so any pasted text will be inside the last paragraph rather than a new line
|
|
@@ -12,7 +12,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
12
12
|
import classnames from 'classnames';
|
|
13
13
|
import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
|
|
14
14
|
import { useSharedPluginState } from '../../hooks';
|
|
15
|
-
import { sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
|
|
15
|
+
import { removeMargins, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
|
|
16
16
|
import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
|
|
17
17
|
import { WithPluginState } from '../../with-plugin-state';
|
|
18
18
|
import ExtensionLozenge from '../Extension/Lozenge';
|
|
@@ -90,7 +90,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
|
|
|
90
90
|
var articleRef = React.useCallback(function (node) {
|
|
91
91
|
return handleContentDOMRef(node);
|
|
92
92
|
}, [handleContentDOMRef]);
|
|
93
|
-
var containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, _defineProperty({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), sharedMultiBodiedExtensionStyles.extensionFrameContent));
|
|
93
|
+
var containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, _defineProperty({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), css(sharedMultiBodiedExtensionStyles.extensionFrameContent, showMacroInteractionDesignUpdates && removeMargins)));
|
|
94
94
|
var shouldBreakout =
|
|
95
95
|
// Extension should breakout when the layout is set to 'full-width' or 'wide'.
|
|
96
96
|
['full-width', 'wide'].includes(node.attrs.layout) &&
|
|
@@ -109,6 +109,12 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
|
|
|
109
109
|
var wrapperClassNames = classnames('multiBodiedExtension--wrapper', 'extension-container', 'block', {
|
|
110
110
|
'remove-margin-top': showMacroInteractionDesignUpdates
|
|
111
111
|
});
|
|
112
|
+
var containerClassNames = classnames('multiBodiedExtension--container', {
|
|
113
|
+
'remove-padding': showMacroInteractionDesignUpdates
|
|
114
|
+
});
|
|
115
|
+
var navigationClassNames = classnames('multiBodiedExtension--navigation', {
|
|
116
|
+
'remove-margins': showMacroInteractionDesignUpdates
|
|
117
|
+
});
|
|
112
118
|
return jsx(Fragment, null, showMacroInteractionDesignUpdates && jsx(ExtensionLozenge, {
|
|
113
119
|
isNodeSelected: isNodeSelected,
|
|
114
120
|
node: node,
|
|
@@ -120,12 +126,12 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
|
|
|
120
126
|
"data-testid": "multiBodiedExtension--wrapper",
|
|
121
127
|
style: mbeWrapperStyles
|
|
122
128
|
}, getWrapperTitleContent(imageData, title, showMacroInteractionDesignUpdates), jsx("div", {
|
|
123
|
-
className:
|
|
129
|
+
className: containerClassNames,
|
|
124
130
|
css: containerCssExtended,
|
|
125
131
|
"data-testid": "multiBodiedExtension--container",
|
|
126
132
|
"data-active-child-index": activeChildIndex
|
|
127
133
|
}, jsx("nav", {
|
|
128
|
-
className:
|
|
134
|
+
className: navigationClassNames,
|
|
129
135
|
css: sharedMultiBodiedExtensionStyles.mbeNavigation,
|
|
130
136
|
"data-testid": "multiBodiedExtension-navigation"
|
|
131
137
|
}, extensionHandlerResult), jsx("article", {
|
|
@@ -47,8 +47,7 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
47
47
|
value: function render(props, forwardRef) {
|
|
48
48
|
var _props$extensionNodeV;
|
|
49
49
|
return /*#__PURE__*/React.createElement(ExtensionNodeWrapper, {
|
|
50
|
-
nodeType: this.node.type.name
|
|
51
|
-
showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
|
|
50
|
+
nodeType: this.node.type.name
|
|
52
51
|
}, /*#__PURE__*/React.createElement(Extension, {
|
|
53
52
|
editorView: this.view,
|
|
54
53
|
node: this.node,
|
package/dist/esm/i18n/cs.js
CHANGED
|
@@ -116,6 +116,7 @@ export default {
|
|
|
116
116
|
'fabric.editor.ecombedDescription': 'Zobrazit interaktivní náhled odkazu',
|
|
117
117
|
'fabric.editor.edit': 'Upravit',
|
|
118
118
|
'fabric.editor.edit.datasource': 'Upravit vyhledávací dotaz',
|
|
119
|
+
'fabric.editor.edit.searchInput': 'Přidat odkaz',
|
|
119
120
|
'fabric.editor.editAltText': 'Upravit alternativní text',
|
|
120
121
|
'fabric.editor.editDateText': 'Upravit datum',
|
|
121
122
|
'fabric.editor.editLink': 'Upravit odkaz',
|
|
@@ -127,6 +128,7 @@ export default {
|
|
|
127
128
|
'fabric.editor.editors': 'Editoři',
|
|
128
129
|
'fabric.editor.elementBrowser.help': 'Nápověda',
|
|
129
130
|
'fabric.editor.elementbrowser.categorylist.category-admin': 'Administrace',
|
|
131
|
+
'fabric.editor.elementbrowser.categorylist.category-ai': 'Atlassian Intelligence',
|
|
130
132
|
'fabric.editor.elementbrowser.categorylist.category-all': 'Vše',
|
|
131
133
|
'fabric.editor.elementbrowser.categorylist.category-communication': 'Komunikace',
|
|
132
134
|
'fabric.editor.elementbrowser.categorylist.category-confluence-content': 'Obsah Confluence',
|
|
@@ -140,9 +142,6 @@ export default {
|
|
|
140
142
|
'fabric.editor.elementbrowser.search.empty-state.heading': 'Vašemu vyhledávání neodpovídají žádné výsledky',
|
|
141
143
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': 'Zkuste vyhledat jiný termín nebo objevte nové aplikace pro produkty Atlassian.',
|
|
142
144
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': 'Prozkoumat Atlassian Marketplace',
|
|
143
|
-
'fabric.editor.elementbrowser.searchbar.assistive.text.nothing': 'Vašemu vyhledávání neodpovídají žádné výsledky',
|
|
144
|
-
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestion': 'návrh je k dispozici pro zadaný text.',
|
|
145
|
-
'fabric.editor.elementbrowser.searchbar.assistive.text.suggestions': 'návrhů je k dispozici pro zadaný text.',
|
|
146
145
|
'fabric.editor.elementbrowser.searchbar.elementAfterInput': 'Enter',
|
|
147
146
|
'fabric.editor.elementbrowser.searchbar.placeholder': 'Vyhledat',
|
|
148
147
|
'fabric.editor.elementbrowser.sidebar.heading': 'Procházet',
|
|
@@ -181,6 +180,7 @@ export default {
|
|
|
181
180
|
'fabric.editor.floatingToolbar.floatingToolbarAriaLabel': 'Plovoucí panel nástrojů',
|
|
182
181
|
'fabric.editor.floatingToolbar.scrollLeft': 'Posunout doleva',
|
|
183
182
|
'fabric.editor.floatingToolbar.scrollRight': 'Posunout doprava',
|
|
183
|
+
'fabric.editor.focusTableResizeHandle': 'Zaměření na úchyt ke změně velikosti tabulky',
|
|
184
184
|
'fabric.editor.headerColumn': 'Sloupec záhlaví',
|
|
185
185
|
'fabric.editor.headerRow': 'Řádek záhlaví',
|
|
186
186
|
'fabric.editor.heading1': 'Nadpis 1',
|
|
@@ -248,11 +248,12 @@ export default {
|
|
|
248
248
|
'fabric.editor.linkAddress': 'Adresa odkazu',
|
|
249
249
|
'fabric.editor.linkPlaceholder': 'Vložit odkaz',
|
|
250
250
|
'fabric.editor.lists': 'Seznamy',
|
|
251
|
+
'fabric.editor.listsFormat': 'Formátování seznamu',
|
|
251
252
|
'fabric.editor.markdown': 'Snížení',
|
|
252
253
|
'fabric.editor.matchCase': 'Rozlišovat malá a velká písmena',
|
|
254
|
+
'fabric.editor.media.DefaultMediaWidthDecreased': '{newMediaWidth, plural, one {Šířka multimédia byla snížena na {newMediaWidth,number} pixel.} few {Šířka multimédia byla snížena na {newMediaWidth,number} pixely.} many {Šířka multimédia byla snížena na {newMediaWidth,number} pixelu.} other {Šířka multimédia byla snížena na {newMediaWidth,number} pixelů.}}',
|
|
255
|
+
'fabric.editor.media.DefaultMediaWidthIncreased': '{newMediaWidth, plural, one {Šířka multimédia byla zvýšena na {newMediaWidth,number} pixel.} few {Šířka multimédia byla zvýšena na {newMediaWidth,number} pixely.} many {Šířka multimédia byla zvýšena na {newMediaWidth,number} pixelu.} other {Šířka multimédia byla zvýšena na {newMediaWidth,number} pixelů.}}',
|
|
253
256
|
'fabric.editor.media.MediaWidthIsMin': 'Velikost multimediálního prvku byla snížena na minimum.',
|
|
254
|
-
'fabric.editor.media.decreased': 'sníženo',
|
|
255
|
-
'fabric.editor.media.increased': 'zvýšeno',
|
|
256
257
|
'fabric.editor.media.pixelEntry.MediaWidthIsMax': 'Velikost multimediálního prvku byla zvýšena na maximum.',
|
|
257
258
|
'fabric.editor.media.pixelEntry.inputHeightAriaLabel': 'vstup výšky',
|
|
258
259
|
'fabric.editor.media.pixelEntry.inputHeightTooltip': 'Výška',
|
|
@@ -317,6 +318,7 @@ export default {
|
|
|
317
318
|
'fabric.editor.removeRows': '{0, plural, one {Odstranit řádek} few {Odstranit řádky} many {Odstranit řádky} other {Odstranit řádky}}',
|
|
318
319
|
'fabric.editor.replace': 'Nahradit',
|
|
319
320
|
'fabric.editor.replaceAll': 'Nahradit vše',
|
|
321
|
+
'fabric.editor.replaceSuccess': '{numberOfMatches, plural, one {{numberOfMatches,number} shoda nahrazena} few {{numberOfMatches,number} shody nahrazeny} many {{numberOfMatches,number} shody nahrazeno} other {{numberOfMatches,number} shod nahrazeno}}',
|
|
320
322
|
'fabric.editor.replaceWith': 'Nahradit textem',
|
|
321
323
|
'fabric.editor.resultsCount': '{selectedMatchPosition} z {totalResultsCount}',
|
|
322
324
|
'fabric.editor.richText': 'Použít formátovaný text',
|
|
@@ -367,6 +369,7 @@ export default {
|
|
|
367
369
|
'fabric.editor.taskPlaceholder': 'Napište svou akci a použitím „@“ ji někomu přidělte.',
|
|
368
370
|
'fabric.editor.text.formatting.off': 'Formátování textu vypnuto',
|
|
369
371
|
'fabric.editor.textColor': 'Barva textu',
|
|
372
|
+
'fabric.editor.textFormatting': 'Formátování textu',
|
|
370
373
|
'fabric.editor.textStyles': 'Styly textu',
|
|
371
374
|
'fabric.editor.threeColumns': 'Tři sloupce',
|
|
372
375
|
'fabric.editor.threeColumnsWithSidebars': 'Tři sloupce s postranními panely',
|