@atlaskit/rovo-agent-selector 1.4.2 → 2.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,29 @@
1
1
  # @atlaskit/rovo-agent-selector
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`267b2bb06c564`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/267b2bb06c564) -
8
+ Internal dependency change: switch from pinned Relay v17 aliases to root:\* and upgraded root to
9
+ Relay v20.1.1. No public API changes.
10
+ - Updated dependencies
11
+
12
+ ## 2.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - [`d2e14ba5ae9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2e14ba5ae9fc) -
17
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
18
+
19
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
20
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
21
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
22
+
23
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
24
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
25
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
26
+
3
27
  ## 1.4.2
4
28
 
5
29
  ### 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,12 +4,12 @@ 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',
12
- description: 'Label for the agent selector dropdown'
12
+ description: 'The text is shown as the visible label for the drop-down selector component that allows the user to choose a Rovo AI agent from a list of available agents.'
13
13
  },
14
14
  rovoAgentPlaceholder: {
15
15
  id: 'rovo-agent-selector.lplaceholder',
@@ -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,9 +1,9 @@
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',
5
5
  defaultMessage: 'Select agent',
6
- description: 'Label for the agent selector dropdown'
6
+ description: 'The text is shown as the visible label for the drop-down selector component that allows the user to choose a Rovo AI agent from a list of available agents.'
7
7
  },
8
8
  rovoAgentPlaceholder: {
9
9
  id: 'rovo-agent-selector.lplaceholder',
@@ -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,9 +1,9 @@
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',
5
5
  defaultMessage: 'Select agent',
6
- description: 'Label for the agent selector dropdown'
6
+ description: 'The text is shown as the visible label for the drop-down selector component that allows the user to choose a Rovo AI agent from a list of available agents.'
7
7
  },
8
8
  rovoAgentPlaceholder: {
9
9
  id: 'rovo-agent-selector.lplaceholder',
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": "^4.0.0",
31
+ "@atlaskit/rovo-agent-components": "^4.4.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
- "react-relay": "npm:atl-react-relay@0.0.0-main-39e79f66",
37
- "relay-runtime": "npm:atl-relay-runtime@0.0.0-main-39e79f66"
35
+ "react-relay": "^20.1.1",
36
+ "relay-runtime": "^20.1.1"
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,8 +46,9 @@
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
- "relay-test-utils": "npm:atl-relay-test-utils@0.0.0-main-39e79f66"
51
+ "relay-test-utils": "^20.1.1"
51
52
  },
52
53
  "techstack": {
53
54
  "@atlassian/frontend": {
@@ -88,7 +89,7 @@
88
89
  }
89
90
  },
90
91
  "name": "@atlaskit/rovo-agent-selector",
91
- "version": "1.4.2",
92
+ "version": "2.0.1",
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';
@@ -76,7 +76,7 @@ function BasicTemplateComponent() {
76
76
  );
77
77
  }
78
78
 
79
- export const Story = () => {
79
+ export const Story = (): JSX.Element => {
80
80
  return <BasicTemplateComponent />;
81
81
  };
82
82