@atlaskit/jql-editor 4.3.0 → 4.3.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 +565 -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
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
2
5
|
export const StyledTooltipTag = styled.div({
|
|
3
6
|
display: 'flex'
|
|
4
7
|
});
|
|
@@ -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 var ScreenReaderText = styled.div(hiddenMixin);
|
|
@@ -15,11 +15,11 @@ export var sendEvent = function sendEvent(logger, client) {
|
|
|
15
15
|
if (client) {
|
|
16
16
|
var gasEvent = _objectSpread({}, event);
|
|
17
17
|
/*
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
Merging this ts-ignore is not going to affect the type definitions of the package
|
|
19
|
+
there's a whole lot more wrong going on here than just this delete.
|
|
20
|
+
All the send methods on the client take a GasPurePayload object which requires actionSubject
|
|
21
|
+
actionSubject is missing on GasPayload | GasScreenEventPayload
|
|
22
|
+
*/
|
|
23
23
|
// @ts-ignore mergeable @fixme TypeScript 4.2.4 upgrade
|
|
24
24
|
delete gasEvent.eventType;
|
|
25
25
|
var withClient = function withClient(cb) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
|
|
2
2
|
export var useJqlEditorAnalytics = function useJqlEditorAnalytics(analyticsSource) {
|
|
3
|
-
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.3.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.3.1", 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, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
8
|
export var hiddenMixin = css({
|
|
7
9
|
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
8
10
|
clipPath: 'inset(50%)',
|
|
@@ -14,6 +16,8 @@ export var 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 var TooltipContent = styled.div({
|
|
18
22
|
fontFamily: fontFamily()
|
|
19
23
|
});
|
|
@@ -1,7 +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 { N200, N40, N50A, N60A } from '@atlaskit/theme/colors';
|
|
4
6
|
import { layers } from '@atlaskit/theme/constants';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
8
|
export var AutocompleteContainer = styled.div({
|
|
6
9
|
position: 'absolute',
|
|
7
10
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
@@ -17,7 +20,9 @@ export var AutocompleteContainer = styled.div({
|
|
|
17
20
|
},
|
|
18
21
|
marginLeft: "var(--ds-space-negative-100, -8px)",
|
|
19
22
|
marginTop: "var(--ds-space-200, 16px)"
|
|
20
|
-
},
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
|
+
function (_ref) {
|
|
21
26
|
var isOpen = _ref.isOpen;
|
|
22
27
|
return isOpen ? css({
|
|
23
28
|
visibility: 'visible'
|
|
@@ -25,15 +30,21 @@ export var AutocompleteContainer = styled.div({
|
|
|
25
30
|
visibility: 'hidden'
|
|
26
31
|
});
|
|
27
32
|
});
|
|
33
|
+
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
35
|
export var AutocompleteOptionsContainer = styled.div({
|
|
29
36
|
maxHeight: '288px',
|
|
30
37
|
overflow: 'auto'
|
|
31
38
|
});
|
|
39
|
+
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
41
|
export var OptionList = styled.ul({
|
|
33
42
|
listStyle: 'none',
|
|
34
43
|
margin: "var(--ds-space-0, 0)",
|
|
35
44
|
padding: "var(--ds-space-0, 0)"
|
|
36
45
|
});
|
|
46
|
+
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
37
48
|
export var AutocompleteLoadingFooter = styled.div({
|
|
38
49
|
display: 'flex',
|
|
39
50
|
justifyContent: 'center',
|
|
@@ -41,7 +52,9 @@ export var AutocompleteLoadingFooter = styled.div({
|
|
|
41
52
|
fontStyle: 'italic',
|
|
42
53
|
padding: "var(--ds-space-150, 12px)",
|
|
43
54
|
textAlign: 'center'
|
|
44
|
-
},
|
|
55
|
+
},
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
57
|
+
function (_ref2) {
|
|
45
58
|
var hasOptions = _ref2.hasOptions;
|
|
46
59
|
return hasOptions && {
|
|
47
60
|
borderTop: "solid 1px ".concat("var(--ds-border, ".concat(N40, ")")),
|
|
@@ -1,26 +1,36 @@
|
|
|
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 { N100, N20, N50, N800 } from '@atlaskit/theme/colors';
|
|
3
4
|
import { codeFontFamily, fontFamily } from '@atlaskit/theme/constants';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
6
|
export var TooltipContent = styled.div({
|
|
5
7
|
fontFamily: fontFamily()
|
|
6
8
|
});
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
11
|
export var OptionListItem = styled.li({
|
|
8
12
|
cursor: 'pointer',
|
|
9
13
|
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-100, 8px)"),
|
|
10
14
|
fontFamily: codeFontFamily(),
|
|
11
15
|
lineHeight: '24px'
|
|
12
|
-
},
|
|
16
|
+
},
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
18
|
+
function (_ref) {
|
|
13
19
|
var isSelected = _ref.isSelected;
|
|
14
20
|
return isSelected && {
|
|
15
21
|
background: "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")")
|
|
16
22
|
};
|
|
17
|
-
},
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
25
|
+
function (_ref2) {
|
|
18
26
|
var isDeprecated = _ref2.isDeprecated;
|
|
19
27
|
return isDeprecated && {
|
|
20
28
|
cursor: 'default',
|
|
21
29
|
color: "var(--ds-text-disabled, ".concat(N50, ")")
|
|
22
30
|
};
|
|
23
31
|
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
24
34
|
export var OptionName = styled.div({
|
|
25
35
|
color: "var(--ds-text, ".concat(N800, ")"),
|
|
26
36
|
overflow: 'hidden',
|
|
@@ -29,21 +39,29 @@ export var OptionName = styled.div({
|
|
|
29
39
|
// Added so that overflowed option names do not squish the deprecated info icon
|
|
30
40
|
flex: 1
|
|
31
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
|
|
32
44
|
export var DeprecatedOptionContainer = styled.div({
|
|
33
45
|
color: "var(--ds-text-disabled, ".concat(N50, ")"),
|
|
34
46
|
display: 'flex',
|
|
35
47
|
justifyContent: 'space-between',
|
|
36
48
|
opacity: 0.6
|
|
37
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
|
|
38
52
|
export var OptionHighlight = styled.span({
|
|
39
53
|
fontWeight: 'bold'
|
|
40
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
|
|
41
57
|
export var FieldType = styled.div({
|
|
42
58
|
display: 'flex',
|
|
43
59
|
alignItems: 'center',
|
|
44
60
|
marginTop: "var(--ds-space-negative-025, -2px)",
|
|
45
61
|
color: "var(--ds-text-subtlest, ".concat(N100, ")")
|
|
46
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
|
|
47
65
|
export var FieldTypeIcon = styled.span({
|
|
48
66
|
display: 'flex',
|
|
49
67
|
marginRight: "var(--ds-space-050, 4px)"
|
|
@@ -1,6 +1,9 @@
|
|
|
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 { N0, N40, N50, N500, R400 } from '@atlaskit/theme/colors';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
7
|
export var UserContainer = styled.span({
|
|
5
8
|
display: 'inline-flex',
|
|
6
9
|
alignItems: 'baseline',
|
|
@@ -8,11 +11,14 @@ export var UserContainer = styled.span({
|
|
|
8
11
|
borderRadius: '10px',
|
|
9
12
|
cursor: 'pointer',
|
|
10
13
|
userSelect: 'none'
|
|
11
|
-
},
|
|
14
|
+
},
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
16
|
+
function (_ref) {
|
|
12
17
|
var selected = _ref.selected,
|
|
13
18
|
error = _ref.error;
|
|
14
19
|
if (selected) {
|
|
15
20
|
if (error) {
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
22
|
return css({
|
|
17
23
|
color: "var(--ds-text-inverse, ".concat(N0, ")"),
|
|
18
24
|
backgroundColor: "var(--ds-background-danger-bold, ".concat(R400, ")"),
|
|
@@ -22,6 +28,7 @@ export var UserContainer = styled.span({
|
|
|
22
28
|
textDecorationColor: "var(--ds-text-inverse, ".concat(N0, ")")
|
|
23
29
|
});
|
|
24
30
|
} else {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
32
|
return css({
|
|
26
33
|
color: "var(--ds-text, ".concat(N0, ")"),
|
|
27
34
|
backgroundColor: "var(--ds-background-selected, ".concat(N500, ")"),
|
|
@@ -30,6 +37,7 @@ export var UserContainer = styled.span({
|
|
|
30
37
|
}
|
|
31
38
|
} else {
|
|
32
39
|
if (error) {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
41
|
return css({
|
|
34
42
|
color: "var(--ds-text-subtle, ".concat(N500, ")"),
|
|
35
43
|
backgroundColor: "var(--ds-background-neutral, ".concat(N40, ")"),
|
|
@@ -42,6 +50,7 @@ export var UserContainer = styled.span({
|
|
|
42
50
|
}
|
|
43
51
|
});
|
|
44
52
|
} else {
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
45
54
|
return css({
|
|
46
55
|
color: "var(--ds-text-subtle, ".concat(N500, ")"),
|
|
47
56
|
backgroundColor: "var(--ds-background-neutral, ".concat(N40, ")"),
|
|
@@ -52,6 +61,8 @@ export var UserContainer = styled.span({
|
|
|
52
61
|
}
|
|
53
62
|
}
|
|
54
63
|
});
|
|
64
|
+
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
55
66
|
export var NameContainer = styled.span({
|
|
56
67
|
marginLeft: "var(--ds-space-075, 6px)",
|
|
57
68
|
marginRight: "var(--ds-space-100, 8px)",
|
|
@@ -59,11 +70,12 @@ export var NameContainer = styled.span({
|
|
|
59
70
|
});
|
|
60
71
|
|
|
61
72
|
/* Override Avatar styles to match design spec */
|
|
62
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
73
|
+
// 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
|
|
63
74
|
export var AvatarWrapper = styled.div({
|
|
64
75
|
height: "var(--ds-space-200, 16px)",
|
|
65
76
|
width: "var(--ds-space-200, 16px)",
|
|
66
77
|
alignSelf: 'center',
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
67
79
|
'> div span': {
|
|
68
80
|
margin: "var(--ds-space-0, 0px)"
|
|
69
81
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
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 { N40, N50 } from '@atlaskit/theme/colors';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
3
5
|
export var ExpandToggleContainer = styled.div({
|
|
4
6
|
/* Override background styles for our button to match designs */
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
5
8
|
'> button': {
|
|
6
9
|
borderRadius: '100%',
|
|
7
10
|
/* Fill the remaining vertical space for a single line in our editor and space between buttons */
|
|
@@ -9,6 +12,7 @@ export var ExpandToggleContainer = styled.div({
|
|
|
9
12
|
'&:hover': {
|
|
10
13
|
background: "var(--ds-background-neutral-subtle-hovered, ".concat(N40, ")")
|
|
11
14
|
},
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
12
16
|
"&:active, &[data-firefox-is-active='true']": {
|
|
13
17
|
background: "var(--ds-background-neutral-subtle-pressed, ".concat(N50, ")")
|
|
14
18
|
}
|
|
@@ -19,7 +19,9 @@ export var BaseSearch = function BaseSearch(_ref) {
|
|
|
19
19
|
return /*#__PURE__*/React.createElement(LoadingButton, {
|
|
20
20
|
"aria-label": label,
|
|
21
21
|
isDisabled: isDisabled,
|
|
22
|
-
testId: "jql-editor-search"
|
|
22
|
+
testId: "jql-editor-search"
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
24
|
+
,
|
|
23
25
|
style: style,
|
|
24
26
|
appearance: 'primary',
|
|
25
27
|
spacing: 'none',
|
|
@@ -1,6 +1,9 @@
|
|
|
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 { N50, N500, N600, N70 } from '@atlaskit/theme/colors';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
3
5
|
export var SyntaxHelpContainer = styled.div({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
4
7
|
'> a': {
|
|
5
8
|
background: "var(--ds-background-neutral-bold, ".concat(N70, ")"),
|
|
6
9
|
borderRadius: '100%',
|
|
@@ -11,9 +14,11 @@ export var SyntaxHelpContainer = styled.div({
|
|
|
11
14
|
'&:focus': {
|
|
12
15
|
background: "var(--ds-background-neutral-bold, ".concat(N70, ")")
|
|
13
16
|
},
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
18
|
"&:active, &[data-firefox-is-active='true']": {
|
|
15
19
|
background: "var(--ds-background-neutral-bold-pressed, ".concat(N600, ")")
|
|
16
20
|
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
22
|
'&[disabled]': {
|
|
18
23
|
background: "var(--ds-background-disabled, ".concat(N50, ")")
|
|
19
24
|
}
|
|
@@ -1,21 +1,31 @@
|
|
|
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 { hiddenMixin } from '../../../common/styled';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
7
|
export var HelpContainer = styled.div({
|
|
5
8
|
display: 'flex',
|
|
6
9
|
marginLeft: 'auto',
|
|
7
10
|
marginRight: 0,
|
|
8
11
|
flexShrink: 0,
|
|
9
12
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
10
14
|
'> * + *': {
|
|
11
15
|
marginLeft: "var(--ds-space-200, 16px)"
|
|
12
16
|
}
|
|
13
|
-
},
|
|
14
|
-
|
|
17
|
+
},
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
19
|
+
function (props) {
|
|
20
|
+
return props.isVisible ?
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
|
+
css({
|
|
15
23
|
visibility: 'visible',
|
|
16
24
|
opacity: 1,
|
|
17
25
|
transition: 'opacity 250ms cubic-bezier(0.15, 1, 0.3, 1)'
|
|
18
|
-
}) :
|
|
26
|
+
}) :
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
+
css(hiddenMixin, {
|
|
19
29
|
opacity: 0
|
|
20
30
|
});
|
|
21
31
|
});
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
2
4
|
export var MessageContainer = styled.div(function (props) {
|
|
3
5
|
return {
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
4
7
|
paddingLeft: props.isSearch ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)"
|
|
5
8
|
};
|
|
6
9
|
});
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
12
|
export var MessageList = styled.ul({
|
|
8
13
|
margin: 0,
|
|
9
14
|
paddingLeft: "var(--ds-space-300, 24px)"
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, keyframes } from '@emotion/react';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import styled from '@emotion/styled';
|
|
5
7
|
import { B200, B300, G300, N0, N10, N100, N30, N700, N800, N900, P400, R400 } from '@atlaskit/theme/colors';
|
|
6
8
|
import { codeFontFamily, fontFamily, fontSize,
|
|
@@ -25,8 +27,10 @@ var fadeOut = keyframes({
|
|
|
25
27
|
}
|
|
26
28
|
});
|
|
27
29
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression --
|
|
29
|
-
export var EditorMain = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
30
|
+
// 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, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
|
|
31
|
+
export var EditorMain = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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"])), fontFamily(), fontSize(), TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(N800, ")"), "var(--ds-text-inverse, ".concat(N0, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", layers.tooltip(), "var(--ds-space-200, 16px)", TOOLTIP_ENTER_CLASSNAME, fadeIn, TOOLTIP_EXIT_CLASSNAME, fadeOut);
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
30
34
|
export var EditorFooter = styled.div({
|
|
31
35
|
display: 'flex',
|
|
32
36
|
justifyContent: 'space-between',
|
|
@@ -40,6 +44,7 @@ var getEditorInputVerticalPadding = function getEditorInputVerticalPadding(isCom
|
|
|
40
44
|
return isCompact ? 3 : 7;
|
|
41
45
|
};
|
|
42
46
|
var editorInputHorizontalPadding = 6;
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
43
48
|
export var EditorViewContainer = styled.div({
|
|
44
49
|
backgroundColor: "var(--ds-background-input, ".concat(N10, ")"),
|
|
45
50
|
borderStyle: 'solid',
|
|
@@ -52,35 +57,53 @@ export var EditorViewContainer = styled.div({
|
|
|
52
57
|
display: 'flex',
|
|
53
58
|
overflow: 'auto',
|
|
54
59
|
transition: 'background-color 0.2s ease-in-out, border-color 0.2s ease-in-out'
|
|
55
|
-
},
|
|
56
|
-
|
|
60
|
+
},
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
62
|
+
function (props) {
|
|
63
|
+
return props.editorViewIsInvalid &&
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
65
|
+
css({
|
|
57
66
|
borderColor: "var(--ds-border-danger, ".concat(R400, ")"),
|
|
58
67
|
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border-danger, ".concat(R400, ")"))
|
|
59
68
|
});
|
|
60
|
-
},
|
|
61
|
-
|
|
69
|
+
},
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
71
|
+
function (props) {
|
|
72
|
+
return props.editorViewHasFocus ?
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
74
|
+
css({
|
|
62
75
|
backgroundColor: "var(--ds-surface, ".concat(N0, ")"),
|
|
63
76
|
borderColor: "var(--ds-border-focused, ".concat(B200, ")"),
|
|
64
77
|
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border-focused, ".concat(B200, ")"))
|
|
65
|
-
}) :
|
|
66
|
-
|
|
78
|
+
}) :
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
80
|
+
css({
|
|
81
|
+
'&:hover': {
|
|
67
82
|
backgroundColor: "var(--ds-background-input-hovered, ".concat(N30, ")")
|
|
68
83
|
}
|
|
69
84
|
});
|
|
70
85
|
});
|
|
86
|
+
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
71
88
|
export var ReadOnlyEditorViewContainer = styled(EditorViewContainer)({
|
|
72
89
|
backgroundColor: "var(--ds-background-disabled, ".concat(N30, ")"),
|
|
73
90
|
color: "var(--ds-text-disabled, ".concat(N100, ")"),
|
|
74
91
|
pointerEvents: 'none'
|
|
75
92
|
});
|
|
93
|
+
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
76
95
|
export var LineNumberToolbar = styled.div({
|
|
77
96
|
backgroundColor: "var(--ds-background-neutral, ".concat(N30, ")"),
|
|
78
97
|
flexShrink: 0,
|
|
79
98
|
width: '30px',
|
|
80
99
|
position: 'sticky',
|
|
81
100
|
top: 0
|
|
82
|
-
},
|
|
83
|
-
|
|
101
|
+
},
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
103
|
+
function (props) {
|
|
104
|
+
return !props.lineNumbersVisible &&
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
106
|
+
css({
|
|
84
107
|
display: 'none'
|
|
85
108
|
});
|
|
86
109
|
});
|
|
@@ -88,8 +111,8 @@ export var LineNumberToolbar = styled.div({
|
|
|
88
111
|
/**
|
|
89
112
|
* The main div which the Prosemirror editor will be rendered into.
|
|
90
113
|
*/
|
|
91
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression --
|
|
92
|
-
export var EditorView = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n
|
|
114
|
+
// 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
|
|
115
|
+
export var EditorView = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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) {
|
|
93
116
|
return rowHeight * props.defaultMaxRows + getEditorInputVerticalPadding(props.isCompact) * 2;
|
|
94
117
|
}, rowHeight / fontSize(), codeFontFamily(), function (props) {
|
|
95
118
|
return rowHeight * props.expandedRows + getEditorInputVerticalPadding(props.isCompact) * 2;
|
|
@@ -99,27 +122,32 @@ export var EditorView = styled.div(_templateObject2 || (_templateObject2 = _tagg
|
|
|
99
122
|
return getEditorInputVerticalPadding(props.isCompact);
|
|
100
123
|
}, editorInputHorizontalPadding, "var(--ds-text-accent-purple, ".concat(P400, ")"), "var(--ds-text-accent-blue, ".concat(B300, ")"), "var(--ds-text-accent-green, ".concat(G300, ")"), "var(--ds-text-danger, ".concat(R400, ")"), "var(--ds-text-subtlest, ".concat(N100, ")"), rowHeight / 10, "var(--ds-space-100, 8px)", "var(--ds-space-025, 2px)", "var(--ds-space-100, 8px)", function (props) {
|
|
101
124
|
return !props.lineNumbersVisible && // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
102
|
-
css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
125
|
+
css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t\t\t\tdisplay: none;\n\t\t\t\t"])));
|
|
103
126
|
});
|
|
104
127
|
|
|
105
128
|
// FIXME: convert-props-syntax rule doesn't catch this
|
|
106
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
|
|
107
|
-
export var ReadOnlyEditorView = styled(EditorView)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n
|
|
129
|
+
// 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
|
|
130
|
+
export var ReadOnlyEditorView = styled(EditorView)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\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) {
|
|
108
131
|
return getEditorInputVerticalPadding(props.isCompact);
|
|
109
132
|
}, editorInputHorizontalPadding, function (props) {
|
|
110
133
|
return rowHeight * props.defaultMaxRows;
|
|
111
134
|
}, rowHeight);
|
|
135
|
+
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
112
137
|
export var EditorControls = styled.div(function (props) {
|
|
113
138
|
return {
|
|
114
139
|
alignItems: 'center',
|
|
115
140
|
display: 'flex',
|
|
116
141
|
flexShrink: 0,
|
|
117
142
|
marginLeft: 'auto',
|
|
118
|
-
marginRight: "".concat(
|
|
143
|
+
marginRight: "".concat(
|
|
144
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
145
|
+
props.isSearch ? getEditorInputVerticalPadding(props.isCompact) - 1 // the search button needs the same vertical & horizontal spacing
|
|
119
146
|
: editorInputHorizontalPadding - 3, "px"),
|
|
120
147
|
lineHeight: 'normal',
|
|
121
148
|
position: 'sticky',
|
|
122
149
|
top: 0,
|
|
150
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
123
151
|
height: "".concat(rowHeight + 2 * getEditorInputVerticalPadding(props.isCompact), "px")
|
|
124
152
|
};
|
|
125
153
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
2
5
|
export var StyledTooltipTag = styled.div({
|
|
3
6
|
display: 'flex'
|
|
4
7
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ANALYTICS_CHANNEL, EventType, useJqlPackageAnalytics
|
|
2
|
-
export type { AnalyticsAttributes, JqlAnalyticsEvent
|
|
1
|
+
export { ANALYTICS_CHANNEL, EventType, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
|
|
2
|
+
export type { AnalyticsAttributes, JqlAnalyticsEvent } from '@atlaskit/jql-editor-common';
|
|
3
3
|
export { ActionSubject, ActionSubjectId, Action } from './constants';
|
|
4
4
|
export { JQLEditorAnalyticsListener } from './listener';
|
|
5
5
|
export type { ListenerProps } from './listener';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* In future if this package is migrated into the Atlassian Frontend repo, then this code and related logic should be
|
|
4
4
|
* moved into @atlaskit/analytics-listeners.
|
|
5
5
|
*/
|
|
6
|
-
import { GasPayload, GasScreenEventPayload } from '@atlaskit/analytics-gas-types';
|
|
7
|
-
import Logger from './helpers/logger';
|
|
8
|
-
import { AnalyticsWebClient } from './types';
|
|
6
|
+
import { type GasPayload, type GasScreenEventPayload } from '@atlaskit/analytics-gas-types';
|
|
7
|
+
import type Logger from './helpers/logger';
|
|
8
|
+
import { type AnalyticsWebClient } from './types';
|
|
9
9
|
export declare const sendEvent: (logger: Logger, client?: AnalyticsWebClient | Promise<AnalyticsWebClient>) => (event: GasPayload | GasScreenEventPayload) => void;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* In future if this package is migrated into the Atlassian Frontend repo, then this code and related logic should be
|
|
4
4
|
* moved into @atlaskit/analytics-listeners.
|
|
5
5
|
*/
|
|
6
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import Logger from './helpers/logger';
|
|
8
|
-
import { AnalyticsWebClient } from './types';
|
|
6
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
+
import type Logger from './helpers/logger';
|
|
8
|
+
import { type AnalyticsWebClient } from './types';
|
|
9
9
|
export declare const handleEvent: (event: UIAnalyticsEvent, logger: Logger, client?: AnalyticsWebClient | Promise<AnalyticsWebClient>) => void;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* In future if this package is migrated into the Atlassian Frontend repo, then this code and related logic should be
|
|
4
4
|
* moved into @atlaskit/analytics-listeners.
|
|
5
5
|
*/
|
|
6
|
-
import React, { ReactNode } from 'react';
|
|
7
|
-
import { UIAnalyticsEventHandler } from '@atlaskit/analytics-next';
|
|
6
|
+
import React, { type ReactNode } from 'react';
|
|
7
|
+
import { type UIAnalyticsEventHandler } from '@atlaskit/analytics-next';
|
|
8
8
|
import Logger from './helpers/logger';
|
|
9
|
-
import { AnalyticsWebClient } from './types';
|
|
9
|
+
import { type AnalyticsWebClient } from './types';
|
|
10
10
|
export type ListenerProps = {
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
client?: AnalyticsWebClient | Promise<AnalyticsWebClient>;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* In future if this package is migrated into the Atlassian Frontend repo, then this code and related logic should be
|
|
4
4
|
* moved into @atlaskit/analytics-listeners.
|
|
5
5
|
*/
|
|
6
|
-
import { GasPayload, GasScreenEventPayload } from '@atlaskit/analytics-gas-types';
|
|
7
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
+
import { type GasPayload, type GasScreenEventPayload } from '@atlaskit/analytics-gas-types';
|
|
7
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
8
|
export declare const processEventPayload: (event: UIAnalyticsEvent) => GasPayload | GasScreenEventPayload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GasPurePayload, GasPureScreenEventPayload } from '@atlaskit/analytics-gas-types';
|
|
1
|
+
import { type GasPurePayload, type GasPureScreenEventPayload } from '@atlaskit/analytics-gas-types';
|
|
2
2
|
export type AnalyticsWebClient = {
|
|
3
3
|
sendUIEvent: (event: GasPurePayload) => void;
|
|
4
4
|
sendOperationalEvent: (event: GasPurePayload) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JqlAnalyticsEvent } from '@atlaskit/jql-editor-common';
|
|
2
|
-
import { Action, ActionSubject, ActionSubjectId } from './constants';
|
|
1
|
+
import { type JqlAnalyticsEvent } from '@atlaskit/jql-editor-common';
|
|
2
|
+
import { type Action, type ActionSubject, type ActionSubjectId } from './constants';
|
|
3
3
|
export type JqlEditorAnalyticsEvent = JqlAnalyticsEvent<Action, ActionSubject, ActionSubjectId>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Action, ActionSubject, ActionSubjectId } from './constants';
|
|
1
|
+
import { type Action, type ActionSubject, type ActionSubjectId } from './constants';
|
|
2
2
|
export declare const useJqlEditorAnalytics: (analyticsSource: string) => {
|
|
3
3
|
createAndFireAnalyticsEvent: (payload: import("@atlaskit/jql-editor-common").JqlAnalyticsEvent<Action, ActionSubject, ActionSubjectId>) => void;
|
|
4
4
|
};
|
package/dist/types/async.d.ts
CHANGED