@atlaskit/jql-editor 5.2.1 → 5.3.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/jql-editor
2
2
 
3
+ ## 5.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#157088](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157088)
8
+ [`0d5045c49d85a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d5045c49d85a) -
9
+ We are testing the migration to the ADS Link component behind a feature flag. If this fix is
10
+ successful it will be available in a later release.
11
+
12
+ ## 5.2.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 5.2.1
4
19
 
5
20
  ### Patch Changes
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useJqlEditorAnalytics = void 0;
7
7
  var _jqlEditorCommon = require("@atlaskit/jql-editor-common");
8
8
  var useJqlEditorAnalytics = exports.useJqlEditorAnalytics = function useJqlEditorAnalytics(analyticsSource) {
9
- return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "5.2.1", _jqlEditorCommon.ANALYTICS_CHANNEL);
9
+ return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "5.3.0", _jqlEditorCommon.ANALYTICS_CHANNEL);
10
10
  };
@@ -13,6 +13,8 @@ var _reactMagneticDi = require("react-magnetic-di");
13
13
  var _form = require("@atlaskit/form");
14
14
  var _warning = _interopRequireDefault(require("@atlaskit/icon/glyph/warning"));
15
15
  var _warning2 = _interopRequireDefault(require("@atlaskit/icon/utility/warning"));
16
+ var _link = _interopRequireDefault(require("@atlaskit/link"));
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
18
  var _compiled = require("@atlaskit/primitives/compiled");
17
19
  var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
18
20
  var _useEditorViewHasWarnings = require("../../../../hooks/use-editor-view-has-warnings");
@@ -70,7 +72,17 @@ var useFormattedWarningMessage = exports.useFormattedWarningMessage = function u
70
72
  } else if (epicLinkDeprecationTerm && parentLinkDeprecationTerm) {
71
73
  return formatWarnings(formatMessage(_messages.messages.deprecatedBothParentReplacementMessage, {
72
74
  link: function link(chunks) {
73
- return /*#__PURE__*/_react.default.createElement("a", {
75
+ return (0, _platformFeatureFlags.fg)('dst-a11y__replace-anchor-with-link__jira-platform-') ? /*#__PURE__*/_react.default.createElement(_link.default, {
76
+ href: softDeprecateEpicParentDocsLink,
77
+ target: "_blank",
78
+ rel: "noopener noreferrer",
79
+ onClick: function onClick(e) {
80
+ return e.stopPropagation();
81
+ }
82
+ }, chunks) :
83
+ /*#__PURE__*/
84
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
85
+ _react.default.createElement("a", {
74
86
  href: softDeprecateEpicParentDocsLink,
75
87
  target: "_blank",
76
88
  rel: "noopener noreferrer",
@@ -86,7 +98,17 @@ var useFormattedWarningMessage = exports.useFormattedWarningMessage = function u
86
98
  } else if (epicLinkDeprecationTerm || parentLinkDeprecationTerm) {
87
99
  return formatWarnings(formatMessage(_messages.messages.deprecatedParentReplacementMessage, {
88
100
  link: function link(chunks) {
89
- return /*#__PURE__*/_react.default.createElement("a", {
101
+ return (0, _platformFeatureFlags.fg)('dst-a11y__replace-anchor-with-link__jira-platform-') ? /*#__PURE__*/_react.default.createElement(_link.default, {
102
+ href: softDeprecateEpicParentDocsLink,
103
+ target: "_blank",
104
+ rel: "noopener noreferrer",
105
+ onClick: function onClick(e) {
106
+ return e.stopPropagation();
107
+ }
108
+ }, chunks) :
109
+ /*#__PURE__*/
110
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
111
+ _react.default.createElement("a", {
90
112
  href: softDeprecateEpicParentDocsLink,
91
113
  target: "_blank",
92
114
  rel: "noopener noreferrer",
@@ -1,4 +1,4 @@
1
1
  import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
2
2
  export const useJqlEditorAnalytics = analyticsSource => {
3
- return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.2.1", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.3.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -3,6 +3,8 @@ import { di } from 'react-magnetic-di';
3
3
  import { HelperMessage } from '@atlaskit/form';
4
4
  import LegacyWarningIcon from '@atlaskit/icon/glyph/warning';
5
5
  import WarningIcon from '@atlaskit/icon/utility/warning';
6
+ import Link from '@atlaskit/link';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
6
8
  import { Box } from '@atlaskit/primitives/compiled';
7
9
  import * as colors from '@atlaskit/theme/colors';
8
10
  import { useEditorViewHasWarnings } from '../../../../hooks/use-editor-view-has-warnings';
@@ -51,7 +53,15 @@ export const useFormattedWarningMessage = () => {
51
53
  }));
52
54
  } else if (epicLinkDeprecationTerm && parentLinkDeprecationTerm) {
53
55
  return formatWarnings(formatMessage(messages.deprecatedBothParentReplacementMessage, {
54
- link: chunks => /*#__PURE__*/React.createElement("a", {
56
+ link: chunks => fg('dst-a11y__replace-anchor-with-link__jira-platform-') ? /*#__PURE__*/React.createElement(Link, {
57
+ href: softDeprecateEpicParentDocsLink,
58
+ target: "_blank",
59
+ rel: "noopener noreferrer",
60
+ onClick: e => e.stopPropagation()
61
+ }, chunks) :
62
+ /*#__PURE__*/
63
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
64
+ React.createElement("a", {
55
65
  href: softDeprecateEpicParentDocsLink,
56
66
  target: "_blank",
57
67
  rel: "noopener noreferrer",
@@ -63,7 +73,15 @@ export const useFormattedWarningMessage = () => {
63
73
  }));
64
74
  } else if (epicLinkDeprecationTerm || parentLinkDeprecationTerm) {
65
75
  return formatWarnings(formatMessage(messages.deprecatedParentReplacementMessage, {
66
- link: chunks => /*#__PURE__*/React.createElement("a", {
76
+ link: chunks => fg('dst-a11y__replace-anchor-with-link__jira-platform-') ? /*#__PURE__*/React.createElement(Link, {
77
+ href: softDeprecateEpicParentDocsLink,
78
+ target: "_blank",
79
+ rel: "noopener noreferrer",
80
+ onClick: e => e.stopPropagation()
81
+ }, chunks) :
82
+ /*#__PURE__*/
83
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
84
+ React.createElement("a", {
67
85
  href: softDeprecateEpicParentDocsLink,
68
86
  target: "_blank",
69
87
  rel: "noopener noreferrer",
@@ -1,4 +1,4 @@
1
1
  import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
2
2
  export var useJqlEditorAnalytics = function useJqlEditorAnalytics(analyticsSource) {
3
- return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.2.1", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.3.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -5,6 +5,8 @@ import { di } from 'react-magnetic-di';
5
5
  import { HelperMessage } from '@atlaskit/form';
6
6
  import LegacyWarningIcon from '@atlaskit/icon/glyph/warning';
7
7
  import WarningIcon from '@atlaskit/icon/utility/warning';
8
+ import Link from '@atlaskit/link';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
8
10
  import { Box } from '@atlaskit/primitives/compiled';
9
11
  import * as colors from '@atlaskit/theme/colors';
10
12
  import { useEditorViewHasWarnings } from '../../../../hooks/use-editor-view-has-warnings';
@@ -60,7 +62,17 @@ export var useFormattedWarningMessage = function useFormattedWarningMessage() {
60
62
  } else if (epicLinkDeprecationTerm && parentLinkDeprecationTerm) {
61
63
  return formatWarnings(formatMessage(messages.deprecatedBothParentReplacementMessage, {
62
64
  link: function link(chunks) {
63
- return /*#__PURE__*/React.createElement("a", {
65
+ return fg('dst-a11y__replace-anchor-with-link__jira-platform-') ? /*#__PURE__*/React.createElement(Link, {
66
+ href: softDeprecateEpicParentDocsLink,
67
+ target: "_blank",
68
+ rel: "noopener noreferrer",
69
+ onClick: function onClick(e) {
70
+ return e.stopPropagation();
71
+ }
72
+ }, chunks) :
73
+ /*#__PURE__*/
74
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
75
+ React.createElement("a", {
64
76
  href: softDeprecateEpicParentDocsLink,
65
77
  target: "_blank",
66
78
  rel: "noopener noreferrer",
@@ -76,7 +88,17 @@ export var useFormattedWarningMessage = function useFormattedWarningMessage() {
76
88
  } else if (epicLinkDeprecationTerm || parentLinkDeprecationTerm) {
77
89
  return formatWarnings(formatMessage(messages.deprecatedParentReplacementMessage, {
78
90
  link: function link(chunks) {
79
- return /*#__PURE__*/React.createElement("a", {
91
+ return fg('dst-a11y__replace-anchor-with-link__jira-platform-') ? /*#__PURE__*/React.createElement(Link, {
92
+ href: softDeprecateEpicParentDocsLink,
93
+ target: "_blank",
94
+ rel: "noopener noreferrer",
95
+ onClick: function onClick(e) {
96
+ return e.stopPropagation();
97
+ }
98
+ }, chunks) :
99
+ /*#__PURE__*/
100
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
101
+ React.createElement("a", {
80
102
  href: softDeprecateEpicParentDocsLink,
81
103
  target: "_blank",
82
104
  rel: "noopener noreferrer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/jql-editor",
3
- "version": "5.2.1",
3
+ "version": "5.3.0",
4
4
  "description": "This package allows consumers to render an advanced JQL editor component to enable autocomplete-assisted authoring and validation of JQL queries.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,21 +39,22 @@
39
39
  "dependencies": {
40
40
  "@atlaskit/analytics-gas-types": "^5.1.0",
41
41
  "@atlaskit/analytics-next": "^11.0.0",
42
- "@atlaskit/avatar": "^25.0.0",
43
- "@atlaskit/button": "^23.0.0",
42
+ "@atlaskit/avatar": "^25.1.0",
43
+ "@atlaskit/button": "^23.2.0",
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
45
  "@atlaskit/form": "^12.0.0",
46
- "@atlaskit/icon": "^25.6.0",
46
+ "@atlaskit/icon": "^26.1.0",
47
47
  "@atlaskit/jql-ast": "^3.3.0",
48
48
  "@atlaskit/jql-autocomplete": "^2.0.0",
49
49
  "@atlaskit/jql-editor-common": "^3.0.0",
50
50
  "@atlaskit/jql-parser": "^2.0.0",
51
51
  "@atlaskit/legacy-custom-icons": "^0.22.0",
52
+ "@atlaskit/link": "^3.2.0",
52
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
53
- "@atlaskit/primitives": "^14.4.0",
54
+ "@atlaskit/primitives": "^14.8.0",
54
55
  "@atlaskit/spinner": "^18.0.0",
55
56
  "@atlaskit/theme": "^18.0.0",
56
- "@atlaskit/tokens": "^4.8.0",
57
+ "@atlaskit/tokens": "^4.9.0",
57
58
  "@atlaskit/tooltip": "^20.0.0",
58
59
  "@babel/runtime": "^7.0.0",
59
60
  "@emotion/react": "^11.7.1",
@@ -75,10 +76,10 @@
75
76
  "react-dom": "^18.2.0"
76
77
  },
77
78
  "devDependencies": {
78
- "@af/integration-testing": "^0.5.0",
79
+ "@af/integration-testing": "workspace:^",
79
80
  "@atlaskit/docs": "^10.0.0",
80
81
  "@atlaskit/jql-editor-autocomplete-rest": "^3.0.0",
81
- "@atlaskit/visual-regression": "^0.10.0",
82
+ "@atlaskit/visual-regression": "workspace:^",
82
83
  "@atlassian/feature-flags-test-utils": "^0.3.0",
83
84
  "@storybook/addon-actions": "^6.4.0",
84
85
  "@storybook/addon-knobs": "^6.4.0",
@@ -136,6 +137,9 @@
136
137
  },
137
138
  "jql_editor_a11y": {
138
139
  "type": "boolean"
140
+ },
141
+ "dst-a11y__replace-anchor-with-link__jira-platform-": {
142
+ "type": "boolean"
139
143
  }
140
144
  }
141
145
  }