@atlaskit/link-datasource 3.21.5 → 3.22.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 +14 -0
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +3 -1
- package/dist/cjs/ui/common/modal/basic-search-input/basic-search-input-old.js +2 -1
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +2 -1
- package/dist/cjs/ui/common/modal/site-selector/index.js +1 -0
- package/dist/cjs/ui/common/modal/site-selector/site-selector-old.js +2 -1
- package/dist/cjs/ui/issue-like-table/render-type/icon/icon-old.js +2 -1
- package/dist/cjs/ui/issue-like-table/render-type/icon/index.js +2 -1
- package/dist/cjs/ui/issue-like-table/shared-components/icon/icon-old.js +2 -1
- package/dist/cjs/ui/issue-like-table/shared-components/icon/index.js +5 -4
- package/dist/cjs/ui/jira-issues-modal/jql-editor/index.js +2 -1
- package/dist/cjs/ui/table-footer/index.js +1 -1
- package/dist/cjs/ui/table-footer/messages.js +5 -0
- package/dist/cjs/ui/table-footer/powered-by-jsm-assets/index.js +57 -2
- package/dist/cjs/ui/table-footer/table-footer-old.js +2 -1
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +3 -1
- package/dist/es2019/ui/common/modal/basic-search-input/basic-search-input-old.js +2 -1
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +2 -1
- package/dist/es2019/ui/common/modal/site-selector/index.js +1 -0
- package/dist/es2019/ui/common/modal/site-selector/site-selector-old.js +2 -1
- package/dist/es2019/ui/issue-like-table/render-type/icon/icon-old.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/icon/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/shared-components/icon/icon-old.js +1 -1
- package/dist/es2019/ui/issue-like-table/shared-components/icon/index.js +4 -4
- package/dist/es2019/ui/jira-issues-modal/jql-editor/index.js +2 -1
- package/dist/es2019/ui/table-footer/index.js +1 -1
- package/dist/es2019/ui/table-footer/messages.js +5 -0
- package/dist/es2019/ui/table-footer/powered-by-jsm-assets/index.js +57 -2
- package/dist/es2019/ui/table-footer/table-footer-old.js +2 -1
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +3 -1
- package/dist/esm/ui/common/modal/basic-search-input/basic-search-input-old.js +2 -1
- package/dist/esm/ui/common/modal/basic-search-input/index.js +2 -1
- package/dist/esm/ui/common/modal/site-selector/index.js +1 -0
- package/dist/esm/ui/common/modal/site-selector/site-selector-old.js +2 -1
- package/dist/esm/ui/issue-like-table/render-type/icon/icon-old.js +2 -1
- package/dist/esm/ui/issue-like-table/render-type/icon/index.js +2 -1
- package/dist/esm/ui/issue-like-table/shared-components/icon/icon-old.js +2 -1
- package/dist/esm/ui/issue-like-table/shared-components/icon/index.js +5 -4
- package/dist/esm/ui/jira-issues-modal/jql-editor/index.js +2 -1
- package/dist/esm/ui/table-footer/index.js +1 -1
- package/dist/esm/ui/table-footer/messages.js +5 -0
- package/dist/esm/ui/table-footer/powered-by-jsm-assets/index.js +57 -2
- package/dist/esm/ui/table-footer/table-footer-old.js +2 -1
- package/dist/types/ui/issue-like-table/shared-components/icon/index.d.ts +3 -3
- package/dist/types/ui/table-footer/messages.d.ts +5 -0
- package/dist/types-ts4.5/ui/issue-like-table/shared-components/icon/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/table-footer/messages.d.ts +5 -0
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 3.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#120472](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120472)
|
|
8
|
+
[`73c800ab5f2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73c800ab5f2fc) -
|
|
9
|
+
ED-26766 update adf-schema from 47.2.1 to 47.6.0 and adf-schema-json from 1.27.0 to 1.31.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#120487](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120487)
|
|
14
|
+
[`13dfc62850467`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/13dfc62850467) -
|
|
15
|
+
[ux] Update JSM Assets branding to be standalone Assets
|
|
16
|
+
|
|
3
17
|
## 3.21.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -130,6 +130,8 @@ var AssetsObjectSchemaSelect = exports.AssetsObjectSchemaSelect = function Asset
|
|
|
130
130
|
onChange: function onChange(newOption) {
|
|
131
131
|
return newOption && _onChange(newOption);
|
|
132
132
|
}
|
|
133
|
-
}, selectInAModalStyleFixProps, restFieldProps
|
|
133
|
+
}, selectInAModalStyleFixProps, restFieldProps, {
|
|
134
|
+
label: formatMessage(_messages.objectSchemaSelectMessages.placeholder)
|
|
135
|
+
}));
|
|
134
136
|
}));
|
|
135
137
|
};
|
|
@@ -74,6 +74,7 @@ var BasicSearchInputOld = exports.BasicSearchInputOld = function BasicSearchInpu
|
|
|
74
74
|
onChange: onChange,
|
|
75
75
|
placeholder: formatMessage(placeholder),
|
|
76
76
|
testId: "".concat(testId, "--basic-search-input"),
|
|
77
|
-
value: searchTerm
|
|
77
|
+
value: searchTerm,
|
|
78
|
+
"aria-label": formatMessage(placeholder)
|
|
78
79
|
}));
|
|
79
80
|
};
|
|
@@ -67,7 +67,8 @@ var BasicSearchInputNew = exports.BasicSearchInputNew = function BasicSearchInpu
|
|
|
67
67
|
onChange: onChange,
|
|
68
68
|
placeholder: formatMessage(placeholder),
|
|
69
69
|
testId: "".concat(testId, "--basic-search-input"),
|
|
70
|
-
value: searchTerm
|
|
70
|
+
value: searchTerm,
|
|
71
|
+
"aria-label": formatMessage(placeholder)
|
|
71
72
|
}));
|
|
72
73
|
};
|
|
73
74
|
var BasicSearchInput = exports.BasicSearchInput = function BasicSearchInput(props) {
|
|
@@ -31,7 +31,8 @@ var ICON_TYPE_TEXT_TEST_ID = exports.ICON_TYPE_TEXT_TEST_ID = "".concat(ICON_TYP
|
|
|
31
31
|
* `platform-datasources-enable-two-way-sync-priority` rollout.
|
|
32
32
|
*/
|
|
33
33
|
var IconRenderType = function IconRenderType(_ref) {
|
|
34
|
-
var label = _ref.label,
|
|
34
|
+
var _ref$label = _ref.label,
|
|
35
|
+
label = _ref$label === void 0 ? '' : _ref$label,
|
|
35
36
|
text = _ref.text,
|
|
36
37
|
source = _ref.source,
|
|
37
38
|
_ref$testId = _ref.testId,
|
|
@@ -45,7 +45,8 @@ var ICON_TYPE_TEXT_TEST_ID = exports.ICON_TYPE_TEXT_TEST_ID = "".concat(ICON_TYP
|
|
|
45
45
|
* `platform-datasources-enable-two-way-sync-priority` rollout.
|
|
46
46
|
*/
|
|
47
47
|
var IconRenderType = function IconRenderType(_ref2) {
|
|
48
|
-
var label = _ref2.label,
|
|
48
|
+
var _ref2$label = _ref2.label,
|
|
49
|
+
label = _ref2$label === void 0 ? '' : _ref2$label,
|
|
49
50
|
text = _ref2.text,
|
|
50
51
|
source = _ref2.source,
|
|
51
52
|
_ref2$testId = _ref2.testId,
|
|
@@ -18,7 +18,8 @@ var labelStyles = (0, _primitives.xcss)({
|
|
|
18
18
|
*/
|
|
19
19
|
function SharedIconComponentOld(_ref) {
|
|
20
20
|
var iconUrl = _ref.iconUrl,
|
|
21
|
-
label = _ref.label,
|
|
21
|
+
_ref$label = _ref.label,
|
|
22
|
+
label = _ref$label === void 0 ? '' : _ref$label,
|
|
22
23
|
text = _ref.text,
|
|
23
24
|
testId = _ref.testId;
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement(_primitives.Flex, {
|
|
@@ -17,12 +17,13 @@ var styles = {
|
|
|
17
17
|
labelStyles: "_1reo15vq _18m915vq _1bto1l2s _1bsb1osq"
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
* Renders a icon and text label.
|
|
21
|
+
* If the text is undefined, will not render the text label.
|
|
22
|
+
*/
|
|
23
23
|
function SharedIconComponentNew(_ref) {
|
|
24
24
|
var iconUrl = _ref.iconUrl,
|
|
25
|
-
label = _ref.label,
|
|
25
|
+
_ref$label = _ref.label,
|
|
26
|
+
label = _ref$label === void 0 ? '' : _ref$label,
|
|
26
27
|
text = _ref.text,
|
|
27
28
|
testId = _ref.testId;
|
|
28
29
|
return /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
@@ -127,7 +127,7 @@ var TableFooterNew = function TableFooterNew(_ref5) {
|
|
|
127
127
|
prefixTextType: "item",
|
|
128
128
|
testId: "item-count"
|
|
129
129
|
})), datasourceId === _assetsModal.ASSETS_LIST_OF_LINKS_DATASOURCE_ID ? /*#__PURE__*/React.createElement(_poweredByJsmAssets.PoweredByJSMAssets, {
|
|
130
|
-
text: intl.formatMessage(_messages.footerMessages.powerByJSM)
|
|
130
|
+
text: intl.formatMessage((0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? _messages.footerMessages.poweredByAssets : _messages.footerMessages.powerByJSM)
|
|
131
131
|
}) : null, /*#__PURE__*/React.createElement(SyncWrapper, null, onRefresh && /*#__PURE__*/React.createElement(_react.Fragment, null, /*#__PURE__*/React.createElement(SyncTextWrapper, {
|
|
132
132
|
"data-testid": "sync-text"
|
|
133
133
|
}, isLoading ? /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _messages.footerMessages.loadingText) : /*#__PURE__*/React.createElement(_syncInfo.SyncInfo, {
|
|
@@ -25,5 +25,10 @@ var footerMessages = exports.footerMessages = (0, _reactIntlNext.defineMessages)
|
|
|
25
25
|
id: 'linkDataSource.table-footer.power-by-jsm',
|
|
26
26
|
description: 'Displayed on the issue like table footer to increase JSM Assets visibility',
|
|
27
27
|
defaultMessage: 'Powered by Assets in Jira Service Management'
|
|
28
|
+
},
|
|
29
|
+
poweredByAssets: {
|
|
30
|
+
id: 'linkDataSource.table-footer.powered-by-assets',
|
|
31
|
+
description: 'Displayed on the issue like table footer to increase Assets visibility',
|
|
32
|
+
defaultMessage: 'Powered by Assets'
|
|
28
33
|
}
|
|
29
34
|
});
|
|
@@ -10,6 +10,7 @@ require("./index.compiled.css");
|
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _logo = require("@atlaskit/logo");
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
15
|
var _analytics = require("../../../analytics");
|
|
15
16
|
var styles = {
|
|
@@ -18,6 +19,7 @@ var styles = {
|
|
|
18
19
|
};
|
|
19
20
|
var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAssets(props) {
|
|
20
21
|
var ASSETS_LINK = '/jira/servicedesk/assets';
|
|
22
|
+
var ASSETS_APP_LINK = '/jira/assets';
|
|
21
23
|
var _useDatasourceAnalyti = (0, _analytics.useDatasourceAnalyticsEvents)(),
|
|
22
24
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
23
25
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -31,7 +33,7 @@ var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAsset
|
|
|
31
33
|
extensionKey: 'jsm-cmdb-gateway'
|
|
32
34
|
});
|
|
33
35
|
},
|
|
34
|
-
href: ASSETS_LINK,
|
|
36
|
+
href: (0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? ASSETS_APP_LINK : ASSETS_LINK,
|
|
35
37
|
rel: "noreferrer",
|
|
36
38
|
target: "_blank",
|
|
37
39
|
style: {
|
|
@@ -40,7 +42,7 @@ var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAsset
|
|
|
40
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
41
43
|
alignItems: 'center'
|
|
42
44
|
}
|
|
43
|
-
}, /*#__PURE__*/_react.default.createElement(_logo.JiraServiceManagementIcon, {
|
|
45
|
+
}, (0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? /*#__PURE__*/_react.default.createElement(AssetsIcon, null) : /*#__PURE__*/_react.default.createElement(_logo.JiraServiceManagementIcon, {
|
|
44
46
|
size: "xsmall",
|
|
45
47
|
appearance: "brand",
|
|
46
48
|
label: props.text
|
|
@@ -52,4 +54,57 @@ var PoweredByJSMAssets = exports.PoweredByJSMAssets = function PoweredByJSMAsset
|
|
|
52
54
|
fontSize: 'small'
|
|
53
55
|
}
|
|
54
56
|
}, props.text)));
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// TODO: JDW-5554 use the AssetsIcon from @atlaskit/temp-nav-app-icons once it becomes a public package
|
|
60
|
+
var AssetsIcon = function AssetsIcon() {
|
|
61
|
+
return (
|
|
62
|
+
/*#__PURE__*/
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
64
|
+
_react.default.createElement("span", {
|
|
65
|
+
style: {
|
|
66
|
+
display: 'flex'
|
|
67
|
+
},
|
|
68
|
+
role: "img",
|
|
69
|
+
"aria-label": "Assets icon"
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
71
|
+
width: "24",
|
|
72
|
+
height: "24",
|
|
73
|
+
viewBox: "0 0 24 24",
|
|
74
|
+
fill: "none",
|
|
75
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
77
|
+
d: "M0 6C0 2.68629 2.68629 0 6 0H18C21.3137 0 24 2.68629 24 6V18C24 21.3137 21.3137 24 18 24H6C2.68629 24 0 21.3137 0 18V6Z",
|
|
78
|
+
fill: "#1868DB"
|
|
79
|
+
}), /*#__PURE__*/_react.default.createElement("g", {
|
|
80
|
+
clipPath: "url(#clip0_2912_2)"
|
|
81
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
82
|
+
fillRule: "evenodd",
|
|
83
|
+
clipRule: "evenodd",
|
|
84
|
+
d: "M8.50003 11.5354C10.0832 11.338 11.338 10.0832 11.5355 8.5H13.75V6.75H11.3081C10.7889 5.46732 9.53138 4.5625 8.06253 4.5625C6.12953 4.5625 4.56253 6.1295 4.56253 8.0625C4.56253 9.53135 5.46735 10.7889 6.75003 11.3081L6.75003 13.75H8.50003V11.5354ZM8.06253 9.375C8.7874 9.375 9.37503 8.78737 9.37503 8.0625C9.37503 7.33763 8.7874 6.75 8.06253 6.75C7.33766 6.75 6.75003 7.33763 6.75003 8.0625C6.75003 8.78737 7.33766 9.375 8.06253 9.375Z",
|
|
85
|
+
fill: "white"
|
|
86
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
87
|
+
d: "M19 7.625C19 8.83312 18.0207 9.8125 16.8125 9.8125C15.6044 9.8125 14.625 8.83312 14.625 7.625C14.625 6.41688 15.6044 5.4375 16.8125 5.4375C18.0207 5.4375 19 6.41688 19 7.625Z",
|
|
88
|
+
fill: "white"
|
|
89
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
90
|
+
d: "M7.62503 19C8.83315 19 9.81253 18.0206 9.81253 16.8125C9.81253 15.6044 8.83315 14.625 7.62503 14.625C6.41691 14.625 5.43753 15.6044 5.43753 16.8125C5.43753 18.0206 6.41691 19 7.62503 19Z",
|
|
91
|
+
fill: "white"
|
|
92
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
93
|
+
d: "M16.8125 19C18.0207 19 19 18.0206 19 16.8125C19 15.6044 18.0207 14.625 16.8125 14.625C15.6044 14.625 14.625 15.6044 14.625 16.8125C14.625 18.0206 15.6044 19 16.8125 19Z",
|
|
94
|
+
fill: "white"
|
|
95
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
96
|
+
d: "M13.75 15.9375H10.6875V17.6875H13.75V15.9375Z",
|
|
97
|
+
fill: "white"
|
|
98
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
99
|
+
d: "M15.9375 10.6875V13.75H17.6875V10.6875H15.9375Z",
|
|
100
|
+
fill: "white"
|
|
101
|
+
})), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
102
|
+
id: "clip0_2912_2"
|
|
103
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
104
|
+
width: "21",
|
|
105
|
+
height: "21",
|
|
106
|
+
fill: "white",
|
|
107
|
+
transform: "translate(1.5 1.5)"
|
|
108
|
+
})))))
|
|
109
|
+
);
|
|
55
110
|
};
|
|
@@ -13,6 +13,7 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
15
15
|
var _refresh = _interopRequireDefault(require("@atlaskit/icon/core/migration/refresh"));
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _primitives = require("@atlaskit/primitives");
|
|
17
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
19
|
var _assetsModal = require("../assets-modal");
|
|
@@ -94,7 +95,7 @@ var TableFooterOld = exports.TableFooterOld = function TableFooterOld(_ref) {
|
|
|
94
95
|
prefixTextType: "item",
|
|
95
96
|
testId: "item-count"
|
|
96
97
|
})), datasourceId === _assetsModal.ASSETS_LIST_OF_LINKS_DATASOURCE_ID ? (0, _react2.jsx)(_poweredByJsmAssets.PoweredByJSMAssets, {
|
|
97
|
-
text: intl.formatMessage(_messages.footerMessages.powerByJSM)
|
|
98
|
+
text: intl.formatMessage((0, _platformFeatureFlags.fg)('assets_as_an_app_v2') ? _messages.footerMessages.poweredByAssets : _messages.footerMessages.powerByJSM)
|
|
98
99
|
}) : null, (0, _react2.jsx)(SyncWrapper, null, onRefresh && (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(SyncTextWrapper, {
|
|
99
100
|
"data-testid": "sync-text"
|
|
100
101
|
}, isLoading ? (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.footerMessages.loadingText) : (0, _react2.jsx)(_syncInfo.SyncInfo, {
|
|
@@ -93,5 +93,7 @@ export const AssetsObjectSchemaSelect = ({
|
|
|
93
93
|
loadOptions: debouncedLoadOptions,
|
|
94
94
|
placeholder: formatMessage(objectSchemaSelectMessages.placeholder),
|
|
95
95
|
onChange: newOption => newOption && onChange(newOption)
|
|
96
|
-
}, selectInAModalStyleFixProps, restFieldProps
|
|
96
|
+
}, selectInAModalStyleFixProps, restFieldProps, {
|
|
97
|
+
label: formatMessage(objectSchemaSelectMessages.placeholder)
|
|
98
|
+
}))));
|
|
97
99
|
};
|
|
@@ -60,7 +60,8 @@ export const BasicSearchInputNew = ({
|
|
|
60
60
|
onChange: onChange,
|
|
61
61
|
placeholder: formatMessage(placeholder),
|
|
62
62
|
testId: `${testId}--basic-search-input`,
|
|
63
|
-
value: searchTerm
|
|
63
|
+
value: searchTerm,
|
|
64
|
+
"aria-label": formatMessage(placeholder)
|
|
64
65
|
}));
|
|
65
66
|
};
|
|
66
67
|
export const BasicSearchInput = props => {
|
|
@@ -9,12 +9,12 @@ const styles = {
|
|
|
9
9
|
labelStyles: "_1reo15vq _18m915vq _1bto1l2s _1bsb1osq"
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
* Renders a icon and text label.
|
|
13
|
+
* If the text is undefined, will not render the text label.
|
|
14
|
+
*/
|
|
15
15
|
export function SharedIconComponentNew({
|
|
16
16
|
iconUrl,
|
|
17
|
-
label,
|
|
17
|
+
label = '',
|
|
18
18
|
text,
|
|
19
19
|
testId
|
|
20
20
|
}) {
|
|
@@ -110,7 +110,7 @@ const TableFooterNew = ({
|
|
|
110
110
|
prefixTextType: "item",
|
|
111
111
|
testId: "item-count"
|
|
112
112
|
})), datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID ? /*#__PURE__*/React.createElement(PoweredByJSMAssets, {
|
|
113
|
-
text: intl.formatMessage(footerMessages.powerByJSM)
|
|
113
|
+
text: intl.formatMessage(fg('assets_as_an_app_v2') ? footerMessages.poweredByAssets : footerMessages.powerByJSM)
|
|
114
114
|
}) : null, /*#__PURE__*/React.createElement(SyncWrapper, null, onRefresh && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(SyncTextWrapper, {
|
|
115
115
|
"data-testid": "sync-text"
|
|
116
116
|
}, isLoading ? /*#__PURE__*/React.createElement(FormattedMessage, footerMessages.loadingText) : /*#__PURE__*/React.createElement(SyncInfo, {
|
|
@@ -19,5 +19,10 @@ export const footerMessages = defineMessages({
|
|
|
19
19
|
id: 'linkDataSource.table-footer.power-by-jsm',
|
|
20
20
|
description: 'Displayed on the issue like table footer to increase JSM Assets visibility',
|
|
21
21
|
defaultMessage: 'Powered by Assets in Jira Service Management'
|
|
22
|
+
},
|
|
23
|
+
poweredByAssets: {
|
|
24
|
+
id: 'linkDataSource.table-footer.powered-by-assets',
|
|
25
|
+
description: 'Displayed on the issue like table footer to increase Assets visibility',
|
|
26
|
+
defaultMessage: 'Powered by Assets'
|
|
22
27
|
}
|
|
23
28
|
});
|
|
@@ -3,6 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { JiraServiceManagementIcon } from '@atlaskit/logo';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
8
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
8
9
|
const styles = {
|
|
@@ -11,6 +12,7 @@ const styles = {
|
|
|
11
12
|
};
|
|
12
13
|
export const PoweredByJSMAssets = props => {
|
|
13
14
|
const ASSETS_LINK = '/jira/servicedesk/assets';
|
|
15
|
+
const ASSETS_APP_LINK = '/jira/assets';
|
|
14
16
|
const {
|
|
15
17
|
fireEvent
|
|
16
18
|
} = useDatasourceAnalyticsEvents();
|
|
@@ -23,7 +25,7 @@ export const PoweredByJSMAssets = props => {
|
|
|
23
25
|
componentHierarchy: 'datasourceTable',
|
|
24
26
|
extensionKey: 'jsm-cmdb-gateway'
|
|
25
27
|
}),
|
|
26
|
-
href: ASSETS_LINK,
|
|
28
|
+
href: fg('assets_as_an_app_v2') ? ASSETS_APP_LINK : ASSETS_LINK,
|
|
27
29
|
rel: "noreferrer",
|
|
28
30
|
target: "_blank",
|
|
29
31
|
style: {
|
|
@@ -32,7 +34,7 @@ export const PoweredByJSMAssets = props => {
|
|
|
32
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
33
35
|
alignItems: 'center'
|
|
34
36
|
}
|
|
35
|
-
}, /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
|
|
37
|
+
}, fg('assets_as_an_app_v2') ? /*#__PURE__*/React.createElement(AssetsIcon, null) : /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
|
|
36
38
|
size: "xsmall",
|
|
37
39
|
appearance: "brand",
|
|
38
40
|
label: props.text
|
|
@@ -44,4 +46,57 @@ export const PoweredByJSMAssets = props => {
|
|
|
44
46
|
fontSize: 'small'
|
|
45
47
|
}
|
|
46
48
|
}, props.text)));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// TODO: JDW-5554 use the AssetsIcon from @atlaskit/temp-nav-app-icons once it becomes a public package
|
|
52
|
+
const AssetsIcon = () => {
|
|
53
|
+
return (
|
|
54
|
+
/*#__PURE__*/
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
56
|
+
React.createElement("span", {
|
|
57
|
+
style: {
|
|
58
|
+
display: 'flex'
|
|
59
|
+
},
|
|
60
|
+
role: "img",
|
|
61
|
+
"aria-label": "Assets icon"
|
|
62
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
63
|
+
width: "24",
|
|
64
|
+
height: "24",
|
|
65
|
+
viewBox: "0 0 24 24",
|
|
66
|
+
fill: "none",
|
|
67
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
68
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
69
|
+
d: "M0 6C0 2.68629 2.68629 0 6 0H18C21.3137 0 24 2.68629 24 6V18C24 21.3137 21.3137 24 18 24H6C2.68629 24 0 21.3137 0 18V6Z",
|
|
70
|
+
fill: "#1868DB"
|
|
71
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
72
|
+
clipPath: "url(#clip0_2912_2)"
|
|
73
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
74
|
+
fillRule: "evenodd",
|
|
75
|
+
clipRule: "evenodd",
|
|
76
|
+
d: "M8.50003 11.5354C10.0832 11.338 11.338 10.0832 11.5355 8.5H13.75V6.75H11.3081C10.7889 5.46732 9.53138 4.5625 8.06253 4.5625C6.12953 4.5625 4.56253 6.1295 4.56253 8.0625C4.56253 9.53135 5.46735 10.7889 6.75003 11.3081L6.75003 13.75H8.50003V11.5354ZM8.06253 9.375C8.7874 9.375 9.37503 8.78737 9.37503 8.0625C9.37503 7.33763 8.7874 6.75 8.06253 6.75C7.33766 6.75 6.75003 7.33763 6.75003 8.0625C6.75003 8.78737 7.33766 9.375 8.06253 9.375Z",
|
|
77
|
+
fill: "white"
|
|
78
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
79
|
+
d: "M19 7.625C19 8.83312 18.0207 9.8125 16.8125 9.8125C15.6044 9.8125 14.625 8.83312 14.625 7.625C14.625 6.41688 15.6044 5.4375 16.8125 5.4375C18.0207 5.4375 19 6.41688 19 7.625Z",
|
|
80
|
+
fill: "white"
|
|
81
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
82
|
+
d: "M7.62503 19C8.83315 19 9.81253 18.0206 9.81253 16.8125C9.81253 15.6044 8.83315 14.625 7.62503 14.625C6.41691 14.625 5.43753 15.6044 5.43753 16.8125C5.43753 18.0206 6.41691 19 7.62503 19Z",
|
|
83
|
+
fill: "white"
|
|
84
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
85
|
+
d: "M16.8125 19C18.0207 19 19 18.0206 19 16.8125C19 15.6044 18.0207 14.625 16.8125 14.625C15.6044 14.625 14.625 15.6044 14.625 16.8125C14.625 18.0206 15.6044 19 16.8125 19Z",
|
|
86
|
+
fill: "white"
|
|
87
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
88
|
+
d: "M13.75 15.9375H10.6875V17.6875H13.75V15.9375Z",
|
|
89
|
+
fill: "white"
|
|
90
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
91
|
+
d: "M15.9375 10.6875V13.75H17.6875V10.6875H15.9375Z",
|
|
92
|
+
fill: "white"
|
|
93
|
+
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
94
|
+
id: "clip0_2912_2"
|
|
95
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
96
|
+
width: "21",
|
|
97
|
+
height: "21",
|
|
98
|
+
fill: "white",
|
|
99
|
+
transform: "translate(1.5 1.5)"
|
|
100
|
+
})))))
|
|
101
|
+
);
|
|
47
102
|
};
|
|
@@ -11,6 +11,7 @@ import styled from '@emotion/styled';
|
|
|
11
11
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
12
12
|
import Button from '@atlaskit/button';
|
|
13
13
|
import RefreshIcon from '@atlaskit/icon/core/migration/refresh';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { Flex } from '@atlaskit/primitives';
|
|
15
16
|
import { N0, N40 } from '@atlaskit/theme/colors';
|
|
16
17
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
@@ -79,7 +80,7 @@ export const TableFooterOld = ({
|
|
|
79
80
|
prefixTextType: "item",
|
|
80
81
|
testId: "item-count"
|
|
81
82
|
})), datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID ? jsx(PoweredByJSMAssets, {
|
|
82
|
-
text: intl.formatMessage(footerMessages.powerByJSM)
|
|
83
|
+
text: intl.formatMessage(fg('assets_as_an_app_v2') ? footerMessages.poweredByAssets : footerMessages.powerByJSM)
|
|
83
84
|
}) : null, jsx(SyncWrapper, null, onRefresh && jsx(Fragment, null, jsx(SyncTextWrapper, {
|
|
84
85
|
"data-testid": "sync-text"
|
|
85
86
|
}, isLoading ? jsx(FormattedMessage, footerMessages.loadingText) : jsx(SyncInfo, {
|
|
@@ -121,6 +121,8 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
|
|
|
121
121
|
onChange: function onChange(newOption) {
|
|
122
122
|
return newOption && _onChange(newOption);
|
|
123
123
|
}
|
|
124
|
-
}, selectInAModalStyleFixProps, restFieldProps
|
|
124
|
+
}, selectInAModalStyleFixProps, restFieldProps, {
|
|
125
|
+
label: formatMessage(objectSchemaSelectMessages.placeholder)
|
|
126
|
+
}));
|
|
125
127
|
}));
|
|
126
128
|
};
|
|
@@ -66,6 +66,7 @@ export var BasicSearchInputOld = function BasicSearchInputOld(_ref) {
|
|
|
66
66
|
onChange: onChange,
|
|
67
67
|
placeholder: formatMessage(placeholder),
|
|
68
68
|
testId: "".concat(testId, "--basic-search-input"),
|
|
69
|
-
value: searchTerm
|
|
69
|
+
value: searchTerm,
|
|
70
|
+
"aria-label": formatMessage(placeholder)
|
|
70
71
|
}));
|
|
71
72
|
};
|
|
@@ -57,7 +57,8 @@ export var BasicSearchInputNew = function BasicSearchInputNew(_ref) {
|
|
|
57
57
|
onChange: onChange,
|
|
58
58
|
placeholder: formatMessage(placeholder),
|
|
59
59
|
testId: "".concat(testId, "--basic-search-input"),
|
|
60
|
-
value: searchTerm
|
|
60
|
+
value: searchTerm,
|
|
61
|
+
"aria-label": formatMessage(placeholder)
|
|
61
62
|
}));
|
|
62
63
|
};
|
|
63
64
|
export var BasicSearchInput = function BasicSearchInput(props) {
|
|
@@ -24,7 +24,8 @@ export var ICON_TYPE_TEXT_TEST_ID = "".concat(ICON_TYPE_TEST_ID, "-text");
|
|
|
24
24
|
* `platform-datasources-enable-two-way-sync-priority` rollout.
|
|
25
25
|
*/
|
|
26
26
|
var IconRenderType = function IconRenderType(_ref) {
|
|
27
|
-
var label = _ref.label,
|
|
27
|
+
var _ref$label = _ref.label,
|
|
28
|
+
label = _ref$label === void 0 ? '' : _ref$label,
|
|
28
29
|
text = _ref.text,
|
|
29
30
|
source = _ref.source,
|
|
30
31
|
_ref$testId = _ref.testId,
|
|
@@ -36,7 +36,8 @@ export var ICON_TYPE_TEXT_TEST_ID = "".concat(ICON_TYPE_TEST_ID, "-text");
|
|
|
36
36
|
* `platform-datasources-enable-two-way-sync-priority` rollout.
|
|
37
37
|
*/
|
|
38
38
|
var IconRenderType = function IconRenderType(_ref2) {
|
|
39
|
-
var label = _ref2.label,
|
|
39
|
+
var _ref2$label = _ref2.label,
|
|
40
|
+
label = _ref2$label === void 0 ? '' : _ref2$label,
|
|
40
41
|
text = _ref2.text,
|
|
41
42
|
source = _ref2.source,
|
|
42
43
|
_ref2$testId = _ref2.testId,
|
|
@@ -11,7 +11,8 @@ var labelStyles = xcss({
|
|
|
11
11
|
*/
|
|
12
12
|
export function SharedIconComponentOld(_ref) {
|
|
13
13
|
var iconUrl = _ref.iconUrl,
|
|
14
|
-
label = _ref.label,
|
|
14
|
+
_ref$label = _ref.label,
|
|
15
|
+
label = _ref$label === void 0 ? '' : _ref$label,
|
|
15
16
|
text = _ref.text,
|
|
16
17
|
testId = _ref.testId;
|
|
17
18
|
return /*#__PURE__*/React.createElement(Flex, {
|
|
@@ -9,12 +9,13 @@ var styles = {
|
|
|
9
9
|
labelStyles: "_1reo15vq _18m915vq _1bto1l2s _1bsb1osq"
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
* Renders a icon and text label.
|
|
13
|
+
* If the text is undefined, will not render the text label.
|
|
14
|
+
*/
|
|
15
15
|
export function SharedIconComponentNew(_ref) {
|
|
16
16
|
var iconUrl = _ref.iconUrl,
|
|
17
|
-
label = _ref.label,
|
|
17
|
+
_ref$label = _ref.label,
|
|
18
|
+
label = _ref$label === void 0 ? '' : _ref$label,
|
|
18
19
|
text = _ref.text,
|
|
19
20
|
testId = _ref.testId;
|
|
20
21
|
return /*#__PURE__*/React.createElement(Flex, {
|
|
@@ -118,7 +118,7 @@ var TableFooterNew = function TableFooterNew(_ref5) {
|
|
|
118
118
|
prefixTextType: "item",
|
|
119
119
|
testId: "item-count"
|
|
120
120
|
})), datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID ? /*#__PURE__*/React.createElement(PoweredByJSMAssets, {
|
|
121
|
-
text: intl.formatMessage(footerMessages.powerByJSM)
|
|
121
|
+
text: intl.formatMessage(fg('assets_as_an_app_v2') ? footerMessages.poweredByAssets : footerMessages.powerByJSM)
|
|
122
122
|
}) : null, /*#__PURE__*/React.createElement(SyncWrapper, null, onRefresh && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(SyncTextWrapper, {
|
|
123
123
|
"data-testid": "sync-text"
|
|
124
124
|
}, isLoading ? /*#__PURE__*/React.createElement(FormattedMessage, footerMessages.loadingText) : /*#__PURE__*/React.createElement(SyncInfo, {
|
|
@@ -19,5 +19,10 @@ export var footerMessages = defineMessages({
|
|
|
19
19
|
id: 'linkDataSource.table-footer.power-by-jsm',
|
|
20
20
|
description: 'Displayed on the issue like table footer to increase JSM Assets visibility',
|
|
21
21
|
defaultMessage: 'Powered by Assets in Jira Service Management'
|
|
22
|
+
},
|
|
23
|
+
poweredByAssets: {
|
|
24
|
+
id: 'linkDataSource.table-footer.powered-by-assets',
|
|
25
|
+
description: 'Displayed on the issue like table footer to increase Assets visibility',
|
|
26
|
+
defaultMessage: 'Powered by Assets'
|
|
22
27
|
}
|
|
23
28
|
});
|
|
@@ -3,6 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { JiraServiceManagementIcon } from '@atlaskit/logo';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
8
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
8
9
|
var styles = {
|
|
@@ -11,6 +12,7 @@ var styles = {
|
|
|
11
12
|
};
|
|
12
13
|
export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
|
|
13
14
|
var ASSETS_LINK = '/jira/servicedesk/assets';
|
|
15
|
+
var ASSETS_APP_LINK = '/jira/assets';
|
|
14
16
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
15
17
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
16
18
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -24,7 +26,7 @@ export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
|
|
|
24
26
|
extensionKey: 'jsm-cmdb-gateway'
|
|
25
27
|
});
|
|
26
28
|
},
|
|
27
|
-
href: ASSETS_LINK,
|
|
29
|
+
href: fg('assets_as_an_app_v2') ? ASSETS_APP_LINK : ASSETS_LINK,
|
|
28
30
|
rel: "noreferrer",
|
|
29
31
|
target: "_blank",
|
|
30
32
|
style: {
|
|
@@ -33,7 +35,7 @@ export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
|
|
|
33
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
36
|
alignItems: 'center'
|
|
35
37
|
}
|
|
36
|
-
}, /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
|
|
38
|
+
}, fg('assets_as_an_app_v2') ? /*#__PURE__*/React.createElement(AssetsIcon, null) : /*#__PURE__*/React.createElement(JiraServiceManagementIcon, {
|
|
37
39
|
size: "xsmall",
|
|
38
40
|
appearance: "brand",
|
|
39
41
|
label: props.text
|
|
@@ -45,4 +47,57 @@ export var PoweredByJSMAssets = function PoweredByJSMAssets(props) {
|
|
|
45
47
|
fontSize: 'small'
|
|
46
48
|
}
|
|
47
49
|
}, props.text)));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// TODO: JDW-5554 use the AssetsIcon from @atlaskit/temp-nav-app-icons once it becomes a public package
|
|
53
|
+
var AssetsIcon = function AssetsIcon() {
|
|
54
|
+
return (
|
|
55
|
+
/*#__PURE__*/
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
57
|
+
React.createElement("span", {
|
|
58
|
+
style: {
|
|
59
|
+
display: 'flex'
|
|
60
|
+
},
|
|
61
|
+
role: "img",
|
|
62
|
+
"aria-label": "Assets icon"
|
|
63
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
64
|
+
width: "24",
|
|
65
|
+
height: "24",
|
|
66
|
+
viewBox: "0 0 24 24",
|
|
67
|
+
fill: "none",
|
|
68
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
69
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
70
|
+
d: "M0 6C0 2.68629 2.68629 0 6 0H18C21.3137 0 24 2.68629 24 6V18C24 21.3137 21.3137 24 18 24H6C2.68629 24 0 21.3137 0 18V6Z",
|
|
71
|
+
fill: "#1868DB"
|
|
72
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
73
|
+
clipPath: "url(#clip0_2912_2)"
|
|
74
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
75
|
+
fillRule: "evenodd",
|
|
76
|
+
clipRule: "evenodd",
|
|
77
|
+
d: "M8.50003 11.5354C10.0832 11.338 11.338 10.0832 11.5355 8.5H13.75V6.75H11.3081C10.7889 5.46732 9.53138 4.5625 8.06253 4.5625C6.12953 4.5625 4.56253 6.1295 4.56253 8.0625C4.56253 9.53135 5.46735 10.7889 6.75003 11.3081L6.75003 13.75H8.50003V11.5354ZM8.06253 9.375C8.7874 9.375 9.37503 8.78737 9.37503 8.0625C9.37503 7.33763 8.7874 6.75 8.06253 6.75C7.33766 6.75 6.75003 7.33763 6.75003 8.0625C6.75003 8.78737 7.33766 9.375 8.06253 9.375Z",
|
|
78
|
+
fill: "white"
|
|
79
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
80
|
+
d: "M19 7.625C19 8.83312 18.0207 9.8125 16.8125 9.8125C15.6044 9.8125 14.625 8.83312 14.625 7.625C14.625 6.41688 15.6044 5.4375 16.8125 5.4375C18.0207 5.4375 19 6.41688 19 7.625Z",
|
|
81
|
+
fill: "white"
|
|
82
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
83
|
+
d: "M7.62503 19C8.83315 19 9.81253 18.0206 9.81253 16.8125C9.81253 15.6044 8.83315 14.625 7.62503 14.625C6.41691 14.625 5.43753 15.6044 5.43753 16.8125C5.43753 18.0206 6.41691 19 7.62503 19Z",
|
|
84
|
+
fill: "white"
|
|
85
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
86
|
+
d: "M16.8125 19C18.0207 19 19 18.0206 19 16.8125C19 15.6044 18.0207 14.625 16.8125 14.625C15.6044 14.625 14.625 15.6044 14.625 16.8125C14.625 18.0206 15.6044 19 16.8125 19Z",
|
|
87
|
+
fill: "white"
|
|
88
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
89
|
+
d: "M13.75 15.9375H10.6875V17.6875H13.75V15.9375Z",
|
|
90
|
+
fill: "white"
|
|
91
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
92
|
+
d: "M15.9375 10.6875V13.75H17.6875V10.6875H15.9375Z",
|
|
93
|
+
fill: "white"
|
|
94
|
+
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
95
|
+
id: "clip0_2912_2"
|
|
96
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
97
|
+
width: "21",
|
|
98
|
+
height: "21",
|
|
99
|
+
fill: "white",
|
|
100
|
+
transform: "translate(1.5 1.5)"
|
|
101
|
+
})))))
|
|
102
|
+
);
|
|
48
103
|
};
|
|
@@ -12,6 +12,7 @@ import styled from '@emotion/styled';
|
|
|
12
12
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
13
13
|
import Button from '@atlaskit/button';
|
|
14
14
|
import RefreshIcon from '@atlaskit/icon/core/migration/refresh';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import { Flex } from '@atlaskit/primitives';
|
|
16
17
|
import { N0, N40 } from '@atlaskit/theme/colors';
|
|
17
18
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
@@ -82,7 +83,7 @@ export var TableFooterOld = function TableFooterOld(_ref) {
|
|
|
82
83
|
prefixTextType: "item",
|
|
83
84
|
testId: "item-count"
|
|
84
85
|
})), datasourceId === ASSETS_LIST_OF_LINKS_DATASOURCE_ID ? jsx(PoweredByJSMAssets, {
|
|
85
|
-
text: intl.formatMessage(footerMessages.powerByJSM)
|
|
86
|
+
text: intl.formatMessage(fg('assets_as_an_app_v2') ? footerMessages.poweredByAssets : footerMessages.powerByJSM)
|
|
86
87
|
}) : null, jsx(SyncWrapper, null, onRefresh && jsx(Fragment, null, jsx(SyncTextWrapper, {
|
|
87
88
|
"data-testid": "sync-text"
|
|
88
89
|
}, isLoading ? jsx(FormattedMessage, footerMessages.loadingText) : jsx(SyncInfo, {
|
|
@@ -16,9 +16,9 @@ interface SharedIconComponentProps {
|
|
|
16
16
|
testId: string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
* Renders a icon and text label.
|
|
20
|
+
* If the text is undefined, will not render the text label.
|
|
21
|
+
*/
|
|
22
22
|
export declare function SharedIconComponentNew({ iconUrl, label, text, testId }: SharedIconComponentProps): React.JSX.Element;
|
|
23
23
|
export declare function SharedIconComponent(props: SharedIconComponentProps): React.JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -16,9 +16,9 @@ interface SharedIconComponentProps {
|
|
|
16
16
|
testId: string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
* Renders a icon and text label.
|
|
20
|
+
* If the text is undefined, will not render the text label.
|
|
21
|
+
*/
|
|
22
22
|
export declare function SharedIconComponentNew({ iconUrl, label, text, testId }: SharedIconComponentProps): React.JSX.Element;
|
|
23
23
|
export declare function SharedIconComponent(props: SharedIconComponentProps): React.JSX.Element;
|
|
24
24
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@atlaskit/adf-schema": "^47.
|
|
40
|
+
"@atlaskit/adf-schema": "^47.6.0",
|
|
41
41
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
42
42
|
"@atlaskit/atlassian-context": "^0.2.0",
|
|
43
43
|
"@atlaskit/avatar": "^24.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/linking-common": "^8.0.0",
|
|
66
66
|
"@atlaskit/linking-types": "^9.6.0",
|
|
67
67
|
"@atlaskit/logo": "^16.0.0",
|
|
68
|
-
"@atlaskit/lozenge": "^12.
|
|
68
|
+
"@atlaskit/lozenge": "^12.1.0",
|
|
69
69
|
"@atlaskit/modal-dialog": "^13.0.0",
|
|
70
70
|
"@atlaskit/outbound-auth-flow-client": "^3.4.5",
|
|
71
71
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@atlaskit/tag": "^14.0.0",
|
|
84
84
|
"@atlaskit/textfield": "8.0.0",
|
|
85
85
|
"@atlaskit/theme": "^17.0.0",
|
|
86
|
-
"@atlaskit/tokens": "^4.
|
|
86
|
+
"@atlaskit/tokens": "^4.3.0",
|
|
87
87
|
"@atlaskit/tooltip": "^20.0.0",
|
|
88
88
|
"@atlaskit/ufo": "^0.4.0",
|
|
89
89
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -191,6 +191,9 @@
|
|
|
191
191
|
},
|
|
192
192
|
"platform-component-visual-refresh": {
|
|
193
193
|
"type": "boolean"
|
|
194
|
+
},
|
|
195
|
+
"assets_as_an_app_v2": {
|
|
196
|
+
"type": "boolean"
|
|
194
197
|
}
|
|
195
198
|
}
|
|
196
199
|
}
|