@atlaskit/jql-editor 4.3.0 → 4.3.2
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 +571 -561
- package/LICENSE.md +6 -8
- package/dist/cjs/accessibility/styled.js +3 -0
- package/dist/cjs/analytics/listener/analytics-web-client-wrapper.js +5 -5
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/common/styled.js +7 -1
- package/dist/cjs/plugins/autocomplete/components/autocomplete-dropdown/styled.js +17 -2
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/styled.js +21 -2
- package/dist/cjs/plugins/rich-inline-nodes/nodes/user/styled.js +16 -2
- package/dist/cjs/ui/jql-editor-controls-content/base-expand-toggle/styled.js +5 -0
- package/dist/cjs/ui/jql-editor-controls-content/base-search/index.js +3 -1
- package/dist/cjs/ui/jql-editor-controls-content/base-syntax-help/styled.js +6 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-editor-help/styled.js +15 -3
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/format/styled.js +6 -0
- package/dist/cjs/ui/jql-editor-layout/styled.js +44 -17
- package/dist/cjs/ui/tooltip-tag/styled.js +3 -0
- package/dist/es2019/accessibility/styled.js +3 -0
- package/dist/es2019/analytics/listener/analytics-web-client-wrapper.js +5 -5
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/common/styled.js +5 -1
- package/dist/es2019/plugins/autocomplete/components/autocomplete-dropdown/styled.js +15 -2
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/styled.js +20 -2
- package/dist/es2019/plugins/rich-inline-nodes/nodes/user/styled.js +14 -2
- package/dist/es2019/ui/jql-editor-controls-content/base-expand-toggle/styled.js +4 -0
- package/dist/es2019/ui/jql-editor-controls-content/base-search/index.js +3 -1
- package/dist/es2019/ui/jql-editor-controls-content/base-syntax-help/styled.js +5 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-editor-help/styled.js +12 -2
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/format/styled.js +5 -0
- package/dist/es2019/ui/jql-editor-layout/styled.js +157 -129
- package/dist/es2019/ui/tooltip-tag/styled.js +3 -0
- package/dist/esm/accessibility/styled.js +3 -0
- package/dist/esm/analytics/listener/analytics-web-client-wrapper.js +5 -5
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/common/styled.js +5 -1
- package/dist/esm/plugins/autocomplete/components/autocomplete-dropdown/styled.js +15 -2
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/styled.js +20 -2
- package/dist/esm/plugins/rich-inline-nodes/nodes/user/styled.js +14 -2
- package/dist/esm/ui/jql-editor-controls-content/base-expand-toggle/styled.js +4 -0
- package/dist/esm/ui/jql-editor-controls-content/base-search/index.js +3 -1
- package/dist/esm/ui/jql-editor-controls-content/base-syntax-help/styled.js +5 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-editor-help/styled.js +13 -3
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/format/styled.js +5 -0
- package/dist/esm/ui/jql-editor-layout/styled.js +44 -16
- package/dist/esm/ui/tooltip-tag/styled.js +3 -0
- package/dist/types/analytics/index.d.ts +2 -2
- package/dist/types/analytics/listener/analytics-web-client-wrapper.d.ts +3 -3
- package/dist/types/analytics/listener/handle-event.d.ts +3 -3
- package/dist/types/analytics/listener/jql-editor-analytics-listener.d.ts +3 -3
- package/dist/types/analytics/listener/process-event-payload.d.ts +2 -2
- package/dist/types/analytics/listener/types.d.ts +1 -1
- package/dist/types/analytics/types.d.ts +2 -2
- package/dist/types/analytics/util.d.ts +1 -1
- package/dist/types/async.d.ts +1 -1
- package/dist/types/commands/select-error-command/index.d.ts +1 -1
- package/dist/types/plugins/autocomplete/components/autocomplete/index.d.ts +1 -1
- package/dist/types/plugins/autocomplete/components/autocomplete-dropdown/index.d.ts +2 -2
- package/dist/types/plugins/autocomplete/components/autocomplete-option/index.d.ts +1 -1
- package/dist/types/plugins/autocomplete/components/types.d.ts +3 -3
- package/dist/types/plugins/autocomplete/constants.d.ts +1 -1
- package/dist/types/plugins/autocomplete/index.d.ts +1 -1
- package/dist/types/plugins/autocomplete/view.d.ts +6 -6
- package/dist/types/plugins/common/get-document-position/index.d.ts +1 -1
- package/dist/types/plugins/common/react-plugin-view.d.ts +3 -3
- package/dist/types/plugins/jql-ast/JQLEditorErrorStrategy.d.ts +4 -4
- package/dist/types/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.d.ts +1 -1
- package/dist/types/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.d.ts +4 -4
- package/dist/types/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.d.ts +2 -2
- package/dist/types/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.d.ts +2 -2
- package/dist/types/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.d.ts +2 -2
- package/dist/types/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.d.ts +5 -5
- package/dist/types/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.d.ts +2 -2
- package/dist/types/plugins/jql-ast/index.d.ts +4 -4
- package/dist/types/plugins/jql-ast/utils.d.ts +2 -2
- package/dist/types/plugins/jql-syntax-highlighting/index.d.ts +1 -1
- package/dist/types/plugins/jql-syntax-highlighting/visitor.d.ts +3 -3
- package/dist/types/plugins/rich-inline-nodes/index.d.ts +1 -1
- package/dist/types/plugins/rich-inline-nodes/nodes/types.d.ts +3 -3
- package/dist/types/plugins/rich-inline-nodes/nodes/user/index.d.ts +1 -1
- package/dist/types/plugins/rich-inline-nodes/types.d.ts +1 -1
- package/dist/types/plugins/rich-inline-nodes/util/create-node-spec.d.ts +1 -1
- package/dist/types/plugins/rich-inline-nodes/util/react-node-view.d.ts +4 -4
- package/dist/types/plugins/rich-inline-nodes/util/replace-nodes-transaction.d.ts +2 -2
- package/dist/types/plugins/validation-tooltip/view.d.ts +2 -2
- package/dist/types/schema/index.d.ts +6 -6
- package/dist/types/state/analytics/index.d.ts +2 -2
- package/dist/types/state/autocomplete/index.d.ts +2 -2
- package/dist/types/state/hydration/index.d.ts +2 -2
- package/dist/types/state/hydration/util.d.ts +1 -1
- package/dist/types/state/index.d.ts +13 -13
- package/dist/types/state/types.d.ts +10 -10
- package/dist/types/state/util.d.ts +7 -7
- package/dist/types/types.d.ts +1 -1
- package/dist/types/ui/error-boundary/index.d.ts +2 -2
- package/dist/types/ui/index.d.ts +1 -1
- package/dist/types/ui/intl-provider/index.d.ts +1 -1
- package/dist/types/ui/jql-editor/index.d.ts +2 -2
- package/dist/types/ui/jql-editor/types.d.ts +4 -4
- package/dist/types/ui/jql-editor-controls-content/base-expand-toggle/index.d.ts +1 -1
- package/dist/types/ui/jql-editor-controls-content/base-search/index.d.ts +1 -1
- package/dist/types/ui/jql-editor-controls-content/base-syntax-help/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-footer-content/jql-messages/format/index.d.ts +3 -3
- package/dist/types/ui/jql-editor-footer-content/jql-messages/infos/index.d.ts +1 -1
- package/dist/types/ui/jql-editor-footer-content/jql-messages/warnings/index.d.ts +1 -1
- package/dist/types/ui/jql-editor-layout/index.d.ts +1 -1
- package/dist/types/ui/jql-editor-portal-provider/context.d.ts +1 -1
- package/dist/types/ui/jql-editor-portal-provider/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-portal-provider/types.d.ts +2 -2
- package/dist/types/ui/jql-editor-view/index.d.ts +1 -1
- package/dist/types/ui/types.d.ts +1 -1
- package/dist/types/utils/document-text/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/index.d.ts +2 -2
- package/dist/types-ts4.5/analytics/listener/analytics-web-client-wrapper.d.ts +3 -3
- package/dist/types-ts4.5/analytics/listener/handle-event.d.ts +3 -3
- package/dist/types-ts4.5/analytics/listener/jql-editor-analytics-listener.d.ts +3 -3
- package/dist/types-ts4.5/analytics/listener/process-event-payload.d.ts +2 -2
- package/dist/types-ts4.5/analytics/listener/types.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types.d.ts +2 -2
- package/dist/types-ts4.5/analytics/util.d.ts +1 -1
- package/dist/types-ts4.5/async.d.ts +1 -1
- package/dist/types-ts4.5/commands/select-error-command/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/autocomplete/components/types.d.ts +3 -3
- package/dist/types-ts4.5/plugins/autocomplete/constants.d.ts +1 -1
- package/dist/types-ts4.5/plugins/autocomplete/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/autocomplete/view.d.ts +6 -6
- package/dist/types-ts4.5/plugins/common/get-document-position/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/common/react-plugin-view.d.ts +3 -3
- package/dist/types-ts4.5/plugins/jql-ast/JQLEditorErrorStrategy.d.ts +4 -4
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.d.ts +1 -1
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.d.ts +4 -4
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.d.ts +2 -2
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.d.ts +2 -2
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.d.ts +2 -2
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.d.ts +5 -5
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.d.ts +2 -2
- package/dist/types-ts4.5/plugins/jql-ast/index.d.ts +4 -4
- package/dist/types-ts4.5/plugins/jql-ast/utils.d.ts +2 -2
- package/dist/types-ts4.5/plugins/jql-syntax-highlighting/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/jql-syntax-highlighting/visitor.d.ts +3 -3
- package/dist/types-ts4.5/plugins/rich-inline-nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/types.d.ts +3 -3
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/rich-inline-nodes/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/create-node-spec.d.ts +1 -1
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/react-node-view.d.ts +4 -4
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/replace-nodes-transaction.d.ts +2 -2
- package/dist/types-ts4.5/plugins/validation-tooltip/view.d.ts +2 -2
- package/dist/types-ts4.5/schema/index.d.ts +6 -6
- package/dist/types-ts4.5/state/analytics/index.d.ts +2 -2
- package/dist/types-ts4.5/state/autocomplete/index.d.ts +2 -2
- package/dist/types-ts4.5/state/hydration/index.d.ts +2 -2
- package/dist/types-ts4.5/state/hydration/util.d.ts +1 -1
- package/dist/types-ts4.5/state/index.d.ts +13 -13
- package/dist/types-ts4.5/state/types.d.ts +10 -10
- package/dist/types-ts4.5/state/util.d.ts +7 -7
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/error-boundary/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/intl-provider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor/types.d.ts +4 -4
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-search/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/infos/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-layout/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/context.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/types.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-view/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/document-text/index.d.ts +1 -1
- package/package.json +124 -126
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Copyright 2023 Atlassian Pty Ltd
|
|
2
2
|
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
|
|
5
|
-
You may obtain a copy of the License at
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
6
5
|
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
7
|
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
limitations under the License.
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
|
@@ -7,4 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ScreenReaderText = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _styled2 = require("../common/styled");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
10
13
|
var ScreenReaderText = exports.ScreenReaderText = _styled.default.div(_styled2.hiddenMixin);
|
|
@@ -22,11 +22,11 @@ var sendEvent = exports.sendEvent = function sendEvent(logger, client) {
|
|
|
22
22
|
if (client) {
|
|
23
23
|
var gasEvent = _objectSpread({}, event);
|
|
24
24
|
/*
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
Merging this ts-ignore is not going to affect the type definitions of the package
|
|
26
|
+
there's a whole lot more wrong going on here than just this delete.
|
|
27
|
+
All the send methods on the client take a GasPurePayload object which requires actionSubject
|
|
28
|
+
actionSubject is missing on GasPayload | GasScreenEventPayload
|
|
29
|
+
*/
|
|
30
30
|
// @ts-ignore mergeable @fixme TypeScript 4.2.4 upgrade
|
|
31
31
|
delete gasEvent.eventType;
|
|
32
32
|
var withClient = function withClient(cb) {
|
|
@@ -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", "4.3.
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "4.3.2", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -8,7 +8,11 @@ exports.hiddenMixin = exports.TooltipContent = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
10
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
|
-
// eslint-disable-next-line @atlaskit/
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
16
|
var hiddenMixin = exports.hiddenMixin = (0, _react.css)({
|
|
13
17
|
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
14
18
|
clipPath: 'inset(50%)',
|
|
@@ -20,6 +24,8 @@ var hiddenMixin = exports.hiddenMixin = (0, _react.css)({
|
|
|
20
24
|
padding: 0,
|
|
21
25
|
position: 'absolute'
|
|
22
26
|
});
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
29
|
var TooltipContent = exports.TooltipContent = _styled.default.div({
|
|
24
30
|
fontFamily: (0, _constants.fontFamily)()
|
|
25
31
|
});
|
|
@@ -9,6 +9,11 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _constants = require("@atlaskit/theme/constants");
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
17
|
var AutocompleteContainer = exports.AutocompleteContainer = _styled.default.div({
|
|
13
18
|
position: 'absolute',
|
|
14
19
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
@@ -24,7 +29,9 @@ var AutocompleteContainer = exports.AutocompleteContainer = _styled.default.div(
|
|
|
24
29
|
},
|
|
25
30
|
marginLeft: "var(--ds-space-negative-100, -8px)",
|
|
26
31
|
marginTop: "var(--ds-space-200, 16px)"
|
|
27
|
-
},
|
|
32
|
+
},
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
34
|
+
function (_ref) {
|
|
28
35
|
var isOpen = _ref.isOpen;
|
|
29
36
|
return isOpen ? (0, _react.css)({
|
|
30
37
|
visibility: 'visible'
|
|
@@ -32,15 +39,21 @@ var AutocompleteContainer = exports.AutocompleteContainer = _styled.default.div(
|
|
|
32
39
|
visibility: 'hidden'
|
|
33
40
|
});
|
|
34
41
|
});
|
|
42
|
+
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
44
|
var AutocompleteOptionsContainer = exports.AutocompleteOptionsContainer = _styled.default.div({
|
|
36
45
|
maxHeight: '288px',
|
|
37
46
|
overflow: 'auto'
|
|
38
47
|
});
|
|
48
|
+
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
39
50
|
var OptionList = exports.OptionList = _styled.default.ul({
|
|
40
51
|
listStyle: 'none',
|
|
41
52
|
margin: "var(--ds-space-0, 0)",
|
|
42
53
|
padding: "var(--ds-space-0, 0)"
|
|
43
54
|
});
|
|
55
|
+
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
57
|
var AutocompleteLoadingFooter = exports.AutocompleteLoadingFooter = _styled.default.div({
|
|
45
58
|
display: 'flex',
|
|
46
59
|
justifyContent: 'center',
|
|
@@ -48,7 +61,9 @@ var AutocompleteLoadingFooter = exports.AutocompleteLoadingFooter = _styled.defa
|
|
|
48
61
|
fontStyle: 'italic',
|
|
49
62
|
padding: "var(--ds-space-150, 12px)",
|
|
50
63
|
textAlign: 'center'
|
|
51
|
-
},
|
|
64
|
+
},
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
66
|
+
function (_ref2) {
|
|
52
67
|
var hasOptions = _ref2.hasOptions;
|
|
53
68
|
return hasOptions && {
|
|
54
69
|
borderTop: "solid 1px ".concat("var(--ds-border, ".concat(_colors.N40, ")")),
|
|
@@ -8,26 +8,37 @@ exports.TooltipContent = exports.OptionName = exports.OptionListItem = exports.O
|
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
14
|
var TooltipContent = exports.TooltipContent = _styled.default.div({
|
|
12
15
|
fontFamily: (0, _constants.fontFamily)()
|
|
13
16
|
});
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
19
|
var OptionListItem = exports.OptionListItem = _styled.default.li({
|
|
15
20
|
cursor: 'pointer',
|
|
16
21
|
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-100, 8px)"),
|
|
17
22
|
fontFamily: (0, _constants.codeFontFamily)(),
|
|
18
23
|
lineHeight: '24px'
|
|
19
|
-
},
|
|
24
|
+
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
26
|
+
function (_ref) {
|
|
20
27
|
var isSelected = _ref.isSelected;
|
|
21
28
|
return isSelected && {
|
|
22
29
|
background: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20, ")")
|
|
23
30
|
};
|
|
24
|
-
},
|
|
31
|
+
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
33
|
+
function (_ref2) {
|
|
25
34
|
var isDeprecated = _ref2.isDeprecated;
|
|
26
35
|
return isDeprecated && {
|
|
27
36
|
cursor: 'default',
|
|
28
37
|
color: "var(--ds-text-disabled, ".concat(_colors.N50, ")")
|
|
29
38
|
};
|
|
30
39
|
});
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
42
|
var OptionName = exports.OptionName = _styled.default.div({
|
|
32
43
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
33
44
|
overflow: 'hidden',
|
|
@@ -36,21 +47,29 @@ var OptionName = exports.OptionName = _styled.default.div({
|
|
|
36
47
|
// Added so that overflowed option names do not squish the deprecated info icon
|
|
37
48
|
flex: 1
|
|
38
49
|
});
|
|
50
|
+
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
39
52
|
var DeprecatedOptionContainer = exports.DeprecatedOptionContainer = _styled.default.div({
|
|
40
53
|
color: "var(--ds-text-disabled, ".concat(_colors.N50, ")"),
|
|
41
54
|
display: 'flex',
|
|
42
55
|
justifyContent: 'space-between',
|
|
43
56
|
opacity: 0.6
|
|
44
57
|
});
|
|
58
|
+
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
45
60
|
var OptionHighlight = exports.OptionHighlight = _styled.default.span({
|
|
46
61
|
fontWeight: 'bold'
|
|
47
62
|
});
|
|
63
|
+
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
48
65
|
var FieldType = exports.FieldType = _styled.default.div({
|
|
49
66
|
display: 'flex',
|
|
50
67
|
alignItems: 'center',
|
|
51
68
|
marginTop: "var(--ds-space-negative-025, -2px)",
|
|
52
69
|
color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")")
|
|
53
70
|
});
|
|
71
|
+
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
54
73
|
var FieldTypeIcon = exports.FieldTypeIcon = _styled.default.span({
|
|
55
74
|
display: 'flex',
|
|
56
75
|
marginRight: "var(--ds-space-050, 4px)"
|
|
@@ -8,6 +8,11 @@ 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 _colors = require("@atlaskit/theme/colors");
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
16
|
var UserContainer = exports.UserContainer = _styled.default.span({
|
|
12
17
|
display: 'inline-flex',
|
|
13
18
|
alignItems: 'baseline',
|
|
@@ -15,11 +20,14 @@ var UserContainer = exports.UserContainer = _styled.default.span({
|
|
|
15
20
|
borderRadius: '10px',
|
|
16
21
|
cursor: 'pointer',
|
|
17
22
|
userSelect: 'none'
|
|
18
|
-
},
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
25
|
+
function (_ref) {
|
|
19
26
|
var selected = _ref.selected,
|
|
20
27
|
error = _ref.error;
|
|
21
28
|
if (selected) {
|
|
22
29
|
if (error) {
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
31
|
return (0, _react.css)({
|
|
24
32
|
color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
25
33
|
backgroundColor: "var(--ds-background-danger-bold, ".concat(_colors.R400, ")"),
|
|
@@ -29,6 +37,7 @@ var UserContainer = exports.UserContainer = _styled.default.span({
|
|
|
29
37
|
textDecorationColor: "var(--ds-text-inverse, ".concat(_colors.N0, ")")
|
|
30
38
|
});
|
|
31
39
|
} else {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
32
41
|
return (0, _react.css)({
|
|
33
42
|
color: "var(--ds-text, ".concat(_colors.N0, ")"),
|
|
34
43
|
backgroundColor: "var(--ds-background-selected, ".concat(_colors.N500, ")"),
|
|
@@ -37,6 +46,7 @@ var UserContainer = exports.UserContainer = _styled.default.span({
|
|
|
37
46
|
}
|
|
38
47
|
} else {
|
|
39
48
|
if (error) {
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
40
50
|
return (0, _react.css)({
|
|
41
51
|
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
42
52
|
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N40, ")"),
|
|
@@ -49,6 +59,7 @@ var UserContainer = exports.UserContainer = _styled.default.span({
|
|
|
49
59
|
}
|
|
50
60
|
});
|
|
51
61
|
} else {
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
52
63
|
return (0, _react.css)({
|
|
53
64
|
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
54
65
|
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N40, ")"),
|
|
@@ -59,6 +70,8 @@ var UserContainer = exports.UserContainer = _styled.default.span({
|
|
|
59
70
|
}
|
|
60
71
|
}
|
|
61
72
|
});
|
|
73
|
+
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
62
75
|
var NameContainer = exports.NameContainer = _styled.default.span({
|
|
63
76
|
marginLeft: "var(--ds-space-075, 6px)",
|
|
64
77
|
marginRight: "var(--ds-space-100, 8px)",
|
|
@@ -66,11 +79,12 @@ var NameContainer = exports.NameContainer = _styled.default.span({
|
|
|
66
79
|
});
|
|
67
80
|
|
|
68
81
|
/* Override Avatar styles to match design spec */
|
|
69
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
82
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
70
83
|
var AvatarWrapper = exports.AvatarWrapper = _styled.default.div({
|
|
71
84
|
height: "var(--ds-space-200, 16px)",
|
|
72
85
|
width: "var(--ds-space-200, 16px)",
|
|
73
86
|
alignSelf: 'center',
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
74
88
|
'> div span': {
|
|
75
89
|
margin: "var(--ds-space-0, 0px)"
|
|
76
90
|
}
|
|
@@ -7,8 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ExpandToggleContainer = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
13
|
var ExpandToggleContainer = exports.ExpandToggleContainer = _styled.default.div({
|
|
11
14
|
/* Override background styles for our button to match designs */
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
12
16
|
'> button': {
|
|
13
17
|
borderRadius: '100%',
|
|
14
18
|
/* Fill the remaining vertical space for a single line in our editor and space between buttons */
|
|
@@ -16,6 +20,7 @@ var ExpandToggleContainer = exports.ExpandToggleContainer = _styled.default.div(
|
|
|
16
20
|
'&:hover': {
|
|
17
21
|
background: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N40, ")")
|
|
18
22
|
},
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
19
24
|
"&:active, &[data-firefox-is-active='true']": {
|
|
20
25
|
background: "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.N50, ")")
|
|
21
26
|
}
|
|
@@ -29,7 +29,9 @@ var BaseSearch = exports.BaseSearch = function BaseSearch(_ref) {
|
|
|
29
29
|
return /*#__PURE__*/_react.default.createElement(_button.LoadingButton, {
|
|
30
30
|
"aria-label": label,
|
|
31
31
|
isDisabled: isDisabled,
|
|
32
|
-
testId: "jql-editor-search"
|
|
32
|
+
testId: "jql-editor-search"
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
|
+
,
|
|
33
35
|
style: style,
|
|
34
36
|
appearance: 'primary',
|
|
35
37
|
spacing: 'none',
|
|
@@ -7,7 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.SyntaxHelpContainer = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
13
|
var SyntaxHelpContainer = exports.SyntaxHelpContainer = _styled.default.div({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
11
15
|
'> a': {
|
|
12
16
|
background: "var(--ds-background-neutral-bold, ".concat(_colors.N70, ")"),
|
|
13
17
|
borderRadius: '100%',
|
|
@@ -18,9 +22,11 @@ var SyntaxHelpContainer = exports.SyntaxHelpContainer = _styled.default.div({
|
|
|
18
22
|
'&:focus': {
|
|
19
23
|
background: "var(--ds-background-neutral-bold, ".concat(_colors.N70, ")")
|
|
20
24
|
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
26
|
"&:active, &[data-firefox-is-active='true']": {
|
|
22
27
|
background: "var(--ds-background-neutral-bold-pressed, ".concat(_colors.N600, ")")
|
|
23
28
|
},
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
30
|
'&[disabled]': {
|
|
25
31
|
background: "var(--ds-background-disabled, ".concat(_colors.N50, ")")
|
|
26
32
|
}
|
|
@@ -8,21 +8,33 @@ exports.HelpContainer = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
10
|
var _styled2 = require("../../../common/styled");
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
16
|
var HelpContainer = exports.HelpContainer = _styled.default.div({
|
|
12
17
|
display: 'flex',
|
|
13
18
|
marginLeft: 'auto',
|
|
14
19
|
marginRight: 0,
|
|
15
20
|
flexShrink: 0,
|
|
16
21
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
23
|
'> * + *': {
|
|
18
24
|
marginLeft: "var(--ds-space-200, 16px)"
|
|
19
25
|
}
|
|
20
|
-
},
|
|
21
|
-
|
|
26
|
+
},
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
28
|
+
function (props) {
|
|
29
|
+
return props.isVisible ?
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
31
|
+
(0, _react.css)({
|
|
22
32
|
visibility: 'visible',
|
|
23
33
|
opacity: 1,
|
|
24
34
|
transition: 'opacity 250ms cubic-bezier(0.15, 1, 0.3, 1)'
|
|
25
|
-
}) :
|
|
35
|
+
}) :
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
|
+
(0, _react.css)(_styled2.hiddenMixin, {
|
|
26
38
|
opacity: 0
|
|
27
39
|
});
|
|
28
40
|
});
|
|
@@ -6,11 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.MessageList = exports.MessageContainer = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
12
|
var MessageContainer = exports.MessageContainer = _styled.default.div(function (props) {
|
|
10
13
|
return {
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
15
|
paddingLeft: props.isSearch ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)"
|
|
12
16
|
};
|
|
13
17
|
});
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
20
|
var MessageList = exports.MessageList = _styled.default.ul({
|
|
15
21
|
margin: 0,
|
|
16
22
|
paddingLeft: "var(--ds-space-300, 24px)"
|
|
@@ -11,7 +11,8 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _constants = require("@atlaskit/theme/constants");
|
|
13
13
|
var _constants2 = require("../../plugins/validation-tooltip/constants");
|
|
14
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
14
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
16
|
var fadeIn = (0, _react.keyframes)({
|
|
16
17
|
from: {
|
|
17
18
|
opacity: 0
|
|
@@ -30,8 +31,10 @@ var fadeOut = (0, _react.keyframes)({
|
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
|
|
33
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression --
|
|
34
|
-
var EditorMain = exports.EditorMain = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
|
+
var EditorMain = exports.EditorMain = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: ", "px;\n\tflex-grow: 1;\n\n\t/* These styles and animations are derived from @atlaskit/tooltip */\n\n\t.", " {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\tborder-radius: ", ";\n\t\tbox-sizing: border-box;\n\t\tfont-size: 12px;\n\t\tline-height: 1.3;\n\t\tmax-width: 240px;\n\t\tpadding: ", " ", ";\n\t\tword-wrap: break-word;\n\t\toverflow-wrap: break-word;\n\t\tz-index: ", ";\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t\tvisibility: hidden;\n\n\t\t/* Horizontally center and vertically position above the target element */\n\t\ttransform: translate(-50%, calc(-100% - ", "));\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t\tvisibility: visible;\n\t\t}\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t}\n\t}\n"])), (0, _constants.fontFamily)(), (0, _constants.fontSize)(), _constants2.TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(_colors.N800, ")"), "var(--ds-text-inverse, ".concat(_colors.N0, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", _constants.layers.tooltip(), "var(--ds-space-200, 16px)", _constants2.TOOLTIP_ENTER_CLASSNAME, fadeIn, _constants2.TOOLTIP_EXIT_CLASSNAME, fadeOut);
|
|
36
|
+
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
38
|
var EditorFooter = exports.EditorFooter = _styled.default.div({
|
|
36
39
|
display: 'flex',
|
|
37
40
|
justifyContent: 'space-between',
|
|
@@ -45,6 +48,7 @@ var getEditorInputVerticalPadding = function getEditorInputVerticalPadding(isCom
|
|
|
45
48
|
return isCompact ? 3 : 7;
|
|
46
49
|
};
|
|
47
50
|
var editorInputHorizontalPadding = 6;
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
48
52
|
var EditorViewContainer = exports.EditorViewContainer = _styled.default.div({
|
|
49
53
|
backgroundColor: "var(--ds-background-input, ".concat(_colors.N10, ")"),
|
|
50
54
|
borderStyle: 'solid',
|
|
@@ -57,35 +61,53 @@ var EditorViewContainer = exports.EditorViewContainer = _styled.default.div({
|
|
|
57
61
|
display: 'flex',
|
|
58
62
|
overflow: 'auto',
|
|
59
63
|
transition: 'background-color 0.2s ease-in-out, border-color 0.2s ease-in-out'
|
|
60
|
-
},
|
|
61
|
-
|
|
64
|
+
},
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
66
|
+
function (props) {
|
|
67
|
+
return props.editorViewIsInvalid &&
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
69
|
+
(0, _react.css)({
|
|
62
70
|
borderColor: "var(--ds-border-danger, ".concat(_colors.R400, ")"),
|
|
63
71
|
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border-danger, ".concat(_colors.R400, ")"))
|
|
64
72
|
});
|
|
65
|
-
},
|
|
66
|
-
|
|
73
|
+
},
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
75
|
+
function (props) {
|
|
76
|
+
return props.editorViewHasFocus ?
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
78
|
+
(0, _react.css)({
|
|
67
79
|
backgroundColor: "var(--ds-surface, ".concat(_colors.N0, ")"),
|
|
68
80
|
borderColor: "var(--ds-border-focused, ".concat(_colors.B200, ")"),
|
|
69
81
|
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border-focused, ".concat(_colors.B200, ")"))
|
|
70
|
-
}) :
|
|
71
|
-
|
|
82
|
+
}) :
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
84
|
+
(0, _react.css)({
|
|
85
|
+
'&:hover': {
|
|
72
86
|
backgroundColor: "var(--ds-background-input-hovered, ".concat(_colors.N30, ")")
|
|
73
87
|
}
|
|
74
88
|
});
|
|
75
89
|
});
|
|
90
|
+
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
76
92
|
var ReadOnlyEditorViewContainer = exports.ReadOnlyEditorViewContainer = (0, _styled.default)(EditorViewContainer)({
|
|
77
93
|
backgroundColor: "var(--ds-background-disabled, ".concat(_colors.N30, ")"),
|
|
78
94
|
color: "var(--ds-text-disabled, ".concat(_colors.N100, ")"),
|
|
79
95
|
pointerEvents: 'none'
|
|
80
96
|
});
|
|
97
|
+
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
81
99
|
var LineNumberToolbar = exports.LineNumberToolbar = _styled.default.div({
|
|
82
100
|
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N30, ")"),
|
|
83
101
|
flexShrink: 0,
|
|
84
102
|
width: '30px',
|
|
85
103
|
position: 'sticky',
|
|
86
104
|
top: 0
|
|
87
|
-
},
|
|
88
|
-
|
|
105
|
+
},
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
107
|
+
function (props) {
|
|
108
|
+
return !props.lineNumbersVisible &&
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
110
|
+
(0, _react.css)({
|
|
89
111
|
display: 'none'
|
|
90
112
|
});
|
|
91
113
|
});
|
|
@@ -93,8 +115,8 @@ var LineNumberToolbar = exports.LineNumberToolbar = _styled.default.div({
|
|
|
93
115
|
/**
|
|
94
116
|
* The main div which the Prosemirror editor will be rendered into.
|
|
95
117
|
*/
|
|
96
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression --
|
|
97
|
-
var EditorView = exports.EditorView = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
118
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
119
|
+
var EditorView = exports.EditorView = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tcounter-reset: lineNumber;\n\tflex-grow: 1;\n\n\ttransition:\n\t\theight 250ms cubic-bezier(0.15, 1, 0.3, 1),\n\t\tmax-height 250ms cubic-bezier(0.15, 1, 0.3, 1);\n\tmax-height: ", "px;\n\n\tline-height: ", ";\n\tfont-family: ", ";\n\tword-break: break-word;\n\toverflow-wrap: anywhere;\n\twhite-space: pre-wrap;\n\n\t&[data-expanded] {\n\t\theight: ", "px;\n\t\tmax-height: ", "px;\n\t}\n\n\t.ProseMirror {\n\t\tcolor: ", ";\n\t\tpadding: ", "px\n\t\t\t", "px;\n\n\t\t&:focus {\n\t\t\toutline: none;\n\t\t}\n\n\t\t.mark-token-keyword {\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t.mark-token-field {\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t.mark-token-operator {\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t.mark-token-error {\n\t\t\tcolor: ", ";\n\t\t\ttext-decoration: wavy underline;\n\t\t\ttext-decoration-thickness: 1px;\n\t\t\ttext-decoration-skip-ink: none;\n\t\t}\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t\tcounter-increment: lineNumber;\n\t\tposition: relative;\n\n\t\t/* Show the current line number before each paragraph block. */\n\n\t\t&::before {\n\t\t\tcontent: counter(lineNumber);\n\t\t\tcolor: ", ";\n\t\t\tfont-size: 10px;\n\t\t\tline-height: ", ";\n\t\t\tpadding: 0 ", " 0 ", ";\n\t\t\tposition: absolute;\n\t\t\tbox-sizing: border-box;\n\t\t\t/* Shift the line number tag 100% (plus 8px padding) to the left to position it inside the LineNumberToolbar */\n\t\t\ttransform: translateX(calc(-100% - ", "));\n\n\t\t\t/* We can fit 3 digits before ellipses. This is not very responsive but saves us having to add expensive width\n recalculation logic to the LineNumberToolbar for a scenario that *should* never happen. */\n\t\t\tmax-width: 30px;\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\t\t\twhite-space: nowrap;\n\n\t\t\t", "\n\t\t}\n\t}\n"])), function (props) {
|
|
98
120
|
return rowHeight * props.defaultMaxRows + getEditorInputVerticalPadding(props.isCompact) * 2;
|
|
99
121
|
}, rowHeight / (0, _constants.fontSize)(), (0, _constants.codeFontFamily)(), function (props) {
|
|
100
122
|
return rowHeight * props.expandedRows + getEditorInputVerticalPadding(props.isCompact) * 2;
|
|
@@ -104,27 +126,32 @@ var EditorView = exports.EditorView = _styled.default.div(_templateObject2 || (_
|
|
|
104
126
|
return getEditorInputVerticalPadding(props.isCompact);
|
|
105
127
|
}, editorInputHorizontalPadding, "var(--ds-text-accent-purple, ".concat(_colors.P400, ")"), "var(--ds-text-accent-blue, ".concat(_colors.B300, ")"), "var(--ds-text-accent-green, ".concat(_colors.G300, ")"), "var(--ds-text-danger, ".concat(_colors.R400, ")"), "var(--ds-text-subtlest, ".concat(_colors.N100, ")"), rowHeight / 10, "var(--ds-space-100, 8px)", "var(--ds-space-025, 2px)", "var(--ds-space-100, 8px)", function (props) {
|
|
106
128
|
return !props.lineNumbersVisible && // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
107
|
-
(0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
129
|
+
(0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\tdisplay: none;\n\t\t\t\t"])));
|
|
108
130
|
});
|
|
109
131
|
|
|
110
132
|
// FIXME: convert-props-syntax rule doesn't catch this
|
|
111
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
|
|
112
|
-
var ReadOnlyEditorView = exports.ReadOnlyEditorView = (0, _styled.default)(EditorView)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
133
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
134
|
+
var ReadOnlyEditorView = exports.ReadOnlyEditorView = (0, _styled.default)(EditorView)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t/* We need to replicate padding from the inner prosemirror element in our read only state. That means we also need\n recompute max height excluding the child padding. */\n\tpadding: ", "px\n\t\t", "px;\n\tmax-height: ", "px;\n\n\t> p {\n\t\t/* Prevent collapsing empty paragraphs */\n\t\tmin-height: ", "px;\n\t}\n"])), function (props) {
|
|
113
135
|
return getEditorInputVerticalPadding(props.isCompact);
|
|
114
136
|
}, editorInputHorizontalPadding, function (props) {
|
|
115
137
|
return rowHeight * props.defaultMaxRows;
|
|
116
138
|
}, rowHeight);
|
|
139
|
+
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
117
141
|
var EditorControls = exports.EditorControls = _styled.default.div(function (props) {
|
|
118
142
|
return {
|
|
119
143
|
alignItems: 'center',
|
|
120
144
|
display: 'flex',
|
|
121
145
|
flexShrink: 0,
|
|
122
146
|
marginLeft: 'auto',
|
|
123
|
-
marginRight: "".concat(
|
|
147
|
+
marginRight: "".concat(
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
149
|
+
props.isSearch ? getEditorInputVerticalPadding(props.isCompact) - 1 // the search button needs the same vertical & horizontal spacing
|
|
124
150
|
: editorInputHorizontalPadding - 3, "px"),
|
|
125
151
|
lineHeight: 'normal',
|
|
126
152
|
position: 'sticky',
|
|
127
153
|
top: 0,
|
|
154
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
128
155
|
height: "".concat(rowHeight + 2 * getEditorInputVerticalPadding(props.isCompact), "px")
|
|
129
156
|
};
|
|
130
157
|
});
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.StyledTooltipTag = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
12
|
var StyledTooltipTag = exports.StyledTooltipTag = _styled.default.div({
|
|
10
13
|
display: 'flex'
|
|
11
14
|
});
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
2
3
|
import { hiddenMixin } from '../common/styled';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
3
6
|
export const ScreenReaderText = styled.div(hiddenMixin);
|
|
@@ -13,11 +13,11 @@ export const sendEvent = (logger, client) => event => {
|
|
|
13
13
|
...event
|
|
14
14
|
};
|
|
15
15
|
/*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
Merging this ts-ignore is not going to affect the type definitions of the package
|
|
17
|
+
there's a whole lot more wrong going on here than just this delete.
|
|
18
|
+
All the send methods on the client take a GasPurePayload object which requires actionSubject
|
|
19
|
+
actionSubject is missing on GasPayload | GasScreenEventPayload
|
|
20
|
+
*/
|
|
21
21
|
// @ts-ignore mergeable @fixme TypeScript 4.2.4 upgrade
|
|
22
22
|
delete gasEvent.eventType;
|
|
23
23
|
const withClient = cb => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
|
|
2
2
|
export const useJqlEditorAnalytics = analyticsSource => {
|
|
3
|
-
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.3.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.3.2", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
4
|
import styled from '@emotion/styled';
|
|
3
5
|
import { fontFamily } from '@atlaskit/theme/constants';
|
|
4
6
|
|
|
5
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
8
|
export const hiddenMixin = css({
|
|
7
9
|
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
8
10
|
clipPath: 'inset(50%)',
|
|
@@ -14,6 +16,8 @@ export const hiddenMixin = css({
|
|
|
14
16
|
padding: 0,
|
|
15
17
|
position: 'absolute'
|
|
16
18
|
});
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
17
21
|
export const TooltipContent = styled.div({
|
|
18
22
|
fontFamily: fontFamily()
|
|
19
23
|
});
|