@atlaskit/link-datasource 3.20.5 → 3.21.1

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,23 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 3.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.21.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#116138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116138)
14
+ [`b50c5d5d65ae2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b50c5d5d65ae2) -
15
+ Bump to the latest version of @compiled/react
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 3.20.5
4
22
 
5
23
  ### Patch Changes
@@ -18,6 +18,7 @@ var _compiled = require("@atlaskit/primitives/compiled");
18
18
  var _colors = require("@atlaskit/theme/colors");
19
19
  var _typography = require("@atlaskit/theme/typography");
20
20
  var _analytics = require("../../../analytics");
21
+ var _padlockKey = require("../../../common/ui/spot/basics/padlock-key");
21
22
  var _accessRequiredOld = require("./access-required-old");
22
23
  var _accessRequiredSvg = require("./access-required-svg");
23
24
  var _messages = require("./messages");
@@ -37,13 +38,25 @@ var Description = function Description(_ref) {
37
38
  className: (0, _runtime.ax)([styles.urlStyles])
38
39
  }, url), /*#__PURE__*/React.createElement("span", null, message));
39
40
  };
41
+ var noop = function noop() {
42
+ return '';
43
+ };
40
44
  var IconContainer = function IconContainer() {
45
+ var _ref2 = (0, _platformFeatureFlags.fg)('bandicoots-update-sllv-icons') ?
46
+ // eslint-disable-next-line react-hooks/rules-of-hooks
47
+ (0, _reactIntlNext.useIntl)() : {
48
+ formatMessage: noop
49
+ },
50
+ formatMessage = _ref2.formatMessage;
41
51
  return /*#__PURE__*/React.createElement(_compiled.Box, {
42
52
  xcss: styles.iconContainerStyles
43
- }, /*#__PURE__*/React.createElement(_accessRequiredSvg.AccessRequiredSVGOld, null));
53
+ }, (0, _platformFeatureFlags.fg)('bandicoots-update-sllv-icons') ? /*#__PURE__*/React.createElement(_padlockKey.SpotPadlockKey, {
54
+ size: 'xlarge',
55
+ alt: formatMessage(_messages.loadingErrorMessages.accessRequired)
56
+ }) : /*#__PURE__*/React.createElement(_accessRequiredSvg.AccessRequiredSVGOld, null));
44
57
  };
45
- var AccessRequiredNew = exports.AccessRequiredNew = function AccessRequiredNew(_ref2) {
46
- var url = _ref2.url;
58
+ var AccessRequiredNew = exports.AccessRequiredNew = function AccessRequiredNew(_ref3) {
59
+ var url = _ref3.url;
47
60
  var _useIntl = (0, _reactIntlNext.useIntl)(),
48
61
  formatMessage = _useIntl.formatMessage;
49
62
  var _useDatasourceAnalyti = (0, _analytics.useDatasourceAnalyticsEvents)(),
@@ -10,6 +10,7 @@ import { Box } from '@atlaskit/primitives/compiled';
10
10
  import { N400 } from '@atlaskit/theme/colors';
11
11
  import { fontFallback } from '@atlaskit/theme/typography';
12
12
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
13
+ import { SpotPadlockKey } from '../../../common/ui/spot/basics/padlock-key';
13
14
  import { AccessRequiredOld } from './access-required-old';
14
15
  import { AccessRequiredSVGOld } from './access-required-svg';
15
16
  import { loadingErrorMessages } from './messages';
@@ -28,9 +29,22 @@ const Description = ({
28
29
  className: ax([styles.urlStyles])
29
30
  }, url), /*#__PURE__*/React.createElement("span", null, message));
30
31
  };
31
- const IconContainer = () => /*#__PURE__*/React.createElement(Box, {
32
- xcss: styles.iconContainerStyles
33
- }, /*#__PURE__*/React.createElement(AccessRequiredSVGOld, null));
32
+ const noop = () => '';
33
+ const IconContainer = () => {
34
+ const {
35
+ formatMessage
36
+ } = fg('bandicoots-update-sllv-icons') ?
37
+ // eslint-disable-next-line react-hooks/rules-of-hooks
38
+ useIntl() : {
39
+ formatMessage: noop
40
+ };
41
+ return /*#__PURE__*/React.createElement(Box, {
42
+ xcss: styles.iconContainerStyles
43
+ }, fg('bandicoots-update-sllv-icons') ? /*#__PURE__*/React.createElement(SpotPadlockKey, {
44
+ size: 'xlarge',
45
+ alt: formatMessage(loadingErrorMessages.accessRequired)
46
+ }) : /*#__PURE__*/React.createElement(AccessRequiredSVGOld, null));
47
+ };
34
48
  export const AccessRequiredNew = ({
35
49
  url
36
50
  }) => {
@@ -10,6 +10,7 @@ import { Box } from '@atlaskit/primitives/compiled';
10
10
  import { N400 } from '@atlaskit/theme/colors';
11
11
  import { fontFallback } from '@atlaskit/theme/typography';
12
12
  import { useDatasourceAnalyticsEvents } from '../../../analytics';
13
+ import { SpotPadlockKey } from '../../../common/ui/spot/basics/padlock-key';
13
14
  import { AccessRequiredOld } from './access-required-old';
14
15
  import { AccessRequiredSVGOld } from './access-required-svg';
15
16
  import { loadingErrorMessages } from './messages';
@@ -27,13 +28,25 @@ var Description = function Description(_ref) {
27
28
  className: ax([styles.urlStyles])
28
29
  }, url), /*#__PURE__*/React.createElement("span", null, message));
29
30
  };
31
+ var noop = function noop() {
32
+ return '';
33
+ };
30
34
  var IconContainer = function IconContainer() {
35
+ var _ref2 = fg('bandicoots-update-sllv-icons') ?
36
+ // eslint-disable-next-line react-hooks/rules-of-hooks
37
+ useIntl() : {
38
+ formatMessage: noop
39
+ },
40
+ formatMessage = _ref2.formatMessage;
31
41
  return /*#__PURE__*/React.createElement(Box, {
32
42
  xcss: styles.iconContainerStyles
33
- }, /*#__PURE__*/React.createElement(AccessRequiredSVGOld, null));
43
+ }, fg('bandicoots-update-sllv-icons') ? /*#__PURE__*/React.createElement(SpotPadlockKey, {
44
+ size: 'xlarge',
45
+ alt: formatMessage(loadingErrorMessages.accessRequired)
46
+ }) : /*#__PURE__*/React.createElement(AccessRequiredSVGOld, null));
34
47
  };
35
- export var AccessRequiredNew = function AccessRequiredNew(_ref2) {
36
- var url = _ref2.url;
48
+ export var AccessRequiredNew = function AccessRequiredNew(_ref3) {
49
+ var url = _ref3.url;
37
50
  var _useIntl = useIntl(),
38
51
  formatMessage = _useIntl.formatMessage;
39
52
  var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "3.20.5",
3
+ "version": "3.21.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,57 +38,57 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@atlaskit/adf-schema": "^47.2.1",
41
- "@atlaskit/analytics-next": "^10.3.0",
42
- "@atlaskit/atlassian-context": "^0.1.0",
43
- "@atlaskit/avatar": "^21.18.0",
44
- "@atlaskit/avatar-group": "^11.1.0",
45
- "@atlaskit/badge": "^17.1.0",
46
- "@atlaskit/button": "^20.5.0",
47
- "@atlaskit/css": "^0.8.0",
48
- "@atlaskit/datetime-picker": "^15.13.0",
49
- "@atlaskit/dropdown-menu": "^12.26.0",
41
+ "@atlaskit/analytics-next": "^11.0.0",
42
+ "@atlaskit/atlassian-context": "^0.2.0",
43
+ "@atlaskit/avatar": "^22.0.0",
44
+ "@atlaskit/avatar-group": "^12.0.0",
45
+ "@atlaskit/badge": "^18.0.0",
46
+ "@atlaskit/button": "^21.0.0",
47
+ "@atlaskit/css": "^0.10.0",
48
+ "@atlaskit/datetime-picker": "^16.0.0",
49
+ "@atlaskit/dropdown-menu": "^13.0.0",
50
50
  "@atlaskit/editor-prosemirror": "7.0.0",
51
- "@atlaskit/empty-state": "^8.2.0",
52
- "@atlaskit/flag": "^15.9.0",
53
- "@atlaskit/form": "^11.1.0",
54
- "@atlaskit/heading": "^4.1.0",
55
- "@atlaskit/icon": "^23.9.0",
56
- "@atlaskit/icon-object": "^6.11.0",
57
- "@atlaskit/image": "^1.4.0",
58
- "@atlaskit/inline-edit": "^14.2.0",
59
- "@atlaskit/intl-messages-provider": "^1.1.0",
51
+ "@atlaskit/empty-state": "^9.0.0",
52
+ "@atlaskit/flag": "^16.0.0",
53
+ "@atlaskit/form": "^12.0.0",
54
+ "@atlaskit/heading": "^5.0.0",
55
+ "@atlaskit/icon": "^24.0.0",
56
+ "@atlaskit/icon-object": "^7.0.0",
57
+ "@atlaskit/image": "^2.0.0",
58
+ "@atlaskit/inline-edit": "^15.0.0",
59
+ "@atlaskit/intl-messages-provider": "^2.0.0",
60
60
  "@atlaskit/jql-ast": "^3.3.0",
61
- "@atlaskit/jql-editor": "^4.15.0",
62
- "@atlaskit/jql-editor-autocomplete-rest": "^2.2.0",
63
- "@atlaskit/layering": "^1.1.0",
64
- "@atlaskit/link-client-extension": "^3.1.0",
65
- "@atlaskit/linking-common": "^7.0.0",
61
+ "@atlaskit/jql-editor": "^5.0.0",
62
+ "@atlaskit/jql-editor-autocomplete-rest": "^3.0.0",
63
+ "@atlaskit/layering": "^2.0.0",
64
+ "@atlaskit/link-client-extension": "^4.0.0",
65
+ "@atlaskit/linking-common": "^8.0.0",
66
66
  "@atlaskit/linking-types": "^9.6.0",
67
- "@atlaskit/logo": "^15.3.0",
68
- "@atlaskit/lozenge": "^11.13.0",
69
- "@atlaskit/modal-dialog": "^12.20.0",
67
+ "@atlaskit/logo": "^16.0.0",
68
+ "@atlaskit/lozenge": "^12.0.0",
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",
72
- "@atlaskit/popup": "^1.31.0",
72
+ "@atlaskit/popup": "^2.0.0",
73
73
  "@atlaskit/pragmatic-drag-and-drop": "^1.5.0",
74
74
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
75
- "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^1.2.0",
76
- "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.2.0",
77
- "@atlaskit/primitives": "^13.5.0",
78
- "@atlaskit/react-select": "^1.7.0",
79
- "@atlaskit/select": "^18.10.0",
80
- "@atlaskit/smart-card": "^34.10.0",
81
- "@atlaskit/smart-user-picker": "7.0.1",
82
- "@atlaskit/spinner": "^17.1.0",
83
- "@atlaskit/tag": "^13.0.0",
84
- "@atlaskit/textfield": "7.0.0",
85
- "@atlaskit/theme": "^16.0.0",
86
- "@atlaskit/tokens": "^3.3.0",
87
- "@atlaskit/tooltip": "^19.1.0",
88
- "@atlaskit/ufo": "^0.3.0",
89
- "@atlaskit/width-detector": "^4.4.0",
75
+ "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
76
+ "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^2.0.0",
77
+ "@atlaskit/primitives": "^14.0.0",
78
+ "@atlaskit/react-select": "^2.0.0",
79
+ "@atlaskit/select": "^19.0.0",
80
+ "@atlaskit/smart-card": "^35.0.0",
81
+ "@atlaskit/smart-user-picker": "8.0.0",
82
+ "@atlaskit/spinner": "^18.0.0",
83
+ "@atlaskit/tag": "^14.0.0",
84
+ "@atlaskit/textfield": "8.0.0",
85
+ "@atlaskit/theme": "^17.0.0",
86
+ "@atlaskit/tokens": "^4.0.0",
87
+ "@atlaskit/tooltip": "^20.0.0",
88
+ "@atlaskit/ufo": "^0.4.0",
89
+ "@atlaskit/width-detector": "^5.0.0",
90
90
  "@babel/runtime": "^7.0.0",
91
- "@compiled/react": "^0.18.1",
91
+ "@compiled/react": "^0.18.2",
92
92
  "@emotion/react": "^11.7.1",
93
93
  "@emotion/styled": "^11.0.0",
94
94
  "debounce-promise": "^3.1.2",
@@ -106,8 +106,8 @@
106
106
  "devDependencies": {
107
107
  "@af/integration-testing": "*",
108
108
  "@af/visual-regression": "*",
109
- "@atlaskit/link-provider": "^1.19.0",
110
- "@atlaskit/link-test-helpers": "^7.6.0",
109
+ "@atlaskit/link-provider": "^2.0.0",
110
+ "@atlaskit/link-test-helpers": "^8.0.0",
111
111
  "@atlaskit/ssr": "*",
112
112
  "@atlaskit/visual-regression": "*",
113
113
  "@atlassian/feature-flags-test-utils": "^0.3.0",