@atlaskit/editor-core 190.1.1 → 190.1.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,11 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 190.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#61112](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61112) [`283d290a41e5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/283d290a41e5) - ED-21499: analytics event added for remove child operation in MBE
8
+
3
9
  ## 190.1.1
4
10
 
5
11
  ### Patch Changes
@@ -85,6 +85,9 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
85
85
  var tr = state.tr;
86
86
  tr.deleteRange(startFramePosition, endFramePosition);
87
87
  dispatch(tr);
88
+ if (eventDispatcher) {
89
+ sendMBEAnalyticsEvent(_analytics.ACTION.REMOVE_CHILD, node, eventDispatcher);
90
+ }
88
91
  return true;
89
92
  },
90
93
  updateParameters: function updateParameters(parameters) {
@@ -100,6 +103,9 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
100
103
  })
101
104
  }));
102
105
  dispatch(tr);
106
+ if (eventDispatcher) {
107
+ sendMBEAnalyticsEvent(_analytics.ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
108
+ }
103
109
  return true;
104
110
  },
105
111
  getChildren: function getChildren() {
@@ -110,6 +116,9 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
110
116
  return [];
111
117
  }
112
118
  var children = (_state$doc$nodeAt = state.doc.nodeAt(pos)) === null || _state$doc$nodeAt === void 0 ? void 0 : _state$doc$nodeAt.content;
119
+ if (eventDispatcher) {
120
+ sendMBEAnalyticsEvent(_analytics.ACTION.GET_CHILDERN, node, eventDispatcher);
121
+ }
113
122
  return children ? children.toJSON() : [];
114
123
  }
115
124
  };
@@ -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 = "190.1.1";
8
+ var version = exports.version = "190.1.2";
@@ -76,6 +76,9 @@ const useMultiBodiedExtensionActions = ({
76
76
  const tr = state.tr;
77
77
  tr.deleteRange(startFramePosition, endFramePosition);
78
78
  dispatch(tr);
79
+ if (eventDispatcher) {
80
+ sendMBEAnalyticsEvent(ACTION.REMOVE_CHILD, node, eventDispatcher);
81
+ }
79
82
  return true;
80
83
  },
81
84
  updateParameters(parameters) {
@@ -95,6 +98,9 @@ const useMultiBodiedExtensionActions = ({
95
98
  }
96
99
  });
97
100
  dispatch(tr);
101
+ if (eventDispatcher) {
102
+ sendMBEAnalyticsEvent(ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
103
+ }
98
104
  return true;
99
105
  },
100
106
  getChildren() {
@@ -107,6 +113,9 @@ const useMultiBodiedExtensionActions = ({
107
113
  return [];
108
114
  }
109
115
  const children = (_state$doc$nodeAt = state.doc.nodeAt(pos)) === null || _state$doc$nodeAt === void 0 ? void 0 : _state$doc$nodeAt.content;
116
+ if (eventDispatcher) {
117
+ sendMBEAnalyticsEvent(ACTION.GET_CHILDERN, node, eventDispatcher);
118
+ }
110
119
  return children ? children.toJSON() : [];
111
120
  }
112
121
  };
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "190.1.1";
2
+ export const version = "190.1.2";
@@ -77,6 +77,9 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
77
77
  var tr = state.tr;
78
78
  tr.deleteRange(startFramePosition, endFramePosition);
79
79
  dispatch(tr);
80
+ if (eventDispatcher) {
81
+ sendMBEAnalyticsEvent(ACTION.REMOVE_CHILD, node, eventDispatcher);
82
+ }
80
83
  return true;
81
84
  },
82
85
  updateParameters: function updateParameters(parameters) {
@@ -92,6 +95,9 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
92
95
  })
93
96
  }));
94
97
  dispatch(tr);
98
+ if (eventDispatcher) {
99
+ sendMBEAnalyticsEvent(ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
100
+ }
95
101
  return true;
96
102
  },
97
103
  getChildren: function getChildren() {
@@ -102,6 +108,9 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
102
108
  return [];
103
109
  }
104
110
  var children = (_state$doc$nodeAt = state.doc.nodeAt(pos)) === null || _state$doc$nodeAt === void 0 ? void 0 : _state$doc$nodeAt.content;
111
+ if (eventDispatcher) {
112
+ sendMBEAnalyticsEvent(ACTION.GET_CHILDERN, node, eventDispatcher);
113
+ }
105
114
  return children ? children.toJSON() : [];
106
115
  }
107
116
  };
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "190.1.1";
2
+ export var version = "190.1.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "190.1.1",
3
+ "version": "190.1.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"