@atlaskit/editor-common 111.0.5 → 111.2.0

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,30 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 111.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ba0e1d49e14cb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ba0e1d49e14cb) -
8
+ ENGHEALTH-40073: Make tables and extensions focusable if they have overscroll so that they can be
9
+ interacted with in an accessible way.
10
+
11
+ ### Patch Changes
12
+
13
+ - [`38bc4d5d6185c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38bc4d5d6185c) -
14
+ Fixes nested tables in SSR renderer
15
+ - Updated dependencies
16
+
17
+ ## 111.1.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [`00e69e0b7c839`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/00e69e0b7c839) -
22
+ Clean up and removal of the `platform-visual-refresh-icons` feature flag.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 111.0.5
4
29
 
5
30
  ### Patch 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 = "111.0.4";
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
@@ -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 = "111.0.4";
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)({
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.iconOnlySpacing = exports.getButtonStyles = void 0;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
7
  var iconOnlySpacing = exports.iconOnlySpacing = {
9
8
  '&&': {
10
9
  padding: '0px'
@@ -25,22 +24,6 @@ var getStyles = function getStyles(property, _ref) {
25
24
  }
26
25
  return property[appearance][state][mode];
27
26
  };
28
- var background = {
29
- danger: {
30
- default: {
31
- light: 'inherit',
32
- dark: 'inherit'
33
- },
34
- hover: {
35
- light: "var(--ds-background-neutral-subtle-hovered, #0515240F)",
36
- dark: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
37
- },
38
- active: {
39
- light: "var(--ds-background-neutral-pressed, #080F214A)",
40
- dark: "var(--ds-background-neutral-pressed, #080F214A)"
41
- }
42
- }
43
- };
44
27
  var backgroundVisualRefresh = {
45
28
  danger: {
46
29
  default: {
@@ -57,22 +40,6 @@ var backgroundVisualRefresh = {
57
40
  }
58
41
  }
59
42
  };
60
- var color = {
61
- danger: {
62
- default: {
63
- light: "var(--ds-icon, #292A2E)",
64
- dark: "var(--ds-icon, #292A2E)"
65
- },
66
- hover: {
67
- light: "var(--ds-icon-danger, #C9372C)",
68
- dark: "var(--ds-icon-danger, #C9372C)"
69
- },
70
- active: {
71
- light: "var(--ds-icon-danger, #C9372C)",
72
- dark: "var(--ds-icon-danger, #C9372C)"
73
- }
74
- }
75
- };
76
43
  var colorVisualRefresh = {
77
44
  danger: {
78
45
  default: {
@@ -94,7 +61,7 @@ var colorVisualRefresh = {
94
61
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
95
62
  var getButtonStyles = exports.getButtonStyles = function getButtonStyles(props) {
96
63
  return {
97
- background: getStyles((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? backgroundVisualRefresh : background, props),
98
- color: getStyles((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? colorVisualRefresh : color, props)
64
+ background: getStyles(backgroundVisualRefresh, props),
65
+ color: getStyles(colorVisualRefresh, props)
99
66
  };
100
67
  };
@@ -14,6 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
14
14
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
16
  var _react = _interopRequireDefault(require("react"));
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
18
  var _shadowObserver = require("./shadowObserver");
18
19
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
19
20
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -163,13 +164,23 @@ function overflowShadow(Component, options) {
163
164
  showLeftShadow = _this$state.showLeftShadow,
164
165
  showRightShadow = _this$state.showRightShadow;
165
166
  var classNames = [!((_this$props = this.props) !== null && _this$props !== void 0 && _this$props.disableTableOverflowShadow) && showRightShadow && shadowClassNames.RIGHT_SHADOW, !((_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.disableTableOverflowShadow) && showLeftShadow && shadowClassNames.LEFT_SHADOW, options.useShadowObserver && _shadowObserver.shadowObserverClassNames.SHADOW_CONTAINER].filter(Boolean).join(' ');
167
+
168
+ /**
169
+ * The widths have already been calculated to determine
170
+ * showRightShadow and showLeftShadow. If either is true,
171
+ * then the content is scrollable and we need to set the
172
+ * tabIndex to 0 to allow the user to scroll the content
173
+ * for a11y purposes.
174
+ */
175
+ var hasOverflowScroll = showRightShadow || showLeftShadow;
166
176
  return (
167
177
  /*#__PURE__*/
168
178
  // Ignored via go/ees005
169
- // eslint-disable-next-line react/jsx-props-no-spreading
170
179
  _react.default.createElement(Component, (0, _extends2.default)({
171
180
  handleRef: this.handleContainer,
181
+ tabIndex: hasOverflowScroll && (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? 0 : undefined,
172
182
  shadowClassNames: classNames
183
+ // eslint-disable-next-line react/jsx-props-no-spreading
173
184
  }, this.props))
174
185
  );
175
186
  }
@@ -9,18 +9,13 @@ exports.ToolbarButtonGroup = ToolbarButtonGroup;
9
9
  require("./ButtonGroup.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var buttonGroupStyle = null;
14
13
 
15
14
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
16
15
  var buttonGroupStyleUnbounded = null;
17
- var buttonGroupStyleBeforeVisualRefresh = null;
18
-
19
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
20
- var buttonGroupStyleBeforeVisualRefreshUnbounded = null;
21
16
  function ToolbarButtonGroup(_ref) {
22
17
  var children = _ref.children;
23
18
  return /*#__PURE__*/_react.default.createElement("span", {
24
- className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? "_zulp1b66 _1e0c116y _4cvr1h6o" : "_1e0c116y _4cvr1h6o", (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? "_11ko1txw _1p8dglyw _89rs1b66" : "_11ko1txw _1p8dglyw"])
19
+ className: (0, _runtime.ax)(["_zulp1b66 _1e0c116y _4cvr1h6o", "_11ko1txw _1p8dglyw _89rs1b66"])
25
20
  }, children);
26
21
  }
@@ -9,15 +9,13 @@ exports.ToolbarDropdownTriggerWrapper = ToolbarDropdownTriggerWrapper;
9
9
  require("./DropdownTriggerWrapper.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var triggerWrapperStylesWithPadding = null;
14
- var triggerWrapperStyles = null;
15
13
 
16
14
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
17
15
  var triggerWrapperStylesUnbounded = null;
18
16
  function ToolbarDropdownTriggerWrapper(_ref) {
19
17
  var children = _ref.children;
20
18
  return /*#__PURE__*/_react.default.createElement("div", {
21
- className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? "_1e0c1txw _u5f3v77o" : "_1e0c1txw", "_1fvdglyw"])
19
+ className: (0, _runtime.ax)(["_1e0c1txw _u5f3v77o", "_1fvdglyw"])
22
20
  }, children);
23
21
  }
@@ -12,7 +12,6 @@ var _reactIntlNext = require("react-intl-next");
12
12
  var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
13
13
  var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
14
14
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
15
- var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
16
15
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
17
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _primitives = require("@atlaskit/primitives");
@@ -38,12 +37,6 @@ var _types = require("../ArrowKeyNavigationProvider/types");
38
37
  var colorPickerButtonWrapper = (0, _react2.css)({
39
38
  position: 'relative'
40
39
  });
41
- var colorPickerExpandContainer = (0, _primitives.xcss)({
42
- marginTop: 'space.0',
43
- marginBottom: 'space.0',
44
- marginLeft: 'space.negative.050',
45
- marginRight: 'space.negative.050'
46
- });
47
40
  var colorPickerExpandContainerVisualRefresh = (0, _primitives.xcss)({
48
41
  marginTop: 'space.negative.025',
49
42
  marginRight: 'space.negative.050'
@@ -204,11 +197,9 @@ var ColorPickerButton = function ColorPickerButton(props) {
204
197
  };
205
198
  var title = props.title || '';
206
199
  var currentColor = props.currentColor && props.hexToPaletteColor ? props.hexToPaletteColor(props.currentColor) : props.currentColor;
207
- var buttonStyle = function buttonStyle() {
200
+ var buttonStyleVisualRefresh = function buttonStyleVisualRefresh() {
208
201
  var _props$size, _props$size2, _props$size3;
209
202
  return (0, _react2.css)({
210
- padding: "var(--ds-space-075, 6px)".concat(" 10px"),
211
- backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
212
203
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
213
204
  height: "".concat(!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''),
214
205
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
@@ -227,35 +218,6 @@ var ColorPickerButton = function ColorPickerButton(props) {
227
218
  width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
228
219
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
229
220
  height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
230
- padding: 0,
231
- margin: "0px ".concat("var(--ds-space-025, 2px)")
232
- },
233
- '&:hover': {
234
- background: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
235
- }
236
- });
237
- };
238
- var buttonStyleVisualRefresh = function buttonStyleVisualRefresh() {
239
- var _props$size4, _props$size5, _props$size6;
240
- return (0, _react2.css)({
241
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
242
- height: "".concat(!!((_props$size4 = props.size) !== null && _props$size4 !== void 0 && _props$size4.height) ? 'inherit' : ''),
243
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
244
- '&:before': {
245
- display: 'flex',
246
- justifyContent: 'center',
247
- alignItems: 'center',
248
- alignSelf: 'center',
249
- content: "''",
250
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
251
- border: "var(--ds-border-width, 1px)".concat(" solid ", _uiColor.DEFAULT_BORDER_COLOR),
252
- borderRadius: "var(--ds-radius-small, 3px)",
253
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
254
- backgroundColor: currentColor || 'transparent',
255
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
256
- width: ((_props$size5 = props.size) === null || _props$size5 === void 0 ? void 0 : _props$size5.width) || '14px',
257
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
258
- height: ((_props$size6 = props.size) === null || _props$size6 === void 0 ? void 0 : _props$size6.height) || '14px',
259
221
  marginTop: "var(--ds-space-025, 2px)"
260
222
  }
261
223
  });
@@ -265,7 +227,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
265
227
  }, (0, _react2.jsx)(_tooltip.default, {
266
228
  content: title,
267
229
  position: "top"
268
- }, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.jsx)("div", {
230
+ }, (0, _react2.jsx)("div", {
269
231
  css: colorPickerButtonStyle
270
232
  }, (0, _react2.jsx)(_new.default, {
271
233
  appearance: 'subtle',
@@ -295,33 +257,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
295
257
  spacing: "spacious",
296
258
  label: "color-picker-chevron-down",
297
259
  size: "small"
298
- }))))) : (0, _react2.jsx)(_standardButton.default, {
299
- appearance: 'subtle',
300
- ref: buttonRef,
301
- "aria-label": title,
302
- "aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
303
- spacing: "compact",
304
- onClick: togglePopup,
305
- onKeyDown: function onKeyDown(event) {
306
- if (event.key === 'Enter' || event.key === ' ') {
307
- event.preventDefault();
308
- togglePopup();
309
- setIsOpenedByKeyboard(true);
310
- }
311
- }
312
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
313
- ,
314
- css: buttonStyle,
315
- iconAfter: (0, _react2.jsx)(_primitives.Box, {
316
- xcss: colorPickerExpandContainer
317
- }, (0, _react2.jsx)(_chevronDown.default, {
318
- color: "currentColor",
319
- spacing: "spacious",
320
- label: "color-picker-chevron-down",
321
- size: "small"
322
- })),
323
- "data-selected-color": props.currentColor
324
- })), renderPopup());
260
+ })))))), renderPopup());
325
261
  };
326
262
  var _default = exports.default = (0, _withAnalyticsContext.default)({
327
263
  source: 'ConfigPanel'
@@ -11,6 +11,7 @@ var _model = require("@atlaskit/editor-prosemirror/model");
11
11
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
12
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
13
13
  var _analytics = require("../analytics");
14
+ var _utilities = require("../nesting/utilities");
14
15
  var _privacyFilter = require("./filter/privacy-filter");
15
16
  var _trackUnsupportedContent = require("./track-unsupported-content");
16
17
  var _validateUsingSpec = require("./validate-using-spec");
@@ -234,7 +235,10 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
234
235
  if ((0, _expValEquals.expValEquals)('platform_editor_ssr_renderer', 'isEnabled', true)) {
235
236
  // Validate ADF first before converting nested-table extensions into nested tables
236
237
  // This matches the renderer's behavior in render-document.ts
237
- entity = (0, _validateUsingSpec.validateADFEntity)(schema, transformedAdf || node, dispatchAnalyticsEvent);
238
+ var allowNestedTables = (0, _utilities.isNestedTablesSupported)(schema);
239
+ entity = (0, _validateUsingSpec.validateADFEntity)(schema, transformedAdf || node, dispatchAnalyticsEvent, allowNestedTables ? {
240
+ allowNestedTables: allowNestedTables
241
+ } : undefined);
238
242
 
239
243
  // Convert nested-table extensions into nested tables
240
244
  var _transformNestedTable3 = transformNestedTablesWithAnalytics(entity, dispatchAnalyticsEvent);
@@ -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 = "111.0.4";
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
@@ -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 = "111.0.4";
17
+ const packageVersion = "0.0.0-development";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  export const iconOnlySpacing = {
3
2
  '&&': {
4
3
  padding: '0px'
@@ -17,22 +16,6 @@ const getStyles = (property, {
17
16
  }
18
17
  return property[appearance][state][mode];
19
18
  };
20
- const background = {
21
- danger: {
22
- default: {
23
- light: 'inherit',
24
- dark: 'inherit'
25
- },
26
- hover: {
27
- light: "var(--ds-background-neutral-subtle-hovered, #0515240F)",
28
- dark: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
29
- },
30
- active: {
31
- light: "var(--ds-background-neutral-pressed, #080F214A)",
32
- dark: "var(--ds-background-neutral-pressed, #080F214A)"
33
- }
34
- }
35
- };
36
19
  const backgroundVisualRefresh = {
37
20
  danger: {
38
21
  default: {
@@ -49,22 +32,6 @@ const backgroundVisualRefresh = {
49
32
  }
50
33
  }
51
34
  };
52
- const color = {
53
- danger: {
54
- default: {
55
- light: "var(--ds-icon, #292A2E)",
56
- dark: "var(--ds-icon, #292A2E)"
57
- },
58
- hover: {
59
- light: "var(--ds-icon-danger, #C9372C)",
60
- dark: "var(--ds-icon-danger, #C9372C)"
61
- },
62
- active: {
63
- light: "var(--ds-icon-danger, #C9372C)",
64
- dark: "var(--ds-icon-danger, #C9372C)"
65
- }
66
- }
67
- };
68
35
  const colorVisualRefresh = {
69
36
  danger: {
70
37
  default: {
@@ -85,6 +52,6 @@ const colorVisualRefresh = {
85
52
  // Ignored via go/ees005
86
53
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
87
54
  export const getButtonStyles = props => ({
88
- background: getStyles(fg('platform-visual-refresh-icons') ? backgroundVisualRefresh : background, props),
89
- color: getStyles(fg('platform-visual-refresh-icons') ? colorVisualRefresh : color, props)
55
+ background: getStyles(backgroundVisualRefresh, props),
56
+ color: getStyles(colorVisualRefresh, props)
90
57
  });
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React from 'react';
4
+ import { fg } from '@atlaskit/platform-feature-flags';
4
5
  import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
5
6
  export const shadowClassNames = {
6
7
  RIGHT_SHADOW: 'right-shadow',
@@ -135,13 +136,23 @@ export default function overflowShadow(Component, options) {
135
136
  showRightShadow
136
137
  } = this.state;
137
138
  const classNames = [!((_this$props = this.props) !== null && _this$props !== void 0 && _this$props.disableTableOverflowShadow) && showRightShadow && shadowClassNames.RIGHT_SHADOW, !((_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.disableTableOverflowShadow) && showLeftShadow && shadowClassNames.LEFT_SHADOW, options.useShadowObserver && shadowObserverClassNames.SHADOW_CONTAINER].filter(Boolean).join(' ');
139
+
140
+ /**
141
+ * The widths have already been calculated to determine
142
+ * showRightShadow and showLeftShadow. If either is true,
143
+ * then the content is scrollable and we need to set the
144
+ * tabIndex to 0 to allow the user to scroll the content
145
+ * for a11y purposes.
146
+ */
147
+ const hasOverflowScroll = showRightShadow || showLeftShadow;
138
148
  return (
139
149
  /*#__PURE__*/
140
150
  // Ignored via go/ees005
141
- // eslint-disable-next-line react/jsx-props-no-spreading
142
151
  React.createElement(Component, _extends({
143
152
  handleRef: this.handleContainer,
153
+ tabIndex: hasOverflowScroll && fg('platform_editor_dec_a11y_fixes') ? 0 : undefined,
144
154
  shadowClassNames: classNames
155
+ // eslint-disable-next-line react/jsx-props-no-spreading
145
156
  }, this.props))
146
157
  );
147
158
  }
@@ -2,19 +2,14 @@
2
2
  import "./ButtonGroup.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  const buttonGroupStyle = null;
7
6
 
8
7
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
9
8
  const buttonGroupStyleUnbounded = null;
10
- const buttonGroupStyleBeforeVisualRefresh = null;
11
-
12
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
13
- const buttonGroupStyleBeforeVisualRefreshUnbounded = null;
14
9
  export function ToolbarButtonGroup({
15
10
  children
16
11
  }) {
17
12
  return /*#__PURE__*/React.createElement("span", {
18
- className: ax([fg('platform-visual-refresh-icons') ? "_zulp1b66 _1e0c116y _4cvr1h6o" : "_1e0c116y _4cvr1h6o", fg('platform-visual-refresh-icons') ? "_11ko1txw _1p8dglyw _89rs1b66" : "_11ko1txw _1p8dglyw"])
13
+ className: ax(["_zulp1b66 _1e0c116y _4cvr1h6o", "_11ko1txw _1p8dglyw _89rs1b66"])
19
14
  }, children);
20
15
  }
@@ -2,9 +2,7 @@
2
2
  import "./DropdownTriggerWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  const triggerWrapperStylesWithPadding = null;
7
- const triggerWrapperStyles = null;
8
6
 
9
7
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
10
8
  const triggerWrapperStylesUnbounded = null;
@@ -12,6 +10,6 @@ export function ToolbarDropdownTriggerWrapper({
12
10
  children
13
11
  }) {
14
12
  return /*#__PURE__*/React.createElement("div", {
15
- className: ax([fg('platform-visual-refresh-icons') ? "_1e0c1txw _u5f3v77o" : "_1e0c1txw", "_1fvdglyw"])
13
+ className: ax(["_1e0c1txw _u5f3v77o", "_1fvdglyw"])
16
14
  }, children);
17
15
  }
@@ -10,7 +10,6 @@ import { useIntl } from 'react-intl-next';
10
10
  import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
11
11
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
12
12
  import Button from '@atlaskit/button/new';
13
- import LegacyButton from '@atlaskit/button/standard-button';
14
13
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
15
14
  import { fg } from '@atlaskit/platform-feature-flags';
16
15
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
@@ -29,12 +28,6 @@ import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
29
28
  const colorPickerButtonWrapper = css({
30
29
  position: 'relative'
31
30
  });
32
- const colorPickerExpandContainer = xcss({
33
- marginTop: 'space.0',
34
- marginBottom: 'space.0',
35
- marginLeft: 'space.negative.050',
36
- marginRight: 'space.negative.050'
37
- });
38
31
  const colorPickerExpandContainerVisualRefresh = xcss({
39
32
  marginTop: 'space.negative.025',
40
33
  marginRight: 'space.negative.050'
@@ -184,11 +177,9 @@ const ColorPickerButton = props => {
184
177
  };
185
178
  const title = props.title || '';
186
179
  const currentColor = props.currentColor && props.hexToPaletteColor ? props.hexToPaletteColor(props.currentColor) : props.currentColor;
187
- const buttonStyle = () => {
180
+ const buttonStyleVisualRefresh = () => {
188
181
  var _props$size, _props$size2, _props$size3;
189
182
  return css({
190
- padding: `${"var(--ds-space-075, 6px)"} 10px`,
191
- backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
192
183
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
193
184
  height: `${!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''}`,
194
185
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
@@ -207,35 +198,6 @@ const ColorPickerButton = props => {
207
198
  width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
208
199
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
209
200
  height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
210
- padding: 0,
211
- margin: `0px ${"var(--ds-space-025, 2px)"}`
212
- },
213
- '&:hover': {
214
- background: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
215
- }
216
- });
217
- };
218
- const buttonStyleVisualRefresh = () => {
219
- var _props$size4, _props$size5, _props$size6;
220
- return css({
221
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
222
- height: `${!!((_props$size4 = props.size) !== null && _props$size4 !== void 0 && _props$size4.height) ? 'inherit' : ''}`,
223
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
224
- '&:before': {
225
- display: 'flex',
226
- justifyContent: 'center',
227
- alignItems: 'center',
228
- alignSelf: 'center',
229
- content: "''",
230
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
231
- border: `${"var(--ds-border-width, 1px)"} solid ${DEFAULT_BORDER_COLOR}`,
232
- borderRadius: "var(--ds-radius-small, 3px)",
233
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
234
- backgroundColor: currentColor || 'transparent',
235
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
236
- width: ((_props$size5 = props.size) === null || _props$size5 === void 0 ? void 0 : _props$size5.width) || '14px',
237
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
238
- height: ((_props$size6 = props.size) === null || _props$size6 === void 0 ? void 0 : _props$size6.height) || '14px',
239
201
  marginTop: `${"var(--ds-space-025, 2px)"}`
240
202
  }
241
203
  });
@@ -245,7 +207,7 @@ const ColorPickerButton = props => {
245
207
  }, jsx(Tooltip, {
246
208
  content: title,
247
209
  position: "top"
248
- }, fg('platform-visual-refresh-icons') ? jsx("div", {
210
+ }, jsx("div", {
249
211
  css: colorPickerButtonStyle
250
212
  }, jsx(Button, {
251
213
  appearance: 'subtle',
@@ -275,33 +237,7 @@ const ColorPickerButton = props => {
275
237
  spacing: "spacious",
276
238
  label: "color-picker-chevron-down",
277
239
  size: "small"
278
- }))))) : jsx(LegacyButton, {
279
- appearance: 'subtle',
280
- ref: buttonRef,
281
- "aria-label": title,
282
- "aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
283
- spacing: "compact",
284
- onClick: togglePopup,
285
- onKeyDown: event => {
286
- if (event.key === 'Enter' || event.key === ' ') {
287
- event.preventDefault();
288
- togglePopup();
289
- setIsOpenedByKeyboard(true);
290
- }
291
- }
292
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
293
- ,
294
- css: buttonStyle,
295
- iconAfter: jsx(Box, {
296
- xcss: colorPickerExpandContainer
297
- }, jsx(ChevronDownIcon, {
298
- color: "currentColor",
299
- spacing: "spacious",
300
- label: "color-picker-chevron-down",
301
- size: "small"
302
- })),
303
- "data-selected-color": props.currentColor
304
- })), renderPopup());
240
+ })))))), renderPopup());
305
241
  };
306
242
  export default withAnalyticsContext({
307
243
  source: 'ConfigPanel'
@@ -3,6 +3,7 @@ import { Fragment, Node } from '@atlaskit/editor-prosemirror/model';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
5
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
6
+ import { isNestedTablesSupported } from '../nesting/utilities';
6
7
  import { sanitizeNodeForPrivacy } from './filter/privacy-filter';
7
8
  import { findAndTrackUnsupportedContentNodes } from './track-unsupported-content';
8
9
  import { validateADFEntity } from './validate-using-spec';
@@ -233,7 +234,10 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
233
234
  if (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true)) {
234
235
  // Validate ADF first before converting nested-table extensions into nested tables
235
236
  // This matches the renderer's behavior in render-document.ts
236
- entity = validateADFEntity(schema, transformedAdf || node, dispatchAnalyticsEvent);
237
+ const allowNestedTables = isNestedTablesSupported(schema);
238
+ entity = validateADFEntity(schema, transformedAdf || node, dispatchAnalyticsEvent, allowNestedTables ? {
239
+ allowNestedTables
240
+ } : undefined);
237
241
 
238
242
  // Convert nested-table extensions into nested tables
239
243
  ({
@@ -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 = "111.0.4";
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
@@ -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 = "111.0.4";
24
+ var packageVersion = "0.0.0-development";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  export var iconOnlySpacing = {
3
2
  '&&': {
4
3
  padding: '0px'
@@ -19,22 +18,6 @@ var getStyles = function getStyles(property, _ref) {
19
18
  }
20
19
  return property[appearance][state][mode];
21
20
  };
22
- var background = {
23
- danger: {
24
- default: {
25
- light: 'inherit',
26
- dark: 'inherit'
27
- },
28
- hover: {
29
- light: "var(--ds-background-neutral-subtle-hovered, #0515240F)",
30
- dark: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
31
- },
32
- active: {
33
- light: "var(--ds-background-neutral-pressed, #080F214A)",
34
- dark: "var(--ds-background-neutral-pressed, #080F214A)"
35
- }
36
- }
37
- };
38
21
  var backgroundVisualRefresh = {
39
22
  danger: {
40
23
  default: {
@@ -51,22 +34,6 @@ var backgroundVisualRefresh = {
51
34
  }
52
35
  }
53
36
  };
54
- var color = {
55
- danger: {
56
- default: {
57
- light: "var(--ds-icon, #292A2E)",
58
- dark: "var(--ds-icon, #292A2E)"
59
- },
60
- hover: {
61
- light: "var(--ds-icon-danger, #C9372C)",
62
- dark: "var(--ds-icon-danger, #C9372C)"
63
- },
64
- active: {
65
- light: "var(--ds-icon-danger, #C9372C)",
66
- dark: "var(--ds-icon-danger, #C9372C)"
67
- }
68
- }
69
- };
70
37
  var colorVisualRefresh = {
71
38
  danger: {
72
39
  default: {
@@ -88,7 +55,7 @@ var colorVisualRefresh = {
88
55
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
89
56
  export var getButtonStyles = function getButtonStyles(props) {
90
57
  return {
91
- background: getStyles(fg('platform-visual-refresh-icons') ? backgroundVisualRefresh : background, props),
92
- color: getStyles(fg('platform-visual-refresh-icons') ? colorVisualRefresh : color, props)
58
+ background: getStyles(backgroundVisualRefresh, props),
59
+ color: getStyles(colorVisualRefresh, props)
93
60
  };
94
61
  };
@@ -8,6 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
11
12
  import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
12
13
  export var shadowClassNames = {
13
14
  RIGHT_SHADOW: 'right-shadow',
@@ -155,13 +156,23 @@ export default function overflowShadow(Component, options) {
155
156
  showLeftShadow = _this$state.showLeftShadow,
156
157
  showRightShadow = _this$state.showRightShadow;
157
158
  var classNames = [!((_this$props = this.props) !== null && _this$props !== void 0 && _this$props.disableTableOverflowShadow) && showRightShadow && shadowClassNames.RIGHT_SHADOW, !((_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.disableTableOverflowShadow) && showLeftShadow && shadowClassNames.LEFT_SHADOW, options.useShadowObserver && shadowObserverClassNames.SHADOW_CONTAINER].filter(Boolean).join(' ');
159
+
160
+ /**
161
+ * The widths have already been calculated to determine
162
+ * showRightShadow and showLeftShadow. If either is true,
163
+ * then the content is scrollable and we need to set the
164
+ * tabIndex to 0 to allow the user to scroll the content
165
+ * for a11y purposes.
166
+ */
167
+ var hasOverflowScroll = showRightShadow || showLeftShadow;
158
168
  return (
159
169
  /*#__PURE__*/
160
170
  // Ignored via go/ees005
161
- // eslint-disable-next-line react/jsx-props-no-spreading
162
171
  React.createElement(Component, _extends({
163
172
  handleRef: this.handleContainer,
173
+ tabIndex: hasOverflowScroll && fg('platform_editor_dec_a11y_fixes') ? 0 : undefined,
164
174
  shadowClassNames: classNames
175
+ // eslint-disable-next-line react/jsx-props-no-spreading
165
176
  }, this.props))
166
177
  );
167
178
  }
@@ -2,18 +2,13 @@
2
2
  import "./ButtonGroup.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  var buttonGroupStyle = null;
7
6
 
8
7
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
9
8
  var buttonGroupStyleUnbounded = null;
10
- var buttonGroupStyleBeforeVisualRefresh = null;
11
-
12
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
13
- var buttonGroupStyleBeforeVisualRefreshUnbounded = null;
14
9
  export function ToolbarButtonGroup(_ref) {
15
10
  var children = _ref.children;
16
11
  return /*#__PURE__*/React.createElement("span", {
17
- className: ax([fg('platform-visual-refresh-icons') ? "_zulp1b66 _1e0c116y _4cvr1h6o" : "_1e0c116y _4cvr1h6o", fg('platform-visual-refresh-icons') ? "_11ko1txw _1p8dglyw _89rs1b66" : "_11ko1txw _1p8dglyw"])
12
+ className: ax(["_zulp1b66 _1e0c116y _4cvr1h6o", "_11ko1txw _1p8dglyw _89rs1b66"])
18
13
  }, children);
19
14
  }
@@ -2,15 +2,13 @@
2
2
  import "./DropdownTriggerWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  var triggerWrapperStylesWithPadding = null;
7
- var triggerWrapperStyles = null;
8
6
 
9
7
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
10
8
  var triggerWrapperStylesUnbounded = null;
11
9
  export function ToolbarDropdownTriggerWrapper(_ref) {
12
10
  var children = _ref.children;
13
11
  return /*#__PURE__*/React.createElement("div", {
14
- className: ax([fg('platform-visual-refresh-icons') ? "_1e0c1txw _u5f3v77o" : "_1e0c1txw", "_1fvdglyw"])
12
+ className: ax(["_1e0c1txw _u5f3v77o", "_1fvdglyw"])
15
13
  }, children);
16
14
  }
@@ -11,7 +11,6 @@ import { useIntl } from 'react-intl-next';
11
11
  import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
12
12
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
13
13
  import Button from '@atlaskit/button/new';
14
- import LegacyButton from '@atlaskit/button/standard-button';
15
14
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
16
15
  import { fg } from '@atlaskit/platform-feature-flags';
17
16
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
@@ -30,12 +29,6 @@ import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
30
29
  var colorPickerButtonWrapper = css({
31
30
  position: 'relative'
32
31
  });
33
- var colorPickerExpandContainer = xcss({
34
- marginTop: 'space.0',
35
- marginBottom: 'space.0',
36
- marginLeft: 'space.negative.050',
37
- marginRight: 'space.negative.050'
38
- });
39
32
  var colorPickerExpandContainerVisualRefresh = xcss({
40
33
  marginTop: 'space.negative.025',
41
34
  marginRight: 'space.negative.050'
@@ -196,11 +189,9 @@ var ColorPickerButton = function ColorPickerButton(props) {
196
189
  };
197
190
  var title = props.title || '';
198
191
  var currentColor = props.currentColor && props.hexToPaletteColor ? props.hexToPaletteColor(props.currentColor) : props.currentColor;
199
- var buttonStyle = function buttonStyle() {
192
+ var buttonStyleVisualRefresh = function buttonStyleVisualRefresh() {
200
193
  var _props$size, _props$size2, _props$size3;
201
194
  return css({
202
- padding: "var(--ds-space-075, 6px)".concat(" 10px"),
203
- backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
204
195
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
205
196
  height: "".concat(!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''),
206
197
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
@@ -219,35 +210,6 @@ var ColorPickerButton = function ColorPickerButton(props) {
219
210
  width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
220
211
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
221
212
  height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
222
- padding: 0,
223
- margin: "0px ".concat("var(--ds-space-025, 2px)")
224
- },
225
- '&:hover': {
226
- background: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
227
- }
228
- });
229
- };
230
- var buttonStyleVisualRefresh = function buttonStyleVisualRefresh() {
231
- var _props$size4, _props$size5, _props$size6;
232
- return css({
233
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
234
- height: "".concat(!!((_props$size4 = props.size) !== null && _props$size4 !== void 0 && _props$size4.height) ? 'inherit' : ''),
235
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
236
- '&:before': {
237
- display: 'flex',
238
- justifyContent: 'center',
239
- alignItems: 'center',
240
- alignSelf: 'center',
241
- content: "''",
242
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
243
- border: "var(--ds-border-width, 1px)".concat(" solid ", DEFAULT_BORDER_COLOR),
244
- borderRadius: "var(--ds-radius-small, 3px)",
245
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
246
- backgroundColor: currentColor || 'transparent',
247
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
248
- width: ((_props$size5 = props.size) === null || _props$size5 === void 0 ? void 0 : _props$size5.width) || '14px',
249
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
250
- height: ((_props$size6 = props.size) === null || _props$size6 === void 0 ? void 0 : _props$size6.height) || '14px',
251
213
  marginTop: "var(--ds-space-025, 2px)"
252
214
  }
253
215
  });
@@ -257,7 +219,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
257
219
  }, jsx(Tooltip, {
258
220
  content: title,
259
221
  position: "top"
260
- }, fg('platform-visual-refresh-icons') ? jsx("div", {
222
+ }, jsx("div", {
261
223
  css: colorPickerButtonStyle
262
224
  }, jsx(Button, {
263
225
  appearance: 'subtle',
@@ -287,33 +249,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
287
249
  spacing: "spacious",
288
250
  label: "color-picker-chevron-down",
289
251
  size: "small"
290
- }))))) : jsx(LegacyButton, {
291
- appearance: 'subtle',
292
- ref: buttonRef,
293
- "aria-label": title,
294
- "aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
295
- spacing: "compact",
296
- onClick: togglePopup,
297
- onKeyDown: function onKeyDown(event) {
298
- if (event.key === 'Enter' || event.key === ' ') {
299
- event.preventDefault();
300
- togglePopup();
301
- setIsOpenedByKeyboard(true);
302
- }
303
- }
304
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
305
- ,
306
- css: buttonStyle,
307
- iconAfter: jsx(Box, {
308
- xcss: colorPickerExpandContainer
309
- }, jsx(ChevronDownIcon, {
310
- color: "currentColor",
311
- spacing: "spacious",
312
- label: "color-picker-chevron-down",
313
- size: "small"
314
- })),
315
- "data-selected-color": props.currentColor
316
- })), renderPopup());
252
+ })))))), renderPopup());
317
253
  };
318
254
  export default withAnalyticsContext({
319
255
  source: 'ConfigPanel'
@@ -3,6 +3,7 @@ import { Fragment, Node } from '@atlaskit/editor-prosemirror/model';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
5
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
6
+ import { isNestedTablesSupported } from '../nesting/utilities';
6
7
  import { sanitizeNodeForPrivacy } from './filter/privacy-filter';
7
8
  import { findAndTrackUnsupportedContentNodes } from './track-unsupported-content';
8
9
  import { validateADFEntity } from './validate-using-spec';
@@ -226,7 +227,10 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
226
227
  if (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true)) {
227
228
  // Validate ADF first before converting nested-table extensions into nested tables
228
229
  // This matches the renderer's behavior in render-document.ts
229
- entity = validateADFEntity(schema, transformedAdf || node, dispatchAnalyticsEvent);
230
+ var allowNestedTables = isNestedTablesSupported(schema);
231
+ entity = validateADFEntity(schema, transformedAdf || node, dispatchAnalyticsEvent, allowNestedTables ? {
232
+ allowNestedTables: allowNestedTables
233
+ } : undefined);
230
234
 
231
235
  // Convert nested-table extensions into nested tables
232
236
  var _transformNestedTable3 = transformNestedTablesWithAnalytics(entity, dispatchAnalyticsEvent);
@@ -8,6 +8,7 @@ export interface OverflowShadowProps {
8
8
  disableTableOverflowShadow?: boolean;
9
9
  handleRef?: (ref: HTMLElement | null) => void;
10
10
  shadowClassNames?: string;
11
+ tabIndex?: number;
11
12
  }
12
13
  export interface OverflowShadowState {
13
14
  showLeftShadow: boolean;
@@ -8,6 +8,7 @@ export interface OverflowShadowProps {
8
8
  disableTableOverflowShadow?: boolean;
9
9
  handleRef?: (ref: HTMLElement | null) => void;
10
10
  shadowClassNames?: string;
11
+ tabIndex?: number;
11
12
  }
12
13
  export interface OverflowShadowState {
13
14
  showLeftShadow: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "111.0.5",
3
+ "version": "111.2.0",
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/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/codemod-utils": "^4.2.0",
42
42
  "@atlaskit/css": "^0.19.0",
43
43
  "@atlaskit/custom-steps": "^0.16.0",
44
- "@atlaskit/dropdown-menu": "^16.3.0",
44
+ "@atlaskit/dropdown-menu": "^16.4.0",
45
45
  "@atlaskit/editor-json-transformer": "^8.31.0",
46
46
  "@atlaskit/editor-palette": "^2.1.0",
47
47
  "@atlaskit/editor-prosemirror": "^7.2.0",
@@ -52,10 +52,10 @@
52
52
  "@atlaskit/emoji": "^69.9.0",
53
53
  "@atlaskit/icon": "^29.3.0",
54
54
  "@atlaskit/icon-object": "^7.4.0",
55
- "@atlaskit/link": "^3.2.0",
55
+ "@atlaskit/link": "^3.3.0",
56
56
  "@atlaskit/link-datasource": "^4.30.0",
57
57
  "@atlaskit/link-picker": "^4.2.0",
58
- "@atlaskit/media-card": "^79.11.0",
58
+ "@atlaskit/media-card": "^79.12.0",
59
59
  "@atlaskit/media-client": "^35.7.0",
60
60
  "@atlaskit/media-client-react": "^4.1.0",
61
61
  "@atlaskit/media-common": "^12.3.0",
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/prosemirror-history": "^0.2.0",
75
75
  "@atlaskit/react-ufo": "^4.16.0",
76
76
  "@atlaskit/section-message": "^8.11.0",
77
- "@atlaskit/smart-card": "^43.17.0",
77
+ "@atlaskit/smart-card": "^43.18.0",
78
78
  "@atlaskit/smart-user-picker": "^8.5.0",
79
79
  "@atlaskit/spinner": "^19.0.0",
80
80
  "@atlaskit/status": "^3.0.0",