@atlaskit/editor-common 106.9.3 → 107.0.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,36 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 107.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#169011](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169011)
8
+ [`1b40d3fe88977`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1b40d3fe88977) -
9
+ Added new attribute to MediaProvider: viewAndUploadMediaClientConfig. This config provides a Media
10
+ AuthProvider that supplies Download or Upload token on request.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 106.10.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [#173259](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/173259)
21
+ [`8c7a6909826be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8c7a6909826be) -
22
+ Add new Changed Breakout Mode event and hook it up to breakout button
23
+
24
+ ### Patch Changes
25
+
26
+ - [#172707](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172707)
27
+ [`52f6fc286190c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/52f6fc286190c) -
28
+ [ux] Reserve minimum height for extension nodes behind a feature gate.
29
+ - [#171695](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171695)
30
+ [`665ba0151dbd5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/665ba0151dbd5) -
31
+ Fixed copy "new editor" -> "cloud editor"
32
+ - Updated dependencies
33
+
3
34
  ## 106.9.3
4
35
 
5
36
  ### Patch Changes
@@ -25,6 +25,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
25
25
  ACTION["CHANGED_ICON"] = "changedIcon";
26
26
  ACTION["CHANGED_FULL_WIDTH_MODE"] = "changedFullWidthMode";
27
27
  ACTION["CHANGED_LAYOUT"] = "changedLayout";
28
+ ACTION["CHANGED_BREAKOUT_MODE"] = "changedBreakoutMode";
28
29
  ACTION["CHANGED_REPLACEMENT_TEXT"] = "changedReplacementText";
29
30
  ACTION["CHANGED_TYPE"] = "changedType";
30
31
  ACTION["CHANGED_URL"] = "changedUrl";
@@ -10,6 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
+ var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
13
14
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
15
  var _react = _interopRequireDefault(require("react"));
15
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -18,6 +19,7 @@ var _Extension = require("./Extension");
18
19
  var _ExtensionNodeWrapper = require("./ExtensionNodeWrapper");
19
20
  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)); }
20
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
+ function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
21
23
  // getInlineNodeViewProducer is a new api to use instead of ReactNodeView
22
24
  // when creating inline node views, however, it is difficult to test the impact
23
25
  // on selections when migrating inlineExtension to use the new api.
@@ -39,6 +41,26 @@ var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeVie
39
41
  return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
40
42
  }
41
43
 
44
+ // Reserve height by setting a minimum height for the extension node view element
45
+ }, {
46
+ key: "createDomRef",
47
+ value: function createDomRef() {
48
+ if (!(0, _platformFeatureFlags.fg)('confluence_connect_macro_preset_height')) {
49
+ return _superPropGet(ExtensionNode, "createDomRef", this, 3)([]);
50
+ }
51
+ if (!this.node.isInline) {
52
+ var _this$reactComponentP, _this$reactComponentP2;
53
+ var _htmlElement = document.createElement('div');
54
+ var extensionHeight = (_this$reactComponentP = this.reactComponentProps) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.extensionNodeViewOptions) === null || _this$reactComponentP === void 0 || (_this$reactComponentP2 = _this$reactComponentP.getExtensionHeight) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.call(_this$reactComponentP, this.node);
55
+ if (extensionHeight) {
56
+ _htmlElement.style.setProperty('min-height', "".concat(extensionHeight, "px"));
57
+ }
58
+ return _htmlElement;
59
+ }
60
+ var htmlElement = document.createElement('span');
61
+ return htmlElement;
62
+ }
63
+
42
64
  /**
43
65
  * When interacting with input elements inside an extension's body, the events
44
66
  * bubble up to the editor and get handled by it. This almost always gets in the way
@@ -133,7 +133,7 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
133
133
  },
134
134
  feedbackDialogDescription: {
135
135
  id: 'fabric.editor.feedbackDialog.description',
136
- defaultMessage: 'Tell us about your experience using the new editor',
136
+ defaultMessage: 'Tell us about your experience using the cloud editor',
137
137
  description: 'Description for feedback option under quick insert dropdown'
138
138
  },
139
139
  horizontalRule: {
@@ -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 = "106.9.2";
19
+ var packageVersion = "106.10.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -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 = "106.9.2";
26
+ var packageVersion = "106.10.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -137,7 +137,7 @@ var Dropdown = exports.Dropdown = /*#__PURE__*/function (_PureComponent) {
137
137
  isOpen: true,
138
138
  onOpenChange: onOpenChange,
139
139
  position: popupPlacement.join(' '),
140
- shouldFitContainer: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6') ? shouldFitContainer : true,
140
+ shouldFitContainer: shouldFitContainer,
141
141
  id: dropdownListId
142
142
  }, children))));
143
143
  }
@@ -19,6 +19,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
19
19
  ACTION["CHANGED_ICON"] = "changedIcon";
20
20
  ACTION["CHANGED_FULL_WIDTH_MODE"] = "changedFullWidthMode";
21
21
  ACTION["CHANGED_LAYOUT"] = "changedLayout";
22
+ ACTION["CHANGED_BREAKOUT_MODE"] = "changedBreakoutMode";
22
23
  ACTION["CHANGED_REPLACEMENT_TEXT"] = "changedReplacementText";
23
24
  ACTION["CHANGED_TYPE"] = "changedType";
24
25
  ACTION["CHANGED_URL"] = "changedUrl";
@@ -17,6 +17,24 @@ export class ExtensionNode extends ReactNodeView {
17
17
  return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
18
18
  }
19
19
 
20
+ // Reserve height by setting a minimum height for the extension node view element
21
+ createDomRef() {
22
+ if (!fg('confluence_connect_macro_preset_height')) {
23
+ return super.createDomRef();
24
+ }
25
+ if (!this.node.isInline) {
26
+ var _this$reactComponentP, _this$reactComponentP2, _this$reactComponentP3;
27
+ const htmlElement = document.createElement('div');
28
+ const extensionHeight = (_this$reactComponentP = this.reactComponentProps) === null || _this$reactComponentP === void 0 ? void 0 : (_this$reactComponentP2 = _this$reactComponentP.extensionNodeViewOptions) === null || _this$reactComponentP2 === void 0 ? void 0 : (_this$reactComponentP3 = _this$reactComponentP2.getExtensionHeight) === null || _this$reactComponentP3 === void 0 ? void 0 : _this$reactComponentP3.call(_this$reactComponentP2, this.node);
29
+ if (extensionHeight) {
30
+ htmlElement.style.setProperty('min-height', `${extensionHeight}px`);
31
+ }
32
+ return htmlElement;
33
+ }
34
+ const htmlElement = document.createElement('span');
35
+ return htmlElement;
36
+ }
37
+
20
38
  /**
21
39
  * When interacting with input elements inside an extension's body, the events
22
40
  * bubble up to the editor and get handled by it. This almost always gets in the way
@@ -127,7 +127,7 @@ export const toolbarInsertBlockMessages = defineMessages({
127
127
  },
128
128
  feedbackDialogDescription: {
129
129
  id: 'fabric.editor.feedbackDialog.description',
130
- defaultMessage: 'Tell us about your experience using the new editor',
130
+ defaultMessage: 'Tell us about your experience using the cloud editor',
131
131
  description: 'Description for feedback option under quick insert dropdown'
132
132
  },
133
133
  horizontalRule: {
@@ -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 = "106.9.2";
4
+ const packageVersion = "106.10.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -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 = "106.9.2";
16
+ const packageVersion = "106.10.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -112,7 +112,7 @@ export class Dropdown extends PureComponent {
112
112
  isOpen: true,
113
113
  onOpenChange: onOpenChange,
114
114
  position: popupPlacement.join(' '),
115
- shouldFitContainer: fg('platform_editor_controls_patch_6') ? shouldFitContainer : true,
115
+ shouldFitContainer: shouldFitContainer,
116
116
  id: dropdownListId
117
117
  }, children))));
118
118
  }
@@ -19,6 +19,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
19
19
  ACTION["CHANGED_ICON"] = "changedIcon";
20
20
  ACTION["CHANGED_FULL_WIDTH_MODE"] = "changedFullWidthMode";
21
21
  ACTION["CHANGED_LAYOUT"] = "changedLayout";
22
+ ACTION["CHANGED_BREAKOUT_MODE"] = "changedBreakoutMode";
22
23
  ACTION["CHANGED_REPLACEMENT_TEXT"] = "changedReplacementText";
23
24
  ACTION["CHANGED_TYPE"] = "changedType";
24
25
  ACTION["CHANGED_URL"] = "changedUrl";
@@ -2,9 +2,11 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
4
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _get from "@babel/runtime/helpers/get";
5
6
  import _inherits from "@babel/runtime/helpers/inherits";
6
7
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
+ function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
8
10
  import React from 'react';
9
11
  import { fg } from '@atlaskit/platform-feature-flags';
10
12
  import ReactNodeView from '../react-node-view';
@@ -31,6 +33,26 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
31
33
  return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
32
34
  }
33
35
 
36
+ // Reserve height by setting a minimum height for the extension node view element
37
+ }, {
38
+ key: "createDomRef",
39
+ value: function createDomRef() {
40
+ if (!fg('confluence_connect_macro_preset_height')) {
41
+ return _superPropGet(ExtensionNode, "createDomRef", this, 3)([]);
42
+ }
43
+ if (!this.node.isInline) {
44
+ var _this$reactComponentP, _this$reactComponentP2;
45
+ var _htmlElement = document.createElement('div');
46
+ var extensionHeight = (_this$reactComponentP = this.reactComponentProps) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.extensionNodeViewOptions) === null || _this$reactComponentP === void 0 || (_this$reactComponentP2 = _this$reactComponentP.getExtensionHeight) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.call(_this$reactComponentP, this.node);
47
+ if (extensionHeight) {
48
+ _htmlElement.style.setProperty('min-height', "".concat(extensionHeight, "px"));
49
+ }
50
+ return _htmlElement;
51
+ }
52
+ var htmlElement = document.createElement('span');
53
+ return htmlElement;
54
+ }
55
+
34
56
  /**
35
57
  * When interacting with input elements inside an extension's body, the events
36
58
  * bubble up to the editor and get handled by it. This almost always gets in the way
@@ -127,7 +127,7 @@ export var toolbarInsertBlockMessages = defineMessages({
127
127
  },
128
128
  feedbackDialogDescription: {
129
129
  id: 'fabric.editor.feedbackDialog.description',
130
- defaultMessage: 'Tell us about your experience using the new editor',
130
+ defaultMessage: 'Tell us about your experience using the cloud editor',
131
131
  description: 'Description for feedback option under quick insert dropdown'
132
132
  },
133
133
  horizontalRule: {
@@ -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 = "106.9.2";
10
+ var packageVersion = "106.10.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -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 = "106.9.2";
23
+ var packageVersion = "106.10.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -128,7 +128,7 @@ export var Dropdown = /*#__PURE__*/function (_PureComponent) {
128
128
  isOpen: true,
129
129
  onOpenChange: onOpenChange,
130
130
  position: popupPlacement.join(' '),
131
- shouldFitContainer: fg('platform_editor_controls_patch_6') ? shouldFitContainer : true,
131
+ shouldFitContainer: shouldFitContainer,
132
132
  id: dropdownListId
133
133
  }, children))));
134
134
  }
@@ -13,4 +13,8 @@ export type BreakoutResizedPerfSamplingAEP = OperationalAEP<ACTION.RESIZED_PERF_
13
13
  docSize: number;
14
14
  isInitialSample: boolean;
15
15
  }>;
16
- export type BreakoutEventPayload = BreakoutResizedAEP | BreakoutResizedPerfSamplingAEP;
16
+ export type ChangedBreakoutModeAEP = TrackAEP<ACTION.CHANGED_BREAKOUT_MODE, ACTION_SUBJECT.ELEMENT, undefined, {
17
+ mode: 'center' | 'wide' | 'full-width';
18
+ nodeType: BreakoutSupportedNodes;
19
+ }, undefined>;
20
+ export type BreakoutEventPayload = BreakoutResizedAEP | BreakoutResizedPerfSamplingAEP | ChangedBreakoutModeAEP;
@@ -18,6 +18,7 @@ export declare enum ACTION {
18
18
  CHANGED_ICON = "changedIcon",
19
19
  CHANGED_FULL_WIDTH_MODE = "changedFullWidthMode",
20
20
  CHANGED_LAYOUT = "changedLayout",
21
+ CHANGED_BREAKOUT_MODE = "changedBreakoutMode",
21
22
  CHANGED_REPLACEMENT_TEXT = "changedReplacementText",
22
23
  CHANGED_TYPE = "changedType",
23
24
  CHANGED_URL = "changedUrl",
@@ -14,11 +14,22 @@ interface ExtensionNodeViewOptions {
14
14
  appearance?: EditorAppearance;
15
15
  getExtensionHeight?: GetPMNodeHeight;
16
16
  }
17
- export declare class ExtensionNode extends ReactNodeView {
17
+ interface ReactExtensionNodeProps {
18
+ extensionNodeViewOptions?: ExtensionNodeViewOptions;
19
+ providerFactory: ProviderFactory;
20
+ extensionHandlers: ExtensionHandlers;
21
+ pluginInjectionApi: ExtensionsPluginInjectionAPI;
22
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
23
+ showLivePagesBodiedMacrosRendererView?: (node: ADFEntity) => boolean;
24
+ showUpdatedLivePages1PBodiedExtensionUI?: (node: ADFEntity) => boolean;
25
+ rendererExtensionHandlers?: ExtensionHandlers;
26
+ }
27
+ export declare class ExtensionNode<AdditionalParams = unknown> extends ReactNodeView<ReactExtensionNodeProps & AdditionalParams> {
18
28
  ignoreMutation(mutation: MutationRecord | {
19
29
  type: 'selection';
20
30
  target: Node;
21
31
  }): boolean;
32
+ createDomRef(): HTMLElement;
22
33
  /**
23
34
  * When interacting with input elements inside an extension's body, the events
24
35
  * bubble up to the editor and get handled by it. This almost always gets in the way
@@ -12,4 +12,9 @@ export type MediaProvider = {
12
12
  * Used for displaying Media Cards and downloading files.
13
13
  */
14
14
  viewMediaClientConfig: MediaClientConfig;
15
+ /**
16
+ * Used for displaying and downloading files OR uploading files. The operation will be determined by Media on each request.
17
+ * This will be a replacement for viewMediaClientConfig and uploadMediaClientConfig together
18
+ */
19
+ viewAndUploadMediaClientConfig?: MediaClientConfig;
15
20
  };
@@ -13,4 +13,8 @@ export type BreakoutResizedPerfSamplingAEP = OperationalAEP<ACTION.RESIZED_PERF_
13
13
  docSize: number;
14
14
  isInitialSample: boolean;
15
15
  }>;
16
- export type BreakoutEventPayload = BreakoutResizedAEP | BreakoutResizedPerfSamplingAEP;
16
+ export type ChangedBreakoutModeAEP = TrackAEP<ACTION.CHANGED_BREAKOUT_MODE, ACTION_SUBJECT.ELEMENT, undefined, {
17
+ mode: 'center' | 'wide' | 'full-width';
18
+ nodeType: BreakoutSupportedNodes;
19
+ }, undefined>;
20
+ export type BreakoutEventPayload = BreakoutResizedAEP | BreakoutResizedPerfSamplingAEP | ChangedBreakoutModeAEP;
@@ -18,6 +18,7 @@ export declare enum ACTION {
18
18
  CHANGED_ICON = "changedIcon",
19
19
  CHANGED_FULL_WIDTH_MODE = "changedFullWidthMode",
20
20
  CHANGED_LAYOUT = "changedLayout",
21
+ CHANGED_BREAKOUT_MODE = "changedBreakoutMode",
21
22
  CHANGED_REPLACEMENT_TEXT = "changedReplacementText",
22
23
  CHANGED_TYPE = "changedType",
23
24
  CHANGED_URL = "changedUrl",
@@ -14,11 +14,22 @@ interface ExtensionNodeViewOptions {
14
14
  appearance?: EditorAppearance;
15
15
  getExtensionHeight?: GetPMNodeHeight;
16
16
  }
17
- export declare class ExtensionNode extends ReactNodeView {
17
+ interface ReactExtensionNodeProps {
18
+ extensionNodeViewOptions?: ExtensionNodeViewOptions;
19
+ providerFactory: ProviderFactory;
20
+ extensionHandlers: ExtensionHandlers;
21
+ pluginInjectionApi: ExtensionsPluginInjectionAPI;
22
+ macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
23
+ showLivePagesBodiedMacrosRendererView?: (node: ADFEntity) => boolean;
24
+ showUpdatedLivePages1PBodiedExtensionUI?: (node: ADFEntity) => boolean;
25
+ rendererExtensionHandlers?: ExtensionHandlers;
26
+ }
27
+ export declare class ExtensionNode<AdditionalParams = unknown> extends ReactNodeView<ReactExtensionNodeProps & AdditionalParams> {
18
28
  ignoreMutation(mutation: MutationRecord | {
19
29
  type: 'selection';
20
30
  target: Node;
21
31
  }): boolean;
32
+ createDomRef(): HTMLElement;
22
33
  /**
23
34
  * When interacting with input elements inside an extension's body, the events
24
35
  * bubble up to the editor and get handled by it. This almost always gets in the way
@@ -12,4 +12,9 @@ export type MediaProvider = {
12
12
  * Used for displaying Media Cards and downloading files.
13
13
  */
14
14
  viewMediaClientConfig: MediaClientConfig;
15
+ /**
16
+ * Used for displaying and downloading files OR uploading files. The operation will be determined by Media on each request.
17
+ * This will be a replacement for viewMediaClientConfig and uploadMediaClientConfig together
18
+ */
19
+ viewAndUploadMediaClientConfig?: MediaClientConfig;
15
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "106.9.3",
3
+ "version": "107.0.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/"
@@ -134,7 +134,7 @@
134
134
  "@atlaskit/codemod-utils": "^4.2.0",
135
135
  "@atlaskit/css": "^0.10.0",
136
136
  "@atlaskit/custom-steps": "^0.11.0",
137
- "@atlaskit/dropdown-menu": "^16.0.0",
137
+ "@atlaskit/dropdown-menu": "^16.1.0",
138
138
  "@atlaskit/editor-json-transformer": "^8.24.0",
139
139
  "@atlaskit/editor-palette": "^2.1.0",
140
140
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -147,13 +147,13 @@
147
147
  "@atlaskit/link-datasource": "^4.11.0",
148
148
  "@atlaskit/link-picker": "^3.5.0",
149
149
  "@atlaskit/media-card": "^79.3.0",
150
- "@atlaskit/media-client": "^33.4.0",
150
+ "@atlaskit/media-client": "^34.0.0",
151
151
  "@atlaskit/media-client-react": "^4.1.0",
152
152
  "@atlaskit/media-common": "^12.2.0",
153
153
  "@atlaskit/media-file-preview": "^0.11.0",
154
- "@atlaskit/media-picker": "^69.0.0",
154
+ "@atlaskit/media-picker": "^70.0.0",
155
155
  "@atlaskit/media-ui": "^28.3.0",
156
- "@atlaskit/media-viewer": "^52.2.0",
156
+ "@atlaskit/media-viewer": "^52.3.0",
157
157
  "@atlaskit/mention": "^24.2.0",
158
158
  "@atlaskit/menu": "^8.0.0",
159
159
  "@atlaskit/onboarding": "^14.2.0",
@@ -164,7 +164,7 @@
164
164
  "@atlaskit/profilecard": "^23.19.0",
165
165
  "@atlaskit/react-ufo": "^3.13.0",
166
166
  "@atlaskit/section-message": "^8.2.0",
167
- "@atlaskit/smart-card": "^38.9.0",
167
+ "@atlaskit/smart-card": "^38.10.0",
168
168
  "@atlaskit/smart-user-picker": "^8.0.0",
169
169
  "@atlaskit/spinner": "^18.0.0",
170
170
  "@atlaskit/task-decision": "^19.2.0",
@@ -202,15 +202,15 @@
202
202
  "w3c-keyname": "^2.1.8"
203
203
  },
204
204
  "peerDependencies": {
205
- "@atlaskit/media-core": "^36.1.0",
205
+ "@atlaskit/media-core": "^37.0.0",
206
206
  "react": "^18.2.0",
207
207
  "react-dom": "^18.2.0",
208
208
  "react-intl-next": "npm:react-intl@^5.18.1"
209
209
  },
210
210
  "devDependencies": {
211
211
  "@af/visual-regression": "workspace:^",
212
- "@atlaskit/media-core": "^36.1.0",
213
- "@atlaskit/media-test-helpers": "^36.1.0",
212
+ "@atlaskit/media-core": "^37.0.0",
213
+ "@atlaskit/media-test-helpers": "^37.0.0",
214
214
  "@atlaskit/util-data-test": "^18.0.0",
215
215
  "@atlaskit/visual-regression": "workspace:^",
216
216
  "@testing-library/dom": "^10.1.0",
@@ -320,7 +320,7 @@
320
320
  "platform_editor_controls_patch_3": {
321
321
  "type": "boolean"
322
322
  },
323
- "platform_editor_controls_patch_6": {
323
+ "platform_editor_lcm_nested_panel_icon_fix": {
324
324
  "type": "boolean"
325
325
  },
326
326
  "editor_a11y_aria_label_removal_popup": {
@@ -386,6 +386,9 @@
386
386
  "platform_editor_fix_floating_toolbar_focus": {
387
387
  "type": "boolean"
388
388
  },
389
+ "confluence_connect_macro_preset_height": {
390
+ "type": "boolean"
391
+ },
389
392
  "platform_editor_breakout_resizing_hello_release": {
390
393
  "type": "boolean"
391
394
  },