@atlaskit/editor-plugin-media 5.4.0 → 5.4.2

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,21 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 5.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a2cd8c46a3e94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2cd8c46a3e94) -
8
+ EDITOR-1442 Bump adf-schema
9
+ - Updated dependencies
10
+
11
+ ## 5.4.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`20a5aa8c4e7a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20a5aa8c4e7a0) -
16
+ Removed gridSize import. No visual changes.
17
+ - Updated dependencies
18
+
3
19
  ## 5.4.0
4
20
 
5
21
  ### Minor Changes
@@ -11,13 +11,11 @@ var _react = require("@emotion/react");
11
11
  var _uiColor = require("@atlaskit/editor-common/ui-color");
12
12
  var _colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
13
13
  var colors = _colors;
14
- var _constants = require("@atlaskit/theme/constants");
15
14
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
16
15
  /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation*/
17
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
17
  // Ignored via go/ees005
19
18
  // eslint-disable-next-line import/no-namespace
20
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
21
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
20
  // menuItemDimensions and itemSpacing are copied from
23
21
  // packages/editor/editor-core/src/plugins/floating-toolbar/ui/DropdownMenu.tsx
@@ -27,9 +25,8 @@ var menuItemDimensions = exports.menuItemDimensions = {
27
25
  height: 32
28
26
  };
29
27
 
30
- // TODO: ED-26962 - Migrate away from gridSize
31
- // Recommendation: Replace directly with 4 due to itemSpacing being used in calculations
32
- var itemSpacing = exports.itemSpacing = (0, _constants.gridSize)() / 2;
28
+ // itemSpacing is used in calculations expecting a number, hence not using a space token
29
+ var itemSpacing = exports.itemSpacing = 4;
33
30
 
34
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
35
32
  var contextualMenuArrow = exports.contextualMenuArrow = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\t&::after {\n\t\tcontent: '\u203A';\n\t\tmargin-left: ", ";\n\t\tline-height: 20px;\n\t\tcolor: ", ";\n\t}\n"])), "var(--ds-space-050, 4px)", "var(--ds-icon, ".concat(_colors.N90, ")"));
@@ -6,8 +6,6 @@ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
6
6
  // eslint-disable-next-line import/no-namespace
7
7
  import * as colors from '@atlaskit/theme/colors';
8
8
  import { N0, N20A, N50, N60A, N800, N90 } from '@atlaskit/theme/colors';
9
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
10
- import { gridSize } from '@atlaskit/theme/constants';
11
9
  // menuItemDimensions and itemSpacing are copied from
12
10
  // packages/editor/editor-core/src/plugins/floating-toolbar/ui/DropdownMenu.tsx
13
11
 
@@ -16,9 +14,8 @@ export const menuItemDimensions = {
16
14
  height: 32
17
15
  };
18
16
 
19
- // TODO: ED-26962 - Migrate away from gridSize
20
- // Recommendation: Replace directly with 4 due to itemSpacing being used in calculations
21
- export const itemSpacing = gridSize() / 2;
17
+ // itemSpacing is used in calculations expecting a number, hence not using a space token
18
+ export const itemSpacing = 4;
22
19
 
23
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
24
21
  export const contextualMenuArrow = css`
@@ -8,8 +8,6 @@ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
8
8
  // eslint-disable-next-line import/no-namespace
9
9
  import * as colors from '@atlaskit/theme/colors';
10
10
  import { N0, N20A, N50, N60A, N800, N90 } from '@atlaskit/theme/colors';
11
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
12
- import { gridSize } from '@atlaskit/theme/constants';
13
11
  // menuItemDimensions and itemSpacing are copied from
14
12
  // packages/editor/editor-core/src/plugins/floating-toolbar/ui/DropdownMenu.tsx
15
13
 
@@ -18,9 +16,8 @@ export var menuItemDimensions = {
18
16
  height: 32
19
17
  };
20
18
 
21
- // TODO: ED-26962 - Migrate away from gridSize
22
- // Recommendation: Replace directly with 4 due to itemSpacing being used in calculations
23
- export var itemSpacing = gridSize() / 2;
19
+ // itemSpacing is used in calculations expecting a number, hence not using a space token
20
+ export var itemSpacing = 4;
24
21
 
25
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
26
23
  export var contextualMenuArrow = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tdisplay: flex;\n\t&::after {\n\t\tcontent: '\u203A';\n\t\tmargin-left: ", ";\n\t\tline-height: 20px;\n\t\tcolor: ", ";\n\t}\n"])), "var(--ds-space-050, 4px)", "var(--ds-icon, ".concat(N90, ")"));
@@ -2,7 +2,7 @@ export declare const menuItemDimensions: {
2
2
  width: number;
3
3
  height: number;
4
4
  };
5
- export declare const itemSpacing: number;
5
+ export declare const itemSpacing = 4;
6
6
  export declare const contextualMenuArrow: import("@emotion/react").SerializedStyles;
7
7
  export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/react").SerializedStyles;
8
8
  export declare const contextualSubMenu: (index: number) => import("@emotion/react").SerializedStyles;
@@ -2,7 +2,7 @@ export declare const menuItemDimensions: {
2
2
  width: number;
3
3
  height: number;
4
4
  };
5
- export declare const itemSpacing: number;
5
+ export declare const itemSpacing = 4;
6
6
  export declare const contextualMenuArrow: import("@emotion/react").SerializedStyles;
7
7
  export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/react").SerializedStyles;
8
8
  export declare const contextualSubMenu: (index: number) => import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "5.4.0",
3
+ "version": "5.4.2",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^50.2.2",
32
+ "@atlaskit/adf-schema": "^50.2.3",
33
33
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
34
34
  "@atlaskit/analytics-next": "^11.1.0",
35
35
  "@atlaskit/button": "^23.4.0",
@@ -65,7 +65,7 @@
65
65
  "@atlaskit/primitives": "^14.12.0",
66
66
  "@atlaskit/textfield": "^8.0.0",
67
67
  "@atlaskit/theme": "^20.0.0",
68
- "@atlaskit/tmp-editor-statsig": "^11.8.0",
68
+ "@atlaskit/tmp-editor-statsig": "^11.9.0",
69
69
  "@atlaskit/tokens": "^6.1.0",
70
70
  "@atlaskit/tooltip": "^20.4.0",
71
71
  "@babel/runtime": "^7.0.0",
@@ -77,7 +77,7 @@
77
77
  "uuid": "^3.1.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "@atlaskit/editor-common": "^107.32.0",
80
+ "@atlaskit/editor-common": "^107.33.0",
81
81
  "@atlaskit/media-core": "^37.0.0",
82
82
  "react": "^18.2.0",
83
83
  "react-dom": "^18.2.0",