@atlaskit/rovo-agent-selector 1.4.1 → 2.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,26 @@
1
1
  # @atlaskit/rovo-agent-selector
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`d2e14ba5ae9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2e14ba5ae9fc) -
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
+ ## 1.4.2
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 1.4.1
4
25
 
5
26
  ### Patch Changes
@@ -14,7 +14,7 @@ var _runtime = require("@compiled/react/runtime");
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
16
  var _rovoAgentSelector_AtlaskitRovoAgentSelector2 = _interopRequireDefault(require("./__generated__/rovoAgentSelector_AtlaskitRovoAgentSelector.graphql"));
17
- var _reactIntlNext = require("react-intl-next");
17
+ var _reactIntl = require("react-intl");
18
18
  var _reactRelay = require("react-relay");
19
19
  var _form = require("@atlaskit/form");
20
20
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -57,7 +57,7 @@ function RovoAgentSelector(_ref) {
57
57
  selectedAgent = _ref.selectedAgent,
58
58
  onChange = _ref.onChange,
59
59
  isLoadingOverride = _ref.isLoading;
60
- var _useIntl = (0, _reactIntlNext.useIntl)(),
60
+ var _useIntl = (0, _reactIntl.useIntl)(),
61
61
  formatMessage = _useIntl.formatMessage;
62
62
  var isFeatureEnabled = isFeatureEnabledOverride !== null && isFeatureEnabledOverride !== void 0 ? isFeatureEnabledOverride : (0, _platformFeatureFlags.fg)('jsm_help_center_one-click_rovo_agent');
63
63
  var _useState = (0, _react.useState)(null),
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = (0, _reactIntl.defineMessages)({
9
9
  selectorLabel: {
10
10
  id: 'rovo-agent-selector.label',
11
11
  defaultMessage: 'Select agent',
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import _rovoAgentSelector_AtlaskitRovoAgentSelector from "./__generated__/rovoAgentSelector_AtlaskitRovoAgentSelector.graphql";
5
5
  import { useCallback, useMemo, useRef, useState } from 'react';
6
- import { useIntl } from 'react-intl-next';
6
+ import { useIntl } from 'react-intl';
7
7
  import { graphql, usePaginationFragment } from 'react-relay';
8
8
  import { Label } from '@atlaskit/form';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  const messages = defineMessages({
3
3
  selectorLabel: {
4
4
  id: 'rovo-agent-selector.label',
@@ -7,7 +7,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
7
7
  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; }
8
8
  import _rovoAgentSelector_AtlaskitRovoAgentSelector from "./__generated__/rovoAgentSelector_AtlaskitRovoAgentSelector.graphql";
9
9
  import { useCallback, useMemo, useRef, useState } from 'react';
10
- import { useIntl } from 'react-intl-next';
10
+ import { useIntl } from 'react-intl';
11
11
  import { graphql, usePaginationFragment } from 'react-relay';
12
12
  import { Label } from '@atlaskit/form';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  var messages = defineMessages({
3
3
  selectorLabel: {
4
4
  id: 'rovo-agent-selector.label',
package/package.json CHANGED
@@ -28,16 +28,16 @@
28
28
  "@atlaskit/form": "^15.5.0",
29
29
  "@atlaskit/platform-feature-flags": "^1.1.0",
30
30
  "@atlaskit/primitives": "^19.0.0",
31
- "@atlaskit/rovo-agent-components": "^3.49.0",
31
+ "@atlaskit/rovo-agent-components": "^4.1.0",
32
32
  "@atlaskit/select": "^21.10.0",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "@compiled/react": "^0.20.0",
35
- "react-intl-next": "npm:react-intl@^5.18.1",
36
35
  "react-relay": "npm:atl-react-relay@0.0.0-main-39e79f66",
37
36
  "relay-runtime": "npm:atl-relay-runtime@0.0.0-main-39e79f66"
38
37
  },
39
38
  "peerDependencies": {
40
- "react": "^18.2.0"
39
+ "react": "^18.2.0",
40
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@af/integration-testing": "workspace:^",
@@ -46,6 +46,7 @@
46
46
  "@atlaskit/ssr": "workspace:^",
47
47
  "@atlassian/testing-library": "^0.5.0",
48
48
  "react-dom": "^18.2.0",
49
+ "react-intl": "^6.6.2",
49
50
  "react-magnetic-di": "^3.1.4",
50
51
  "relay-test-utils": "npm:atl-relay-test-utils@0.0.0-main-39e79f66"
51
52
  },
@@ -88,7 +89,7 @@
88
89
  }
89
90
  },
90
91
  "name": "@atlaskit/rovo-agent-selector",
91
- "version": "1.4.1",
92
+ "version": "2.0.0",
92
93
  "description": "rovo agent selector",
93
94
  "author": "Atlassian Pty Ltd",
94
95
  "license": "Apache-2.0",
package/stories/index.tsx CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { jsx } from '@compiled/react';
7
7
  import type { Meta } from '@storybook/react';
8
- import { IntlProvider } from 'react-intl-next';
8
+ import { IntlProvider } from 'react-intl';
9
9
  // eslint-disable-next-line @atlassian/relay/use-single-relay-environment
10
10
  import { graphql, RelayEnvironmentProvider, useLazyLoadQuery } from 'react-relay';
11
11
  import { createMockEnvironment, MockPayloadGenerator } from 'relay-test-utils';