@atlaskit/jql-editor 6.2.1 → 6.2.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 +6 -0
- package/dist/cjs/accessibility/styled.js +7 -1
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/async.js +5 -1
- package/dist/cjs/common/styled.js +5 -1
- package/dist/cjs/plugins/autocomplete/components/autocomplete-dropdown/styled.js +16 -4
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/styled.js +25 -7
- package/dist/cjs/plugins/rich-inline-nodes/nodes/base/index.js +3 -1
- package/dist/cjs/plugins/rich-inline-nodes/nodes/goal/goal-node.js +2 -2
- package/dist/cjs/plugins/rich-inline-nodes/nodes/team/styled.js +14 -6
- package/dist/cjs/plugins/rich-inline-nodes/nodes/user/styled.js +11 -3
- package/dist/cjs/plugins/rich-inline-nodes/util/react-node-view.js +1 -0
- package/dist/cjs/schema/index.js +1 -1
- package/dist/cjs/ui/index.js +2 -1
- package/dist/cjs/ui/jql-editor/index.js +2 -1
- package/dist/cjs/ui/jql-editor-controls-content/base-expand-toggle/styled.js +7 -1
- package/dist/cjs/ui/jql-editor-controls-content/base-syntax-help/styled.js +7 -1
- package/dist/cjs/ui/jql-editor-footer-content/jql-editor-help/styled.js +5 -1
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/format/styled.js +10 -2
- package/dist/cjs/ui/jql-editor-layout/styled.js +36 -17
- package/dist/cjs/ui/tooltip-tag/styled.js +7 -1
- package/dist/es2019/accessibility/styled.js +7 -1
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/async.js +6 -1
- package/dist/es2019/common/styled.js +5 -1
- package/dist/es2019/plugins/autocomplete/components/autocomplete-dropdown/styled.js +16 -4
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/styled.js +25 -7
- package/dist/es2019/plugins/rich-inline-nodes/nodes/base/index.js +3 -1
- package/dist/es2019/plugins/rich-inline-nodes/nodes/goal/goal-node.js +2 -2
- package/dist/es2019/plugins/rich-inline-nodes/nodes/team/styled.js +14 -6
- package/dist/es2019/plugins/rich-inline-nodes/nodes/user/styled.js +11 -3
- package/dist/es2019/plugins/rich-inline-nodes/util/react-node-view.js +1 -0
- package/dist/es2019/schema/index.js +2 -0
- package/dist/es2019/ui/index.js +2 -1
- package/dist/es2019/ui/jql-editor/index.js +2 -1
- package/dist/es2019/ui/jql-editor-controls-content/base-expand-toggle/styled.js +7 -1
- package/dist/es2019/ui/jql-editor-controls-content/base-syntax-help/styled.js +7 -1
- package/dist/es2019/ui/jql-editor-footer-content/jql-editor-help/styled.js +5 -1
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/format/styled.js +10 -2
- package/dist/es2019/ui/jql-editor-layout/styled.js +126 -113
- package/dist/es2019/ui/tooltip-tag/styled.js +7 -1
- package/dist/esm/accessibility/styled.js +7 -1
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/async.js +6 -1
- package/dist/esm/common/styled.js +5 -1
- package/dist/esm/plugins/autocomplete/components/autocomplete-dropdown/styled.js +16 -4
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/styled.js +25 -7
- package/dist/esm/plugins/rich-inline-nodes/nodes/base/index.js +3 -1
- package/dist/esm/plugins/rich-inline-nodes/nodes/goal/goal-node.js +2 -2
- package/dist/esm/plugins/rich-inline-nodes/nodes/team/styled.js +14 -6
- package/dist/esm/plugins/rich-inline-nodes/nodes/user/styled.js +11 -3
- package/dist/esm/plugins/rich-inline-nodes/util/react-node-view.js +1 -0
- package/dist/esm/schema/index.js +2 -0
- package/dist/esm/ui/index.js +2 -1
- package/dist/esm/ui/jql-editor/index.js +2 -1
- package/dist/esm/ui/jql-editor-controls-content/base-expand-toggle/styled.js +7 -1
- package/dist/esm/ui/jql-editor-controls-content/base-syntax-help/styled.js +7 -1
- package/dist/esm/ui/jql-editor-footer-content/jql-editor-help/styled.js +5 -1
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/format/styled.js +10 -2
- package/dist/esm/ui/jql-editor-layout/styled.js +37 -17
- package/dist/esm/ui/tooltip-tag/styled.js +7 -1
- package/dist/types/accessibility/styled.d.ts +6 -3
- package/dist/types/analytics/util.d.ts +2 -1
- package/dist/types/async.d.ts +2 -1
- package/dist/types/common/messages.d.ts +1 -1
- package/dist/types/common/styled.d.ts +7 -4
- package/dist/types/hooks/use-editor-theme/index.d.ts +2 -1
- package/dist/types/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +15 -12
- package/dist/types/plugins/autocomplete/components/autocomplete-option/messages.d.ts +2 -2
- package/dist/types/plugins/autocomplete/components/autocomplete-option/styled.d.ts +24 -21
- package/dist/types/plugins/autocomplete/messages.d.ts +1 -1
- package/dist/types/plugins/common/plugin-keymap.d.ts +2 -1
- package/dist/types/plugins/jql-ast/messages.d.ts +64 -64
- package/dist/types/plugins/rich-inline-nodes/nodes/goal/goal-icon.d.ts +1 -1
- package/dist/types/plugins/rich-inline-nodes/nodes/index.d.ts +9 -4
- package/dist/types/plugins/rich-inline-nodes/nodes/project/messages.d.ts +1 -1
- package/dist/types/plugins/rich-inline-nodes/nodes/team/styled.d.ts +12 -9
- package/dist/types/plugins/rich-inline-nodes/nodes/user/styled.d.ts +12 -9
- package/dist/types/plugins/rich-inline-nodes/util/react-node-view.d.ts +3 -3
- package/dist/types/state/index.d.ts +601 -601
- package/dist/types/ui/index.d.ts +2 -2
- package/dist/types/ui/jql-editor/index.d.ts +3 -3
- package/dist/types/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +6 -3
- package/dist/types/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +6 -3
- package/dist/types/ui/jql-editor-controls-content/expand-toggle/messages.d.ts +5 -5
- package/dist/types/ui/jql-editor-controls-content/search/messages.d.ts +1 -1
- package/dist/types/ui/jql-editor-controls-content/syntax-help/messages.d.ts +2 -2
- package/dist/types/ui/jql-editor-footer-content/jql-editor-help/messages.d.ts +5 -5
- package/dist/types/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +6 -3
- package/dist/types/ui/jql-editor-footer-content/jql-messages/errors/messages.d.ts +1 -1
- package/dist/types/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +9 -6
- package/dist/types/ui/jql-editor-footer-content/jql-messages/warnings/messages.d.ts +5 -5
- package/dist/types/ui/jql-editor-layout/styled.d.ts +29 -26
- package/dist/types/ui/jql-editor-portal-provider/context.d.ts +2 -1
- package/dist/types/ui/messages.d.ts +1 -1
- package/dist/types/ui/tooltip-tag/styled.d.ts +6 -3
- package/dist/types-ts4.5/accessibility/styled.d.ts +6 -3
- package/dist/types-ts4.5/analytics/util.d.ts +2 -1
- package/dist/types-ts4.5/async.d.ts +2 -1
- package/dist/types-ts4.5/common/messages.d.ts +1 -1
- package/dist/types-ts4.5/common/styled.d.ts +7 -4
- package/dist/types-ts4.5/hooks/use-editor-theme/index.d.ts +2 -1
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +15 -12
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/messages.d.ts +2 -2
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/styled.d.ts +24 -21
- package/dist/types-ts4.5/plugins/autocomplete/messages.d.ts +1 -1
- package/dist/types-ts4.5/plugins/common/plugin-keymap.d.ts +2 -1
- package/dist/types-ts4.5/plugins/jql-ast/messages.d.ts +64 -64
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/goal-icon.d.ts +1 -1
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/index.d.ts +9 -4
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/messages.d.ts +1 -1
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/team/styled.d.ts +12 -9
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/styled.d.ts +12 -9
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/react-node-view.d.ts +3 -3
- package/dist/types-ts4.5/state/index.d.ts +601 -601
- package/dist/types-ts4.5/ui/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +6 -3
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +6 -3
- package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/messages.d.ts +5 -5
- package/dist/types-ts4.5/ui/jql-editor-controls-content/search/messages.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/messages.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/messages.d.ts +5 -5
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +6 -3
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/messages.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +9 -6
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/messages.d.ts +5 -5
- package/dist/types-ts4.5/ui/jql-editor-layout/styled.d.ts +29 -26
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/context.d.ts +2 -1
- package/dist/types-ts4.5/ui/messages.d.ts +1 -1
- package/dist/types-ts4.5/ui/tooltip-tag/styled.d.ts +6 -3
- package/package.json +5 -8
package/dist/esm/ui/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { withErrorBoundary } from './error-boundary';
|
|
2
2
|
import { withIntlProvider } from './intl-provider';
|
|
3
3
|
import JQLEditorUI from './jql-editor';
|
|
4
|
-
|
|
4
|
+
var _default_1 = withIntlProvider(withErrorBoundary(JQLEditorUI));
|
|
5
|
+
export default _default_1;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
1
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import styled from '@emotion/styled';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
|
+
export var ExpandToggleContainer =
|
|
3
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
|
-
|
|
10
|
+
styled.div({
|
|
5
11
|
/* Override background styles for our button to match designs */
|
|
6
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
7
13
|
'> button': {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
1
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import styled from '@emotion/styled';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
|
+
export var SyntaxHelpContainer =
|
|
3
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
|
-
|
|
10
|
+
styled.div({
|
|
5
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
12
|
'> a': {
|
|
7
13
|
background: "var(--ds-background-neutral-bold, #292A2E)",
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
|
|
1
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
4
|
import { css } from '@emotion/react';
|
|
3
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 { hiddenMixin } from '../../../common/styled';
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
|
+
export var HelpContainer =
|
|
6
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
|
+
styled.div({
|
|
8
12
|
display: 'flex',
|
|
9
13
|
marginLeft: 'auto',
|
|
10
14
|
marginRight: 0,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
1
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import styled from '@emotion/styled';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
|
+
export var MessageContainer =
|
|
3
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
|
-
|
|
10
|
+
styled.div(function (props) {
|
|
5
11
|
return {
|
|
6
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
13
|
paddingLeft: props.isSearch ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)"
|
|
8
14
|
};
|
|
9
15
|
});
|
|
10
16
|
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
+
export var MessageList =
|
|
11
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
|
-
|
|
20
|
+
styled.ul({
|
|
13
21
|
margin: 0,
|
|
14
22
|
paddingLeft: "var(--ds-space-300, 24px)"
|
|
15
23
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
3
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, keyframes } from '@emotion/react';
|
|
5
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -25,11 +27,14 @@ var fadeOut = keyframes({
|
|
|
25
27
|
}
|
|
26
28
|
});
|
|
27
29
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/
|
|
29
|
-
export var EditorMain =
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
|
+
export var EditorMain = // 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
|
|
32
|
+
styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t/* CSS reset */\n\t\tfont-family: ", ";\n\t\tfont-size: 14px;\n\t\tflex-grow: 1;\n\n\t\t/* These styles and animations are derived from @atlaskit/tooltip */\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tcolor: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tbox-sizing: border-box;\n\t\t\tfont: ", ";\n\t\t\tline-height: 1.3;\n\t\t\tmax-width: 240px;\n\t\t\tpadding: ", " ", ";\n\t\t\tword-wrap: break-word;\n\t\t\toverflow-wrap: break-word;\n\t\t\tz-index: ", ";\n\t\t\tpointer-events: none;\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\n\t\t\t/* Horizontally center and vertically position above the target element */\n\t\t\ttransform: translate(-50%, calc(-100% - ", "));\n\n\t\t\t&.", " {\n\t\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t\t\tvisibility: visible;\n\t\t\t}\n\n\t\t\t&.", " {\n\t\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t\t}\n\t\t}\n\t"])), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, #292A2E)", "var(--ds-text-inverse, #FFFFFF)", "var(--ds-radius-small, 3px)", "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", "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);
|
|
30
33
|
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
|
+
export var EditorFooter =
|
|
31
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
|
-
|
|
37
|
+
styled.div({
|
|
33
38
|
display: 'flex',
|
|
34
39
|
justifyContent: 'space-between',
|
|
35
40
|
minHeight: '20px'
|
|
@@ -42,8 +47,10 @@ var getEditorInputVerticalPadding = function getEditorInputVerticalPadding(isCom
|
|
|
42
47
|
return isCompact ? 3 : 7;
|
|
43
48
|
};
|
|
44
49
|
var editorInputHorizontalPadding = 6;
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
51
|
+
export var EditorViewContainer =
|
|
45
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
|
-
|
|
53
|
+
styled.div({
|
|
47
54
|
backgroundColor: "var(--ds-background-input, #FFFFFF)",
|
|
48
55
|
borderStyle: 'solid',
|
|
49
56
|
borderWidth: "var(--ds-border-width, 1px)",
|
|
@@ -82,15 +89,19 @@ function (props) {
|
|
|
82
89
|
});
|
|
83
90
|
});
|
|
84
91
|
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
93
|
+
export var ReadOnlyEditorViewContainer =
|
|
85
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
86
|
-
|
|
95
|
+
styled(EditorViewContainer)({
|
|
87
96
|
backgroundColor: "var(--ds-background-disabled, #17171708)",
|
|
88
97
|
color: "var(--ds-text-disabled, #080F214A)",
|
|
89
98
|
pointerEvents: 'none'
|
|
90
99
|
});
|
|
91
100
|
|
|
101
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
102
|
+
export var LineNumberToolbar =
|
|
92
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
93
|
-
|
|
104
|
+
styled.div({
|
|
94
105
|
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
95
106
|
flexShrink: 0,
|
|
96
107
|
width: '30px',
|
|
@@ -109,8 +120,9 @@ function (props) {
|
|
|
109
120
|
/**
|
|
110
121
|
* The main div which the Prosemirror editor will be rendered into.
|
|
111
122
|
*/
|
|
112
|
-
// eslint-disable-next-line @atlaskit/
|
|
113
|
-
export var EditorView =
|
|
123
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
124
|
+
export var EditorView = // 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
|
|
125
|
+
styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\tcounter-reset: lineNumber;\n\t\tflex-grow: 1;\n\n\t\ttransition:\n\t\t\theight 250ms cubic-bezier(0.15, 1, 0.3, 1),\n\t\t\tmax-height 250ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\tmax-height: ", "px;\n\t\tline-height: ", ";\n\t\t", "\n\t\t", "\n\tfont-family: ", ";\n\t\tword-break: break-word;\n\t\toverflow-wrap: anywhere;\n\t\twhite-space: pre-wrap;\n\n\t\t&[data-expanded] {\n\t\t\theight: ", "px;\n\t\t\tmax-height: ", "px;\n\t\t}\n\n\t\t.ProseMirror {\n\t\t\tcolor: ", ";\n\t\t\tpadding: ", "px\n\t\t\t\t", "px;\n\n\t\t\t&:focus {\n\t\t\t\toutline: none;\n\t\t\t}\n\n\t\t\t.mark-token-keyword {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\n\t\t\t.mark-token-field {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\n\t\t\t.mark-token-operator {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\n\t\t\t.mark-token-error {\n\t\t\t\tcolor: ", ";\n\t\t\t\ttext-decoration: wavy underline;\n\t\t\t\ttext-decoration-thickness: 1px;\n\t\t\t\ttext-decoration-skip-ink: none;\n\t\t\t}\n\t\t}\n\n\t\tp {\n\t\t\tmargin: 0;\n\t\t\tcounter-increment: lineNumber;\n\t\t\tposition: relative;\n\n\t\t\t/* Show the current line number before each paragraph block. */\n\n\t\t\t&::before {\n\t\t\t\tcontent: counter(lineNumber);\n\t\t\t\tcolor: ", ";\n\t\t\t\tfont-size: 10px;\n\t\t\t\tline-height: ", ";\n\t\t\t\tpadding: 0 ", " 0 ", ";\n\t\t\t\tposition: absolute;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\t/* Shift the line number tag 100% (plus 8px padding) to the left to position it inside the LineNumberToolbar */\n\t\t\t\ttransform: translateX(calc(-100% - ", "));\n\n\t\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\t\tmax-width: 30px;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\toverflow: hidden;\n\t\t\t\twhite-space: nowrap;\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t"])), function (props) {
|
|
114
126
|
return rowHeight * props.defaultMaxRows + getEditorInputVerticalPadding(props.isCompact) * 2;
|
|
115
127
|
}, rowHeight / 14, function (props) {
|
|
116
128
|
return props.defaultRows && fg('list_lovability_improving_filters') ? 'height: ' + (rowHeight * props.defaultRows + getEditorInputVerticalPadding(props.isCompact) * 2) + 'px;' : '';
|
|
@@ -124,19 +136,27 @@ export var EditorView = styled.div(_templateObject2 || (_templateObject2 = _tagg
|
|
|
124
136
|
return getEditorInputVerticalPadding(props.isCompact);
|
|
125
137
|
}, editorInputHorizontalPadding, "var(--ds-text-accent-purple, #803FA5)", "var(--ds-text-accent-blue, #1558BC)", "var(--ds-text-accent-green, #216E4E)", "var(--ds-text-danger, #AE2E24)", "var(--ds-text-subtlest, #6B6E76)", rowHeight / 10, "var(--ds-space-100, 8px)", "var(--ds-space-025, 2px)", "var(--ds-space-100, 8px)", function (props) {
|
|
126
138
|
return !props.lineNumbersVisible && // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
127
|
-
css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t\t\t\tdisplay: none;\n\t\t\t\t"])));
|
|
139
|
+
css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t\t\t\t\tdisplay: none;\n\t\t\t\t\t"])));
|
|
128
140
|
});
|
|
129
141
|
|
|
130
142
|
// FIXME: convert-props-syntax rule doesn't catch this
|
|
131
|
-
// eslint-disable-next-line @atlaskit/
|
|
132
|
-
export var ReadOnlyEditorView =
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
143
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
144
|
+
export var ReadOnlyEditorView = /* eslint-disable @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-dynamic-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766 */
|
|
145
|
+
styled(EditorView)(function (props) {
|
|
146
|
+
return {
|
|
147
|
+
padding: "".concat(getEditorInputVerticalPadding(props.isCompact), "px ").concat(editorInputHorizontalPadding, "px"),
|
|
148
|
+
maxHeight: "".concat(rowHeight * props.defaultMaxRows, "px"),
|
|
149
|
+
'> p': {
|
|
150
|
+
minHeight: "".concat(rowHeight, "px")
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
});
|
|
154
|
+
/* eslint-enable @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-dynamic-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
137
155
|
|
|
156
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
157
|
+
export var EditorControls =
|
|
138
158
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
139
|
-
|
|
159
|
+
styled.div(function (props) {
|
|
140
160
|
return {
|
|
141
161
|
alignItems: 'center',
|
|
142
162
|
display: 'flex',
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
|
|
1
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import styled from '@emotion/styled';
|
|
3
7
|
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
|
+
export var StyledTooltipTag =
|
|
4
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
|
-
|
|
11
|
+
styled.div({
|
|
6
12
|
display: 'flex'
|
|
7
13
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
|
+
export declare const ScreenReaderText: StyledComponent<{
|
|
3
5
|
as?: React.ElementType;
|
|
4
|
-
|
|
6
|
+
theme?: Theme;
|
|
7
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { type JqlAnalyticsEvent } from '@atlaskit/jql-editor-common';
|
|
1
2
|
import { type Action, type ActionSubject, type ActionSubjectId } from './constants';
|
|
2
3
|
export declare const useJqlEditorAnalytics: (analyticsSource: string) => {
|
|
3
|
-
createAndFireAnalyticsEvent: (payload:
|
|
4
|
+
createAndFireAnalyticsEvent: (payload: JqlAnalyticsEvent<Action, ActionSubject, ActionSubjectId>) => void;
|
|
4
5
|
};
|
package/dist/types/async.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type JQLEditorProps } from './ui/types';
|
|
3
|
-
|
|
3
|
+
import type { Cleanup } from 'react-loosely-lazy/dist/types/cleanup';
|
|
4
|
+
export declare const preloadJQLEditor: () => Cleanup;
|
|
4
5
|
export declare const JQLEditorAsync: (props: JQLEditorProps) => React.JSX.Element;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import { type SerializedStyles, type Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
|
+
export declare const hiddenMixin: SerializedStyles;
|
|
5
|
+
export declare const TooltipContent: StyledComponent<{
|
|
4
6
|
as?: React.ElementType;
|
|
5
|
-
|
|
7
|
+
theme?: Theme;
|
|
8
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Context } from 'react';
|
|
1
2
|
export type EditorTheme = {
|
|
2
3
|
/**
|
|
3
4
|
* The maximum number of rows that are visible in the default editor view.
|
|
@@ -30,7 +31,7 @@ export type EditorTheme = {
|
|
|
30
31
|
*/
|
|
31
32
|
toggleExpanded: () => void;
|
|
32
33
|
};
|
|
33
|
-
export declare const EditorThemeContext:
|
|
34
|
+
export declare const EditorThemeContext: Context<EditorTheme>;
|
|
34
35
|
/**
|
|
35
36
|
* Hook to manage the theming state of the editor.
|
|
36
37
|
*/
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
|
+
export declare const AutocompleteContainer: StyledComponent<{
|
|
3
5
|
as?: React.ElementType;
|
|
6
|
+
theme?: Theme;
|
|
4
7
|
} & {
|
|
5
8
|
isOpen: boolean;
|
|
6
9
|
usePopper?: boolean;
|
|
7
|
-
},
|
|
8
|
-
export declare const AutocompleteOptionsContainer:
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const AutocompleteOptionsContainer: StyledComponent<{
|
|
10
12
|
as?: React.ElementType;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
theme?: Theme;
|
|
14
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
+
export declare const OptionList: StyledComponent<{
|
|
14
16
|
as?: React.ElementType;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
19
|
+
export declare const AutocompleteLoadingFooter: StyledComponent<{
|
|
18
20
|
as?: React.ElementType;
|
|
21
|
+
theme?: Theme;
|
|
19
22
|
} & {
|
|
20
23
|
hasOptions: boolean;
|
|
21
|
-
},
|
|
24
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const messages: {
|
|
2
2
|
deprecatedFieldTooltipDefaultMessage: {
|
|
3
|
-
id: string;
|
|
4
3
|
defaultMessage: string;
|
|
5
4
|
description: string;
|
|
5
|
+
id: string;
|
|
6
6
|
};
|
|
7
7
|
deprecatedFieldTooltipParentReplacementMessage: {
|
|
8
|
-
id: string;
|
|
9
8
|
defaultMessage: string;
|
|
10
9
|
description: string;
|
|
10
|
+
id: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { DetailedHTMLProps, HTMLAttributes, LiHTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
|
+
export declare const TooltipContent: StyledComponent<{
|
|
3
5
|
as?: React.ElementType;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
theme?: Theme;
|
|
7
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export declare const OptionListItem: StyledComponent<{
|
|
7
9
|
as?: React.ElementType;
|
|
10
|
+
theme?: Theme;
|
|
8
11
|
} & {
|
|
9
12
|
isDeprecated: boolean;
|
|
10
13
|
isSelected: boolean;
|
|
11
|
-
},
|
|
12
|
-
export declare const OptionName:
|
|
13
|
-
theme?: import("@emotion/react").Theme;
|
|
14
|
+
}, DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
15
|
+
export declare const OptionName: StyledComponent<{
|
|
14
16
|
as?: React.ElementType;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const DeprecatedOptionContainer: StyledComponent<{
|
|
18
20
|
as?: React.ElementType;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
theme?: Theme;
|
|
22
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
+
export declare const OptionHighlight: StyledComponent<{
|
|
22
24
|
as?: React.ElementType;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
theme?: Theme;
|
|
26
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
27
|
+
export declare const FieldType: StyledComponent<{
|
|
26
28
|
as?: React.ElementType;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
theme?: Theme;
|
|
30
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
+
export declare const FieldTypeIcon: StyledComponent<{
|
|
30
32
|
as?: React.ElementType;
|
|
31
|
-
|
|
33
|
+
theme?: Theme;
|
|
34
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type JQLEditorCommand } from '../../schema';
|
|
1
2
|
export declare class PluginKeymap {
|
|
2
3
|
private keymap;
|
|
3
4
|
bindKey(key: string, handler: () => boolean): void;
|
|
4
5
|
bindMultipleKeys(keys: string[], handler: () => boolean): void;
|
|
5
6
|
unbindKey(key: string): void;
|
|
6
|
-
getKeyBinding(key: string):
|
|
7
|
+
getKeyBinding(key: string): JQLEditorCommand;
|
|
7
8
|
}
|