@atlaskit/jql-editor 5.5.8 → 5.6.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 +18 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/plugins/rich-inline-nodes/nodes/user/styled.js +1 -1
- package/dist/cjs/schema/index.js +5 -5
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/plugins/rich-inline-nodes/nodes/user/styled.js +1 -1
- package/dist/es2019/schema/index.js +1 -1
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/plugins/rich-inline-nodes/nodes/user/styled.js +1 -1
- package/dist/esm/schema/index.js +1 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 5.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0ac75e0d28c72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ac75e0d28c72) -
|
|
8
|
+
Migrate @atlaskit/editor-prosemirror/history to @atlaskit/prosemirror-history package
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 5.5.9
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`407e1dc11eeed`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/407e1dc11eeed) -
|
|
19
|
+
Minor changes to border radius values.
|
|
20
|
+
|
|
3
21
|
## 5.5.8
|
|
4
22
|
|
|
5
23
|
### 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", "
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "5.5.9", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -17,7 +17,7 @@ var UserContainer = exports.UserContainer = _styled.default.span({
|
|
|
17
17
|
display: 'inline-flex',
|
|
18
18
|
alignItems: 'baseline',
|
|
19
19
|
paddingLeft: "var(--ds-space-025, 2px)",
|
|
20
|
-
borderRadius:
|
|
20
|
+
borderRadius: "var(--ds-radius-xlarge, 12px)",
|
|
21
21
|
cursor: 'pointer',
|
|
22
22
|
userSelect: 'none'
|
|
23
23
|
},
|
package/dist/cjs/schema/index.js
CHANGED
|
@@ -9,10 +9,10 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _mapValues = _interopRequireDefault(require("lodash/mapValues"));
|
|
11
11
|
var _commands = require("@atlaskit/editor-prosemirror/commands");
|
|
12
|
-
var _history = require("@atlaskit/editor-prosemirror/history");
|
|
13
12
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
14
13
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
15
14
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
15
|
+
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
16
16
|
var _plugins = require("../plugins");
|
|
17
17
|
var _constants = require("../plugins/rich-inline-nodes/constants");
|
|
18
18
|
var _nodes = require("../plugins/rich-inline-nodes/nodes");
|
|
@@ -99,14 +99,14 @@ var defaultEditorState = exports.defaultEditorState = _state.EditorState.create(
|
|
|
99
99
|
|
|
100
100
|
var configurePlugins = exports.configurePlugins = function configurePlugins(editorState, onSearchCommand, intlRef, mainId, portalActions, enableRichInlineNodes) {
|
|
101
101
|
return editorState.reconfigure({
|
|
102
|
-
plugins: [(0,
|
|
102
|
+
plugins: [(0, _prosemirrorHistory.history)(),
|
|
103
103
|
// Other plugins rely on having AST as part of the state during a transaction, this plugin should be kept first
|
|
104
104
|
(0, _plugins.jqlAstPlugin)(intlRef), (0, _plugins.jqlSyntaxHighlightingPlugin)()].concat((0, _toConsumableArray2.default)(portalActions !== undefined ? [(0, _plugins.autocompletePlugin)(portalActions, enableRichInlineNodes)].concat((0, _toConsumableArray2.default)(enableRichInlineNodes ? [(0, _plugins.richInlineNodesPlugin)(portalActions)] : [])) : []), [(0, _plugins.validationTooltipPlugin)(mainId),
|
|
105
105
|
// Keeping these at the bottom allows plugins to define custom key bindings to override default behavior
|
|
106
106
|
(0, _keymap.keymap)({
|
|
107
|
-
'Mod-z':
|
|
108
|
-
'Mod-Shift-z':
|
|
109
|
-
'Mod-y':
|
|
107
|
+
'Mod-z': _prosemirrorHistory.undo,
|
|
108
|
+
'Mod-Shift-z': _prosemirrorHistory.redo,
|
|
109
|
+
'Mod-y': _prosemirrorHistory.redo,
|
|
110
110
|
// Mimic default Enter behavior in PM's base keymap, allowing to insert new lines even when autocomplete is open
|
|
111
111
|
'Shift-Enter': _commands.baseKeymap.Enter
|
|
112
112
|
})], (0, _toConsumableArray2.default)(!onSearchCommand ? [] : [keymapNoRepeat({
|
|
@@ -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.5.9", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -8,7 +8,7 @@ export const UserContainer = styled.span({
|
|
|
8
8
|
display: 'inline-flex',
|
|
9
9
|
alignItems: 'baseline',
|
|
10
10
|
paddingLeft: `${"var(--ds-space-025, 2px)"}`,
|
|
11
|
-
borderRadius:
|
|
11
|
+
borderRadius: "var(--ds-radius-xlarge, 12px)",
|
|
12
12
|
cursor: 'pointer',
|
|
13
13
|
userSelect: 'none'
|
|
14
14
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import mapValues from 'lodash/mapValues';
|
|
2
2
|
import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
|
|
3
|
-
import { history, redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
4
3
|
import { keydownHandler, keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
5
4
|
import { DOMParser, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
6
5
|
import { EditorState, Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import { history, redo, undo } from '@atlaskit/prosemirror-history';
|
|
7
7
|
import { autocompletePlugin, jqlAstPlugin, jqlSyntaxHighlightingPlugin, richInlineNodesPlugin, validationTooltipPlugin } from '../plugins';
|
|
8
8
|
import { RICH_INLINE_NODE } from '../plugins/rich-inline-nodes/constants';
|
|
9
9
|
import { richInlineNodes } from '../plugins/rich-inline-nodes/nodes';
|
|
@@ -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.5.9", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
package/dist/esm/schema/index.js
CHANGED
|
@@ -4,10 +4,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import mapValues from 'lodash/mapValues';
|
|
6
6
|
import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
|
|
7
|
-
import { history, redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
8
7
|
import { keydownHandler, keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
9
8
|
import { DOMParser, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
10
9
|
import { EditorState, Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
10
|
+
import { history, redo, undo } from '@atlaskit/prosemirror-history';
|
|
11
11
|
import { autocompletePlugin, jqlAstPlugin, jqlSyntaxHighlightingPlugin, richInlineNodesPlugin, validationTooltipPlugin } from '../plugins';
|
|
12
12
|
import { RICH_INLINE_NODE } from '../plugins/rich-inline-nodes/constants';
|
|
13
13
|
import { richInlineNodes } from '../plugins/rich-inline-nodes/nodes';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.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",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"@atlaskit/afm-i18n-platform-jql-jql-editor": "2.7.0",
|
|
36
36
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
|
-
"@atlaskit/avatar": "^25.
|
|
39
|
-
"@atlaskit/button": "^23.
|
|
38
|
+
"@atlaskit/avatar": "^25.4.0",
|
|
39
|
+
"@atlaskit/button": "^23.5.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
|
-
"@atlaskit/form": "^14.
|
|
42
|
-
"@atlaskit/icon": "^28.
|
|
41
|
+
"@atlaskit/form": "^14.2.0",
|
|
42
|
+
"@atlaskit/icon": "^28.5.0",
|
|
43
43
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
44
44
|
"@atlaskit/jql-autocomplete": "^2.0.0",
|
|
45
45
|
"@atlaskit/jql-editor-common": "^3.0.0",
|
|
@@ -49,10 +49,11 @@
|
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/popper": "^7.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^14.15.0",
|
|
52
|
+
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
52
53
|
"@atlaskit/spinner": "^19.0.0",
|
|
53
54
|
"@atlaskit/theme": "^21.0.0",
|
|
54
|
-
"@atlaskit/tokens": "^6.
|
|
55
|
-
"@atlaskit/tooltip": "^20.
|
|
55
|
+
"@atlaskit/tokens": "^6.4.0",
|
|
56
|
+
"@atlaskit/tooltip": "^20.5.0",
|
|
56
57
|
"@babel/runtime": "^7.0.0",
|
|
57
58
|
"@emotion/react": "^11.7.1",
|
|
58
59
|
"@emotion/styled": "^11.0.0",
|