@atlaskit/editor-common 78.6.1 → 78.8.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 +12 -0
- package/dist/cjs/extensibility/Extension.js +4 -2
- package/dist/cjs/extensibility/ExtensionComponent.js +8 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +6 -4
- package/dist/cjs/extensibility/extensionNodeView.js +5 -3
- package/dist/cjs/media/index.js +8 -1
- package/dist/cjs/media/messages/comments.js +14 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/Extension.js +4 -2
- package/dist/es2019/extensibility/ExtensionComponent.js +9 -6
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +7 -11
- package/dist/es2019/extensibility/extensionNodeView.js +5 -3
- package/dist/es2019/media/index.js +2 -1
- package/dist/es2019/media/messages/comments.js +8 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/Extension.js +4 -2
- package/dist/esm/extensibility/ExtensionComponent.js +9 -6
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +6 -4
- package/dist/esm/extensibility/extensionNodeView.js +5 -3
- package/dist/esm/media/index.js +2 -1
- package/dist/esm/media/messages/comments.js +8 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/extensibility/Extension/Extension/index.d.ts +1 -0
- package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +1 -0
- package/dist/types/extensibility/Extension.d.ts +1 -0
- package/dist/types/extensibility/ExtensionComponent.d.ts +1 -0
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +1 -0
- package/dist/types/extensibility/extensionNodeView.d.ts +2 -1
- package/dist/types/media/index.d.ts +1 -0
- package/dist/types/media/messages/comments.d.ts +7 -0
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/Extension.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +2 -1
- package/dist/types-ts4.5/media/index.d.ts +1 -0
- package/dist/types-ts4.5/media/messages/comments.d.ts +7 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#75635](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75635) [`af4972f3a9bb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/af4972f3a9bb) - [ux] Added comment button for media single floating toolbar
|
|
8
|
+
|
|
9
|
+
## 78.7.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#76370](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76370) [`6e7d6bc06b91`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e7d6bc06b91) - Passes Confluence experiment flag to extensions for new macro visual design project
|
|
14
|
+
|
|
3
15
|
## 78.6.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -38,7 +38,8 @@ var Extension = exports.Extension = /*#__PURE__*/function (_Component) {
|
|
|
38
38
|
references = _this$props.references,
|
|
39
39
|
editorAppearance = _this$props.editorAppearance,
|
|
40
40
|
pluginInjectionApi = _this$props.pluginInjectionApi,
|
|
41
|
-
eventDispatcher = _this$props.eventDispatcher
|
|
41
|
+
eventDispatcher = _this$props.eventDispatcher,
|
|
42
|
+
showMacroInteractionDesignUpdates = _this$props.showMacroInteractionDesignUpdates;
|
|
42
43
|
return /*#__PURE__*/_react.default.createElement(_ExtensionComponent.ExtensionComponent, {
|
|
43
44
|
editorView: editorView,
|
|
44
45
|
node: node,
|
|
@@ -49,7 +50,8 @@ var Extension = exports.Extension = /*#__PURE__*/function (_Component) {
|
|
|
49
50
|
extensionHandlers: extensionHandlers,
|
|
50
51
|
editorAppearance: editorAppearance,
|
|
51
52
|
pluginInjectionApi: pluginInjectionApi,
|
|
52
|
-
eventDispatcher: eventDispatcher
|
|
53
|
+
eventDispatcher: eventDispatcher,
|
|
54
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
53
55
|
});
|
|
54
56
|
});
|
|
55
57
|
_this.providerFactory = props.providerFactory || new _providerFactory.ProviderFactory();
|
|
@@ -193,7 +193,8 @@ var ExtensionComponent = exports.ExtensionComponent = /*#__PURE__*/function (_Co
|
|
|
193
193
|
editorAppearance = _this$props2.editorAppearance,
|
|
194
194
|
pluginInjectionApi = _this$props2.pluginInjectionApi,
|
|
195
195
|
getPos = _this$props2.getPos,
|
|
196
|
-
eventDispatcher = _this$props2.eventDispatcher
|
|
196
|
+
eventDispatcher = _this$props2.eventDispatcher,
|
|
197
|
+
showMacroInteractionDesignUpdates = _this$props2.showMacroInteractionDesignUpdates;
|
|
197
198
|
if (node.type.name === 'multiBodiedExtension') {
|
|
198
199
|
return /*#__PURE__*/_react.default.createElement(_MultiBodiedExtension.default, {
|
|
199
200
|
node: node,
|
|
@@ -203,7 +204,8 @@ var ExtensionComponent = exports.ExtensionComponent = /*#__PURE__*/function (_Co
|
|
|
203
204
|
tryExtensionHandler: this.tryExtensionHandler.bind(this),
|
|
204
205
|
eventDispatcher: eventDispatcher,
|
|
205
206
|
pluginInjectionApi: pluginInjectionApi,
|
|
206
|
-
editorAppearance: editorAppearance
|
|
207
|
+
editorAppearance: editorAppearance,
|
|
208
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
207
209
|
});
|
|
208
210
|
}
|
|
209
211
|
var extensionHandlerResult = this.tryExtensionHandler(undefined);
|
|
@@ -219,11 +221,13 @@ var ExtensionComponent = exports.ExtensionComponent = /*#__PURE__*/function (_Co
|
|
|
219
221
|
view: editorView,
|
|
220
222
|
editorAppearance: editorAppearance,
|
|
221
223
|
hideFrame: (_this$state$_privateP = this.state._privateProps) === null || _this$state$_privateP === void 0 ? void 0 : _this$state$_privateP.__hideFrame,
|
|
222
|
-
pluginInjectionApi: pluginInjectionApi
|
|
224
|
+
pluginInjectionApi: pluginInjectionApi,
|
|
225
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
223
226
|
}, extensionHandlerResult);
|
|
224
227
|
case 'inlineExtension':
|
|
225
228
|
return /*#__PURE__*/_react.default.createElement(_InlineExtension.default, {
|
|
226
|
-
node: node
|
|
229
|
+
node: node,
|
|
230
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
227
231
|
}, extensionHandlerResult);
|
|
228
232
|
default:
|
|
229
233
|
return null;
|
|
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
13
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
@@ -21,7 +21,6 @@ var _utils = require("../../utils");
|
|
|
21
21
|
var _withPluginState = require("../../with-plugin-state");
|
|
22
22
|
var _actionApi = require("./action-api");
|
|
23
23
|
var _styles = require("./styles");
|
|
24
|
-
var _templateObject, _templateObject2;
|
|
25
24
|
var _excluded = ["url"];
|
|
26
25
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
27
26
|
/** @jsx jsx */
|
|
@@ -35,7 +34,10 @@ var getWrapperTitleContent = function getWrapperTitleContent(imageData, title) {
|
|
|
35
34
|
return (0, _react2.jsx)("div", {
|
|
36
35
|
className: "extension-title"
|
|
37
36
|
}, (0, _react2.jsx)("img", (0, _extends2.default)({
|
|
38
|
-
css: (0, _react2.css)(
|
|
37
|
+
css: (0, _react2.css)({
|
|
38
|
+
maxHeight: '24px',
|
|
39
|
+
maxWidth: '24px'
|
|
40
|
+
}),
|
|
39
41
|
src: url
|
|
40
42
|
}, rest, {
|
|
41
43
|
alt: title
|
|
@@ -90,7 +92,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
|
|
|
90
92
|
var articleRef = _react.default.useCallback(function (node) {
|
|
91
93
|
return handleContentDOMRef(node);
|
|
92
94
|
}, [handleContentDOMRef]);
|
|
93
|
-
var containerCssExtended = (0, _react2.css)(
|
|
95
|
+
var containerCssExtended = (0, _react2.css)(_MultiBodiedExtension.sharedMultiBodiedExtensionStyles.mbeExtensionContainer, (0, _defineProperty2.default)({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), _MultiBodiedExtension.sharedMultiBodiedExtensionStyles.extensionFrameContent));
|
|
94
96
|
var shouldBreakout =
|
|
95
97
|
// Extension should breakout when the layout is set to 'full-width' or 'wide'.
|
|
96
98
|
['full-width', 'wide'].includes(node.attrs.layout) &&
|
|
@@ -72,20 +72,22 @@ var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeVie
|
|
|
72
72
|
handleContentDOMRef: forwardRef,
|
|
73
73
|
extensionHandlers: props.extensionHandlers,
|
|
74
74
|
editorAppearance: (_props$extensionNodeV = props.extensionNodeViewOptions) === null || _props$extensionNodeV === void 0 ? void 0 : _props$extensionNodeV.appearance,
|
|
75
|
-
pluginInjectionApi: props.pluginInjectionApi
|
|
75
|
+
pluginInjectionApi: props.pluginInjectionApi,
|
|
76
|
+
showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
|
|
76
77
|
}));
|
|
77
78
|
}
|
|
78
79
|
}]);
|
|
79
80
|
return ExtensionNode;
|
|
80
81
|
}(_reactNodeView.default);
|
|
81
|
-
function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi) {
|
|
82
|
+
function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, showMacroInteractionDesignUpdates) {
|
|
82
83
|
return function (node, view, getPos) {
|
|
83
84
|
var hasIntlContext = true;
|
|
84
85
|
return new ExtensionNode(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
85
86
|
providerFactory: providerFactory,
|
|
86
87
|
extensionHandlers: extensionHandlers,
|
|
87
88
|
extensionNodeViewOptions: extensionNodeViewOptions,
|
|
88
|
-
pluginInjectionApi: pluginInjectionApi
|
|
89
|
+
pluginInjectionApi: pluginInjectionApi,
|
|
90
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
89
91
|
}, undefined, undefined, undefined, hasIntlContext).init();
|
|
90
92
|
};
|
|
91
93
|
}
|
package/dist/cjs/media/index.js
CHANGED
|
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "captionMessages", {
|
|
|
15
15
|
return _caption.captionMessages;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "commentMessages", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _comments.commentMessages;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
Object.defineProperty(exports, "dropPlaceholderMessages", {
|
|
19
25
|
enumerable: true,
|
|
20
26
|
get: function get() {
|
|
@@ -65,4 +71,5 @@ var _toolbarMedia = require("./messages/toolbarMedia");
|
|
|
65
71
|
var _caption = require("./messages/caption");
|
|
66
72
|
var _dropPlaceholder = require("./messages/dropPlaceholder");
|
|
67
73
|
var _altText = require("./messages/altText");
|
|
68
|
-
var _mediaResizeAnnouncerMess = require("./messages/mediaResizeAnnouncerMess");
|
|
74
|
+
var _mediaResizeAnnouncerMess = require("./messages/mediaResizeAnnouncerMess");
|
|
75
|
+
var _comments = require("./messages/comments");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.commentMessages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var commentMessages = exports.commentMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
addCommentOnMedia: {
|
|
10
|
+
id: 'fabric.editor.addCommentOnMedia',
|
|
11
|
+
defaultMessage: 'Add comment',
|
|
12
|
+
description: 'Add a comment for this image'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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 = "78.
|
|
19
|
+
var packageVersion = "78.8.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "78.
|
|
25
|
+
var packageVersion = "78.8.0";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -17,7 +17,8 @@ export class Extension extends Component {
|
|
|
17
17
|
references,
|
|
18
18
|
editorAppearance,
|
|
19
19
|
pluginInjectionApi,
|
|
20
|
-
eventDispatcher
|
|
20
|
+
eventDispatcher,
|
|
21
|
+
showMacroInteractionDesignUpdates
|
|
21
22
|
} = this.props;
|
|
22
23
|
return /*#__PURE__*/React.createElement(ExtensionComponent, {
|
|
23
24
|
editorView: editorView,
|
|
@@ -29,7 +30,8 @@ export class Extension extends Component {
|
|
|
29
30
|
extensionHandlers: extensionHandlers,
|
|
30
31
|
editorAppearance: editorAppearance,
|
|
31
32
|
pluginInjectionApi: pluginInjectionApi,
|
|
32
|
-
eventDispatcher: eventDispatcher
|
|
33
|
+
eventDispatcher: eventDispatcher,
|
|
34
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
33
35
|
});
|
|
34
36
|
});
|
|
35
37
|
this.providerFactory = props.providerFactory || new ProviderFactory();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Component } from 'react';
|
|
2
|
+
import React, { Component } from 'react';
|
|
4
3
|
import memoizeOne from 'memoize-one';
|
|
5
4
|
import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '../extensions';
|
|
6
5
|
import { getExtensionRenderer } from '../utils';
|
|
@@ -146,7 +145,8 @@ export class ExtensionComponent extends Component {
|
|
|
146
145
|
editorAppearance,
|
|
147
146
|
pluginInjectionApi,
|
|
148
147
|
getPos,
|
|
149
|
-
eventDispatcher
|
|
148
|
+
eventDispatcher,
|
|
149
|
+
showMacroInteractionDesignUpdates
|
|
150
150
|
} = this.props;
|
|
151
151
|
if (node.type.name === 'multiBodiedExtension') {
|
|
152
152
|
return /*#__PURE__*/React.createElement(MultiBodiedExtension, {
|
|
@@ -157,7 +157,8 @@ export class ExtensionComponent extends Component {
|
|
|
157
157
|
tryExtensionHandler: this.tryExtensionHandler.bind(this),
|
|
158
158
|
eventDispatcher: eventDispatcher,
|
|
159
159
|
pluginInjectionApi: pluginInjectionApi,
|
|
160
|
-
editorAppearance: editorAppearance
|
|
160
|
+
editorAppearance: editorAppearance,
|
|
161
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
161
162
|
});
|
|
162
163
|
}
|
|
163
164
|
const extensionHandlerResult = this.tryExtensionHandler(undefined);
|
|
@@ -173,11 +174,13 @@ export class ExtensionComponent extends Component {
|
|
|
173
174
|
view: editorView,
|
|
174
175
|
editorAppearance: editorAppearance,
|
|
175
176
|
hideFrame: (_this$state$_privateP = this.state._privateProps) === null || _this$state$_privateP === void 0 ? void 0 : _this$state$_privateP.__hideFrame,
|
|
176
|
-
pluginInjectionApi: pluginInjectionApi
|
|
177
|
+
pluginInjectionApi: pluginInjectionApi,
|
|
178
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
177
179
|
}, extensionHandlerResult);
|
|
178
180
|
case 'inlineExtension':
|
|
179
181
|
return /*#__PURE__*/React.createElement(InlineExtension, {
|
|
180
|
-
node: node
|
|
182
|
+
node: node,
|
|
183
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
181
184
|
}, extensionHandlerResult);
|
|
182
185
|
default:
|
|
183
186
|
return null;
|
|
@@ -22,10 +22,10 @@ const getWrapperTitleContent = (imageData, title) => {
|
|
|
22
22
|
return jsx("div", {
|
|
23
23
|
className: "extension-title"
|
|
24
24
|
}, jsx("img", _extends({
|
|
25
|
-
css: css
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
css: css({
|
|
26
|
+
maxHeight: '24px',
|
|
27
|
+
maxWidth: '24px'
|
|
28
|
+
}),
|
|
29
29
|
src: url
|
|
30
30
|
}, rest, {
|
|
31
31
|
alt: title
|
|
@@ -79,13 +79,9 @@ const MultiBodiedExtensionWithWidth = ({
|
|
|
79
79
|
const articleRef = React.useCallback(node => {
|
|
80
80
|
return handleContentDOMRef(node);
|
|
81
81
|
}, [handleContentDOMRef]);
|
|
82
|
-
const containerCssExtended = css
|
|
83
|
-
${sharedMultiBodiedExtensionStyles.
|
|
84
|
-
|
|
85
|
-
> [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1}) {
|
|
86
|
-
${sharedMultiBodiedExtensionStyles.extensionFrameContent}
|
|
87
|
-
}
|
|
88
|
-
`;
|
|
82
|
+
const containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, {
|
|
83
|
+
[`.multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1})`]: sharedMultiBodiedExtensionStyles.extensionFrameContent
|
|
84
|
+
});
|
|
89
85
|
const shouldBreakout =
|
|
90
86
|
// Extension should breakout when the layout is set to 'full-width' or 'wide'.
|
|
91
87
|
['full-width', 'wide'].includes(node.attrs.layout) &&
|
|
@@ -45,18 +45,20 @@ export class ExtensionNode extends ReactNodeView {
|
|
|
45
45
|
handleContentDOMRef: forwardRef,
|
|
46
46
|
extensionHandlers: props.extensionHandlers,
|
|
47
47
|
editorAppearance: (_props$extensionNodeV = props.extensionNodeViewOptions) === null || _props$extensionNodeV === void 0 ? void 0 : _props$extensionNodeV.appearance,
|
|
48
|
-
pluginInjectionApi: props.pluginInjectionApi
|
|
48
|
+
pluginInjectionApi: props.pluginInjectionApi,
|
|
49
|
+
showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
|
|
49
50
|
}));
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi) {
|
|
53
|
+
export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, showMacroInteractionDesignUpdates) {
|
|
53
54
|
return (node, view, getPos) => {
|
|
54
55
|
const hasIntlContext = true;
|
|
55
56
|
return new ExtensionNode(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
56
57
|
providerFactory,
|
|
57
58
|
extensionHandlers,
|
|
58
59
|
extensionNodeViewOptions,
|
|
59
|
-
pluginInjectionApi
|
|
60
|
+
pluginInjectionApi,
|
|
61
|
+
showMacroInteractionDesignUpdates
|
|
60
62
|
}, undefined, undefined, undefined, hasIntlContext).init();
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -6,4 +6,5 @@ export { toolbarMediaMessages } from './messages/toolbarMedia';
|
|
|
6
6
|
export { captionMessages } from './messages/caption';
|
|
7
7
|
export { dropPlaceholderMessages } from './messages/dropPlaceholder';
|
|
8
8
|
export { altTextMessages } from './messages/altText';
|
|
9
|
-
export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
|
|
9
|
+
export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
|
|
10
|
+
export { commentMessages } from './messages/comments';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "78.
|
|
3
|
+
const packageVersion = "78.8.0";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "78.
|
|
10
|
+
const packageVersion = "78.8.0";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -28,7 +28,8 @@ export var Extension = /*#__PURE__*/function (_Component) {
|
|
|
28
28
|
references = _this$props.references,
|
|
29
29
|
editorAppearance = _this$props.editorAppearance,
|
|
30
30
|
pluginInjectionApi = _this$props.pluginInjectionApi,
|
|
31
|
-
eventDispatcher = _this$props.eventDispatcher
|
|
31
|
+
eventDispatcher = _this$props.eventDispatcher,
|
|
32
|
+
showMacroInteractionDesignUpdates = _this$props.showMacroInteractionDesignUpdates;
|
|
32
33
|
return /*#__PURE__*/React.createElement(ExtensionComponent, {
|
|
33
34
|
editorView: editorView,
|
|
34
35
|
node: node,
|
|
@@ -39,7 +40,8 @@ export var Extension = /*#__PURE__*/function (_Component) {
|
|
|
39
40
|
extensionHandlers: extensionHandlers,
|
|
40
41
|
editorAppearance: editorAppearance,
|
|
41
42
|
pluginInjectionApi: pluginInjectionApi,
|
|
42
|
-
eventDispatcher: eventDispatcher
|
|
43
|
+
eventDispatcher: eventDispatcher,
|
|
44
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
43
45
|
});
|
|
44
46
|
});
|
|
45
47
|
_this.providerFactory = props.providerFactory || new ProviderFactory();
|
|
@@ -9,8 +9,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { Component } from 'react';
|
|
12
|
+
import React, { Component } from 'react';
|
|
14
13
|
import memoizeOne from 'memoize-one';
|
|
15
14
|
import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '../extensions';
|
|
16
15
|
import { getExtensionRenderer } from '../utils';
|
|
@@ -184,7 +183,8 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
|
|
|
184
183
|
editorAppearance = _this$props2.editorAppearance,
|
|
185
184
|
pluginInjectionApi = _this$props2.pluginInjectionApi,
|
|
186
185
|
getPos = _this$props2.getPos,
|
|
187
|
-
eventDispatcher = _this$props2.eventDispatcher
|
|
186
|
+
eventDispatcher = _this$props2.eventDispatcher,
|
|
187
|
+
showMacroInteractionDesignUpdates = _this$props2.showMacroInteractionDesignUpdates;
|
|
188
188
|
if (node.type.name === 'multiBodiedExtension') {
|
|
189
189
|
return /*#__PURE__*/React.createElement(MultiBodiedExtension, {
|
|
190
190
|
node: node,
|
|
@@ -194,7 +194,8 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
|
|
|
194
194
|
tryExtensionHandler: this.tryExtensionHandler.bind(this),
|
|
195
195
|
eventDispatcher: eventDispatcher,
|
|
196
196
|
pluginInjectionApi: pluginInjectionApi,
|
|
197
|
-
editorAppearance: editorAppearance
|
|
197
|
+
editorAppearance: editorAppearance,
|
|
198
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
198
199
|
});
|
|
199
200
|
}
|
|
200
201
|
var extensionHandlerResult = this.tryExtensionHandler(undefined);
|
|
@@ -210,11 +211,13 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
|
|
|
210
211
|
view: editorView,
|
|
211
212
|
editorAppearance: editorAppearance,
|
|
212
213
|
hideFrame: (_this$state$_privateP = this.state._privateProps) === null || _this$state$_privateP === void 0 ? void 0 : _this$state$_privateP.__hideFrame,
|
|
213
|
-
pluginInjectionApi: pluginInjectionApi
|
|
214
|
+
pluginInjectionApi: pluginInjectionApi,
|
|
215
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
214
216
|
}, extensionHandlerResult);
|
|
215
217
|
case 'inlineExtension':
|
|
216
218
|
return /*#__PURE__*/React.createElement(InlineExtension, {
|
|
217
|
-
node: node
|
|
219
|
+
node: node,
|
|
220
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
218
221
|
}, extensionHandlerResult);
|
|
219
222
|
default:
|
|
220
223
|
return null;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
4
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
6
|
-
var _templateObject, _templateObject2;
|
|
7
6
|
var _excluded = ["url"];
|
|
8
7
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
9
8
|
/** @jsx jsx */
|
|
@@ -26,7 +25,10 @@ var getWrapperTitleContent = function getWrapperTitleContent(imageData, title) {
|
|
|
26
25
|
return jsx("div", {
|
|
27
26
|
className: "extension-title"
|
|
28
27
|
}, jsx("img", _extends({
|
|
29
|
-
css: css(
|
|
28
|
+
css: css({
|
|
29
|
+
maxHeight: '24px',
|
|
30
|
+
maxWidth: '24px'
|
|
31
|
+
}),
|
|
30
32
|
src: url
|
|
31
33
|
}, rest, {
|
|
32
34
|
alt: title
|
|
@@ -81,7 +83,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
|
|
|
81
83
|
var articleRef = React.useCallback(function (node) {
|
|
82
84
|
return handleContentDOMRef(node);
|
|
83
85
|
}, [handleContentDOMRef]);
|
|
84
|
-
var containerCssExtended = css(
|
|
86
|
+
var containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, _defineProperty({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), sharedMultiBodiedExtensionStyles.extensionFrameContent));
|
|
85
87
|
var shouldBreakout =
|
|
86
88
|
// Extension should breakout when the layout is set to 'full-width' or 'wide'.
|
|
87
89
|
['full-width', 'wide'].includes(node.attrs.layout) &&
|
|
@@ -64,20 +64,22 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
64
64
|
handleContentDOMRef: forwardRef,
|
|
65
65
|
extensionHandlers: props.extensionHandlers,
|
|
66
66
|
editorAppearance: (_props$extensionNodeV = props.extensionNodeViewOptions) === null || _props$extensionNodeV === void 0 ? void 0 : _props$extensionNodeV.appearance,
|
|
67
|
-
pluginInjectionApi: props.pluginInjectionApi
|
|
67
|
+
pluginInjectionApi: props.pluginInjectionApi,
|
|
68
|
+
showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
|
|
68
69
|
}));
|
|
69
70
|
}
|
|
70
71
|
}]);
|
|
71
72
|
return ExtensionNode;
|
|
72
73
|
}(ReactNodeView);
|
|
73
|
-
export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi) {
|
|
74
|
+
export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, showMacroInteractionDesignUpdates) {
|
|
74
75
|
return function (node, view, getPos) {
|
|
75
76
|
var hasIntlContext = true;
|
|
76
77
|
return new ExtensionNode(node, view, getPos, portalProviderAPI, eventDispatcher, {
|
|
77
78
|
providerFactory: providerFactory,
|
|
78
79
|
extensionHandlers: extensionHandlers,
|
|
79
80
|
extensionNodeViewOptions: extensionNodeViewOptions,
|
|
80
|
-
pluginInjectionApi: pluginInjectionApi
|
|
81
|
+
pluginInjectionApi: pluginInjectionApi,
|
|
82
|
+
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
81
83
|
}, undefined, undefined, undefined, hasIntlContext).init();
|
|
82
84
|
};
|
|
83
85
|
}
|
package/dist/esm/media/index.js
CHANGED
|
@@ -6,4 +6,5 @@ export { toolbarMediaMessages } from './messages/toolbarMedia';
|
|
|
6
6
|
export { captionMessages } from './messages/caption';
|
|
7
7
|
export { dropPlaceholderMessages } from './messages/dropPlaceholder';
|
|
8
8
|
export { altTextMessages } from './messages/altText';
|
|
9
|
-
export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
|
|
9
|
+
export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
|
|
10
|
+
export { commentMessages } from './messages/comments';
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "78.
|
|
9
|
+
var packageVersion = "78.8.0";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "78.
|
|
20
|
+
var packageVersion = "78.8.0";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -6,6 +6,7 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
6
6
|
export interface Props {
|
|
7
7
|
node: PmNode;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export default class InlineExtension extends Component<Props, any> {
|
|
11
12
|
render(): jsx.JSX.Element;
|
|
@@ -18,6 +18,7 @@ export interface Props {
|
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
19
|
pluginInjectionApi: ExtensionsPluginInjectionAPI;
|
|
20
20
|
eventDispatcher?: EventDispatcher;
|
|
21
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare class Extension extends Component<Props, any> {
|
|
23
24
|
static displayName: string;
|
|
@@ -18,6 +18,7 @@ export interface Props {
|
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
19
|
pluginInjectionApi: ExtensionsPluginInjectionAPI;
|
|
20
20
|
eventDispatcher?: EventDispatcher;
|
|
21
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface State {
|
|
23
24
|
extensionProvider?: ExtensionProvider;
|
|
@@ -18,6 +18,7 @@ type Props = {
|
|
|
18
18
|
eventDispatcher?: EventDispatcher;
|
|
19
19
|
pluginInjectionApi?: ExtensionsPluginInjectionAPI;
|
|
20
20
|
editorAppearance?: EditorAppearance;
|
|
21
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
21
22
|
};
|
|
22
23
|
declare const MultiBodiedExtension: (props: Props & OverflowShadowProps) => jsx.JSX.Element;
|
|
23
24
|
/**
|
|
@@ -25,7 +25,8 @@ export declare class ExtensionNode extends ReactNodeView {
|
|
|
25
25
|
extensionHandlers: ExtensionHandlers;
|
|
26
26
|
extensionNodeViewOptions?: ExtensionNodeViewOptions;
|
|
27
27
|
pluginInjectionApi: ExtensionsPluginInjectionAPI;
|
|
28
|
+
showMacroInteractionDesignUpdates: boolean;
|
|
28
29
|
}, forwardRef: ForwardRef): JSX.Element;
|
|
29
30
|
}
|
|
30
|
-
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
31
|
+
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI, showMacroInteractionDesignUpdates?: boolean): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
31
32
|
export {};
|
|
@@ -7,3 +7,4 @@ export { captionMessages } from './messages/caption';
|
|
|
7
7
|
export { dropPlaceholderMessages } from './messages/dropPlaceholder';
|
|
8
8
|
export { altTextMessages } from './messages/altText';
|
|
9
9
|
export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
|
|
10
|
+
export { commentMessages } from './messages/comments';
|
|
@@ -6,6 +6,7 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
6
6
|
export interface Props {
|
|
7
7
|
node: PmNode;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export default class InlineExtension extends Component<Props, any> {
|
|
11
12
|
render(): jsx.JSX.Element;
|
|
@@ -18,6 +18,7 @@ export interface Props {
|
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
19
|
pluginInjectionApi: ExtensionsPluginInjectionAPI;
|
|
20
20
|
eventDispatcher?: EventDispatcher;
|
|
21
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare class Extension extends Component<Props, any> {
|
|
23
24
|
static displayName: string;
|
|
@@ -18,6 +18,7 @@ export interface Props {
|
|
|
18
18
|
editorAppearance?: EditorAppearance;
|
|
19
19
|
pluginInjectionApi: ExtensionsPluginInjectionAPI;
|
|
20
20
|
eventDispatcher?: EventDispatcher;
|
|
21
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface State {
|
|
23
24
|
extensionProvider?: ExtensionProvider;
|
|
@@ -18,6 +18,7 @@ type Props = {
|
|
|
18
18
|
eventDispatcher?: EventDispatcher;
|
|
19
19
|
pluginInjectionApi?: ExtensionsPluginInjectionAPI;
|
|
20
20
|
editorAppearance?: EditorAppearance;
|
|
21
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
21
22
|
};
|
|
22
23
|
declare const MultiBodiedExtension: (props: Props & OverflowShadowProps) => jsx.JSX.Element;
|
|
23
24
|
/**
|
|
@@ -25,7 +25,8 @@ export declare class ExtensionNode extends ReactNodeView {
|
|
|
25
25
|
extensionHandlers: ExtensionHandlers;
|
|
26
26
|
extensionNodeViewOptions?: ExtensionNodeViewOptions;
|
|
27
27
|
pluginInjectionApi: ExtensionsPluginInjectionAPI;
|
|
28
|
+
showMacroInteractionDesignUpdates: boolean;
|
|
28
29
|
}, forwardRef: ForwardRef): JSX.Element;
|
|
29
30
|
}
|
|
30
|
-
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
31
|
+
export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI, showMacroInteractionDesignUpdates?: boolean): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
31
32
|
export {};
|
|
@@ -7,3 +7,4 @@ export { captionMessages } from './messages/caption';
|
|
|
7
7
|
export { dropPlaceholderMessages } from './messages/dropPlaceholder';
|
|
8
8
|
export { altTextMessages } from './messages/altText';
|
|
9
9
|
export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
|
|
10
|
+
export { commentMessages } from './messages/comments';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "78.
|
|
3
|
+
"version": "78.8.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/"
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
99
99
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
100
100
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
101
|
-
"@atlaskit/button": "^17.
|
|
101
|
+
"@atlaskit/button": "^17.6.0",
|
|
102
102
|
"@atlaskit/code": "^15.1.0",
|
|
103
103
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
104
104
|
"@atlaskit/custom-steps": "^0.0.13",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"@atlaskit/icon": "^22.1.0",
|
|
112
112
|
"@atlaskit/icon-object": "^6.3.0",
|
|
113
113
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
114
|
-
"@atlaskit/link-datasource": "^1.
|
|
114
|
+
"@atlaskit/link-datasource": "^1.23.0",
|
|
115
115
|
"@atlaskit/link-picker": "^1.34.0",
|
|
116
116
|
"@atlaskit/media-card": "^77.10.0",
|
|
117
117
|
"@atlaskit/media-client": "^26.2.0",
|
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
"@atlaskit/media-common": "^11.0.0",
|
|
120
120
|
"@atlaskit/media-file-preview": "^0.5.0",
|
|
121
121
|
"@atlaskit/media-picker": "^66.3.0",
|
|
122
|
-
"@atlaskit/media-ui": "^25.
|
|
122
|
+
"@atlaskit/media-ui": "^25.2.0",
|
|
123
123
|
"@atlaskit/media-viewer": "48.2.15",
|
|
124
124
|
"@atlaskit/mention": "^23.0.0",
|
|
125
125
|
"@atlaskit/menu": "^2.1.0",
|
|
126
126
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
127
127
|
"@atlaskit/profilecard": "^19.11.0",
|
|
128
128
|
"@atlaskit/smart-card": "^26.48.0",
|
|
129
|
-
"@atlaskit/smart-user-picker": "^6.
|
|
129
|
+
"@atlaskit/smart-user-picker": "^6.9.0",
|
|
130
130
|
"@atlaskit/spinner": "^16.0.0",
|
|
131
131
|
"@atlaskit/task-decision": "^17.9.0",
|
|
132
132
|
"@atlaskit/textfield": "^6.0.0",
|