@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 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, _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':
@@ -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 { 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':
@@ -92,6 +92,7 @@ const ImageBorder = ({
92
92
  }, jsx("span", {
93
93
  css: buttonWrapperStyle
94
94
  }, jsx("button", {
95
+ type: "button",
95
96
  css: buttonStyle(value === size),
96
97
  "aria-label": name,
97
98
  role: "radio",
@@ -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':
@@ -99,6 +99,7 @@ var ImageBorder = function ImageBorder(_ref) {
99
99
  }, jsx("span", {
100
100
  css: buttonWrapperStyle
101
101
  }, jsx("button", {
102
+ type: "button",
102
103
  css: buttonStyle(value === size),
103
104
  "aria-label": name,
104
105
  role: "radio",
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.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.3.0",
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": "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",
56
56
  "@atlaskit/icon": "^22.0.0",
57
- "@atlaskit/media-card": "^77.7.0",
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.0.0",
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.35.0",
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",