@atlaskit/editor-common 114.32.0 → 114.32.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,15 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.32.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4c459a2718b67`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4c459a2718b67) -
8
+ Clean up synced block feature gates
9
+ - [`05ed8529e66e1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/05ed8529e66e1) -
10
+ EDITOR-6686: migrate panel styles
11
+ - Updated dependencies
12
+
3
13
  ## 114.32.0
4
14
 
5
15
  ### Minor Changes
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  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); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "114.31.0";
22
+ var packageVersion = "0.0.0-development";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.layoutToWidth = exports.getTableWidthWithNumberColumn = exports.getTableContainerWidth = exports.getParentNodeWidth = exports.getNestedParentNode = void 0;
8
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
7
  var _utils = require("@atlaskit/editor-prosemirror/utils");
10
8
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
9
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -113,7 +111,7 @@ var getNestedParentNode = exports.getNestedParentNode = function getNestedParent
113
111
  return null;
114
112
  }
115
113
  var $pos = state.doc.resolve(tablePos);
116
- var parent = (0, _utils.findParentNodeOfTypeClosestToPos)($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand, state.schema.nodes.tableCell, state.schema.nodes.tableHeader].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_synced_block_patch_8') ? [state.schema.nodes.bodiedSyncBlock] : [])));
114
+ var parent = (0, _utils.findParentNodeOfTypeClosestToPos)($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand, state.schema.nodes.tableCell, state.schema.nodes.tableHeader, state.schema.nodes.bodiedSyncBlock]);
117
115
  return parent ? parent.node : null;
118
116
  };
119
117
  var calcBreakoutNodeWidth = function calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled, breakoutWidth) {
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "114.31.0";
27
+ var packageVersion = "0.0.0-development";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -85,11 +85,9 @@ function processRawValueWithoutValidation(schema, value, dispatchAnalyticsEvent)
85
85
  // Convert nested-table extensions into nested tables
86
86
  var _transformNestedTable2 = transformNestedTablesWithAnalytics(node, dispatchAnalyticsEvent),
87
87
  transformedAdf = _transformNestedTable2.transformedAdf;
88
- if ((0, _platformFeatureFlags.fg)('platform_editor_sync_block_fallback_transform')) {
89
- var result = (0, _transforms.syncBlockFallbackTransform)(schema, transformedAdf);
90
- if (result.isTransformed && result.transformedAdf) {
91
- transformedAdf = result.transformedAdf;
92
- }
88
+ var result = (0, _transforms.syncBlockFallbackTransform)(schema, transformedAdf);
89
+ if (result.isTransformed && result.transformedAdf) {
90
+ transformedAdf = result.transformedAdf;
93
91
  }
94
92
  return _model.Node.fromJSON(schema, transformedAdf);
95
93
  }
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "114.31.0";
7
+ const packageVersion = "0.0.0-development";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -105,7 +105,7 @@ export const getNestedParentNode = (tablePos, state) => {
105
105
  return null;
106
106
  }
107
107
  const $pos = state.doc.resolve(tablePos);
108
- const parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand, state.schema.nodes.tableCell, state.schema.nodes.tableHeader, ...(fg('platform_synced_block_patch_8') ? [state.schema.nodes.bodiedSyncBlock] : [])]);
108
+ const parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand, state.schema.nodes.tableCell, state.schema.nodes.tableHeader, state.schema.nodes.bodiedSyncBlock]);
109
109
  return parent ? parent.node : null;
110
110
  };
111
111
  const calcBreakoutNodeWidth = (layout, containerWidth, isFullWidthModeEnabled, breakoutWidth) => {
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "114.31.0";
17
+ const packageVersion = "0.0.0-development";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -79,11 +79,9 @@ export function processRawValueWithoutValidation(schema, value, dispatchAnalytic
79
79
  let {
80
80
  transformedAdf
81
81
  } = transformNestedTablesWithAnalytics(node, dispatchAnalyticsEvent);
82
- if (fg('platform_editor_sync_block_fallback_transform')) {
83
- const result = syncBlockFallbackTransform(schema, transformedAdf);
84
- if (result.isTransformed && result.transformedAdf) {
85
- transformedAdf = result.transformedAdf;
86
- }
82
+ const result = syncBlockFallbackTransform(schema, transformedAdf);
83
+ if (result.isTransformed && result.transformedAdf) {
84
+ transformedAdf = result.transformedAdf;
87
85
  }
88
86
  return Node.fromJSON(schema, transformedAdf);
89
87
  }
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "114.31.0";
13
+ var packageVersion = "0.0.0-development";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -1,4 +1,3 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
1
  import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
3
2
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
4
3
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -106,7 +105,7 @@ export var getNestedParentNode = function getNestedParentNode(tablePos, state) {
106
105
  return null;
107
106
  }
108
107
  var $pos = state.doc.resolve(tablePos);
109
- var parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand, state.schema.nodes.tableCell, state.schema.nodes.tableHeader].concat(_toConsumableArray(fg('platform_synced_block_patch_8') ? [state.schema.nodes.bodiedSyncBlock] : [])));
108
+ var parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand, state.schema.nodes.tableCell, state.schema.nodes.tableHeader, state.schema.nodes.bodiedSyncBlock]);
110
109
  return parent ? parent.node : null;
111
110
  };
112
111
  var calcBreakoutNodeWidth = function calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled, breakoutWidth) {
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "114.31.0";
24
+ var packageVersion = "0.0.0-development";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -77,11 +77,9 @@ export function processRawValueWithoutValidation(schema, value, dispatchAnalytic
77
77
  // Convert nested-table extensions into nested tables
78
78
  var _transformNestedTable2 = transformNestedTablesWithAnalytics(node, dispatchAnalyticsEvent),
79
79
  transformedAdf = _transformNestedTable2.transformedAdf;
80
- if (fg('platform_editor_sync_block_fallback_transform')) {
81
- var result = syncBlockFallbackTransform(schema, transformedAdf);
82
- if (result.isTransformed && result.transformedAdf) {
83
- transformedAdf = result.transformedAdf;
84
- }
80
+ var result = syncBlockFallbackTransform(schema, transformedAdf);
81
+ if (result.isTransformed && result.transformedAdf) {
82
+ transformedAdf = result.transformedAdf;
85
83
  }
86
84
  return Node.fromJSON(schema, transformedAdf);
87
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "114.32.0",
3
+ "version": "114.32.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/"
@@ -227,9 +227,6 @@
227
227
  "cc_fd_wb_create_priority_in_slash_menu_enabled": {
228
228
  "type": "boolean"
229
229
  },
230
- "platform_editor_sync_block_fallback_transform": {
231
- "type": "boolean"
232
- },
233
230
  "draft_reply_contextual_pills_gate": {
234
231
  "type": "boolean"
235
232
  },
@@ -272,9 +269,6 @@
272
269
  "platform_editor_media_border_radius_fix": {
273
270
  "type": "boolean"
274
271
  },
275
- "platform_synced_block_patch_8": {
276
- "type": "boolean"
277
- },
278
272
  "people-teams_migrate-user-profile-card": {
279
273
  "type": "boolean"
280
274
  }