@atlaskit/editor-common 110.16.0 → 110.16.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,18 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.16.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c219d22cf0788`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c219d22cf0788) -
8
+ [ux] Card hover link overlay in compact mode
9
+
10
+ ## 110.16.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 110.16.0
4
17
 
5
18
  ### Minor Changes
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "110.15.2";
19
+ var packageVersion = "110.16.1";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "110.15.2";
27
+ var packageVersion = "110.16.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -11,9 +11,11 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  var _react2 = require("@emotion/react");
12
12
  var _reactIntlNext = require("react-intl-next");
13
13
  var _state = require("@atlaskit/editor-prosemirror/state");
14
+ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
15
  var _growDiagonal = _interopRequireDefault(require("@atlaskit/icon/core/grow-diagonal"));
15
16
  var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
16
17
  var _panelRight = _interopRequireDefault(require("@atlaskit/icon/core/panel-right"));
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
19
  var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
18
20
  var _primitives = require("@atlaskit/primitives");
19
21
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
@@ -34,6 +36,12 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
34
36
 
35
37
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
36
38
 
39
+ /**
40
+ * Dynamic padding value that adjusts based on the editor's base font size.
41
+ * When base font size is <= akEditorFullPageDenseFontSize (13px), uses 1px padding.
42
+ * Otherwise, uses default value with token('space.025').
43
+ */
44
+ var DYNAMIC_PADDING_BLOCK = "clamp(1px, calc((var(--ak-editor-base-font-size, ".concat(_editorSharedStyles.akEditorFullPageDefaultFontSize, "px) - ").concat(_editorSharedStyles.akEditorFullPageDenseFontSize, "px) * 999), ", "var(--ds-space-025, 2px)", ")");
37
45
  var containerStylesOld = (0, _react2.css)({
38
46
  position: 'relative'
39
47
  });
@@ -246,7 +254,7 @@ var HoverLinkOverlayOriginal = function HoverLinkOverlayOriginal(_ref) {
246
254
  href: url,
247
255
  target: "_blank",
248
256
  style: {
249
- paddingBlock: compactPadding ? '1px' : "var(--ds-space-025, 2px)"
257
+ paddingBlock: compactPadding ? '1px' : (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
250
258
  },
251
259
  onClick: handleClick,
252
260
  testId: "inline-card-hoverlink-overlay"
@@ -386,7 +394,7 @@ var HoverLinkOverlayNew = function HoverLinkOverlayNew(_ref2) {
386
394
  href: url,
387
395
  target: "_blank",
388
396
  style: {
389
- paddingBlock: compactPadding ? '1px' : "var(--ds-space-025, 2px)"
397
+ paddingBlock: compactPadding ? '1px' : (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
390
398
  },
391
399
  onClick: handleClick,
392
400
  testId: "inline-card-hoverlink-overlay"
@@ -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 = "110.15.2";
4
+ const packageVersion = "110.16.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "110.15.2";
17
+ const packageVersion = "110.16.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -8,10 +8,12 @@ import React, { useLayoutEffect, useRef, useState } from 'react';
8
8
  import { css, jsx } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
9
9
  import { useIntl } from 'react-intl-next';
10
10
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
11
+ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
11
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
13
  import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
13
14
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
14
15
  import PanelRightIcon from '@atlaskit/icon/core/panel-right';
16
+ import { fg } from '@atlaskit/platform-feature-flags';
15
17
  import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
16
18
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
17
19
  import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
@@ -19,6 +21,12 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
21
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
20
22
  import { buildVisitedNonHyperLinkPayload, INPUT_METHOD } from '../../analytics';
21
23
  import { cardMessages } from '../../messages';
24
+ /**
25
+ * Dynamic padding value that adjusts based on the editor's base font size.
26
+ * When base font size is <= akEditorFullPageDenseFontSize (13px), uses 1px padding.
27
+ * Otherwise, uses default value with token('space.025').
28
+ */
29
+ const DYNAMIC_PADDING_BLOCK = `clamp(1px, calc((var(--ak-editor-base-font-size, ${akEditorFullPageDefaultFontSize}px) - ${akEditorFullPageDenseFontSize}px) * 999), ${"var(--ds-space-025, 2px)"})`;
22
30
  const containerStylesOld = css({
23
31
  position: 'relative'
24
32
  });
@@ -222,7 +230,7 @@ const HoverLinkOverlayOriginal = ({
222
230
  href: url,
223
231
  target: "_blank",
224
232
  style: {
225
- paddingBlock: compactPadding ? '1px' : "var(--ds-space-025, 2px)"
233
+ paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
226
234
  },
227
235
  onClick: handleClick,
228
236
  testId: "inline-card-hoverlink-overlay"
@@ -348,7 +356,7 @@ const HoverLinkOverlayNew = ({
348
356
  href: url,
349
357
  target: "_blank",
350
358
  style: {
351
- paddingBlock: compactPadding ? '1px' : "var(--ds-space-025, 2px)"
359
+ paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
352
360
  },
353
361
  onClick: handleClick,
354
362
  testId: "inline-card-hoverlink-overlay"
@@ -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 = "110.15.2";
10
+ var packageVersion = "110.16.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "110.15.2";
24
+ var packageVersion = "110.16.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -9,10 +9,12 @@ import React, { useLayoutEffect, useRef, useState } from 'react';
9
9
  import { css, jsx } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
10
10
  import { useIntl } from 'react-intl-next';
11
11
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
12
+ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
12
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
14
  import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
14
15
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
15
16
  import PanelRightIcon from '@atlaskit/icon/core/panel-right';
17
+ import { fg } from '@atlaskit/platform-feature-flags';
16
18
  import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
17
19
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
18
20
  import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
@@ -20,6 +22,12 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
22
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
21
23
  import { buildVisitedNonHyperLinkPayload, INPUT_METHOD } from '../../analytics';
22
24
  import { cardMessages } from '../../messages';
25
+ /**
26
+ * Dynamic padding value that adjusts based on the editor's base font size.
27
+ * When base font size is <= akEditorFullPageDenseFontSize (13px), uses 1px padding.
28
+ * Otherwise, uses default value with token('space.025').
29
+ */
30
+ var DYNAMIC_PADDING_BLOCK = "clamp(1px, calc((var(--ak-editor-base-font-size, ".concat(akEditorFullPageDefaultFontSize, "px) - ").concat(akEditorFullPageDenseFontSize, "px) * 999), ", "var(--ds-space-025, 2px)", ")");
23
31
  var containerStylesOld = css({
24
32
  position: 'relative'
25
33
  });
@@ -232,7 +240,7 @@ var HoverLinkOverlayOriginal = function HoverLinkOverlayOriginal(_ref) {
232
240
  href: url,
233
241
  target: "_blank",
234
242
  style: {
235
- paddingBlock: compactPadding ? '1px' : "var(--ds-space-025, 2px)"
243
+ paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
236
244
  },
237
245
  onClick: handleClick,
238
246
  testId: "inline-card-hoverlink-overlay"
@@ -372,7 +380,7 @@ var HoverLinkOverlayNew = function HoverLinkOverlayNew(_ref2) {
372
380
  href: url,
373
381
  target: "_blank",
374
382
  style: {
375
- paddingBlock: compactPadding ? '1px' : "var(--ds-space-025, 2px)"
383
+ paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
376
384
  },
377
385
  onClick: handleClick,
378
386
  testId: "inline-card-hoverlink-overlay"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.16.0",
3
+ "version": "110.16.2",
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/"
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/editor-prosemirror": "7.0.0",
49
49
  "@atlaskit/editor-shared-styles": "^3.8.0",
50
50
  "@atlaskit/editor-tables": "^2.9.0",
51
- "@atlaskit/editor-toolbar": "^0.15.0",
51
+ "@atlaskit/editor-toolbar": "^0.16.0",
52
52
  "@atlaskit/editor-toolbar-model": "^0.2.0",
53
53
  "@atlaskit/emoji": "^69.6.0",
54
54
  "@atlaskit/icon": "^28.5.0",
@@ -82,7 +82,7 @@
82
82
  "@atlaskit/task-decision": "^19.2.0",
83
83
  "@atlaskit/textfield": "^8.0.0",
84
84
  "@atlaskit/theme": "^21.0.0",
85
- "@atlaskit/tmp-editor-statsig": "^13.17.0",
85
+ "@atlaskit/tmp-editor-statsig": "^13.18.0",
86
86
  "@atlaskit/tokens": "^7.0.0",
87
87
  "@atlaskit/tooltip": "^20.6.0",
88
88
  "@atlaskit/ufo": "^0.4.0",
@@ -273,6 +273,9 @@
273
273
  "platform_editor_update_modal_close_button": {
274
274
  "type": "boolean"
275
275
  },
276
+ "platform_editor_content_mode_button_mvp": {
277
+ "type": "boolean"
278
+ },
276
279
  "platform_editor_fix_mixed_types_column_sort": {
277
280
  "type": "boolean"
278
281
  }