@atlaskit/jql-editor 4.14.0 → 4.14.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 +12 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/plugins/common/get-document-position/index.js +3 -3
- package/dist/cjs/plugins/rich-inline-nodes/index.js +4 -2
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/plugins/common/get-document-position/index.js +3 -3
- package/dist/esm/plugins/rich-inline-nodes/index.js +4 -2
- package/dist/types/accessibility/styled.d.ts +1 -1
- package/dist/types/analytics/listener/jql-editor-analytics-listener.d.ts +1 -1
- package/dist/types/async.d.ts +2 -2
- package/dist/types/common/styled.d.ts +1 -1
- package/dist/types/plugins/autocomplete/components/autocomplete/index.d.ts +2 -2
- package/dist/types/plugins/autocomplete/components/autocomplete-dropdown/index.d.ts +2 -2
- package/dist/types/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +4 -4
- package/dist/types/plugins/autocomplete/components/autocomplete-option/styled.d.ts +7 -7
- package/dist/types/plugins/rich-inline-nodes/nodes/user/styled.d.ts +3 -3
- package/dist/types/state/index.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 +2 -2
- package/dist/types/ui/jql-editor-controls-content/base-expand-toggle/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +1 -1
- package/dist/types/ui/jql-editor-controls-content/base-search/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-controls-content/base-syntax-help/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +1 -1
- package/dist/types/ui/jql-editor-controls-content/expand-toggle/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-controls-content/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-controls-content/read-only-controls-content/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-controls-content/search/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-controls-content/syntax-help/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-footer-content/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-footer-content/jql-editor-help/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +1 -1
- package/dist/types/ui/jql-editor-footer-content/jql-messages/errors/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-footer-content/jql-messages/format/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +2 -2
- package/dist/types/ui/jql-editor-footer-content/jql-messages/infos/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-footer-content/jql-messages/warnings/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-layout/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-layout/styled.d.ts +8 -8
- package/dist/types/ui/jql-editor-portal-provider/index.d.ts +2 -2
- package/dist/types/ui/jql-editor-view/index.d.ts +1 -1
- package/dist/types/ui/tooltip-tag/styled.d.ts +1 -1
- package/dist/types-ts4.5/accessibility/styled.d.ts +1 -1
- package/dist/types-ts4.5/analytics/listener/jql-editor-analytics-listener.d.ts +1 -1
- package/dist/types-ts4.5/async.d.ts +2 -2
- package/dist/types-ts4.5/common/styled.d.ts +1 -1
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +4 -4
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/styled.d.ts +7 -7
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/styled.d.ts +3 -3
- package/dist/types-ts4.5/state/index.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 +2 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-search/index.d.ts +2 -2
- 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-controls-content/base-syntax-help/styled.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/read-only-controls-content/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/search/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +1 -1
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/infos/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-layout/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-layout/styled.d.ts +8 -8
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jql-editor-view/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/tooltip-tag/styled.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -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.14.
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "4.14.2", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -24,7 +24,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
24
24
|
* @param parentNodePos Current document and text position within the parent when entering the current node.
|
|
25
25
|
* @param textPosition Text position to find in the Prosemirror document.
|
|
26
26
|
*/
|
|
27
|
-
var
|
|
27
|
+
var _enterNode = function enterNode(node, parentNodePos, textPosition) {
|
|
28
28
|
var nodePos = _objectSpread({}, parentNodePos);
|
|
29
29
|
var isDocNode = node.type === _schema.JQLEditorSchema.nodes.doc;
|
|
30
30
|
|
|
@@ -66,7 +66,7 @@ var enterNode = function enterNode(node, parentNodePos, textPosition) {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
for (var i = 0; i < node.childCount; i++) {
|
|
69
|
-
nodePos =
|
|
69
|
+
nodePos = _enterNode(node.child(i), nodePos, textPosition);
|
|
70
70
|
|
|
71
71
|
// If we have a matching node after iterating this nodes children then return the current node position.
|
|
72
72
|
if (nodePos.text === textPosition) {
|
|
@@ -93,7 +93,7 @@ var getDocumentPosition = function getDocumentPosition(doc, textPosition) {
|
|
|
93
93
|
text: 0,
|
|
94
94
|
enteredInitialBlock: false
|
|
95
95
|
};
|
|
96
|
-
var matchingNodePos =
|
|
96
|
+
var matchingNodePos = _enterNode(doc, currentPos, textPosition);
|
|
97
97
|
return matchingNodePos.doc;
|
|
98
98
|
};
|
|
99
99
|
var _default = exports.default = getDocumentPosition;
|
|
@@ -33,22 +33,24 @@ var richInlineNodesPlugin = function richInlineNodesPlugin(portalActions) {
|
|
|
33
33
|
key: RichInlineNodesPluginKey,
|
|
34
34
|
props: {
|
|
35
35
|
decorations: function decorations(state) {
|
|
36
|
+
var _decorations;
|
|
36
37
|
var decorations = [];
|
|
37
38
|
|
|
38
39
|
// Apply selected decoration to node views when they are part of a text selection
|
|
39
40
|
var _state$selection = state.selection,
|
|
40
41
|
from = _state$selection.from,
|
|
41
42
|
to = _state$selection.to;
|
|
42
|
-
decorations.push.apply(
|
|
43
|
+
(_decorations = decorations).push.apply(_decorations, (0, _toConsumableArray2.default)(decorateNodesInRange(state, _constants.SELECTED_NODE, from, to)));
|
|
43
44
|
|
|
44
45
|
// Apply error decoration to node views when they are part of AST error range
|
|
45
46
|
var ast = (0, _jqlAst2.getJastFromState)(state);
|
|
46
47
|
var _ast$errors = (0, _slicedToArray2.default)(ast.errors, 1),
|
|
47
48
|
error = _ast$errors[0];
|
|
48
49
|
if (error instanceof _jqlAst.JQLSyntaxError) {
|
|
50
|
+
var _decorations2;
|
|
49
51
|
var documentFrom = (0, _getDocumentPosition.default)(state.doc, error.start);
|
|
50
52
|
var documentTo = (0, _getDocumentPosition.default)(state.doc, error.stop);
|
|
51
|
-
decorations.push.apply(
|
|
53
|
+
(_decorations2 = decorations).push.apply(_decorations2, (0, _toConsumableArray2.default)(decorateNodesInRange(state, _constants.ERROR_NODE, documentFrom, documentTo)));
|
|
52
54
|
}
|
|
53
55
|
return _view2.DecorationSet.create(state.doc, decorations);
|
|
54
56
|
},
|
|
@@ -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.14.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.14.2", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -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.14.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.14.2", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -18,7 +18,7 @@ import { JQLEditorSchema } from '../../../schema';
|
|
|
18
18
|
* @param parentNodePos Current document and text position within the parent when entering the current node.
|
|
19
19
|
* @param textPosition Text position to find in the Prosemirror document.
|
|
20
20
|
*/
|
|
21
|
-
var
|
|
21
|
+
var _enterNode = function enterNode(node, parentNodePos, textPosition) {
|
|
22
22
|
var nodePos = _objectSpread({}, parentNodePos);
|
|
23
23
|
var isDocNode = node.type === JQLEditorSchema.nodes.doc;
|
|
24
24
|
|
|
@@ -60,7 +60,7 @@ var enterNode = function enterNode(node, parentNodePos, textPosition) {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
for (var i = 0; i < node.childCount; i++) {
|
|
63
|
-
nodePos =
|
|
63
|
+
nodePos = _enterNode(node.child(i), nodePos, textPosition);
|
|
64
64
|
|
|
65
65
|
// If we have a matching node after iterating this nodes children then return the current node position.
|
|
66
66
|
if (nodePos.text === textPosition) {
|
|
@@ -87,7 +87,7 @@ var getDocumentPosition = function getDocumentPosition(doc, textPosition) {
|
|
|
87
87
|
text: 0,
|
|
88
88
|
enteredInitialBlock: false
|
|
89
89
|
};
|
|
90
|
-
var matchingNodePos =
|
|
90
|
+
var matchingNodePos = _enterNode(doc, currentPos, textPosition);
|
|
91
91
|
return matchingNodePos.doc;
|
|
92
92
|
};
|
|
93
93
|
export default getDocumentPosition;
|
|
@@ -26,22 +26,24 @@ var richInlineNodesPlugin = function richInlineNodesPlugin(portalActions) {
|
|
|
26
26
|
key: RichInlineNodesPluginKey,
|
|
27
27
|
props: {
|
|
28
28
|
decorations: function decorations(state) {
|
|
29
|
+
var _decorations;
|
|
29
30
|
var decorations = [];
|
|
30
31
|
|
|
31
32
|
// Apply selected decoration to node views when they are part of a text selection
|
|
32
33
|
var _state$selection = state.selection,
|
|
33
34
|
from = _state$selection.from,
|
|
34
35
|
to = _state$selection.to;
|
|
35
|
-
decorations.push.apply(
|
|
36
|
+
(_decorations = decorations).push.apply(_decorations, _toConsumableArray(decorateNodesInRange(state, SELECTED_NODE, from, to)));
|
|
36
37
|
|
|
37
38
|
// Apply error decoration to node views when they are part of AST error range
|
|
38
39
|
var ast = getJastFromState(state);
|
|
39
40
|
var _ast$errors = _slicedToArray(ast.errors, 1),
|
|
40
41
|
error = _ast$errors[0];
|
|
41
42
|
if (error instanceof JQLSyntaxError) {
|
|
43
|
+
var _decorations2;
|
|
42
44
|
var documentFrom = getDocumentPosition(state.doc, error.start);
|
|
43
45
|
var documentTo = getDocumentPosition(state.doc, error.stop);
|
|
44
|
-
decorations.push.apply(
|
|
46
|
+
(_decorations2 = decorations).push.apply(_decorations2, _toConsumableArray(decorateNodesInRange(state, ERROR_NODE, documentFrom, documentTo)));
|
|
45
47
|
}
|
|
46
48
|
return DecorationSet.create(state.doc, decorations);
|
|
47
49
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ScreenReaderText: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
package/dist/types/async.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type JQLEditorProps } from './ui/types';
|
|
3
3
|
export declare const preloadJQLEditor: () => import("react-loosely-lazy/dist/types/cleanup").Cleanup;
|
|
4
|
-
export declare const JQLEditorAsync: (props: JQLEditorProps) => JSX.Element;
|
|
4
|
+
export declare const JQLEditorAsync: (props: JQLEditorProps) => React.JSX.Element;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
export declare const hiddenMixin: import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const TooltipContent: import("@emotion/styled").StyledComponent<{
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
6
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type AutocompleteProps } from '../types';
|
|
3
|
-
declare const Autocomplete: ({ keymap, onClick }: AutocompleteProps) => JSX.Element;
|
|
3
|
+
declare const Autocomplete: ({ keymap, onClick }: AutocompleteProps) => React.JSX.Element;
|
|
4
4
|
export default Autocomplete;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type PluginKeymap } from '../../../common/plugin-keymap';
|
|
3
3
|
import { type AutocompleteAnalyticsAttributes, type SelectableAutocompleteOption } from '../types';
|
|
4
4
|
type Props = {
|
|
@@ -7,5 +7,5 @@ type Props = {
|
|
|
7
7
|
keymap: PluginKeymap;
|
|
8
8
|
onClick: (option: SelectableAutocompleteOption, analyticsAttributes: AutocompleteAnalyticsAttributes) => void;
|
|
9
9
|
};
|
|
10
|
-
declare const AutocompleteDropdown: ({ options, loading, keymap, onClick }: Props) => JSX.Element;
|
|
10
|
+
declare const AutocompleteDropdown: ({ options, loading, keymap, onClick }: Props) => React.JSX.Element;
|
|
11
11
|
export default AutocompleteDropdown;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const AutocompleteContainer: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
8
|
export declare const AutocompleteOptionsContainer: import("@emotion/styled").StyledComponent<{
|
|
9
9
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
11
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
12
|
export declare const OptionList: import("@emotion/styled").StyledComponent<{
|
|
13
13
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
15
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
16
16
|
export declare const AutocompleteLoadingFooter: import("@emotion/styled").StyledComponent<{
|
|
17
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
19
|
} & {
|
|
20
20
|
hasOptions: boolean;
|
|
21
21
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const TooltipContent: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
6
|
export declare const OptionListItem: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any> | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
isSelected: boolean;
|
|
11
11
|
isDeprecated: boolean;
|
|
12
12
|
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
13
13
|
export declare const OptionName: import("@emotion/styled").StyledComponent<{
|
|
14
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
-
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
16
16
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
17
|
export declare const DeprecatedOptionContainer: import("@emotion/styled").StyledComponent<{
|
|
18
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
-
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
20
20
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
21
|
export declare const OptionHighlight: import("@emotion/styled").StyledComponent<{
|
|
22
22
|
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
24
24
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
25
25
|
export declare const FieldType: import("@emotion/styled").StyledComponent<{
|
|
26
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
|
-
as?: import("react").ElementType<any> | undefined;
|
|
27
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
28
28
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
29
|
export declare const FieldTypeIcon: import("@emotion/styled").StyledComponent<{
|
|
30
30
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
|
-
as?: import("react").ElementType<any> | undefined;
|
|
31
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
32
32
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const UserContainer: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
selected: boolean;
|
|
7
7
|
error: boolean;
|
|
8
8
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
9
9
|
export declare const NameContainer: import("@emotion/styled").StyledComponent<{
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
12
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
13
13
|
export declare const AvatarWrapper: import("@emotion/styled").StyledComponent<{
|
|
14
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
-
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
16
16
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -889,4 +889,4 @@ export declare const useOnSyntaxHelp: import("react-sweet-state").HookFunction<v
|
|
|
889
889
|
externalErrorMessageViewed: () => Action<State, Props>;
|
|
890
890
|
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
891
891
|
}>, void>;
|
|
892
|
-
export declare const EditorStateContainer: import("react-sweet-state").
|
|
892
|
+
export declare const EditorStateContainer: import("react-sweet-state").OverrideContainerComponent<Props>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentClass, type FunctionComponent } from 'react';
|
|
1
|
+
import React, { type ComponentClass, type FunctionComponent } from 'react';
|
|
2
2
|
import { type JQLEditorUIProps } from '../jql-editor/types';
|
|
3
3
|
type WithErrorBoundaryProps = {
|
|
4
4
|
/**
|
|
@@ -21,5 +21,5 @@ type WithErrorBoundaryProps = {
|
|
|
21
21
|
*/
|
|
22
22
|
isCompact?: boolean;
|
|
23
23
|
};
|
|
24
|
-
export declare const withErrorBoundary: <Props extends WithErrorBoundaryProps>(WrappedComponent: FunctionComponent<Props> | ComponentClass<Props>) => (props: Props) => JSX.Element;
|
|
24
|
+
export declare const withErrorBoundary: <Props extends WithErrorBoundaryProps>(WrappedComponent: FunctionComponent<Props> | ComponentClass<Props>) => (props: Props) => React.JSX.Element;
|
|
25
25
|
export {};
|
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentClass, type FunctionComponent } from 'react';
|
|
1
|
+
import React, { type ComponentClass, type FunctionComponent } from 'react';
|
|
2
2
|
type WithIntlProviderProps = {
|
|
3
3
|
/**
|
|
4
4
|
* React-intl locale. This should be set to "en" if alternate message sets are not being loaded higher in the React
|
|
@@ -6,5 +6,5 @@ type WithIntlProviderProps = {
|
|
|
6
6
|
*/
|
|
7
7
|
locale?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const withIntlProvider: <Props extends WithIntlProviderProps>(WrappedComponent: FunctionComponent<Omit<Props, 'locale'>> | ComponentClass<Omit<Props, 'locale'>>) => (props: Props) => JSX.Element;
|
|
9
|
+
export declare const withIntlProvider: <Props extends WithIntlProviderProps>(WrappedComponent: FunctionComponent<Omit<Props, 'locale'>> | ComponentClass<Omit<Props, 'locale'>>) => (props: Props) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
type Props = {
|
|
3
3
|
expanded: boolean;
|
|
4
4
|
editorId: string;
|
|
@@ -6,5 +6,5 @@ type Props = {
|
|
|
6
6
|
label: string;
|
|
7
7
|
onClick: () => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const BaseExpandToggle: ({ expanded, editorId, isDisabled, label, onClick }: Props) => JSX.Element;
|
|
9
|
+
export declare const BaseExpandToggle: ({ expanded, editorId, isDisabled, label, onClick }: Props) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ExpandToggleContainer: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
type Props = {
|
|
3
3
|
isDisabled?: boolean;
|
|
4
4
|
isSearching?: boolean;
|
|
5
5
|
label: string;
|
|
6
6
|
onSearch: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const BaseSearch: ({ isDisabled, isSearching, label, onSearch }: Props) => JSX.Element;
|
|
8
|
+
export declare const BaseSearch: ({ isDisabled, isSearching, label, onSearch }: Props) => React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type MouseEvent } from 'react';
|
|
1
|
+
import React, { type MouseEvent } from 'react';
|
|
2
2
|
type Props = {
|
|
3
3
|
describedby?: string;
|
|
4
4
|
isDisabled?: boolean;
|
|
5
5
|
label: string;
|
|
6
6
|
onClick: (e: MouseEvent<HTMLElement>) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const BaseSyntaxHelp: ({ describedby, isDisabled, label, onClick }: Props) => JSX.Element;
|
|
8
|
+
export declare const BaseSyntaxHelp: ({ describedby, isDisabled, label, onClick }: Props) => React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const SyntaxHelpContainer: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ExpandToggle: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ExpandToggle: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const JQLEditorControlsContent: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const JQLEditorControlsContent: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ReadOnlyControlsContent: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ReadOnlyControlsContent: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Search: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Search: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SyntaxHelp: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SyntaxHelp: () => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Message components are rendered by priority.
|
|
4
4
|
* Message component decides on its own what exactly to render (GQL vs external messages).
|
|
5
5
|
*/
|
|
6
|
-
export declare const JQLEditorFooterContent: () => JSX.Element;
|
|
6
|
+
export declare const JQLEditorFooterContent: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const JQLEditorHelp: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const JQLEditorHelp: () => React.JSX.Element;
|
|
@@ -4,6 +4,6 @@ type HelpContainerProps = {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const HelpContainer: import("@emotion/styled").StyledComponent<{
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
8
|
} & HelpContainerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ErrorMessages: () => JSX.Element | null;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ErrorMessages: () => React.JSX.Element | null;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type ExternalMessage } from '../../../../state/types';
|
|
3
3
|
export declare const MessageContainer: ({ children }: {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
}) => JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
6
|
export declare const FormatMessages: ({ messages }: {
|
|
7
7
|
messages: ExternalMessage[];
|
|
8
|
-
}) => JSX.Element | null;
|
|
8
|
+
}) => React.JSX.Element | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const MessageContainer: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
isSearch: boolean;
|
|
7
7
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
8
|
export declare const MessageList: import("@emotion/styled").StyledComponent<{
|
|
9
9
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
11
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
export declare const useFormattedInfoMessage: () => ReactNode;
|
|
3
|
-
export declare const InfoMessages: () => JSX.Element | null;
|
|
3
|
+
export declare const InfoMessages: () => React.JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
export declare const useFormattedWarningMessage: () => ReactNode;
|
|
3
|
-
export declare const WarningMessages: () => JSX.Element | null;
|
|
3
|
+
export declare const WarningMessages: () => React.JSX.Element | null;
|
|
@@ -53,12 +53,12 @@ type Props = {
|
|
|
53
53
|
*/
|
|
54
54
|
onEditorViewTransitionEnd?: () => void;
|
|
55
55
|
};
|
|
56
|
-
declare const JQLEditorLayout: (props: Props) => JSX.Element;
|
|
56
|
+
declare const JQLEditorLayout: (props: Props) => React.JSX.Element;
|
|
57
57
|
type ReadOnlyProps = {
|
|
58
58
|
query: string;
|
|
59
59
|
};
|
|
60
60
|
export declare const JQLEditorReadOnly: ({ isSearch, isCompact, ...props }: ReadOnlyProps & {
|
|
61
61
|
isSearch?: boolean | undefined;
|
|
62
62
|
isCompact?: boolean | undefined;
|
|
63
|
-
}) => JSX.Element;
|
|
63
|
+
}) => React.JSX.Element;
|
|
64
64
|
export default JQLEditorLayout;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const EditorMain: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
6
|
export declare const EditorFooter: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any> | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
10
|
type EditorViewContainerProps = {
|
|
11
11
|
editorViewHasFocus?: boolean;
|
|
@@ -13,17 +13,17 @@ type EditorViewContainerProps = {
|
|
|
13
13
|
};
|
|
14
14
|
export declare const EditorViewContainer: import("@emotion/styled").StyledComponent<{
|
|
15
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
17
|
} & EditorViewContainerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
18
|
export declare const ReadOnlyEditorViewContainer: import("@emotion/styled").StyledComponent<{
|
|
19
19
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
-
as?: import("react").ElementType<any> | undefined;
|
|
20
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
21
|
} & EditorViewContainerProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
22
22
|
theme?: import("@emotion/react").Theme | undefined;
|
|
23
23
|
}, {}, {}>;
|
|
24
24
|
export declare const LineNumberToolbar: import("@emotion/styled").StyledComponent<{
|
|
25
25
|
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
-
as?: import("react").ElementType<any> | undefined;
|
|
26
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
lineNumbersVisible: boolean;
|
|
29
29
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -32,7 +32,7 @@ export declare const LineNumberToolbar: import("@emotion/styled").StyledComponen
|
|
|
32
32
|
*/
|
|
33
33
|
export declare const EditorView: import("@emotion/styled").StyledComponent<{
|
|
34
34
|
theme?: import("@emotion/react").Theme | undefined;
|
|
35
|
-
as?: import("react").ElementType<any> | undefined;
|
|
35
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
36
36
|
} & {
|
|
37
37
|
defaultMaxRows: number;
|
|
38
38
|
expandedRows: number;
|
|
@@ -41,7 +41,7 @@ export declare const EditorView: import("@emotion/styled").StyledComponent<{
|
|
|
41
41
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
42
42
|
export declare const ReadOnlyEditorView: import("@emotion/styled").StyledComponent<{
|
|
43
43
|
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
-
as?: import("react").ElementType<any> | undefined;
|
|
44
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
45
45
|
} & {
|
|
46
46
|
defaultMaxRows: number;
|
|
47
47
|
expandedRows: number;
|
|
@@ -52,7 +52,7 @@ export declare const ReadOnlyEditorView: import("@emotion/styled").StyledCompone
|
|
|
52
52
|
}, {}, {}>;
|
|
53
53
|
export declare const EditorControls: import("@emotion/styled").StyledComponent<{
|
|
54
54
|
theme?: import("@emotion/react").Theme | undefined;
|
|
55
|
-
as?: import("react").ElementType<any> | undefined;
|
|
55
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
56
56
|
} & {
|
|
57
57
|
isSearch: boolean;
|
|
58
58
|
isCompact: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Provides actions to manage portals via context and renders portalled components into the React tree.
|
|
4
4
|
*/
|
|
5
5
|
export declare const JQLEditorPortalRenderer: ({ children }: {
|
|
6
6
|
children: ReactNode;
|
|
7
|
-
}) => JSX.Element;
|
|
7
|
+
}) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledTooltipTag: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|