@atlaskit/renderer 126.14.3 → 126.15.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 +21 -0
- package/dist/cjs/react/index.js +1 -0
- package/dist/cjs/react/nodes/TableStickyScrollbar.js +3 -1
- package/dist/cjs/react/nodes/extension.js +2 -2
- package/dist/cjs/react/nodes/fallback.js +1 -9
- package/dist/cjs/react/nodes/table.js +3 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/index.js +1 -0
- package/dist/es2019/react/nodes/TableStickyScrollbar.js +3 -1
- package/dist/es2019/react/nodes/extension.js +2 -2
- package/dist/es2019/react/nodes/fallback.js +1 -9
- package/dist/es2019/react/nodes/table.js +3 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/index.js +1 -0
- package/dist/esm/react/nodes/TableStickyScrollbar.js +3 -1
- package/dist/esm/react/nodes/extension.js +2 -2
- package/dist/esm/react/nodes/fallback.js +1 -9
- package/dist/esm/react/nodes/table.js +3 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +5 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 126.15.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4f700a8131d20`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f700a8131d20) -
|
|
8
|
+
[FFCLEANUP-79468] fix "landmark-unique" violation in TableWrapper component
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 126.15.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`a549780d70a91`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a549780d70a91) -
|
|
16
|
+
Clean up confluence_inline_insert_excerpt_width_bugfix experiment
|
|
17
|
+
- [`da1a213c6f6aa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da1a213c6f6aa) -
|
|
18
|
+
Clean up flag to make links more accessible.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 126.14.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/cjs/react/index.js
CHANGED
|
@@ -447,6 +447,7 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
447
447
|
isInsideMultiBodiedExtension: isInsideMultiBodiedExtension,
|
|
448
448
|
allowTableAlignment: this.allowTableAlignment,
|
|
449
449
|
allowTableResizing: this.allowTableResizing,
|
|
450
|
+
// eslint-disable-next-line @atlaskit/platform/valid-gate-name
|
|
450
451
|
isPresentational: (0, _platformFeatureFlags.fg)('platform_renderer_isPresentational') ? this.isPresentational : false,
|
|
451
452
|
disableTableOverflowShadow: this.disableTableOverflowShadow,
|
|
452
453
|
allowFixedColumnWidthOption: this.allowFixedColumnWidthOption
|
|
@@ -50,7 +50,7 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
|
|
|
50
50
|
}
|
|
51
51
|
var scrollbarContainers = (_this$wrapper$parentE = this.wrapper.parentElement) === null || _this$wrapper$parentE === void 0 ? void 0 : _this$wrapper$parentE.querySelectorAll(".".concat(_styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER));
|
|
52
52
|
|
|
53
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
53
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting, @atlaskit/platform/valid-gate-name
|
|
54
54
|
this.stickyScrollbarContainerElement = (0, _platformFeatureFlags.fg)('platform_editor_querySelector_fix_table_renderer') ? scrollbarContainers === null || scrollbarContainers === void 0 ? void 0 : scrollbarContainers.item(scrollbarContainers.length - 1) : (_this$wrapper$parentE2 = this.wrapper.parentElement) === null || _this$wrapper$parentE2 === void 0 ? void 0 : _this$wrapper$parentE2.querySelector(".".concat(_styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER));
|
|
55
55
|
if (this.stickyScrollbarContainerElement) {
|
|
56
56
|
// Ignored via go/ees005
|
|
@@ -91,6 +91,8 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
|
|
|
91
91
|
root: this.rendererScrollableElement
|
|
92
92
|
});
|
|
93
93
|
var bottomSentinels = (_this$wrapper = this.wrapper) === null || _this$wrapper === void 0 || (_this$wrapper = _this$wrapper.parentElement) === null || _this$wrapper === void 0 ? void 0 : _this$wrapper.getElementsByClassName(_styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM);
|
|
94
|
+
|
|
95
|
+
// eslint-disable-next-line @atlaskit/platform/valid-gate-name
|
|
94
96
|
this.sentinels.bottom = (0, _platformFeatureFlags.fg)('platform_editor_querySelector_fix_table_renderer') ? // eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
95
97
|
bottomSentinels === null || bottomSentinels === void 0 ? void 0 : bottomSentinels.item(bottomSentinels.length - 1) : // eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
96
98
|
(_this$wrapper2 = this.wrapper) === null || _this$wrapper2 === void 0 || (_this$wrapper2 = _this$wrapper2.parentElement) === null || _this$wrapper2 === void 0 || (_this$wrapper2 = _this$wrapper2.getElementsByClassName(_styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM)) === null || _this$wrapper2 === void 0 ? void 0 : _this$wrapper2.item(0);
|
|
@@ -99,7 +99,7 @@ var renderExtension = exports.renderExtension = function renderExtension(content
|
|
|
99
99
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
100
100
|
,
|
|
101
101
|
className: "".concat(_consts.RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
102
|
-
css: [!
|
|
102
|
+
css: [!isInsideOfInlineExtension && (0, _platformFeatureFlags.fg)('platform_fix_macro_renders_in_layouts') && containerStyle]
|
|
103
103
|
}, content));
|
|
104
104
|
return centerAlignClass && (0, _expValEquals.expValEquals)('platform_editor_flex_based_centering', 'isEnabled', true) ? (0, _react.jsx)("div", {
|
|
105
105
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
@@ -128,7 +128,7 @@ var renderExtension = exports.renderExtension = function renderExtension(content
|
|
|
128
128
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
129
129
|
,
|
|
130
130
|
className: "".concat(_consts.RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
131
|
-
css: [!
|
|
131
|
+
css: [!isInsideOfInlineExtension && (0, _platformFeatureFlags.fg)('platform_fix_macro_renders_in_layouts') && containerStyle]
|
|
132
132
|
}, content));
|
|
133
133
|
return centerAlignClass && (0, _expValEquals.expValEquals)('platform_editor_flex_based_centering', 'isEnabled', true) ? (0, _react.jsx)("div", {
|
|
134
134
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
@@ -73,15 +73,7 @@ var CardErrorBoundary = exports.CardErrorBoundary = /*#__PURE__*/function (_Reac
|
|
|
73
73
|
target: '_blank',
|
|
74
74
|
rel: 'noreferrer noopener'
|
|
75
75
|
});
|
|
76
|
-
var fallback =
|
|
77
|
-
href: linkProps.href,
|
|
78
|
-
onClick: linkProps.onClick,
|
|
79
|
-
target: linkProps.target,
|
|
80
|
-
rel: linkProps.rel
|
|
81
|
-
}, url) :
|
|
82
|
-
/*#__PURE__*/
|
|
83
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
84
|
-
_react.default.createElement("a", {
|
|
76
|
+
var fallback = /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
85
77
|
href: linkProps.href,
|
|
86
78
|
onClick: linkProps.onClick,
|
|
87
79
|
target: linkProps.target,
|
|
@@ -147,6 +147,7 @@ var TableWrapper = function TableWrapper(_ref2) {
|
|
|
147
147
|
tabIndex = _ref2.tabIndex;
|
|
148
148
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
149
149
|
formatMessage = _useIntl.formatMessage;
|
|
150
|
+
var isScrollableRegion = tabIndex !== undefined && (0, _expValEquals.expValEquals)('platform_editor_a11y_table_wrapper_fix', 'isEnabled', true);
|
|
150
151
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
151
152
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
152
153
|
className: _styles.TableSharedCssClassName.TABLE_NODE_WRAPPER,
|
|
@@ -156,8 +157,8 @@ var TableWrapper = function TableWrapper(_ref2) {
|
|
|
156
157
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
157
158
|
,
|
|
158
159
|
tabIndex: tabIndex,
|
|
159
|
-
role:
|
|
160
|
-
"aria-label": formatMessage(_messages.tableMessages.tableScrollRegion)
|
|
160
|
+
role: isScrollableRegion ? 'region' : undefined,
|
|
161
|
+
"aria-label": isScrollableRegion ? formatMessage(_messages.tableMessages.tableScrollRegion) : undefined
|
|
161
162
|
}, children);
|
|
162
163
|
};
|
|
163
164
|
var tableCanBeSticky = exports.tableCanBeSticky = function tableCanBeSticky(node, children
|
|
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
71
71
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
72
72
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
73
73
|
var packageName = "@atlaskit/renderer";
|
|
74
|
-
var packageVersion = "126.
|
|
74
|
+
var packageVersion = "126.15.0";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -414,6 +414,7 @@ export default class ReactSerializer {
|
|
|
414
414
|
isInsideMultiBodiedExtension,
|
|
415
415
|
allowTableAlignment: this.allowTableAlignment,
|
|
416
416
|
allowTableResizing: this.allowTableResizing,
|
|
417
|
+
// eslint-disable-next-line @atlaskit/platform/valid-gate-name
|
|
417
418
|
isPresentational: fg('platform_renderer_isPresentational') ? this.isPresentational : false,
|
|
418
419
|
disableTableOverflowShadow: this.disableTableOverflowShadow,
|
|
419
420
|
allowFixedColumnWidthOption: this.allowFixedColumnWidthOption
|
|
@@ -33,7 +33,7 @@ export class TableStickyScrollbar {
|
|
|
33
33
|
}
|
|
34
34
|
const scrollbarContainers = (_this$wrapper$parentE = this.wrapper.parentElement) === null || _this$wrapper$parentE === void 0 ? void 0 : _this$wrapper$parentE.querySelectorAll(`.${TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER}`);
|
|
35
35
|
|
|
36
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
36
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting, @atlaskit/platform/valid-gate-name
|
|
37
37
|
this.stickyScrollbarContainerElement = fg('platform_editor_querySelector_fix_table_renderer') ? scrollbarContainers === null || scrollbarContainers === void 0 ? void 0 : scrollbarContainers.item(scrollbarContainers.length - 1) : (_this$wrapper$parentE2 = this.wrapper.parentElement) === null || _this$wrapper$parentE2 === void 0 ? void 0 : _this$wrapper$parentE2.querySelector(`.${TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER}`);
|
|
38
38
|
if (this.stickyScrollbarContainerElement) {
|
|
39
39
|
// Ignored via go/ees005
|
|
@@ -69,6 +69,8 @@ export class TableStickyScrollbar {
|
|
|
69
69
|
root: this.rendererScrollableElement
|
|
70
70
|
});
|
|
71
71
|
const bottomSentinels = (_this$wrapper = this.wrapper) === null || _this$wrapper === void 0 ? void 0 : (_this$wrapper$parentE3 = _this$wrapper.parentElement) === null || _this$wrapper$parentE3 === void 0 ? void 0 : _this$wrapper$parentE3.getElementsByClassName(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM);
|
|
72
|
+
|
|
73
|
+
// eslint-disable-next-line @atlaskit/platform/valid-gate-name
|
|
72
74
|
this.sentinels.bottom = fg('platform_editor_querySelector_fix_table_renderer') ? // eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
73
75
|
bottomSentinels === null || bottomSentinels === void 0 ? void 0 : bottomSentinels.item(bottomSentinels.length - 1) : // eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
74
76
|
(_this$wrapper2 = this.wrapper) === null || _this$wrapper2 === void 0 ? void 0 : (_this$wrapper2$parent = _this$wrapper2.parentElement) === null || _this$wrapper2$parent === void 0 ? void 0 : (_this$wrapper2$parent2 = _this$wrapper2$parent.getElementsByClassName(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM)) === null || _this$wrapper2$parent2 === void 0 ? void 0 : _this$wrapper2$parent2.item(0);
|
|
@@ -80,7 +80,7 @@ export const renderExtension = (content, layout, options = {}, removeOverflow, e
|
|
|
80
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
81
81
|
,
|
|
82
82
|
className: `${RendererCssClassName.EXTENSION_INNER_WRAPPER} ${overflowContainerClass}`,
|
|
83
|
-
css: [!
|
|
83
|
+
css: [!isInsideOfInlineExtension && fg('platform_fix_macro_renders_in_layouts') && containerStyle]
|
|
84
84
|
}, content));
|
|
85
85
|
return centerAlignClass && expValEquals('platform_editor_flex_based_centering', 'isEnabled', true) ? jsx("div", {
|
|
86
86
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
@@ -110,7 +110,7 @@ export const renderExtension = (content, layout, options = {}, removeOverflow, e
|
|
|
110
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
111
111
|
,
|
|
112
112
|
className: `${RendererCssClassName.EXTENSION_INNER_WRAPPER} ${overflowContainerClass}`,
|
|
113
|
-
css: [!
|
|
113
|
+
css: [!isInsideOfInlineExtension && fg('platform_fix_macro_renders_in_layouts') && containerStyle]
|
|
114
114
|
}, content));
|
|
115
115
|
return centerAlignClass && expValEquals('platform_editor_flex_based_centering', 'isEnabled', true) ? jsx("div", {
|
|
116
116
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
@@ -57,15 +57,7 @@ export class CardErrorBoundary extends React.PureComponent {
|
|
|
57
57
|
rel: 'noreferrer noopener'
|
|
58
58
|
})
|
|
59
59
|
};
|
|
60
|
-
const fallback =
|
|
61
|
-
href: linkProps.href,
|
|
62
|
-
onClick: linkProps.onClick,
|
|
63
|
-
target: linkProps.target,
|
|
64
|
-
rel: linkProps.rel
|
|
65
|
-
}, url) :
|
|
66
|
-
/*#__PURE__*/
|
|
67
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
68
|
-
React.createElement("a", {
|
|
60
|
+
const fallback = /*#__PURE__*/React.createElement(Link, {
|
|
69
61
|
href: linkProps.href,
|
|
70
62
|
onClick: linkProps.onClick,
|
|
71
63
|
target: linkProps.target,
|
|
@@ -118,6 +118,7 @@ const TableWrapper = ({
|
|
|
118
118
|
const {
|
|
119
119
|
formatMessage
|
|
120
120
|
} = useIntl();
|
|
121
|
+
const isScrollableRegion = tabIndex !== undefined && expValEquals('platform_editor_a11y_table_wrapper_fix', 'isEnabled', true);
|
|
121
122
|
return /*#__PURE__*/React.createElement("div", {
|
|
122
123
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
123
124
|
className: TableSharedCssClassName.TABLE_NODE_WRAPPER,
|
|
@@ -127,8 +128,8 @@ const TableWrapper = ({
|
|
|
127
128
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
128
129
|
,
|
|
129
130
|
tabIndex: tabIndex,
|
|
130
|
-
role:
|
|
131
|
-
"aria-label": formatMessage(tableMessages.tableScrollRegion)
|
|
131
|
+
role: isScrollableRegion ? 'region' : undefined,
|
|
132
|
+
"aria-label": isScrollableRegion ? formatMessage(tableMessages.tableScrollRegion) : undefined
|
|
132
133
|
}, children);
|
|
133
134
|
};
|
|
134
135
|
export const tableCanBeSticky = (node, children
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "126.
|
|
60
|
+
const packageVersion = "126.15.0";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
package/dist/esm/react/index.js
CHANGED
|
@@ -440,6 +440,7 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
440
440
|
isInsideMultiBodiedExtension: isInsideMultiBodiedExtension,
|
|
441
441
|
allowTableAlignment: this.allowTableAlignment,
|
|
442
442
|
allowTableResizing: this.allowTableResizing,
|
|
443
|
+
// eslint-disable-next-line @atlaskit/platform/valid-gate-name
|
|
443
444
|
isPresentational: fg('platform_renderer_isPresentational') ? this.isPresentational : false,
|
|
444
445
|
disableTableOverflowShadow: this.disableTableOverflowShadow,
|
|
445
446
|
allowFixedColumnWidthOption: this.allowFixedColumnWidthOption
|
|
@@ -43,7 +43,7 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
|
43
43
|
}
|
|
44
44
|
var scrollbarContainers = (_this$wrapper$parentE = this.wrapper.parentElement) === null || _this$wrapper$parentE === void 0 ? void 0 : _this$wrapper$parentE.querySelectorAll(".".concat(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER));
|
|
45
45
|
|
|
46
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
46
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting, @atlaskit/platform/valid-gate-name
|
|
47
47
|
this.stickyScrollbarContainerElement = fg('platform_editor_querySelector_fix_table_renderer') ? scrollbarContainers === null || scrollbarContainers === void 0 ? void 0 : scrollbarContainers.item(scrollbarContainers.length - 1) : (_this$wrapper$parentE2 = this.wrapper.parentElement) === null || _this$wrapper$parentE2 === void 0 ? void 0 : _this$wrapper$parentE2.querySelector(".".concat(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER));
|
|
48
48
|
if (this.stickyScrollbarContainerElement) {
|
|
49
49
|
// Ignored via go/ees005
|
|
@@ -84,6 +84,8 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
|
84
84
|
root: this.rendererScrollableElement
|
|
85
85
|
});
|
|
86
86
|
var bottomSentinels = (_this$wrapper = this.wrapper) === null || _this$wrapper === void 0 || (_this$wrapper = _this$wrapper.parentElement) === null || _this$wrapper === void 0 ? void 0 : _this$wrapper.getElementsByClassName(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM);
|
|
87
|
+
|
|
88
|
+
// eslint-disable-next-line @atlaskit/platform/valid-gate-name
|
|
87
89
|
this.sentinels.bottom = fg('platform_editor_querySelector_fix_table_renderer') ? // eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
88
90
|
bottomSentinels === null || bottomSentinels === void 0 ? void 0 : bottomSentinels.item(bottomSentinels.length - 1) : // eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
89
91
|
(_this$wrapper2 = this.wrapper) === null || _this$wrapper2 === void 0 || (_this$wrapper2 = _this$wrapper2.parentElement) === null || _this$wrapper2 === void 0 || (_this$wrapper2 = _this$wrapper2.getElementsByClassName(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM)) === null || _this$wrapper2 === void 0 ? void 0 : _this$wrapper2.item(0);
|
|
@@ -91,7 +91,7 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
91
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
92
92
|
,
|
|
93
93
|
className: "".concat(RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
94
|
-
css: [!
|
|
94
|
+
css: [!isInsideOfInlineExtension && fg('platform_fix_macro_renders_in_layouts') && containerStyle]
|
|
95
95
|
}, content));
|
|
96
96
|
return centerAlignClass && expValEquals('platform_editor_flex_based_centering', 'isEnabled', true) ? jsx("div", {
|
|
97
97
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
@@ -120,7 +120,7 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
120
120
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
121
121
|
,
|
|
122
122
|
className: "".concat(RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
123
|
-
css: [!
|
|
123
|
+
css: [!isInsideOfInlineExtension && fg('platform_fix_macro_renders_in_layouts') && containerStyle]
|
|
124
124
|
}, content));
|
|
125
125
|
return centerAlignClass && expValEquals('platform_editor_flex_based_centering', 'isEnabled', true) ? jsx("div", {
|
|
126
126
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
@@ -66,15 +66,7 @@ export var CardErrorBoundary = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
66
66
|
target: '_blank',
|
|
67
67
|
rel: 'noreferrer noopener'
|
|
68
68
|
});
|
|
69
|
-
var fallback =
|
|
70
|
-
href: linkProps.href,
|
|
71
|
-
onClick: linkProps.onClick,
|
|
72
|
-
target: linkProps.target,
|
|
73
|
-
rel: linkProps.rel
|
|
74
|
-
}, url) :
|
|
75
|
-
/*#__PURE__*/
|
|
76
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
77
|
-
React.createElement("a", {
|
|
69
|
+
var fallback = /*#__PURE__*/React.createElement(Link, {
|
|
78
70
|
href: linkProps.href,
|
|
79
71
|
onClick: linkProps.onClick,
|
|
80
72
|
target: linkProps.target,
|
|
@@ -140,6 +140,7 @@ var TableWrapper = function TableWrapper(_ref2) {
|
|
|
140
140
|
tabIndex = _ref2.tabIndex;
|
|
141
141
|
var _useIntl = useIntl(),
|
|
142
142
|
formatMessage = _useIntl.formatMessage;
|
|
143
|
+
var isScrollableRegion = tabIndex !== undefined && expValEquals('platform_editor_a11y_table_wrapper_fix', 'isEnabled', true);
|
|
143
144
|
return /*#__PURE__*/React.createElement("div", {
|
|
144
145
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
145
146
|
className: TableSharedCssClassName.TABLE_NODE_WRAPPER,
|
|
@@ -149,8 +150,8 @@ var TableWrapper = function TableWrapper(_ref2) {
|
|
|
149
150
|
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
150
151
|
,
|
|
151
152
|
tabIndex: tabIndex,
|
|
152
|
-
role:
|
|
153
|
-
"aria-label": formatMessage(tableMessages.tableScrollRegion)
|
|
153
|
+
role: isScrollableRegion ? 'region' : undefined,
|
|
154
|
+
"aria-label": isScrollableRegion ? formatMessage(tableMessages.tableScrollRegion) : undefined
|
|
154
155
|
}, children);
|
|
155
156
|
};
|
|
156
157
|
export var tableCanBeSticky = function tableCanBeSticky(node, children
|
|
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
62
62
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
63
63
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "126.
|
|
65
|
+
var packageVersion = "126.15.0";
|
|
66
66
|
var setAsQueryContainerStyles = css({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "126.
|
|
3
|
+
"version": "126.15.1",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/adf-schema": "^52.
|
|
26
|
+
"@atlaskit/adf-schema": "^52.2.0",
|
|
27
27
|
"@atlaskit/adf-utils": "^19.27.0",
|
|
28
28
|
"@atlaskit/afm-i18n-platform-editor-renderer": "2.10.0",
|
|
29
29
|
"@atlaskit/analytics-listeners": "^10.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/status": "^3.1.0",
|
|
58
58
|
"@atlaskit/task-decision": "^19.3.0",
|
|
59
59
|
"@atlaskit/theme": "^22.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^33.2.0",
|
|
61
61
|
"@atlaskit/tokens": "^11.0.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.
|
|
74
|
+
"@atlaskit/editor-common": "^111.28.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.2.0",
|
|
76
76
|
"@atlaskit/media-core": "^37.0.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/mention": "^24.5.0",
|
|
91
91
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
92
92
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-958ca0ab9d.patch",
|
|
93
|
-
"@atlaskit/profilecard": "^24.
|
|
93
|
+
"@atlaskit/profilecard": "^24.40.0",
|
|
94
94
|
"@atlaskit/util-data-test": "^18.5.0",
|
|
95
95
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
96
96
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
@@ -187,9 +187,6 @@
|
|
|
187
187
|
"platform_editor__renderer_indentation_text_margin": {
|
|
188
188
|
"type": "boolean"
|
|
189
189
|
},
|
|
190
|
-
"dst-a11y__replace-anchor-with-link__editor": {
|
|
191
|
-
"type": "boolean"
|
|
192
|
-
},
|
|
193
190
|
"confluence_frontend_fix_view_page_slo": {
|
|
194
191
|
"type": "boolean"
|
|
195
192
|
},
|
|
@@ -238,9 +235,6 @@
|
|
|
238
235
|
"platform_editor_table_fixed_column_width_prop": {
|
|
239
236
|
"type": "boolean"
|
|
240
237
|
},
|
|
241
|
-
"confluence_inline_insert_excerpt_width_bugfix": {
|
|
242
|
-
"type": "boolean"
|
|
243
|
-
},
|
|
244
238
|
"confluence_insert_excerpt_inline_vertical_align": {
|
|
245
239
|
"type": "boolean"
|
|
246
240
|
},
|