@atlaskit/jql-editor 6.3.0 → 6.4.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 +18 -0
- package/analytics/package.json +17 -0
- package/async/package.json +17 -0
- package/components/types/package.json +17 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/entry-points/analytics.js +24 -0
- package/dist/cjs/entry-points/async.js +18 -0
- package/dist/cjs/entry-points/components-types.js +1 -0
- package/dist/cjs/entry-points/jql-editor-analytics-listener.js +13 -0
- package/dist/cjs/entry-points/jql-editor-layout.js +12 -0
- package/dist/cjs/entry-points/src-types.js +1 -0
- package/dist/cjs/entry-points/state-types.js +1 -0
- package/dist/cjs/entry-points/types.js +1 -0
- package/dist/cjs/entry-points/ui-types.js +1 -0
- package/dist/cjs/entry-points/ui.js +13 -0
- package/dist/cjs/plugins/autocomplete/view.js +2 -3
- package/dist/cjs/plugins/rich-inline-nodes/nodes/base/index.compiled.css +17 -3
- package/dist/cjs/plugins/rich-inline-nodes/nodes/base/index.js +3 -3
- package/dist/cjs/plugins/rich-inline-nodes/nodes/goal/goal-icon.js +16 -0
- package/dist/cjs/plugins/rich-inline-nodes/nodes/goal/goal-node.js +1 -1
- package/dist/cjs/plugins/rich-inline-nodes/util/replace-nodes-transaction.js +1 -1
- package/dist/cjs/state/hydration/index.js +2 -2
- package/dist/cjs/state/index.js +5 -5
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/entry-points/analytics.js +1 -0
- package/dist/es2019/entry-points/async.js +1 -0
- package/dist/es2019/entry-points/components-types.js +0 -0
- package/dist/es2019/entry-points/jql-editor-analytics-listener.js +1 -0
- package/dist/es2019/entry-points/jql-editor-layout.js +1 -0
- package/dist/es2019/entry-points/src-types.js +0 -0
- package/dist/es2019/entry-points/state-types.js +0 -0
- package/dist/es2019/entry-points/types.js +0 -0
- package/dist/es2019/entry-points/ui-types.js +0 -0
- package/dist/es2019/entry-points/ui.js +1 -0
- package/dist/es2019/plugins/autocomplete/view.js +2 -3
- package/dist/es2019/plugins/rich-inline-nodes/nodes/base/index.compiled.css +17 -3
- package/dist/es2019/plugins/rich-inline-nodes/nodes/base/index.js +3 -3
- package/dist/es2019/plugins/rich-inline-nodes/nodes/goal/goal-icon.js +16 -0
- package/dist/es2019/plugins/rich-inline-nodes/nodes/goal/goal-node.js +1 -1
- package/dist/es2019/plugins/rich-inline-nodes/util/replace-nodes-transaction.js +1 -1
- package/dist/es2019/state/hydration/index.js +2 -2
- package/dist/es2019/state/index.js +5 -5
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/entry-points/analytics.js +1 -0
- package/dist/esm/entry-points/async.js +1 -0
- package/dist/esm/entry-points/components-types.js +0 -0
- package/dist/esm/entry-points/jql-editor-analytics-listener.js +1 -0
- package/dist/esm/entry-points/jql-editor-layout.js +1 -0
- package/dist/esm/entry-points/src-types.js +0 -0
- package/dist/esm/entry-points/state-types.js +0 -0
- package/dist/esm/entry-points/types.js +0 -0
- package/dist/esm/entry-points/ui-types.js +0 -0
- package/dist/esm/entry-points/ui.js +1 -0
- package/dist/esm/plugins/autocomplete/view.js +2 -3
- package/dist/esm/plugins/rich-inline-nodes/nodes/base/index.compiled.css +17 -3
- package/dist/esm/plugins/rich-inline-nodes/nodes/base/index.js +3 -3
- package/dist/esm/plugins/rich-inline-nodes/nodes/goal/goal-icon.js +16 -0
- package/dist/esm/plugins/rich-inline-nodes/nodes/goal/goal-node.js +1 -1
- package/dist/esm/plugins/rich-inline-nodes/util/replace-nodes-transaction.js +1 -1
- package/dist/esm/state/hydration/index.js +2 -2
- package/dist/esm/state/index.js +5 -5
- package/dist/types/entry-points/analytics.d.ts +2 -0
- package/dist/types/entry-points/async.d.ts +1 -0
- package/dist/types/entry-points/components-types.d.ts +1 -0
- package/dist/types/entry-points/jql-editor-analytics-listener.d.ts +2 -0
- package/dist/types/entry-points/jql-editor-layout.d.ts +1 -0
- package/dist/types/entry-points/src-types.d.ts +1 -0
- package/dist/types/entry-points/state-types.d.ts +1 -0
- package/dist/types/entry-points/types.d.ts +1 -0
- package/dist/types/entry-points/ui-types.d.ts +1 -0
- package/dist/types/entry-points/ui.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/analytics.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/async.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/components-types.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/jql-editor-analytics-listener.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/jql-editor-layout.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/src-types.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/state-types.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/ui-types.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/ui.d.ts +1 -0
- package/jql-editor-analytics-listener/package.json +17 -0
- package/jql-editor-layout/package.json +17 -0
- package/package.json +11 -14
- package/state/types/package.json +17 -0
- package/types/package.json +17 -0
- package/ui/package.json +17 -0
- package/ui/types/package.json +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 6.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c56f27a582fec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c56f27a582fec) -
|
|
8
|
+
Autofix: add explicit package exports (barrel removal)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 6.3.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`5f131a57d7576`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5f131a57d7576) -
|
|
19
|
+
[ux] Correct lozenge height
|
|
20
|
+
|
|
3
21
|
## 6.3.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/jql-editor/analytics",
|
|
3
|
+
"main": "../dist/cjs/entry-points/analytics.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/analytics.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/analytics.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/analytics.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/analytics.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/jql-editor/async",
|
|
3
|
+
"main": "../dist/cjs/entry-points/async.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/async.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/async.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/async.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/async.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/jql-editor/components/types",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/components-types.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/components-types.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/components-types.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/entry-points/components-types.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../../dist/types-ts4.5/entry-points/components-types.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -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", "
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "0.0.0-development", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ANALYTICS_CHANNEL", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _index.ANALYTICS_CHANNEL;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "EventType", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _index.EventType;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "useJqlPackageAnalytics", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _index.useJqlPackageAnalytics;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _index = require("../analytics/index");
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "JQLEditorAsync", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _async.JQLEditorAsync;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "preloadJQLEditor", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _async.preloadJQLEditor;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _async = require("../async");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "JQLEditorAnalyticsListener", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _jqlEditorAnalyticsListener.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _jqlEditorAnalyticsListener = _interopRequireDefault(require("../analytics/listener/jql-editor-analytics-listener"));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "JQLEditorReadOnly", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _index.JQLEditorReadOnly;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _index = require("../ui/jql-editor-layout/index");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "JQLEditor", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _index.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _index = _interopRequireDefault(require("../ui/index"));
|
|
@@ -16,7 +16,6 @@ var _model = require("@atlaskit/editor-prosemirror/model");
|
|
|
16
16
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
17
17
|
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
18
18
|
var _jqlAst = require("@atlaskit/jql-ast");
|
|
19
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
19
|
var _getDocumentPosition = _interopRequireDefault(require("../common/get-document-position"));
|
|
21
20
|
var _reactPluginView = _interopRequireDefault(require("../common/react-plugin-view"));
|
|
22
21
|
var _autocomplete = _interopRequireDefault(require("./components/autocomplete"));
|
|
@@ -63,7 +62,7 @@ var AutocompletePluginView = exports.default = /*#__PURE__*/function (_ReactPlug
|
|
|
63
62
|
if (_this.enableRichInlineNodes && option.type === 'value' && option.valueType === 'user') {
|
|
64
63
|
transaction.setMeta('hydrate', true);
|
|
65
64
|
}
|
|
66
|
-
if (_this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team' || option.valueType === 'goal' && _featureGateJsClient.default.getExperimentValue('anip-1095-goals-in-harmonised-filter', 'isEnabled', false) || option.valueType === 'project' && (
|
|
65
|
+
if (_this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team' || option.valueType === 'goal' && _featureGateJsClient.default.getExperimentValue('anip-1095-goals-in-harmonised-filter', 'isEnabled', false) || option.valueType === 'project' && _featureGateJsClient.default.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1)) {
|
|
67
66
|
transaction.setMeta('hydrate', true);
|
|
68
67
|
}
|
|
69
68
|
var documentFrom = (0, _getDocumentPosition.default)(transaction.doc, from);
|
|
@@ -116,7 +115,7 @@ var AutocompletePluginView = exports.default = /*#__PURE__*/function (_ReactPlug
|
|
|
116
115
|
}
|
|
117
116
|
case 'project':
|
|
118
117
|
{
|
|
119
|
-
if ((
|
|
118
|
+
if (_featureGateJsClient.default.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1) {
|
|
120
119
|
var _attributes2 = {
|
|
121
120
|
type: 'project',
|
|
122
121
|
id: value,
|
|
@@ -1,25 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
-
.
|
|
4
|
-
.
|
|
3
|
+
._1rjcidpf{padding-block:0}._15a5nqa1{border-top-style:solid}
|
|
4
|
+
._1apgnqa1{border-right-style:solid}
|
|
5
|
+
._1doce4h9{border-bottom-width:var(--ds-border-width,1px)}
|
|
5
6
|
._1e0c116y{display:inline-flex}
|
|
6
7
|
._1e0c1txw{display:flex}
|
|
7
8
|
._1hms8stv{text-decoration-line:underline}
|
|
9
|
+
._1i531j28{border-top-color:transparent}
|
|
10
|
+
._1i53q98m{border-top-color:var(--ds-border-selected,#1868db)}
|
|
11
|
+
._1il9nqa1{border-bottom-style:solid}
|
|
8
12
|
._1kegt94y{text-decoration-thickness:1px}
|
|
13
|
+
._1o3i1j28{border-bottom-color:transparent}
|
|
14
|
+
._1o3iq98m{border-bottom-color:var(--ds-border-selected,#1868db)}
|
|
15
|
+
._1p3lnqa1{border-left-style:solid}
|
|
9
16
|
._1wpz1q9y{align-self:baseline}
|
|
10
17
|
._4bfu1r31{text-decoration-color:currentColor}
|
|
11
18
|
._4bfu1tmw{text-decoration-color:var(--ds-text-danger,#ae2e24)}
|
|
12
19
|
._4cvr1h6o{align-items:center}
|
|
13
20
|
._4t3i7vkz{height:1pc}
|
|
14
21
|
._4t3igktf{height:20px}
|
|
22
|
+
._5wra1j28{border-left-color:transparent}
|
|
23
|
+
._5wraq98m{border-left-color:var(--ds-border-selected,#1868db)}
|
|
15
24
|
._ajmm1khm{text-decoration-style:wavy}
|
|
16
25
|
._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
|
|
17
26
|
._bfhk1gly{background-color:var(--ds-background-danger,#ffeceb)}
|
|
18
27
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
19
28
|
._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
|
|
20
29
|
._ect4zzfg{font-family:var(--ds-font-family-code,"Atlassian Mono",ui-monospace,Menlo,"Segoe UI Mono","Ubuntu Mono",monospace)}
|
|
30
|
+
._hr4je4h9{border-right-width:var(--ds-border-width,1px)}
|
|
31
|
+
._mowc1j28{border-right-color:transparent}
|
|
32
|
+
._mowcq98m{border-right-color:var(--ds-border-selected,#1868db)}
|
|
21
33
|
._s7n4z0dk{vertical-align:text-top}
|
|
34
|
+
._t6vde4h9{border-left-width:var(--ds-border-width,1px)}
|
|
22
35
|
._tdi7glyw{-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}
|
|
36
|
+
._uwhke4h9{border-top-width:var(--ds-border-width,1px)}
|
|
23
37
|
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
24
38
|
._irr31yvi:hover{background-color:var(--ds-background-danger-hovered,#ffd5d2)}
|
|
25
39
|
._irr3plhp:hover{background-color:var(--ds-background-neutral-hovered,#0b120e24)}
|
|
@@ -15,9 +15,9 @@ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gat
|
|
|
15
15
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
16
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
17
|
var styles = {
|
|
18
|
-
nodeWrapper: "
|
|
19
|
-
nodeWrapperWithHeight: "_4t3igktf",
|
|
20
|
-
nodeWrapperSelected: "
|
|
18
|
+
nodeWrapper: "_2rko12b0 _1rjcidpf _1e0c116y _s7n4z0dk _4cvr1h6o _1wpz1q9y _bfhki8nm _5wra1j28 _t6vde4h9 _1p3lnqa1 _mowc1j28 _hr4je4h9 _1apgnqa1 _bozgv77o _y4ti1b66 _irr3plhp",
|
|
19
|
+
nodeWrapperWithHeight: "_4t3igktf _1i531j28 _uwhke4h9 _15a5nqa1 _1o3i1j28 _1doce4h9 _1il9nqa1",
|
|
20
|
+
nodeWrapperSelected: "_bfhk15s3 _1i53q98m _1o3iq98m _5wraq98m _mowcq98m _irr3ufnl",
|
|
21
21
|
nodeWrapperError: "_4bfu1r31 _1hms8stv _ajmm1khm _1kegt94y _tdi7glyw _4bfu1tmw",
|
|
22
22
|
nodeWrapperErrorSelected: "_bfhk1gly _irr31yvi",
|
|
23
23
|
textWrapper: "_ect4zzfg",
|
|
@@ -24,6 +24,13 @@ var appearanceToColorMap = {
|
|
|
24
24
|
AT_RISK: 'yellow',
|
|
25
25
|
ON_TRACK: 'green'
|
|
26
26
|
};
|
|
27
|
+
var appearanceToNewColorMap = {
|
|
28
|
+
MENU: "var(--ds-icon, #292A2E)",
|
|
29
|
+
DEFAULT: "var(--ds-icon-accent-gray, #7D818A)",
|
|
30
|
+
OFF_TRACK: "var(--ds-icon-danger, #C9372C)",
|
|
31
|
+
AT_RISK: "var(--ds-icon-warning, #E06C00)",
|
|
32
|
+
ON_TRACK: "var(--ds-icon-success, #6A9A23)"
|
|
33
|
+
};
|
|
27
34
|
var keyToIconMap = {
|
|
28
35
|
GOAL: _objective.default,
|
|
29
36
|
OBJECTIVE: _objective.default,
|
|
@@ -37,6 +44,15 @@ var GoalIcon = exports.GoalIcon = function GoalIcon(_ref) {
|
|
|
37
44
|
iconKey = _ref$iconKey === void 0 ? 'GOAL' : _ref$iconKey;
|
|
38
45
|
var Icon = (_keyToIconMap = keyToIconMap[iconKey]) !== null && _keyToIconMap !== void 0 ? _keyToIconMap : keyToIconMap.GOAL;
|
|
39
46
|
var appearance = isGoalAppearance(status) ? status : 'DEFAULT';
|
|
47
|
+
|
|
48
|
+
// Icon tile no longer supports a 16px size
|
|
49
|
+
if (size === 'xsmall') {
|
|
50
|
+
return /*#__PURE__*/_react.default.createElement(Icon, {
|
|
51
|
+
label: "",
|
|
52
|
+
size: "medium",
|
|
53
|
+
color: appearanceToNewColorMap[appearance]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
40
56
|
return /*#__PURE__*/_react.default.createElement(_icon.IconTile, {
|
|
41
57
|
size: size,
|
|
42
58
|
icon: Icon,
|
|
@@ -46,7 +46,7 @@ var GoalNode = exports.GoalNode = function GoalNode(props) {
|
|
|
46
46
|
iconBefore: /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
47
47
|
xcss: styles.iconWrapper
|
|
48
48
|
}, /*#__PURE__*/_react.default.createElement(_goalIcon.GoalIcon, {
|
|
49
|
-
size: "
|
|
49
|
+
size: "xsmall",
|
|
50
50
|
status: (_goal$status = goal === null || goal === void 0 ? void 0 : goal.status) !== null && _goal$status !== void 0 ? _goal$status : 'DEFAULT',
|
|
51
51
|
iconKey: toGoalIconKey(goal === null || goal === void 0 ? void 0 : goal.iconKey)
|
|
52
52
|
})),
|
|
@@ -34,7 +34,7 @@ var replaceRichInlineNodes = exports.replaceRichInlineNodes = function replaceRi
|
|
|
34
34
|
fieldName = _ref2[0],
|
|
35
35
|
values = _ref2[1];
|
|
36
36
|
values.forEach(function (value) {
|
|
37
|
-
if (value.type === 'user' || value.type === 'team' || value.type === 'goal' && _featureGateJsClient.default.getExperimentValue('anip-1095-goals-in-harmonised-filter', 'isEnabled', false) || value.type === 'project' && (
|
|
37
|
+
if (value.type === 'user' || value.type === 'team' || value.type === 'goal' && _featureGateJsClient.default.getExperimentValue('anip-1095-goals-in-harmonised-filter', 'isEnabled', false) || value.type === 'project' && _featureGateJsClient.default.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1) {
|
|
38
38
|
// First try to find as direct value operand (e.g., Team[Team] = uuid)
|
|
39
39
|
var astNodes = getValueNodes(ast, fieldName, value.id);
|
|
40
40
|
|
|
@@ -9,7 +9,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
-
var
|
|
12
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
13
13
|
var _jqlAst = require("../../plugins/jql-ast");
|
|
14
14
|
var _replaceNodesTransaction = require("../../plugins/rich-inline-nodes/util/replace-nodes-transaction");
|
|
15
15
|
var _index = require("../index");
|
|
@@ -59,7 +59,7 @@ var hydrateQuery = exports.hydrateQuery = function hydrateQuery() {
|
|
|
59
59
|
var _ref5 = (0, _slicedToArray2.default)(_ref4, 2),
|
|
60
60
|
fieldName = _ref5[0],
|
|
61
61
|
values = _ref5[1];
|
|
62
|
-
var fieldNameToUse = (
|
|
62
|
+
var fieldNameToUse = _featureGateJsClient.default.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (0, _util.normaliseHydrationKey)(fieldName) : fieldName;
|
|
63
63
|
var valueMap = new Map(oldHydratedValues[fieldNameToUse]);
|
|
64
64
|
values.forEach(function (value) {
|
|
65
65
|
valueMap.set(value.id, value);
|
package/dist/cjs/state/index.js
CHANGED
|
@@ -16,9 +16,9 @@ var _merge = require("rxjs/observable/merge");
|
|
|
16
16
|
var _tap = require("rxjs/operators/tap");
|
|
17
17
|
var _uuid = require("uuid");
|
|
18
18
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
19
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
19
20
|
var _jqlAst = require("@atlaskit/jql-ast");
|
|
20
21
|
var _jqlAutocomplete = require("@atlaskit/jql-autocomplete");
|
|
21
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
22
|
var _analytics = require("../analytics");
|
|
23
23
|
var _selectErrorCommand = require("../commands/select-error-command");
|
|
24
24
|
var _constants = require("../common/constants");
|
|
@@ -907,7 +907,7 @@ var useHydratedValue = exports.useHydratedValue = (0, _reactSweetState.createHoo
|
|
|
907
907
|
var _state$hydratedValues2;
|
|
908
908
|
var id = _ref38.id,
|
|
909
909
|
fieldName = _ref38.fieldName;
|
|
910
|
-
if ((
|
|
910
|
+
if (_featureGateJsClient.default.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1) {
|
|
911
911
|
var _state$hydratedValues;
|
|
912
912
|
return (_state$hydratedValues = state.hydratedValues[(0, _util.normaliseHydrationKey)(fieldName)]) === null || _state$hydratedValues === void 0 ? void 0 : _state$hydratedValues.get((0, _jqlAst.normaliseJqlString)(id));
|
|
913
913
|
}
|
|
@@ -919,7 +919,7 @@ var useHydratedUser = exports.useHydratedUser = (0, _reactSweetState.createHook)
|
|
|
919
919
|
var _state$hydratedValues3, _state$hydratedValues4;
|
|
920
920
|
var id = _ref39.id,
|
|
921
921
|
fieldName = _ref39.fieldName;
|
|
922
|
-
var user = (
|
|
922
|
+
var user = _featureGateJsClient.default.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (_state$hydratedValues3 = state.hydratedValues[(0, _util.normaliseHydrationKey)(fieldName)]) === null || _state$hydratedValues3 === void 0 ? void 0 : _state$hydratedValues3.get((0, _jqlAst.normaliseJqlString)(id)) : (_state$hydratedValues4 = state.hydratedValues[fieldName]) === null || _state$hydratedValues4 === void 0 ? void 0 : _state$hydratedValues4.get(id);
|
|
923
923
|
return user && user.type === 'user' ? user : undefined;
|
|
924
924
|
}
|
|
925
925
|
});
|
|
@@ -928,7 +928,7 @@ var useHydratedTeam = exports.useHydratedTeam = (0, _reactSweetState.createHook)
|
|
|
928
928
|
var _state$hydratedValues5, _state$hydratedValues6;
|
|
929
929
|
var id = _ref40.id,
|
|
930
930
|
fieldName = _ref40.fieldName;
|
|
931
|
-
var team = (
|
|
931
|
+
var team = _featureGateJsClient.default.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (_state$hydratedValues5 = state.hydratedValues[(0, _util.normaliseHydrationKey)(fieldName)]) === null || _state$hydratedValues5 === void 0 ? void 0 : _state$hydratedValues5.get((0, _jqlAst.normaliseJqlString)(id)) : (_state$hydratedValues6 = state.hydratedValues[fieldName]) === null || _state$hydratedValues6 === void 0 ? void 0 : _state$hydratedValues6.get(id);
|
|
932
932
|
return team && team.type === 'team' ? team : undefined;
|
|
933
933
|
}
|
|
934
934
|
});
|
|
@@ -937,7 +937,7 @@ var useHydratedProject = exports.useHydratedProject = (0, _reactSweetState.creat
|
|
|
937
937
|
var _state$hydratedValues7, _state$hydratedValues8;
|
|
938
938
|
var id = _ref41.id,
|
|
939
939
|
fieldName = _ref41.fieldName;
|
|
940
|
-
var project = (
|
|
940
|
+
var project = _featureGateJsClient.default.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (_state$hydratedValues7 = state.hydratedValues[(0, _util.normaliseHydrationKey)(fieldName)]) === null || _state$hydratedValues7 === void 0 ? void 0 : _state$hydratedValues7.get((0, _jqlAst.normaliseJqlString)(id)) : (_state$hydratedValues8 = state.hydratedValues[(0, _jqlAst.normaliseJqlString)(fieldName)]) === null || _state$hydratedValues8 === void 0 ? void 0 : _state$hydratedValues8.get((0, _jqlAst.normaliseJqlString)(id));
|
|
941
941
|
return project && project.type === 'project' ? project : undefined;
|
|
942
942
|
}
|
|
943
943
|
});
|
|
@@ -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", "
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "0.0.0-development", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ANALYTICS_CHANNEL, useJqlPackageAnalytics, EventType } from '../analytics/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { JQLEditorAsync, preloadJQLEditor } from '../async';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as JQLEditorAnalyticsListener } from '../analytics/listener/jql-editor-analytics-listener';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { JQLEditorReadOnly } from '../ui/jql-editor-layout/index';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as JQLEditor } from '../ui/index';
|
|
@@ -3,7 +3,6 @@ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
|
3
3
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
5
5
|
import { isListOperator } from '@atlaskit/jql-ast';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import getDocumentPosition from '../common/get-document-position';
|
|
8
7
|
import ReactPluginView from '../common/react-plugin-view';
|
|
9
8
|
import Autocomplete from './components/autocomplete';
|
|
@@ -46,7 +45,7 @@ export default class AutocompletePluginView extends ReactPluginView {
|
|
|
46
45
|
if (this.enableRichInlineNodes && option.type === 'value' && option.valueType === 'user') {
|
|
47
46
|
transaction.setMeta('hydrate', true);
|
|
48
47
|
}
|
|
49
|
-
if (this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team' || option.valueType === 'goal' && FeatureGates.getExperimentValue('anip-1095-goals-in-harmonised-filter', 'isEnabled', false) || option.valueType === 'project' &&
|
|
48
|
+
if (this.enableRichInlineNodes && option.type === 'value' && (option.valueType === 'team' || option.valueType === 'goal' && FeatureGates.getExperimentValue('anip-1095-goals-in-harmonised-filter', 'isEnabled', false) || option.valueType === 'project' && FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1)) {
|
|
50
49
|
transaction.setMeta('hydrate', true);
|
|
51
50
|
}
|
|
52
51
|
const documentFrom = getDocumentPosition(transaction.doc, from);
|
|
@@ -101,7 +100,7 @@ export default class AutocompletePluginView extends ReactPluginView {
|
|
|
101
100
|
}
|
|
102
101
|
case 'project':
|
|
103
102
|
{
|
|
104
|
-
if (
|
|
103
|
+
if (FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1) {
|
|
105
104
|
const attributes = {
|
|
106
105
|
type: 'project',
|
|
107
106
|
id: value,
|
|
@@ -1,25 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
-
.
|
|
4
|
-
.
|
|
3
|
+
._1rjcidpf{padding-block:0}._15a5nqa1{border-top-style:solid}
|
|
4
|
+
._1apgnqa1{border-right-style:solid}
|
|
5
|
+
._1doce4h9{border-bottom-width:var(--ds-border-width,1px)}
|
|
5
6
|
._1e0c116y{display:inline-flex}
|
|
6
7
|
._1e0c1txw{display:flex}
|
|
7
8
|
._1hms8stv{text-decoration-line:underline}
|
|
9
|
+
._1i531j28{border-top-color:transparent}
|
|
10
|
+
._1i53q98m{border-top-color:var(--ds-border-selected,#1868db)}
|
|
11
|
+
._1il9nqa1{border-bottom-style:solid}
|
|
8
12
|
._1kegt94y{text-decoration-thickness:1px}
|
|
13
|
+
._1o3i1j28{border-bottom-color:transparent}
|
|
14
|
+
._1o3iq98m{border-bottom-color:var(--ds-border-selected,#1868db)}
|
|
15
|
+
._1p3lnqa1{border-left-style:solid}
|
|
9
16
|
._1wpz1q9y{align-self:baseline}
|
|
10
17
|
._4bfu1r31{text-decoration-color:currentColor}
|
|
11
18
|
._4bfu1tmw{text-decoration-color:var(--ds-text-danger,#ae2e24)}
|
|
12
19
|
._4cvr1h6o{align-items:center}
|
|
13
20
|
._4t3i7vkz{height:1pc}
|
|
14
21
|
._4t3igktf{height:20px}
|
|
22
|
+
._5wra1j28{border-left-color:transparent}
|
|
23
|
+
._5wraq98m{border-left-color:var(--ds-border-selected,#1868db)}
|
|
15
24
|
._ajmm1khm{text-decoration-style:wavy}
|
|
16
25
|
._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
|
|
17
26
|
._bfhk1gly{background-color:var(--ds-background-danger,#ffeceb)}
|
|
18
27
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
19
28
|
._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
|
|
20
29
|
._ect4zzfg{font-family:var(--ds-font-family-code,"Atlassian Mono",ui-monospace,Menlo,"Segoe UI Mono","Ubuntu Mono",monospace)}
|
|
30
|
+
._hr4je4h9{border-right-width:var(--ds-border-width,1px)}
|
|
31
|
+
._mowc1j28{border-right-color:transparent}
|
|
32
|
+
._mowcq98m{border-right-color:var(--ds-border-selected,#1868db)}
|
|
21
33
|
._s7n4z0dk{vertical-align:text-top}
|
|
34
|
+
._t6vde4h9{border-left-width:var(--ds-border-width,1px)}
|
|
22
35
|
._tdi7glyw{-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}
|
|
36
|
+
._uwhke4h9{border-top-width:var(--ds-border-width,1px)}
|
|
23
37
|
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
24
38
|
._irr31yvi:hover{background-color:var(--ds-background-danger-hovered,#ffd5d2)}
|
|
25
39
|
._irr3plhp:hover{background-color:var(--ds-background-neutral-hovered,#0b120e24)}
|
|
@@ -8,9 +8,9 @@ import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
|
8
8
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
9
9
|
import { Box, Inline, Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
10
10
|
const styles = {
|
|
11
|
-
nodeWrapper: "
|
|
12
|
-
nodeWrapperWithHeight: "_4t3igktf",
|
|
13
|
-
nodeWrapperSelected: "
|
|
11
|
+
nodeWrapper: "_2rko12b0 _1rjcidpf _1e0c116y _s7n4z0dk _4cvr1h6o _1wpz1q9y _bfhki8nm _5wra1j28 _t6vde4h9 _1p3lnqa1 _mowc1j28 _hr4je4h9 _1apgnqa1 _bozgv77o _y4ti1b66 _irr3plhp",
|
|
12
|
+
nodeWrapperWithHeight: "_4t3igktf _1i531j28 _uwhke4h9 _15a5nqa1 _1o3i1j28 _1doce4h9 _1il9nqa1",
|
|
13
|
+
nodeWrapperSelected: "_bfhk15s3 _1i53q98m _1o3iq98m _5wraq98m _mowcq98m _irr3ufnl",
|
|
14
14
|
nodeWrapperError: "_4bfu1r31 _1hms8stv _ajmm1khm _1kegt94y _tdi7glyw _4bfu1tmw",
|
|
15
15
|
nodeWrapperErrorSelected: "_bfhk1gly _irr31yvi",
|
|
16
16
|
textWrapper: "_ect4zzfg",
|
|
@@ -13,6 +13,13 @@ const appearanceToColorMap = {
|
|
|
13
13
|
AT_RISK: 'yellow',
|
|
14
14
|
ON_TRACK: 'green'
|
|
15
15
|
};
|
|
16
|
+
const appearanceToNewColorMap = {
|
|
17
|
+
MENU: "var(--ds-icon, #292A2E)",
|
|
18
|
+
DEFAULT: "var(--ds-icon-accent-gray, #7D818A)",
|
|
19
|
+
OFF_TRACK: "var(--ds-icon-danger, #C9372C)",
|
|
20
|
+
AT_RISK: "var(--ds-icon-warning, #E06C00)",
|
|
21
|
+
ON_TRACK: "var(--ds-icon-success, #6A9A23)"
|
|
22
|
+
};
|
|
16
23
|
const keyToIconMap = {
|
|
17
24
|
GOAL: ObjectiveIcon,
|
|
18
25
|
OBJECTIVE: ObjectiveIcon,
|
|
@@ -26,6 +33,15 @@ export const GoalIcon = ({
|
|
|
26
33
|
var _keyToIconMap;
|
|
27
34
|
const Icon = (_keyToIconMap = keyToIconMap[iconKey]) !== null && _keyToIconMap !== void 0 ? _keyToIconMap : keyToIconMap.GOAL;
|
|
28
35
|
const appearance = isGoalAppearance(status) ? status : 'DEFAULT';
|
|
36
|
+
|
|
37
|
+
// Icon tile no longer supports a 16px size
|
|
38
|
+
if (size === 'xsmall') {
|
|
39
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
40
|
+
label: "",
|
|
41
|
+
size: "medium",
|
|
42
|
+
color: appearanceToNewColorMap[appearance]
|
|
43
|
+
});
|
|
44
|
+
}
|
|
29
45
|
return /*#__PURE__*/React.createElement(IconTile, {
|
|
30
46
|
size: size,
|
|
31
47
|
icon: Icon,
|
|
@@ -36,7 +36,7 @@ export const GoalNode = props => {
|
|
|
36
36
|
iconBefore: /*#__PURE__*/React.createElement(Box, {
|
|
37
37
|
xcss: styles.iconWrapper
|
|
38
38
|
}, /*#__PURE__*/React.createElement(GoalIcon, {
|
|
39
|
-
size: "
|
|
39
|
+
size: "xsmall",
|
|
40
40
|
status: (_goal$status = goal === null || goal === void 0 ? void 0 : goal.status) !== null && _goal$status !== void 0 ? _goal$status : 'DEFAULT',
|
|
41
41
|
iconKey: toGoalIconKey(goal === null || goal === void 0 ? void 0 : goal.iconKey)
|
|
42
42
|
})),
|
|
@@ -13,7 +13,7 @@ export const replaceRichInlineNodes = (editorState, hydratedValues) => {
|
|
|
13
13
|
transaction.setMeta('addToHistory', false);
|
|
14
14
|
Object.entries(hydratedValues).forEach(([fieldName, values]) => {
|
|
15
15
|
values.forEach(value => {
|
|
16
|
-
if (value.type === 'user' || value.type === 'team' || value.type === 'goal' && FeatureGates.getExperimentValue('anip-1095-goals-in-harmonised-filter', 'isEnabled', false) || value.type === 'project' &&
|
|
16
|
+
if (value.type === 'user' || value.type === 'team' || value.type === 'goal' && FeatureGates.getExperimentValue('anip-1095-goals-in-harmonised-filter', 'isEnabled', false) || value.type === 'project' && FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1) {
|
|
17
17
|
// First try to find as direct value operand (e.g., Team[Team] = uuid)
|
|
18
18
|
let astNodes = getValueNodes(ast, fieldName, value.id);
|
|
19
19
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
2
2
|
import { getJastFromState } from '../../plugins/jql-ast';
|
|
3
3
|
import { replaceRichInlineNodes } from '../../plugins/rich-inline-nodes/util/replace-nodes-transaction';
|
|
4
4
|
import { actions } from '../index';
|
|
@@ -40,7 +40,7 @@ export const hydrateQuery = () => async ({
|
|
|
40
40
|
// (e.g. '"project[atlassianproject]"'). normaliseHydrationKey ensures both storage and lookup use
|
|
41
41
|
// the same key format. See normaliseHydrationKey in ./util.ts.
|
|
42
42
|
const hydratedValuesMap = Object.entries(newHydratedValues).reduce((map, [fieldName, values]) => {
|
|
43
|
-
const fieldNameToUse =
|
|
43
|
+
const fieldNameToUse = FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? normaliseHydrationKey(fieldName) : fieldName;
|
|
44
44
|
const valueMap = new Map(oldHydratedValues[fieldNameToUse]);
|
|
45
45
|
values.forEach(value => {
|
|
46
46
|
valueMap.set(value.id, value);
|