@atlaskit/editor-common 97.1.3 → 97.3.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/collab/index.js +5 -5
- package/dist/cjs/media-inline/inline-image-card.js +4 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +2 -2
- package/dist/es2019/collab/index.js +7 -7
- package/dist/es2019/media-inline/inline-image-card.js +4 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +2 -2
- package/dist/esm/collab/index.js +6 -6
- package/dist/esm/media-inline/inline-image-card.js +4 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +2 -2
- package/dist/types/types/feature-flags.d.ts +0 -8
- package/dist/types-ts4.5/types/feature-flags.d.ts +0 -8
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 97.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#98820](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98820)
|
|
8
|
+
[`9f7dc3ba5d256`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f7dc3ba5d256) -
|
|
9
|
+
[ux] Update the potential list of colors for avatar badges and telepointers within the editor.
|
|
10
|
+
Also add support for using presenceId over sessionId, when presenceId exists, in order to make the
|
|
11
|
+
avatar badge and telepointer color selection.
|
|
12
|
+
|
|
13
|
+
## 97.2.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#98696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98696)
|
|
18
|
+
[`396ff0958321d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/396ff0958321d) -
|
|
19
|
+
Adding the ability to register copy intents to enable cross site / product copy and paste for
|
|
20
|
+
media by forwarding the ref from useCopyIntent / useFilePreview
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 97.1.3
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/cjs/collab/index.js
CHANGED
|
@@ -120,19 +120,19 @@ var DisconnectReason = exports.DisconnectReason = /*#__PURE__*/function (Disconn
|
|
|
120
120
|
DisconnectReason["UNKNOWN_DISCONNECT"] = "UNKNOWN_DISCONNECT";
|
|
121
121
|
return DisconnectReason;
|
|
122
122
|
}({});
|
|
123
|
-
var telepointerColorStyle = function telepointerColorStyle(
|
|
123
|
+
var telepointerColorStyle = function telepointerColorStyle(backgroundColor, textColor, index) {
|
|
124
124
|
var _getGlobalTheme = (0, _tokens.getGlobalTheme)(),
|
|
125
125
|
colorMode = _getGlobalTheme.colorMode;
|
|
126
|
-
var backgroundStyle = colorMode === 'dark' ? "linear-gradient(to bottom, ".concat(
|
|
127
|
-
return "\n &.color-".concat(index, " {\n background: ").concat(backgroundStyle, ";\n &::after {\n background-color: ").concat(
|
|
126
|
+
var backgroundStyle = colorMode === 'dark' ? "linear-gradient(to bottom, ".concat(backgroundColor, " -800000%, transparent 200000%)") : "linear-gradient(to bottom, ".concat(backgroundColor, " -850000%, transparent 150000%)");
|
|
127
|
+
return "\n &.color-".concat(index, " {\n background: ").concat(backgroundStyle, ";\n &::after {\n background-color: ").concat(backgroundColor, ";\n color: ").concat(textColor, ";\n border-color: ").concat(backgroundColor, ";\n }\n }\n ");
|
|
128
128
|
};
|
|
129
129
|
var TELEPOINTER_DIM_CLASS = exports.TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
130
130
|
|
|
131
131
|
// ED-22557: Safely convert to object styling
|
|
132
132
|
// Disable top: -14px since it is necessary to align to cursor
|
|
133
133
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
134
|
-
var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.telepointer-selection-badge::after {\n\t\t\tcontent: attr(data-initial);\n\t\t\tposition: absolute;\n\t\t\tdisplay: block;\n\t\t\ttop: -14px;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: ", ";\n\t\t\tcolor: ", ";\n\t\t\tleft: 0px;\n\t\t\tborder-radius: 2px 2px 2px 0;\n\t\t\tline-height: initial;\n\t\t}\n\n\t\t&.", " {\n\t\t\topacity: 0.2;\n\t\t}\n\n\t\t", ";\n\t}\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, #FFFFFF)", TELEPOINTER_DIM_CLASS, _editorSharedStyles.
|
|
135
|
-
return telepointerColorStyle(
|
|
134
|
+
var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.telepointer-selection-badge::after {\n\t\t\tcontent: attr(data-initial);\n\t\t\tposition: absolute;\n\t\t\tdisplay: block;\n\t\t\ttop: -14px;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: ", ";\n\t\t\tcolor: ", ";\n\t\t\tleft: 0px;\n\t\t\tborder-radius: 2px 2px 2px 0;\n\t\t\tline-height: initial;\n\t\t}\n\n\t\t&.", " {\n\t\t\topacity: 0.2;\n\t\t}\n\n\t\t", ";\n\t}\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, #FFFFFF)", TELEPOINTER_DIM_CLASS, _editorSharedStyles.participantColors.map(function (participantColor, index) {
|
|
135
|
+
return telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index);
|
|
136
136
|
}));
|
|
137
137
|
var tintKey = 'collab:isDirtyTransaction';
|
|
138
138
|
var isDirtyTransaction = exports.isDirtyTransaction = function isDirtyTransaction(tr) {
|
|
@@ -44,7 +44,8 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
|
|
|
44
44
|
previewError = _useFilePreview.error,
|
|
45
45
|
onImageError = _useFilePreview.onImageError,
|
|
46
46
|
_onImageLoad = _useFilePreview.onImageLoad,
|
|
47
|
-
getSsrScriptProps = _useFilePreview.getSsrScriptProps
|
|
47
|
+
getSsrScriptProps = _useFilePreview.getSsrScriptProps,
|
|
48
|
+
copyNodeRef = _useFilePreview.copyNodeRef;
|
|
48
49
|
if (previewError) {
|
|
49
50
|
return renderError({
|
|
50
51
|
error: previewError
|
|
@@ -64,6 +65,7 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
|
|
|
64
65
|
loading: isLazy ? 'lazy' : undefined,
|
|
65
66
|
forceSyncDisplay: !!ssr,
|
|
66
67
|
crop: crop,
|
|
67
|
-
stretch: stretch
|
|
68
|
+
stretch: stretch,
|
|
69
|
+
ref: copyNodeRef
|
|
68
70
|
}), getSsrScriptProps && (0, _react2.jsx)("script", getSsrScriptProps()));
|
|
69
71
|
};
|
|
@@ -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 = "97.
|
|
20
|
+
var packageVersion = "97.3.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
|
|
@@ -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 = "97.
|
|
26
|
+
var packageVersion = "97.3.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -55,7 +55,7 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
56
56
|
(0, _defineProperty2.default)(_this, "menuWrapper", function () {
|
|
57
57
|
return (0, _react2.css)({
|
|
58
|
-
color: "var(--ds-text, #
|
|
58
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
59
59
|
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
60
60
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
61
61
|
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
@@ -1,6 +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 {
|
|
3
|
+
import { participantColors, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { getGlobalTheme } from '@atlaskit/tokens';
|
|
5
5
|
|
|
6
6
|
// Format of the payload returned by the callback function passed to the collab provider
|
|
@@ -128,18 +128,18 @@ export let DisconnectReason = /*#__PURE__*/function (DisconnectReason) {
|
|
|
128
128
|
DisconnectReason["UNKNOWN_DISCONNECT"] = "UNKNOWN_DISCONNECT";
|
|
129
129
|
return DisconnectReason;
|
|
130
130
|
}({});
|
|
131
|
-
const telepointerColorStyle = (
|
|
131
|
+
const telepointerColorStyle = (backgroundColor, textColor, index) => {
|
|
132
132
|
const {
|
|
133
133
|
colorMode
|
|
134
134
|
} = getGlobalTheme();
|
|
135
|
-
const backgroundStyle = colorMode === 'dark' ? `linear-gradient(to bottom, ${
|
|
135
|
+
const backgroundStyle = colorMode === 'dark' ? `linear-gradient(to bottom, ${backgroundColor} -800000%, transparent 200000%)` : `linear-gradient(to bottom, ${backgroundColor} -850000%, transparent 150000%)`;
|
|
136
136
|
return `
|
|
137
137
|
&.color-${index} {
|
|
138
138
|
background: ${backgroundStyle};
|
|
139
139
|
&::after {
|
|
140
|
-
background-color: ${
|
|
141
|
-
color: ${
|
|
142
|
-
border-color: ${
|
|
140
|
+
background-color: ${backgroundColor};
|
|
141
|
+
color: ${textColor};
|
|
142
|
+
border-color: ${backgroundColor};
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
`;
|
|
@@ -177,7 +177,7 @@ export const telepointerStyle = css`
|
|
|
177
177
|
opacity: 0.2;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
${
|
|
180
|
+
${participantColors.map((participantColor, index) => telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index))};
|
|
181
181
|
}
|
|
182
182
|
`;
|
|
183
183
|
const tintKey = 'collab:isDirtyTransaction';
|
|
@@ -31,7 +31,8 @@ export const InlineImageCard = ({
|
|
|
31
31
|
error: previewError,
|
|
32
32
|
onImageError,
|
|
33
33
|
onImageLoad,
|
|
34
|
-
getSsrScriptProps
|
|
34
|
+
getSsrScriptProps,
|
|
35
|
+
copyNodeRef
|
|
35
36
|
} = useFilePreview({
|
|
36
37
|
identifier,
|
|
37
38
|
ssr,
|
|
@@ -57,6 +58,7 @@ export const InlineImageCard = ({
|
|
|
57
58
|
loading: isLazy ? 'lazy' : undefined,
|
|
58
59
|
forceSyncDisplay: !!ssr,
|
|
59
60
|
crop: crop,
|
|
60
|
-
stretch: stretch
|
|
61
|
+
stretch: stretch,
|
|
62
|
+
ref: copyNodeRef
|
|
61
63
|
}), getSsrScriptProps && jsx("script", getSsrScriptProps()));
|
|
62
64
|
};
|
|
@@ -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 = "97.
|
|
4
|
+
const packageVersion = "97.3.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
|
|
@@ -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 = "97.
|
|
16
|
+
const packageVersion = "97.3.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -40,7 +40,7 @@ class DropList extends Component {
|
|
|
40
40
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
41
41
|
_defineProperty(this, "menuWrapper", () => {
|
|
42
42
|
return css({
|
|
43
|
-
color: "var(--ds-text, #
|
|
43
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
44
44
|
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
45
45
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
46
46
|
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject;
|
|
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 {
|
|
5
|
+
import { participantColors, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { getGlobalTheme } from '@atlaskit/tokens';
|
|
7
7
|
|
|
8
8
|
// Format of the payload returned by the callback function passed to the collab provider
|
|
@@ -130,19 +130,19 @@ export var DisconnectReason = /*#__PURE__*/function (DisconnectReason) {
|
|
|
130
130
|
DisconnectReason["UNKNOWN_DISCONNECT"] = "UNKNOWN_DISCONNECT";
|
|
131
131
|
return DisconnectReason;
|
|
132
132
|
}({});
|
|
133
|
-
var telepointerColorStyle = function telepointerColorStyle(
|
|
133
|
+
var telepointerColorStyle = function telepointerColorStyle(backgroundColor, textColor, index) {
|
|
134
134
|
var _getGlobalTheme = getGlobalTheme(),
|
|
135
135
|
colorMode = _getGlobalTheme.colorMode;
|
|
136
|
-
var backgroundStyle = colorMode === 'dark' ? "linear-gradient(to bottom, ".concat(
|
|
137
|
-
return "\n &.color-".concat(index, " {\n background: ").concat(backgroundStyle, ";\n &::after {\n background-color: ").concat(
|
|
136
|
+
var backgroundStyle = colorMode === 'dark' ? "linear-gradient(to bottom, ".concat(backgroundColor, " -800000%, transparent 200000%)") : "linear-gradient(to bottom, ".concat(backgroundColor, " -850000%, transparent 150000%)");
|
|
137
|
+
return "\n &.color-".concat(index, " {\n background: ").concat(backgroundStyle, ";\n &::after {\n background-color: ").concat(backgroundColor, ";\n color: ").concat(textColor, ";\n border-color: ").concat(backgroundColor, ";\n }\n }\n ");
|
|
138
138
|
};
|
|
139
139
|
export var TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
140
140
|
|
|
141
141
|
// ED-22557: Safely convert to object styling
|
|
142
142
|
// Disable top: -14px since it is necessary to align to cursor
|
|
143
143
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
144
|
-
export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.telepointer-selection-badge::after {\n\t\t\tcontent: attr(data-initial);\n\t\t\tposition: absolute;\n\t\t\tdisplay: block;\n\t\t\ttop: -14px;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: ", ";\n\t\t\tcolor: ", ";\n\t\t\tleft: 0px;\n\t\t\tborder-radius: 2px 2px 2px 0;\n\t\t\tline-height: initial;\n\t\t}\n\n\t\t&.", " {\n\t\t\topacity: 0.2;\n\t\t}\n\n\t\t", ";\n\t}\n"])), relativeFontSizeToBase16(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, #FFFFFF)", TELEPOINTER_DIM_CLASS,
|
|
145
|
-
return telepointerColorStyle(
|
|
144
|
+
export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.telepointer-selection-badge::after {\n\t\t\tcontent: attr(data-initial);\n\t\t\tposition: absolute;\n\t\t\tdisplay: block;\n\t\t\ttop: -14px;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: ", ";\n\t\t\tcolor: ", ";\n\t\t\tleft: 0px;\n\t\t\tborder-radius: 2px 2px 2px 0;\n\t\t\tline-height: initial;\n\t\t}\n\n\t\t&.", " {\n\t\t\topacity: 0.2;\n\t\t}\n\n\t\t", ";\n\t}\n"])), relativeFontSizeToBase16(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, #FFFFFF)", TELEPOINTER_DIM_CLASS, participantColors.map(function (participantColor, index) {
|
|
145
|
+
return telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index);
|
|
146
146
|
}));
|
|
147
147
|
var tintKey = 'collab:isDirtyTransaction';
|
|
148
148
|
export var isDirtyTransaction = function isDirtyTransaction(tr) {
|
|
@@ -37,7 +37,8 @@ export var InlineImageCard = function InlineImageCard(_ref) {
|
|
|
37
37
|
previewError = _useFilePreview.error,
|
|
38
38
|
onImageError = _useFilePreview.onImageError,
|
|
39
39
|
_onImageLoad = _useFilePreview.onImageLoad,
|
|
40
|
-
getSsrScriptProps = _useFilePreview.getSsrScriptProps
|
|
40
|
+
getSsrScriptProps = _useFilePreview.getSsrScriptProps,
|
|
41
|
+
copyNodeRef = _useFilePreview.copyNodeRef;
|
|
41
42
|
if (previewError) {
|
|
42
43
|
return renderError({
|
|
43
44
|
error: previewError
|
|
@@ -57,6 +58,7 @@ export var InlineImageCard = function InlineImageCard(_ref) {
|
|
|
57
58
|
loading: isLazy ? 'lazy' : undefined,
|
|
58
59
|
forceSyncDisplay: !!ssr,
|
|
59
60
|
crop: crop,
|
|
60
|
-
stretch: stretch
|
|
61
|
+
stretch: stretch,
|
|
62
|
+
ref: copyNodeRef
|
|
61
63
|
}), getSsrScriptProps && jsx("script", getSsrScriptProps()));
|
|
62
64
|
};
|
|
@@ -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 = "97.
|
|
10
|
+
var packageVersion = "97.3.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
|
|
@@ -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 = "97.
|
|
23
|
+
var packageVersion = "97.3.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -52,7 +52,7 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
52
52
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
53
53
|
_defineProperty(_this, "menuWrapper", function () {
|
|
54
54
|
return css({
|
|
55
|
-
color: "var(--ds-text, #
|
|
55
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
56
56
|
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
57
57
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
58
58
|
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
@@ -198,14 +198,6 @@ export type FeatureFlags = {
|
|
|
198
198
|
* @default false
|
|
199
199
|
*/
|
|
200
200
|
tableSelector?: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* @description
|
|
203
|
-
* Enables table to scale in the same way as renderer
|
|
204
|
-
*
|
|
205
|
-
* @see https://product-fabric.atlassian.net/browse/ED-22364
|
|
206
|
-
* @default false
|
|
207
|
-
*/
|
|
208
|
-
tablePreserveWidth?: boolean;
|
|
209
201
|
/**
|
|
210
202
|
* @description
|
|
211
203
|
* Enables table to scale in the same way as renderer
|
|
@@ -198,14 +198,6 @@ export type FeatureFlags = {
|
|
|
198
198
|
* @default false
|
|
199
199
|
*/
|
|
200
200
|
tableSelector?: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* @description
|
|
203
|
-
* Enables table to scale in the same way as renderer
|
|
204
|
-
*
|
|
205
|
-
* @see https://product-fabric.atlassian.net/browse/ED-22364
|
|
206
|
-
* @default false
|
|
207
|
-
*/
|
|
208
|
-
tablePreserveWidth?: boolean;
|
|
209
201
|
/**
|
|
210
202
|
* @description
|
|
211
203
|
* Enables table to scale in the same way as renderer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "97.
|
|
3
|
+
"version": "97.3.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/"
|
|
@@ -133,15 +133,15 @@
|
|
|
133
133
|
"@atlaskit/icon-object": "^6.9.0",
|
|
134
134
|
"@atlaskit/link-datasource": "^3.15.0",
|
|
135
135
|
"@atlaskit/link-picker": "^1.47.0",
|
|
136
|
-
"@atlaskit/media-card": "^78.
|
|
137
|
-
"@atlaskit/media-client": "^
|
|
138
|
-
"@atlaskit/media-client-react": "^2.
|
|
136
|
+
"@atlaskit/media-card": "^78.17.0",
|
|
137
|
+
"@atlaskit/media-client": "^29.0.0",
|
|
138
|
+
"@atlaskit/media-client-react": "^2.5.0",
|
|
139
139
|
"@atlaskit/media-common": "^11.7.0",
|
|
140
140
|
"@atlaskit/media-file-preview": "^0.9.0",
|
|
141
141
|
"@atlaskit/media-picker": "^67.0.0",
|
|
142
|
-
"@atlaskit/media-ui": "^27.
|
|
143
|
-
"@atlaskit/media-viewer": "49.5.
|
|
144
|
-
"@atlaskit/mention": "^23.
|
|
142
|
+
"@atlaskit/media-ui": "^27.2.0",
|
|
143
|
+
"@atlaskit/media-viewer": "49.5.2",
|
|
144
|
+
"@atlaskit/mention": "^23.5.0",
|
|
145
145
|
"@atlaskit/menu": "^2.13.0",
|
|
146
146
|
"@atlaskit/onboarding": "^12.2.0",
|
|
147
147
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -149,12 +149,12 @@
|
|
|
149
149
|
"@atlaskit/primitives": "^13.3.0",
|
|
150
150
|
"@atlaskit/profilecard": "^21.1.0",
|
|
151
151
|
"@atlaskit/section-message": "^6.8.0",
|
|
152
|
-
"@atlaskit/smart-card": "^33.
|
|
152
|
+
"@atlaskit/smart-card": "^33.1.0",
|
|
153
153
|
"@atlaskit/smart-user-picker": "^6.11.0",
|
|
154
154
|
"@atlaskit/spinner": "^16.3.0",
|
|
155
155
|
"@atlaskit/task-decision": "^17.11.0",
|
|
156
156
|
"@atlaskit/textfield": "^6.7.0",
|
|
157
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
157
|
+
"@atlaskit/tmp-editor-statsig": "^2.30.0",
|
|
158
158
|
"@atlaskit/tokens": "^2.5.0",
|
|
159
159
|
"@atlaskit/tooltip": "^19.0.0",
|
|
160
160
|
"@atlaskit/width-detector": "^4.3.0",
|