@atlaskit/jql-editor 6.2.1 → 6.2.2

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