@atlaskit/renderer 151.0.3 → 152.0.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
+ ## 152.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4249049d8adeb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4249049d8adeb) -
8
+ Remove platform_nested_table_style_override and retain nested renderer table style overrides while
9
+ preserving table-cell safeguards.
10
+ - [`49d75093d8f1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/49d75093d8f1c) -
11
+ Clean up feature gate `platform_editor_custom_emoji_unicode_fallback`
12
+ - [`904166434c26b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/904166434c26b) -
13
+ Remove abandoned draft annotation ancestor node logging. Delete the unused
14
+ `getRangeAncestorNodeNames` export and `ancestorNodeTypes` annotation result fields. Renderer
15
+ annotations no longer contain the unused ancestor node field.
16
+ - Updated dependencies
17
+
18
+ ## 151.0.4
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 151.0.3
4
25
 
5
26
  ### Patch Changes
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getRendererRangeAncestorNodeNames = getRendererRangeAncestorNodeNames;
7
6
  exports.getRendererRangeInlineNodeNames = getRendererRangeInlineNodeNames;
8
7
  var _annotation = require("@atlaskit/editor-common/utils/annotation");
9
8
  var _fg = require("@atlaskit/platform-feature-flags/fg");
@@ -22,20 +21,4 @@ function getRendererRangeInlineNodeNames(_ref) {
22
21
  pos: pos
23
22
  });
24
23
  return inlineNodeNames;
25
- }
26
- function getRendererRangeAncestorNodeNames(_ref2) {
27
- var actions = _ref2.actions,
28
- pos = _ref2.pos;
29
- if (!(0, _fg.fg)('cc_comments_log_draft_annotation_ancestor_nodes')) {
30
- return undefined;
31
- }
32
- var doc = actions.doc;
33
- if (!pos || !doc) {
34
- return undefined;
35
- }
36
- var ancestorNodeNames = (0, _annotation.getRangeAncestorNodeNames)({
37
- doc: doc,
38
- pos: pos
39
- });
40
- return ancestorNodeNames;
41
24
  }
@@ -432,13 +432,6 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
432
432
  to: to
433
433
  }
434
434
  }),
435
- ancestorNodeTypes: (0, _getRendererRangeInlineNodeNames.getRendererRangeAncestorNodeNames)({
436
- actions: this,
437
- pos: {
438
- from: from,
439
- to: to
440
- }
441
- }),
442
435
  originalSelection: originalSelection,
443
436
  numMatches: numMatches,
444
437
  matchIndex: matchIndex,
@@ -439,7 +439,7 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
439
439
  key: "applyNestedRendererTableFix",
440
440
  value: function applyNestedRendererTableFix() {
441
441
  var _this$props$tableNode;
442
- if (!this.containerRef || !(0, _fg.fg)('platform_nested_table_style_override')) {
442
+ if (!this.containerRef) {
443
443
  return;
444
444
  }
445
445
  if (!this.isInsideNestedRenderer() || this.isInsideTableContext()) {
@@ -79,7 +79,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
79
79
  var TABLE_INFO_TIMEOUT = 10000;
80
80
  var RENDER_EVENT_SAMPLE_RATE = 0.1;
81
81
  var packageName = "@atlaskit/renderer";
82
- var packageVersion = "151.0.2";
82
+ var packageVersion = "151.0.4";
83
83
  var setAsQueryContainerStyles = (0, _react2.css)({
84
84
  containerName: 'ak-renderer-wrapper',
85
85
  containerType: 'inline-size'
@@ -1,4 +1,4 @@
1
- import { getRangeInlineNodeNames, getRangeAncestorNodeNames } from '@atlaskit/editor-common/utils/annotation';
1
+ import { getRangeInlineNodeNames } from '@atlaskit/editor-common/utils/annotation';
2
2
  import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
  export function getRendererRangeInlineNodeNames({
4
4
  actions,
@@ -18,23 +18,4 @@ export function getRendererRangeInlineNodeNames({
18
18
  pos
19
19
  });
20
20
  return inlineNodeNames;
21
- }
22
- export function getRendererRangeAncestorNodeNames({
23
- actions,
24
- pos
25
- }) {
26
- if (!fg('cc_comments_log_draft_annotation_ancestor_nodes')) {
27
- return undefined;
28
- }
29
- const {
30
- doc
31
- } = actions;
32
- if (!pos || !doc) {
33
- return undefined;
34
- }
35
- const ancestorNodeNames = getRangeAncestorNodeNames({
36
- doc,
37
- pos
38
- });
39
- return ancestorNodeNames;
40
21
  }
@@ -7,7 +7,7 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { AddNodeMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
8
8
  import { fg } from '@atlaskit/platform-feature-flags/fg';
9
9
  import { createAnnotationStep, getPosFromRange } from '../steps';
10
- import { getRendererRangeInlineNodeNames, getRendererRangeAncestorNodeNames } from './get-renderer-range-inline-node-names';
10
+ import { getRendererRangeInlineNodeNames } from './get-renderer-range-inline-node-names';
11
11
  import { getIndexMatch, isBlockAnnotationTarget } from './matches-utils';
12
12
  import { getSelectionContext } from './selection';
13
13
  export default class RendererActions {
@@ -398,13 +398,6 @@ export default class RendererActions {
398
398
  to
399
399
  }
400
400
  }),
401
- ancestorNodeTypes: getRendererRangeAncestorNodeNames({
402
- actions: this,
403
- pos: {
404
- from,
405
- to
406
- }
407
- }),
408
401
  originalSelection,
409
402
  numMatches,
410
403
  matchIndex,
@@ -388,7 +388,7 @@ export class TableContainer extends React.Component {
388
388
  */
389
389
  applyNestedRendererTableFix() {
390
390
  var _this$props$tableNode;
391
- if (!this.containerRef || !fg('platform_nested_table_style_override')) {
391
+ if (!this.containerRef) {
392
392
  return;
393
393
  }
394
394
  if (!this.isInsideNestedRenderer() || this.isInsideTableContext()) {
@@ -64,7 +64,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
64
64
  const TABLE_INFO_TIMEOUT = 10000;
65
65
  const RENDER_EVENT_SAMPLE_RATE = 0.1;
66
66
  const packageName = "@atlaskit/renderer";
67
- const packageVersion = "151.0.2";
67
+ const packageVersion = "151.0.4";
68
68
  const setAsQueryContainerStyles = css({
69
69
  containerName: 'ak-renderer-wrapper',
70
70
  containerType: 'inline-size'
@@ -1,4 +1,4 @@
1
- import { getRangeInlineNodeNames, getRangeAncestorNodeNames } from '@atlaskit/editor-common/utils/annotation';
1
+ import { getRangeInlineNodeNames } from '@atlaskit/editor-common/utils/annotation';
2
2
  import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
  export function getRendererRangeInlineNodeNames(_ref) {
4
4
  var actions = _ref.actions,
@@ -15,20 +15,4 @@ export function getRendererRangeInlineNodeNames(_ref) {
15
15
  pos: pos
16
16
  });
17
17
  return inlineNodeNames;
18
- }
19
- export function getRendererRangeAncestorNodeNames(_ref2) {
20
- var actions = _ref2.actions,
21
- pos = _ref2.pos;
22
- if (!fg('cc_comments_log_draft_annotation_ancestor_nodes')) {
23
- return undefined;
24
- }
25
- var doc = actions.doc;
26
- if (!pos || !doc) {
27
- return undefined;
28
- }
29
- var ancestorNodeNames = getRangeAncestorNodeNames({
30
- doc: doc,
31
- pos: pos
32
- });
33
- return ancestorNodeNames;
34
18
  }
@@ -10,7 +10,7 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
10
10
  import { AddNodeMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
11
11
  import { fg } from '@atlaskit/platform-feature-flags/fg';
12
12
  import { createAnnotationStep, getPosFromRange } from '../steps';
13
- import { getRendererRangeInlineNodeNames, getRendererRangeAncestorNodeNames } from './get-renderer-range-inline-node-names';
13
+ import { getRendererRangeInlineNodeNames } from './get-renderer-range-inline-node-names';
14
14
  import { getIndexMatch, isBlockAnnotationTarget } from './matches-utils';
15
15
  import { getSelectionContext as _getSelectionContext } from './selection';
16
16
  var RendererActions = /*#__PURE__*/function () {
@@ -425,13 +425,6 @@ var RendererActions = /*#__PURE__*/function () {
425
425
  to: to
426
426
  }
427
427
  }),
428
- ancestorNodeTypes: getRendererRangeAncestorNodeNames({
429
- actions: this,
430
- pos: {
431
- from: from,
432
- to: to
433
- }
434
- }),
435
428
  originalSelection: originalSelection,
436
429
  numMatches: numMatches,
437
430
  matchIndex: matchIndex,
@@ -434,7 +434,7 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
434
434
  key: "applyNestedRendererTableFix",
435
435
  value: function applyNestedRendererTableFix() {
436
436
  var _this$props$tableNode;
437
- if (!this.containerRef || !fg('platform_nested_table_style_override')) {
437
+ if (!this.containerRef) {
438
438
  return;
439
439
  }
440
440
  if (!this.isInsideNestedRenderer() || this.isInsideTableContext()) {
@@ -69,7 +69,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
69
69
  var TABLE_INFO_TIMEOUT = 10000;
70
70
  var RENDER_EVENT_SAMPLE_RATE = 0.1;
71
71
  var packageName = "@atlaskit/renderer";
72
- var packageVersion = "151.0.2";
72
+ var packageVersion = "151.0.4";
73
73
  var setAsQueryContainerStyles = css({
74
74
  containerName: 'ak-renderer-wrapper',
75
75
  containerType: 'inline-size'
@@ -10,14 +10,3 @@ export declare function getRendererRangeInlineNodeNames({ actions, pos, }: {
10
10
  to: number;
11
11
  } | false;
12
12
  }): string[] | undefined;
13
- export declare function getRendererRangeAncestorNodeNames({ actions, pos, }: {
14
- actions: RendererActions;
15
- /**
16
- * documentPosition is caclulated by `actions.getPositionFromRange`
17
- * where `false` means that the selection is not able to be calculated.
18
- */
19
- pos?: {
20
- from: number;
21
- to: number;
22
- } | false;
23
- }): string[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "151.0.3",
3
+ "version": "152.0.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/analytics-namespaced-context": "^8.2.0",
41
41
  "@atlaskit/analytics-next": "^12.6.0",
42
42
  "@atlaskit/browser-apis": "^1.2.0",
43
- "@atlaskit/button": "^25.4.0",
43
+ "@atlaskit/button": "^25.5.0",
44
44
  "@atlaskit/code": "^20.0.0",
45
45
  "@atlaskit/css": "^1.1.0",
46
46
  "@atlaskit/editor-card-provider": "^8.1.0",
@@ -61,7 +61,7 @@
61
61
  "@atlaskit/media-client-react": "^7.0.0",
62
62
  "@atlaskit/media-common": "^14.7.0",
63
63
  "@atlaskit/media-filmstrip": "^53.0.0",
64
- "@atlaskit/media-ui": "^31.3.0",
64
+ "@atlaskit/media-ui": "^31.4.0",
65
65
  "@atlaskit/media-viewer": "^54.11.0",
66
66
  "@atlaskit/platform-feature-experiments": "^0.3.0",
67
67
  "@atlaskit/platform-feature-flags": "^2.2.0",
@@ -73,7 +73,7 @@
73
73
  "@atlaskit/status": "^5.13.0",
74
74
  "@atlaskit/task-decision": "^21.12.0",
75
75
  "@atlaskit/theme": "^28.2.0",
76
- "@atlaskit/tmp-editor-statsig": "^241.0.0",
76
+ "@atlaskit/tmp-editor-statsig": "^242.0.0",
77
77
  "@atlaskit/tokens": "^20.6.0",
78
78
  "@atlaskit/tooltip": "^24.4.0",
79
79
  "@atlaskit/visually-hidden": "^4.4.0",
@@ -88,7 +88,7 @@
88
88
  "uuid": "^11.1.1"
89
89
  },
90
90
  "peerDependencies": {
91
- "@atlaskit/editor-common": "^132.0.0",
91
+ "@atlaskit/editor-common": "^133.0.0",
92
92
  "@atlaskit/link-provider": "^6.0.0",
93
93
  "@atlaskit/media-core": "^39.0.0",
94
94
  "react": "^18.2.0 || ^19.2.0",
@@ -100,7 +100,7 @@
100
100
  "@af/visual-regression": "workspace:^",
101
101
  "@atlaskit/analytics-gas-types": "^6.2.0",
102
102
  "@atlaskit/checkbox": "^19.3.0",
103
- "@atlaskit/editor-plugin-media": "^30.0.0",
103
+ "@atlaskit/editor-plugin-media": "^31.0.0",
104
104
  "@atlaskit/editor-test-helpers": "workspace:^",
105
105
  "@atlaskit/inline-edit": "^16.4.0",
106
106
  "@atlaskit/json-ld-types": "^2.1.0",
@@ -159,9 +159,6 @@
159
159
  "platform_native_embeds_rollout_non_maui_experience": {
160
160
  "type": "boolean"
161
161
  },
162
- "cc_comments_log_draft_annotation_ancestor_nodes": {
163
- "type": "boolean"
164
- },
165
162
  "editor_inline_comments_on_inline_nodes": {
166
163
  "type": "boolean"
167
164
  },
@@ -184,10 +181,6 @@
184
181
  "platform_ssr_smartlink_embeds": {
185
182
  "type": "boolean"
186
183
  },
187
- "platform_editor_custom_emoji_unicode_fallback": {
188
- "type": "boolean",
189
- "referenceOnly": true
190
- },
191
184
  "platform_bitbucket_fix_shortname_and_ordering": {
192
185
  "type": "boolean",
193
186
  "referenceOnly": true
@@ -214,9 +207,6 @@
214
207
  "platform-dst-lozenge-tag-badge-visual-uplifts": {
215
208
  "type": "boolean"
216
209
  },
217
- "platform_nested_table_style_override": {
218
- "type": "boolean"
219
- },
220
210
  "platform_nested_table_style_override_2": {
221
211
  "type": "boolean"
222
212
  },