@atlaskit/editor-plugin-media-insert 21.0.0 → 23.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @atlaskit/editor-plugin-media-insert
2
2
 
3
+ ## 23.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
8
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
9
+
10
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
11
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
12
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
13
+
14
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
15
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
16
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
22
+ ## 22.0.0
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 21.0.0
4
29
 
5
30
  ### Patch Changes
@@ -10,7 +10,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
- var _reactIntlNext = require("react-intl-next");
13
+ var _reactIntl = require("react-intl");
14
14
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
15
15
  var _analytics = require("@atlaskit/editor-common/analytics");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
@@ -55,7 +55,7 @@ var LocalMedia = exports.LocalMedia = /*#__PURE__*/_react.default.forwardRef(fun
55
55
  dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
56
56
  closeMediaInsertPicker = _ref.closeMediaInsertPicker,
57
57
  insertFile = _ref.insertFile;
58
- var intl = (0, _reactIntlNext.useIntl)();
58
+ var intl = (0, _reactIntl.useIntl)();
59
59
  var strings = {
60
60
  upload: intl.formatMessage(_messages.mediaInsertMessages.upload),
61
61
  networkError: intl.formatMessage(_messages.mediaInsertMessages.localFileNetworkErrorMessage),
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.MediaCard = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _reactIntlNext = require("react-intl-next");
9
+ var _reactIntl = require("react-intl");
10
10
  var _messages = require("@atlaskit/editor-common/messages");
11
11
  var _mediaCard = require("@atlaskit/media-card");
12
12
  var maxDimensions = {
@@ -16,7 +16,7 @@ var maxDimensions = {
16
16
  var MediaCard = exports.MediaCard = function MediaCard(_ref) {
17
17
  var attrs = _ref.attrs,
18
18
  mediaProvider = _ref.mediaProvider;
19
- var intl = (0, _reactIntlNext.useIntl)();
19
+ var intl = (0, _reactIntl.useIntl)();
20
20
  var mediaAlt = intl.formatMessage(_messages.mediaInsertMessages.mediaAlt);
21
21
  var dimensions = _react.default.useMemo(function () {
22
22
  return {
@@ -14,7 +14,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
14
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
16
  var _react = _interopRequireWildcard(require("react"));
17
- var _reactIntlNext = require("react-intl-next");
17
+ var _reactIntl = require("react-intl");
18
18
  var _adfSchema = require("@atlaskit/adf-schema");
19
19
  var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
20
20
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
@@ -106,7 +106,7 @@ function MediaFromURL(_ref) {
106
106
  isOnlyExternalLinks = _ref.isOnlyExternalLinks,
107
107
  customizedUrlValidation = _ref.customizedUrlValidation,
108
108
  customizedHelperMessage = _ref.customizedHelperMessage;
109
- var intl = (0, _reactIntlNext.useIntl)();
109
+ var intl = (0, _reactIntl.useIntl)();
110
110
  var strings = {
111
111
  loadPreview: intl.formatMessage(_messages.mediaInsertMessages.loadPreview),
112
112
  insert: intl.formatMessage(_messages.mediaInsertMessages.insert),
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.MediaInsertPicker = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _reactIntlNext = require("react-intl-next");
11
+ var _reactIntl = require("react-intl");
12
12
  var _analytics = require("@atlaskit/editor-common/analytics");
13
13
  var _getDomRefFromSelection = require("@atlaskit/editor-common/get-dom-ref-from-selection");
14
14
  var _hooks = require("@atlaskit/editor-common/hooks");
@@ -79,7 +79,7 @@ var MediaInsertPicker = exports.MediaInsertPicker = function MediaInsertPicker(_
79
79
  targetRef = (0, _getDomRefFromSelection.getDomRefFromSelection)(editorView, _analytics.ACTION_SUBJECT_ID.PICKER_MEDIA, api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions);
80
80
  mountPoint = popupsMountPoint;
81
81
  }
82
- var intl = (0, _reactIntlNext.useIntl)();
82
+ var intl = (0, _reactIntl.useIntl)();
83
83
  var focusEditor = (0, _useFocusEditor.useFocusEditor)({
84
84
  editorView: editorView
85
85
  });
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import Button from '@atlaskit/button/new';
4
4
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
4
4
  import { Card, CardLoading } from '@atlaskit/media-card';
5
5
  const maxDimensions = {
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { Fragment } from 'react';
3
- import { useIntl } from 'react-intl-next';
3
+ import { useIntl } from 'react-intl';
4
4
  import { isSafeUrl } from '@atlaskit/adf-schema';
5
5
  import ButtonGroup from '@atlaskit/button/button-group';
6
6
  import Button from '@atlaskit/button/new';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { useIntl } from 'react-intl-next';
3
+ import { useIntl } from 'react-intl';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { getDomRefFromSelection } from '@atlaskit/editor-common/get-dom-ref-from-selection';
6
6
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  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; }
5
5
  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) { _defineProperty(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; }
6
6
  import React, { useCallback } from 'react';
7
- import { useIntl } from 'react-intl-next';
7
+ import { useIntl } from 'react-intl';
8
8
  import Button from '@atlaskit/button/new';
9
9
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
10
10
  import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
4
4
  import { Card, CardLoading } from '@atlaskit/media-card';
5
5
  var maxDimensions = {
@@ -8,7 +8,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
  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; }
9
9
  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) { _defineProperty(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; }
10
10
  import React, { Fragment } from 'react';
11
- import { useIntl } from 'react-intl-next';
11
+ import { useIntl } from 'react-intl';
12
12
  import { isSafeUrl } from '@atlaskit/adf-schema';
13
13
  import ButtonGroup from '@atlaskit/button/button-group';
14
14
  import Button from '@atlaskit/button/new';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { useIntl } from 'react-intl-next';
3
+ import { useIntl } from 'react-intl';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { getDomRefFromSelection } from '@atlaskit/editor-common/get-dom-ref-from-selection';
6
6
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media-insert",
3
- "version": "21.0.0",
3
+ "version": "23.0.0",
4
4
  "description": "Media Insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,31 +21,31 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^52.4.0",
24
+ "@atlaskit/adf-schema": "^52.5.0",
25
25
  "@atlaskit/button": "^23.11.0",
26
- "@atlaskit/editor-plugin-analytics": "^8.0.0",
27
- "@atlaskit/editor-plugin-media": "^10.2.0",
26
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
27
+ "@atlaskit/editor-plugin-media": "^12.0.0",
28
28
  "@atlaskit/editor-prosemirror": "^7.3.0",
29
29
  "@atlaskit/editor-shared-styles": "^3.10.0",
30
30
  "@atlaskit/form": "^15.5.0",
31
- "@atlaskit/icon": "^34.0.0",
32
- "@atlaskit/media-card": "^79.16.0",
31
+ "@atlaskit/icon": "^34.2.0",
32
+ "@atlaskit/media-card": "^80.0.0",
33
33
  "@atlaskit/media-client": "^36.0.0",
34
34
  "@atlaskit/media-client-react": "^5.0.0",
35
- "@atlaskit/media-picker": "^70.1.0",
35
+ "@atlaskit/media-picker": "^71.0.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
37
  "@atlaskit/primitives": "^19.0.0",
38
38
  "@atlaskit/section-message": "^8.12.0",
39
- "@atlaskit/tabs": "^19.0.0",
39
+ "@atlaskit/tabs": "^19.1.0",
40
40
  "@atlaskit/textfield": "^8.3.0",
41
- "@babel/runtime": "^7.0.0",
42
- "react-intl-next": "npm:react-intl@^5.18.1"
41
+ "@babel/runtime": "^7.0.0"
43
42
  },
44
43
  "peerDependencies": {
45
- "@atlaskit/editor-common": "^112.20.0",
44
+ "@atlaskit/editor-common": "^114.0.0",
46
45
  "@atlaskit/tokens": "^13.0.0",
47
46
  "react": "^18.2.0",
48
- "react-dom": "^18.2.0"
47
+ "react-dom": "^18.2.0",
48
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
49
49
  },
50
50
  "techstack": {
51
51
  "@atlassian/frontend": {
@@ -92,5 +92,8 @@
92
92
  "platform_editor_nov_a11y_fixes": {
93
93
  "type": "boolean"
94
94
  }
95
+ },
96
+ "devDependencies": {
97
+ "react-intl": "^6.6.2"
95
98
  }
96
99
  }