@atlaskit/jql-editor 5.13.4 → 5.13.6
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/plugins/autocomplete/view.js +8 -12
- package/dist/cjs/plugins/rich-inline-nodes/util/replace-nodes-transaction.js +1 -1
- package/dist/es2019/plugins/autocomplete/view.js +8 -12
- package/dist/es2019/plugins/rich-inline-nodes/util/replace-nodes-transaction.js +1 -1
- package/dist/esm/plugins/autocomplete/view.js +8 -12
- package/dist/esm/plugins/rich-inline-nodes/util/replace-nodes-transaction.js +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 5.13.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`618d4b42a6fe9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/618d4b42a6fe9) -
|
|
8
|
+
Clean up jira_update_jql_teams feature gate
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 5.13.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 5.13.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -62,7 +62,7 @@ var AutocompletePluginView = exports.default = /*#__PURE__*/function (_ReactPlug
|
|
|
62
62
|
if (_this.enableRichInlineNodes && option.type === 'value' && option.valueType === 'user') {
|
|
63
63
|
transaction.setMeta('hydrate', true);
|
|
64
64
|
}
|
|
65
|
-
if (_this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team'
|
|
65
|
+
if (_this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team' || option.valueType === 'project' && (0, _platformFeatureFlags.fg)('projects_in_jira_eap_drop2'))) {
|
|
66
66
|
transaction.setMeta('hydrate', true);
|
|
67
67
|
}
|
|
68
68
|
var documentFrom = (0, _getDocumentPosition.default)(transaction.doc, from);
|
|
@@ -104,17 +104,13 @@ var AutocompletePluginView = exports.default = /*#__PURE__*/function (_ReactPlug
|
|
|
104
104
|
}
|
|
105
105
|
case 'team':
|
|
106
106
|
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
nodes.push(_this.view.state.schema.nodes.team.create(_attributes, textContent));
|
|
115
|
-
} else {
|
|
116
|
-
nodes.push(textContent);
|
|
117
|
-
}
|
|
107
|
+
var _attributes = {
|
|
108
|
+
type: 'team',
|
|
109
|
+
id: value,
|
|
110
|
+
name: nameOnRichInlineNode !== null && nameOnRichInlineNode !== void 0 ? nameOnRichInlineNode : name,
|
|
111
|
+
fieldName: context === null || context === void 0 ? void 0 : context.field
|
|
112
|
+
};
|
|
113
|
+
nodes.push(_this.view.state.schema.nodes.team.create(_attributes, textContent));
|
|
118
114
|
break;
|
|
119
115
|
}
|
|
120
116
|
case 'project':
|
|
@@ -33,7 +33,7 @@ var replaceRichInlineNodes = exports.replaceRichInlineNodes = function replaceRi
|
|
|
33
33
|
fieldName = _ref2[0],
|
|
34
34
|
values = _ref2[1];
|
|
35
35
|
values.forEach(function (value) {
|
|
36
|
-
if (value.type === 'user' || value.type === 'team'
|
|
36
|
+
if (value.type === 'user' || value.type === 'team' || value.type === 'project' && (0, _platformFeatureFlags.fg)('projects_in_jira_eap_drop2')) {
|
|
37
37
|
// First try to find as direct value operand (e.g., Team[Team] = uuid)
|
|
38
38
|
var astNodes = getValueNodes(ast, fieldName, value.id);
|
|
39
39
|
|
|
@@ -45,7 +45,7 @@ export default class AutocompletePluginView extends ReactPluginView {
|
|
|
45
45
|
if (this.enableRichInlineNodes && option.type === 'value' && option.valueType === 'user') {
|
|
46
46
|
transaction.setMeta('hydrate', true);
|
|
47
47
|
}
|
|
48
|
-
if (this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team'
|
|
48
|
+
if (this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team' || option.valueType === 'project' && fg('projects_in_jira_eap_drop2'))) {
|
|
49
49
|
transaction.setMeta('hydrate', true);
|
|
50
50
|
}
|
|
51
51
|
const documentFrom = getDocumentPosition(transaction.doc, from);
|
|
@@ -89,17 +89,13 @@ export default class AutocompletePluginView extends ReactPluginView {
|
|
|
89
89
|
}
|
|
90
90
|
case 'team':
|
|
91
91
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
nodes.push(this.view.state.schema.nodes.team.create(attributes, textContent));
|
|
100
|
-
} else {
|
|
101
|
-
nodes.push(textContent);
|
|
102
|
-
}
|
|
92
|
+
const attributes = {
|
|
93
|
+
type: 'team',
|
|
94
|
+
id: value,
|
|
95
|
+
name: nameOnRichInlineNode !== null && nameOnRichInlineNode !== void 0 ? nameOnRichInlineNode : name,
|
|
96
|
+
fieldName: context === null || context === void 0 ? void 0 : context.field
|
|
97
|
+
};
|
|
98
|
+
nodes.push(this.view.state.schema.nodes.team.create(attributes, textContent));
|
|
103
99
|
break;
|
|
104
100
|
}
|
|
105
101
|
case 'project':
|
|
@@ -12,7 +12,7 @@ export const replaceRichInlineNodes = (editorState, hydratedValues) => {
|
|
|
12
12
|
transaction.setMeta('addToHistory', false);
|
|
13
13
|
Object.entries(hydratedValues).forEach(([fieldName, values]) => {
|
|
14
14
|
values.forEach(value => {
|
|
15
|
-
if (value.type === 'user' || value.type === 'team'
|
|
15
|
+
if (value.type === 'user' || value.type === 'team' || value.type === 'project' && fg('projects_in_jira_eap_drop2')) {
|
|
16
16
|
// First try to find as direct value operand (e.g., Team[Team] = uuid)
|
|
17
17
|
let astNodes = getValueNodes(ast, fieldName, value.id);
|
|
18
18
|
|
|
@@ -56,7 +56,7 @@ var AutocompletePluginView = /*#__PURE__*/function (_ReactPluginView) {
|
|
|
56
56
|
if (_this.enableRichInlineNodes && option.type === 'value' && option.valueType === 'user') {
|
|
57
57
|
transaction.setMeta('hydrate', true);
|
|
58
58
|
}
|
|
59
|
-
if (_this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team'
|
|
59
|
+
if (_this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team' || option.valueType === 'project' && fg('projects_in_jira_eap_drop2'))) {
|
|
60
60
|
transaction.setMeta('hydrate', true);
|
|
61
61
|
}
|
|
62
62
|
var documentFrom = getDocumentPosition(transaction.doc, from);
|
|
@@ -98,17 +98,13 @@ var AutocompletePluginView = /*#__PURE__*/function (_ReactPluginView) {
|
|
|
98
98
|
}
|
|
99
99
|
case 'team':
|
|
100
100
|
{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
nodes.push(_this.view.state.schema.nodes.team.create(_attributes, textContent));
|
|
109
|
-
} else {
|
|
110
|
-
nodes.push(textContent);
|
|
111
|
-
}
|
|
101
|
+
var _attributes = {
|
|
102
|
+
type: 'team',
|
|
103
|
+
id: value,
|
|
104
|
+
name: nameOnRichInlineNode !== null && nameOnRichInlineNode !== void 0 ? nameOnRichInlineNode : name,
|
|
105
|
+
fieldName: context === null || context === void 0 ? void 0 : context.field
|
|
106
|
+
};
|
|
107
|
+
nodes.push(_this.view.state.schema.nodes.team.create(_attributes, textContent));
|
|
112
108
|
break;
|
|
113
109
|
}
|
|
114
110
|
case 'project':
|
|
@@ -26,7 +26,7 @@ export var replaceRichInlineNodes = function replaceRichInlineNodes(editorState,
|
|
|
26
26
|
fieldName = _ref2[0],
|
|
27
27
|
values = _ref2[1];
|
|
28
28
|
values.forEach(function (value) {
|
|
29
|
-
if (value.type === 'user' || value.type === 'team'
|
|
29
|
+
if (value.type === 'user' || value.type === 'team' || value.type === 'project' && fg('projects_in_jira_eap_drop2')) {
|
|
30
30
|
// First try to find as direct value operand (e.g., Team[Team] = uuid)
|
|
31
31
|
var astNodes = getValueNodes(ast, fieldName, value.id);
|
|
32
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.6",
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/afm-i18n-platform-jql-jql-editor": "2.10.0",
|
|
36
36
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
|
-
"@atlaskit/avatar": "^25.
|
|
38
|
+
"@atlaskit/avatar": "^25.10.0",
|
|
39
39
|
"@atlaskit/button": "^23.10.0",
|
|
40
40
|
"@atlaskit/css": "^0.19.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
57
57
|
"@atlaskit/theme": "^22.0.0",
|
|
58
58
|
"@atlaskit/tokens": "^11.1.0",
|
|
59
|
-
"@atlaskit/tooltip": "^
|
|
59
|
+
"@atlaskit/tooltip": "^21.0.0",
|
|
60
60
|
"@atlaskit/townsquare-emoji-provider": "^1.0.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
62
62
|
"@emotion/react": "^11.7.1",
|
|
@@ -144,9 +144,6 @@
|
|
|
144
144
|
"jql_editor_autocomplete_use_popper": {
|
|
145
145
|
"type": "boolean"
|
|
146
146
|
},
|
|
147
|
-
"jira_update_jql_teams": {
|
|
148
|
-
"type": "boolean"
|
|
149
|
-
},
|
|
150
147
|
"jira-membersof-team-support": {
|
|
151
148
|
"type": "boolean"
|
|
152
149
|
},
|