@atlaskit/editor-common 107.13.0 → 107.13.1

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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 107.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#193709](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193709)
8
+ [`9f25c72b75349`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f25c72b75349) -
9
+ EDITOR-338 Cleans up nested tables feature gate platform_editor_nested_tables_column_drag_fix
10
+ - Updated dependencies
11
+
3
12
  ## 107.13.0
4
13
 
5
14
  ### Minor Changes
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "107.12.10";
19
+ var packageVersion = "107.13.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "107.12.10";
26
+ var packageVersion = "107.13.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -20,7 +20,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
20
20
  var _transform = require("@atlaskit/editor-prosemirror/transform");
21
21
  var _utils = require("@atlaskit/editor-prosemirror/utils");
22
22
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
23
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
23
  var _dom = require("./dom");
25
24
  /**
26
25
  * Checks if node is an empty paragraph.
@@ -65,11 +64,7 @@ var isTextSelection = exports.isTextSelection = function isTextSelection(selecti
65
64
  return selection instanceof _state.TextSelection;
66
65
  };
67
66
  var isElementInTableCell = exports.isElementInTableCell = function isElementInTableCell(element) {
68
- if ((0, _platformFeatureFlags.fg)('platform_editor_nested_tables_column_drag_fix')) {
69
- return (0, _dom.closest)(element, 'td, th');
70
- } else {
71
- return (0, _dom.closest)(element, 'td') || (0, _dom.closest)(element, 'th');
72
- }
67
+ return (0, _dom.closest)(element, 'td, th');
73
68
  };
74
69
  var isLastItemMediaGroup = exports.isLastItemMediaGroup = function isLastItemMediaGroup(node) {
75
70
  var content = node.content;
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "107.12.10";
4
+ const packageVersion = "107.13.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "107.12.10";
16
+ const packageVersion = "107.13.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -2,7 +2,6 @@ import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-pro
2
2
  import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { closest } from './dom';
7
6
 
8
7
  /**
@@ -44,11 +43,7 @@ export const extractSliceFromStep = step => {
44
43
  };
45
44
  export const isTextSelection = selection => selection instanceof TextSelection;
46
45
  export const isElementInTableCell = element => {
47
- if (fg('platform_editor_nested_tables_column_drag_fix')) {
48
- return closest(element, 'td, th');
49
- } else {
50
- return closest(element, 'td') || closest(element, 'th');
51
- }
46
+ return closest(element, 'td, th');
52
47
  };
53
48
  export const isLastItemMediaGroup = node => {
54
49
  const {
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "107.12.10";
10
+ var packageVersion = "107.13.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "107.12.10";
23
+ var packageVersion = "107.13.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -2,7 +2,6 @@ import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-pro
2
2
  import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { closest } from './dom';
7
6
 
8
7
  /**
@@ -48,11 +47,7 @@ export var isTextSelection = function isTextSelection(selection) {
48
47
  return selection instanceof TextSelection;
49
48
  };
50
49
  export var isElementInTableCell = function isElementInTableCell(element) {
51
- if (fg('platform_editor_nested_tables_column_drag_fix')) {
52
- return closest(element, 'td, th');
53
- } else {
54
- return closest(element, 'td') || closest(element, 'th');
55
- }
50
+ return closest(element, 'td, th');
56
51
  };
57
52
  export var isLastItemMediaGroup = function isLastItemMediaGroup(node) {
58
53
  var content = node.content;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "107.13.0",
3
+ "version": "107.13.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -279,9 +279,6 @@
279
279
  "platform_editor_renderer_table_header_styles": {
280
280
  "type": "boolean"
281
281
  },
282
- "platform_editor_nested_tables_column_drag_fix": {
283
- "type": "boolean"
284
- },
285
282
  "platform_editor_elements_dnd_multi_select_patch_1": {
286
283
  "type": "boolean"
287
284
  },