@atlaskit/editor-core 167.0.0 → 167.0.3

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.
Files changed (123) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/cjs/i18n/cs.js +1 -23
  3. package/dist/cjs/i18n/da.js +1 -23
  4. package/dist/cjs/i18n/de.js +1 -23
  5. package/dist/cjs/i18n/es.js +1 -23
  6. package/dist/cjs/i18n/et.js +1 -23
  7. package/dist/cjs/i18n/fr.js +1 -23
  8. package/dist/cjs/i18n/hu.js +1 -23
  9. package/dist/cjs/i18n/is.js +1 -23
  10. package/dist/cjs/i18n/it.js +1 -23
  11. package/dist/cjs/i18n/ko.js +1 -23
  12. package/dist/cjs/i18n/nb.js +1 -9
  13. package/dist/cjs/i18n/nl.js +0 -3
  14. package/dist/cjs/i18n/pl.js +0 -1
  15. package/dist/cjs/i18n/pt_BR.js +1 -8
  16. package/dist/cjs/i18n/pt_PT.js +1 -11
  17. package/dist/cjs/i18n/ro.js +1 -23
  18. package/dist/cjs/i18n/sk.js +1 -23
  19. package/dist/cjs/i18n/sv.js +0 -1
  20. package/dist/cjs/plugins/card/styles.js +1 -1
  21. package/dist/cjs/plugins/date/actions.js +1 -1
  22. package/dist/cjs/plugins/insert-block/index.js +1 -1
  23. package/dist/cjs/plugins/layout/styles.js +1 -1
  24. package/dist/cjs/plugins/list/styles.js +3 -1
  25. package/dist/cjs/plugins/paste/handlers.js +40 -14
  26. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +1 -1
  27. package/dist/cjs/plugins/paste/pm-plugins/main.js +17 -0
  28. package/dist/cjs/plugins/quick-insert/search.js +3 -1
  29. package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
  30. package/dist/cjs/plugins/table/utils/paste.js +16 -3
  31. package/dist/cjs/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
  32. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +7 -0
  33. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
  34. package/dist/cjs/version-wrapper.js +1 -1
  35. package/dist/cjs/version.json +1 -1
  36. package/dist/es2019/i18n/cs.js +1 -23
  37. package/dist/es2019/i18n/da.js +1 -23
  38. package/dist/es2019/i18n/de.js +1 -23
  39. package/dist/es2019/i18n/es.js +1 -23
  40. package/dist/es2019/i18n/et.js +1 -23
  41. package/dist/es2019/i18n/fr.js +1 -23
  42. package/dist/es2019/i18n/hu.js +1 -23
  43. package/dist/es2019/i18n/is.js +1 -23
  44. package/dist/es2019/i18n/it.js +1 -23
  45. package/dist/es2019/i18n/ko.js +1 -23
  46. package/dist/es2019/i18n/nb.js +1 -9
  47. package/dist/es2019/i18n/nl.js +0 -3
  48. package/dist/es2019/i18n/pl.js +0 -1
  49. package/dist/es2019/i18n/pt_BR.js +1 -8
  50. package/dist/es2019/i18n/pt_PT.js +1 -11
  51. package/dist/es2019/i18n/ro.js +1 -23
  52. package/dist/es2019/i18n/sk.js +1 -23
  53. package/dist/es2019/i18n/sv.js +0 -1
  54. package/dist/es2019/plugins/card/styles.js +3 -0
  55. package/dist/es2019/plugins/date/actions.js +1 -1
  56. package/dist/es2019/plugins/insert-block/index.js +1 -1
  57. package/dist/es2019/plugins/layout/styles.js +2 -1
  58. package/dist/es2019/plugins/list/styles.js +8 -0
  59. package/dist/es2019/plugins/paste/handlers.js +39 -12
  60. package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
  61. package/dist/es2019/plugins/paste/pm-plugins/main.js +14 -0
  62. package/dist/es2019/plugins/quick-insert/search.js +1 -1
  63. package/dist/es2019/plugins/table/ui/common-styles.js +2 -1
  64. package/dist/es2019/plugins/table/utils/paste.js +16 -3
  65. package/dist/es2019/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
  66. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +7 -0
  67. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +5 -2
  68. package/dist/es2019/version-wrapper.js +1 -1
  69. package/dist/es2019/version.json +1 -1
  70. package/dist/esm/i18n/cs.js +1 -23
  71. package/dist/esm/i18n/da.js +1 -23
  72. package/dist/esm/i18n/de.js +1 -23
  73. package/dist/esm/i18n/es.js +1 -23
  74. package/dist/esm/i18n/et.js +1 -23
  75. package/dist/esm/i18n/fr.js +1 -23
  76. package/dist/esm/i18n/hu.js +1 -23
  77. package/dist/esm/i18n/is.js +1 -23
  78. package/dist/esm/i18n/it.js +1 -23
  79. package/dist/esm/i18n/ko.js +1 -23
  80. package/dist/esm/i18n/nb.js +1 -9
  81. package/dist/esm/i18n/nl.js +0 -3
  82. package/dist/esm/i18n/pl.js +0 -1
  83. package/dist/esm/i18n/pt_BR.js +1 -8
  84. package/dist/esm/i18n/pt_PT.js +1 -11
  85. package/dist/esm/i18n/ro.js +1 -23
  86. package/dist/esm/i18n/sk.js +1 -23
  87. package/dist/esm/i18n/sv.js +0 -1
  88. package/dist/esm/plugins/card/styles.js +1 -1
  89. package/dist/esm/plugins/date/actions.js +1 -1
  90. package/dist/esm/plugins/insert-block/index.js +1 -1
  91. package/dist/esm/plugins/layout/styles.js +1 -1
  92. package/dist/esm/plugins/list/styles.js +2 -1
  93. package/dist/esm/plugins/paste/handlers.js +40 -13
  94. package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
  95. package/dist/esm/plugins/paste/pm-plugins/main.js +16 -0
  96. package/dist/esm/plugins/quick-insert/search.js +3 -1
  97. package/dist/esm/plugins/table/ui/common-styles.js +1 -1
  98. package/dist/esm/plugins/table/utils/paste.js +16 -3
  99. package/dist/esm/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
  100. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +7 -0
  101. package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
  102. package/dist/esm/version-wrapper.js +1 -1
  103. package/dist/esm/version.json +1 -1
  104. package/dist/types/i18n/cs.d.ts +0 -22
  105. package/dist/types/i18n/da.d.ts +0 -22
  106. package/dist/types/i18n/de.d.ts +0 -22
  107. package/dist/types/i18n/es.d.ts +0 -22
  108. package/dist/types/i18n/et.d.ts +0 -22
  109. package/dist/types/i18n/fr.d.ts +0 -22
  110. package/dist/types/i18n/hu.d.ts +0 -22
  111. package/dist/types/i18n/is.d.ts +0 -22
  112. package/dist/types/i18n/it.d.ts +0 -22
  113. package/dist/types/i18n/ko.d.ts +0 -22
  114. package/dist/types/i18n/nb.d.ts +0 -8
  115. package/dist/types/i18n/nl.d.ts +0 -3
  116. package/dist/types/i18n/pl.d.ts +0 -1
  117. package/dist/types/i18n/pt_BR.d.ts +0 -7
  118. package/dist/types/i18n/pt_PT.d.ts +0 -10
  119. package/dist/types/i18n/ro.d.ts +0 -22
  120. package/dist/types/i18n/sk.d.ts +0 -22
  121. package/dist/types/i18n/sv.d.ts +0 -1
  122. package/dist/types/plugins/paste/handlers.d.ts +1 -1
  123. package/package.json +13 -13
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -313,7 +313,6 @@ export default {
313
313
  'fabric.theme.orange': 'Pomarańczowy',
314
314
  'fabric.theme.purple': 'Fioletowy',
315
315
  'fabric.theme.red': 'Czerwony',
316
- 'fabric.theme.teal': 'Teal',
317
316
  'fabric.theme.white': 'Biały',
318
317
  'fabric.theme.yellow': 'Żółty'
319
318
  };
@@ -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.orange': 'Orange',
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
  };
@@ -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
  };
@@ -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
  };
@@ -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',
@@ -8,4 +8,4 @@ import { N20 } from '@atlaskit/theme/colors';
8
8
  import { SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
9
9
  import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
10
10
  import { token } from '@atlaskit/tokens';
11
- export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: 2px;\n padding-right: 2px;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, token('color.border.danger', akEditorDeleteBorder), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, token('color.background.neutral.subtle.hovered', N20), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, token('color.border.danger', akEditorDeleteBorder), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), token('color.border.danger', akEditorDeleteBorder), token('color.background.danger', akEditorDeleteBackground), token('color.border.danger', akEditorDeleteBorder));
11
+ export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: 2px;\n padding-right: 2px;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, token('color.border.danger', akEditorDeleteBorder), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, token('color.background.neutral.subtle.hovered', N20), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, token('color.border.danger', akEditorDeleteBorder), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), token('color.border.danger', akEditorDeleteBorder), token('color.background.danger', akEditorDeleteBackground), token('color.border.danger', akEditorDeleteBorder));
@@ -151,7 +151,7 @@ export var insertDate = function insertDate(date, inputMethod, commitMethod) {
151
151
  timestamp: timestamp
152
152
  }).setMeta(pluginKey, {
153
153
  isNew: false
154
- }).scrollIntoView(); // Used to keep the date node selected on mobile after changing it
154
+ }).scrollIntoView();
155
155
 
156
156
  if (!enterPressed) {
157
157
  tr = tr.setSelection(NodeSelection.create(tr.doc, showDatePickerAt));
@@ -95,7 +95,7 @@ var insertBlockPlugin = function insertBlockPlugin() {
95
95
  isDisabled: disabled,
96
96
  isTypeAheadAllowed: isTypeAheadAllowed(editorView.state),
97
97
  editorView: editorView,
98
- tableSupported: options.allowTables,
98
+ tableSupported: !!editorView.state.schema.nodes.table,
99
99
  actionSupported: !!editorView.state.schema.nodes.taskItem,
100
100
  mentionsSupported: !!(mentionState && mentionState.mentionProvider),
101
101
  decisionSupported: !!editorView.state.schema.nodes.decisionItem,
@@ -12,4 +12,4 @@ import { TableCssClassName } from '../table/types';
12
12
  import { tableMarginFullWidthMode } from '../table/ui/consts';
13
13
  export var LAYOUT_SECTION_MARGIN = gridSize();
14
14
  export var LAYOUT_COLUMN_PADDING = gridSize() * 1.5;
15
- export var layoutStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", " [data-layout-section] {\n margin: ", "px -", "px 0;\n transition: border-color 0.3s ", ";\n cursor: pointer;\n\n /* Inner cursor located 26px from left */\n [data-layout-column] {\n flex: 1;\n min-width: 0;\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4353\n border: ", "px solid\n ", ";\n border-radius: 4px;\n padding: ", "px;\n box-sizing: border-box;\n\n > div {\n > *:first-child {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor.-right:first-of-type + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursord:first-of-type + span + * {\n margin-top: 0;\n }\n\n .rich-media-item {\n margin-top: 0;\n }\n\n > .mediaSingleView-content-wrap:first-of-type .rich-media-item {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor.-right:first-of-type\n + .mediaSingleView-content-wrap\n .rich-media-item {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-of-type\n + span\n + .mediaSingleView-content-wrap\n .rich-media-item {\n margin-top: 0;\n }\n\n /* Prevent first DecisionWrapper's margin-top: 8px from shifting decisions down\n and shrinking layout's node selectable area (leniency margin) */\n > [data-node-type='decisionList'] {\n li:first-of-type [data-decision-wrapper] {\n margin-top: 0;\n }\n }\n }\n\n /* Make the 'content' fill the entire height of the layout column to allow click\n handler of layout section nodeview to target only data-layout-column */\n [data-layout-content] {\n height: 100%;\n cursor: text;\n }\n }\n\n [data-layout-column] + [data-layout-column] {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n [data-layout-column] + [data-layout-column] {\n margin-left: 0;\n }\n }\n\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4441\n /* Shows the border when cursor is inside a layout */\n &.selected [data-layout-column],\n &:hover [data-layout-column] {\n border-color: ", ";\n }\n\n &.selected.danger > [data-layout-column] {\n background-color: ", ";\n border-color: ", ";\n }\n\n &.", ":not(.danger) {\n [data-layout-column] {\n ", "\n }\n }\n }\n }\n\n .fabric-editor--full-width-mode .ProseMirror {\n [data-layout-section] {\n .", " {\n margin: 0 ", "px;\n }\n }\n }\n"])), columnLayoutSharedStyle, gridSize() - 1, akLayoutGutterOffset, akEditorSwoopCubicBezier, akEditorSelectedBorderSize, token('color.border', N40A), LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN, gridMediumMaxWidth, token('color.border', N50A), token('color.background.danger', akEditorDeleteBackground), token('color.border.danger', akEditorDeleteBorder), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.Border, SelectionStyle.Blanket]), TableCssClassName.TABLE_CONTAINER, tableMarginFullWidthMode);
15
+ export var layoutStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", " [data-layout-section] {\n margin: ", "px -", "px 0;\n transition: border-color 0.3s ", ";\n cursor: pointer;\n\n /* Inner cursor located 26px from left */\n [data-layout-column] {\n flex: 1;\n min-width: 0;\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4353\n border: ", "px solid\n ", ";\n border-radius: 4px;\n padding: ", "px;\n box-sizing: border-box;\n\n > div {\n > :not(style):first-child,\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor.-right:first-of-type + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursord:first-of-type + span + * {\n margin-top: 0;\n }\n\n .rich-media-item {\n margin-top: 0;\n }\n\n > .mediaSingleView-content-wrap:first-of-type .rich-media-item {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor.-right:first-of-type\n + .mediaSingleView-content-wrap\n .rich-media-item {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-of-type\n + span\n + .mediaSingleView-content-wrap\n .rich-media-item {\n margin-top: 0;\n }\n\n /* Prevent first DecisionWrapper's margin-top: 8px from shifting decisions down\n and shrinking layout's node selectable area (leniency margin) */\n > [data-node-type='decisionList'] {\n li:first-of-type [data-decision-wrapper] {\n margin-top: 0;\n }\n }\n }\n\n /* Make the 'content' fill the entire height of the layout column to allow click\n handler of layout section nodeview to target only data-layout-column */\n [data-layout-content] {\n height: 100%;\n cursor: text;\n }\n }\n\n [data-layout-column] + [data-layout-column] {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n [data-layout-column] + [data-layout-column] {\n margin-left: 0;\n }\n }\n\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4441\n /* Shows the border when cursor is inside a layout */\n &.selected [data-layout-column],\n &:hover [data-layout-column] {\n border-color: ", ";\n }\n\n &.selected.danger > [data-layout-column] {\n background-color: ", ";\n border-color: ", ";\n }\n\n &.", ":not(.danger) {\n [data-layout-column] {\n ", "\n }\n }\n }\n }\n\n .fabric-editor--full-width-mode .ProseMirror {\n [data-layout-section] {\n .", " {\n margin: 0 ", "px;\n }\n }\n }\n"])), columnLayoutSharedStyle, gridSize() - 1, akLayoutGutterOffset, akEditorSwoopCubicBezier, akEditorSelectedBorderSize, token('color.border', N40A), LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN, gridMediumMaxWidth, token('color.border', N50A), token('color.background.danger', akEditorDeleteBackground), token('color.border.danger', akEditorDeleteBorder), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.Border, SelectionStyle.Blanket]), TableCssClassName.TABLE_CONTAINER, tableMarginFullWidthMode);
@@ -3,4 +3,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
3
3
  var _templateObject;
4
4
 
5
5
  import { css } from '@emotion/react';
6
- export var listsStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror li {\n position: relative;\n\n > p:not(:first-child) {\n margin: 4px 0 0 0;\n }\n }\n"])));
6
+ import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
7
+ export var listsStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror li {\n position: relative;\n\n > p:not(:first-child) {\n margin: 4px 0 0 0;\n }\n\n // In SSR the above rule will apply to all p tags because first-child would be a style tag.\n // The following rule resets the first p tag back to its original margin\n // defined in packages/editor/editor-common/src/styles/shared/paragraph.ts\n > style:first-child + p {\n margin-top: ", ";\n }\n }\n"])), blockNodesVerticalMargin);
@@ -46,25 +46,39 @@ export function handleMention(slice, schema) {
46
46
  return node;
47
47
  });
48
48
  }
49
- export function handlePasteIntoTaskAndDecision(slice) {
49
+ export function handlePasteIntoTaskOrDecisionOrPanel(slice) {
50
50
  return function (state, dispatch) {
51
+ var _slice$content$firstC, _slice$content$firstC2, _transformedSlice$con;
52
+
51
53
  var schema = state.schema,
52
54
  selection = state.tr.selection;
53
55
  var codeMark = schema.marks.code,
54
56
  _schema$nodes = schema.nodes,
55
57
  decisionItem = _schema$nodes.decisionItem,
56
- decisionList = _schema$nodes.decisionList,
57
58
  emoji = _schema$nodes.emoji,
58
59
  hardBreak = _schema$nodes.hardBreak,
59
60
  mention = _schema$nodes.mention,
60
61
  paragraph = _schema$nodes.paragraph,
61
- taskList = _schema$nodes.taskList,
62
62
  taskItem = _schema$nodes.taskItem,
63
- text = _schema$nodes.text;
64
- var isDecisionOrTaskNodeSelection = state.selection instanceof NodeSelection && ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(state.selection.node.type.name);
65
- var hasParentDecisionOrTaskItem = hasParentNodeOfType([decisionItem, taskItem])(state.selection);
66
-
67
- if (!decisionItem || !decisionList || !taskList || !taskItem || !hasParentDecisionOrTaskItem && !isDecisionOrTaskNodeSelection) {
63
+ text = _schema$nodes.text,
64
+ panel = _schema$nodes.panel,
65
+ bulletList = _schema$nodes.bulletList,
66
+ orderedList = _schema$nodes.orderedList,
67
+ expand = _schema$nodes.expand,
68
+ heading = _schema$nodes.heading;
69
+ var selectionIsValidNode = state.selection instanceof NodeSelection && ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(state.selection.node.type.name);
70
+ var selectionHasValidParentNode = hasParentNodeOfType([decisionItem, taskItem, panel])(state.selection);
71
+ var selectionIsPanel = hasParentNodeOfType([panel])(state.selection); // Some types of content should be handled by the default handler, not this function.
72
+
73
+ var sliceFirstNodeType = (_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type;
74
+ var sliceIsInvalid = sliceFirstNodeType === bulletList || sliceFirstNodeType === orderedList || sliceFirstNodeType === expand || sliceFirstNodeType === heading; // If the selection is a panel,
75
+ // and the slice's first node is a paragraph
76
+ // and it is not from a depth that would indicate it being from inside from another node (e.g. text from a decision)
77
+ // then we can rely on the default behaviour.
78
+
79
+ var sliceIsAPanelReceivingLowDepthText = selectionIsPanel && ((_slice$content$firstC2 = slice.content.firstChild) === null || _slice$content$firstC2 === void 0 ? void 0 : _slice$content$firstC2.type) === paragraph && slice.openEnd < 2;
80
+
81
+ if (sliceIsInvalid || sliceIsAPanelReceivingLowDepthText || !selectionIsValidNode && !selectionHasValidParentNode) {
68
82
  return false;
69
83
  }
70
84
 
@@ -79,11 +93,15 @@ export function handlePasteIntoTaskAndDecision(slice) {
79
93
 
80
94
  var transformedSlice = compose.apply(null, filters)(slice);
81
95
  var tr = closeHistory(state.tr);
82
- var transformedSliceIsValidNode = transformedSlice.content.firstChild.type.inlineContent || ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(transformedSlice.content.firstChild.type.name);
96
+ var 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,
97
+ // and the slice is not a whole node (i.e. openStart is 1 and openEnd is 0)
98
+ // or the slice's first node is a paragraph,
99
+ // then we can replace the selection with our slice.
83
100
 
84
- if (transformedSliceIsValidNode || isDecisionOrTaskNodeSelection) {
101
+ 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) {
85
102
  tr.replaceSelection(transformedSlice).scrollIntoView();
86
103
  } else {
104
+ // This maintains both the selection (destination) and the slice (paste content).
87
105
  safeInsert(transformedSlice.content)(tr).scrollIntoView();
88
106
  }
89
107
 
@@ -406,13 +424,22 @@ export function handleMediaSingle(inputMethod) {
406
424
  };
407
425
  };
408
426
  }
427
+
428
+ var checkExpand = function checkExpand(slice) {
429
+ var hasExpand = false;
430
+ slice.content.forEach(function (node) {
431
+ if (node.type.name === 'expand') {
432
+ hasExpand = true;
433
+ }
434
+ });
435
+ return hasExpand;
436
+ };
437
+
409
438
  export function handleExpandPasteInTable(slice) {
410
439
  return function (state, dispatch) {
411
- var _slice$content$firstC;
412
-
413
440
  // Do not handle expand if it's not being pasted into a table
414
441
  // OR if it's nested within another node when being pasted into a table
415
- if (!insideTable(state) || ((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type.name) !== 'expand') {
442
+ if (!insideTable(state) || !checkExpand(slice)) {
416
443
  return false;
417
444
  }
418
445
 
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
7
7
 
8
8
  import { ACTION, INPUT_METHOD, EVENT_TYPE, ACTION_SUBJECT, ACTION_SUBJECT_ID, addAnalytics, PasteTypes, PasteContents, withAnalytics } from '../../analytics';
9
9
  import { getPasteSource } from '../util';
10
- import { handlePasteAsPlainText, handlePasteIntoTaskAndDecision, handleCodeBlock, handleMediaSingle, handlePastePreservingMarks, handleMarkdown, handleRichText, handleExpandPasteInTable, handleSelectedTable, handlePasteLinkOnSelectedText, handlePasteIntoCaption } from '../handlers';
10
+ import { handlePasteAsPlainText, handlePasteIntoTaskOrDecisionOrPanel, handleCodeBlock, handleMediaSingle, handlePastePreservingMarks, handleMarkdown, handleRichText, handleExpandPasteInTable, handleSelectedTable, handlePasteLinkOnSelectedText, handlePasteIntoCaption } from '../handlers';
11
11
  import { pipe } from '../../../utils';
12
12
  import { findParentNode } from 'prosemirror-utils';
13
13
  import { mapSlice } from '../../../utils/slice';
@@ -218,7 +218,7 @@ export var handlePasteAsPlainTextWithAnalytics = function handlePasteAsPlainText
218
218
  }))(slice, event);
219
219
  };
220
220
  export var handlePasteIntoTaskAndDecisionWithAnalytics = function handlePasteIntoTaskAndDecisionWithAnalytics(view, event, slice, type) {
221
- return pipe(handlePasteIntoTaskAndDecision, pasteCommandWithAnalytics(view, event, slice, {
221
+ return pipe(handlePasteIntoTaskOrDecisionOrPanel, pasteCommandWithAnalytics(view, event, slice, {
222
222
  type: type
223
223
  }))(slice);
224
224
  };
@@ -318,6 +318,22 @@ export function createPlugin(schema, dispatchAnalyticsEvent, plainTextPasteLinki
318
318
 
319
319
  if (handlePastePreservingMarksWithAnalytics(view, event, slice, PasteTypes.richText)(state, dispatch)) {
320
320
  return true;
321
+ } // Check that we are pasting in a location that does not accept
322
+ // breakout marks, if so we strip the mark and paste. Note that
323
+ // breakout marks are only valid in the root document.
324
+
325
+
326
+ if (selectionParentType !== state.schema.nodes.doc) {
327
+ var sliceCopy = Slice.fromJSON(state.schema, slice.toJSON() || {});
328
+ sliceCopy.content.descendants(function (node) {
329
+ node.marks = node.marks.filter(function (mark) {
330
+ return mark.type.name !== 'breakout';
331
+ }); // as breakout marks should only be on top level nodes,
332
+ // we don't traverse the entire document
333
+
334
+ return false;
335
+ });
336
+ slice = sliceCopy;
321
337
  }
322
338
 
323
339
  if (handleExpandWithAnalytics(view, event, slice)(state, dispatch)) {