@atlaskit/renderer 137.1.11 → 137.2.1

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,46 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 137.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4db8fed8666c0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4db8fed8666c0) -
8
+ Clean up experiment `platform_editor_close_expand_find` and permanently enable browser find in
9
+ collapsed Expand content.
10
+ - [`5cacf96fc4102`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5cacf96fc4102) -
11
+ A collapsed expand no longer wraps a body that is standing in for itself in `WidthProvider`, or
12
+ renders the div that clears the following sibling's margin. Nothing in that body is laid out until
13
+ the reader or browser find opens the expand, so neither is of any use yet, and `WidthProvider`
14
+ costs two divs, a `ResizeObserver` and an `IntersectionObserver` for every expand on the page.
15
+
16
+ Opening the expand puts both back. React cannot add a DOM ancestor without rebuilding what is
17
+ under it, so the blocks that do render while collapsed are mounted a second time then: a nested
18
+ expand, which comes back open through the set browser find records it in, and an extension holding
19
+ stashed ADF, whose nested renderer is rebuilt.
20
+
21
+ Behind the `platform_editor_defer_collapsed_expand_body` experiment, which controls whether a
22
+ collapsed expand holds its body back at all.
23
+
24
+ - [`08bf773f7599a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/08bf773f7599a) -
25
+ Migrate experiments to use the new platform experiment API. This major release removes the
26
+ migrated experiment entries from `@atlaskit/tmp-editor-statsig`'s `editorExperimentsConfig` and
27
+ test overrides. Consumers must replace legacy `expVal`/`expValEquals` calls with
28
+ `@atlaskit/platform-feature-experiments` APIs, using `isExperimentEnabled` for boolean `isEnabled`
29
+ experiments and `expVal` for parameterized experiments; use `mockExpEnabled`/`mockExpDisabled` in
30
+ tests.
31
+ - Updated dependencies
32
+
33
+ ## 137.2.0
34
+
35
+ ### Minor Changes
36
+
37
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
38
+ Remove stale API report artifacts from published Platform packages.
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies
43
+
3
44
  ## 137.1.11
4
45
 
5
46
  ### Patch Changes
@@ -19,8 +19,9 @@ var _react = _interopRequireDefault(require("react"));
19
19
  var _react2 = require("@emotion/react");
20
20
  var _reactIntl = require("react-intl");
21
21
  var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
22
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
22
+ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
23
23
  var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
24
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
24
25
  var _messages = require("../../messages");
25
26
  var _excluded = ["children"];
26
27
  /**
@@ -74,7 +75,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
74
75
  isClicked: isClicked
75
76
  }, function () {
76
77
  // Reposition tooltip after content change (replaces the key-based remount)
77
- if ((0, _expValEquals.expValEquals)('a11y-fixes-week4-may-2026', 'isEnabled', true)) {
78
+ if ((0, _isExperimentEnabled.isExperimentEnabled)('a11y-fixes-week4-may-2026')) {
78
79
  var _this$_tooltipUpdate, _this2;
79
80
  (_this$_tooltipUpdate = (_this2 = _this)._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 || _this$_tooltipUpdate.call(_this2);
80
81
  }
@@ -158,7 +159,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
158
159
  value: function render() {
159
160
  var tooltipMessage = this.state.tooltipMessage;
160
161
  if (tooltipMessage) {
161
- if ((0, _expValEquals.expValEquals)('a11y-fixes-week4-may-2026', 'isEnabled', true)) {
162
+ if ((0, _isExperimentEnabled.isExperimentEnabled)('a11y-fixes-week4-may-2026')) {
162
163
  // Fix for A11Y-30972: Use content as a function with update callback so
163
164
  // the Tooltip repositions without unmounting (which caused focus loss).
164
165
  // @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
@@ -102,7 +102,7 @@ var titleContainerStylesExpanded = (0, _react.css)({
102
102
  });
103
103
 
104
104
  // Base styles for the content container. visibility:hidden hides collapsed content.
105
- // When browser find is enabled, the useEffect clears visibility:hidden after setting
105
+ // When browser find is supported, the useEffect clears visibility:hidden after setting
106
106
  // hidden="until-found" on the DOM element, which applies content-visibility:hidden natively —
107
107
  // this hides the content while allowing browser Ctrl+F to index the text.
108
108
  // The visibility:hidden in CSS serves as an SSR fallback (useEffect doesn't run server-side).
@@ -121,8 +121,8 @@ var contentContainerStyles = (0, _react.css)({
121
121
  }
122
122
  });
123
123
 
124
- // display:flow-root is applied only when browser find is NOT enabled.
125
- // It must NOT be set when browser find is enabled — it overrides the
124
+ // display:flow-root is applied only when browser find is not supported.
125
+ // It must NOT be set when browser find is supported — it overrides the
126
126
  // content-visibility:hidden applied by hidden="until-found" and makes content visible.
127
127
  var contentContainerStylesFlowRoot = (0, _react.css)({
128
128
  display: 'flow-root'
@@ -145,7 +145,7 @@ var contentContainerStylesNotExpanded = (0, _react.css)({
145
145
  }
146
146
  });
147
147
 
148
- // When browser find is enabled and expand is collapsed, we rely on the
148
+ // When browser find is supported and expand is collapsed, we rely on the
149
149
  // hidden="until-found" attribute on the outer container to hide content.
150
150
  // We remove height:0/overflow:hidden/clip from the inner wrapper so the
151
151
  // browser can actually search through the content.
@@ -331,7 +331,7 @@ function Expand(_ref) {
331
331
  if (!contentWrapper) {
332
332
  return;
333
333
  }
334
- if (supportsHiddenUntilFound && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_close_expand_find') && !expanded) {
334
+ if (supportsHiddenUntilFound && !expanded) {
335
335
  contentWrapper.setAttribute('hidden', 'until-found');
336
336
  // Products ship a CSS reset with `[hidden] { display: none }` — Confluence does. That is an
337
337
  // author rule, so it beats the UA stylesheet's
@@ -354,7 +354,7 @@ function Expand(_ref) {
354
354
  }
355
355
  }, [expanded, supportsHiddenUntilFound]);
356
356
  (0, _react2.useEffect)(function () {
357
- if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_close_expand_find') || expanded) {
357
+ if (expanded) {
358
358
  return;
359
359
  }
360
360
  var contentWrapper = contentWrapperRef.current;
@@ -383,6 +383,9 @@ function Expand(_ref) {
383
383
  revealedByFind: revealedByFind
384
384
  };
385
385
  }, [revealed, openWithAncestors, revealedByFind]);
386
+ var body = (0, _react.jsx)(_expandBody.ExpandBodyProvider, {
387
+ value: expandBody
388
+ }, children);
386
389
  return (0, _react.jsx)(Container, {
387
390
  "data-testid": "expand-container-".concat(nodeType, "-").concat(id),
388
391
  "data-node-type": nodeType,
@@ -440,16 +443,14 @@ function Expand(_ref) {
440
443
  id: id
441
444
  }, title || intl.formatMessage(_ui.expandMessages.expandDefaultTitle))), (0, _react.jsx)(ContentContainer, {
442
445
  expanded: expanded,
443
- enableBrowserFind: supportsHiddenUntilFound && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_close_expand_find'),
446
+ enableBrowserFind: supportsHiddenUntilFound,
444
447
  contentRef: contentContainerRef
445
448
  }, (0, _react.jsx)("div", {
446
449
  className: "".concat(nodeType, "-content-wrapper"),
447
450
  ref: contentWrapperRef
448
- }, (0, _react.jsx)(_ui.WidthProvider, null, (0, _react.jsx)("div", {
451
+ }, revealed ? (0, _react.jsx)(_ui.WidthProvider, null, (0, _react.jsx)("div", {
449
452
  css: clearNextSiblingMarginTopStyle
450
- }), (0, _react.jsx)(_expandBody.ExpandBodyProvider, {
451
- value: expandBody
452
- }, children)))));
453
+ }), body) : body)));
453
454
  }
454
455
 
455
456
  // eslint-disable-next-line @typescript-eslint/no-restricted-types
@@ -74,7 +74,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
74
74
  var TABLE_INFO_TIMEOUT = 10000;
75
75
  var RENDER_EVENT_SAMPLE_RATE = 0.1;
76
76
  var packageName = "@atlaskit/renderer";
77
- var packageVersion = "137.1.10";
77
+ var packageVersion = "137.2.0";
78
78
  var setAsQueryContainerStyles = (0, _react2.css)({
79
79
  containerName: 'ak-renderer-wrapper',
80
80
  containerType: 'inline-size'
@@ -10,8 +10,9 @@ import React from 'react';
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { injectIntl } from 'react-intl';
12
12
  import LinkIcon from '@atlaskit/icon/core/link';
13
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
14
14
  import Tooltip from '@atlaskit/tooltip/Tooltip';
15
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
15
16
  import { headingAnchorLinkMessages } from '../../messages';
16
17
  export const HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
17
18
  const CopyAnchorWrapperWithRef = /*#__PURE__*/React.forwardRef((props, ref) => {
@@ -57,7 +58,7 @@ class HeadingAnchor extends React.PureComponent {
57
58
  isClicked
58
59
  }, () => {
59
60
  // Reposition tooltip after content change (replaces the key-based remount)
60
- if (expValEquals('a11y-fixes-week4-may-2026', 'isEnabled', true)) {
61
+ if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
61
62
  var _this$_tooltipUpdate;
62
63
  (_this$_tooltipUpdate = this._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 ? void 0 : _this$_tooltipUpdate.call(this);
63
64
  }
@@ -123,7 +124,7 @@ class HeadingAnchor extends React.PureComponent {
123
124
  tooltipMessage
124
125
  } = this.state;
125
126
  if (tooltipMessage) {
126
- if (expValEquals('a11y-fixes-week4-may-2026', 'isEnabled', true)) {
127
+ if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
127
128
  // Fix for A11Y-30972: Use content as a function with update callback so
128
129
  // the Tooltip repositions without unmounting (which caused focus loss).
129
130
  // @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
@@ -91,7 +91,7 @@ const titleContainerStylesExpanded = css({
91
91
  });
92
92
 
93
93
  // Base styles for the content container. visibility:hidden hides collapsed content.
94
- // When browser find is enabled, the useEffect clears visibility:hidden after setting
94
+ // When browser find is supported, the useEffect clears visibility:hidden after setting
95
95
  // hidden="until-found" on the DOM element, which applies content-visibility:hidden natively —
96
96
  // this hides the content while allowing browser Ctrl+F to index the text.
97
97
  // The visibility:hidden in CSS serves as an SSR fallback (useEffect doesn't run server-side).
@@ -110,8 +110,8 @@ const contentContainerStyles = css({
110
110
  }
111
111
  });
112
112
 
113
- // display:flow-root is applied only when browser find is NOT enabled.
114
- // It must NOT be set when browser find is enabled — it overrides the
113
+ // display:flow-root is applied only when browser find is not supported.
114
+ // It must NOT be set when browser find is supported — it overrides the
115
115
  // content-visibility:hidden applied by hidden="until-found" and makes content visible.
116
116
  const contentContainerStylesFlowRoot = css({
117
117
  display: 'flow-root'
@@ -134,7 +134,7 @@ const contentContainerStylesNotExpanded = css({
134
134
  }
135
135
  });
136
136
 
137
- // When browser find is enabled and expand is collapsed, we rely on the
137
+ // When browser find is supported and expand is collapsed, we rely on the
138
138
  // hidden="until-found" attribute on the outer container to hide content.
139
139
  // We remove height:0/overflow:hidden/clip from the inner wrapper so the
140
140
  // browser can actually search through the content.
@@ -308,7 +308,7 @@ function Expand({
308
308
  if (!contentWrapper) {
309
309
  return;
310
310
  }
311
- if (supportsHiddenUntilFound && isExperimentEnabled('platform_editor_close_expand_find') && !expanded) {
311
+ if (supportsHiddenUntilFound && !expanded) {
312
312
  contentWrapper.setAttribute('hidden', 'until-found');
313
313
  // Products ship a CSS reset with `[hidden] { display: none }` — Confluence does. That is an
314
314
  // author rule, so it beats the UA stylesheet's
@@ -331,7 +331,7 @@ function Expand({
331
331
  }
332
332
  }, [expanded, supportsHiddenUntilFound]);
333
333
  useEffect(() => {
334
- if (!isExperimentEnabled('platform_editor_close_expand_find') || expanded) {
334
+ if (expanded) {
335
335
  return;
336
336
  }
337
337
  const contentWrapper = contentWrapperRef.current;
@@ -358,6 +358,9 @@ function Expand({
358
358
  openWithAncestors,
359
359
  revealedByFind
360
360
  }), [revealed, openWithAncestors, revealedByFind]);
361
+ const body = jsx(ExpandBodyProvider, {
362
+ value: expandBody
363
+ }, children);
361
364
  return jsx(Container, {
362
365
  "data-testid": `expand-container-${nodeType}-${id}`,
363
366
  "data-node-type": nodeType,
@@ -415,16 +418,14 @@ function Expand({
415
418
  id: id
416
419
  }, title || intl.formatMessage(expandMessages.expandDefaultTitle))), jsx(ContentContainer, {
417
420
  expanded: expanded,
418
- enableBrowserFind: supportsHiddenUntilFound && isExperimentEnabled('platform_editor_close_expand_find'),
421
+ enableBrowserFind: supportsHiddenUntilFound,
419
422
  contentRef: contentContainerRef
420
423
  }, jsx("div", {
421
424
  className: `${nodeType}-content-wrapper`,
422
425
  ref: contentWrapperRef
423
- }, jsx(WidthProvider, null, jsx("div", {
426
+ }, revealed ? jsx(WidthProvider, null, jsx("div", {
424
427
  css: clearNextSiblingMarginTopStyle
425
- }), jsx(ExpandBodyProvider, {
426
- value: expandBody
427
- }, children)))));
428
+ }), body) : body)));
428
429
  }
429
430
 
430
431
  // eslint-disable-next-line @typescript-eslint/no-restricted-types
@@ -60,7 +60,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
60
60
  const TABLE_INFO_TIMEOUT = 10000;
61
61
  const RENDER_EVENT_SAMPLE_RATE = 0.1;
62
62
  const packageName = "@atlaskit/renderer";
63
- const packageVersion = "137.1.10";
63
+ const packageVersion = "137.2.0";
64
64
  const setAsQueryContainerStyles = css({
65
65
  containerName: 'ak-renderer-wrapper',
66
66
  containerType: 'inline-size'
@@ -21,8 +21,9 @@ import React from 'react';
21
21
  import { css, jsx } from '@emotion/react';
22
22
  import { injectIntl } from 'react-intl';
23
23
  import LinkIcon from '@atlaskit/icon/core/link';
24
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
24
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
25
25
  import Tooltip from '@atlaskit/tooltip/Tooltip';
26
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
26
27
  import { headingAnchorLinkMessages } from '../../messages';
27
28
  export var HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
28
29
  var CopyAnchorWrapperWithRef = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -68,7 +69,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
68
69
  isClicked: isClicked
69
70
  }, function () {
70
71
  // Reposition tooltip after content change (replaces the key-based remount)
71
- if (expValEquals('a11y-fixes-week4-may-2026', 'isEnabled', true)) {
72
+ if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
72
73
  var _this$_tooltipUpdate, _this2;
73
74
  (_this$_tooltipUpdate = (_this2 = _this)._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 || _this$_tooltipUpdate.call(_this2);
74
75
  }
@@ -152,7 +153,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
152
153
  value: function render() {
153
154
  var tooltipMessage = this.state.tooltipMessage;
154
155
  if (tooltipMessage) {
155
- if (expValEquals('a11y-fixes-week4-may-2026', 'isEnabled', true)) {
156
+ if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
156
157
  // Fix for A11Y-30972: Use content as a function with update callback so
157
158
  // the Tooltip repositions without unmounting (which caused focus loss).
158
159
  // @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
@@ -92,7 +92,7 @@ var titleContainerStylesExpanded = css({
92
92
  });
93
93
 
94
94
  // Base styles for the content container. visibility:hidden hides collapsed content.
95
- // When browser find is enabled, the useEffect clears visibility:hidden after setting
95
+ // When browser find is supported, the useEffect clears visibility:hidden after setting
96
96
  // hidden="until-found" on the DOM element, which applies content-visibility:hidden natively —
97
97
  // this hides the content while allowing browser Ctrl+F to index the text.
98
98
  // The visibility:hidden in CSS serves as an SSR fallback (useEffect doesn't run server-side).
@@ -111,8 +111,8 @@ var contentContainerStyles = css({
111
111
  }
112
112
  });
113
113
 
114
- // display:flow-root is applied only when browser find is NOT enabled.
115
- // It must NOT be set when browser find is enabled — it overrides the
114
+ // display:flow-root is applied only when browser find is not supported.
115
+ // It must NOT be set when browser find is supported — it overrides the
116
116
  // content-visibility:hidden applied by hidden="until-found" and makes content visible.
117
117
  var contentContainerStylesFlowRoot = css({
118
118
  display: 'flow-root'
@@ -135,7 +135,7 @@ var contentContainerStylesNotExpanded = css({
135
135
  }
136
136
  });
137
137
 
138
- // When browser find is enabled and expand is collapsed, we rely on the
138
+ // When browser find is supported and expand is collapsed, we rely on the
139
139
  // hidden="until-found" attribute on the outer container to hide content.
140
140
  // We remove height:0/overflow:hidden/clip from the inner wrapper so the
141
141
  // browser can actually search through the content.
@@ -321,7 +321,7 @@ function Expand(_ref) {
321
321
  if (!contentWrapper) {
322
322
  return;
323
323
  }
324
- if (supportsHiddenUntilFound && isExperimentEnabled('platform_editor_close_expand_find') && !expanded) {
324
+ if (supportsHiddenUntilFound && !expanded) {
325
325
  contentWrapper.setAttribute('hidden', 'until-found');
326
326
  // Products ship a CSS reset with `[hidden] { display: none }` — Confluence does. That is an
327
327
  // author rule, so it beats the UA stylesheet's
@@ -344,7 +344,7 @@ function Expand(_ref) {
344
344
  }
345
345
  }, [expanded, supportsHiddenUntilFound]);
346
346
  useEffect(function () {
347
- if (!isExperimentEnabled('platform_editor_close_expand_find') || expanded) {
347
+ if (expanded) {
348
348
  return;
349
349
  }
350
350
  var contentWrapper = contentWrapperRef.current;
@@ -373,6 +373,9 @@ function Expand(_ref) {
373
373
  revealedByFind: revealedByFind
374
374
  };
375
375
  }, [revealed, openWithAncestors, revealedByFind]);
376
+ var body = jsx(ExpandBodyProvider, {
377
+ value: expandBody
378
+ }, children);
376
379
  return jsx(Container, {
377
380
  "data-testid": "expand-container-".concat(nodeType, "-").concat(id),
378
381
  "data-node-type": nodeType,
@@ -430,16 +433,14 @@ function Expand(_ref) {
430
433
  id: id
431
434
  }, title || intl.formatMessage(expandMessages.expandDefaultTitle))), jsx(ContentContainer, {
432
435
  expanded: expanded,
433
- enableBrowserFind: supportsHiddenUntilFound && isExperimentEnabled('platform_editor_close_expand_find'),
436
+ enableBrowserFind: supportsHiddenUntilFound,
434
437
  contentRef: contentContainerRef
435
438
  }, jsx("div", {
436
439
  className: "".concat(nodeType, "-content-wrapper"),
437
440
  ref: contentWrapperRef
438
- }, jsx(WidthProvider, null, jsx("div", {
441
+ }, revealed ? jsx(WidthProvider, null, jsx("div", {
439
442
  css: clearNextSiblingMarginTopStyle
440
- }), jsx(ExpandBodyProvider, {
441
- value: expandBody
442
- }, children)))));
443
+ }), body) : body)));
443
444
  }
444
445
 
445
446
  // eslint-disable-next-line @typescript-eslint/no-restricted-types
@@ -65,7 +65,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
65
65
  var TABLE_INFO_TIMEOUT = 10000;
66
66
  var RENDER_EVENT_SAMPLE_RATE = 0.1;
67
67
  var packageName = "@atlaskit/renderer";
68
- var packageVersion = "137.1.10";
68
+ var packageVersion = "137.2.0";
69
69
  var setAsQueryContainerStyles = css({
70
70
  containerName: 'ak-renderer-wrapper',
71
71
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "137.1.11",
3
+ "version": "137.2.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,49 +31,49 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@atlaskit/adf-schema": "^57.2.0",
34
- "@atlaskit/adf-utils": "^20.7.0",
34
+ "@atlaskit/adf-utils": "^20.8.0",
35
35
  "@atlaskit/afm-i18n-platform-editor-renderer": "2.200.0",
36
- "@atlaskit/analytics-listeners": "^11.2.0",
37
- "@atlaskit/analytics-namespaced-context": "^8.1.0",
38
- "@atlaskit/analytics-next": "^12.4.0",
36
+ "@atlaskit/analytics-listeners": "^11.3.0",
37
+ "@atlaskit/analytics-namespaced-context": "^8.2.0",
38
+ "@atlaskit/analytics-next": "^12.5.0",
39
39
  "@atlaskit/browser-apis": "^1.2.0",
40
- "@atlaskit/button": "^25.2.0",
41
- "@atlaskit/code": "^19.1.0",
40
+ "@atlaskit/button": "^25.3.0",
41
+ "@atlaskit/code": "^19.2.0",
42
42
  "@atlaskit/css": "^1.1.0",
43
- "@atlaskit/editor-card-provider": "^7.2.0",
44
- "@atlaskit/editor-json-transformer": "^9.7.0",
45
- "@atlaskit/editor-palette": "^3.4.0",
43
+ "@atlaskit/editor-card-provider": "^7.3.0",
44
+ "@atlaskit/editor-json-transformer": "^9.8.0",
45
+ "@atlaskit/editor-palette": "^3.5.0",
46
46
  "@atlaskit/editor-prosemirror": "^8.0.0",
47
- "@atlaskit/editor-shared-styles": "^4.0.0",
47
+ "@atlaskit/editor-shared-styles": "^4.1.0",
48
48
  "@atlaskit/editor-smart-link-draggable": "^1.2.0",
49
- "@atlaskit/emoji": "^72.1.0",
49
+ "@atlaskit/emoji": "^72.2.0",
50
50
  "@atlaskit/feature-gate-js-client": "^6.0.0",
51
- "@atlaskit/icon": "^37.5.0",
51
+ "@atlaskit/icon": "^37.6.0",
52
52
  "@atlaskit/link": "^5.1.0",
53
- "@atlaskit/link-datasource": "^6.7.0",
54
- "@atlaskit/link-extractors": "^4.1.0",
55
- "@atlaskit/linking-common": "^12.0.0",
56
- "@atlaskit/media-card": "^81.8.0",
57
- "@atlaskit/media-client": "^37.5.0",
58
- "@atlaskit/media-client-react": "^6.2.0",
59
- "@atlaskit/media-common": "^14.5.0",
60
- "@atlaskit/media-filmstrip": "^52.3.0",
61
- "@atlaskit/media-ui": "^30.14.0",
62
- "@atlaskit/media-viewer": "^54.7.0",
53
+ "@atlaskit/link-datasource": "^6.8.0",
54
+ "@atlaskit/link-extractors": "^4.2.0",
55
+ "@atlaskit/linking-common": "^12.1.0",
56
+ "@atlaskit/media-card": "^81.9.0",
57
+ "@atlaskit/media-client": "^37.6.0",
58
+ "@atlaskit/media-client-react": "^6.3.0",
59
+ "@atlaskit/media-common": "^14.6.0",
60
+ "@atlaskit/media-filmstrip": "^52.4.0",
61
+ "@atlaskit/media-ui": "^30.15.0",
62
+ "@atlaskit/media-viewer": "^54.8.0",
63
63
  "@atlaskit/platform-feature-experiments": "^0.3.0",
64
- "@atlaskit/platform-feature-flags": "^2.1.0",
64
+ "@atlaskit/platform-feature-flags": "^2.2.0",
65
65
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
66
- "@atlaskit/pragmatic-drag-and-drop": "^3.0.0",
66
+ "@atlaskit/pragmatic-drag-and-drop": "^3.1.0",
67
67
  "@atlaskit/react-compiler-gating": "^0.2.0",
68
68
  "@atlaskit/react-ufo": "^7.7.0",
69
- "@atlaskit/smart-card": "^45.18.0",
70
- "@atlaskit/status": "^5.8.0",
71
- "@atlaskit/task-decision": "^21.8.0",
72
- "@atlaskit/theme": "^28.1.0",
73
- "@atlaskit/tmp-editor-statsig": "^168.0.0",
74
- "@atlaskit/tokens": "^16.9.0",
75
- "@atlaskit/tooltip": "^24.2.0",
76
- "@atlaskit/visually-hidden": "^4.3.0",
69
+ "@atlaskit/smart-card": "^45.19.0",
70
+ "@atlaskit/status": "^5.9.0",
71
+ "@atlaskit/task-decision": "^21.9.0",
72
+ "@atlaskit/theme": "^28.2.0",
73
+ "@atlaskit/tmp-editor-statsig": "^169.0.0",
74
+ "@atlaskit/tokens": "^16.10.0",
75
+ "@atlaskit/tooltip": "^24.3.0",
76
+ "@atlaskit/visually-hidden": "^4.4.0",
77
77
  "@babel/runtime": "^7.0.0",
78
78
  "@compiled/react": "^1.0.2",
79
79
  "@emotion/react": "^11.7.1",
@@ -85,9 +85,9 @@
85
85
  "uuid": "^3.1.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@atlaskit/editor-common": "^120.7.0",
89
- "@atlaskit/link-provider": "^5.4.0",
90
- "@atlaskit/media-core": "^38.1.0",
88
+ "@atlaskit/editor-common": "^120.10.0",
89
+ "@atlaskit/link-provider": "^5.5.0",
90
+ "@atlaskit/media-core": "^38.2.0",
91
91
  "react": "^18.2.0",
92
92
  "react-dom": "^18.2.0",
93
93
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -95,33 +95,33 @@
95
95
  "devDependencies": {
96
96
  "@af/integration-testing": "workspace:^",
97
97
  "@af/visual-regression": "workspace:^",
98
- "@atlaskit/analytics-gas-types": "^6.1.0",
99
- "@atlaskit/checkbox": "^19.1.0",
100
- "@atlaskit/editor-plugin-media": "^18.0.0",
98
+ "@atlaskit/analytics-gas-types": "^6.2.0",
99
+ "@atlaskit/checkbox": "^19.2.0",
100
+ "@atlaskit/editor-plugin-media": "^18.1.0",
101
101
  "@atlaskit/editor-test-helpers": "workspace:^",
102
- "@atlaskit/inline-edit": "^16.3.0",
102
+ "@atlaskit/inline-edit": "^16.4.0",
103
103
  "@atlaskit/json-ld-types": "^2.0.0",
104
- "@atlaskit/link-provider": "^5.4.0",
105
- "@atlaskit/link-test-helpers": "^11.1.0",
106
- "@atlaskit/media-core": "^38.1.0",
104
+ "@atlaskit/link-provider": "^5.5.0",
105
+ "@atlaskit/link-test-helpers": "^11.2.0",
106
+ "@atlaskit/media-core": "^38.2.0",
107
107
  "@atlaskit/media-integration-test-helpers": "workspace:^",
108
- "@atlaskit/media-test-helpers": "^42.3.0",
109
- "@atlaskit/mention": "^27.18.0",
110
- "@atlaskit/modal-dialog": "^16.5.0",
108
+ "@atlaskit/media-test-helpers": "^42.4.0",
109
+ "@atlaskit/mention": "^27.19.0",
110
+ "@atlaskit/modal-dialog": "^16.6.0",
111
111
  "@atlaskit/navigation-system": "^10.16.0",
112
- "@atlaskit/primitives": "^22.4.0",
113
- "@atlaskit/profilecard": "^26.20.0",
114
- "@atlaskit/radio": "^10.1.0",
115
- "@atlaskit/range": "^12.1.0",
116
- "@atlaskit/section-message": "^10.1.0",
112
+ "@atlaskit/primitives": "^22.5.0",
113
+ "@atlaskit/profilecard": "^26.21.0",
114
+ "@atlaskit/radio": "^10.2.0",
115
+ "@atlaskit/range": "^12.2.0",
116
+ "@atlaskit/section-message": "^10.2.0",
117
117
  "@atlaskit/side-nav-items": "^2.3.0",
118
- "@atlaskit/textfield": "^10.1.0",
119
- "@atlaskit/toggle": "^17.2.0",
118
+ "@atlaskit/textfield": "^10.2.0",
119
+ "@atlaskit/toggle": "^17.3.0",
120
120
  "@atlaskit/util-data-test": "^19.1.0",
121
121
  "@atlassian/a11y-jest-testing": "^0.17.0",
122
122
  "@atlassian/a11y-playwright-testing": "^0.12.0",
123
123
  "@atlassian/experiment-test-utils": "^0.2.0",
124
- "@atlassian/feature-flags-test-utils": "^1.2.0",
124
+ "@atlassian/feature-flags-test-utils": "^1.3.0",
125
125
  "@atlassian/structured-docs-types": "workspace:^",
126
126
  "@atlassian/testing-library": "^0.11.0",
127
127
  "@testing-library/react": "^16.3.0",
package/report.api.md DELETED
@@ -1,766 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/renderer"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- /// <reference types="react" />
20
-
21
- import { ACTION } from '@atlaskit/editor-common/analytics';
22
- import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
23
- import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
24
- import type { ADFStage } from '@atlaskit/editor-common/validator';
25
- import type { AnnotationProviders } from '@atlaskit/editor-common/types';
26
- import type { CardProps } from '@atlaskit/smart-card';
27
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
28
- import type { DocNode } from '@atlaskit/adf-schema';
29
- import type { EmojiProviderLookupOrder } from '@atlaskit/emoji/resource';
30
- import type { EmojiResourceConfig } from '@atlaskit/emoji/resource';
31
- import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
32
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
33
- import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
34
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
35
- import { jsx } from '@emotion/react';
36
- import type { Mark } from '@atlaskit/editor-prosemirror/model';
37
- import type { MediaClientConfig } from '@atlaskit/media-core';
38
- import type { MediaFeatureFlags } from '@atlaskit/media-common';
39
- import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
40
- import { OperationalAEP } from '@atlaskit/editor-common/analytics';
41
- import { PropsDifference } from '@atlaskit/editor-common/utils';
42
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
43
- import { Schema } from '@atlaskit/editor-prosemirror/model';
44
- import { SEVERITY } from '@atlaskit/editor-common/utils';
45
- import { ShallowPropsDifference } from '@atlaskit/editor-common/utils';
46
- import { SortOrder } from '@atlaskit/editor-common/types';
47
- import type { SSR } from '@atlaskit/media-common';
48
- import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
49
- import { UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
50
- import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
51
- import type { UnsupportedContentPayload } from '@atlaskit/editor-common/utils';
52
- import type { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
53
-
54
- // @public (undocumented)
55
- export class ADFEncoder<T> {
56
- constructor(createTransformerWithSchema: TransformerProvider<T>);
57
- // (undocumented)
58
- encode: (value: T) => any;
59
- }
60
-
61
- // @public (undocumented)
62
- type AEP<Action, ActionSubject, ActionSubjectID, Attributes, EventType> = {
63
- action: Action;
64
- actionSubject: ActionSubject;
65
- actionSubjectId?: ActionSubjectID;
66
- attributes?: Attributes;
67
- eventType: EventType;
68
- };
69
-
70
- // @public (undocumented)
71
- type AnalyticsEventPayload<T = void> =
72
- | AnchorLinkAEP
73
- | AnnotationAEP
74
- | AnnotationDeleteAEP
75
- | CodeBlockCopyAEP
76
- | CodeBlockWrapAEP
77
- | ComponentCrashErrorAEP
78
- | ExpandAEP
79
- | HeadingAnchorLinkButtonAEP
80
- | InvalidProsemirrorDocumentErrorAEP
81
- | MediaLnkTransformedAEP
82
- | RendererReRenderedAEP<T>
83
- | RendererRenderedAEP
84
- | RendererSelectAllCaughtAEP
85
- | RendererSelectAllEscapedAEP
86
- | RendererStartAEP
87
- | RendererTTIAEP
88
- | RendererUnsupportedContentLevelsTrackingErrored
89
- | RendererUnsupportedContentLevelsTrackingSucceeded
90
- | TableSortColumnAEP
91
- | TableSortColumnNotAllowedAEP
92
- | UnsupportedContentPayload
93
- | UnsupportedContentTooltipPayload
94
- | VisitLinkAEP
95
- | VisitMediaLinkAEP;
96
-
97
- // @public (undocumented)
98
- type AnchorLinkAEP = UIAEP<
99
- ACTION.VIEWED,
100
- ACTION_SUBJECT.ANCHOR_LINK,
101
- undefined,
102
- {
103
- platform: PLATFORM.WEB;
104
- mode: MODE.RENDERER;
105
- }
106
- >;
107
-
108
- // @public (undocumented)
109
- type AnnotationActionType =
110
- | ACTION.CLOSED
111
- | ACTION.CREATE_NOT_ALLOWED
112
- | ACTION.DELETED
113
- | ACTION.EDITED
114
- | ACTION.INSERTED
115
- | ACTION.OPENED
116
- | ACTION.RESOLVED
117
- | ACTION.VIEWED;
118
-
119
- // @public (undocumented)
120
- type AnnotationAEP = AEP<
121
- AnnotationActionType,
122
- ACTION_SUBJECT.ANNOTATION,
123
- ACTION_SUBJECT_ID.INLINE_COMMENT,
124
- AnnotationAEPAttributes,
125
- undefined
126
- >;
127
-
128
- // @public (undocumented)
129
- type AnnotationAEPAttributes = AnnotationDraftAEPAttributes | AnnotationResolvedAEPAttributes;
130
-
131
- // @public (undocumented)
132
- type AnnotationDeleteAEP = AEP<
133
- AnnotationActionType,
134
- ACTION_SUBJECT.ANNOTATION,
135
- ACTION_SUBJECT_ID,
136
- undefined,
137
- EVENT_TYPE.TRACK
138
- >;
139
-
140
- // @public (undocumented)
141
- type AnnotationDraftAEPAttributes = {
142
- overlap?: number;
143
- };
144
-
145
- // @public (undocumented)
146
- type AnnotationResolvedAEPAttributes = {
147
- method?: RESOLVE_METHOD;
148
- };
149
-
150
- // @public (undocumented)
151
- type ButtonAEP<ActionSubjectID, Attributes> = UIAEP<
152
- ACTION.CLICKED,
153
- ACTION_SUBJECT.BUTTON,
154
- ActionSubjectID,
155
- Attributes
156
- >;
157
-
158
- // @public (undocumented)
159
- type CodeBlockCopyAEP = ButtonAEP<ACTION_SUBJECT_ID.CODEBLOCK_COPY, undefined>;
160
-
161
- // @public (undocumented)
162
- type CodeBlockWrapAEP = ButtonAEP<
163
- ACTION_SUBJECT_ID.CODEBLOCK_WRAP,
164
- {
165
- wrapped: boolean;
166
- }
167
- >;
168
-
169
- // @public (undocumented)
170
- type ComponentCrashErrorAEP = OperationalAEP<
171
- ACTION.CRASHED,
172
- ACTION_SUBJECT.RENDERER,
173
- ACTION_SUBJECT_ID,
174
- {
175
- platform: PLATFORM.WEB;
176
- errorMessage?: string;
177
- errorStack?: string;
178
- componentStack?: string;
179
- errorRethrown?: boolean;
180
- },
181
- {
182
- errorStack?: string;
183
- }
184
- >;
185
-
186
- // @public (undocumented)
187
- type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
188
-
189
- // @public (undocumented)
190
- type ExpandAEP = AEP<
191
- ACTION.TOGGLE_EXPAND,
192
- ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND,
193
- undefined,
194
- {
195
- platform: PLATFORM.WEB;
196
- mode: MODE.RENDERER;
197
- expanded: boolean;
198
- },
199
- EVENT_TYPE.TRACK
200
- >;
201
-
202
- // @public (undocumented)
203
- type HeadingAnchorLinkButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.HEADING_ANCHOR_LINK, undefined>;
204
-
205
- // @public (undocumented)
206
- type HeadingAnchorLinksConfig = {
207
- activeHeadingId?: string;
208
- allowNestedHeaderLinks?: boolean;
209
- };
210
-
211
- // @public (undocumented)
212
- export type HeadingAnchorLinksProps = HeadingAnchorLinksConfig | boolean;
213
-
214
- // @public (undocumented)
215
- type InvalidProsemirrorDocumentErrorAEP = AEP<
216
- ACTION.INVALID_PROSEMIRROR_DOCUMENT,
217
- ACTION_SUBJECT.RENDERER,
218
- ACTION_SUBJECT_ID,
219
- {
220
- platform: PLATFORM.WEB;
221
- errorStack?: string;
222
- },
223
- EVENT_TYPE.OPERATIONAL
224
- >;
225
-
226
- // @public (undocumented)
227
- type MediaLnkTransformedAEP = AEP<
228
- ACTION.MEDIA_LINK_TRANSFORMED,
229
- ACTION_SUBJECT.RENDERER,
230
- undefined,
231
- undefined,
232
- EVENT_TYPE.OPERATIONAL
233
- >;
234
-
235
- // @public (undocumented)
236
- interface MediaOptions {
237
- // (undocumented)
238
- allowCaptions?: boolean;
239
- // (undocumented)
240
- allowLinking?: boolean;
241
- // (undocumented)
242
- enableDownloadButton?: boolean;
243
- // (undocumented)
244
- featureFlags?: MediaFeatureFlags;
245
- // (undocumented)
246
- ssr?: MediaSSR;
247
- }
248
-
249
- // @public (undocumented)
250
- export type MediaSSR = {
251
- mode: SSR;
252
- config: MediaClientConfig;
253
- };
254
-
255
- // @public (undocumented)
256
- enum MODE {
257
- // (undocumented)
258
- EDITOR = 'editor',
259
- // (undocumented)
260
- RENDERER = 'renderer',
261
- }
262
-
263
- // @public (undocumented)
264
- type NodeComponentsProps = {
265
- [key: string]: React.ComponentType<any>;
266
- };
267
-
268
- // @public (undocumented)
269
- interface ParentInfo {
270
- // (undocumented)
271
- parentIsIncompleteTask: boolean;
272
- // (undocumented)
273
- path: Array<Node_2>;
274
- // (undocumented)
275
- pos: number;
276
- }
277
-
278
- // @public (undocumented)
279
- enum PLATFORM {
280
- // (undocumented)
281
- HYBRID = 'mobileHybrid',
282
- // (undocumented)
283
- NATIVE = 'mobileNative',
284
- // (undocumented)
285
- WEB = 'web',
286
- }
287
-
288
- // @public (undocumented)
289
- interface RawObjectFeatureFlags {
290
- // (undocumented)
291
- ['renderer-render-tracking']: string;
292
- }
293
-
294
- // @public (undocumented)
295
- export const ReactRenderer: (props: RendererProps) => jsx.JSX.Element;
296
-
297
- // @public (undocumented)
298
- export class ReactSerializer implements Serializer<JSX.Element> {
299
- constructor(init: ReactSerializerInit);
300
- // (undocumented)
301
- static buildMarkStructure(content: Node_2[]): Mark[];
302
- // (undocumented)
303
- static fromSchema(_: unknown, init: ReactSerializerInit): ReactSerializer;
304
- // (undocumented)
305
- static getChildNodes(fragment: Fragment): (Node_2 | TextWrapper)[];
306
- // (undocumented)
307
- static getMarks(node: Node_2): Mark[];
308
- // (undocumented)
309
- serializeFragment(
310
- fragment: Fragment,
311
- props?: any,
312
- target?: any,
313
- key?: string,
314
- parentInfo?: ParentInfo,
315
- ): JSX.Element | null;
316
- }
317
-
318
- // @public (undocumented)
319
- interface ReactSerializerInit {
320
- // (undocumented)
321
- allowAltTextOnImages?: boolean;
322
- // (undocumented)
323
- allowAnnotations?: boolean;
324
- // (undocumented)
325
- allowColumnSorting?: boolean;
326
- // (undocumented)
327
- allowCopyToClipboard?: boolean;
328
- // (undocumented)
329
- allowCustomPanels?: boolean;
330
- // (undocumented)
331
- allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
332
- // (undocumented)
333
- allowMediaLinking?: boolean;
334
- // (undocumented)
335
- allowPlaceholderText?: boolean;
336
- // (undocumented)
337
- allowSelectAllTrap?: boolean;
338
- // (undocumented)
339
- allowWindowedCodeBlock?: boolean;
340
- // (undocumented)
341
- allowWrapCodeBlock?: boolean;
342
- // (undocumented)
343
- appearance?: RendererAppearance;
344
- // (undocumented)
345
- disableActions?: boolean;
346
- // (undocumented)
347
- disableHeadingIDs?: boolean;
348
- // (undocumented)
349
- emojiProviderLookupOrder?: EmojiProviderLookupOrder;
350
- // (undocumented)
351
- emojiResourceConfig?: EmojiResourceConfig;
352
- // (undocumented)
353
- eventHandlers?: EventHandlers;
354
- // (undocumented)
355
- extensionHandlers?: ExtensionHandlers;
356
- // (undocumented)
357
- fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
358
- // (undocumented)
359
- media?: MediaOptions;
360
- // (undocumented)
361
- nodeComponents?: NodeComponentsProps;
362
- // (undocumented)
363
- objectContext?: RendererContext;
364
- // (undocumented)
365
- portal?: HTMLElement;
366
- // (undocumented)
367
- providers?: ProviderFactory;
368
- // (undocumented)
369
- shouldOpenMediaViewer?: boolean;
370
- // (undocumented)
371
- smartLinks?: SmartLinksOptions;
372
- // (undocumented)
373
- stickyHeaders?: StickyHeaderConfig;
374
- // (undocumented)
375
- surroundTextNodesWithTextWrapper?: boolean;
376
- }
377
-
378
- // @public (undocumented)
379
- export const renderDocument: <T>(
380
- doc: any,
381
- serializer: Serializer<T>,
382
- schema?: Schema,
383
- adfStage?: ADFStage,
384
- useSpecBasedValidator?: boolean,
385
- rendererId?: string,
386
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent,
387
- unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking,
388
- appearance?: RendererAppearance,
389
- ) => RenderOutput<T | null>;
390
-
391
- // @public (undocumented)
392
- export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | 'mobile' | undefined;
393
-
394
- // @public (undocumented)
395
- export interface RendererContext {
396
- // (undocumented)
397
- adDoc?: any;
398
- // (undocumented)
399
- containerAri?: string;
400
- // (undocumented)
401
- objectAri?: string;
402
- // (undocumented)
403
- schema?: Schema;
404
- }
405
-
406
- // @public (undocumented)
407
- export interface RendererProps {
408
- addTelepointer?: boolean;
409
- // (undocumented)
410
- adfStage?: ADFStage;
411
- // (undocumented)
412
- allowAltTextOnImages?: boolean;
413
- // (undocumented)
414
- allowAnnotations?: boolean;
415
- // (undocumented)
416
- allowColumnSorting?: boolean;
417
- // (undocumented)
418
- allowCopyToClipboard?: boolean;
419
- // (undocumented)
420
- allowCustomPanels?: boolean;
421
- // (undocumented)
422
- allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
423
- // (undocumented)
424
- allowPlaceholderText?: boolean;
425
- // (undocumented)
426
- allowSelectAllTrap?: boolean;
427
- // (undocumented)
428
- allowUgcScrubber?: boolean;
429
- // (undocumented)
430
- allowWrapCodeBlock?: boolean;
431
- // (undocumented)
432
- analyticsEventSeverityTracking?: {
433
- enabled: boolean;
434
- severityNormalThreshold: number;
435
- severityDegradedThreshold: number;
436
- };
437
- // (undocumented)
438
- annotationProvider?: AnnotationProviders | null;
439
- // (undocumented)
440
- appearance?: RendererAppearance;
441
- // (undocumented)
442
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
443
- // (undocumented)
444
- dataProviders?: ProviderFactory;
445
- // (undocumented)
446
- disableActions?: boolean;
447
- // (undocumented)
448
- disableHeadingIDs?: boolean;
449
- // (undocumented)
450
- document: DocNode;
451
- // (undocumented)
452
- emojiProviderLookupOrder?: EmojiProviderLookupOrder;
453
- // (undocumented)
454
- emojiResourceConfig?: EmojiResourceConfig;
455
- // (undocumented)
456
- enableSsrInlineScripts?: boolean;
457
- // (undocumented)
458
- eventHandlers?: EventHandlers;
459
- // (undocumented)
460
- extensionHandlers?: ExtensionHandlers;
461
- // (undocumented)
462
- fadeOutHeight?: number;
463
- featureFlags?:
464
- | Partial<RawObjectFeatureFlags>
465
- | {
466
- [featureFlag: string]: boolean;
467
- };
468
- // (undocumented)
469
- innerRef?: React.RefObject<HTMLDivElement>;
470
- // (undocumented)
471
- maxHeight?: number;
472
- // (undocumented)
473
- media?: MediaOptions;
474
- // (undocumented)
475
- nodeComponents?: NodeComponentsProps;
476
- // (undocumented)
477
- onComplete?: (stat: RenderOutputStat) => void;
478
- // (undocumented)
479
- onError?: (error: any) => void;
480
- // (undocumented)
481
- portal?: HTMLElement;
482
- // (undocumented)
483
- rendererContext?: RendererContext;
484
- // (undocumented)
485
- schema?: Schema;
486
- // (undocumented)
487
- shouldOpenMediaViewer?: boolean;
488
- // (undocumented)
489
- smartLinks?: SmartLinksOptions;
490
- // (undocumented)
491
- stickyHeaders?: StickyHeaderProps;
492
- // (undocumented)
493
- truncated?: boolean;
494
- // (undocumented)
495
- unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking;
496
- // @deprecated (undocumented)
497
- useSpecBasedValidator?: boolean;
498
- }
499
-
500
- // @public (undocumented)
501
- type RendererRenderedAEP = AEP<
502
- ACTION.RENDERED,
503
- ACTION_SUBJECT.RENDERER,
504
- undefined,
505
- {
506
- platform: PLATFORM.WEB;
507
- duration: number;
508
- distortedDuration: boolean;
509
- ttfb?: number;
510
- nodes: Record<string, number>;
511
- severity?: SEVERITY;
512
- },
513
- EVENT_TYPE.OPERATIONAL
514
- >;
515
-
516
- // @public (undocumented)
517
- type RendererReRenderedAEP<Props> = AEP<
518
- ACTION.RE_RENDERED,
519
- ACTION_SUBJECT.RENDERER,
520
- undefined,
521
- {
522
- propsDifference: PropsDifference<Props> | ShallowPropsDifference<Props>;
523
- count: number;
524
- componentId?: string;
525
- },
526
- EVENT_TYPE.OPERATIONAL
527
- >;
528
-
529
- // @public (undocumented)
530
- type RendererSelectAllCaughtAEP = AEP<
531
- ACTION.SELECT_ALL_CAUGHT,
532
- ACTION_SUBJECT.RENDERER,
533
- undefined,
534
- {
535
- platform: PLATFORM.WEB;
536
- },
537
- EVENT_TYPE.TRACK
538
- >;
539
-
540
- // @public (undocumented)
541
- type RendererSelectAllEscapedAEP = AEP<
542
- ACTION.SELECT_ALL_ESCAPED,
543
- ACTION_SUBJECT.RENDERER,
544
- undefined,
545
- {
546
- platform: PLATFORM.WEB;
547
- },
548
- EVENT_TYPE.TRACK
549
- >;
550
-
551
- // @public (undocumented)
552
- type RendererStartAEP = AEP<
553
- ACTION.STARTED,
554
- ACTION_SUBJECT.RENDERER,
555
- undefined,
556
- {
557
- platform: PLATFORM.WEB;
558
- },
559
- EVENT_TYPE.UI
560
- >;
561
-
562
- // @public (undocumented)
563
- type RendererTTIAEP = AEP<
564
- ACTION.RENDERER_TTI,
565
- ACTION_SUBJECT.RENDERER,
566
- undefined,
567
- {
568
- tti: number;
569
- ttiFromInvocation: number;
570
- canceled: boolean;
571
- },
572
- EVENT_TYPE.OPERATIONAL
573
- >;
574
-
575
- // @public (undocumented)
576
- type RendererUnsupportedContentLevelsTrackingErrored = AEP<
577
- ACTION.UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED,
578
- ACTION_SUBJECT.RENDERER,
579
- undefined,
580
- {
581
- platform: PLATFORM.WEB;
582
- error: string;
583
- },
584
- EVENT_TYPE.OPERATIONAL
585
- >;
586
-
587
- // @public (undocumented)
588
- type RendererUnsupportedContentLevelsTrackingSucceeded = AEP<
589
- ACTION.UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED,
590
- ACTION_SUBJECT.RENDERER,
591
- undefined,
592
- {
593
- appearance?: string;
594
- platform: PLATFORM.WEB;
595
- unsupportedContentLevelSeverity: UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
596
- unsupportedContentLevelPercentage: number;
597
- unsupportedNodesCount: number;
598
- supportedNodesCount: number;
599
- },
600
- EVENT_TYPE.OPERATIONAL
601
- >;
602
-
603
- // @public (undocumented)
604
- interface RenderOutput<T> {
605
- // (undocumented)
606
- pmDoc?: Node_2;
607
- // (undocumented)
608
- result: T;
609
- // (undocumented)
610
- stat: RenderOutputStat;
611
- }
612
-
613
- // @public (undocumented)
614
- export interface RenderOutputStat {
615
- // (undocumented)
616
- buildTreeTime?: number;
617
- // (undocumented)
618
- sanitizeTime: number;
619
- // (undocumented)
620
- serializeTime?: number;
621
- }
622
-
623
- // @public (undocumented)
624
- enum RESOLVE_METHOD {
625
- // (undocumented)
626
- COMPONENT = 'component',
627
- // (undocumented)
628
- CONSUMER = 'consumer',
629
- // (undocumented)
630
- ORPHANED = 'orphaned',
631
- }
632
-
633
- // @public (undocumented)
634
- export interface Serializer<T> {
635
- // (undocumented)
636
- serializeFragment(fragment: Fragment, props?: any, target?: any, key?: string): T | null;
637
- }
638
-
639
- // @public (undocumented)
640
- interface SmartLinksOptions {
641
- // (undocumented)
642
- frameStyle?: CardProps['frameStyle'];
643
- // (undocumented)
644
- hideHoverPreview?: boolean;
645
- // (undocumented)
646
- showAuthTooltip?: boolean;
647
- // (undocumented)
648
- showServerActions?: boolean;
649
- // (undocumented)
650
- ssr?: boolean;
651
- }
652
-
653
- // @public (undocumented)
654
- type StickyHeaderConfig = {
655
- offsetTop?: number;
656
- };
657
-
658
- // @public (undocumented)
659
- export type StickyHeaderProps =
660
- | ({
661
- show?: boolean;
662
- } & StickyHeaderConfig)
663
- | boolean;
664
-
665
- // @public (undocumented)
666
- type TableSortColumnAEP = AEP<
667
- ACTION.SORT_COLUMN,
668
- ACTION_SUBJECT.TABLE,
669
- undefined,
670
- {
671
- platform: PLATFORM.WEB;
672
- mode: MODE.RENDERER;
673
- sortOrder: SortOrder;
674
- columnIndex: number;
675
- },
676
- EVENT_TYPE.TRACK
677
- >;
678
-
679
- // @public (undocumented)
680
- type TableSortColumnNotAllowedAEP = AEP<
681
- ACTION.SORT_COLUMN_NOT_ALLOWED,
682
- ACTION_SUBJECT.TABLE,
683
- undefined,
684
- {
685
- platform: PLATFORM.WEB;
686
- mode: MODE.RENDERER;
687
- },
688
- EVENT_TYPE.TRACK
689
- >;
690
-
691
- // @public (undocumented)
692
- export class TextSerializer implements Serializer<string> {
693
- constructor(schema: Schema);
694
- // (undocumented)
695
- static fromSchema(schema?: Schema): TextSerializer;
696
- // (undocumented)
697
- serializeFragment(fragment: Fragment): string;
698
- }
699
-
700
- // @public (undocumented)
701
- interface TextWrapper {
702
- // (undocumented)
703
- content: Node_2[];
704
- // (undocumented)
705
- nodeSize: number;
706
- // (undocumented)
707
- type: {
708
- name: 'textWrapper';
709
- };
710
- }
711
-
712
- // @public (undocumented)
713
- type TransformerProvider<T> = (schema: Schema) => Transformer_2<T>;
714
-
715
- // @public (undocumented)
716
- type UIAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<
717
- Action,
718
- ActionSubject,
719
- ActionSubjectID,
720
- Attributes,
721
- EVENT_TYPE.UI
722
- >;
723
-
724
- // @public (undocumented)
725
- type VisitLinkAEP = AEP<
726
- ACTION.VISITED,
727
- ACTION_SUBJECT.LINK,
728
- undefined,
729
- {
730
- platform: PLATFORM.WEB;
731
- mode: MODE.RENDERER;
732
- },
733
- EVENT_TYPE.TRACK
734
- >;
735
-
736
- // @public (undocumented)
737
- type VisitMediaLinkAEP = AEP<
738
- ACTION.VISITED,
739
- ACTION_SUBJECT.MEDIA,
740
- ACTION_SUBJECT_ID.LINK,
741
- {
742
- platform: PLATFORM.WEB;
743
- mode: MODE.RENDERER;
744
- },
745
- EVENT_TYPE.TRACK
746
- >;
747
-
748
- // (No @packageDocumentation comment for this package)
749
- ```
750
-
751
- <!--SECTION END: Main Entry Types-->
752
-
753
- ### Peer Dependencies
754
-
755
- <!--SECTION START: Peer Dependencies-->
756
-
757
- ```json
758
- {
759
- "@atlaskit/link-provider": "^1.6.2",
760
- "@atlaskit/media-core": "^34.1.2",
761
- "react": "^16.8.0",
762
- "react-dom": "^16.8.0"
763
- }
764
- ```
765
-
766
- <!--SECTION END: Peer Dependencies-->