@atlaskit/jql-editor 4.15.0 → 5.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.
- package/CHANGELOG.md +27 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/index.js +2 -2
- package/dist/cjs/state/index.js +2 -24
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/index.js +2 -2
- package/dist/es2019/state/index.js +1 -21
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/index.js +2 -2
- package/dist/esm/state/index.js +1 -23
- package/dist/types/state/index.d.ts +1 -65
- package/dist/types-ts4.5/state/index.d.ts +1 -65
- package/package.json +17 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
8
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
9
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
10
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
11
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
12
|
+
React 17 may come via non-major semver releases.
|
|
13
|
+
|
|
14
|
+
Please refer this community post for more details:
|
|
15
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#116281](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116281)
|
|
20
|
+
[`a535f943e9df4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a535f943e9df4) -
|
|
21
|
+
fix_errormessage_viewed_jqlresult_analytics fg cleanup
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
24
|
+
## 4.15.1
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 4.15.0
|
|
4
31
|
|
|
5
32
|
### 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", "
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "5.0.0", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -12,7 +12,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _deburr = _interopRequireDefault(require("lodash/deburr"));
|
|
14
14
|
var _noop = _interopRequireDefault(require("lodash/noop"));
|
|
15
|
-
var
|
|
15
|
+
var _alignTextLeft = _interopRequireDefault(require("@atlaskit/icon/core/align-text-left"));
|
|
16
16
|
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/calendar"));
|
|
17
17
|
var _clock = _interopRequireDefault(require("@atlaskit/icon/core/clock"));
|
|
18
18
|
var _dataNumber = _interopRequireDefault(require("@atlaskit/icon/core/data-number"));
|
|
@@ -85,7 +85,7 @@ var getFieldTypeIcon = function getFieldTypeIcon(type) {
|
|
|
85
85
|
});
|
|
86
86
|
case 'Paragraph':
|
|
87
87
|
return /*#__PURE__*/_react.default.createElement(ResizedIcon, {
|
|
88
|
-
Icon:
|
|
88
|
+
Icon: _alignTextLeft.default,
|
|
89
89
|
LegacyIcon: _alignLeftIcon.default
|
|
90
90
|
});
|
|
91
91
|
case 'People':
|
package/dist/cjs/state/index.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.useStoreActions = exports.useScopedId = exports.useRichInlineNodesEnabled = exports.useOnSyntaxHelp = exports.useLineNumbersVisible = exports.useJqlError = exports.useIsSearching = exports.useIntl = exports.useIdPrefix = exports.useHydratedValue = exports.useHydratedUser = exports.useHydratedDeprecations = exports.
|
|
7
|
+
exports.useStoreActions = exports.useScopedId = exports.useRichInlineNodesEnabled = exports.useOnSyntaxHelp = exports.useLineNumbersVisible = exports.useJqlError = exports.useIsSearching = exports.useIntl = exports.useIdPrefix = exports.useHydratedValue = exports.useHydratedUser = exports.useHydratedDeprecations = exports.useExternalMessages = exports.useEditorViewHasFocus = exports.useEditorView = exports.useEditorStateHasJqlError = exports.useEditorState = exports.useCustomErrorComponent = exports.useAutocompleteProvider = exports.useAutocompletePosition = exports.useAutocompleteOptions = exports.useAutocompleteLoading = exports.useAutocompleteIsOpen = exports.useAutocomplete = exports.initialState = exports.actions = exports.EditorStateContainer = void 0;
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -18,7 +18,6 @@ var _uuid = require("uuid");
|
|
|
18
18
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
19
19
|
var _jqlAst = require("@atlaskit/jql-ast");
|
|
20
20
|
var _jqlAutocomplete = require("@atlaskit/jql-autocomplete");
|
|
21
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
21
|
var _analytics = require("../analytics");
|
|
23
22
|
var _selectErrorCommand = require("../commands/select-error-command");
|
|
24
23
|
var _constants = require("../common/constants");
|
|
@@ -784,30 +783,9 @@ var memoizedExternalMessagesSelector = (0, _reactSweetState.createSelector)(func
|
|
|
784
783
|
infos: byType.info || []
|
|
785
784
|
};
|
|
786
785
|
});
|
|
787
|
-
|
|
788
|
-
// remove when cleanup fix_errormessage_viewed_jqlresult_analytics fg
|
|
789
|
-
var useExternalMessagesOld = exports.useExternalMessagesOld = (0, _reactSweetState.createHook)(Store, {
|
|
790
|
-
selector: function selector(state) {
|
|
791
|
-
var byType = (0, _groupBy.default)(state.externalMessages, 'type');
|
|
792
|
-
return {
|
|
793
|
-
errors: byType.error || [],
|
|
794
|
-
warnings: byType.warning || [],
|
|
795
|
-
infos: byType.info || []
|
|
796
|
-
};
|
|
797
|
-
}
|
|
798
|
-
});
|
|
799
|
-
var useExternalMessagesNew = exports.useExternalMessagesNew = (0, _reactSweetState.createHook)(Store, {
|
|
786
|
+
var useExternalMessages = exports.useExternalMessages = (0, _reactSweetState.createHook)(Store, {
|
|
800
787
|
selector: memoizedExternalMessagesSelector
|
|
801
788
|
});
|
|
802
|
-
|
|
803
|
-
// replace with useExternalMessagesNew when cleanup fix_errormessage_viewed_jqlresult_analytics fg
|
|
804
|
-
var useExternalMessages = exports.useExternalMessages = function useExternalMessages() {
|
|
805
|
-
return (0, _platformFeatureFlags.fg)('fix_errormessage_viewed_jqlresult_analytics') ?
|
|
806
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
807
|
-
useExternalMessagesNew() :
|
|
808
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
809
|
-
useExternalMessagesOld();
|
|
810
|
-
};
|
|
811
789
|
var useCustomErrorComponent = exports.useCustomErrorComponent = (0, _reactSweetState.createHook)(Store, {
|
|
812
790
|
selector: function selector(state) {
|
|
813
791
|
var _state$customComponen;
|
|
@@ -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", "
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.0.0", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { forwardRef, useCallback, useMemo, useState } from 'react';
|
|
3
3
|
import deburr from 'lodash/deburr';
|
|
4
4
|
import noop from 'lodash/noop';
|
|
5
|
-
import
|
|
5
|
+
import AlignTextLeftIcon from '@atlaskit/icon/core/align-text-left';
|
|
6
6
|
import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
7
7
|
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
8
8
|
import DataNumberIcon from '@atlaskit/icon/core/data-number';
|
|
@@ -72,7 +72,7 @@ const getFieldTypeIcon = type => {
|
|
|
72
72
|
});
|
|
73
73
|
case 'Paragraph':
|
|
74
74
|
return /*#__PURE__*/React.createElement(ResizedIcon, {
|
|
75
|
-
Icon:
|
|
75
|
+
Icon: AlignTextLeftIcon,
|
|
76
76
|
LegacyIcon: LegacyAlignLeftIcon
|
|
77
77
|
});
|
|
78
78
|
case 'People':
|
|
@@ -8,7 +8,6 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
8
8
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { computeJqlInsights, isListOperator } from '@atlaskit/jql-ast';
|
|
10
10
|
import { JQLAutocomplete } from '@atlaskit/jql-autocomplete';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { ActionSubject, ActionSubjectId, Action as AnalyticsAction, EventType } from '../analytics';
|
|
13
12
|
import { selectErrorCommand } from '../commands/select-error-command';
|
|
14
13
|
import { JQL_EDITOR_MAIN_ID } from '../common/constants';
|
|
@@ -771,28 +770,9 @@ const memoizedExternalMessagesSelector = createSelector(state => state.externalM
|
|
|
771
770
|
infos: byType.info || []
|
|
772
771
|
};
|
|
773
772
|
});
|
|
774
|
-
|
|
775
|
-
// remove when cleanup fix_errormessage_viewed_jqlresult_analytics fg
|
|
776
|
-
export const useExternalMessagesOld = createHook(Store, {
|
|
777
|
-
selector: state => {
|
|
778
|
-
const byType = groupBy(state.externalMessages, 'type');
|
|
779
|
-
return {
|
|
780
|
-
errors: byType.error || [],
|
|
781
|
-
warnings: byType.warning || [],
|
|
782
|
-
infos: byType.info || []
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
});
|
|
786
|
-
export const useExternalMessagesNew = createHook(Store, {
|
|
773
|
+
export const useExternalMessages = createHook(Store, {
|
|
787
774
|
selector: memoizedExternalMessagesSelector
|
|
788
775
|
});
|
|
789
|
-
|
|
790
|
-
// replace with useExternalMessagesNew when cleanup fix_errormessage_viewed_jqlresult_analytics fg
|
|
791
|
-
export const useExternalMessages = () => fg('fix_errormessage_viewed_jqlresult_analytics') ?
|
|
792
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
793
|
-
useExternalMessagesNew() :
|
|
794
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
795
|
-
useExternalMessagesOld();
|
|
796
776
|
export const useCustomErrorComponent = createHook(Store, {
|
|
797
777
|
selector: state => {
|
|
798
778
|
var _state$customComponen;
|
|
@@ -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", "
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.0.0", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import React, { forwardRef, useCallback, useMemo, useState } from 'react';
|
|
5
5
|
import deburr from 'lodash/deburr';
|
|
6
6
|
import noop from 'lodash/noop';
|
|
7
|
-
import
|
|
7
|
+
import AlignTextLeftIcon from '@atlaskit/icon/core/align-text-left';
|
|
8
8
|
import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
9
9
|
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
10
10
|
import DataNumberIcon from '@atlaskit/icon/core/data-number';
|
|
@@ -75,7 +75,7 @@ var getFieldTypeIcon = function getFieldTypeIcon(type) {
|
|
|
75
75
|
});
|
|
76
76
|
case 'Paragraph':
|
|
77
77
|
return /*#__PURE__*/React.createElement(ResizedIcon, {
|
|
78
|
-
Icon:
|
|
78
|
+
Icon: AlignTextLeftIcon,
|
|
79
79
|
LegacyIcon: LegacyAlignLeftIcon
|
|
80
80
|
});
|
|
81
81
|
case 'People':
|
package/dist/esm/state/index.js
CHANGED
|
@@ -13,7 +13,6 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
13
13
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
14
14
|
import { computeJqlInsights, isListOperator } from '@atlaskit/jql-ast';
|
|
15
15
|
import { JQLAutocomplete } from '@atlaskit/jql-autocomplete';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { ActionSubject, ActionSubjectId, Action as AnalyticsAction, EventType } from '../analytics';
|
|
18
17
|
import { selectErrorCommand } from '../commands/select-error-command';
|
|
19
18
|
import { JQL_EDITOR_MAIN_ID } from '../common/constants';
|
|
@@ -777,30 +776,9 @@ var memoizedExternalMessagesSelector = createSelector(function (state) {
|
|
|
777
776
|
infos: byType.info || []
|
|
778
777
|
};
|
|
779
778
|
});
|
|
780
|
-
|
|
781
|
-
// remove when cleanup fix_errormessage_viewed_jqlresult_analytics fg
|
|
782
|
-
export var useExternalMessagesOld = createHook(Store, {
|
|
783
|
-
selector: function selector(state) {
|
|
784
|
-
var byType = groupBy(state.externalMessages, 'type');
|
|
785
|
-
return {
|
|
786
|
-
errors: byType.error || [],
|
|
787
|
-
warnings: byType.warning || [],
|
|
788
|
-
infos: byType.info || []
|
|
789
|
-
};
|
|
790
|
-
}
|
|
791
|
-
});
|
|
792
|
-
export var useExternalMessagesNew = createHook(Store, {
|
|
779
|
+
export var useExternalMessages = createHook(Store, {
|
|
793
780
|
selector: memoizedExternalMessagesSelector
|
|
794
781
|
});
|
|
795
|
-
|
|
796
|
-
// replace with useExternalMessagesNew when cleanup fix_errormessage_viewed_jqlresult_analytics fg
|
|
797
|
-
export var useExternalMessages = function useExternalMessages() {
|
|
798
|
-
return fg('fix_errormessage_viewed_jqlresult_analytics') ?
|
|
799
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
800
|
-
useExternalMessagesNew() :
|
|
801
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
802
|
-
useExternalMessagesOld();
|
|
803
|
-
};
|
|
804
782
|
export var useCustomErrorComponent = createHook(Store, {
|
|
805
783
|
selector: function selector(state) {
|
|
806
784
|
var _state$customComponen;
|
|
@@ -467,7 +467,7 @@ export declare const useEditorStateHasJqlError: import("react-sweet-state").Hook
|
|
|
467
467
|
externalErrorMessageViewed: () => Action<State, Props>;
|
|
468
468
|
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
469
469
|
}>, void>;
|
|
470
|
-
export declare const
|
|
470
|
+
export declare const useExternalMessages: import("react-sweet-state").HookFunction<ExternalMessagesNormalized, import("react-sweet-state").BoundActions<State, {
|
|
471
471
|
onEditorViewBlur: () => Action<State>;
|
|
472
472
|
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
473
473
|
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
@@ -499,70 +499,6 @@ export declare const useExternalMessagesOld: import("react-sweet-state").HookFun
|
|
|
499
499
|
externalErrorMessageViewed: () => Action<State, Props>;
|
|
500
500
|
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
501
501
|
}>, void>;
|
|
502
|
-
export declare const useExternalMessagesNew: import("react-sweet-state").HookFunction<ExternalMessagesNormalized, import("react-sweet-state").BoundActions<State, {
|
|
503
|
-
onEditorViewBlur: () => Action<State>;
|
|
504
|
-
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
505
|
-
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
506
|
-
closeAutocomplete: () => Action<State>;
|
|
507
|
-
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
508
|
-
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
509
|
-
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
510
|
-
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
511
|
-
cancelSubscription: () => Action<State>;
|
|
512
|
-
setLoading: (loading: boolean) => Action<State>;
|
|
513
|
-
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
514
|
-
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
515
|
-
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
516
|
-
updateValidationState: () => Action<State>;
|
|
517
|
-
initialiseEditorState: () => Action<State, Props>;
|
|
518
|
-
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
519
|
-
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
520
|
-
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
521
|
-
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
522
|
-
[key: string]: string;
|
|
523
|
-
}, portalActions: PortalActions) => Action<State, Props>;
|
|
524
|
-
updateEditorView: (attributes: {
|
|
525
|
-
[key: string]: string;
|
|
526
|
-
}) => Action<State, Props>;
|
|
527
|
-
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
528
|
-
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
529
|
-
onSearch: () => Action<State>;
|
|
530
|
-
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
531
|
-
externalErrorMessageViewed: () => Action<State, Props>;
|
|
532
|
-
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
533
|
-
}>, void>;
|
|
534
|
-
export declare const useExternalMessages: () => import("react-sweet-state").HookReturnValue<ExternalMessagesNormalized, import("react-sweet-state").BoundActions<State, {
|
|
535
|
-
onEditorViewBlur: () => Action<State>;
|
|
536
|
-
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
537
|
-
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
538
|
-
closeAutocomplete: () => Action<State>;
|
|
539
|
-
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
540
|
-
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
541
|
-
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
542
|
-
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
543
|
-
cancelSubscription: () => Action<State>;
|
|
544
|
-
setLoading: (loading: boolean) => Action<State>;
|
|
545
|
-
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
546
|
-
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
547
|
-
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
548
|
-
updateValidationState: () => Action<State>;
|
|
549
|
-
initialiseEditorState: () => Action<State, Props>;
|
|
550
|
-
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
551
|
-
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
552
|
-
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
553
|
-
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
554
|
-
[key: string]: string;
|
|
555
|
-
}, portalActions: PortalActions) => Action<State, Props>;
|
|
556
|
-
updateEditorView: (attributes: {
|
|
557
|
-
[key: string]: string;
|
|
558
|
-
}) => Action<State, Props>;
|
|
559
|
-
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
560
|
-
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
561
|
-
onSearch: () => Action<State>;
|
|
562
|
-
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
563
|
-
externalErrorMessageViewed: () => Action<State, Props>;
|
|
564
|
-
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
565
|
-
}>>;
|
|
566
502
|
export declare const useCustomErrorComponent: import("react-sweet-state").HookFunction<CustomErrorComponent | undefined, import("react-sweet-state").BoundActions<State, {
|
|
567
503
|
onEditorViewBlur: () => Action<State>;
|
|
568
504
|
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
@@ -467,7 +467,7 @@ export declare const useEditorStateHasJqlError: import("react-sweet-state").Hook
|
|
|
467
467
|
externalErrorMessageViewed: () => Action<State, Props>;
|
|
468
468
|
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
469
469
|
}>, void>;
|
|
470
|
-
export declare const
|
|
470
|
+
export declare const useExternalMessages: import("react-sweet-state").HookFunction<ExternalMessagesNormalized, import("react-sweet-state").BoundActions<State, {
|
|
471
471
|
onEditorViewBlur: () => Action<State>;
|
|
472
472
|
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
473
473
|
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
@@ -499,70 +499,6 @@ export declare const useExternalMessagesOld: import("react-sweet-state").HookFun
|
|
|
499
499
|
externalErrorMessageViewed: () => Action<State, Props>;
|
|
500
500
|
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
501
501
|
}>, void>;
|
|
502
|
-
export declare const useExternalMessagesNew: import("react-sweet-state").HookFunction<ExternalMessagesNormalized, import("react-sweet-state").BoundActions<State, {
|
|
503
|
-
onEditorViewBlur: () => Action<State>;
|
|
504
|
-
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
505
|
-
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
506
|
-
closeAutocomplete: () => Action<State>;
|
|
507
|
-
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
508
|
-
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
509
|
-
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
510
|
-
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
511
|
-
cancelSubscription: () => Action<State>;
|
|
512
|
-
setLoading: (loading: boolean) => Action<State>;
|
|
513
|
-
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
514
|
-
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
515
|
-
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
516
|
-
updateValidationState: () => Action<State>;
|
|
517
|
-
initialiseEditorState: () => Action<State, Props>;
|
|
518
|
-
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
519
|
-
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
520
|
-
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
521
|
-
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
522
|
-
[key: string]: string;
|
|
523
|
-
}, portalActions: PortalActions) => Action<State, Props>;
|
|
524
|
-
updateEditorView: (attributes: {
|
|
525
|
-
[key: string]: string;
|
|
526
|
-
}) => Action<State, Props>;
|
|
527
|
-
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
528
|
-
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
529
|
-
onSearch: () => Action<State>;
|
|
530
|
-
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
531
|
-
externalErrorMessageViewed: () => Action<State, Props>;
|
|
532
|
-
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
533
|
-
}>, void>;
|
|
534
|
-
export declare const useExternalMessages: () => import("react-sweet-state").HookReturnValue<ExternalMessagesNormalized, import("react-sweet-state").BoundActions<State, {
|
|
535
|
-
onEditorViewBlur: () => Action<State>;
|
|
536
|
-
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
537
|
-
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
538
|
-
closeAutocomplete: () => Action<State>;
|
|
539
|
-
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
540
|
-
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
541
|
-
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
542
|
-
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
543
|
-
cancelSubscription: () => Action<State>;
|
|
544
|
-
setLoading: (loading: boolean) => Action<State>;
|
|
545
|
-
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
546
|
-
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
547
|
-
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
548
|
-
updateValidationState: () => Action<State>;
|
|
549
|
-
initialiseEditorState: () => Action<State, Props>;
|
|
550
|
-
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
551
|
-
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
552
|
-
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
553
|
-
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
554
|
-
[key: string]: string;
|
|
555
|
-
}, portalActions: PortalActions) => Action<State, Props>;
|
|
556
|
-
updateEditorView: (attributes: {
|
|
557
|
-
[key: string]: string;
|
|
558
|
-
}) => Action<State, Props>;
|
|
559
|
-
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
560
|
-
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
561
|
-
onSearch: () => Action<State>;
|
|
562
|
-
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
563
|
-
externalErrorMessageViewed: () => Action<State, Props>;
|
|
564
|
-
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
565
|
-
}>>;
|
|
566
502
|
export declare const useCustomErrorComponent: import("react-sweet-state").HookFunction<CustomErrorComponent | undefined, import("react-sweet-state").BoundActions<State, {
|
|
567
503
|
onEditorViewBlur: () => Action<State>;
|
|
568
504
|
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.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",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
39
|
-
"@atlaskit/analytics-next": "^
|
|
40
|
-
"@atlaskit/avatar": "^
|
|
41
|
-
"@atlaskit/button": "^
|
|
39
|
+
"@atlaskit/analytics-next": "^11.0.0",
|
|
40
|
+
"@atlaskit/avatar": "^22.0.0",
|
|
41
|
+
"@atlaskit/button": "^21.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
|
-
"@atlaskit/form": "^
|
|
44
|
-
"@atlaskit/icon": "^
|
|
43
|
+
"@atlaskit/form": "^12.0.0",
|
|
44
|
+
"@atlaskit/icon": "^24.0.0",
|
|
45
45
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
46
46
|
"@atlaskit/jql-autocomplete": "^2.0.0",
|
|
47
|
-
"@atlaskit/jql-editor-common": "^
|
|
47
|
+
"@atlaskit/jql-editor-common": "^3.0.0",
|
|
48
48
|
"@atlaskit/jql-parser": "^2.0.0",
|
|
49
|
-
"@atlaskit/legacy-custom-icons": "^0.
|
|
50
|
-
"@atlaskit/platform-feature-flags": "^1.
|
|
51
|
-
"@atlaskit/primitives": "^
|
|
52
|
-
"@atlaskit/spinner": "^
|
|
53
|
-
"@atlaskit/theme": "^
|
|
54
|
-
"@atlaskit/tokens": "^
|
|
55
|
-
"@atlaskit/tooltip": "^
|
|
49
|
+
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
50
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
|
+
"@atlaskit/primitives": "^14.0.0",
|
|
52
|
+
"@atlaskit/spinner": "^18.0.0",
|
|
53
|
+
"@atlaskit/theme": "^17.0.0",
|
|
54
|
+
"@atlaskit/tokens": "^4.0.0",
|
|
55
|
+
"@atlaskit/tooltip": "^20.0.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@emotion/react": "^11.7.1",
|
|
58
58
|
"@emotion/styled": "^11.0.0",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"uuid": "^3.1.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"react": "^
|
|
73
|
-
"react-dom": "^
|
|
72
|
+
"react": "^18.2.0",
|
|
73
|
+
"react-dom": "^18.2.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@af/integration-testing": "*",
|
|
77
77
|
"@atlaskit/docs": "*",
|
|
78
|
-
"@atlaskit/jql-editor-autocomplete-rest": "^
|
|
78
|
+
"@atlaskit/jql-editor-autocomplete-rest": "^3.0.0",
|
|
79
79
|
"@atlaskit/visual-regression": "*",
|
|
80
80
|
"@atlassian/feature-flags-test-utils": "0.3.1",
|
|
81
81
|
"@storybook/addon-actions": "^6.4.0",
|
|
@@ -131,9 +131,6 @@
|
|
|
131
131
|
},
|
|
132
132
|
"add_nin_press_interactions": {
|
|
133
133
|
"type": "boolean"
|
|
134
|
-
},
|
|
135
|
-
"fix_errormessage_viewed_jqlresult_analytics": {
|
|
136
|
-
"type": "boolean"
|
|
137
134
|
}
|
|
138
135
|
}
|
|
139
136
|
}
|