@atlaskit/editor-core 204.0.2 → 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,13 @@
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
+
3
11
  ## 204.0.2
4
12
 
5
13
  ### 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.2";
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.2";
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.2";
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.2",
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/"
@@ -55,7 +55,7 @@
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
60
  "@atlaskit/tmp-editor-statsig": "^3.2.0",
61
61
  "@atlaskit/tokens": "^4.2.0",