@atlaskit/editor-common 94.3.0 → 94.4.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 +23 -0
- package/dist/cjs/analytics/types/node-events.js +2 -0
- package/dist/cjs/doc-utils/editor-use-only.js +2 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +48 -21
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +52 -47
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +56 -48
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/index.js +6 -0
- package/dist/cjs/styles/shared/embedCard.js +45 -18
- package/dist/cjs/styles/shared/media-single.js +49 -2
- package/dist/cjs/ui/Caption/index.js +7 -6
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/node-events.js +2 -0
- package/dist/es2019/doc-utils/editor-use-only.js +1 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +50 -20
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +2 -2
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +52 -47
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +56 -48
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/index.js +1 -1
- package/dist/es2019/styles/shared/embedCard.js +26 -1
- package/dist/es2019/styles/shared/media-single.js +68 -1
- package/dist/es2019/ui/Caption/index.js +7 -6
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/node-events.js +2 -0
- package/dist/esm/doc-utils/editor-use-only.js +1 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +48 -21
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +2 -2
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +52 -47
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +56 -48
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/styles/shared/embedCard.js +45 -18
- package/dist/esm/styles/shared/media-single.js +49 -2
- package/dist/esm/ui/Caption/index.js +7 -6
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/node-events.d.ts +6 -4
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/embedCard.d.ts +1 -1
- package/dist/types/styles/shared/media-single.d.ts +2 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +6 -4
- package/dist/types-ts4.5/styles/index.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/embedCard.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/media-single.d.ts +2 -1
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 94.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#156360](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156360)
|
|
8
|
+
[`482dbb03dbf68`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/482dbb03dbf68) -
|
|
9
|
+
[ux] Update mediaSingle and embedCard to set wrap layout z-index under FG
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#156974](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156974)
|
|
14
|
+
[`e23605a60e753`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e23605a60e753) -
|
|
15
|
+
Add four and five column support for layout sections
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 94.3.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#155488](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155488)
|
|
23
|
+
[`75a3286a32347`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/75a3286a32347) -
|
|
24
|
+
update tokens
|
|
25
|
+
|
|
3
26
|
## 94.3.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
|
@@ -11,6 +11,8 @@ var LAYOUT_TYPE = exports.LAYOUT_TYPE = /*#__PURE__*/function (LAYOUT_TYPE) {
|
|
|
11
11
|
LAYOUT_TYPE["LEFT_SIDEBAR"] = "twoColumnsLeftSidebar";
|
|
12
12
|
LAYOUT_TYPE["RIGHT_SIDEBAR"] = "twoColumnsRightSidebar";
|
|
13
13
|
LAYOUT_TYPE["THREE_WITH_SIDEBARS"] = "threeColumnsWithSidebars ";
|
|
14
|
+
LAYOUT_TYPE["FOUR_COLS_EQUAL"] = "fourColumnsEqual";
|
|
15
|
+
LAYOUT_TYPE["FIVE_COLS_EQUAL"] = "fiveColumnsEqual";
|
|
14
16
|
return LAYOUT_TYPE;
|
|
15
17
|
}({});
|
|
16
18
|
var SMART_LINK_TYPE = exports.SMART_LINK_TYPE = /*#__PURE__*/function (SMART_LINK_TYPE) {
|
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.createEditorUseOnlyNotice = createEditorUseOnlyNotice;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
|
|
10
|
+
/* eslint-disable @atlaskit/design-system/use-primitives-text */
|
|
11
|
+
|
|
10
12
|
function AlternativePackagesMessage(_ref) {
|
|
11
13
|
var alternatePackages = _ref.alternatePackages;
|
|
12
14
|
if (!alternatePackages) {
|
|
@@ -19,6 +19,8 @@ var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-
|
|
|
19
19
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
20
20
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
21
21
|
var _menu = require("@atlaskit/menu");
|
|
22
|
+
var _primitives = require("@atlaskit/primitives");
|
|
23
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
24
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
23
25
|
var _analytics = require("../../../analytics");
|
|
24
26
|
var _quickInsert = require("../../../quick-insert");
|
|
@@ -290,8 +292,7 @@ var itemStyleOverrides = {
|
|
|
290
292
|
alignItems: 'flex-start'
|
|
291
293
|
};
|
|
292
294
|
var ElementBefore = /*#__PURE__*/(0, _react.memo)(function (_ref6) {
|
|
293
|
-
var icon = _ref6.icon
|
|
294
|
-
title = _ref6.title;
|
|
295
|
+
var icon = _ref6.icon;
|
|
295
296
|
return (0, _react2.jsx)("div", {
|
|
296
297
|
css: [itemIcon, itemIconStyle]
|
|
297
298
|
}, icon ? icon() : (0, _react2.jsx)(_quickInsert.IconFallback, null));
|
|
@@ -300,25 +301,51 @@ var ItemContent = /*#__PURE__*/(0, _react.memo)(function (_ref7) {
|
|
|
300
301
|
var title = _ref7.title,
|
|
301
302
|
description = _ref7.description,
|
|
302
303
|
keyshortcut = _ref7.keyshortcut;
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
304
|
+
if ((0, _experiments.editorExperiment)('typography_migration_ugc', true)) {
|
|
305
|
+
return (
|
|
306
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
307
|
+
(0, _react2.jsx)("div", {
|
|
308
|
+
css: itemBody,
|
|
309
|
+
className: "item-body"
|
|
310
|
+
}, (0, _react2.jsx)("div", {
|
|
311
|
+
css: itemText
|
|
312
|
+
}, (0, _react2.jsx)(_primitives.Stack, {
|
|
313
|
+
space: "space.025"
|
|
314
|
+
}, (0, _react2.jsx)("div", {
|
|
315
|
+
css: itemTitleWrapper
|
|
316
|
+
}, (0, _react2.jsx)(_primitives.Text, {
|
|
317
|
+
maxLines: 1
|
|
318
|
+
}, title), (0, _react2.jsx)("div", {
|
|
319
|
+
css: itemAfter
|
|
320
|
+
}, keyshortcut && (0, _react2.jsx)("div", {
|
|
321
|
+
css: _shortcut.shortcutStyle
|
|
322
|
+
}, keyshortcut))), description && (0, _react2.jsx)(_primitives.Text, {
|
|
323
|
+
color: "color.text.subtle",
|
|
324
|
+
size: "small",
|
|
325
|
+
maxLines: 2
|
|
326
|
+
}, description))))
|
|
327
|
+
);
|
|
328
|
+
} else {
|
|
329
|
+
return (
|
|
330
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
331
|
+
(0, _react2.jsx)("div", {
|
|
332
|
+
css: itemBody,
|
|
333
|
+
className: "item-body"
|
|
334
|
+
}, (0, _react2.jsx)("div", {
|
|
335
|
+
css: itemText
|
|
336
|
+
}, (0, _react2.jsx)("div", {
|
|
337
|
+
css: itemTitleWrapper
|
|
338
|
+
}, (0, _react2.jsx)("p", {
|
|
339
|
+
css: itemTitle
|
|
340
|
+
}, title), (0, _react2.jsx)("div", {
|
|
341
|
+
css: itemAfter
|
|
342
|
+
}, keyshortcut && (0, _react2.jsx)("div", {
|
|
343
|
+
css: _shortcut.shortcutStyle
|
|
344
|
+
}, keyshortcut))), description && (0, _react2.jsx)("p", {
|
|
345
|
+
css: itemDescription
|
|
346
|
+
}, description)))
|
|
347
|
+
);
|
|
348
|
+
}
|
|
322
349
|
});
|
|
323
350
|
var elementItemsWrapper = (0, _react2.css)({
|
|
324
351
|
flex: 1,
|
|
@@ -29,7 +29,7 @@ function EmptyState(_ref) {
|
|
|
29
29
|
description: "Empty state heading"
|
|
30
30
|
})), (0, _react.jsx)("div", {
|
|
31
31
|
css: emptyStateSubHeading
|
|
32
|
-
}, (0, _react.jsx)(
|
|
32
|
+
}, (0, _react.jsx)(_primitives.Text, null, (0, _react.jsx)(_reactIntlNext.FormattedMessage, {
|
|
33
33
|
id: "fabric.editor.elementbrowser.search.empty-state.sub-heading",
|
|
34
34
|
defaultMessage: "Try searching with a different term or discover new apps for Atlassian products.",
|
|
35
35
|
description: "Empty state sub-heading"
|
|
@@ -14,6 +14,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
14
14
|
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
15
15
|
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
16
16
|
var _analytics = require("../../analytics");
|
|
17
|
+
var _getEditorUgcToken = _interopRequireDefault(require("../../ugc-tokens/get-editor-ugc-token"));
|
|
17
18
|
var _constants = require("../constants");
|
|
18
19
|
var _useContainerWidth2 = _interopRequireDefault(require("../hooks/use-container-width"));
|
|
19
20
|
var _useSelectAndFocusOnArrowNavigation = _interopRequireDefault(require("../hooks/use-select-and-focus-on-arrow-navigation"));
|
|
@@ -82,7 +83,8 @@ var sidebarHeading = (0, _react2.css)({
|
|
|
82
83
|
display: 'inline-flex',
|
|
83
84
|
alignItems: 'center',
|
|
84
85
|
paddingLeft: "var(--ds-space-150, 12px)",
|
|
85
|
-
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
87
|
+
font: (0, _getEditorUgcToken.default)('editor.font.heading.h1', 'typography-modernized') // use editor h1 modernized here as the style matches
|
|
86
88
|
});
|
|
87
89
|
var mobileMainContent = (0, _react2.css)({
|
|
88
90
|
flex: '1 1 auto',
|
|
@@ -282,51 +284,54 @@ function MobileBrowser(_ref) {
|
|
|
282
284
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
283
285
|
emptyStateHandler = _ref.emptyStateHandler,
|
|
284
286
|
viewMoreItem = _ref.viewMoreItem;
|
|
285
|
-
return (
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
287
|
+
return (
|
|
288
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
289
|
+
(0, _react2.jsx)("div", {
|
|
290
|
+
css: mobileElementBrowserContainer,
|
|
291
|
+
onKeyDown: onKeyDown,
|
|
292
|
+
"data-testid": "mobile__element-browser"
|
|
293
|
+
}, (0, _react2.jsx)("div", {
|
|
294
|
+
css: showCategories ? [mobileSideBar, mobileSideBarShowCategories] : mobileSideBar
|
|
295
|
+
}, showSearch && (0, _react2.jsx)(_ElementSearch.default, {
|
|
296
|
+
onSearch: onSearch,
|
|
297
|
+
onKeyDown: onKeyPress,
|
|
298
|
+
mode: mode,
|
|
299
|
+
focus: focusOnSearch,
|
|
300
|
+
onClick: setFocusOnSearch,
|
|
301
|
+
searchTerm: searchTerm,
|
|
302
|
+
items: items,
|
|
303
|
+
selectedItemIndex: selectedItemIndex
|
|
304
|
+
}), showCategories && (0, _react2.jsx)("nav", {
|
|
305
|
+
css: mobileCategoryListWrapper,
|
|
306
|
+
tabIndex: -1
|
|
307
|
+
}, (0, _react2.jsx)(_CategoryList.default, {
|
|
308
|
+
categories: categories,
|
|
309
|
+
onSelectCategory: onSelectCategory,
|
|
310
|
+
selectedCategory: selectedCategory,
|
|
311
|
+
focusedCategoryIndex: focusedCategoryIndex,
|
|
312
|
+
setFocusedCategoryIndex: setFocusedCategoryIndex,
|
|
313
|
+
setFocusedItemIndex: setFocusedItemIndex,
|
|
314
|
+
setFocusOnSearch: setFocusOnSearch
|
|
315
|
+
}))), (0, _react2.jsx)("div", {
|
|
316
|
+
css: mobileMainContent
|
|
317
|
+
}, (0, _react2.jsx)(_ElementList.default, {
|
|
318
|
+
items: items,
|
|
319
|
+
mode: mode,
|
|
320
|
+
onInsertItem: onInsertItem,
|
|
321
|
+
selectedItemIndex: selectedItemIndex,
|
|
322
|
+
focusedItemIndex: focusedItemIndex,
|
|
323
|
+
setFocusedItemIndex: setFocusedItemIndex,
|
|
324
|
+
columnCount: columnCount,
|
|
325
|
+
setColumnCount: setColumnCount,
|
|
326
|
+
createAnalyticsEvent: createAnalyticsEvent,
|
|
327
|
+
emptyStateHandler: emptyStateHandler,
|
|
328
|
+
selectedCategory: selectedCategory,
|
|
329
|
+
searchTerm: searchTerm
|
|
330
|
+
})), viewMoreItem && (0, _react2.jsx)(_ViewMore.ViewMore, {
|
|
331
|
+
item: viewMoreItem,
|
|
332
|
+
focus: focusOnViewMore
|
|
333
|
+
}))
|
|
334
|
+
);
|
|
330
335
|
}
|
|
331
336
|
function DesktopBrowser(_ref2) {
|
|
332
337
|
var showCategories = _ref2.showCategories,
|
|
@@ -358,7 +363,7 @@ function DesktopBrowser(_ref2) {
|
|
|
358
363
|
"data-testid": "desktop__element-browser"
|
|
359
364
|
}, showCategories && (0, _react2.jsx)("div", {
|
|
360
365
|
css: showCategories ? sideBarShowCategories : sideBar
|
|
361
|
-
}, (0, _react2.jsx)("
|
|
366
|
+
}, (0, _react2.jsx)("div", {
|
|
362
367
|
css: sidebarHeading,
|
|
363
368
|
"data-testid": "sidebar-heading",
|
|
364
369
|
id: "sidebar-heading"
|
|
@@ -78,7 +78,7 @@ var buttonLabelStyles = (0, _react2.css)({
|
|
|
78
78
|
'&.remove-nested-left-margin': {
|
|
79
79
|
marginLeft: 0
|
|
80
80
|
},
|
|
81
|
-
fontSize:
|
|
81
|
+
fontSize: "var(--ds-space-200, 16px)",
|
|
82
82
|
fontWeight: "var(--ds-font-weight-regular, 400)"
|
|
83
83
|
});
|
|
84
84
|
var spacerStyles = (0, _react2.css)({
|
|
@@ -86,6 +86,9 @@ var spacerStyles = (0, _react2.css)({
|
|
|
86
86
|
height: '10px'
|
|
87
87
|
});
|
|
88
88
|
var textStyles = (0, _react2.css)({
|
|
89
|
+
// cannot use font.body or editor custom font.body here as line-height need to be 1 (from sharedLabelStyles)
|
|
90
|
+
// cannot use space token as there is not token for 14px
|
|
91
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
89
92
|
fontSize: '14px',
|
|
90
93
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
91
94
|
padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)")
|
|
@@ -147,53 +150,58 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
147
150
|
var iconClassNames = (0, _classnames.default)({
|
|
148
151
|
'hide-icon': isBodiedMacro && !isNodeHovered
|
|
149
152
|
});
|
|
150
|
-
return (
|
|
151
|
-
// eslint-disable-next-line
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
153
|
+
return (
|
|
154
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
155
|
+
(0, _react2.jsx)("div", {
|
|
156
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
157
|
+
css: containerStyles
|
|
158
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
159
|
+
,
|
|
160
|
+
className: containerClassNames
|
|
161
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
162
|
+
,
|
|
163
|
+
style: customContainerStyles
|
|
164
|
+
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
165
|
+
,
|
|
166
|
+
onMouseOver: function onMouseOver() {
|
|
167
|
+
setIsNodeHovered === null || setIsNodeHovered === void 0 || setIsNodeHovered(true);
|
|
168
|
+
},
|
|
169
|
+
onMouseLeave: function onMouseLeave() {
|
|
170
|
+
setIsNodeHovered === null || setIsNodeHovered === void 0 || setIsNodeHovered(false);
|
|
171
|
+
},
|
|
172
|
+
"data-testid": "new-lozenge-container"
|
|
173
|
+
}, showMacroButtonUpdates ? (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_tooltip.default, {
|
|
174
|
+
content: (0, _react2.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, i18n.configure, {
|
|
175
|
+
values: {
|
|
176
|
+
macroName: text
|
|
177
|
+
}
|
|
178
|
+
})),
|
|
179
|
+
position: "top"
|
|
180
|
+
}, function (tooltipProps) {
|
|
181
|
+
return (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
182
|
+
"data-testid": "new-lozenge-button"
|
|
183
|
+
}, tooltipProps, {
|
|
184
|
+
css: [sharedLabelStyles, buttonLabelStyles]
|
|
185
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
186
|
+
,
|
|
187
|
+
className: "".concat(sharedLabelClassNames, " ").concat(newButtonLabelClassNames)
|
|
188
|
+
}), text, (0, _react2.jsx)("span", {
|
|
189
|
+
css: iconStyles,
|
|
190
|
+
className: iconClassNames,
|
|
191
|
+
"data-testid": "config-icon"
|
|
192
|
+
}, (0, _react2.jsx)(_preferences.default, {
|
|
193
|
+
label: ""
|
|
194
|
+
})));
|
|
195
|
+
}), (0, _react2.jsx)("div", {
|
|
196
|
+
css: spacerStyles
|
|
197
|
+
})) : (0, _react2.jsx)("span", {
|
|
198
|
+
"data-testid": "new-lozenge",
|
|
199
|
+
css: [sharedLabelStyles, originalLabelStyles]
|
|
178
200
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
179
201
|
,
|
|
180
|
-
className:
|
|
181
|
-
}
|
|
182
|
-
css:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}, (0, _react2.jsx)(_preferences.default, {
|
|
186
|
-
label: ""
|
|
187
|
-
})));
|
|
188
|
-
}), (0, _react2.jsx)("div", {
|
|
189
|
-
css: spacerStyles
|
|
190
|
-
})) : (0, _react2.jsx)("span", {
|
|
191
|
-
"data-testid": "new-lozenge",
|
|
192
|
-
css: [sharedLabelStyles, originalLabelStyles]
|
|
193
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
194
|
-
,
|
|
195
|
-
className: sharedLabelClassNames
|
|
196
|
-
}, (0, _react2.jsx)("span", {
|
|
197
|
-
css: textStyles
|
|
198
|
-
}, text)));
|
|
202
|
+
className: sharedLabelClassNames
|
|
203
|
+
}, (0, _react2.jsx)("span", {
|
|
204
|
+
css: textStyles
|
|
205
|
+
}, text)))
|
|
206
|
+
);
|
|
199
207
|
};
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "94.
|
|
20
|
+
var packageVersion = "94.4.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -273,6 +273,12 @@ Object.defineProperty(exports, "mediaSingleSharedStyle", {
|
|
|
273
273
|
return _mediaSingle.mediaSingleSharedStyle;
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
+
Object.defineProperty(exports, "mediaSingleSharedStyleNew", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function get() {
|
|
279
|
+
return _mediaSingle.mediaSingleSharedStyleNew;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
276
282
|
Object.defineProperty(exports, "paragraphSharedStyles", {
|
|
277
283
|
enumerable: true,
|
|
278
284
|
get: function get() {
|
|
@@ -5,30 +5,57 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.embedSpacingStyles = exports.embedCardStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
9
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
11
|
|
|
10
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
|
-
var embedCardStyles = exports.embedCardStyles = (
|
|
12
|
-
|
|
13
|
-
'.ProseMirror': {
|
|
13
|
+
var embedCardStyles = exports.embedCardStyles = function embedCardStyles() {
|
|
14
|
+
return (0, _platformFeatureFlags.fg)('platform_editor_element_dnd_nested_fix_patch_3') ? (0, _react.css)({
|
|
14
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
'.ProseMirror': {
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
|
+
".embedCardView-content-wrap[layout^='wrap-']": {
|
|
19
|
+
maxWidth: '100%',
|
|
20
|
+
position: 'relative',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
22
|
+
zIndex: _editorSharedStyles.akEditorWrappedNodeZIndex
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
|
+
".embedCardView-content-wrap[layout='wrap-left']": {
|
|
26
|
+
float: 'left'
|
|
27
|
+
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
|
+
".embedCardView-content-wrap[layout='wrap-right']": {
|
|
30
|
+
float: 'right'
|
|
31
|
+
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
|
+
".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
|
|
34
|
+
clear: 'both'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}) : (0, _react.css)({
|
|
26
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
-
|
|
28
|
-
|
|
39
|
+
'.ProseMirror': {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
|
+
".embedCardView-content-wrap[layout^='wrap-']": {
|
|
42
|
+
maxWidth: '100%'
|
|
43
|
+
},
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
45
|
+
".embedCardView-content-wrap[layout='wrap-left']": {
|
|
46
|
+
float: 'left'
|
|
47
|
+
},
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
49
|
+
".embedCardView-content-wrap[layout='wrap-right']": {
|
|
50
|
+
float: 'right'
|
|
51
|
+
},
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
53
|
+
".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
|
|
54
|
+
clear: 'both'
|
|
55
|
+
}
|
|
29
56
|
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
57
|
+
});
|
|
58
|
+
};
|
|
32
59
|
|
|
33
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
61
|
var embedSpacingStyles = exports.embedSpacingStyles = (0, _react.css)({
|
|
@@ -4,10 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.richMediaClassName = exports.mediaSingleSharedStyle = void 0;
|
|
7
|
+
exports.richMediaClassName = exports.mediaSingleSharedStyleNew = exports.mediaSingleSharedStyle = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
-
var
|
|
10
|
+
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
+
var _css, _css2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
var richMediaClassName = exports.richMediaClassName = 'rich-media-item';
|
|
12
13
|
var wrappedMediaBreakoutPoint = 410;
|
|
13
14
|
var mediaSingleSharedStyle = exports.mediaSingleSharedStyle = (0, _react.css)((_css = {}, (0, _defineProperty2.default)(_css, "li .".concat(richMediaClassName), {
|
|
@@ -52,5 +53,51 @@ var mediaSingleSharedStyle = exports.mediaSingleSharedStyle = (0, _react.css)((_
|
|
|
52
53
|
margin: "var(--ds-space-150, 12px)".concat(" 0")
|
|
53
54
|
}
|
|
54
55
|
}), _css));
|
|
56
|
+
var mediaSingleSharedStyleNew = exports.mediaSingleSharedStyleNew = (0, _react.css)((_css2 = {}, (0, _defineProperty2.default)(_css2, "li .".concat(richMediaClassName), {
|
|
57
|
+
margin: 0
|
|
58
|
+
}), (0, _defineProperty2.default)(_css2, '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
|
|
59
|
+
content: "''",
|
|
60
|
+
display: 'block',
|
|
61
|
+
height: 0
|
|
62
|
+
}), (0, _defineProperty2.default)(_css2, '&.ua-firefox', {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
64
|
+
'.mediaSingleView-content-wrap': {
|
|
65
|
+
userSelect: 'none'
|
|
66
|
+
},
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
68
|
+
'.captionView-content-wrap': {
|
|
69
|
+
userSelect: 'text'
|
|
70
|
+
}
|
|
71
|
+
}), (0, _defineProperty2.default)(_css2, ".mediaSingleView-content-wrap[layout^='wrap-']", {
|
|
72
|
+
position: 'relative',
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
74
|
+
zIndex: _editorSharedStyles.akEditorWrappedNodeZIndex
|
|
75
|
+
}), (0, _defineProperty2.default)(_css2, ".mediaSingleView-content-wrap[layout='center']", {
|
|
76
|
+
clear: 'both'
|
|
77
|
+
}), (0, _defineProperty2.default)(_css2, "table .".concat(richMediaClassName), {
|
|
78
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
79
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
80
|
+
clear: 'both',
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
82
|
+
'&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': {
|
|
83
|
+
clear: 'none',
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
85
|
+
'&:first-child': {
|
|
86
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}), (0, _defineProperty2.default)(_css2, ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), {
|
|
90
|
+
clear: 'both'
|
|
91
|
+
}), (0, _defineProperty2.default)(_css2, ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), {
|
|
92
|
+
marginRight: 0,
|
|
93
|
+
marginLeft: 0
|
|
94
|
+
}), (0, _defineProperty2.default)(_css2, "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
96
|
+
"div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": {
|
|
97
|
+
float: 'none',
|
|
98
|
+
overflow: 'auto',
|
|
99
|
+
margin: "var(--ds-space-150, 12px)".concat(" 0")
|
|
100
|
+
}
|
|
101
|
+
}), _css2));
|
|
55
102
|
|
|
56
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -14,6 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
|
+
var _primitives = require("@atlaskit/primitives");
|
|
17
18
|
var _messages = require("./messages");
|
|
18
19
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
19
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
@@ -26,10 +27,10 @@ var captionWrapperStyle = (0, _react2.css)({
|
|
|
26
27
|
position: 'relative',
|
|
27
28
|
color: "var(--ds-text-subtle, #44546F)"
|
|
28
29
|
});
|
|
29
|
-
var placeholderStyle = (0,
|
|
30
|
-
color:
|
|
30
|
+
var placeholderStyle = (0, _primitives.xcss)({
|
|
31
|
+
color: 'color.text.subtlest',
|
|
31
32
|
position: 'absolute',
|
|
32
|
-
top: 0,
|
|
33
|
+
top: 'space.0',
|
|
33
34
|
width: '100%'
|
|
34
35
|
});
|
|
35
36
|
var CaptionComponent = exports.CaptionComponent = /*#__PURE__*/function (_React$Component) {
|
|
@@ -54,9 +55,9 @@ var CaptionComponent = exports.CaptionComponent = /*#__PURE__*/function (_React$
|
|
|
54
55
|
"data-testid": "media-caption"
|
|
55
56
|
}, dataAttributes, {
|
|
56
57
|
css: captionWrapperStyle
|
|
57
|
-
}), showPlaceholder ? (0, _react2.jsx)(
|
|
58
|
-
|
|
59
|
-
}, formatMessage(_messages.messages.placeholder)) : null, children);
|
|
58
|
+
}), showPlaceholder ? (0, _react2.jsx)(_primitives.Box, {
|
|
59
|
+
xcss: placeholderStyle
|
|
60
|
+
}, (0, _react2.jsx)(_primitives.Text, null, formatMessage(_messages.messages.placeholder))) : null, children);
|
|
60
61
|
}
|
|
61
62
|
}]);
|
|
62
63
|
return CaptionComponent;
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "94.
|
|
27
|
+
var packageVersion = "94.4.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -5,6 +5,8 @@ export let LAYOUT_TYPE = /*#__PURE__*/function (LAYOUT_TYPE) {
|
|
|
5
5
|
LAYOUT_TYPE["LEFT_SIDEBAR"] = "twoColumnsLeftSidebar";
|
|
6
6
|
LAYOUT_TYPE["RIGHT_SIDEBAR"] = "twoColumnsRightSidebar";
|
|
7
7
|
LAYOUT_TYPE["THREE_WITH_SIDEBARS"] = "threeColumnsWithSidebars ";
|
|
8
|
+
LAYOUT_TYPE["FOUR_COLS_EQUAL"] = "fourColumnsEqual";
|
|
9
|
+
LAYOUT_TYPE["FIVE_COLS_EQUAL"] = "fiveColumnsEqual";
|
|
8
10
|
return LAYOUT_TYPE;
|
|
9
11
|
}({});
|
|
10
12
|
export let SMART_LINK_TYPE = /*#__PURE__*/function (SMART_LINK_TYPE) {
|