@atlaskit/jql-editor 6.6.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/analytics/package.json +1 -8
  3. package/async/package.json +1 -8
  4. package/components/types/package.json +1 -8
  5. package/dist/cjs/analytics/util.js +1 -1
  6. package/dist/es2019/analytics/util.js +1 -1
  7. package/dist/esm/analytics/util.js +1 -1
  8. package/i18n/package.json +1 -8
  9. package/jql-editor-analytics-listener/package.json +1 -8
  10. package/jql-editor-layout/package.json +1 -8
  11. package/package.json +29 -37
  12. package/state/types/package.json +1 -8
  13. package/types/package.json +1 -8
  14. package/ui/package.json +1 -8
  15. package/ui/types/package.json +1 -8
  16. package/dist/types-ts4.5/accessibility/index.d.ts +0 -1
  17. package/dist/types-ts4.5/accessibility/styled.d.ts +0 -7
  18. package/dist/types-ts4.5/analytics/constants.d.ts +0 -18
  19. package/dist/types-ts4.5/analytics/index.d.ts +0 -7
  20. package/dist/types-ts4.5/analytics/listener/analytics-web-client-wrapper.d.ts +0 -9
  21. package/dist/types-ts4.5/analytics/listener/handle-event.d.ts +0 -9
  22. package/dist/types-ts4.5/analytics/listener/helpers/logger.d.ts +0 -24
  23. package/dist/types-ts4.5/analytics/listener/index.d.ts +0 -7
  24. package/dist/types-ts4.5/analytics/listener/jql-editor-analytics-listener.d.ts +0 -20
  25. package/dist/types-ts4.5/analytics/listener/process-event-payload.d.ts +0 -8
  26. package/dist/types-ts4.5/analytics/listener/types.d.ts +0 -7
  27. package/dist/types-ts4.5/analytics/types.d.ts +0 -3
  28. package/dist/types-ts4.5/analytics/util.d.ts +0 -5
  29. package/dist/types-ts4.5/async.d.ts +0 -5
  30. package/dist/types-ts4.5/commands/select-error-command/index.d.ts +0 -5
  31. package/dist/types-ts4.5/common/constants.d.ts +0 -6
  32. package/dist/types-ts4.5/common/messages.d.ts +0 -7
  33. package/dist/types-ts4.5/common/styled.d.ts +0 -8
  34. package/dist/types-ts4.5/entry-points/analytics.d.ts +0 -2
  35. package/dist/types-ts4.5/entry-points/async.d.ts +0 -1
  36. package/dist/types-ts4.5/entry-points/components-types.d.ts +0 -1
  37. package/dist/types-ts4.5/entry-points/jql-editor-analytics-listener.d.ts +0 -2
  38. package/dist/types-ts4.5/entry-points/jql-editor-layout.d.ts +0 -1
  39. package/dist/types-ts4.5/entry-points/src-types.d.ts +0 -1
  40. package/dist/types-ts4.5/entry-points/state-types.d.ts +0 -1
  41. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  42. package/dist/types-ts4.5/entry-points/ui-types.d.ts +0 -1
  43. package/dist/types-ts4.5/entry-points/ui.d.ts +0 -1
  44. package/dist/types-ts4.5/hooks/use-editor-theme/index.d.ts +0 -43
  45. package/dist/types-ts4.5/hooks/use-editor-view-has-infos/index.d.ts +0 -1
  46. package/dist/types-ts4.5/hooks/use-editor-view-has-warnings/index.d.ts +0 -1
  47. package/dist/types-ts4.5/hooks/use-editor-view-is-invalid/index.d.ts +0 -11
  48. package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
  49. package/dist/types-ts4.5/i18n/da.d.ts +0 -8
  50. package/dist/types-ts4.5/i18n/de.d.ts +0 -8
  51. package/dist/types-ts4.5/i18n/en.d.ts +0 -8
  52. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
  53. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
  54. package/dist/types-ts4.5/i18n/es.d.ts +0 -8
  55. package/dist/types-ts4.5/i18n/et.d.ts +0 -8
  56. package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
  57. package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
  58. package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
  59. package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
  60. package/dist/types-ts4.5/i18n/index.d.ts +0 -24
  61. package/dist/types-ts4.5/i18n/it.d.ts +0 -8
  62. package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
  63. package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
  64. package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
  65. package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
  66. package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
  67. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
  68. package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
  69. package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
  70. package/dist/types-ts4.5/i18n/sk.d.ts +0 -8
  71. package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
  72. package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
  73. package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
  74. package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
  75. package/dist/types-ts4.5/i18n/th.d.ts +0 -8
  76. package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
  77. package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
  78. package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
  79. package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
  80. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
  81. package/dist/types-ts4.5/index.d.ts +0 -5
  82. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete/index.d.ts +0 -4
  83. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/index.d.ts +0 -11
  84. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +0 -24
  85. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/index.d.ts +0 -10
  86. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/messages.d.ts +0 -12
  87. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/styled.d.ts +0 -34
  88. package/dist/types-ts4.5/plugins/autocomplete/components/types.d.ts +0 -38
  89. package/dist/types-ts4.5/plugins/autocomplete/constants.d.ts +0 -14
  90. package/dist/types-ts4.5/plugins/autocomplete/index.d.ts +0 -4
  91. package/dist/types-ts4.5/plugins/autocomplete/messages.d.ts +0 -7
  92. package/dist/types-ts4.5/plugins/autocomplete/types.d.ts +0 -1
  93. package/dist/types-ts4.5/plugins/autocomplete/view.d.ts +0 -19
  94. package/dist/types-ts4.5/plugins/common/get-document-position/index.d.ts +0 -9
  95. package/dist/types-ts4.5/plugins/common/plugin-keymap.d.ts +0 -8
  96. package/dist/types-ts4.5/plugins/common/react-plugin-view.d.ts +0 -48
  97. package/dist/types-ts4.5/plugins/index.d.ts +0 -5
  98. package/dist/types-ts4.5/plugins/jql-ast/JQLEditorErrorStrategy.d.ts +0 -17
  99. package/dist/types-ts4.5/plugins/jql-ast/constants.d.ts +0 -3
  100. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.d.ts +0 -5
  101. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.d.ts +0 -11
  102. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.d.ts +0 -6
  103. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.d.ts +0 -6
  104. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.d.ts +0 -6
  105. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.d.ts +0 -9
  106. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.d.ts +0 -6
  107. package/dist/types-ts4.5/plugins/jql-ast/index.d.ts +0 -7
  108. package/dist/types-ts4.5/plugins/jql-ast/messages.d.ts +0 -172
  109. package/dist/types-ts4.5/plugins/jql-ast/utils.d.ts +0 -4
  110. package/dist/types-ts4.5/plugins/jql-syntax-highlighting/index.d.ts +0 -4
  111. package/dist/types-ts4.5/plugins/jql-syntax-highlighting/types.d.ts +0 -5
  112. package/dist/types-ts4.5/plugins/jql-syntax-highlighting/visitor.d.ts +0 -19
  113. package/dist/types-ts4.5/plugins/rich-inline-nodes/constants.d.ts +0 -3
  114. package/dist/types-ts4.5/plugins/rich-inline-nodes/index.d.ts +0 -4
  115. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/base/index.d.ts +0 -16
  116. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/base/types.d.ts +0 -7
  117. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/goal-icon.d.ts +0 -16
  118. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/goal-node.d.ts +0 -10
  119. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/index.d.ts +0 -3
  120. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/types.d.ts +0 -5
  121. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/index.d.ts +0 -13
  122. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/lozenge-with-avatar/index.d.ts +0 -7
  123. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/lozenge-with-avatar/styled.d.ts +0 -18
  124. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/index.d.ts +0 -3
  125. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/messages.d.ts +0 -7
  126. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/project-node.d.ts +0 -10
  127. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/types.d.ts +0 -7
  128. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/team/index.d.ts +0 -7
  129. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/team/styled.d.ts +0 -18
  130. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/types.d.ts +0 -9
  131. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/index.d.ts +0 -7
  132. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/styled.d.ts +0 -18
  133. package/dist/types-ts4.5/plugins/rich-inline-nodes/types.d.ts +0 -2
  134. package/dist/types-ts4.5/plugins/rich-inline-nodes/util/create-node-spec.d.ts +0 -4
  135. package/dist/types-ts4.5/plugins/rich-inline-nodes/util/react-node-view.d.ts +0 -24
  136. package/dist/types-ts4.5/plugins/rich-inline-nodes/util/replace-nodes-transaction.d.ts +0 -3
  137. package/dist/types-ts4.5/plugins/types.d.ts +0 -16
  138. package/dist/types-ts4.5/plugins/validation-tooltip/constants.d.ts +0 -5
  139. package/dist/types-ts4.5/plugins/validation-tooltip/index.d.ts +0 -3
  140. package/dist/types-ts4.5/plugins/validation-tooltip/view.d.ts +0 -18
  141. package/dist/types-ts4.5/schema/index.d.ts +0 -28
  142. package/dist/types-ts4.5/state/analytics/index.d.ts +0 -9
  143. package/dist/types-ts4.5/state/autocomplete/index.d.ts +0 -4
  144. package/dist/types-ts4.5/state/hydration/index.d.ts +0 -3
  145. package/dist/types-ts4.5/state/hydration/util.d.ts +0 -30
  146. package/dist/types-ts4.5/state/index.d.ts +0 -102
  147. package/dist/types-ts4.5/state/types.d.ts +0 -261
  148. package/dist/types-ts4.5/state/util.d.ts +0 -16
  149. package/dist/types-ts4.5/types.d.ts +0 -5
  150. package/dist/types-ts4.5/ui/error-boundary/index.d.ts +0 -25
  151. package/dist/types-ts4.5/ui/index.d.ts +0 -3
  152. package/dist/types-ts4.5/ui/intl-provider/index.d.ts +0 -10
  153. package/dist/types-ts4.5/ui/jql-editor/index.d.ts +0 -13
  154. package/dist/types-ts4.5/ui/jql-editor/types.d.ts +0 -136
  155. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/index.d.ts +0 -10
  156. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +0 -7
  157. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-search/index.d.ts +0 -9
  158. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/index.d.ts +0 -9
  159. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +0 -7
  160. package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/index.d.ts +0 -2
  161. package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/messages.d.ts +0 -17
  162. package/dist/types-ts4.5/ui/jql-editor-controls-content/index.d.ts +0 -2
  163. package/dist/types-ts4.5/ui/jql-editor-controls-content/read-only-controls-content/index.d.ts +0 -2
  164. package/dist/types-ts4.5/ui/jql-editor-controls-content/search/index.d.ts +0 -2
  165. package/dist/types-ts4.5/ui/jql-editor-controls-content/search/messages.d.ts +0 -7
  166. package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/index.d.ts +0 -2
  167. package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/messages.d.ts +0 -12
  168. package/dist/types-ts4.5/ui/jql-editor-footer-content/index.d.ts +0 -6
  169. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/index.d.ts +0 -2
  170. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/messages.d.ts +0 -17
  171. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +0 -11
  172. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/index.d.ts +0 -2
  173. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/messages.d.ts +0 -7
  174. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/index.d.ts +0 -15
  175. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +0 -13
  176. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/index.d.ts +0 -3
  177. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/infos/index.d.ts +0 -3
  178. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/index.d.ts +0 -3
  179. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/messages.d.ts +0 -17
  180. package/dist/types-ts4.5/ui/jql-editor-layout/index.d.ts +0 -65
  181. package/dist/types-ts4.5/ui/jql-editor-layout/styled.d.ts +0 -65
  182. package/dist/types-ts4.5/ui/jql-editor-portal-provider/context.d.ts +0 -4
  183. package/dist/types-ts4.5/ui/jql-editor-portal-provider/index.d.ts +0 -7
  184. package/dist/types-ts4.5/ui/jql-editor-portal-provider/types.d.ts +0 -38
  185. package/dist/types-ts4.5/ui/jql-editor-view/index.d.ts +0 -10
  186. package/dist/types-ts4.5/ui/messages.d.ts +0 -7
  187. package/dist/types-ts4.5/ui/tooltip-tag/index.d.ts +0 -2
  188. package/dist/types-ts4.5/ui/tooltip-tag/styled.d.ts +0 -7
  189. package/dist/types-ts4.5/ui/types.d.ts +0 -9
  190. package/dist/types-ts4.5/utils/document-text/index.d.ts +0 -9
  191. package/dist/types-ts4.5/utils/split-text-by-new-line/index.d.ts +0 -4
@@ -1,6 +0,0 @@
1
- import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl';
3
- /**
4
- * Show the appropriate error message when parsing JQL fails and a field rule was expected.
5
- */
6
- export declare const handleFieldRuleError: (currentToken: Token, intl: IntlShape) => string;
@@ -1,6 +0,0 @@
1
- import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl';
3
- /**
4
- * Show the appropriate error message when parsing JQL fails and a function argument rule was expected.
5
- */
6
- export declare const handleFunctionArgumentRuleError: (currentToken: Token, intl: IntlShape) => string;
@@ -1,9 +0,0 @@
1
- import { type Token } from 'antlr4ts';
2
- import { type RecognitionException } from 'antlr4ts/RecognitionException';
3
- import { type IntlShape } from 'react-intl';
4
- import { type JQLRuleSuggestions } from '@atlaskit/jql-autocomplete';
5
- import { type JQLParser } from '@atlaskit/jql-parser';
6
- /**
7
- * Show the appropriate error message when parsing JQL fails and an operand rule was expected.
8
- */
9
- export declare const handleOperandRuleError: (recognizer: JQLParser, currentToken: Token, expectedTokens: string[], rules: JQLRuleSuggestions, intl: IntlShape, exception?: RecognitionException) => string;
@@ -1,6 +0,0 @@
1
- import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl';
3
- /**
4
- * Show the appropriate error message when parsing JQL fails and an operator rule was expected.
5
- */
6
- export declare const handleOperatorRuleError: (currentToken: Token, intl: IntlShape) => string;
@@ -1,7 +0,0 @@
1
- import { type MutableRefObject } from 'react';
2
- import { type IntlShape } from 'react-intl';
3
- import { type EditorState, Plugin } from '@atlaskit/editor-prosemirror/state';
4
- import { type Jast } from '@atlaskit/jql-ast';
5
- export declare const getJastFromState: (state: EditorState) => Jast;
6
- declare const jqlAstPlugin: (intlRef: MutableRefObject<IntlShape>) => Plugin<Jast>;
7
- export default jqlAstPlugin;
@@ -1,172 +0,0 @@
1
- export declare const errorMessages: {
2
- expectingCFButReceived: {
3
- defaultMessage: string;
4
- description: string;
5
- id: string;
6
- };
7
- expectingCustomFieldId: {
8
- defaultMessage: string;
9
- description: string;
10
- id: string;
11
- };
12
- expectingFieldBeforeEOF: {
13
- defaultMessage: string;
14
- description: string;
15
- id: string;
16
- };
17
- expectingFieldButReceived: {
18
- defaultMessage: string;
19
- description: string;
20
- id: string;
21
- };
22
- expectingFieldPropertyIdBeforeEOF: {
23
- defaultMessage: string;
24
- description: string;
25
- id: string;
26
- };
27
- expectingFieldPropertyIdButReceived: {
28
- defaultMessage: string;
29
- description: string;
30
- id: string;
31
- };
32
- expectingFunctionArgBeforeEOF: {
33
- defaultMessage: string;
34
- description: string;
35
- id: string;
36
- };
37
- expectingFunctionArgButReceived: {
38
- defaultMessage: string;
39
- description: string;
40
- id: string;
41
- };
42
- expectingFunctionBeforeEOF: {
43
- defaultMessage: string;
44
- description: string;
45
- id: string;
46
- };
47
- expectingFunctionButReceived: {
48
- defaultMessage: string;
49
- description: string;
50
- id: string;
51
- };
52
- expectingListBeforeEOF: {
53
- defaultMessage: string;
54
- description: string;
55
- id: string;
56
- };
57
- expectingListButReceived: {
58
- defaultMessage: string;
59
- description: string;
60
- id: string;
61
- };
62
- expectingListOrFunctionBeforeEOF: {
63
- defaultMessage: string;
64
- description: string;
65
- id: string;
66
- };
67
- expectingListOrFunctionButReceived: {
68
- defaultMessage: string;
69
- description: string;
70
- id: string;
71
- };
72
- expectingMultipleTokensBeforeEOF: {
73
- defaultMessage: string;
74
- description: string;
75
- id: string;
76
- };
77
- expectingMultipleTokensButReceived: {
78
- defaultMessage: string;
79
- description: string;
80
- id: string;
81
- };
82
- expectingOperandBeforeEOF: {
83
- defaultMessage: string;
84
- description: string;
85
- id: string;
86
- };
87
- expectingOperandButReceived: {
88
- defaultMessage: string;
89
- description: string;
90
- id: string;
91
- };
92
- expectingOperatorBeforeEOF: {
93
- defaultMessage: string;
94
- description: string;
95
- id: string;
96
- };
97
- expectingOperatorButReceived: {
98
- defaultMessage: string;
99
- description: string;
100
- id: string;
101
- };
102
- expectingTokenBeforeEOF: {
103
- defaultMessage: string;
104
- description: string;
105
- id: string;
106
- };
107
- expectingTokenButReceived: {
108
- defaultMessage: string;
109
- description: string;
110
- id: string;
111
- };
112
- expectingValueBeforeEOF: {
113
- defaultMessage: string;
114
- description: string;
115
- id: string;
116
- };
117
- expectingValueButReceived: {
118
- defaultMessage: string;
119
- description: string;
120
- id: string;
121
- };
122
- expectingValueOrFunctionBeforeEOF: {
123
- defaultMessage: string;
124
- description: string;
125
- id: string;
126
- };
127
- expectingValueOrFunctionButReceived: {
128
- defaultMessage: string;
129
- description: string;
130
- id: string;
131
- };
132
- illegalChar: {
133
- defaultMessage: string;
134
- description: string;
135
- id: string;
136
- };
137
- illegalEscape: {
138
- defaultMessage: string;
139
- description: string;
140
- id: string;
141
- };
142
- illegalEscapeBlank: {
143
- defaultMessage: string;
144
- description: string;
145
- id: string;
146
- };
147
- reservedChar: {
148
- defaultMessage: string;
149
- description: string;
150
- id: string;
151
- };
152
- reservedWord: {
153
- defaultMessage: string;
154
- description: string;
155
- id: string;
156
- };
157
- unfinishedString: {
158
- defaultMessage: string;
159
- description: string;
160
- id: string;
161
- };
162
- unfinishedStringBlank: {
163
- defaultMessage: string;
164
- description: string;
165
- id: string;
166
- };
167
- unknownErrorAtToken: {
168
- defaultMessage: string;
169
- description: string;
170
- id: string;
171
- };
172
- };
@@ -1,4 +0,0 @@
1
- import { type RecognitionException } from 'antlr4ts/RecognitionException';
2
- import { type JQLParser } from '@atlaskit/jql-parser';
3
- export declare const getTokenDisplayNames: (parser: JQLParser, tokens: number[]) => string[];
4
- export declare const getExpectedTokensFromParserOrException: (parser: JQLParser, exception?: RecognitionException) => number[];
@@ -1,4 +0,0 @@
1
- import { Plugin } from '@atlaskit/editor-prosemirror/state';
2
- import { type Highlight } from './types';
3
- declare const jqlSyntaxHighlightingPlugin: () => Plugin<Highlight[]>;
4
- export default jqlSyntaxHighlightingPlugin;
@@ -1,5 +0,0 @@
1
- export type Highlight = {
2
- documentFrom: number;
3
- documentTo: number;
4
- tokenType: string;
5
- };
@@ -1,19 +0,0 @@
1
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
2
- import { AbstractJastVisitor, type AstNode, type CompoundOperator, type Field, type NotClauseOperator, type Operator, type OrderByDirection, type OrderByOperator, type PredicateOperator } from '@atlaskit/jql-ast';
3
- import { type Highlight } from './types';
4
- export declare class SyntaxHighlightingVisitor extends AbstractJastVisitor<Highlight[]> {
5
- state: EditorState;
6
- constructor(state: EditorState);
7
- visitCompoundOperator: (compoundOperator: CompoundOperator) => Highlight[];
8
- visitNotClauseOperator: (notClauseOperator: NotClauseOperator) => Highlight[];
9
- visitOrderByOperator: (orderByOperator: OrderByOperator) => Highlight[];
10
- visitOrderByDirection: (orderByDirection: OrderByDirection) => Highlight[];
11
- visitField: (field: Field) => Highlight[];
12
- visitOperator: (operator: Operator) => Highlight[];
13
- visitPredicateOperator: (predicateOperator: PredicateOperator) => Highlight[];
14
- protected shouldVisitNextChild(node: AstNode): boolean;
15
- protected aggregateResult(aggregate: Highlight[], nextResult: Highlight[]): Highlight[];
16
- protected defaultResult(): never[];
17
- private getHighlightsIfPosition;
18
- private createHighlight;
19
- }
@@ -1,3 +0,0 @@
1
- export declare const RICH_INLINE_NODE = "rich_inline";
2
- export declare const SELECTED_NODE = "selected";
3
- export declare const ERROR_NODE = "error";
@@ -1,4 +0,0 @@
1
- import { Plugin } from '@atlaskit/editor-prosemirror/state';
2
- import { type PortalActions } from '../../ui/jql-editor-portal-provider/types';
3
- declare const richInlineNodesPlugin: (portalActions: PortalActions) => Plugin<void>;
4
- export default richInlineNodesPlugin;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import type { NodeViewProps } from '../../util/react-node-view';
3
- import { type NodeBaseProps } from './types';
4
- /**
5
- * NodeBase Component
6
- *
7
- * This component is a base component for rendering a pill-like view for different node types.
8
- * It is designed to be used in the JQL editor to provide a consistent UI for various entities
9
- * such as projects, teams, users, etc.
10
- *
11
- * Currently, this component is only implemented for the "Project" (Atlas) node type. Separate components
12
- * already exist for "User" and "Team" nodes. However, to ensure consistency in design, these
13
- * components should eventually be refactored to use this base component. This will help maintain
14
- * a uniform look and feel across different node types.
15
- */
16
- export declare const NodeBase: (props: NodeViewProps<NodeBaseProps>) => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- export type NodeBaseProps = {
3
- iconBefore: ReactNode;
4
- isLocked?: boolean;
5
- isRichNodeDisplay?: boolean;
6
- text?: string;
7
- };
@@ -1,16 +0,0 @@
1
- import React, { type ComponentProps } from 'react';
2
- import { IconTile } from '@atlaskit/icon';
3
- declare const GOAL_ICON_KEYS: readonly [
4
- "GOAL",
5
- "OBJECTIVE",
6
- "KEY_RESULT"
7
- ];
8
- export type GoalIconKey = (typeof GOAL_ICON_KEYS)[number];
9
- export declare const isGoalIconKey: (value: string) => value is GoalIconKey;
10
- interface GoalIconProps {
11
- iconKey?: GoalIconKey;
12
- size?: ComponentProps<typeof IconTile>['size'];
13
- status: string;
14
- }
15
- export declare const GoalIcon: ({ status, size, iconKey }: GoalIconProps) => React.JSX.Element;
16
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { NodeViewProps } from '../../util/react-node-view';
3
- import type { Props } from './types';
4
- /**
5
- * GoalNode Component
6
- *
7
- * This component is a component for rendering a pill-like view for Goal node type
8
- * in the JQL editor
9
- */
10
- export declare const GoalNode: (props: NodeViewProps<Props>) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import type { JQLNodeSpec } from '../types';
2
- import type { Props } from './types';
3
- export declare const goal: JQLNodeSpec<Props>;
@@ -1,5 +0,0 @@
1
- export type Props = {
2
- fieldName: string;
3
- id: string;
4
- name: string;
5
- };
@@ -1,13 +0,0 @@
1
- import type { Props as GoalRichInlineProps } from './goal/types';
2
- import { type Props as LozengeWithAvatarRichInlineProps } from './lozenge-with-avatar';
3
- import type { Props as ProjectRichInlineProps } from './project/types';
4
- import { type Props as TeamRichInlineProps } from './team';
5
- import type { JQLNodeSpec } from './types';
6
- import { type Props as UserRichInlineProps } from './user';
7
- export declare const richInlineNodes: {
8
- goal: JQLNodeSpec<GoalRichInlineProps>;
9
- lozengeWithAvatar: JQLNodeSpec<LozengeWithAvatarRichInlineProps>;
10
- project: JQLNodeSpec<ProjectRichInlineProps>;
11
- team: JQLNodeSpec<TeamRichInlineProps>;
12
- user: JQLNodeSpec<UserRichInlineProps>;
13
- };
@@ -1,7 +0,0 @@
1
- import { type JQLNodeSpec } from '../types';
2
- export type Props = {
3
- fieldName: string;
4
- id: string;
5
- name: string;
6
- };
7
- export declare const lozengeWithAvatar: JQLNodeSpec<Props>;
@@ -1,18 +0,0 @@
1
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
2
- import { type Theme } from '@emotion/react';
3
- import { type StyledComponent } from '@emotion/styled';
4
- export declare const LozengeWithAvatarContainer: StyledComponent<{
5
- as?: React.ElementType;
6
- theme?: Theme;
7
- } & {
8
- error: boolean;
9
- selected: boolean;
10
- }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
11
- export declare const NameContainer: StyledComponent<{
12
- as?: React.ElementType;
13
- theme?: Theme;
14
- }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
15
- export declare const AvatarWrapper: StyledComponent<{
16
- as?: React.ElementType;
17
- theme?: Theme;
18
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,3 +0,0 @@
1
- import type { JQLNodeSpec } from '../types';
2
- import type { Props } from './types';
3
- export declare const project: JQLNodeSpec<Props>;
@@ -1,7 +0,0 @@
1
- export declare const messages: {
2
- restrictedProject: {
3
- defaultMessage: string;
4
- description: string;
5
- id: string;
6
- };
7
- };
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { NodeViewProps } from '../../util/react-node-view';
3
- import type { Props } from './types';
4
- /**
5
- * ProjectNode Component
6
- *
7
- * This component is a component for rendering a pill-like view for Project (Atlas) node type
8
- * in the JQL editor
9
- */
10
- export declare const ProjectNode: (props: NodeViewProps<Props>) => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- export type Props = {
2
- fieldName: string;
3
- iconName?: string;
4
- id: string;
5
- name: string;
6
- privateProject?: boolean;
7
- };
@@ -1,7 +0,0 @@
1
- import { type JQLNodeSpec } from '../types';
2
- export type Props = {
3
- fieldName: string;
4
- id: string;
5
- name: string;
6
- };
7
- export declare const team: JQLNodeSpec<Props>;
@@ -1,18 +0,0 @@
1
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
2
- import { type Theme } from '@emotion/react';
3
- import { type StyledComponent } from '@emotion/styled';
4
- export declare const TeamContainer: StyledComponent<{
5
- as?: React.ElementType;
6
- theme?: Theme;
7
- } & {
8
- error: boolean;
9
- selected: boolean;
10
- }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
11
- export declare const NameContainer: StyledComponent<{
12
- as?: React.ElementType;
13
- theme?: Theme;
14
- }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
15
- export declare const AvatarWrapper: StyledComponent<{
16
- as?: React.ElementType;
17
- theme?: Theme;
18
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,9 +0,0 @@
1
- import { type FunctionComponent } from 'react';
2
- import { type AttributeSpec } from '@atlaskit/editor-prosemirror/model';
3
- import { type NodeViewProps } from '../util/react-node-view';
4
- export type JQLNodeSpec<Props> = {
5
- attrs: {
6
- [name: string]: AttributeSpec;
7
- };
8
- component: FunctionComponent<NodeViewProps<Props>>;
9
- };
@@ -1,7 +0,0 @@
1
- import { type JQLNodeSpec } from '../types';
2
- export type Props = {
3
- fieldName: string;
4
- id: string;
5
- name: string;
6
- };
7
- export declare const user: JQLNodeSpec<Props>;
@@ -1,18 +0,0 @@
1
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
2
- import { type Theme } from '@emotion/react';
3
- import { type StyledComponent } from '@emotion/styled';
4
- export declare const UserContainer: StyledComponent<{
5
- as?: React.ElementType;
6
- theme?: Theme;
7
- } & {
8
- error: boolean;
9
- selected: boolean;
10
- }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
11
- export declare const NameContainer: StyledComponent<{
12
- as?: React.ElementType;
13
- theme?: Theme;
14
- }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
15
- export declare const AvatarWrapper: StyledComponent<{
16
- as?: React.ElementType;
17
- theme?: Theme;
18
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,2 +0,0 @@
1
- import { type ERROR_NODE, type SELECTED_NODE } from './constants';
2
- export type RichInlineNodeDecoration = typeof SELECTED_NODE | typeof ERROR_NODE;
@@ -1,4 +0,0 @@
1
- import { type AttributeSpec, type NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
- export declare const createNodeSpec: (name: string, attrs: {
3
- [name: string]: AttributeSpec;
4
- }) => NodeSpec;
@@ -1,24 +0,0 @@
1
- import { type ComponentType } from 'react';
2
- import { type Node } from '@atlaskit/editor-prosemirror/model';
3
- import { type Decoration, type NodeView } from '@atlaskit/editor-prosemirror/view';
4
- import { type PortalActions } from '../../../ui/jql-editor-portal-provider/types';
5
- export type NodeViewProps<Props> = Props & {
6
- error: boolean;
7
- selected: boolean;
8
- };
9
- export declare class ReactNodeView<Props> implements NodeView {
10
- private readonly component;
11
- private readonly componentSubject;
12
- private readonly node;
13
- private readonly portalActions;
14
- private readonly portalKey;
15
- readonly dom: HTMLSpanElement;
16
- constructor(component: ComponentType<NodeViewProps<Props>>, portalActions: PortalActions, node: Node);
17
- static for<Props>(component: ComponentType<NodeViewProps<Props>>, portalActions: PortalActions, node: Node, decorations: readonly Decoration[]): ReactNodeView<Props>;
18
- init: (decorations: readonly Decoration[]) => this;
19
- destroy: () => void;
20
- update: (node: Node, decorations: readonly Decoration[]) => boolean;
21
- getProps: (node: Node) => Props;
22
- private isSelected;
23
- private hasError;
24
- }
@@ -1,3 +0,0 @@
1
- import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import { type HydratedValuesMap } from '../../../state/types';
3
- export declare const replaceRichInlineNodes: (editorState: EditorState, hydratedValues: HydratedValuesMap) => Transaction;
@@ -1,16 +0,0 @@
1
- export type { AutocompleteProvider, AutocompleteOptions, AutocompleteOption, AutocompleteValueType, } from './autocomplete/types';
2
- export type PluginContainers = {
3
- /**
4
- * Container for plugin components which should be appended at the end of the editor input.
5
- */
6
- editor_controls?: HTMLElement;
7
- /**
8
- * Container for plugin components which should be appended to the footer underneath the editor input.
9
- */
10
- footer?: HTMLElement;
11
- /**
12
- * Container for plugin components which should be appended to the top level container element.
13
- */
14
- main?: HTMLElement;
15
- };
16
- export type PluginContainerKey = keyof PluginContainers;
@@ -1,5 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const JQLValidationTooltipPluginKey: PluginKey<boolean>;
3
- export declare const TOOLTIP_CLASSNAME = "jql-validation-tooltip";
4
- export declare const TOOLTIP_ENTER_CLASSNAME = "jql-validation-tooltip-enter";
5
- export declare const TOOLTIP_EXIT_CLASSNAME = "jql-validation-tooltip-exit";
@@ -1,3 +0,0 @@
1
- import { Plugin } from '@atlaskit/editor-prosemirror/state';
2
- declare const validationTooltipPlugin: (mainId: string) => Plugin<boolean>;
3
- export default validationTooltipPlugin;
@@ -1,18 +0,0 @@
1
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
2
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import { JQLSyntaxError } from '@atlaskit/jql-ast';
4
- type Coords = {
5
- bottom: number;
6
- left: number;
7
- right: number;
8
- top: number;
9
- };
10
- export declare class ValidationTooltipPluginView {
11
- tooltip: HTMLElement;
12
- constructor(mainId: string);
13
- showTooltip: (error: JQLSyntaxError, start: Coords, end: Coords) => void;
14
- hideTooltip: () => void;
15
- update(view: EditorView, lastState: EditorState): void;
16
- destroy(): void;
17
- }
18
- export {};
@@ -1,28 +0,0 @@
1
- import { type MutableRefObject } from 'react';
2
- import { type IntlShape } from 'react-intl';
3
- import { type ResolvedPos, Schema, type Slice } from '@atlaskit/editor-prosemirror/model';
4
- import { EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
5
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import { richInlineNodes } from '../plugins/rich-inline-nodes/nodes';
7
- import { type PortalActions } from '../ui/jql-editor-portal-provider/types';
8
- type Nodes = 'doc' | 'paragraph' | 'text' | keyof typeof richInlineNodes;
9
- type Marks = 'token' | 'cursor';
10
- export declare const JQLEditorSchema: Schema<Nodes, Marks>;
11
- /**
12
- * Emulate the behaviour of the default https://prosemirror.net/docs/ref/#view.EditorProps.clipboardTextSerializer but
13
- * preserves consecutive empty block nodes.
14
- */
15
- export declare const clipboardTextSerializer: (slice: Slice) => string;
16
- /**
17
- * Emulate the behaviour of the default https://prosemirror.net/docs/ref/#view.EditorProps.clipboardTextParser but
18
- * preserves consecutive empty lines.
19
- */
20
- export declare const clipboardTextParser: (text: string, $context: ResolvedPos) => Slice;
21
- export declare const defaultEditorState: EditorState;
22
- export type JQLEditorSchemaType = typeof JQLEditorSchema;
23
- export type JQLEditorCommand = (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => boolean;
24
- export type JQLEditorKeymap = {
25
- [key: string]: JQLEditorCommand;
26
- };
27
- export declare const configurePlugins: (editorState: EditorState, onSearchCommand: JQLEditorCommand | undefined, intlRef: MutableRefObject<IntlShape>, mainId: string, portalActions: PortalActions | void, enableRichInlineNodes: boolean) => EditorState;
28
- export {};
@@ -1,9 +0,0 @@
1
- import { type Action } from 'react-sweet-state';
2
- import { Subscription } from 'rxjs/Subscription';
3
- import { type OptionsKey, type Props, type State } from '../types';
4
- export declare const ANALYTICS_DEBOUNCE_MS = 2000;
5
- export type AutocompleteEvent = {
6
- analyticsSubscription: Subscription;
7
- onStopAutocompleteEvent: (isSuccess: boolean, optionTypes: OptionsKey[], hasOptions: boolean) => void;
8
- };
9
- export declare const onStartAutocompleteEvent: () => Action<State, Props, AutocompleteEvent>;
@@ -1,4 +0,0 @@
1
- import { type Observable } from 'rxjs/Observable';
2
- import { type AutocompleteOptions } from '@atlaskit/jql-editor-common';
3
- export declare const ORDERED_OPERATORS: string[];
4
- export declare const sortOperators: (operators$: Observable<AutocompleteOptions>) => Observable<AutocompleteOptions>;
@@ -1,3 +0,0 @@
1
- import { type Action } from 'react-sweet-state';
2
- import { type Props, type State } from '../types';
3
- export declare const hydrateQuery: () => Action<State, Props, Promise<void>>;