@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
|
@@ -7,9 +7,9 @@ import { tap } from 'rxjs/operators/tap';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
8
8
|
import { v4 as uuidv4 } from 'uuid';
|
|
9
9
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
10
11
|
import { computeJqlInsights, isListOperator, normaliseJqlString } from '@atlaskit/jql-ast';
|
|
11
12
|
import { JQLAutocomplete } from '@atlaskit/jql-autocomplete';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { ActionSubject, ActionSubjectId, Action as AnalyticsAction, EventType } from '../analytics';
|
|
14
14
|
import { selectErrorCommand } from '../commands/select-error-command';
|
|
15
15
|
import { JQL_EDITOR_MAIN_ID } from '../common/constants';
|
|
@@ -880,7 +880,7 @@ export const useHydratedValue = createHook(Store, {
|
|
|
880
880
|
fieldName
|
|
881
881
|
}) => {
|
|
882
882
|
var _state$hydratedValues2;
|
|
883
|
-
if (
|
|
883
|
+
if (FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1) {
|
|
884
884
|
var _state$hydratedValues;
|
|
885
885
|
return (_state$hydratedValues = state.hydratedValues[normaliseHydrationKey(fieldName)]) === null || _state$hydratedValues === void 0 ? void 0 : _state$hydratedValues.get(normaliseJqlString(id));
|
|
886
886
|
}
|
|
@@ -893,7 +893,7 @@ export const useHydratedUser = createHook(Store, {
|
|
|
893
893
|
fieldName
|
|
894
894
|
}) => {
|
|
895
895
|
var _state$hydratedValues3, _state$hydratedValues4;
|
|
896
|
-
const user =
|
|
896
|
+
const user = FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (_state$hydratedValues3 = state.hydratedValues[normaliseHydrationKey(fieldName)]) === null || _state$hydratedValues3 === void 0 ? void 0 : _state$hydratedValues3.get(normaliseJqlString(id)) : (_state$hydratedValues4 = state.hydratedValues[fieldName]) === null || _state$hydratedValues4 === void 0 ? void 0 : _state$hydratedValues4.get(id);
|
|
897
897
|
return user && user.type === 'user' ? user : undefined;
|
|
898
898
|
}
|
|
899
899
|
});
|
|
@@ -903,7 +903,7 @@ export const useHydratedTeam = createHook(Store, {
|
|
|
903
903
|
fieldName
|
|
904
904
|
}) => {
|
|
905
905
|
var _state$hydratedValues5, _state$hydratedValues6;
|
|
906
|
-
const team =
|
|
906
|
+
const team = FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (_state$hydratedValues5 = state.hydratedValues[normaliseHydrationKey(fieldName)]) === null || _state$hydratedValues5 === void 0 ? void 0 : _state$hydratedValues5.get(normaliseJqlString(id)) : (_state$hydratedValues6 = state.hydratedValues[fieldName]) === null || _state$hydratedValues6 === void 0 ? void 0 : _state$hydratedValues6.get(id);
|
|
907
907
|
return team && team.type === 'team' ? team : undefined;
|
|
908
908
|
}
|
|
909
909
|
});
|
|
@@ -913,7 +913,7 @@ export const useHydratedProject = createHook(Store, {
|
|
|
913
913
|
fieldName
|
|
914
914
|
}) => {
|
|
915
915
|
var _state$hydratedValues7, _state$hydratedValues8;
|
|
916
|
-
const project =
|
|
916
|
+
const project = FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (_state$hydratedValues7 = state.hydratedValues[normaliseHydrationKey(fieldName)]) === null || _state$hydratedValues7 === void 0 ? void 0 : _state$hydratedValues7.get(normaliseJqlString(id)) : (_state$hydratedValues8 = state.hydratedValues[normaliseJqlString(fieldName)]) === null || _state$hydratedValues8 === void 0 ? void 0 : _state$hydratedValues8.get(normaliseJqlString(id));
|
|
917
917
|
return project && project.type === 'project' ? project : undefined;
|
|
918
918
|
}
|
|
919
919
|
});
|
|
@@ -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", "
|
|
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';
|
|
@@ -11,7 +11,6 @@ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
|
11
11
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
13
13
|
import { isListOperator } from '@atlaskit/jql-ast';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import getDocumentPosition from '../common/get-document-position';
|
|
16
15
|
import ReactPluginView from '../common/react-plugin-view';
|
|
17
16
|
import Autocomplete from './components/autocomplete';
|
|
@@ -57,7 +56,7 @@ var AutocompletePluginView = /*#__PURE__*/function (_ReactPluginView) {
|
|
|
57
56
|
if (_this.enableRichInlineNodes && option.type === 'value' && option.valueType === 'user') {
|
|
58
57
|
transaction.setMeta('hydrate', true);
|
|
59
58
|
}
|
|
60
|
-
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' &&
|
|
59
|
+
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)) {
|
|
61
60
|
transaction.setMeta('hydrate', true);
|
|
62
61
|
}
|
|
63
62
|
var documentFrom = getDocumentPosition(transaction.doc, from);
|
|
@@ -110,7 +109,7 @@ var AutocompletePluginView = /*#__PURE__*/function (_ReactPluginView) {
|
|
|
110
109
|
}
|
|
111
110
|
case 'project':
|
|
112
111
|
{
|
|
113
|
-
if (
|
|
112
|
+
if (FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1) {
|
|
114
113
|
var _attributes2 = {
|
|
115
114
|
type: 'project',
|
|
116
115
|
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
|
var 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",
|
|
@@ -17,6 +17,13 @@ var appearanceToColorMap = {
|
|
|
17
17
|
AT_RISK: 'yellow',
|
|
18
18
|
ON_TRACK: 'green'
|
|
19
19
|
};
|
|
20
|
+
var appearanceToNewColorMap = {
|
|
21
|
+
MENU: "var(--ds-icon, #292A2E)",
|
|
22
|
+
DEFAULT: "var(--ds-icon-accent-gray, #7D818A)",
|
|
23
|
+
OFF_TRACK: "var(--ds-icon-danger, #C9372C)",
|
|
24
|
+
AT_RISK: "var(--ds-icon-warning, #E06C00)",
|
|
25
|
+
ON_TRACK: "var(--ds-icon-success, #6A9A23)"
|
|
26
|
+
};
|
|
20
27
|
var keyToIconMap = {
|
|
21
28
|
GOAL: ObjectiveIcon,
|
|
22
29
|
OBJECTIVE: ObjectiveIcon,
|
|
@@ -30,6 +37,15 @@ export var GoalIcon = function GoalIcon(_ref) {
|
|
|
30
37
|
iconKey = _ref$iconKey === void 0 ? 'GOAL' : _ref$iconKey;
|
|
31
38
|
var Icon = (_keyToIconMap = keyToIconMap[iconKey]) !== null && _keyToIconMap !== void 0 ? _keyToIconMap : keyToIconMap.GOAL;
|
|
32
39
|
var appearance = isGoalAppearance(status) ? status : 'DEFAULT';
|
|
40
|
+
|
|
41
|
+
// Icon tile no longer supports a 16px size
|
|
42
|
+
if (size === 'xsmall') {
|
|
43
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
44
|
+
label: "",
|
|
45
|
+
size: "medium",
|
|
46
|
+
color: appearanceToNewColorMap[appearance]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
33
49
|
return /*#__PURE__*/React.createElement(IconTile, {
|
|
34
50
|
size: size,
|
|
35
51
|
icon: Icon,
|
|
@@ -39,7 +39,7 @@ export var GoalNode = function GoalNode(props) {
|
|
|
39
39
|
iconBefore: /*#__PURE__*/React.createElement(Box, {
|
|
40
40
|
xcss: styles.iconWrapper
|
|
41
41
|
}, /*#__PURE__*/React.createElement(GoalIcon, {
|
|
42
|
-
size: "
|
|
42
|
+
size: "xsmall",
|
|
43
43
|
status: (_goal$status = goal === null || goal === void 0 ? void 0 : goal.status) !== null && _goal$status !== void 0 ? _goal$status : 'DEFAULT',
|
|
44
44
|
iconKey: toGoalIconKey(goal === null || goal === void 0 ? void 0 : goal.iconKey)
|
|
45
45
|
})),
|
|
@@ -27,7 +27,7 @@ export var replaceRichInlineNodes = function replaceRichInlineNodes(editorState,
|
|
|
27
27
|
fieldName = _ref2[0],
|
|
28
28
|
values = _ref2[1];
|
|
29
29
|
values.forEach(function (value) {
|
|
30
|
-
if (value.type === 'user' || value.type === 'team' || value.type === 'goal' && FeatureGates.getExperimentValue('anip-1095-goals-in-harmonised-filter', 'isEnabled', false) || value.type === 'project' &&
|
|
30
|
+
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) {
|
|
31
31
|
// First try to find as direct value operand (e.g., Team[Team] = uuid)
|
|
32
32
|
var astNodes = getValueNodes(ast, fieldName, value.id);
|
|
33
33
|
|
|
@@ -4,7 +4,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
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; }
|
|
6
6
|
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) { _defineProperty(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; }
|
|
7
|
-
import
|
|
7
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
8
8
|
import { getJastFromState } from '../../plugins/jql-ast';
|
|
9
9
|
import { replaceRichInlineNodes } from '../../plugins/rich-inline-nodes/util/replace-nodes-transaction';
|
|
10
10
|
import { actions } from '../index';
|
|
@@ -52,7 +52,7 @@ export var hydrateQuery = function hydrateQuery() {
|
|
|
52
52
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
53
53
|
fieldName = _ref5[0],
|
|
54
54
|
values = _ref5[1];
|
|
55
|
-
var fieldNameToUse =
|
|
55
|
+
var fieldNameToUse = FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? normaliseHydrationKey(fieldName) : fieldName;
|
|
56
56
|
var valueMap = new Map(oldHydratedValues[fieldNameToUse]);
|
|
57
57
|
values.forEach(function (value) {
|
|
58
58
|
valueMap.set(value.id, value);
|
package/dist/esm/state/index.js
CHANGED
|
@@ -12,9 +12,9 @@ import { tap } from 'rxjs/operators/tap';
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
13
13
|
import { v4 as uuidv4 } from 'uuid';
|
|
14
14
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
15
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
15
16
|
import { computeJqlInsights, isListOperator, normaliseJqlString } from '@atlaskit/jql-ast';
|
|
16
17
|
import { JQLAutocomplete } from '@atlaskit/jql-autocomplete';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
18
|
import { ActionSubject, ActionSubjectId, Action as AnalyticsAction, EventType } from '../analytics';
|
|
19
19
|
import { selectErrorCommand } from '../commands/select-error-command';
|
|
20
20
|
import { JQL_EDITOR_MAIN_ID } from '../common/constants';
|
|
@@ -901,7 +901,7 @@ export var useHydratedValue = createHook(Store, {
|
|
|
901
901
|
var _state$hydratedValues2;
|
|
902
902
|
var id = _ref38.id,
|
|
903
903
|
fieldName = _ref38.fieldName;
|
|
904
|
-
if (
|
|
904
|
+
if (FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1) {
|
|
905
905
|
var _state$hydratedValues;
|
|
906
906
|
return (_state$hydratedValues = state.hydratedValues[normaliseHydrationKey(fieldName)]) === null || _state$hydratedValues === void 0 ? void 0 : _state$hydratedValues.get(normaliseJqlString(id));
|
|
907
907
|
}
|
|
@@ -913,7 +913,7 @@ export var useHydratedUser = createHook(Store, {
|
|
|
913
913
|
var _state$hydratedValues3, _state$hydratedValues4;
|
|
914
914
|
var id = _ref39.id,
|
|
915
915
|
fieldName = _ref39.fieldName;
|
|
916
|
-
var user =
|
|
916
|
+
var user = FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (_state$hydratedValues3 = state.hydratedValues[normaliseHydrationKey(fieldName)]) === null || _state$hydratedValues3 === void 0 ? void 0 : _state$hydratedValues3.get(normaliseJqlString(id)) : (_state$hydratedValues4 = state.hydratedValues[fieldName]) === null || _state$hydratedValues4 === void 0 ? void 0 : _state$hydratedValues4.get(id);
|
|
917
917
|
return user && user.type === 'user' ? user : undefined;
|
|
918
918
|
}
|
|
919
919
|
});
|
|
@@ -922,7 +922,7 @@ export var useHydratedTeam = createHook(Store, {
|
|
|
922
922
|
var _state$hydratedValues5, _state$hydratedValues6;
|
|
923
923
|
var id = _ref40.id,
|
|
924
924
|
fieldName = _ref40.fieldName;
|
|
925
|
-
var team =
|
|
925
|
+
var team = FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (_state$hydratedValues5 = state.hydratedValues[normaliseHydrationKey(fieldName)]) === null || _state$hydratedValues5 === void 0 ? void 0 : _state$hydratedValues5.get(normaliseJqlString(id)) : (_state$hydratedValues6 = state.hydratedValues[fieldName]) === null || _state$hydratedValues6 === void 0 ? void 0 : _state$hydratedValues6.get(id);
|
|
926
926
|
return team && team.type === 'team' ? team : undefined;
|
|
927
927
|
}
|
|
928
928
|
});
|
|
@@ -931,7 +931,7 @@ export var useHydratedProject = createHook(Store, {
|
|
|
931
931
|
var _state$hydratedValues7, _state$hydratedValues8;
|
|
932
932
|
var id = _ref41.id,
|
|
933
933
|
fieldName = _ref41.fieldName;
|
|
934
|
-
var project =
|
|
934
|
+
var project = FeatureGates.getExperimentValue('atlassian_projects_-_native_integration', 'releaseVersion', -1) >= 1 ? (_state$hydratedValues7 = state.hydratedValues[normaliseHydrationKey(fieldName)]) === null || _state$hydratedValues7 === void 0 ? void 0 : _state$hydratedValues7.get(normaliseJqlString(id)) : (_state$hydratedValues8 = state.hydratedValues[normaliseJqlString(fieldName)]) === null || _state$hydratedValues8 === void 0 ? void 0 : _state$hydratedValues8.get(normaliseJqlString(id));
|
|
935
935
|
return project && project.type === 'project' ? project : undefined;
|
|
936
936
|
}
|
|
937
937
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { JQLEditorAsync, preloadJQLEditor } from '../async';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AutocompleteOption, AutocompleteValueType, AutocompleteOptions, AutocompleteProvider, } from '../plugins/autocomplete/components/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { JQLEditorReadOnly } from '../ui/jql-editor-layout/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { JQLClause } from '../types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, CustomComponents, } from '../state/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { JQLEditorUIProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, } from '../ui/jql-editor/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { JQLEditorProps } from '../ui/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as JQLEditor } from '../ui/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { JQLEditorAsync, preloadJQLEditor } from '../async';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AutocompleteOption, AutocompleteValueType, AutocompleteOptions, AutocompleteProvider, } from '../plugins/autocomplete/components/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { JQLEditorReadOnly } from '../ui/jql-editor-layout/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { JQLClause } from '../types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, CustomComponents, } from '../state/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { JQLEditorUIProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, } from '../ui/jql-editor/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { JQLEditorProps } from '../ui/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as JQLEditor } from '../ui/index';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/jql-editor/jql-editor-analytics-listener",
|
|
3
|
+
"main": "../dist/cjs/entry-points/jql-editor-analytics-listener.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/jql-editor-analytics-listener.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/jql-editor-analytics-listener.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/jql-editor-analytics-listener.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/jql-editor-analytics-listener.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/jql-editor/jql-editor-layout",
|
|
3
|
+
"main": "../dist/cjs/entry-points/jql-editor-layout.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/jql-editor-layout.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/jql-editor-layout.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/jql-editor-layout.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/jql-editor-layout.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.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",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"@atlaskit/button": "^23.11.0",
|
|
47
47
|
"@atlaskit/css": "^0.19.0",
|
|
48
48
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
49
|
-
"@atlaskit/emoji": "^70.
|
|
49
|
+
"@atlaskit/emoji": "^70.6.0",
|
|
50
50
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
51
51
|
"@atlaskit/form": "^15.5.0",
|
|
52
|
-
"@atlaskit/icon": "^34.
|
|
53
|
-
"@atlaskit/icon-lab": "^6.
|
|
52
|
+
"@atlaskit/icon": "^34.5.0",
|
|
53
|
+
"@atlaskit/icon-lab": "^6.9.0",
|
|
54
54
|
"@atlaskit/jql-ast": "^3.4.0",
|
|
55
|
-
"@atlaskit/jql-autocomplete": "^2.
|
|
56
|
-
"@atlaskit/jql-editor-common": "^3.
|
|
57
|
-
"@atlaskit/jql-parser": "^2.
|
|
55
|
+
"@atlaskit/jql-autocomplete": "^2.1.0",
|
|
56
|
+
"@atlaskit/jql-editor-common": "^3.3.0",
|
|
57
|
+
"@atlaskit/jql-parser": "^2.1.0",
|
|
58
58
|
"@atlaskit/link": "^3.4.0",
|
|
59
59
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
60
60
|
"@atlaskit/popper": "^7.2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/teams-avatar": "^2.6.0",
|
|
65
65
|
"@atlaskit/theme": "^23.2.0",
|
|
66
66
|
"@atlaskit/tokens": "^13.0.0",
|
|
67
|
-
"@atlaskit/tooltip": "^22.
|
|
67
|
+
"@atlaskit/tooltip": "^22.2.0",
|
|
68
68
|
"@atlaskit/townsquare-emoji-provider": "^1.0.0",
|
|
69
69
|
"@babel/runtime": "^7.0.0",
|
|
70
70
|
"@emotion/react": "^11.7.1",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"@af/integration-testing": "workspace:^",
|
|
90
90
|
"@af/visual-regression": "workspace:^",
|
|
91
91
|
"@atlaskit/docs": "^11.8.0",
|
|
92
|
-
"@atlaskit/jql-editor-autocomplete-rest": "^3.
|
|
93
|
-
"@atlassian/feature-flags-storybook-utils": "^0.
|
|
94
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
92
|
+
"@atlaskit/jql-editor-autocomplete-rest": "^3.3.0",
|
|
93
|
+
"@atlassian/feature-flags-storybook-utils": "^0.4.0",
|
|
94
|
+
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
95
95
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
96
96
|
"@storybook/addon-actions": "^8.6.14",
|
|
97
97
|
"@testing-library/jest-dom": "^6.4.5",
|
|
@@ -157,9 +157,6 @@
|
|
|
157
157
|
"jira_ai_agent_avatar_with_apptype_for_jql": {
|
|
158
158
|
"type": "boolean"
|
|
159
159
|
},
|
|
160
|
-
"projects_in_jira_eap_drop2": {
|
|
161
|
-
"type": "boolean"
|
|
162
|
-
},
|
|
163
160
|
"empanda_jql-editor_fix_tab_select_in_popup": {
|
|
164
161
|
"type": "boolean"
|
|
165
162
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/jql-editor/state/types",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/state-types.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/state-types.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/state-types.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/entry-points/state-types.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../../dist/types-ts4.5/entry-points/state-types.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/jql-editor/types",
|
|
3
|
+
"main": "../dist/cjs/entry-points/types.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/types.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/types.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/types.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/types.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/ui/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/jql-editor/ui",
|
|
3
|
+
"main": "../dist/cjs/entry-points/ui.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/ui.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/ui.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/ui.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/ui.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/jql-editor/ui/types",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/ui-types.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/ui-types.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/ui-types.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/entry-points/ui-types.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../../dist/types-ts4.5/entry-points/ui-types.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|