@atlaskit/link-datasource 1.23.3 → 1.23.4

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,11 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 1.23.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224) [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) - ED-22219: adf-schema updated to 35.5.2
8
+
3
9
  ## 1.23.3
4
10
 
5
11
  ### Patch Changes
@@ -3,11 +3,12 @@ import { useEffect, useMemo } from 'react';
3
3
 
4
4
  import { jsx } from '@emotion/react';
5
5
  import styled from '@emotion/styled';
6
- import { IntlProvider } from 'react-intl-next';
7
6
 
7
+ import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
8
8
  import { SmartCardProvider } from '@atlaskit/link-provider';
9
9
  import { mockDatasourceFetchRequests } from '@atlaskit/link-test-helpers/datasource';
10
10
 
11
+ import { fetchMessagesForLocale } from '../src/common/utils/locale/fetch-messages-for-locale';
11
12
  import { useDatasourceTableState } from '../src/hooks/useDatasourceTableState';
12
13
  import { IssueLikeDataTableView } from '../src/ui/issue-like-table';
13
14
  import { JiraIssueDatasourceParameters } from '../src/ui/jira-issues-modal/types';
@@ -21,15 +22,16 @@ interface Props {
21
22
  isReadonly?: boolean;
22
23
  canResizeColumns?: boolean;
23
24
  canControlWrapping?: boolean;
25
+ skipIntl?: boolean;
24
26
  }
25
27
 
26
- const TableViewWrapper = styled.div`
27
- display: flex;
28
- flex-direction: column;
29
- overflow: scroll;
30
- width: 100%;
31
- height: 100%;
32
- `;
28
+ const TableViewWrapper = styled.div({
29
+ display: 'flex',
30
+ flexDirection: 'column',
31
+ overflow: 'scroll',
32
+ width: '100%',
33
+ height: '100%',
34
+ });
33
35
 
34
36
  const ExampleBody = ({
35
37
  isReadonly,
@@ -107,9 +109,10 @@ export const ExampleIssueLikeTable = ({
107
109
  isReadonly,
108
110
  canResizeColumns,
109
111
  canControlWrapping,
112
+ skipIntl,
110
113
  }: Props) => {
111
114
  return (
112
- <IntlProvider locale="en">
115
+ <IntlMessagesProvider loaderFn={fetchMessagesForLocale}>
113
116
  <SmartCardProvider client={new SmartLinkClient()}>
114
117
  <ExampleBody
115
118
  isReadonly={isReadonly}
@@ -117,6 +120,6 @@ export const ExampleIssueLikeTable = ({
117
120
  canControlWrapping={canControlWrapping}
118
121
  />
119
122
  </SmartCardProvider>
120
- </IntlProvider>
123
+ </IntlMessagesProvider>
121
124
  );
122
125
  };
@@ -1,12 +1,12 @@
1
1
  import React, { useEffect, useMemo } from 'react';
2
2
 
3
- import { IntlProvider } from 'react-intl-next';
4
-
3
+ import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
5
4
  import { SmartCardProvider } from '@atlaskit/link-provider';
6
5
  import { mockDatasourceFetchRequests } from '@atlaskit/link-test-helpers/datasource';
7
6
  import { DatasourceParameters } from '@atlaskit/linking-types';
8
7
 
9
8
  import { DatasourceTableView } from '../src';
9
+ import { fetchMessagesForLocale } from '../src/common/utils/locale/fetch-messages-for-locale';
10
10
  import { JiraIssueDatasourceParameters } from '../src/ui/jira-issues-modal/types';
11
11
 
12
12
  import SmartLinkClient from './smartLinkCustomClient';
@@ -66,10 +66,10 @@ export const ExampleJiraIssuesTableView = ({
66
66
  }, [mockDatasourceFetchRequest]);
67
67
 
68
68
  return (
69
- <IntlProvider locale="en">
69
+ <IntlMessagesProvider loaderFn={fetchMessagesForLocale}>
70
70
  <SmartCardProvider client={new SmartLinkClient()}>
71
71
  <JiraIssuesTableView parameters={parameters} />
72
72
  </SmartCardProvider>
73
- </IntlProvider>
73
+ </IntlMessagesProvider>
74
74
  );
75
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "1.23.3",
3
+ "version": "1.23.4",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,13 +24,14 @@
24
24
  "atlassian": {
25
25
  "team": "Linking Platform",
26
26
  "inPublicMirror": false,
27
- "releaseModel": "continuous"
27
+ "releaseModel": "continuous",
28
+ "i18n": true
28
29
  },
29
30
  "scripts": {
30
31
  "analytics:codegen": "yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource --output ./src/analytics/generated"
31
32
  },
32
33
  "dependencies": {
33
- "@atlaskit/adf-schema": "^35.5.1",
34
+ "@atlaskit/adf-schema": "^35.5.2",
34
35
  "@atlaskit/analytics-next": "^9.2.0",
35
36
  "@atlaskit/avatar": "^21.5.0",
36
37
  "@atlaskit/avatar-group": "^9.5.0",