@atlaskit/jql-editor 5.1.0 → 5.1.2
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/analytics/util.js +1 -1
- package/dist/cjs/plugins/jql-ast/JQLEditorErrorStrategy.js +4 -5
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/plugins/jql-ast/JQLEditorErrorStrategy.js +4 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -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.1.
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "5.1.2", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -127,18 +127,17 @@ var JQLEditorErrorStrategy = exports.default = /*#__PURE__*/function (_DefaultEr
|
|
|
127
127
|
if (nextToken.type === _jqlParser.JQLLexer.MATCHWS || nextToken.type === _jqlParser.JQLLexer.EOF) {
|
|
128
128
|
message = this.intlRef.current.formatMessage(_messages.errorMessages.illegalEscapeBlank);
|
|
129
129
|
} else {
|
|
130
|
-
var
|
|
130
|
+
var _nextToken$text;
|
|
131
131
|
// Show the escaped character sequence in the message
|
|
132
|
-
var received = "".concat(
|
|
132
|
+
var received = "".concat(currentText !== null && currentText !== void 0 ? currentText : '').concat((_nextToken$text = nextToken.text) !== null && _nextToken$text !== void 0 ? _nextToken$text : '');
|
|
133
133
|
message = this.intlRef.current.formatMessage(_messages.errorMessages.illegalEscape, {
|
|
134
134
|
received: received
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
} else {
|
|
138
|
-
var _currentText3, _currentText4;
|
|
139
138
|
message = this.intlRef.current.formatMessage(_messages.errorMessages.illegalChar, {
|
|
140
|
-
char: getPrintableChar(
|
|
141
|
-
escapedChar: getJavaCodeFromChar(
|
|
139
|
+
char: getPrintableChar(currentText !== null && currentText !== void 0 ? currentText : ''),
|
|
140
|
+
escapedChar: getJavaCodeFromChar(currentText !== null && currentText !== void 0 ? currentText : '')
|
|
142
141
|
});
|
|
143
142
|
}
|
|
144
143
|
break;
|
|
@@ -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.1.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.1.2", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -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.1.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.1.2", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -120,18 +120,17 @@ var JQLEditorErrorStrategy = /*#__PURE__*/function (_DefaultErrorStrategy) {
|
|
|
120
120
|
if (nextToken.type === JQLLexer.MATCHWS || nextToken.type === JQLLexer.EOF) {
|
|
121
121
|
message = this.intlRef.current.formatMessage(errorMessages.illegalEscapeBlank);
|
|
122
122
|
} else {
|
|
123
|
-
var
|
|
123
|
+
var _nextToken$text;
|
|
124
124
|
// Show the escaped character sequence in the message
|
|
125
|
-
var received = "".concat(
|
|
125
|
+
var received = "".concat(currentText !== null && currentText !== void 0 ? currentText : '').concat((_nextToken$text = nextToken.text) !== null && _nextToken$text !== void 0 ? _nextToken$text : '');
|
|
126
126
|
message = this.intlRef.current.formatMessage(errorMessages.illegalEscape, {
|
|
127
127
|
received: received
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
} else {
|
|
131
|
-
var _currentText3, _currentText4;
|
|
132
131
|
message = this.intlRef.current.formatMessage(errorMessages.illegalChar, {
|
|
133
|
-
char: getPrintableChar(
|
|
134
|
-
escapedChar: getJavaCodeFromChar(
|
|
132
|
+
char: getPrintableChar(currentText !== null && currentText !== void 0 ? currentText : ''),
|
|
133
|
+
escapedChar: getJavaCodeFromChar(currentText !== null && currentText !== void 0 ? currentText : '')
|
|
135
134
|
});
|
|
136
135
|
}
|
|
137
136
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
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",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
41
41
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
42
42
|
"@atlaskit/avatar": "^25.0.0",
|
|
43
|
-
"@atlaskit/button": "^
|
|
43
|
+
"@atlaskit/button": "^23.0.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
45
45
|
"@atlaskit/form": "^12.0.0",
|
|
46
|
-
"@atlaskit/icon": "^25.
|
|
46
|
+
"@atlaskit/icon": "^25.4.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",
|