@atlaskit/jql-editor 5.5.9 → 5.6.1

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,22 @@
1
1
  # @atlaskit/jql-editor
2
2
 
3
+ ## 5.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`0ac75e0d28c72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ac75e0d28c72) -
14
+ Migrate @atlaskit/editor-prosemirror/history to @atlaskit/prosemirror-history package
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 5.5.9
4
21
 
5
22
  ### Patch Changes
@@ -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, _history.history)(),
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': _history.undo,
108
- 'Mod-Shift-z': _history.redo,
109
- 'Mod-y': _history.redo,
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,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';
@@ -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.5.9",
3
+ "version": "5.6.1",
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.1.0",
39
- "@atlaskit/button": "^23.4.0",
38
+ "@atlaskit/avatar": "^25.4.0",
39
+ "@atlaskit/button": "^23.5.0",
40
40
  "@atlaskit/editor-prosemirror": "7.0.0",
41
- "@atlaskit/form": "^14.0.0",
42
- "@atlaskit/icon": "^28.2.0",
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",
@@ -48,11 +48,12 @@
48
48
  "@atlaskit/link": "^3.2.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/popper": "^7.1.0",
51
- "@atlaskit/primitives": "^14.15.0",
51
+ "@atlaskit/primitives": "^15.0.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.3.0",
55
- "@atlaskit/tooltip": "^20.4.0",
55
+ "@atlaskit/tokens": "^6.5.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",