@atlaskit/editor-core 183.1.1 → 184.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/cjs/i18n/da.js +1 -1
  3. package/dist/cjs/i18n/en_ZZ.js +8 -34
  4. package/dist/cjs/i18n/it.js +1 -1
  5. package/dist/cjs/i18n/nb.js +3 -3
  6. package/dist/cjs/i18n/nl.js +4 -4
  7. package/dist/cjs/i18n/pl.js +1 -1
  8. package/dist/cjs/i18n/pt_BR.js +1 -1
  9. package/dist/cjs/i18n/ru.js +1 -1
  10. package/dist/cjs/i18n/th.js +2 -2
  11. package/dist/cjs/i18n/uk.js +1 -1
  12. package/dist/cjs/i18n/vi.js +2 -2
  13. package/dist/cjs/i18n/zh.js +1 -1
  14. package/dist/cjs/labs/next/full-page.js +2 -6
  15. package/dist/cjs/labs/next/presets/create-stub-internal-apis.js +4 -2
  16. package/dist/cjs/labs/next/presets/default.js +2 -2
  17. package/dist/cjs/labs/next/presets/universal.js +2 -1
  18. package/dist/cjs/plugins/breakout/index.js +54 -35
  19. package/dist/cjs/plugins/card/toolbar.js +4 -3
  20. package/dist/cjs/plugins/collab-edit/plugin-state.js +2 -3
  21. package/dist/cjs/plugins/copy-button/commands.js +8 -1
  22. package/dist/cjs/plugins/extension/index.js +1 -1
  23. package/dist/cjs/plugins/extension/nodeviews/extension.js +5 -3
  24. package/dist/cjs/plugins/extension/pm-plugins/main.js +6 -6
  25. package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +34 -4
  26. package/dist/cjs/plugins/extension/ui/Extension/ExtensionComponent.js +4 -2
  27. package/dist/cjs/plugins/extension/ui/Extension/index.js +4 -2
  28. package/dist/cjs/plugins/help-dialog/index.js +12 -8
  29. package/dist/cjs/plugins/index.js +0 -14
  30. package/dist/cjs/plugins/layout/pm-plugins/main.js +0 -1
  31. package/dist/cjs/plugins/media/index.js +15 -5
  32. package/dist/cjs/plugins/media/nodeviews/mediaNodeView/index.js +22 -14
  33. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +53 -34
  34. package/dist/cjs/plugins/media/styles.js +1 -1
  35. package/dist/cjs/plugins/media/toolbar/index.js +4 -3
  36. package/dist/cjs/plugins/media/ui/ImageBorder/styles.js +4 -1
  37. package/dist/cjs/plugins/paste/pm-plugins/main.js +7 -1
  38. package/dist/cjs/test-utils.js +6 -1
  39. package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -2
  40. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -2
  41. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +1 -2
  42. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
  43. package/dist/cjs/ui/ContentStyles/index.js +9 -10
  44. package/dist/cjs/ui/ContextPanel/index.js +67 -56
  45. package/dist/cjs/ui/MediaAndEmbedsToolbar/index.js +10 -11
  46. package/dist/cjs/ui/Resizer/index.js +8 -8
  47. package/dist/cjs/ui/WidthEmitter/index.js +10 -4
  48. package/dist/cjs/utils/clipboard.js +18 -11
  49. package/dist/cjs/utils/performance/instrumented-plugin.js +14 -2
  50. package/dist/cjs/version-wrapper.js +1 -1
  51. package/dist/cjs/version.json +1 -1
  52. package/dist/es2019/i18n/da.js +1 -1
  53. package/dist/es2019/i18n/en_ZZ.js +8 -34
  54. package/dist/es2019/i18n/it.js +1 -1
  55. package/dist/es2019/i18n/nb.js +3 -3
  56. package/dist/es2019/i18n/nl.js +4 -4
  57. package/dist/es2019/i18n/pl.js +1 -1
  58. package/dist/es2019/i18n/pt_BR.js +1 -1
  59. package/dist/es2019/i18n/ru.js +1 -1
  60. package/dist/es2019/i18n/th.js +2 -2
  61. package/dist/es2019/i18n/uk.js +1 -1
  62. package/dist/es2019/i18n/vi.js +2 -2
  63. package/dist/es2019/i18n/zh.js +1 -1
  64. package/dist/es2019/labs/next/full-page.js +2 -5
  65. package/dist/es2019/labs/next/presets/create-stub-internal-apis.js +4 -2
  66. package/dist/es2019/labs/next/presets/default.js +1 -1
  67. package/dist/es2019/labs/next/presets/universal.js +2 -1
  68. package/dist/es2019/plugins/breakout/index.js +48 -31
  69. package/dist/es2019/plugins/card/toolbar.js +4 -3
  70. package/dist/es2019/plugins/collab-edit/plugin-state.js +2 -4
  71. package/dist/es2019/plugins/copy-button/commands.js +9 -2
  72. package/dist/es2019/plugins/extension/index.js +1 -1
  73. package/dist/es2019/plugins/extension/nodeviews/extension.js +5 -3
  74. package/dist/es2019/plugins/extension/pm-plugins/main.js +4 -4
  75. package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +38 -2
  76. package/dist/es2019/plugins/extension/ui/Extension/ExtensionComponent.js +4 -2
  77. package/dist/es2019/plugins/extension/ui/Extension/index.js +4 -2
  78. package/dist/es2019/plugins/help-dialog/index.js +14 -9
  79. package/dist/es2019/plugins/index.js +0 -2
  80. package/dist/es2019/plugins/layout/pm-plugins/main.js +0 -1
  81. package/dist/es2019/plugins/media/index.js +15 -5
  82. package/dist/es2019/plugins/media/nodeviews/mediaNodeView/index.js +21 -10
  83. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +53 -33
  84. package/dist/es2019/plugins/media/styles.js +1 -7
  85. package/dist/es2019/plugins/media/toolbar/index.js +4 -4
  86. package/dist/es2019/plugins/media/ui/ImageBorder/styles.js +9 -9
  87. package/dist/es2019/plugins/paste/pm-plugins/main.js +7 -1
  88. package/dist/es2019/test-utils.js +6 -1
  89. package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
  90. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
  91. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
  92. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  93. package/dist/es2019/ui/ContentStyles/index.js +1 -2
  94. package/dist/es2019/ui/ContextPanel/index.js +66 -43
  95. package/dist/es2019/ui/MediaAndEmbedsToolbar/index.js +8 -9
  96. package/dist/es2019/ui/Resizer/index.js +1 -1
  97. package/dist/es2019/ui/WidthEmitter/index.js +10 -4
  98. package/dist/es2019/utils/clipboard.js +12 -7
  99. package/dist/es2019/utils/performance/instrumented-plugin.js +15 -2
  100. package/dist/es2019/version-wrapper.js +1 -1
  101. package/dist/es2019/version.json +1 -1
  102. package/dist/esm/i18n/da.js +1 -1
  103. package/dist/esm/i18n/en_ZZ.js +8 -34
  104. package/dist/esm/i18n/it.js +1 -1
  105. package/dist/esm/i18n/nb.js +3 -3
  106. package/dist/esm/i18n/nl.js +4 -4
  107. package/dist/esm/i18n/pl.js +1 -1
  108. package/dist/esm/i18n/pt_BR.js +1 -1
  109. package/dist/esm/i18n/ru.js +1 -1
  110. package/dist/esm/i18n/th.js +2 -2
  111. package/dist/esm/i18n/uk.js +1 -1
  112. package/dist/esm/i18n/vi.js +2 -2
  113. package/dist/esm/i18n/zh.js +1 -1
  114. package/dist/esm/labs/next/full-page.js +2 -5
  115. package/dist/esm/labs/next/presets/create-stub-internal-apis.js +4 -2
  116. package/dist/esm/labs/next/presets/default.js +1 -1
  117. package/dist/esm/labs/next/presets/universal.js +2 -1
  118. package/dist/esm/plugins/breakout/index.js +54 -35
  119. package/dist/esm/plugins/card/toolbar.js +4 -3
  120. package/dist/esm/plugins/collab-edit/plugin-state.js +2 -3
  121. package/dist/esm/plugins/copy-button/commands.js +9 -2
  122. package/dist/esm/plugins/extension/index.js +1 -1
  123. package/dist/esm/plugins/extension/nodeviews/extension.js +5 -3
  124. package/dist/esm/plugins/extension/pm-plugins/main.js +6 -6
  125. package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +33 -2
  126. package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +4 -2
  127. package/dist/esm/plugins/extension/ui/Extension/index.js +4 -2
  128. package/dist/esm/plugins/help-dialog/index.js +12 -8
  129. package/dist/esm/plugins/index.js +0 -2
  130. package/dist/esm/plugins/layout/pm-plugins/main.js +0 -1
  131. package/dist/esm/plugins/media/index.js +15 -5
  132. package/dist/esm/plugins/media/nodeviews/mediaNodeView/index.js +22 -14
  133. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +54 -35
  134. package/dist/esm/plugins/media/styles.js +2 -2
  135. package/dist/esm/plugins/media/toolbar/index.js +4 -3
  136. package/dist/esm/plugins/media/ui/ImageBorder/styles.js +4 -1
  137. package/dist/esm/plugins/paste/pm-plugins/main.js +7 -1
  138. package/dist/esm/test-utils.js +6 -1
  139. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
  140. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
  141. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
  142. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  143. package/dist/esm/ui/ContentStyles/index.js +1 -2
  144. package/dist/esm/ui/ContextPanel/index.js +64 -53
  145. package/dist/esm/ui/MediaAndEmbedsToolbar/index.js +10 -11
  146. package/dist/esm/ui/Resizer/index.js +1 -1
  147. package/dist/esm/ui/WidthEmitter/index.js +10 -4
  148. package/dist/esm/utils/clipboard.js +16 -10
  149. package/dist/esm/utils/performance/instrumented-plugin.js +14 -2
  150. package/dist/esm/version-wrapper.js +1 -1
  151. package/dist/esm/version.json +1 -1
  152. package/dist/types/actions/index.d.ts +1 -1
  153. package/dist/types/create-editor/get-plugins.d.ts +2 -0
  154. package/dist/types/i18n/en_ZZ.d.ts +2 -28
  155. package/dist/types/index.d.ts +0 -1
  156. package/dist/types/plugins/breakout/index.d.ts +4 -0
  157. package/dist/types/plugins/breakout/ui/LayoutButton.d.ts +1 -1
  158. package/dist/types/plugins/card/index.d.ts +2 -2
  159. package/dist/types/plugins/collab-edit/actions.d.ts +3 -2
  160. package/dist/types/plugins/collab-edit/events/handlers.d.ts +3 -3
  161. package/dist/types/plugins/collab-edit/events/initialize.d.ts +1 -1
  162. package/dist/types/plugins/collab-edit/events/send-transaction.d.ts +1 -1
  163. package/dist/types/plugins/collab-edit/index.d.ts +0 -1
  164. package/dist/types/plugins/collab-edit/native-collab-provider-plugin.d.ts +2 -2
  165. package/dist/types/plugins/collab-edit/participants.d.ts +1 -1
  166. package/dist/types/plugins/collab-edit/plugin.d.ts +0 -2
  167. package/dist/types/plugins/collab-edit/types.d.ts +1 -3
  168. package/dist/types/plugins/collab-edit/ui/to-avatar.d.ts +1 -1
  169. package/dist/types/plugins/collab-edit/utils.d.ts +2 -1
  170. package/dist/types/plugins/extension/index.d.ts +2 -1
  171. package/dist/types/plugins/extension/nodeviews/extension.d.ts +4 -1
  172. package/dist/types/plugins/extension/pm-plugins/main.d.ts +3 -1
  173. package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +6 -0
  174. package/dist/types/plugins/extension/ui/Extension/ExtensionComponent.d.ts +3 -0
  175. package/dist/types/plugins/extension/ui/Extension/index.d.ts +3 -0
  176. package/dist/types/plugins/help-dialog/index.d.ts +3 -1
  177. package/dist/types/plugins/index.d.ts +0 -3
  178. package/dist/types/plugins/media/index.d.ts +12 -2
  179. package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +4 -2
  180. package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
  181. package/dist/types/plugins/media/nodeviews/types.d.ts +2 -1
  182. package/dist/types/plugins/media/toolbar/index.d.ts +3 -1
  183. package/dist/types/plugins/media/ui/ResizableMediaSingle/types.d.ts +2 -2
  184. package/dist/types/test-utils.d.ts +3 -1
  185. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  186. package/dist/types/ui/ColorPickerButton/index.d.ts +1 -1
  187. package/dist/types/ui/ContextPanel/index.d.ts +3 -4
  188. package/dist/types/ui/MediaAndEmbedsToolbar/index.d.ts +3 -1
  189. package/dist/types/ui/PluginSlot/index.d.ts +1 -1
  190. package/dist/types/ui/Resizer/types.d.ts +2 -2
  191. package/dist/types/utils/clipboard.d.ts +1 -0
  192. package/dist/types-ts4.5/actions/index.d.ts +1 -1
  193. package/dist/types-ts4.5/create-editor/get-plugins.d.ts +2 -0
  194. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +2 -28
  195. package/dist/types-ts4.5/index.d.ts +0 -1
  196. package/dist/types-ts4.5/plugins/breakout/index.d.ts +6 -0
  197. package/dist/types-ts4.5/plugins/breakout/ui/LayoutButton.d.ts +1 -1
  198. package/dist/types-ts4.5/plugins/card/index.d.ts +2 -2
  199. package/dist/types-ts4.5/plugins/collab-edit/actions.d.ts +3 -2
  200. package/dist/types-ts4.5/plugins/collab-edit/events/handlers.d.ts +3 -3
  201. package/dist/types-ts4.5/plugins/collab-edit/events/initialize.d.ts +1 -1
  202. package/dist/types-ts4.5/plugins/collab-edit/events/send-transaction.d.ts +1 -1
  203. package/dist/types-ts4.5/plugins/collab-edit/index.d.ts +0 -1
  204. package/dist/types-ts4.5/plugins/collab-edit/native-collab-provider-plugin.d.ts +2 -2
  205. package/dist/types-ts4.5/plugins/collab-edit/participants.d.ts +1 -1
  206. package/dist/types-ts4.5/plugins/collab-edit/plugin.d.ts +0 -2
  207. package/dist/types-ts4.5/plugins/collab-edit/types.d.ts +1 -3
  208. package/dist/types-ts4.5/plugins/collab-edit/ui/to-avatar.d.ts +1 -1
  209. package/dist/types-ts4.5/plugins/collab-edit/utils.d.ts +2 -1
  210. package/dist/types-ts4.5/plugins/extension/index.d.ts +3 -1
  211. package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +4 -1
  212. package/dist/types-ts4.5/plugins/extension/pm-plugins/main.d.ts +3 -1
  213. package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +6 -0
  214. package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionComponent.d.ts +3 -0
  215. package/dist/types-ts4.5/plugins/extension/ui/Extension/index.d.ts +3 -0
  216. package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +5 -1
  217. package/dist/types-ts4.5/plugins/index.d.ts +0 -3
  218. package/dist/types-ts4.5/plugins/media/index.d.ts +9 -2
  219. package/dist/types-ts4.5/plugins/media/nodeviews/mediaNodeView/index.d.ts +4 -2
  220. package/dist/types-ts4.5/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
  221. package/dist/types-ts4.5/plugins/media/nodeviews/types.d.ts +2 -1
  222. package/dist/types-ts4.5/plugins/media/toolbar/index.d.ts +3 -1
  223. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/types.d.ts +2 -2
  224. package/dist/types-ts4.5/test-utils.d.ts +3 -1
  225. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  226. package/dist/types-ts4.5/ui/ColorPickerButton/index.d.ts +1 -1
  227. package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +3 -4
  228. package/dist/types-ts4.5/ui/MediaAndEmbedsToolbar/index.d.ts +3 -1
  229. package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +1 -1
  230. package/dist/types-ts4.5/ui/Resizer/types.d.ts +2 -2
  231. package/dist/types-ts4.5/utils/clipboard.d.ts +1 -0
  232. package/package.json +20 -18
  233. package/report.api.md +15 -63
  234. package/dist/cjs/plugins/collab-edit/provider/index.js +0 -5
  235. package/dist/cjs/plugins/collab-edit/provider/types.js +0 -5
  236. package/dist/cjs/plugins/grid/index.js +0 -207
  237. package/dist/cjs/plugins/grid/styles.js +0 -16
  238. package/dist/cjs/plugins/grid/types.js +0 -5
  239. package/dist/cjs/plugins/width/index.js +0 -88
  240. package/dist/cjs/ui/ContextPanel/context.js +0 -89
  241. package/dist/es2019/plugins/collab-edit/provider/index.js +0 -1
  242. package/dist/es2019/plugins/collab-edit/provider/types.js +0 -1
  243. package/dist/es2019/plugins/grid/index.js +0 -168
  244. package/dist/es2019/plugins/grid/styles.js +0 -36
  245. package/dist/es2019/plugins/grid/types.js +0 -1
  246. package/dist/es2019/plugins/width/index.js +0 -72
  247. package/dist/es2019/ui/ContextPanel/context.js +0 -65
  248. package/dist/esm/plugins/collab-edit/provider/index.js +0 -1
  249. package/dist/esm/plugins/collab-edit/provider/types.js +0 -1
  250. package/dist/esm/plugins/grid/index.js +0 -191
  251. package/dist/esm/plugins/grid/styles.js +0 -7
  252. package/dist/esm/plugins/grid/types.js +0 -1
  253. package/dist/esm/plugins/width/index.js +0 -78
  254. package/dist/esm/ui/ContextPanel/context.js +0 -79
  255. package/dist/types/plugins/collab-edit/provider/index.d.ts +0 -1
  256. package/dist/types/plugins/collab-edit/provider/types.d.ts +0 -1
  257. package/dist/types/plugins/grid/index.d.ts +0 -25
  258. package/dist/types/plugins/grid/styles.d.ts +0 -2
  259. package/dist/types/plugins/grid/types.d.ts +0 -7
  260. package/dist/types/plugins/width/index.d.ts +0 -18
  261. package/dist/types/ui/ContextPanel/context.d.ts +0 -24
  262. package/dist/types-ts4.5/plugins/collab-edit/provider/index.d.ts +0 -1
  263. package/dist/types-ts4.5/plugins/collab-edit/provider/types.d.ts +0 -1
  264. package/dist/types-ts4.5/plugins/grid/index.d.ts +0 -27
  265. package/dist/types-ts4.5/plugins/grid/styles.d.ts +0 -2
  266. package/dist/types-ts4.5/plugins/grid/types.d.ts +0 -7
  267. package/dist/types-ts4.5/plugins/width/index.d.ts +0 -18
  268. package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +0 -24
@@ -6,10 +6,9 @@ import { css, jsx } from '@emotion/react';
6
6
  import Transition from 'react-transition-group/Transition';
7
7
  import { N30 } from '@atlaskit/theme/colors';
8
8
  import { akEditorSwoopCubicBezier, akEditorDefaultLayoutWidth, akEditorWideLayoutWidth, akEditorBreakoutPadding, akEditorContextPanelWidth, ATLASSIAN_NAVIGATION_HEIGHT } from '@atlaskit/editor-shared-styles';
9
- import { ContextPanelConsumer } from './context';
9
+ import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
10
10
  import WithPluginState from '../WithPluginState';
11
11
  import { pluginKey as contextPanelPluginKey } from '../../plugins/context-panel';
12
- import { pluginKey as widthPluginKey } from '../../plugins/width';
13
12
  import WithEditorActions from '../WithEditorActions';
14
13
  import { getChildBreakoutModes } from '../../utils/document';
15
14
  const ANIM_SPEED_MS = 500;
@@ -58,6 +57,15 @@ export class SwappableContentArea extends React.PureComponent {
58
57
  mounted: false,
59
58
  currentPluginContent: undefined
60
59
  });
60
+ _defineProperty(this, "focusEditor", () => {
61
+ const {
62
+ editorView
63
+ } = this.props;
64
+ if (editorView && !editorView.hasFocus()) {
65
+ var _editorView$focus;
66
+ (_editorView$focus = editorView.focus) === null || _editorView$focus === void 0 ? void 0 : _editorView$focus.call(editorView);
67
+ }
68
+ });
61
69
  _defineProperty(this, "showPluginContent", () => {
62
70
  const {
63
71
  pluginContent
@@ -87,7 +95,8 @@ export class SwappableContentArea extends React.PureComponent {
87
95
  timeout: this.state.mounted ? ANIM_SPEED_MS : 0,
88
96
  in: isVisible,
89
97
  mountOnEnter: true,
90
- unmountOnExit: true
98
+ unmountOnExit: true,
99
+ onExiting: this.focusEditor
91
100
  }, children);
92
101
  });
93
102
  }
@@ -123,8 +132,9 @@ export class SwappableContentArea extends React.PureComponent {
123
132
  broadcastPosition,
124
133
  positionedOverEditor
125
134
  }) => {
135
+ const contextPanelWidth = visible ? width : 0;
126
136
  const newPosition = editorWidth ? shouldPanelBePositionedOverEditor(editorWidth, width) : false;
127
- broadcastWidth(visible ? width : 0);
137
+ broadcastWidth(contextPanelWidth);
128
138
  (newPosition && visible) !== positionedOverEditor && broadcastPosition(newPosition && visible);
129
139
  return jsx("div", {
130
140
  css: [panel, !visible && panelHidden,
@@ -143,44 +153,57 @@ export class SwappableContentArea extends React.PureComponent {
143
153
  });
144
154
  }
145
155
  }
146
- export default class ContextPanel extends React.Component {
147
- render() {
148
- return jsx(WithEditorActions, {
149
- render: actions => {
150
- const eventDispatcher = actions._privateGetEventDispatcher();
151
- const editorView = actions._privateGetEditorView();
152
- if (!eventDispatcher) {
153
- return jsx(SwappableContentArea, _extends({
154
- editorView: editorView
155
- }, this.props));
156
- }
157
- return jsx(WithPluginState, {
158
- eventDispatcher: eventDispatcher,
159
- plugins: {
160
- contextPanel: contextPanelPluginKey,
161
- widthState: widthPluginKey
162
- },
163
- render: ({
164
- contextPanel,
165
- widthState = {
166
- width: 0,
167
- containerWidth: 0,
168
- lineLength: akEditorDefaultLayoutWidth
169
- }
170
- }) => {
171
- const firstContent = contextPanel && contextPanel.contents.find(Boolean);
172
- const editorWidth = {
173
- ...widthState,
174
- contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
175
- };
176
- return jsx(SwappableContentArea, _extends({}, this.props, {
177
- editorView: editorView,
178
- pluginContent: firstContent,
179
- editorWidth: editorWidth
180
- }));
181
- }
182
- });
183
- }
184
- });
156
+
157
+ // TODO: ED-17837 We have this workaround because we do
158
+ // not have access to the pluginInjectionApi at this location.
159
+ // It might be that we need to inject the pluginInjectionApi
160
+ // via context so that we can use it in this file (similar to
161
+ // WithEditorActions). To be investigated further.
162
+ // @ts-ignore
163
+ const widthPluginKey = {
164
+ key: 'widthPlugin$',
165
+ getState: state => {
166
+ return state['widthPlugin$'];
167
+ }
168
+ };
169
+ function ContextPanelWithActions({
170
+ actions,
171
+ ...props
172
+ }) {
173
+ const eventDispatcher = actions._privateGetEventDispatcher();
174
+ const editorView = actions._privateGetEditorView();
175
+ if (!eventDispatcher) {
176
+ return jsx(SwappableContentArea, _extends({
177
+ editorView: editorView
178
+ }, props));
185
179
  }
180
+ return jsx(WithPluginState, {
181
+ eventDispatcher: eventDispatcher,
182
+ plugins: {
183
+ contextPanel: contextPanelPluginKey,
184
+ widthState: widthPluginKey
185
+ },
186
+ render: ({
187
+ contextPanel,
188
+ widthState
189
+ }) => {
190
+ const firstContent = contextPanel && contextPanel.contents.find(Boolean);
191
+ const editorWidth = {
192
+ ...widthState,
193
+ contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
194
+ };
195
+ return jsx(SwappableContentArea, _extends({}, props, {
196
+ editorView: editorView,
197
+ pluginContent: firstContent,
198
+ editorWidth: editorWidth
199
+ }));
200
+ }
201
+ });
202
+ }
203
+ export default function ContextPanel(props) {
204
+ return jsx(WithEditorActions, {
205
+ render: actions => jsx(ContextPanelWithActions, _extends({
206
+ actions: actions
207
+ }, props))
208
+ });
186
209
  }
@@ -9,7 +9,6 @@ import EditorAlignImageLeft from '@atlaskit/icon/glyph/editor/align-image-left';
9
9
  import EditorAlignImageRight from '@atlaskit/icon/glyph/editor/align-image-right';
10
10
  import EditorAlignImageCenter from '@atlaskit/icon/glyph/editor/align-image-center';
11
11
  import { alignAttributes } from '../../utils/rich-media-utils';
12
- import { pluginKey as widthPluginKey } from '../../plugins/width';
13
12
  import { DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
14
13
  import { addAnalytics } from '../../plugins/analytics/utils';
15
14
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, ACTION } from '../../plugins/analytics';
@@ -62,7 +61,7 @@ const getNodeWidth = (node, schema) => {
62
61
  }
63
62
  return node.firstChild && node.firstChild.attrs.width || node.attrs.width;
64
63
  };
65
- const makeAlign = (layout, nodeType) => {
64
+ const makeAlign = (layout, nodeType, widthPluginDependencyApi) => {
66
65
  return (state, dispatch) => {
67
66
  const {
68
67
  node
@@ -76,7 +75,7 @@ const makeAlign = (layout, nodeType) => {
76
75
  if (!dispatch) {
77
76
  return false;
78
77
  }
79
- const widthPluginState = widthPluginKey.getState(state);
78
+ const widthPluginState = widthPluginDependencyApi === null || widthPluginDependencyApi === void 0 ? void 0 : widthPluginDependencyApi.sharedState.currentState();
80
79
  if (!node || node.type !== nodeType || !widthPluginState) {
81
80
  return false;
82
81
  }
@@ -116,7 +115,7 @@ const makeAlign = (layout, nodeType) => {
116
115
  return true;
117
116
  };
118
117
  };
119
- const mapIconsToToolbarItem = (icons, layout, intl, nodeType) => icons.map(toolbarItem => {
118
+ const mapIconsToToolbarItem = (icons, layout, intl, nodeType, widthPluginDependencyApi) => icons.map(toolbarItem => {
120
119
  const {
121
120
  id,
122
121
  value
@@ -127,7 +126,7 @@ const mapIconsToToolbarItem = (icons, layout, intl, nodeType) => icons.map(toolb
127
126
  icon: toolbarItem.icon,
128
127
  title: intl.formatMessage(layoutToMessages[value]),
129
128
  selected: layout === value,
130
- onClick: makeAlign(value, nodeType)
129
+ onClick: makeAlign(value, nodeType, widthPluginDependencyApi)
131
130
  };
132
131
  });
133
132
  const shouldHideLayoutToolbar = (selection, {
@@ -135,7 +134,7 @@ const shouldHideLayoutToolbar = (selection, {
135
134
  }, allowResizingInTables) => {
136
135
  return hasParentNodeOfType([nodes.bodiedExtension, nodes.listItem, nodes.expand, nodes.nestedExpand, ...(allowResizingInTables ? [] : [nodes.table])].filter(Boolean))(selection);
137
136
  };
138
- const buildLayoutButtons = (state, intl, nodeType, allowResizing, allowResizingInTables, allowWrapping = true, allowAlignment = true) => {
137
+ const buildLayoutButtons = (state, intl, nodeType, widthPluginDependencyApi, allowResizing, allowResizingInTables, allowWrapping = true, allowAlignment = true) => {
139
138
  const {
140
139
  selection
141
140
  } = state;
@@ -145,9 +144,9 @@ const buildLayoutButtons = (state, intl, nodeType, allowResizing, allowResizingI
145
144
  const {
146
145
  layout
147
146
  } = selection.node.attrs;
148
- const alignmentToolbarItems = allowAlignment ? mapIconsToToolbarItem(alignmentIcons, layout, intl, nodeType) : [];
149
- const wrappingToolbarItems = allowWrapping ? mapIconsToToolbarItem(wrappingIcons, layout, intl, nodeType) : [];
150
- const breakOutToolbarItems = !allowResizing ? mapIconsToToolbarItem(breakoutIcons, layout, intl, nodeType) : [];
147
+ const alignmentToolbarItems = allowAlignment ? mapIconsToToolbarItem(alignmentIcons, layout, intl, nodeType, widthPluginDependencyApi) : [];
148
+ const wrappingToolbarItems = allowWrapping ? mapIconsToToolbarItem(wrappingIcons, layout, intl, nodeType, widthPluginDependencyApi) : [];
149
+ const breakOutToolbarItems = !allowResizing ? mapIconsToToolbarItem(breakoutIcons, layout, intl, nodeType, widthPluginDependencyApi) : [];
151
150
  const items = [...alignmentToolbarItems, ...getSeparatorBetweenAlignmentAndWrapping(allowAlignment, allowWrapping), ...wrappingToolbarItems, ...getSeparatorBeforeBreakoutItems(allowAlignment, allowWrapping, allowResizing), ...breakOutToolbarItems];
152
151
  return items;
153
152
  };
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { Resizable } from 're-resizable';
5
- import { gridTypeForLayout } from '../../plugins/grid';
5
+ import { gridTypeForLayout } from '@atlaskit/editor-common/utils';
6
6
  import { snapTo, handleSides } from './utils';
7
7
  import { richMediaClassName } from '@atlaskit/editor-common/styles';
8
8
  import { akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
@@ -1,7 +1,13 @@
1
- import React, { useEffect, useContext, useState } from 'react';
2
- import { pluginKey as widthPluginKey } from '../../plugins/width';
3
- import { WidthContext } from '@atlaskit/editor-common/ui';
4
- import { ContextPanel } from '../ContextPanel/context';
1
+ import React, { useContext, useEffect, useState } from 'react';
2
+ import { ContextPanel, WidthContext } from '@atlaskit/editor-common/ui';
3
+ // TODO: ED-17870 This workaround will be removed here.
4
+ // @ts-ignore
5
+ const widthPluginKey = {
6
+ key: 'widthPlugin$',
7
+ getState: state => {
8
+ return state['widthPlugin$'];
9
+ }
10
+ };
5
11
  // Why do we need this? Why not just use the width from the context directly rather than this?
6
12
  // Well my friend - some of the VR tests break, seemingly due to the fact that existing behaviour
7
13
  // assumes the initial value is 0, the width from context may not start from 0 however.
@@ -43,19 +43,24 @@ export const copyHTMLToClipboard = async (elementToCopy, plainTextToCopy) => {
43
43
  type: 'text/html'
44
44
  })
45
45
  });
46
-
47
46
  // @ts-ignore
48
47
  await navigator.clipboard.write([data]);
49
48
  } catch (error) {
50
49
  throw new Error('Clipboard api is not supported');
51
50
  }
52
51
  } else {
53
- // At the time of development, Firefox doesn't support ClipboardItem API
52
+ // ED-17083 extension copy seems have issue with ClipboardItem API
54
53
  // Hence of use of this polyfill
55
- const Clipboard = clipboard;
56
- const dt = new Clipboard.DT();
57
- dt.setData('text/plain', plainTextToCopy || elementToCopy.innerText);
58
- dt.setData('text/html', elementToCopy.innerHTML);
59
- Clipboard.write(dt);
54
+ copyHTMLToClipboardPolyfill(elementToCopy, plainTextToCopy);
60
55
  }
56
+ };
57
+
58
+ // At the time of development, Firefox doesn't support ClipboardItem API
59
+ // Hence of use of this polyfill
60
+ export const copyHTMLToClipboardPolyfill = (elementToCopy, plainTextToCopy) => {
61
+ const Clipboard = clipboard;
62
+ const dt = new Clipboard.DT();
63
+ dt.setData('text/plain', plainTextToCopy || elementToCopy.innerText);
64
+ dt.setData('text/html', elementToCopy.innerHTML);
65
+ Clipboard.write(dt);
61
66
  };
@@ -39,18 +39,31 @@ export class InstrumentedPlugin extends SafePlugin {
39
39
  return result;
40
40
  };
41
41
  }
42
+ const {
43
+ samplingRate: uiTrackingSamplingRate = 100
44
+ } = uiTracking;
42
45
  if (uiTracking.enabled && spec.view) {
43
46
  const originalView = spec.view.bind(spec);
44
47
  spec.view = editorView => {
45
48
  const self = this;
46
49
  const measure = `🦉${self.key}::view::update`;
47
50
  const view = originalView(editorView);
51
+ let uiTrackingSamplingCounter = 0;
48
52
  if (view.update) {
49
53
  const originalUpdate = view.update;
50
54
  view.update = (view, state) => {
51
- startMeasure(measure);
55
+ const shouldTrack = uiTrackingSamplingRate && uiTrackingSamplingCounter === 0;
56
+ if (shouldTrack) {
57
+ startMeasure(measure);
58
+ }
52
59
  originalUpdate(view, state);
53
- stopMeasure(measure, () => {});
60
+ if (shouldTrack) {
61
+ stopMeasure(measure, () => {});
62
+ }
63
+ uiTrackingSamplingCounter++;
64
+ if (uiTrackingSamplingRate && uiTrackingSamplingCounter >= uiTrackingSamplingRate) {
65
+ uiTrackingSamplingCounter = 0;
66
+ }
54
67
  };
55
68
  }
56
69
  return view;
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "183.1.1";
2
+ export const version = "184.0.0";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "183.1.1",
3
+ "version": "184.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -158,7 +158,7 @@ export default {
158
158
  'fabric.editor.inputQueryAssistiveTxt': 'Når resultater med automatisk udfyldning er tilgængelige, skal du bruge pil op og pil ned til at gennemse og Enter til at vælge. Brugere af touchenheder kan trykke eller stryge.',
159
159
  'fabric.editor.invalidDateError': 'Indtast en gyldig dato',
160
160
  'fabric.editor.invalidLink': 'Indtast et gyldigt link.',
161
- 'fabric.editor.inviteItem.title': '{userRole, select, admin {Inviter teammedlem til {productName}} trusted {Inviter teammedlem til {productName}} other {Tilføj teammedlem til {productName}}}',
161
+ 'fabric.editor.inviteItem.title': '{userRole, select, admin {Inviter teammedlemmer til {productName}} trusted {Inviter teammedlemmer til {productName}} other {Tilføj teammedlem til {productName}}}',
162
162
  'fabric.editor.italic': 'Kursiv',
163
163
  'fabric.editor.keyboardShortcuts': 'Tastaturgenveje',
164
164
  'fabric.editor.leftSidebar': 'Venstre sidebjælke',
@@ -8,13 +8,13 @@
8
8
  //
9
9
  export default {
10
10
  'fabric.editor.addAltText': '⁣⁢Alt text‌‍‌؜⁡؜⁡⁣⁤',
11
- 'fabric.editor.addImageBorder': '⁣⁢Add border⁠⁠‌⁡‍⁡؜‍؜؜⁠⁣⁤',
12
11
  'fabric.editor.alignCenter': '⁣⁢Align Center؜؜؜؜⁠⁠⁠‍⁠‍⁣⁤',
13
12
  'fabric.editor.alignLeft': '⁣⁢Align left⁠؜‌‌؜⁡‍‍⁠؜⁠؜⁡⁡⁣⁤',
14
13
  'fabric.editor.alignRight': '⁣⁢Align Right⁡؜⁡⁡⁠‍‍⁠؜⁣⁤',
15
14
  'fabric.editor.alignment': '⁣⁢Text alignment؜⁠⁡‌⁠؜⁡؜⁠⁣⁤',
16
15
  'fabric.editor.altText': '⁣⁢Alt text؜⁠؜‌⁡‌⁠‍‍‍‌‌‌‌⁣⁤',
17
16
  'fabric.editor.alttext.validation': '⁣⁢Please remove any special characters in alt text.؜⁠‌‍⁡؜⁣⁤',
17
+ 'fabric.editor.annotate': '⁣⁢Annotate‌⁡؜؜⁠‍⁡⁣⁤',
18
18
  'fabric.editor.annotationToolbar': '⁣⁢Annotation toolbar‍‍‍‌⁡‍⁠؜⁡‍⁠⁣⁤',
19
19
  'fabric.editor.backLink': '⁣⁢Go back‍⁡‌؜‌⁠⁣⁤',
20
20
  'fabric.editor.blockCardUnavailable': '⁣⁢The inline link is inside {node} and cannot have its view changed⁠؜⁡⁡⁠؜⁡⁠‍⁠⁠⁡‍⁣⁤',
@@ -62,7 +62,6 @@ export default {
62
62
  'fabric.editor.customPanel.description': '⁣⁢Add a note with an emoji and colored background؜؜‍‍⁠‍⁠؜⁡‌؜⁡⁣⁤',
63
63
  'fabric.editor.decisionPlaceholder': '⁣⁢Add a decision…⁡‌⁡‍؜⁡⁡⁠‍‌⁣⁤',
64
64
  'fabric.editor.defaultAltText': '⁣⁢List item⁡‍؜‌‍⁠‍⁠⁡‌⁣⁤',
65
- 'fabric.editor.description': '⁣⁢Description⁡‍‍‍‍⁣⁤',
66
65
  'fabric.editor.displayBlock': '⁣⁢Display card‍‌؜؜⁡⁠‍؜‍‍‌⁠⁠⁣⁤',
67
66
  'fabric.editor.displayEmbed': '⁣⁢Display embed⁡⁡‍⁠⁠‌⁣⁤',
68
67
  'fabric.editor.displayInline': '⁣⁢Display inline‍⁡‌‌؜‌⁠⁣⁤',
@@ -78,7 +77,6 @@ export default {
78
77
  'fabric.editor.editStatusColor': '⁣⁢Edit Status Color‌‌⁡‌‍؜⁡‍؜⁡⁣⁤',
79
78
  'fabric.editor.editStatusText': '⁣⁢Edit Status⁡‍‌‌‍؜⁡؜‍‍؜؜⁣⁤',
80
79
  'fabric.editor.editableContentLabel': '⁣⁢Editable content⁠؜‌‍⁠⁡⁠؜⁣⁤',
81
- 'fabric.editor.editorAssistiveLabel': '⁣⁢Main content area, start typing to enter text.‍‌⁡‌‌⁡؜؜⁣⁤',
82
80
  'fabric.editor.editorHelp': '⁣⁢Editor help‌؜‍؜؜‍‌⁠؜⁣⁤',
83
81
  'fabric.editor.editors': '⁣⁢Editors‍؜‌‍⁡‍⁠⁡؜‌‌⁡⁣⁤',
84
82
  'fabric.editor.elementBrowser.help': '⁣⁢Help⁡؜‌‍‍⁠⁠⁠⁡⁠⁣⁤',
@@ -103,18 +101,14 @@ export default {
103
101
  'fabric.editor.error': '⁣⁢Error؜‌⁡‌؜⁡‌⁣⁤',
104
102
  'fabric.editor.errorPanel': '⁣⁢Error panel⁠‍؜⁠⁠؜‍⁠⁠⁡⁣⁤',
105
103
  'fabric.editor.errorPanel.description': '⁣⁢Call out errors in a colored panel⁡⁠؜⁡‍‌‍؜‍⁣⁤',
106
- 'fabric.editor.extension.confirmDeleteLinkedModalMessage': '⁣⁢Deleting {nodeName} will break anything connected to it.‍‍‌؜⁠⁡⁠⁣⁤',
107
- 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '⁣⁢Delete⁠؜‌‍⁠⁠⁣⁤',
108
- 'fabric.editor.extension.deleteElementTitle': '⁣⁢Delete element⁠؜⁠⁡‍؜⁣⁤',
109
- 'fabric.editor.extension.sourceNoTitledName': '⁣⁢this element‍⁠⁡؜⁡⁠؜‌⁡⁠⁣⁤',
104
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessage': '⁣⁢Removing this extension will break anything connected to it.⁠؜⁡‌‌‍‌⁡⁠⁡⁡⁡⁡⁣⁤',
105
+ 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '⁣⁢Remove extension⁡‍‌‍⁠‌‍‍⁠⁠⁣⁤',
110
106
  'fabric.editor.extensions.config-panel.save-indicator': '⁣⁢All changes are always autosaved⁠‍؜‌‌‍‍⁡‌‌‍‌‌⁣⁤',
111
107
  'fabric.editor.find': '⁣⁢Find⁠‌⁠‌⁠‍؜⁣⁤',
112
108
  'fabric.editor.findNext': '⁣⁢Find next؜‌؜‌؜⁠⁣⁤',
113
109
  'fabric.editor.findPrevious': '⁣⁢Find previous⁠⁠⁡⁡‍‍⁡⁡⁣⁤',
114
110
  'fabric.editor.findReplaceToolbarButton': '⁣⁢Find and replace؜⁠‍‌⁡⁡؜‌⁡⁠‍‌⁣⁤',
115
111
  'fabric.editor.floatingToolbar.confirmModalCancel': '⁣⁢Cancel؜⁡‌‌⁡⁡‍؜⁡؜⁣⁤',
116
- 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': '⁣⁢Also delete connected elements؜؜؜؜؜‍⁡‍‌؜‌‌؜‍⁣⁤',
117
- 'fabric.editor.floatingToolbar.confirmModalConnectedUnit': '{amount, plural, =0 {⁣⁢{name}‍⁠⁠⁠⁡⁠⁡‌‍⁡؜⁡⁣⁤} one {⁣⁢{name} (+1 connected element)⁡⁡‌‍⁡‌⁡؜⁣⁤} other {⁣⁢{name} (+{amount,number} connected elements)⁡⁡‌‍⁡‌⁡؜⁣⁤}}',
118
112
  'fabric.editor.floatingToolbar.confirmModalHeading': '⁣⁢Are you sure?⁡⁡‌‍⁡‍⁡⁠؜‌‌⁣⁤',
119
113
  'fabric.editor.floatingToolbar.confirmModalOK': '⁣⁢OK‍‌؜⁡؜⁡‍⁡⁣⁤',
120
114
  'fabric.editor.floatingToolbar.floatingToolbarAnnouncer': '⁣⁢Floating toolbar controls have been opened⁠⁠‌‌؜‍⁣⁤',
@@ -143,14 +137,8 @@ export default {
143
137
  'fabric.editor.helpDialogTips': '⁣⁢Press {keyMap} to quickly open this dialog at any time؜⁡‍‍؜‌⁡؜‌‍⁣⁤',
144
138
  'fabric.editor.hyperlink.linkAriaLabel': '⁣⁢Link label⁠‌‌‌‍؜‌‍⁣⁤',
145
139
  'fabric.editor.hyperlink.searchLinkAriaDescription': '⁣⁢Suggestions will appear below as you type into the field⁠‍‍⁠‍‌؜⁡‍‍‍؜‍‌⁣⁤',
146
- 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {⁣⁢no results found⁠⁠‌‌؜‌⁡‌؜⁠‌⁣⁤} one {⁣⁢{count,number} result found؜⁠؜‌‍⁡‍⁡؜‌⁡‌⁣⁤} other {⁣⁢{count,number} results found؜⁠؜‌‍⁡‍⁡؜‌⁡‌⁣⁤}}',
140
+ 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {⁣⁢no results found⁡⁠؜؜؜؜⁣⁤} one {⁣⁢{count,number} result found؜⁠؜‌‍⁡‍⁡؜‌⁡‌⁣⁤} other {⁣⁢{count,number} results found؜⁠؜‌‍⁡‍⁡؜‌⁡‌⁣⁤}}',
147
141
  'fabric.editor.hyperlinkToolbarPlaceholder': '⁣⁢Paste or search for link‌‌‍؜‌؜‍⁡⁠⁣⁤',
148
- 'fabric.editor.imageBorderBold': '⁣⁢Bold‍‍‍‌⁠‍⁡‌؜‍⁡‍⁣⁤',
149
- 'fabric.editor.imageBorderColor': '⁣⁢Color⁠⁠⁠؜؜⁠⁠‍⁡؜؜⁣⁤',
150
- 'fabric.editor.imageBorderMedium': '⁣⁢Medium⁠‌⁠؜‍⁠؜⁠؜⁣⁤',
151
- 'fabric.editor.imageBorderOptions': '⁣⁢Border options؜‍‍؜⁠‍⁠؜‌‍‍⁣⁤',
152
- 'fabric.editor.imageBorderSize': '⁣⁢Size⁠⁡؜⁠⁡؜‌‍⁡⁠‍؜⁠‍⁡⁣⁤',
153
- 'fabric.editor.imageBorderSubtle': '⁣⁢Subtle⁡⁡‌⁠؜‍‌؜⁣⁤',
154
142
  'fabric.editor.improvement': '⁣⁢Improvement⁡⁡‍‍‌⁠‍⁡⁣⁤',
155
143
  'fabric.editor.indent': '⁣⁢Indent‌⁠‌⁠‍⁡⁣⁤',
156
144
  'fabric.editor.info': '⁣⁢Info⁡⁡‌⁡⁠؜؜‌‍⁠⁣⁤',
@@ -161,7 +149,7 @@ export default {
161
149
  'fabric.editor.inputQueryAssistiveTxt': '⁣⁢When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.‌‍؜‌؜⁡‍⁣⁤',
162
150
  'fabric.editor.invalidDateError': '⁣⁢Enter a valid date‍‌‌‌⁠⁠‌⁡؜‌‍⁣⁤',
163
151
  'fabric.editor.invalidLink': '⁣⁢Please enter a valid link.⁡⁠؜‌⁡⁠‍‌⁣⁤',
164
- 'fabric.editor.inviteItem.title': '{userRole, select, admin {⁣⁢Invite teammate to {productName}؜؜‌‍‌‍⁣⁤} trusted {⁣⁢Invite teammate to {productName}⁠؜‌؜‍؜⁡⁠⁣⁤} other {⁣⁢Add teammate to {productName}‌‍‌⁡‍؜⁡⁠‍⁠‍⁣⁤}}',
152
+ 'fabric.editor.inviteItem.title': '{userRole, select, admin {⁣⁢Invite teammate to {productName}‌⁠⁠؜⁠‍⁠‌⁡‌⁡⁡⁡⁠؜⁣⁤} trusted {⁣⁢Invite teammate to {productName}‌⁠⁠؜⁠‍⁠‌⁡‌⁡⁡⁡⁠؜⁣⁤} other {⁣⁢Add teammate to {productName}؜؜⁠⁠⁠‍⁡‌⁠⁡⁣⁤}}',
165
153
  'fabric.editor.italic': '⁣⁢Italic؜‍⁡؜⁡⁠‌؜‍؜‌⁣⁤',
166
154
  'fabric.editor.keyboardShortcuts': '⁣⁢Keyboard shortcuts‍⁠‌⁡؜⁠⁡⁠؜⁣⁤',
167
155
  'fabric.editor.leftSidebar': '⁣⁢Left sidebar⁡‍‍‍‍⁣⁤',
@@ -172,12 +160,9 @@ export default {
172
160
  'fabric.editor.matchCase': '⁣⁢Match case‌‌⁠⁡‍؜‍‍‌؜⁡⁡⁠‍⁣⁤',
173
161
  'fabric.editor.mediaAddLink': '⁣⁢Add link‍⁠⁠‌‍‌⁡‌؜‍⁣⁤',
174
162
  'fabric.editor.mediaGroupDeleteLabel': '⁣⁢delete‌‌⁠⁡⁠‍⁠⁣⁤',
175
- 'fabric.editor.mentionNode.label': '⁣⁢Tagged user⁠‍⁠‌⁡⁡‍‍‌‌⁡؜⁣⁤',
176
163
  'fabric.editor.mentionsAddLabel': '⁣⁢add-icon‌‌‌؜⁡‍‍⁡⁡‍‍⁠⁣⁤',
177
164
  'fabric.editor.mentionsIconLabel': '⁣⁢Mention⁠⁠⁠⁡‌⁠؜‍؜؜⁡⁠⁠⁣⁤',
178
165
  'fabric.editor.moreFormatting': '⁣⁢More formatting‍؜‌‌⁠‍‍؜‍⁡⁣⁤',
179
- 'fabric.editor.navigate.toolbar.editor': '⁣⁢Navigate to editor toolbar⁠؜⁡⁡⁡‍‌‌‍⁡⁣⁤',
180
- 'fabric.editor.navigate.toolbar.floating': '⁣⁢Navigate to floating toolbar⁠‍⁠‍⁠‍‍⁣⁤',
181
166
  'fabric.editor.noResultsFound': '⁣⁢No results‍؜‌‌‌؜⁡⁣⁤',
182
167
  'fabric.editor.noSearchResults': '⁣⁢No search results؜؜‍‍‍؜‍⁡⁣⁤',
183
168
  'fabric.editor.normal': '⁣⁢Normal text⁠⁠‍⁠⁠‌⁠‍؜⁡⁠‌⁡⁠⁣⁤',
@@ -198,7 +183,6 @@ export default {
198
183
  'fabric.editor.placeholderTextPlaceholder': '⁣⁢Add placeholder text‍‌⁠⁡‍⁡؜⁠‍⁠؜‍⁣⁤',
199
184
  'fabric.editor.quickInsert': '⁣⁢Quick insert⁠⁠⁠‌؜⁠⁣⁤',
200
185
  'fabric.editor.redo': '⁣⁢Redo⁠؜⁡؜؜⁡‌‍‍⁡⁣⁤',
201
- 'fabric.editor.removeImageBorder': '⁣⁢Remove border؜⁡‍؜⁡⁡‌⁣⁤',
202
186
  'fabric.editor.replace': '⁣⁢Replace‌⁠؜⁠⁠⁠‌⁠⁡⁠⁣⁤',
203
187
  'fabric.editor.replaceAll': '⁣⁢Replace all‌⁡؜‍⁠⁣⁤',
204
188
  'fabric.editor.replaceWith': '⁣⁢Replace with‍‍⁡؜⁡⁠⁡؜؜⁠⁠⁣⁤',
@@ -207,7 +191,6 @@ export default {
207
191
  'fabric.editor.searchResults': '{itemsLength, plural, one {⁣⁢{itemsLength,number} search result available⁡‍‍⁠‍؜⁠؜‌⁡⁣⁤} other {⁣⁢{itemsLength,number} search results available⁡‍‍⁠‍؜⁠؜‌⁡⁣⁤}}',
208
192
  'fabric.editor.selectLanguage': '⁣⁢Select language‍⁠‌؜‌⁡‍‌⁣⁤',
209
193
  'fabric.editor.settingsLinks': '⁣⁢Go to Link Preferences؜؜‌⁡‍؜⁠⁡⁠⁠‌⁠⁣⁤',
210
- 'fabric.editor.shortcut': '⁣⁢Text shortcut‌‌‌⁠‌‍⁠‍⁡‌‌⁣⁤',
211
194
  'fabric.editor.single': '⁣⁢Single column⁡‍⁠‌؜⁡‍‌‍⁣⁤',
212
195
  'fabric.editor.statusPlaceholder': '⁣⁢Set a status⁠؜⁠⁠⁡⁡‍⁣⁤',
213
196
  'fabric.editor.story': '⁣⁢Story‌⁡⁡؜؜⁡⁡⁠⁡⁠⁣⁤',
@@ -229,17 +212,9 @@ export default {
229
212
  'fabric.editor.threeColumns': '⁣⁢Three columns؜‍‌‍‌‌‌‌⁠؜⁣⁤',
230
213
  'fabric.editor.threeColumnsWithSidebars': '⁣⁢Three columns with sidebars؜‌⁠⁠‍⁡؜‍؜؜⁣⁤',
231
214
  'fabric.editor.toolbarLabel': '⁣⁢Editor toolbar‌‍؜‍؜⁠‌⁠‍‍⁣⁤',
232
- 'fabric.editor.toolbarMediaTitle': '⁣⁢Add image, video, or file‌‍‍؜‍⁠⁣⁤',
215
+ 'fabric.editor.toolbarMediaTitle': '⁣⁢Files & images؜⁡⁡‌⁡‌⁡⁡‍⁡⁠⁡⁣⁤',
233
216
  'fabric.editor.twoColumns': '⁣⁢Two columns⁡‌‍؜‌‍؜‍‍‍⁡⁣⁤',
234
- 'fabric.editor.typeAhead.popupLabel': '⁣⁢Typeahead results⁠؜⁡؜⁠‍‍⁠‌⁣⁤',
235
- 'fabric.editor.typeAhead.quickInsertInputLabel': '⁣⁢Begin typing to search or filter shortcut options⁠⁠‍‌⁡‍⁠؜⁠⁡‍⁣⁤',
236
- 'fabric.editor.typeAhead.quickInsertPopupLabel': '⁣⁢Shortcuts for inserts and formatting⁡؜؜‌⁡‌‌‌⁣⁤',
237
- 'fabric.editor.typeahead.emojiInputLabel': '⁣⁢Begin typing to search or filter emoji options‌‍⁠‌⁡⁠⁡⁠‍‍⁡‍⁣⁤',
238
- 'fabric.editor.typeahead.emojiListItemLabel': '⁣⁢Emoji {name} Text Shortcut {shortcut}⁠؜⁠⁡⁡⁡‍⁡⁡‌‌⁣⁤',
239
- 'fabric.editor.typeahead.emojiPopupLabel': '⁣⁢Emoji shortcuts؜⁠‍⁡‍⁠⁡⁠⁡‌‍؜‍⁣⁤',
240
- 'fabric.editor.typeahead.mentionInputLabel': '⁣⁢Begin typing to search for users to tag⁡⁡‌⁠‌؜⁡‍‍⁠‍⁠⁠‌⁣⁤',
241
- 'fabric.editor.typeahead.mentionPopupLabel': '⁣⁢Users you can tag‌‍‌؜⁡⁡؜⁡⁣⁤',
242
- 'fabric.editor.typeahead.metionListItemLabel': '⁣⁢User {name} @{shortName}‌‍؜⁠⁡‌‌⁡⁣⁤',
217
+ 'fabric.editor.typeAheadResultLabel': '⁣⁢TypeAhead results⁡‌‌⁠؜⁠‍⁠⁣⁤',
243
218
  'fabric.editor.unableToOpenLink': '⁣⁢Unable to open this link⁡؜‍‌‌⁠⁡⁡‌؜⁣⁤',
244
219
  'fabric.editor.underline': '⁣⁢Underline⁠⁠‍‍‌‌⁠‍⁣⁤',
245
220
  'fabric.editor.undo': '⁣⁢Undo⁡⁡⁡‌⁠⁡‌⁡‌⁠⁡⁣⁤',
@@ -253,6 +228,5 @@ export default {
253
228
  'fabric.editor.warningPanel': '⁣⁢Warning panel⁡‍‌؜⁠‌⁡؜⁠؜⁡⁡⁠؜⁣⁤',
254
229
  'fabric.editor.warningPanel.description': '⁣⁢Add a note of caution in a colored panel‌⁠⁡‍⁠؜‍⁡⁡⁡⁣⁤',
255
230
  'fabric.editor.wrapLeft': '⁣⁢Wrap left؜‍⁡‌⁡⁠‌‌‌⁡⁣⁤',
256
- 'fabric.editor.wrapRight': '⁣⁢Wrap right‍؜؜⁡؜⁣⁤',
257
- 'fabric.emoji.label': '⁣⁢Emoji‌⁠؜‌⁠‍⁠؜⁠‌؜⁡⁣⁤'
231
+ 'fabric.editor.wrapRight': '⁣⁢Wrap right‍؜؜⁡؜⁣⁤'
258
232
  };
@@ -158,7 +158,7 @@ export default {
158
158
  'fabric.editor.inputQueryAssistiveTxt': 'Una volta che i risultati del completamento automatico sono disponibili, utilizza le frecce su e giù per rivedere i dati e premi Invio per selezionarli. Gli utenti di dispositivi touch possono utilizzare i movimenti di tocco o scorrimento.',
159
159
  'fabric.editor.invalidDateError': 'Inserisci una data valida',
160
160
  'fabric.editor.invalidLink': 'Inserisci un link valido.',
161
- 'fabric.editor.inviteItem.title': '{userRole, select, admin {Invita un collega in {productName}} trusted {Invita un collega in {productName}} other {Aggiungi un collega a {productName}}}',
161
+ 'fabric.editor.inviteItem.title': '{userRole, select, admin {Invita un collega in {productName}} trusted {Invita un collega in {productName}} other {Aggiunti un collega a {productName}}}',
162
162
  'fabric.editor.italic': 'Corsivo',
163
163
  'fabric.editor.keyboardShortcuts': 'Scelte rapide da tastiera',
164
164
  'fabric.editor.leftSidebar': 'Barra laterale sinistra',
@@ -140,11 +140,11 @@ export default {
140
140
  'fabric.editor.helpDialogTips': 'Trykk på {keyMap} for å åpne denne dialogen',
141
141
  'fabric.editor.hyperlink.linkAriaLabel': 'Koblingsetikett',
142
142
  'fabric.editor.hyperlink.searchLinkAriaDescription': 'Forslag vises nedenfor etter hvert som du skriver inn i feltet',
143
- 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {finner ingen resultater} one {fant {count,number} resultat} other {fant {count,number} resultater}}',
143
+ 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {fant ingen resultater} one {fant {count,number} resultat} other {fant {count,number} resultater}}',
144
144
  'fabric.editor.hyperlinkToolbarPlaceholder': 'Lim inn eller søk etter kobling',
145
145
  'fabric.editor.imageBorderBold': 'Fet',
146
146
  'fabric.editor.imageBorderColor': 'Farge',
147
- 'fabric.editor.imageBorderMedium': 'Medium',
147
+ 'fabric.editor.imageBorderMedium': 'Middels',
148
148
  'fabric.editor.imageBorderOptions': 'Alternativer for kantlinje',
149
149
  'fabric.editor.imageBorderSize': 'Størrelse',
150
150
  'fabric.editor.imageBorderSubtle': 'Diskret',
@@ -158,7 +158,7 @@ export default {
158
158
  'fabric.editor.inputQueryAssistiveTxt': 'Når resultater for autofullføring er tilgjengelig, bruker du pil opp og pil ned for å se gjennom og enter for å velge. Brukere av berøringsenheter kan utforske ved å berøre eller sveipe.',
159
159
  'fabric.editor.invalidDateError': 'Oppgi en gyldig dato',
160
160
  'fabric.editor.invalidLink': 'Skriv inn en gyldig kobling.',
161
- 'fabric.editor.inviteItem.title': '{userRole, select, admin {Inviter teammedlem til {productName}} trusted {Inviter teammedlem til {productName}} other {Legg til teammedlem i {productName}}}',
161
+ 'fabric.editor.inviteItem.title': '{userRole, select, admin {Inviter teammedlemmer til {productName}} trusted {Inviter teammedlemmer til {productName}} other {Legg til teammedlem i {productName}}}',
162
162
  'fabric.editor.italic': 'Kursiv',
163
163
  'fabric.editor.keyboardShortcuts': 'Tastatursnarveier',
164
164
  'fabric.editor.leftSidebar': 'Sidelinje til venstre',
@@ -8,7 +8,7 @@
8
8
  //Dutch (Netherlands)
9
9
  export default {
10
10
  'fabric.editor.addAltText': 'Alt-tekst',
11
- 'fabric.editor.addImageBorder': 'Rand toevoegen',
11
+ 'fabric.editor.addImageBorder': 'Kader toevoegen',
12
12
  'fabric.editor.alignCenter': 'Midden uitgelijnd',
13
13
  'fabric.editor.alignLeft': 'Links uitlijnen',
14
14
  'fabric.editor.alignRight': 'Rechts uitgelijnd',
@@ -145,7 +145,7 @@ export default {
145
145
  'fabric.editor.imageBorderBold': 'Vet',
146
146
  'fabric.editor.imageBorderColor': 'Kleur',
147
147
  'fabric.editor.imageBorderMedium': 'Medium',
148
- 'fabric.editor.imageBorderOptions': 'Randopties',
148
+ 'fabric.editor.imageBorderOptions': 'Kaderopties',
149
149
  'fabric.editor.imageBorderSize': 'Grootte',
150
150
  'fabric.editor.imageBorderSubtle': 'Subtiel',
151
151
  'fabric.editor.improvement': 'Verbetering',
@@ -158,7 +158,7 @@ export default {
158
158
  'fabric.editor.inputQueryAssistiveTxt': 'Wanneer resultaten voor automatisch aanvullen beschikbaar zijn, kun je de pijlen naar boven en beneden gebruiken om ze te bekijken en Enter om ze te selecteren. Touch-apparaatgebruikers verkennen door middel van aanraking of met veegbewegingen.',
159
159
  'fabric.editor.invalidDateError': 'Voer een geldige datum in',
160
160
  'fabric.editor.invalidLink': 'Voer een geldige link in.',
161
- 'fabric.editor.inviteItem.title': '{userRole, select, admin {Nodig teamgenoot uit voor {productName}} trusted {Nodig teamgenoot uit voor {productName}} other {Voeg teamgenoot toe aan {productName}}}',
161
+ 'fabric.editor.inviteItem.title': '{userRole, select, admin {Nodig teamgenoten uit voor {productName}} trusted {Nodig teamgenoten uit voor {productName}} other {Voeg teamgenoten toe aan {productName}}}',
162
162
  'fabric.editor.italic': 'Cursief',
163
163
  'fabric.editor.keyboardShortcuts': 'Sneltoetsen',
164
164
  'fabric.editor.leftSidebar': 'Zijbalk aan linkerkant',
@@ -195,7 +195,7 @@ export default {
195
195
  'fabric.editor.placeholderTextPlaceholder': 'Voeg plaatsaanduidingstekst toe',
196
196
  'fabric.editor.quickInsert': 'Snel invoegen',
197
197
  'fabric.editor.redo': 'Pas opnieuw toe',
198
- 'fabric.editor.removeImageBorder': 'Rand verwijderen',
198
+ 'fabric.editor.removeImageBorder': 'Kader verwijderen',
199
199
  'fabric.editor.replace': 'Vervangen',
200
200
  'fabric.editor.replaceAll': 'Alles vervangen',
201
201
  'fabric.editor.replaceWith': 'Vervangen met',
@@ -140,7 +140,7 @@ export default {
140
140
  'fabric.editor.helpDialogTips': 'Naciśnij {keyMap}, aby szybko otworzyć okno dialogowe w dowolnym momencie',
141
141
  'fabric.editor.hyperlink.linkAriaLabel': 'Etykieta łącza',
142
142
  'fabric.editor.hyperlink.searchLinkAriaDescription': 'Sugestie będą pojawiały się poniżej w miarę wpisywania tekstu w polu',
143
- 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {Nie znaleziono wyników} one {znaleziono {count,number} wynik} few {znaleziono {count,number} wyniki} many {znaleziono {count,number} wyników} other {znaleziono {count,number} wyniku}}',
143
+ 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {nie znaleziono wyników} one {znaleziono {count,number} wynik} few {znaleziono {count,number} wyniki} many {znaleziono {count,number} wyników} other {znaleziono {count,number} wyniku}}',
144
144
  'fabric.editor.hyperlinkToolbarPlaceholder': 'Wklej lub wyszukaj łącze',
145
145
  'fabric.editor.imageBorderBold': 'Pogrubiony',
146
146
  'fabric.editor.imageBorderColor': 'Kolor',
@@ -158,7 +158,7 @@ export default {
158
158
  'fabric.editor.inputQueryAssistiveTxt': 'Quando os resultados do preenchimento automático estiverem disponíveis, use as setas para cima e para baixo para analisar e a tecla enter para selecionar. Toque nos usuários do dispositivo, explore por toque ou com gestos de deslizar.',
159
159
  'fabric.editor.invalidDateError': 'Informe uma data válida',
160
160
  'fabric.editor.invalidLink': 'Insira um link válido.',
161
- 'fabric.editor.inviteItem.title': '{userRole, select, admin {Convidar colega de equipe para {productName}} trusted {Convidar colega de equipe para {productName}} other {Adicionar colega de equipe ao {productName}}}',
161
+ 'fabric.editor.inviteItem.title': '{userRole, select, admin {Convidar colega de equipe para {productName}} trusted {Convidar colega de equipe para {productName}} other {Adicionar colega de equipe para {productName}}}',
162
162
  'fabric.editor.italic': 'Itálico',
163
163
  'fabric.editor.keyboardShortcuts': 'Atalhos de teclado',
164
164
  'fabric.editor.leftSidebar': 'Barra lateral esquerda',
@@ -140,7 +140,7 @@ export default {
140
140
  'fabric.editor.helpDialogTips': 'Это окно можно быстро открыть в любое время нажатием {keyMap}',
141
141
  'fabric.editor.hyperlink.linkAriaLabel': 'Метка для ссылки',
142
142
  'fabric.editor.hyperlink.searchLinkAriaDescription': 'Предложения будут появляться по мере ввода текста в поле',
143
- 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {ничего не найдено} one {найден {count,number} результат} few {найдено {count,number} результата} many {найдено {count,number} результатов} other {найдено {count,number} результата}}',
143
+ 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {нет результатов} one {найден {count,number} результат} few {найдено {count,number} результата} many {найдено {count,number} результатов} other {найдено {count,number} результата}}',
144
144
  'fabric.editor.hyperlinkToolbarPlaceholder': 'Вставить или искать ссылку',
145
145
  'fabric.editor.imageBorderBold': 'Широкая',
146
146
  'fabric.editor.imageBorderColor': 'Цвет',
@@ -142,7 +142,7 @@ export default {
142
142
  'fabric.editor.hyperlink.searchLinkAriaDescription': 'ข้อเสนอแนะจะปรากฏด้านล่างเมื่อคุณพิมพ์ลงในช่อง',
143
143
  'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {ไม่พบผลลัพธ์} other {พบผลลัพธ์ {count,number} รายการ}}',
144
144
  'fabric.editor.hyperlinkToolbarPlaceholder': 'วางหรือค้นหาลิงก์',
145
- 'fabric.editor.imageBorderBold': 'เข้ม',
145
+ 'fabric.editor.imageBorderBold': 'ตัวหนา',
146
146
  'fabric.editor.imageBorderColor': 'สี',
147
147
  'fabric.editor.imageBorderMedium': 'ปานกลาง',
148
148
  'fabric.editor.imageBorderOptions': 'ตัวเลือกขอบ',
@@ -158,7 +158,7 @@ export default {
158
158
  'fabric.editor.inputQueryAssistiveTxt': 'เมื่อผลการป้อนอัตโนมัติพร้อมใช้งานแล้ว ให้ใช้ลูกศรขึ้นและลงเพื่อตรวจสอบและกด Enter เพื่อเลือก ผู้ใช้อุปกรณ์สัมผัส สำรวจโดยการแตะหรือการปัดนิ้ว',
159
159
  'fabric.editor.invalidDateError': 'ป้อนวันที่ที่ถูกต้อง',
160
160
  'fabric.editor.invalidLink': 'โปรดป้อนลิงก์ที่ถูกต้อง',
161
- 'fabric.editor.inviteItem.title': '{userRole, select, admin {เชิญเพื่อนร่วมทีมไปยัง {productName}} trusted {เชิญเพื่อนร่วมทีมไปยัง {productName}} other {เพิ่มเพื่อนร่วมทีมไปยัง {productName}}}',
161
+ 'fabric.editor.inviteItem.title': '{userRole, select, admin {เชิญเพื่อนร่วมทีมให้ไปยัง {productName}} trusted {เชิญเพื่อนร่วมทีมให้ไปยัง {productName}} other {เพิ่มเพื่อนร่วมทีมไปยัง {productName}}}',
162
162
  'fabric.editor.italic': 'ตัวเอียง',
163
163
  'fabric.editor.keyboardShortcuts': 'ปุ่มลัด',
164
164
  'fabric.editor.leftSidebar': 'แถบด้านซ้าย',