@atlaskit/editor-common 133.6.1 → 133.7.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 +24 -0
- package/MediaSingle/package.json +4 -4
- package/SelectionBasedNodeView/package.json +4 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/action-api.js +0 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -6
- package/dist/cjs/guideline/defaultGuideline.js +4 -4
- package/dist/cjs/guideline/dynamicGuideline.js +5 -5
- package/dist/cjs/guideline/getMediaSingleDimensions.js +5 -4
- package/dist/cjs/guideline/getRelativeGuideSnaps.js +2 -2
- package/dist/cjs/media-single/index.js +9 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/index.js +2 -3
- package/dist/cjs/styles/shared/smart-card.js +6 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/action-api.js +0 -4
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +2 -6
- package/dist/es2019/guideline/defaultGuideline.js +1 -1
- package/dist/es2019/guideline/dynamicGuideline.js +1 -1
- package/dist/es2019/guideline/getMediaSingleDimensions.js +2 -1
- package/dist/es2019/guideline/getRelativeGuideSnaps.js +1 -1
- package/dist/es2019/media-single/index.js +2 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/index.js +1 -1
- package/dist/es2019/styles/shared/smart-card.js +5 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/action-api.js +0 -4
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +2 -6
- package/dist/esm/guideline/defaultGuideline.js +1 -1
- package/dist/esm/guideline/dynamicGuideline.js +1 -1
- package/dist/esm/guideline/getMediaSingleDimensions.js +2 -1
- package/dist/esm/guideline/getRelativeGuideSnaps.js +1 -1
- package/dist/esm/media-single/index.js +2 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/styles/shared/smart-card.js +5 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/inline-comment-events.d.ts +1 -0
- package/dist/types/media-single/index.d.ts +1 -0
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/smart-card.d.ts +2 -0
- package/package.json +7 -7
- package/styles/smartCard/package.json +4 -4
- package/useSharedPluginStateSelector/package.json +4 -4
- package/dist/cjs/styles/shared/smartCard.js +0 -10
- package/dist/es2019/styles/shared/smartCard.js +0 -4
- package/dist/esm/styles/shared/smartCard.js +0 -4
- package/dist/types/styles/shared/smartCard.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 133.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f546ba7760cde`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f546ba7760cde) -
|
|
8
|
+
Clean up experiment confluence_native_tabs_m15: MultiBodiedExtension now always moves the
|
|
9
|
+
selection into the target frame on `changeActive` and always shows the empty frame placeholder.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 133.7.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`36a41f480cf20`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/36a41f480cf20) -
|
|
17
|
+
Disambiguate canonical module suffixes while preserving existing public import paths. Share
|
|
18
|
+
existing entrypoints where aliases normalize to the same name; preserve implementations and rename
|
|
19
|
+
the less-used private file only where needed.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`de0b3e0a118bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/de0b3e0a118bc) -
|
|
24
|
+
Add comment target attribution to inline comment draft-open analytics.
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 133.6.1
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/MediaSingle/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common/MediaSingle",
|
|
3
|
-
"main": "../dist/cjs/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
3
|
+
"main": "../dist/cjs/media-single/index.js",
|
|
4
|
+
"module": "../dist/esm/media-single/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/media-single/index.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/
|
|
9
|
+
"types": "../dist/types/media-single/index.d.ts"
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common/SelectionBasedNodeView",
|
|
3
|
-
"main": "../dist/cjs/selection-based-node-view/
|
|
4
|
-
"module": "../dist/esm/selection-based-node-view/
|
|
5
|
-
"module:es2019": "../dist/es2019/selection-based-node-view/
|
|
3
|
+
"main": "../dist/cjs/selection-based-node-view/index.js",
|
|
4
|
+
"module": "../dist/esm/selection-based-node-view/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/selection-based-node-view/index.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/selection-based-node-view/
|
|
9
|
+
"types": "../dist/types/selection-based-node-view/index.d.ts"
|
|
10
10
|
}
|
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
13
12
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
13
|
var _analytics = require("../../analytics");
|
|
15
14
|
var _utils = require("./utils");
|
|
@@ -34,9 +33,6 @@ var useMultiBodiedExtensionActions = exports.useMultiBodiedExtensionActions = fu
|
|
|
34
33
|
(0, _utils.sendMBEAnalyticsEvent)(_analytics.ACTION.CHANGE_ACTIVE, node, eventDispatcher);
|
|
35
34
|
}
|
|
36
35
|
var selection = (_options$selection = options === null || options === void 0 ? void 0 : options.selection) !== null && _options$selection !== void 0 ? _options$selection : 'none';
|
|
37
|
-
if (selection === 'none' && !(0, _isExperimentEnabled.isExperimentEnabled)('confluence_native_tabs_m15')) {
|
|
38
|
-
return updateActiveChildResult;
|
|
39
|
-
}
|
|
40
36
|
var pos = getPos();
|
|
41
37
|
if (typeof pos !== 'number') {
|
|
42
38
|
return updateActiveChildResult;
|
|
@@ -17,7 +17,6 @@ var _bindEventListener = require("bind-event-listener");
|
|
|
17
17
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
18
18
|
var _reactIntl = require("react-intl");
|
|
19
19
|
var _file = _interopRequireDefault(require("@atlaskit/icon/core/file"));
|
|
20
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
21
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
21
|
var _hooks = require("../../hooks");
|
|
23
22
|
var _placeholderText = require("../../messages/placeholder-text");
|
|
@@ -75,13 +74,12 @@ var MultiBodiedExtensionFrames = function MultiBodiedExtensionFrames(_ref) {
|
|
|
75
74
|
var activeChildIndex = _ref.activeChildIndex,
|
|
76
75
|
articleRef = _ref.articleRef,
|
|
77
76
|
emptyFramePlaceholderText = _ref.emptyFramePlaceholderText,
|
|
78
|
-
shouldShowEmptyFramePlaceholder = _ref.shouldShowEmptyFramePlaceholder,
|
|
79
77
|
showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
|
|
80
78
|
return (0, _react2.jsx)("article", {
|
|
81
79
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
82
80
|
className: "multiBodiedExtension--frames",
|
|
83
81
|
css: [/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766 */
|
|
84
|
-
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates),
|
|
82
|
+
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates), getEmptyFramePlaceholderStyles(activeChildIndex, emptyFramePlaceholderText)
|
|
85
83
|
/* eslint-enable @atlaskit/design-system/consistent-css-prop-usage */],
|
|
86
84
|
"data-testid": "multiBodiedExtension--frames",
|
|
87
85
|
"data-multibodiedextension-frames": true,
|
|
@@ -228,7 +226,6 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
228
226
|
var articleRef = _react.default.useCallback(function (node) {
|
|
229
227
|
return handleContentDOMRef(node);
|
|
230
228
|
}, [handleContentDOMRef]);
|
|
231
|
-
var shouldShowEmptyFramePlaceholder = (0, _isExperimentEnabled.isExperimentEnabled)('confluence_native_tabs_m15');
|
|
232
229
|
var emptyFramePlaceholderText = _react.default.useMemo(function () {
|
|
233
230
|
return JSON.stringify(formatMessage(_placeholderText.placeholderTextMessages.multiBodiedExtensionEmptyFramePlaceholderText));
|
|
234
231
|
}, [formatMessage]);
|
|
@@ -237,10 +234,9 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
237
234
|
activeChildIndex: activeChildIndex,
|
|
238
235
|
articleRef: articleRef,
|
|
239
236
|
emptyFramePlaceholderText: emptyFramePlaceholderText,
|
|
240
|
-
shouldShowEmptyFramePlaceholder: shouldShowEmptyFramePlaceholder,
|
|
241
237
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
242
238
|
});
|
|
243
|
-
}, [activeChildIndex, articleRef, emptyFramePlaceholderText,
|
|
239
|
+
}, [activeChildIndex, articleRef, emptyFramePlaceholderText, showMacroInteractionDesignUpdates]);
|
|
244
240
|
var actions = (0, _actionApi.useMultiBodiedExtensionActions)({
|
|
245
241
|
updateActiveChild: updateActiveChild,
|
|
246
242
|
editorView: editorView,
|
|
@@ -8,20 +8,20 @@ exports.generateDefaultGuidelines = void 0;
|
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
10
10
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
11
|
-
var
|
|
11
|
+
var _roundToNearest = require("../media-single/roundToNearest");
|
|
12
12
|
var _getContainerWidthOrFullEditorWidth = require("./getContainerWidthOrFullEditorWidth");
|
|
13
13
|
var getDefaultGuidelines = (0, _memoizeOne.default)(function (editorWidth) {
|
|
14
14
|
return [-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6].map(function (val, index) {
|
|
15
15
|
return {
|
|
16
16
|
key: "grid_".concat(index),
|
|
17
17
|
position: {
|
|
18
|
-
x: (0,
|
|
18
|
+
x: (0, _roundToNearest.roundToNearest)(val / 12 * editorWidth)
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
var getWideGuidelines = (0, _memoizeOne.default)(function (editorWidth) {
|
|
24
|
-
var wideSpacing = (0,
|
|
24
|
+
var wideSpacing = (0, _roundToNearest.roundToNearest)(editorWidth * _constants.breakoutWideScaleRatio / 2);
|
|
25
25
|
return [{
|
|
26
26
|
key: "wide_left",
|
|
27
27
|
position: {
|
|
@@ -35,7 +35,7 @@ var getWideGuidelines = (0, _memoizeOne.default)(function (editorWidth) {
|
|
|
35
35
|
}];
|
|
36
36
|
});
|
|
37
37
|
var getFullWidthGuidelines = (0, _memoizeOne.default)(function (containerWidth) {
|
|
38
|
-
var fullWidth = (0,
|
|
38
|
+
var fullWidth = (0, _roundToNearest.roundToNearest)((0, _getContainerWidthOrFullEditorWidth.getContainerWidthOrFullEditorWidth)(containerWidth));
|
|
39
39
|
return [{
|
|
40
40
|
key: "full_width_left",
|
|
41
41
|
position: {
|
|
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
11
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
12
|
-
var
|
|
12
|
+
var _roundToNearest = require("../media-single/roundToNearest");
|
|
13
13
|
var _constants = require("./constants");
|
|
14
14
|
var _getMediaSingleDimensions = require("./getMediaSingleDimensions");
|
|
15
15
|
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; }
|
|
@@ -67,7 +67,7 @@ var getDynamicGuides = function getDynamicGuides(layout, width, offset, key, sty
|
|
|
67
67
|
case 'wrap-left':
|
|
68
68
|
return [_objectSpread({
|
|
69
69
|
position: {
|
|
70
|
-
x: (0,
|
|
70
|
+
x: (0, _roundToNearest.roundToNearest)(width - offset)
|
|
71
71
|
},
|
|
72
72
|
key: key
|
|
73
73
|
}, styles)];
|
|
@@ -75,19 +75,19 @@ var getDynamicGuides = function getDynamicGuides(layout, width, offset, key, sty
|
|
|
75
75
|
case 'wrap-right':
|
|
76
76
|
return [_objectSpread({
|
|
77
77
|
position: {
|
|
78
|
-
x: (0,
|
|
78
|
+
x: (0, _roundToNearest.roundToNearest)(offset - width)
|
|
79
79
|
},
|
|
80
80
|
key: key
|
|
81
81
|
}, styles)];
|
|
82
82
|
case 'center':
|
|
83
83
|
return [_objectSpread({
|
|
84
84
|
position: {
|
|
85
|
-
x: (0,
|
|
85
|
+
x: (0, _roundToNearest.roundToNearest)(width / 2)
|
|
86
86
|
},
|
|
87
87
|
key: "".concat(key, "_right")
|
|
88
88
|
}, styles), _objectSpread({
|
|
89
89
|
position: {
|
|
90
|
-
x: -(0,
|
|
90
|
+
x: -(0, _roundToNearest.roundToNearest)(width / 2)
|
|
91
91
|
},
|
|
92
92
|
key: "".concat(key, "_left")
|
|
93
93
|
}, styles)];
|
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getMediaSingleDimensions = void 0;
|
|
7
7
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
8
|
-
var
|
|
8
|
+
var _getMediaSinglePixelWidth = require("../media-single/getMediaSinglePixelWidth");
|
|
9
|
+
var _roundToNearest = require("../media-single/roundToNearest");
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @param mediaSingle the mediaSingle node
|
|
@@ -36,10 +37,10 @@ var getMediaSingleDimensions = exports.getMediaSingleDimensions = function getMe
|
|
|
36
37
|
ratio: ratio
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
var pixelWidth = (0,
|
|
40
|
+
var pixelWidth = (0, _getMediaSinglePixelWidth.getMediaSinglePixelWidth)(mediaSingle.attrs.width, editorWidth, mediaSingle.attrs.widthType);
|
|
40
41
|
return {
|
|
41
|
-
width: (0,
|
|
42
|
-
height: (0,
|
|
42
|
+
width: (0, _roundToNearest.roundToNearest)(pixelWidth),
|
|
43
|
+
height: (0, _roundToNearest.roundToNearest)(pixelWidth * ratio),
|
|
43
44
|
originalWidth: width,
|
|
44
45
|
originalHeight: height,
|
|
45
46
|
ratio: ratio
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getRelativeGuideSnaps = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
-
var
|
|
9
|
+
var _roundToNearest = require("../media-single/roundToNearest");
|
|
10
10
|
var getRelativeGuideSnaps = exports.getRelativeGuideSnaps = function getRelativeGuideSnaps(relativeGuides, aspectRatio) {
|
|
11
11
|
var snapsWidthFromMatchingHeight = Object.keys(relativeGuides.height || {}).map(function (heightKey) {
|
|
12
12
|
var height = Number.parseInt(heightKey);
|
|
13
|
-
return (0,
|
|
13
|
+
return (0, _roundToNearest.roundToNearest)(height * aspectRatio);
|
|
14
14
|
});
|
|
15
15
|
var snapsWidthFromMatchingWidth = Object.keys(relativeGuides.width || {}).map(function (widthKey) {
|
|
16
16
|
return Number.parseInt(widthKey);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -123,6 +124,12 @@ Object.defineProperty(exports, "currentMediaNodeWithPos", {
|
|
|
123
124
|
return _currentMediaNodeWithPos.currentMediaNodeWithPos;
|
|
124
125
|
}
|
|
125
126
|
});
|
|
127
|
+
Object.defineProperty(exports, "default", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function get() {
|
|
130
|
+
return _MediaSingle.default;
|
|
131
|
+
}
|
|
132
|
+
});
|
|
126
133
|
Object.defineProperty(exports, "getMaxWidthForNestedNode", {
|
|
127
134
|
enumerable: true,
|
|
128
135
|
get: function get() {
|
|
@@ -172,4 +179,5 @@ var _utils = require("./utils");
|
|
|
172
179
|
var _CommentBadge = require("./CommentBadge");
|
|
173
180
|
var _CommentBadgeNext = require("./CommentBadgeNext");
|
|
174
181
|
var _ExternalImageBadge = require("./ExternalImageBadge");
|
|
175
|
-
var _MediaBadges = require("./MediaBadges");
|
|
182
|
+
var _MediaBadges = require("./MediaBadges");
|
|
183
|
+
var _MediaSingle = _interopRequireDefault(require("../ui/MediaSingle"));
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "133.
|
|
30
|
+
var packageVersion = "133.7.0";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// Ignored via go/ees007
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -48,7 +48,7 @@ Object.defineProperty(exports, "CodeBlockSharedCssClassName", {
|
|
|
48
48
|
Object.defineProperty(exports, "DATASOURCE_INNER_CONTAINER_CLASSNAME", {
|
|
49
49
|
enumerable: true,
|
|
50
50
|
get: function get() {
|
|
51
|
-
return
|
|
51
|
+
return _smartCard.DATASOURCE_INNER_CONTAINER_CLASSNAME;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH", {
|
|
@@ -96,7 +96,7 @@ Object.defineProperty(exports, "EXTENSION_PADDING", {
|
|
|
96
96
|
Object.defineProperty(exports, "FLOATING_TOOLBAR_LINKPICKER_CLASSNAME", {
|
|
97
97
|
enumerable: true,
|
|
98
98
|
get: function get() {
|
|
99
|
-
return
|
|
99
|
+
return _smartCard.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "GRID_GUTTER", {
|
|
@@ -405,7 +405,6 @@ var _layout = require("./shared/layout");
|
|
|
405
405
|
var _extension = require("./shared/extension");
|
|
406
406
|
var _resizer = require("./shared/resizer");
|
|
407
407
|
var _grid = require("./shared/grid");
|
|
408
|
-
var _smartCard2 = require("./shared/smartCard");
|
|
409
408
|
var _plugins = require("./shared/plugins");
|
|
410
409
|
var _unsupportedContent = require("./shared/unsupported-content");
|
|
411
410
|
var _expand = require("./shared/expand");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SmartCardSharedCssClassName = void 0;
|
|
6
|
+
exports.SmartCardSharedCssClassName = exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = void 0;
|
|
7
7
|
// Constant variables here has been inlined in css from EditorContentContainer, if you need to make
|
|
8
8
|
// update here, please also update packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
|
|
9
9
|
var SmartCardSharedCssClassName = exports.SmartCardSharedCssClassName = {
|
|
@@ -12,4 +12,8 @@ var SmartCardSharedCssClassName = exports.SmartCardSharedCssClassName = {
|
|
|
12
12
|
EMBED_CARD_CONTAINER: 'embedCardView-content-wrap',
|
|
13
13
|
DATASOURCE_CONTAINER: 'datasourceView-content-wrap',
|
|
14
14
|
LOADER_WRAPPER: 'loader-wrapper'
|
|
15
|
-
};
|
|
15
|
+
};
|
|
16
|
+
var DATASOURCE_INNER_CONTAINER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
19
|
+
var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
@@ -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 = "133.
|
|
26
|
+
var packageVersion = "133.7.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { ACTION } from '../../analytics';
|
|
6
5
|
import { sendMBEAnalyticsEvent } from './utils';
|
|
@@ -26,9 +25,6 @@ export const useMultiBodiedExtensionActions = ({
|
|
|
26
25
|
sendMBEAnalyticsEvent(ACTION.CHANGE_ACTIVE, node, eventDispatcher);
|
|
27
26
|
}
|
|
28
27
|
const selection = (_options$selection = options === null || options === void 0 ? void 0 : options.selection) !== null && _options$selection !== void 0 ? _options$selection : 'none';
|
|
29
|
-
if (selection === 'none' && !isExperimentEnabled('confluence_native_tabs_m15')) {
|
|
30
|
-
return updateActiveChildResult;
|
|
31
|
-
}
|
|
32
28
|
const pos = getPos();
|
|
33
29
|
if (typeof pos !== 'number') {
|
|
34
30
|
return updateActiveChildResult;
|
|
@@ -13,7 +13,6 @@ import { bind } from 'bind-event-listener';
|
|
|
13
13
|
import classnames from 'classnames';
|
|
14
14
|
import { useIntl } from 'react-intl';
|
|
15
15
|
import EditorFileIcon from '@atlaskit/icon/core/file';
|
|
16
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
17
|
import { useSharedPluginStateWithSelector } from '../../hooks';
|
|
19
18
|
import { placeholderTextMessages } from '../../messages/placeholder-text';
|
|
@@ -69,14 +68,13 @@ const MultiBodiedExtensionFrames = ({
|
|
|
69
68
|
activeChildIndex,
|
|
70
69
|
articleRef,
|
|
71
70
|
emptyFramePlaceholderText,
|
|
72
|
-
shouldShowEmptyFramePlaceholder,
|
|
73
71
|
showMacroInteractionDesignUpdates
|
|
74
72
|
}) => {
|
|
75
73
|
return jsx("article", {
|
|
76
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
77
75
|
className: "multiBodiedExtension--frames",
|
|
78
76
|
css: [/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766 */
|
|
79
|
-
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates),
|
|
77
|
+
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates), getEmptyFramePlaceholderStyles(activeChildIndex, emptyFramePlaceholderText)
|
|
80
78
|
/* eslint-enable @atlaskit/design-system/consistent-css-prop-usage */],
|
|
81
79
|
"data-testid": "multiBodiedExtension--frames",
|
|
82
80
|
"data-multibodiedextension-frames": true,
|
|
@@ -220,17 +218,15 @@ const MultiBodiedExtensionWithWidth = ({
|
|
|
220
218
|
const articleRef = React.useCallback(node => {
|
|
221
219
|
return handleContentDOMRef(node);
|
|
222
220
|
}, [handleContentDOMRef]);
|
|
223
|
-
const shouldShowEmptyFramePlaceholder = isExperimentEnabled('confluence_native_tabs_m15');
|
|
224
221
|
const emptyFramePlaceholderText = React.useMemo(() => JSON.stringify(formatMessage(placeholderTextMessages.multiBodiedExtensionEmptyFramePlaceholderText)), [formatMessage]);
|
|
225
222
|
const childrenContainer = React.useMemo(() => {
|
|
226
223
|
return jsx(MultiBodiedExtensionFrames, {
|
|
227
224
|
activeChildIndex: activeChildIndex,
|
|
228
225
|
articleRef: articleRef,
|
|
229
226
|
emptyFramePlaceholderText: emptyFramePlaceholderText,
|
|
230
|
-
shouldShowEmptyFramePlaceholder: shouldShowEmptyFramePlaceholder,
|
|
231
227
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
232
228
|
});
|
|
233
|
-
}, [activeChildIndex, articleRef, emptyFramePlaceholderText,
|
|
229
|
+
}, [activeChildIndex, articleRef, emptyFramePlaceholderText, showMacroInteractionDesignUpdates]);
|
|
234
230
|
const actions = useMultiBodiedExtensionActions({
|
|
235
231
|
updateActiveChild,
|
|
236
232
|
editorView,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
2
|
import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
|
|
3
|
-
import { roundToNearest } from '../media-single';
|
|
3
|
+
import { roundToNearest } from '../media-single/roundToNearest';
|
|
4
4
|
import { getContainerWidthOrFullEditorWidth } from './getContainerWidthOrFullEditorWidth';
|
|
5
5
|
const getDefaultGuidelines = memoizeOne(editorWidth => {
|
|
6
6
|
return [-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6].map((val, index) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { findChildren } from '@atlaskit/editor-prosemirror/utils';
|
|
3
|
-
import { roundToNearest } from '../media-single';
|
|
3
|
+
import { roundToNearest } from '../media-single/roundToNearest';
|
|
4
4
|
import { MEDIA_DYNAMIC_GUIDELINE_PREFIX } from './constants';
|
|
5
5
|
import { getMediaSingleDimensions } from './getMediaSingleDimensions';
|
|
6
6
|
export const generateDynamicGuidelines = (state, editorWidth, styles = {}) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
2
|
-
import { getMediaSinglePixelWidth
|
|
2
|
+
import { getMediaSinglePixelWidth } from '../media-single/getMediaSinglePixelWidth';
|
|
3
|
+
import { roundToNearest } from '../media-single/roundToNearest';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { roundToNearest } from '../media-single';
|
|
1
|
+
import { roundToNearest } from '../media-single/roundToNearest';
|
|
2
2
|
export const getRelativeGuideSnaps = (relativeGuides, aspectRatio) => {
|
|
3
3
|
const snapsWidthFromMatchingHeight = Object.keys(relativeGuides.height || {}).map(heightKey => {
|
|
4
4
|
const height = Number.parseInt(heightKey);
|
|
@@ -14,4 +14,5 @@ export { calcMediaSinglePixelWidth, getMaxWidthForNestedNodeNext } from './utils
|
|
|
14
14
|
export { CommentBadge } from './CommentBadge';
|
|
15
15
|
export { CommentBadgeNext } from './CommentBadgeNext';
|
|
16
16
|
export { ExternalImageBadge } from './ExternalImageBadge';
|
|
17
|
-
export { MediaBadges } from './MediaBadges';
|
|
17
|
+
export { MediaBadges } from './MediaBadges';
|
|
18
|
+
export { default } from '../ui/MediaSingle';
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "133.
|
|
16
|
+
const packageVersion = "133.7.0";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -19,7 +19,7 @@ export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT
|
|
|
19
19
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
20
20
|
export { resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
|
|
21
21
|
export { GRID_GUTTER } from './shared/grid';
|
|
22
|
-
export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/
|
|
22
|
+
export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smart-card';
|
|
23
23
|
export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding } from './shared/plugins';
|
|
24
24
|
export { UnsupportedSharedCssClassName } from './shared/unsupported-content';
|
|
25
25
|
export { expandIconWrapperStyle, expandClassNames, expandIconContainerStyle } from './shared/expand';
|
|
@@ -6,4 +6,8 @@ export const SmartCardSharedCssClassName = {
|
|
|
6
6
|
EMBED_CARD_CONTAINER: 'embedCardView-content-wrap',
|
|
7
7
|
DATASOURCE_CONTAINER: 'datasourceView-content-wrap',
|
|
8
8
|
LOADER_WRAPPER: 'loader-wrapper'
|
|
9
|
-
};
|
|
9
|
+
};
|
|
10
|
+
export const DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
13
|
+
export const FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
@@ -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 = "133.
|
|
16
|
+
const packageVersion = "133.7.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -4,7 +4,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
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; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
import { ACTION } from '../../analytics';
|
|
10
9
|
import { sendMBEAnalyticsEvent } from './utils';
|
|
@@ -27,9 +26,6 @@ export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActi
|
|
|
27
26
|
sendMBEAnalyticsEvent(ACTION.CHANGE_ACTIVE, node, eventDispatcher);
|
|
28
27
|
}
|
|
29
28
|
var selection = (_options$selection = options === null || options === void 0 ? void 0 : options.selection) !== null && _options$selection !== void 0 ? _options$selection : 'none';
|
|
30
|
-
if (selection === 'none' && !isExperimentEnabled('confluence_native_tabs_m15')) {
|
|
31
|
-
return updateActiveChildResult;
|
|
32
|
-
}
|
|
33
29
|
var pos = getPos();
|
|
34
30
|
if (typeof pos !== 'number') {
|
|
35
31
|
return updateActiveChildResult;
|
|
@@ -18,7 +18,6 @@ import { bind } from 'bind-event-listener';
|
|
|
18
18
|
import classnames from 'classnames';
|
|
19
19
|
import { useIntl } from 'react-intl';
|
|
20
20
|
import EditorFileIcon from '@atlaskit/icon/core/file';
|
|
21
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
22
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
22
|
import { useSharedPluginStateWithSelector } from '../../hooks';
|
|
24
23
|
import { placeholderTextMessages } from '../../messages/placeholder-text';
|
|
@@ -68,13 +67,12 @@ var MultiBodiedExtensionFrames = function MultiBodiedExtensionFrames(_ref) {
|
|
|
68
67
|
var activeChildIndex = _ref.activeChildIndex,
|
|
69
68
|
articleRef = _ref.articleRef,
|
|
70
69
|
emptyFramePlaceholderText = _ref.emptyFramePlaceholderText,
|
|
71
|
-
shouldShowEmptyFramePlaceholder = _ref.shouldShowEmptyFramePlaceholder,
|
|
72
70
|
showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
|
|
73
71
|
return jsx("article", {
|
|
74
72
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
75
73
|
className: "multiBodiedExtension--frames",
|
|
76
74
|
css: [/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766 */
|
|
77
|
-
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates),
|
|
75
|
+
getFramesActiveFrameStyles(activeChildIndex, showMacroInteractionDesignUpdates), getEmptyFramePlaceholderStyles(activeChildIndex, emptyFramePlaceholderText)
|
|
78
76
|
/* eslint-enable @atlaskit/design-system/consistent-css-prop-usage */],
|
|
79
77
|
"data-testid": "multiBodiedExtension--frames",
|
|
80
78
|
"data-multibodiedextension-frames": true,
|
|
@@ -221,7 +219,6 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
221
219
|
var articleRef = React.useCallback(function (node) {
|
|
222
220
|
return handleContentDOMRef(node);
|
|
223
221
|
}, [handleContentDOMRef]);
|
|
224
|
-
var shouldShowEmptyFramePlaceholder = isExperimentEnabled('confluence_native_tabs_m15');
|
|
225
222
|
var emptyFramePlaceholderText = React.useMemo(function () {
|
|
226
223
|
return JSON.stringify(formatMessage(placeholderTextMessages.multiBodiedExtensionEmptyFramePlaceholderText));
|
|
227
224
|
}, [formatMessage]);
|
|
@@ -230,10 +227,9 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
230
227
|
activeChildIndex: activeChildIndex,
|
|
231
228
|
articleRef: articleRef,
|
|
232
229
|
emptyFramePlaceholderText: emptyFramePlaceholderText,
|
|
233
|
-
shouldShowEmptyFramePlaceholder: shouldShowEmptyFramePlaceholder,
|
|
234
230
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
235
231
|
});
|
|
236
|
-
}, [activeChildIndex, articleRef, emptyFramePlaceholderText,
|
|
232
|
+
}, [activeChildIndex, articleRef, emptyFramePlaceholderText, showMacroInteractionDesignUpdates]);
|
|
237
233
|
var actions = useMultiBodiedExtensionActions({
|
|
238
234
|
updateActiveChild: updateActiveChild,
|
|
239
235
|
editorView: editorView,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import memoizeOne from 'memoize-one';
|
|
3
3
|
import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
|
|
4
|
-
import { roundToNearest } from '../media-single';
|
|
4
|
+
import { roundToNearest } from '../media-single/roundToNearest';
|
|
5
5
|
import { getContainerWidthOrFullEditorWidth } from './getContainerWidthOrFullEditorWidth';
|
|
6
6
|
var getDefaultGuidelines = memoizeOne(function (editorWidth) {
|
|
7
7
|
return [-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6].map(function (val, index) {
|
|
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
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; }
|
|
5
5
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { findChildren } from '@atlaskit/editor-prosemirror/utils';
|
|
7
|
-
import { roundToNearest } from '../media-single';
|
|
7
|
+
import { roundToNearest } from '../media-single/roundToNearest';
|
|
8
8
|
import { MEDIA_DYNAMIC_GUIDELINE_PREFIX } from './constants';
|
|
9
9
|
import { getMediaSingleDimensions } from './getMediaSingleDimensions';
|
|
10
10
|
export var generateDynamicGuidelines = function generateDynamicGuidelines(state, editorWidth) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
2
|
-
import { getMediaSinglePixelWidth
|
|
2
|
+
import { getMediaSinglePixelWidth } from '../media-single/getMediaSinglePixelWidth';
|
|
3
|
+
import { roundToNearest } from '../media-single/roundToNearest';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { roundToNearest } from '../media-single';
|
|
2
|
+
import { roundToNearest } from '../media-single/roundToNearest';
|
|
3
3
|
export var getRelativeGuideSnaps = function getRelativeGuideSnaps(relativeGuides, aspectRatio) {
|
|
4
4
|
var snapsWidthFromMatchingHeight = Object.keys(relativeGuides.height || {}).map(function (heightKey) {
|
|
5
5
|
var height = Number.parseInt(heightKey);
|
|
@@ -14,4 +14,5 @@ export { calcMediaSinglePixelWidth, getMaxWidthForNestedNodeNext } from './utils
|
|
|
14
14
|
export { CommentBadge } from './CommentBadge';
|
|
15
15
|
export { CommentBadgeNext } from './CommentBadgeNext';
|
|
16
16
|
export { ExternalImageBadge } from './ExternalImageBadge';
|
|
17
|
-
export { MediaBadges } from './MediaBadges';
|
|
17
|
+
export { MediaBadges } from './MediaBadges';
|
|
18
|
+
export { default } from '../ui/MediaSingle';
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "133.
|
|
22
|
+
var packageVersion = "133.7.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -19,7 +19,7 @@ export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT
|
|
|
19
19
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
20
20
|
export { resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
|
|
21
21
|
export { GRID_GUTTER } from './shared/grid';
|
|
22
|
-
export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/
|
|
22
|
+
export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smart-card';
|
|
23
23
|
export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding } from './shared/plugins';
|
|
24
24
|
export { UnsupportedSharedCssClassName } from './shared/unsupported-content';
|
|
25
25
|
export { expandIconWrapperStyle, expandClassNames, expandIconContainerStyle } from './shared/expand';
|
|
@@ -6,4 +6,8 @@ export var SmartCardSharedCssClassName = {
|
|
|
6
6
|
EMBED_CARD_CONTAINER: 'embedCardView-content-wrap',
|
|
7
7
|
DATASOURCE_CONTAINER: 'datasourceView-content-wrap',
|
|
8
8
|
LOADER_WRAPPER: 'loader-wrapper'
|
|
9
|
-
};
|
|
9
|
+
};
|
|
10
|
+
export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
13
|
+
export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
@@ -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 = "133.
|
|
23
|
+
var packageVersion = "133.7.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -14,6 +14,7 @@ export type AnnotationErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.ANN
|
|
|
14
14
|
export type AnnotationAEP = TrackAEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID.INLINE_COMMENT, AnnotationAEPAttributes, undefined>;
|
|
15
15
|
export type AnnotationAEPAttributes = undefined | {} | AnnotationDraftAEPAttributes | AnnotationResolvedAEPAttributes;
|
|
16
16
|
export type AnnotationDraftAEPAttributes = {
|
|
17
|
+
commentTargetType?: 'remixEmbed' | 'media' | 'text' | 'other';
|
|
17
18
|
inlineNodeNames?: string[];
|
|
18
19
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
|
|
19
20
|
overlap: number;
|
|
@@ -13,3 +13,4 @@ export { CommentBadgeNext } from './CommentBadgeNext';
|
|
|
13
13
|
export { ExternalImageBadge } from './ExternalImageBadge';
|
|
14
14
|
export { MediaBadges } from './MediaBadges';
|
|
15
15
|
export type { CommentBadgeProps } from './CommentBadge';
|
|
16
|
+
export { default, type Props } from '../ui/MediaSingle';
|
|
@@ -16,7 +16,7 @@ export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT
|
|
|
16
16
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
17
17
|
export { resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
|
|
18
18
|
export { GRID_GUTTER } from './shared/grid';
|
|
19
|
-
export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/
|
|
19
|
+
export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smart-card';
|
|
20
20
|
export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, } from './shared/plugins';
|
|
21
21
|
export { UnsupportedSharedCssClassName } from './shared/unsupported-content';
|
|
22
22
|
export { expandIconWrapperStyle, expandClassNames, expandIconContainerStyle, } from './shared/expand';
|
|
@@ -5,3 +5,5 @@ export declare const SmartCardSharedCssClassName: {
|
|
|
5
5
|
DATASOURCE_CONTAINER: string;
|
|
6
6
|
LOADER_WRAPPER: string;
|
|
7
7
|
};
|
|
8
|
+
export declare const DATASOURCE_INNER_CONTAINER_CLASSNAME = "datasourceView-content-inner-wrap";
|
|
9
|
+
export declare const FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = "card-floating-toolbar--link-picker";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "133.
|
|
3
|
+
"version": "133.7.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/"
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@atlaskit/feature-gate-js-client": "^7.0.0",
|
|
55
55
|
"@atlaskit/icon": "^38.0.0",
|
|
56
56
|
"@atlaskit/link": "^5.1.0",
|
|
57
|
-
"@atlaskit/link-datasource": "^7.
|
|
58
|
-
"@atlaskit/link-picker": "^6.
|
|
57
|
+
"@atlaskit/link-datasource": "^7.6.0",
|
|
58
|
+
"@atlaskit/link-picker": "^6.14.0",
|
|
59
59
|
"@atlaskit/logo": "^23.3.0",
|
|
60
60
|
"@atlaskit/media-card": "^82.1.0",
|
|
61
61
|
"@atlaskit/media-client": "^39.2.0",
|
|
@@ -77,15 +77,15 @@
|
|
|
77
77
|
"@atlaskit/profilecard": "^27.3.0",
|
|
78
78
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
79
79
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
80
|
-
"@atlaskit/react-ufo": "^8.
|
|
80
|
+
"@atlaskit/react-ufo": "^8.2.0",
|
|
81
81
|
"@atlaskit/section-message": "^10.2.0",
|
|
82
|
-
"@atlaskit/smart-card": "^46.
|
|
83
|
-
"@atlaskit/smart-user-picker": "^12.
|
|
82
|
+
"@atlaskit/smart-card": "^46.8.0",
|
|
83
|
+
"@atlaskit/smart-user-picker": "^12.6.0",
|
|
84
84
|
"@atlaskit/spinner": "^20.4.0",
|
|
85
85
|
"@atlaskit/task-decision": "^21.13.0",
|
|
86
86
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
87
87
|
"@atlaskit/textfield": "^10.2.0",
|
|
88
|
-
"@atlaskit/tmp-editor-statsig": "^246.
|
|
88
|
+
"@atlaskit/tmp-editor-statsig": "^246.1.0",
|
|
89
89
|
"@atlaskit/tokens": "^20.7.0",
|
|
90
90
|
"@atlaskit/tooltip": "^24.4.0",
|
|
91
91
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common/styles/smartCard",
|
|
3
|
-
"main": "../../dist/cjs/styles/shared/
|
|
4
|
-
"module": "../../dist/esm/styles/shared/
|
|
5
|
-
"module:es2019": "../../dist/es2019/styles/shared/
|
|
3
|
+
"main": "../../dist/cjs/styles/shared/smart-card.js",
|
|
4
|
+
"module": "../../dist/esm/styles/shared/smart-card.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/styles/shared/smart-card.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/styles/shared/
|
|
9
|
+
"types": "../../dist/types/styles/shared/smart-card.d.ts"
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common/useSharedPluginStateSelector",
|
|
3
|
-
"main": "../dist/cjs/hooks/useSharedPluginStateSelector/
|
|
4
|
-
"module": "../dist/esm/hooks/useSharedPluginStateSelector/
|
|
5
|
-
"module:es2019": "../dist/es2019/hooks/useSharedPluginStateSelector/
|
|
3
|
+
"main": "../dist/cjs/hooks/useSharedPluginStateSelector/index.js",
|
|
4
|
+
"module": "../dist/esm/hooks/useSharedPluginStateSelector/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/hooks/useSharedPluginStateSelector/index.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/hooks/useSharedPluginStateSelector/
|
|
9
|
+
"types": "../dist/types/hooks/useSharedPluginStateSelector/index.d.ts"
|
|
10
10
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = void 0;
|
|
7
|
-
var DATASOURCE_INNER_CONTAINER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
10
|
-
var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|