@atlaskit/jql-editor 6.2.1 → 6.2.3

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.
Files changed (138) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/accessibility/styled.js +7 -1
  3. package/dist/cjs/analytics/util.js +1 -1
  4. package/dist/cjs/async.js +5 -1
  5. package/dist/cjs/common/styled.js +5 -1
  6. package/dist/cjs/plugins/autocomplete/components/autocomplete-dropdown/styled.js +16 -4
  7. package/dist/cjs/plugins/autocomplete/components/autocomplete-option/styled.js +25 -7
  8. package/dist/cjs/plugins/rich-inline-nodes/nodes/base/index.js +3 -1
  9. package/dist/cjs/plugins/rich-inline-nodes/nodes/goal/goal-node.js +2 -2
  10. package/dist/cjs/plugins/rich-inline-nodes/nodes/team/styled.js +14 -6
  11. package/dist/cjs/plugins/rich-inline-nodes/nodes/user/styled.js +11 -3
  12. package/dist/cjs/plugins/rich-inline-nodes/util/react-node-view.js +1 -0
  13. package/dist/cjs/schema/index.js +1 -1
  14. package/dist/cjs/state/index.js +3 -0
  15. package/dist/cjs/ui/index.js +2 -1
  16. package/dist/cjs/ui/jql-editor/index.js +2 -1
  17. package/dist/cjs/ui/jql-editor-controls-content/base-expand-toggle/styled.js +7 -1
  18. package/dist/cjs/ui/jql-editor-controls-content/base-syntax-help/styled.js +7 -1
  19. package/dist/cjs/ui/jql-editor-footer-content/jql-editor-help/styled.js +5 -1
  20. package/dist/cjs/ui/jql-editor-footer-content/jql-messages/format/styled.js +10 -2
  21. package/dist/cjs/ui/jql-editor-layout/styled.js +36 -17
  22. package/dist/cjs/ui/jql-editor-view/index.js +4 -1
  23. package/dist/cjs/ui/tooltip-tag/styled.js +7 -1
  24. package/dist/es2019/accessibility/styled.js +7 -1
  25. package/dist/es2019/analytics/util.js +1 -1
  26. package/dist/es2019/async.js +6 -1
  27. package/dist/es2019/common/styled.js +5 -1
  28. package/dist/es2019/plugins/autocomplete/components/autocomplete-dropdown/styled.js +16 -4
  29. package/dist/es2019/plugins/autocomplete/components/autocomplete-option/styled.js +25 -7
  30. package/dist/es2019/plugins/rich-inline-nodes/nodes/base/index.js +3 -1
  31. package/dist/es2019/plugins/rich-inline-nodes/nodes/goal/goal-node.js +2 -2
  32. package/dist/es2019/plugins/rich-inline-nodes/nodes/team/styled.js +14 -6
  33. package/dist/es2019/plugins/rich-inline-nodes/nodes/user/styled.js +11 -3
  34. package/dist/es2019/plugins/rich-inline-nodes/util/react-node-view.js +1 -0
  35. package/dist/es2019/schema/index.js +2 -0
  36. package/dist/es2019/state/index.js +3 -0
  37. package/dist/es2019/ui/index.js +2 -1
  38. package/dist/es2019/ui/jql-editor/index.js +2 -1
  39. package/dist/es2019/ui/jql-editor-controls-content/base-expand-toggle/styled.js +7 -1
  40. package/dist/es2019/ui/jql-editor-controls-content/base-syntax-help/styled.js +7 -1
  41. package/dist/es2019/ui/jql-editor-footer-content/jql-editor-help/styled.js +5 -1
  42. package/dist/es2019/ui/jql-editor-footer-content/jql-messages/format/styled.js +10 -2
  43. package/dist/es2019/ui/jql-editor-layout/styled.js +126 -113
  44. package/dist/es2019/ui/jql-editor-view/index.js +4 -0
  45. package/dist/es2019/ui/tooltip-tag/styled.js +7 -1
  46. package/dist/esm/accessibility/styled.js +7 -1
  47. package/dist/esm/analytics/util.js +1 -1
  48. package/dist/esm/async.js +6 -1
  49. package/dist/esm/common/styled.js +5 -1
  50. package/dist/esm/plugins/autocomplete/components/autocomplete-dropdown/styled.js +16 -4
  51. package/dist/esm/plugins/autocomplete/components/autocomplete-option/styled.js +25 -7
  52. package/dist/esm/plugins/rich-inline-nodes/nodes/base/index.js +3 -1
  53. package/dist/esm/plugins/rich-inline-nodes/nodes/goal/goal-node.js +2 -2
  54. package/dist/esm/plugins/rich-inline-nodes/nodes/team/styled.js +14 -6
  55. package/dist/esm/plugins/rich-inline-nodes/nodes/user/styled.js +11 -3
  56. package/dist/esm/plugins/rich-inline-nodes/util/react-node-view.js +1 -0
  57. package/dist/esm/schema/index.js +2 -0
  58. package/dist/esm/state/index.js +3 -0
  59. package/dist/esm/ui/index.js +2 -1
  60. package/dist/esm/ui/jql-editor/index.js +2 -1
  61. package/dist/esm/ui/jql-editor-controls-content/base-expand-toggle/styled.js +7 -1
  62. package/dist/esm/ui/jql-editor-controls-content/base-syntax-help/styled.js +7 -1
  63. package/dist/esm/ui/jql-editor-footer-content/jql-editor-help/styled.js +5 -1
  64. package/dist/esm/ui/jql-editor-footer-content/jql-messages/format/styled.js +10 -2
  65. package/dist/esm/ui/jql-editor-layout/styled.js +37 -17
  66. package/dist/esm/ui/jql-editor-view/index.js +4 -1
  67. package/dist/esm/ui/tooltip-tag/styled.js +7 -1
  68. package/dist/types/accessibility/styled.d.ts +6 -3
  69. package/dist/types/analytics/util.d.ts +2 -1
  70. package/dist/types/async.d.ts +2 -1
  71. package/dist/types/common/messages.d.ts +1 -1
  72. package/dist/types/common/styled.d.ts +7 -4
  73. package/dist/types/hooks/use-editor-theme/index.d.ts +2 -1
  74. package/dist/types/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +15 -12
  75. package/dist/types/plugins/autocomplete/components/autocomplete-option/messages.d.ts +2 -2
  76. package/dist/types/plugins/autocomplete/components/autocomplete-option/styled.d.ts +24 -21
  77. package/dist/types/plugins/autocomplete/messages.d.ts +1 -1
  78. package/dist/types/plugins/common/plugin-keymap.d.ts +2 -1
  79. package/dist/types/plugins/jql-ast/messages.d.ts +64 -64
  80. package/dist/types/plugins/rich-inline-nodes/nodes/goal/goal-icon.d.ts +1 -1
  81. package/dist/types/plugins/rich-inline-nodes/nodes/index.d.ts +9 -4
  82. package/dist/types/plugins/rich-inline-nodes/nodes/project/messages.d.ts +1 -1
  83. package/dist/types/plugins/rich-inline-nodes/nodes/team/styled.d.ts +12 -9
  84. package/dist/types/plugins/rich-inline-nodes/nodes/user/styled.d.ts +12 -9
  85. package/dist/types/plugins/rich-inline-nodes/util/react-node-view.d.ts +3 -3
  86. package/dist/types/state/index.d.ts +59 -894
  87. package/dist/types/ui/index.d.ts +2 -2
  88. package/dist/types/ui/jql-editor/index.d.ts +3 -3
  89. package/dist/types/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +6 -3
  90. package/dist/types/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +6 -3
  91. package/dist/types/ui/jql-editor-controls-content/expand-toggle/messages.d.ts +5 -5
  92. package/dist/types/ui/jql-editor-controls-content/search/messages.d.ts +1 -1
  93. package/dist/types/ui/jql-editor-controls-content/syntax-help/messages.d.ts +2 -2
  94. package/dist/types/ui/jql-editor-footer-content/jql-editor-help/messages.d.ts +5 -5
  95. package/dist/types/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +6 -3
  96. package/dist/types/ui/jql-editor-footer-content/jql-messages/errors/messages.d.ts +1 -1
  97. package/dist/types/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +9 -6
  98. package/dist/types/ui/jql-editor-footer-content/jql-messages/warnings/messages.d.ts +5 -5
  99. package/dist/types/ui/jql-editor-layout/styled.d.ts +29 -26
  100. package/dist/types/ui/jql-editor-portal-provider/context.d.ts +2 -1
  101. package/dist/types/ui/messages.d.ts +1 -1
  102. package/dist/types/ui/tooltip-tag/styled.d.ts +6 -3
  103. package/dist/types-ts4.5/accessibility/styled.d.ts +6 -3
  104. package/dist/types-ts4.5/analytics/util.d.ts +2 -1
  105. package/dist/types-ts4.5/async.d.ts +2 -1
  106. package/dist/types-ts4.5/common/messages.d.ts +1 -1
  107. package/dist/types-ts4.5/common/styled.d.ts +7 -4
  108. package/dist/types-ts4.5/hooks/use-editor-theme/index.d.ts +2 -1
  109. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +15 -12
  110. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/messages.d.ts +2 -2
  111. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/styled.d.ts +24 -21
  112. package/dist/types-ts4.5/plugins/autocomplete/messages.d.ts +1 -1
  113. package/dist/types-ts4.5/plugins/common/plugin-keymap.d.ts +2 -1
  114. package/dist/types-ts4.5/plugins/jql-ast/messages.d.ts +64 -64
  115. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/goal-icon.d.ts +1 -1
  116. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/index.d.ts +9 -4
  117. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/messages.d.ts +1 -1
  118. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/team/styled.d.ts +12 -9
  119. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/styled.d.ts +12 -9
  120. package/dist/types-ts4.5/plugins/rich-inline-nodes/util/react-node-view.d.ts +3 -3
  121. package/dist/types-ts4.5/state/index.d.ts +59 -894
  122. package/dist/types-ts4.5/ui/index.d.ts +2 -2
  123. package/dist/types-ts4.5/ui/jql-editor/index.d.ts +3 -3
  124. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +6 -3
  125. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +6 -3
  126. package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/messages.d.ts +5 -5
  127. package/dist/types-ts4.5/ui/jql-editor-controls-content/search/messages.d.ts +1 -1
  128. package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/messages.d.ts +2 -2
  129. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/messages.d.ts +5 -5
  130. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +6 -3
  131. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/messages.d.ts +1 -1
  132. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +9 -6
  133. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/messages.d.ts +5 -5
  134. package/dist/types-ts4.5/ui/jql-editor-layout/styled.d.ts +29 -26
  135. package/dist/types-ts4.5/ui/jql-editor-portal-provider/context.d.ts +2 -1
  136. package/dist/types-ts4.5/ui/messages.d.ts +1 -1
  137. package/dist/types-ts4.5/ui/tooltip-tag/styled.d.ts +6 -3
  138. package/package.json +8 -8
@@ -1,6 +1,6 @@
1
1
  import { type FocusEvent, type MouseEvent } from 'react';
2
2
  import { type IntlShape } from 'react-intl';
3
- import { type Action } from 'react-sweet-state';
3
+ import { type Action, type BoundActions, type HookFunction, type OverrideContainerComponent } from 'react-sweet-state';
4
4
  import { type Observable } from 'rxjs/Observable';
5
5
  import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
6
6
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -13,921 +13,86 @@ import { type PortalActions } from '../ui/jql-editor-portal-provider/types';
13
13
  import { type HydratedDeprecatedField, type HydratedProject, type HydratedGoal, type HydratedTeam, type HydratedUser, type HydratedValue } from '../ui/jql-editor/types';
14
14
  import { type AutocompletePosition, type AutocompleteState, type ContextAwareJQLSuggestions, type CustomErrorComponent, type ExternalMessagesNormalized, type OptionsKey, type Props, type State } from './types';
15
15
  export declare const initialState: State;
16
- export declare const actions: {
17
- onEditorViewBlur: () => Action<State>;
18
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
19
- openAutocompleteOnNextUpdate: () => Action<State>;
20
- closeAutocomplete: () => Action<State>;
21
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
22
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
23
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
24
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
25
- cancelSubscription: () => Action<State>;
26
- setLoading: (loading: boolean) => Action<State>;
27
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
28
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
29
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
30
- updateValidationState: () => Action<State>;
31
- initialiseEditorState: () => Action<State, Props>;
32
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
33
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
34
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
35
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
36
- [key: string]: string;
37
- }, portalActions: PortalActions) => Action<State, Props>;
38
- updateEditorView: (attributes: {
39
- [key: string]: string;
40
- }) => Action<State, Props>;
41
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
42
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
43
- onSearch: () => Action<State>;
44
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
45
- externalErrorMessageViewed: () => Action<State, Props>;
46
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
47
- };
48
- export declare const useStoreActions: import("react-sweet-state").HookFunction<null, import("react-sweet-state").BoundActions<State, {
49
- onEditorViewBlur: () => Action<State>;
50
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
51
- openAutocompleteOnNextUpdate: () => Action<State>;
52
- closeAutocomplete: () => Action<State>;
53
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
54
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
55
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
56
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
57
- cancelSubscription: () => Action<State>;
58
- setLoading: (loading: boolean) => Action<State>;
59
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
60
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
61
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
62
- updateValidationState: () => Action<State>;
63
- initialiseEditorState: () => Action<State, Props>;
64
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
65
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
66
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
67
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
68
- [key: string]: string;
69
- }, portalActions: PortalActions) => Action<State, Props>;
70
- updateEditorView: (attributes: {
71
- [key: string]: string;
72
- }) => Action<State, Props>;
73
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
74
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
75
- onSearch: () => Action<State>;
76
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
77
- externalErrorMessageViewed: () => Action<State, Props>;
78
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
79
- }>, void>;
80
- export declare const useEditorState: import("react-sweet-state").HookFunction<EditorState, import("react-sweet-state").BoundActions<State, {
81
- onEditorViewBlur: () => Action<State>;
82
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
83
- openAutocompleteOnNextUpdate: () => Action<State>;
84
- closeAutocomplete: () => Action<State>;
85
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
86
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
87
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
88
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
89
- cancelSubscription: () => Action<State>;
90
- setLoading: (loading: boolean) => Action<State>;
91
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
92
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
93
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
94
- updateValidationState: () => Action<State>;
95
- initialiseEditorState: () => Action<State, Props>;
96
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
97
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
98
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
99
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
100
- [key: string]: string;
101
- }, portalActions: PortalActions) => Action<State, Props>;
102
- updateEditorView: (attributes: {
103
- [key: string]: string;
104
- }) => Action<State, Props>;
105
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
106
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
107
- onSearch: () => Action<State>;
108
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
109
- externalErrorMessageViewed: () => Action<State, Props>;
110
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
111
- }>, void>;
112
- export declare const useEditorView: import("react-sweet-state").HookFunction<EditorView | undefined, import("react-sweet-state").BoundActions<State, {
113
- onEditorViewBlur: () => Action<State>;
114
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
115
- openAutocompleteOnNextUpdate: () => Action<State>;
116
- closeAutocomplete: () => Action<State>;
117
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
118
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
119
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
120
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
121
- cancelSubscription: () => Action<State>;
122
- setLoading: (loading: boolean) => Action<State>;
123
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
124
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
125
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
126
- updateValidationState: () => Action<State>;
127
- initialiseEditorState: () => Action<State, Props>;
128
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
129
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
130
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
131
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
132
- [key: string]: string;
133
- }, portalActions: PortalActions) => Action<State, Props>;
134
- updateEditorView: (attributes: {
135
- [key: string]: string;
136
- }) => Action<State, Props>;
137
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
138
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
139
- onSearch: () => Action<State>;
140
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
141
- externalErrorMessageViewed: () => Action<State, Props>;
142
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
143
- }>, void>;
144
- export declare const useIsSearching: import("react-sweet-state").HookFunction<boolean | undefined, import("react-sweet-state").BoundActions<State, {
145
- onEditorViewBlur: () => Action<State>;
146
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
147
- openAutocompleteOnNextUpdate: () => Action<State>;
148
- closeAutocomplete: () => Action<State>;
149
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
150
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
151
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
152
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
153
- cancelSubscription: () => Action<State>;
154
- setLoading: (loading: boolean) => Action<State>;
155
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
156
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
157
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
158
- updateValidationState: () => Action<State>;
159
- initialiseEditorState: () => Action<State, Props>;
160
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
161
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
162
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
163
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
164
- [key: string]: string;
165
- }, portalActions: PortalActions) => Action<State, Props>;
166
- updateEditorView: (attributes: {
167
- [key: string]: string;
168
- }) => Action<State, Props>;
169
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
170
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
171
- onSearch: () => Action<State>;
172
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
173
- externalErrorMessageViewed: () => Action<State, Props>;
174
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
175
- }>, void>;
176
- export declare const useIntl: import("react-sweet-state").HookFunction<IntlShape, import("react-sweet-state").BoundActions<State, {
177
- onEditorViewBlur: () => Action<State>;
178
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
179
- openAutocompleteOnNextUpdate: () => Action<State>;
180
- closeAutocomplete: () => Action<State>;
181
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
182
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
183
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
184
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
185
- cancelSubscription: () => Action<State>;
186
- setLoading: (loading: boolean) => Action<State>;
187
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
188
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
189
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
190
- updateValidationState: () => Action<State>;
191
- initialiseEditorState: () => Action<State, Props>;
192
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
193
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
194
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
195
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
196
- [key: string]: string;
197
- }, portalActions: PortalActions) => Action<State, Props>;
198
- updateEditorView: (attributes: {
199
- [key: string]: string;
200
- }) => Action<State, Props>;
201
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
202
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
203
- onSearch: () => Action<State>;
204
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
205
- externalErrorMessageViewed: () => Action<State, Props>;
206
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
207
- }>, void>;
208
- export declare const useAutocompleteProvider: import("react-sweet-state").HookFunction<AutocompleteProvider, import("react-sweet-state").BoundActions<State, {
209
- onEditorViewBlur: () => Action<State>;
210
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
211
- openAutocompleteOnNextUpdate: () => Action<State>;
212
- closeAutocomplete: () => Action<State>;
213
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
214
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
215
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
216
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
217
- cancelSubscription: () => Action<State>;
218
- setLoading: (loading: boolean) => Action<State>;
219
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
220
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
221
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
222
- updateValidationState: () => Action<State>;
223
- initialiseEditorState: () => Action<State, Props>;
224
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
225
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
226
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
227
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
228
- [key: string]: string;
229
- }, portalActions: PortalActions) => Action<State, Props>;
230
- updateEditorView: (attributes: {
231
- [key: string]: string;
232
- }) => Action<State, Props>;
233
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
234
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
235
- onSearch: () => Action<State>;
236
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
237
- externalErrorMessageViewed: () => Action<State, Props>;
238
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
239
- }>, void>;
240
- export declare const useScopedId: import("react-sweet-state").HookFunction<string, import("react-sweet-state").BoundActions<State, {
241
- onEditorViewBlur: () => Action<State>;
242
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
243
- openAutocompleteOnNextUpdate: () => Action<State>;
244
- closeAutocomplete: () => Action<State>;
245
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
246
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
247
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
248
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
249
- cancelSubscription: () => Action<State>;
250
- setLoading: (loading: boolean) => Action<State>;
251
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
252
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
253
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
254
- updateValidationState: () => Action<State>;
255
- initialiseEditorState: () => Action<State, Props>;
256
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
257
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
258
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
259
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
260
- [key: string]: string;
261
- }, portalActions: PortalActions) => Action<State, Props>;
262
- updateEditorView: (attributes: {
263
- [key: string]: string;
264
- }) => Action<State, Props>;
265
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
266
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
267
- onSearch: () => Action<State>;
268
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
269
- externalErrorMessageViewed: () => Action<State, Props>;
270
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
271
- }>, string>;
272
- export declare const useIdPrefix: import("react-sweet-state").HookFunction<string, import("react-sweet-state").BoundActions<State, {
273
- onEditorViewBlur: () => Action<State>;
274
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
275
- openAutocompleteOnNextUpdate: () => Action<State>;
276
- closeAutocomplete: () => Action<State>;
277
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
278
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
279
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
280
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
281
- cancelSubscription: () => Action<State>;
282
- setLoading: (loading: boolean) => Action<State>;
283
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
284
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
285
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
286
- updateValidationState: () => Action<State>;
287
- initialiseEditorState: () => Action<State, Props>;
288
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
289
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
290
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
291
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
292
- [key: string]: string;
293
- }, portalActions: PortalActions) => Action<State, Props>;
294
- updateEditorView: (attributes: {
295
- [key: string]: string;
296
- }) => Action<State, Props>;
297
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
298
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
299
- onSearch: () => Action<State>;
300
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
301
- externalErrorMessageViewed: () => Action<State, Props>;
302
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
303
- }>, void>;
304
- export declare const useEditorViewHasFocus: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
305
- onEditorViewBlur: () => Action<State>;
306
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
307
- openAutocompleteOnNextUpdate: () => Action<State>;
308
- closeAutocomplete: () => Action<State>;
309
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
310
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
311
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
312
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
313
- cancelSubscription: () => Action<State>;
314
- setLoading: (loading: boolean) => Action<State>;
315
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
316
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
317
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
318
- updateValidationState: () => Action<State>;
319
- initialiseEditorState: () => Action<State, Props>;
320
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
321
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
322
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
323
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
324
- [key: string]: string;
325
- }, portalActions: PortalActions) => Action<State, Props>;
326
- updateEditorView: (attributes: {
327
- [key: string]: string;
328
- }) => Action<State, Props>;
329
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
330
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
331
- onSearch: () => Action<State>;
332
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
333
- externalErrorMessageViewed: () => Action<State, Props>;
334
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
335
- }>, void>;
336
- export declare const useLineNumbersVisible: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
337
- onEditorViewBlur: () => Action<State>;
338
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
339
- openAutocompleteOnNextUpdate: () => Action<State>;
340
- closeAutocomplete: () => Action<State>;
341
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
342
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
343
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
344
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
345
- cancelSubscription: () => Action<State>;
346
- setLoading: (loading: boolean) => Action<State>;
347
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
348
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
349
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
350
- updateValidationState: () => Action<State>;
351
- initialiseEditorState: () => Action<State, Props>;
352
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
353
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
354
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
355
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
356
- [key: string]: string;
357
- }, portalActions: PortalActions) => Action<State, Props>;
358
- updateEditorView: (attributes: {
359
- [key: string]: string;
360
- }) => Action<State, Props>;
361
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
362
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
363
- onSearch: () => Action<State>;
364
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
365
- externalErrorMessageViewed: () => Action<State, Props>;
366
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
367
- }>, void>;
368
- export declare const useAutocomplete: import("react-sweet-state").HookFunction<AutocompleteState, import("react-sweet-state").BoundActions<State, {
369
- onEditorViewBlur: () => Action<State>;
370
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
371
- openAutocompleteOnNextUpdate: () => Action<State>;
372
- closeAutocomplete: () => Action<State>;
373
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
374
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
375
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
376
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
377
- cancelSubscription: () => Action<State>;
378
- setLoading: (loading: boolean) => Action<State>;
379
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
380
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
381
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
382
- updateValidationState: () => Action<State>;
383
- initialiseEditorState: () => Action<State, Props>;
384
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
385
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
386
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
387
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
388
- [key: string]: string;
389
- }, portalActions: PortalActions) => Action<State, Props>;
390
- updateEditorView: (attributes: {
391
- [key: string]: string;
392
- }) => Action<State, Props>;
393
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
394
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
395
- onSearch: () => Action<State>;
396
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
397
- externalErrorMessageViewed: () => Action<State, Props>;
398
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
399
- }>, void>;
400
- /**
401
- * Returns the JQL error from the last query that was searched, or {@code null} if there were none.
402
- */
403
- export declare const useJqlError: import("react-sweet-state").HookFunction<JQLParseError | null, import("react-sweet-state").BoundActions<State, {
404
- onEditorViewBlur: () => Action<State>;
405
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
406
- openAutocompleteOnNextUpdate: () => Action<State>;
407
- closeAutocomplete: () => Action<State>;
408
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
409
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
410
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
411
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
412
- cancelSubscription: () => Action<State>;
413
- setLoading: (loading: boolean) => Action<State>;
414
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
415
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
416
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
417
- updateValidationState: () => Action<State>;
418
- initialiseEditorState: () => Action<State, Props>;
419
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
420
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
421
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
422
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
423
- [key: string]: string;
424
- }, portalActions: PortalActions) => Action<State, Props>;
425
- updateEditorView: (attributes: {
426
- [key: string]: string;
427
- }) => Action<State, Props>;
428
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
429
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
430
- onSearch: () => Action<State>;
431
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
432
- externalErrorMessageViewed: () => Action<State, Props>;
433
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
434
- }>, void>;
435
- /**
436
- * Returns whether there are any JQL errors in the current Prosemirror editor state.
437
- */
438
- export declare const useEditorStateHasJqlError: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
439
- onEditorViewBlur: () => Action<State>;
440
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
441
- openAutocompleteOnNextUpdate: () => Action<State>;
442
- closeAutocomplete: () => Action<State>;
443
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
444
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
445
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
446
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
447
- cancelSubscription: () => Action<State>;
448
- setLoading: (loading: boolean) => Action<State>;
449
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
450
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
451
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
452
- updateValidationState: () => Action<State>;
453
- initialiseEditorState: () => Action<State, Props>;
454
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
455
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
456
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
457
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
458
- [key: string]: string;
459
- }, portalActions: PortalActions) => Action<State, Props>;
460
- updateEditorView: (attributes: {
461
- [key: string]: string;
462
- }) => Action<State, Props>;
463
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
464
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
465
- onSearch: () => Action<State>;
466
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
467
- externalErrorMessageViewed: () => Action<State, Props>;
468
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
469
- }>, void>;
470
- export declare const useExternalMessages: import("react-sweet-state").HookFunction<ExternalMessagesNormalized, import("react-sweet-state").BoundActions<State, {
471
- onEditorViewBlur: () => Action<State>;
472
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
473
- openAutocompleteOnNextUpdate: () => Action<State>;
474
- closeAutocomplete: () => Action<State>;
475
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
476
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
477
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
478
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
479
- cancelSubscription: () => Action<State>;
480
- setLoading: (loading: boolean) => Action<State>;
481
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
482
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
483
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
484
- updateValidationState: () => Action<State>;
485
- initialiseEditorState: () => Action<State, Props>;
486
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
487
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
488
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
489
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
490
- [key: string]: string;
491
- }, portalActions: PortalActions) => Action<State, Props>;
492
- updateEditorView: (attributes: {
493
- [key: string]: string;
494
- }) => Action<State, Props>;
495
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
496
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
497
- onSearch: () => Action<State>;
498
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
499
- externalErrorMessageViewed: () => Action<State, Props>;
500
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
501
- }>, void>;
502
- export declare const useCustomErrorComponent: import("react-sweet-state").HookFunction<CustomErrorComponent | undefined, import("react-sweet-state").BoundActions<State, {
503
- onEditorViewBlur: () => Action<State>;
504
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
505
- openAutocompleteOnNextUpdate: () => Action<State>;
506
- closeAutocomplete: () => Action<State>;
507
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
508
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
509
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
510
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
511
- cancelSubscription: () => Action<State>;
512
- setLoading: (loading: boolean) => Action<State>;
513
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
514
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
515
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
516
- updateValidationState: () => Action<State>;
517
- initialiseEditorState: () => Action<State, Props>;
518
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
519
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
520
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
521
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
522
- [key: string]: string;
523
- }, portalActions: PortalActions) => Action<State, Props>;
524
- updateEditorView: (attributes: {
525
- [key: string]: string;
526
- }) => Action<State, Props>;
527
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
528
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
529
- onSearch: () => Action<State>;
530
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
531
- externalErrorMessageViewed: () => Action<State, Props>;
532
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
533
- }>, void>;
534
- export declare const useAutocompleteOptions: import("react-sweet-state").HookFunction<SelectableAutocompleteOption[], import("react-sweet-state").BoundActions<State, {
535
- onEditorViewBlur: () => Action<State>;
536
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
537
- openAutocompleteOnNextUpdate: () => Action<State>;
538
- closeAutocomplete: () => Action<State>;
539
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
540
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
541
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
542
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
543
- cancelSubscription: () => Action<State>;
544
- setLoading: (loading: boolean) => Action<State>;
545
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
546
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
547
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
548
- updateValidationState: () => Action<State>;
549
- initialiseEditorState: () => Action<State, Props>;
550
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
551
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
552
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
553
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
554
- [key: string]: string;
555
- }, portalActions: PortalActions) => Action<State, Props>;
556
- updateEditorView: (attributes: {
557
- [key: string]: string;
558
- }) => Action<State, Props>;
559
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
560
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
561
- onSearch: () => Action<State>;
562
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
563
- externalErrorMessageViewed: () => Action<State, Props>;
564
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
565
- }>, void>;
566
- export declare const useAutocompleteLoading: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
567
- onEditorViewBlur: () => Action<State>;
568
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
569
- openAutocompleteOnNextUpdate: () => Action<State>;
570
- closeAutocomplete: () => Action<State>;
571
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
572
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
573
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
574
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
575
- cancelSubscription: () => Action<State>;
576
- setLoading: (loading: boolean) => Action<State>;
577
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
578
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
579
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
580
- updateValidationState: () => Action<State>;
581
- initialiseEditorState: () => Action<State, Props>;
582
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
583
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
584
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
585
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
586
- [key: string]: string;
587
- }, portalActions: PortalActions) => Action<State, Props>;
588
- updateEditorView: (attributes: {
589
- [key: string]: string;
590
- }) => Action<State, Props>;
591
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
592
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
593
- onSearch: () => Action<State>;
594
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
595
- externalErrorMessageViewed: () => Action<State, Props>;
596
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
597
- }>, void>;
598
- export declare const useAutocompleteIsOpen: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
599
- onEditorViewBlur: () => Action<State>;
600
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
601
- openAutocompleteOnNextUpdate: () => Action<State>;
602
- closeAutocomplete: () => Action<State>;
603
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
604
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
605
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
606
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
607
- cancelSubscription: () => Action<State>;
608
- setLoading: (loading: boolean) => Action<State>;
609
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
610
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
611
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
612
- updateValidationState: () => Action<State>;
613
- initialiseEditorState: () => Action<State, Props>;
614
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
615
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
616
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
617
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
618
- [key: string]: string;
619
- }, portalActions: PortalActions) => Action<State, Props>;
620
- updateEditorView: (attributes: {
621
- [key: string]: string;
622
- }) => Action<State, Props>;
623
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
624
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
625
- onSearch: () => Action<State>;
626
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
627
- externalErrorMessageViewed: () => Action<State, Props>;
628
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
629
- }>, void>;
630
- export declare const useAutocompletePosition: import("react-sweet-state").HookFunction<AutocompletePosition, import("react-sweet-state").BoundActions<State, {
631
- onEditorViewBlur: () => Action<State>;
632
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
633
- openAutocompleteOnNextUpdate: () => Action<State>;
634
- closeAutocomplete: () => Action<State>;
635
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
636
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
637
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
638
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
639
- cancelSubscription: () => Action<State>;
640
- setLoading: (loading: boolean) => Action<State>;
641
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
642
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
643
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
644
- updateValidationState: () => Action<State>;
645
- initialiseEditorState: () => Action<State, Props>;
646
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
647
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
648
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
649
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
650
- [key: string]: string;
651
- }, portalActions: PortalActions) => Action<State, Props>;
652
- updateEditorView: (attributes: {
653
- [key: string]: string;
654
- }) => Action<State, Props>;
655
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
656
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
657
- onSearch: () => Action<State>;
658
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
659
- externalErrorMessageViewed: () => Action<State, Props>;
660
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
661
- }>, void>;
662
- export declare const useHydratedValue: import("react-sweet-state").HookFunction<HydratedValue | undefined, import("react-sweet-state").BoundActions<State, {
663
- onEditorViewBlur: () => Action<State>;
664
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
665
- openAutocompleteOnNextUpdate: () => Action<State>;
666
- closeAutocomplete: () => Action<State>;
667
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
668
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
669
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
16
+ type Actions = {
670
17
  appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
671
- cancelSubscription: () => Action<State>;
672
- setLoading: (loading: boolean) => Action<State>;
673
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
674
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
675
18
  callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
676
- updateValidationState: () => Action<State>;
677
- initialiseEditorState: () => Action<State, Props>;
19
+ cancelSubscription: () => Action<State>;
20
+ closeAutocomplete: () => Action<State>;
678
21
  configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
679
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
680
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
681
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
682
- [key: string]: string;
683
- }, portalActions: PortalActions) => Action<State, Props>;
684
- updateEditorView: (attributes: {
685
- [key: string]: string;
686
- }) => Action<State, Props>;
687
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
688
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
689
- onSearch: () => Action<State>;
690
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
691
- externalErrorMessageViewed: () => Action<State, Props>;
692
22
  createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
693
- }>, {
694
- fieldName: string;
695
- id: string;
696
- }>;
697
- export declare const useHydratedUser: import("react-sweet-state").HookFunction<HydratedUser | undefined, import("react-sweet-state").BoundActions<State, {
698
- onEditorViewBlur: () => Action<State>;
699
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
700
- openAutocompleteOnNextUpdate: () => Action<State>;
701
- closeAutocomplete: () => Action<State>;
702
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
703
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
23
+ externalErrorMessageViewed: () => Action<State, Props>;
704
24
  getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
705
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
706
- cancelSubscription: () => Action<State>;
707
- setLoading: (loading: boolean) => Action<State>;
708
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
709
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
710
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
711
- updateValidationState: () => Action<State>;
25
+ getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
712
26
  initialiseEditorState: () => Action<State, Props>;
713
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
714
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
715
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
716
27
  initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
717
28
  [key: string]: string;
718
29
  }, portalActions: PortalActions) => Action<State, Props>;
719
- updateEditorView: (attributes: {
720
- [key: string]: string;
721
- }) => Action<State, Props>;
722
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
723
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
724
- onSearch: () => Action<State>;
725
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
726
- externalErrorMessageViewed: () => Action<State, Props>;
727
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
728
- }>, {
729
- fieldName: string;
730
- id: string;
731
- }>;
732
- export declare const useHydratedTeam: import("react-sweet-state").HookFunction<HydratedTeam | undefined, import("react-sweet-state").BoundActions<State, {
30
+ onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
733
31
  onEditorViewBlur: () => Action<State>;
734
32
  onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
33
+ onSearch: () => Action<State>;
34
+ onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
735
35
  openAutocompleteOnNextUpdate: () => Action<State>;
736
- closeAutocomplete: () => Action<State>;
737
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
738
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
739
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
740
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
741
- cancelSubscription: () => Action<State>;
742
- setLoading: (loading: boolean) => Action<State>;
743
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
744
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
745
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
746
- updateValidationState: () => Action<State>;
747
- initialiseEditorState: () => Action<State, Props>;
748
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
749
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
750
36
  resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
751
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
752
- [key: string]: string;
753
- }, portalActions: PortalActions) => Action<State, Props>;
754
- updateEditorView: (attributes: {
755
- [key: string]: string;
756
- }) => Action<State, Props>;
37
+ setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
38
+ setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
757
39
  setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
758
40
  setEditorViewContainerScroll: (scroll: number) => Action<State>;
759
- onSearch: () => Action<State>;
760
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
761
- externalErrorMessageViewed: () => Action<State, Props>;
762
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
763
- }>, {
764
- fieldName: string;
765
- id: string;
766
- }>;
767
- export declare const useHydratedProject: import("react-sweet-state").HookFunction<HydratedProject | undefined, import("react-sweet-state").BoundActions<State, {
768
- onEditorViewBlur: () => Action<State>;
769
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
770
- openAutocompleteOnNextUpdate: () => Action<State>;
771
- closeAutocomplete: () => Action<State>;
772
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
773
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
774
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
775
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
776
- cancelSubscription: () => Action<State>;
777
41
  setLoading: (loading: boolean) => Action<State>;
778
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
779
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
780
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
781
- updateValidationState: () => Action<State>;
782
- initialiseEditorState: () => Action<State, Props>;
783
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
784
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
785
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
786
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
787
- [key: string]: string;
788
- }, portalActions: PortalActions) => Action<State, Props>;
42
+ setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
789
43
  updateEditorView: (attributes: {
790
44
  [key: string]: string;
791
45
  }) => Action<State, Props>;
792
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
793
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
794
- onSearch: () => Action<State>;
795
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
796
- externalErrorMessageViewed: () => Action<State, Props>;
797
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
798
- }>, {
46
+ updateValidationState: () => Action<State>;
47
+ };
48
+ export declare const actions: Actions;
49
+ export declare const useStoreActions: HookFunction<null, BoundActions<State, Actions>, void>;
50
+ export declare const useEditorState: HookFunction<EditorState, BoundActions<State, Actions>, void>;
51
+ export declare const useEditorView: HookFunction<EditorView | undefined, BoundActions<State, Actions>, void>;
52
+ export declare const useIsSearching: HookFunction<boolean | undefined, BoundActions<State, Actions>, void>;
53
+ export declare const useIntl: HookFunction<IntlShape, BoundActions<State, Actions>, void>;
54
+ export declare const useAutocompleteProvider: HookFunction<AutocompleteProvider, BoundActions<State, Actions>, void>;
55
+ export declare const useScopedId: HookFunction<string, BoundActions<State, Actions>, string>;
56
+ export declare const useIdPrefix: HookFunction<string, BoundActions<State, Actions>, void>;
57
+ export declare const useEditorViewHasFocus: HookFunction<boolean, BoundActions<State, Actions>, void>;
58
+ export declare const useLineNumbersVisible: HookFunction<boolean, BoundActions<State, Actions>, void>;
59
+ export declare const useAutocomplete: HookFunction<AutocompleteState, BoundActions<State, Actions>, void>;
60
+ /**
61
+ * Returns the JQL error from the last query that was searched, or {@code null} if there were none.
62
+ */
63
+ export declare const useJqlError: HookFunction<JQLParseError | null, BoundActions<State, Actions>, void>;
64
+ /**
65
+ * Returns whether there are any JQL errors in the current Prosemirror editor state.
66
+ */
67
+ export declare const useEditorStateHasJqlError: HookFunction<boolean, BoundActions<State, Actions>, void>;
68
+ export declare const useExternalMessages: HookFunction<ExternalMessagesNormalized, BoundActions<State, Actions>, void>;
69
+ export declare const useCustomErrorComponent: HookFunction<CustomErrorComponent | undefined, BoundActions<State, Actions>, void>;
70
+ export declare const useAutocompleteOptions: HookFunction<SelectableAutocompleteOption[], BoundActions<State, Actions>, void>;
71
+ export declare const useAutocompleteLoading: HookFunction<boolean, BoundActions<State, Actions>, void>;
72
+ export declare const useAutocompleteIsOpen: HookFunction<boolean, BoundActions<State, Actions>, void>;
73
+ export declare const useAutocompletePosition: HookFunction<AutocompletePosition, BoundActions<State, Actions>, void>;
74
+ export declare const useHydratedValue: HookFunction<HydratedValue | undefined, BoundActions<State, Actions>, {
799
75
  fieldName: string;
800
76
  id: string;
801
77
  }>;
802
- export declare const useHydratedGoal: import("react-sweet-state").HookFunction<HydratedGoal | undefined, import("react-sweet-state").BoundActions<State, {
803
- onEditorViewBlur: () => Action<State>;
804
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
805
- openAutocompleteOnNextUpdate: () => Action<State>;
806
- closeAutocomplete: () => Action<State>;
807
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
808
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
809
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
810
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
811
- cancelSubscription: () => Action<State>;
812
- setLoading: (loading: boolean) => Action<State>;
813
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
814
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
815
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
816
- updateValidationState: () => Action<State>;
817
- initialiseEditorState: () => Action<State, Props>;
818
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
819
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
820
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
821
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
822
- [key: string]: string;
823
- }, portalActions: PortalActions) => Action<State, Props>;
824
- updateEditorView: (attributes: {
825
- [key: string]: string;
826
- }) => Action<State, Props>;
827
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
828
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
829
- onSearch: () => Action<State>;
830
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
831
- externalErrorMessageViewed: () => Action<State, Props>;
832
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
833
- }>, {
78
+ export declare const useHydratedUser: HookFunction<HydratedUser | undefined, BoundActions<State, Actions>, {
834
79
  fieldName: string;
835
80
  id: string;
836
81
  }>;
837
- export declare const useHydratedDeprecations: import("react-sweet-state").HookFunction<HydratedDeprecatedField[], import("react-sweet-state").BoundActions<State, {
838
- onEditorViewBlur: () => Action<State>;
839
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
840
- openAutocompleteOnNextUpdate: () => Action<State>;
841
- closeAutocomplete: () => Action<State>;
842
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
843
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
844
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
845
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
846
- cancelSubscription: () => Action<State>;
847
- setLoading: (loading: boolean) => Action<State>;
848
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
849
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
850
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
851
- updateValidationState: () => Action<State>;
852
- initialiseEditorState: () => Action<State, Props>;
853
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
854
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
855
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
856
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
857
- [key: string]: string;
858
- }, portalActions: PortalActions) => Action<State, Props>;
859
- updateEditorView: (attributes: {
860
- [key: string]: string;
861
- }) => Action<State, Props>;
862
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
863
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
864
- onSearch: () => Action<State>;
865
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
866
- externalErrorMessageViewed: () => Action<State, Props>;
867
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
868
- }>, void>;
869
- export declare const useRichInlineNodesEnabled: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
870
- onEditorViewBlur: () => Action<State>;
871
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
872
- openAutocompleteOnNextUpdate: () => Action<State>;
873
- closeAutocomplete: () => Action<State>;
874
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
875
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
876
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
877
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
878
- cancelSubscription: () => Action<State>;
879
- setLoading: (loading: boolean) => Action<State>;
880
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
881
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
882
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
883
- updateValidationState: () => Action<State>;
884
- initialiseEditorState: () => Action<State, Props>;
885
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
886
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
887
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
888
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
889
- [key: string]: string;
890
- }, portalActions: PortalActions) => Action<State, Props>;
891
- updateEditorView: (attributes: {
892
- [key: string]: string;
893
- }) => Action<State, Props>;
894
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
895
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
896
- onSearch: () => Action<State>;
897
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
898
- externalErrorMessageViewed: () => Action<State, Props>;
899
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
900
- }>, void>;
901
- export declare const useOnSyntaxHelp: import("react-sweet-state").HookFunction<void | ((e: MouseEvent<HTMLElement>) => boolean), import("react-sweet-state").BoundActions<State, {
902
- onEditorViewBlur: () => Action<State>;
903
- onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
904
- openAutocompleteOnNextUpdate: () => Action<State>;
905
- closeAutocomplete: () => Action<State>;
906
- setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
907
- getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
908
- getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
909
- appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
910
- cancelSubscription: () => Action<State>;
911
- setLoading: (loading: boolean) => Action<State>;
912
- setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
913
- setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
914
- callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
915
- updateValidationState: () => Action<State>;
916
- initialiseEditorState: () => Action<State, Props>;
917
- configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
918
- onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
919
- resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
920
- initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
921
- [key: string]: string;
922
- }, portalActions: PortalActions) => Action<State, Props>;
923
- updateEditorView: (attributes: {
924
- [key: string]: string;
925
- }) => Action<State, Props>;
926
- setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
927
- setEditorViewContainerScroll: (scroll: number) => Action<State>;
928
- onSearch: () => Action<State>;
929
- onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
930
- externalErrorMessageViewed: () => Action<State, Props>;
931
- createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
932
- }>, void>;
933
- export declare const EditorStateContainer: import("react-sweet-state").OverrideContainerComponent<Props>;
82
+ export declare const useHydratedTeam: HookFunction<HydratedTeam | undefined, BoundActions<State, Actions>, {
83
+ fieldName: string;
84
+ id: string;
85
+ }>;
86
+ export declare const useHydratedProject: HookFunction<HydratedProject | undefined, BoundActions<State, Actions>, {
87
+ fieldName: string;
88
+ id: string;
89
+ }>;
90
+ export declare const useHydratedGoal: HookFunction<HydratedGoal | undefined, BoundActions<State, Actions>, {
91
+ fieldName: string;
92
+ id: string;
93
+ }>;
94
+ export declare const useHydratedDeprecations: HookFunction<HydratedDeprecatedField[], BoundActions<State, Actions>, void>;
95
+ export declare const useRichInlineNodesEnabled: HookFunction<boolean, BoundActions<State, Actions>, void>;
96
+ export declare const useOnSyntaxHelp: HookFunction<void | ((e: MouseEvent<HTMLElement>) => boolean), BoundActions<State, Actions>, void>;
97
+ export declare const EditorStateContainer: OverrideContainerComponent<Props>;
98
+ export {};