@atlaskit/editor-plugin-media 2.3.19 → 2.3.21

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,20 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 2.3.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.3.20
10
+
11
+ ### Patch Changes
12
+
13
+ - [#135586](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135586)
14
+ [`3aeba66081612`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3aeba66081612) -
15
+ ED-26593 Add missing i18n for editor control
16
+ - Updated dependencies
17
+
3
18
  ## 2.3.19
4
19
 
5
20
  ### Patch Changes
@@ -807,7 +807,7 @@ var floatingToolbar = exports.floatingToolbar = function floatingToolbar(state,
807
807
  type: 'overflow-dropdown',
808
808
  id: 'media',
809
809
  options: [].concat((0, _toConsumableArray2.default)(customOptions), [_objectSpread({
810
- title: 'Copy',
810
+ title: intl === null || intl === void 0 ? void 0 : intl.formatMessage(_messages.default.copyToClipboard),
811
811
  onClick: function onClick() {
812
812
  var _pluginInjectionApi$c4, _pluginInjectionApi$f3;
813
813
  pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c4 = pluginInjectionApi.core) === null || _pluginInjectionApi$c4 === void 0 || _pluginInjectionApi$c4.actions.execute( // @ts-ignore
@@ -818,7 +818,7 @@ var floatingToolbar = exports.floatingToolbar = function floatingToolbar(state,
818
818
  label: ""
819
819
  })
820
820
  }, hoverDecorationProps(nodeType, _editorSharedStyles.akEditorSelectedNodeClassName)), _objectSpread({
821
- title: 'Delete',
821
+ title: intl === null || intl === void 0 ? void 0 : intl.formatMessage(_messages.default.delete),
822
822
  onClick: remove,
823
823
  icon: /*#__PURE__*/_react.default.createElement(_delete.default, {
824
824
  label: ""
@@ -802,7 +802,7 @@ export const floatingToolbar = (state, intl, options = {}, pluginInjectionApi) =
802
802
  type: 'overflow-dropdown',
803
803
  id: 'media',
804
804
  options: [...customOptions, {
805
- title: 'Copy',
805
+ title: intl === null || intl === void 0 ? void 0 : intl.formatMessage(commonMessages.copyToClipboard),
806
806
  onClick: () => {
807
807
  var _pluginInjectionApi$c10, _pluginInjectionApi$f5;
808
808
  pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$c10 = pluginInjectionApi.core) === null || _pluginInjectionApi$c10 === void 0 ? void 0 : _pluginInjectionApi$c10.actions.execute( // @ts-ignore
@@ -814,7 +814,7 @@ export const floatingToolbar = (state, intl, options = {}, pluginInjectionApi) =
814
814
  }),
815
815
  ...hoverDecorationProps(nodeType, akEditorSelectedNodeClassName)
816
816
  }, {
817
- title: 'Delete',
817
+ title: intl === null || intl === void 0 ? void 0 : intl.formatMessage(commonMessages.delete),
818
818
  onClick: remove,
819
819
  icon: /*#__PURE__*/React.createElement(DeleteIcon, {
820
820
  label: ""
@@ -797,7 +797,7 @@ export var floatingToolbar = function floatingToolbar(state, intl) {
797
797
  type: 'overflow-dropdown',
798
798
  id: 'media',
799
799
  options: [].concat(_toConsumableArray(customOptions), [_objectSpread({
800
- title: 'Copy',
800
+ title: intl === null || intl === void 0 ? void 0 : intl.formatMessage(commonMessages.copyToClipboard),
801
801
  onClick: function onClick() {
802
802
  var _pluginInjectionApi$c4, _pluginInjectionApi$f3;
803
803
  pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c4 = pluginInjectionApi.core) === null || _pluginInjectionApi$c4 === void 0 || _pluginInjectionApi$c4.actions.execute( // @ts-ignore
@@ -808,7 +808,7 @@ export var floatingToolbar = function floatingToolbar(state, intl) {
808
808
  label: ""
809
809
  })
810
810
  }, hoverDecorationProps(nodeType, akEditorSelectedNodeClassName)), _objectSpread({
811
- title: 'Delete',
811
+ title: intl === null || intl === void 0 ? void 0 : intl.formatMessage(commonMessages.delete),
812
812
  onClick: remove,
813
813
  icon: /*#__PURE__*/React.createElement(DeleteIcon, {
814
814
  label: ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "2.3.19",
3
+ "version": "2.3.21",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
39
39
  "@atlaskit/analytics-next": "^11.0.0",
40
40
  "@atlaskit/button": "^23.0.0",
41
- "@atlaskit/editor-common": "^102.17.0",
41
+ "@atlaskit/editor-common": "^103.0.0",
42
42
  "@atlaskit/editor-palette": "^2.1.0",
43
43
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
44
44
  "@atlaskit/editor-plugin-annotation": "^2.2.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/editor-shared-styles": "^3.4.0",
57
57
  "@atlaskit/editor-tables": "^2.9.0",
58
58
  "@atlaskit/form": "^12.0.0",
59
- "@atlaskit/icon": "^25.4.0",
59
+ "@atlaskit/icon": "^25.5.0",
60
60
  "@atlaskit/media-card": "^79.0.0",
61
61
  "@atlaskit/media-client": "^32.0.0",
62
62
  "@atlaskit/media-client-react": "^4.0.0",
@@ -66,11 +66,11 @@
66
66
  "@atlaskit/media-ui": "^28.1.0",
67
67
  "@atlaskit/media-viewer": "^52.0.0",
68
68
  "@atlaskit/platform-feature-flags": "^1.1.0",
69
- "@atlaskit/primitives": "^14.2.0",
69
+ "@atlaskit/primitives": "^14.3.0",
70
70
  "@atlaskit/textfield": "^8.0.0",
71
71
  "@atlaskit/theme": "^18.0.0",
72
72
  "@atlaskit/tmp-editor-statsig": "^4.6.0",
73
- "@atlaskit/tokens": "^4.5.0",
73
+ "@atlaskit/tokens": "^4.7.0",
74
74
  "@atlaskit/tooltip": "^20.0.0",
75
75
  "@babel/runtime": "^7.0.0",
76
76
  "@emotion/react": "^11.7.1",