@atlaskit/jql-editor 5.13.6 → 5.14.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 +12 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/async.js +1 -1
- package/dist/cjs/plugins/autocomplete/components/autocomplete-dropdown/styled.js +7 -8
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/index.js +1 -2
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/styled.js +5 -6
- package/dist/cjs/plugins/rich-inline-nodes/nodes/team/styled.js +13 -14
- package/dist/cjs/plugins/rich-inline-nodes/nodes/user/styled.js +13 -14
- package/dist/cjs/state/hydration/index.js +9 -2
- package/dist/cjs/state/hydration/util.js +10 -1
- package/dist/cjs/state/index.js +31 -20
- package/dist/cjs/ui/jql-editor-controls-content/base-expand-toggle/index.js +2 -3
- package/dist/cjs/ui/jql-editor-controls-content/base-expand-toggle/styled.js +2 -3
- package/dist/cjs/ui/jql-editor-controls-content/base-syntax-help/index.js +1 -2
- package/dist/cjs/ui/jql-editor-controls-content/base-syntax-help/styled.js +5 -6
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/infos/index.js +1 -4
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/warnings/index.js +1 -2
- package/dist/cjs/ui/jql-editor-layout/styled.js +15 -16
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/async.js +2 -0
- package/dist/es2019/plugins/autocomplete/components/autocomplete-dropdown/styled.js +7 -8
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/index.js +1 -2
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/styled.js +5 -6
- package/dist/es2019/plugins/rich-inline-nodes/nodes/team/styled.js +13 -14
- package/dist/es2019/plugins/rich-inline-nodes/nodes/user/styled.js +13 -14
- package/dist/es2019/state/hydration/index.js +12 -4
- package/dist/es2019/state/hydration/util.js +8 -1
- package/dist/es2019/state/index.js +21 -10
- package/dist/es2019/ui/jql-editor-controls-content/base-expand-toggle/index.js +2 -3
- package/dist/es2019/ui/jql-editor-controls-content/base-expand-toggle/styled.js +2 -3
- package/dist/es2019/ui/jql-editor-controls-content/base-syntax-help/index.js +1 -2
- package/dist/es2019/ui/jql-editor-controls-content/base-syntax-help/styled.js +5 -6
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/infos/index.js +1 -2
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/warnings/index.js +1 -2
- package/dist/es2019/ui/jql-editor-layout/styled.js +20 -21
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/async.js +2 -0
- package/dist/esm/plugins/autocomplete/components/autocomplete-dropdown/styled.js +7 -8
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/index.js +1 -2
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/styled.js +5 -6
- package/dist/esm/plugins/rich-inline-nodes/nodes/team/styled.js +13 -14
- package/dist/esm/plugins/rich-inline-nodes/nodes/user/styled.js +13 -14
- package/dist/esm/state/hydration/index.js +10 -3
- package/dist/esm/state/hydration/util.js +10 -1
- package/dist/esm/state/index.js +21 -10
- package/dist/esm/ui/jql-editor-controls-content/base-expand-toggle/index.js +2 -3
- package/dist/esm/ui/jql-editor-controls-content/base-expand-toggle/styled.js +2 -3
- package/dist/esm/ui/jql-editor-controls-content/base-syntax-help/index.js +1 -2
- package/dist/esm/ui/jql-editor-controls-content/base-syntax-help/styled.js +5 -6
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/infos/index.js +1 -2
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/warnings/index.js +1 -2
- package/dist/esm/ui/jql-editor-layout/styled.js +15 -16
- package/dist/types/state/hydration/util.d.ts +6 -0
- package/dist/types-ts4.5/state/hydration/util.d.ts +6 -0
- package/package.json +8 -8
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import { N50, N500, N600, N70 } from '@atlaskit/theme/colors';
|
|
4
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
4
|
export const SyntaxHelpContainer = styled.div({
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
7
6
|
'> a': {
|
|
8
|
-
background:
|
|
7
|
+
background: "var(--ds-background-neutral-bold, #292A2E)",
|
|
9
8
|
borderRadius: "var(--ds-radius-full, 9999px)",
|
|
10
9
|
margin: "var(--ds-space-050, 4px)",
|
|
11
10
|
'&:hover': {
|
|
12
|
-
background:
|
|
11
|
+
background: "var(--ds-background-neutral-bold-hovered, #3B3D42)"
|
|
13
12
|
},
|
|
14
13
|
'&:focus': {
|
|
15
|
-
background:
|
|
14
|
+
background: "var(--ds-background-neutral-bold, #292A2E)"
|
|
16
15
|
},
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
17
|
"&:active, &[data-firefox-is-active='true']": {
|
|
19
|
-
background:
|
|
18
|
+
background: "var(--ds-background-neutral-bold-pressed, #505258)"
|
|
20
19
|
},
|
|
21
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
21
|
'&[disabled]': {
|
|
23
|
-
background:
|
|
22
|
+
background: "var(--ds-background-disabled, #17171708)"
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
});
|
|
@@ -3,7 +3,6 @@ import { di } from 'react-magnetic-di';
|
|
|
3
3
|
import { HelperMessage } from '@atlaskit/form';
|
|
4
4
|
import StatusInformationIcon from '@atlaskit/icon/core/status-information';
|
|
5
5
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
|
-
import * as colors from '@atlaskit/theme/colors';
|
|
7
6
|
import { useEditorViewHasInfos } from '../../../../hooks/use-editor-view-has-infos';
|
|
8
7
|
import { useExternalMessages } from '../../../../state';
|
|
9
8
|
import { FormatMessages, MessageContainer } from '../format';
|
|
@@ -28,7 +27,7 @@ export const InfoMessages = () => {
|
|
|
28
27
|
paddingInlineEnd: "space.050"
|
|
29
28
|
}, /*#__PURE__*/React.createElement(StatusInformationIcon, {
|
|
30
29
|
label: "",
|
|
31
|
-
color:
|
|
30
|
+
color: "var(--ds-icon-information, #357DE8)",
|
|
32
31
|
size: "small"
|
|
33
32
|
})), infoMessage)) : null;
|
|
34
33
|
};
|
|
@@ -5,7 +5,6 @@ import StatusWarningIcon from '@atlaskit/icon/core/status-warning';
|
|
|
5
5
|
import Link from '@atlaskit/link';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import * as colors from '@atlaskit/theme/colors';
|
|
9
8
|
import { useEditorViewHasWarnings } from '../../../../hooks/use-editor-view-has-warnings';
|
|
10
9
|
import { useExternalMessages, useHydratedDeprecations, useIntl } from '../../../../state';
|
|
11
10
|
import { FormatMessages, MessageContainer } from '../format';
|
|
@@ -100,7 +99,7 @@ export const WarningMessages = () => {
|
|
|
100
99
|
paddingInlineEnd: "space.050"
|
|
101
100
|
}, /*#__PURE__*/React.createElement(StatusWarningIcon, {
|
|
102
101
|
label: "",
|
|
103
|
-
color:
|
|
102
|
+
color: "var(--ds-icon-warning, #E06C00)",
|
|
104
103
|
size: "small"
|
|
105
104
|
})), warningMessage)) : null;
|
|
106
105
|
};
|
|
@@ -3,7 +3,6 @@ import { css, keyframes } from '@emotion/react';
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import styled from '@emotion/styled';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
import { B200, B300, G500, N0, N10, N100, N30, N700, N800, N900, P400, R400 } from '@atlaskit/theme/colors';
|
|
7
6
|
import { layers } from '@atlaskit/theme/constants';
|
|
8
7
|
import { TOOLTIP_CLASSNAME, TOOLTIP_ENTER_CLASSNAME, TOOLTIP_EXIT_CLASSNAME } from '../../plugins/validation-tooltip/constants';
|
|
9
8
|
const fadeIn = keyframes({
|
|
@@ -34,8 +33,8 @@ export const EditorMain = styled.div`
|
|
|
34
33
|
/* These styles and animations are derived from @atlaskit/tooltip */
|
|
35
34
|
|
|
36
35
|
.${TOOLTIP_CLASSNAME} {
|
|
37
|
-
background-color: ${
|
|
38
|
-
color: ${
|
|
36
|
+
background-color: ${"var(--ds-background-neutral-bold, #292A2E)"};
|
|
37
|
+
color: ${"var(--ds-text-inverse, #FFFFFF)"};
|
|
39
38
|
border-radius: ${"var(--ds-radius-small, 3px)"};
|
|
40
39
|
box-sizing: border-box;
|
|
41
40
|
font: ${"var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"};
|
|
@@ -77,14 +76,14 @@ const getEditorInputVerticalPadding = isCompact => isCompact ? 3 : 7;
|
|
|
77
76
|
const editorInputHorizontalPadding = 6;
|
|
78
77
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
79
78
|
export const EditorViewContainer = styled.div({
|
|
80
|
-
backgroundColor:
|
|
79
|
+
backgroundColor: "var(--ds-background-input, #FFFFFF)",
|
|
81
80
|
borderStyle: 'solid',
|
|
82
81
|
borderWidth: "var(--ds-border-width, 1px)",
|
|
83
|
-
borderColor:
|
|
82
|
+
borderColor: "var(--ds-border-input, #8C8F97)",
|
|
84
83
|
borderRadius: "var(--ds-radius-medium, 3px)",
|
|
85
84
|
padding: "var(--ds-border-width, 1px)",
|
|
86
85
|
boxSizing: 'border-box',
|
|
87
|
-
color:
|
|
86
|
+
color: "var(--ds-text, #292A2E)",
|
|
88
87
|
display: 'flex',
|
|
89
88
|
overflow: 'auto',
|
|
90
89
|
transition: 'background-color 0.2s ease-in-out, border-color 0.2s ease-in-out'
|
|
@@ -93,34 +92,34 @@ export const EditorViewContainer = styled.div({
|
|
|
93
92
|
props => props.editorViewIsInvalid &&
|
|
94
93
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
95
94
|
css({
|
|
96
|
-
borderColor:
|
|
97
|
-
boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${
|
|
95
|
+
borderColor: "var(--ds-border-danger, #E2483D)",
|
|
96
|
+
boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${"var(--ds-border-danger, #E2483D)"}`
|
|
98
97
|
}),
|
|
99
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
100
99
|
props => props.editorViewHasFocus ?
|
|
101
100
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
102
101
|
css({
|
|
103
|
-
backgroundColor:
|
|
104
|
-
borderColor:
|
|
105
|
-
boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${
|
|
102
|
+
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
103
|
+
borderColor: "var(--ds-border-focused, #4688EC)",
|
|
104
|
+
boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${"var(--ds-border-focused, #4688EC)"}`
|
|
106
105
|
}) :
|
|
107
106
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
108
107
|
css({
|
|
109
108
|
'&:hover': {
|
|
110
|
-
backgroundColor:
|
|
109
|
+
backgroundColor: "var(--ds-background-input-hovered, #F8F8F8)"
|
|
111
110
|
}
|
|
112
111
|
}));
|
|
113
112
|
|
|
114
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
115
114
|
export const ReadOnlyEditorViewContainer = styled(EditorViewContainer)({
|
|
116
|
-
backgroundColor:
|
|
117
|
-
color:
|
|
115
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)",
|
|
116
|
+
color: "var(--ds-text-disabled, #080F214A)",
|
|
118
117
|
pointerEvents: 'none'
|
|
119
118
|
});
|
|
120
119
|
|
|
121
120
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
122
121
|
export const LineNumberToolbar = styled.div({
|
|
123
|
-
backgroundColor:
|
|
122
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
124
123
|
flexShrink: 0,
|
|
125
124
|
width: '30px',
|
|
126
125
|
position: 'sticky',
|
|
@@ -159,7 +158,7 @@ export const EditorView = styled.div`
|
|
|
159
158
|
}
|
|
160
159
|
|
|
161
160
|
.ProseMirror {
|
|
162
|
-
color: ${
|
|
161
|
+
color: ${"var(--ds-text, #292A2E)"};
|
|
163
162
|
padding: ${props => getEditorInputVerticalPadding(props.isCompact)}px
|
|
164
163
|
${editorInputHorizontalPadding}px;
|
|
165
164
|
|
|
@@ -168,19 +167,19 @@ export const EditorView = styled.div`
|
|
|
168
167
|
}
|
|
169
168
|
|
|
170
169
|
.mark-token-keyword {
|
|
171
|
-
color: ${
|
|
170
|
+
color: ${"var(--ds-text-accent-purple, #803FA5)"};
|
|
172
171
|
}
|
|
173
172
|
|
|
174
173
|
.mark-token-field {
|
|
175
|
-
color: ${
|
|
174
|
+
color: ${"var(--ds-text-accent-blue, #1558BC)"};
|
|
176
175
|
}
|
|
177
176
|
|
|
178
177
|
.mark-token-operator {
|
|
179
|
-
color: ${
|
|
178
|
+
color: ${"var(--ds-text-accent-green, #216E4E)"};
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
.mark-token-error {
|
|
183
|
-
color: ${
|
|
182
|
+
color: ${"var(--ds-text-danger, #AE2E24)"};
|
|
184
183
|
text-decoration: wavy underline;
|
|
185
184
|
text-decoration-thickness: 1px;
|
|
186
185
|
text-decoration-skip-ink: none;
|
|
@@ -196,7 +195,7 @@ export const EditorView = styled.div`
|
|
|
196
195
|
|
|
197
196
|
&::before {
|
|
198
197
|
content: counter(lineNumber);
|
|
199
|
-
color: ${
|
|
198
|
+
color: ${"var(--ds-text-subtlest, #6B6E76)"};
|
|
200
199
|
font-size: 10px;
|
|
201
200
|
line-height: ${rowHeight / 10};
|
|
202
201
|
padding: 0 ${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-025, 2px)"};
|
|
@@ -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", "5.13.6", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
package/dist/esm/async.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
|
|
4
|
+
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
3
5
|
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
4
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
7
|
import { withErrorBoundary } from './ui/error-boundary';
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import { N200, N40, N50A, N60A } from '@atlaskit/theme/colors';
|
|
4
3
|
import { layers } from '@atlaskit/theme/constants';
|
|
5
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
5
|
export var AutocompleteContainer = styled.div({
|
|
7
6
|
position: 'absolute',
|
|
8
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
7
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
9
8
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
10
9
|
willChange: 'top, left',
|
|
11
10
|
zIndex: layers.dialog(),
|
|
12
|
-
boxShadow: "var(--ds-shadow-overlay,
|
|
13
|
-
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-0,
|
|
11
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)",
|
|
12
|
+
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-0, 0px)"),
|
|
14
13
|
minWidth: '200px',
|
|
15
14
|
maxWidth: '400px',
|
|
16
15
|
'&:focus': {
|
|
@@ -45,15 +44,15 @@ export var AutocompleteOptionsContainer = styled.div({
|
|
|
45
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
45
|
export var OptionList = styled.ul({
|
|
47
46
|
listStyle: 'none',
|
|
48
|
-
margin: "var(--ds-space-0,
|
|
49
|
-
padding: "var(--ds-space-0,
|
|
47
|
+
margin: "var(--ds-space-0, 0px)",
|
|
48
|
+
padding: "var(--ds-space-0, 0px)"
|
|
50
49
|
});
|
|
51
50
|
|
|
52
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
53
52
|
export var AutocompleteLoadingFooter = styled.div({
|
|
54
53
|
display: 'flex',
|
|
55
54
|
justifyContent: 'center',
|
|
56
|
-
color: "var(--ds-text-subtlest,
|
|
55
|
+
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
57
56
|
fontStyle: 'italic',
|
|
58
57
|
padding: "var(--ds-space-150, 12px)",
|
|
59
58
|
textAlign: 'center'
|
|
@@ -62,7 +61,7 @@ export var AutocompleteLoadingFooter = styled.div({
|
|
|
62
61
|
function (_ref3) {
|
|
63
62
|
var hasOptions = _ref3.hasOptions;
|
|
64
63
|
return hasOptions && {
|
|
65
|
-
borderTop: "solid
|
|
64
|
+
borderTop: "solid ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border, #0B120E24)"),
|
|
66
65
|
marginTop: "var(--ds-space-075, 6px)",
|
|
67
66
|
paddingTop: "var(--ds-space-250, 20px)"
|
|
68
67
|
};
|
|
@@ -16,7 +16,6 @@ import TagIcon from '@atlaskit/icon/core/tag';
|
|
|
16
16
|
import CheckboxIcon from '@atlaskit/icon/core/task';
|
|
17
17
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
18
18
|
import { normaliseJqlString } from '@atlaskit/jql-ast';
|
|
19
|
-
import { N400 } from '@atlaskit/theme/colors';
|
|
20
19
|
import Tooltip from '@atlaskit/tooltip';
|
|
21
20
|
import { useIntl } from '../../../../state';
|
|
22
21
|
import { messages } from './messages';
|
|
@@ -163,7 +162,7 @@ var AutocompleteOption = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
163
162
|
spacing: "spacious",
|
|
164
163
|
testId: "jql-editor-deprecated-icon",
|
|
165
164
|
label: "",
|
|
166
|
-
color: "var(--ds-icon,
|
|
165
|
+
color: "var(--ds-icon, #292A2E)"
|
|
167
166
|
}))) : optionName, fieldType && /*#__PURE__*/React.createElement(FieldType, null, fieldTypeIcon && /*#__PURE__*/React.createElement(FieldTypeIcon, null, fieldTypeIcon), fieldType));
|
|
168
167
|
var tooltipContent = /*#__PURE__*/React.createElement(TooltipContent, null, name);
|
|
169
168
|
if (overflows) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import { N100, N20, N50, N800 } from '@atlaskit/theme/colors';
|
|
4
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
4
|
export var TooltipContent = styled.div({
|
|
6
5
|
fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
@@ -18,7 +17,7 @@ export var OptionListItem = styled.li({
|
|
|
18
17
|
function (_ref) {
|
|
19
18
|
var isSelected = _ref.isSelected;
|
|
20
19
|
return isSelected && {
|
|
21
|
-
background: "var(--ds-background-neutral-subtle-hovered,
|
|
20
|
+
background: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
|
|
22
21
|
};
|
|
23
22
|
},
|
|
24
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
@@ -26,13 +25,13 @@ function (_ref2) {
|
|
|
26
25
|
var isDeprecated = _ref2.isDeprecated;
|
|
27
26
|
return isDeprecated && {
|
|
28
27
|
cursor: 'default',
|
|
29
|
-
color: "var(--ds-text-disabled,
|
|
28
|
+
color: "var(--ds-text-disabled, #080F214A)"
|
|
30
29
|
};
|
|
31
30
|
});
|
|
32
31
|
|
|
33
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
33
|
export var OptionName = styled.div({
|
|
35
|
-
color: "var(--ds-text,
|
|
34
|
+
color: "var(--ds-text, #292A2E)",
|
|
36
35
|
overflow: 'hidden',
|
|
37
36
|
whiteSpace: 'nowrap',
|
|
38
37
|
textOverflow: 'ellipsis',
|
|
@@ -42,7 +41,7 @@ export var OptionName = styled.div({
|
|
|
42
41
|
|
|
43
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
43
|
export var DeprecatedOptionContainer = styled.div({
|
|
45
|
-
color: "var(--ds-text-disabled,
|
|
44
|
+
color: "var(--ds-text-disabled, #080F214A)",
|
|
46
45
|
display: 'flex',
|
|
47
46
|
justifyContent: 'space-between',
|
|
48
47
|
opacity: 0.6
|
|
@@ -58,7 +57,7 @@ export var FieldType = styled.div({
|
|
|
58
57
|
display: 'flex',
|
|
59
58
|
alignItems: 'center',
|
|
60
59
|
marginTop: "var(--ds-space-negative-025, -2px)",
|
|
61
|
-
color: "var(--ds-text-subtlest,
|
|
60
|
+
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
62
61
|
});
|
|
63
62
|
|
|
64
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import styled from '@emotion/styled';
|
|
5
|
-
import { N0, N40, N50, N500, R400 } from '@atlaskit/theme/colors';
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
6
|
export var TeamContainer = styled.span({
|
|
8
7
|
display: 'inline-flex',
|
|
@@ -20,42 +19,42 @@ function (_ref) {
|
|
|
20
19
|
if (error) {
|
|
21
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
21
|
return css({
|
|
23
|
-
color: "var(--ds-text-inverse,
|
|
24
|
-
backgroundColor: "var(--ds-background-danger-bold,
|
|
22
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
23
|
+
backgroundColor: "var(--ds-background-danger-bold, #C9372C)",
|
|
25
24
|
textDecoration: 'wavy underline',
|
|
26
25
|
textDecorationThickness: '1px',
|
|
27
26
|
textDecorationSkipInk: 'none',
|
|
28
|
-
textDecorationColor: "var(--ds-text-inverse,
|
|
27
|
+
textDecorationColor: "var(--ds-text-inverse, #FFFFFF)"
|
|
29
28
|
});
|
|
30
29
|
} else {
|
|
31
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
32
31
|
return css({
|
|
33
|
-
color: "var(--ds-text,
|
|
34
|
-
backgroundColor: "var(--ds-background-selected,
|
|
35
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected,
|
|
32
|
+
color: "var(--ds-text, #292A2E)",
|
|
33
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FE)",
|
|
34
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)")
|
|
36
35
|
});
|
|
37
36
|
}
|
|
38
37
|
} else {
|
|
39
38
|
if (error) {
|
|
40
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
41
40
|
return css({
|
|
42
|
-
color: "var(--ds-text-subtle,
|
|
43
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
41
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
42
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
44
43
|
textDecoration: 'wavy underline',
|
|
45
44
|
textDecorationThickness: '1px',
|
|
46
45
|
textDecorationSkipInk: 'none',
|
|
47
|
-
textDecorationColor: "var(--ds-text-danger,
|
|
46
|
+
textDecorationColor: "var(--ds-text-danger, #AE2E24)",
|
|
48
47
|
'&:hover': {
|
|
49
|
-
backgroundColor: "var(--ds-background-neutral-hovered,
|
|
48
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
50
49
|
}
|
|
51
50
|
});
|
|
52
51
|
} else {
|
|
53
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
54
53
|
return css({
|
|
55
|
-
color: "var(--ds-text-subtle,
|
|
56
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
54
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
55
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
57
56
|
'&:hover': {
|
|
58
|
-
backgroundColor: "var(--ds-background-neutral-hovered,
|
|
57
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
59
58
|
}
|
|
60
59
|
});
|
|
61
60
|
}
|
|
@@ -3,7 +3,6 @@ import { css } from '@emotion/react';
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import styled from '@emotion/styled';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
import { N0, N40, N50, N500, R400 } from '@atlaskit/theme/colors';
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
7
|
export var UserContainer = styled.span({
|
|
9
8
|
display: 'inline-flex',
|
|
@@ -21,42 +20,42 @@ function (_ref) {
|
|
|
21
20
|
if (error) {
|
|
22
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
22
|
return css({
|
|
24
|
-
color: "var(--ds-text-inverse,
|
|
25
|
-
backgroundColor: "var(--ds-background-danger-bold,
|
|
23
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
24
|
+
backgroundColor: "var(--ds-background-danger-bold, #C9372C)",
|
|
26
25
|
textDecoration: 'wavy underline',
|
|
27
26
|
textDecorationThickness: '1px',
|
|
28
27
|
textDecorationSkipInk: 'none',
|
|
29
|
-
textDecorationColor: "var(--ds-text-inverse,
|
|
28
|
+
textDecorationColor: "var(--ds-text-inverse, #FFFFFF)"
|
|
30
29
|
});
|
|
31
30
|
} else {
|
|
32
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
32
|
return css({
|
|
34
|
-
color: "var(--ds-text,
|
|
35
|
-
backgroundColor: "var(--ds-background-selected,
|
|
36
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected,
|
|
33
|
+
color: "var(--ds-text, #292A2E)",
|
|
34
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FE)",
|
|
35
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)")
|
|
37
36
|
});
|
|
38
37
|
}
|
|
39
38
|
} else {
|
|
40
39
|
if (error) {
|
|
41
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
41
|
return css({
|
|
43
|
-
color: "var(--ds-text-subtle,
|
|
44
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
42
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
43
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
45
44
|
textDecoration: 'wavy underline',
|
|
46
45
|
textDecorationThickness: '1px',
|
|
47
46
|
textDecorationSkipInk: 'none',
|
|
48
|
-
textDecorationColor: "var(--ds-text-danger,
|
|
47
|
+
textDecorationColor: "var(--ds-text-danger, #AE2E24)",
|
|
49
48
|
'&:hover': {
|
|
50
|
-
backgroundColor: "var(--ds-background-neutral-hovered,
|
|
49
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
51
50
|
}
|
|
52
51
|
});
|
|
53
52
|
} else {
|
|
54
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
55
54
|
return css({
|
|
56
|
-
color: "var(--ds-text-subtle,
|
|
57
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
55
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
56
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
58
57
|
'&:hover': {
|
|
59
|
-
backgroundColor: "var(--ds-background-neutral-hovered,
|
|
58
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
60
59
|
}
|
|
61
60
|
});
|
|
62
61
|
}
|
|
@@ -4,10 +4,11 @@ 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 { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { getJastFromState } from '../../plugins/jql-ast';
|
|
8
9
|
import { replaceRichInlineNodes } from '../../plugins/rich-inline-nodes/util/replace-nodes-transaction';
|
|
9
10
|
import { actions } from '../index';
|
|
10
|
-
import { ValidQueryVisitor } from './util';
|
|
11
|
+
import { normaliseHydrationKey, ValidQueryVisitor } from './util';
|
|
11
12
|
export var hydrateQuery = function hydrateQuery() {
|
|
12
13
|
return /*#__PURE__*/function () {
|
|
13
14
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref, _ref2) {
|
|
@@ -42,15 +43,21 @@ export var hydrateQuery = function hydrateQuery() {
|
|
|
42
43
|
return onHydrate(queryToHydrate);
|
|
43
44
|
case 13:
|
|
44
45
|
newHydratedValues = _context.sent;
|
|
46
|
+
// IMPORTANT: Field name keys must be normalised (unquoted + lowercased) when storing hydrated values.
|
|
47
|
+
// The hydration API returns field names in a canonical format (e.g. 'Project[AtlassianProject]'),
|
|
48
|
+
// but lookup keys from ProseMirror node attributes may differ in quoting and casing
|
|
49
|
+
// (e.g. '"project[atlassianproject]"'). normaliseHydrationKey ensures both storage and lookup use
|
|
50
|
+
// the same key format. See normaliseHydrationKey in ./util.ts.
|
|
45
51
|
hydratedValuesMap = Object.entries(newHydratedValues).reduce(function (map, _ref4) {
|
|
46
52
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
47
53
|
fieldName = _ref5[0],
|
|
48
54
|
values = _ref5[1];
|
|
49
|
-
var
|
|
55
|
+
var fieldNameToUse = fg('projects_in_jira_eap_drop2') ? normaliseHydrationKey(fieldName) : fieldName;
|
|
56
|
+
var valueMap = new Map(oldHydratedValues[fieldNameToUse]);
|
|
50
57
|
values.forEach(function (value) {
|
|
51
58
|
valueMap.set(value.id, value);
|
|
52
59
|
});
|
|
53
|
-
return _objectSpread(_objectSpread({}, map), {}, _defineProperty({},
|
|
60
|
+
return _objectSpread(_objectSpread({}, map), {}, _defineProperty({}, fieldNameToUse, valueMap));
|
|
54
61
|
}, {});
|
|
55
62
|
setState({
|
|
56
63
|
hydratedValues: hydratedValuesMap
|
|
@@ -6,9 +6,18 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
import { AbstractJastVisitor } from '@atlaskit/jql-ast';
|
|
9
|
+
import { AbstractJastVisitor, normaliseJqlString } from '@atlaskit/jql-ast';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Normalise a JQL string for use as a hydration map key.
|
|
14
|
+
* Strips quotes/escaping and lowercases to ensure case-insensitive matching
|
|
15
|
+
* between field names from different sources (e.g. AST vs hydration API).
|
|
16
|
+
*/
|
|
17
|
+
export var normaliseHydrationKey = function normaliseHydrationKey(key) {
|
|
18
|
+
return normaliseJqlString(key).toLowerCase();
|
|
19
|
+
};
|
|
20
|
+
|
|
12
21
|
/**
|
|
13
22
|
* Given an AST with parse errors, this visitor returns a valid query that is equivalent for hydration purposes
|
|
14
23
|
* (i.e. just fields, operators and values). Resulting query is generated on a best-effort basis and depends on
|
package/dist/esm/state/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
14
14
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
15
15
|
import { computeJqlInsights, isListOperator, normaliseJqlString } from '@atlaskit/jql-ast';
|
|
16
16
|
import { JQLAutocomplete } from '@atlaskit/jql-autocomplete';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
18
|
import { ActionSubject, ActionSubjectId, Action as AnalyticsAction, EventType } from '../analytics';
|
|
18
19
|
import { selectErrorCommand } from '../commands/select-error-command';
|
|
19
20
|
import { JQL_EDITOR_MAIN_ID } from '../common/constants';
|
|
@@ -24,6 +25,7 @@ import { getNodeText } from '../utils/document-text';
|
|
|
24
25
|
import { onStartAutocompleteEvent } from './analytics';
|
|
25
26
|
import { sortOperators } from './autocomplete';
|
|
26
27
|
import { hydrateQuery } from './hydration';
|
|
28
|
+
import { normaliseHydrationKey } from './hydration/util';
|
|
27
29
|
import { getAutocompleteOptionId, getAutocompletePosition, getFieldNodes, getReplacePositionStart, sendDebugMessage, tokensToAutocompleteOptions } from './util';
|
|
28
30
|
var initialIntl = createIntl({
|
|
29
31
|
locale: 'en'
|
|
@@ -886,38 +888,47 @@ export var useAutocompletePosition = createHook(Store, {
|
|
|
886
888
|
};
|
|
887
889
|
}
|
|
888
890
|
});
|
|
891
|
+
|
|
892
|
+
// IMPORTANT: All hydration lookup hooks below must normalise fieldName using normaliseHydrationKey.
|
|
893
|
+
// This ensures consistent matching regardless of quoting or casing differences between the hydration API
|
|
894
|
+
// response (storage) and ProseMirror node attributes (lookup). Both sides must use the same normalisation.
|
|
895
|
+
// See normaliseHydrationKey in ./hydration/util.ts for details.
|
|
889
896
|
export var useHydratedValue = createHook(Store, {
|
|
890
897
|
selector: function selector(state, _ref38) {
|
|
891
|
-
var _state$
|
|
898
|
+
var _state$hydratedValues2;
|
|
892
899
|
var id = _ref38.id,
|
|
893
900
|
fieldName = _ref38.fieldName;
|
|
894
|
-
|
|
901
|
+
if (fg('projects_in_jira_eap_drop2')) {
|
|
902
|
+
var _state$hydratedValues;
|
|
903
|
+
return (_state$hydratedValues = state.hydratedValues[normaliseHydrationKey(fieldName)]) === null || _state$hydratedValues === void 0 ? void 0 : _state$hydratedValues.get(normaliseJqlString(id));
|
|
904
|
+
}
|
|
905
|
+
return (_state$hydratedValues2 = state.hydratedValues[fieldName]) === null || _state$hydratedValues2 === void 0 ? void 0 : _state$hydratedValues2.get(id);
|
|
895
906
|
}
|
|
896
907
|
});
|
|
897
908
|
export var useHydratedUser = createHook(Store, {
|
|
898
909
|
selector: function selector(state, _ref39) {
|
|
899
|
-
var _state$
|
|
910
|
+
var _state$hydratedValues3, _state$hydratedValues4;
|
|
900
911
|
var id = _ref39.id,
|
|
901
912
|
fieldName = _ref39.fieldName;
|
|
902
|
-
var user = (_state$
|
|
913
|
+
var user = fg('projects_in_jira_eap_drop2') ? (_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);
|
|
903
914
|
return user && user.type === 'user' ? user : undefined;
|
|
904
915
|
}
|
|
905
916
|
});
|
|
906
917
|
export var useHydratedTeam = createHook(Store, {
|
|
907
918
|
selector: function selector(state, _ref40) {
|
|
908
|
-
var _state$
|
|
919
|
+
var _state$hydratedValues5, _state$hydratedValues6;
|
|
909
920
|
var id = _ref40.id,
|
|
910
921
|
fieldName = _ref40.fieldName;
|
|
911
|
-
var team = (_state$
|
|
922
|
+
var team = fg('projects_in_jira_eap_drop2') ? (_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);
|
|
912
923
|
return team && team.type === 'team' ? team : undefined;
|
|
913
924
|
}
|
|
914
925
|
});
|
|
915
926
|
export var useHydratedProject = createHook(Store, {
|
|
916
927
|
selector: function selector(state, _ref41) {
|
|
917
|
-
var _state$
|
|
928
|
+
var _state$hydratedValues7, _state$hydratedValues8;
|
|
918
929
|
var id = _ref41.id,
|
|
919
930
|
fieldName = _ref41.fieldName;
|
|
920
|
-
var project = (_state$
|
|
931
|
+
var project = fg('projects_in_jira_eap_drop2') ? (_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));
|
|
921
932
|
return project && project.type === 'project' ? project : undefined;
|
|
922
933
|
}
|
|
923
934
|
});
|
|
@@ -927,10 +938,10 @@ export var useHydratedDeprecations = createHook(Store, {
|
|
|
927
938
|
var fieldsInQuery = getFieldNodes(ast);
|
|
928
939
|
var toReturn = [];
|
|
929
940
|
Object.entries(state.hydratedValues).forEach(function (_ref42) {
|
|
930
|
-
var _state$
|
|
941
|
+
var _state$hydratedValues9;
|
|
931
942
|
var _ref43 = _slicedToArray(_ref42, 1),
|
|
932
943
|
fieldName = _ref43[0];
|
|
933
|
-
(_state$
|
|
944
|
+
(_state$hydratedValues9 = state.hydratedValues[fieldName]) === null || _state$hydratedValues9 === void 0 || _state$hydratedValues9.forEach(function (value) {
|
|
934
945
|
if (value.type === 'deprecated-field') {
|
|
935
946
|
if (fieldsInQuery.has(value.id.toLowerCase())) {
|
|
936
947
|
toReturn.push(value);
|
|
@@ -4,7 +4,6 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
4
4
|
import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
5
5
|
import ShrinkDiagonalIcon from '@atlaskit/icon/core/shrink-diagonal';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { N50, N500 } from '@atlaskit/theme/colors';
|
|
8
7
|
import { ExpandToggleContainer } from './styled';
|
|
9
8
|
|
|
10
9
|
// Atlaskit doesn't provide a circle variation of the expand/collapse icons so we have to implement our own
|
|
@@ -12,14 +11,14 @@ var ExpandCircleIcon = function ExpandCircleIcon(_ref) {
|
|
|
12
11
|
var isDisabled = _ref.isDisabled;
|
|
13
12
|
return /*#__PURE__*/React.createElement(GrowDiagonalIcon, {
|
|
14
13
|
label: '',
|
|
15
|
-
color: isDisabled ? "var(--ds-icon-disabled,
|
|
14
|
+
color: isDisabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)"
|
|
16
15
|
});
|
|
17
16
|
};
|
|
18
17
|
var CollapseCircleIcon = function CollapseCircleIcon(_ref2) {
|
|
19
18
|
var isDisabled = _ref2.isDisabled;
|
|
20
19
|
return /*#__PURE__*/React.createElement(ShrinkDiagonalIcon, {
|
|
21
20
|
label: '',
|
|
22
|
-
color: isDisabled ? "var(--ds-icon-disabled,
|
|
21
|
+
color: isDisabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)"
|
|
23
22
|
});
|
|
24
23
|
};
|
|
25
24
|
export var BaseExpandToggle = function BaseExpandToggle(_ref3) {
|