@atlaskit/editor-plugin-media 1.34.5 → 1.34.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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 1.34.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.34.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#146513](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146513)
|
|
14
|
+
[`a72a93b5cd7c8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a72a93b5cd7c8) -
|
|
15
|
+
Set height for lazy node to cater for captions
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.34.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -54,7 +54,7 @@ var mediaSpecWithFixedToDOM = exports.mediaSpecWithFixedToDOM = function mediaSp
|
|
|
54
54
|
}, attrs), {}, {
|
|
55
55
|
// Manually kept in sync with the style of media cards. The goal is to render a plain gray
|
|
56
56
|
// rectangle that provides an affordance for media.
|
|
57
|
-
style: "\n\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\tbackground-image: url(\"".concat(dataUrl, "\");\n\t\t\t\t\t\tmargin-left: 0;\n\t\t\t\t\t\tmargin-right: 4px;\n\t\t\t\t\t\tborder-radius:
|
|
57
|
+
style: "\n\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\tbackground-image: url(\"".concat(dataUrl, "\");\n\t\t\t\t\t\tmargin-left: 0;\n\t\t\t\t\t\tmargin-right: 4px;\n\t\t\t\t\t\tborder-radius: 3px;\n\t\t\t\t\t\toutline: none;\n\n\t\t\t\t\t\tflex-basis: ").concat(defaultImageCardDimensions.width, "px;\n\t\t\t\t\t\tbackground-color: var(--media-card-background-color);\n\t\t\t\t\t\twidth: var(--media-card-width, ").concat(node.attrs.width || width, "px);\n\t\t\t\t\t\theight: var(--media-card-height, ").concat(node.attrs.height || height, "px);\n\t\t\t\t\t\t")
|
|
58
58
|
})];
|
|
59
59
|
}
|
|
60
60
|
return ['div', _objectSpread(_objectSpread({}, attrs), {}, {
|
|
@@ -51,12 +51,13 @@ export const mediaSpecWithFixedToDOM = () => {
|
|
|
51
51
|
background-image: url("${dataUrl}");
|
|
52
52
|
margin-left: 0;
|
|
53
53
|
margin-right: 4px;
|
|
54
|
-
border-radius:
|
|
54
|
+
border-radius: 3px;
|
|
55
|
+
outline: none;
|
|
55
56
|
|
|
56
57
|
flex-basis: ${defaultImageCardDimensions.width}px;
|
|
57
|
-
background-color: var(--media-card-background-color
|
|
58
|
-
width: var(--media-card-width,
|
|
59
|
-
height: var(--media-card-height,
|
|
58
|
+
background-color: var(--media-card-background-color);
|
|
59
|
+
width: var(--media-card-width, ${node.attrs.width || width}px);
|
|
60
|
+
height: var(--media-card-height, ${node.attrs.height || height}px);
|
|
60
61
|
`
|
|
61
62
|
}];
|
|
62
63
|
}
|
|
@@ -47,7 +47,7 @@ export var mediaSpecWithFixedToDOM = function mediaSpecWithFixedToDOM() {
|
|
|
47
47
|
}, attrs), {}, {
|
|
48
48
|
// Manually kept in sync with the style of media cards. The goal is to render a plain gray
|
|
49
49
|
// rectangle that provides an affordance for media.
|
|
50
|
-
style: "\n\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\tbackground-image: url(\"".concat(dataUrl, "\");\n\t\t\t\t\t\tmargin-left: 0;\n\t\t\t\t\t\tmargin-right: 4px;\n\t\t\t\t\t\tborder-radius:
|
|
50
|
+
style: "\n\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\tbackground-image: url(\"".concat(dataUrl, "\");\n\t\t\t\t\t\tmargin-left: 0;\n\t\t\t\t\t\tmargin-right: 4px;\n\t\t\t\t\t\tborder-radius: 3px;\n\t\t\t\t\t\toutline: none;\n\n\t\t\t\t\t\tflex-basis: ").concat(defaultImageCardDimensions.width, "px;\n\t\t\t\t\t\tbackground-color: var(--media-card-background-color);\n\t\t\t\t\t\twidth: var(--media-card-width, ").concat(node.attrs.width || width, "px);\n\t\t\t\t\t\theight: var(--media-card-height, ").concat(node.attrs.height || height, "px);\n\t\t\t\t\t\t")
|
|
51
51
|
})];
|
|
52
52
|
}
|
|
53
53
|
return ['div', _objectSpread(_objectSpread({}, attrs), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.7",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
38
38
|
"@atlaskit/button": "^20.2.0",
|
|
39
|
-
"@atlaskit/editor-common": "^
|
|
39
|
+
"@atlaskit/editor-common": "^93.0.0",
|
|
40
40
|
"@atlaskit/editor-palette": "1.6.1",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
42
|
-
"@atlaskit/editor-plugin-annotation": "1.19.
|
|
42
|
+
"@atlaskit/editor-plugin-annotation": "1.19.11",
|
|
43
43
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
44
44
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
45
45
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"@atlaskit/primitives": "^12.2.0",
|
|
67
67
|
"@atlaskit/textfield": "^6.5.0",
|
|
68
68
|
"@atlaskit/theme": "^13.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^2.2.0",
|
|
70
70
|
"@atlaskit/tokens": "^2.0.0",
|
|
71
|
-
"@atlaskit/tooltip": "^18.
|
|
71
|
+
"@atlaskit/tooltip": "^18.8.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
73
73
|
"@emotion/react": "^11.7.1",
|
|
74
74
|
"bind-event-listener": "^3.0.0",
|