@atlaskit/editor-plugin-code-block 11.0.0 → 12.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-code-block
2
2
 
3
+ ## 12.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 12.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
  ## 11.0.0
4
29
 
5
30
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.createCodeBlockMenuItem = 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 _angleBrackets = _interopRequireDefault(require("@atlaskit/icon/core/angle-b
14
14
  var NODE_NAME = 'codeBlock';
15
15
  var CodeBlockMenuItem = function CodeBlockMenuItem(_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;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.WrapIcon = 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 CustomGlyph = function CustomGlyph() {
12
12
  return /*#__PURE__*/_react.default.createElement("svg", {
@@ -24,7 +24,7 @@ var CustomGlyph = function CustomGlyph() {
24
24
  })));
25
25
  };
26
26
  var WrapIcon = exports.WrapIcon = function WrapIcon() {
27
- var intl = (0, _reactIntlNext.useIntl)();
27
+ var intl = (0, _reactIntl.useIntl)();
28
28
  return /*#__PURE__*/_react.default.createElement(CustomGlyph, {
29
29
  "aria-label": intl.formatMessage(_messages.blockMenuMessages.wrapIcon)
30
30
  });
@@ -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 { blockMenuMessages } 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 { blockMenuMessages } from '@atlaskit/editor-common/messages';
4
4
  const CustomGlyph = () => /*#__PURE__*/React.createElement("svg", {
5
5
  width: "24",
@@ -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 { blockMenuMessages } 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 { blockMenuMessages } from '@atlaskit/editor-common/messages';
4
4
  var CustomGlyph = function CustomGlyph() {
5
5
  return /*#__PURE__*/React.createElement("svg", {
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import { DecorationSet } 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 { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "11.0.0",
3
+ "version": "12.0.1",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,27 +29,27 @@
29
29
  "dependencies": {
30
30
  "@atlaskit/adf-schema": "^52.5.0",
31
31
  "@atlaskit/code": "^17.4.0",
32
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
33
- "@atlaskit/editor-plugin-block-menu": "^8.0.0",
34
- "@atlaskit/editor-plugin-composition": "^8.0.0",
35
- "@atlaskit/editor-plugin-decorations": "^9.0.0",
36
- "@atlaskit/editor-plugin-editor-disabled": "^9.0.0",
37
- "@atlaskit/editor-plugin-editor-viewmode": "^11.0.0",
38
- "@atlaskit/editor-plugin-interaction": "^18.0.0",
39
- "@atlaskit/editor-plugin-selection": "^9.0.0",
40
- "@atlaskit/editor-plugin-toolbar": "^6.0.0",
32
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
33
+ "@atlaskit/editor-plugin-block-menu": "^9.0.0",
34
+ "@atlaskit/editor-plugin-composition": "^9.0.0",
35
+ "@atlaskit/editor-plugin-decorations": "^10.0.0",
36
+ "@atlaskit/editor-plugin-editor-disabled": "^10.0.0",
37
+ "@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
38
+ "@atlaskit/editor-plugin-interaction": "^19.0.0",
39
+ "@atlaskit/editor-plugin-selection": "^10.0.0",
40
+ "@atlaskit/editor-plugin-toolbar": "^7.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^7.3.0",
42
- "@atlaskit/editor-toolbar": "^0.20.0",
42
+ "@atlaskit/editor-toolbar": "^1.0.0",
43
43
  "@atlaskit/icon": "^34.2.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
46
- "@atlaskit/tmp-editor-statsig": "^62.4.0",
46
+ "@atlaskit/tmp-editor-statsig": "^63.0.0",
47
47
  "@babel/runtime": "^7.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^113.0.0",
50
+ "@atlaskit/editor-common": "^114.2.0",
51
51
  "react": "^18.2.0",
52
- "react-intl-next": "npm:react-intl@^5.18.1"
52
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
53
53
  },
54
54
  "techstack": {
55
55
  "@atlassian/frontend": {
@@ -99,5 +99,8 @@
99
99
  "platform_editor_adf_with_localid": {
100
100
  "type": "boolean"
101
101
  }
102
+ },
103
+ "devDependencies": {
104
+ "react-intl": "^6.6.2"
102
105
  }
103
106
  }
package/report.api.md CHANGED
@@ -67,7 +67,7 @@ export const codeBlockPlugin: CodeBlockPlugin;
67
67
  ```json
68
68
  {
69
69
  "react": "^16.8.0",
70
- "react-intl-next": "npm:react-intl@^5.18.1"
70
+ "react-intl": "npm:react-intl@^5.18.1"
71
71
  }
72
72
  ```
73
73