@atlaskit/jql-editor 4.3.1 → 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,19 @@
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
+
11
+ ## 4.3.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 4.3.1
4
18
 
5
19
  ### 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.1", _jqlEditorCommon.ANALYTICS_CHANNEL);
9
+ return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "4.4.0", _jqlEditorCommon.ANALYTICS_CHANNEL);
10
10
  };
@@ -12,7 +12,7 @@ var _constants = require("@atlaskit/theme/constants");
12
12
 
13
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
14
 
15
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
15
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
16
16
  var hiddenMixin = exports.hiddenMixin = (0, _react.css)({
17
17
  clip: 'rect(1px, 1px, 1px, 1px)',
18
18
  clipPath: 'inset(50%)',
@@ -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,
@@ -31,7 +31,7 @@ var fadeOut = (0, _react.keyframes)({
31
31
  }
32
32
  });
33
33
 
34
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
34
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
35
35
  var EditorMain = exports.EditorMain = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: ", "px;\n\tflex-grow: 1;\n\n\t/* These styles and animations are derived from @atlaskit/tooltip */\n\n\t.", " {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\tborder-radius: ", ";\n\t\tbox-sizing: border-box;\n\t\tfont-size: 12px;\n\t\tline-height: 1.3;\n\t\tmax-width: 240px;\n\t\tpadding: ", " ", ";\n\t\tword-wrap: break-word;\n\t\toverflow-wrap: break-word;\n\t\tz-index: ", ";\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t\tvisibility: hidden;\n\n\t\t/* Horizontally center and vertically position above the target element */\n\t\ttransform: translate(-50%, calc(-100% - ", "));\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t\tvisibility: visible;\n\t\t}\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t}\n\t}\n"])), (0, _constants.fontFamily)(), (0, _constants.fontSize)(), _constants2.TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(_colors.N800, ")"), "var(--ds-text-inverse, ".concat(_colors.N0, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", _constants.layers.tooltip(), "var(--ds-space-200, 16px)", _constants2.TOOLTIP_ENTER_CLASSNAME, fadeIn, _constants2.TOOLTIP_EXIT_CLASSNAME, fadeOut);
36
36
 
37
37
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -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.1", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.4.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -4,7 +4,7 @@ import { css } from '@emotion/react';
4
4
  import styled from '@emotion/styled';
5
5
  import { fontFamily } from '@atlaskit/theme/constants';
6
6
 
7
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
7
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
8
8
  export const hiddenMixin = css({
9
9
  clip: 'rect(1px, 1px, 1px, 1px)',
10
10
  clipPath: 'inset(50%)',
@@ -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,
@@ -25,7 +25,7 @@ const fadeOut = keyframes({
25
25
  }
26
26
  });
27
27
 
28
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
28
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
29
29
  export const EditorMain = styled.div`
30
30
  /* CSS reset */
31
31
  font-family: ${fontFamily()};
@@ -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.1", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.4.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -4,7 +4,7 @@ import { css } from '@emotion/react';
4
4
  import styled from '@emotion/styled';
5
5
  import { fontFamily } from '@atlaskit/theme/constants';
6
6
 
7
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
7
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
8
8
  export var hiddenMixin = css({
9
9
  clip: 'rect(1px, 1px, 1px, 1px)',
10
10
  clipPath: 'inset(50%)',
@@ -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,
@@ -27,7 +27,7 @@ var fadeOut = keyframes({
27
27
  }
28
28
  });
29
29
 
30
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
30
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
31
31
  export var EditorMain = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: ", "px;\n\tflex-grow: 1;\n\n\t/* These styles and animations are derived from @atlaskit/tooltip */\n\n\t.", " {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\tborder-radius: ", ";\n\t\tbox-sizing: border-box;\n\t\tfont-size: 12px;\n\t\tline-height: 1.3;\n\t\tmax-width: 240px;\n\t\tpadding: ", " ", ";\n\t\tword-wrap: break-word;\n\t\toverflow-wrap: break-word;\n\t\tz-index: ", ";\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t\tvisibility: hidden;\n\n\t\t/* Horizontally center and vertically position above the target element */\n\t\ttransform: translate(-50%, calc(-100% - ", "));\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t\tvisibility: visible;\n\t\t}\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t}\n\t}\n"])), fontFamily(), fontSize(), TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(N800, ")"), "var(--ds-text-inverse, ".concat(N0, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", layers.tooltip(), "var(--ds-space-200, 16px)", TOOLTIP_ENTER_CLASSNAME, fadeIn, TOOLTIP_EXIT_CLASSNAME, fadeOut);
32
32
 
33
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -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.1",
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",
@@ -38,18 +38,18 @@
38
38
  "dependencies": {
39
39
  "@atlaskit/analytics-gas-types": "^5.1.0",
40
40
  "@atlaskit/analytics-next": "^9.3.0",
41
- "@atlaskit/avatar": "^21.10.0",
42
- "@atlaskit/button": "^18.0.0",
43
- "@atlaskit/editor-prosemirror": "4.0.1",
41
+ "@atlaskit/avatar": "^21.11.0",
42
+ "@atlaskit/button": "^19.1.0",
43
+ "@atlaskit/editor-prosemirror": "5.0.1",
44
44
  "@atlaskit/form": "^10.4.0",
45
- "@atlaskit/icon": "^22.4.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",
49
49
  "@atlaskit/jql-parser": "^2.0.0",
50
50
  "@atlaskit/spinner": "^16.2.0",
51
51
  "@atlaskit/theme": "^12.11.0",
52
- "@atlaskit/tokens": "^1.52.0",
52
+ "@atlaskit/tokens": "^1.56.0",
53
53
  "@atlaskit/tooltip": "^18.5.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",