@atlaskit/renderer 119.0.7 → 119.2.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,25 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 119.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#178180](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/178180)
8
+ [`50828d60b0bb8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/50828d60b0bb8) -
9
+ Removes experiment to not render children of expand element until it gets expanded
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 119.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#174989](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174989)
20
+ [`98dd1fb8d1e0c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/98dd1fb8d1e0c) -
21
+ [ux] Keep focus on open text editor in comments panel when mouse hovers away
22
+
3
23
  ## 119.0.7
4
24
 
5
25
  ### Patch Changes
@@ -14,7 +14,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _types = require("@atlaskit/editor-common/types");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _consts = require("../../consts");
19
18
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
20
19
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -36,7 +35,7 @@ var TableRow = exports.default = /*#__PURE__*/function (_React$Component) {
36
35
  allowColumnSorting = _this$props.allowColumnSorting,
37
36
  rowIndex = _this$props.index;
38
37
  var isHeaderRow = !rowIndex;
39
- if (allowColumnSorting && (!(0, _platformFeatureFlags.fg)('cc_complexit_fe_improve_table_sorting') || isHeaderRow)) {
38
+ if (allowColumnSorting && isHeaderRow) {
40
39
  childrenArray = childrenArray.map(function (child, index) {
41
40
  if ( /*#__PURE__*/_react.default.isValidElement(child)) {
42
41
  var tableOrderStatus = _this.props.tableOrderStatus;
@@ -17,7 +17,6 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
17
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
18
18
  var _chevronRight2 = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
19
19
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
20
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
21
20
  var _uniqueId2 = _interopRequireDefault(require("lodash/uniqueId"));
22
21
  var _reactIntlNext = require("react-intl-next");
23
22
  var _events = require("../analytics/events");
@@ -263,8 +262,6 @@ function Expand(_ref) {
263
262
  className: "".concat(nodeType, "-content-wrapper")
264
263
  }, (0, _react.jsx)(_ui.WidthProvider, null, (0, _react.jsx)("div", {
265
264
  css: clearNextSiblingMarginTopStyle
266
- }), (0, _experiments.editorExperiment)('confluence_p2m_style_recalc_and_expand_joint_exp', true, {
267
- exposure: true
268
- }) ? expanded && children : children))));
265
+ }), children))));
269
266
  }
270
267
  var _default = exports.default = (0, _reactIntlNext.injectIntl)(Expand);
@@ -62,7 +62,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
62
62
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
63
63
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
64
64
  var packageName = "@atlaskit/renderer";
65
- var packageVersion = "119.0.6";
65
+ var packageVersion = "119.1.0";
66
66
  var setAsQueryContainerStyles = (0, _react2.css)({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
@@ -12,6 +12,7 @@ var _types = require("@atlaskit/editor-common/types");
12
12
  var _adfSchema = require("@atlaskit/adf-schema");
13
13
  var _analytics = require("@atlaskit/editor-common/analytics");
14
14
  var _types2 = require("@atlaskit/analytics-listeners/types");
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _AnnotationManagerContext = require("../contexts/AnnotationManagerContext");
16
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -99,7 +100,7 @@ var useHasFocusEvent = exports.useHasFocusEvent = function useHasFocusEvent(_ref
99
100
  };
100
101
  var removeHoverEffect = function removeHoverEffect() {
101
102
  setIsHovered(false);
102
- if (document.activeElement instanceof HTMLElement) {
103
+ if (document.activeElement instanceof HTMLElement && !(0, _platformFeatureFlags.fg)('confluence_frontend_comments_panel_editor_focus')) {
103
104
  document.activeElement.blur();
104
105
  }
105
106
  };
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import { compose } from '@atlaskit/editor-common/utils';
4
4
  import { SortOrder } from '@atlaskit/editor-common/types';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { RendererCssClassName } from '../../consts';
7
6
  // Ignored via go/ees005
8
7
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -18,7 +17,7 @@ export default class TableRow extends React.Component {
18
17
  index: rowIndex
19
18
  } = this.props;
20
19
  const isHeaderRow = !rowIndex;
21
- if (allowColumnSorting && (!fg('cc_complexit_fe_improve_table_sorting') || isHeaderRow)) {
20
+ if (allowColumnSorting && isHeaderRow) {
22
21
  childrenArray = childrenArray.map((child, index) => {
23
22
  if ( /*#__PURE__*/React.isValidElement(child)) {
24
23
  const {
@@ -13,7 +13,6 @@ import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset } fr
13
13
  import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
14
14
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
15
15
  import Tooltip from '@atlaskit/tooltip';
16
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
16
  import _uniqueId from 'lodash/uniqueId';
18
17
  import { injectIntl } from 'react-intl-next';
19
18
  import { MODE, PLATFORM } from '../analytics/events';
@@ -243,8 +242,6 @@ function Expand({
243
242
  className: `${nodeType}-content-wrapper`
244
243
  }, jsx(WidthProvider, null, jsx("div", {
245
244
  css: clearNextSiblingMarginTopStyle
246
- }), editorExperiment('confluence_p2m_style_recalc_and_expand_joint_exp', true, {
247
- exposure: true
248
- }) ? expanded && children : children))));
245
+ }), children))));
249
246
  }
250
247
  export default injectIntl(Expand);
@@ -48,7 +48,7 @@ import { PortalContext } from './PortalContext';
48
48
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
49
49
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
50
50
  const packageName = "@atlaskit/renderer";
51
- const packageVersion = "119.0.6";
51
+ const packageVersion = "119.1.0";
52
52
  const setAsQueryContainerStyles = css({
53
53
  containerName: 'ak-renderer-wrapper',
54
54
  containerType: 'inline-size'
@@ -3,6 +3,7 @@ import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
3
3
  import { AnnotationTypes } from '@atlaskit/adf-schema';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
5
5
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
7
8
  export const useAnnotationStateByTypeEvent = ({
8
9
  type,
@@ -94,7 +95,7 @@ export const useHasFocusEvent = ({
94
95
  };
95
96
  const removeHoverEffect = () => {
96
97
  setIsHovered(false);
97
- if (document.activeElement instanceof HTMLElement) {
98
+ if (document.activeElement instanceof HTMLElement && !fg('confluence_frontend_comments_panel_editor_focus')) {
98
99
  document.activeElement.blur();
99
100
  }
100
101
  };
@@ -9,7 +9,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
9
9
  import React from 'react';
10
10
  import { compose } from '@atlaskit/editor-common/utils';
11
11
  import { SortOrder } from '@atlaskit/editor-common/types';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  import { RendererCssClassName } from '../../consts';
14
13
  // Ignored via go/ees005
15
14
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -29,7 +28,7 @@ var TableRow = /*#__PURE__*/function (_React$Component) {
29
28
  allowColumnSorting = _this$props.allowColumnSorting,
30
29
  rowIndex = _this$props.index;
31
30
  var isHeaderRow = !rowIndex;
32
- if (allowColumnSorting && (!fg('cc_complexit_fe_improve_table_sorting') || isHeaderRow)) {
31
+ if (allowColumnSorting && isHeaderRow) {
33
32
  childrenArray = childrenArray.map(function (child, index) {
34
33
  if ( /*#__PURE__*/React.isValidElement(child)) {
35
34
  var tableOrderStatus = _this.props.tableOrderStatus;
@@ -16,7 +16,6 @@ import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset } fr
16
16
  import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
17
17
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
18
18
  import Tooltip from '@atlaskit/tooltip';
19
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
20
19
  import _uniqueId from 'lodash/uniqueId';
21
20
  import { injectIntl } from 'react-intl-next';
22
21
  import { MODE, PLATFORM } from '../analytics/events';
@@ -254,8 +253,6 @@ function Expand(_ref) {
254
253
  className: "".concat(nodeType, "-content-wrapper")
255
254
  }, jsx(WidthProvider, null, jsx("div", {
256
255
  css: clearNextSiblingMarginTopStyle
257
- }), editorExperiment('confluence_p2m_style_recalc_and_expand_joint_exp', true, {
258
- exposure: true
259
- }) ? expanded && children : children))));
256
+ }), children))));
260
257
  }
261
258
  export default injectIntl(Expand);
@@ -53,7 +53,7 @@ import { PortalContext } from './PortalContext';
53
53
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
54
54
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
55
55
  var packageName = "@atlaskit/renderer";
56
- var packageVersion = "119.0.6";
56
+ var packageVersion = "119.1.0";
57
57
  var setAsQueryContainerStyles = css({
58
58
  containerName: 'ak-renderer-wrapper',
59
59
  containerType: 'inline-size'
@@ -7,6 +7,7 @@ import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
7
7
  import { AnnotationTypes } from '@atlaskit/adf-schema';
8
8
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
9
9
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
10
11
  import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
11
12
  export var useAnnotationStateByTypeEvent = function useAnnotationStateByTypeEvent(_ref) {
12
13
  var type = _ref.type,
@@ -92,7 +93,7 @@ export var useHasFocusEvent = function useHasFocusEvent(_ref2) {
92
93
  };
93
94
  var removeHoverEffect = function removeHoverEffect() {
94
95
  setIsHovered(false);
95
- if (document.activeElement instanceof HTMLElement) {
96
+ if (document.activeElement instanceof HTMLElement && !fg('confluence_frontend_comments_panel_editor_focus')) {
96
97
  document.activeElement.blur();
97
98
  }
98
99
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "119.0.7",
3
+ "version": "119.2.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,32 +31,32 @@
31
31
  "@atlaskit/analytics-next": "^11.1.0",
32
32
  "@atlaskit/button": "^23.2.0",
33
33
  "@atlaskit/code": "^17.2.0",
34
- "@atlaskit/editor-common": "^107.2.0",
34
+ "@atlaskit/editor-common": "^107.3.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.24.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-prosemirror": "7.0.0",
38
38
  "@atlaskit/editor-shared-styles": "^3.4.0",
39
39
  "@atlaskit/editor-tables": "^2.9.0",
40
40
  "@atlaskit/emoji": "^69.3.0",
41
- "@atlaskit/feature-gate-js-client": "^5.3.0",
41
+ "@atlaskit/feature-gate-js-client": "^5.4.0",
42
42
  "@atlaskit/icon": "^27.2.0",
43
43
  "@atlaskit/link": "^3.2.0",
44
44
  "@atlaskit/link-datasource": "^4.11.0",
45
45
  "@atlaskit/media-card": "^79.3.0",
46
- "@atlaskit/media-client": "^34.1.0",
46
+ "@atlaskit/media-client": "^34.2.0",
47
47
  "@atlaskit/media-client-react": "^4.1.0",
48
- "@atlaskit/media-common": "^12.2.0",
48
+ "@atlaskit/media-common": "^12.3.0",
49
49
  "@atlaskit/media-filmstrip": "^51.0.0",
50
50
  "@atlaskit/media-ui": "^28.5.0",
51
- "@atlaskit/media-viewer": "^52.3.0",
51
+ "@atlaskit/media-viewer": "^52.4.0",
52
52
  "@atlaskit/platform-feature-flags": "^1.1.0",
53
53
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
54
54
  "@atlaskit/react-ufo": "^3.14.0",
55
- "@atlaskit/smart-card": "^38.16.0",
55
+ "@atlaskit/smart-card": "^38.17.0",
56
56
  "@atlaskit/status": "^3.0.0",
57
57
  "@atlaskit/task-decision": "^19.2.0",
58
58
  "@atlaskit/theme": "^18.0.0",
59
- "@atlaskit/tmp-editor-statsig": "^8.3.0",
59
+ "@atlaskit/tmp-editor-statsig": "^8.5.0",
60
60
  "@atlaskit/tokens": "^5.4.0",
61
61
  "@atlaskit/tooltip": "^20.3.0",
62
62
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -70,7 +70,7 @@
70
70
  "uuid": "^3.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "@atlaskit/link-provider": "^3.3.0",
73
+ "@atlaskit/link-provider": "^3.4.0",
74
74
  "@atlaskit/media-core": "^37.0.0",
75
75
  "react": "^18.2.0",
76
76
  "react-dom": "^18.2.0"
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/analytics-gas-types": "^5.1.0",
82
82
  "@atlaskit/checkbox": "^17.1.0",
83
83
  "@atlaskit/css-reset": "^7.3.0",
84
- "@atlaskit/link-provider": "^3.3.0",
84
+ "@atlaskit/link-provider": "^3.4.0",
85
85
  "@atlaskit/link-test-helpers": "^8.1.0",
86
86
  "@atlaskit/linking-common": "^9.1.0",
87
87
  "@atlaskit/media-core": "^37.0.0",
@@ -139,9 +139,6 @@
139
139
  "platform-ssr-table-resize": {
140
140
  "type": "boolean"
141
141
  },
142
- "cc_complexit_fe_improve_table_sorting": {
143
- "type": "boolean"
144
- },
145
142
  "cc_complexit_reduce_portal_rerenders": {
146
143
  "type": "boolean"
147
144
  },
@@ -271,6 +268,9 @@
271
268
  },
272
269
  "issue_table_single_line_row_height_fast_follows": {
273
270
  "type": "boolean"
271
+ },
272
+ "confluence_frontend_comments_panel_editor_focus": {
273
+ "type": "boolean"
274
274
  }
275
275
  },
276
276
  "af:exports": {