@atlaskit/editor-core 167.0.1 → 168.0.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 +26 -0
- package/dist/cjs/i18n/cs.js +1 -23
- package/dist/cjs/i18n/da.js +1 -23
- package/dist/cjs/i18n/de.js +1 -23
- package/dist/cjs/i18n/es.js +1 -23
- package/dist/cjs/i18n/et.js +1 -23
- package/dist/cjs/i18n/fr.js +1 -23
- package/dist/cjs/i18n/hu.js +1 -23
- package/dist/cjs/i18n/is.js +1 -23
- package/dist/cjs/i18n/it.js +1 -23
- package/dist/cjs/i18n/ko.js +1 -23
- package/dist/cjs/i18n/nb.js +1 -9
- package/dist/cjs/i18n/nl.js +0 -3
- package/dist/cjs/i18n/pl.js +0 -1
- package/dist/cjs/i18n/pt_BR.js +1 -8
- package/dist/cjs/i18n/pt_PT.js +1 -11
- package/dist/cjs/i18n/ro.js +1 -23
- package/dist/cjs/i18n/sk.js +1 -23
- package/dist/cjs/i18n/sv.js +0 -1
- package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +2 -2
- package/dist/cjs/plugins/card/styles.js +1 -1
- package/dist/cjs/plugins/collab-edit/index.js +2 -2
- package/dist/cjs/plugins/collab-edit/provider/channel.js +2 -2
- package/dist/cjs/plugins/date/actions.js +1 -1
- package/dist/cjs/plugins/extension/context-panel.js +2 -2
- package/dist/cjs/plugins/extension/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +2 -2
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/cjs/plugins/layout/styles.js +1 -1
- package/dist/cjs/plugins/list/styles.js +3 -1
- package/dist/cjs/plugins/macro/actions.js +2 -2
- package/dist/cjs/plugins/media/nodeviews/mediaInline.js +2 -2
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +2 -2
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +2 -2
- package/dist/cjs/plugins/paste/handlers.js +40 -14
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +1 -1
- package/dist/cjs/plugins/paste/pm-plugins/main.js +17 -0
- package/dist/cjs/plugins/quick-insert/search.js +3 -1
- package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
- package/dist/cjs/plugins/table/utils/paste.js +16 -3
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +7 -0
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +2 -2
- package/dist/cjs/ui/ConfigPanel/transformers.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +1 -23
- package/dist/es2019/i18n/da.js +1 -23
- package/dist/es2019/i18n/de.js +1 -23
- package/dist/es2019/i18n/es.js +1 -23
- package/dist/es2019/i18n/et.js +1 -23
- package/dist/es2019/i18n/fr.js +1 -23
- package/dist/es2019/i18n/hu.js +1 -23
- package/dist/es2019/i18n/is.js +1 -23
- package/dist/es2019/i18n/it.js +1 -23
- package/dist/es2019/i18n/ko.js +1 -23
- package/dist/es2019/i18n/nb.js +1 -9
- package/dist/es2019/i18n/nl.js +0 -3
- package/dist/es2019/i18n/pl.js +0 -1
- package/dist/es2019/i18n/pt_BR.js +1 -8
- package/dist/es2019/i18n/pt_PT.js +1 -11
- package/dist/es2019/i18n/ro.js +1 -23
- package/dist/es2019/i18n/sk.js +1 -23
- package/dist/es2019/i18n/sv.js +0 -1
- package/dist/es2019/plugins/card/styles.js +3 -0
- package/dist/es2019/plugins/date/actions.js +1 -1
- package/dist/es2019/plugins/layout/styles.js +2 -1
- package/dist/es2019/plugins/list/styles.js +8 -0
- package/dist/es2019/plugins/paste/handlers.js +39 -12
- package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/es2019/plugins/paste/pm-plugins/main.js +14 -0
- package/dist/es2019/plugins/quick-insert/search.js +1 -1
- package/dist/es2019/plugins/table/ui/common-styles.js +2 -1
- package/dist/es2019/plugins/table/utils/paste.js +16 -3
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +7 -0
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +5 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/create-editor/ErrorBoundary.js +1 -1
- package/dist/esm/editor.js +2 -1
- package/dist/esm/i18n/cs.js +1 -23
- package/dist/esm/i18n/da.js +1 -23
- package/dist/esm/i18n/de.js +1 -23
- package/dist/esm/i18n/es.js +1 -23
- package/dist/esm/i18n/et.js +1 -23
- package/dist/esm/i18n/fr.js +1 -23
- package/dist/esm/i18n/hu.js +1 -23
- package/dist/esm/i18n/is.js +1 -23
- package/dist/esm/i18n/it.js +1 -23
- package/dist/esm/i18n/ko.js +1 -23
- package/dist/esm/i18n/nb.js +1 -9
- package/dist/esm/i18n/nl.js +0 -3
- package/dist/esm/i18n/pl.js +0 -1
- package/dist/esm/i18n/pt_BR.js +1 -8
- package/dist/esm/i18n/pt_PT.js +1 -11
- package/dist/esm/i18n/ro.js +1 -23
- package/dist/esm/i18n/sk.js +1 -23
- package/dist/esm/i18n/sv.js +0 -1
- package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +1 -1
- package/dist/esm/plugins/card/styles.js +1 -1
- package/dist/esm/plugins/collab-edit/index.js +1 -1
- package/dist/esm/plugins/collab-edit/provider/channel.js +1 -1
- package/dist/esm/plugins/custom-autoformat/doc.js +1 -1
- package/dist/esm/plugins/custom-autoformat/index.js +1 -1
- package/dist/esm/plugins/date/actions.js +1 -1
- package/dist/esm/plugins/extension/actions.js +1 -1
- package/dist/esm/plugins/extension/context-panel.js +1 -1
- package/dist/esm/plugins/extension/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +1 -1
- package/dist/esm/plugins/feedback-dialog/index.js +1 -1
- package/dist/esm/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +1 -1
- package/dist/esm/plugins/find-replace/utils/batch-decorations.js +1 -1
- package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
- package/dist/esm/plugins/hyperlink/HyperlinkToolbarAppearance.js +1 -1
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -1
- package/dist/esm/plugins/image-upload/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/layout/styles.js +1 -1
- package/dist/esm/plugins/list/styles.js +2 -1
- package/dist/esm/plugins/macro/actions.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaInline.js +2 -1
- package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/esm/plugins/media/picker-facade.js +1 -1
- package/dist/esm/plugins/media/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/media/toolbar/utils.js +1 -1
- package/dist/esm/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -1
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/esm/plugins/media/utils/check-media-type.js +1 -1
- package/dist/esm/plugins/paste/handlers.js +41 -14
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/esm/plugins/paste/pm-plugins/main.js +17 -1
- package/dist/esm/plugins/quick-insert/index.js +1 -1
- package/dist/esm/plugins/quick-insert/search.js +3 -1
- package/dist/esm/plugins/table/ui/common-styles.js +1 -1
- package/dist/esm/plugins/table/utils/paste.js +16 -3
- package/dist/esm/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +1 -1
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +7 -0
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +1 -1
- package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +1 -1
- package/dist/esm/ui/ConfigPanel/transformers.js +1 -1
- package/dist/esm/ui/LinkSearch/index.js +1 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
- package/dist/esm/utils/action.js +1 -1
- package/dist/esm/utils/clipboard.js +1 -1
- package/dist/esm/utils/extensions.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/cs.d.ts +0 -22
- package/dist/types/i18n/da.d.ts +0 -22
- package/dist/types/i18n/de.d.ts +0 -22
- package/dist/types/i18n/es.d.ts +0 -22
- package/dist/types/i18n/et.d.ts +0 -22
- package/dist/types/i18n/fr.d.ts +0 -22
- package/dist/types/i18n/hu.d.ts +0 -22
- package/dist/types/i18n/is.d.ts +0 -22
- package/dist/types/i18n/it.d.ts +0 -22
- package/dist/types/i18n/ko.d.ts +0 -22
- package/dist/types/i18n/nb.d.ts +0 -8
- package/dist/types/i18n/nl.d.ts +0 -3
- package/dist/types/i18n/pl.d.ts +0 -1
- package/dist/types/i18n/pt_BR.d.ts +0 -7
- package/dist/types/i18n/pt_PT.d.ts +0 -10
- package/dist/types/i18n/ro.d.ts +0 -22
- package/dist/types/i18n/sk.d.ts +0 -22
- package/dist/types/i18n/sv.d.ts +0 -1
- package/dist/types/plugins/paste/handlers.d.ts +1 -1
- package/package.json +20 -20
- package/report.api.md +2698 -0
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': 'Warn-Panel',
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Hinweis zur Vorsicht in einem farbigen Panel einfügen',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Links umwickeln',
|
|
296
|
-
'fabric.editor.wrapRight': 'Rechts umwickeln'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Rechts umwickeln'
|
|
319
297
|
};
|
package/dist/es2019/i18n/es.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': 'Panel de advertencias',
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Añadir una nota de precaución en un panel de color',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Ajustar a la izquierda',
|
|
296
|
-
'fabric.editor.wrapRight': 'Ajustar a la derecha'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Ajustar a la derecha'
|
|
319
297
|
};
|
package/dist/es2019/i18n/et.js
CHANGED
|
@@ -164,27 +164,5 @@ export default {
|
|
|
164
164
|
'fabric.editor.warningPanel': 'Hoiatuse paneel',
|
|
165
165
|
'fabric.editor.warningPanel.description': 'Lisa värvilisse paneeli ettevaatlikusele viitav märkus',
|
|
166
166
|
'fabric.editor.wrapLeft': 'Aseta vasakule',
|
|
167
|
-
'fabric.editor.wrapRight': 'Aseta paremale'
|
|
168
|
-
'fabric.theme.blue': 'Blue',
|
|
169
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
170
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
171
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
172
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
173
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
174
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
175
|
-
'fabric.theme.gray': 'Gray',
|
|
176
|
-
'fabric.theme.green': 'Green',
|
|
177
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
178
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
179
|
-
'fabric.theme.light-green': 'Light green',
|
|
180
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
181
|
-
'fabric.theme.light-red': 'Light red',
|
|
182
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
183
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
184
|
-
'fabric.theme.orange': 'Orange',
|
|
185
|
-
'fabric.theme.purple': 'Purple',
|
|
186
|
-
'fabric.theme.red': 'Red',
|
|
187
|
-
'fabric.theme.teal': 'Teal',
|
|
188
|
-
'fabric.theme.white': 'White',
|
|
189
|
-
'fabric.theme.yellow': 'Yellow'
|
|
167
|
+
'fabric.editor.wrapRight': 'Aseta paremale'
|
|
190
168
|
};
|
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': "Panneau d'avertissement",
|
|
294
294
|
'fabric.editor.warningPanel.description': "Ajouter une note d'avertissement dans un cadre coloré",
|
|
295
295
|
'fabric.editor.wrapLeft': 'Ajuster vers la gauche',
|
|
296
|
-
'fabric.editor.wrapRight': 'Ajuster vers la droite'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Ajuster vers la droite'
|
|
319
297
|
};
|
package/dist/es2019/i18n/hu.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': 'Figyelmeztető panel',
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Figyelmeztető megjegyzés hozzáadása színes panelen',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Balra igazítás',
|
|
296
|
-
'fabric.editor.wrapRight': 'Jobbra igazítás'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Jobbra igazítás'
|
|
319
297
|
};
|
package/dist/es2019/i18n/is.js
CHANGED
|
@@ -149,27 +149,5 @@ export default {
|
|
|
149
149
|
'fabric.editor.moreFormatting': 'Meira formatting',
|
|
150
150
|
'fabric.editor.bold': 'Djörf',
|
|
151
151
|
'fabric.editor.italic': 'Skáletrað',
|
|
152
|
-
'fabric.editor.selected': 'Valinn'
|
|
153
|
-
'fabric.theme.white': 'White',
|
|
154
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
155
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
156
|
-
'fabric.theme.light-green': 'Light green',
|
|
157
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
158
|
-
'fabric.theme.light-red': 'Light red',
|
|
159
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
160
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
161
|
-
'fabric.theme.blue': 'Blue',
|
|
162
|
-
'fabric.theme.teal': 'Teal',
|
|
163
|
-
'fabric.theme.green': 'Green',
|
|
164
|
-
'fabric.theme.yellow': 'Yellow',
|
|
165
|
-
'fabric.theme.red': 'Red',
|
|
166
|
-
'fabric.theme.orange': 'Orange',
|
|
167
|
-
'fabric.theme.purple': 'Purple',
|
|
168
|
-
'fabric.theme.gray': 'Gray',
|
|
169
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
170
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
171
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
172
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
173
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
174
|
-
'fabric.theme.dark-purple': 'Dark purple'
|
|
152
|
+
'fabric.editor.selected': 'Valinn'
|
|
175
153
|
};
|
package/dist/es2019/i18n/it.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': 'Pannello avvisi',
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Aggiungi un avviso in un pannello colorato',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Ritorno a capo a sinistra',
|
|
296
|
-
'fabric.editor.wrapRight': 'RItorno a capo a destra'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'RItorno a capo a destra'
|
|
319
297
|
};
|
package/dist/es2019/i18n/ko.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': '경고 패널',
|
|
294
294
|
'fabric.editor.warningPanel.description': '색상 있는 패널에 주의 사항 메모 추가',
|
|
295
295
|
'fabric.editor.wrapLeft': '왼쪽에서 줄 바꿈',
|
|
296
|
-
'fabric.editor.wrapRight': '오른쪽에서 줄 바꿈'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': '오른쪽에서 줄 바꿈'
|
|
319
297
|
};
|
package/dist/es2019/i18n/nb.js
CHANGED
|
@@ -294,26 +294,18 @@ export default {
|
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Legg til en advarsel i et farget panel',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Juster til venstre',
|
|
296
296
|
'fabric.editor.wrapRight': 'Juster til høyre',
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
297
|
'fabric.theme.dark-blue': 'Mørk blå',
|
|
299
298
|
'fabric.theme.dark-green': 'Mørk grønn',
|
|
300
299
|
'fabric.theme.dark-purple': 'Mørk lilla',
|
|
301
300
|
'fabric.theme.dark-red': 'Mørkerød',
|
|
302
301
|
'fabric.theme.dark-teal': 'Mørk blågrønn',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
302
|
'fabric.theme.light-green': 'Lysegrønn',
|
|
309
303
|
'fabric.theme.light-purple': 'Lys lilla',
|
|
310
304
|
'fabric.theme.light-red': 'Lyserød',
|
|
311
305
|
'fabric.theme.light-teal': 'Lys blågrønn',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
306
|
'fabric.theme.orange': 'Oransje',
|
|
314
307
|
'fabric.theme.purple': 'Lilla',
|
|
315
308
|
'fabric.theme.red': 'Rød',
|
|
316
309
|
'fabric.theme.teal': 'Blågrønn',
|
|
317
|
-
'fabric.theme.white': 'Hvit'
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
310
|
+
'fabric.theme.white': 'Hvit'
|
|
319
311
|
};
|
package/dist/es2019/i18n/nl.js
CHANGED
|
@@ -312,8 +312,5 @@ export default {
|
|
|
312
312
|
'fabric.theme.light-yellow': 'Lichtgeel',
|
|
313
313
|
'fabric.theme.orange': 'Oranje',
|
|
314
314
|
'fabric.theme.purple': 'Paars',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
315
|
'fabric.theme.yellow': 'Geel'
|
|
319
316
|
};
|
package/dist/es2019/i18n/pl.js
CHANGED
|
@@ -294,26 +294,19 @@ export default {
|
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Adicionar uma nota de atenção em um painel colorido',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Ajustar à esquerda',
|
|
296
296
|
'fabric.editor.wrapRight': 'Ajustar à direita',
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
297
|
'fabric.theme.dark-blue': 'Azul-escuro',
|
|
299
298
|
'fabric.theme.dark-green': 'Verde-escuro',
|
|
300
299
|
'fabric.theme.dark-purple': 'Roxo-escuro',
|
|
301
300
|
'fabric.theme.dark-red': 'Vermelho-escuro',
|
|
302
301
|
'fabric.theme.dark-teal': 'Azul-petróleo escuro',
|
|
303
302
|
'fabric.theme.dark-yellow': 'Amarelo-escuro',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
303
|
'fabric.theme.green': 'Verde',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
304
|
'fabric.theme.light-green': 'Verde claro',
|
|
309
305
|
'fabric.theme.light-purple': 'Roxo claro',
|
|
310
306
|
'fabric.theme.light-red': 'Vermelho claro',
|
|
311
307
|
'fabric.theme.light-teal': 'Verde-petróleo claro',
|
|
312
308
|
'fabric.theme.light-yellow': 'Amarelo claro',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
309
|
'fabric.theme.purple': 'Roxo',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
310
|
'fabric.theme.teal': 'Azul-petróleo',
|
|
317
|
-
'fabric.theme.white': 'Branco'
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
311
|
+
'fabric.theme.white': 'Branco'
|
|
319
312
|
};
|
|
@@ -165,26 +165,16 @@ export default {
|
|
|
165
165
|
'fabric.editor.warningPanel.description': 'Adicionar uma nota de advertência a um painel colorido',
|
|
166
166
|
'fabric.editor.wrapLeft': 'Alinhar à esquerda',
|
|
167
167
|
'fabric.editor.wrapRight': 'Alinhar à direita',
|
|
168
|
-
'fabric.theme.blue': 'Blue',
|
|
169
168
|
'fabric.theme.dark-blue': 'Azul-escuro',
|
|
170
169
|
'fabric.theme.dark-green': 'Verde-escuro',
|
|
171
170
|
'fabric.theme.dark-purple': 'Roxo-escuro',
|
|
172
171
|
'fabric.theme.dark-red': 'Dark red',
|
|
173
172
|
'fabric.theme.dark-teal': 'Verde-azulado-escuro',
|
|
174
173
|
'fabric.theme.dark-yellow': 'Amarelo-escuro',
|
|
175
|
-
'fabric.theme.gray': 'Gray',
|
|
176
|
-
'fabric.theme.green': 'Green',
|
|
177
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
178
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
179
174
|
'fabric.theme.light-green': 'Verde-claro',
|
|
180
175
|
'fabric.theme.light-purple': 'Roxo-claro',
|
|
181
176
|
'fabric.theme.light-red': 'Vermelho-claro',
|
|
182
177
|
'fabric.theme.light-teal': 'Verde-azulado-claro',
|
|
183
178
|
'fabric.theme.light-yellow': 'Amarelo claro',
|
|
184
|
-
'fabric.theme.
|
|
185
|
-
'fabric.theme.purple': 'Purple',
|
|
186
|
-
'fabric.theme.red': 'Red',
|
|
187
|
-
'fabric.theme.teal': 'Teal',
|
|
188
|
-
'fabric.theme.white': 'Branco',
|
|
189
|
-
'fabric.theme.yellow': 'Yellow'
|
|
179
|
+
'fabric.theme.white': 'Branco'
|
|
190
180
|
};
|
package/dist/es2019/i18n/ro.js
CHANGED
|
@@ -149,27 +149,5 @@ export default {
|
|
|
149
149
|
'fabric.editor.moreFormatting': 'Mai multe opțiuni formatare',
|
|
150
150
|
'fabric.editor.bold': 'Bold',
|
|
151
151
|
'fabric.editor.italic': 'Italic',
|
|
152
|
-
'fabric.editor.selected': 'Selectate'
|
|
153
|
-
'fabric.theme.white': 'White',
|
|
154
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
155
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
156
|
-
'fabric.theme.light-green': 'Light green',
|
|
157
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
158
|
-
'fabric.theme.light-red': 'Light red',
|
|
159
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
160
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
161
|
-
'fabric.theme.blue': 'Blue',
|
|
162
|
-
'fabric.theme.teal': 'Teal',
|
|
163
|
-
'fabric.theme.green': 'Green',
|
|
164
|
-
'fabric.theme.yellow': 'Yellow',
|
|
165
|
-
'fabric.theme.red': 'Red',
|
|
166
|
-
'fabric.theme.orange': 'Orange',
|
|
167
|
-
'fabric.theme.purple': 'Purple',
|
|
168
|
-
'fabric.theme.gray': 'Gray',
|
|
169
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
170
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
171
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
172
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
173
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
174
|
-
'fabric.theme.dark-purple': 'Dark purple'
|
|
152
|
+
'fabric.editor.selected': 'Selectate'
|
|
175
153
|
};
|
package/dist/es2019/i18n/sk.js
CHANGED
|
@@ -164,27 +164,5 @@ export default {
|
|
|
164
164
|
'fabric.editor.warningPanel': 'Panel výstrah',
|
|
165
165
|
'fabric.editor.warningPanel.description': 'Pridať upozornenie do farebného panela',
|
|
166
166
|
'fabric.editor.wrapLeft': 'Zbaliť vľavo',
|
|
167
|
-
'fabric.editor.wrapRight': 'Zbaliť vpravo'
|
|
168
|
-
'fabric.theme.blue': 'Blue',
|
|
169
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
170
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
171
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
172
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
173
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
174
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
175
|
-
'fabric.theme.gray': 'Gray',
|
|
176
|
-
'fabric.theme.green': 'Green',
|
|
177
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
178
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
179
|
-
'fabric.theme.light-green': 'Light green',
|
|
180
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
181
|
-
'fabric.theme.light-red': 'Light red',
|
|
182
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
183
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
184
|
-
'fabric.theme.orange': 'Orange',
|
|
185
|
-
'fabric.theme.purple': 'Purple',
|
|
186
|
-
'fabric.theme.red': 'Red',
|
|
187
|
-
'fabric.theme.teal': 'Teal',
|
|
188
|
-
'fabric.theme.white': 'White',
|
|
189
|
-
'fabric.theme.yellow': 'Yellow'
|
|
167
|
+
'fabric.editor.wrapRight': 'Zbaliť vpravo'
|
|
190
168
|
};
|
package/dist/es2019/i18n/sv.js
CHANGED
|
@@ -310,7 +310,6 @@ export default {
|
|
|
310
310
|
'fabric.theme.light-red': 'Ljusröd',
|
|
311
311
|
'fabric.theme.light-teal': 'Ljust blågrön',
|
|
312
312
|
'fabric.theme.light-yellow': 'Ljusgul',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
313
|
'fabric.theme.purple': 'Lila',
|
|
315
314
|
'fabric.theme.red': 'Röd',
|
|
316
315
|
'fabric.theme.teal': 'Blågrön',
|
|
@@ -13,6 +13,9 @@ export const smartCardStyles = css`
|
|
|
13
13
|
.card {
|
|
14
14
|
padding-left: 2px;
|
|
15
15
|
padding-right: 2px;
|
|
16
|
+
padding-top: 0.5em;
|
|
17
|
+
padding-bottom: 0.5em;
|
|
18
|
+
margin-bottom: -0.5em;
|
|
16
19
|
|
|
17
20
|
.${SmartCardSharedCssClassName.LOADER_WRAPPER} > a:focus {
|
|
18
21
|
${getSelectionStyles([SelectionStyle.BoxShadow])}
|
|
@@ -149,7 +149,7 @@ export const insertDate = (date, inputMethod, commitMethod, enterPressed = true)
|
|
|
149
149
|
timestamp
|
|
150
150
|
}).setMeta(pluginKey, {
|
|
151
151
|
isNew: false
|
|
152
|
-
}).scrollIntoView();
|
|
152
|
+
}).scrollIntoView();
|
|
153
153
|
|
|
154
154
|
if (!enterPressed) {
|
|
155
155
|
tr = tr.setSelection(NodeSelection.create(tr.doc, showDatePickerAt));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
2
3
|
export const listsStyles = css`
|
|
3
4
|
.ProseMirror li {
|
|
4
5
|
position: relative;
|
|
@@ -6,5 +7,12 @@ export const listsStyles = css`
|
|
|
6
7
|
> p:not(:first-child) {
|
|
7
8
|
margin: 4px 0 0 0;
|
|
8
9
|
}
|
|
10
|
+
|
|
11
|
+
// In SSR the above rule will apply to all p tags because first-child would be a style tag.
|
|
12
|
+
// The following rule resets the first p tag back to its original margin
|
|
13
|
+
// defined in packages/editor/editor-common/src/styles/shared/paragraph.ts
|
|
14
|
+
> style:first-child + p {
|
|
15
|
+
margin-top: ${blockNodesVerticalMargin};
|
|
16
|
+
}
|
|
9
17
|
}
|
|
10
18
|
`;
|
|
@@ -30,8 +30,10 @@ export function handleMention(slice, schema) {
|
|
|
30
30
|
return node;
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
export function
|
|
33
|
+
export function handlePasteIntoTaskOrDecisionOrPanel(slice) {
|
|
34
34
|
return (state, dispatch) => {
|
|
35
|
+
var _slice$content$firstC, _slice$content$firstC2, _transformedSlice$con;
|
|
36
|
+
|
|
35
37
|
const {
|
|
36
38
|
schema,
|
|
37
39
|
tr: {
|
|
@@ -44,20 +46,32 @@ export function handlePasteIntoTaskAndDecision(slice) {
|
|
|
44
46
|
},
|
|
45
47
|
nodes: {
|
|
46
48
|
decisionItem,
|
|
47
|
-
decisionList,
|
|
48
49
|
emoji,
|
|
49
50
|
hardBreak,
|
|
50
51
|
mention,
|
|
51
52
|
paragraph,
|
|
52
|
-
taskList,
|
|
53
53
|
taskItem,
|
|
54
|
-
text
|
|
54
|
+
text,
|
|
55
|
+
panel,
|
|
56
|
+
bulletList,
|
|
57
|
+
orderedList,
|
|
58
|
+
expand,
|
|
59
|
+
heading
|
|
55
60
|
}
|
|
56
61
|
} = schema;
|
|
57
|
-
const
|
|
58
|
-
const
|
|
62
|
+
const selectionIsValidNode = state.selection instanceof NodeSelection && ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(state.selection.node.type.name);
|
|
63
|
+
const selectionHasValidParentNode = hasParentNodeOfType([decisionItem, taskItem, panel])(state.selection);
|
|
64
|
+
const selectionIsPanel = hasParentNodeOfType([panel])(state.selection); // Some types of content should be handled by the default handler, not this function.
|
|
65
|
+
|
|
66
|
+
const sliceFirstNodeType = (_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type;
|
|
67
|
+
const sliceIsInvalid = sliceFirstNodeType === bulletList || sliceFirstNodeType === orderedList || sliceFirstNodeType === expand || sliceFirstNodeType === heading; // If the selection is a panel,
|
|
68
|
+
// and the slice's first node is a paragraph
|
|
69
|
+
// and it is not from a depth that would indicate it being from inside from another node (e.g. text from a decision)
|
|
70
|
+
// then we can rely on the default behaviour.
|
|
71
|
+
|
|
72
|
+
const sliceIsAPanelReceivingLowDepthText = selectionIsPanel && ((_slice$content$firstC2 = slice.content.firstChild) === null || _slice$content$firstC2 === void 0 ? void 0 : _slice$content$firstC2.type) === paragraph && slice.openEnd < 2;
|
|
59
73
|
|
|
60
|
-
if (
|
|
74
|
+
if (sliceIsInvalid || sliceIsAPanelReceivingLowDepthText || !selectionIsValidNode && !selectionHasValidParentNode) {
|
|
61
75
|
return false;
|
|
62
76
|
}
|
|
63
77
|
|
|
@@ -72,11 +86,15 @@ export function handlePasteIntoTaskAndDecision(slice) {
|
|
|
72
86
|
|
|
73
87
|
const transformedSlice = compose.apply(null, filters)(slice);
|
|
74
88
|
const tr = closeHistory(state.tr);
|
|
75
|
-
const transformedSliceIsValidNode = transformedSlice.content.firstChild.type.inlineContent || ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(transformedSlice.content.firstChild.type.name);
|
|
89
|
+
const transformedSliceIsValidNode = transformedSlice.content.firstChild.type.inlineContent || ['decisionList', 'decisionItem', 'taskList', 'taskItem', 'panel'].includes(transformedSlice.content.firstChild.type.name); // If the slice or the selection are valid nodes to handle,
|
|
90
|
+
// and the slice is not a whole node (i.e. openStart is 1 and openEnd is 0)
|
|
91
|
+
// or the slice's first node is a paragraph,
|
|
92
|
+
// then we can replace the selection with our slice.
|
|
76
93
|
|
|
77
|
-
if (transformedSliceIsValidNode ||
|
|
94
|
+
if ((transformedSliceIsValidNode || selectionIsValidNode) && !(transformedSlice.openStart === 1 && transformedSlice.openEnd === 0) || ((_transformedSlice$con = transformedSlice.content.firstChild) === null || _transformedSlice$con === void 0 ? void 0 : _transformedSlice$con.type) === paragraph) {
|
|
78
95
|
tr.replaceSelection(transformedSlice).scrollIntoView();
|
|
79
96
|
} else {
|
|
97
|
+
// This maintains both the selection (destination) and the slice (paste content).
|
|
80
98
|
safeInsert(transformedSlice.content)(tr).scrollIntoView();
|
|
81
99
|
}
|
|
82
100
|
|
|
@@ -381,13 +399,22 @@ export function handleMediaSingle(inputMethod) {
|
|
|
381
399
|
};
|
|
382
400
|
};
|
|
383
401
|
}
|
|
402
|
+
|
|
403
|
+
const checkExpand = slice => {
|
|
404
|
+
let hasExpand = false;
|
|
405
|
+
slice.content.forEach(node => {
|
|
406
|
+
if (node.type.name === 'expand') {
|
|
407
|
+
hasExpand = true;
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
return hasExpand;
|
|
411
|
+
};
|
|
412
|
+
|
|
384
413
|
export function handleExpandPasteInTable(slice) {
|
|
385
414
|
return (state, dispatch) => {
|
|
386
|
-
var _slice$content$firstC;
|
|
387
|
-
|
|
388
415
|
// Do not handle expand if it's not being pasted into a table
|
|
389
416
|
// OR if it's nested within another node when being pasted into a table
|
|
390
|
-
if (!insideTable(state) || (
|
|
417
|
+
if (!insideTable(state) || !checkExpand(slice)) {
|
|
391
418
|
return false;
|
|
392
419
|
}
|
|
393
420
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ACTION, INPUT_METHOD, EVENT_TYPE, ACTION_SUBJECT, ACTION_SUBJECT_ID, addAnalytics, PasteTypes, PasteContents, withAnalytics } from '../../analytics';
|
|
2
2
|
import { getPasteSource } from '../util';
|
|
3
|
-
import { handlePasteAsPlainText,
|
|
3
|
+
import { handlePasteAsPlainText, handlePasteIntoTaskOrDecisionOrPanel, handleCodeBlock, handleMediaSingle, handlePastePreservingMarks, handleMarkdown, handleRichText, handleExpandPasteInTable, handleSelectedTable, handlePasteLinkOnSelectedText, handlePasteIntoCaption } from '../handlers';
|
|
4
4
|
import { pipe } from '../../../utils';
|
|
5
5
|
import { findParentNode } from 'prosemirror-utils';
|
|
6
6
|
import { mapSlice } from '../../../utils/slice';
|
|
@@ -219,7 +219,7 @@ export const handlePasteAsPlainTextWithAnalytics = (view, event, slice) => pipe(
|
|
|
219
219
|
type: PasteTypes.plain,
|
|
220
220
|
asPlain: true
|
|
221
221
|
}))(slice, event);
|
|
222
|
-
export const handlePasteIntoTaskAndDecisionWithAnalytics = (view, event, slice, type) => pipe(
|
|
222
|
+
export const handlePasteIntoTaskAndDecisionWithAnalytics = (view, event, slice, type) => pipe(handlePasteIntoTaskOrDecisionOrPanel, pasteCommandWithAnalytics(view, event, slice, {
|
|
223
223
|
type: type
|
|
224
224
|
}))(slice);
|
|
225
225
|
export const handlePasteIntoCaptionWithAnalytics = (view, event, slice, type) => pipe(handlePasteIntoCaption, pasteCommandWithAnalytics(view, event, slice, {
|
|
@@ -291,6 +291,20 @@ export function createPlugin(schema, dispatchAnalyticsEvent, plainTextPasteLinki
|
|
|
291
291
|
|
|
292
292
|
if (handlePastePreservingMarksWithAnalytics(view, event, slice, PasteTypes.richText)(state, dispatch)) {
|
|
293
293
|
return true;
|
|
294
|
+
} // Check that we are pasting in a location that does not accept
|
|
295
|
+
// breakout marks, if so we strip the mark and paste. Note that
|
|
296
|
+
// breakout marks are only valid in the root document.
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
if (selectionParentType !== state.schema.nodes.doc) {
|
|
300
|
+
const sliceCopy = Slice.fromJSON(state.schema, slice.toJSON() || {});
|
|
301
|
+
sliceCopy.content.descendants(node => {
|
|
302
|
+
node.marks = node.marks.filter(mark => mark.type.name !== 'breakout'); // as breakout marks should only be on top level nodes,
|
|
303
|
+
// we don't traverse the entire document
|
|
304
|
+
|
|
305
|
+
return false;
|
|
306
|
+
});
|
|
307
|
+
slice = sliceCopy;
|
|
294
308
|
}
|
|
295
309
|
|
|
296
310
|
if (handleExpandWithAnalytics(view, event, slice)(state, dispatch)) {
|
|
@@ -28,7 +28,7 @@ export function find(query, items) {
|
|
|
28
28
|
return items.slice(0).sort((a, b) => (a.priority || Number.POSITIVE_INFINITY) - (b.priority || Number.POSITIVE_INFINITY));
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
return fuse.search(query);
|
|
31
|
+
return fuse.search(query).map(result => result.item);
|
|
32
32
|
}
|
|
33
33
|
export const searchQuickInsertItems = (quickInsertState, options) => (query, category) => {
|
|
34
34
|
const defaultItems = options && options.disableDefaultItems ? [] : quickInsertState.lazyDefaultItems();
|