@atlaskit/editor-core 189.4.12 → 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,17 @@
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
+
9
+ ## 189.4.15
10
+
11
+ ### Patch Changes
12
+
13
+ - [#57847](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57847) [`79e0bdd666fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/79e0bdd666fe) - ensure paste file event in prosemirror won't propagate to the clipboard of media picker
14
+
3
15
  ## 189.4.12
4
16
 
5
17
  ### 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;
@@ -169,11 +169,10 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
169
169
  * We want to return false for external copied image to allow
170
170
  * it to be uploaded by the client.
171
171
  */
172
-
173
172
  if ((0, _util.htmlContainsSingleFile)(html)) {
174
173
  return true;
175
174
  }
176
- event.stopPropagation();
175
+ event.stopImmediatePropagation();
177
176
  }
178
177
  var state = view.state;
179
178
  var analyticsPlugin = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 || (_pluginInjectionApi$a2 = _pluginInjectionApi$a2.sharedState) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.currentState();
@@ -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.12";
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;
@@ -131,11 +131,10 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
131
131
  * We want to return false for external copied image to allow
132
132
  * it to be uploaded by the client.
133
133
  */
134
-
135
134
  if (htmlContainsSingleFile(html)) {
136
135
  return true;
137
136
  }
138
- event.stopPropagation();
137
+ event.stopImmediatePropagation();
139
138
  }
140
139
  const {
141
140
  state
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "189.4.12";
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;
@@ -156,11 +156,10 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
156
156
  * We want to return false for external copied image to allow
157
157
  * it to be uploaded by the client.
158
158
  */
159
-
160
159
  if (htmlContainsSingleFile(html)) {
161
160
  return true;
162
161
  }
163
- event.stopPropagation();
162
+ event.stopImmediatePropagation();
164
163
  }
165
164
  var state = view.state;
166
165
  var analyticsPlugin = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 || (_pluginInjectionApi$a2 = _pluginInjectionApi$a2.sharedState) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.currentState();
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "189.4.12";
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.12",
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",
@@ -183,7 +183,7 @@
183
183
  "@atlaskit/media-integration-test-helpers": "^3.0.0",
184
184
  "@atlaskit/media-test-helpers": "^33.0.0",
185
185
  "@atlaskit/menu": "^2.1.0",
186
- "@atlaskit/modal-dialog": "^12.9.0",
186
+ "@atlaskit/modal-dialog": "^12.10.0",
187
187
  "@atlaskit/renderer": "^108.17.0",
188
188
  "@atlaskit/synchrony-test-helpers": "^2.3.0",
189
189
  "@atlaskit/util-data-test": "^17.8.0",
@@ -341,6 +341,10 @@
341
341
  "platform.editor.table.alternative-sticky-header-logic": {
342
342
  "type": "boolean",
343
343
  "referenceOnly": "true"
344
+ },
345
+ "platform.editor.table.analytics-plugin-moved-event": {
346
+ "type": "boolean",
347
+ "referenceOnly": "true"
344
348
  }
345
349
  }
346
350
  }