@atlaskit/editor-plugin-type-ahead 9.0.0 → 10.0.1

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-type-ahead
2
2
 
3
+ ## 10.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
14
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
15
+
16
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
17
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
18
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
19
+
20
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
21
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
22
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 9.0.0
4
29
 
5
30
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.factoryDecorations = 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 _uuid = require("uuid");
11
11
  var _w3cKeyname = require("w3c-keyname");
12
12
  var _state = require("@atlaskit/editor-prosemirror/state");
@@ -90,7 +90,7 @@ var factoryDecorations = exports.factoryDecorations = function factoryDecoration
90
90
  };
91
91
  nodeViewPortalProviderAPI.render(function () {
92
92
  var _popupMountRef$curren, _popupMountRef$curren2, _popupMountRef$curren3;
93
- return /*#__PURE__*/_react.default.createElement(_reactIntlNext.IntlProvider, {
93
+ return /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
94
94
  defaultLocale: intl.defaultLocale || 'en-US',
95
95
  locale: intl.locale || 'en-US',
96
96
  messages: intl.messages,
@@ -9,7 +9,7 @@ exports.InputQuery = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(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 _w3cKeyname = require("w3c-keyname");
14
14
  var _browser = require("@atlaskit/editor-common/browser");
15
15
  var _typeAhead = require("@atlaskit/editor-common/type-ahead");
@@ -468,7 +468,7 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
468
468
  return classes.join(' ');
469
469
  }, [showPlaceholder, selection]);
470
470
  var assistiveHintID = _constants.TYPE_AHEAD_DECORATION_ELEMENT_ID + '__assistiveHint';
471
- var intl = (0, _reactIntlNext.useIntl)();
471
+ var intl = (0, _reactIntl.useIntl)();
472
472
  return (0, _react2.jsx)(_react.Fragment, null, triggerQueryPrefix, (0, _react2.jsx)("span", {
473
473
  css: [querySpanStyles, isSearchPlaceholderEnabled && queryWithoutPlaceholderStyles, showPlaceholder && placeholderStyles],
474
474
  contentEditable: true,
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.TypeAheadErrorFallback = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _reactIntlNext = require("react-intl-next");
8
+ var _reactIntl = require("react-intl");
9
9
  var _typeAhead = require("@atlaskit/editor-common/type-ahead");
10
10
  var _EmptyState = require("./EmptyState");
11
11
  var _GenericErrorSVG = require("./GenericErrorSVG");
@@ -22,7 +22,7 @@ var minHeightComponentStyles = (0, _react.css)({
22
22
  minHeight: '290px'
23
23
  });
24
24
  var TypeAheadErrorFallback = exports.TypeAheadErrorFallback = function TypeAheadErrorFallback() {
25
- var intl = (0, _reactIntlNext.useIntl)();
25
+ var intl = (0, _reactIntl.useIntl)();
26
26
  var header = intl.formatMessage(_typeAhead.typeAheadListMessages.typeAheadErrorFallbackHeading);
27
27
  var description = intl.formatMessage(_typeAhead.typeAheadListMessages.typeAheadErrorFallbackDesc);
28
28
  return (0, _react.jsx)("div", {
@@ -9,7 +9,7 @@ exports.TypeAheadList = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(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 _CellMeasurer = require("react-virtualized/dist/commonjs/CellMeasurer");
14
14
  var _List = require("react-virtualized/dist/commonjs/List");
15
15
  var _analytics = require("@atlaskit/editor-common/analytics");
@@ -44,7 +44,7 @@ var list = (0, _react2.css)({
44
44
  });
45
45
  var TypeaheadAssistiveTextPureComponent = /*#__PURE__*/_react.default.memo(function (_ref) {
46
46
  var numberOfResults = _ref.numberOfResults;
47
- var intl = (0, _reactIntlNext.useIntl)();
47
+ var intl = (0, _reactIntl.useIntl)();
48
48
  return (0, _react2.jsx)(_ui.AssistiveText, {
49
49
  assistiveText: intl.formatMessage(_typeAhead.typeAheadListMessages.searchResultsLabel, {
50
50
  itemsLength: numberOfResults
@@ -419,5 +419,5 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
419
419
  });
420
420
 
421
421
  // eslint-disable-next-line @typescript-eslint/ban-types
422
- var TypeAheadList = exports.TypeAheadList = (0, _reactIntlNext.injectIntl)(TypeAheadListComponent);
422
+ var TypeAheadList = exports.TypeAheadList = (0, _reactIntl.injectIntl)(TypeAheadListComponent);
423
423
  TypeAheadList.displayName = 'TypeAheadList';
@@ -9,7 +9,7 @@ exports.itemIcon = exports.TypeAheadListItem = void 0;
9
9
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
10
  var _react = _interopRequireWildcard(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 _browser = require("@atlaskit/editor-common/browser");
14
14
  var _hooks = require("@atlaskit/editor-common/hooks");
15
15
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
@@ -200,7 +200,7 @@ var TypeAheadListItem = exports.TypeAheadListItem = /*#__PURE__*/_react.default.
200
200
  }
201
201
 
202
202
  // Assistive text
203
- var intl = (0, _reactIntlNext.useIntl)();
203
+ var intl = (0, _reactIntl.useIntl)();
204
204
  var descriptionText = item.description ? "".concat(item.description, ".") : '';
205
205
  var shortcutText = item.keyshortcut ? " ".concat(intl.formatMessage(_typeAhead.typeAheadListMessages.shortcutLabel), " ").concat(item.keyshortcut, ".") : '';
206
206
  var descriptionId = "typeahead-item-description-".concat(itemIndex);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IntlProvider } from 'react-intl-next';
2
+ import { IntlProvider } from 'react-intl';
3
3
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
4
  import { v4 as uuid } from 'uuid';
5
5
  import { keyName as keyNameNormalized } from 'w3c-keyname';
@@ -6,7 +6,7 @@ import React, { Fragment, useCallback, useLayoutEffect, useMemo, useRef, useStat
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
8
  import { css, jsx } from '@emotion/react';
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  import { keyName as keyNameNormalized } from 'w3c-keyname';
11
11
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
12
12
  import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
6
6
  import { css, jsx } from '@emotion/react';
7
- import { useIntl } from 'react-intl-next';
7
+ import { useIntl } from 'react-intl';
8
8
  import { typeAheadListMessages as messages } from '@atlaskit/editor-common/type-ahead';
9
9
  import { EmptyState } from './EmptyState';
10
10
  import { GenericErrorSVG } from './GenericErrorSVG';
@@ -7,7 +7,7 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from '
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 { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
12
12
  import { List } from 'react-virtualized/dist/commonjs/List';
13
13
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
@@ -6,7 +6,7 @@ import React, { useCallback, useLayoutEffect, useMemo } from 'react';
6
6
 
7
7
  /* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports, @atlaskit/design-system/no-unsafe-style-overrides */
8
8
  import { css, jsx } from '@emotion/react';
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
11
11
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
12
12
  import { IconFallback } from '@atlaskit/editor-common/quick-insert';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IntlProvider } from 'react-intl-next';
2
+ import { IntlProvider } from 'react-intl';
3
3
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
4
  import { v4 as uuid } from 'uuid';
5
5
  import { keyName as keyNameNormalized } from 'w3c-keyname';
@@ -7,7 +7,7 @@ import React, { Fragment, useCallback, useLayoutEffect, useMemo, useRef, useStat
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
9
9
  import { css, jsx } from '@emotion/react';
10
- import { useIntl } from 'react-intl-next';
10
+ import { useIntl } from 'react-intl';
11
11
  import { keyName as keyNameNormalized } from 'w3c-keyname';
12
12
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
13
13
  import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
6
6
  import { css, jsx } from '@emotion/react';
7
- import { useIntl } from 'react-intl-next';
7
+ import { useIntl } from 'react-intl';
8
8
  import { typeAheadListMessages as messages } from '@atlaskit/editor-common/type-ahead';
9
9
  import { EmptyState } from './EmptyState';
10
10
  import { GenericErrorSVG } from './GenericErrorSVG';
@@ -8,7 +8,7 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from '
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { css, jsx } from '@emotion/react';
11
- import { injectIntl, useIntl } from 'react-intl-next';
11
+ import { injectIntl, useIntl } from 'react-intl';
12
12
  import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
13
13
  import { List } from 'react-virtualized/dist/commonjs/List';
14
14
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
@@ -8,7 +8,7 @@ import React, { useCallback, useLayoutEffect, useMemo } from 'react';
8
8
 
9
9
  /* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports, @atlaskit/design-system/no-unsafe-style-overrides */
10
10
  import { css, jsx } from '@emotion/react';
11
- import { useIntl } from 'react-intl-next';
11
+ import { useIntl } from 'react-intl';
12
12
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
13
13
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
14
14
  import { IconFallback } from '@atlaskit/editor-common/quick-insert';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { TypeAheadPlugin } from '../typeAheadPluginType';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
8
8
  import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { TypeAheadPlugin } from '../typeAheadPluginType';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
7
  import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
8
8
  import type { ExtractInjectionAPI, TypeAheadItem } from '@atlaskit/editor-common/types';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "9.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "Type-ahead 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/adf-schema": "^52.5.0",
33
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
34
- "@atlaskit/editor-plugin-connectivity": "^9.0.0",
35
- "@atlaskit/editor-plugin-context-panel": "^11.0.0",
36
- "@atlaskit/editor-plugin-metrics": "^10.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
34
+ "@atlaskit/editor-plugin-connectivity": "^10.0.0",
35
+ "@atlaskit/editor-plugin-context-panel": "^12.0.0",
36
+ "@atlaskit/editor-plugin-metrics": "^11.0.0",
37
37
  "@atlaskit/editor-prosemirror": "^7.3.0",
38
38
  "@atlaskit/editor-shared-styles": "^3.10.0",
39
39
  "@atlaskit/feature-gate-js-client": "^5.5.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/primitives": "^19.0.0",
45
45
  "@atlaskit/prosemirror-history": "^0.2.0",
46
46
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
47
- "@atlaskit/tmp-editor-statsig": "^62.4.0",
47
+ "@atlaskit/tmp-editor-statsig": "^63.0.0",
48
48
  "@atlaskit/tokens": "^13.0.0",
49
49
  "@atlaskit/visually-hidden": "^3.0.0",
50
50
  "@babel/runtime": "^7.0.0",
@@ -56,14 +56,15 @@
56
56
  "w3c-keyname": "^2.1.8"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^113.0.0",
59
+ "@atlaskit/editor-common": "^114.2.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
- "react-intl-next": "npm:react-intl@^5.18.1"
62
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@testing-library/react": "^16.3.0",
66
66
  "@types/react-virtualized": "^9.18.12",
67
+ "react-intl": "^6.6.2",
67
68
  "wait-for-expect": "^1.2.0"
68
69
  },
69
70
  "techstack": {
package/report.api.md CHANGED
@@ -124,7 +124,7 @@ interface TypeAheadStatsSerializable extends TypeAheadStats {
124
124
  {
125
125
  "react": "^16.8.0",
126
126
  "react-dom": "^16.8.0",
127
- "react-intl-next": "npm:react-intl@^5.18.1"
127
+ "react-intl": "npm:react-intl@^5.18.1"
128
128
  }
129
129
  ```
130
130