@atlaskit/editor-common 83.6.1 → 84.0.1

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,23 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 84.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#117088](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117088)
8
+ [`2d9e303cfc237`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d9e303cfc237) -
9
+ [ux] Update padding between icon and also padding button to match designs better
10
+
11
+ ## 84.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - [`d9b562bd66f8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d9b562bd66f8e) -
16
+ [ux] [ED-23947] restoring the original order of the typeahead menu so that actions, media,
17
+ mentions and emojis are above the fold (in the top 5 results). this change is a major because it
18
+ removes the `getEditorFeatureFlags prop` for plugins. if any consumers who have adopted these
19
+ changes to the public API, they should remove them on their side too.
20
+
3
21
  ## 83.6.1
4
22
 
5
23
  ### Patch Changes
@@ -61,13 +61,11 @@ var sharedLabelStyles = (0, _react2.css)({
61
61
  }
62
62
  });
63
63
  var buttonLabelStyles = (0, _react2.css)({
64
- // Need this exact number since this is size with icon
65
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
66
- minHeight: '26px',
64
+ minHeight: "var(--ds-space-300, 24px)",
67
65
  alignItems: 'center',
68
66
  borderRadius: "var(--ds-border-radius, 3px)",
69
- paddingLeft: "var(--ds-space-050, 4px)",
70
- paddingRight: "var(--ds-space-050, 4px)",
67
+ paddingLeft: "var(--ds-space-100, 8px)",
68
+ paddingRight: "var(--ds-space-100, 8px)",
71
69
  color: "var(--ds-text-subtle, ".concat(_colors.N800, ")"),
72
70
  backgroundColor: "var(--ds-background-accent-gray-subtlest, ".concat(_colors.N30, ")"),
73
71
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -80,7 +78,8 @@ var buttonLabelStyles = (0, _react2.css)({
80
78
  }
81
79
  });
82
80
  var spacerStyles = (0, _react2.css)({
83
- height: "var(--ds-space-150, 12px)"
81
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
82
+ height: '10px'
84
83
  });
85
84
  var textStyles = (0, _react2.css)({
86
85
  fontSize: '14px',
@@ -101,6 +100,7 @@ var originalLabelStyles = (0, _react2.css)({
101
100
  }
102
101
  });
103
102
  var iconStyles = (0, _react2.css)({
103
+ marginLeft: "var(--ds-space-050, 4px)",
104
104
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
105
105
  '&.hide-icon': {
106
106
  display: 'none'
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "83.6.1";
20
+ var packageVersion = "84.0.1";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "83.6.1";
23
+ var packageVersion = "84.0.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -52,13 +52,11 @@ const sharedLabelStyles = css({
52
52
  }
53
53
  });
54
54
  const buttonLabelStyles = css({
55
- // Need this exact number since this is size with icon
56
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
57
- minHeight: '26px',
55
+ minHeight: "var(--ds-space-300, 24px)",
58
56
  alignItems: 'center',
59
57
  borderRadius: "var(--ds-border-radius, 3px)",
60
- paddingLeft: "var(--ds-space-050, 4px)",
61
- paddingRight: "var(--ds-space-050, 4px)",
58
+ paddingLeft: "var(--ds-space-100, 8px)",
59
+ paddingRight: "var(--ds-space-100, 8px)",
62
60
  color: `var(--ds-text-subtle, ${N800})`,
63
61
  backgroundColor: `var(--ds-background-accent-gray-subtlest, ${N30})`,
64
62
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -71,7 +69,8 @@ const buttonLabelStyles = css({
71
69
  }
72
70
  });
73
71
  const spacerStyles = css({
74
- height: "var(--ds-space-150, 12px)"
72
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
73
+ height: '10px'
75
74
  });
76
75
  const textStyles = css({
77
76
  fontSize: '14px',
@@ -92,6 +91,7 @@ const originalLabelStyles = css({
92
91
  }
93
92
  });
94
93
  const iconStyles = css({
94
+ marginLeft: "var(--ds-space-050, 4px)",
95
95
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
96
96
  '&.hide-icon': {
97
97
  display: 'none'
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "83.6.1";
4
+ const packageVersion = "84.0.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -9,7 +9,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
9
9
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "83.6.1";
12
+ const packageVersion = "84.0.1";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -52,13 +52,11 @@ var sharedLabelStyles = css({
52
52
  }
53
53
  });
54
54
  var buttonLabelStyles = css({
55
- // Need this exact number since this is size with icon
56
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
57
- minHeight: '26px',
55
+ minHeight: "var(--ds-space-300, 24px)",
58
56
  alignItems: 'center',
59
57
  borderRadius: "var(--ds-border-radius, 3px)",
60
- paddingLeft: "var(--ds-space-050, 4px)",
61
- paddingRight: "var(--ds-space-050, 4px)",
58
+ paddingLeft: "var(--ds-space-100, 8px)",
59
+ paddingRight: "var(--ds-space-100, 8px)",
62
60
  color: "var(--ds-text-subtle, ".concat(N800, ")"),
63
61
  backgroundColor: "var(--ds-background-accent-gray-subtlest, ".concat(N30, ")"),
64
62
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -71,7 +69,8 @@ var buttonLabelStyles = css({
71
69
  }
72
70
  });
73
71
  var spacerStyles = css({
74
- height: "var(--ds-space-150, 12px)"
72
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
73
+ height: '10px'
75
74
  });
76
75
  var textStyles = css({
77
76
  fontSize: '14px',
@@ -92,6 +91,7 @@ var originalLabelStyles = css({
92
91
  }
93
92
  });
94
93
  var iconStyles = css({
94
+ marginLeft: "var(--ds-space-050, 4px)",
95
95
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
96
96
  '&.hide-icon': {
97
97
  display: 'none'
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "83.6.1";
10
+ var packageVersion = "84.0.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "83.6.1";
20
+ var packageVersion = "84.0.1";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -309,14 +309,6 @@ export type FeatureFlags = {
309
309
  * @default false
310
310
  */
311
311
  elementDragAndDrop?: boolean;
312
- /**
313
- * @description
314
- * Rearranges the top 5 items in the quick insert menu
315
- *
316
- * @see https://product-fabric.atlassian.net/browse/ED-23642
317
- * @default false
318
- */
319
- platformEditorTypeaheadImprovedRelevancy?: boolean;
320
312
  /**
321
313
  * @description
322
314
  * Enables fix for comment sidebar is not scrolled into view when adding/viewing a comment on media
@@ -309,14 +309,6 @@ export type FeatureFlags = {
309
309
  * @default false
310
310
  */
311
311
  elementDragAndDrop?: boolean;
312
- /**
313
- * @description
314
- * Rearranges the top 5 items in the quick insert menu
315
- *
316
- * @see https://product-fabric.atlassian.net/browse/ED-23642
317
- * @default false
318
- */
319
- platformEditorTypeaheadImprovedRelevancy?: boolean;
320
312
  /**
321
313
  * @description
322
314
  * Enables fix for comment sidebar is not scrolled into view when adding/viewing a comment on media
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "83.6.1",
3
+ "version": "84.0.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -104,7 +104,7 @@
104
104
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
105
105
  "@atlaskit/atlassian-context": "^0.0.0",
106
106
  "@atlaskit/button": "^18.1.0",
107
- "@atlaskit/code": "^15.3.0",
107
+ "@atlaskit/code": "^15.4.0",
108
108
  "@atlaskit/codemod-utils": "^4.2.0",
109
109
  "@atlaskit/custom-steps": "^0.4.0",
110
110
  "@atlaskit/editor-json-transformer": "^8.15.0",