@atlaskit/renderer 126.1.4 → 126.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,17 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 126.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6e018ece82be1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e018ece82be1) -
8
+ Cleaned two ADF experiments but ADF prompt will still be enabled only when
9
+ platform_editor_ai_adf_prompts_in_all_products is turned on.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 126.1.4
4
16
 
5
17
  ### Patch Changes
@@ -656,8 +656,7 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
656
656
  * Telepointer changes will also cause a childList mutation, so we manually ignore it.
657
657
  * Telepointer changes are always a singular node-adds or node-removes.
658
658
  */
659
- var isAdfStreamingEnabled = (0, _platformFeatureFlags.fg)('platform_editor_ai_adf_prompts_in_all_products') || (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_non_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gemini25flash');
660
- 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)) {
659
+ if (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) && (0, _platformFeatureFlags.fg)('platform_editor_ai_adf_prompts_in_all_products')) {
661
660
  var _lastChild2 = _renderer.lastChild;
662
661
  if (_lastChild2) {
663
662
  /**
@@ -645,8 +645,7 @@ const RendererWrapper = /*#__PURE__*/React.memo(props => {
645
645
  * Telepointer changes will also cause a childList mutation, so we manually ignore it.
646
646
  * Telepointer changes are always a singular node-adds or node-removes.
647
647
  */
648
- const isAdfStreamingEnabled = fg('platform_editor_ai_adf_prompts_in_all_products') || expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gemini25flash') || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gemini25flash');
649
- 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)) {
648
+ if (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) && fg('platform_editor_ai_adf_prompts_in_all_products')) {
650
649
  const lastChild = renderer.lastChild;
651
650
  if (lastChild) {
652
651
  /**
@@ -647,8 +647,7 @@ var RendererWrapper = /*#__PURE__*/React.memo(function (props) {
647
647
  * Telepointer changes will also cause a childList mutation, so we manually ignore it.
648
648
  * Telepointer changes are always a singular node-adds or node-removes.
649
649
  */
650
- var isAdfStreamingEnabled = fg('platform_editor_ai_adf_prompts_in_all_products') || expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'cohort', 'adf_gemini25flash') || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gpt41mini') || expValEqualsNoExposure('platform_editor_ai_non_iw_adf_streaming', 'cohort', 'adf_gemini25flash');
651
- 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)) {
650
+ if (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) && fg('platform_editor_ai_adf_prompts_in_all_products')) {
652
651
  var _lastChild2 = _renderer.lastChild;
653
652
  if (_lastChild2) {
654
653
  /**
@@ -41,6 +41,7 @@ export type RendererWrapperProps = {
41
41
  isTopLevelRenderer?: boolean;
42
42
  onClick?: (event: React.MouseEvent) => void;
43
43
  onMouseDown?: (event: React.MouseEvent) => void;
44
+ product?: string;
44
45
  shouldRemoveEmptySpaceAroundContent?: boolean;
45
46
  ssr?: MediaSSR;
46
47
  useBlockRenderForCodeBlock: boolean;
@@ -41,6 +41,7 @@ export type RendererWrapperProps = {
41
41
  isTopLevelRenderer?: boolean;
42
42
  onClick?: (event: React.MouseEvent) => void;
43
43
  onMouseDown?: (event: React.MouseEvent) => void;
44
+ product?: string;
44
45
  shouldRemoveEmptySpaceAroundContent?: boolean;
45
46
  ssr?: MediaSSR;
46
47
  useBlockRenderForCodeBlock: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "126.1.4",
3
+ "version": "126.2.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,13 +43,13 @@
43
43
  "@atlaskit/link-datasource": "^4.32.0",
44
44
  "@atlaskit/link-extractors": "^2.4.0",
45
45
  "@atlaskit/linking-common": "^9.9.0",
46
- "@atlaskit/media-card": "^79.14.0",
46
+ "@atlaskit/media-card": "^79.15.0",
47
47
  "@atlaskit/media-client": "^35.7.0",
48
48
  "@atlaskit/media-client-react": "^4.1.0",
49
49
  "@atlaskit/media-common": "^12.3.0",
50
50
  "@atlaskit/media-filmstrip": "^51.1.0",
51
51
  "@atlaskit/media-ui": "^28.7.0",
52
- "@atlaskit/media-viewer": "^52.6.0",
52
+ "@atlaskit/media-viewer": "^52.7.0",
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
55
55
  "@atlaskit/react-ufo": "^5.0.0",
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/status": "^3.1.0",
58
58
  "@atlaskit/task-decision": "^19.2.0",
59
59
  "@atlaskit/theme": "^21.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^16.31.0",
60
+ "@atlaskit/tmp-editor-statsig": "^16.34.0",
61
61
  "@atlaskit/tokens": "^10.1.0",
62
62
  "@atlaskit/tooltip": "^20.14.0",
63
63
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -71,7 +71,7 @@
71
71
  "uuid": "^3.1.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@atlaskit/editor-common": "^111.8.0",
74
+ "@atlaskit/editor-common": "^111.9.0",
75
75
  "@atlaskit/link-provider": "^4.1.0",
76
76
  "@atlaskit/media-core": "^37.0.0",
77
77
  "react": "^18.2.0",