@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,17 +0,0 @@
1
- export declare const messages: {
2
- buttonLabel: {
3
- defaultMessage: string;
4
- description: string;
5
- id: string;
6
- };
7
- collapseTooltip: {
8
- defaultMessage: string;
9
- description: string;
10
- id: string;
11
- };
12
- expandTooltip: {
13
- defaultMessage: string;
14
- description: string;
15
- id: string;
16
- };
17
- };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const JQLEditorControlsContent: () => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ReadOnlyControlsContent: () => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Search: () => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- export declare const messages: {
2
- searchLabel: {
3
- defaultMessage: string;
4
- description: string;
5
- id: string;
6
- };
7
- };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const SyntaxHelp: () => React.JSX.Element;
@@ -1,12 +0,0 @@
1
- export declare const messages: {
2
- syntaxHelpDescription: {
3
- defaultMessage: string;
4
- description: string;
5
- id: string;
6
- };
7
- syntaxHelpTooltip: {
8
- defaultMessage: string;
9
- description: string;
10
- id: string;
11
- };
12
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * Message components are rendered by priority.
4
- * Message component decides on its own what exactly to render (GQL vs external messages).
5
- */
6
- export declare const JQLEditorFooterContent: () => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const JQLEditorHelp: () => React.JSX.Element;
@@ -1,17 +0,0 @@
1
- export declare const messages: {
2
- fieldNewLineCommand: {
3
- defaultMessage: string;
4
- description: string;
5
- id: string;
6
- };
7
- newLineCommand: {
8
- defaultMessage: string;
9
- description: string;
10
- id: string;
11
- };
12
- searchCommand: {
13
- defaultMessage: string;
14
- description: string;
15
- id: string;
16
- };
17
- };
@@ -1,11 +0,0 @@
1
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
2
- import { type Theme } from '@emotion/react';
3
- import { type StyledComponent } from '@emotion/styled';
4
- type HelpContainerProps = {
5
- isVisible: boolean;
6
- };
7
- export declare const HelpContainer: StyledComponent<{
8
- as?: React.ElementType;
9
- theme?: Theme;
10
- } & HelpContainerProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ErrorMessages: () => React.JSX.Element | null;
@@ -1,7 +0,0 @@
1
- export declare const messages: {
2
- jqlErrorPosition: {
3
- defaultMessage: string;
4
- description: string;
5
- id: string;
6
- };
7
- };
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { type ExternalMessage } from '../../../../state/types';
3
- export declare const MessageContainer: ({ children, }: {
4
- children: React.ReactNode;
5
- }) => React.JSX.Element;
6
- export declare const FormatMessages: ({ messages, }: {
7
- messages: ExternalMessage[];
8
- }) => React.JSX.Element | null;
9
- /**
10
- * This function was extracted from FormatMessages, so that the rendering is decoupled from the logic
11
- * This is so that the extractMessageNodes can used elsewhere where rendering is delegated to a different renderer
12
- *
13
- * Simply put, this function only handles getting m.message, and limiting to MAX_MESSAGES
14
- */
15
- export declare const extractMessageNodes: (messages: ExternalMessage[]) => React.ReactElement[];
@@ -1,13 +0,0 @@
1
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
2
- import type { Theme } from '@emotion/react';
3
- import { type StyledComponent } from '@emotion/styled';
4
- export declare const MessageContainer: StyledComponent<{
5
- as?: React.ElementType;
6
- theme?: Theme;
7
- } & {
8
- isSearch: boolean;
9
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
- export declare const MessageList: StyledComponent<{
11
- as?: React.ElementType;
12
- theme?: Theme;
13
- }, DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
@@ -1,3 +0,0 @@
1
- export { ErrorMessages } from './errors';
2
- export { InfoMessages } from './infos';
3
- export { WarningMessages } from './warnings';
@@ -1,3 +0,0 @@
1
- import React, { type ReactNode } from 'react';
2
- export declare const useFormattedInfoMessage: () => ReactNode;
3
- export declare const InfoMessages: () => React.JSX.Element | null;
@@ -1,3 +0,0 @@
1
- import React, { type ReactNode } from 'react';
2
- export declare const useFormattedWarningMessage: () => ReactNode;
3
- export declare const WarningMessages: () => React.JSX.Element | null;
@@ -1,17 +0,0 @@
1
- export declare const messages: {
2
- defaultWarning: {
3
- defaultMessage: string;
4
- description: string;
5
- id: string;
6
- };
7
- deprecatedBothParentReplacementMessage: {
8
- defaultMessage: string;
9
- description: string;
10
- id: string;
11
- };
12
- deprecatedParentReplacementMessage: {
13
- defaultMessage: string;
14
- description: string;
15
- id: string;
16
- };
17
- };
@@ -1,65 +0,0 @@
1
- import React, { type FocusEvent, type ReactNode } from 'react';
2
- type Props = {
3
- /**
4
- * React node to render within the editor controls group.
5
- */
6
- EditorControlsContent: ReactNode;
7
- /**
8
- * React node to render within the footer.
9
- */
10
- EditorFooterContent: ReactNode;
11
- /**
12
- * Flag to determine whether the editor view (or autocomplete dropdown) currently has focus.
13
- */
14
- editorViewHasFocus: boolean;
15
- /**
16
- * Flag to determine if there were any JQL parse errors in the last submitted query.
17
- */
18
- editorViewIsInvalid: boolean;
19
- /**
20
- * Flag to determine whether line numbers should be shown in the editor.
21
- */
22
- lineNumbersVisible: boolean;
23
- /**
24
- * ID to assign to the main wrapper of the editor.
25
- */
26
- mainId: string;
27
- /**
28
- * Ref callback to the main wrapper of the editor.
29
- */
30
- onEditorMainRef?: (editorMain: HTMLElement | null) => void;
31
- /**
32
- * Callback when the editor view is blurred.
33
- */
34
- onEditorViewBlur?: () => void;
35
- /**
36
- * Ref callback to the editor view container element.
37
- */
38
- onEditorViewContainerRef?: (editorViewContainer: HTMLElement | null) => void;
39
- /**
40
- * Callback when the editor view is scrolled.
41
- */
42
- onEditorViewContainerScroll?: (event: React.UIEvent<HTMLElement>) => void;
43
- /**
44
- * Callback when the editor view is focused.
45
- */
46
- onEditorViewFocus?: (event: FocusEvent<HTMLElement>) => void;
47
- /**
48
- * Ref callback to the editor view element which the Prosemirror editor will be bound to.
49
- */
50
- onEditorViewRef?: (editorView: HTMLElement | null) => void;
51
- /**
52
- * Callback when the editor view receives a CSS transition end event.
53
- */
54
- onEditorViewTransitionEnd?: () => void;
55
- };
56
- declare const JQLEditorLayout: (props: Props) => React.JSX.Element;
57
- type ReadOnlyProps = {
58
- query: string;
59
- };
60
- export declare const JQLEditorReadOnly: ({ isSearch, isCompact, defaultRows, ...props }: ReadOnlyProps & {
61
- defaultRows?: number;
62
- isCompact?: boolean;
63
- isSearch?: boolean;
64
- }) => React.JSX.Element;
65
- export default JQLEditorLayout;
@@ -1,65 +0,0 @@
1
- import type { DetailedHTMLProps, HTMLAttributes, ClassAttributes } from 'react';
2
- import { type Theme } from '@emotion/react';
3
- import { type StyledComponent } from '@emotion/styled';
4
- export declare const EditorMain: StyledComponent<{
5
- as?: React.ElementType;
6
- theme?: Theme;
7
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
- export declare const EditorFooter: StyledComponent<{
9
- as?: React.ElementType;
10
- theme?: Theme;
11
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
- type EditorViewContainerProps = {
13
- editorViewHasFocus?: boolean;
14
- editorViewIsInvalid?: boolean;
15
- };
16
- export declare const EditorViewContainer: StyledComponent<{
17
- as?: React.ElementType;
18
- theme?: Theme;
19
- } & EditorViewContainerProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
- export declare const ReadOnlyEditorViewContainer: StyledComponent<{
21
- as?: React.ElementType;
22
- theme?: Theme;
23
- } & EditorViewContainerProps & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
24
- theme?: Theme;
25
- }, {}, {}>;
26
- export declare const LineNumberToolbar: StyledComponent<{
27
- as?: React.ElementType;
28
- theme?: Theme;
29
- } & {
30
- lineNumbersVisible: boolean;
31
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
32
- /**
33
- * The main div which the Prosemirror editor will be rendered into.
34
- */
35
- export declare const EditorView: StyledComponent<{
36
- as?: React.ElementType;
37
- theme?: Theme;
38
- } & {
39
- defaultMaxRows: number;
40
- defaultRows?: number;
41
- expandedRows: number;
42
- isCompact: boolean;
43
- lineNumbersVisible: boolean;
44
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
45
- export declare const ReadOnlyEditorView: StyledComponent<{
46
- as?: React.ElementType;
47
- theme?: Theme;
48
- } & {
49
- defaultMaxRows: number;
50
- defaultRows?: number;
51
- expandedRows: number;
52
- isCompact: boolean;
53
- lineNumbersVisible: boolean;
54
- } & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
55
- theme?: Theme;
56
- }, {}, {}>;
57
- export declare const EditorControls: StyledComponent<{
58
- as?: React.ElementType;
59
- theme?: Theme;
60
- } & {
61
- isCompact: boolean;
62
- isSearch: boolean;
63
- isVisualRefresh?: boolean;
64
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
65
- export {};
@@ -1,4 +0,0 @@
1
- import { type Context } from 'react';
2
- import { type PortalActions } from './types';
3
- export declare const PortalActionsContext: Context<PortalActions>;
4
- export declare const usePortalActionsContext: () => PortalActions;
@@ -1,7 +0,0 @@
1
- import React, { type ReactNode } from 'react';
2
- /**
3
- * Provides actions to manage portals via context and renders portalled components into the React tree.
4
- */
5
- export declare const JQLEditorPortalRenderer: ({ children, }: {
6
- children: ReactNode;
7
- }) => React.JSX.Element;
@@ -1,38 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import { type PluginContainerKey, type PluginContainers } from '../../plugins/types';
3
- export type Container = PluginContainerKey | Element;
4
- export type PortalActions = {
5
- onCreatePortal: (key: string, portalComponent: ReactNode, container: Container) => void;
6
- onDestroyPortal: (key: string) => void;
7
- onRegisterPluginContainer: (containerKey: PluginContainerKey, element: HTMLElement | null) => void;
8
- };
9
- export type PortalState = {
10
- components: {
11
- [key: string]: {
12
- container: Container;
13
- portalComponent: ReactNode;
14
- };
15
- };
16
- containers: PluginContainers;
17
- };
18
- type CreatePortalAction = {
19
- payload: {
20
- container: Container;
21
- key: string;
22
- portalComponent: ReactNode;
23
- };
24
- type: 'createPortal';
25
- };
26
- type DestroyPortalAction = {
27
- payload: string;
28
- type: 'destroyPortal';
29
- };
30
- type RegisterPluginContainerAction = {
31
- payload: {
32
- containerKey: PluginContainerKey;
33
- element: HTMLElement | null;
34
- };
35
- type: 'registerPluginContainer';
36
- };
37
- export type PortalAction = CreatePortalAction | DestroyPortalAction | RegisterPluginContainerAction;
38
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * This wraps ProseMirror's EditorView as a React component.
4
- */
5
- declare const JQLEditorView: ({ inputRef, }: {
6
- inputRef?: React.Ref<{
7
- focus: () => void;
8
- }>;
9
- }) => React.JSX.Element;
10
- export default JQLEditorView;
@@ -1,7 +0,0 @@
1
- export declare const messages: {
2
- inputLabel: {
3
- defaultMessage: string;
4
- description: string;
5
- id: string;
6
- };
7
- };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const TooltipTag: React.ForwardRefExoticComponent<React.RefAttributes<HTMLElement>>;
@@ -1,7 +0,0 @@
1
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
2
- import type { Theme } from '@emotion/react';
3
- import { type StyledComponent } from '@emotion/styled';
4
- export declare const StyledTooltipTag: StyledComponent<{
5
- as?: React.ElementType;
6
- theme?: Theme;
7
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,9 +0,0 @@
1
- import { type JQLEditorUIProps } from './jql-editor/types';
2
- export type { JQLEditorUIProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, HydratedLozengeWithAvatar, } from './jql-editor/types';
3
- export type JQLEditorProps = JQLEditorUIProps & {
4
- /**
5
- * React-intl locale. This should be set to "en" if alternate message sets are not being loaded higher in the React
6
- * tree.
7
- */
8
- locale?: string;
9
- };
@@ -1,9 +0,0 @@
1
- import { type Fragment, type Node } from '@atlaskit/editor-prosemirror/model';
2
- /**
3
- * Get all text between positions `from` and `to` with a newline char between block nodes.
4
- */
5
- export declare const getNodeText: (node: Node, from: number, to: number) => string;
6
- /**
7
- * Get all text between positions `from` and `to` with a newline char between block nodes.
8
- */
9
- export declare const getFragmentText: (fragment: Fragment, from: number, to: number) => string;
@@ -1,4 +0,0 @@
1
- /**
2
- * Splits the provided text by new line characters.
3
- */
4
- export declare const splitTextByNewLine: (text: string) => string[];