@atlaskit/editor-plugin-quick-insert 9.0.0 → 10.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,24 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 10.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
+
3
22
  ## 9.0.0
4
23
 
5
24
  ### Patch Changes
@@ -10,7 +10,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
12
12
  var _react = _interopRequireDefault(require("react"));
13
- var _reactIntlNext = require("react-intl-next");
13
+ var _reactIntl = require("react-intl");
14
14
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
15
15
  var _messages = require("@atlaskit/editor-common/messages");
16
16
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
@@ -237,7 +237,7 @@ var quickInsertPlugin = exports.quickInsertPlugin = function quickInsertPlugin(_
237
237
  }
238
238
  },
239
239
  usePluginHook: function usePluginHook() {
240
- intl = (0, _reactIntlNext.useIntl)();
240
+ intl = (0, _reactIntl.useIntl)();
241
241
  }
242
242
  };
243
243
  };
@@ -9,7 +9,7 @@ exports.default = exports.MODAL_WRAPPER_PADDING = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = require("react");
11
11
  var _react2 = require("@emotion/react");
12
- var _reactIntlNext = require("react-intl-next");
12
+ var _reactIntl = require("react-intl");
13
13
  var _button = _interopRequireDefault(require("@atlaskit/button"));
14
14
  var _elementBrowser = require("@atlaskit/editor-common/element-browser");
15
15
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
@@ -118,7 +118,7 @@ ModalElementBrowser.displayName = 'ModalElementBrowser';
118
118
  var Footer = function Footer(_ref) {
119
119
  var onInsert = _ref.onInsert,
120
120
  beforeElement = _ref.beforeElement;
121
- var intl = (0, _reactIntlNext.useIntl)();
121
+ var intl = (0, _reactIntl.useIntl)();
122
122
  var _useModal = (0, _modalDialog.useModal)(),
123
123
  onClose = _useModal.onClose;
124
124
  return (0, _react2.jsx)("div", {
@@ -150,5 +150,5 @@ var HelpLink = function HelpLink(url, helpText) {
150
150
  testId: "ModalElementBrowser__help-button"
151
151
  }, helpText);
152
152
  };
153
- var _default_1 = (0, _reactIntlNext.injectIntl)(ModalElementBrowser);
153
+ var _default_1 = (0, _reactIntl.injectIntl)(ModalElementBrowser);
154
154
  var _default = exports.default = _default_1;
@@ -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 { isSSR } from '@atlaskit/editor-common/core-utils';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { memoProcessQuickInsertItems } from '@atlaskit/editor-common/quick-insert';
@@ -6,7 +6,7 @@ import { useCallback, useState } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
- import { injectIntl, useIntl } from 'react-intl-next';
9
+ import { injectIntl, useIntl } from 'react-intl';
10
10
  import Button from '@atlaskit/button';
11
11
  import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
12
12
  import { messages } from '@atlaskit/editor-common/quick-insert';
@@ -5,7 +5,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  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; }
6
6
  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; }
7
7
  import React from 'react';
8
- import { useIntl } from 'react-intl-next';
8
+ import { useIntl } from 'react-intl';
9
9
  import { isSSR } from '@atlaskit/editor-common/core-utils';
10
10
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
11
11
  import { memoProcessQuickInsertItems } from '@atlaskit/editor-common/quick-insert';
@@ -7,7 +7,7 @@ import { useCallback, useState } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
- import { injectIntl, useIntl } from 'react-intl-next';
10
+ import { injectIntl, useIntl } from 'react-intl';
11
11
  import Button from '@atlaskit/button';
12
12
  import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
13
13
  import { messages } from '@atlaskit/editor-common/quick-insert';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { type ComponentType, type FC } from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
8
8
  import type { EmptyStateHandler } from '@atlaskit/editor-common/types';
9
9
  export declare const MODAL_WRAPPER_PADDING = 16;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  export declare function getCategories(intl: IntlShape): {
3
3
  title: string;
4
4
  name: string;
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { type ComponentType, type FC } from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
8
8
  import type { EmptyStateHandler } from '@atlaskit/editor-common/types';
9
9
  export declare const MODAL_WRAPPER_PADDING = 16;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  export declare function getCategories(intl: IntlShape): {
3
3
  title: string;
4
4
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-quick-insert",
3
- "version": "9.0.0",
3
+ "version": "10.0.0",
4
4
  "description": "Quick insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,10 +30,10 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/button": "^23.11.0",
33
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
34
- "@atlaskit/editor-plugin-connectivity": "^9.0.0",
35
- "@atlaskit/editor-plugin-metrics": "^10.0.0",
36
- "@atlaskit/editor-plugin-type-ahead": "^9.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
34
+ "@atlaskit/editor-plugin-connectivity": "^10.0.0",
35
+ "@atlaskit/editor-plugin-metrics": "^11.0.0",
36
+ "@atlaskit/editor-plugin-type-ahead": "^10.0.0",
37
37
  "@atlaskit/editor-prosemirror": "^7.3.0",
38
38
  "@atlaskit/icon": "^34.2.0",
39
39
  "@atlaskit/modal-dialog": "^14.15.0",
@@ -44,13 +44,14 @@
44
44
  "@emotion/react": "^11.7.1"
45
45
  },
46
46
  "peerDependencies": {
47
- "@atlaskit/editor-common": "^113.0.0",
47
+ "@atlaskit/editor-common": "^114.0.0",
48
48
  "react": "^18.2.0",
49
49
  "react-dom": "^18.2.0",
50
- "react-intl-next": "npm:react-intl@^5.18.1"
50
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@testing-library/react": "^16.3.0",
54
+ "react-intl": "^6.6.2",
54
55
  "wait-for-expect": "^1.2.0"
55
56
  },
56
57
  "techstack": {
package/report.api.md CHANGED
@@ -65,7 +65,7 @@ export type QuickInsertSharedState = QuickInsertSharedState_2 & {
65
65
  ```json
66
66
  {
67
67
  "react": "^16.8.0",
68
- "react-intl-next": "npm:react-intl@^5.18.1"
68
+ "react-intl": "npm:react-intl@^5.18.1"
69
69
  }
70
70
  ```
71
71