@atlaskit/link-datasource 1.22.2 → 1.22.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 +14 -0
- package/dist/cjs/ui/common/error-state/access-required.js +5 -4
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +4 -1
- package/dist/es2019/ui/common/error-state/access-required.js +5 -4
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +4 -1
- package/dist/esm/ui/common/error-state/access-required.js +5 -4
- package/dist/esm/ui/jira-issues-modal/modal/index.js +4 -1
- package/dist/types/ui/assets-modal/types.d.ts +4 -13
- package/dist/types-ts4.5/ui/assets-modal/types.d.ts +4 -13
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.22.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#71047](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71047) [`931a7edba41e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/931a7edba41e) - update window.location usage to be compatible with SSR
|
|
8
|
+
|
|
9
|
+
## 1.22.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
|
|
14
|
+
- [#70460](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70460) [`2f37600156ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f37600156ae) - The internal composition of a component in this package has changed. There is no expected change in behaviour.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.22.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -9,6 +9,7 @@ var _react = require("react");
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _reactIntlNext = require("react-intl-next");
|
|
11
11
|
var _emptyState = _interopRequireDefault(require("@atlaskit/empty-state"));
|
|
12
|
+
var _primitives = require("@atlaskit/primitives");
|
|
12
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
14
|
var _analytics = require("../../../analytics");
|
|
14
15
|
var _accessRequiredSvg = require("./access-required-svg");
|
|
@@ -25,8 +26,8 @@ var descriptionMessageStyles = (0, _react2.css)({
|
|
|
25
26
|
flexDirection: 'column',
|
|
26
27
|
gap: "var(--ds-space-200, 16px)"
|
|
27
28
|
});
|
|
28
|
-
var iconContainerStyles = (0,
|
|
29
|
-
marginBottom:
|
|
29
|
+
var iconContainerStyles = (0, _primitives.xcss)({
|
|
30
|
+
marginBottom: 'space.200'
|
|
30
31
|
});
|
|
31
32
|
var Description = function Description(_ref) {
|
|
32
33
|
var message = _ref.message,
|
|
@@ -38,8 +39,8 @@ var Description = function Description(_ref) {
|
|
|
38
39
|
}, url), (0, _react2.jsx)("span", null, message));
|
|
39
40
|
};
|
|
40
41
|
var IconContainer = function IconContainer() {
|
|
41
|
-
return (0, _react2.jsx)(
|
|
42
|
-
|
|
42
|
+
return (0, _react2.jsx)(_primitives.Box, {
|
|
43
|
+
xcss: iconContainerStyles
|
|
43
44
|
}, (0, _react2.jsx)(_accessRequiredSvg.AccessRequiredSVG, null));
|
|
44
45
|
};
|
|
45
46
|
var AccessRequired = exports.AccessRequired = function AccessRequired(_ref2) {
|
|
@@ -199,7 +199,10 @@ var PlainJiraIssuesConfigModal = exports.PlainJiraIssuesConfigModal = function P
|
|
|
199
199
|
return jiraSite.cloudId === cloudId;
|
|
200
200
|
});
|
|
201
201
|
} else {
|
|
202
|
-
var currentlyLoggedInSiteUrl
|
|
202
|
+
var currentlyLoggedInSiteUrl;
|
|
203
|
+
if (typeof window.location !== 'undefined') {
|
|
204
|
+
currentlyLoggedInSiteUrl = window.location.origin;
|
|
205
|
+
}
|
|
203
206
|
return (availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(function (jiraSite) {
|
|
204
207
|
return jiraSite.url === currentlyLoggedInSiteUrl;
|
|
205
208
|
})) || (availableSites === null || availableSites === void 0 ? void 0 : availableSites[0]);
|
|
@@ -3,6 +3,7 @@ import { useEffect } from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { useIntl } from 'react-intl-next';
|
|
5
5
|
import EmptyState from '@atlaskit/empty-state';
|
|
6
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
7
|
import { N400 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
8
9
|
import { AccessRequiredSVG } from './access-required-svg';
|
|
@@ -17,8 +18,8 @@ const descriptionMessageStyles = css({
|
|
|
17
18
|
flexDirection: 'column',
|
|
18
19
|
gap: "var(--ds-space-200, 16px)"
|
|
19
20
|
});
|
|
20
|
-
const iconContainerStyles =
|
|
21
|
-
marginBottom:
|
|
21
|
+
const iconContainerStyles = xcss({
|
|
22
|
+
marginBottom: 'space.200'
|
|
22
23
|
});
|
|
23
24
|
const Description = ({
|
|
24
25
|
message,
|
|
@@ -30,8 +31,8 @@ const Description = ({
|
|
|
30
31
|
css: urlStyles
|
|
31
32
|
}, url), jsx("span", null, message));
|
|
32
33
|
};
|
|
33
|
-
const IconContainer = () => jsx(
|
|
34
|
-
|
|
34
|
+
const IconContainer = () => jsx(Box, {
|
|
35
|
+
xcss: iconContainerStyles
|
|
35
36
|
}, jsx(AccessRequiredSVG, null));
|
|
36
37
|
export const AccessRequired = ({
|
|
37
38
|
url
|
|
@@ -161,7 +161,10 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
161
161
|
if (cloudId) {
|
|
162
162
|
return availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(jiraSite => jiraSite.cloudId === cloudId);
|
|
163
163
|
} else {
|
|
164
|
-
|
|
164
|
+
let currentlyLoggedInSiteUrl;
|
|
165
|
+
if (typeof window.location !== 'undefined') {
|
|
166
|
+
currentlyLoggedInSiteUrl = window.location.origin;
|
|
167
|
+
}
|
|
165
168
|
return (availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(jiraSite => jiraSite.url === currentlyLoggedInSiteUrl)) || (availableSites === null || availableSites === void 0 ? void 0 : availableSites[0]);
|
|
166
169
|
}
|
|
167
170
|
}, [availableSites, cloudId]);
|
|
@@ -3,6 +3,7 @@ import { useEffect } from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { useIntl } from 'react-intl-next';
|
|
5
5
|
import EmptyState from '@atlaskit/empty-state';
|
|
6
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
7
|
import { N400 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
8
9
|
import { AccessRequiredSVG } from './access-required-svg';
|
|
@@ -17,8 +18,8 @@ var descriptionMessageStyles = css({
|
|
|
17
18
|
flexDirection: 'column',
|
|
18
19
|
gap: "var(--ds-space-200, 16px)"
|
|
19
20
|
});
|
|
20
|
-
var iconContainerStyles =
|
|
21
|
-
marginBottom:
|
|
21
|
+
var iconContainerStyles = xcss({
|
|
22
|
+
marginBottom: 'space.200'
|
|
22
23
|
});
|
|
23
24
|
var Description = function Description(_ref) {
|
|
24
25
|
var message = _ref.message,
|
|
@@ -30,8 +31,8 @@ var Description = function Description(_ref) {
|
|
|
30
31
|
}, url), jsx("span", null, message));
|
|
31
32
|
};
|
|
32
33
|
var IconContainer = function IconContainer() {
|
|
33
|
-
return jsx(
|
|
34
|
-
|
|
34
|
+
return jsx(Box, {
|
|
35
|
+
xcss: iconContainerStyles
|
|
35
36
|
}, jsx(AccessRequiredSVG, null));
|
|
36
37
|
};
|
|
37
38
|
export var AccessRequired = function AccessRequired(_ref2) {
|
|
@@ -190,7 +190,10 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
190
190
|
return jiraSite.cloudId === cloudId;
|
|
191
191
|
});
|
|
192
192
|
} else {
|
|
193
|
-
var currentlyLoggedInSiteUrl
|
|
193
|
+
var currentlyLoggedInSiteUrl;
|
|
194
|
+
if (typeof window.location !== 'undefined') {
|
|
195
|
+
currentlyLoggedInSiteUrl = window.location.origin;
|
|
196
|
+
}
|
|
194
197
|
return (availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(function (jiraSite) {
|
|
195
198
|
return jiraSite.url === currentlyLoggedInSiteUrl;
|
|
196
199
|
})) || (availableSites === null || availableSites === void 0 ? void 0 : availableSites[0]);
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { DatasourceAdf,
|
|
3
|
-
export
|
|
2
|
+
import { DatasourceAdf, InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
3
|
+
export type AssetsDatasourceParameters = {
|
|
4
4
|
workspaceId: string;
|
|
5
5
|
aql: string;
|
|
6
6
|
schemaId: string;
|
|
7
|
-
}
|
|
8
|
-
export
|
|
9
|
-
attrs: {
|
|
10
|
-
url?: string;
|
|
11
|
-
datasource: {
|
|
12
|
-
id: string;
|
|
13
|
-
parameters: AssetsDatasourceParameters;
|
|
14
|
-
views: DatasourceAdfView[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export type AssetsDatasourceAdf = DatasourceAdf<AssetsDatasourceParameters>;
|
|
18
9
|
export interface AssetsConfigModalProps {
|
|
19
10
|
datasourceId: string;
|
|
20
11
|
visibleColumnKeys?: string[];
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { DatasourceAdf,
|
|
3
|
-
export
|
|
2
|
+
import { DatasourceAdf, InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
3
|
+
export type AssetsDatasourceParameters = {
|
|
4
4
|
workspaceId: string;
|
|
5
5
|
aql: string;
|
|
6
6
|
schemaId: string;
|
|
7
|
-
}
|
|
8
|
-
export
|
|
9
|
-
attrs: {
|
|
10
|
-
url?: string;
|
|
11
|
-
datasource: {
|
|
12
|
-
id: string;
|
|
13
|
-
parameters: AssetsDatasourceParameters;
|
|
14
|
-
views: DatasourceAdfView[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export type AssetsDatasourceAdf = DatasourceAdf<AssetsDatasourceParameters>;
|
|
18
9
|
export interface AssetsConfigModalProps {
|
|
19
10
|
datasourceId: string;
|
|
20
11
|
visibleColumnKeys?: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.4",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@atlaskit/avatar-group": "^9.5.0",
|
|
37
37
|
"@atlaskit/badge": "^15.2.0",
|
|
38
38
|
"@atlaskit/button": "^17.3.0",
|
|
39
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
40
|
-
"@atlaskit/editor-prosemirror": "
|
|
39
|
+
"@atlaskit/dropdown-menu": "^12.5.0",
|
|
40
|
+
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
41
41
|
"@atlaskit/empty-state": "^7.5.0",
|
|
42
42
|
"@atlaskit/form": "^9.0.3",
|
|
43
43
|
"@atlaskit/heading": "^1.6.0",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.18.0",
|
|
62
62
|
"@atlaskit/primitives": "^2.0.0",
|
|
63
63
|
"@atlaskit/select": "^17.0.3",
|
|
64
|
-
"@atlaskit/smart-card": "^26.
|
|
64
|
+
"@atlaskit/smart-card": "^26.47.0",
|
|
65
65
|
"@atlaskit/spinner": "^16.0.0",
|
|
66
66
|
"@atlaskit/tag": "^12.0.0",
|
|
67
67
|
"@atlaskit/textfield": "6.0.0",
|
|
68
68
|
"@atlaskit/theme": "^12.6.0",
|
|
69
|
-
"@atlaskit/tokens": "^1.
|
|
69
|
+
"@atlaskit/tokens": "^1.36.0",
|
|
70
70
|
"@atlaskit/tooltip": "^18.1.0",
|
|
71
71
|
"@atlaskit/ufo": "^0.2.4",
|
|
72
72
|
"@atlaskit/width-detector": "^4.1.7",
|