@atlaskit/editor-common 131.1.0 → 131.1.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 +6 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +2 -23
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/OverflowShadow/index.js +2 -14
- package/dist/es2019/extensibility/Extension/Extension/index.js +2 -21
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/OverflowShadow/index.js +2 -12
- package/dist/esm/extensibility/Extension/Extension/index.js +2 -23
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/OverflowShadow/index.js +2 -14
- package/dist/types/ui/OverflowShadow/index.d.ts +0 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -13,7 +13,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
15
|
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
16
|
-
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
17
16
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
18
17
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -44,12 +43,6 @@ var hoverStyles = (0, _react2.css)({
|
|
|
44
43
|
var containerStyle = (0, _react2.css)({
|
|
45
44
|
containerType: 'inline-size'
|
|
46
45
|
});
|
|
47
|
-
var isCssScrollTimelineSupported = (0, _memoizeOne.default)(function (css) {
|
|
48
|
-
if (!css || typeof css.supports !== 'function') {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
return css.supports('animation-timeline', '--test-timeline') && css.supports('scroll-timeline-name', '--test-timeline') && css.supports('timeline-scope', '--test-timeline') && css.supports('animation-range', '0% 101%');
|
|
52
|
-
});
|
|
53
46
|
function ExtensionWithPluginState(props) {
|
|
54
47
|
var _node$attrs;
|
|
55
48
|
var node = props.node,
|
|
@@ -120,7 +113,6 @@ function ExtensionWithPluginState(props) {
|
|
|
120
113
|
'without-frame': removeBorder
|
|
121
114
|
}, _styles2.widerLayoutClassName, shouldBreakout));
|
|
122
115
|
var overflowClassNames = (0, _classnames2.default)('extension-overflow-wrapper', {
|
|
123
|
-
'extension-scroll-inline-shadow': (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout_2'),
|
|
124
116
|
'with-body': hasBody,
|
|
125
117
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
126
118
|
// Adding extra padding for renderer view so users can have a touch target to click on the extension
|
|
@@ -240,17 +232,7 @@ function ExtensionWithPluginState(props) {
|
|
|
240
232
|
className: contentClassNames
|
|
241
233
|
}, (0, _react2.jsx)(_NodeViewContentHole.NodeViewContentHole, {
|
|
242
234
|
ref: handleContentDOMRef
|
|
243
|
-
})))), (0,
|
|
244
|
-
contentEditable: false,
|
|
245
|
-
"aria-hidden": "true",
|
|
246
|
-
"data-vc-nvs": "true",
|
|
247
|
-
"data-extension-overflow-shadow": "start"
|
|
248
|
-
}), (0, _react2.jsx)("div", {
|
|
249
|
-
contentEditable: false,
|
|
250
|
-
"aria-hidden": "true",
|
|
251
|
-
"data-vc-nvs": "true",
|
|
252
|
-
"data-extension-overflow-shadow": "end"
|
|
253
|
-
})), (0, _fg.fg)('cc_maui_annotations_on_extensions') && node.type.name === 'extension' && container && (pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.annotation) && (0, _react2.jsx)(_ExtensionCommentBadge.ExtensionCommentBadge, {
|
|
235
|
+
})))), (0, _fg.fg)('cc_maui_annotations_on_extensions') && node.type.name === 'extension' && container && (pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.annotation) && (0, _react2.jsx)(_ExtensionCommentBadge.ExtensionCommentBadge, {
|
|
254
236
|
api: pluginInjectionApi,
|
|
255
237
|
node: node,
|
|
256
238
|
getPos: getPos,
|
|
@@ -287,9 +269,6 @@ var Extension = function Extension(props) {
|
|
|
287
269
|
}, props));
|
|
288
270
|
};
|
|
289
271
|
var _default_1 = (0, _ui.overflowShadow)(Extension, {
|
|
290
|
-
overflowSelector: '.extension-overflow-wrapper'
|
|
291
|
-
isDisabled: function isDisabled() {
|
|
292
|
-
return (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout_2') && isCssScrollTimelineSupported(globalThis.CSS);
|
|
293
|
-
}
|
|
272
|
+
overflowSelector: '.extension-overflow-wrapper'
|
|
294
273
|
});
|
|
295
274
|
var _default = exports.default = _default_1;
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "131.0
|
|
30
|
+
var packageVersion = "131.1.0";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// 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 = "131.0
|
|
27
|
+
var packageVersion = "131.1.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -44,7 +44,7 @@ function overflowShadow(Component, options) {
|
|
|
44
44
|
_this.updateShadows();
|
|
45
45
|
});
|
|
46
46
|
(0, _defineProperty2.default)(_this, "updateShadows", function () {
|
|
47
|
-
if (
|
|
47
|
+
if (options.useShadowObserver) {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
_this.setState(function (prevState) {
|
|
@@ -98,9 +98,6 @@ function overflowShadow(Component, options) {
|
|
|
98
98
|
if (!_this.overflowContainer) {
|
|
99
99
|
_this.overflowContainer = container;
|
|
100
100
|
}
|
|
101
|
-
if (_this.isDisabled) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
101
|
if (options.useShadowObserver) {
|
|
105
102
|
_this.initShadowObserver();
|
|
106
103
|
return;
|
|
@@ -114,15 +111,6 @@ function overflowShadow(Component, options) {
|
|
|
114
111
|
}
|
|
115
112
|
(0, _inherits2.default)(OverflowShadow, _React$Component);
|
|
116
113
|
return (0, _createClass2.default)(OverflowShadow, [{
|
|
117
|
-
key: "isDisabled",
|
|
118
|
-
get: function get() {
|
|
119
|
-
if (this.disabled === undefined) {
|
|
120
|
-
var _options$isDisabled, _options$isDisabled2;
|
|
121
|
-
this.disabled = (_options$isDisabled = (_options$isDisabled2 = options.isDisabled) === null || _options$isDisabled2 === void 0 ? void 0 : _options$isDisabled2.call(options)) !== null && _options$isDisabled !== void 0 ? _options$isDisabled : false;
|
|
122
|
-
}
|
|
123
|
-
return this.disabled;
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
114
|
key: "componentWillUnmount",
|
|
127
115
|
value: function componentWillUnmount() {
|
|
128
116
|
if (options.useShadowObserver) {
|
|
@@ -173,7 +161,7 @@ function overflowShadow(Component, options) {
|
|
|
173
161
|
var _this$state = this.state,
|
|
174
162
|
showLeftShadow = _this$state.showLeftShadow,
|
|
175
163
|
showRightShadow = _this$state.showRightShadow;
|
|
176
|
-
var classNames =
|
|
164
|
+
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.shadowObserverClassNames.SHADOW_CONTAINER].filter(Boolean).join(' ');
|
|
177
165
|
|
|
178
166
|
/**
|
|
179
167
|
* The widths have already been calculated to determine
|
|
@@ -9,7 +9,6 @@ import React, { Fragment, useCallback, useState } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import classnames from 'classnames';
|
|
12
|
-
import memoizeOne from 'memoize-one';
|
|
13
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -31,12 +30,6 @@ const hoverStyles = css({
|
|
|
31
30
|
const containerStyle = css({
|
|
32
31
|
containerType: 'inline-size'
|
|
33
32
|
});
|
|
34
|
-
const isCssScrollTimelineSupported = memoizeOne(css => {
|
|
35
|
-
if (!css || typeof css.supports !== 'function') {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
return css.supports('animation-timeline', '--test-timeline') && css.supports('scroll-timeline-name', '--test-timeline') && css.supports('timeline-scope', '--test-timeline') && css.supports('animation-range', '0% 101%');
|
|
39
|
-
});
|
|
40
33
|
function ExtensionWithPluginState(props) {
|
|
41
34
|
var _node$attrs, _node$attrs$parameter, _node$attrs$parameter2, _node$attrs$parameter3;
|
|
42
35
|
const {
|
|
@@ -110,7 +103,6 @@ function ExtensionWithPluginState(props) {
|
|
|
110
103
|
[widerLayoutClassName]: shouldBreakout
|
|
111
104
|
});
|
|
112
105
|
const overflowClassNames = classnames('extension-overflow-wrapper', {
|
|
113
|
-
'extension-scroll-inline-shadow': isExperimentEnabled('platform_editor_reduce_forced_layout_2'),
|
|
114
106
|
'with-body': hasBody,
|
|
115
107
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
116
108
|
// Adding extra padding for renderer view so users can have a touch target to click on the extension
|
|
@@ -232,17 +224,7 @@ function ExtensionWithPluginState(props) {
|
|
|
232
224
|
className: contentClassNames
|
|
233
225
|
}, jsx(NodeViewContentHole, {
|
|
234
226
|
ref: handleContentDOMRef
|
|
235
|
-
})))),
|
|
236
|
-
contentEditable: false,
|
|
237
|
-
"aria-hidden": "true",
|
|
238
|
-
"data-vc-nvs": "true",
|
|
239
|
-
"data-extension-overflow-shadow": "start"
|
|
240
|
-
}), jsx("div", {
|
|
241
|
-
contentEditable: false,
|
|
242
|
-
"aria-hidden": "true",
|
|
243
|
-
"data-vc-nvs": "true",
|
|
244
|
-
"data-extension-overflow-shadow": "end"
|
|
245
|
-
})), fg('cc_maui_annotations_on_extensions') && node.type.name === 'extension' && container && (pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.annotation) && jsx(ExtensionCommentBadge, {
|
|
227
|
+
})))), fg('cc_maui_annotations_on_extensions') && node.type.name === 'extension' && container && (pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.annotation) && jsx(ExtensionCommentBadge, {
|
|
246
228
|
api: pluginInjectionApi,
|
|
247
229
|
node: node,
|
|
248
230
|
getPos: getPos,
|
|
@@ -280,7 +262,6 @@ const Extension = props => {
|
|
|
280
262
|
}, props));
|
|
281
263
|
};
|
|
282
264
|
const _default_1 = overflowShadow(Extension, {
|
|
283
|
-
overflowSelector: '.extension-overflow-wrapper'
|
|
284
|
-
isDisabled: () => isExperimentEnabled('platform_editor_reduce_forced_layout_2') && isCssScrollTimelineSupported(globalThis.CSS)
|
|
265
|
+
overflowSelector: '.extension-overflow-wrapper'
|
|
285
266
|
});
|
|
286
267
|
export default _default_1;
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "131.0
|
|
16
|
+
const packageVersion = "131.1.0";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "131.0
|
|
17
|
+
const packageVersion = "131.1.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -24,7 +24,7 @@ export default function overflowShadow(Component, options) {
|
|
|
24
24
|
this.updateShadows();
|
|
25
25
|
});
|
|
26
26
|
_defineProperty(this, "updateShadows", () => {
|
|
27
|
-
if (
|
|
27
|
+
if (options.useShadowObserver) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
this.setState(prevState => {
|
|
@@ -78,9 +78,6 @@ export default function overflowShadow(Component, options) {
|
|
|
78
78
|
if (!this.overflowContainer) {
|
|
79
79
|
this.overflowContainer = container;
|
|
80
80
|
}
|
|
81
|
-
if (this.isDisabled) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
81
|
if (options.useShadowObserver) {
|
|
85
82
|
this.initShadowObserver();
|
|
86
83
|
return;
|
|
@@ -91,13 +88,6 @@ export default function overflowShadow(Component, options) {
|
|
|
91
88
|
this.overflowContainer.addEventListener('scroll', this.handleScroll);
|
|
92
89
|
});
|
|
93
90
|
}
|
|
94
|
-
get isDisabled() {
|
|
95
|
-
if (this.disabled === undefined) {
|
|
96
|
-
var _options$isDisabled, _options$isDisabled2;
|
|
97
|
-
this.disabled = (_options$isDisabled = (_options$isDisabled2 = options.isDisabled) === null || _options$isDisabled2 === void 0 ? void 0 : _options$isDisabled2.call(options)) !== null && _options$isDisabled !== void 0 ? _options$isDisabled : false;
|
|
98
|
-
}
|
|
99
|
-
return this.disabled;
|
|
100
|
-
}
|
|
101
91
|
componentWillUnmount() {
|
|
102
92
|
if (options.useShadowObserver) {
|
|
103
93
|
return this.shadowObserver && this.shadowObserver.dispose();
|
|
@@ -143,7 +133,7 @@ export default function overflowShadow(Component, options) {
|
|
|
143
133
|
showLeftShadow,
|
|
144
134
|
showRightShadow
|
|
145
135
|
} = this.state;
|
|
146
|
-
const classNames =
|
|
136
|
+
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(' ');
|
|
147
137
|
|
|
148
138
|
/**
|
|
149
139
|
* The widths have already been calculated to determine
|
|
@@ -15,7 +15,6 @@ import React, { Fragment, useCallback, useState } from 'react';
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import classnames from 'classnames';
|
|
18
|
-
import memoizeOne from 'memoize-one';
|
|
19
18
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
20
19
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -37,12 +36,6 @@ var hoverStyles = css({
|
|
|
37
36
|
var containerStyle = css({
|
|
38
37
|
containerType: 'inline-size'
|
|
39
38
|
});
|
|
40
|
-
var isCssScrollTimelineSupported = memoizeOne(function (css) {
|
|
41
|
-
if (!css || typeof css.supports !== 'function') {
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
return css.supports('animation-timeline', '--test-timeline') && css.supports('scroll-timeline-name', '--test-timeline') && css.supports('timeline-scope', '--test-timeline') && css.supports('animation-range', '0% 101%');
|
|
45
|
-
});
|
|
46
39
|
function ExtensionWithPluginState(props) {
|
|
47
40
|
var _node$attrs;
|
|
48
41
|
var node = props.node,
|
|
@@ -113,7 +106,6 @@ function ExtensionWithPluginState(props) {
|
|
|
113
106
|
'without-frame': removeBorder
|
|
114
107
|
}, widerLayoutClassName, shouldBreakout));
|
|
115
108
|
var overflowClassNames = classnames('extension-overflow-wrapper', {
|
|
116
|
-
'extension-scroll-inline-shadow': isExperimentEnabled('platform_editor_reduce_forced_layout_2'),
|
|
117
109
|
'with-body': hasBody,
|
|
118
110
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
119
111
|
// Adding extra padding for renderer view so users can have a touch target to click on the extension
|
|
@@ -233,17 +225,7 @@ function ExtensionWithPluginState(props) {
|
|
|
233
225
|
className: contentClassNames
|
|
234
226
|
}, jsx(NodeViewContentHole, {
|
|
235
227
|
ref: handleContentDOMRef
|
|
236
|
-
})))),
|
|
237
|
-
contentEditable: false,
|
|
238
|
-
"aria-hidden": "true",
|
|
239
|
-
"data-vc-nvs": "true",
|
|
240
|
-
"data-extension-overflow-shadow": "start"
|
|
241
|
-
}), jsx("div", {
|
|
242
|
-
contentEditable: false,
|
|
243
|
-
"aria-hidden": "true",
|
|
244
|
-
"data-vc-nvs": "true",
|
|
245
|
-
"data-extension-overflow-shadow": "end"
|
|
246
|
-
})), fg('cc_maui_annotations_on_extensions') && node.type.name === 'extension' && container && (pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.annotation) && jsx(ExtensionCommentBadge, {
|
|
228
|
+
})))), fg('cc_maui_annotations_on_extensions') && node.type.name === 'extension' && container && (pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.annotation) && jsx(ExtensionCommentBadge, {
|
|
247
229
|
api: pluginInjectionApi,
|
|
248
230
|
node: node,
|
|
249
231
|
getPos: getPos,
|
|
@@ -280,9 +262,6 @@ var Extension = function Extension(props) {
|
|
|
280
262
|
}, props));
|
|
281
263
|
};
|
|
282
264
|
var _default_1 = overflowShadow(Extension, {
|
|
283
|
-
overflowSelector: '.extension-overflow-wrapper'
|
|
284
|
-
isDisabled: function isDisabled() {
|
|
285
|
-
return isExperimentEnabled('platform_editor_reduce_forced_layout_2') && isCssScrollTimelineSupported(globalThis.CSS);
|
|
286
|
-
}
|
|
265
|
+
overflowSelector: '.extension-overflow-wrapper'
|
|
287
266
|
});
|
|
288
267
|
export default _default_1;
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
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 = "131.0
|
|
22
|
+
var packageVersion = "131.1.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "131.0
|
|
24
|
+
var packageVersion = "131.1.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -36,7 +36,7 @@ export default function overflowShadow(Component, options) {
|
|
|
36
36
|
_this.updateShadows();
|
|
37
37
|
});
|
|
38
38
|
_defineProperty(_this, "updateShadows", function () {
|
|
39
|
-
if (
|
|
39
|
+
if (options.useShadowObserver) {
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
_this.setState(function (prevState) {
|
|
@@ -90,9 +90,6 @@ export default function overflowShadow(Component, options) {
|
|
|
90
90
|
if (!_this.overflowContainer) {
|
|
91
91
|
_this.overflowContainer = container;
|
|
92
92
|
}
|
|
93
|
-
if (_this.isDisabled) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
93
|
if (options.useShadowObserver) {
|
|
97
94
|
_this.initShadowObserver();
|
|
98
95
|
return;
|
|
@@ -106,15 +103,6 @@ export default function overflowShadow(Component, options) {
|
|
|
106
103
|
}
|
|
107
104
|
_inherits(OverflowShadow, _React$Component);
|
|
108
105
|
return _createClass(OverflowShadow, [{
|
|
109
|
-
key: "isDisabled",
|
|
110
|
-
get: function get() {
|
|
111
|
-
if (this.disabled === undefined) {
|
|
112
|
-
var _options$isDisabled, _options$isDisabled2;
|
|
113
|
-
this.disabled = (_options$isDisabled = (_options$isDisabled2 = options.isDisabled) === null || _options$isDisabled2 === void 0 ? void 0 : _options$isDisabled2.call(options)) !== null && _options$isDisabled !== void 0 ? _options$isDisabled : false;
|
|
114
|
-
}
|
|
115
|
-
return this.disabled;
|
|
116
|
-
}
|
|
117
|
-
}, {
|
|
118
106
|
key: "componentWillUnmount",
|
|
119
107
|
value: function componentWillUnmount() {
|
|
120
108
|
if (options.useShadowObserver) {
|
|
@@ -165,7 +153,7 @@ export default function overflowShadow(Component, options) {
|
|
|
165
153
|
var _this$state = this.state,
|
|
166
154
|
showLeftShadow = _this$state.showLeftShadow,
|
|
167
155
|
showRightShadow = _this$state.showRightShadow;
|
|
168
|
-
var classNames =
|
|
156
|
+
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(' ');
|
|
169
157
|
|
|
170
158
|
/**
|
|
171
159
|
* The widths have already been calculated to determine
|
|
@@ -14,11 +14,6 @@ export interface OverflowShadowState {
|
|
|
14
14
|
showRightShadow: boolean;
|
|
15
15
|
}
|
|
16
16
|
export interface OverflowShadowOptions {
|
|
17
|
-
/**
|
|
18
|
-
* Opts the wrapped component out of the JavaScript driven shadows entirely: no scroll listeners
|
|
19
|
-
* or intersection observers are registered
|
|
20
|
-
*/
|
|
21
|
-
isDisabled?: () => boolean;
|
|
22
17
|
overflowSelector: string;
|
|
23
18
|
useShadowObserver?: boolean;
|
|
24
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "131.1.
|
|
3
|
+
"version": "131.1.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/"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/task-decision": "^21.12.0",
|
|
86
86
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
87
87
|
"@atlaskit/textfield": "^10.2.0",
|
|
88
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
88
|
+
"@atlaskit/tmp-editor-statsig": "^238.0.0",
|
|
89
89
|
"@atlaskit/tokens": "^20.5.0",
|
|
90
90
|
"@atlaskit/tooltip": "^24.4.0",
|
|
91
91
|
"@atlaskit/width-detector": "^7.2.0",
|