@atlaskit/link-datasource 4.6.1 → 4.7.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 +12 -0
- package/dist/cjs/ui/common/modal/search-count/index.js +9 -3
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +5 -1
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +5 -1
- package/dist/es2019/ui/common/modal/search-count/index.js +7 -2
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +5 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +5 -1
- package/dist/esm/ui/common/modal/search-count/index.js +9 -3
- package/dist/esm/ui/confluence-search-modal/modal/index.js +5 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +5 -1
- package/dist/types/ui/common/modal/search-count/index.d.ts +6 -1
- package/dist/types-ts4.5/ui/common/modal/search-count/index.d.ts +6 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#144089](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/144089)
|
|
8
|
+
[`fc6dee851ba2a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fc6dee851ba2a) -
|
|
9
|
+
[ux] Behind fg `platform-linking-visual-refresh-sllv` - Updates styles for modal footer
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 4.6.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -9,6 +9,7 @@ exports.default = exports.AssetsItemCount = void 0;
|
|
|
9
9
|
require("./index.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
13
|
var _react = _interopRequireDefault(require("react"));
|
|
13
14
|
var _reactIntlNext = require("react-intl-next");
|
|
14
15
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
@@ -18,11 +19,14 @@ var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
|
|
|
18
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
20
|
var _messages = require("../../../table-footer/messages");
|
|
20
21
|
var _messages2 = require("./messages");
|
|
22
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
21
24
|
var styles = {
|
|
22
25
|
searchCountStyles: "_16jlkb7n _1o9zkb7n _i0dlf1ug"
|
|
23
26
|
};
|
|
24
27
|
var ItemCountWrapper = function ItemCountWrapper(_ref) {
|
|
25
28
|
var url = _ref.url,
|
|
29
|
+
additionalStyles = _ref.styles,
|
|
26
30
|
children = _ref.children,
|
|
27
31
|
testId = _ref.testId;
|
|
28
32
|
return /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
@@ -35,10 +39,10 @@ var ItemCountWrapper = function ItemCountWrapper(_ref) {
|
|
|
35
39
|
testId: "item-count-url"
|
|
36
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
37
41
|
,
|
|
38
|
-
style: {
|
|
42
|
+
style: _objectSpread({
|
|
39
43
|
color: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? "var(--ds-text-subtlest, #626F86)" : "var(--ds-text-accent-gray, ".concat(_colors.N800, ")"),
|
|
40
44
|
textDecoration: !url ? 'none' : ''
|
|
41
|
-
}
|
|
45
|
+
}, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') && additionalStyles)
|
|
42
46
|
}, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? children : /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
43
47
|
size: "xxsmall"
|
|
44
48
|
}, children)));
|
|
@@ -64,6 +68,7 @@ var AssetsItemCount = exports.AssetsItemCount = function AssetsItemCount(_ref2)
|
|
|
64
68
|
var TableSearchCount = function TableSearchCount(_ref3) {
|
|
65
69
|
var url = _ref3.url,
|
|
66
70
|
searchCount = _ref3.searchCount,
|
|
71
|
+
additionalStyles = _ref3.styles,
|
|
67
72
|
_ref3$testId = _ref3.testId,
|
|
68
73
|
testId = _ref3$testId === void 0 ? 'datasource-table-total-results-count' : _ref3$testId,
|
|
69
74
|
_ref3$prefixTextType = _ref3.prefixTextType,
|
|
@@ -72,7 +77,8 @@ var TableSearchCount = function TableSearchCount(_ref3) {
|
|
|
72
77
|
var messageKey = isIssue && (0, _platformFeatureFlags.fg)('confluence-issue-terminology-refresh') ? 'issueCountTextIssueTermRefresh' : "".concat(prefixTextType, "CountText");
|
|
73
78
|
return /*#__PURE__*/_react.default.createElement(ItemCountWrapper, {
|
|
74
79
|
testId: testId,
|
|
75
|
-
url: url
|
|
80
|
+
url: url,
|
|
81
|
+
styles: additionalStyles
|
|
76
82
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages2.searchCountMessages[messageKey], {
|
|
77
83
|
values: {
|
|
78
84
|
searchCount: searchCount
|
|
@@ -362,7 +362,11 @@ var PlainConfluenceSearchConfigModal = exports.PlainConfluenceSearchConfigModal
|
|
|
362
362
|
searchCount: totalCount,
|
|
363
363
|
url: confluenceSearchUrl,
|
|
364
364
|
prefixTextType: "result",
|
|
365
|
-
testId: "confluence-search-datasource-modal-total-results-count"
|
|
365
|
+
testId: "confluence-search-datasource-modal-total-results-count",
|
|
366
|
+
styles: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? {
|
|
367
|
+
color: "var(--ds-text, #172B4D)",
|
|
368
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
369
|
+
} : undefined
|
|
366
370
|
}), /*#__PURE__*/_react.default.createElement(_cancelButton.CancelButton, {
|
|
367
371
|
onCancel: onCancel,
|
|
368
372
|
getAnalyticsPayload: getButtonAnalyticsPayload,
|
|
@@ -414,7 +414,11 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
414
414
|
searchCount: totalCount,
|
|
415
415
|
url: jqlUrl,
|
|
416
416
|
prefixTextType: "issue",
|
|
417
|
-
testId: "jira-datasource-modal-total-issues-count"
|
|
417
|
+
testId: "jira-datasource-modal-total-issues-count",
|
|
418
|
+
styles: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? {
|
|
419
|
+
color: "var(--ds-text, #172B4D)",
|
|
420
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
421
|
+
} : undefined
|
|
418
422
|
}), /*#__PURE__*/_react.default.createElement(_cancelButton.CancelButton, {
|
|
419
423
|
onCancel: onCancel,
|
|
420
424
|
getAnalyticsPayload: getCancelButtonAnalyticsPayload,
|
|
@@ -16,6 +16,7 @@ const styles = {
|
|
|
16
16
|
};
|
|
17
17
|
const ItemCountWrapper = ({
|
|
18
18
|
url,
|
|
19
|
+
styles: additionalStyles,
|
|
19
20
|
children,
|
|
20
21
|
testId
|
|
21
22
|
}) => /*#__PURE__*/React.createElement(Flex, {
|
|
@@ -30,7 +31,9 @@ const ItemCountWrapper = ({
|
|
|
30
31
|
,
|
|
31
32
|
style: {
|
|
32
33
|
color: fg('platform-linking-visual-refresh-sllv') ? "var(--ds-text-subtlest, #626F86)" : `var(--ds-text-accent-gray, ${N800})`,
|
|
33
|
-
textDecoration: !url ? 'none' : ''
|
|
34
|
+
textDecoration: !url ? 'none' : '',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
36
|
+
...(fg('platform-linking-visual-refresh-sllv') && additionalStyles)
|
|
34
37
|
}
|
|
35
38
|
}, fg('platform-linking-visual-refresh-sllv') ? children : /*#__PURE__*/React.createElement(Heading, {
|
|
36
39
|
size: "xxsmall"
|
|
@@ -57,6 +60,7 @@ export const AssetsItemCount = ({
|
|
|
57
60
|
const TableSearchCount = ({
|
|
58
61
|
url,
|
|
59
62
|
searchCount,
|
|
63
|
+
styles: additionalStyles,
|
|
60
64
|
testId = 'datasource-table-total-results-count',
|
|
61
65
|
prefixTextType = 'issue'
|
|
62
66
|
}) => {
|
|
@@ -64,7 +68,8 @@ const TableSearchCount = ({
|
|
|
64
68
|
const messageKey = isIssue && fg('confluence-issue-terminology-refresh') ? 'issueCountTextIssueTermRefresh' : `${prefixTextType}CountText`;
|
|
65
69
|
return /*#__PURE__*/React.createElement(ItemCountWrapper, {
|
|
66
70
|
testId: testId,
|
|
67
|
-
url: url
|
|
71
|
+
url: url,
|
|
72
|
+
styles: additionalStyles
|
|
68
73
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, searchCountMessages[messageKey], {
|
|
69
74
|
values: {
|
|
70
75
|
searchCount
|
|
@@ -343,7 +343,11 @@ export const PlainConfluenceSearchConfigModal = props => {
|
|
|
343
343
|
searchCount: totalCount,
|
|
344
344
|
url: confluenceSearchUrl,
|
|
345
345
|
prefixTextType: "result",
|
|
346
|
-
testId: "confluence-search-datasource-modal-total-results-count"
|
|
346
|
+
testId: "confluence-search-datasource-modal-total-results-count",
|
|
347
|
+
styles: fg('platform-linking-visual-refresh-sllv') ? {
|
|
348
|
+
color: "var(--ds-text, #172B4D)",
|
|
349
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
350
|
+
} : undefined
|
|
347
351
|
}), /*#__PURE__*/React.createElement(CancelButton, {
|
|
348
352
|
onCancel: onCancel,
|
|
349
353
|
getAnalyticsPayload: getButtonAnalyticsPayload,
|
|
@@ -396,7 +396,11 @@ const PlainJiraIssuesConfigModal = props => {
|
|
|
396
396
|
searchCount: totalCount,
|
|
397
397
|
url: jqlUrl,
|
|
398
398
|
prefixTextType: "issue",
|
|
399
|
-
testId: "jira-datasource-modal-total-issues-count"
|
|
399
|
+
testId: "jira-datasource-modal-total-issues-count",
|
|
400
|
+
styles: fg('platform-linking-visual-refresh-sllv') ? {
|
|
401
|
+
color: "var(--ds-text, #172B4D)",
|
|
402
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
403
|
+
} : undefined
|
|
400
404
|
}), /*#__PURE__*/React.createElement(CancelButton, {
|
|
401
405
|
onCancel: onCancel,
|
|
402
406
|
getAnalyticsPayload: getCancelButtonAnalyticsPayload,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import "./index.compiled.css";
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
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; }
|
|
5
8
|
import React from 'react';
|
|
6
9
|
import { FormattedMessage, FormattedNumber } from 'react-intl-next';
|
|
7
10
|
import Heading from '@atlaskit/heading';
|
|
@@ -16,6 +19,7 @@ var styles = {
|
|
|
16
19
|
};
|
|
17
20
|
var ItemCountWrapper = function ItemCountWrapper(_ref) {
|
|
18
21
|
var url = _ref.url,
|
|
22
|
+
additionalStyles = _ref.styles,
|
|
19
23
|
children = _ref.children,
|
|
20
24
|
testId = _ref.testId;
|
|
21
25
|
return /*#__PURE__*/React.createElement(Flex, {
|
|
@@ -28,10 +32,10 @@ var ItemCountWrapper = function ItemCountWrapper(_ref) {
|
|
|
28
32
|
testId: "item-count-url"
|
|
29
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
34
|
,
|
|
31
|
-
style: {
|
|
35
|
+
style: _objectSpread({
|
|
32
36
|
color: fg('platform-linking-visual-refresh-sllv') ? "var(--ds-text-subtlest, #626F86)" : "var(--ds-text-accent-gray, ".concat(N800, ")"),
|
|
33
37
|
textDecoration: !url ? 'none' : ''
|
|
34
|
-
}
|
|
38
|
+
}, fg('platform-linking-visual-refresh-sllv') && additionalStyles)
|
|
35
39
|
}, fg('platform-linking-visual-refresh-sllv') ? children : /*#__PURE__*/React.createElement(Heading, {
|
|
36
40
|
size: "xxsmall"
|
|
37
41
|
}, children)));
|
|
@@ -57,6 +61,7 @@ export var AssetsItemCount = function AssetsItemCount(_ref2) {
|
|
|
57
61
|
var TableSearchCount = function TableSearchCount(_ref3) {
|
|
58
62
|
var url = _ref3.url,
|
|
59
63
|
searchCount = _ref3.searchCount,
|
|
64
|
+
additionalStyles = _ref3.styles,
|
|
60
65
|
_ref3$testId = _ref3.testId,
|
|
61
66
|
testId = _ref3$testId === void 0 ? 'datasource-table-total-results-count' : _ref3$testId,
|
|
62
67
|
_ref3$prefixTextType = _ref3.prefixTextType,
|
|
@@ -65,7 +70,8 @@ var TableSearchCount = function TableSearchCount(_ref3) {
|
|
|
65
70
|
var messageKey = isIssue && fg('confluence-issue-terminology-refresh') ? 'issueCountTextIssueTermRefresh' : "".concat(prefixTextType, "CountText");
|
|
66
71
|
return /*#__PURE__*/React.createElement(ItemCountWrapper, {
|
|
67
72
|
testId: testId,
|
|
68
|
-
url: url
|
|
73
|
+
url: url,
|
|
74
|
+
styles: additionalStyles
|
|
69
75
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, searchCountMessages[messageKey], {
|
|
70
76
|
values: {
|
|
71
77
|
searchCount: searchCount
|
|
@@ -353,7 +353,11 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
353
353
|
searchCount: totalCount,
|
|
354
354
|
url: confluenceSearchUrl,
|
|
355
355
|
prefixTextType: "result",
|
|
356
|
-
testId: "confluence-search-datasource-modal-total-results-count"
|
|
356
|
+
testId: "confluence-search-datasource-modal-total-results-count",
|
|
357
|
+
styles: fg('platform-linking-visual-refresh-sllv') ? {
|
|
358
|
+
color: "var(--ds-text, #172B4D)",
|
|
359
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
360
|
+
} : undefined
|
|
357
361
|
}), /*#__PURE__*/React.createElement(CancelButton, {
|
|
358
362
|
onCancel: onCancel,
|
|
359
363
|
getAnalyticsPayload: getButtonAnalyticsPayload,
|
|
@@ -406,7 +406,11 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
406
406
|
searchCount: totalCount,
|
|
407
407
|
url: jqlUrl,
|
|
408
408
|
prefixTextType: "issue",
|
|
409
|
-
testId: "jira-datasource-modal-total-issues-count"
|
|
409
|
+
testId: "jira-datasource-modal-total-issues-count",
|
|
410
|
+
styles: fg('platform-linking-visual-refresh-sllv') ? {
|
|
411
|
+
color: "var(--ds-text, #172B4D)",
|
|
412
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
413
|
+
} : undefined
|
|
410
414
|
}), /*#__PURE__*/React.createElement(CancelButton, {
|
|
411
415
|
onCancel: onCancel,
|
|
412
416
|
getAnalyticsPayload: getCancelButtonAnalyticsPayload,
|
|
@@ -4,7 +4,12 @@ interface TableSearchCountProps {
|
|
|
4
4
|
prefixTextType: 'issue' | 'result' | 'item';
|
|
5
5
|
searchCount: number;
|
|
6
6
|
testId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* This attribute is only consumed when the fg
|
|
9
|
+
* `platform-linking-visual-refresh-sllv` is enabled.
|
|
10
|
+
*/
|
|
11
|
+
styles?: React.CSSProperties;
|
|
7
12
|
}
|
|
8
13
|
export declare const AssetsItemCount: ({ searchCount, url, testId, }: Pick<TableSearchCountProps, 'testId' | 'url' | 'searchCount'>) => React.JSX.Element;
|
|
9
|
-
declare const TableSearchCount: ({ url, searchCount, testId, prefixTextType, }: TableSearchCountProps) => React.JSX.Element;
|
|
14
|
+
declare const TableSearchCount: ({ url, searchCount, styles: additionalStyles, testId, prefixTextType, }: TableSearchCountProps) => React.JSX.Element;
|
|
10
15
|
export default TableSearchCount;
|
|
@@ -4,7 +4,12 @@ interface TableSearchCountProps {
|
|
|
4
4
|
prefixTextType: 'issue' | 'result' | 'item';
|
|
5
5
|
searchCount: number;
|
|
6
6
|
testId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* This attribute is only consumed when the fg
|
|
9
|
+
* `platform-linking-visual-refresh-sllv` is enabled.
|
|
10
|
+
*/
|
|
11
|
+
styles?: React.CSSProperties;
|
|
7
12
|
}
|
|
8
13
|
export declare const AssetsItemCount: ({ searchCount, url, testId, }: Pick<TableSearchCountProps, 'testId' | 'url' | 'searchCount'>) => React.JSX.Element;
|
|
9
|
-
declare const TableSearchCount: ({ url, searchCount, testId, prefixTextType, }: TableSearchCountProps) => React.JSX.Element;
|
|
14
|
+
declare const TableSearchCount: ({ url, searchCount, styles: additionalStyles, testId, prefixTextType, }: TableSearchCountProps) => React.JSX.Element;
|
|
10
15
|
export default TableSearchCount;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@atlaskit/primitives": "^14.4.0",
|
|
79
79
|
"@atlaskit/react-select": "^2.4.0",
|
|
80
80
|
"@atlaskit/select": "^20.4.0",
|
|
81
|
-
"@atlaskit/smart-card": "^36.
|
|
81
|
+
"@atlaskit/smart-card": "^36.10.0",
|
|
82
82
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
83
83
|
"@atlaskit/spinner": "^18.0.0",
|
|
84
84
|
"@atlaskit/tag": "^14.0.0",
|