@atlaskit/renderer 121.2.0 → 121.3.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,26 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 121.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`9fd320fad58ed`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9fd320fad58ed) -
8
+ EDITOR-1516 Updated ADF experiments
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 121.2.1
15
+
16
+ ### Patch Changes
17
+
18
+ - [`5237c47d9ee25`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5237c47d9ee25) -
19
+ FD-95294 clean up fg sticky_header_in_embedded_confluence_fix
20
+ - [`34525433d4537`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/34525433d4537) -
21
+ Updated profile card snapshot
22
+ - Updated dependencies
23
+
3
24
  ## 121.2.0
4
25
 
5
26
  ### Minor Changes
@@ -14,7 +14,6 @@ var _react2 = require("@emotion/react");
14
14
  var _styles = require("@atlaskit/editor-common/styles");
15
15
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
16
16
  var _colors = require("@atlaskit/theme/colors");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _table = require("./table");
19
18
  var _injectProps = require("../../utils/inject-props");
20
19
  /**
@@ -82,7 +81,7 @@ var FixedTableDiv = function FixedTableDiv(props) {
82
81
  style: {
83
82
  '--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
84
83
  width: "".concat(wrapperWidth, "px"),
85
- top: (0, _platformFeatureFlags.fg)('sticky_header_in_embedded_confluence_fix') ? typeof top === 'number' ? "".concat(top, "px") : undefined : top ? "".concat(top, "px") : undefined
84
+ top: typeof top === 'number' ? "".concat(top, "px") : undefined
86
85
  }
87
86
  }), props.children);
88
87
  };
@@ -600,7 +600,7 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
600
600
  * Telepointer changes will also cause a childList mutation, so we manually ignore it.
601
601
  * Telepointer changes are always a singular node-adds or node-removes.
602
602
  */
603
- var isAdfStreamingEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_personalisation') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_ct_sg_adf_streaming', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_non_iw_adf_streaming', 'isEnabled', true);
603
+ var isAdfStreamingEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gemini25flash') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_ct_sg_adf_streaming', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gemini25flash');
604
604
  if (isAdfStreamingEnabled && mutation.type === 'childList' && !(mutation.addedNodes.length === 1 && ((_mutation$addedNodes$ = mutation.addedNodes[0]) === null || _mutation$addedNodes$ === void 0 ? void 0 : _mutation$addedNodes$.id) === _style.TELEPOINTER_ID || mutation.removedNodes.length === 1 && ((_mutation$removedNode = mutation.removedNodes[0]) === null || _mutation$removedNode === void 0 ? void 0 : _mutation$removedNode.id) === _style.TELEPOINTER_ID)) {
605
605
  var _lastChild2 = _renderer.lastChild;
606
606
  if (_lastChild2) {
@@ -11,7 +11,6 @@ import { css, jsx } from '@emotion/react';
11
11
  import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
12
12
  import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
13
13
  import { N40A } from '@atlaskit/theme/colors';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { Table } from './table';
16
15
  import { recursivelyInjectProps } from '../../utils/inject-props';
17
16
  export const tableStickyPadding = 8;
@@ -83,7 +82,7 @@ const FixedTableDiv = props => {
83
82
  style: {
84
83
  '--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
85
84
  width: `${wrapperWidth}px`,
86
- top: fg('sticky_header_in_embedded_confluence_fix') ? typeof top === 'number' ? `${top}px` : undefined : top ? `${top}px` : undefined
85
+ top: typeof top === 'number' ? `${top}px` : undefined
87
86
  }
88
87
  }), props.children);
89
88
  };
@@ -586,7 +586,7 @@ const RendererWrapper = /*#__PURE__*/React.memo(props => {
586
586
  * Telepointer changes will also cause a childList mutation, so we manually ignore it.
587
587
  * Telepointer changes are always a singular node-adds or node-removes.
588
588
  */
589
- const isAdfStreamingEnabled = expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf') || expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_personalisation') || expValEqualsNoExposure('platform_editor_ai_ct_sg_adf_streaming', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'isEnabled', true);
589
+ const isAdfStreamingEnabled = expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gemini25flash') || expValEqualsNoExposure('platform_editor_ai_ct_sg_adf_streaming', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gemini25flash');
590
590
  if (isAdfStreamingEnabled && mutation.type === 'childList' && !(mutation.addedNodes.length === 1 && ((_mutation$addedNodes$ = mutation.addedNodes[0]) === null || _mutation$addedNodes$ === void 0 ? void 0 : _mutation$addedNodes$.id) === TELEPOINTER_ID || mutation.removedNodes.length === 1 && ((_mutation$removedNode = mutation.removedNodes[0]) === null || _mutation$removedNode === void 0 ? void 0 : _mutation$removedNode.id) === TELEPOINTER_ID)) {
591
591
  const lastChild = renderer.lastChild;
592
592
  if (lastChild) {
@@ -14,7 +14,6 @@ import { css, jsx } from '@emotion/react';
14
14
  import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
15
15
  import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
16
16
  import { N40A } from '@atlaskit/theme/colors';
17
- import { fg } from '@atlaskit/platform-feature-flags';
18
17
  import { Table } from './table';
19
18
  import { recursivelyInjectProps } from '../../utils/inject-props';
20
19
  export var tableStickyPadding = 8;
@@ -73,7 +72,7 @@ var FixedTableDiv = function FixedTableDiv(props) {
73
72
  style: {
74
73
  '--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
75
74
  width: "".concat(wrapperWidth, "px"),
76
- top: fg('sticky_header_in_embedded_confluence_fix') ? typeof top === 'number' ? "".concat(top, "px") : undefined : top ? "".concat(top, "px") : undefined
75
+ top: typeof top === 'number' ? "".concat(top, "px") : undefined
77
76
  }
78
77
  }), props.children);
79
78
  };
@@ -591,7 +591,7 @@ var RendererWrapper = /*#__PURE__*/React.memo(function (props) {
591
591
  * Telepointer changes will also cause a childList mutation, so we manually ignore it.
592
592
  * Telepointer changes are always a singular node-adds or node-removes.
593
593
  */
594
- var isAdfStreamingEnabled = expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf') || expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_personalisation') || expValEqualsNoExposure('platform_editor_ai_ct_sg_adf_streaming', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'isEnabled', true);
594
+ var isAdfStreamingEnabled = expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gemini25flash') || expValEqualsNoExposure('platform_editor_ai_ct_sg_adf_streaming', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gemini25flash');
595
595
  if (isAdfStreamingEnabled && mutation.type === 'childList' && !(mutation.addedNodes.length === 1 && ((_mutation$addedNodes$ = mutation.addedNodes[0]) === null || _mutation$addedNodes$ === void 0 ? void 0 : _mutation$addedNodes$.id) === TELEPOINTER_ID || mutation.removedNodes.length === 1 && ((_mutation$removedNode = mutation.removedNodes[0]) === null || _mutation$removedNode === void 0 ? void 0 : _mutation$removedNode.id) === TELEPOINTER_ID)) {
596
596
  var _lastChild2 = _renderer.lastChild;
597
597
  if (_lastChild2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "121.2.0",
3
+ "version": "121.3.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/status": "^3.0.0",
55
55
  "@atlaskit/task-decision": "^19.2.0",
56
56
  "@atlaskit/theme": "^20.0.0",
57
- "@atlaskit/tmp-editor-statsig": "^12.5.0",
57
+ "@atlaskit/tmp-editor-statsig": "^12.6.0",
58
58
  "@atlaskit/tokens": "^6.2.0",
59
59
  "@atlaskit/tooltip": "^20.4.0",
60
60
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -68,7 +68,7 @@
68
68
  "uuid": "^3.1.0"
69
69
  },
70
70
  "peerDependencies": {
71
- "@atlaskit/editor-common": "^108.4.0",
71
+ "@atlaskit/editor-common": "^108.5.0",
72
72
  "@atlaskit/link-provider": "^3.7.0",
73
73
  "@atlaskit/media-core": "^37.0.0",
74
74
  "react": "^18.2.0",
@@ -89,7 +89,7 @@
89
89
  "@atlaskit/mention": "^24.2.0",
90
90
  "@atlaskit/modal-dialog": "^14.3.0",
91
91
  "@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-d1445f2f74.patch",
92
- "@atlaskit/profilecard": "^24.10.0",
92
+ "@atlaskit/profilecard": "^24.11.0",
93
93
  "@atlaskit/util-data-test": "^18.1.0",
94
94
  "@atlassian/feature-flags-test-utils": "^0.3.0",
95
95
  "@testing-library/react": "^13.4.0",
@@ -209,9 +209,6 @@
209
209
  "platform_ssr_smartlink_cards": {
210
210
  "type": "boolean"
211
211
  },
212
- "sticky_header_in_embedded_confluence_fix": {
213
- "type": "boolean"
214
- },
215
212
  "platform_editor_renderer_rm_usespecbasedvalidator": {
216
213
  "type": "boolean"
217
214
  },