@atlaskit/editor-plugin-media 10.2.11 → 10.2.13
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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 10.2.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
|
|
8
|
+
Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
|
|
9
|
+
rolled out
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 10.2.12
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 10.2.11
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -432,11 +432,11 @@ var MediaSingleNodeNext = exports.MediaSingleNodeNext = function MediaSingleNode
|
|
|
432
432
|
var isCurrentNodeDrafting = Boolean(isDrafting && targetNodeId === (mediaNode === null || mediaNode === void 0 || (_mediaNode$firstChild = mediaNode.firstChild) === null || _mediaNode$firstChild === void 0 ? void 0 : _mediaNode$firstChild.attrs.id));
|
|
433
433
|
var mediaSingleWrapperRef = /*#__PURE__*/_react.default.createRef();
|
|
434
434
|
var captionPlaceHolderRef = /*#__PURE__*/_react.default.createRef();
|
|
435
|
-
var browser = (0,
|
|
435
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
436
436
|
var notIos = !browser.ios;
|
|
437
437
|
var onMediaSingleClicked = _react.default.useCallback(function (event) {
|
|
438
438
|
var _captionPlaceHolderRe;
|
|
439
|
-
var browser = (0,
|
|
439
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
440
440
|
// Workaround for iOS 16 Caption selection issue
|
|
441
441
|
// @see https://product-fabric.atlassian.net/browse/MEX-2012
|
|
442
442
|
if (!browser.ios) {
|
|
@@ -7,7 +7,7 @@ import React, { Fragment } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import {
|
|
10
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
11
11
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
12
12
|
import { captionMessages } from '@atlaskit/editor-common/media';
|
|
13
13
|
import { calcMediaSinglePixelWidth, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, ExternalImageBadge, getMaxWidthForNestedNode, MEDIA_SINGLE_GUTTER_SIZE, MediaBadges } from '@atlaskit/editor-common/media-single';
|
|
@@ -392,11 +392,11 @@ export const MediaSingleNodeNext = mediaSingleNodeNextProps => {
|
|
|
392
392
|
const isCurrentNodeDrafting = Boolean(isDrafting && targetNodeId === (mediaNode === null || mediaNode === void 0 ? void 0 : (_mediaNode$firstChild = mediaNode.firstChild) === null || _mediaNode$firstChild === void 0 ? void 0 : _mediaNode$firstChild.attrs.id));
|
|
393
393
|
const mediaSingleWrapperRef = /*#__PURE__*/React.createRef();
|
|
394
394
|
const captionPlaceHolderRef = /*#__PURE__*/React.createRef();
|
|
395
|
-
const browser =
|
|
395
|
+
const browser = getBrowserInfo();
|
|
396
396
|
const notIos = !browser.ios;
|
|
397
397
|
const onMediaSingleClicked = React.useCallback(event => {
|
|
398
398
|
var _captionPlaceHolderRe;
|
|
399
|
-
const browser =
|
|
399
|
+
const browser = getBrowserInfo();
|
|
400
400
|
// Workaround for iOS 16 Caption selection issue
|
|
401
401
|
// @see https://product-fabric.atlassian.net/browse/MEX-2012
|
|
402
402
|
if (!browser.ios) {
|
|
@@ -13,7 +13,7 @@ import React, { Fragment } from 'react';
|
|
|
13
13
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
|
-
import {
|
|
16
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
17
17
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
18
18
|
import { captionMessages } from '@atlaskit/editor-common/media';
|
|
19
19
|
import { calcMediaSinglePixelWidth, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, ExternalImageBadge, getMaxWidthForNestedNode, MEDIA_SINGLE_GUTTER_SIZE, MediaBadges } from '@atlaskit/editor-common/media-single';
|
|
@@ -426,11 +426,11 @@ export var MediaSingleNodeNext = function MediaSingleNodeNext(mediaSingleNodeNex
|
|
|
426
426
|
var isCurrentNodeDrafting = Boolean(isDrafting && targetNodeId === (mediaNode === null || mediaNode === void 0 || (_mediaNode$firstChild = mediaNode.firstChild) === null || _mediaNode$firstChild === void 0 ? void 0 : _mediaNode$firstChild.attrs.id));
|
|
427
427
|
var mediaSingleWrapperRef = /*#__PURE__*/React.createRef();
|
|
428
428
|
var captionPlaceHolderRef = /*#__PURE__*/React.createRef();
|
|
429
|
-
var browser =
|
|
429
|
+
var browser = getBrowserInfo();
|
|
430
430
|
var notIos = !browser.ios;
|
|
431
431
|
var onMediaSingleClicked = React.useCallback(function (event) {
|
|
432
432
|
var _captionPlaceHolderRe;
|
|
433
|
-
var browser =
|
|
433
|
+
var browser = getBrowserInfo();
|
|
434
434
|
// Workaround for iOS 16 Caption selection issue
|
|
435
435
|
// @see https://product-fabric.atlassian.net/browse/MEX-2012
|
|
436
436
|
if (!browser.ios) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.13",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
53
53
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
54
54
|
"@atlaskit/form": "^15.5.0",
|
|
55
|
-
"@atlaskit/icon": "^34.
|
|
56
|
-
"@atlaskit/icon-lab": "^6.
|
|
55
|
+
"@atlaskit/icon": "^34.1.0",
|
|
56
|
+
"@atlaskit/icon-lab": "^6.5.0",
|
|
57
57
|
"@atlaskit/media-card": "^79.16.0",
|
|
58
58
|
"@atlaskit/media-client": "^36.0.0",
|
|
59
59
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
66
|
"@atlaskit/primitives": "^19.0.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.3.0",
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^62.0.0",
|
|
69
69
|
"@atlaskit/tokens": "^13.0.0",
|
|
70
70
|
"@atlaskit/tooltip": "^21.1.0",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"uuid": "^3.1.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@atlaskit/editor-common": "^112.
|
|
80
|
+
"@atlaskit/editor-common": "^112.21.0",
|
|
81
81
|
"@atlaskit/media-core": "^37.0.0",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
83
|
"react-dom": "^18.2.0",
|