@atlaskit/jql-editor 6.5.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/CHANGELOG.md +37 -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/cjs/plugins/autocomplete/constants.js +3 -0
  7. package/dist/cjs/state/index.js +25 -8
  8. package/dist/es2019/analytics/util.js +1 -1
  9. package/dist/es2019/plugins/autocomplete/constants.js +2 -1
  10. package/dist/es2019/state/index.js +20 -2
  11. package/dist/esm/analytics/util.js +1 -1
  12. package/dist/esm/plugins/autocomplete/constants.js +3 -0
  13. package/dist/esm/state/index.js +25 -8
  14. package/i18n/package.json +1 -8
  15. package/jql-editor-analytics-listener/package.json +1 -8
  16. package/jql-editor-layout/package.json +1 -8
  17. package/package.json +32 -37
  18. package/state/types/package.json +1 -8
  19. package/types/package.json +1 -8
  20. package/ui/package.json +1 -8
  21. package/ui/types/package.json +1 -8
  22. package/dist/types-ts4.5/accessibility/index.d.ts +0 -1
  23. package/dist/types-ts4.5/accessibility/styled.d.ts +0 -7
  24. package/dist/types-ts4.5/analytics/constants.d.ts +0 -18
  25. package/dist/types-ts4.5/analytics/index.d.ts +0 -7
  26. package/dist/types-ts4.5/analytics/listener/analytics-web-client-wrapper.d.ts +0 -9
  27. package/dist/types-ts4.5/analytics/listener/handle-event.d.ts +0 -9
  28. package/dist/types-ts4.5/analytics/listener/helpers/logger.d.ts +0 -24
  29. package/dist/types-ts4.5/analytics/listener/index.d.ts +0 -7
  30. package/dist/types-ts4.5/analytics/listener/jql-editor-analytics-listener.d.ts +0 -20
  31. package/dist/types-ts4.5/analytics/listener/process-event-payload.d.ts +0 -8
  32. package/dist/types-ts4.5/analytics/listener/types.d.ts +0 -7
  33. package/dist/types-ts4.5/analytics/types.d.ts +0 -3
  34. package/dist/types-ts4.5/analytics/util.d.ts +0 -5
  35. package/dist/types-ts4.5/async.d.ts +0 -5
  36. package/dist/types-ts4.5/commands/select-error-command/index.d.ts +0 -5
  37. package/dist/types-ts4.5/common/constants.d.ts +0 -6
  38. package/dist/types-ts4.5/common/messages.d.ts +0 -7
  39. package/dist/types-ts4.5/common/styled.d.ts +0 -8
  40. package/dist/types-ts4.5/entry-points/analytics.d.ts +0 -2
  41. package/dist/types-ts4.5/entry-points/async.d.ts +0 -1
  42. package/dist/types-ts4.5/entry-points/components-types.d.ts +0 -1
  43. package/dist/types-ts4.5/entry-points/jql-editor-analytics-listener.d.ts +0 -2
  44. package/dist/types-ts4.5/entry-points/jql-editor-layout.d.ts +0 -1
  45. package/dist/types-ts4.5/entry-points/src-types.d.ts +0 -1
  46. package/dist/types-ts4.5/entry-points/state-types.d.ts +0 -1
  47. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  48. package/dist/types-ts4.5/entry-points/ui-types.d.ts +0 -1
  49. package/dist/types-ts4.5/entry-points/ui.d.ts +0 -1
  50. package/dist/types-ts4.5/hooks/use-editor-theme/index.d.ts +0 -43
  51. package/dist/types-ts4.5/hooks/use-editor-view-has-infos/index.d.ts +0 -1
  52. package/dist/types-ts4.5/hooks/use-editor-view-has-warnings/index.d.ts +0 -1
  53. package/dist/types-ts4.5/hooks/use-editor-view-is-invalid/index.d.ts +0 -11
  54. package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
  55. package/dist/types-ts4.5/i18n/da.d.ts +0 -8
  56. package/dist/types-ts4.5/i18n/de.d.ts +0 -8
  57. package/dist/types-ts4.5/i18n/en.d.ts +0 -8
  58. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
  59. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
  60. package/dist/types-ts4.5/i18n/es.d.ts +0 -8
  61. package/dist/types-ts4.5/i18n/et.d.ts +0 -8
  62. package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
  63. package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
  64. package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
  65. package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
  66. package/dist/types-ts4.5/i18n/index.d.ts +0 -24
  67. package/dist/types-ts4.5/i18n/it.d.ts +0 -8
  68. package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
  69. package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
  70. package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
  71. package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
  72. package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
  73. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
  74. package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
  75. package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
  76. package/dist/types-ts4.5/i18n/sk.d.ts +0 -8
  77. package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
  78. package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
  79. package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
  80. package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
  81. package/dist/types-ts4.5/i18n/th.d.ts +0 -8
  82. package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
  83. package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
  84. package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
  85. package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
  86. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
  87. package/dist/types-ts4.5/index.d.ts +0 -5
  88. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete/index.d.ts +0 -4
  89. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/index.d.ts +0 -11
  90. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +0 -24
  91. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/index.d.ts +0 -10
  92. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/messages.d.ts +0 -12
  93. package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/styled.d.ts +0 -34
  94. package/dist/types-ts4.5/plugins/autocomplete/components/types.d.ts +0 -38
  95. package/dist/types-ts4.5/plugins/autocomplete/constants.d.ts +0 -14
  96. package/dist/types-ts4.5/plugins/autocomplete/index.d.ts +0 -4
  97. package/dist/types-ts4.5/plugins/autocomplete/messages.d.ts +0 -7
  98. package/dist/types-ts4.5/plugins/autocomplete/types.d.ts +0 -1
  99. package/dist/types-ts4.5/plugins/autocomplete/view.d.ts +0 -19
  100. package/dist/types-ts4.5/plugins/common/get-document-position/index.d.ts +0 -9
  101. package/dist/types-ts4.5/plugins/common/plugin-keymap.d.ts +0 -8
  102. package/dist/types-ts4.5/plugins/common/react-plugin-view.d.ts +0 -48
  103. package/dist/types-ts4.5/plugins/index.d.ts +0 -5
  104. package/dist/types-ts4.5/plugins/jql-ast/JQLEditorErrorStrategy.d.ts +0 -17
  105. package/dist/types-ts4.5/plugins/jql-ast/constants.d.ts +0 -3
  106. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.d.ts +0 -5
  107. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.d.ts +0 -11
  108. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.d.ts +0 -6
  109. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.d.ts +0 -6
  110. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.d.ts +0 -6
  111. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.d.ts +0 -9
  112. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.d.ts +0 -6
  113. package/dist/types-ts4.5/plugins/jql-ast/index.d.ts +0 -7
  114. package/dist/types-ts4.5/plugins/jql-ast/messages.d.ts +0 -172
  115. package/dist/types-ts4.5/plugins/jql-ast/utils.d.ts +0 -4
  116. package/dist/types-ts4.5/plugins/jql-syntax-highlighting/index.d.ts +0 -4
  117. package/dist/types-ts4.5/plugins/jql-syntax-highlighting/types.d.ts +0 -5
  118. package/dist/types-ts4.5/plugins/jql-syntax-highlighting/visitor.d.ts +0 -19
  119. package/dist/types-ts4.5/plugins/rich-inline-nodes/constants.d.ts +0 -3
  120. package/dist/types-ts4.5/plugins/rich-inline-nodes/index.d.ts +0 -4
  121. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/base/index.d.ts +0 -16
  122. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/base/types.d.ts +0 -7
  123. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/goal-icon.d.ts +0 -16
  124. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/goal-node.d.ts +0 -10
  125. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/index.d.ts +0 -3
  126. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/goal/types.d.ts +0 -5
  127. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/index.d.ts +0 -13
  128. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/lozenge-with-avatar/index.d.ts +0 -7
  129. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/lozenge-with-avatar/styled.d.ts +0 -18
  130. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/index.d.ts +0 -3
  131. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/messages.d.ts +0 -7
  132. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/project-node.d.ts +0 -10
  133. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/project/types.d.ts +0 -7
  134. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/team/index.d.ts +0 -7
  135. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/team/styled.d.ts +0 -18
  136. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/types.d.ts +0 -9
  137. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/index.d.ts +0 -7
  138. package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/styled.d.ts +0 -18
  139. package/dist/types-ts4.5/plugins/rich-inline-nodes/types.d.ts +0 -2
  140. package/dist/types-ts4.5/plugins/rich-inline-nodes/util/create-node-spec.d.ts +0 -4
  141. package/dist/types-ts4.5/plugins/rich-inline-nodes/util/react-node-view.d.ts +0 -24
  142. package/dist/types-ts4.5/plugins/rich-inline-nodes/util/replace-nodes-transaction.d.ts +0 -3
  143. package/dist/types-ts4.5/plugins/types.d.ts +0 -16
  144. package/dist/types-ts4.5/plugins/validation-tooltip/constants.d.ts +0 -5
  145. package/dist/types-ts4.5/plugins/validation-tooltip/index.d.ts +0 -3
  146. package/dist/types-ts4.5/plugins/validation-tooltip/view.d.ts +0 -18
  147. package/dist/types-ts4.5/schema/index.d.ts +0 -28
  148. package/dist/types-ts4.5/state/analytics/index.d.ts +0 -9
  149. package/dist/types-ts4.5/state/autocomplete/index.d.ts +0 -4
  150. package/dist/types-ts4.5/state/hydration/index.d.ts +0 -3
  151. package/dist/types-ts4.5/state/hydration/util.d.ts +0 -30
  152. package/dist/types-ts4.5/state/index.d.ts +0 -102
  153. package/dist/types-ts4.5/state/types.d.ts +0 -261
  154. package/dist/types-ts4.5/state/util.d.ts +0 -16
  155. package/dist/types-ts4.5/types.d.ts +0 -5
  156. package/dist/types-ts4.5/ui/error-boundary/index.d.ts +0 -25
  157. package/dist/types-ts4.5/ui/index.d.ts +0 -3
  158. package/dist/types-ts4.5/ui/intl-provider/index.d.ts +0 -10
  159. package/dist/types-ts4.5/ui/jql-editor/index.d.ts +0 -13
  160. package/dist/types-ts4.5/ui/jql-editor/types.d.ts +0 -136
  161. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/index.d.ts +0 -10
  162. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +0 -7
  163. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-search/index.d.ts +0 -9
  164. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/index.d.ts +0 -9
  165. package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +0 -7
  166. package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/index.d.ts +0 -2
  167. package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/messages.d.ts +0 -17
  168. package/dist/types-ts4.5/ui/jql-editor-controls-content/index.d.ts +0 -2
  169. package/dist/types-ts4.5/ui/jql-editor-controls-content/read-only-controls-content/index.d.ts +0 -2
  170. package/dist/types-ts4.5/ui/jql-editor-controls-content/search/index.d.ts +0 -2
  171. package/dist/types-ts4.5/ui/jql-editor-controls-content/search/messages.d.ts +0 -7
  172. package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/index.d.ts +0 -2
  173. package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/messages.d.ts +0 -12
  174. package/dist/types-ts4.5/ui/jql-editor-footer-content/index.d.ts +0 -6
  175. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/index.d.ts +0 -2
  176. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/messages.d.ts +0 -17
  177. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +0 -11
  178. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/index.d.ts +0 -2
  179. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/messages.d.ts +0 -7
  180. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/index.d.ts +0 -15
  181. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +0 -13
  182. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/index.d.ts +0 -3
  183. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/infos/index.d.ts +0 -3
  184. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/index.d.ts +0 -3
  185. package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/messages.d.ts +0 -17
  186. package/dist/types-ts4.5/ui/jql-editor-layout/index.d.ts +0 -65
  187. package/dist/types-ts4.5/ui/jql-editor-layout/styled.d.ts +0 -65
  188. package/dist/types-ts4.5/ui/jql-editor-portal-provider/context.d.ts +0 -4
  189. package/dist/types-ts4.5/ui/jql-editor-portal-provider/index.d.ts +0 -7
  190. package/dist/types-ts4.5/ui/jql-editor-portal-provider/types.d.ts +0 -38
  191. package/dist/types-ts4.5/ui/jql-editor-view/index.d.ts +0 -10
  192. package/dist/types-ts4.5/ui/messages.d.ts +0 -7
  193. package/dist/types-ts4.5/ui/tooltip-tag/index.d.ts +0 -2
  194. package/dist/types-ts4.5/ui/tooltip-tag/styled.d.ts +0 -7
  195. package/dist/types-ts4.5/ui/types.d.ts +0 -9
  196. package/dist/types-ts4.5/utils/document-text/index.d.ts +0 -9
  197. package/dist/types-ts4.5/utils/split-text-by-new-line/index.d.ts +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @atlaskit/jql-editor
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
29
+ ## 6.6.0
30
+
31
+ ### Minor Changes
32
+
33
+ - [`506238c0247fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/506238c0247fd) -
34
+ PTC-16709: Added changes to show autocomplete for membersOf function to fetch Teams
35
+
36
+ ### Patch Changes
37
+
38
+ - Updated dependencies
39
+
3
40
  ## 6.5.0
4
41
 
5
42
  ### Minor Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/analytics.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/analytics.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/analytics.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/async.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/async.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/async.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/components-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/components-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/components-types.d.ts"
17
10
  }
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useJqlEditorAnalytics = void 0;
7
7
  var _jqlEditorCommon = require("@atlaskit/jql-editor-common");
8
8
  var useJqlEditorAnalytics = exports.useJqlEditorAnalytics = function useJqlEditorAnalytics(analyticsSource) {
9
- return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "6.4.7", _jqlEditorCommon.ANALYTICS_CHANNEL);
9
+ return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "6.6.0", _jqlEditorCommon.ANALYTICS_CHANNEL);
10
10
  };
@@ -30,6 +30,9 @@ var defaultAutocompleteProvider = exports.defaultAutocompleteProvider = {
30
30
  },
31
31
  onFunctions: function onFunctions() {
32
32
  return (0, _empty.empty)();
33
+ },
34
+ onFunctionArguments: function onFunctionArguments() {
35
+ return (0, _empty.empty)();
33
36
  }
34
37
  };
35
38
  var JQLAutocompletePluginKey = exports.JQLAutocompletePluginKey = new _state.PluginKey(AUTOCOMPLETE_PLUGIN_NAME);
@@ -19,6 +19,7 @@ var _view = require("@atlaskit/editor-prosemirror/view");
19
19
  var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
20
20
  var _jqlAst = require("@atlaskit/jql-ast");
21
21
  var _jqlAutocomplete = require("@atlaskit/jql-autocomplete");
22
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
23
  var _analytics = require("../analytics");
23
24
  var _selectErrorCommand = require("../commands/select-error-command");
24
25
  var _constants = require("../common/constants");
@@ -336,10 +337,26 @@ var actions = exports.actions = {
336
337
  onFields = _getState$autocomplet.onFields,
337
338
  onOperators = _getState$autocomplet.onOperators,
338
339
  onValues = _getState$autocomplet.onValues,
339
- onFunctions = _getState$autocomplet.onFunctions;
340
+ onFunctions = _getState$autocomplet.onFunctions,
341
+ onFunctionArguments = _getState$autocomplet.onFunctionArguments;
340
342
  var optionTypes = [];
341
343
  var observables = [];
342
- if (rules.value || rules.function ||
344
+ if (rules.functionArgument && onFunctionArguments && (0, _platformFeatureFlags.fg)('enable-jql-membersof-autocomplete')) {
345
+ var _context$field, _context$functionName;
346
+ // When the caret is inside a function argument (e.g. membersOf("...")), we call
347
+ // onFunctionArguments unconditionally in preference to the generic value/function
348
+ // providers. rules.functionArgument can co-exist with rules.function so we must check it
349
+ // first — before the outer rules.value/rules.function block — to avoid it being
350
+ // swallowed by the else-if chain.
351
+ var _rules$functionArgume = rules.functionArgument,
352
+ matchedText = _rules$functionArgume.matchedText,
353
+ context = _rules$functionArgume.context;
354
+ var fieldName = (_context$field = context === null || context === void 0 ? void 0 : context.field) !== null && _context$field !== void 0 ? _context$field : '';
355
+ var functionName = (_context$functionName = context === null || context === void 0 ? void 0 : context.functionName) !== null && _context$functionName !== void 0 ? _context$functionName : '';
356
+ var functionArguments$ = onFunctionArguments(fieldName, matchedText, functionName);
357
+ optionTypes.push('values');
358
+ observables.push(dispatch(actions.appendOptionsForObservable('values', functionArguments$, rules.functionArgument, 'value')));
359
+ } else if (rules.value || rules.function ||
343
360
  // If EMPTY is suggested as a token, we are also in "operand mode" and we don't want to call other providers
344
361
  // e.g. "assignee is " will return "EMPTY" token and "operator" rule as suggestions (because of "is not")
345
362
  tokens.values.includes('EMPTY')) {
@@ -357,16 +374,16 @@ var actions = exports.actions = {
357
374
  }
358
375
  } else if (rules.operator) {
359
376
  var _rules$operator = rules.operator,
360
- context = _rules$operator.context,
361
- matchedText = _rules$operator.matchedText;
362
- var operators$ = (0, _autocomplete.sortOperators)(onOperators(matchedText, context === null || context === void 0 ? void 0 : context.field));
377
+ _context = _rules$operator.context,
378
+ _matchedText = _rules$operator.matchedText;
379
+ var operators$ = (0, _autocomplete.sortOperators)(onOperators(_matchedText, _context === null || _context === void 0 ? void 0 : _context.field));
363
380
  optionTypes.push('operators');
364
381
  observables.push(dispatch(actions.appendOptionsForObservable('operators', operators$, rules.operator, 'operator')));
365
382
  } else if (rules.field) {
366
383
  var _rules$field = rules.field,
367
- _context = _rules$field.context,
368
- _matchedText = _rules$field.matchedText;
369
- var fields$ = onFields(_matchedText, _context === null || _context === void 0 ? void 0 : _context.clause);
384
+ _context2 = _rules$field.context,
385
+ _matchedText2 = _rules$field.matchedText;
386
+ var fields$ = onFields(_matchedText2, _context2 === null || _context2 === void 0 ? void 0 : _context2.clause);
370
387
  optionTypes.push('fields');
371
388
  observables.push(dispatch(actions.appendOptionsForObservable('fields', fields$, rules.field, 'field')));
372
389
  }
@@ -1,4 +1,4 @@
1
1
  import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
2
2
  export const useJqlEditorAnalytics = analyticsSource => {
3
- return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "6.4.7", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "6.6.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -16,6 +16,7 @@ export const defaultAutocompleteProvider = {
16
16
  onFields: () => empty(),
17
17
  onOperators: () => empty(),
18
18
  onValues: () => empty(),
19
- onFunctions: () => empty()
19
+ onFunctions: () => empty(),
20
+ onFunctionArguments: () => empty()
20
21
  };
21
22
  export const JQLAutocompletePluginKey = new PluginKey(AUTOCOMPLETE_PLUGIN_NAME);
@@ -10,6 +10,7 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
10
10
  import FeatureGates from '@atlaskit/feature-gate-js-client';
11
11
  import { computeJqlInsights, isListOperator, normaliseJqlString } from '@atlaskit/jql-ast';
12
12
  import { JQLAutocomplete } from '@atlaskit/jql-autocomplete';
13
+ import { fg } from '@atlaskit/platform-feature-flags';
13
14
  import { ActionSubject, ActionSubjectId, Action as AnalyticsAction, EventType } from '../analytics';
14
15
  import { selectErrorCommand } from '../commands/select-error-command';
15
16
  import { JQL_EDITOR_MAIN_ID } from '../common/constants';
@@ -341,11 +342,28 @@ export const actions = {
341
342
  onFields,
342
343
  onOperators,
343
344
  onValues,
344
- onFunctions
345
+ onFunctions,
346
+ onFunctionArguments
345
347
  } = getState().autocompleteProvider;
346
348
  const optionTypes = [];
347
349
  const observables = [];
348
- if (rules.value || rules.function ||
350
+ if (rules.functionArgument && onFunctionArguments && fg('enable-jql-membersof-autocomplete')) {
351
+ var _context$field, _context$functionName;
352
+ // When the caret is inside a function argument (e.g. membersOf("...")), we call
353
+ // onFunctionArguments unconditionally in preference to the generic value/function
354
+ // providers. rules.functionArgument can co-exist with rules.function so we must check it
355
+ // first — before the outer rules.value/rules.function block — to avoid it being
356
+ // swallowed by the else-if chain.
357
+ const {
358
+ matchedText,
359
+ context
360
+ } = rules.functionArgument;
361
+ const fieldName = (_context$field = context === null || context === void 0 ? void 0 : context.field) !== null && _context$field !== void 0 ? _context$field : '';
362
+ const functionName = (_context$functionName = context === null || context === void 0 ? void 0 : context.functionName) !== null && _context$functionName !== void 0 ? _context$functionName : '';
363
+ const functionArguments$ = onFunctionArguments(fieldName, matchedText, functionName);
364
+ optionTypes.push('values');
365
+ observables.push(dispatch(actions.appendOptionsForObservable('values', functionArguments$, rules.functionArgument, 'value')));
366
+ } else if (rules.value || rules.function ||
349
367
  // If EMPTY is suggested as a token, we are also in "operand mode" and we don't want to call other providers
350
368
  // e.g. "assignee is " will return "EMPTY" token and "operator" rule as suggestions (because of "is not")
351
369
  tokens.values.includes('EMPTY')) {
@@ -1,4 +1,4 @@
1
1
  import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
2
2
  export var useJqlEditorAnalytics = function useJqlEditorAnalytics(analyticsSource) {
3
- return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "6.4.7", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "6.6.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -24,6 +24,9 @@ export var defaultAutocompleteProvider = {
24
24
  },
25
25
  onFunctions: function onFunctions() {
26
26
  return empty();
27
+ },
28
+ onFunctionArguments: function onFunctionArguments() {
29
+ return empty();
27
30
  }
28
31
  };
29
32
  export var JQLAutocompletePluginKey = new PluginKey(AUTOCOMPLETE_PLUGIN_NAME);
@@ -15,6 +15,7 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
15
15
  import FeatureGates from '@atlaskit/feature-gate-js-client';
16
16
  import { computeJqlInsights, isListOperator, normaliseJqlString } from '@atlaskit/jql-ast';
17
17
  import { JQLAutocomplete } from '@atlaskit/jql-autocomplete';
18
+ import { fg } from '@atlaskit/platform-feature-flags';
18
19
  import { ActionSubject, ActionSubjectId, Action as AnalyticsAction, EventType } from '../analytics';
19
20
  import { selectErrorCommand } from '../commands/select-error-command';
20
21
  import { JQL_EDITOR_MAIN_ID } from '../common/constants';
@@ -330,10 +331,26 @@ export var actions = {
330
331
  onFields = _getState$autocomplet.onFields,
331
332
  onOperators = _getState$autocomplet.onOperators,
332
333
  onValues = _getState$autocomplet.onValues,
333
- onFunctions = _getState$autocomplet.onFunctions;
334
+ onFunctions = _getState$autocomplet.onFunctions,
335
+ onFunctionArguments = _getState$autocomplet.onFunctionArguments;
334
336
  var optionTypes = [];
335
337
  var observables = [];
336
- if (rules.value || rules.function ||
338
+ if (rules.functionArgument && onFunctionArguments && fg('enable-jql-membersof-autocomplete')) {
339
+ var _context$field, _context$functionName;
340
+ // When the caret is inside a function argument (e.g. membersOf("...")), we call
341
+ // onFunctionArguments unconditionally in preference to the generic value/function
342
+ // providers. rules.functionArgument can co-exist with rules.function so we must check it
343
+ // first — before the outer rules.value/rules.function block — to avoid it being
344
+ // swallowed by the else-if chain.
345
+ var _rules$functionArgume = rules.functionArgument,
346
+ matchedText = _rules$functionArgume.matchedText,
347
+ context = _rules$functionArgume.context;
348
+ var fieldName = (_context$field = context === null || context === void 0 ? void 0 : context.field) !== null && _context$field !== void 0 ? _context$field : '';
349
+ var functionName = (_context$functionName = context === null || context === void 0 ? void 0 : context.functionName) !== null && _context$functionName !== void 0 ? _context$functionName : '';
350
+ var functionArguments$ = onFunctionArguments(fieldName, matchedText, functionName);
351
+ optionTypes.push('values');
352
+ observables.push(dispatch(actions.appendOptionsForObservable('values', functionArguments$, rules.functionArgument, 'value')));
353
+ } else if (rules.value || rules.function ||
337
354
  // If EMPTY is suggested as a token, we are also in "operand mode" and we don't want to call other providers
338
355
  // e.g. "assignee is " will return "EMPTY" token and "operator" rule as suggestions (because of "is not")
339
356
  tokens.values.includes('EMPTY')) {
@@ -351,16 +368,16 @@ export var actions = {
351
368
  }
352
369
  } else if (rules.operator) {
353
370
  var _rules$operator = rules.operator,
354
- context = _rules$operator.context,
355
- matchedText = _rules$operator.matchedText;
356
- var operators$ = sortOperators(onOperators(matchedText, context === null || context === void 0 ? void 0 : context.field));
371
+ _context = _rules$operator.context,
372
+ _matchedText = _rules$operator.matchedText;
373
+ var operators$ = sortOperators(onOperators(_matchedText, _context === null || _context === void 0 ? void 0 : _context.field));
357
374
  optionTypes.push('operators');
358
375
  observables.push(dispatch(actions.appendOptionsForObservable('operators', operators$, rules.operator, 'operator')));
359
376
  } else if (rules.field) {
360
377
  var _rules$field = rules.field,
361
- _context = _rules$field.context,
362
- _matchedText = _rules$field.matchedText;
363
- var fields$ = onFields(_matchedText, _context === null || _context === void 0 ? void 0 : _context.clause);
378
+ _context2 = _rules$field.context,
379
+ _matchedText2 = _rules$field.matchedText;
380
+ var fields$ = onFields(_matchedText2, _context2 === null || _context2 === void 0 ? void 0 : _context2.clause);
364
381
  optionTypes.push('fields');
365
382
  observables.push(dispatch(actions.appendOptionsForObservable('fields', fields$, rules.field, 'field')));
366
383
  }
package/i18n/package.json CHANGED
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/i18n/index.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/i18n/index.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/i18n/index.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/jql-editor-analytics-listener.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/jql-editor-analytics-listener.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/jql-editor-analytics-listener.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/jql-editor-layout.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/jql-editor-layout.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/jql-editor-layout.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/jql-editor",
3
- "version": "6.5.0",
3
+ "version": "7.0.0",
4
4
  "description": "This package allows consumers to render an advanced JQL editor component to enable autocomplete-assisted authoring and validation of JQL queries.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,46 +26,38 @@
26
26
  "module": "dist/esm/index.js",
27
27
  "module:es2019": "dist/es2019/index.js",
28
28
  "types": "dist/types/index.d.ts",
29
- "typesVersions": {
30
- ">=4.5 <4.9": {
31
- "*": [
32
- "dist/types-ts4.5/*",
33
- "dist/types-ts4.5/index.d.ts"
34
- ]
35
- }
36
- },
37
29
  "sideEffects": [
38
30
  "*.compiled.css"
39
31
  ],
40
32
  "atlaskit:src": "src/index.ts",
41
33
  "dependencies": {
42
34
  "@atlaskit/afm-i18n-platform-jql-jql-editor": "2.10.0",
43
- "@atlaskit/analytics-gas-types": "^5.1.0",
44
- "@atlaskit/analytics-next": "^11.3.0",
45
- "@atlaskit/avatar": "^25.15.0",
46
- "@atlaskit/button": "^23.11.0",
47
- "@atlaskit/css": "^0.19.0",
48
- "@atlaskit/editor-prosemirror": "^7.3.0",
49
- "@atlaskit/emoji": "^70.17.0",
50
- "@atlaskit/feature-gate-js-client": "^5.7.0",
51
- "@atlaskit/form": "^15.5.0",
52
- "@atlaskit/icon": "^35.4.0",
53
- "@atlaskit/icon-lab": "^6.13.0",
54
- "@atlaskit/jql-ast": "^3.5.0",
55
- "@atlaskit/jql-autocomplete": "^2.1.0",
56
- "@atlaskit/jql-editor-common": "^3.3.0",
57
- "@atlaskit/jql-parser": "^2.1.0",
58
- "@atlaskit/link": "^3.4.0",
59
- "@atlaskit/platform-feature-flags": "^1.1.0",
60
- "@atlaskit/popper": "^7.2.0",
61
- "@atlaskit/primitives": "^19.0.0",
62
- "@atlaskit/prosemirror-history": "^0.2.0",
63
- "@atlaskit/spinner": "^19.1.0",
64
- "@atlaskit/teams-avatar": "^2.7.0",
65
- "@atlaskit/theme": "^25.0.0",
66
- "@atlaskit/tokens": "^13.3.0",
67
- "@atlaskit/tooltip": "^22.6.0",
68
- "@atlaskit/townsquare-emoji-provider": "^1.0.0",
35
+ "@atlaskit/analytics-gas-types": "^6.0.0",
36
+ "@atlaskit/analytics-next": "^12.0.0",
37
+ "@atlaskit/avatar": "^26.0.0",
38
+ "@atlaskit/button": "^24.0.0",
39
+ "@atlaskit/css": "^1.0.0",
40
+ "@atlaskit/editor-prosemirror": "^8.0.0",
41
+ "@atlaskit/emoji": "^71.0.0",
42
+ "@atlaskit/feature-gate-js-client": "^6.0.0",
43
+ "@atlaskit/form": "^16.0.0",
44
+ "@atlaskit/icon": "^36.0.0",
45
+ "@atlaskit/icon-lab": "^7.0.0",
46
+ "@atlaskit/jql-ast": "^4.0.0",
47
+ "@atlaskit/jql-autocomplete": "^3.0.0",
48
+ "@atlaskit/jql-editor-common": "^4.0.0",
49
+ "@atlaskit/jql-parser": "^3.0.0",
50
+ "@atlaskit/link": "^4.0.0",
51
+ "@atlaskit/platform-feature-flags": "^2.0.0",
52
+ "@atlaskit/popper": "^8.0.0",
53
+ "@atlaskit/primitives": "^20.0.0",
54
+ "@atlaskit/prosemirror-history": "^1.0.0",
55
+ "@atlaskit/spinner": "^20.0.0",
56
+ "@atlaskit/teams-avatar": "^3.0.0",
57
+ "@atlaskit/theme": "^26.0.0",
58
+ "@atlaskit/tokens": "^14.0.0",
59
+ "@atlaskit/tooltip": "^23.0.0",
60
+ "@atlaskit/townsquare-emoji-provider": "^2.0.0",
69
61
  "@babel/runtime": "^7.0.0",
70
62
  "@emotion/react": "^11.7.1",
71
63
  "@emotion/styled": "^11.0.0",
@@ -88,8 +80,8 @@
88
80
  "devDependencies": {
89
81
  "@af/integration-testing": "workspace:^",
90
82
  "@af/visual-regression": "workspace:^",
91
- "@atlaskit/docs": "^11.8.0",
92
- "@atlaskit/jql-editor-autocomplete-rest": "^3.3.0",
83
+ "@atlaskit/docs": "^12.0.0",
84
+ "@atlaskit/jql-editor-autocomplete-rest": "^4.0.0",
93
85
  "@atlassian/feature-flags-storybook-utils": "^0.4.0",
94
86
  "@atlassian/feature-flags-test-utils": "^1.1.0",
95
87
  "@atlassian/react-compiler-gating": "workspace:^",
@@ -155,6 +147,9 @@
155
147
  },
156
148
  "jql-function-arg-hydration": {
157
149
  "type": "boolean"
150
+ },
151
+ "enable-jql-membersof-autocomplete": {
152
+ "type": "boolean"
158
153
  }
159
154
  }
160
155
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/state-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/state-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/state-types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/types.d.ts"
17
10
  }
package/ui/package.json CHANGED
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/ui.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/ui.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/ui.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/ui-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/ui-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/ui-types.d.ts"
17
10
  }
@@ -1 +0,0 @@
1
- export { ScreenReaderText } from './styled';
@@ -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 ScreenReaderText: StyledComponent<{
5
- as?: React.ElementType;
6
- theme?: Theme;
7
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,18 +0,0 @@
1
- export declare enum Action {
2
- CLICKED = "clicked",
3
- RETRIEVE_FAILED = "retrieveFailed",
4
- RETRIEVED = "retrieved",
5
- SELECTED = "selected",
6
- VIEWED = "viewed"
7
- }
8
- export declare enum ActionSubject {
9
- BUTTON = "button",
10
- AUTOCOMPLETE_OPTION = "autocompleteOption",
11
- ERROR_MESSAGE = "errorMessage"
12
- }
13
- export declare enum ActionSubjectId {
14
- EDITOR_EXPAND = "jqlEditorExpand",
15
- EDITOR_SEARCH = "jqlEditorSearch",
16
- EDITOR_HELP = "jqlEditorHelp",
17
- JQL_RESULT = "jqlResult"
18
- }
@@ -1,7 +0,0 @@
1
- export { ANALYTICS_CHANNEL, EventType, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
2
- export type { AnalyticsAttributes, JqlAnalyticsEvent } from '@atlaskit/jql-editor-common';
3
- export { ActionSubject, ActionSubjectId, Action } from './constants';
4
- export { JQLEditorAnalyticsListener } from './listener';
5
- export type { ListenerProps } from './listener';
6
- export type { JqlEditorAnalyticsEvent } from './types';
7
- export { useJqlEditorAnalytics } from './util';
@@ -1,9 +0,0 @@
1
- /**
2
- * Copied from https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/analytics/analytics-listeners/src/analytics-web-client-wrapper.ts
3
- * In future if this package is migrated into the Atlassian Frontend repo, then this code and related logic should be
4
- * moved into @atlaskit/analytics-listeners.
5
- */
6
- import { type GasPayload, type GasScreenEventPayload } from '@atlaskit/analytics-gas-types';
7
- import type Logger from './helpers/logger';
8
- import { type AnalyticsWebClient } from './types';
9
- export declare const sendEvent: (logger: Logger, client?: AnalyticsWebClient | Promise<AnalyticsWebClient>) => (event: GasPayload | GasScreenEventPayload) => void;
@@ -1,9 +0,0 @@
1
- /**
2
- * Adapted from https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/analytics/analytics-listeners/src/fabric/handle-event.tsx
3
- * In future if this package is migrated into the Atlassian Frontend repo, then this code and related logic should be
4
- * moved into @atlaskit/analytics-listeners.
5
- */
6
- import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
7
- import type Logger from './helpers/logger';
8
- import { type AnalyticsWebClient } from './types';
9
- export declare const handleEvent: (event: UIAnalyticsEvent, logger: Logger, client?: AnalyticsWebClient | Promise<AnalyticsWebClient>) => void;
@@ -1,24 +0,0 @@
1
- /**
2
- * Copied from https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/analytics/analytics-listeners/src/helpers/logger.ts
3
- * In future if this package is migrated into the Atlassian Frontend repo, then this code and related logic should be
4
- * moved into @atlaskit/analytics-listeners.
5
- */
6
- export declare const LOG_LEVEL: {
7
- DEBUG: number;
8
- INFO: number;
9
- WARN: number;
10
- ERROR: number;
11
- OFF: number;
12
- };
13
- export default class Logger {
14
- logLevel: number;
15
- constructor({ logLevel }?: {
16
- logLevel?: number;
17
- });
18
- setLogLevel(logLevel: number): void;
19
- logMessage(level: number, type: keyof Pick<Console, 'log' | 'info' | 'warn' | 'error'>, ...args: any[]): void;
20
- debug(...args: any[]): void;
21
- info(...args: any[]): void;
22
- warn(...args: any[]): void;
23
- error(...args: any[]): void;
24
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * Files in this directory are adapted from https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/analytics/analytics-listeners/src
3
- * In future if this package is migrated into the Atlassian Frontend repo, then this code and related logic should be
4
- * moved into @atlaskit/analytics-listeners.
5
- */
6
- export { default as JQLEditorAnalyticsListener } from './jql-editor-analytics-listener';
7
- export type { ListenerProps } from './jql-editor-analytics-listener';
@@ -1,20 +0,0 @@
1
- /**
2
- * Adapted from https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/analytics/analytics-listeners/src/fabric/FabricEditorListener.tsx
3
- * In future if this package is migrated into the Atlassian Frontend repo, then this code and related logic should be
4
- * moved into @atlaskit/analytics-listeners.
5
- */
6
- import React, { type ReactNode } from 'react';
7
- import { type UIAnalyticsEventHandler } from '@atlaskit/analytics-next';
8
- import Logger from './helpers/logger';
9
- import { type AnalyticsWebClient } from './types';
10
- export type ListenerProps = {
11
- children?: ReactNode;
12
- client?: AnalyticsWebClient | Promise<AnalyticsWebClient>;
13
- logLevel?: number;
14
- };
15
- export default class JQLEditorAnalyticsListener extends React.Component<ListenerProps> {
16
- logger: Logger;
17
- constructor(props: ListenerProps);
18
- handleEventWrapper: UIAnalyticsEventHandler;
19
- render(): React.JSX.Element;
20
- }