@atlaskit/editor-common 94.3.1 → 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 +15 -0
- package/dist/cjs/analytics/types/node-events.js +2 -0
- 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/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/node-events.js +2 -0
- 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/DropList/index.js +1 -1
- package/dist/esm/analytics/types/node-events.js +2 -0
- 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/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-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/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
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
|
+
|
|
3
18
|
## 94.3.1
|
|
4
19
|
|
|
5
20
|
### Patch 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) {
|
|
@@ -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
|
|
@@ -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) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "94.
|
|
4
|
+
const packageVersion = "94.4.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -3,7 +3,7 @@ export { backgroundColorStyles } from './shared/background-color';
|
|
|
3
3
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl } from './shared/table';
|
|
4
4
|
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
|
|
5
5
|
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
6
|
-
export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
|
|
6
|
+
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName } from './shared/media-single';
|
|
7
7
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
8
8
|
export { headingsSharedStyles } from './shared/headings';
|
|
9
9
|
export { ruleSharedStyles } from './shared/rule';
|
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
|
-
export const embedCardStyles = css({
|
|
6
|
+
export const embedCardStyles = () => fg('platform_editor_element_dnd_nested_fix_patch_3') ? css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
|
+
'.ProseMirror': {
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
10
|
+
".embedCardView-content-wrap[layout^='wrap-']": {
|
|
11
|
+
maxWidth: '100%',
|
|
12
|
+
position: 'relative',
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
14
|
+
zIndex: akEditorWrappedNodeZIndex
|
|
15
|
+
},
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
|
+
".embedCardView-content-wrap[layout='wrap-left']": {
|
|
18
|
+
float: 'left'
|
|
19
|
+
},
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
|
+
".embedCardView-content-wrap[layout='wrap-right']": {
|
|
22
|
+
float: 'right'
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
|
+
".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
|
|
26
|
+
clear: 'both'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}) : css({
|
|
5
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
31
|
'.ProseMirror': {
|
|
7
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles';
|
|
3
4
|
const richMediaClassName = 'rich-media-item';
|
|
4
5
|
const wrappedMediaBreakoutPoint = 410;
|
|
5
6
|
const mediaSingleSharedStyle = css({
|
|
@@ -62,6 +63,72 @@ const mediaSingleSharedStyle = css({
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
});
|
|
66
|
+
const mediaSingleSharedStyleNew = css({
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
68
|
+
[`li .${richMediaClassName}`]: {
|
|
69
|
+
margin: 0
|
|
70
|
+
},
|
|
71
|
+
// Hack for chrome to fix media single position inside a list when media is the first child
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
73
|
+
'&.ua-chrome li > .mediaSingleView-content-wrap::before': {
|
|
74
|
+
content: "''",
|
|
75
|
+
display: 'block',
|
|
76
|
+
height: 0
|
|
77
|
+
},
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
79
|
+
'&.ua-firefox': {
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
81
|
+
'.mediaSingleView-content-wrap': {
|
|
82
|
+
userSelect: 'none'
|
|
83
|
+
},
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
85
|
+
'.captionView-content-wrap': {
|
|
86
|
+
userSelect: 'text'
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
90
|
+
".mediaSingleView-content-wrap[layout^='wrap-']": {
|
|
91
|
+
position: 'relative',
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
93
|
+
zIndex: akEditorWrappedNodeZIndex
|
|
94
|
+
},
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
96
|
+
".mediaSingleView-content-wrap[layout='center']": {
|
|
97
|
+
clear: 'both'
|
|
98
|
+
},
|
|
99
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
100
|
+
[`table .${richMediaClassName}`]: {
|
|
101
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
102
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
103
|
+
clear: 'both',
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
105
|
+
'&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': {
|
|
106
|
+
clear: 'none',
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
108
|
+
'&:first-child': {
|
|
109
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
114
|
+
[`.${richMediaClassName}.image-wrap-right + .${richMediaClassName}.image-wrap-left`]: {
|
|
115
|
+
clear: 'both'
|
|
116
|
+
},
|
|
117
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
118
|
+
[`.${richMediaClassName}.image-wrap-left + .${richMediaClassName}.image-wrap-right, .${richMediaClassName}.image-wrap-right + .${richMediaClassName}.image-wrap-left, .${richMediaClassName}.image-wrap-left + .${richMediaClassName}.image-wrap-left, .${richMediaClassName}.image-wrap-right + .${richMediaClassName}.image-wrap-right`]: {
|
|
119
|
+
marginRight: 0,
|
|
120
|
+
marginLeft: 0
|
|
121
|
+
},
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
123
|
+
[`@media all and (max-width: ${wrappedMediaBreakoutPoint}px)`]: {
|
|
124
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
125
|
+
"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']": {
|
|
126
|
+
float: 'none',
|
|
127
|
+
overflow: 'auto',
|
|
128
|
+
margin: `${"var(--ds-space-150, 12px)"} 0`
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
});
|
|
65
132
|
|
|
66
133
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
67
|
-
export { mediaSingleSharedStyle, richMediaClassName };
|
|
134
|
+
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName };
|
|
@@ -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 = "94.
|
|
16
|
+
const packageVersion = "94.4.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
class DropList extends Component {
|
|
@@ -5,6 +5,8 @@ export var 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 var SMART_LINK_TYPE = /*#__PURE__*/function (SMART_LINK_TYPE) {
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "94.
|
|
10
|
+
var packageVersion = "94.4.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { backgroundColorStyles } from './shared/background-color';
|
|
|
3
3
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl } from './shared/table';
|
|
4
4
|
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
|
|
5
5
|
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
6
|
-
export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
|
|
6
|
+
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName } from './shared/media-single';
|
|
7
7
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
8
8
|
export { headingsSharedStyles } from './shared/headings';
|
|
9
9
|
export { ruleSharedStyles } from './shared/rule';
|
|
@@ -1,27 +1,54 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
|
-
export var embedCardStyles =
|
|
5
|
-
|
|
6
|
-
'.ProseMirror': {
|
|
6
|
+
export var embedCardStyles = function embedCardStyles() {
|
|
7
|
+
return fg('platform_editor_element_dnd_nested_fix_patch_3') ? css({
|
|
7
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
'.ProseMirror': {
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
11
|
+
".embedCardView-content-wrap[layout^='wrap-']": {
|
|
12
|
+
maxWidth: '100%',
|
|
13
|
+
position: 'relative',
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
15
|
+
zIndex: akEditorWrappedNodeZIndex
|
|
16
|
+
},
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
|
+
".embedCardView-content-wrap[layout='wrap-left']": {
|
|
19
|
+
float: 'left'
|
|
20
|
+
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
|
+
".embedCardView-content-wrap[layout='wrap-right']": {
|
|
23
|
+
float: 'right'
|
|
24
|
+
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
|
+
".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
|
|
27
|
+
clear: 'both'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}) : css({
|
|
19
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
'.ProseMirror': {
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
34
|
+
".embedCardView-content-wrap[layout^='wrap-']": {
|
|
35
|
+
maxWidth: '100%'
|
|
36
|
+
},
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
|
+
".embedCardView-content-wrap[layout='wrap-left']": {
|
|
39
|
+
float: 'left'
|
|
40
|
+
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
42
|
+
".embedCardView-content-wrap[layout='wrap-right']": {
|
|
43
|
+
float: 'right'
|
|
44
|
+
},
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
46
|
+
".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
|
|
47
|
+
clear: 'both'
|
|
48
|
+
}
|
|
22
49
|
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
50
|
+
});
|
|
51
|
+
};
|
|
25
52
|
|
|
26
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
54
|
export var embedSpacingStyles = css({
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
var _css;
|
|
2
|
+
var _css, _css2;
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
|
+
import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles';
|
|
5
6
|
var richMediaClassName = 'rich-media-item';
|
|
6
7
|
var wrappedMediaBreakoutPoint = 410;
|
|
7
8
|
var mediaSingleSharedStyle = css((_css = {}, _defineProperty(_css, "li .".concat(richMediaClassName), {
|
|
@@ -46,6 +47,52 @@ var mediaSingleSharedStyle = css((_css = {}, _defineProperty(_css, "li .".concat
|
|
|
46
47
|
margin: "var(--ds-space-150, 12px)".concat(" 0")
|
|
47
48
|
}
|
|
48
49
|
}), _css));
|
|
50
|
+
var mediaSingleSharedStyleNew = css((_css2 = {}, _defineProperty(_css2, "li .".concat(richMediaClassName), {
|
|
51
|
+
margin: 0
|
|
52
|
+
}), _defineProperty(_css2, '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
|
|
53
|
+
content: "''",
|
|
54
|
+
display: 'block',
|
|
55
|
+
height: 0
|
|
56
|
+
}), _defineProperty(_css2, '&.ua-firefox', {
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
58
|
+
'.mediaSingleView-content-wrap': {
|
|
59
|
+
userSelect: 'none'
|
|
60
|
+
},
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
62
|
+
'.captionView-content-wrap': {
|
|
63
|
+
userSelect: 'text'
|
|
64
|
+
}
|
|
65
|
+
}), _defineProperty(_css2, ".mediaSingleView-content-wrap[layout^='wrap-']", {
|
|
66
|
+
position: 'relative',
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
68
|
+
zIndex: akEditorWrappedNodeZIndex
|
|
69
|
+
}), _defineProperty(_css2, ".mediaSingleView-content-wrap[layout='center']", {
|
|
70
|
+
clear: 'both'
|
|
71
|
+
}), _defineProperty(_css2, "table .".concat(richMediaClassName), {
|
|
72
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
73
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
74
|
+
clear: 'both',
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
76
|
+
'&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': {
|
|
77
|
+
clear: 'none',
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
79
|
+
'&:first-child': {
|
|
80
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}), _defineProperty(_css2, ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), {
|
|
84
|
+
clear: 'both'
|
|
85
|
+
}), _defineProperty(_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"), {
|
|
86
|
+
marginRight: 0,
|
|
87
|
+
marginLeft: 0
|
|
88
|
+
}), _defineProperty(_css2, "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
90
|
+
"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']": {
|
|
91
|
+
float: 'none',
|
|
92
|
+
overflow: 'auto',
|
|
93
|
+
margin: "var(--ds-space-150, 12px)".concat(" 0")
|
|
94
|
+
}
|
|
95
|
+
}), _css2));
|
|
49
96
|
|
|
50
97
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
51
|
-
export { mediaSingleSharedStyle, richMediaClassName };
|
|
98
|
+
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName };
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "94.
|
|
24
|
+
var packageVersion = "94.4.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -7,7 +7,9 @@ export declare enum LAYOUT_TYPE {
|
|
|
7
7
|
THREE_COLS_EQUAL = "threeColumnsEqual",
|
|
8
8
|
LEFT_SIDEBAR = "twoColumnsLeftSidebar",
|
|
9
9
|
RIGHT_SIDEBAR = "twoColumnsRightSidebar",
|
|
10
|
-
THREE_WITH_SIDEBARS = "threeColumnsWithSidebars "
|
|
10
|
+
THREE_WITH_SIDEBARS = "threeColumnsWithSidebars ",
|
|
11
|
+
FOUR_COLS_EQUAL = "fourColumnsEqual",
|
|
12
|
+
FIVE_COLS_EQUAL = "fiveColumnsEqual"
|
|
11
13
|
}
|
|
12
14
|
export declare enum SMART_LINK_TYPE {
|
|
13
15
|
INLINE_CARD = "inline",
|
|
@@ -36,11 +38,11 @@ type DeletedSmartLink = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.SMART_LINK, ACTI
|
|
|
36
38
|
displayMode: ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE;
|
|
37
39
|
}, undefined>;
|
|
38
40
|
type ChangedLayoutAEP = TrackAEP<ACTION.CHANGED_LAYOUT, ACTION_SUBJECT.LAYOUT, undefined, {
|
|
39
|
-
previousLayout
|
|
40
|
-
newLayout
|
|
41
|
+
previousLayout?: LAYOUT_TYPE;
|
|
42
|
+
newLayout?: LAYOUT_TYPE;
|
|
41
43
|
}, undefined>;
|
|
42
44
|
type DeletedLayoutAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.LAYOUT, undefined, {
|
|
43
|
-
layout
|
|
45
|
+
layout?: LAYOUT_TYPE;
|
|
44
46
|
}, undefined>;
|
|
45
47
|
type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
46
48
|
inputMethod: INPUT_METHOD.TOOLBAR;
|
|
@@ -3,7 +3,7 @@ export { backgroundColorStyles } from './shared/background-color';
|
|
|
3
3
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, } from './shared/table';
|
|
4
4
|
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
|
|
5
5
|
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
6
|
-
export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
|
|
6
|
+
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName, } from './shared/media-single';
|
|
7
7
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
8
8
|
export { headingsSharedStyles } from './shared/headings';
|
|
9
9
|
export { ruleSharedStyles } from './shared/rule';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const embedCardStyles: import("@emotion/react").SerializedStyles;
|
|
1
|
+
export declare const embedCardStyles: () => import("@emotion/react").SerializedStyles;
|
|
2
2
|
export declare const embedSpacingStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
declare const richMediaClassName = "rich-media-item";
|
|
2
2
|
declare const mediaSingleSharedStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
-
|
|
3
|
+
declare const mediaSingleSharedStyleNew: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName };
|
|
@@ -7,7 +7,9 @@ export declare enum LAYOUT_TYPE {
|
|
|
7
7
|
THREE_COLS_EQUAL = "threeColumnsEqual",
|
|
8
8
|
LEFT_SIDEBAR = "twoColumnsLeftSidebar",
|
|
9
9
|
RIGHT_SIDEBAR = "twoColumnsRightSidebar",
|
|
10
|
-
THREE_WITH_SIDEBARS = "threeColumnsWithSidebars "
|
|
10
|
+
THREE_WITH_SIDEBARS = "threeColumnsWithSidebars ",
|
|
11
|
+
FOUR_COLS_EQUAL = "fourColumnsEqual",
|
|
12
|
+
FIVE_COLS_EQUAL = "fiveColumnsEqual"
|
|
11
13
|
}
|
|
12
14
|
export declare enum SMART_LINK_TYPE {
|
|
13
15
|
INLINE_CARD = "inline",
|
|
@@ -36,11 +38,11 @@ type DeletedSmartLink = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.SMART_LINK, ACTI
|
|
|
36
38
|
displayMode: ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE;
|
|
37
39
|
}, undefined>;
|
|
38
40
|
type ChangedLayoutAEP = TrackAEP<ACTION.CHANGED_LAYOUT, ACTION_SUBJECT.LAYOUT, undefined, {
|
|
39
|
-
previousLayout
|
|
40
|
-
newLayout
|
|
41
|
+
previousLayout?: LAYOUT_TYPE;
|
|
42
|
+
newLayout?: LAYOUT_TYPE;
|
|
41
43
|
}, undefined>;
|
|
42
44
|
type DeletedLayoutAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.LAYOUT, undefined, {
|
|
43
|
-
layout
|
|
45
|
+
layout?: LAYOUT_TYPE;
|
|
44
46
|
}, undefined>;
|
|
45
47
|
type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
46
48
|
inputMethod: INPUT_METHOD.TOOLBAR;
|
|
@@ -3,7 +3,7 @@ export { backgroundColorStyles } from './shared/background-color';
|
|
|
3
3
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, } from './shared/table';
|
|
4
4
|
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
|
|
5
5
|
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
6
|
-
export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
|
|
6
|
+
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName, } from './shared/media-single';
|
|
7
7
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
8
8
|
export { headingsSharedStyles } from './shared/headings';
|
|
9
9
|
export { ruleSharedStyles } from './shared/rule';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const embedCardStyles: import("@emotion/react").SerializedStyles;
|
|
1
|
+
export declare const embedCardStyles: () => import("@emotion/react").SerializedStyles;
|
|
2
2
|
export declare const embedSpacingStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
declare const richMediaClassName = "rich-media-item";
|
|
2
2
|
declare const mediaSingleSharedStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
-
|
|
3
|
+
declare const mediaSingleSharedStyleNew: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "94.
|
|
3
|
+
"version": "94.4.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/"
|
|
@@ -130,14 +130,14 @@
|
|
|
130
130
|
"@atlaskit/icon-object": "^6.7.0",
|
|
131
131
|
"@atlaskit/link-datasource": "^3.6.0",
|
|
132
132
|
"@atlaskit/link-picker": "^1.47.0",
|
|
133
|
-
"@atlaskit/media-card": "^78.
|
|
133
|
+
"@atlaskit/media-card": "^78.9.0",
|
|
134
134
|
"@atlaskit/media-client": "^28.0.0",
|
|
135
135
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
136
136
|
"@atlaskit/media-common": "^11.7.0",
|
|
137
137
|
"@atlaskit/media-file-preview": "^0.9.0",
|
|
138
138
|
"@atlaskit/media-picker": "^66.7.0",
|
|
139
|
-
"@atlaskit/media-ui": "^
|
|
140
|
-
"@atlaskit/media-viewer": "49.2.
|
|
139
|
+
"@atlaskit/media-ui": "^26.0.0",
|
|
140
|
+
"@atlaskit/media-viewer": "49.2.3",
|
|
141
141
|
"@atlaskit/mention": "^23.3.0",
|
|
142
142
|
"@atlaskit/menu": "^2.13.0",
|
|
143
143
|
"@atlaskit/onboarding": "^11.16.0",
|
|
@@ -278,6 +278,9 @@
|
|
|
278
278
|
},
|
|
279
279
|
"platform_editor_heading_margin_fix": {
|
|
280
280
|
"type": "boolean"
|
|
281
|
+
},
|
|
282
|
+
"platform_editor_element_dnd_nested_fix_patch_3": {
|
|
283
|
+
"type": "boolean"
|
|
281
284
|
}
|
|
282
285
|
}
|
|
283
286
|
}
|