@atlaskit/editor-common 114.32.0 → 114.32.2

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,21 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.32.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 114.32.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4c459a2718b67`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4c459a2718b67) -
14
+ Clean up synced block feature gates
15
+ - [`05ed8529e66e1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/05ed8529e66e1) -
16
+ EDITOR-6686: migrate panel styles
17
+ - Updated dependencies
18
+
3
19
  ## 114.32.0
4
20
 
5
21
  ### 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 = "114.32.1";
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) {
@@ -19,6 +19,9 @@ var BodiedSyncBlockSharedCssClassName = exports.BodiedSyncBlockSharedCssClassNam
19
19
  content: "".concat(bodiedPrefix, "__content"),
20
20
  selectionInside: "".concat(bodiedPrefix, "__selection_inside")
21
21
  };
22
+
23
+ // Constant labelClassName value here has been inlined in css from EditorContentContainer, if you need to make
24
+ // update here, please also update packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
22
25
  var labelClassName = 'ak-editor-sync-block__label';
23
26
  var SyncBlockLabelSharedCssClassName = exports.SyncBlockLabelSharedCssClassName = {
24
27
  labelClassName: labelClassName
@@ -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 = "114.32.1";
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 = "114.32.1";
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) => {
@@ -13,6 +13,9 @@ export const BodiedSyncBlockSharedCssClassName = {
13
13
  content: `${bodiedPrefix}__content`,
14
14
  selectionInside: `${bodiedPrefix}__selection_inside`
15
15
  };
16
+
17
+ // Constant labelClassName value here has been inlined in css from EditorContentContainer, if you need to make
18
+ // update here, please also update packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
16
19
  const labelClassName = 'ak-editor-sync-block__label';
17
20
  export const SyncBlockLabelSharedCssClassName = {
18
21
  labelClassName
@@ -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 = "114.32.1";
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 = "114.32.1";
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) {
@@ -13,6 +13,9 @@ export var BodiedSyncBlockSharedCssClassName = {
13
13
  content: "".concat(bodiedPrefix, "__content"),
14
14
  selectionInside: "".concat(bodiedPrefix, "__selection_inside")
15
15
  };
16
+
17
+ // Constant labelClassName value here has been inlined in css from EditorContentContainer, if you need to make
18
+ // update here, please also update packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
16
19
  var labelClassName = 'ak-editor-sync-block__label';
17
20
  export var SyncBlockLabelSharedCssClassName = {
18
21
  labelClassName: labelClassName
@@ -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 = "114.32.1";
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.2",
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/"
@@ -36,7 +36,7 @@
36
36
  "singleton": true
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/activity-provider": "^2.5.0",
39
+ "@atlaskit/activity-provider": "^2.6.0",
40
40
  "@atlaskit/adf-schema": "^52.11.0",
41
41
  "@atlaskit/adf-utils": "^19.29.0",
42
42
  "@atlaskit/afm-i18n-platform-editor-editor-common": "2.18.0",
@@ -48,14 +48,14 @@
48
48
  "@atlaskit/button": "^23.11.0",
49
49
  "@atlaskit/codemod-utils": "^4.2.0",
50
50
  "@atlaskit/css": "^0.19.0",
51
- "@atlaskit/custom-steps": "^0.16.0",
51
+ "@atlaskit/custom-steps": "^0.17.0",
52
52
  "@atlaskit/dropdown-menu": "^16.8.0",
53
- "@atlaskit/editor-json-transformer": "^8.31.0",
54
- "@atlaskit/editor-palette": "^2.1.0",
53
+ "@atlaskit/editor-json-transformer": "^8.32.0",
54
+ "@atlaskit/editor-palette": "^2.2.0",
55
55
  "@atlaskit/editor-prosemirror": "^7.3.0",
56
56
  "@atlaskit/editor-shared-styles": "^3.11.0",
57
57
  "@atlaskit/editor-tables": "^2.10.0",
58
- "@atlaskit/editor-toolbar": "^1.4.0",
58
+ "@atlaskit/editor-toolbar": "^1.5.0",
59
59
  "@atlaskit/editor-toolbar-model": "^0.5.0",
60
60
  "@atlaskit/emoji": "^70.7.0",
61
61
  "@atlaskit/icon": "^34.5.0",
@@ -87,7 +87,7 @@
87
87
  "@atlaskit/task-decision": "^20.1.0",
88
88
  "@atlaskit/teams-app-config": "^1.12.0",
89
89
  "@atlaskit/textfield": "^8.3.0",
90
- "@atlaskit/tmp-editor-statsig": "^80.3.0",
90
+ "@atlaskit/tmp-editor-statsig": "^81.0.0",
91
91
  "@atlaskit/tokens": "^13.0.0",
92
92
  "@atlaskit/tooltip": "^22.2.0",
93
93
  "@atlaskit/width-detector": "^5.1.0",
@@ -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
  }