@atlaskit/editor-common 93.4.3 → 93.5.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.
@@ -1,19 +1,22 @@
1
+ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _extends from "@babel/runtime/helpers/extends";
1
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
5
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
6
  import _inherits from "@babel/runtime/helpers/inherits";
5
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
9
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
11
  function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
11
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
13
  import React from 'react';
13
14
  import PropTypes from 'prop-types';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
14
16
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
15
17
  import { createDispatch } from '../event-dispatcher';
16
18
  import { startMeasure, stopMeasure } from '../performance-measures';
19
+ import { EditorContext } from '../ui/EditorContext';
17
20
  import { analyticsEventKey } from '../utils';
18
21
  var DEFAULT_SAMPLING_RATE = 100;
19
22
  var DEFAULT_SLOW_THRESHOLD = 4;
@@ -61,10 +64,34 @@ var DEFAULT_SLOW_THRESHOLD = 4;
61
64
  var WithPluginState = /*#__PURE__*/function (_React$Component) {
62
65
  _inherits(WithPluginState, _React$Component);
63
66
  var _super = _createSuper(WithPluginState);
64
- function WithPluginState(props, context) {
65
- var _this;
67
+ function WithPluginState(props) {
66
68
  _classCallCheck(this, WithPluginState);
67
- _this = _super.call(this, props, context);
69
+ return _super.call(this, props);
70
+ }
71
+ _createClass(WithPluginState, [{
72
+ key: "render",
73
+ value: function render() {
74
+ if (fg('platform_editor_react18_phase2')) {
75
+ return /*#__PURE__*/React.createElement(WithPluginStateNew, this.props);
76
+ }
77
+ return /*#__PURE__*/React.createElement(WithPluginStateOld, this.props);
78
+ }
79
+ }]);
80
+ return WithPluginState;
81
+ }(React.Component);
82
+ function WithPluginStateNew(props) {
83
+ var context = React.useContext(EditorContext);
84
+ return /*#__PURE__*/React.createElement(WithPluginStateInner, _extends({}, props, {
85
+ editorActions: context === null || context === void 0 ? void 0 : context.editorActions
86
+ }));
87
+ }
88
+ export var WithPluginStateInner = /*#__PURE__*/function (_React$Component2) {
89
+ _inherits(WithPluginStateInner, _React$Component2);
90
+ var _super2 = _createSuper(WithPluginStateInner);
91
+ function WithPluginStateInner(props) {
92
+ var _this;
93
+ _classCallCheck(this, WithPluginStateInner);
94
+ _this = _super2.call(this, props);
68
95
  _defineProperty(_assertThisInitialized(_this), "listeners", {});
69
96
  _defineProperty(_assertThisInitialized(_this), "debounce", null);
70
97
  _defineProperty(_assertThisInitialized(_this), "notAppliedState", {});
@@ -130,24 +157,22 @@ var WithPluginState = /*#__PURE__*/function (_React$Component) {
130
157
  });
131
158
  }
132
159
  });
133
- _defineProperty(_assertThisInitialized(_this), "onContextUpdate", function () {
134
- _this.subscribe(_this.props);
135
- });
136
- _this.state = _this.getPluginsStates(_this.props.plugins, _this.getEditorView(props, context));
160
+ _this.state = _this.getPluginsStates(_this.props.plugins, _this.getEditorView(props));
137
161
  return _this;
138
162
  }
139
- _createClass(WithPluginState, [{
163
+ _createClass(WithPluginStateInner, [{
140
164
  key: "getEditorView",
141
- value: function getEditorView(maybeProps, maybeContext) {
165
+ value: function getEditorView(maybeProps) {
142
166
  var props = maybeProps || this.props;
143
- var context = maybeContext || this.context;
144
- return props.editorView || context && context.editorActions && context.editorActions._privateGetEditorView() || context && context.editorSharedConfig && context.editorSharedConfig.editorView;
167
+ var editorActions = props.editorActions;
168
+ return props.editorView || (editorActions === null || editorActions === void 0 ? void 0 : editorActions._privateGetEditorView());
145
169
  }
146
170
  }, {
147
171
  key: "getEventDispatcher",
148
172
  value: function getEventDispatcher(maybeProps) {
173
+ var _props$editorActions;
149
174
  var props = maybeProps || this.props;
150
- return props.eventDispatcher || this.context && this.context.editorActions && this.context.editorActions._privateGetEventDispatcher() || this.context && this.context.editorSharedConfig && this.context.editorSharedConfig.eventDispatcher;
175
+ return props.eventDispatcher || ((_props$editorActions = props.editorActions) === null || _props$editorActions === void 0 ? void 0 : _props$editorActions._privateGetEventDispatcher());
151
176
  }
152
177
  }, {
153
178
  key: "getPluginsStates",
@@ -238,6 +263,236 @@ var WithPluginState = /*#__PURE__*/function (_React$Component) {
238
263
  });
239
264
  this.listeners = [];
240
265
  }
266
+ }, {
267
+ key: "subscribeToContextUpdates",
268
+ value: function subscribeToContextUpdates() {
269
+ var _this$props$editorAct,
270
+ _this4 = this;
271
+ (_this$props$editorAct = this.props.editorActions) === null || _this$props$editorAct === void 0 || _this$props$editorAct._privateSubscribe(function () {
272
+ return _this4.subscribe(_this4.props);
273
+ });
274
+ }
275
+ }, {
276
+ key: "unsubscribeFromContextUpdates",
277
+ value: function unsubscribeFromContextUpdates() {
278
+ var _this$props$editorAct2,
279
+ _this5 = this;
280
+ (_this$props$editorAct2 = this.props.editorActions) === null || _this$props$editorAct2 === void 0 || _this$props$editorAct2._privateUnsubscribe(function () {
281
+ return _this5.subscribe(_this5.props);
282
+ });
283
+ }
284
+ }, {
285
+ key: "componentDidMount",
286
+ value: function componentDidMount() {
287
+ this.subscribe(this.props);
288
+ this.subscribeToContextUpdates();
289
+ }
290
+ }, {
291
+ key: "UNSAFE_componentWillReceiveProps",
292
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
293
+ if (!this.isSubscribed) {
294
+ this.subscribe(nextProps);
295
+ }
296
+ }
297
+ }, {
298
+ key: "componentWillUnmount",
299
+ value: function componentWillUnmount() {
300
+ if (this.debounce) {
301
+ window.clearTimeout(this.debounce);
302
+ }
303
+ this.unsubscribeFromContextUpdates();
304
+ this.unsubscribe();
305
+ }
306
+ }, {
307
+ key: "render",
308
+ value: function render() {
309
+ var render = this.props.render;
310
+ return render(this.state);
311
+ }
312
+ }]);
313
+ return WithPluginStateInner;
314
+ }(React.Component);
315
+ _defineProperty(WithPluginStateInner, "displayName", 'WithPluginState');
316
+ export var WithPluginStateOld = /*#__PURE__*/function (_React$Component3) {
317
+ _inherits(WithPluginStateOld, _React$Component3);
318
+ var _super3 = _createSuper(WithPluginStateOld);
319
+ function WithPluginStateOld(props, context) {
320
+ var _this6;
321
+ _classCallCheck(this, WithPluginStateOld);
322
+ _this6 = _super3.call(this, props, context);
323
+ _defineProperty(_assertThisInitialized(_this6), "listeners", {});
324
+ _defineProperty(_assertThisInitialized(_this6), "debounce", null);
325
+ _defineProperty(_assertThisInitialized(_this6), "notAppliedState", {});
326
+ _defineProperty(_assertThisInitialized(_this6), "isSubscribed", false);
327
+ _defineProperty(_assertThisInitialized(_this6), "callsCount", 0);
328
+ _defineProperty(_assertThisInitialized(_this6), "handlePluginStateChange", function (propName, pluginName, performanceOptions, skipEqualityCheck) {
329
+ return function (pluginState) {
330
+ // skipEqualityCheck is being used for old plugins since they are mutating plugin state instead of creating a new one
331
+ if (_this6.state[propName] !== pluginState || skipEqualityCheck) {
332
+ _this6.updateState({
333
+ stateSubset: _defineProperty({}, propName, pluginState),
334
+ pluginName: pluginName,
335
+ performanceOptions: performanceOptions
336
+ });
337
+ }
338
+ };
339
+ });
340
+ /**
341
+ * Debounces setState calls in order to reduce number of re-renders caused by several plugin state changes.
342
+ */
343
+ _defineProperty(_assertThisInitialized(_this6), "updateState", function (_ref2) {
344
+ var stateSubset = _ref2.stateSubset,
345
+ pluginName = _ref2.pluginName,
346
+ performanceOptions = _ref2.performanceOptions;
347
+ _this6.notAppliedState = _objectSpread(_objectSpread({}, _this6.notAppliedState), stateSubset);
348
+ if (_this6.debounce) {
349
+ window.clearTimeout(_this6.debounce);
350
+ }
351
+ var debounce = _this6.props.debounce !== false ? function (fn) {
352
+ return window.setTimeout(fn, 0);
353
+ } : function (fn) {
354
+ return fn();
355
+ };
356
+ _this6.debounce = debounce(function () {
357
+ var measure = "\uD83E\uDD89".concat(pluginName, "::WithPluginState");
358
+ performanceOptions.trackingEnabled && startMeasure(measure);
359
+ _this6.setState(_this6.notAppliedState, function () {
360
+ performanceOptions.trackingEnabled && stopMeasure(measure, function (duration) {
361
+ // Each WithPluginState component will fire analytics event no more than once every `samplingLimit` times
362
+ if (++_this6.callsCount % performanceOptions.samplingRate === 0 && duration > performanceOptions.slowThreshold) {
363
+ _this6.dispatchAnalyticsEvent({
364
+ action: ACTION.WITH_PLUGIN_STATE_CALLED,
365
+ actionSubject: ACTION_SUBJECT.EDITOR,
366
+ eventType: EVENT_TYPE.OPERATIONAL,
367
+ attributes: {
368
+ plugin: pluginName,
369
+ duration: duration
370
+ }
371
+ });
372
+ }
373
+ });
374
+ });
375
+ _this6.debounce = null;
376
+ _this6.notAppliedState = {};
377
+ });
378
+ });
379
+ _defineProperty(_assertThisInitialized(_this6), "dispatchAnalyticsEvent", function (payload) {
380
+ var eventDispatcher = _this6.getEventDispatcher();
381
+ if (eventDispatcher) {
382
+ var dispatch = createDispatch(eventDispatcher);
383
+ dispatch(analyticsEventKey, {
384
+ payload: payload
385
+ });
386
+ }
387
+ });
388
+ _defineProperty(_assertThisInitialized(_this6), "onContextUpdate", function () {
389
+ _this6.subscribe(_this6.props);
390
+ });
391
+ _this6.state = _this6.getPluginsStates(_this6.props.plugins, _this6.getEditorView(props, context));
392
+ return _this6;
393
+ }
394
+ _createClass(WithPluginStateOld, [{
395
+ key: "getEditorView",
396
+ value: function getEditorView(maybeProps, maybeContext) {
397
+ var props = maybeProps || this.props;
398
+ var context = maybeContext || this.context;
399
+ return props.editorView || context && context.editorActions && context.editorActions._privateGetEditorView() || context && context.editorSharedConfig && context.editorSharedConfig.editorView;
400
+ }
401
+ }, {
402
+ key: "getEventDispatcher",
403
+ value: function getEventDispatcher(maybeProps) {
404
+ var props = maybeProps || this.props;
405
+ return props.eventDispatcher || this.context && this.context.editorActions && this.context.editorActions._privateGetEventDispatcher() || this.context && this.context.editorSharedConfig && this.context.editorSharedConfig.eventDispatcher;
406
+ }
407
+ }, {
408
+ key: "getPluginsStates",
409
+ value: function getPluginsStates(plugins, editorView) {
410
+ if (!editorView || !plugins) {
411
+ return {};
412
+ }
413
+ var keys = Object.keys(plugins);
414
+ return keys.reduce(function (acc, propName) {
415
+ var pluginKey = plugins[propName];
416
+ if (!pluginKey) {
417
+ return acc;
418
+ }
419
+ acc[propName] = pluginKey.getState(editorView.state);
420
+ return acc;
421
+ }, {});
422
+ }
423
+ }, {
424
+ key: "subscribe",
425
+ value: function subscribe(props) {
426
+ var _uiTracking$samplingR2,
427
+ _uiTracking$slowThres2,
428
+ _this7 = this;
429
+ var plugins = props.plugins;
430
+ var eventDispatcher = this.getEventDispatcher(props);
431
+ var editorView = this.getEditorView(props);
432
+ if (!eventDispatcher || !editorView || this.isSubscribed) {
433
+ return;
434
+ }
435
+
436
+ // TODO: ED-15663
437
+ // Please, do not copy or use this kind of code below
438
+ // @ts-ignore
439
+ var fakePluginKey = {
440
+ key: 'analyticsPlugin$',
441
+ getState: function getState(state) {
442
+ return state['analyticsPlugin$'];
443
+ }
444
+ };
445
+ var analyticsPlugin = fakePluginKey.getState(editorView.state);
446
+ var uiTracking = analyticsPlugin && analyticsPlugin.performanceTracking ? analyticsPlugin.performanceTracking.uiTracking || {} : {};
447
+ var trackingEnabled = uiTracking.enabled === true;
448
+ var samplingRate = (_uiTracking$samplingR2 = uiTracking.samplingRate) !== null && _uiTracking$samplingR2 !== void 0 ? _uiTracking$samplingR2 : DEFAULT_SAMPLING_RATE;
449
+ var slowThreshold = (_uiTracking$slowThres2 = uiTracking.slowThreshold) !== null && _uiTracking$slowThres2 !== void 0 ? _uiTracking$slowThres2 : DEFAULT_SLOW_THRESHOLD;
450
+ this.isSubscribed = true;
451
+ var pluginsStates = this.getPluginsStates(plugins, editorView);
452
+ this.setState(pluginsStates);
453
+ Object.keys(plugins).forEach(function (propName) {
454
+ var pluginKey = plugins[propName];
455
+ if (!pluginKey) {
456
+ return;
457
+ }
458
+ var pluginName = pluginKey.key;
459
+ var pluginState = pluginsStates[propName];
460
+ var isPluginWithSubscribe = pluginState && pluginState.subscribe;
461
+ var handler = _this7.handlePluginStateChange(propName, pluginName, {
462
+ samplingRate: samplingRate,
463
+ slowThreshold: slowThreshold,
464
+ trackingEnabled: trackingEnabled
465
+ }, isPluginWithSubscribe);
466
+ if (isPluginWithSubscribe) {
467
+ pluginState.subscribe(handler);
468
+ } else {
469
+ eventDispatcher.on(pluginKey.key, handler);
470
+ }
471
+ _this7.listeners[pluginKey.key] = {
472
+ handler: handler,
473
+ pluginKey: pluginKey
474
+ };
475
+ });
476
+ }
477
+ }, {
478
+ key: "unsubscribe",
479
+ value: function unsubscribe() {
480
+ var _this8 = this;
481
+ var eventDispatcher = this.getEventDispatcher();
482
+ var editorView = this.getEditorView();
483
+ if (!eventDispatcher || !editorView || !this.isSubscribed) {
484
+ return;
485
+ }
486
+ Object.keys(this.listeners).forEach(function (key) {
487
+ var pluginState = _this8.listeners[key].pluginKey.getState(editorView.state);
488
+ if (pluginState && pluginState.unsubscribe) {
489
+ pluginState.unsubscribe(_this8.listeners[key].handler);
490
+ } else {
491
+ eventDispatcher.off(key, _this8.listeners[key].handler);
492
+ }
493
+ });
494
+ this.listeners = [];
495
+ }
241
496
  }, {
242
497
  key: "subscribeToContextUpdates",
243
498
  value: function subscribeToContextUpdates(context) {
@@ -281,10 +536,10 @@ var WithPluginState = /*#__PURE__*/function (_React$Component) {
281
536
  return render(this.state);
282
537
  }
283
538
  }]);
284
- return WithPluginState;
539
+ return WithPluginStateOld;
285
540
  }(React.Component);
286
- _defineProperty(WithPluginState, "displayName", 'WithPluginState');
287
- _defineProperty(WithPluginState, "contextTypes", {
541
+ _defineProperty(WithPluginStateOld, "displayName", 'WithPluginState');
542
+ _defineProperty(WithPluginStateOld, "contextTypes", {
288
543
  editorActions: PropTypes.object,
289
544
  editorSharedConfig: PropTypes.object
290
545
  });
@@ -5,5 +5,6 @@ export type ViewInlineCommentsButtonEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJE
5
5
  isDisabled: boolean;
6
6
  mode: MODE.EDITOR;
7
7
  inputMethod: INPUT_METHOD.FLOATING_TB;
8
+ isNonTextInlineNodeInludedInComment: boolean;
8
9
  }, undefined>;
9
10
  export type ViewEventPayload = ViewInlineCommentsButtonEventAEP;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EditorContext: React.Context<{}>;
@@ -73,7 +73,41 @@ export interface Props<P extends NamedPluginKeys> {
73
73
  * ```
74
74
  *
75
75
  */
76
- declare class WithPluginState<P extends NamedPluginKeys> extends React.Component<Props<P>, State> {
76
+ declare class WithPluginState<P extends NamedPluginKeys> extends React.Component<WithPluginStateInnerProps<P>, State> {
77
+ constructor(props: WithPluginStateInnerProps<P>);
78
+ render(): JSX.Element;
79
+ }
80
+ type WithPluginStateInnerProps<P extends NamedPluginKeys> = Props<P> & {
81
+ editorActions?: EditorActionsPrivateAccess;
82
+ };
83
+ export declare class WithPluginStateInner<P extends NamedPluginKeys> extends React.Component<WithPluginStateInnerProps<P>, State> {
84
+ static displayName: string;
85
+ private listeners;
86
+ private debounce;
87
+ private notAppliedState;
88
+ private isSubscribed;
89
+ private callsCount;
90
+ state: NamedPluginStates<P>;
91
+ constructor(props: Props<P>);
92
+ private getEditorView;
93
+ private getEventDispatcher;
94
+ private handlePluginStateChange;
95
+ /**
96
+ * Debounces setState calls in order to reduce number of re-renders caused by several plugin state changes.
97
+ */
98
+ private updateState;
99
+ private dispatchAnalyticsEvent;
100
+ private getPluginsStates;
101
+ private subscribe;
102
+ private unsubscribe;
103
+ private subscribeToContextUpdates;
104
+ private unsubscribeFromContextUpdates;
105
+ componentDidMount(): void;
106
+ UNSAFE_componentWillReceiveProps(nextProps: Props<P>): void;
107
+ componentWillUnmount(): void;
108
+ render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
109
+ }
110
+ export declare class WithPluginStateOld<P extends NamedPluginKeys> extends React.Component<Props<P>, State> {
77
111
  static displayName: string;
78
112
  private listeners;
79
113
  private debounce;
@@ -5,5 +5,6 @@ export type ViewInlineCommentsButtonEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJE
5
5
  isDisabled: boolean;
6
6
  mode: MODE.EDITOR;
7
7
  inputMethod: INPUT_METHOD.FLOATING_TB;
8
+ isNonTextInlineNodeInludedInComment: boolean;
8
9
  }, undefined>;
9
10
  export type ViewEventPayload = ViewInlineCommentsButtonEventAEP;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EditorContext: React.Context<{}>;
@@ -73,7 +73,41 @@ export interface Props<P extends NamedPluginKeys> {
73
73
  * ```
74
74
  *
75
75
  */
76
- declare class WithPluginState<P extends NamedPluginKeys> extends React.Component<Props<P>, State> {
76
+ declare class WithPluginState<P extends NamedPluginKeys> extends React.Component<WithPluginStateInnerProps<P>, State> {
77
+ constructor(props: WithPluginStateInnerProps<P>);
78
+ render(): JSX.Element;
79
+ }
80
+ type WithPluginStateInnerProps<P extends NamedPluginKeys> = Props<P> & {
81
+ editorActions?: EditorActionsPrivateAccess;
82
+ };
83
+ export declare class WithPluginStateInner<P extends NamedPluginKeys> extends React.Component<WithPluginStateInnerProps<P>, State> {
84
+ static displayName: string;
85
+ private listeners;
86
+ private debounce;
87
+ private notAppliedState;
88
+ private isSubscribed;
89
+ private callsCount;
90
+ state: NamedPluginStates<P>;
91
+ constructor(props: Props<P>);
92
+ private getEditorView;
93
+ private getEventDispatcher;
94
+ private handlePluginStateChange;
95
+ /**
96
+ * Debounces setState calls in order to reduce number of re-renders caused by several plugin state changes.
97
+ */
98
+ private updateState;
99
+ private dispatchAnalyticsEvent;
100
+ private getPluginsStates;
101
+ private subscribe;
102
+ private unsubscribe;
103
+ private subscribeToContextUpdates;
104
+ private unsubscribeFromContextUpdates;
105
+ componentDidMount(): void;
106
+ UNSAFE_componentWillReceiveProps(nextProps: Props<P>): void;
107
+ componentWillUnmount(): void;
108
+ render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
109
+ }
110
+ export declare class WithPluginStateOld<P extends NamedPluginKeys> extends React.Component<Props<P>, State> {
77
111
  static displayName: string;
78
112
  private listeners;
79
113
  private debounce;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "93.4.3",
3
+ "version": "93.5.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/"
@@ -105,11 +105,12 @@
105
105
  "./intl-error-boundary": "./src/ui/IntlErrorBoundary/index.tsx",
106
106
  "./code-block": "./src/code-block/index.ts",
107
107
  "./table": "./src/table/index.ts",
108
- "./lazy-node-view": "./src/lazy-node-view/index.ts"
108
+ "./lazy-node-view": "./src/lazy-node-view/index.ts",
109
+ "./UNSAFE_do_not_use_editor_context": "./src/ui/EditorContext/index.ts"
109
110
  },
110
111
  "dependencies": {
111
112
  "@atlaskit/activity-provider": "^2.4.0",
112
- "@atlaskit/adf-schema": "^40.9.4",
113
+ "@atlaskit/adf-schema": "^42.0.2",
113
114
  "@atlaskit/adf-utils": "^19.9.0",
114
115
  "@atlaskit/analytics-listeners": "^8.11.0",
115
116
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
@@ -137,7 +138,7 @@
137
138
  "@atlaskit/media-file-preview": "^0.9.0",
138
139
  "@atlaskit/media-picker": "^66.7.0",
139
140
  "@atlaskit/media-ui": "^25.15.0",
140
- "@atlaskit/media-viewer": "49.1.0",
141
+ "@atlaskit/media-viewer": "49.1.1",
141
142
  "@atlaskit/mention": "^23.3.0",
142
143
  "@atlaskit/menu": "^2.12.0",
143
144
  "@atlaskit/onboarding": "^11.2.0",
@@ -150,7 +151,7 @@
150
151
  "@atlaskit/spinner": "^16.3.0",
151
152
  "@atlaskit/task-decision": "^17.11.0",
152
153
  "@atlaskit/textfield": "^6.5.0",
153
- "@atlaskit/tmp-editor-statsig": "^2.4.0",
154
+ "@atlaskit/tmp-editor-statsig": "^2.5.0",
154
155
  "@atlaskit/tokens": "^2.0.0",
155
156
  "@atlaskit/tooltip": "^18.8.0",
156
157
  "@atlaskit/ufo": "^0.3.0",