@atlaskit/jql-editor 5.13.6 → 5.14.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 +18 -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 +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 5.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 5.14.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`2ce9dcaba3539`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2ce9dcaba3539) -
|
|
14
|
+
[ux] Normalise hydration key so that lozenge data is refreshed in JQL editor
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`ce16754d5db01`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ce16754d5db01) -
|
|
19
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
20
|
+
|
|
3
21
|
## 5.13.6
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -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", "5.14.0", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
package/dist/cjs/async.js
CHANGED
|
@@ -13,7 +13,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
13
13
|
var _errorBoundary = require("./ui/error-boundary");
|
|
14
14
|
var _intlProvider = require("./ui/intl-provider");
|
|
15
15
|
var _jqlEditorLayout = require("./ui/jql-editor-layout");
|
|
16
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } // oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
17
17
|
var JQLEditor = (0, _reactLooselyLazy.lazyForPaint)(function () {
|
|
18
18
|
return Promise.resolve().then(function () {
|
|
19
19
|
return _interopRequireWildcard(require( /* webpackChunkName: "async-jql-editor" */'./ui/jql-editor'));
|
|
@@ -6,19 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.OptionList = exports.AutocompleteOptionsContainer = exports.AutocompleteLoadingFooter = exports.AutocompleteContainer = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
10
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
11
|
|
|
13
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
13
|
var AutocompleteContainer = exports.AutocompleteContainer = _styled.default.div({
|
|
15
14
|
position: 'absolute',
|
|
16
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
15
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
17
16
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
18
17
|
willChange: 'top, left',
|
|
19
18
|
zIndex: _constants.layers.dialog(),
|
|
20
|
-
boxShadow: "var(--ds-shadow-overlay,
|
|
21
|
-
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-0,
|
|
19
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)",
|
|
20
|
+
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-0, 0px)"),
|
|
22
21
|
minWidth: '200px',
|
|
23
22
|
maxWidth: '400px',
|
|
24
23
|
'&:focus': {
|
|
@@ -53,15 +52,15 @@ var AutocompleteOptionsContainer = exports.AutocompleteOptionsContainer = _style
|
|
|
53
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
54
53
|
var OptionList = exports.OptionList = _styled.default.ul({
|
|
55
54
|
listStyle: 'none',
|
|
56
|
-
margin: "var(--ds-space-0,
|
|
57
|
-
padding: "var(--ds-space-0,
|
|
55
|
+
margin: "var(--ds-space-0, 0px)",
|
|
56
|
+
padding: "var(--ds-space-0, 0px)"
|
|
58
57
|
});
|
|
59
58
|
|
|
60
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
61
60
|
var AutocompleteLoadingFooter = exports.AutocompleteLoadingFooter = _styled.default.div({
|
|
62
61
|
display: 'flex',
|
|
63
62
|
justifyContent: 'center',
|
|
64
|
-
color: "var(--ds-text-subtlest,
|
|
63
|
+
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
65
64
|
fontStyle: 'italic',
|
|
66
65
|
padding: "var(--ds-space-150, 12px)",
|
|
67
66
|
textAlign: 'center'
|
|
@@ -70,7 +69,7 @@ var AutocompleteLoadingFooter = exports.AutocompleteLoadingFooter = _styled.defa
|
|
|
70
69
|
function (_ref3) {
|
|
71
70
|
var hasOptions = _ref3.hasOptions;
|
|
72
71
|
return hasOptions && {
|
|
73
|
-
borderTop: "solid
|
|
72
|
+
borderTop: "solid ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border, #0B120E24)"),
|
|
74
73
|
marginTop: "var(--ds-space-075, 6px)",
|
|
75
74
|
paddingTop: "var(--ds-space-250, 20px)"
|
|
76
75
|
};
|
|
@@ -24,7 +24,6 @@ var _tag = _interopRequireDefault(require("@atlaskit/icon/core/tag"));
|
|
|
24
24
|
var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
|
|
25
25
|
var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
|
|
26
26
|
var _jqlAst = require("@atlaskit/jql-ast");
|
|
27
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
28
27
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
29
28
|
var _state = require("../../../../state");
|
|
30
29
|
var _messages = require("./messages");
|
|
@@ -172,7 +171,7 @@ var AutocompleteOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, re
|
|
|
172
171
|
spacing: "spacious",
|
|
173
172
|
testId: "jql-editor-deprecated-icon",
|
|
174
173
|
label: "",
|
|
175
|
-
color: "var(--ds-icon,
|
|
174
|
+
color: "var(--ds-icon, #292A2E)"
|
|
176
175
|
}))) : optionName, fieldType && /*#__PURE__*/_react.default.createElement(_styled.FieldType, null, fieldTypeIcon && /*#__PURE__*/_react.default.createElement(_styled.FieldTypeIcon, null, fieldTypeIcon), fieldType));
|
|
177
176
|
var tooltipContent = /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, name);
|
|
178
177
|
if (overflows) {
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.TooltipContent = exports.OptionName = exports.OptionListItem = exports.OptionHighlight = exports.FieldTypeIcon = exports.FieldType = exports.DeprecatedOptionContainer = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
10
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
10
|
|
|
12
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -26,7 +25,7 @@ var OptionListItem = exports.OptionListItem = _styled.default.li({
|
|
|
26
25
|
function (_ref) {
|
|
27
26
|
var isSelected = _ref.isSelected;
|
|
28
27
|
return isSelected && {
|
|
29
|
-
background: "var(--ds-background-neutral-subtle-hovered,
|
|
28
|
+
background: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
|
|
30
29
|
};
|
|
31
30
|
},
|
|
32
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
@@ -34,13 +33,13 @@ function (_ref2) {
|
|
|
34
33
|
var isDeprecated = _ref2.isDeprecated;
|
|
35
34
|
return isDeprecated && {
|
|
36
35
|
cursor: 'default',
|
|
37
|
-
color: "var(--ds-text-disabled,
|
|
36
|
+
color: "var(--ds-text-disabled, #080F214A)"
|
|
38
37
|
};
|
|
39
38
|
});
|
|
40
39
|
|
|
41
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
41
|
var OptionName = exports.OptionName = _styled.default.div({
|
|
43
|
-
color: "var(--ds-text,
|
|
42
|
+
color: "var(--ds-text, #292A2E)",
|
|
44
43
|
overflow: 'hidden',
|
|
45
44
|
whiteSpace: 'nowrap',
|
|
46
45
|
textOverflow: 'ellipsis',
|
|
@@ -50,7 +49,7 @@ var OptionName = exports.OptionName = _styled.default.div({
|
|
|
50
49
|
|
|
51
50
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
52
51
|
var DeprecatedOptionContainer = exports.DeprecatedOptionContainer = _styled.default.div({
|
|
53
|
-
color: "var(--ds-text-disabled,
|
|
52
|
+
color: "var(--ds-text-disabled, #080F214A)",
|
|
54
53
|
display: 'flex',
|
|
55
54
|
justifyContent: 'space-between',
|
|
56
55
|
opacity: 0.6
|
|
@@ -66,7 +65,7 @@ var FieldType = exports.FieldType = _styled.default.div({
|
|
|
66
65
|
display: 'flex',
|
|
67
66
|
alignItems: 'center',
|
|
68
67
|
marginTop: "var(--ds-space-negative-025, -2px)",
|
|
69
|
-
color: "var(--ds-text-subtlest,
|
|
68
|
+
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
70
69
|
});
|
|
71
70
|
|
|
72
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.TeamContainer = exports.NameContainer = exports.AvatarWrapper = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
11
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
11
|
|
|
13
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -29,42 +28,42 @@ function (_ref) {
|
|
|
29
28
|
if (error) {
|
|
30
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
31
30
|
return (0, _react.css)({
|
|
32
|
-
color: "var(--ds-text-inverse,
|
|
33
|
-
backgroundColor: "var(--ds-background-danger-bold,
|
|
31
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
32
|
+
backgroundColor: "var(--ds-background-danger-bold, #C9372C)",
|
|
34
33
|
textDecoration: 'wavy underline',
|
|
35
34
|
textDecorationThickness: '1px',
|
|
36
35
|
textDecorationSkipInk: 'none',
|
|
37
|
-
textDecorationColor: "var(--ds-text-inverse,
|
|
36
|
+
textDecorationColor: "var(--ds-text-inverse, #FFFFFF)"
|
|
38
37
|
});
|
|
39
38
|
} else {
|
|
40
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
41
40
|
return (0, _react.css)({
|
|
42
|
-
color: "var(--ds-text,
|
|
43
|
-
backgroundColor: "var(--ds-background-selected,
|
|
44
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected,
|
|
41
|
+
color: "var(--ds-text, #292A2E)",
|
|
42
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FE)",
|
|
43
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)")
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
46
|
} else {
|
|
48
47
|
if (error) {
|
|
49
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
50
49
|
return (0, _react.css)({
|
|
51
|
-
color: "var(--ds-text-subtle,
|
|
52
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
50
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
51
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
53
52
|
textDecoration: 'wavy underline',
|
|
54
53
|
textDecorationThickness: '1px',
|
|
55
54
|
textDecorationSkipInk: 'none',
|
|
56
|
-
textDecorationColor: "var(--ds-text-danger,
|
|
55
|
+
textDecorationColor: "var(--ds-text-danger, #AE2E24)",
|
|
57
56
|
'&:hover': {
|
|
58
|
-
backgroundColor: "var(--ds-background-neutral-hovered,
|
|
57
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
59
58
|
}
|
|
60
59
|
});
|
|
61
60
|
} else {
|
|
62
61
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
63
62
|
return (0, _react.css)({
|
|
64
|
-
color: "var(--ds-text-subtle,
|
|
65
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
63
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
64
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
66
65
|
'&:hover': {
|
|
67
|
-
backgroundColor: "var(--ds-background-neutral-hovered,
|
|
66
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
69
|
}
|
|
@@ -8,7 +8,6 @@ exports.UserContainer = exports.NameContainer = exports.AvatarWrapper = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
12
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
12
|
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -30,42 +29,42 @@ function (_ref) {
|
|
|
30
29
|
if (error) {
|
|
31
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
32
31
|
return (0, _react.css)({
|
|
33
|
-
color: "var(--ds-text-inverse,
|
|
34
|
-
backgroundColor: "var(--ds-background-danger-bold,
|
|
32
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
33
|
+
backgroundColor: "var(--ds-background-danger-bold, #C9372C)",
|
|
35
34
|
textDecoration: 'wavy underline',
|
|
36
35
|
textDecorationThickness: '1px',
|
|
37
36
|
textDecorationSkipInk: 'none',
|
|
38
|
-
textDecorationColor: "var(--ds-text-inverse,
|
|
37
|
+
textDecorationColor: "var(--ds-text-inverse, #FFFFFF)"
|
|
39
38
|
});
|
|
40
39
|
} else {
|
|
41
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
41
|
return (0, _react.css)({
|
|
43
|
-
color: "var(--ds-text,
|
|
44
|
-
backgroundColor: "var(--ds-background-selected,
|
|
45
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected,
|
|
42
|
+
color: "var(--ds-text, #292A2E)",
|
|
43
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FE)",
|
|
44
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)")
|
|
46
45
|
});
|
|
47
46
|
}
|
|
48
47
|
} else {
|
|
49
48
|
if (error) {
|
|
50
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
51
50
|
return (0, _react.css)({
|
|
52
|
-
color: "var(--ds-text-subtle,
|
|
53
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
51
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
52
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
54
53
|
textDecoration: 'wavy underline',
|
|
55
54
|
textDecorationThickness: '1px',
|
|
56
55
|
textDecorationSkipInk: 'none',
|
|
57
|
-
textDecorationColor: "var(--ds-text-danger,
|
|
56
|
+
textDecorationColor: "var(--ds-text-danger, #AE2E24)",
|
|
58
57
|
'&:hover': {
|
|
59
|
-
backgroundColor: "var(--ds-background-neutral-hovered,
|
|
58
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
60
59
|
}
|
|
61
60
|
});
|
|
62
61
|
} else {
|
|
63
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
64
63
|
return (0, _react.css)({
|
|
65
|
-
color: "var(--ds-text-subtle,
|
|
66
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
64
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
65
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
67
66
|
'&:hover': {
|
|
68
|
-
backgroundColor: "var(--ds-background-neutral-hovered,
|
|
67
|
+
backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
69
68
|
}
|
|
70
69
|
});
|
|
71
70
|
}
|
|
@@ -9,6 +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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
13
|
var _jqlAst = require("../../plugins/jql-ast");
|
|
13
14
|
var _replaceNodesTransaction = require("../../plugins/rich-inline-nodes/util/replace-nodes-transaction");
|
|
14
15
|
var _index = require("../index");
|
|
@@ -49,15 +50,21 @@ var hydrateQuery = exports.hydrateQuery = function hydrateQuery() {
|
|
|
49
50
|
return onHydrate(queryToHydrate);
|
|
50
51
|
case 13:
|
|
51
52
|
newHydratedValues = _context.sent;
|
|
53
|
+
// IMPORTANT: Field name keys must be normalised (unquoted + lowercased) when storing hydrated values.
|
|
54
|
+
// The hydration API returns field names in a canonical format (e.g. 'Project[AtlassianProject]'),
|
|
55
|
+
// but lookup keys from ProseMirror node attributes may differ in quoting and casing
|
|
56
|
+
// (e.g. '"project[atlassianproject]"'). normaliseHydrationKey ensures both storage and lookup use
|
|
57
|
+
// the same key format. See normaliseHydrationKey in ./util.ts.
|
|
52
58
|
hydratedValuesMap = Object.entries(newHydratedValues).reduce(function (map, _ref4) {
|
|
53
59
|
var _ref5 = (0, _slicedToArray2.default)(_ref4, 2),
|
|
54
60
|
fieldName = _ref5[0],
|
|
55
61
|
values = _ref5[1];
|
|
56
|
-
var
|
|
62
|
+
var fieldNameToUse = (0, _platformFeatureFlags.fg)('projects_in_jira_eap_drop2') ? (0, _util.normaliseHydrationKey)(fieldName) : fieldName;
|
|
63
|
+
var valueMap = new Map(oldHydratedValues[fieldNameToUse]);
|
|
57
64
|
values.forEach(function (value) {
|
|
58
65
|
valueMap.set(value.id, value);
|
|
59
66
|
});
|
|
60
|
-
return _objectSpread(_objectSpread({}, map), {}, (0, _defineProperty2.default)({},
|
|
67
|
+
return _objectSpread(_objectSpread({}, map), {}, (0, _defineProperty2.default)({}, fieldNameToUse, valueMap));
|
|
61
68
|
}, {});
|
|
62
69
|
setState({
|
|
63
70
|
hydratedValues: hydratedValuesMap
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ValidQueryVisitor = void 0;
|
|
7
|
+
exports.normaliseHydrationKey = exports.ValidQueryVisitor = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
@@ -15,6 +15,15 @@ var _jqlAst = require("@atlaskit/jql-ast");
|
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
16
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
17
17
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18
|
+
/**
|
|
19
|
+
* Normalise a JQL string for use as a hydration map key.
|
|
20
|
+
* Strips quotes/escaping and lowercases to ensure case-insensitive matching
|
|
21
|
+
* between field names from different sources (e.g. AST vs hydration API).
|
|
22
|
+
*/
|
|
23
|
+
var normaliseHydrationKey = exports.normaliseHydrationKey = function normaliseHydrationKey(key) {
|
|
24
|
+
return (0, _jqlAst.normaliseJqlString)(key).toLowerCase();
|
|
25
|
+
};
|
|
26
|
+
|
|
18
27
|
/**
|
|
19
28
|
* Given an AST with parse errors, this visitor returns a valid query that is equivalent for hydration purposes
|
|
20
29
|
* (i.e. just fields, operators and values). Resulting query is generated on a best-effort basis and depends on
|
package/dist/cjs/state/index.js
CHANGED
|
@@ -18,6 +18,7 @@ var _uuid = require("uuid");
|
|
|
18
18
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
19
19
|
var _jqlAst = require("@atlaskit/jql-ast");
|
|
20
20
|
var _jqlAutocomplete = require("@atlaskit/jql-autocomplete");
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _analytics = require("../analytics");
|
|
22
23
|
var _selectErrorCommand = require("../commands/select-error-command");
|
|
23
24
|
var _constants = require("../common/constants");
|
|
@@ -28,7 +29,8 @@ var _documentText = require("../utils/document-text");
|
|
|
28
29
|
var _analytics2 = require("./analytics");
|
|
29
30
|
var _autocomplete = require("./autocomplete");
|
|
30
31
|
var _hydration = require("./hydration");
|
|
31
|
-
var _util = require("./util");
|
|
32
|
+
var _util = require("./hydration/util");
|
|
33
|
+
var _util2 = require("./util");
|
|
32
34
|
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; }
|
|
33
35
|
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; } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
34
36
|
var initialIntl = (0, _reactIntlNext.createIntl)({
|
|
@@ -219,10 +221,10 @@ var actions = exports.actions = {
|
|
|
219
221
|
setState({
|
|
220
222
|
autocomplete: _objectSpread(_objectSpread(_objectSpread({}, autocomplete), {}, {
|
|
221
223
|
options: _objectSpread(_objectSpread({}, defaultAutocompleteOptions), {}, {
|
|
222
|
-
tokens: (0,
|
|
224
|
+
tokens: (0, _util2.tokensToAutocompleteOptions)(suggestions.tokens)
|
|
223
225
|
})
|
|
224
226
|
}, editorView && {
|
|
225
|
-
replacePositionStart: (0,
|
|
227
|
+
replacePositionStart: (0, _util2.getReplacePositionStart)(suggestions)
|
|
226
228
|
}), {}, {
|
|
227
229
|
// Update autocomplete visibility in the same update as initial options to avoid visible layout shifts
|
|
228
230
|
shouldStayClosed: shouldStayClosedOnNextUpdate
|
|
@@ -246,7 +248,7 @@ var actions = exports.actions = {
|
|
|
246
248
|
matchedText: matchedText,
|
|
247
249
|
replacePosition: replacePosition,
|
|
248
250
|
type: type,
|
|
249
|
-
id: (0,
|
|
251
|
+
id: (0, _util2.getAutocompleteOptionId)(option.value)
|
|
250
252
|
});
|
|
251
253
|
});
|
|
252
254
|
var _getState3 = getState(),
|
|
@@ -464,7 +466,7 @@ var actions = exports.actions = {
|
|
|
464
466
|
// race condition where the transaction is applied to the editor state but the editor state is being updated in another transaction.
|
|
465
467
|
if (error instanceof RangeError && editorView) {
|
|
466
468
|
var message = "Error occurred trying to update editor state with the message: ".concat(error.message);
|
|
467
|
-
(0,
|
|
469
|
+
(0, _util2.sendDebugMessage)(message, editorView, editorState, onDebugUnsafeMessage, {
|
|
468
470
|
stack: error.stack,
|
|
469
471
|
transaction: JSON.stringify(transaction)
|
|
470
472
|
});
|
|
@@ -581,7 +583,7 @@ var actions = exports.actions = {
|
|
|
581
583
|
}
|
|
582
584
|
return result;
|
|
583
585
|
}, {});
|
|
584
|
-
(0,
|
|
586
|
+
(0, _util2.sendDebugMessage)(message, editorView, editorState, onDebugUnsafeMessage, _objectSpread({
|
|
585
587
|
stack: error instanceof Error ? error.stack : ''
|
|
586
588
|
}, attributeDiff));
|
|
587
589
|
}
|
|
@@ -694,7 +696,7 @@ var actions = exports.actions = {
|
|
|
694
696
|
// our client side validation. Let's monitor any errors we weren't expecting.
|
|
695
697
|
if (editorView && !hasClientError && attributes.syntaxErrorCount > 0) {
|
|
696
698
|
var message = 'External JQL syntax error is shown without a client error.';
|
|
697
|
-
(0,
|
|
699
|
+
(0, _util2.sendDebugMessage)(message, editorView, editorState, onDebugUnsafeMessage, {
|
|
698
700
|
syntaxErrorTypes: attributes.syntaxErrorTypes.join(',')
|
|
699
701
|
});
|
|
700
702
|
}
|
|
@@ -859,7 +861,7 @@ var useAutocompletePosition = exports.useAutocompletePosition = (0, _reactSweetS
|
|
|
859
861
|
var docTop;
|
|
860
862
|
var docLeft;
|
|
861
863
|
try {
|
|
862
|
-
var autocompletePosition = (0,
|
|
864
|
+
var autocompletePosition = (0, _util2.getAutocompletePosition)(editorView, replacePositionStart);
|
|
863
865
|
docTop = autocompletePosition.top;
|
|
864
866
|
docLeft = autocompletePosition.left;
|
|
865
867
|
} catch (error) {
|
|
@@ -868,7 +870,7 @@ var useAutocompletePosition = exports.useAutocompletePosition = (0, _reactSweetS
|
|
|
868
870
|
// seems to be some type of race condition whether the view is being updated with a mismatched selection in the
|
|
869
871
|
// UI. We'll catch the error so the UI doesn't break and fire a callback to debug the error.
|
|
870
872
|
var message = "Error occurred trying to get autocomplete position with the message: ".concat(error instanceof Error ? error.message : String(error));
|
|
871
|
-
(0,
|
|
873
|
+
(0, _util2.sendDebugMessage)(message, editorView, editorState, onDebugUnsafeMessage, {
|
|
872
874
|
stack: error instanceof Error ? error.stack : ''
|
|
873
875
|
});
|
|
874
876
|
|
|
@@ -892,51 +894,60 @@ var useAutocompletePosition = exports.useAutocompletePosition = (0, _reactSweetS
|
|
|
892
894
|
};
|
|
893
895
|
}
|
|
894
896
|
});
|
|
897
|
+
|
|
898
|
+
// IMPORTANT: All hydration lookup hooks below must normalise fieldName using normaliseHydrationKey.
|
|
899
|
+
// This ensures consistent matching regardless of quoting or casing differences between the hydration API
|
|
900
|
+
// response (storage) and ProseMirror node attributes (lookup). Both sides must use the same normalisation.
|
|
901
|
+
// See normaliseHydrationKey in ./hydration/util.ts for details.
|
|
895
902
|
var useHydratedValue = exports.useHydratedValue = (0, _reactSweetState.createHook)(Store, {
|
|
896
903
|
selector: function selector(state, _ref38) {
|
|
897
|
-
var _state$
|
|
904
|
+
var _state$hydratedValues2;
|
|
898
905
|
var id = _ref38.id,
|
|
899
906
|
fieldName = _ref38.fieldName;
|
|
900
|
-
|
|
907
|
+
if ((0, _platformFeatureFlags.fg)('projects_in_jira_eap_drop2')) {
|
|
908
|
+
var _state$hydratedValues;
|
|
909
|
+
return (_state$hydratedValues = state.hydratedValues[(0, _util.normaliseHydrationKey)(fieldName)]) === null || _state$hydratedValues === void 0 ? void 0 : _state$hydratedValues.get((0, _jqlAst.normaliseJqlString)(id));
|
|
910
|
+
}
|
|
911
|
+
return (_state$hydratedValues2 = state.hydratedValues[fieldName]) === null || _state$hydratedValues2 === void 0 ? void 0 : _state$hydratedValues2.get(id);
|
|
901
912
|
}
|
|
902
913
|
});
|
|
903
914
|
var useHydratedUser = exports.useHydratedUser = (0, _reactSweetState.createHook)(Store, {
|
|
904
915
|
selector: function selector(state, _ref39) {
|
|
905
|
-
var _state$
|
|
916
|
+
var _state$hydratedValues3, _state$hydratedValues4;
|
|
906
917
|
var id = _ref39.id,
|
|
907
918
|
fieldName = _ref39.fieldName;
|
|
908
|
-
var user = (_state$
|
|
919
|
+
var user = (0, _platformFeatureFlags.fg)('projects_in_jira_eap_drop2') ? (_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);
|
|
909
920
|
return user && user.type === 'user' ? user : undefined;
|
|
910
921
|
}
|
|
911
922
|
});
|
|
912
923
|
var useHydratedTeam = exports.useHydratedTeam = (0, _reactSweetState.createHook)(Store, {
|
|
913
924
|
selector: function selector(state, _ref40) {
|
|
914
|
-
var _state$
|
|
925
|
+
var _state$hydratedValues5, _state$hydratedValues6;
|
|
915
926
|
var id = _ref40.id,
|
|
916
927
|
fieldName = _ref40.fieldName;
|
|
917
|
-
var team = (_state$
|
|
928
|
+
var team = (0, _platformFeatureFlags.fg)('projects_in_jira_eap_drop2') ? (_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);
|
|
918
929
|
return team && team.type === 'team' ? team : undefined;
|
|
919
930
|
}
|
|
920
931
|
});
|
|
921
932
|
var useHydratedProject = exports.useHydratedProject = (0, _reactSweetState.createHook)(Store, {
|
|
922
933
|
selector: function selector(state, _ref41) {
|
|
923
|
-
var _state$
|
|
934
|
+
var _state$hydratedValues7, _state$hydratedValues8;
|
|
924
935
|
var id = _ref41.id,
|
|
925
936
|
fieldName = _ref41.fieldName;
|
|
926
|
-
var project = (_state$
|
|
937
|
+
var project = (0, _platformFeatureFlags.fg)('projects_in_jira_eap_drop2') ? (_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));
|
|
927
938
|
return project && project.type === 'project' ? project : undefined;
|
|
928
939
|
}
|
|
929
940
|
});
|
|
930
941
|
var useHydratedDeprecations = exports.useHydratedDeprecations = (0, _reactSweetState.createHook)(Store, {
|
|
931
942
|
selector: function selector(state) {
|
|
932
943
|
var ast = (0, _jqlAst2.getJastFromState)(state.editorState);
|
|
933
|
-
var fieldsInQuery = (0,
|
|
944
|
+
var fieldsInQuery = (0, _util2.getFieldNodes)(ast);
|
|
934
945
|
var toReturn = [];
|
|
935
946
|
Object.entries(state.hydratedValues).forEach(function (_ref42) {
|
|
936
|
-
var _state$
|
|
947
|
+
var _state$hydratedValues9;
|
|
937
948
|
var _ref43 = (0, _slicedToArray2.default)(_ref42, 1),
|
|
938
949
|
fieldName = _ref43[0];
|
|
939
|
-
(_state$
|
|
950
|
+
(_state$hydratedValues9 = state.hydratedValues[fieldName]) === null || _state$hydratedValues9 === void 0 || _state$hydratedValues9.forEach(function (value) {
|
|
940
951
|
if (value.type === 'deprecated-field') {
|
|
941
952
|
if (fieldsInQuery.has(value.id.toLowerCase())) {
|
|
942
953
|
toReturn.push(value);
|
|
@@ -11,21 +11,20 @@ var _new = require("@atlaskit/button/new");
|
|
|
11
11
|
var _growDiagonal = _interopRequireDefault(require("@atlaskit/icon/core/grow-diagonal"));
|
|
12
12
|
var _shrinkDiagonal = _interopRequireDefault(require("@atlaskit/icon/core/shrink-diagonal"));
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
15
14
|
var _styled = require("./styled");
|
|
16
15
|
// Atlaskit doesn't provide a circle variation of the expand/collapse icons so we have to implement our own
|
|
17
16
|
var ExpandCircleIcon = function ExpandCircleIcon(_ref) {
|
|
18
17
|
var isDisabled = _ref.isDisabled;
|
|
19
18
|
return /*#__PURE__*/_react.default.createElement(_growDiagonal.default, {
|
|
20
19
|
label: '',
|
|
21
|
-
color: isDisabled ? "var(--ds-icon-disabled,
|
|
20
|
+
color: isDisabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)"
|
|
22
21
|
});
|
|
23
22
|
};
|
|
24
23
|
var CollapseCircleIcon = function CollapseCircleIcon(_ref2) {
|
|
25
24
|
var isDisabled = _ref2.isDisabled;
|
|
26
25
|
return /*#__PURE__*/_react.default.createElement(_shrinkDiagonal.default, {
|
|
27
26
|
label: '',
|
|
28
|
-
color: isDisabled ? "var(--ds-icon-disabled,
|
|
27
|
+
color: isDisabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)"
|
|
29
28
|
});
|
|
30
29
|
};
|
|
31
30
|
var BaseExpandToggle = exports.BaseExpandToggle = function BaseExpandToggle(_ref3) {
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.ExpandToggleContainer = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
10
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
10
|
|
|
12
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -18,11 +17,11 @@ var ExpandToggleContainer = exports.ExpandToggleContainer = _styled.default.div(
|
|
|
18
17
|
/* Fill the remaining vertical space for a single line in our editor and space between buttons */
|
|
19
18
|
margin: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
20
19
|
'&:hover': {
|
|
21
|
-
background: "var(--ds-background-neutral-subtle-hovered,
|
|
20
|
+
background: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
|
|
22
21
|
},
|
|
23
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
23
|
"&:active, &[data-firefox-is-active='true']": {
|
|
25
|
-
background: "var(--ds-background-neutral-subtle-pressed,
|
|
24
|
+
background: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
});
|
|
@@ -12,7 +12,6 @@ var _new = require("@atlaskit/button/new");
|
|
|
12
12
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
14
|
var _primitives = require("@atlaskit/primitives");
|
|
15
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
16
15
|
var _styled = require("./styled");
|
|
17
16
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
17
|
|
|
@@ -52,7 +51,7 @@ var BaseSyntaxHelp = exports.BaseSyntaxHelp = function BaseSyntaxHelp(_ref) {
|
|
|
52
51
|
xcss: iconStyle
|
|
53
52
|
}, /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
|
|
54
53
|
label: '',
|
|
55
|
-
color: isDisabled ? "var(--ds-icon-disabled,
|
|
54
|
+
color: isDisabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon-inverse, #FFFFFF)"
|
|
56
55
|
})),
|
|
57
56
|
onClick: onClick
|
|
58
57
|
}));
|
|
@@ -6,29 +6,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SyntaxHelpContainer = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
10
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
10
|
|
|
12
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
12
|
var SyntaxHelpContainer = exports.SyntaxHelpContainer = _styled.default.div({
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
14
|
'> a': {
|
|
16
|
-
background: "var(--ds-background-neutral-bold,
|
|
15
|
+
background: "var(--ds-background-neutral-bold, #292A2E)",
|
|
17
16
|
borderRadius: "var(--ds-radius-full, 9999px)",
|
|
18
17
|
margin: "var(--ds-space-050, 4px)",
|
|
19
18
|
'&:hover': {
|
|
20
|
-
background: "var(--ds-background-neutral-bold-hovered,
|
|
19
|
+
background: "var(--ds-background-neutral-bold-hovered, #3B3D42)"
|
|
21
20
|
},
|
|
22
21
|
'&:focus': {
|
|
23
|
-
background: "var(--ds-background-neutral-bold,
|
|
22
|
+
background: "var(--ds-background-neutral-bold, #292A2E)"
|
|
24
23
|
},
|
|
25
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
25
|
"&:active, &[data-firefox-is-active='true']": {
|
|
27
|
-
background: "var(--ds-background-neutral-bold-pressed,
|
|
26
|
+
background: "var(--ds-background-neutral-bold-pressed, #505258)"
|
|
28
27
|
},
|
|
29
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
29
|
'&[disabled]': {
|
|
31
|
-
background: "var(--ds-background-disabled,
|
|
30
|
+
background: "var(--ds-background-disabled, #17171708)"
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
});
|