@atlaskit/editor-common 97.1.3 → 97.2.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 +13 -0
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 97.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#98696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98696)
|
|
8
|
+
[`396ff0958321d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/396ff0958321d) -
|
|
9
|
+
Adding the ability to register copy intents to enable cross site / product copy and paste for
|
|
10
|
+
media by forwarding the ref from useCopyIntent / useFilePreview
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 97.1.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -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.2.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.2.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -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.2.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.2.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -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.2.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.2.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "97.
|
|
3
|
+
"version": "97.2.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,14 +133,14 @@
|
|
|
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.
|
|
142
|
+
"@atlaskit/media-ui": "^27.2.0",
|
|
143
|
+
"@atlaskit/media-viewer": "49.5.2",
|
|
144
144
|
"@atlaskit/mention": "^23.4.0",
|
|
145
145
|
"@atlaskit/menu": "^2.13.0",
|
|
146
146
|
"@atlaskit/onboarding": "^12.2.0",
|
|
@@ -149,7 +149,7 @@
|
|
|
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",
|