@atlaskit/editor-plugin-media 0.12.6 → 0.12.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,12 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 0.12.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+ - [#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.
9
+
3
10
  ## 0.12.6
4
11
 
5
12
  ### 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, _react.css)({
13
- marginLeft: "var(--ds-space-100, 8px)"
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)("div", {
20
- css: containerStyles
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':
@@ -1,17 +1,18 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/react';
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
- const containerStyles = css({
6
- marginLeft: "var(--ds-space-100, 8px)"
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("div", {
14
- css: containerStyles
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 { css, jsx } from '@emotion/react';
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
- var containerStyles = css({
6
- marginLeft: "var(--ds-space-100, 8px)"
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("div", {
13
- css: containerStyles
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.6",
3
+ "version": "0.12.7",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -49,7 +49,7 @@
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": "1.1.0",
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",
@@ -63,6 +63,7 @@
63
63
  "@atlaskit/media-ui": "^25.0.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
69
  "@atlaskit/tokens": "^1.35.0",