@atlaskit/jql-editor 4.3.2 → 4.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/jql-editor
2
2
 
3
+ ## 4.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#124209](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124209)
8
+ [`8aa1792f12ed3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8aa1792f12ed3) -
9
+ bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0
10
+
3
11
  ## 4.3.2
4
12
 
5
13
  ### Patch Changes
@@ -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", "4.3.2", _jqlEditorCommon.ANALYTICS_CHANNEL);
9
+ return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "4.4.0", _jqlEditorCommon.ANALYTICS_CHANNEL);
10
10
  };
@@ -56,7 +56,9 @@ var ExpandToggle = exports.ExpandToggle = function ExpandToggle() {
56
56
  }, [expanded, createAndFireAnalyticsEvent, toggleExpanded]);
57
57
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
58
58
  position: 'bottom',
59
- content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, message),
59
+ content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, message)
60
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
61
+ ,
60
62
  tag: _tooltipTag.TooltipTag
61
63
  }, /*#__PURE__*/_react.default.createElement(_baseExpandToggle.BaseExpandToggle, {
62
64
  expanded: expanded,
@@ -30,7 +30,9 @@ var Search = exports.Search = function Search() {
30
30
  isSearching = _useIsSearching2[0];
31
31
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
32
32
  position: 'bottom',
33
- content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, label),
33
+ content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, label)
34
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
35
+ ,
34
36
  tag: _tooltipTag.TooltipTag
35
37
  }, /*#__PURE__*/_react.default.createElement(_baseSearch.BaseSearch, {
36
38
  label: label,
@@ -50,7 +50,9 @@ var SyntaxHelp = exports.SyntaxHelp = function SyntaxHelp() {
50
50
  }, [createAndFireAnalyticsEvent, onSyntaxHelp]);
51
51
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
52
52
  position: 'bottom',
53
- content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, label),
53
+ content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, label)
54
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
55
+ ,
54
56
  tag: _tooltipTag.TooltipTag
55
57
  }, /*#__PURE__*/_react.default.createElement(_baseSyntaxHelp.BaseSyntaxHelp, {
56
58
  describedby: descriptionId,
@@ -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", "4.3.2", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.4.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -40,7 +40,9 @@ export const ExpandToggle = () => {
40
40
  }, [expanded, createAndFireAnalyticsEvent, toggleExpanded]);
41
41
  return /*#__PURE__*/React.createElement(Tooltip, {
42
42
  position: 'bottom',
43
- content: /*#__PURE__*/React.createElement(TooltipContent, null, message),
43
+ content: /*#__PURE__*/React.createElement(TooltipContent, null, message)
44
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
45
+ ,
44
46
  tag: TooltipTag
45
47
  }, /*#__PURE__*/React.createElement(BaseExpandToggle, {
46
48
  expanded: expanded,
@@ -16,7 +16,9 @@ export const Search = () => {
16
16
  const [isSearching] = useIsSearching();
17
17
  return /*#__PURE__*/React.createElement(Tooltip, {
18
18
  position: 'bottom',
19
- content: /*#__PURE__*/React.createElement(TooltipContent, null, label),
19
+ content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
20
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
21
+ ,
20
22
  tag: TooltipTag
21
23
  }, /*#__PURE__*/React.createElement(BaseSearch, {
22
24
  label: label,
@@ -32,7 +32,9 @@ export const SyntaxHelp = () => {
32
32
  }, [createAndFireAnalyticsEvent, onSyntaxHelp]);
33
33
  return /*#__PURE__*/React.createElement(Tooltip, {
34
34
  position: 'bottom',
35
- content: /*#__PURE__*/React.createElement(TooltipContent, null, label),
35
+ content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
36
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
37
+ ,
36
38
  tag: TooltipTag
37
39
  }, /*#__PURE__*/React.createElement(BaseSyntaxHelp, {
38
40
  describedby: descriptionId,
@@ -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", "4.3.2", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.4.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -44,7 +44,9 @@ export var ExpandToggle = function ExpandToggle() {
44
44
  }, [expanded, createAndFireAnalyticsEvent, toggleExpanded]);
45
45
  return /*#__PURE__*/React.createElement(Tooltip, {
46
46
  position: 'bottom',
47
- content: /*#__PURE__*/React.createElement(TooltipContent, null, message),
47
+ content: /*#__PURE__*/React.createElement(TooltipContent, null, message)
48
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
49
+ ,
48
50
  tag: TooltipTag
49
51
  }, /*#__PURE__*/React.createElement(BaseExpandToggle, {
50
52
  expanded: expanded,
@@ -21,7 +21,9 @@ export var Search = function Search() {
21
21
  isSearching = _useIsSearching2[0];
22
22
  return /*#__PURE__*/React.createElement(Tooltip, {
23
23
  position: 'bottom',
24
- content: /*#__PURE__*/React.createElement(TooltipContent, null, label),
24
+ content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
25
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
26
+ ,
25
27
  tag: TooltipTag
26
28
  }, /*#__PURE__*/React.createElement(BaseSearch, {
27
29
  label: label,
@@ -38,7 +38,9 @@ export var SyntaxHelp = function SyntaxHelp() {
38
38
  }, [createAndFireAnalyticsEvent, onSyntaxHelp]);
39
39
  return /*#__PURE__*/React.createElement(Tooltip, {
40
40
  position: 'bottom',
41
- content: /*#__PURE__*/React.createElement(TooltipContent, null, label),
41
+ content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
42
+ // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
43
+ ,
42
44
  tag: TooltipTag
43
45
  }, /*#__PURE__*/React.createElement(BaseSyntaxHelp, {
44
46
  describedby: descriptionId,
@@ -4,7 +4,7 @@ import { type Jast } from '@atlaskit/jql-ast';
4
4
  import { type JQLSuggestions } from '@atlaskit/jql-autocomplete';
5
5
  import { type SelectableAutocompleteOptions } from '../plugins/autocomplete/components/types';
6
6
  import { type AutocompletePosition, type ContextAwareTokenSuggestions, type DebugMessageEventAttribute } from './types';
7
- export declare const getAutocompleteOptionId: (value: string) => string;
7
+ export declare const getAutocompleteOptionId: (value: string) => any;
8
8
  export declare const tokensToAutocompleteOptions: (tokens: ContextAwareTokenSuggestions) => SelectableAutocompleteOptions;
9
9
  export declare const getReplacePositionStart: ({ rules, tokens }: JQLSuggestions) => number;
10
10
  export declare const getAutocompletePosition: (editorView: EditorView, replacePositionStart: number) => AutocompletePosition;
@@ -4,7 +4,7 @@ import { type Jast } from '@atlaskit/jql-ast';
4
4
  import { type JQLSuggestions } from '@atlaskit/jql-autocomplete';
5
5
  import { type SelectableAutocompleteOptions } from '../plugins/autocomplete/components/types';
6
6
  import { type AutocompletePosition, type ContextAwareTokenSuggestions, type DebugMessageEventAttribute } from './types';
7
- export declare const getAutocompleteOptionId: (value: string) => string;
7
+ export declare const getAutocompleteOptionId: (value: string) => any;
8
8
  export declare const tokensToAutocompleteOptions: (tokens: ContextAwareTokenSuggestions) => SelectableAutocompleteOptions;
9
9
  export declare const getReplacePositionStart: ({ rules, tokens }: JQLSuggestions) => number;
10
10
  export declare const getAutocompletePosition: (editorView: EditorView, replacePositionStart: number) => AutocompletePosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/jql-editor",
3
- "version": "4.3.2",
3
+ "version": "4.4.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",
@@ -39,10 +39,10 @@
39
39
  "@atlaskit/analytics-gas-types": "^5.1.0",
40
40
  "@atlaskit/analytics-next": "^9.3.0",
41
41
  "@atlaskit/avatar": "^21.11.0",
42
- "@atlaskit/button": "^19.0.0",
43
- "@atlaskit/editor-prosemirror": "4.0.1",
42
+ "@atlaskit/button": "^19.1.0",
43
+ "@atlaskit/editor-prosemirror": "5.0.1",
44
44
  "@atlaskit/form": "^10.4.0",
45
- "@atlaskit/icon": "^22.6.0",
45
+ "@atlaskit/icon": "^22.7.0",
46
46
  "@atlaskit/jql-ast": "^3.3.0",
47
47
  "@atlaskit/jql-autocomplete": "^2.0.0",
48
48
  "@atlaskit/jql-editor-common": "^2.0.0",