@atlaskit/editor-plugin-media 21.0.2 → 21.0.4

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,19 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 21.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 21.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`22e02fb26ca02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22e02fb26ca02) -
14
+ Make the shipped media border radius styling permanent and remove the obsolete feature gate.
15
+ - Updated dependencies
16
+
3
17
  ## 21.0.2
4
18
 
5
19
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.MediaSingleNodeSelector = exports.MediaCardWrapper = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _react2 = require("@emotion/react");
10
10
  var _ui = require("@atlaskit/editor-common/ui");
11
- var _fg = require("@atlaskit/platform-feature-flags/fg");
12
11
  /**
13
12
  * @jsxRuntime classic
14
13
  * @jsx jsx
@@ -37,11 +36,7 @@ var MediaCardWrapper = exports.MediaCardWrapper = function MediaCardWrapper(_ref
37
36
  borderWidth = _ref$borderWidth === void 0 ? 0 : _ref$borderWidth,
38
37
  onContextMenu = _ref.onContextMenu;
39
38
  var calculatedBorderWidth = selected && borderWidth > 0 ? borderWidth + 1 : borderWidth;
40
- // [FEATURE FLAG: platform_editor_media_border_radius_fix]
41
- // Fixes border radius calculation to properly fit image with 8px radius
42
- // To clean up: keep only flag-on behavior (calculatedBorderWidth + 8)
43
- var borderRadius = (0, _fg.fg)('platform_editor_media_border_radius_fix') ? "".concat(calculatedBorderWidth + 8, "px") : "".concat(calculatedBorderWidth * 2, "px"); // OLD BEHAVIOR (to be removed when flag is cleaned up)
44
-
39
+ var borderRadius = "".concat(calculatedBorderWidth + 8, "px");
45
40
  return (0, _react2.jsx)("div", {
46
41
  "data-testid": "media-card-wrapper"
47
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -7,7 +7,6 @@ import React from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
10
- import { fg } from '@atlaskit/platform-feature-flags/fg';
11
10
  export const MediaSingleNodeSelector = 'media-single-node';
12
11
  const absoluteDivStyles = css({
13
12
  position: 'absolute',
@@ -29,11 +28,7 @@ export const MediaCardWrapper = ({
29
28
  onContextMenu
30
29
  }) => {
31
30
  const calculatedBorderWidth = selected && borderWidth > 0 ? borderWidth + 1 : borderWidth;
32
- // [FEATURE FLAG: platform_editor_media_border_radius_fix]
33
- // Fixes border radius calculation to properly fit image with 8px radius
34
- // To clean up: keep only flag-on behavior (calculatedBorderWidth + 8)
35
- const borderRadius = fg('platform_editor_media_border_radius_fix') ? `${calculatedBorderWidth + 8}px` : `${calculatedBorderWidth * 2}px`; // OLD BEHAVIOR (to be removed when flag is cleaned up)
36
-
31
+ const borderRadius = `${calculatedBorderWidth + 8}px`;
37
32
  return jsx("div", {
38
33
  "data-testid": "media-card-wrapper"
39
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -7,7 +7,6 @@ import React from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
10
- import { fg } from '@atlaskit/platform-feature-flags/fg';
11
10
  export var MediaSingleNodeSelector = 'media-single-node';
12
11
  var absoluteDivStyles = css({
13
12
  position: 'absolute',
@@ -29,11 +28,7 @@ export var MediaCardWrapper = function MediaCardWrapper(_ref) {
29
28
  borderWidth = _ref$borderWidth === void 0 ? 0 : _ref$borderWidth,
30
29
  onContextMenu = _ref.onContextMenu;
31
30
  var calculatedBorderWidth = selected && borderWidth > 0 ? borderWidth + 1 : borderWidth;
32
- // [FEATURE FLAG: platform_editor_media_border_radius_fix]
33
- // Fixes border radius calculation to properly fit image with 8px radius
34
- // To clean up: keep only flag-on behavior (calculatedBorderWidth + 8)
35
- var borderRadius = fg('platform_editor_media_border_radius_fix') ? "".concat(calculatedBorderWidth + 8, "px") : "".concat(calculatedBorderWidth * 2, "px"); // OLD BEHAVIOR (to be removed when flag is cleaned up)
36
-
31
+ var borderRadius = "".concat(calculatedBorderWidth + 8, "px");
37
32
  return jsx("div", {
38
33
  "data-testid": "media-card-wrapper"
39
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "21.0.2",
3
+ "version": "21.0.4",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,10 +21,10 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^57.5.0",
24
+ "@atlaskit/adf-schema": "^57.6.0",
25
25
  "@atlaskit/analytics-namespaced-context": "^8.2.0",
26
26
  "@atlaskit/analytics-next": "^12.5.0",
27
- "@atlaskit/button": "^25.3.0",
27
+ "@atlaskit/button": "^25.4.0",
28
28
  "@atlaskit/css": "^1.1.0",
29
29
  "@atlaskit/editor-palette": "^3.5.0",
30
30
  "@atlaskit/editor-plugin-analytics": "^19.0.0",
@@ -33,7 +33,7 @@
33
33
  "@atlaskit/editor-plugin-decorations": "^19.0.0",
34
34
  "@atlaskit/editor-plugin-editor-disabled": "^19.0.0",
35
35
  "@atlaskit/editor-plugin-editor-viewmode": "^21.0.0",
36
- "@atlaskit/editor-plugin-floating-toolbar": "^21.1.0",
36
+ "@atlaskit/editor-plugin-floating-toolbar": "^21.3.0",
37
37
  "@atlaskit/editor-plugin-focus": "^18.0.0",
38
38
  "@atlaskit/editor-plugin-grid": "^19.0.0",
39
39
  "@atlaskit/editor-plugin-guideline": "^19.0.0",
@@ -61,7 +61,7 @@
61
61
  "@atlaskit/platform-feature-flags": "^2.2.0",
62
62
  "@atlaskit/primitives": "^22.5.0",
63
63
  "@atlaskit/textfield": "^10.2.0",
64
- "@atlaskit/tmp-editor-statsig": "^201.0.0",
64
+ "@atlaskit/tmp-editor-statsig": "^202.0.0",
65
65
  "@atlaskit/tokens": "^18.2.0",
66
66
  "@atlaskit/tooltip": "^24.3.0",
67
67
  "@babel/runtime": "^7.0.0",
@@ -74,7 +74,7 @@
74
74
  "uuid": "^11.1.1"
75
75
  },
76
76
  "peerDependencies": {
77
- "@atlaskit/editor-common": "^123.2.0",
77
+ "@atlaskit/editor-common": "^123.5.0",
78
78
  "@atlaskit/media-core": "^38.2.0",
79
79
  "react": "^18.2.0 || ^19.2.0",
80
80
  "react-dom": "^18.2.0 || ^19.2.0",
@@ -114,9 +114,6 @@
114
114
  "confluence_fe_create_inline_comment_exp_coverage_2": {
115
115
  "type": "boolean"
116
116
  },
117
- "platform_editor_media_border_radius_fix": {
118
- "type": "boolean"
119
- },
120
117
  "aifc_page_create_defer_generated_visuals": {
121
118
  "type": "boolean",
122
119
  "referenceOnly": true