@atlaskit/link-datasource 3.15.8 → 3.15.9
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,13 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 3.15.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#100700](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100700)
|
|
8
|
+
[`388b148ce267b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/388b148ce267b) -
|
|
9
|
+
Add underline to link when link datasource is not authenticated
|
|
10
|
+
|
|
3
11
|
## 3.15.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,6 +15,8 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
15
15
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
16
16
|
var _emptyState = _interopRequireDefault(require("@atlaskit/empty-state"));
|
|
17
17
|
var _outboundAuthFlowClient = require("@atlaskit/outbound-auth-flow-client");
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
|
+
var _primitives = require("@atlaskit/primitives");
|
|
18
20
|
var _analytics = require("../../../analytics");
|
|
19
21
|
var _useErrorLogger2 = _interopRequireDefault(require("../../../hooks/useErrorLogger"));
|
|
20
22
|
var _messages = require("./messages");
|
|
@@ -91,10 +93,11 @@ var ProviderAuthRequired = exports.ProviderAuthRequired = function ProviderAuthR
|
|
|
91
93
|
return _ref2.apply(this, arguments);
|
|
92
94
|
};
|
|
93
95
|
}();
|
|
96
|
+
var AnchorFFed = (0, _platformFeatureFlags.fg)('fix_a11y_violations_in_link_datasource') ? _primitives.Anchor : 'a';
|
|
94
97
|
var renderAuthDescription = function renderAuthDescription() {
|
|
95
98
|
return (0, _react2.jsx)(_react.default.Fragment, null, formatMessage(_messages.loadingErrorMessages.authScreenDescriptionText, {
|
|
96
99
|
providerName: providerName
|
|
97
|
-
}), ' ', (0, _react2.jsx)(
|
|
100
|
+
}), ' ', (0, _react2.jsx)(AnchorFFed, {
|
|
98
101
|
href: learnMoreAboutSmartLinksUrl,
|
|
99
102
|
target: "_blank",
|
|
100
103
|
rel: "noreferrer noopener"
|
|
@@ -10,6 +10,8 @@ import { useIntl } from 'react-intl-next';
|
|
|
10
10
|
import Button from '@atlaskit/button';
|
|
11
11
|
import EmptyState from '@atlaskit/empty-state';
|
|
12
12
|
import { AuthError, auth as outboundAuth } from '@atlaskit/outbound-auth-flow-client';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { Anchor } from '@atlaskit/primitives';
|
|
13
15
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
14
16
|
import useErrorLogger from '../../../hooks/useErrorLogger';
|
|
15
17
|
import { loadingErrorMessages } from './messages';
|
|
@@ -61,9 +63,10 @@ export const ProviderAuthRequired = ({
|
|
|
61
63
|
onAuthError === null || onAuthError === void 0 ? void 0 : onAuthError();
|
|
62
64
|
}
|
|
63
65
|
};
|
|
66
|
+
const AnchorFFed = fg('fix_a11y_violations_in_link_datasource') ? Anchor : 'a';
|
|
64
67
|
const renderAuthDescription = () => jsx(React.Fragment, null, formatMessage(loadingErrorMessages.authScreenDescriptionText, {
|
|
65
68
|
providerName
|
|
66
|
-
}), ' ', jsx(
|
|
69
|
+
}), ' ', jsx(AnchorFFed, {
|
|
67
70
|
href: learnMoreAboutSmartLinksUrl,
|
|
68
71
|
target: "_blank",
|
|
69
72
|
rel: "noreferrer noopener"
|
|
@@ -13,6 +13,8 @@ import { useIntl } from 'react-intl-next';
|
|
|
13
13
|
import Button from '@atlaskit/button';
|
|
14
14
|
import EmptyState from '@atlaskit/empty-state';
|
|
15
15
|
import { AuthError, auth as outboundAuth } from '@atlaskit/outbound-auth-flow-client';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { Anchor } from '@atlaskit/primitives';
|
|
16
18
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
17
19
|
import useErrorLogger from '../../../hooks/useErrorLogger';
|
|
18
20
|
import { loadingErrorMessages } from './messages';
|
|
@@ -80,10 +82,11 @@ export var ProviderAuthRequired = function ProviderAuthRequired(_ref) {
|
|
|
80
82
|
return _ref2.apply(this, arguments);
|
|
81
83
|
};
|
|
82
84
|
}();
|
|
85
|
+
var AnchorFFed = fg('fix_a11y_violations_in_link_datasource') ? Anchor : 'a';
|
|
83
86
|
var renderAuthDescription = function renderAuthDescription() {
|
|
84
87
|
return jsx(React.Fragment, null, formatMessage(loadingErrorMessages.authScreenDescriptionText, {
|
|
85
88
|
providerName: providerName
|
|
86
|
-
}), ' ', jsx(
|
|
89
|
+
}), ' ', jsx(AnchorFFed, {
|
|
87
90
|
href: learnMoreAboutSmartLinksUrl,
|
|
88
91
|
target: "_blank",
|
|
89
92
|
rel: "noreferrer noopener"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.9",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -170,6 +170,9 @@
|
|
|
170
170
|
},
|
|
171
171
|
"platform-datasources-enable-two-way-sync-assignee": {
|
|
172
172
|
"type": "boolean"
|
|
173
|
+
},
|
|
174
|
+
"fix_a11y_violations_in_link_datasource": {
|
|
175
|
+
"type": "boolean"
|
|
173
176
|
}
|
|
174
177
|
}
|
|
175
178
|
}
|