@atlaskit/editor-core 189.4.15 → 189.4.17

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,11 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 189.4.17
4
+
5
+ ### Patch Changes
6
+
7
+ - [#58256](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58256) [`3a51aa478735`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3a51aa478735) - ED-20746: Added localId auto gen support for MultiBodied Extension
8
+
3
9
  ## 189.4.15
4
10
 
5
11
  ### Patch Changes
@@ -23,8 +23,9 @@ var createPlugin = exports.createPlugin = function createPlugin() {
23
23
  var _newState$schema$node = newState.schema.nodes,
24
24
  extension = _newState$schema$node.extension,
25
25
  bodiedExtension = _newState$schema$node.bodiedExtension,
26
- inlineExtension = _newState$schema$node.inlineExtension;
27
- var extensionTypes = new Set([extension, bodiedExtension, inlineExtension]);
26
+ inlineExtension = _newState$schema$node.inlineExtension,
27
+ multiBodiedExtension = _newState$schema$node.multiBodiedExtension;
28
+ var extensionTypes = new Set([extension, bodiedExtension, inlineExtension, multiBodiedExtension]);
28
29
  var idsObserved = new Set();
29
30
  transactions.forEach(function (transaction) {
30
31
  if (!transaction.docChanged) {
@@ -53,7 +54,7 @@ var createPlugin = exports.createPlugin = function createPlugin() {
53
54
  * If it's a bodiedExtension, we'll need to keep digging; since we
54
55
  * can have more extension nodes within the contents of that
55
56
  */
56
- if (node.type === bodiedExtension) {
57
+ if ([multiBodiedExtension, bodiedExtension].includes(node.type)) {
57
58
  return true;
58
59
  }
59
60
  return false;
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "189.4.15";
8
+ var version = exports.version = "189.4.17";
@@ -12,9 +12,10 @@ const createPlugin = () => new SafePlugin({
12
12
  const {
13
13
  extension,
14
14
  bodiedExtension,
15
- inlineExtension
15
+ inlineExtension,
16
+ multiBodiedExtension
16
17
  } = newState.schema.nodes;
17
- const extensionTypes = new Set([extension, bodiedExtension, inlineExtension]);
18
+ const extensionTypes = new Set([extension, bodiedExtension, inlineExtension, multiBodiedExtension]);
18
19
  const idsObserved = new Set();
19
20
  transactions.forEach(transaction => {
20
21
  if (!transaction.docChanged) {
@@ -42,7 +43,7 @@ const createPlugin = () => new SafePlugin({
42
43
  * If it's a bodiedExtension, we'll need to keep digging; since we
43
44
  * can have more extension nodes within the contents of that
44
45
  */
45
- if (node.type === bodiedExtension) {
46
+ if ([multiBodiedExtension, bodiedExtension].includes(node.type)) {
46
47
  return true;
47
48
  }
48
49
  return false;
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "189.4.15";
2
+ export const version = "189.4.17";
@@ -16,8 +16,9 @@ var createPlugin = function createPlugin() {
16
16
  var _newState$schema$node = newState.schema.nodes,
17
17
  extension = _newState$schema$node.extension,
18
18
  bodiedExtension = _newState$schema$node.bodiedExtension,
19
- inlineExtension = _newState$schema$node.inlineExtension;
20
- var extensionTypes = new Set([extension, bodiedExtension, inlineExtension]);
19
+ inlineExtension = _newState$schema$node.inlineExtension,
20
+ multiBodiedExtension = _newState$schema$node.multiBodiedExtension;
21
+ var extensionTypes = new Set([extension, bodiedExtension, inlineExtension, multiBodiedExtension]);
21
22
  var idsObserved = new Set();
22
23
  transactions.forEach(function (transaction) {
23
24
  if (!transaction.docChanged) {
@@ -46,7 +47,7 @@ var createPlugin = function createPlugin() {
46
47
  * If it's a bodiedExtension, we'll need to keep digging; since we
47
48
  * can have more extension nodes within the contents of that
48
49
  */
49
- if (node.type === bodiedExtension) {
50
+ if ([multiBodiedExtension, bodiedExtension].includes(node.type)) {
50
51
  return true;
51
52
  }
52
53
  return false;
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "189.4.15";
2
+ export var version = "189.4.17";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "189.4.15",
3
+ "version": "189.4.17",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -170,7 +170,7 @@
170
170
  "@af/visual-regression": "*",
171
171
  "@atlaskit/analytics-listeners": "^8.7.0",
172
172
  "@atlaskit/code": "^15.1.0",
173
- "@atlaskit/collab-provider": "9.17.5",
173
+ "@atlaskit/collab-provider": "9.18.1",
174
174
  "@atlaskit/dropdown-menu": "^12.1.0",
175
175
  "@atlaskit/editor-extension-dropbox": "^0.4.0",
176
176
  "@atlaskit/editor-palette": "1.5.2",