@atlaskit/editor-plugin-media 10.2.6 → 10.2.7
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 +8 -0
- package/dist/cjs/nodeviews/toDOM-fixes/toDOMAttrs.js +1 -2
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/es2019/nodeviews/toDOM-fixes/toDOMAttrs.js +1 -3
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/esm/nodeviews/toDOM-fixes/toDOMAttrs.js +1 -3
- package/dist/esm/pm-plugins/main.js +1 -1
- package/package.json +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 10.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ddd049a745d38`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ddd049a745d38) -
|
|
8
|
+
Internal change to how legacy colors are applied. No visual changes.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 10.2.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getMediaAttrs = exports.getAttrsFromNodeMediaSingle = exports.camelCaseToKebabCase = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
10
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
10
|
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) { (0, _defineProperty2.default)(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; }
|
|
12
11
|
/**
|
|
@@ -40,7 +39,7 @@ var getMediaAttrs = exports.getMediaAttrs = function getMediaAttrs(nodeName, nod
|
|
|
40
39
|
title: 'Attachment',
|
|
41
40
|
// Manually kept in sync with the style of media cards. The goal is to render a plain gray
|
|
42
41
|
// rectangle that provides an affordance for media.
|
|
43
|
-
style: "display: inline-block; border-radius: 3px; background:
|
|
42
|
+
style: "display: inline-block; border-radius: 3px; background: #EBECF0; box-shadow: 0 1px 1px rgba(9, 30, 66, 0.2), 0 0 1px 0 rgba(9, 30, 66, 0.24);"
|
|
44
43
|
};
|
|
45
44
|
copyPrivateAttributes(node.attrs, attrs, function (key) {
|
|
46
45
|
return "data-".concat(camelCaseToKebabCase(key.slice(2)));
|
|
@@ -703,7 +703,7 @@ var MediaPluginStateImplementation = exports.MediaPluginStateImplementation = /*
|
|
|
703
703
|
var _this$mediaOptions5,
|
|
704
704
|
_this2 = this;
|
|
705
705
|
// if preventAutoFocusOnUpload is enabled, skip auto-selection and just clear the tracking array
|
|
706
|
-
if ((_this$mediaOptions5 = this.mediaOptions) !== null && _this$mediaOptions5 !== void 0 && _this$mediaOptions5.preventAutoFocusOnUpload
|
|
706
|
+
if ((_this$mediaOptions5 = this.mediaOptions) !== null && _this$mediaOptions5 !== void 0 && _this$mediaOptions5.preventAutoFocusOnUpload) {
|
|
707
707
|
this.lastAddedMediaSingleFileIds = [];
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { N30 } from '@atlaskit/theme/colors';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Copied from `packages/adf-schema/src/schema/nodes/media.ts`
|
|
5
3
|
*
|
|
@@ -31,7 +29,7 @@ export const getMediaAttrs = (nodeName, node) => {
|
|
|
31
29
|
title: 'Attachment',
|
|
32
30
|
// Manually kept in sync with the style of media cards. The goal is to render a plain gray
|
|
33
31
|
// rectangle that provides an affordance for media.
|
|
34
|
-
style: `display: inline-block; border-radius: 3px; background:
|
|
32
|
+
style: `display: inline-block; border-radius: 3px; background: #EBECF0; box-shadow: 0 1px 1px rgba(9, 30, 66, 0.2), 0 0 1px 0 rgba(9, 30, 66, 0.24);`
|
|
35
33
|
};
|
|
36
34
|
copyPrivateAttributes(node.attrs, attrs, key => `data-${camelCaseToKebabCase(key.slice(2))}`);
|
|
37
35
|
return attrs;
|
|
@@ -623,7 +623,7 @@ export class MediaPluginStateImplementation {
|
|
|
623
623
|
selectLastAddedMediaNode() {
|
|
624
624
|
var _this$mediaOptions5;
|
|
625
625
|
// if preventAutoFocusOnUpload is enabled, skip auto-selection and just clear the tracking array
|
|
626
|
-
if ((_this$mediaOptions5 = this.mediaOptions) !== null && _this$mediaOptions5 !== void 0 && _this$mediaOptions5.preventAutoFocusOnUpload
|
|
626
|
+
if ((_this$mediaOptions5 = this.mediaOptions) !== null && _this$mediaOptions5 !== void 0 && _this$mediaOptions5.preventAutoFocusOnUpload) {
|
|
627
627
|
this.lastAddedMediaSingleFileIds = [];
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
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; }
|
|
4
|
-
import { N30 } from '@atlaskit/theme/colors';
|
|
5
|
-
|
|
6
4
|
/**
|
|
7
5
|
* Copied from `packages/adf-schema/src/schema/nodes/media.ts`
|
|
8
6
|
*
|
|
@@ -34,7 +32,7 @@ export var getMediaAttrs = function getMediaAttrs(nodeName, node) {
|
|
|
34
32
|
title: 'Attachment',
|
|
35
33
|
// Manually kept in sync with the style of media cards. The goal is to render a plain gray
|
|
36
34
|
// rectangle that provides an affordance for media.
|
|
37
|
-
style: "display: inline-block; border-radius: 3px; background:
|
|
35
|
+
style: "display: inline-block; border-radius: 3px; background: #EBECF0; box-shadow: 0 1px 1px rgba(9, 30, 66, 0.2), 0 0 1px 0 rgba(9, 30, 66, 0.24);"
|
|
38
36
|
};
|
|
39
37
|
copyPrivateAttributes(node.attrs, attrs, function (key) {
|
|
40
38
|
return "data-".concat(camelCaseToKebabCase(key.slice(2)));
|
|
@@ -695,7 +695,7 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
|
|
|
695
695
|
var _this$mediaOptions5,
|
|
696
696
|
_this2 = this;
|
|
697
697
|
// if preventAutoFocusOnUpload is enabled, skip auto-selection and just clear the tracking array
|
|
698
|
-
if ((_this$mediaOptions5 = this.mediaOptions) !== null && _this$mediaOptions5 !== void 0 && _this$mediaOptions5.preventAutoFocusOnUpload
|
|
698
|
+
if ((_this$mediaOptions5 = this.mediaOptions) !== null && _this$mediaOptions5 !== void 0 && _this$mediaOptions5.preventAutoFocusOnUpload) {
|
|
699
699
|
this.lastAddedMediaSingleFileIds = [];
|
|
700
700
|
return;
|
|
701
701
|
}
|
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.7",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -65,8 +65,7 @@
|
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
66
|
"@atlaskit/primitives": "^18.1.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.3.0",
|
|
68
|
-
"@atlaskit/
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^56.0.0",
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^57.0.0",
|
|
70
69
|
"@atlaskit/tokens": "^12.0.0",
|
|
71
70
|
"@atlaskit/tooltip": "^21.1.0",
|
|
72
71
|
"@babel/runtime": "^7.0.0",
|
|
@@ -78,7 +77,7 @@
|
|
|
78
77
|
"uuid": "^3.1.0"
|
|
79
78
|
},
|
|
80
79
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^112.
|
|
80
|
+
"@atlaskit/editor-common": "^112.19.0",
|
|
82
81
|
"@atlaskit/media-core": "^37.0.0",
|
|
83
82
|
"react": "^18.2.0",
|
|
84
83
|
"react-dom": "^18.2.0",
|
|
@@ -154,9 +153,6 @@
|
|
|
154
153
|
"platform_media_video_captions": {
|
|
155
154
|
"type": "boolean"
|
|
156
155
|
},
|
|
157
|
-
"jira_kuro-jjj_disable_auto_focus_after_img_upload": {
|
|
158
|
-
"type": "boolean"
|
|
159
|
-
},
|
|
160
156
|
"confluence_fe_create_inline_comment_exp_coverage_2": {
|
|
161
157
|
"type": "boolean"
|
|
162
158
|
},
|