@atlaskit/jql-editor 6.6.0 → 7.0.0
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 +26 -0
- package/analytics/package.json +1 -8
- package/async/package.json +1 -8
- package/components/types/package.json +1 -8
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/esm/analytics/util.js +1 -1
- package/i18n/package.json +1 -8
- package/jql-editor-analytics-listener/package.json +1 -8
- package/jql-editor-layout/package.json +1 -8
- package/package.json +29 -37
- package/state/types/package.json +1 -8
- package/types/package.json +1 -8
- package/ui/package.json +1 -8
- package/ui/types/package.json +1 -8
- package/dist/types-ts4.5/accessibility/index.d.ts +0 -1
- package/dist/types-ts4.5/accessibility/styled.d.ts +0 -7
- package/dist/types-ts4.5/analytics/constants.d.ts +0 -18
- package/dist/types-ts4.5/analytics/index.d.ts +0 -7
- package/dist/types-ts4.5/analytics/listener/analytics-web-client-wrapper.d.ts +0 -9
- package/dist/types-ts4.5/analytics/listener/handle-event.d.ts +0 -9
- package/dist/types-ts4.5/analytics/listener/helpers/logger.d.ts +0 -24
- package/dist/types-ts4.5/analytics/listener/index.d.ts +0 -7
- package/dist/types-ts4.5/analytics/listener/jql-editor-analytics-listener.d.ts +0 -20
- package/dist/types-ts4.5/analytics/listener/process-event-payload.d.ts +0 -8
- package/dist/types-ts4.5/analytics/listener/types.d.ts +0 -7
- package/dist/types-ts4.5/analytics/types.d.ts +0 -3
- package/dist/types-ts4.5/analytics/util.d.ts +0 -5
- package/dist/types-ts4.5/async.d.ts +0 -5
- package/dist/types-ts4.5/commands/select-error-command/index.d.ts +0 -5
- package/dist/types-ts4.5/common/constants.d.ts +0 -6
- package/dist/types-ts4.5/common/messages.d.ts +0 -7
- package/dist/types-ts4.5/common/styled.d.ts +0 -8
- package/dist/types-ts4.5/entry-points/analytics.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/async.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/components-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/jql-editor-analytics-listener.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/jql-editor-layout.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/src-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/state-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ui-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ui.d.ts +0 -1
- package/dist/types-ts4.5/hooks/use-editor-theme/index.d.ts +0 -43
- package/dist/types-ts4.5/hooks/use-editor-view-has-infos/index.d.ts +0 -1
- package/dist/types-ts4.5/hooks/use-editor-view-has-warnings/index.d.ts +0 -1
- package/dist/types-ts4.5/hooks/use-editor-view-is-invalid/index.d.ts +0 -11
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
- package/dist/types-ts4.5/i18n/da.d.ts +0 -8
- package/dist/types-ts4.5/i18n/de.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
- package/dist/types-ts4.5/i18n/es.d.ts +0 -8
- package/dist/types-ts4.5/i18n/et.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
- package/dist/types-ts4.5/i18n/index.d.ts +0 -24
- package/dist/types-ts4.5/i18n/it.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
- package/dist/types-ts4.5/i18n/th.d.ts +0 -8
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
- package/dist/types-ts4.5/index.d.ts +0 -5
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete/index.d.ts +0 -4
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/index.d.ts +0 -11
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +0 -24
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/index.d.ts +0 -10
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/messages.d.ts +0 -12
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/styled.d.ts +0 -34
- package/dist/types-ts4.5/plugins/autocomplete/components/types.d.ts +0 -38
- package/dist/types-ts4.5/plugins/autocomplete/constants.d.ts +0 -14
- package/dist/types-ts4.5/plugins/autocomplete/index.d.ts +0 -4
- package/dist/types-ts4.5/plugins/autocomplete/messages.d.ts +0 -7
- package/dist/types-ts4.5/plugins/autocomplete/types.d.ts +0 -1
- package/dist/types-ts4.5/plugins/autocomplete/view.d.ts +0 -19
- package/dist/types-ts4.5/plugins/common/get-document-position/index.d.ts +0 -9
- package/dist/types-ts4.5/plugins/common/plugin-keymap.d.ts +0 -8
- package/dist/types-ts4.5/plugins/common/react-plugin-view.d.ts +0 -48
- package/dist/types-ts4.5/plugins/index.d.ts +0 -5
- package/dist/types-ts4.5/plugins/jql-ast/JQLEditorErrorStrategy.d.ts +0 -17
- package/dist/types-ts4.5/plugins/jql-ast/constants.d.ts +0 -3
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.d.ts +0 -5
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.d.ts +0 -11
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.d.ts +0 -6
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.d.ts +0 -6
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.d.ts +0 -6
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.d.ts +0 -9
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.d.ts +0 -6
- package/dist/types-ts4.5/plugins/jql-ast/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/jql-ast/messages.d.ts +0 -172
- package/dist/types-ts4.5/plugins/jql-ast/utils.d.ts +0 -4
- package/dist/types-ts4.5/plugins/jql-syntax-highlighting/index.d.ts +0 -4
- package/dist/types-ts4.5/plugins/jql-syntax-highlighting/types.d.ts +0 -5
- package/dist/types-ts4.5/plugins/jql-syntax-highlighting/visitor.d.ts +0 -19
- package/dist/types-ts4.5/plugins/rich-inline-nodes/constants.d.ts +0 -3
- package/dist/types-ts4.5/plugins/rich-inline-nodes/index.d.ts +0 -4
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/base/index.d.ts +0 -16
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/base/types.d.ts +0 -7
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/goal-icon.d.ts +0 -16
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/goal-node.d.ts +0 -10
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/types.d.ts +0 -5
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/lozenge-with-avatar/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/lozenge-with-avatar/styled.d.ts +0 -18
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/messages.d.ts +0 -7
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/project-node.d.ts +0 -10
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/types.d.ts +0 -7
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/team/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/team/styled.d.ts +0 -18
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/types.d.ts +0 -9
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/styled.d.ts +0 -18
- package/dist/types-ts4.5/plugins/rich-inline-nodes/types.d.ts +0 -2
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/create-node-spec.d.ts +0 -4
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/react-node-view.d.ts +0 -24
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/replace-nodes-transaction.d.ts +0 -3
- package/dist/types-ts4.5/plugins/types.d.ts +0 -16
- package/dist/types-ts4.5/plugins/validation-tooltip/constants.d.ts +0 -5
- package/dist/types-ts4.5/plugins/validation-tooltip/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/validation-tooltip/view.d.ts +0 -18
- package/dist/types-ts4.5/schema/index.d.ts +0 -28
- package/dist/types-ts4.5/state/analytics/index.d.ts +0 -9
- package/dist/types-ts4.5/state/autocomplete/index.d.ts +0 -4
- package/dist/types-ts4.5/state/hydration/index.d.ts +0 -3
- package/dist/types-ts4.5/state/hydration/util.d.ts +0 -30
- package/dist/types-ts4.5/state/index.d.ts +0 -102
- package/dist/types-ts4.5/state/types.d.ts +0 -261
- package/dist/types-ts4.5/state/util.d.ts +0 -16
- package/dist/types-ts4.5/types.d.ts +0 -5
- package/dist/types-ts4.5/ui/error-boundary/index.d.ts +0 -25
- package/dist/types-ts4.5/ui/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/intl-provider/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/jql-editor/index.d.ts +0 -13
- package/dist/types-ts4.5/ui/jql-editor/types.d.ts +0 -136
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +0 -7
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-search/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +0 -7
- package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/jql-editor-controls-content/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/read-only-controls-content/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/search/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/search/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/jql-editor-footer-content/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +0 -11
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/index.d.ts +0 -15
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +0 -13
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/infos/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/jql-editor-layout/index.d.ts +0 -65
- package/dist/types-ts4.5/ui/jql-editor-layout/styled.d.ts +0 -65
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/context.d.ts +0 -4
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/types.d.ts +0 -38
- package/dist/types-ts4.5/ui/jql-editor-view/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/tooltip-tag/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/tooltip-tag/styled.d.ts +0 -7
- package/dist/types-ts4.5/ui/types.d.ts +0 -9
- package/dist/types-ts4.5/utils/document-text/index.d.ts +0 -9
- package/dist/types-ts4.5/utils/split-text-by-new-line/index.d.ts +0 -4
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
buttonLabel: {
|
|
3
|
-
defaultMessage: string;
|
|
4
|
-
description: string;
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
7
|
-
collapseTooltip: {
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
description: string;
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
expandTooltip: {
|
|
13
|
-
defaultMessage: string;
|
|
14
|
-
description: string;
|
|
15
|
-
id: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
fieldNewLineCommand: {
|
|
3
|
-
defaultMessage: string;
|
|
4
|
-
description: string;
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
7
|
-
newLineCommand: {
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
description: string;
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
searchCommand: {
|
|
13
|
-
defaultMessage: string;
|
|
14
|
-
description: string;
|
|
15
|
-
id: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
-
import { type Theme } from '@emotion/react';
|
|
3
|
-
import { type StyledComponent } from '@emotion/styled';
|
|
4
|
-
type HelpContainerProps = {
|
|
5
|
-
isVisible: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const HelpContainer: StyledComponent<{
|
|
8
|
-
as?: React.ElementType;
|
|
9
|
-
theme?: Theme;
|
|
10
|
-
} & HelpContainerProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ExternalMessage } from '../../../../state/types';
|
|
3
|
-
export declare const MessageContainer: ({ children, }: {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}) => React.JSX.Element;
|
|
6
|
-
export declare const FormatMessages: ({ messages, }: {
|
|
7
|
-
messages: ExternalMessage[];
|
|
8
|
-
}) => React.JSX.Element | null;
|
|
9
|
-
/**
|
|
10
|
-
* This function was extracted from FormatMessages, so that the rendering is decoupled from the logic
|
|
11
|
-
* This is so that the extractMessageNodes can used elsewhere where rendering is delegated to a different renderer
|
|
12
|
-
*
|
|
13
|
-
* Simply put, this function only handles getting m.message, and limiting to MAX_MESSAGES
|
|
14
|
-
*/
|
|
15
|
-
export declare const extractMessageNodes: (messages: ExternalMessage[]) => React.ReactElement[];
|
|
@@ -1,13 +0,0 @@
|
|
|
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 MessageContainer: StyledComponent<{
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
} & {
|
|
8
|
-
isSearch: boolean;
|
|
9
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
-
export declare const MessageList: StyledComponent<{
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
theme?: Theme;
|
|
13
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
defaultWarning: {
|
|
3
|
-
defaultMessage: string;
|
|
4
|
-
description: string;
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
7
|
-
deprecatedBothParentReplacementMessage: {
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
description: string;
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
deprecatedParentReplacementMessage: {
|
|
13
|
-
defaultMessage: string;
|
|
14
|
-
description: string;
|
|
15
|
-
id: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React, { type FocusEvent, type ReactNode } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
/**
|
|
4
|
-
* React node to render within the editor controls group.
|
|
5
|
-
*/
|
|
6
|
-
EditorControlsContent: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* React node to render within the footer.
|
|
9
|
-
*/
|
|
10
|
-
EditorFooterContent: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Flag to determine whether the editor view (or autocomplete dropdown) currently has focus.
|
|
13
|
-
*/
|
|
14
|
-
editorViewHasFocus: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Flag to determine if there were any JQL parse errors in the last submitted query.
|
|
17
|
-
*/
|
|
18
|
-
editorViewIsInvalid: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Flag to determine whether line numbers should be shown in the editor.
|
|
21
|
-
*/
|
|
22
|
-
lineNumbersVisible: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* ID to assign to the main wrapper of the editor.
|
|
25
|
-
*/
|
|
26
|
-
mainId: string;
|
|
27
|
-
/**
|
|
28
|
-
* Ref callback to the main wrapper of the editor.
|
|
29
|
-
*/
|
|
30
|
-
onEditorMainRef?: (editorMain: HTMLElement | null) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Callback when the editor view is blurred.
|
|
33
|
-
*/
|
|
34
|
-
onEditorViewBlur?: () => void;
|
|
35
|
-
/**
|
|
36
|
-
* Ref callback to the editor view container element.
|
|
37
|
-
*/
|
|
38
|
-
onEditorViewContainerRef?: (editorViewContainer: HTMLElement | null) => void;
|
|
39
|
-
/**
|
|
40
|
-
* Callback when the editor view is scrolled.
|
|
41
|
-
*/
|
|
42
|
-
onEditorViewContainerScroll?: (event: React.UIEvent<HTMLElement>) => void;
|
|
43
|
-
/**
|
|
44
|
-
* Callback when the editor view is focused.
|
|
45
|
-
*/
|
|
46
|
-
onEditorViewFocus?: (event: FocusEvent<HTMLElement>) => void;
|
|
47
|
-
/**
|
|
48
|
-
* Ref callback to the editor view element which the Prosemirror editor will be bound to.
|
|
49
|
-
*/
|
|
50
|
-
onEditorViewRef?: (editorView: HTMLElement | null) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Callback when the editor view receives a CSS transition end event.
|
|
53
|
-
*/
|
|
54
|
-
onEditorViewTransitionEnd?: () => void;
|
|
55
|
-
};
|
|
56
|
-
declare const JQLEditorLayout: (props: Props) => React.JSX.Element;
|
|
57
|
-
type ReadOnlyProps = {
|
|
58
|
-
query: string;
|
|
59
|
-
};
|
|
60
|
-
export declare const JQLEditorReadOnly: ({ isSearch, isCompact, defaultRows, ...props }: ReadOnlyProps & {
|
|
61
|
-
defaultRows?: number;
|
|
62
|
-
isCompact?: boolean;
|
|
63
|
-
isSearch?: boolean;
|
|
64
|
-
}) => React.JSX.Element;
|
|
65
|
-
export default JQLEditorLayout;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { DetailedHTMLProps, HTMLAttributes, ClassAttributes } from 'react';
|
|
2
|
-
import { type Theme } from '@emotion/react';
|
|
3
|
-
import { type StyledComponent } from '@emotion/styled';
|
|
4
|
-
export declare const EditorMain: StyledComponent<{
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
-
export declare const EditorFooter: StyledComponent<{
|
|
9
|
-
as?: React.ElementType;
|
|
10
|
-
theme?: Theme;
|
|
11
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
-
type EditorViewContainerProps = {
|
|
13
|
-
editorViewHasFocus?: boolean;
|
|
14
|
-
editorViewIsInvalid?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare const EditorViewContainer: StyledComponent<{
|
|
17
|
-
as?: React.ElementType;
|
|
18
|
-
theme?: Theme;
|
|
19
|
-
} & EditorViewContainerProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
-
export declare const ReadOnlyEditorViewContainer: StyledComponent<{
|
|
21
|
-
as?: React.ElementType;
|
|
22
|
-
theme?: Theme;
|
|
23
|
-
} & EditorViewContainerProps & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
|
|
24
|
-
theme?: Theme;
|
|
25
|
-
}, {}, {}>;
|
|
26
|
-
export declare const LineNumberToolbar: StyledComponent<{
|
|
27
|
-
as?: React.ElementType;
|
|
28
|
-
theme?: Theme;
|
|
29
|
-
} & {
|
|
30
|
-
lineNumbersVisible: boolean;
|
|
31
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
32
|
-
/**
|
|
33
|
-
* The main div which the Prosemirror editor will be rendered into.
|
|
34
|
-
*/
|
|
35
|
-
export declare const EditorView: StyledComponent<{
|
|
36
|
-
as?: React.ElementType;
|
|
37
|
-
theme?: Theme;
|
|
38
|
-
} & {
|
|
39
|
-
defaultMaxRows: number;
|
|
40
|
-
defaultRows?: number;
|
|
41
|
-
expandedRows: number;
|
|
42
|
-
isCompact: boolean;
|
|
43
|
-
lineNumbersVisible: boolean;
|
|
44
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
45
|
-
export declare const ReadOnlyEditorView: StyledComponent<{
|
|
46
|
-
as?: React.ElementType;
|
|
47
|
-
theme?: Theme;
|
|
48
|
-
} & {
|
|
49
|
-
defaultMaxRows: number;
|
|
50
|
-
defaultRows?: number;
|
|
51
|
-
expandedRows: number;
|
|
52
|
-
isCompact: boolean;
|
|
53
|
-
lineNumbersVisible: boolean;
|
|
54
|
-
} & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
|
|
55
|
-
theme?: Theme;
|
|
56
|
-
}, {}, {}>;
|
|
57
|
-
export declare const EditorControls: StyledComponent<{
|
|
58
|
-
as?: React.ElementType;
|
|
59
|
-
theme?: Theme;
|
|
60
|
-
} & {
|
|
61
|
-
isCompact: boolean;
|
|
62
|
-
isSearch: boolean;
|
|
63
|
-
isVisualRefresh?: boolean;
|
|
64
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
65
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Provides actions to manage portals via context and renders portalled components into the React tree.
|
|
4
|
-
*/
|
|
5
|
-
export declare const JQLEditorPortalRenderer: ({ children, }: {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}) => React.JSX.Element;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type PluginContainerKey, type PluginContainers } from '../../plugins/types';
|
|
3
|
-
export type Container = PluginContainerKey | Element;
|
|
4
|
-
export type PortalActions = {
|
|
5
|
-
onCreatePortal: (key: string, portalComponent: ReactNode, container: Container) => void;
|
|
6
|
-
onDestroyPortal: (key: string) => void;
|
|
7
|
-
onRegisterPluginContainer: (containerKey: PluginContainerKey, element: HTMLElement | null) => void;
|
|
8
|
-
};
|
|
9
|
-
export type PortalState = {
|
|
10
|
-
components: {
|
|
11
|
-
[key: string]: {
|
|
12
|
-
container: Container;
|
|
13
|
-
portalComponent: ReactNode;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
containers: PluginContainers;
|
|
17
|
-
};
|
|
18
|
-
type CreatePortalAction = {
|
|
19
|
-
payload: {
|
|
20
|
-
container: Container;
|
|
21
|
-
key: string;
|
|
22
|
-
portalComponent: ReactNode;
|
|
23
|
-
};
|
|
24
|
-
type: 'createPortal';
|
|
25
|
-
};
|
|
26
|
-
type DestroyPortalAction = {
|
|
27
|
-
payload: string;
|
|
28
|
-
type: 'destroyPortal';
|
|
29
|
-
};
|
|
30
|
-
type RegisterPluginContainerAction = {
|
|
31
|
-
payload: {
|
|
32
|
-
containerKey: PluginContainerKey;
|
|
33
|
-
element: HTMLElement | null;
|
|
34
|
-
};
|
|
35
|
-
type: 'registerPluginContainer';
|
|
36
|
-
};
|
|
37
|
-
export type PortalAction = CreatePortalAction | DestroyPortalAction | RegisterPluginContainerAction;
|
|
38
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
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 StyledTooltipTag: StyledComponent<{
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type JQLEditorUIProps } from './jql-editor/types';
|
|
2
|
-
export type { JQLEditorUIProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, HydratedLozengeWithAvatar, } from './jql-editor/types';
|
|
3
|
-
export type JQLEditorProps = JQLEditorUIProps & {
|
|
4
|
-
/**
|
|
5
|
-
* React-intl locale. This should be set to "en" if alternate message sets are not being loaded higher in the React
|
|
6
|
-
* tree.
|
|
7
|
-
*/
|
|
8
|
-
locale?: string;
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Fragment, type Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
/**
|
|
3
|
-
* Get all text between positions `from` and `to` with a newline char between block nodes.
|
|
4
|
-
*/
|
|
5
|
-
export declare const getNodeText: (node: Node, from: number, to: number) => string;
|
|
6
|
-
/**
|
|
7
|
-
* Get all text between positions `from` and `to` with a newline char between block nodes.
|
|
8
|
-
*/
|
|
9
|
-
export declare const getFragmentText: (fragment: Fragment, from: number, to: number) => string;
|