@atlaskit/editor-common 107.4.0 → 107.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 107.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 107.4.0
4
10
 
5
11
  ### Minor Changes
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "107.3.2";
19
+ var packageVersion = "107.4.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -31,7 +31,7 @@ var canRenderFallback = function canRenderFallback(node) {
31
31
 
32
32
  // list of inline nodes with toDOM fallback implementations that can be virtualized. As
33
33
  // additional nodes are converted they should be added here
34
- var virtualizedNodeAllowlist = ['emoji', 'inlineCard'];
34
+ var virtualizedNodeAllowlist = ['inlineCard'];
35
35
  function createNodeView(_ref) {
36
36
  var nodeViewParams = _ref.nodeViewParams,
37
37
  pmPluginFactoryParams = _ref.pmPluginFactoryParams,
@@ -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 = "107.3.2";
26
+ var packageVersion = "107.4.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -180,10 +180,11 @@ function overflowShadow(Component, options) {
180
180
  }, {
181
181
  key: "render",
182
182
  value: function render() {
183
+ var _this$props, _this$props2;
183
184
  var _this$state = this.state,
184
185
  showLeftShadow = _this$state.showLeftShadow,
185
186
  showRightShadow = _this$state.showRightShadow;
186
- var classNames = [showRightShadow && shadowClassNames.RIGHT_SHADOW, showLeftShadow && shadowClassNames.LEFT_SHADOW, options.useShadowObserver && _shadowObserver.shadowObserverClassNames.SHADOW_CONTAINER].filter(Boolean).join(' ');
187
+ 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(' ');
187
188
  return (
188
189
  /*#__PURE__*/
189
190
  // Ignored via go/ees005
@@ -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 = "107.3.2";
4
+ const packageVersion = "107.4.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -23,7 +23,7 @@ const canRenderFallback = node => {
23
23
 
24
24
  // list of inline nodes with toDOM fallback implementations that can be virtualized. As
25
25
  // additional nodes are converted they should be added here
26
- const virtualizedNodeAllowlist = ['emoji', 'inlineCard'];
26
+ const virtualizedNodeAllowlist = ['inlineCard'];
27
27
  function createNodeView({
28
28
  nodeViewParams,
29
29
  pmPluginFactoryParams,
@@ -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 = "107.3.2";
16
+ const packageVersion = "107.4.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -151,11 +151,12 @@ export default function overflowShadow(Component, options) {
151
151
  });
152
152
  }
153
153
  render() {
154
+ var _this$props, _this$props2;
154
155
  const {
155
156
  showLeftShadow,
156
157
  showRightShadow
157
158
  } = this.state;
158
- const classNames = [showRightShadow && shadowClassNames.RIGHT_SHADOW, showLeftShadow && shadowClassNames.LEFT_SHADOW, options.useShadowObserver && shadowObserverClassNames.SHADOW_CONTAINER].filter(Boolean).join(' ');
159
+ 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(' ');
159
160
  return (
160
161
  /*#__PURE__*/
161
162
  // Ignored via go/ees005
@@ -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 = "107.3.2";
10
+ var packageVersion = "107.4.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -26,7 +26,7 @@ var canRenderFallback = function canRenderFallback(node) {
26
26
 
27
27
  // list of inline nodes with toDOM fallback implementations that can be virtualized. As
28
28
  // additional nodes are converted they should be added here
29
- var virtualizedNodeAllowlist = ['emoji', 'inlineCard'];
29
+ var virtualizedNodeAllowlist = ['inlineCard'];
30
30
  function createNodeView(_ref) {
31
31
  var nodeViewParams = _ref.nodeViewParams,
32
32
  pmPluginFactoryParams = _ref.pmPluginFactoryParams,
@@ -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 = "107.3.2";
23
+ var packageVersion = "107.4.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -172,10 +172,11 @@ export default function overflowShadow(Component, options) {
172
172
  }, {
173
173
  key: "render",
174
174
  value: function render() {
175
+ var _this$props, _this$props2;
175
176
  var _this$state = this.state,
176
177
  showLeftShadow = _this$state.showLeftShadow,
177
178
  showRightShadow = _this$state.showRightShadow;
178
- var classNames = [showRightShadow && shadowClassNames.RIGHT_SHADOW, showLeftShadow && shadowClassNames.LEFT_SHADOW, options.useShadowObserver && shadowObserverClassNames.SHADOW_CONTAINER].filter(Boolean).join(' ');
179
+ 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(' ');
179
180
  return (
180
181
  /*#__PURE__*/
181
182
  // Ignored via go/ees005
@@ -4,6 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ExtensionProvider, ReferenceEntity } from '../../../extensions';
5
5
  import type { ProsemirrorGetPosHandler } from '../../../react-node-view';
6
6
  import type { EditorAppearance } from '../../../types';
7
+ import type { OverflowShadowProps } from '../../../ui';
7
8
  import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../../types';
8
9
  export interface Props {
9
10
  node: PmNode;
@@ -28,7 +29,7 @@ export interface Props {
28
29
  isLivePageViewMode?: boolean;
29
30
  }
30
31
  declare const _default: {
31
- new (props: Props | Readonly<Props>): {
32
+ new (props: (Props & OverflowShadowProps) | Readonly<Props & OverflowShadowProps>): {
32
33
  overflowContainer?: HTMLElement | null | undefined;
33
34
  container?: HTMLElement | undefined;
34
35
  shadowObserver?: import("../../../ui").ShadowObserver | undefined;
@@ -51,24 +52,24 @@ declare const _default: {
51
52
  initShadowObserver(): void;
52
53
  render(): React.JSX.Element;
53
54
  context: unknown;
54
- setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
55
+ setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
55
56
  forceUpdate(callback?: (() => void) | undefined): void;
56
- readonly props: Readonly<Props>;
57
+ readonly props: Readonly<Props & OverflowShadowProps>;
57
58
  refs: {
58
59
  [key: string]: React.ReactInstance;
59
60
  };
60
61
  componentDidMount?(): void;
61
- shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): boolean;
62
+ shouldComponentUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): boolean;
62
63
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
63
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("../../../ui").OverflowShadowState>): any;
64
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<import("../../../ui").OverflowShadowState>): any;
64
65
  componentWillMount?(): void;
65
66
  UNSAFE_componentWillMount?(): void;
66
- componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
67
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
68
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
69
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
67
+ componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
68
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
69
+ componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
70
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
70
71
  };
71
- new (props: Props, context: any): {
72
+ new (props: Props & OverflowShadowProps, context: any): {
72
73
  overflowContainer?: HTMLElement | null | undefined;
73
74
  container?: HTMLElement | undefined;
74
75
  shadowObserver?: import("../../../ui").ShadowObserver | undefined;
@@ -91,22 +92,22 @@ declare const _default: {
91
92
  initShadowObserver(): void;
92
93
  render(): React.JSX.Element;
93
94
  context: unknown;
94
- setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
95
+ setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
95
96
  forceUpdate(callback?: (() => void) | undefined): void;
96
- readonly props: Readonly<Props>;
97
+ readonly props: Readonly<Props & OverflowShadowProps>;
97
98
  refs: {
98
99
  [key: string]: React.ReactInstance;
99
100
  };
100
101
  componentDidMount?(): void;
101
- shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): boolean;
102
+ shouldComponentUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): boolean;
102
103
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
103
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("../../../ui").OverflowShadowState>): any;
104
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<import("../../../ui").OverflowShadowState>): any;
104
105
  componentWillMount?(): void;
105
106
  UNSAFE_componentWillMount?(): void;
106
- componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
107
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
108
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
109
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
107
+ componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
108
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
109
+ componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
110
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
110
111
  };
111
112
  contextType?: React.Context<any> | undefined;
112
113
  };
@@ -7,6 +7,7 @@ export declare const shadowClassNames: {
7
7
  export interface OverflowShadowProps {
8
8
  handleRef?: (ref: HTMLElement | null) => void;
9
9
  shadowClassNames?: string;
10
+ disableTableOverflowShadow?: boolean;
10
11
  }
11
12
  export interface OverflowShadowState {
12
13
  showLeftShadow: boolean;
@@ -17,7 +18,7 @@ export interface OverflowShadowOptions {
17
18
  useShadowObserver?: boolean;
18
19
  }
19
20
  export default function overflowShadow<P>(Component: React.ComponentType<React.PropsWithChildren<P & OverflowShadowProps>>, options: OverflowShadowOptions): {
20
- new (props: P | Readonly<P>): {
21
+ new (props: (P & OverflowShadowProps) | Readonly<P & OverflowShadowProps>): {
21
22
  overflowContainer?: HTMLElement | null | undefined;
22
23
  container?: HTMLElement | undefined;
23
24
  shadowObserver?: ShadowObserver | undefined;
@@ -40,24 +41,24 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
40
41
  initShadowObserver(): void;
41
42
  render(): React.JSX.Element;
42
43
  context: unknown;
43
- setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
44
+ setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
44
45
  forceUpdate(callback?: (() => void) | undefined): void;
45
- readonly props: Readonly<P>;
46
+ readonly props: Readonly<P & OverflowShadowProps>;
46
47
  refs: {
47
48
  [key: string]: React.ReactInstance;
48
49
  };
49
50
  componentDidMount?(): void;
50
- shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
51
+ shouldComponentUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
51
52
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
52
- getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<OverflowShadowState>): any;
53
+ getSnapshotBeforeUpdate?(prevProps: Readonly<P & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>): any;
53
54
  componentWillMount?(): void;
54
55
  UNSAFE_componentWillMount?(): void;
55
- componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
56
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
57
- componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
58
- UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
56
+ componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
57
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
58
+ componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
59
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
59
60
  };
60
- new (props: P, context: any): {
61
+ new (props: P & OverflowShadowProps, context: any): {
61
62
  overflowContainer?: HTMLElement | null | undefined;
62
63
  container?: HTMLElement | undefined;
63
64
  shadowObserver?: ShadowObserver | undefined;
@@ -80,22 +81,22 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
80
81
  initShadowObserver(): void;
81
82
  render(): React.JSX.Element;
82
83
  context: unknown;
83
- setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
84
+ setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
84
85
  forceUpdate(callback?: (() => void) | undefined): void;
85
- readonly props: Readonly<P>;
86
+ readonly props: Readonly<P & OverflowShadowProps>;
86
87
  refs: {
87
88
  [key: string]: React.ReactInstance;
88
89
  };
89
90
  componentDidMount?(): void;
90
- shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
91
+ shouldComponentUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
91
92
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
92
- getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<OverflowShadowState>): any;
93
+ getSnapshotBeforeUpdate?(prevProps: Readonly<P & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>): any;
93
94
  componentWillMount?(): void;
94
95
  UNSAFE_componentWillMount?(): void;
95
- componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
96
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
97
- componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
98
- UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
96
+ componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
97
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
98
+ componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
99
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
99
100
  };
100
101
  contextType?: React.Context<any> | undefined;
101
102
  };
@@ -4,6 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ExtensionProvider, ReferenceEntity } from '../../../extensions';
5
5
  import type { ProsemirrorGetPosHandler } from '../../../react-node-view';
6
6
  import type { EditorAppearance } from '../../../types';
7
+ import type { OverflowShadowProps } from '../../../ui';
7
8
  import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../../types';
8
9
  export interface Props {
9
10
  node: PmNode;
@@ -28,7 +29,7 @@ export interface Props {
28
29
  isLivePageViewMode?: boolean;
29
30
  }
30
31
  declare const _default: {
31
- new (props: Props | Readonly<Props>): {
32
+ new (props: (Props & OverflowShadowProps) | Readonly<Props & OverflowShadowProps>): {
32
33
  overflowContainer?: HTMLElement | null | undefined;
33
34
  container?: HTMLElement | undefined;
34
35
  shadowObserver?: import("../../../ui").ShadowObserver | undefined;
@@ -51,24 +52,24 @@ declare const _default: {
51
52
  initShadowObserver(): void;
52
53
  render(): React.JSX.Element;
53
54
  context: unknown;
54
- setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
55
+ setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
55
56
  forceUpdate(callback?: (() => void) | undefined): void;
56
- readonly props: Readonly<Props>;
57
+ readonly props: Readonly<Props & OverflowShadowProps>;
57
58
  refs: {
58
59
  [key: string]: React.ReactInstance;
59
60
  };
60
61
  componentDidMount?(): void;
61
- shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): boolean;
62
+ shouldComponentUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): boolean;
62
63
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
63
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("../../../ui").OverflowShadowState>): any;
64
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<import("../../../ui").OverflowShadowState>): any;
64
65
  componentWillMount?(): void;
65
66
  UNSAFE_componentWillMount?(): void;
66
- componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
67
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
68
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
69
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
67
+ componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
68
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
69
+ componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
70
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
70
71
  };
71
- new (props: Props, context: any): {
72
+ new (props: Props & OverflowShadowProps, context: any): {
72
73
  overflowContainer?: HTMLElement | null | undefined;
73
74
  container?: HTMLElement | undefined;
74
75
  shadowObserver?: import("../../../ui").ShadowObserver | undefined;
@@ -91,22 +92,22 @@ declare const _default: {
91
92
  initShadowObserver(): void;
92
93
  render(): React.JSX.Element;
93
94
  context: unknown;
94
- setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
95
+ setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
95
96
  forceUpdate(callback?: (() => void) | undefined): void;
96
- readonly props: Readonly<Props>;
97
+ readonly props: Readonly<Props & OverflowShadowProps>;
97
98
  refs: {
98
99
  [key: string]: React.ReactInstance;
99
100
  };
100
101
  componentDidMount?(): void;
101
- shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): boolean;
102
+ shouldComponentUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): boolean;
102
103
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
103
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("../../../ui").OverflowShadowState>): any;
104
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<import("../../../ui").OverflowShadowState>): any;
104
105
  componentWillMount?(): void;
105
106
  UNSAFE_componentWillMount?(): void;
106
- componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
107
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
108
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
109
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
107
+ componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
108
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
109
+ componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
110
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
110
111
  };
111
112
  contextType?: React.Context<any> | undefined;
112
113
  };
@@ -7,6 +7,7 @@ export declare const shadowClassNames: {
7
7
  export interface OverflowShadowProps {
8
8
  handleRef?: (ref: HTMLElement | null) => void;
9
9
  shadowClassNames?: string;
10
+ disableTableOverflowShadow?: boolean;
10
11
  }
11
12
  export interface OverflowShadowState {
12
13
  showLeftShadow: boolean;
@@ -17,7 +18,7 @@ export interface OverflowShadowOptions {
17
18
  useShadowObserver?: boolean;
18
19
  }
19
20
  export default function overflowShadow<P>(Component: React.ComponentType<React.PropsWithChildren<P & OverflowShadowProps>>, options: OverflowShadowOptions): {
20
- new (props: P | Readonly<P>): {
21
+ new (props: (P & OverflowShadowProps) | Readonly<P & OverflowShadowProps>): {
21
22
  overflowContainer?: HTMLElement | null | undefined;
22
23
  container?: HTMLElement | undefined;
23
24
  shadowObserver?: ShadowObserver | undefined;
@@ -40,24 +41,24 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
40
41
  initShadowObserver(): void;
41
42
  render(): React.JSX.Element;
42
43
  context: unknown;
43
- setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
44
+ setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
44
45
  forceUpdate(callback?: (() => void) | undefined): void;
45
- readonly props: Readonly<P>;
46
+ readonly props: Readonly<P & OverflowShadowProps>;
46
47
  refs: {
47
48
  [key: string]: React.ReactInstance;
48
49
  };
49
50
  componentDidMount?(): void;
50
- shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
51
+ shouldComponentUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
51
52
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
52
- getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<OverflowShadowState>): any;
53
+ getSnapshotBeforeUpdate?(prevProps: Readonly<P & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>): any;
53
54
  componentWillMount?(): void;
54
55
  UNSAFE_componentWillMount?(): void;
55
- componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
56
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
57
- componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
58
- UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
56
+ componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
57
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
58
+ componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
59
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
59
60
  };
60
- new (props: P, context: any): {
61
+ new (props: P & OverflowShadowProps, context: any): {
61
62
  overflowContainer?: HTMLElement | null | undefined;
62
63
  container?: HTMLElement | undefined;
63
64
  shadowObserver?: ShadowObserver | undefined;
@@ -80,22 +81,22 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
80
81
  initShadowObserver(): void;
81
82
  render(): React.JSX.Element;
82
83
  context: unknown;
83
- setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
84
+ setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
84
85
  forceUpdate(callback?: (() => void) | undefined): void;
85
- readonly props: Readonly<P>;
86
+ readonly props: Readonly<P & OverflowShadowProps>;
86
87
  refs: {
87
88
  [key: string]: React.ReactInstance;
88
89
  };
89
90
  componentDidMount?(): void;
90
- shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
91
+ shouldComponentUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
91
92
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
92
- getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<OverflowShadowState>): any;
93
+ getSnapshotBeforeUpdate?(prevProps: Readonly<P & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>): any;
93
94
  componentWillMount?(): void;
94
95
  UNSAFE_componentWillMount?(): void;
95
- componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
96
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
97
- componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
98
- UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
96
+ componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
97
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
98
+ componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
99
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
99
100
  };
100
101
  contextType?: React.Context<any> | undefined;
101
102
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "107.4.0",
3
+ "version": "107.4.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/"
@@ -146,7 +146,7 @@
146
146
  "@atlaskit/link-datasource": "^4.11.0",
147
147
  "@atlaskit/link-picker": "^3.5.0",
148
148
  "@atlaskit/media-card": "^79.3.0",
149
- "@atlaskit/media-client": "^34.2.0",
149
+ "@atlaskit/media-client": "^35.0.0",
150
150
  "@atlaskit/media-client-react": "^4.1.0",
151
151
  "@atlaskit/media-common": "^12.3.0",
152
152
  "@atlaskit/media-file-preview": "^0.11.0",
@@ -169,7 +169,7 @@
169
169
  "@atlaskit/task-decision": "^19.2.0",
170
170
  "@atlaskit/textfield": "^8.0.0",
171
171
  "@atlaskit/theme": "^18.0.0",
172
- "@atlaskit/tmp-editor-statsig": "^8.5.0",
172
+ "@atlaskit/tmp-editor-statsig": "^8.6.0",
173
173
  "@atlaskit/tokens": "^5.4.0",
174
174
  "@atlaskit/tooltip": "^20.3.0",
175
175
  "@atlaskit/width-detector": "^5.0.0",