@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,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by i18n-tools.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
export { default as zh } from './zh';
|
|
8
|
-
export { default as cs } from './cs';
|
|
9
|
-
export { default as da } from './da';
|
|
10
|
-
export { default as nl } from './nl';
|
|
11
|
-
export { default as fi } from './fi';
|
|
12
|
-
export { default as fr } from './fr';
|
|
13
|
-
export { default as de } from './de';
|
|
14
|
-
export { default as hu } from './hu';
|
|
15
|
-
export { default as it } from './it';
|
|
16
|
-
export { default as ja } from './ja';
|
|
17
|
-
export { default as ko } from './ko';
|
|
18
|
-
export { default as nb } from './nb';
|
|
19
|
-
export { default as pl } from './pl';
|
|
20
|
-
export { default as pt_BR } from './pt_BR';
|
|
21
|
-
export { default as ru } from './ru';
|
|
22
|
-
export { default as es } from './es';
|
|
23
|
-
export { default as sv } from './sv';
|
|
24
|
-
export { default as en_ZZ } from './en_ZZ';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as JQLEditor } from './ui';
|
|
2
|
-
export { JQLEditorAsync, preloadJQLEditor } from './async';
|
|
3
|
-
export { JQLEditorReadOnly } from './ui/jql-editor-layout';
|
|
4
|
-
export { JQLEditorAnalyticsListener, ANALYTICS_CHANNEL, useJqlPackageAnalytics, EventType, } from './analytics';
|
|
5
|
-
export type { ListenerProps, JqlAnalyticsEvent, JQLEditorUIProps, JQLEditorProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, AutocompleteOption, AutocompleteValueType, AutocompleteOptions, AutocompleteProvider, JQLClause, ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, CustomComponents, } from './types';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type PluginKeymap } from '../../../common/plugin-keymap';
|
|
3
|
-
import { type AutocompleteAnalyticsAttributes, type SelectableAutocompleteOption } from '../types';
|
|
4
|
-
type Props = {
|
|
5
|
-
keymap: PluginKeymap;
|
|
6
|
-
loading: boolean;
|
|
7
|
-
onClick: (option: SelectableAutocompleteOption, analyticsAttributes: AutocompleteAnalyticsAttributes) => void;
|
|
8
|
-
options: SelectableAutocompleteOption[];
|
|
9
|
-
};
|
|
10
|
-
declare const AutocompleteDropdown: ({ options, loading, keymap, onClick, }: Props) => React.JSX.Element | null;
|
|
11
|
-
export default AutocompleteDropdown;
|
|
@@ -1,24 +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 AutocompleteContainer: StyledComponent<{
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
} & {
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
usePopper?: boolean;
|
|
10
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
-
export declare const AutocompleteOptionsContainer: StyledComponent<{
|
|
12
|
-
as?: React.ElementType;
|
|
13
|
-
theme?: Theme;
|
|
14
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
-
export declare const OptionList: StyledComponent<{
|
|
16
|
-
as?: React.ElementType;
|
|
17
|
-
theme?: Theme;
|
|
18
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
19
|
-
export declare const AutocompleteLoadingFooter: StyledComponent<{
|
|
20
|
-
as?: React.ElementType;
|
|
21
|
-
theme?: Theme;
|
|
22
|
-
} & {
|
|
23
|
-
hasOptions: boolean;
|
|
24
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type SelectableAutocompleteOption } from '../types';
|
|
3
|
-
type Props = {
|
|
4
|
-
isSelected: boolean;
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
onMouseMove: () => void;
|
|
7
|
-
option: SelectableAutocompleteOption;
|
|
8
|
-
};
|
|
9
|
-
declare const AutocompleteOption: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
-
export default AutocompleteOption;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
deprecatedFieldTooltipDefaultMessage: {
|
|
3
|
-
defaultMessage: string;
|
|
4
|
-
description: string;
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
7
|
-
deprecatedFieldTooltipParentReplacementMessage: {
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
description: string;
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
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<{
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
-
export declare const OptionListItem: StyledComponent<{
|
|
9
|
-
as?: React.ElementType;
|
|
10
|
-
theme?: Theme;
|
|
11
|
-
} & {
|
|
12
|
-
isDeprecated: boolean;
|
|
13
|
-
isSelected: boolean;
|
|
14
|
-
}, DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
15
|
-
export declare const OptionName: StyledComponent<{
|
|
16
|
-
as?: React.ElementType;
|
|
17
|
-
theme?: Theme;
|
|
18
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
-
export declare const DeprecatedOptionContainer: StyledComponent<{
|
|
20
|
-
as?: React.ElementType;
|
|
21
|
-
theme?: Theme;
|
|
22
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
-
export declare const OptionHighlight: StyledComponent<{
|
|
24
|
-
as?: React.ElementType;
|
|
25
|
-
theme?: Theme;
|
|
26
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
27
|
-
export declare const FieldType: StyledComponent<{
|
|
28
|
-
as?: React.ElementType;
|
|
29
|
-
theme?: Theme;
|
|
30
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
-
export declare const FieldTypeIcon: StyledComponent<{
|
|
32
|
-
as?: React.ElementType;
|
|
33
|
-
theme?: Theme;
|
|
34
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { type JQLRuleContext, type Position } from '@atlaskit/jql-autocomplete';
|
|
2
|
-
import { type AutocompleteOption } from '@atlaskit/jql-editor-common';
|
|
3
|
-
import { type PluginKeymap } from '../../common/plugin-keymap';
|
|
4
|
-
export type { AutocompleteProvider, AutocompleteOptions, AutocompleteOption, AutocompleteValueType, } from '@atlaskit/jql-editor-common';
|
|
5
|
-
export type AutocompleteOptionType = 'field' | 'operator' | 'value' | 'function' | 'keyword';
|
|
6
|
-
export type AutocompleteOptionExtra = {
|
|
7
|
-
context: JQLRuleContext | null;
|
|
8
|
-
matchedText: string;
|
|
9
|
-
replacePosition: Position;
|
|
10
|
-
type: AutocompleteOptionType;
|
|
11
|
-
};
|
|
12
|
-
export type SelectableAutocompleteOption = AutocompleteOption & AutocompleteOptionExtra & {
|
|
13
|
-
id: string;
|
|
14
|
-
};
|
|
15
|
-
export type SelectableAutocompleteOptions = SelectableAutocompleteOption[];
|
|
16
|
-
export type AutocompleteOptionGroup = {
|
|
17
|
-
fields: SelectableAutocompleteOptions;
|
|
18
|
-
functions: SelectableAutocompleteOptions;
|
|
19
|
-
operators: SelectableAutocompleteOptions;
|
|
20
|
-
tokens: SelectableAutocompleteOptions;
|
|
21
|
-
values: SelectableAutocompleteOptions;
|
|
22
|
-
};
|
|
23
|
-
export type AutocompletePosition = {
|
|
24
|
-
left: number;
|
|
25
|
-
top: number;
|
|
26
|
-
};
|
|
27
|
-
export type AutocompleteProps = {
|
|
28
|
-
keymap: PluginKeymap;
|
|
29
|
-
onClick: (option: SelectableAutocompleteOption) => void;
|
|
30
|
-
};
|
|
31
|
-
export type AutocompleteAnalyticsAttributes = {
|
|
32
|
-
keyboard: boolean;
|
|
33
|
-
nodeType: string;
|
|
34
|
-
numberOfOptions: number;
|
|
35
|
-
optionIndex: number;
|
|
36
|
-
optionType: AutocompleteOptionType;
|
|
37
|
-
queryLength: number;
|
|
38
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { type AutocompleteProvider } from '@atlaskit/jql-editor-common';
|
|
3
|
-
export declare const AUTOCOMPLETE_PLUGIN_NAME = "jql-autocomplete-plugin";
|
|
4
|
-
export declare const ARROW_UP_KEY = "ArrowUp";
|
|
5
|
-
export declare const ARROW_DOWN_KEY = "ArrowDown";
|
|
6
|
-
export declare const CMD_ARROW_UP_KEY = "Cmd-ArrowUp";
|
|
7
|
-
export declare const CMD_ARROW_DOWN_KEY = "Cmd-ArrowDown";
|
|
8
|
-
export declare const HOME_KEY = "Home";
|
|
9
|
-
export declare const END_KEY = "End";
|
|
10
|
-
export declare const ENTER_KEY = "Enter";
|
|
11
|
-
export declare const ESCAPE_KEY = "Escape";
|
|
12
|
-
export declare const TAB_KEY = "Tab";
|
|
13
|
-
export declare const defaultAutocompleteProvider: AutocompleteProvider;
|
|
14
|
-
export declare const JQLAutocompletePluginKey: PluginKey<void>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { type PortalActions } from '../../ui/jql-editor-portal-provider/types';
|
|
3
|
-
declare const autocompletePlugin: (portalActions: PortalActions, enableRichInlineNodes: boolean) => Plugin<void>;
|
|
4
|
-
export default autocompletePlugin;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { AutocompleteValueType, AutocompleteOptions, AutocompleteOption, AutocompleteProvider, AutocompleteAnalyticsAttributes, AutocompleteOptionExtra, AutocompleteOptionGroup, AutocompleteOptionType, AutocompletePosition, AutocompleteProps, SelectableAutocompleteOption, SelectableAutocompleteOptions, } from './components/types';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type FunctionComponent } from 'react';
|
|
2
|
-
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import { type PortalActions } from '../../ui/jql-editor-portal-provider/types';
|
|
6
|
-
import { type PluginKeymap } from '../common/plugin-keymap';
|
|
7
|
-
import ReactPluginView from '../common/react-plugin-view';
|
|
8
|
-
import { type AutocompleteProps, type SelectableAutocompleteOption } from './components/types';
|
|
9
|
-
export default class AutocompletePluginView extends ReactPluginView<AutocompleteProps> {
|
|
10
|
-
private readonly view;
|
|
11
|
-
private readonly keymap;
|
|
12
|
-
private readonly enableRichInlineNodes;
|
|
13
|
-
constructor(view: EditorView, keymap: PluginKeymap, portalActions: PortalActions, enableRichInlineNodes: boolean);
|
|
14
|
-
getComponent: () => FunctionComponent<AutocompleteProps>;
|
|
15
|
-
getInitialComponentProps: () => AutocompleteProps;
|
|
16
|
-
isSameState(state: EditorState, prevState: EditorState): boolean;
|
|
17
|
-
onReplaceSuggestion: (option: SelectableAutocompleteOption) => void;
|
|
18
|
-
getSliceForSuggestion: (option: SelectableAutocompleteOption) => Slice;
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
/**
|
|
3
|
-
* Return the Prosemirror document position that maps to the provided plain text position.
|
|
4
|
-
*
|
|
5
|
-
* @param doc Prosemirror document
|
|
6
|
-
* @param textPosition Text position to find in the Prosemirror document.
|
|
7
|
-
*/
|
|
8
|
-
declare const getDocumentPosition: (doc: Node, textPosition: number) => number;
|
|
9
|
-
export default getDocumentPosition;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type JQLEditorCommand } from '../../schema';
|
|
2
|
-
export declare class PluginKeymap {
|
|
3
|
-
private keymap;
|
|
4
|
-
bindKey(key: string, handler: () => boolean): void;
|
|
5
|
-
bindMultipleKeys(keys: string[], handler: () => boolean): void;
|
|
6
|
-
unbindKey(key: string): void;
|
|
7
|
-
getKeyBinding(key: string): JQLEditorCommand;
|
|
8
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { type FunctionComponent } from 'react';
|
|
2
|
-
import { Subject } from 'rxjs/Subject';
|
|
3
|
-
import { type PortalActions } from '../../ui/jql-editor-portal-provider/types';
|
|
4
|
-
import { type PluginContainerKey } from '../types';
|
|
5
|
-
/**
|
|
6
|
-
* Abstract class for Prosemirror plugin views which need to mount a React component. Concrete subclasses must implement
|
|
7
|
-
* {@link ReactPluginView#getComponent} which specifies the React component to render, along with
|
|
8
|
-
* {@link ReactPluginView#getInitialComponentProps} which returns any props to pass to the component on initial render.
|
|
9
|
-
*
|
|
10
|
-
* After the class is constructed, the caller must invoke {@link ReactPluginView#init} in order to mount the component.
|
|
11
|
-
*
|
|
12
|
-
* If there are external changes which the component needs to respond to, {@link ReactPluginView#componentSubject} can
|
|
13
|
-
* be used to trigger a re-render of the component with updated props. For example:
|
|
14
|
-
* ```
|
|
15
|
-
* update = (view: EditorView) => {
|
|
16
|
-
* this.componentSubject.next(this.getComponentProps(view));
|
|
17
|
-
* };
|
|
18
|
-
*
|
|
19
|
-
* getComponentProps = (view: EditorView) => {
|
|
20
|
-
* // Some logic to get props from the Prosemirror view
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export default abstract class ReactPluginView<ComponentProps extends {}> {
|
|
25
|
-
protected readonly componentSubject: Subject<ComponentProps>;
|
|
26
|
-
private readonly portalActions;
|
|
27
|
-
private readonly portalKey;
|
|
28
|
-
private readonly containerKey;
|
|
29
|
-
/**
|
|
30
|
-
* Construct a Prosemirror plugin view which will render a React component in a portal.
|
|
31
|
-
*
|
|
32
|
-
* @param portalActions Provides callback functions which can be invoked to create and destroy a portal.
|
|
33
|
-
* @param portalKey Unique identifier for the plugin component.
|
|
34
|
-
* @param containerKey Key representing the HTML container the React component will be portalled into.
|
|
35
|
-
* @protected
|
|
36
|
-
*/
|
|
37
|
-
protected constructor(portalActions: PortalActions, portalKey: string, containerKey: PluginContainerKey);
|
|
38
|
-
init: () => void;
|
|
39
|
-
destroy(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Return a React component to render for the plugin.
|
|
42
|
-
*/
|
|
43
|
-
protected abstract getComponent: () => FunctionComponent<ComponentProps>;
|
|
44
|
-
/**
|
|
45
|
-
* Return props to set on the component for initial render.
|
|
46
|
-
*/
|
|
47
|
-
protected abstract getInitialComponentProps: () => ComponentProps;
|
|
48
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as autocompletePlugin } from './autocomplete';
|
|
2
|
-
export { default as jqlAstPlugin } from './jql-ast';
|
|
3
|
-
export { default as jqlSyntaxHighlightingPlugin } from './jql-syntax-highlighting';
|
|
4
|
-
export { default as richInlineNodesPlugin } from './rich-inline-nodes';
|
|
5
|
-
export { default as validationTooltipPlugin } from './validation-tooltip';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type MutableRefObject } from 'react';
|
|
2
|
-
import { DefaultErrorStrategy, type FailedPredicateException, type InputMismatchException, type Parser } from 'antlr4ts';
|
|
3
|
-
import { type NoViableAltException } from 'antlr4ts/NoViableAltException';
|
|
4
|
-
import { type IntlShape } from 'react-intl';
|
|
5
|
-
import { JQLParser } from '@atlaskit/jql-parser';
|
|
6
|
-
export declare const getPrintableChar: (char: string) => string;
|
|
7
|
-
export declare const getJavaCodeFromChar: (char: string) => string;
|
|
8
|
-
export default class JQLEditorErrorStrategy extends DefaultErrorStrategy {
|
|
9
|
-
intlRef: MutableRefObject<IntlShape>;
|
|
10
|
-
constructor(intlRef: MutableRefObject<IntlShape>);
|
|
11
|
-
protected reportInputMismatch(recognizer: JQLParser, exception: InputMismatchException): void;
|
|
12
|
-
protected reportUnwantedToken(recognizer: JQLParser): void;
|
|
13
|
-
protected reportMissingToken(recognizer: JQLParser): void;
|
|
14
|
-
protected reportNoViableAlternative(recognizer: JQLParser, exception: NoViableAltException): void;
|
|
15
|
-
protected reportFailedPredicate(recognizer: Parser, e: FailedPredicateException): void;
|
|
16
|
-
private handleSyntaxError;
|
|
17
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Token } from 'antlr4ts';
|
|
2
|
-
import { type RecognitionException } from 'antlr4ts/RecognitionException';
|
|
3
|
-
import { type IntlShape } from 'react-intl';
|
|
4
|
-
import { type JQLParser } from '@atlaskit/jql-parser';
|
|
5
|
-
/**
|
|
6
|
-
* Show the appropriate error message when parsing JQL fails and 0 or more tokens were expected.
|
|
7
|
-
*
|
|
8
|
-
* If no `expectedTokens` were provided then we'll attempt to find viable tokens to suggest from the provided
|
|
9
|
-
* exception/parser state.
|
|
10
|
-
*/
|
|
11
|
-
export declare const handleExpectedTokensError: (recognizer: JQLParser, currentToken: Token, expectedTokens: string[], intl: IntlShape, exception?: RecognitionException) => string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type Token } from 'antlr4ts';
|
|
2
|
-
import { type IntlShape } from 'react-intl';
|
|
3
|
-
/**
|
|
4
|
-
* Show the appropriate error message when parsing JQL fails and a field property ID rule was expected.
|
|
5
|
-
*/
|
|
6
|
-
export declare const handleFieldPropertyIdRuleError: (currentToken: Token, intl: IntlShape) => string;
|