@atlaskit/editor-core 189.1.12 → 189.1.15

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 (260) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/i18n/cs.js +0 -1
  3. package/dist/cjs/i18n/da.js +0 -1
  4. package/dist/cjs/i18n/de.js +0 -1
  5. package/dist/cjs/i18n/en.js +0 -1
  6. package/dist/cjs/i18n/en_GB.js +0 -1
  7. package/dist/cjs/i18n/en_ZZ.js +0 -1
  8. package/dist/cjs/i18n/es.js +0 -1
  9. package/dist/cjs/i18n/fi.js +0 -1
  10. package/dist/cjs/i18n/fr.js +0 -1
  11. package/dist/cjs/i18n/hu.js +0 -1
  12. package/dist/cjs/i18n/it.js +0 -1
  13. package/dist/cjs/i18n/ja.js +0 -1
  14. package/dist/cjs/i18n/ko.js +0 -1
  15. package/dist/cjs/i18n/nb.js +0 -1
  16. package/dist/cjs/i18n/nl.js +0 -1
  17. package/dist/cjs/i18n/pl.js +0 -1
  18. package/dist/cjs/i18n/pt_BR.js +0 -1
  19. package/dist/cjs/i18n/ru.js +0 -1
  20. package/dist/cjs/i18n/sv.js +0 -1
  21. package/dist/cjs/i18n/th.js +0 -1
  22. package/dist/cjs/i18n/tr.js +0 -1
  23. package/dist/cjs/i18n/uk.js +0 -1
  24. package/dist/cjs/i18n/vi.js +0 -1
  25. package/dist/cjs/i18n/zh.js +0 -1
  26. package/dist/cjs/i18n/zh_TW.js +0 -1
  27. package/dist/cjs/plugins/index.js +0 -7
  28. package/dist/cjs/plugins/insert-block/index.js +6 -10
  29. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -38
  30. package/dist/cjs/plugins/panel/actions.js +11 -11
  31. package/dist/cjs/plugins/panel/index.js +4 -4
  32. package/dist/cjs/plugins/panel/nodeviews/panel.js +5 -5
  33. package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +7 -7
  34. package/dist/cjs/plugins/panel/pm-plugins/main.js +2 -2
  35. package/dist/cjs/plugins/panel/toolbar.js +16 -16
  36. package/dist/cjs/plugins/panel/utils.js +1 -1
  37. package/dist/cjs/presets/universal.js +2 -1
  38. package/dist/cjs/ui/ContentStyles/index.js +7 -7
  39. package/dist/cjs/version-wrapper.js +1 -1
  40. package/dist/es2019/i18n/cs.js +0 -1
  41. package/dist/es2019/i18n/da.js +0 -1
  42. package/dist/es2019/i18n/de.js +0 -1
  43. package/dist/es2019/i18n/en.js +0 -1
  44. package/dist/es2019/i18n/en_GB.js +0 -1
  45. package/dist/es2019/i18n/en_ZZ.js +0 -1
  46. package/dist/es2019/i18n/es.js +0 -1
  47. package/dist/es2019/i18n/fi.js +0 -1
  48. package/dist/es2019/i18n/fr.js +0 -1
  49. package/dist/es2019/i18n/hu.js +0 -1
  50. package/dist/es2019/i18n/it.js +0 -1
  51. package/dist/es2019/i18n/ja.js +0 -1
  52. package/dist/es2019/i18n/ko.js +0 -1
  53. package/dist/es2019/i18n/nb.js +0 -1
  54. package/dist/es2019/i18n/nl.js +0 -1
  55. package/dist/es2019/i18n/pl.js +0 -1
  56. package/dist/es2019/i18n/pt_BR.js +0 -1
  57. package/dist/es2019/i18n/ru.js +0 -1
  58. package/dist/es2019/i18n/sv.js +0 -1
  59. package/dist/es2019/i18n/th.js +0 -1
  60. package/dist/es2019/i18n/tr.js +0 -1
  61. package/dist/es2019/i18n/uk.js +0 -1
  62. package/dist/es2019/i18n/vi.js +0 -1
  63. package/dist/es2019/i18n/zh.js +0 -1
  64. package/dist/es2019/i18n/zh_TW.js +0 -1
  65. package/dist/es2019/plugins/index.js +0 -1
  66. package/dist/es2019/plugins/insert-block/index.js +5 -9
  67. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -3
  68. package/dist/es2019/plugins/panel/actions.js +5 -5
  69. package/dist/es2019/plugins/panel/index.js +6 -6
  70. package/dist/es2019/plugins/panel/nodeviews/panel.js +5 -5
  71. package/dist/es2019/plugins/panel/pm-plugins/keymaps.js +2 -2
  72. package/dist/es2019/plugins/panel/pm-plugins/main.js +2 -2
  73. package/dist/es2019/plugins/panel/toolbar.js +12 -13
  74. package/dist/es2019/plugins/panel/utils.js +1 -1
  75. package/dist/es2019/presets/universal.js +2 -1
  76. package/dist/es2019/ui/ContentStyles/index.js +2 -2
  77. package/dist/es2019/version-wrapper.js +1 -1
  78. package/dist/esm/i18n/cs.js +0 -1
  79. package/dist/esm/i18n/da.js +0 -1
  80. package/dist/esm/i18n/de.js +0 -1
  81. package/dist/esm/i18n/en.js +0 -1
  82. package/dist/esm/i18n/en_GB.js +0 -1
  83. package/dist/esm/i18n/en_ZZ.js +0 -1
  84. package/dist/esm/i18n/es.js +0 -1
  85. package/dist/esm/i18n/fi.js +0 -1
  86. package/dist/esm/i18n/fr.js +0 -1
  87. package/dist/esm/i18n/hu.js +0 -1
  88. package/dist/esm/i18n/it.js +0 -1
  89. package/dist/esm/i18n/ja.js +0 -1
  90. package/dist/esm/i18n/ko.js +0 -1
  91. package/dist/esm/i18n/nb.js +0 -1
  92. package/dist/esm/i18n/nl.js +0 -1
  93. package/dist/esm/i18n/pl.js +0 -1
  94. package/dist/esm/i18n/pt_BR.js +0 -1
  95. package/dist/esm/i18n/ru.js +0 -1
  96. package/dist/esm/i18n/sv.js +0 -1
  97. package/dist/esm/i18n/th.js +0 -1
  98. package/dist/esm/i18n/tr.js +0 -1
  99. package/dist/esm/i18n/uk.js +0 -1
  100. package/dist/esm/i18n/vi.js +0 -1
  101. package/dist/esm/i18n/zh.js +0 -1
  102. package/dist/esm/i18n/zh_TW.js +0 -1
  103. package/dist/esm/plugins/index.js +0 -1
  104. package/dist/esm/plugins/insert-block/index.js +5 -9
  105. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -38
  106. package/dist/esm/plugins/panel/actions.js +5 -5
  107. package/dist/esm/plugins/panel/index.js +6 -6
  108. package/dist/esm/plugins/panel/nodeviews/panel.js +5 -5
  109. package/dist/esm/plugins/panel/pm-plugins/keymaps.js +2 -2
  110. package/dist/esm/plugins/panel/pm-plugins/main.js +2 -2
  111. package/dist/esm/plugins/panel/toolbar.js +12 -13
  112. package/dist/esm/plugins/panel/utils.js +1 -1
  113. package/dist/esm/presets/universal.js +2 -1
  114. package/dist/esm/ui/ContentStyles/index.js +2 -2
  115. package/dist/esm/version-wrapper.js +1 -1
  116. package/dist/types/i18n/cs.d.ts +0 -1
  117. package/dist/types/i18n/da.d.ts +0 -1
  118. package/dist/types/i18n/de.d.ts +0 -1
  119. package/dist/types/i18n/en.d.ts +0 -1
  120. package/dist/types/i18n/en_GB.d.ts +0 -1
  121. package/dist/types/i18n/en_ZZ.d.ts +0 -1
  122. package/dist/types/i18n/es.d.ts +0 -1
  123. package/dist/types/i18n/fi.d.ts +0 -1
  124. package/dist/types/i18n/fr.d.ts +0 -1
  125. package/dist/types/i18n/hu.d.ts +0 -1
  126. package/dist/types/i18n/it.d.ts +0 -1
  127. package/dist/types/i18n/ja.d.ts +0 -1
  128. package/dist/types/i18n/ko.d.ts +0 -1
  129. package/dist/types/i18n/nb.d.ts +0 -1
  130. package/dist/types/i18n/nl.d.ts +0 -1
  131. package/dist/types/i18n/pl.d.ts +0 -1
  132. package/dist/types/i18n/pt_BR.d.ts +0 -1
  133. package/dist/types/i18n/ru.d.ts +0 -1
  134. package/dist/types/i18n/sv.d.ts +0 -1
  135. package/dist/types/i18n/th.d.ts +0 -1
  136. package/dist/types/i18n/tr.d.ts +0 -1
  137. package/dist/types/i18n/uk.d.ts +0 -1
  138. package/dist/types/i18n/vi.d.ts +0 -1
  139. package/dist/types/i18n/zh.d.ts +0 -1
  140. package/dist/types/i18n/zh_TW.d.ts +0 -1
  141. package/dist/types/plugins/index.d.ts +0 -1
  142. package/dist/types/plugins/insert-block/types.d.ts +3 -1
  143. package/dist/types/plugins/panel/actions.d.ts +2 -2
  144. package/dist/types/plugins/panel/index.d.ts +3 -3
  145. package/dist/types/plugins/panel/nodeviews/panel.d.ts +3 -3
  146. package/dist/types/plugins/panel/pm-plugins/main.d.ts +2 -2
  147. package/dist/types/plugins/panel/toolbar.d.ts +6 -7
  148. package/dist/types/plugins/panel/types.d.ts +1 -1
  149. package/dist/types/plugins/panel/utils.d.ts +1 -1
  150. package/dist/types/types/editor-props.d.ts +1 -1
  151. package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
  152. package/dist/types/{plugins/panel/styles.d.ts → ui/ContentStyles/panel.d.ts} +1 -1
  153. package/dist/types-ts4.5/i18n/cs.d.ts +0 -1
  154. package/dist/types-ts4.5/i18n/da.d.ts +0 -1
  155. package/dist/types-ts4.5/i18n/de.d.ts +0 -1
  156. package/dist/types-ts4.5/i18n/en.d.ts +0 -1
  157. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -1
  158. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -1
  159. package/dist/types-ts4.5/i18n/es.d.ts +0 -1
  160. package/dist/types-ts4.5/i18n/fi.d.ts +0 -1
  161. package/dist/types-ts4.5/i18n/fr.d.ts +0 -1
  162. package/dist/types-ts4.5/i18n/hu.d.ts +0 -1
  163. package/dist/types-ts4.5/i18n/it.d.ts +0 -1
  164. package/dist/types-ts4.5/i18n/ja.d.ts +0 -1
  165. package/dist/types-ts4.5/i18n/ko.d.ts +0 -1
  166. package/dist/types-ts4.5/i18n/nb.d.ts +0 -1
  167. package/dist/types-ts4.5/i18n/nl.d.ts +0 -1
  168. package/dist/types-ts4.5/i18n/pl.d.ts +0 -1
  169. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -1
  170. package/dist/types-ts4.5/i18n/ru.d.ts +0 -1
  171. package/dist/types-ts4.5/i18n/sv.d.ts +0 -1
  172. package/dist/types-ts4.5/i18n/th.d.ts +0 -1
  173. package/dist/types-ts4.5/i18n/tr.d.ts +0 -1
  174. package/dist/types-ts4.5/i18n/uk.d.ts +0 -1
  175. package/dist/types-ts4.5/i18n/vi.d.ts +0 -1
  176. package/dist/types-ts4.5/i18n/zh.d.ts +0 -1
  177. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -1
  178. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  179. package/dist/types-ts4.5/plugins/insert-block/types.d.ts +3 -1
  180. package/dist/types-ts4.5/plugins/panel/actions.d.ts +2 -2
  181. package/dist/types-ts4.5/plugins/panel/index.d.ts +3 -3
  182. package/dist/types-ts4.5/plugins/panel/nodeviews/panel.d.ts +3 -3
  183. package/dist/types-ts4.5/plugins/panel/pm-plugins/main.d.ts +2 -2
  184. package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +6 -7
  185. package/dist/types-ts4.5/plugins/panel/types.d.ts +1 -1
  186. package/dist/types-ts4.5/plugins/panel/utils.d.ts +1 -1
  187. package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
  188. package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
  189. package/dist/types-ts4.5/{plugins/panel/styles.d.ts → ui/ContentStyles/panel.d.ts} +1 -1
  190. package/package.json +4 -3
  191. package/report.api.md +1 -6
  192. package/tmp/api-report-tmp.d.ts +1 -6
  193. package/dist/cjs/plugins/placeholder-text/actions.js +0 -35
  194. package/dist/cjs/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -107
  195. package/dist/cjs/plugins/placeholder-text/index.js +0 -20
  196. package/dist/cjs/plugins/placeholder-text/placeholder-text-nodeview.js +0 -89
  197. package/dist/cjs/plugins/placeholder-text/plugin-key.js +0 -8
  198. package/dist/cjs/plugins/placeholder-text/plugin.js +0 -267
  199. package/dist/cjs/plugins/placeholder-text/selection-utils.js +0 -14
  200. package/dist/cjs/plugins/placeholder-text/styles.js +0 -13
  201. package/dist/cjs/plugins/placeholder-text/types.js +0 -5
  202. package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -86
  203. package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -15
  204. package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -54
  205. package/dist/cjs/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -89
  206. package/dist/es2019/plugins/placeholder-text/actions.js +0 -27
  207. package/dist/es2019/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -77
  208. package/dist/es2019/plugins/placeholder-text/index.js +0 -2
  209. package/dist/es2019/plugins/placeholder-text/placeholder-text-nodeview.js +0 -77
  210. package/dist/es2019/plugins/placeholder-text/plugin-key.js +0 -2
  211. package/dist/es2019/plugins/placeholder-text/plugin.js +0 -247
  212. package/dist/es2019/plugins/placeholder-text/selection-utils.js +0 -8
  213. package/dist/es2019/plugins/placeholder-text/styles.js +0 -52
  214. package/dist/es2019/plugins/placeholder-text/types.js +0 -1
  215. package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -45
  216. package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -15
  217. package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -41
  218. package/dist/es2019/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -60
  219. package/dist/esm/plugins/placeholder-text/actions.js +0 -29
  220. package/dist/esm/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -100
  221. package/dist/esm/plugins/placeholder-text/index.js +0 -2
  222. package/dist/esm/plugins/placeholder-text/placeholder-text-nodeview.js +0 -82
  223. package/dist/esm/plugins/placeholder-text/plugin-key.js +0 -2
  224. package/dist/esm/plugins/placeholder-text/plugin.js +0 -259
  225. package/dist/esm/plugins/placeholder-text/selection-utils.js +0 -8
  226. package/dist/esm/plugins/placeholder-text/styles.js +0 -6
  227. package/dist/esm/plugins/placeholder-text/types.js +0 -1
  228. package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -63
  229. package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -8
  230. package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -48
  231. package/dist/esm/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -79
  232. package/dist/types/plugins/placeholder-text/actions.d.ts +0 -4
  233. package/dist/types/plugins/placeholder-text/fake-text-cursor/cursor.d.ts +0 -30
  234. package/dist/types/plugins/placeholder-text/index.d.ts +0 -3
  235. package/dist/types/plugins/placeholder-text/placeholder-text-nodeview.d.ts +0 -17
  236. package/dist/types/plugins/placeholder-text/plugin-key.d.ts +0 -3
  237. package/dist/types/plugins/placeholder-text/plugin.d.ts +0 -7
  238. package/dist/types/plugins/placeholder-text/selection-utils.d.ts +0 -2
  239. package/dist/types/plugins/placeholder-text/styles.d.ts +0 -1
  240. package/dist/types/plugins/placeholder-text/types.d.ts +0 -18
  241. package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/index.d.ts +0 -28
  242. package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/styles.d.ts +0 -1
  243. package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/utils.d.ts +0 -13
  244. package/dist/types/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +0 -25
  245. package/dist/types-ts4.5/plugins/placeholder-text/actions.d.ts +0 -4
  246. package/dist/types-ts4.5/plugins/placeholder-text/fake-text-cursor/cursor.d.ts +0 -30
  247. package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +0 -3
  248. package/dist/types-ts4.5/plugins/placeholder-text/placeholder-text-nodeview.d.ts +0 -17
  249. package/dist/types-ts4.5/plugins/placeholder-text/plugin-key.d.ts +0 -3
  250. package/dist/types-ts4.5/plugins/placeholder-text/plugin.d.ts +0 -7
  251. package/dist/types-ts4.5/plugins/placeholder-text/selection-utils.d.ts +0 -2
  252. package/dist/types-ts4.5/plugins/placeholder-text/styles.d.ts +0 -1
  253. package/dist/types-ts4.5/plugins/placeholder-text/types.d.ts +0 -18
  254. package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/index.d.ts +0 -28
  255. package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/styles.d.ts +0 -1
  256. package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/utils.d.ts +0 -13
  257. package/dist/types-ts4.5/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +0 -25
  258. /package/dist/cjs/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
  259. /package/dist/es2019/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
  260. /package/dist/esm/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 189.1.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [#42584](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42584) [`2191409c070`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2191409c070) - Decouple panel plugin from editor-core.
8
+
9
+ ## 189.1.13
10
+
11
+ ### Patch Changes
12
+
13
+ - [#42391](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42391) [`f46e9fd8b00`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f46e9fd8b00) - [ux] ED-20479: Extracts placeholder-test editor plugin from editor-core
14
+ - Updated dependencies
15
+
3
16
  ## 189.1.12
4
17
 
5
18
  ### Patch Changes
@@ -71,7 +71,6 @@ var _default = exports.default = {
71
71
  'fabric.editor.single': 'Jeden sloupec',
72
72
  'fabric.editor.success': 'Úspěch',
73
73
  'fabric.editor.taskPlaceholder': 'Napište svou akci a použitím „@“ ji někomu přidělte.',
74
- 'fabric.editor.textColor': 'Barva textu',
75
74
  'fabric.editor.threeColumns': 'Tři sloupce',
76
75
  'fabric.editor.threeColumnsWithSidebars': 'Tři sloupce s postranními panely',
77
76
  'fabric.editor.twoColumns': 'Dva sloupce',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Enkelt kolonne',
71
71
  'fabric.editor.success': 'Succes',
72
72
  'fabric.editor.taskPlaceholder': 'Indtast din handling, og brug "@" for at tildele til nogen.',
73
- 'fabric.editor.textColor': 'Tekstfarve',
74
73
  'fabric.editor.threeColumns': 'Tre kolonner',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Tre kolonner med sidebjælker',
76
75
  'fabric.editor.twoColumns': 'To kolonner',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Einzelne Spalte',
71
71
  'fabric.editor.success': 'Erfolgreich',
72
72
  'fabric.editor.taskPlaceholder': 'Geben Sie Ihre Aktion ein und weisen Sie sie mithilfe von „@” jemandem zu.',
73
- 'fabric.editor.textColor': 'Textfarbe',
74
73
  'fabric.editor.threeColumns': 'Drei Spalten',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Drei Spalten mit Seitenleisten',
76
75
  'fabric.editor.twoColumns': 'Zwei Spalten',
@@ -72,7 +72,6 @@ var _default = exports.default = {
72
72
  'fabric.editor.single': 'Single column',
73
73
  'fabric.editor.success': 'Success',
74
74
  'fabric.editor.taskPlaceholder': "Type your action, use '@' to assign to someone.",
75
- 'fabric.editor.textColor': 'Text color',
76
75
  'fabric.editor.threeColumns': 'Three columns',
77
76
  'fabric.editor.threeColumnsWithSidebars': 'Three columns with sidebars',
78
77
  'fabric.editor.twoColumns': 'Two columns',
@@ -72,7 +72,6 @@ var _default = exports.default = {
72
72
  'fabric.editor.single': 'Single column',
73
73
  'fabric.editor.success': 'Success',
74
74
  'fabric.editor.taskPlaceholder': "Type your action, use '@' to assign to someone.",
75
- 'fabric.editor.textColor': 'Text colour',
76
75
  'fabric.editor.threeColumns': 'Three columns',
77
76
  'fabric.editor.threeColumnsWithSidebars': 'Three columns with sidebars',
78
77
  'fabric.editor.twoColumns': 'Two columns',
@@ -72,7 +72,6 @@ var _default = exports.default = {
72
72
  'fabric.editor.single': '⁣⁢Single column⁡‍⁠‌؜⁡‍‌‍⁣⁤',
73
73
  'fabric.editor.success': '⁣⁢Success؜⁠؜‍‍‌⁡؜‌‍⁠؜⁣⁤',
74
74
  'fabric.editor.taskPlaceholder': "⁣⁢Type your action, use '@' to assign to someone.‌⁠⁠⁠⁠⁠‍‍⁡⁡‌⁣⁤",
75
- 'fabric.editor.textColor': '⁣⁢Text color‌؜؜⁡⁡‌⁡‌؜‍‌⁣⁤',
76
75
  'fabric.editor.threeColumns': '⁣⁢Three columns؜‍‌‍‌‌‌‌⁠؜⁣⁤',
77
76
  'fabric.editor.threeColumnsWithSidebars': '⁣⁢Three columns with sidebars؜‌⁠⁠‍⁡؜‍؜؜⁣⁤',
78
77
  'fabric.editor.twoColumns': '⁣⁢Two columns⁡‌‍؜‌‍؜‍‍‍⁡⁣⁤',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Una sola columna',
71
71
  'fabric.editor.success': 'Correcto',
72
72
  'fabric.editor.taskPlaceholder': 'Escribe la acción y usa "@" para asignársela a alguien.',
73
- 'fabric.editor.textColor': 'Color del texto',
74
73
  'fabric.editor.threeColumns': 'Tres columnas',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Tres columnas con barras laterales',
76
75
  'fabric.editor.twoColumns': 'Dos columnas',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Yksittäinen sarake',
71
71
  'fabric.editor.success': 'Onnistunut',
72
72
  'fabric.editor.taskPlaceholder': "Kirjoita toimintasi, käytä '@'-merkkiä määrätäksesi sen jollekin henkilölle.",
73
- 'fabric.editor.textColor': 'Tekstin väri',
74
73
  'fabric.editor.threeColumns': 'Kolme saraketta',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Kolme saraketta sivupalkkien kanssa',
76
75
  'fabric.editor.twoColumns': 'Kaksi saraketta',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Colonne unique',
71
71
  'fabric.editor.success': 'Opération réussie',
72
72
  'fabric.editor.taskPlaceholder': "Saisissez votre action, utilisez « @ » pour l'assigner à quelqu'un.",
73
- 'fabric.editor.textColor': 'Couleur du texte',
74
73
  'fabric.editor.threeColumns': 'Trois colonnes',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Trois colonnes avec barres latérales',
76
75
  'fabric.editor.twoColumns': 'Deux colonnes',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Egy oszlop',
71
71
  'fabric.editor.success': 'Sikerült',
72
72
  'fabric.editor.taskPlaceholder': 'Írja be a műveletet. Az „@” jellel hozzárendelheti valakihez.',
73
- 'fabric.editor.textColor': 'Szövegszín',
74
73
  'fabric.editor.threeColumns': 'Három oszlop',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Három oszlop oldalsávval',
76
75
  'fabric.editor.twoColumns': 'Két oszlop',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Colonna singola',
71
71
  'fabric.editor.success': 'Operazione riuscita',
72
72
  'fabric.editor.taskPlaceholder': 'Digita la tua azione e usa “@” per assegnarla a qualcuno.',
73
- 'fabric.editor.textColor': 'Colore del testo',
74
73
  'fabric.editor.threeColumns': 'Tre colonne',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Tre colonne con barre laterali',
76
75
  'fabric.editor.twoColumns': 'Due colonne',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': '単一列',
71
71
  'fabric.editor.success': '成功',
72
72
  'fabric.editor.taskPlaceholder': 'アクションを入力し、「@」を使用して担当者を割り当てます。',
73
- 'fabric.editor.textColor': 'テキストの色',
74
73
  'fabric.editor.threeColumns': '3 列',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'サイドバーを使用した 3 列レイアウト',
76
75
  'fabric.editor.twoColumns': '2 列',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': '단일 열',
71
71
  'fabric.editor.success': '성공',
72
72
  'fabric.editor.taskPlaceholder': "작업을 입력하고 '@'를 사용하여 할당합니다.",
73
- 'fabric.editor.textColor': '텍스트 색상',
74
73
  'fabric.editor.threeColumns': '세 개 열',
75
74
  'fabric.editor.threeColumnsWithSidebars': '사이드바가 있는 세 개 열',
76
75
  'fabric.editor.twoColumns': '두 개 열',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Enkeltkolonne',
71
71
  'fabric.editor.success': 'Vellykket',
72
72
  'fabric.editor.taskPlaceholder': 'Skriv inn handlingen. Bruk @ for å tilordne den til noen.',
73
- 'fabric.editor.textColor': 'Tekstfarge',
74
73
  'fabric.editor.threeColumns': 'Tre kolonner',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Tre kolonner med sidelinjer',
76
75
  'fabric.editor.twoColumns': 'To kolonner',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Eén kolom',
71
71
  'fabric.editor.success': 'Gelukt',
72
72
  'fabric.editor.taskPlaceholder': "Geef je actie in en gebruik een '@' om de actie aan iemand toe te wijzen.",
73
- 'fabric.editor.textColor': 'Tekstkleur',
74
73
  'fabric.editor.threeColumns': 'Drie kolommen',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Drie kolommen met zijbalken',
76
75
  'fabric.editor.twoColumns': 'Twee kolommen',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Pojedyncza kolumna',
71
71
  'fabric.editor.success': 'Sukces',
72
72
  'fabric.editor.taskPlaceholder': 'Wprowadź swoją akcję, użyj „@”, aby przypisać ją do użytkownika.',
73
- 'fabric.editor.textColor': 'Kolor tekstu',
74
73
  'fabric.editor.threeColumns': 'Trzy kolumny',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Trzy kolumny z paskami bocznymi',
76
75
  'fabric.editor.twoColumns': 'Dwie kolumny',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Coluna única',
71
71
  'fabric.editor.success': 'Sucesso',
72
72
  'fabric.editor.taskPlaceholder': 'Digite sua ação e use "@" para atribuí-la a alguém.',
73
- 'fabric.editor.textColor': 'Cor do texto',
74
73
  'fabric.editor.threeColumns': 'Três colunas',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Três colunas com barras laterais',
76
75
  'fabric.editor.twoColumns': 'Duas colunas',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Один столбец',
71
71
  'fabric.editor.success': 'Готово',
72
72
  'fabric.editor.taskPlaceholder': 'Укажите задание и назначьте исполнителя с помощью значка «@».',
73
- 'fabric.editor.textColor': 'Цвет текста',
74
73
  'fabric.editor.threeColumns': 'Три столбца',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Три столбца с боковыми панелями',
76
75
  'fabric.editor.twoColumns': 'Два столбца',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Enkel kolumn',
71
71
  'fabric.editor.success': 'Klart!',
72
72
  'fabric.editor.taskPlaceholder': 'Skriv din åtgärd och använd @ för att tilldela någon.',
73
- 'fabric.editor.textColor': 'Textfärg',
74
73
  'fabric.editor.threeColumns': 'Tre kolumner',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Tre kolumner med sidopaneler',
76
75
  'fabric.editor.twoColumns': 'Två kolumner',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'คอลัมน์เดียว',
71
71
  'fabric.editor.success': 'สำเร็จ',
72
72
  'fabric.editor.taskPlaceholder': "พิมพ์ข้อความของคุณ ใช้ '@' เพื่อมอบหมายให้ผู้ใช้ที่คุณเลือก",
73
- 'fabric.editor.textColor': 'สีข้อความ',
74
73
  'fabric.editor.threeColumns': 'สามคอลัมน์',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'สามคอลัมน์พร้อมแถบด้านข้าง',
76
75
  'fabric.editor.twoColumns': 'สองคอลัมน์',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Tek sütun',
71
71
  'fabric.editor.success': 'Başarılı',
72
72
  'fabric.editor.taskPlaceholder': "Yapılacak eylemi yazın, birine atamak için '@' kullanın.",
73
- 'fabric.editor.textColor': 'Metin rengi',
74
73
  'fabric.editor.threeColumns': 'Üç sütun',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Kenar çubuklu üç sütun',
76
75
  'fabric.editor.twoColumns': 'İki sütun',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Один стовпець',
71
71
  'fabric.editor.success': 'Готово',
72
72
  'fabric.editor.taskPlaceholder': 'Вкажіть задачу. Призначте її комусь за допомогою символу «@».',
73
- 'fabric.editor.textColor': 'Колір тексту',
74
73
  'fabric.editor.threeColumns': 'Три стовпці',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Три стовпці з бічними панелями',
76
75
  'fabric.editor.twoColumns': 'Два стовпці',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': 'Cột đơn',
71
71
  'fabric.editor.success': 'Thành công',
72
72
  'fabric.editor.taskPlaceholder': "Nhập thao tác của bạn, sử dụng '@' để chỉ định cho người nào đó.",
73
- 'fabric.editor.textColor': 'Màu văn bản',
74
73
  'fabric.editor.threeColumns': 'Ba cột',
75
74
  'fabric.editor.threeColumnsWithSidebars': 'Ba cột có các thanh bên',
76
75
  'fabric.editor.twoColumns': 'Hai cột',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': '单列',
71
71
  'fabric.editor.success': '成功',
72
72
  'fabric.editor.taskPlaceholder': '输入您的操作,使用“@”进行分配。',
73
- 'fabric.editor.textColor': '文本颜色',
74
73
  'fabric.editor.threeColumns': '三栏',
75
74
  'fabric.editor.threeColumnsWithSidebars': '具有侧边栏的三列',
76
75
  'fabric.editor.twoColumns': '两栏',
@@ -70,7 +70,6 @@ var _default = exports.default = {
70
70
  'fabric.editor.single': '單欄',
71
71
  'fabric.editor.success': '成功',
72
72
  'fabric.editor.taskPlaceholder': '輸入動作,使用「@」以指派給他人。',
73
- 'fabric.editor.textColor': '文字顏色',
74
73
  'fabric.editor.threeColumns': '三欄',
75
74
  'fabric.editor.threeColumnsWithSidebars': '三個包含資訊看板的直欄',
76
75
  'fabric.editor.twoColumns': '兩欄',
@@ -161,12 +161,6 @@ Object.defineProperty(exports, "pastePlugin", {
161
161
  return _paste.default;
162
162
  }
163
163
  });
164
- Object.defineProperty(exports, "placeholderTextPlugin", {
165
- enumerable: true,
166
- get: function get() {
167
- return _placeholderText.placeholderTextPlugin;
168
- }
169
- });
170
164
  Object.defineProperty(exports, "tasksAndDecisionsPlugin", {
171
165
  enumerable: true,
172
166
  get: function get() {
@@ -202,7 +196,6 @@ var _macro = _interopRequireDefault(require("./macro"));
202
196
  var _maxContentSize = _interopRequireDefault(require("./max-content-size"));
203
197
  var _panel = _interopRequireDefault(require("./panel"));
204
198
  var _paste = _interopRequireDefault(require("./paste"));
205
- var _placeholderText = require("./placeholder-text");
206
199
  var _tasksAndDecisions = _interopRequireDefault(require("./tasks-and-decisions"));
207
200
  var _breakout = _interopRequireDefault(require("./breakout"));
208
201
  var _alignment = _interopRequireDefault(require("./alignment"));
@@ -12,8 +12,7 @@ var _WithPluginState = _interopRequireDefault(require("../../ui/WithPluginState"
12
12
  var _ToolbarInsertBlock = _interopRequireDefault(require("./ui/ToolbarInsertBlock"));
13
13
  var _consts = require("@atlaskit/editor-plugin-block-type/consts");
14
14
  var _analytics = require("@atlaskit/editor-common/analytics");
15
- var _pluginKey = require("../placeholder-text/plugin-key");
16
- var _pluginKey2 = require("../macro/plugin-key");
15
+ var _pluginKey = require("../macro/plugin-key");
17
16
  var _types = require("../../ui/Toolbar/types");
18
17
  var _hooks = require("@atlaskit/editor-common/hooks");
19
18
  var toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize) {
@@ -74,13 +73,11 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
74
73
  // `ToolbarInsertBlockWithInjectionApi` and remove `WithPluginState`
75
74
  return /*#__PURE__*/_react.default.createElement(_WithPluginState.default, {
76
75
  plugins: {
77
- macroState: _pluginKey2.pluginKey,
78
- placeholderTextState: _pluginKey.pluginKey
76
+ macroState: _pluginKey.pluginKey
79
77
  },
80
78
  render: function render(_ref3) {
81
79
  var _ref3$macroState = _ref3.macroState,
82
- macroState = _ref3$macroState === void 0 ? {} : _ref3$macroState,
83
- placeholderTextState = _ref3.placeholderTextState;
80
+ macroState = _ref3$macroState === void 0 ? {} : _ref3$macroState;
84
81
  return /*#__PURE__*/_react.default.createElement(ToolbarInsertBlockWithInjectionApi, {
85
82
  pluginInjectionApi: api,
86
83
  editorView: editorView,
@@ -96,7 +93,6 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
96
93
  isLastItem: isLastItem,
97
94
  featureFlags: featureFlags,
98
95
  macroState: macroState,
99
- placeholderTextState: placeholderTextState,
100
96
  providers: providers,
101
97
  options: options
102
98
  });
@@ -127,10 +123,9 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
127
123
  pluginInjectionApi = _ref4.pluginInjectionApi,
128
124
  options = _ref4.options,
129
125
  macroState = _ref4.macroState,
130
- placeholderTextState = _ref4.placeholderTextState,
131
126
  featureFlags = _ref4.featureFlags;
132
127
  var buttons = toolbarSizeToButtons(toolbarSize);
133
- var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead']),
128
+ var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead', 'placeholderText']),
134
129
  dateState = _useSharedPluginState.dateState,
135
130
  hyperlinkState = _useSharedPluginState.hyperlinkState,
136
131
  imageUploadState = _useSharedPluginState.imageUploadState,
@@ -138,7 +133,8 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
138
133
  emojiState = _useSharedPluginState.emojiState,
139
134
  blockTypeState = _useSharedPluginState.blockTypeState,
140
135
  mediaState = _useSharedPluginState.mediaState,
141
- typeAheadState = _useSharedPluginState.typeAheadState;
136
+ typeAheadState = _useSharedPluginState.typeAheadState,
137
+ placeholderTextState = _useSharedPluginState.placeholderTextState;
142
138
  return /*#__PURE__*/_react.default.createElement(_ToolbarInsertBlock.default, {
143
139
  pluginInjectionApi: pluginInjectionApi,
144
140
  buttons: buttons,
@@ -22,7 +22,6 @@ var _ui = require("@atlaskit/editor-common/ui");
22
22
  var _ToolbarButton = _interopRequireDefault(require("../../../../ui/ToolbarButton"));
23
23
  var _styles = require("@atlaskit/editor-common/styles");
24
24
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
25
- var _actions = require("../../../placeholder-text/actions");
26
25
  var _commands = require("../../../tasks-and-decisions/commands");
27
26
  var _analytics = require("@atlaskit/editor-common/analytics");
28
27
  var _messages = require("./messages");
@@ -208,29 +207,32 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
208
207
  return true;
209
208
  });
210
209
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createPlaceholderText", function () {
211
- var editorView = _this.props.editorView;
212
- (0, _actions.showPlaceholderFloatingToolbar)(editorView.state, editorView.dispatch);
210
+ var _pluginInjectionApi$p;
211
+ var _this$props3 = _this.props,
212
+ editorView = _this$props3.editorView,
213
+ pluginInjectionApi = _this$props3.pluginInjectionApi;
214
+ pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$p = pluginInjectionApi.placeholderText) === null || _pluginInjectionApi$p === void 0 || _pluginInjectionApi$p.actions.showPlaceholderFloatingToolbar(editorView.state, editorView.dispatch);
213
215
  return true;
214
216
  });
215
217
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertLayoutColumns", function (inputMethod) {
216
218
  var _pluginInjectionApi$l;
217
- var _this$props3 = _this.props,
218
- editorView = _this$props3.editorView,
219
- pluginInjectionApi = _this$props3.pluginInjectionApi;
219
+ var _this$props4 = _this.props,
220
+ editorView = _this$props4.editorView,
221
+ pluginInjectionApi = _this$props4.pluginInjectionApi;
220
222
  pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$l = pluginInjectionApi.layout) === null || _pluginInjectionApi$l === void 0 || _pluginInjectionApi$l.actions.insertLayoutColumns(inputMethod)(editorView.state, editorView.dispatch);
221
223
  return true;
222
224
  });
223
225
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createStatus", function (inputMethod) {
224
226
  var _pluginInjectionApi$s, _pluginInjectionApi$s2;
225
- var _this$props4 = _this.props,
226
- pluginInjectionApi = _this$props4.pluginInjectionApi,
227
- editorView = _this$props4.editorView;
227
+ var _this$props5 = _this.props,
228
+ pluginInjectionApi = _this$props5.pluginInjectionApi,
229
+ editorView = _this$props5.editorView;
228
230
  return (_pluginInjectionApi$s = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$s2 = pluginInjectionApi.status) === null || _pluginInjectionApi$s2 === void 0 || (_pluginInjectionApi$s2 = _pluginInjectionApi$s2.actions) === null || _pluginInjectionApi$s2 === void 0 ? void 0 : _pluginInjectionApi$s2.updateStatus(inputMethod)(editorView.state, editorView.dispatch)) !== null && _pluginInjectionApi$s !== void 0 ? _pluginInjectionApi$s : false;
229
231
  });
230
232
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openMediaPicker", function (inputMethod) {
231
- var _this$props5 = _this.props,
232
- onShowMediaPicker = _this$props5.onShowMediaPicker,
233
- dispatchAnalyticsEvent = _this$props5.dispatchAnalyticsEvent;
233
+ var _this$props6 = _this.props,
234
+ onShowMediaPicker = _this$props6.onShowMediaPicker,
235
+ dispatchAnalyticsEvent = _this$props6.dispatchAnalyticsEvent;
234
236
  if (onShowMediaPicker) {
235
237
  onShowMediaPicker();
236
238
  if (dispatchAnalyticsEvent) {
@@ -260,27 +262,27 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
260
262
  });
261
263
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertHorizontalRule", function (inputMethod) {
262
264
  var _pluginInjectionApi$r, _pluginInjectionApi$r2;
263
- var _this$props6 = _this.props,
264
- _this$props6$editorVi = _this$props6.editorView,
265
- state = _this$props6$editorVi.state,
266
- dispatch = _this$props6$editorVi.dispatch,
267
- pluginInjectionApi = _this$props6.pluginInjectionApi;
268
- return (_pluginInjectionApi$r = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$r2 = pluginInjectionApi.rule) === null || _pluginInjectionApi$r2 === void 0 ? void 0 : _pluginInjectionApi$r2.actions.insertHorizontalRule(inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$r !== void 0 ? _pluginInjectionApi$r : false;
269
- });
270
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertExpand", function () {
271
- var _pluginInjectionApi$e, _pluginInjectionApi$e2;
272
265
  var _this$props7 = _this.props,
273
266
  _this$props7$editorVi = _this$props7.editorView,
274
267
  state = _this$props7$editorVi.state,
275
268
  dispatch = _this$props7$editorVi.dispatch,
276
269
  pluginInjectionApi = _this$props7.pluginInjectionApi;
270
+ return (_pluginInjectionApi$r = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$r2 = pluginInjectionApi.rule) === null || _pluginInjectionApi$r2 === void 0 ? void 0 : _pluginInjectionApi$r2.actions.insertHorizontalRule(inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$r !== void 0 ? _pluginInjectionApi$r : false;
271
+ });
272
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertExpand", function () {
273
+ var _pluginInjectionApi$e, _pluginInjectionApi$e2;
274
+ var _this$props8 = _this.props,
275
+ _this$props8$editorVi = _this$props8.editorView,
276
+ state = _this$props8$editorVi.state,
277
+ dispatch = _this$props8$editorVi.dispatch,
278
+ pluginInjectionApi = _this$props8.pluginInjectionApi;
277
279
  return (_pluginInjectionApi$e = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e2 = pluginInjectionApi.expand) === null || _pluginInjectionApi$e2 === void 0 ? void 0 : _pluginInjectionApi$e2.actions.insertExpand(state, dispatch)) !== null && _pluginInjectionApi$e !== void 0 ? _pluginInjectionApi$e : false;
278
280
  });
279
281
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertBlockType", function (itemName) {
280
282
  return function () {
281
- var _this$props8 = _this.props,
282
- editorView = _this$props8.editorView,
283
- onInsertBlockType = _this$props8.onInsertBlockType;
283
+ var _this$props9 = _this.props,
284
+ editorView = _this$props9.editorView,
285
+ onInsertBlockType = _this$props9.onInsertBlockType;
284
286
  var state = editorView.state,
285
287
  dispatch = editorView.dispatch;
286
288
  onInsertBlockType(itemName)(state, dispatch);
@@ -304,11 +306,11 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
304
306
  var _this$props$pluginInj;
305
307
  var item = _ref2.item,
306
308
  inputMethod = _ref2.inputMethod;
307
- var _this$props9 = _this.props,
308
- editorView = _this$props9.editorView,
309
- editorActions = _this$props9.editorActions,
310
- handleImageUpload = _this$props9.handleImageUpload,
311
- expandEnabled = _this$props9.expandEnabled;
309
+ var _this$props10 = _this.props,
310
+ editorView = _this$props10.editorView,
311
+ editorActions = _this$props10.editorActions,
312
+ handleImageUpload = _this$props10.handleImageUpload,
313
+ expandEnabled = _this$props10.expandEnabled;
312
314
 
313
315
  // need to do this before inserting nodes so scrollIntoView works properly
314
316
  if (!editorView.hasFocus()) {
@@ -424,12 +426,12 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
424
426
  key: "renderPopup",
425
427
  value: function renderPopup() {
426
428
  var emojiPickerOpen = this.state.emojiPickerOpen;
427
- var _this$props10 = this.props,
428
- popupsMountPoint = _this$props10.popupsMountPoint,
429
- popupsBoundariesElement = _this$props10.popupsBoundariesElement,
430
- popupsScrollableElement = _this$props10.popupsScrollableElement,
431
- emojiProvider = _this$props10.emojiProvider,
432
- replacePlusMenuWithElementBrowser = _this$props10.replacePlusMenuWithElementBrowser;
429
+ var _this$props11 = this.props,
430
+ popupsMountPoint = _this$props11.popupsMountPoint,
431
+ popupsBoundariesElement = _this$props11.popupsBoundariesElement,
432
+ popupsScrollableElement = _this$props11.popupsScrollableElement,
433
+ emojiProvider = _this$props11.emojiProvider,
434
+ replacePlusMenuWithElementBrowser = _this$props11.replacePlusMenuWithElementBrowser;
433
435
  var dropdownEmoji = this.state.dropdownItems.some(function (_ref4) {
434
436
  var name = _ref4.value.name;
435
437
  return name === 'emoji';
@@ -466,9 +468,9 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
466
468
  buttons = _this$state.buttons,
467
469
  dropdownItems = _this$state.dropdownItems,
468
470
  emojiPickerOpen = _this$state.emojiPickerOpen;
469
- var _this$props11 = this.props,
470
- isDisabled = _this$props11.isDisabled,
471
- isReducedSpacing = _this$props11.isReducedSpacing;
471
+ var _this$props12 = this.props,
472
+ isDisabled = _this$props12.isDisabled,
473
+ isReducedSpacing = _this$props12.isReducedSpacing;
472
474
  if (buttons.length === 0 && dropdownItems.length === 0) {
473
475
  return null;
474
476
  }
@@ -8,14 +8,14 @@ exports.changePanelType = void 0;
8
8
  exports.insertPanelWithAnalytics = insertPanelWithAnalytics;
9
9
  exports.removePanel = void 0;
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _utils = require("@atlaskit/editor-prosemirror/utils");
12
- var _state = require("@atlaskit/editor-prosemirror/state");
13
11
  var _adfSchema = require("@atlaskit/adf-schema");
14
12
  var _analytics = require("@atlaskit/editor-common/analytics");
15
- var _utils2 = require("./utils");
16
- var _panel = require("@atlaskit/editor-common/panel");
17
13
  var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
18
- var _utils3 = require("@atlaskit/editor-common/utils");
14
+ var _panel = require("@atlaskit/editor-common/panel");
15
+ var _utils = require("@atlaskit/editor-common/utils");
16
+ var _state = require("@atlaskit/editor-prosemirror/state");
17
+ var _utils2 = require("@atlaskit/editor-prosemirror/utils");
18
+ var _utils3 = require("./utils");
19
19
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
20
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
21
  var removePanel = exports.removePanel = function removePanel(editorAnalyticsAPI) {
@@ -31,10 +31,10 @@ var removePanel = exports.removePanel = function removePanel(editorAnalyticsAPI)
31
31
  eventType: _analytics.EVENT_TYPE.TRACK
32
32
  };
33
33
  var deleteTr = tr;
34
- if ((0, _utils.findSelectedNodeOfType)(nodes.panel)(tr.selection)) {
35
- deleteTr = (0, _utils.removeSelectedNode)(tr);
36
- } else if ((0, _utils.findParentNodeOfType)(nodes.panel)(tr.selection)) {
37
- deleteTr = (0, _utils.removeParentNodeOfType)(nodes.panel)(tr);
34
+ if ((0, _utils2.findSelectedNodeOfType)(nodes.panel)(tr.selection)) {
35
+ deleteTr = (0, _utils2.removeSelectedNode)(tr);
36
+ } else if ((0, _utils2.findParentNodeOfType)(nodes.panel)(tr.selection)) {
37
+ deleteTr = (0, _utils2.removeParentNodeOfType)(nodes.panel)(tr);
38
38
  }
39
39
  if (!deleteTr) {
40
40
  return false;
@@ -53,7 +53,7 @@ var changePanelType = exports.changePanelType = function changePanelType(editorA
53
53
  return function (state, dispatch) {
54
54
  var nodes = state.schema.nodes,
55
55
  tr = state.tr;
56
- var panelNode = (0, _utils2.findPanel)(state);
56
+ var panelNode = (0, _utils3.findPanel)(state);
57
57
  if (panelNode === undefined) {
58
58
  return false;
59
59
  }
@@ -118,7 +118,7 @@ function insertPanelWithAnalytics(inputMethod, analyticsAPI) {
118
118
  })(function (state, dispatch) {
119
119
  var nodes = state.schema.nodes;
120
120
  if (nodes.panel && nodes.paragraph) {
121
- return (0, _utils3.wrapSelectionIn)(nodes.panel)(state, dispatch);
121
+ return (0, _utils.wrapSelectionIn)(nodes.panel)(state, dispatch);
122
122
  }
123
123
  return false;
124
124
  });
@@ -7,15 +7,15 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
- var _main = require("./pm-plugins/main");
11
- var _toolbar = require("./toolbar");
12
- var _keymaps = _interopRequireDefault(require("./pm-plugins/keymaps"));
13
10
  var _analytics = require("@atlaskit/editor-common/analytics");
11
+ var _messages = require("@atlaskit/editor-common/messages");
14
12
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
15
13
  var _utils = require("@atlaskit/editor-common/utils");
16
- var _messages = require("@atlaskit/editor-common/messages");
17
14
  var _colors = require("@atlaskit/theme/colors");
18
15
  var _actions = require("./actions");
16
+ var _keymaps = _interopRequireDefault(require("./pm-plugins/keymaps"));
17
+ var _main = require("./pm-plugins/main");
18
+ var _toolbar = require("./toolbar");
19
19
  var panelPlugin = function panelPlugin(_ref) {
20
20
  var _ref$config = _ref.config,
21
21
  options = _ref$config === void 0 ? {} : _ref$config,
@@ -9,14 +9,14 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _reactDom = _interopRequireDefault(require("react-dom"));
12
- var _model = require("@atlaskit/editor-prosemirror/model");
13
- var _hint = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/hint"));
14
12
  var _adfSchema = require("@atlaskit/adf-schema");
15
- var _panel = require("@atlaskit/editor-common/panel");
16
13
  var _emoji = require("@atlaskit/editor-common/emoji");
17
- var _utils = require("../utils");
18
- var _consts = require("@atlaskit/editor-shared-styles/consts");
19
14
  var _icons = require("@atlaskit/editor-common/icons");
15
+ var _panel = require("@atlaskit/editor-common/panel");
16
+ var _model = require("@atlaskit/editor-prosemirror/model");
17
+ var _consts = require("@atlaskit/editor-shared-styles/consts");
18
+ var _hint = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/hint"));
19
+ var _utils = require("../utils");
20
20
  var panelIcons = exports.panelIcons = {
21
21
  info: _icons.PanelInfoIcon,
22
22
  success: _icons.PanelSuccessIcon,
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  exports.keymapPlugin = keymapPlugin;
8
+ var _utils = require("@atlaskit/editor-common/utils");
8
9
  var _keymap = require("@atlaskit/editor-prosemirror/keymap");
9
- var _utils = require("@atlaskit/editor-prosemirror/utils");
10
- var _utils2 = require("../../../utils");
10
+ var _utils2 = require("@atlaskit/editor-prosemirror/utils");
11
11
  function findParentNode(selection, nodeType) {
12
- var parentPosition = (0, _utils.findParentNodeOfType)(nodeType)(selection);
12
+ var parentPosition = (0, _utils2.findParentNodeOfType)(nodeType)(selection);
13
13
  if (parentPosition) {
14
14
  return parentPosition.node;
15
15
  }
@@ -17,7 +17,7 @@ function findParentNode(selection, nodeType) {
17
17
  }
18
18
  function isInsideAnEmptyNode(selection, nodeType, schema) {
19
19
  var parentNode = findParentNode(selection, nodeType);
20
- return parentNode && (0, _utils2.isEmptyNode)(schema)(parentNode);
20
+ return parentNode && (0, _utils.isEmptyNode)(schema)(parentNode);
21
21
  }
22
22
 
23
23
  // Somewhat broken and subverted: https://product-fabric.atlassian.net/browse/ED-6504
@@ -54,18 +54,18 @@ function keymapPlugin() {
54
54
  // Stops merging panels when deleting empty paragraph in between
55
55
  // Stops merging blockquotes with panels when deleting from start of blockquote
56
56
 
57
- if (isPreviousNodeAPanel && !isParentNodeAPanel || isInsideAnEmptyNode(selection, panel, state.schema) || (0, _utils.hasParentNodeOfType)(blockquote)(selection) ||
57
+ if (isPreviousNodeAPanel && !isParentNodeAPanel || isInsideAnEmptyNode(selection, panel, state.schema) || (0, _utils2.hasParentNodeOfType)(blockquote)(selection) ||
58
58
  // Lift line of panel content up and out of the panel, when backspacing
59
59
  // at the start of a panel, if the node before the panel is an 'isolating' node
60
60
  // (for e.g. a table, or an expand), otherwise the default prosemirror backspace
61
61
  // behaviour will fallback to 'select node backward' logic because the node
62
62
  // before is an isolating node.
63
- nodeBeforePanel !== null && nodeBeforePanel !== void 0 && (_nodeBeforePanel$type = nodeBeforePanel.type) !== null && _nodeBeforePanel$type !== void 0 && (_nodeBeforePanel$type = _nodeBeforePanel$type.spec) !== null && _nodeBeforePanel$type !== void 0 && _nodeBeforePanel$type.isolating && (0, _utils.hasParentNodeOfType)(panel)(selection)) {
63
+ nodeBeforePanel !== null && nodeBeforePanel !== void 0 && (_nodeBeforePanel$type = nodeBeforePanel.type) !== null && _nodeBeforePanel$type !== void 0 && (_nodeBeforePanel$type = _nodeBeforePanel$type.spec) !== null && _nodeBeforePanel$type !== void 0 && _nodeBeforePanel$type.isolating && (0, _utils2.hasParentNodeOfType)(panel)(selection)) {
64
64
  var content = $from.node($from.depth).content;
65
65
  var insertPos = $previousPos.pos;
66
66
  deleteCurrentItem($from, tr).insert(insertPos, content);
67
67
  if (dispatch) {
68
- dispatch((0, _utils.setTextSelection)(insertPos)(tr).scrollIntoView());
68
+ dispatch((0, _utils2.setTextSelection)(insertPos)(tr).scrollIntoView());
69
69
  }
70
70
  return true;
71
71
  }