@atlaskit/editor-plugin-expand 9.1.31 → 11.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-expand
2
2
 
3
+ ## 11.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
+ ## 10.0.0
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 9.1.31
4
29
 
5
30
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.createExpandBlockMenuItem = 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 _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _editorToolbar = require("@atlaskit/editor-toolbar");
@@ -14,7 +14,7 @@ var _expandElement = _interopRequireDefault(require("@atlaskit/icon-lab/core/exp
14
14
  var NODE_NAME = 'expand';
15
15
  var ExpandBlockMenuItem = function ExpandBlockMenuItem(_ref) {
16
16
  var api = _ref.api;
17
- var _useIntl = (0, _reactIntlNext.useIntl)(),
17
+ var _useIntl = (0, _reactIntl.useIntl)(),
18
18
  formatMessage = _useIntl.formatMessage;
19
19
  var handleClick = function handleClick(event) {
20
20
  var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
@@ -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 { SetSelectionRelativeToNode } from '@atlaskit/editor-common/selection';
4
4
  import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
@@ -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';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { jsx } from '@emotion/react';
7
- import type { IntlShape } from 'react-intl-next';
7
+ import type { IntlShape } from 'react-intl';
8
8
  interface ExpandIconButtonProps {
9
9
  allowInteractiveExpand: boolean;
10
10
  expanded: boolean;
@@ -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 { SetSelectionRelativeToNode } from '@atlaskit/editor-common/selection';
4
4
  import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
@@ -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,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import type { IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl';
3
3
  interface ExpandIconButtonProps {
4
4
  allowInteractiveExpand: boolean;
5
5
  expanded: boolean;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { DOMOutputSpec, Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
3
  export declare const buildExpandClassName: (type: string, expanded: boolean) => string;
4
4
  export declare const toDOM: (node: PmNode, __livePage: boolean, intl?: IntlShape, titleReadOnly?: boolean, contentEditable?: boolean) => DOMOutputSpec;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  interface ButtonProps {
3
3
  /** Indicates whether interactive expand is allowed */
4
4
  allowInteractiveExpand: boolean;
@@ -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 { SetSelectionRelativeToNode } from '@atlaskit/editor-common/selection';
4
4
  import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
@@ -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';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { jsx } from '@emotion/react';
7
- import type { IntlShape } from 'react-intl-next';
7
+ import type { IntlShape } from 'react-intl';
8
8
  interface ExpandIconButtonProps {
9
9
  allowInteractiveExpand: boolean;
10
10
  expanded: boolean;
@@ -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 { SetSelectionRelativeToNode } from '@atlaskit/editor-common/selection';
4
4
  import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
@@ -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,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import type { IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl';
3
3
  interface ExpandIconButtonProps {
4
4
  allowInteractiveExpand: boolean;
5
5
  expanded: boolean;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { DOMOutputSpec, Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
3
  export declare const buildExpandClassName: (type: string, expanded: boolean) => string;
4
4
  export declare const toDOM: (node: PmNode, __livePage: boolean, intl?: IntlShape, titleReadOnly?: boolean, contentEditable?: boolean) => DOMOutputSpec;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  interface ButtonProps {
3
3
  /** Indicates whether interactive expand is allowed */
4
4
  allowInteractiveExpand: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "9.1.31",
3
+ "version": "11.0.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,26 +29,26 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.4.0",
32
+ "@atlaskit/adf-schema": "^52.5.0",
33
33
  "@atlaskit/button": "^23.11.0",
34
- "@atlaskit/editor-plugin-analytics": "^8.0.0",
35
- "@atlaskit/editor-plugin-block-controls": "^9.1.0",
36
- "@atlaskit/editor-plugin-block-menu": "^7.0.0",
37
- "@atlaskit/editor-plugin-decorations": "^8.0.0",
38
- "@atlaskit/editor-plugin-editor-disabled": "^8.0.0",
39
- "@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
40
- "@atlaskit/editor-plugin-local-id": "^6.1.0",
41
- "@atlaskit/editor-plugin-selection": "^8.0.0",
42
- "@atlaskit/editor-plugin-selection-marker": "^8.0.0",
34
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
35
+ "@atlaskit/editor-plugin-block-controls": "^11.0.0",
36
+ "@atlaskit/editor-plugin-block-menu": "^9.0.0",
37
+ "@atlaskit/editor-plugin-decorations": "^10.0.0",
38
+ "@atlaskit/editor-plugin-editor-disabled": "^10.0.0",
39
+ "@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
40
+ "@atlaskit/editor-plugin-local-id": "^8.0.0",
41
+ "@atlaskit/editor-plugin-selection": "^10.0.0",
42
+ "@atlaskit/editor-plugin-selection-marker": "^10.0.0",
43
43
  "@atlaskit/editor-prosemirror": "^7.3.0",
44
44
  "@atlaskit/editor-shared-styles": "^3.10.0",
45
45
  "@atlaskit/editor-tables": "^2.9.0",
46
- "@atlaskit/editor-toolbar": "^0.20.0",
47
- "@atlaskit/icon": "^34.1.0",
46
+ "@atlaskit/editor-toolbar": "^1.0.0",
47
+ "@atlaskit/icon": "^34.2.0",
48
48
  "@atlaskit/icon-lab": "^6.5.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
- "@atlaskit/tmp-editor-statsig": "^62.2.0",
51
+ "@atlaskit/tmp-editor-statsig": "^62.4.0",
52
52
  "@atlaskit/tokens": "^13.0.0",
53
53
  "@atlaskit/tooltip": "^21.1.0",
54
54
  "@babel/runtime": "^7.0.0",
@@ -57,13 +57,14 @@
57
57
  "w3c-keyname": "^2.1.8"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^112.21.0",
60
+ "@atlaskit/editor-common": "^114.0.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
- "react-intl-next": "npm:react-intl@^5.18.1"
63
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@testing-library/react": "^16.3.0",
67
+ "react-intl": "^6.6.2",
67
68
  "react-test-renderer": "^18.2.0"
68
69
  },
69
70
  "techstack": {
package/report.api.md CHANGED
@@ -85,7 +85,7 @@ const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Comm
85
85
  {
86
86
  "react": "^16.8.0",
87
87
  "react-dom": "^16.8.0",
88
- "react-intl-next": "npm:react-intl@^5.18.1"
88
+ "react-intl": "npm:react-intl@^5.18.1"
89
89
  }
90
90
  ```
91
91