@atlaskit/editor-plugin-layout 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 2.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#135586](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135586)
8
+ [`3aeba66081612`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3aeba66081612) -
9
+ ED-26593 Add missing i18n for editor control
10
+ - Updated dependencies
11
+
3
12
  ## 2.4.1
4
13
 
5
14
  ### Patch Changes
@@ -238,7 +238,7 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(state, intl, pos
238
238
  var overflowMenu = {
239
239
  type: 'overflow-dropdown',
240
240
  options: [_objectSpread({
241
- title: 'Copy',
241
+ title: intl.formatMessage(_messages.default.copyToClipboard),
242
242
  onClick: function onClick() {
243
243
  var _api$core, _api$floatingToolbar;
244
244
  api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute( // @ts-ignore
@@ -246,13 +246,13 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(state, intl, pos
246
246
  return true;
247
247
  },
248
248
  icon: /*#__PURE__*/_react.default.createElement(_copy.default, {
249
- label: "Copy"
249
+ label: ""
250
250
  })
251
251
  }, hoverDecorationProps(nodeType, _editorSharedStyles.akEditorSelectedNodeClassName)), _objectSpread({
252
- title: 'Delete',
252
+ title: intl.formatMessage(_messages.default.delete),
253
253
  onClick: (0, _actions.deleteActiveLayoutNode)(editorAnalyticsAPI),
254
254
  icon: /*#__PURE__*/_react.default.createElement(_deleteEditorRemove.default, {
255
- label: "Delete"
255
+ label: ""
256
256
  })
257
257
  }, hoverDecorationProps(nodeType))]
258
258
  };
@@ -220,7 +220,7 @@ export const buildToolbar = (state, intl, pos, _allowBreakout, addSidebarLayouts
220
220
  const overflowMenu = {
221
221
  type: 'overflow-dropdown',
222
222
  options: [{
223
- title: 'Copy',
223
+ title: intl.formatMessage(commonMessages.copyToClipboard),
224
224
  onClick: () => {
225
225
  var _api$core, _api$floatingToolbar;
226
226
  api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute( // @ts-ignore
@@ -228,14 +228,14 @@ export const buildToolbar = (state, intl, pos, _allowBreakout, addSidebarLayouts
228
228
  return true;
229
229
  },
230
230
  icon: /*#__PURE__*/React.createElement(CopyIcon, {
231
- label: "Copy"
231
+ label: ""
232
232
  }),
233
233
  ...hoverDecorationProps(nodeType, akEditorSelectedNodeClassName)
234
234
  }, {
235
- title: 'Delete',
235
+ title: intl.formatMessage(commonMessages.delete),
236
236
  onClick: deleteActiveLayoutNode(editorAnalyticsAPI),
237
237
  icon: /*#__PURE__*/React.createElement(DeleteIcon, {
238
- label: "Delete"
238
+ label: ""
239
239
  }),
240
240
  ...hoverDecorationProps(nodeType)
241
241
  }]
@@ -228,7 +228,7 @@ export var buildToolbar = function buildToolbar(state, intl, pos, _allowBreakout
228
228
  var overflowMenu = {
229
229
  type: 'overflow-dropdown',
230
230
  options: [_objectSpread({
231
- title: 'Copy',
231
+ title: intl.formatMessage(commonMessages.copyToClipboard),
232
232
  onClick: function onClick() {
233
233
  var _api$core, _api$floatingToolbar;
234
234
  api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute( // @ts-ignore
@@ -236,13 +236,13 @@ export var buildToolbar = function buildToolbar(state, intl, pos, _allowBreakout
236
236
  return true;
237
237
  },
238
238
  icon: /*#__PURE__*/React.createElement(CopyIcon, {
239
- label: "Copy"
239
+ label: ""
240
240
  })
241
241
  }, hoverDecorationProps(nodeType, akEditorSelectedNodeClassName)), _objectSpread({
242
- title: 'Delete',
242
+ title: intl.formatMessage(commonMessages.delete),
243
243
  onClick: deleteActiveLayoutNode(editorAnalyticsAPI),
244
244
  icon: /*#__PURE__*/React.createElement(DeleteIcon, {
245
- label: "Delete"
245
+ label: ""
246
246
  })
247
247
  }, hoverDecorationProps(nodeType))]
248
248
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
- "@atlaskit/editor-common": "^102.15.0",
37
+ "@atlaskit/editor-common": "^102.18.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
40
40
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
@@ -43,10 +43,10 @@
43
43
  "@atlaskit/editor-plugin-width": "^3.0.0",
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
45
  "@atlaskit/editor-shared-styles": "^3.4.0",
46
- "@atlaskit/icon": "^25.3.0",
46
+ "@atlaskit/icon": "^25.5.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/tmp-editor-statsig": "^4.6.0",
49
- "@atlaskit/tokens": "^4.5.0",
49
+ "@atlaskit/tokens": "^4.6.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1"
52
52
  },