@atlaskit/editor-core 185.5.2 → 185.5.7
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 +13 -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/breakout/ui/LayoutButton.js +5 -28
- package/dist/cjs/plugins/card/index.js +20 -6
- package/dist/cjs/plugins/card/nodeviews/datasource.js +39 -4
- package/dist/cjs/plugins/card/pm-plugins/actions.js +31 -1
- package/dist/cjs/plugins/card/pm-plugins/main.js +48 -3
- package/dist/cjs/plugins/card/pm-plugins/reducers.js +22 -0
- package/dist/cjs/plugins/card/styles.js +1 -1
- package/dist/cjs/plugins/card/ui/LayoutButton/index.js +113 -0
- package/dist/cjs/plugins/card/ui/LayoutButton/styled.js +17 -0
- package/dist/cjs/plugins/card/ui/LayoutButton/types.js +5 -0
- package/dist/cjs/plugins/card/ui/LayoutButton/utils.js +19 -0
- package/dist/cjs/plugins/media/pm-plugins/main.js +20 -1
- 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/breakout/ui/LayoutButton.js +3 -26
- package/dist/es2019/plugins/breakout/utils/get-breakout-mode.js +0 -1
- package/dist/es2019/plugins/card/index.js +20 -3
- package/dist/es2019/plugins/card/nodeviews/datasource.js +38 -1
- package/dist/es2019/plugins/card/pm-plugins/actions.js +16 -0
- package/dist/es2019/plugins/card/pm-plugins/main.js +55 -4
- package/dist/es2019/plugins/card/pm-plugins/reducers.js +25 -0
- package/dist/es2019/plugins/card/styles.js +6 -0
- package/dist/es2019/plugins/card/ui/LayoutButton/index.js +106 -0
- package/dist/es2019/plugins/card/ui/LayoutButton/styled.js +10 -0
- package/dist/es2019/plugins/card/ui/LayoutButton/types.js +1 -0
- package/dist/es2019/plugins/card/ui/LayoutButton/utils.js +15 -0
- package/dist/es2019/plugins/media/pm-plugins/main.js +25 -3
- 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/breakout/ui/LayoutButton.js +3 -26
- package/dist/esm/plugins/breakout/utils/get-breakout-mode.js +0 -1
- package/dist/esm/plugins/card/index.js +20 -3
- package/dist/esm/plugins/card/nodeviews/datasource.js +37 -3
- package/dist/esm/plugins/card/pm-plugins/actions.js +27 -0
- package/dist/esm/plugins/card/pm-plugins/main.js +49 -4
- package/dist/esm/plugins/card/pm-plugins/reducers.js +22 -0
- package/dist/esm/plugins/card/styles.js +1 -1
- package/dist/esm/plugins/card/ui/LayoutButton/index.js +102 -0
- package/dist/esm/plugins/card/ui/LayoutButton/styled.js +10 -0
- package/dist/esm/plugins/card/ui/LayoutButton/types.js +1 -0
- package/dist/esm/plugins/card/ui/LayoutButton/utils.js +12 -0
- package/dist/esm/plugins/media/pm-plugins/main.js +22 -3
- 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/breakout/commands/set-breakout-mode.d.ts +1 -1
- package/dist/types/plugins/breakout/utils/get-breakout-mode.d.ts +1 -1
- package/dist/types/plugins/card/index.d.ts +3 -1
- package/dist/types/plugins/card/nodeviews/datasource.d.ts +18 -2
- package/dist/types/plugins/card/pm-plugins/actions.d.ts +7 -0
- package/dist/types/plugins/card/pm-plugins/plugin-key.d.ts +2 -1
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +2 -0
- package/dist/types/plugins/card/types.d.ts +17 -1
- package/dist/types/plugins/card/ui/LayoutButton/index.d.ts +9 -0
- package/dist/types/plugins/card/ui/LayoutButton/styled.d.ts +1 -0
- package/dist/types/plugins/card/ui/LayoutButton/types.d.ts +19 -0
- package/dist/types/plugins/card/ui/LayoutButton/utils.d.ts +5 -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/breakout/commands/set-breakout-mode.d.ts +1 -1
- package/dist/types-ts4.5/plugins/breakout/utils/get-breakout-mode.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/card/nodeviews/datasource.d.ts +18 -2
- package/dist/types-ts4.5/plugins/card/pm-plugins/actions.d.ts +7 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/plugin-key.d.ts +2 -1
- package/dist/types-ts4.5/plugins/card/pm-plugins/util/state.d.ts +2 -0
- package/dist/types-ts4.5/plugins/card/types.d.ts +17 -1
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/index.d.ts +9 -0
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/styled.d.ts +1 -0
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/types.d.ts +19 -0
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/utils.d.ts +5 -0
- package/package.json +4 -4
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorState } from 'prosemirror-state';
|
|
2
|
-
import { BreakoutMode } from '
|
|
2
|
+
import { BreakoutMode } from '@atlaskit/editor-common/types';
|
|
3
3
|
/**
|
|
4
4
|
* Get the current mode of the breakout at the selection
|
|
5
5
|
* @param state Current EditorState
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { CardPluginOptions } from './types';
|
|
3
3
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
4
4
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
@@ -6,6 +6,7 @@ import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
6
6
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
7
7
|
import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
8
8
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
9
|
+
import { CardPluginState } from './types';
|
|
9
10
|
declare const cardPlugin: NextEditorPlugin<'card', {
|
|
10
11
|
pluginConfiguration: CardPluginOptions;
|
|
11
12
|
dependencies: [
|
|
@@ -16,5 +17,6 @@ declare const cardPlugin: NextEditorPlugin<'card', {
|
|
|
16
17
|
typeof gridPlugin,
|
|
17
18
|
FloatingToolbarPlugin
|
|
18
19
|
];
|
|
20
|
+
sharedState: CardPluginState | null;
|
|
19
21
|
}>;
|
|
20
22
|
export default cardPlugin;
|
|
@@ -5,10 +5,22 @@ import { jsx } from '@emotion/react';
|
|
|
5
5
|
import { Node as PMNode } from 'prosemirror-model';
|
|
6
6
|
import { EditorView } from 'prosemirror-view';
|
|
7
7
|
import ReactNodeView, { getPosHandler, ReactComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
8
|
-
|
|
8
|
+
import { DatasourceTableLayout } from '../ui/LayoutButton/types';
|
|
9
|
+
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
10
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
11
|
+
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
12
|
+
import type cardPlugin from '../index';
|
|
13
|
+
export declare const DATASOURCE_INNER_CONTAINER_CLASSNAME = "datasourceView-content-inner-wrap";
|
|
14
|
+
interface DatasourceProps extends ReactComponentProps {
|
|
9
15
|
node: PMNode;
|
|
10
16
|
view: EditorView;
|
|
11
17
|
getPos: getPosHandler;
|
|
18
|
+
portalProviderAPI: PortalProviderAPI;
|
|
19
|
+
eventDispatcher: EventDispatcher;
|
|
20
|
+
hasIntlContext: boolean;
|
|
21
|
+
pluginInjectionApi: ExtractInjectionAPI<typeof cardPlugin> | undefined;
|
|
22
|
+
}
|
|
23
|
+
interface DatasourceComponentProps extends ReactComponentProps, Pick<DatasourceProps, 'node' | 'view' | 'getPos'> {
|
|
12
24
|
}
|
|
13
25
|
export declare class DatasourceComponent extends React.PureComponent<DatasourceComponentProps> {
|
|
14
26
|
static contextTypes: {
|
|
@@ -21,7 +33,11 @@ export declare class DatasourceComponent extends React.PureComponent<DatasourceC
|
|
|
21
33
|
handleColumnChange: (columnKeys: string[]) => void;
|
|
22
34
|
render(): jsx.JSX.Element | null;
|
|
23
35
|
}
|
|
24
|
-
export declare class Datasource extends ReactNodeView<
|
|
36
|
+
export declare class Datasource extends ReactNodeView<DatasourceProps> {
|
|
37
|
+
private tableWidth;
|
|
38
|
+
constructor(props: DatasourceProps);
|
|
39
|
+
createDomRef(): HTMLElement;
|
|
40
|
+
calcTableWidth: (layout: DatasourceTableLayout, containerWidth?: number) => number | 'inherit';
|
|
25
41
|
render(): jsx.JSX.Element;
|
|
26
42
|
}
|
|
27
43
|
export {};
|
|
@@ -2,6 +2,7 @@ import { Transaction } from 'prosemirror-state';
|
|
|
2
2
|
import { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { CardPluginAction, Request, CardInfo, SmartLinkEventsNext } from '../types';
|
|
4
4
|
import { SmartLinkEvents } from '@atlaskit/smart-card';
|
|
5
|
+
import { DatasourceTableLayout } from '../ui/LayoutButton/types';
|
|
5
6
|
export declare const cardAction: (tr: Transaction, action: CardPluginAction) => Transaction;
|
|
6
7
|
export declare const resolveCard: (url: string) => (tr: Transaction) => Transaction<any>;
|
|
7
8
|
export declare const queueCards: (requests: Request[]) => (tr: Transaction) => Transaction<any>;
|
|
@@ -9,5 +10,11 @@ export declare const registerCard: (info: CardInfo) => (tr: Transaction) => Tran
|
|
|
9
10
|
export declare const registerSmartCardEvents: (smartLinkEvents: SmartLinkEvents) => (tr: Transaction) => Transaction<any>;
|
|
10
11
|
export declare const registerSmartCardEventsNext: (smartLinkEvents: SmartLinkEventsNext) => (tr: Transaction) => Transaction<any>;
|
|
11
12
|
export declare const setProvider: (cardProvider: CardProvider | null) => (tr: Transaction) => Transaction<any>;
|
|
13
|
+
export declare const setDatasourceTableRef: (datasourceTableRef?: HTMLElement) => (tr: Transaction) => Transaction<any>;
|
|
14
|
+
export declare const setCardLayout: (layout: DatasourceTableLayout) => (tr: Transaction) => Transaction<any>;
|
|
15
|
+
export declare const setCardLayoutAndDatasourceTableRef: ({ layout, datasourceTableRef, }: {
|
|
16
|
+
layout: DatasourceTableLayout;
|
|
17
|
+
datasourceTableRef?: HTMLElement | undefined;
|
|
18
|
+
}) => (tr: Transaction) => Transaction<any>;
|
|
12
19
|
export declare const showLinkToolbar: (tr: Transaction) => Transaction<any>;
|
|
13
20
|
export declare const hideLinkToolbar: (tr: Transaction) => Transaction<any>;
|
|
@@ -24,5 +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
|
+
datasourceTableRef?: HTMLElement | undefined;
|
|
28
|
+
layout?: import("../../ui/LayoutButton/types").DatasourceTableLayout | undefined;
|
|
27
29
|
};
|
|
28
30
|
export declare const getNewRequests: (oldState: CardPluginState | undefined, currentState: CardPluginState) => Request[];
|
|
@@ -5,6 +5,7 @@ import { CreateUIAnalyticsEvent, UIAnalyticsEvent } from '@atlaskit/analytics-ne
|
|
|
5
5
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
6
6
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
7
7
|
import { LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
8
|
+
import { DatasourceTableLayout } from './ui/LayoutButton/types';
|
|
8
9
|
export type CardInfo = {
|
|
9
10
|
title?: string;
|
|
10
11
|
url?: string;
|
|
@@ -100,6 +101,8 @@ export type CardPluginState = {
|
|
|
100
101
|
smartLinkEventsNext?: SmartLinkEventsNext;
|
|
101
102
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
102
103
|
editorAppearance?: EditorAppearance;
|
|
104
|
+
datasourceTableRef?: HTMLElement;
|
|
105
|
+
layout?: DatasourceTableLayout;
|
|
103
106
|
};
|
|
104
107
|
export type CardPluginOptions = CardOptions & {
|
|
105
108
|
editorAppearance?: EditorAppearance;
|
|
@@ -138,6 +141,19 @@ export type RegisterSmartCardEventsNext = {
|
|
|
138
141
|
type: 'REGISTER_EVENTS_NEXT';
|
|
139
142
|
smartLinkEvents: SmartLinkEventsNext;
|
|
140
143
|
};
|
|
141
|
-
export type
|
|
144
|
+
export type SetDatasourceTableRef = {
|
|
145
|
+
type: 'SET_DATASOURCE_TABLE_REF';
|
|
146
|
+
datasourceTableRef?: HTMLElement;
|
|
147
|
+
};
|
|
148
|
+
export type SetCardLayout = {
|
|
149
|
+
type: 'SET_CARD_LAYOUT';
|
|
150
|
+
layout: DatasourceTableLayout;
|
|
151
|
+
};
|
|
152
|
+
export type SetCardLayoutAndDatasourceTableRef = {
|
|
153
|
+
type: 'SET_CARD_LAYOUT_AND_DATASOURCE_TABLE_REF';
|
|
154
|
+
layout: DatasourceTableLayout;
|
|
155
|
+
datasourceTableRef?: HTMLElement;
|
|
156
|
+
};
|
|
157
|
+
export type CardPluginAction = SetProvider | Queue | Resolve | Register | ShowLinkToolbar | HideLinkToolbar | RegisterSmartCardEvents | RegisterSmartCardEventsNext | SetDatasourceTableRef | SetCardLayout | SetCardLayoutAndDatasourceTableRef;
|
|
142
158
|
export type CardReplacementInputMethod = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.FORMATTING | INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.FLOATING_TB;
|
|
143
159
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import { LayoutButtonProps, LayoutButtonWrapperProps } from './types';
|
|
5
|
+
export declare const LayoutButton: React.FC<LayoutButtonProps>;
|
|
6
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<LayoutButtonWrapperProps & WrappedComponentProps<"intl">>> & {
|
|
7
|
+
WrappedComponent: React.ComponentType<LayoutButtonWrapperProps & WrappedComponentProps<"intl">>;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toolbarButtonWrapper: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EditorView } from 'prosemirror-view';
|
|
2
|
+
import { IntlShape } from 'react-intl-next';
|
|
3
|
+
import type cardPlugin from '../../index';
|
|
4
|
+
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
export type DatasourceTableLayout = 'full-width' | 'center' | 'wide';
|
|
6
|
+
export type LayoutButtonProps = {
|
|
7
|
+
mountPoint?: HTMLElement;
|
|
8
|
+
boundariesElement?: HTMLElement;
|
|
9
|
+
scrollableElement?: HTMLElement;
|
|
10
|
+
targetElement?: HTMLElement;
|
|
11
|
+
layout: DatasourceTableLayout;
|
|
12
|
+
onLayoutChange?: (layout: DatasourceTableLayout) => void;
|
|
13
|
+
testId?: string;
|
|
14
|
+
intl: IntlShape;
|
|
15
|
+
};
|
|
16
|
+
export interface LayoutButtonWrapperProps extends Pick<LayoutButtonProps, 'mountPoint' | 'boundariesElement' | 'scrollableElement'> {
|
|
17
|
+
api: ExtractInjectionAPI<typeof cardPlugin> | undefined;
|
|
18
|
+
editorView: EditorView;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "185.5.
|
|
3
|
+
"version": "185.5.7",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/form": "^8.11.0",
|
|
70
70
|
"@atlaskit/icon": "^21.12.0",
|
|
71
71
|
"@atlaskit/icon-object": "^6.3.0",
|
|
72
|
-
"@atlaskit/link-analytics": "^8.
|
|
72
|
+
"@atlaskit/link-analytics": "^8.1.0",
|
|
73
73
|
"@atlaskit/link-datasource": "^0.25.0",
|
|
74
74
|
"@atlaskit/link-picker": "^1.25.0",
|
|
75
75
|
"@atlaskit/locale": "^2.5.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/radio": "^5.6.0",
|
|
91
91
|
"@atlaskit/section-message": "^6.4.0",
|
|
92
92
|
"@atlaskit/select": "^16.5.0",
|
|
93
|
-
"@atlaskit/smart-card": "^26.
|
|
93
|
+
"@atlaskit/smart-card": "^26.7.0",
|
|
94
94
|
"@atlaskit/smart-user-picker": "^6.1.0",
|
|
95
95
|
"@atlaskit/spinner": "^15.5.0",
|
|
96
96
|
"@atlaskit/status": "^1.3.0",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"@atlaskit/atlassian-navigation": "^2.6.0",
|
|
153
153
|
"@atlaskit/breadcrumbs": "11.10.4",
|
|
154
154
|
"@atlaskit/code": "^14.6.0",
|
|
155
|
-
"@atlaskit/collab-provider": "9.
|
|
155
|
+
"@atlaskit/collab-provider": "9.4.0",
|
|
156
156
|
"@atlaskit/docs": "*",
|
|
157
157
|
"@atlaskit/drawer": "^7.5.0",
|
|
158
158
|
"@atlaskit/dropdown-menu": "^11.10.0",
|