@atlaskit/smart-hooks 0.3.6 → 1.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,34 @@
1
1
  # @atlaskit/smart-hooks
2
2
 
3
+ ## 1.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
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
22
+ ## 0.3.7
23
+
24
+ ### Patch Changes
25
+
26
+ - [`b7751c58914be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b7751c58914be) -
27
+ Remove old storybook addon (knobs)
28
+ - [`3e57aae5b06fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e57aae5b06fd) -
29
+ Bump storybook v6 to v8
30
+ - Updated dependencies
31
+
3
32
  ## 0.3.6
4
33
 
5
34
  ### Patch Changes
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  externalUserSourcesHeading: {
10
10
  id: 'smart-experiences.smart-hooks.external.sourced.from',
11
11
  defaultMessage: 'Found in:',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  externalUserSourcesHeading: {
4
4
  id: 'smart-experiences.smart-hooks.external.sourced.from',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  externalUserSourcesHeading: {
4
4
  id: 'smart-experiences.smart-hooks.external.sourced.from',
@@ -26,7 +26,7 @@ export type UseUserRecommendationsProps = {
26
26
  * generating suggestions.
27
27
  * All fieldId's will be bucketed into a model that provides generic smart results,
28
28
  * except "assignee", "mentions" which are specifically trained for Jira Assignee and
29
- * @Mentions. For specifically trained models, please contact #search-plex.
29
+ * @Mentions. For specifically trained models, please contact #help-search-plex.
30
30
  */
31
31
  fieldId: string;
32
32
  /**
@@ -55,7 +55,7 @@ export type UseUserRecommendationsProps = {
55
55
  * the hook is used.
56
56
  * WARNING: please consider carefully before deciding to preload your suggestions
57
57
  * as this will increase the load on the recommendations services (has caused HOTs).
58
- * Please give #search-plex a ballpark on the expected request volume.
58
+ * Please give #help-search-plex a ballpark on the expected request volume.
59
59
  * (@default: false)
60
60
  */
61
61
  preload?: boolean;
@@ -85,7 +85,7 @@ export type UseUserRecommendationsProps = {
85
85
  * Identifier for the product's tenant, also known as siteId or cloudId.
86
86
  * If product is not tenanted, the convention is to provide the productKey
87
87
  * as the tenantId (e.g. "bitbucket") but this may vary across products.
88
- * Check with #search-plex.
88
+ * Check with #help-search-plex.
89
89
  */
90
90
  tenantId: string;
91
91
  };
@@ -1,4 +1,4 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl';
2
2
  import { type UserSearchItem } from '@atlaskit/smart-common';
3
3
  import { type OptionData } from '@atlaskit/user-picker';
4
4
  declare const _default: (recommendations: UserSearchItem[], intl: IntlShape) => OptionData[];
@@ -26,7 +26,7 @@ export type UseUserRecommendationsProps = {
26
26
  * generating suggestions.
27
27
  * All fieldId's will be bucketed into a model that provides generic smart results,
28
28
  * except "assignee", "mentions" which are specifically trained for Jira Assignee and
29
- * @Mentions. For specifically trained models, please contact #search-plex.
29
+ * @Mentions. For specifically trained models, please contact #help-search-plex.
30
30
  */
31
31
  fieldId: string;
32
32
  /**
@@ -55,7 +55,7 @@ export type UseUserRecommendationsProps = {
55
55
  * the hook is used.
56
56
  * WARNING: please consider carefully before deciding to preload your suggestions
57
57
  * as this will increase the load on the recommendations services (has caused HOTs).
58
- * Please give #search-plex a ballpark on the expected request volume.
58
+ * Please give #help-search-plex a ballpark on the expected request volume.
59
59
  * (@default: false)
60
60
  */
61
61
  preload?: boolean;
@@ -85,7 +85,7 @@ export type UseUserRecommendationsProps = {
85
85
  * Identifier for the product's tenant, also known as siteId or cloudId.
86
86
  * If product is not tenanted, the convention is to provide the productKey
87
87
  * as the tenantId (e.g. "bitbucket") but this may vary across products.
88
- * Check with #search-plex.
88
+ * Check with #help-search-plex.
89
89
  */
90
90
  tenantId: string;
91
91
  };
@@ -1,4 +1,4 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl';
2
2
  import { type UserSearchItem } from '@atlaskit/smart-common';
3
3
  import { type OptionData } from '@atlaskit/user-picker';
4
4
  declare const _default: (recommendations: UserSearchItem[], intl: IntlShape) => OptionData[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-hooks",
3
- "version": "0.3.6",
3
+ "version": "1.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,10 +28,10 @@
28
28
  "@atlaskit/afm-i18n-platform-smart-experiences-smart-hooks": "2.7.0",
29
29
  "@atlaskit/analytics-gas-types": "^5.1.0",
30
30
  "@atlaskit/analytics-listeners": "^10.0.0",
31
- "@atlaskit/analytics-next": "^11.1.0",
31
+ "@atlaskit/analytics-next": "^11.2.0",
32
32
  "@atlaskit/smart-common": "^2.0.0",
33
33
  "@atlaskit/ufo": "^0.4.0",
34
- "@atlaskit/user-picker": "^11.22.0",
34
+ "@atlaskit/user-picker": "^12.0.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "lodash": "^4.17.21",
37
37
  "memoize-one": "^6.0.0",
@@ -39,16 +39,16 @@
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
- "@atlassian/a11y-jest-testing": "^0.10.0",
46
- "@storybook/addon-knobs": "^6.4.0",
45
+ "@atlassian/a11y-jest-testing": "^0.11.0",
47
46
  "@testing-library/react": "^16.3.0",
48
47
  "@welldone-software/why-did-you-render": "^6.2.0",
49
48
  "enzyme": "^3.10.0",
50
49
  "fetch-mock": "^8.0.0",
51
50
  "react-dom": "^18.2.0",
51
+ "react-intl": "^6.6.2",
52
52
  "wait-for-expect": "^1.2.0"
53
53
  },
54
54
  "techstack": {
package/report.api.md CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  ```ts
19
19
  import { EntityType } from '@atlaskit/smart-common';
20
- import { IntlShape } from 'react-intl-next';
20
+ import { IntlShape } from 'react-intl';
21
21
  import { MemoizedFn } from 'memoize-one';
22
22
  import { OptionData } from '@atlaskit/user-picker';
23
23
  import { UserSearchItem } from '@atlaskit/smart-common';
@@ -78,7 +78,7 @@ type UseUserRecommendationsProps = {
78
78
  ```json
79
79
  {
80
80
  "react": "^16.8.0",
81
- "react-intl-next": "npm:react-intl@^5.18.1"
81
+ "react-intl": "npm:react-intl@^5.18.1"
82
82
  }
83
83
  ```
84
84