@atlaskit/editor-toolbar 0.20.30 → 1.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,26 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.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
+
3
24
  ## 0.20.30
4
25
 
5
26
  ### Patch Changes
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _chromatism = _interopRequireDefault(require("chromatism"));
11
- var _reactIntlNext = require("react-intl-next");
11
+ var _reactIntl = require("react-intl");
12
12
  var _compiled = require("@atlaskit/primitives/compiled");
13
13
  var _tokens = require("@atlaskit/tokens");
14
14
  var _Color = require("./Color");
@@ -60,7 +60,7 @@ var ColorPalette = function ColorPalette(_ref) {
60
60
  onKeyDown = _ref.onKeyDown,
61
61
  selectedColor = _ref.selectedColor,
62
62
  paletteOptions = _ref.paletteOptions;
63
- var _useIntl = (0, _reactIntlNext.useIntl)(),
63
+ var _useIntl = (0, _reactIntl.useIntl)(),
64
64
  formatMessage = _useIntl.formatMessage;
65
65
  var palette = paletteOptions.palette,
66
66
  hexToPaletteColor = paletteOptions.hexToPaletteColor,
@@ -1,6 +1,6 @@
1
1
  import React, { useMemo, useCallback, useRef, useEffect } from 'react';
2
2
  import chromatism from 'chromatism';
3
- import { useIntl } from 'react-intl-next';
3
+ import { useIntl } from 'react-intl';
4
4
  import { Grid, Inline } from '@atlaskit/primitives/compiled';
5
5
  import { useThemeObserver } from '@atlaskit/tokens';
6
6
  import { Color } from './Color';
@@ -1,6 +1,6 @@
1
1
  import React, { useMemo, useCallback, useRef, useEffect } from 'react';
2
2
  import chromatism from 'chromatism';
3
- import { useIntl } from 'react-intl-next';
3
+ import { useIntl } from 'react-intl';
4
4
  import { Grid, Inline } from '@atlaskit/primitives/compiled';
5
5
  import { useThemeObserver } from '@atlaskit/tokens';
6
6
  import { Color } from './Color';
@@ -1,4 +1,4 @@
1
- import type { MessageDescriptor } from 'react-intl-next';
1
+ import type { MessageDescriptor } from 'react-intl';
2
2
  /**
3
3
  * Retrieves the appropriate internationalization message for a given color
4
4
  * @param messages - Record of color values to message descriptors
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
- import type { MessageDescriptor } from 'react-intl-next';
2
+ import type { MessageDescriptor } from 'react-intl';
3
3
  /**
4
4
  * Represents a single color in the palette
5
5
  */
@@ -1,4 +1,4 @@
1
- import type { MessageDescriptor } from 'react-intl-next';
1
+ import type { MessageDescriptor } from 'react-intl';
2
2
  /**
3
3
  * Retrieves the appropriate internationalization message for a given color
4
4
  * @param messages - Record of color values to message descriptors
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
- import type { MessageDescriptor } from 'react-intl-next';
2
+ import type { MessageDescriptor } from 'react-intl';
3
3
  /**
4
4
  * Represents a single color in the palette
5
5
  */
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.20.30",
6
+ "version": "1.0.1",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
@@ -21,16 +21,16 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/badge": "^18.4.0",
24
+ "@atlaskit/badge": "^18.6.0",
25
25
  "@atlaskit/browser-apis": "^0.0.1",
26
26
  "@atlaskit/css": "^0.19.0",
27
27
  "@atlaskit/dropdown-menu": "^16.8.0",
28
- "@atlaskit/icon": "^34.1.0",
28
+ "@atlaskit/icon": "^34.2.0",
29
29
  "@atlaskit/icon-lab": "^6.5.0",
30
30
  "@atlaskit/platform-feature-flags": "^1.1.0",
31
31
  "@atlaskit/popup": "^4.16.0",
32
32
  "@atlaskit/primitives": "^19.0.0",
33
- "@atlaskit/tmp-editor-statsig": "^62.1.0",
33
+ "@atlaskit/tmp-editor-statsig": "^63.0.0",
34
34
  "@atlaskit/tokens": "^13.0.0",
35
35
  "@atlaskit/tooltip": "^21.1.0",
36
36
  "@babel/runtime": "^7.0.0",
@@ -39,11 +39,12 @@
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": "^18.2.0",
42
- "react-intl-next": "npm:react-intl@^5.18.1"
42
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@testing-library/react": "^16.3.0",
46
- "react-dom": "^18.2.0"
46
+ "react-dom": "^18.2.0",
47
+ "react-intl": "^6.6.2"
47
48
  },
48
49
  "techstack": {
49
50
  "@atlassian/frontend": {