@atlaskit/jql-editor 4.4.0 → 4.5.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,18 @@
1
1
  # @atlaskit/jql-editor
2
2
 
3
+ ## 4.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`eeb0648b1667e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eeb0648b1667e) -
8
+ Exposing preload function of JQL Editor async package
9
+
10
+ ## 4.4.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 4.4.0
4
17
 
5
18
  ### Minor 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.4.0", _jqlEditorCommon.ANALYTICS_CHANNEL);
9
+ return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "4.5.0", _jqlEditorCommon.ANALYTICS_CHANNEL);
10
10
  };
package/dist/cjs/async.js CHANGED
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.JQLEditorAsync = void 0;
7
+ exports.preloadJQLEditor = exports.JQLEditorAsync = void 0;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _reactLooselyLazy = require("react-loosely-lazy");
@@ -23,6 +23,9 @@ var JQLEditor = (0, _reactLooselyLazy.lazyForPaint)(function () {
23
23
  }, {
24
24
  ssr: false
25
25
  });
26
+ var preloadJQLEditor = exports.preloadJQLEditor = function preloadJQLEditor() {
27
+ return JQLEditor.preload();
28
+ };
26
29
  var JQLEditorAsync = exports.JQLEditorAsync = (0, _intlProvider.withIntlProvider)((0, _errorBoundary.withErrorBoundary)(function (props) {
27
30
  return /*#__PURE__*/_react.default.createElement(_reactLooselyLazy.LazySuspense, {
28
31
  fallback: /*#__PURE__*/_react.default.createElement(_jqlEditorLayout.JQLEditorReadOnly, {
package/dist/cjs/index.js CHANGED
@@ -40,6 +40,12 @@ Object.defineProperty(exports, "JQLEditorReadOnly", {
40
40
  return _jqlEditorLayout.JQLEditorReadOnly;
41
41
  }
42
42
  });
43
+ Object.defineProperty(exports, "preloadJQLEditor", {
44
+ enumerable: true,
45
+ get: function get() {
46
+ return _async.preloadJQLEditor;
47
+ }
48
+ });
43
49
  Object.defineProperty(exports, "useJqlPackageAnalytics", {
44
50
  enumerable: true,
45
51
  get: function get() {
@@ -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.4.0", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.5.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -8,6 +8,7 @@ const JQLEditor = lazyForPaint(() => import( /* webpackChunkName: "async-jql-edi
8
8
  }) => JQLEditorUI), {
9
9
  ssr: false
10
10
  });
11
+ export const preloadJQLEditor = () => JQLEditor.preload();
11
12
  export const JQLEditorAsync = withIntlProvider(withErrorBoundary(props => {
12
13
  return /*#__PURE__*/React.createElement(LazySuspense, {
13
14
  fallback: /*#__PURE__*/React.createElement(JQLEditorReadOnly, {
@@ -1,4 +1,4 @@
1
1
  export { default as JQLEditor } from './ui';
2
- export { JQLEditorAsync } from './async';
2
+ export { JQLEditorAsync, preloadJQLEditor } from './async';
3
3
  export { JQLEditorReadOnly } from './ui/jql-editor-layout';
4
4
  export { JQLEditorAnalyticsListener, ANALYTICS_CHANNEL, useJqlPackageAnalytics, EventType } from './analytics';
@@ -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.4.0", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.5.0", ANALYTICS_CHANNEL);
4
4
  };
package/dist/esm/async.js CHANGED
@@ -11,6 +11,9 @@ var JQLEditor = lazyForPaint(function () {
11
11
  }, {
12
12
  ssr: false
13
13
  });
14
+ export var preloadJQLEditor = function preloadJQLEditor() {
15
+ return JQLEditor.preload();
16
+ };
14
17
  export var JQLEditorAsync = withIntlProvider(withErrorBoundary(function (props) {
15
18
  return /*#__PURE__*/React.createElement(LazySuspense, {
16
19
  fallback: /*#__PURE__*/React.createElement(JQLEditorReadOnly, {
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { default as JQLEditor } from './ui';
2
- export { JQLEditorAsync } from './async';
2
+ export { JQLEditorAsync, preloadJQLEditor } from './async';
3
3
  export { JQLEditorReadOnly } from './ui/jql-editor-layout';
4
4
  export { JQLEditorAnalyticsListener, ANALYTICS_CHANNEL, useJqlPackageAnalytics, EventType } from './analytics';
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type JQLEditorProps } from './ui/types';
3
+ export declare const preloadJQLEditor: () => import("react-loosely-lazy/dist/types/cleanup").Cleanup;
3
4
  export declare const JQLEditorAsync: (props: JQLEditorProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export { default as JQLEditor } from './ui';
2
- export { JQLEditorAsync } from './async';
2
+ export { JQLEditorAsync, preloadJQLEditor } from './async';
3
3
  export { JQLEditorReadOnly } from './ui/jql-editor-layout';
4
4
  export { JQLEditorAnalyticsListener, ANALYTICS_CHANNEL, useJqlPackageAnalytics, EventType, } from './analytics';
5
5
  export type { ListenerProps, JqlAnalyticsEvent, JQLEditorUIProps, JQLEditorProps, HydratedValue, HydratedValues, HydratedUser, AutocompleteOption, AutocompleteValueType, AutocompleteOptions, AutocompleteProvider, JQLClause, ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, } from './types';
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type JQLEditorProps } from './ui/types';
3
+ export declare const preloadJQLEditor: () => import("react-loosely-lazy/dist/types/cleanup").Cleanup;
3
4
  export declare const JQLEditorAsync: (props: JQLEditorProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export { default as JQLEditor } from './ui';
2
- export { JQLEditorAsync } from './async';
2
+ export { JQLEditorAsync, preloadJQLEditor } from './async';
3
3
  export { JQLEditorReadOnly } from './ui/jql-editor-layout';
4
4
  export { JQLEditorAnalyticsListener, ANALYTICS_CHANNEL, useJqlPackageAnalytics, EventType, } from './analytics';
5
5
  export type { ListenerProps, JqlAnalyticsEvent, JQLEditorUIProps, JQLEditorProps, HydratedValue, HydratedValues, HydratedUser, AutocompleteOption, AutocompleteValueType, AutocompleteOptions, AutocompleteProvider, JQLClause, ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/jql-editor",
3
- "version": "4.4.0",
3
+ "version": "4.5.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",
@@ -37,20 +37,20 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@atlaskit/analytics-gas-types": "^5.1.0",
40
- "@atlaskit/analytics-next": "^9.3.0",
41
- "@atlaskit/avatar": "^21.11.0",
40
+ "@atlaskit/analytics-next": "^10.0.0",
41
+ "@atlaskit/avatar": "^21.13.0",
42
42
  "@atlaskit/button": "^19.1.0",
43
43
  "@atlaskit/editor-prosemirror": "5.0.1",
44
44
  "@atlaskit/form": "^10.4.0",
45
- "@atlaskit/icon": "^22.7.0",
45
+ "@atlaskit/icon": "^22.11.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.56.0",
53
- "@atlaskit/tooltip": "^18.5.0",
52
+ "@atlaskit/tokens": "^1.57.0",
53
+ "@atlaskit/tooltip": "^18.6.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
56
56
  "@emotion/styled": "^11.0.0",