@atlaskit/editor-plugin-text-formatting 2.1.2 → 2.1.3

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-plugin-text-formatting
2
2
 
3
+ ## 2.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 2.1.2
4
10
 
5
11
  ### Patch Changes
@@ -28,7 +28,7 @@ var _default = exports.default = new _safePlugin.SafePlugin({
28
28
  var clickWasNearACodeMark = code && ($click.nodeBefore && code.isInSet($click.nodeBefore.marks) || $click.nodeAfter && code.isInSet($click.nodeAfter.marks));
29
29
 
30
30
  // Find the starting position of the clicked dom-element
31
- // TODO: Remove calls to private API
31
+ // TODO: ED-26962 - Remove calls to private API
32
32
  var clickedDOMElementPosition = event.target && event.target instanceof Node && view.posAtDOM(event.target);
33
33
  var clickNode = view.state.doc.nodeAt(clickPos);
34
34
  var clickWasAtTextNode = !!(clickNode && clickNode.isText);
@@ -16,7 +16,7 @@ var commands = _textFormatting;
16
16
  var _pluginKey = require("./plugin-key");
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
- // TODO: Ideally this should use the custom toggleMark function from @atlaskit/editor-common so we also disable the options when selecting inline nodes but it disables the marks when the selection is empty at this point in time which is undesirable
19
+ // TODO: ED-26962 - Ideally this should use the custom toggleMark function from @atlaskit/editor-common so we also disable the options when selecting inline nodes but it disables the marks when the selection is empty at this point in time which is undesirable
20
20
  // import { toggleMark } from '@atlaskit/editor-common/mark';
21
21
 
22
22
  // Ignored via go/ees005
@@ -26,7 +26,7 @@ export default new SafePlugin({
26
26
  const clickWasNearACodeMark = code && ($click.nodeBefore && code.isInSet($click.nodeBefore.marks) || $click.nodeAfter && code.isInSet($click.nodeAfter.marks));
27
27
 
28
28
  // Find the starting position of the clicked dom-element
29
- // TODO: Remove calls to private API
29
+ // TODO: ED-26962 - Remove calls to private API
30
30
  const clickedDOMElementPosition = event.target && event.target instanceof Node && view.posAtDOM(event.target);
31
31
  const clickNode = view.state.doc.nodeAt(clickPos);
32
32
  const clickWasAtTextNode = !!(clickNode && clickNode.isText);
@@ -1,4 +1,4 @@
1
- // TODO: Ideally this should use the custom toggleMark function from @atlaskit/editor-common so we also disable the options when selecting inline nodes but it disables the marks when the selection is empty at this point in time which is undesirable
1
+ // TODO: ED-26962 - Ideally this should use the custom toggleMark function from @atlaskit/editor-common so we also disable the options when selecting inline nodes but it disables the marks when the selection is empty at this point in time which is undesirable
2
2
  // import { toggleMark } from '@atlaskit/editor-common/mark';
3
3
 
4
4
  import { moveLeft as keymapMoveLeft, moveRight as keymapMoveRight } from '@atlaskit/editor-common/keymaps';
@@ -22,7 +22,7 @@ export default new SafePlugin({
22
22
  var clickWasNearACodeMark = code && ($click.nodeBefore && code.isInSet($click.nodeBefore.marks) || $click.nodeAfter && code.isInSet($click.nodeAfter.marks));
23
23
 
24
24
  // Find the starting position of the clicked dom-element
25
- // TODO: Remove calls to private API
25
+ // TODO: ED-26962 - Remove calls to private API
26
26
  var clickedDOMElementPosition = event.target && event.target instanceof Node && view.posAtDOM(event.target);
27
27
  var clickNode = view.state.doc.nodeAt(clickPos);
28
28
  var clickWasAtTextNode = !!(clickNode && clickNode.isText);
@@ -1,4 +1,4 @@
1
- // TODO: Ideally this should use the custom toggleMark function from @atlaskit/editor-common so we also disable the options when selecting inline nodes but it disables the marks when the selection is empty at this point in time which is undesirable
1
+ // TODO: ED-26962 - Ideally this should use the custom toggleMark function from @atlaskit/editor-common so we also disable the options when selecting inline nodes but it disables the marks when the selection is empty at this point in time which is undesirable
2
2
  // import { toggleMark } from '@atlaskit/editor-common/mark';
3
3
 
4
4
  import { moveLeft as keymapMoveLeft, moveRight as keymapMoveRight } from '@atlaskit/editor-common/keymaps';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
- "@atlaskit/editor-common": "^102.0.0",
37
+ "@atlaskit/editor-common": "^102.4.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^2.1.0",
39
39
  "@atlaskit/editor-plugin-base": "^2.3.0",
40
40
  "@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
@@ -42,11 +42,11 @@
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^3.4.0",
44
44
  "@atlaskit/editor-tables": "^2.9.0",
45
- "@atlaskit/icon": "^24.1.0",
45
+ "@atlaskit/icon": "^25.0.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
48
- "@atlaskit/tmp-editor-statsig": "^3.4.0",
49
- "@atlaskit/tokens": "^4.3.0",
48
+ "@atlaskit/tmp-editor-statsig": "^3.6.0",
49
+ "@atlaskit/tokens": "^4.4.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "react-intl-next": "npm:react-intl@^5.18.1"