@atlaskit/editor-common 102.13.4 → 102.13.5

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,17 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 102.13.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#131048](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/131048)
8
+ [`40f0ae20820a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/40f0ae20820a0) -
9
+ Clean up platform_editor_advanced_layouts_a11y
10
+ - [#130397](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130397)
11
+ [`632086ddddec2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/632086ddddec2) -
12
+ [ux] fix drag handlers for multibodied extensions
13
+ - Updated dependencies
14
+
3
15
  ## 102.13.4
4
16
 
5
17
  ### Patch Changes
@@ -201,7 +201,8 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
201
201
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
202
202
  ,
203
203
  css: _styles.mbeExtensionWrapperCSSStyles,
204
- "data-testid": "multiBodiedExtension--wrapper"
204
+ "data-testid": "multiBodiedExtension--wrapper",
205
+ "data-layout": node.attrs.layout
205
206
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
206
207
  ,
207
208
  style: mbeWrapperStyles,
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  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; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "102.13.4";
20
+ var packageVersion = "102.13.5";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // Ignored via go/ees007
@@ -251,24 +251,22 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
251
251
  if (!resizeHandleThumbEl) {
252
252
  return;
253
253
  }
254
- if ((0, _platformFeatureFlags.fg)('platform_editor_advanced_layouts_a11y')) {
255
- var editorViewDom = editorView.dom;
256
- var unbindEditorViewDom = (0, _bindEventListener.bind)(editorViewDom, {
257
- type: 'keydown',
258
- listener: resizerGlobalKeyDownHandler
259
- });
260
- var unbindResizeHandle = (0, _bindEventListener.bindAll)(resizeHandleThumbEl, [{
261
- type: 'keydown',
262
- listener: resizeHandleKeyDownHandler
263
- }, {
264
- type: 'keyup',
265
- listener: resizeHandleKeyUpHandler
266
- }]);
267
- return function () {
268
- unbindEditorViewDom();
269
- unbindResizeHandle();
270
- };
271
- }
254
+ var editorViewDom = editorView.dom;
255
+ var unbindEditorViewDom = (0, _bindEventListener.bind)(editorViewDom, {
256
+ type: 'keydown',
257
+ listener: resizerGlobalKeyDownHandler
258
+ });
259
+ var unbindResizeHandle = (0, _bindEventListener.bindAll)(resizeHandleThumbEl, [{
260
+ type: 'keydown',
261
+ listener: resizeHandleKeyDownHandler
262
+ }, {
263
+ type: 'keyup',
264
+ listener: resizeHandleKeyUpHandler
265
+ }]);
266
+ return function () {
267
+ unbindEditorViewDom();
268
+ unbindResizeHandle();
269
+ };
272
270
  }, [editorView, resizerGlobalKeyDownHandler, resizeHandleKeyDownHandler, resizeHandleKeyUpHandler]);
273
271
  if (disabled) {
274
272
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -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 = "102.13.4";
26
+ var packageVersion = "102.13.5";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -191,7 +191,8 @@ const MultiBodiedExtensionWithWidth = ({
191
191
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
192
192
  ,
193
193
  css: mbeExtensionWrapperCSSStyles,
194
- "data-testid": "multiBodiedExtension--wrapper"
194
+ "data-testid": "multiBodiedExtension--wrapper",
195
+ "data-layout": node.attrs.layout
195
196
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
196
197
  ,
197
198
  style: mbeWrapperStyles,
@@ -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 = "102.13.4";
4
+ const packageVersion = "102.13.5";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -246,24 +246,22 @@ const BreakoutResizer = ({
246
246
  if (!resizeHandleThumbEl) {
247
247
  return;
248
248
  }
249
- if (fg('platform_editor_advanced_layouts_a11y')) {
250
- const editorViewDom = editorView.dom;
251
- const unbindEditorViewDom = bind(editorViewDom, {
252
- type: 'keydown',
253
- listener: resizerGlobalKeyDownHandler
254
- });
255
- const unbindResizeHandle = bindAll(resizeHandleThumbEl, [{
256
- type: 'keydown',
257
- listener: resizeHandleKeyDownHandler
258
- }, {
259
- type: 'keyup',
260
- listener: resizeHandleKeyUpHandler
261
- }]);
262
- return () => {
263
- unbindEditorViewDom();
264
- unbindResizeHandle();
265
- };
266
- }
249
+ const editorViewDom = editorView.dom;
250
+ const unbindEditorViewDom = bind(editorViewDom, {
251
+ type: 'keydown',
252
+ listener: resizerGlobalKeyDownHandler
253
+ });
254
+ const unbindResizeHandle = bindAll(resizeHandleThumbEl, [{
255
+ type: 'keydown',
256
+ listener: resizeHandleKeyDownHandler
257
+ }, {
258
+ type: 'keyup',
259
+ listener: resizeHandleKeyUpHandler
260
+ }]);
261
+ return () => {
262
+ unbindEditorViewDom();
263
+ unbindResizeHandle();
264
+ };
267
265
  }, [editorView, resizerGlobalKeyDownHandler, resizeHandleKeyDownHandler, resizeHandleKeyUpHandler]);
268
266
  if (disabled) {
269
267
  return /*#__PURE__*/React.createElement("div", {
@@ -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 = "102.13.4";
16
+ const packageVersion = "102.13.5";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -193,7 +193,8 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
193
193
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
194
194
  ,
195
195
  css: mbeExtensionWrapperCSSStyles,
196
- "data-testid": "multiBodiedExtension--wrapper"
196
+ "data-testid": "multiBodiedExtension--wrapper",
197
+ "data-layout": node.attrs.layout
197
198
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
198
199
  ,
199
200
  style: mbeWrapperStyles,
@@ -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 = "102.13.4";
10
+ var packageVersion = "102.13.5";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -241,24 +241,22 @@ var BreakoutResizer = function BreakoutResizer(_ref) {
241
241
  if (!resizeHandleThumbEl) {
242
242
  return;
243
243
  }
244
- if (fg('platform_editor_advanced_layouts_a11y')) {
245
- var editorViewDom = editorView.dom;
246
- var unbindEditorViewDom = bind(editorViewDom, {
247
- type: 'keydown',
248
- listener: resizerGlobalKeyDownHandler
249
- });
250
- var unbindResizeHandle = bindAll(resizeHandleThumbEl, [{
251
- type: 'keydown',
252
- listener: resizeHandleKeyDownHandler
253
- }, {
254
- type: 'keyup',
255
- listener: resizeHandleKeyUpHandler
256
- }]);
257
- return function () {
258
- unbindEditorViewDom();
259
- unbindResizeHandle();
260
- };
261
- }
244
+ var editorViewDom = editorView.dom;
245
+ var unbindEditorViewDom = bind(editorViewDom, {
246
+ type: 'keydown',
247
+ listener: resizerGlobalKeyDownHandler
248
+ });
249
+ var unbindResizeHandle = bindAll(resizeHandleThumbEl, [{
250
+ type: 'keydown',
251
+ listener: resizeHandleKeyDownHandler
252
+ }, {
253
+ type: 'keyup',
254
+ listener: resizeHandleKeyUpHandler
255
+ }]);
256
+ return function () {
257
+ unbindEditorViewDom();
258
+ unbindResizeHandle();
259
+ };
262
260
  }, [editorView, resizerGlobalKeyDownHandler, resizeHandleKeyDownHandler, resizeHandleKeyUpHandler]);
263
261
  if (disabled) {
264
262
  return /*#__PURE__*/React.createElement("div", {
@@ -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 = "102.13.4";
23
+ var packageVersion = "102.13.5";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -1,5 +1,5 @@
1
1
  export type UserPreferences = {
2
- toolbarDockingInitialPosition?: 'top' | 'none';
2
+ toolbarDockingInitialPosition?: 'top' | 'none' | null;
3
3
  };
4
4
  export interface UserPreferencesProvider {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  export type UserPreferences = {
2
- toolbarDockingInitialPosition?: 'top' | 'none';
2
+ toolbarDockingInitialPosition?: 'top' | 'none' | null;
3
3
  };
4
4
  export interface UserPreferencesProvider {
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "102.13.4",
3
+ "version": "102.13.5",
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/"
@@ -160,7 +160,7 @@
160
160
  "@atlaskit/spinner": "^18.0.0",
161
161
  "@atlaskit/task-decision": "^19.1.0",
162
162
  "@atlaskit/textfield": "^8.0.0",
163
- "@atlaskit/tmp-editor-statsig": "^4.3.0",
163
+ "@atlaskit/tmp-editor-statsig": "^4.4.0",
164
164
  "@atlaskit/tokens": "^4.5.0",
165
165
  "@atlaskit/tooltip": "^20.0.0",
166
166
  "@atlaskit/width-detector": "^5.0.0",
@@ -277,9 +277,6 @@
277
277
  "platform_editor_nested_tables_renderer_styles": {
278
278
  "type": "boolean"
279
279
  },
280
- "platform_editor_advanced_layouts_a11y": {
281
- "type": "boolean"
282
- },
283
280
  "platform_editor_legacy_content_macro": {
284
281
  "type": "boolean"
285
282
  },