@atlaskit/jql-editor 6.5.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 +37 -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/cjs/plugins/autocomplete/constants.js +3 -0
- package/dist/cjs/state/index.js +25 -8
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/plugins/autocomplete/constants.js +2 -1
- package/dist/es2019/state/index.js +20 -2
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/plugins/autocomplete/constants.js +3 -0
- package/dist/esm/state/index.js +25 -8
- 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 +32 -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,10 +0,0 @@
|
|
|
1
|
-
import React, { type ComponentClass, type FunctionComponent } from 'react';
|
|
2
|
-
type WithIntlProviderProps = {
|
|
3
|
-
/**
|
|
4
|
-
* React-intl locale. This should be set to "en" if alternate message sets are not being loaded higher in the React
|
|
5
|
-
* tree.
|
|
6
|
-
*/
|
|
7
|
-
locale?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const withIntlProvider: <Props extends WithIntlProviderProps>(WrappedComponent: FunctionComponent<Omit<Props, "locale">> | ComponentClass<Omit<Props, "locale">>) => (props: Props) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type IntlShape, type WithIntlProps } from 'react-intl';
|
|
3
|
-
import { type JQLEditorUIProps } from './types';
|
|
4
|
-
export type JQLEditorInnerProps = JQLEditorUIProps & {
|
|
5
|
-
/**
|
|
6
|
-
* React-intl object.
|
|
7
|
-
*/
|
|
8
|
-
intl: IntlShape;
|
|
9
|
-
};
|
|
10
|
-
declare const _default_1: React.FC<WithIntlProps<JQLEditorInnerProps>> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<JQLEditorInnerProps>;
|
|
12
|
-
};
|
|
13
|
-
export default _default_1;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { type FocusEvent, type MouseEvent, type Ref } from 'react';
|
|
2
|
-
import { type Jast } from '@atlaskit/jql-ast';
|
|
3
|
-
import { type AutocompleteProvider } from '../../plugins/autocomplete/types';
|
|
4
|
-
import { type CustomComponents, type ExternalMessage } from '../../state/types';
|
|
5
|
-
export type HydratedUser = {
|
|
6
|
-
appType?: string | null;
|
|
7
|
-
avatarUrl: string;
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
type: 'user';
|
|
11
|
-
};
|
|
12
|
-
export type HydratedTeam = {
|
|
13
|
-
avatarUrl: string;
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
type: 'team';
|
|
17
|
-
};
|
|
18
|
-
export type HydratedProject = {
|
|
19
|
-
iconName?: string;
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
privateProject?: boolean;
|
|
23
|
-
type: 'project';
|
|
24
|
-
};
|
|
25
|
-
export type HydratedGoal = {
|
|
26
|
-
iconKey?: string | null | undefined;
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
status?: string | null | undefined;
|
|
30
|
-
type: 'goal';
|
|
31
|
-
};
|
|
32
|
-
export type HydratedDeprecatedField = {
|
|
33
|
-
deprecatedSearcherKey: string;
|
|
34
|
-
/**
|
|
35
|
-
* The jqlTerm of the field.
|
|
36
|
-
*/
|
|
37
|
-
id: string;
|
|
38
|
-
type: 'deprecated-field';
|
|
39
|
-
};
|
|
40
|
-
export type HydratedLozengeWithAvatar = {
|
|
41
|
-
avatarUrl?: string;
|
|
42
|
-
id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
type: 'lozengeWithAvatar';
|
|
45
|
-
};
|
|
46
|
-
export type HydratedValue = HydratedUser | HydratedTeam | HydratedProject | HydratedGoal | HydratedDeprecatedField | HydratedLozengeWithAvatar;
|
|
47
|
-
export type HydratedValues = {
|
|
48
|
-
[fieldName: string]: HydratedValue[];
|
|
49
|
-
};
|
|
50
|
-
export type JQLEditorUIProps = {
|
|
51
|
-
/**
|
|
52
|
-
* Page/experience where the component is being rendered. Used to correlate JQL analytics events to a given consumer.
|
|
53
|
-
*/
|
|
54
|
-
analyticsSource: string;
|
|
55
|
-
/**
|
|
56
|
-
* Provider object to fetch autocomplete data.
|
|
57
|
-
*/
|
|
58
|
-
autocompleteProvider: AutocompleteProvider;
|
|
59
|
-
/**
|
|
60
|
-
* Custom components to take over the rendering of certain parts of JQL editor
|
|
61
|
-
*/
|
|
62
|
-
customComponents?: CustomComponents;
|
|
63
|
-
/**
|
|
64
|
-
* The number of default rows that are visible.
|
|
65
|
-
*/
|
|
66
|
-
defaultRows?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Enables rich inline nodes feature, which will replace user identifiers with a lozenge containing name and avatar.
|
|
69
|
-
* Note that you must specify an `onHydrate` prop which will return user data for a given query in order to see the
|
|
70
|
-
* following behaviour:
|
|
71
|
-
* - Loading of user avatars
|
|
72
|
-
* - Rendering of user lozenges on component initialisation
|
|
73
|
-
* - Rendering of user lozenges on paste
|
|
74
|
-
*/
|
|
75
|
-
enableRichInlineNodes?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Ref callback to force the focus event
|
|
78
|
-
*/
|
|
79
|
-
inputRef?: Ref<{
|
|
80
|
-
focus: () => void;
|
|
81
|
-
}>;
|
|
82
|
-
/**
|
|
83
|
-
* `false` matches the Atlaskit default field styling
|
|
84
|
-
* `true` matches the Atlaskit compact field styling, generally used for search purposes.
|
|
85
|
-
*/
|
|
86
|
-
isCompact?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Flag to enable the searching indicator when a JQL search is in progress.
|
|
89
|
-
*/
|
|
90
|
-
isSearching?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Custom messages to display.
|
|
93
|
-
*/
|
|
94
|
-
messages?: ExternalMessage[];
|
|
95
|
-
/**
|
|
96
|
-
* Called when we want to debug a particular error or action that has occurred within the editor. The message may
|
|
97
|
-
* contain PII, and as such consumers should treat as a privacy unsafe error.
|
|
98
|
-
*/
|
|
99
|
-
onDebugUnsafeMessage?: (message: string, event: {
|
|
100
|
-
[key: string]: string | number | boolean | void | null;
|
|
101
|
-
}) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Called when the JQL editor has been initialised.
|
|
104
|
-
*/
|
|
105
|
-
onEditorMounted?: () => void;
|
|
106
|
-
/**
|
|
107
|
-
* Called when the editor input is focused.
|
|
108
|
-
*/
|
|
109
|
-
onFocus?: (e: FocusEvent<HTMLElement>) => void;
|
|
110
|
-
/**
|
|
111
|
-
* Called every time the editor needs to hydrate values for the current query.
|
|
112
|
-
*/
|
|
113
|
-
onHydrate?: (query: string) => Promise<HydratedValues>;
|
|
114
|
-
/**
|
|
115
|
-
* Called if an unexpected error is thrown while rendering the editor.
|
|
116
|
-
*/
|
|
117
|
-
onRenderError?: (error: Error) => void;
|
|
118
|
-
/**
|
|
119
|
-
* Called every time the search command is given in the editor with the current query value and respective Jast object.
|
|
120
|
-
* If not passed, hides the search button/other search related functionality, allowing this to be usable as a form field.
|
|
121
|
-
*/
|
|
122
|
-
onSearch?: (query: string, jast: Jast) => void;
|
|
123
|
-
/**
|
|
124
|
-
* Called when the syntax help button is clicked. Consumers can return `true` to signify that this event has been
|
|
125
|
-
* handled which will prevent default behaviour of the help button, i.e. `e.preventDefault()`.
|
|
126
|
-
*/
|
|
127
|
-
onSyntaxHelp?: (e: MouseEvent<HTMLElement>) => boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Called every time the editor is updated with the current query value and respective Jast object.
|
|
130
|
-
*/
|
|
131
|
-
onUpdate?: (query: string, jast: Jast) => void;
|
|
132
|
-
/**
|
|
133
|
-
* The query to render in the editor.
|
|
134
|
-
*/
|
|
135
|
-
query: string;
|
|
136
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
editorId: string;
|
|
4
|
-
expanded: boolean;
|
|
5
|
-
isDisabled?: boolean;
|
|
6
|
-
label: string;
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const BaseExpandToggle: ({ expanded, editorId, isDisabled, label, onClick, }: Props) => React.JSX.Element;
|
|
10
|
-
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 ExpandToggleContainer: StyledComponent<{
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { type MouseEvent } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
describedby?: string;
|
|
4
|
-
isDisabled?: boolean;
|
|
5
|
-
label: string;
|
|
6
|
-
onClick: (e: MouseEvent<HTMLElement>) => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const BaseSyntaxHelp: ({ describedby, isDisabled, label, onClick, }: Props) => React.JSX.Element;
|
|
9
|
-
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 SyntaxHelpContainer: StyledComponent<{
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -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;
|