@atlaskit/editor-common 99.16.1 → 99.17.2
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 +31 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +3 -3
- package/dist/cjs/messages/block-controls.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/selection/gap-cursor/styles.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +3 -3
- package/dist/es2019/messages/block-controls.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/selection/gap-cursor/styles.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +3 -3
- package/dist/esm/messages/block-controls.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/selection/gap-cursor/styles.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/move-content-events.d.ts +2 -0
- package/dist/types/messages/block-controls.d.ts +5 -0
- package/dist/types-ts4.5/analytics/types/move-content-events.d.ts +2 -0
- package/dist/types-ts4.5/messages/block-controls.d.ts +5 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 99.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 99.17.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#115175](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115175)
|
|
14
|
+
[`879f5b5efcabd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/879f5b5efcabd) -
|
|
15
|
+
[ux] ED-25483 Change CSS animation for gap cursor
|
|
16
|
+
|
|
17
|
+
## 99.17.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#114384](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114384)
|
|
22
|
+
[`72325f32502fb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/72325f32502fb) -
|
|
23
|
+
[ED-26291] Update document moved event to reflect multiple selection information
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#114618](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114618)
|
|
28
|
+
[`9976feceb2007`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9976feceb2007) -
|
|
29
|
+
[ux] Implement initial UI for Block menu
|
|
30
|
+
- [#114622](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114622)
|
|
31
|
+
[`1a72e048af613`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1a72e048af613) -
|
|
32
|
+
Avoid extra content section in legacy content macro
|
|
33
|
+
|
|
3
34
|
## 99.16.1
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -59,7 +59,7 @@ function ExtensionWithPluginState(props) {
|
|
|
59
59
|
var _extensionNode$attrs, _extensionNode$attrs2;
|
|
60
60
|
return extensionNode.type.name === 'extension' && ((_extensionNode$attrs = extensionNode.attrs) === null || _extensionNode$attrs === void 0 ? void 0 : _extensionNode$attrs.extensionType) === 'com.atlassian.confluence.migration' && ((_extensionNode$attrs2 = extensionNode.attrs) === null || _extensionNode$attrs2 === void 0 ? void 0 : _extensionNode$attrs2.extensionKey) === 'legacy-content';
|
|
61
61
|
};
|
|
62
|
-
var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name)
|
|
62
|
+
var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
|
|
63
63
|
var hasChildren = !!children;
|
|
64
64
|
var removeBorder = showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
65
65
|
var getPos = props.getPos,
|
|
@@ -80,7 +80,7 @@ function ExtensionWithPluginState(props) {
|
|
|
80
80
|
var show1PBodiedExtensionBorder = showUpdatedLivePages1PBodiedExtensionUI ? (0, _extensionUtils.isEmptyBodiedMacro)(node) : true;
|
|
81
81
|
var classNames = (0, _classnames2.default)('extension-container', 'block', shadowClassNames, (0, _defineProperty2.default)({
|
|
82
82
|
'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
|
|
83
|
-
'with-bodied-border': showMacroInteractionDesignUpdates && hasBody && !showBodiedExtensionRendererView && show1PBodiedExtensionBorder,
|
|
83
|
+
'with-bodied-border': showMacroInteractionDesignUpdates && (hasBody || isLegacyContentMacroExtension(node) && (0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro')) && !showBodiedExtensionRendererView && show1PBodiedExtensionBorder,
|
|
84
84
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
85
85
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
|
|
86
86
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
@@ -133,7 +133,7 @@ function ExtensionWithPluginState(props) {
|
|
|
133
133
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
|
|
134
134
|
customContainerStyles: customContainerStyles,
|
|
135
135
|
setIsNodeHovered: setIsNodeHovered,
|
|
136
|
-
isBodiedMacro: hasBody,
|
|
136
|
+
isBodiedMacro: hasBody || isLegacyContentMacroExtension(node) && (0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro'),
|
|
137
137
|
showLivePagesBodiedMacrosRendererView: showLivePagesBodiedMacrosRendererView,
|
|
138
138
|
showUpdatedLivePages1PBodiedExtensionUI: showUpdatedLivePages1PBodiedExtensionUI,
|
|
139
139
|
showBodiedExtensionRendererView: showBodiedExtensionRendererView,
|
|
@@ -50,5 +50,10 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
50
50
|
id: 'fabric.editor.blockControlMoveRight',
|
|
51
51
|
defaultMessage: 'Move right',
|
|
52
52
|
description: 'Moves selected content right'
|
|
53
|
+
},
|
|
54
|
+
delete: {
|
|
55
|
+
id: 'fabric.editor.blockControlDelete',
|
|
56
|
+
defaultMessage: 'Delete',
|
|
57
|
+
description: 'Delete selected element'
|
|
53
58
|
}
|
|
54
59
|
});
|
|
@@ -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 = "99.
|
|
20
|
+
var packageVersion = "99.17.2";
|
|
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
|
|
@@ -23,4 +23,4 @@ var wrapLeft = '[layout="wrap-left"]';
|
|
|
23
23
|
var wrapRight = '[layout="wrap-right"]';
|
|
24
24
|
|
|
25
25
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, This needs manual remediation, it autofixes seemingly safely, but the code style and readability is destroyed.
|
|
26
|
-
var gapCursorStyles = exports.gapCursorStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* =============== GAP CURSOR ================== */\n\t.ProseMirror {\n\t\t&.", " {\n\t\t\tcaret-color: transparent;\n\t\t}\n\n\t\t", " {\n\t\t\tdisplay: none;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\n\t\t\t& span {\n\t\t\t\tcaret-color: transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t& span::after {\n\t\t\t\tanimation: 1s ", " step-
|
|
26
|
+
var gapCursorStyles = exports.gapCursorStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* =============== GAP CURSOR ================== */\n\t.ProseMirror {\n\t\t&.", " {\n\t\t\tcaret-color: transparent;\n\t\t}\n\n\t\t", " {\n\t\t\tdisplay: none;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\n\t\t\t& span {\n\t\t\t\tcaret-color: transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t& span::after {\n\t\t\t\tanimation: 1s ", " step-start infinite;\n\t\t\t\tborder-left: 1px solid;\n\t\t\t\tcontent: '';\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\t&.-left span::after {\n\t\t\t\tleft: ", ";\n\t\t\t}\n\t\t\t&.-right span::after {\n\t\t\t\tright: ", ";\n\t\t\t}\n\t\t\t& span[layout='full-width'],\n\t\t\t& span[layout='wide'],\n\t\t\t& span[layout='fixed-width'] {\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t}\n\t\t\t&", " {\n\t\t\t\tfloat: right;\n\t\t\t}\n\n\t\t\t/* fix vertical alignment of gap cursor */\n\t\t\t&:first-of-type + ul,\n\t\t\t&:first-of-type + span + ul,\n\t\t\t&:first-of-type + ol,\n\t\t\t&:first-of-type + span + ol,\n\t\t\t&:first-of-type + pre,\n\t\t\t&:first-of-type + span + pre,\n\t\t\t&:first-of-type + blockquote,\n\t\t\t&:first-of-type + span + blockquote {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\t\t&.ProseMirror-focused ", " {\n\t\t\tdisplay: block;\n\t\t\tborder-color: transparent;\n\t\t}\n\t}\n\n\t/* This hack below is for two images aligned side by side */\n\t", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n\t\tclear: none;\n\t}\n\n\t", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n\t\tmargin-right: 0;\n\t\tmargin-left: 0;\n\t\tmargin-bottom: 0;\n\t}\n\n\t", " + ", ",\n ", " + ", " {\n\t\tfloat: left;\n\t}\n\n\t", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n\t\tvisibility: hidden;\n\t\tdisplay: block;\n\t\tfont-size: 0;\n\t\tcontent: ' ';\n\t\tclear: both;\n\t\theight: 0;\n\t}\n\n\t", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n\t\tmargin-top: 0;\n\t}\n"])), hideCaretModifier, gapCursor, gapCursorBlink, "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidgetNotBlock, gapCursor, prosemirrorwidgetNotBlock, gapCursor);
|
|
@@ -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 = "99.
|
|
26
|
+
var packageVersion = "99.17.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -48,7 +48,7 @@ function ExtensionWithPluginState(props) {
|
|
|
48
48
|
var _extensionNode$attrs, _extensionNode$attrs2;
|
|
49
49
|
return extensionNode.type.name === 'extension' && ((_extensionNode$attrs = extensionNode.attrs) === null || _extensionNode$attrs === void 0 ? void 0 : _extensionNode$attrs.extensionType) === 'com.atlassian.confluence.migration' && ((_extensionNode$attrs2 = extensionNode.attrs) === null || _extensionNode$attrs2 === void 0 ? void 0 : _extensionNode$attrs2.extensionKey) === 'legacy-content';
|
|
50
50
|
};
|
|
51
|
-
const hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name)
|
|
51
|
+
const hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
|
|
52
52
|
const hasChildren = !!children;
|
|
53
53
|
const removeBorder = showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
54
54
|
const {
|
|
@@ -71,7 +71,7 @@ function ExtensionWithPluginState(props) {
|
|
|
71
71
|
const show1PBodiedExtensionBorder = showUpdatedLivePages1PBodiedExtensionUI ? isEmptyBodiedMacro(node) : true;
|
|
72
72
|
const classNames = classnames('extension-container', 'block', shadowClassNames, {
|
|
73
73
|
'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
|
|
74
|
-
'with-bodied-border': showMacroInteractionDesignUpdates && hasBody && !showBodiedExtensionRendererView && show1PBodiedExtensionBorder,
|
|
74
|
+
'with-bodied-border': showMacroInteractionDesignUpdates && (hasBody || isLegacyContentMacroExtension(node) && fg('platform_editor_legacy_content_macro')) && !showBodiedExtensionRendererView && show1PBodiedExtensionBorder,
|
|
75
75
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
76
76
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
|
|
77
77
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
@@ -131,7 +131,7 @@ function ExtensionWithPluginState(props) {
|
|
|
131
131
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
|
|
132
132
|
customContainerStyles: customContainerStyles,
|
|
133
133
|
setIsNodeHovered: setIsNodeHovered,
|
|
134
|
-
isBodiedMacro: hasBody,
|
|
134
|
+
isBodiedMacro: hasBody || isLegacyContentMacroExtension(node) && fg('platform_editor_legacy_content_macro'),
|
|
135
135
|
showLivePagesBodiedMacrosRendererView: showLivePagesBodiedMacrosRendererView,
|
|
136
136
|
showUpdatedLivePages1PBodiedExtensionUI: showUpdatedLivePages1PBodiedExtensionUI,
|
|
137
137
|
showBodiedExtensionRendererView: showBodiedExtensionRendererView,
|
|
@@ -44,5 +44,10 @@ export const messages = defineMessages({
|
|
|
44
44
|
id: 'fabric.editor.blockControlMoveRight',
|
|
45
45
|
defaultMessage: 'Move right',
|
|
46
46
|
description: 'Moves selected content right'
|
|
47
|
+
},
|
|
48
|
+
delete: {
|
|
49
|
+
id: 'fabric.editor.blockControlDelete',
|
|
50
|
+
defaultMessage: 'Delete',
|
|
51
|
+
description: 'Delete selected element'
|
|
47
52
|
}
|
|
48
53
|
});
|
|
@@ -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 = "99.
|
|
4
|
+
const packageVersion = "99.17.2";
|
|
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
|
|
@@ -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 = "99.
|
|
16
|
+
const packageVersion = "99.17.2";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -51,7 +51,7 @@ function ExtensionWithPluginState(props) {
|
|
|
51
51
|
var _extensionNode$attrs, _extensionNode$attrs2;
|
|
52
52
|
return extensionNode.type.name === 'extension' && ((_extensionNode$attrs = extensionNode.attrs) === null || _extensionNode$attrs === void 0 ? void 0 : _extensionNode$attrs.extensionType) === 'com.atlassian.confluence.migration' && ((_extensionNode$attrs2 = extensionNode.attrs) === null || _extensionNode$attrs2 === void 0 ? void 0 : _extensionNode$attrs2.extensionKey) === 'legacy-content';
|
|
53
53
|
};
|
|
54
|
-
var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name)
|
|
54
|
+
var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
|
|
55
55
|
var hasChildren = !!children;
|
|
56
56
|
var removeBorder = showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
57
57
|
var getPos = props.getPos,
|
|
@@ -72,7 +72,7 @@ function ExtensionWithPluginState(props) {
|
|
|
72
72
|
var show1PBodiedExtensionBorder = showUpdatedLivePages1PBodiedExtensionUI ? isEmptyBodiedMacro(node) : true;
|
|
73
73
|
var classNames = classnames('extension-container', 'block', shadowClassNames, _defineProperty({
|
|
74
74
|
'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
|
|
75
|
-
'with-bodied-border': showMacroInteractionDesignUpdates && hasBody && !showBodiedExtensionRendererView && show1PBodiedExtensionBorder,
|
|
75
|
+
'with-bodied-border': showMacroInteractionDesignUpdates && (hasBody || isLegacyContentMacroExtension(node) && fg('platform_editor_legacy_content_macro')) && !showBodiedExtensionRendererView && show1PBodiedExtensionBorder,
|
|
76
76
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
77
77
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
|
|
78
78
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
@@ -125,7 +125,7 @@ function ExtensionWithPluginState(props) {
|
|
|
125
125
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
|
|
126
126
|
customContainerStyles: customContainerStyles,
|
|
127
127
|
setIsNodeHovered: setIsNodeHovered,
|
|
128
|
-
isBodiedMacro: hasBody,
|
|
128
|
+
isBodiedMacro: hasBody || isLegacyContentMacroExtension(node) && fg('platform_editor_legacy_content_macro'),
|
|
129
129
|
showLivePagesBodiedMacrosRendererView: showLivePagesBodiedMacrosRendererView,
|
|
130
130
|
showUpdatedLivePages1PBodiedExtensionUI: showUpdatedLivePages1PBodiedExtensionUI,
|
|
131
131
|
showBodiedExtensionRendererView: showBodiedExtensionRendererView,
|
|
@@ -44,5 +44,10 @@ export var messages = defineMessages({
|
|
|
44
44
|
id: 'fabric.editor.blockControlMoveRight',
|
|
45
45
|
defaultMessage: 'Move right',
|
|
46
46
|
description: 'Moves selected content right'
|
|
47
|
+
},
|
|
48
|
+
delete: {
|
|
49
|
+
id: 'fabric.editor.blockControlDelete',
|
|
50
|
+
defaultMessage: 'Delete',
|
|
51
|
+
description: 'Delete selected element'
|
|
47
52
|
}
|
|
48
53
|
});
|
|
@@ -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 = "99.
|
|
10
|
+
var packageVersion = "99.17.2";
|
|
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
|
|
@@ -17,4 +17,4 @@ var wrapLeft = '[layout="wrap-left"]';
|
|
|
17
17
|
var wrapRight = '[layout="wrap-right"]';
|
|
18
18
|
|
|
19
19
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, This needs manual remediation, it autofixes seemingly safely, but the code style and readability is destroyed.
|
|
20
|
-
export var gapCursorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* =============== GAP CURSOR ================== */\n\t.ProseMirror {\n\t\t&.", " {\n\t\t\tcaret-color: transparent;\n\t\t}\n\n\t\t", " {\n\t\t\tdisplay: none;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\n\t\t\t& span {\n\t\t\t\tcaret-color: transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t& span::after {\n\t\t\t\tanimation: 1s ", " step-
|
|
20
|
+
export var gapCursorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* =============== GAP CURSOR ================== */\n\t.ProseMirror {\n\t\t&.", " {\n\t\t\tcaret-color: transparent;\n\t\t}\n\n\t\t", " {\n\t\t\tdisplay: none;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\n\t\t\t& span {\n\t\t\t\tcaret-color: transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t& span::after {\n\t\t\t\tanimation: 1s ", " step-start infinite;\n\t\t\t\tborder-left: 1px solid;\n\t\t\t\tcontent: '';\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\t&.-left span::after {\n\t\t\t\tleft: ", ";\n\t\t\t}\n\t\t\t&.-right span::after {\n\t\t\t\tright: ", ";\n\t\t\t}\n\t\t\t& span[layout='full-width'],\n\t\t\t& span[layout='wide'],\n\t\t\t& span[layout='fixed-width'] {\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t}\n\t\t\t&", " {\n\t\t\t\tfloat: right;\n\t\t\t}\n\n\t\t\t/* fix vertical alignment of gap cursor */\n\t\t\t&:first-of-type + ul,\n\t\t\t&:first-of-type + span + ul,\n\t\t\t&:first-of-type + ol,\n\t\t\t&:first-of-type + span + ol,\n\t\t\t&:first-of-type + pre,\n\t\t\t&:first-of-type + span + pre,\n\t\t\t&:first-of-type + blockquote,\n\t\t\t&:first-of-type + span + blockquote {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\t\t&.ProseMirror-focused ", " {\n\t\t\tdisplay: block;\n\t\t\tborder-color: transparent;\n\t\t}\n\t}\n\n\t/* This hack below is for two images aligned side by side */\n\t", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n\t\tclear: none;\n\t}\n\n\t", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n\t\tmargin-right: 0;\n\t\tmargin-left: 0;\n\t\tmargin-bottom: 0;\n\t}\n\n\t", " + ", ",\n ", " + ", " {\n\t\tfloat: left;\n\t}\n\n\t", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n\t\tvisibility: hidden;\n\t\tdisplay: block;\n\t\tfont-size: 0;\n\t\tcontent: ' ';\n\t\tclear: both;\n\t\theight: 0;\n\t}\n\n\t", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n\t\tmargin-top: 0;\n\t}\n"])), hideCaretModifier, gapCursor, gapCursorBlink, "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidgetNotBlock, gapCursor, prosemirrorwidgetNotBlock, gapCursor);
|
|
@@ -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 = "99.
|
|
23
|
+
var packageVersion = "99.17.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -4,6 +4,8 @@ type MoveContentAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.DOCUMENT, ACTION_SUB
|
|
|
4
4
|
nodeType?: string;
|
|
5
5
|
nodeDepth?: number;
|
|
6
6
|
destinationNodeDepth?: number;
|
|
7
|
+
nodeTypes?: string;
|
|
8
|
+
hasSelectedMultipleNodes?: boolean;
|
|
7
9
|
}, undefined>;
|
|
8
10
|
export type MoveContentEventPayload = MoveContentAEP;
|
|
9
11
|
export {};
|
|
@@ -4,6 +4,8 @@ type MoveContentAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.DOCUMENT, ACTION_SUB
|
|
|
4
4
|
nodeType?: string;
|
|
5
5
|
nodeDepth?: number;
|
|
6
6
|
destinationNodeDepth?: number;
|
|
7
|
+
nodeTypes?: string;
|
|
8
|
+
hasSelectedMultipleNodes?: boolean;
|
|
7
9
|
}, undefined>;
|
|
8
10
|
export type MoveContentEventPayload = MoveContentAEP;
|
|
9
11
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "99.
|
|
3
|
+
"version": "99.17.2",
|
|
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/"
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
116
116
|
"@atlaskit/adf-schema": "^47.2.1",
|
|
117
117
|
"@atlaskit/adf-utils": "^19.18.0",
|
|
118
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
119
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
118
|
+
"@atlaskit/analytics-listeners": "^8.15.0",
|
|
119
|
+
"@atlaskit/analytics-namespaced-context": "^6.14.0",
|
|
120
120
|
"@atlaskit/analytics-next": "^10.3.0",
|
|
121
121
|
"@atlaskit/atlassian-context": "^0.1.0",
|
|
122
122
|
"@atlaskit/button": "^20.5.0",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@atlaskit/editor-json-transformer": "^8.23.0",
|
|
128
128
|
"@atlaskit/editor-palette": "1.7.0",
|
|
129
129
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
130
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
130
|
+
"@atlaskit/editor-shared-styles": "^3.3.0",
|
|
131
131
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
132
132
|
"@atlaskit/emoji": "^67.14.0",
|
|
133
133
|
"@atlaskit/icon": "^23.9.0",
|
|
@@ -141,11 +141,11 @@
|
|
|
141
141
|
"@atlaskit/media-file-preview": "^0.10.0",
|
|
142
142
|
"@atlaskit/media-picker": "^67.1.0",
|
|
143
143
|
"@atlaskit/media-ui": "^27.4.0",
|
|
144
|
-
"@atlaskit/media-viewer": "50.1.
|
|
144
|
+
"@atlaskit/media-viewer": "50.1.6",
|
|
145
145
|
"@atlaskit/mention": "^23.11.0",
|
|
146
146
|
"@atlaskit/menu": "^2.14.0",
|
|
147
147
|
"@atlaskit/onboarding": "^12.3.0",
|
|
148
|
-
"@atlaskit/platform-feature-flags": "^1.
|
|
148
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
149
149
|
"@atlaskit/popper": "^6.4.0",
|
|
150
150
|
"@atlaskit/primitives": "^13.5.0",
|
|
151
151
|
"@atlaskit/profilecard": "^22.2.0",
|