@atlaskit/editor-plugin-media 0.12.6 → 0.12.8
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/toolbar/layout-group.js +5 -4
- package/dist/cjs/ui/ImageBorder/index.js +1 -0
- package/dist/es2019/toolbar/layout-group.js +6 -5
- package/dist/es2019/ui/ImageBorder/index.js +1 -0
- package/dist/esm/toolbar/layout-group.js +6 -5
- package/dist/esm/ui/ImageBorder/index.js +1 -0
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 0.12.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#72081](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72081) [`4487160917d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4487160917d2) - [ux] ED-22052: adds button type attribute to non atlaskit button instances
|
|
8
|
+
|
|
9
|
+
## 0.12.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
|
|
14
|
+
- [#70460](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70460) [`2f37600156ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f37600156ae) - The internal composition of a component in this package has changed. There is no expected change in behaviour.
|
|
15
|
+
|
|
3
16
|
## 0.12.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -7,17 +7,18 @@ exports.LayoutGroup = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _button = require("@atlaskit/button");
|
|
9
9
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
10
|
+
var _primitives = require("@atlaskit/primitives");
|
|
10
11
|
/** @jsx jsx */
|
|
11
12
|
|
|
12
|
-
var containerStyles = (0,
|
|
13
|
-
marginLeft:
|
|
13
|
+
var containerStyles = (0, _primitives.xcss)({
|
|
14
|
+
marginLeft: 'space.100'
|
|
14
15
|
});
|
|
15
16
|
var LayoutGroup = exports.LayoutGroup = function LayoutGroup(_ref) {
|
|
16
17
|
var layoutButtons = _ref.layoutButtons,
|
|
17
18
|
dispatchCommand = _ref.dispatchCommand,
|
|
18
19
|
hide = _ref.hide;
|
|
19
|
-
return (0, _react.jsx)(
|
|
20
|
-
|
|
20
|
+
return (0, _react.jsx)(_primitives.Box, {
|
|
21
|
+
xcss: containerStyles
|
|
21
22
|
}, (0, _react.jsx)(_button.ButtonGroup, null, layoutButtons.map(function (item, idx) {
|
|
22
23
|
switch (item.type) {
|
|
23
24
|
case 'separator':
|
|
@@ -107,6 +107,7 @@ var ImageBorder = function ImageBorder(_ref) {
|
|
|
107
107
|
}, (0, _react2.jsx)("span", {
|
|
108
108
|
css: _styles2.buttonWrapperStyle
|
|
109
109
|
}, (0, _react2.jsx)("button", {
|
|
110
|
+
type: "button",
|
|
110
111
|
css: (0, _styles2.buttonStyle)(value === size),
|
|
111
112
|
"aria-label": name,
|
|
112
113
|
role: "radio",
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import {
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
3
|
import { ButtonGroup } from '@atlaskit/button';
|
|
4
4
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator } from '@atlaskit/editor-common/ui';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
|
+
const containerStyles = xcss({
|
|
7
|
+
marginLeft: 'space.100'
|
|
7
8
|
});
|
|
8
9
|
export const LayoutGroup = ({
|
|
9
10
|
layoutButtons,
|
|
10
11
|
dispatchCommand,
|
|
11
12
|
hide
|
|
12
13
|
}) => {
|
|
13
|
-
return jsx(
|
|
14
|
-
|
|
14
|
+
return jsx(Box, {
|
|
15
|
+
xcss: containerStyles
|
|
15
16
|
}, jsx(ButtonGroup, null, layoutButtons.map((item, idx) => {
|
|
16
17
|
switch (item.type) {
|
|
17
18
|
case 'separator':
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import {
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
3
|
import { ButtonGroup } from '@atlaskit/button';
|
|
4
4
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator } from '@atlaskit/editor-common/ui';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
|
+
var containerStyles = xcss({
|
|
7
|
+
marginLeft: 'space.100'
|
|
7
8
|
});
|
|
8
9
|
export var LayoutGroup = function LayoutGroup(_ref) {
|
|
9
10
|
var layoutButtons = _ref.layoutButtons,
|
|
10
11
|
dispatchCommand = _ref.dispatchCommand,
|
|
11
12
|
hide = _ref.hide;
|
|
12
|
-
return jsx(
|
|
13
|
-
|
|
13
|
+
return jsx(Box, {
|
|
14
|
+
xcss: containerStyles
|
|
14
15
|
}, jsx(ButtonGroup, null, layoutButtons.map(function (item, idx) {
|
|
15
16
|
switch (item.type) {
|
|
16
17
|
case 'separator':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
39
39
|
"@atlaskit/button": "^17.3.0",
|
|
40
|
-
"@atlaskit/editor-common": "^77.
|
|
40
|
+
"@atlaskit/editor-common": "^77.4.0",
|
|
41
41
|
"@atlaskit/editor-palette": "1.5.2",
|
|
42
42
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
43
43
|
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|
|
@@ -49,23 +49,24 @@
|
|
|
49
49
|
"@atlaskit/editor-plugin-guideline": "^0.5.0",
|
|
50
50
|
"@atlaskit/editor-plugin-selection": "^0.2.0",
|
|
51
51
|
"@atlaskit/editor-plugin-width": "^0.2.0",
|
|
52
|
-
"@atlaskit/editor-prosemirror": "
|
|
52
|
+
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
53
53
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
54
54
|
"@atlaskit/editor-tables": "^2.5.0",
|
|
55
55
|
"@atlaskit/form": "^9.0.3",
|
|
56
56
|
"@atlaskit/icon": "^22.0.0",
|
|
57
|
-
"@atlaskit/media-card": "^77.
|
|
57
|
+
"@atlaskit/media-card": "^77.9.0",
|
|
58
58
|
"@atlaskit/media-client": "^26.1.0",
|
|
59
59
|
"@atlaskit/media-client-react": "^2.0.0",
|
|
60
60
|
"@atlaskit/media-common": "^11.0.0",
|
|
61
61
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
62
62
|
"@atlaskit/media-picker": "^66.2.0",
|
|
63
|
-
"@atlaskit/media-ui": "^25.
|
|
63
|
+
"@atlaskit/media-ui": "^25.1.0",
|
|
64
64
|
"@atlaskit/media-viewer": "^48.2.0",
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
66
|
+
"@atlaskit/primitives": "^2.0.0",
|
|
66
67
|
"@atlaskit/textfield": "^6.0.0",
|
|
67
68
|
"@atlaskit/theme": "^12.6.0",
|
|
68
|
-
"@atlaskit/tokens": "^1.
|
|
69
|
+
"@atlaskit/tokens": "^1.36.0",
|
|
69
70
|
"@atlaskit/tooltip": "^18.1.0",
|
|
70
71
|
"@babel/runtime": "^7.0.0",
|
|
71
72
|
"@emotion/react": "^11.7.1",
|