@atlaskit/editor-core 204.0.1 → 204.1.0

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,19 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 204.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#116890](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/116890)
8
+ [`6e6add1056c65`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e6add1056c65) -
9
+ Adding smartlink button for autoconvert macros
10
+
11
+ ## 204.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 204.0.1
4
18
 
5
19
  ### Patch Changes
@@ -363,7 +363,7 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
363
363
  }
364
364
  }, {
365
365
  key: "replaceSelection",
366
- value: function replaceSelection(rawValue, tryToReplace) {
366
+ value: function replaceSelection(rawValue, tryToReplace, position) {
367
367
  if (!this.editorView) {
368
368
  return false;
369
369
  }
@@ -380,7 +380,7 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
380
380
  }
381
381
 
382
382
  // try to find a place in the document where to insert a node if its not allowed at the cursor position by schema
383
- this.editorView.dispatch((0, _utils.safeInsert)(content, undefined, tryToReplace)(state.tr).scrollIntoView());
383
+ this.editorView.dispatch((0, _utils.safeInsert)(content, position, tryToReplace)(state.tr).scrollIntoView());
384
384
  return true;
385
385
  }
386
386
  }, {
@@ -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 = "204.0.1";
8
+ var version = exports.version = "204.1.0";
@@ -274,7 +274,7 @@ export default class EditorActions {
274
274
  }
275
275
  return true;
276
276
  }
277
- replaceSelection(rawValue, tryToReplace) {
277
+ replaceSelection(rawValue, tryToReplace, position) {
278
278
  if (!this.editorView) {
279
279
  return false;
280
280
  }
@@ -295,7 +295,7 @@ export default class EditorActions {
295
295
  }
296
296
 
297
297
  // try to find a place in the document where to insert a node if its not allowed at the cursor position by schema
298
- this.editorView.dispatch(safeInsert(content, undefined, tryToReplace)(state.tr).scrollIntoView());
298
+ this.editorView.dispatch(safeInsert(content, position, tryToReplace)(state.tr).scrollIntoView());
299
299
  return true;
300
300
  }
301
301
  appendText(text) {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "204.0.1";
2
+ export const version = "204.1.0";
@@ -357,7 +357,7 @@ var EditorActions = /*#__PURE__*/function () {
357
357
  }
358
358
  }, {
359
359
  key: "replaceSelection",
360
- value: function replaceSelection(rawValue, tryToReplace) {
360
+ value: function replaceSelection(rawValue, tryToReplace, position) {
361
361
  if (!this.editorView) {
362
362
  return false;
363
363
  }
@@ -374,7 +374,7 @@ var EditorActions = /*#__PURE__*/function () {
374
374
  }
375
375
 
376
376
  // try to find a place in the document where to insert a node if its not allowed at the cursor position by schema
377
- this.editorView.dispatch(safeInsert(content, undefined, tryToReplace)(state.tr).scrollIntoView());
377
+ this.editorView.dispatch(safeInsert(content, position, tryToReplace)(state.tr).scrollIntoView());
378
378
  return true;
379
379
  }
380
380
  }, {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "204.0.1";
2
+ export var version = "204.1.0";
@@ -53,7 +53,7 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
53
53
  replaceDocument(rawValue: any, shouldScrollToBottom?: boolean,
54
54
  /** @deprecated [ED-14158] shouldAddToHistory is not being used in this function */
55
55
  shouldAddToHistory?: boolean): boolean;
56
- replaceSelection(rawValue: ReplaceRawValue | Array<ReplaceRawValue>, tryToReplace?: boolean): boolean;
56
+ replaceSelection(rawValue: ReplaceRawValue | Array<ReplaceRawValue>, tryToReplace?: boolean, position?: number): boolean;
57
57
  appendText(text: string): boolean;
58
58
  dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
59
59
  /**
@@ -53,7 +53,7 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
53
53
  replaceDocument(rawValue: any, shouldScrollToBottom?: boolean,
54
54
  /** @deprecated [ED-14158] shouldAddToHistory is not being used in this function */
55
55
  shouldAddToHistory?: boolean): boolean;
56
- replaceSelection(rawValue: ReplaceRawValue | Array<ReplaceRawValue>, tryToReplace?: boolean): boolean;
56
+ replaceSelection(rawValue: ReplaceRawValue | Array<ReplaceRawValue>, tryToReplace?: boolean, position?: number): boolean;
57
57
  appendText(text: string): boolean;
58
58
  dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
59
59
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "204.0.1",
3
+ "version": "204.1.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,20 +45,20 @@
45
45
  "@atlaskit/button": "^21.1.0",
46
46
  "@atlaskit/editor-common": "^100.1.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.23.0",
48
- "@atlaskit/editor-performance-metrics": "2.0.1",
48
+ "@atlaskit/editor-performance-metrics": "2.0.2",
49
49
  "@atlaskit/editor-plugin-quick-insert": "2.0.0",
50
50
  "@atlaskit/editor-plugins": "^8.0.0",
51
51
  "@atlaskit/editor-prosemirror": "7.0.0",
52
52
  "@atlaskit/editor-shared-styles": "^3.3.0",
53
53
  "@atlaskit/emoji": "^68.0.0",
54
- "@atlaskit/icon": "^24.0.0",
54
+ "@atlaskit/icon": "^24.1.0",
55
55
  "@atlaskit/media-card": "^79.0.0",
56
56
  "@atlaskit/mention": "^24.0.0",
57
57
  "@atlaskit/platform-feature-flags": "^1.1.0",
58
- "@atlaskit/react-ufo": "^3.0.0",
58
+ "@atlaskit/react-ufo": "^3.1.0",
59
59
  "@atlaskit/task-decision": "^19.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^3.1.0",
61
- "@atlaskit/tokens": "^4.1.0",
60
+ "@atlaskit/tmp-editor-statsig": "^3.2.0",
61
+ "@atlaskit/tokens": "^4.2.0",
62
62
  "@atlaskit/tooltip": "^20.0.0",
63
63
  "@atlaskit/width-detector": "^5.0.0",
64
64
  "@babel/runtime": "^7.0.0",
@@ -85,8 +85,8 @@
85
85
  "@af/visual-regression": "*",
86
86
  "@atlaskit/adf-utils": "^19.18.0",
87
87
  "@atlaskit/analytics-listeners": "^9.0.0",
88
- "@atlaskit/collab-provider": "10.7.2",
89
- "@atlaskit/editor-plugin-annotation": "2.0.0",
88
+ "@atlaskit/collab-provider": "10.7.3",
89
+ "@atlaskit/editor-plugin-annotation": "2.0.1",
90
90
  "@atlaskit/editor-plugin-card": "^5.0.0",
91
91
  "@atlaskit/editor-plugin-list": "^4.0.0",
92
92
  "@atlaskit/editor-plugin-paste": "^3.0.0",
@@ -96,7 +96,7 @@
96
96
  "@atlaskit/media-integration-test-helpers": "^4.0.0",
97
97
  "@atlaskit/media-test-helpers": "^35.0.0",
98
98
  "@atlaskit/modal-dialog": "^13.0.0",
99
- "@atlaskit/primitives": "^14.0.0",
99
+ "@atlaskit/primitives": "^14.1.0",
100
100
  "@atlaskit/renderer": "^113.0.0",
101
101
  "@atlaskit/smart-card": "^35.0.0",
102
102
  "@atlaskit/synchrony-test-helpers": "^3.1.0",
@@ -105,7 +105,7 @@
105
105
  "@atlaskit/visual-regression": "*",
106
106
  "@atlassian/adf-schema-json": "^1.27.0",
107
107
  "@atlassian/feature-flags-test-utils": "*",
108
- "@atlassian/search-provider": "3.0.38",
108
+ "@atlassian/search-provider": "3.0.39",
109
109
  "@emotion/jest": "^11.8.0",
110
110
  "@storybook/addon-knobs": "^6.4.0",
111
111
  "@testing-library/react": "^13.4.0",
@@ -217,16 +217,9 @@
217
217
  "type": "boolean",
218
218
  "referenceOnly": true
219
219
  },
220
- "platform_editor_annotation_react_18_mem_leak": {
221
- "type": "boolean",
222
- "referenceOnly": true
223
- },
224
220
  "platform_editor_ssr_fix_block_controls": {
225
221
  "type": "boolean"
226
222
  },
227
- "platform_editor_react18_mention_with_provider_fix": {
228
- "type": "boolean"
229
- },
230
223
  "platform_editor_ssr_fix_smartlinks": {
231
224
  "type": "boolean",
232
225
  "referenceOnly": true
@@ -239,9 +232,6 @@
239
232
  "type": "boolean",
240
233
  "referenceOnly": true
241
234
  },
242
- "platform_editor_react18_extension_component_v2": {
243
- "type": "boolean"
244
- },
245
235
  "platform_editor_heading_margin_fix": {
246
236
  "type": "boolean",
247
237
  "referenceOnly": true
@@ -480,6 +470,10 @@
480
470
  "platform_editor_nested_tables_resize_border_fix": {
481
471
  "type": "boolean",
482
472
  "referenceOnly": true
473
+ },
474
+ "platform_editor_nested_tables_column_drag_fix": {
475
+ "type": "boolean",
476
+ "referenceOnly": true
483
477
  }
484
478
  },
485
479
  "stricter": {