@atlaskit/editor-core 187.2.1 → 187.2.2

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,12 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0e45d910987`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e45d910987) - [ED-18083] Moved panel gap cursor tests to Libra
8
+ - Updated dependencies
9
+
3
10
  ## 187.2.1
4
11
 
5
12
  ### Patch Changes
@@ -120,9 +120,12 @@ var createExpandNode = function createExpandNode(state) {
120
120
  exports.createExpandNode = createExpandNode;
121
121
  var insertExpand = function insertExpand(state, dispatch) {
122
122
  var expandNode = createExpandNode(state);
123
+ if (!expandNode) {
124
+ return false;
125
+ }
123
126
  var tr = (0, _blockType.createWrapSelectionTransaction)({
124
127
  state: state,
125
- type: state.schema.nodes.expand
128
+ type: expandNode.type
126
129
  });
127
130
  var payload = {
128
131
  action: _analytics.ACTION.INSERTED,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.2.1";
9
+ var version = "187.2.3";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.2.1",
3
+ "version": "187.2.3",
4
4
  "sideEffects": false
5
5
  }
@@ -99,9 +99,12 @@ export const createExpandNode = state => {
99
99
  };
100
100
  export const insertExpand = (state, dispatch) => {
101
101
  const expandNode = createExpandNode(state);
102
+ if (!expandNode) {
103
+ return false;
104
+ }
102
105
  const tr = createWrapSelectionTransaction({
103
106
  state,
104
- type: state.schema.nodes.expand
107
+ type: expandNode.type
105
108
  });
106
109
  const payload = {
107
110
  action: ACTION.INSERTED,
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.2.1";
2
+ export const version = "187.2.3";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.2.1",
3
+ "version": "187.2.3",
4
4
  "sideEffects": false
5
5
  }
@@ -107,9 +107,12 @@ export var createExpandNode = function createExpandNode(state) {
107
107
  };
108
108
  export var insertExpand = function insertExpand(state, dispatch) {
109
109
  var expandNode = createExpandNode(state);
110
+ if (!expandNode) {
111
+ return false;
112
+ }
110
113
  var tr = createWrapSelectionTransaction({
111
114
  state: state,
112
- type: state.schema.nodes.expand
115
+ type: expandNode.type
113
116
  });
114
117
  var payload = {
115
118
  action: ACTION.INSERTED,
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.2.1";
2
+ export var version = "187.2.3";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.2.1",
3
+ "version": "187.2.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.2.1",
3
+ "version": "187.2.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/code": "^14.6.0",
56
56
  "@atlaskit/date": "^0.10.0",
57
57
  "@atlaskit/datetime-picker": "^12.7.0",
58
- "@atlaskit/editor-common": "^74.23.0",
58
+ "@atlaskit/editor-common": "^74.24.0",
59
59
  "@atlaskit/editor-json-transformer": "^8.10.0",
60
60
  "@atlaskit/editor-markdown-transformer": "^5.2.5",
61
61
  "@atlaskit/editor-palette": "1.5.1",
@@ -69,7 +69,7 @@
69
69
  "@atlaskit/editor-plugin-grid": "^0.1.0",
70
70
  "@atlaskit/editor-plugin-guideline": "^0.3.4",
71
71
  "@atlaskit/editor-plugin-hyperlink": "^0.2.0",
72
- "@atlaskit/editor-plugin-table": "^2.4.0",
72
+ "@atlaskit/editor-plugin-table": "^2.5.0",
73
73
  "@atlaskit/editor-plugin-width": "^0.1.0",
74
74
  "@atlaskit/editor-shared-styles": "^2.4.0",
75
75
  "@atlaskit/editor-tables": "^2.3.0",
@@ -150,7 +150,7 @@
150
150
  "@atlaskit/collab-provider": "9.7.2",
151
151
  "@atlaskit/dropdown-menu": "^11.10.0",
152
152
  "@atlaskit/editor-extension-dropbox": "^0.4.0",
153
- "@atlaskit/editor-plugin-table": "^2.4.0",
153
+ "@atlaskit/editor-plugin-table": "^2.5.0",
154
154
  "@atlaskit/editor-test-helpers": "^18.10.0",
155
155
  "@atlaskit/flag": "^15.2.0",
156
156
  "@atlaskit/icon-object": "^6.3.0",