@atlaskit/jql-editor 6.3.1 → 6.4.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 +20 -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/async.js +3 -6
- 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/hooks/use-editor-theme/index.js +4 -9
- package/dist/cjs/plugins/autocomplete/view.js +2 -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/cjs/ui/jql-editor-layout/index.js +3 -5
- package/dist/cjs/ui/jql-editor-layout/styled.js +2 -3
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/async.js +3 -6
- 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/hooks/use-editor-theme/index.js +2 -5
- package/dist/es2019/plugins/autocomplete/view.js +2 -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/es2019/ui/jql-editor-layout/index.js +4 -6
- package/dist/es2019/ui/jql-editor-layout/styled.js +2 -3
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/async.js +3 -6
- 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/hooks/use-editor-theme/index.js +4 -9
- package/dist/esm/plugins/autocomplete/view.js +2 -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/esm/ui/jql-editor-layout/index.js +3 -5
- package/dist/esm/ui/jql-editor-layout/styled.js +2 -3
- 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 -17
- 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,25 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 6.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41cdac092bfaa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41cdac092bfaa) -
|
|
8
|
+
Cleanup feature gate list_lovability_improving_filters. The defaultRows prop is now always applied
|
|
9
|
+
to the JQL editor, enabling configurable initial row height.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 6.4.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`ebab8f80bfc40`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ebab8f80bfc40) -
|
|
17
|
+
Autofix: add explicit package exports (barrel removal)
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 6.3.1
|
|
4
24
|
|
|
5
25
|
### Patch 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
|
};
|
package/dist/cjs/async.js
CHANGED
|
@@ -6,10 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.preloadJQLEditor = exports.JQLEditorAsync = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
var _reactLooselyLazy = require("react-loosely-lazy");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
11
|
var _errorBoundary = require("./ui/error-boundary");
|
|
14
12
|
var _intlProvider = require("./ui/intl-provider");
|
|
15
13
|
var _jqlEditorLayout = require("./ui/jql-editor-layout");
|
|
@@ -33,12 +31,11 @@ var preloadJQLEditor = exports.preloadJQLEditor = function preloadJQLEditor() {
|
|
|
33
31
|
};
|
|
34
32
|
var JQLEditorAsync = exports.JQLEditorAsync = (0, _intlProvider.withIntlProvider)((0, _errorBoundary.withErrorBoundary)(function (props) {
|
|
35
33
|
return /*#__PURE__*/_react.default.createElement(_reactLooselyLazy.LazySuspense, {
|
|
36
|
-
fallback: /*#__PURE__*/_react.default.createElement(_jqlEditorLayout.JQLEditorReadOnly,
|
|
34
|
+
fallback: /*#__PURE__*/_react.default.createElement(_jqlEditorLayout.JQLEditorReadOnly, {
|
|
37
35
|
query: props.query,
|
|
38
36
|
isSearch: !!props.onSearch,
|
|
39
|
-
isCompact: props.isCompact
|
|
40
|
-
}, (0, _platformFeatureFlags.fg)('list_lovability_improving_filters') ? {
|
|
37
|
+
isCompact: props.isCompact,
|
|
41
38
|
defaultRows: props.defaultRows
|
|
42
|
-
}
|
|
39
|
+
})
|
|
43
40
|
}, /*#__PURE__*/_react.default.createElement(JQLEditor, props));
|
|
44
41
|
}));
|
|
@@ -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"));
|
|
@@ -5,13 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.useEditorThemeContext = exports.useEditorTheme = exports.EditorThemeContext = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
9
|
var _react = require("react");
|
|
11
10
|
var _noop = _interopRequireDefault(require("lodash/noop"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
11
|
var defaultMaxRows = 3;
|
|
16
12
|
var expandedRows = 15;
|
|
17
13
|
var defaultEditorTheme = {
|
|
@@ -43,16 +39,15 @@ var useEditorTheme = exports.useEditorTheme = function useEditorTheme(_ref) {
|
|
|
43
39
|
});
|
|
44
40
|
}, []);
|
|
45
41
|
return (0, _react.useMemo)(function () {
|
|
46
|
-
return
|
|
47
|
-
defaultMaxRows: defaultRows !== undefined && defaultRows > defaultMaxRows
|
|
42
|
+
return {
|
|
43
|
+
defaultMaxRows: defaultRows !== undefined && defaultRows > defaultMaxRows ? defaultRows : defaultMaxRows,
|
|
48
44
|
expanded: expanded,
|
|
49
45
|
expandedRows: expandedRows,
|
|
50
46
|
toggleExpanded: toggleExpanded,
|
|
51
47
|
isSearch: isSearch,
|
|
52
|
-
isCompact: isCompact
|
|
53
|
-
}, (0, _platformFeatureFlags.fg)('list_lovability_improving_filters') ? {
|
|
48
|
+
isCompact: isCompact,
|
|
54
49
|
defaultRows: defaultRows
|
|
55
|
-
}
|
|
50
|
+
};
|
|
56
51
|
}, [expanded, toggleExpanded, isSearch, isCompact, defaultRows]);
|
|
57
52
|
};
|
|
58
53
|
var useEditorThemeContext = exports.useEditorThemeContext = function useEditorThemeContext() {
|
|
@@ -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,
|
|
@@ -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
|
});
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.JQLEditorReadOnly = void 0;
|
|
8
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
var _reactIntl = require("react-intl");
|
|
12
11
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
@@ -49,7 +48,7 @@ var JQLEditorLayout = function JQLEditorLayout(props) {
|
|
|
49
48
|
onScroll: onEditorViewContainerScroll
|
|
50
49
|
}, /*#__PURE__*/_react.default.createElement(_styled.LineNumberToolbar, {
|
|
51
50
|
lineNumbersVisible: lineNumbersVisible
|
|
52
|
-
}), /*#__PURE__*/_react.default.createElement(_styled.EditorView,
|
|
51
|
+
}), /*#__PURE__*/_react.default.createElement(_styled.EditorView, {
|
|
53
52
|
defaultMaxRows: defaultMaxRows,
|
|
54
53
|
expandedRows: expandedRows,
|
|
55
54
|
isCompact: isCompact,
|
|
@@ -57,10 +56,9 @@ var JQLEditorLayout = function JQLEditorLayout(props) {
|
|
|
57
56
|
ref: onEditorViewRef,
|
|
58
57
|
onBlur: onEditorViewBlur,
|
|
59
58
|
onFocus: onEditorViewFocus,
|
|
60
|
-
onTransitionEnd: onEditorViewTransitionEnd
|
|
61
|
-
}, (0, _platformFeatureFlags.fg)('list_lovability_improving_filters') ? {
|
|
59
|
+
onTransitionEnd: onEditorViewTransitionEnd,
|
|
62
60
|
defaultRows: defaultRows
|
|
63
|
-
}
|
|
61
|
+
}), /*#__PURE__*/_react.default.createElement(_styled.EditorControls, {
|
|
64
62
|
isSearch: isSearch,
|
|
65
63
|
isCompact: isCompact,
|
|
66
64
|
isVisualRefresh: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh')
|
|
@@ -8,7 +8,6 @@ exports.ReadOnlyEditorViewContainer = exports.ReadOnlyEditorView = exports.LineN
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _constants = require("@atlaskit/theme/constants");
|
|
13
12
|
var _constants2 = require("../../plugins/validation-tooltip/constants");
|
|
14
13
|
var _templateObject, _templateObject2, _templateObject3; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -130,9 +129,9 @@ var EditorView = exports.EditorView = // eslint-disable-next-line @atlaskit/desi
|
|
|
130
129
|
_styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\tcounter-reset: lineNumber;\n\t\tflex-grow: 1;\n\n\t\ttransition:\n\t\t\theight 250ms cubic-bezier(0.15, 1, 0.3, 1),\n\t\t\tmax-height 250ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\tmax-height: ", "px;\n\t\tline-height: ", ";\n\t\t", "\n\t\t", "\n\tfont-family: ", ";\n\t\tword-break: break-word;\n\t\toverflow-wrap: anywhere;\n\t\twhite-space: pre-wrap;\n\n\t\t&[data-expanded] {\n\t\t\theight: ", "px;\n\t\t\tmax-height: ", "px;\n\t\t}\n\n\t\t.ProseMirror {\n\t\t\tcolor: ", ";\n\t\t\tpadding: ", "px\n\t\t\t\t", "px;\n\n\t\t\t&:focus {\n\t\t\t\toutline: none;\n\t\t\t}\n\n\t\t\t.mark-token-keyword {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\n\t\t\t.mark-token-field {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\n\t\t\t.mark-token-operator {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\n\t\t\t.mark-token-error {\n\t\t\t\tcolor: ", ";\n\t\t\t\ttext-decoration: wavy underline;\n\t\t\t\ttext-decoration-thickness: 1px;\n\t\t\t\ttext-decoration-skip-ink: none;\n\t\t\t}\n\t\t}\n\n\t\tp {\n\t\t\tmargin: 0;\n\t\t\tcounter-increment: lineNumber;\n\t\t\tposition: relative;\n\n\t\t\t/* Show the current line number before each paragraph block. */\n\n\t\t\t&::before {\n\t\t\t\tcontent: counter(lineNumber);\n\t\t\t\tcolor: ", ";\n\t\t\t\tfont-size: 10px;\n\t\t\t\tline-height: ", ";\n\t\t\t\tpadding: 0 ", " 0 ", ";\n\t\t\t\tposition: absolute;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\t/* Shift the line number tag 100% (plus 8px padding) to the left to position it inside the LineNumberToolbar */\n\t\t\t\ttransform: translateX(calc(-100% - ", "));\n\n\t\t\t\t/* We can fit 3 digits before ellipses. This is not very responsive but saves us having to add expensive width\n recalculation logic to the LineNumberToolbar for a scenario that *should* never happen. */\n\t\t\t\tmax-width: 30px;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\toverflow: hidden;\n\t\t\t\twhite-space: nowrap;\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t"])), function (props) {
|
|
131
130
|
return rowHeight * props.defaultMaxRows + getEditorInputVerticalPadding(props.isCompact) * 2;
|
|
132
131
|
}, rowHeight / 14, function (props) {
|
|
133
|
-
return props.defaultRows
|
|
132
|
+
return props.defaultRows ? 'height: ' + (rowHeight * props.defaultRows + getEditorInputVerticalPadding(props.isCompact) * 2) + 'px;' : '';
|
|
134
133
|
}, function (props) {
|
|
135
|
-
return props.defaultRows
|
|
134
|
+
return props.defaultRows ? 'min-height: ' + (rowHeight * props.defaultRows + getEditorInputVerticalPadding(props.isCompact) * 2) + 'px;' : '';
|
|
136
135
|
}, "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)", function (props) {
|
|
137
136
|
return rowHeight * props.expandedRows + getEditorInputVerticalPadding(props.isCompact) * 2;
|
|
138
137
|
}, function (props) {
|
|
@@ -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
|
};
|
package/dist/es2019/async.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
|
|
4
3
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
5
4
|
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
5
|
import { withErrorBoundary } from './ui/error-boundary';
|
|
8
6
|
import { withIntlProvider } from './ui/intl-provider';
|
|
9
7
|
import { JQLEditorReadOnly } from './ui/jql-editor-layout';
|
|
@@ -20,12 +18,11 @@ const JQLEditor = lazyForPaint(() => import( /* webpackChunkName: "@atlassian/as
|
|
|
20
18
|
export const preloadJQLEditor = () => JQLEditor.preload();
|
|
21
19
|
export const JQLEditorAsync = withIntlProvider(withErrorBoundary(props => {
|
|
22
20
|
return /*#__PURE__*/React.createElement(LazySuspense, {
|
|
23
|
-
fallback: /*#__PURE__*/React.createElement(JQLEditorReadOnly,
|
|
21
|
+
fallback: /*#__PURE__*/React.createElement(JQLEditorReadOnly, {
|
|
24
22
|
query: props.query,
|
|
25
23
|
isSearch: !!props.onSearch,
|
|
26
|
-
isCompact: props.isCompact
|
|
27
|
-
}, fg('list_lovability_improving_filters') ? {
|
|
24
|
+
isCompact: props.isCompact,
|
|
28
25
|
defaultRows: props.defaultRows
|
|
29
|
-
}
|
|
26
|
+
})
|
|
30
27
|
}, /*#__PURE__*/React.createElement(JQLEditor, props));
|
|
31
28
|
}));
|
|
@@ -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';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createContext, useCallback, useContext, useMemo, useState } from 'react';
|
|
2
2
|
import noop from 'lodash/noop';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
const defaultMaxRows = 3;
|
|
5
4
|
const expandedRows = 15;
|
|
6
5
|
const defaultEditorTheme = {
|
|
@@ -24,15 +23,13 @@ export const useEditorTheme = ({
|
|
|
24
23
|
const [expanded, setExpanded] = useState(false);
|
|
25
24
|
const toggleExpanded = useCallback(() => setExpanded(prevState => !prevState), []);
|
|
26
25
|
return useMemo(() => ({
|
|
27
|
-
defaultMaxRows: defaultRows !== undefined && defaultRows > defaultMaxRows
|
|
26
|
+
defaultMaxRows: defaultRows !== undefined && defaultRows > defaultMaxRows ? defaultRows : defaultMaxRows,
|
|
28
27
|
expanded,
|
|
29
28
|
expandedRows,
|
|
30
29
|
toggleExpanded,
|
|
31
30
|
isSearch,
|
|
32
31
|
isCompact,
|
|
33
|
-
|
|
34
|
-
defaultRows
|
|
35
|
-
} : {})
|
|
32
|
+
defaultRows
|
|
36
33
|
}), [expanded, toggleExpanded, isSearch, isCompact, defaultRows]);
|
|
37
34
|
};
|
|
38
35
|
export const useEditorThemeContext = () => useContext(EditorThemeContext);
|
|
@@ -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,
|
|
@@ -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
|
})),
|