@atlaskit/editor-plugin-card 2.12.1 → 2.13.0

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,17 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 2.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#129411](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129411)
8
+ [`175fc1454a8a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/175fc1454a8a4) -
9
+ [ux] Migrate typography with new ADS token and primitive and remove feature gate
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 2.12.1
4
16
 
5
17
  ### Patch Changes
@@ -17,7 +17,6 @@ var _reactIntlNext = require("react-intl-next");
17
17
  var _messages = require("@atlaskit/editor-common/messages");
18
18
  var _whitespace = require("@atlaskit/editor-common/whitespace");
19
19
  var _preferences = _interopRequireDefault(require("@atlaskit/icon/glyph/preferences"));
20
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
20
  var _colors = require("@atlaskit/theme/colors");
22
21
  var _utils = require("./utils");
23
22
  var _excluded = ["children", "isSelected", "isVisible", "testId", "url"];
@@ -85,11 +84,6 @@ var iconStyles = (0, _react2.css)({
85
84
  }
86
85
  });
87
86
  var labelStyles = (0, _react2.css)({
88
- fontSize: '0.875em',
89
- fontWeight: '600',
90
- width: 'max-content'
91
- });
92
- var labelStylesWithFontToken = (0, _react2.css)({
93
87
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
94
88
  fontWeight: "var(--ds-font-weight-semibold, 600)",
95
89
  width: 'max-content'
@@ -266,7 +260,7 @@ var InlineCardOverlay = function InlineCardOverlay(_ref) {
266
260
  size: iconSize.current,
267
261
  testId: "".concat(testId, "-icon")
268
262
  })), showLabel && (0, _react2.jsx)("span", {
269
- css: (0, _platformFeatureFlags.fg)('platform_editor_migration_icon_and_typography') ? labelStylesWithFontToken : labelStyles
263
+ css: labelStyles
270
264
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
271
265
  ,
272
266
  className: OVERLAY_LABEL_CLASSNAME,
@@ -14,7 +14,6 @@ import { useIntl } from 'react-intl-next';
14
14
  import { cardMessages as messages } from '@atlaskit/editor-common/messages';
15
15
  import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
16
16
  import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
17
- import { fg } from '@atlaskit/platform-feature-flags';
18
17
  import { B100, N0, N700 } from '@atlaskit/theme/colors';
19
18
  import { getChildElement, getIconSize, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
20
19
  const DEBOUNCE_IN_MS = 5;
@@ -76,11 +75,6 @@ const iconStyles = css({
76
75
  }
77
76
  });
78
77
  const labelStyles = css({
79
- fontSize: '0.875em',
80
- fontWeight: '600',
81
- width: 'max-content'
82
- });
83
- const labelStylesWithFontToken = css({
84
78
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
85
79
  fontWeight: "var(--ds-font-weight-semibold, 600)",
86
80
  width: 'max-content'
@@ -245,7 +239,7 @@ const InlineCardOverlay = ({
245
239
  size: iconSize.current,
246
240
  testId: `${testId}-icon`
247
241
  })), showLabel && jsx("span", {
248
- css: fg('platform_editor_migration_icon_and_typography') ? labelStylesWithFontToken : labelStyles
242
+ css: labelStyles
249
243
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
250
244
  ,
251
245
  className: OVERLAY_LABEL_CLASSNAME,
@@ -19,7 +19,6 @@ import { useIntl } from 'react-intl-next';
19
19
  import { cardMessages as messages } from '@atlaskit/editor-common/messages';
20
20
  import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
21
21
  import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
22
- import { fg } from '@atlaskit/platform-feature-flags';
23
22
  import { B100, N0, N700 } from '@atlaskit/theme/colors';
24
23
  import { getChildElement, getIconSize, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
25
24
  var DEBOUNCE_IN_MS = 5;
@@ -76,11 +75,6 @@ var iconStyles = css({
76
75
  }
77
76
  });
78
77
  var labelStyles = css({
79
- fontSize: '0.875em',
80
- fontWeight: '600',
81
- width: 'max-content'
82
- });
83
- var labelStylesWithFontToken = css({
84
78
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
85
79
  fontWeight: "var(--ds-font-weight-semibold, 600)",
86
80
  width: 'max-content'
@@ -257,7 +251,7 @@ var InlineCardOverlay = function InlineCardOverlay(_ref) {
257
251
  size: iconSize.current,
258
252
  testId: "".concat(testId, "-icon")
259
253
  })), showLabel && jsx("span", {
260
- css: fg('platform_editor_migration_icon_and_typography') ? labelStylesWithFontToken : labelStyles
254
+ css: labelStyles
261
255
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
262
256
  ,
263
257
  className: OVERLAY_LABEL_CLASSNAME,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "2.12.1",
3
+ "version": "2.13.0",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/adf-schema": "^40.8.1",
36
36
  "@atlaskit/analytics-next": "^10.1.0",
37
37
  "@atlaskit/custom-steps": "^0.7.0",
38
- "@atlaskit/editor-common": "^87.8.0",
38
+ "@atlaskit/editor-common": "^87.10.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.7.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.2.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^1.2.0",
@@ -51,13 +51,13 @@
51
51
  "@atlaskit/link-analytics": "^8.5.0",
52
52
  "@atlaskit/link-client-extension": "^2.1.0",
53
53
  "@atlaskit/link-datasource": "^2.10.0",
54
- "@atlaskit/linking-common": "^5.10.0",
54
+ "@atlaskit/linking-common": "^5.11.0",
55
55
  "@atlaskit/linking-types": "^9.0.0",
56
- "@atlaskit/menu": "2.12.0",
56
+ "@atlaskit/menu": "2.12.1",
57
57
  "@atlaskit/platform-feature-flags": "^0.3.0",
58
58
  "@atlaskit/primitives": "^12.0.0",
59
- "@atlaskit/smart-card": "^27.14.0",
60
- "@atlaskit/theme": "^12.12.0",
59
+ "@atlaskit/smart-card": "^27.15.0",
60
+ "@atlaskit/theme": "^13.0.0",
61
61
  "@atlaskit/tokens": "^1.58.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",
@@ -143,9 +143,6 @@
143
143
  },
144
144
  "editor_inline_comments_paste_insert_nodes": {
145
145
  "type": "boolean"
146
- },
147
- "platform_editor_migration_icon_and_typography": {
148
- "type": "boolean"
149
146
  }
150
147
  },
151
148
  "stricter": {