@atlaskit/editor-common 81.0.0 → 81.1.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 +16 -0
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +2 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +2 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 81.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#102269](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102269)
|
|
8
|
+
[`8718148ba98c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8718148ba98c) -
|
|
9
|
+
Fix race condition issue caused by react update batching.
|
|
10
|
+
|
|
11
|
+
## 81.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#103741](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103741)
|
|
16
|
+
[`fb1acc6fb09b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb1acc6fb09b) -
|
|
17
|
+
Remove inline image preview ff
|
|
18
|
+
|
|
3
19
|
## 81.0.0
|
|
4
20
|
|
|
5
21
|
### Major Changes
|
|
@@ -16,7 +16,6 @@ var _mediaCard = require("@atlaskit/media-card");
|
|
|
16
16
|
var _mediaClient = require("@atlaskit/media-client");
|
|
17
17
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
18
18
|
var _mediaViewer = require("@atlaskit/media-viewer");
|
|
19
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
19
|
var _mediaInlineCard = require("../messages/media-inline-card");
|
|
21
20
|
var _constants = require("./constants");
|
|
22
21
|
var _inlineImageCard = require("./inline-image-card");
|
|
@@ -191,7 +190,7 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
|
|
|
191
190
|
return {};
|
|
192
191
|
}, [alt, fileState, height, identifier, width, serializeDataAttrs]);
|
|
193
192
|
var onMediaInlineImageClick = (0, _react.useCallback)(function () {
|
|
194
|
-
if (shouldOpenMediaViewer
|
|
193
|
+
if (shouldOpenMediaViewer) {
|
|
195
194
|
setMediaViewerVisible(true);
|
|
196
195
|
}
|
|
197
196
|
}, [shouldOpenMediaViewer]);
|
|
@@ -212,7 +211,7 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
|
|
|
212
211
|
}, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
|
|
213
212
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_inlineImageWrapper.InlineImageWrapper, {
|
|
214
213
|
isSelected: isSelected,
|
|
215
|
-
isInteractive:
|
|
214
|
+
isInteractive: shouldOpenMediaViewer,
|
|
216
215
|
aspectRatio: aspectRatio,
|
|
217
216
|
borderColor: border === null || border === void 0 ? void 0 : border.borderColor,
|
|
218
217
|
borderSize: border === null || border === void 0 ? void 0 : border.borderSize,
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
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 && Object.prototype.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; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "81.
|
|
19
|
+
var packageVersion = "81.1.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
|
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "81.
|
|
23
|
+
var packageVersion = "81.1.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -8,7 +8,6 @@ import { fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, MediaCardErr
|
|
|
8
8
|
import { FileFetcherError } from '@atlaskit/media-client';
|
|
9
9
|
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
10
10
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
11
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { messages } from '../messages/media-inline-card';
|
|
13
12
|
import { referenceHeights } from './constants';
|
|
14
13
|
import { InlineImageCard } from './inline-image-card';
|
|
@@ -164,7 +163,7 @@ export const MediaInlineImageCardInternal = ({
|
|
|
164
163
|
return {};
|
|
165
164
|
}, [alt, fileState, height, identifier, width, serializeDataAttrs]);
|
|
166
165
|
const onMediaInlineImageClick = useCallback(() => {
|
|
167
|
-
if (shouldOpenMediaViewer
|
|
166
|
+
if (shouldOpenMediaViewer) {
|
|
168
167
|
setMediaViewerVisible(true);
|
|
169
168
|
}
|
|
170
169
|
}, [shouldOpenMediaViewer]);
|
|
@@ -185,7 +184,7 @@ export const MediaInlineImageCardInternal = ({
|
|
|
185
184
|
}, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
|
|
186
185
|
return jsx(Fragment, null, jsx(InlineImageWrapper, {
|
|
187
186
|
isSelected: isSelected,
|
|
188
|
-
isInteractive:
|
|
187
|
+
isInteractive: shouldOpenMediaViewer,
|
|
189
188
|
aspectRatio: aspectRatio,
|
|
190
189
|
borderColor: border === null || border === void 0 ? void 0 : border.borderColor,
|
|
191
190
|
borderSize: border === null || border === void 0 ? void 0 : border.borderSize,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "81.
|
|
3
|
+
const packageVersion = "81.1.0";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "81.
|
|
10
|
+
const packageVersion = "81.1.0";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -12,7 +12,6 @@ import { fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, MediaCardErr
|
|
|
12
12
|
import { FileFetcherError } from '@atlaskit/media-client';
|
|
13
13
|
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
14
14
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
15
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { messages } from '../messages/media-inline-card';
|
|
17
16
|
import { referenceHeights } from './constants';
|
|
18
17
|
import { InlineImageCard } from './inline-image-card';
|
|
@@ -185,7 +184,7 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
|
|
|
185
184
|
return {};
|
|
186
185
|
}, [alt, fileState, height, identifier, width, serializeDataAttrs]);
|
|
187
186
|
var onMediaInlineImageClick = useCallback(function () {
|
|
188
|
-
if (shouldOpenMediaViewer
|
|
187
|
+
if (shouldOpenMediaViewer) {
|
|
189
188
|
setMediaViewerVisible(true);
|
|
190
189
|
}
|
|
191
190
|
}, [shouldOpenMediaViewer]);
|
|
@@ -206,7 +205,7 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
|
|
|
206
205
|
}, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
|
|
207
206
|
return jsx(Fragment, null, jsx(InlineImageWrapper, {
|
|
208
207
|
isSelected: isSelected,
|
|
209
|
-
isInteractive:
|
|
208
|
+
isInteractive: shouldOpenMediaViewer,
|
|
210
209
|
aspectRatio: aspectRatio,
|
|
211
210
|
borderColor: border === null || border === void 0 ? void 0 : border.borderColor,
|
|
212
211
|
borderSize: border === null || border === void 0 ? void 0 : border.borderSize,
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "81.
|
|
9
|
+
var packageVersion = "81.1.0";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
15
15
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
16
16
|
import Layer from '../Layer';
|
|
17
17
|
var packageName = "@atlaskit/editor-common";
|
|
18
|
-
var packageVersion = "81.
|
|
18
|
+
var packageVersion = "81.1.0";
|
|
19
19
|
var halfFocusRing = 1;
|
|
20
20
|
var dropOffset = '0, 8';
|
|
21
21
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "81.
|
|
3
|
+
"version": "81.1.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/"
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
103
103
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
104
104
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
105
|
-
"@atlaskit/button": "^17.
|
|
105
|
+
"@atlaskit/button": "^17.17.0",
|
|
106
106
|
"@atlaskit/code": "^15.2.0",
|
|
107
107
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
108
108
|
"@atlaskit/custom-steps": "^0.2.0",
|
|
@@ -223,9 +223,6 @@
|
|
|
223
223
|
"platform.editor.media.inline-image.base-support": {
|
|
224
224
|
"type": "boolean"
|
|
225
225
|
},
|
|
226
|
-
"platform.editor.media.inline-image.renderer-preview-support_3w1ju": {
|
|
227
|
-
"type": "boolean"
|
|
228
|
-
},
|
|
229
226
|
"platform.linking-platform.datasource-assets_objects": {
|
|
230
227
|
"type": "boolean"
|
|
231
228
|
},
|