@atlaskit/editor-core 185.5.5 → 185.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/i18n/cs.js +0 -10
- package/dist/cjs/i18n/da.js +0 -10
- package/dist/cjs/i18n/de.js +0 -10
- package/dist/cjs/i18n/en.js +0 -10
- package/dist/cjs/i18n/en_GB.js +0 -10
- package/dist/cjs/i18n/en_ZZ.js +0 -10
- package/dist/cjs/i18n/es.js +0 -10
- package/dist/cjs/i18n/fi.js +0 -10
- package/dist/cjs/i18n/fr.js +0 -10
- package/dist/cjs/i18n/hu.js +0 -10
- package/dist/cjs/i18n/it.js +0 -10
- package/dist/cjs/i18n/ja.js +0 -10
- package/dist/cjs/i18n/ko.js +0 -10
- package/dist/cjs/i18n/nb.js +0 -10
- package/dist/cjs/i18n/nl.js +0 -10
- package/dist/cjs/i18n/pl.js +0 -10
- package/dist/cjs/i18n/pt_BR.js +0 -10
- package/dist/cjs/i18n/ru.js +0 -10
- package/dist/cjs/i18n/sv.js +0 -10
- package/dist/cjs/i18n/th.js +0 -10
- package/dist/cjs/i18n/tr.js +0 -10
- package/dist/cjs/i18n/uk.js +0 -10
- package/dist/cjs/i18n/vi.js +0 -10
- package/dist/cjs/i18n/zh.js +0 -10
- package/dist/cjs/i18n/zh_TW.js +0 -10
- package/dist/cjs/plugins/card/pm-plugins/actions.js +14 -2
- package/dist/cjs/plugins/card/pm-plugins/doc.js +34 -2
- package/dist/cjs/plugins/card/pm-plugins/main.js +1 -0
- package/dist/cjs/plugins/card/pm-plugins/reducers.js +8 -0
- package/dist/cjs/plugins/card/styles.js +2 -1
- package/dist/cjs/plugins/card/toolbar.js +53 -1
- package/dist/cjs/plugins/card/ui/DatasourceModal.js +41 -0
- package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +45 -2
- package/dist/cjs/plugins/card/ui/SmallerEditIcon.js +20 -0
- package/dist/cjs/plugins/card/ui/styled.js +5 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +0 -10
- package/dist/es2019/i18n/da.js +0 -10
- package/dist/es2019/i18n/de.js +0 -10
- package/dist/es2019/i18n/en.js +0 -10
- package/dist/es2019/i18n/en_GB.js +0 -10
- package/dist/es2019/i18n/en_ZZ.js +0 -10
- package/dist/es2019/i18n/es.js +0 -10
- package/dist/es2019/i18n/fi.js +0 -10
- package/dist/es2019/i18n/fr.js +0 -10
- package/dist/es2019/i18n/hu.js +0 -10
- package/dist/es2019/i18n/it.js +0 -10
- package/dist/es2019/i18n/ja.js +0 -10
- package/dist/es2019/i18n/ko.js +0 -10
- package/dist/es2019/i18n/nb.js +0 -10
- package/dist/es2019/i18n/nl.js +0 -10
- package/dist/es2019/i18n/pl.js +0 -10
- package/dist/es2019/i18n/pt_BR.js +0 -10
- package/dist/es2019/i18n/ru.js +0 -10
- package/dist/es2019/i18n/sv.js +0 -10
- package/dist/es2019/i18n/th.js +0 -10
- package/dist/es2019/i18n/tr.js +0 -10
- package/dist/es2019/i18n/uk.js +0 -10
- package/dist/es2019/i18n/vi.js +0 -10
- package/dist/es2019/i18n/zh.js +0 -10
- package/dist/es2019/i18n/zh_TW.js +0 -10
- package/dist/es2019/plugins/card/pm-plugins/actions.js +6 -0
- package/dist/es2019/plugins/card/pm-plugins/doc.js +34 -1
- package/dist/es2019/plugins/card/pm-plugins/main.js +1 -0
- package/dist/es2019/plugins/card/pm-plugins/reducers.js +9 -0
- package/dist/es2019/plugins/card/styles.js +23 -2
- package/dist/es2019/plugins/card/toolbar.js +54 -2
- package/dist/es2019/plugins/card/ui/DatasourceModal.js +30 -0
- package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +43 -1
- package/dist/es2019/plugins/card/ui/SmallerEditIcon.js +11 -0
- package/dist/es2019/plugins/card/ui/styled.js +3 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/cs.js +0 -10
- package/dist/esm/i18n/da.js +0 -10
- package/dist/esm/i18n/de.js +0 -10
- package/dist/esm/i18n/en.js +0 -10
- package/dist/esm/i18n/en_GB.js +0 -10
- package/dist/esm/i18n/en_ZZ.js +0 -10
- package/dist/esm/i18n/es.js +0 -10
- package/dist/esm/i18n/fi.js +0 -10
- package/dist/esm/i18n/fr.js +0 -10
- package/dist/esm/i18n/hu.js +0 -10
- package/dist/esm/i18n/it.js +0 -10
- package/dist/esm/i18n/ja.js +0 -10
- package/dist/esm/i18n/ko.js +0 -10
- package/dist/esm/i18n/nb.js +0 -10
- package/dist/esm/i18n/nl.js +0 -10
- package/dist/esm/i18n/pl.js +0 -10
- package/dist/esm/i18n/pt_BR.js +0 -10
- package/dist/esm/i18n/ru.js +0 -10
- package/dist/esm/i18n/sv.js +0 -10
- package/dist/esm/i18n/th.js +0 -10
- package/dist/esm/i18n/tr.js +0 -10
- package/dist/esm/i18n/uk.js +0 -10
- package/dist/esm/i18n/vi.js +0 -10
- package/dist/esm/i18n/zh.js +0 -10
- package/dist/esm/i18n/zh_TW.js +0 -10
- package/dist/esm/plugins/card/pm-plugins/actions.js +10 -0
- package/dist/esm/plugins/card/pm-plugins/doc.js +32 -1
- package/dist/esm/plugins/card/pm-plugins/main.js +1 -0
- package/dist/esm/plugins/card/pm-plugins/reducers.js +8 -0
- package/dist/esm/plugins/card/styles.js +4 -3
- package/dist/esm/plugins/card/toolbar.js +54 -2
- package/dist/esm/plugins/card/ui/DatasourceModal.js +31 -0
- package/dist/esm/plugins/card/ui/EditLinkToolbar.js +42 -1
- package/dist/esm/plugins/card/ui/SmallerEditIcon.js +11 -0
- package/dist/esm/plugins/card/ui/styled.js +3 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/cs.d.ts +0 -10
- package/dist/types/i18n/da.d.ts +0 -10
- package/dist/types/i18n/de.d.ts +0 -10
- package/dist/types/i18n/en.d.ts +0 -10
- package/dist/types/i18n/en_GB.d.ts +0 -10
- package/dist/types/i18n/en_ZZ.d.ts +0 -10
- package/dist/types/i18n/es.d.ts +0 -10
- package/dist/types/i18n/fi.d.ts +0 -10
- package/dist/types/i18n/fr.d.ts +0 -10
- package/dist/types/i18n/hu.d.ts +0 -10
- package/dist/types/i18n/it.d.ts +0 -10
- package/dist/types/i18n/ja.d.ts +0 -10
- package/dist/types/i18n/ko.d.ts +0 -10
- package/dist/types/i18n/nb.d.ts +0 -10
- package/dist/types/i18n/nl.d.ts +0 -10
- package/dist/types/i18n/pl.d.ts +0 -10
- package/dist/types/i18n/pt_BR.d.ts +0 -10
- package/dist/types/i18n/ru.d.ts +0 -10
- package/dist/types/i18n/sv.d.ts +0 -10
- package/dist/types/i18n/th.d.ts +0 -10
- package/dist/types/i18n/tr.d.ts +0 -10
- package/dist/types/i18n/uk.d.ts +0 -10
- package/dist/types/i18n/vi.d.ts +0 -10
- package/dist/types/i18n/zh.d.ts +0 -10
- package/dist/types/i18n/zh_TW.d.ts +0 -10
- package/dist/types/plugins/card/pm-plugins/actions.d.ts +2 -0
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +3 -0
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +1 -0
- package/dist/types/plugins/card/types.d.ts +8 -1
- package/dist/types/plugins/card/ui/DatasourceModal.d.ts +13 -0
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +8 -1
- package/dist/types/plugins/card/ui/SmallerEditIcon.d.ts +3 -0
- package/dist/types/plugins/card/ui/styled.d.ts +1 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -10
- package/dist/types-ts4.5/i18n/da.d.ts +0 -10
- package/dist/types-ts4.5/i18n/de.d.ts +0 -10
- package/dist/types-ts4.5/i18n/en.d.ts +0 -10
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -10
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -10
- package/dist/types-ts4.5/i18n/es.d.ts +0 -10
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -10
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -10
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -10
- package/dist/types-ts4.5/i18n/it.d.ts +0 -10
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -10
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -10
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -10
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -10
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -10
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -10
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -10
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -10
- package/dist/types-ts4.5/i18n/th.d.ts +0 -10
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -10
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -10
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -10
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -10
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -10
- package/dist/types-ts4.5/plugins/card/pm-plugins/actions.d.ts +2 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +3 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/util/state.d.ts +1 -0
- package/dist/types-ts4.5/plugins/card/types.d.ts +8 -1
- package/dist/types-ts4.5/plugins/card/ui/DatasourceModal.d.ts +13 -0
- package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +8 -1
- package/dist/types-ts4.5/plugins/card/ui/SmallerEditIcon.d.ts +3 -0
- package/dist/types-ts4.5/plugins/card/ui/styled.d.ts +1 -0
- package/package.json +6 -6
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
package/dist/types/i18n/sv.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
package/dist/types/i18n/th.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
package/dist/types/i18n/zh.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
|
@@ -18,3 +18,5 @@ export declare const setCardLayoutAndDatasourceTableRef: ({ layout, datasourceTa
|
|
|
18
18
|
}) => (tr: Transaction) => Transaction<any>;
|
|
19
19
|
export declare const showLinkToolbar: (tr: Transaction) => Transaction<any>;
|
|
20
20
|
export declare const hideLinkToolbar: (tr: Transaction) => Transaction<any>;
|
|
21
|
+
export declare const showDatasourceModal: (tr: Transaction) => Transaction<any>;
|
|
22
|
+
export declare const hideDatasourceModal: (tr: Transaction) => Transaction<any>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
2
|
import { Node } from 'prosemirror-model';
|
|
3
|
+
import { EditorView } from 'prosemirror-view';
|
|
3
4
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
5
|
import { CardAdf, DatasourceAdf, CardAppearance } from '@atlaskit/editor-common/provider-factory';
|
|
5
6
|
import { ACTION, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
7
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
8
|
+
import type { InlineCardAdf } from '@atlaskit/smart-card';
|
|
7
9
|
import { CardReplacementInputMethod, Request } from '../types';
|
|
8
10
|
export declare const replaceQueuedUrlWithCard: (url: string, cardData: CardAdf | DatasourceAdf, analyticsAction?: ACTION, editorAnalyticsApi?: EditorAnalyticsAPI) => Command;
|
|
9
11
|
export declare const handleFallbackWithAnalytics: (request: Request, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
|
|
@@ -15,3 +17,4 @@ export declare const changeSelectedCardToLinkFallback: (text?: string, href?: st
|
|
|
15
17
|
export declare const updateCard: (href: string, sourceEvent?: UIAnalyticsEvent | null | undefined) => Command;
|
|
16
18
|
export declare const changeSelectedCardToText: (text: string, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
|
|
17
19
|
export declare const setSelectedCardAppearance: (appearance: CardAppearance, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
|
|
20
|
+
export declare const updateExistingDatasource: (state: EditorState, node: Node<any>, newAdf: DatasourceAdf | InlineCardAdf, view: EditorView) => void;
|
|
@@ -24,6 +24,7 @@ export declare const getPluginStateWithUpdatedPos: (pluginState: CardPluginState
|
|
|
24
24
|
smartLinkEventsNext?: import("../../types").SmartLinkEventsNext | undefined;
|
|
25
25
|
createAnalyticsEvent?: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | undefined;
|
|
26
26
|
editorAppearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
27
|
+
showDatasourceModal: boolean;
|
|
27
28
|
datasourceTableRef?: HTMLElement | undefined;
|
|
28
29
|
layout?: import("../../ui/LayoutButton/types").DatasourceTableLayout | undefined;
|
|
29
30
|
};
|
|
@@ -101,6 +101,7 @@ export type CardPluginState = {
|
|
|
101
101
|
smartLinkEventsNext?: SmartLinkEventsNext;
|
|
102
102
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
103
103
|
editorAppearance?: EditorAppearance;
|
|
104
|
+
showDatasourceModal: boolean;
|
|
104
105
|
datasourceTableRef?: HTMLElement;
|
|
105
106
|
layout?: DatasourceTableLayout;
|
|
106
107
|
};
|
|
@@ -133,6 +134,12 @@ export type ShowLinkToolbar = {
|
|
|
133
134
|
export type HideLinkToolbar = {
|
|
134
135
|
type: 'HIDE_LINK_TOOLBAR';
|
|
135
136
|
};
|
|
137
|
+
export type ShowDatasourceModal = {
|
|
138
|
+
type: 'SHOW_DATASOURCE_MODAL';
|
|
139
|
+
};
|
|
140
|
+
export type HideDatasourceModal = {
|
|
141
|
+
type: 'HIDE_DATASOURCE_MODAL';
|
|
142
|
+
};
|
|
136
143
|
export type RegisterSmartCardEvents = {
|
|
137
144
|
type: 'REGISTER_EVENTS';
|
|
138
145
|
smartLinkEvents: SmartLinkEvents;
|
|
@@ -154,6 +161,6 @@ export type SetCardLayoutAndDatasourceTableRef = {
|
|
|
154
161
|
layout: DatasourceTableLayout;
|
|
155
162
|
datasourceTableRef?: HTMLElement;
|
|
156
163
|
};
|
|
157
|
-
export type CardPluginAction = SetProvider | Queue | Resolve | Register | ShowLinkToolbar | HideLinkToolbar | RegisterSmartCardEvents | RegisterSmartCardEventsNext | SetDatasourceTableRef | SetCardLayout | SetCardLayoutAndDatasourceTableRef;
|
|
164
|
+
export type CardPluginAction = SetProvider | Queue | Resolve | Register | ShowLinkToolbar | HideLinkToolbar | ShowDatasourceModal | HideDatasourceModal | RegisterSmartCardEvents | RegisterSmartCardEventsNext | SetDatasourceTableRef | SetCardLayout | SetCardLayoutAndDatasourceTableRef;
|
|
158
165
|
export type CardReplacementInputMethod = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.FORMATTING | INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.FLOATING_TB;
|
|
159
166
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Node } from 'prosemirror-model';
|
|
3
|
+
import { EditorState } from 'prosemirror-state';
|
|
4
|
+
import { EditorView } from 'prosemirror-view';
|
|
5
|
+
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
type DatasourceModalProps = {
|
|
7
|
+
state: EditorState;
|
|
8
|
+
view: EditorView;
|
|
9
|
+
node: Node<any>;
|
|
10
|
+
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
11
|
+
};
|
|
12
|
+
export declare const DatasourceModal: ({ state, view, node, }: DatasourceModalProps) => JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
2
|
import { Node } from 'prosemirror-model';
|
|
3
|
+
import { EditorState } from 'prosemirror-state';
|
|
4
|
+
import { EditorView } from 'prosemirror-view';
|
|
4
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
6
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
7
|
import type { LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
@@ -39,3 +40,9 @@ export declare const buildEditLinkToolbar: ({ providerFactory, node, linkPicker,
|
|
|
39
40
|
pluginInjectionApi: ExtractInjectionAPI<typeof cardPlugin> | undefined;
|
|
40
41
|
}) => FloatingToolbarItem<Command>;
|
|
41
42
|
export declare const editLinkToolbarConfig: (showLinkingToolbar: boolean, lpLinkPicker: boolean) => Partial<FloatingToolbarConfig>;
|
|
43
|
+
export declare const editDatasource: (editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
|
|
44
|
+
export declare const openDatasourceModal: ({ state, node, editorAnalyticsApi, }: {
|
|
45
|
+
state: EditorState;
|
|
46
|
+
node: Node<any>;
|
|
47
|
+
editorAnalyticsApi?: EditorAnalyticsAPI | undefined;
|
|
48
|
+
}) => FloatingToolbarItem<Command>;
|
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -140,7 +138,6 @@ declare const _default: {
|
|
|
140
138
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
142
140
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
143
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
144
141
|
'fabric.editor.imageBorderBold': string;
|
|
145
142
|
'fabric.editor.imageBorderColor': string;
|
|
146
143
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -156,17 +153,13 @@ declare const _default: {
|
|
|
156
153
|
'fabric.editor.inlineTitle': string;
|
|
157
154
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
158
155
|
'fabric.editor.invalidDateError': string;
|
|
159
|
-
'fabric.editor.invalidLink': string;
|
|
160
156
|
'fabric.editor.inviteItem.title': string;
|
|
161
157
|
'fabric.editor.italic': string;
|
|
162
158
|
'fabric.editor.keyboardShortcuts': string;
|
|
163
159
|
'fabric.editor.leftSidebar': string;
|
|
164
|
-
'fabric.editor.linkAddress': string;
|
|
165
|
-
'fabric.editor.linkPlaceholder': string;
|
|
166
160
|
'fabric.editor.lists': string;
|
|
167
161
|
'fabric.editor.markdown': string;
|
|
168
162
|
'fabric.editor.matchCase': string;
|
|
169
|
-
'fabric.editor.mediaAddLink': string;
|
|
170
163
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
171
164
|
'fabric.editor.mentionNode.label': string;
|
|
172
165
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -202,7 +195,6 @@ declare const _default: {
|
|
|
202
195
|
'fabric.editor.rightSidebar': string;
|
|
203
196
|
'fabric.editor.searchResults': string;
|
|
204
197
|
'fabric.editor.selectLanguage': string;
|
|
205
|
-
'fabric.editor.settingsLinks': string;
|
|
206
198
|
'fabric.editor.shortcut': string;
|
|
207
199
|
'fabric.editor.single': string;
|
|
208
200
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -236,10 +228,8 @@ declare const _default: {
|
|
|
236
228
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
238
230
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
239
|
-
'fabric.editor.unableToOpenLink': string;
|
|
240
231
|
'fabric.editor.underline': string;
|
|
241
232
|
'fabric.editor.undo': string;
|
|
242
|
-
'fabric.editor.unlink': string;
|
|
243
233
|
'fabric.editor.unorderedList': string;
|
|
244
234
|
'fabric.editor.unorderedList.description': string;
|
|
245
235
|
'fabric.editor.url': string;
|