@atlaskit/renderer 133.2.1 → 133.3.2
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 +33 -0
- package/dist/cjs/i18n/cs.js +4 -12
- package/dist/cjs/i18n/da.js +4 -12
- package/dist/cjs/i18n/de.js +4 -12
- package/dist/cjs/i18n/en.js +4 -12
- package/dist/cjs/i18n/en_GB.js +4 -12
- package/dist/cjs/i18n/en_ZZ.js +4 -12
- package/dist/cjs/i18n/es.js +4 -12
- package/dist/cjs/i18n/fi.js +4 -12
- package/dist/cjs/i18n/fr.js +4 -12
- package/dist/cjs/i18n/hr.js +4 -12
- package/dist/cjs/i18n/hu.js +4 -12
- package/dist/cjs/i18n/it.js +4 -12
- package/dist/cjs/i18n/ja.js +4 -12
- package/dist/cjs/i18n/ko.js +4 -12
- package/dist/cjs/i18n/nb.js +4 -12
- package/dist/cjs/i18n/nl.js +4 -12
- package/dist/cjs/i18n/pl.js +4 -12
- package/dist/cjs/i18n/pt_BR.js +4 -12
- package/dist/cjs/i18n/ru.js +4 -12
- package/dist/cjs/i18n/sl.js +4 -12
- package/dist/cjs/i18n/sr_RS.js +4 -12
- package/dist/cjs/i18n/sr_YR.js +4 -12
- package/dist/cjs/i18n/sv.js +4 -12
- package/dist/cjs/i18n/th.js +4 -12
- package/dist/cjs/i18n/tr.js +4 -12
- package/dist/cjs/i18n/uk.js +4 -12
- package/dist/cjs/i18n/vi.js +4 -12
- package/dist/cjs/i18n/zh.js +4 -12
- package/dist/cjs/i18n/zh_TW.js +4 -12
- package/dist/cjs/react/index.js +8 -2
- package/dist/cjs/react/nodes/extension.js +1 -1
- package/dist/cjs/ui/Expand.js +123 -10
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +2 -7
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +3 -63
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/i18n/cs.js +4 -12
- package/dist/es2019/i18n/da.js +4 -12
- package/dist/es2019/i18n/de.js +4 -12
- package/dist/es2019/i18n/en.js +4 -12
- package/dist/es2019/i18n/en_GB.js +4 -12
- package/dist/es2019/i18n/en_ZZ.js +4 -12
- package/dist/es2019/i18n/es.js +4 -12
- package/dist/es2019/i18n/fi.js +4 -12
- package/dist/es2019/i18n/fr.js +4 -12
- package/dist/es2019/i18n/hr.js +4 -12
- package/dist/es2019/i18n/hu.js +4 -12
- package/dist/es2019/i18n/it.js +4 -12
- package/dist/es2019/i18n/ja.js +4 -12
- package/dist/es2019/i18n/ko.js +4 -12
- package/dist/es2019/i18n/nb.js +4 -12
- package/dist/es2019/i18n/nl.js +4 -12
- package/dist/es2019/i18n/pl.js +4 -12
- package/dist/es2019/i18n/pt_BR.js +4 -12
- package/dist/es2019/i18n/ru.js +4 -12
- package/dist/es2019/i18n/sl.js +4 -12
- package/dist/es2019/i18n/sr_RS.js +4 -12
- package/dist/es2019/i18n/sr_YR.js +4 -12
- package/dist/es2019/i18n/sv.js +4 -12
- package/dist/es2019/i18n/th.js +4 -12
- package/dist/es2019/i18n/tr.js +4 -12
- package/dist/es2019/i18n/uk.js +4 -12
- package/dist/es2019/i18n/vi.js +4 -12
- package/dist/es2019/i18n/zh.js +4 -12
- package/dist/es2019/i18n/zh_TW.js +4 -12
- package/dist/es2019/react/index.js +8 -2
- package/dist/es2019/react/nodes/extension.js +1 -1
- package/dist/es2019/ui/Expand.js +120 -9
- package/dist/es2019/ui/Renderer/ErrorBoundary.js +1 -7
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +1 -75
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/i18n/cs.js +4 -12
- package/dist/esm/i18n/da.js +4 -12
- package/dist/esm/i18n/de.js +4 -12
- package/dist/esm/i18n/en.js +4 -12
- package/dist/esm/i18n/en_GB.js +4 -12
- package/dist/esm/i18n/en_ZZ.js +4 -12
- package/dist/esm/i18n/es.js +4 -12
- package/dist/esm/i18n/fi.js +4 -12
- package/dist/esm/i18n/fr.js +4 -12
- package/dist/esm/i18n/hr.js +4 -12
- package/dist/esm/i18n/hu.js +4 -12
- package/dist/esm/i18n/it.js +4 -12
- package/dist/esm/i18n/ja.js +4 -12
- package/dist/esm/i18n/ko.js +4 -12
- package/dist/esm/i18n/nb.js +4 -12
- package/dist/esm/i18n/nl.js +4 -12
- package/dist/esm/i18n/pl.js +4 -12
- package/dist/esm/i18n/pt_BR.js +4 -12
- package/dist/esm/i18n/ru.js +4 -12
- package/dist/esm/i18n/sl.js +4 -12
- package/dist/esm/i18n/sr_RS.js +4 -12
- package/dist/esm/i18n/sr_YR.js +4 -12
- package/dist/esm/i18n/sv.js +4 -12
- package/dist/esm/i18n/th.js +4 -12
- package/dist/esm/i18n/tr.js +4 -12
- package/dist/esm/i18n/uk.js +4 -12
- package/dist/esm/i18n/vi.js +4 -12
- package/dist/esm/i18n/zh.js +4 -12
- package/dist/esm/i18n/zh_TW.js +4 -12
- package/dist/esm/react/index.js +8 -2
- package/dist/esm/react/nodes/extension.js +1 -1
- package/dist/esm/ui/Expand.js +123 -9
- package/dist/esm/ui/Renderer/ErrorBoundary.js +1 -7
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +3 -63
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/i18n/cs.d.ts +2 -12
- package/dist/types/i18n/da.d.ts +2 -12
- package/dist/types/i18n/de.d.ts +2 -12
- package/dist/types/i18n/en.d.ts +2 -12
- package/dist/types/i18n/en_GB.d.ts +2 -12
- package/dist/types/i18n/en_ZZ.d.ts +2 -12
- package/dist/types/i18n/es.d.ts +2 -12
- package/dist/types/i18n/fi.d.ts +2 -12
- package/dist/types/i18n/fr.d.ts +2 -12
- package/dist/types/i18n/hr.d.ts +2 -12
- package/dist/types/i18n/hu.d.ts +2 -12
- package/dist/types/i18n/it.d.ts +2 -12
- package/dist/types/i18n/ja.d.ts +2 -12
- package/dist/types/i18n/ko.d.ts +2 -12
- package/dist/types/i18n/nb.d.ts +2 -12
- package/dist/types/i18n/nl.d.ts +2 -12
- package/dist/types/i18n/pl.d.ts +2 -12
- package/dist/types/i18n/pt_BR.d.ts +2 -12
- package/dist/types/i18n/ru.d.ts +2 -12
- package/dist/types/i18n/sl.d.ts +2 -12
- package/dist/types/i18n/sr_RS.d.ts +2 -12
- package/dist/types/i18n/sr_YR.d.ts +2 -12
- package/dist/types/i18n/sv.d.ts +2 -12
- package/dist/types/i18n/th.d.ts +2 -12
- package/dist/types/i18n/tr.d.ts +2 -12
- package/dist/types/i18n/uk.d.ts +2 -12
- package/dist/types/i18n/vi.d.ts +2 -12
- package/dist/types/i18n/zh.d.ts +2 -12
- package/dist/types/i18n/zh_TW.d.ts +2 -12
- package/dist/types/ui/Expand.d.ts +1 -0
- package/package.json +14 -16
package/dist/esm/i18n/vi.js
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
/* prettier-ignore */
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
3
|
/**
|
|
3
4
|
* NOTE:
|
|
4
5
|
*
|
|
5
6
|
* This file is automatically generated by Traduki 2.0.
|
|
6
7
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
'fabric.editor.headingLink.copied': 'Đã sao chép!',
|
|
12
|
-
'fabric.editor.headingLink.copyAnchorLink': 'Sao chép liên kết vào tiêu đề',
|
|
13
|
-
'fabric.editor.headingLink.copyAriaLabel': 'Sao chép',
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': 'giảm dần',
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': 'Sao chép không thành công',
|
|
16
|
-
'fabric.editor.headingLink.noneSortingLabel': 'không có',
|
|
17
|
-
'fabric.editor.inlineComment.marker.end': 'bình luận nội tuyến kết thúc',
|
|
18
|
-
'fabric.editor.inlineComment.marker.start': 'bình luận nội tuyến bắt đầu'
|
|
19
|
-
};
|
|
9
|
+
|
|
10
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/vi';
|
|
11
|
+
export default translations;
|
package/dist/esm/i18n/zh.js
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
/* prettier-ignore */
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
3
|
/**
|
|
3
4
|
* NOTE:
|
|
4
5
|
*
|
|
5
6
|
* This file is automatically generated by Traduki 2.0.
|
|
6
7
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
'fabric.editor.headingLink.copied': '已复制!',
|
|
12
|
-
'fabric.editor.headingLink.copyAnchorLink': '复制标题链接',
|
|
13
|
-
'fabric.editor.headingLink.copyAriaLabel': '复制',
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': '降序',
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': '复制失败',
|
|
16
|
-
'fabric.editor.headingLink.noneSortingLabel': '无',
|
|
17
|
-
'fabric.editor.inlineComment.marker.end': '内联评论结束',
|
|
18
|
-
'fabric.editor.inlineComment.marker.start': '内联评论开始'
|
|
19
|
-
};
|
|
9
|
+
|
|
10
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/zh';
|
|
11
|
+
export default translations;
|
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
/* prettier-ignore */
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
3
|
/**
|
|
3
4
|
* NOTE:
|
|
4
5
|
*
|
|
5
6
|
* This file is automatically generated by Traduki 2.0.
|
|
6
7
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
'fabric.editor.headingLink.copied': '已複製!',
|
|
12
|
-
'fabric.editor.headingLink.copyAnchorLink': '複製標題連結',
|
|
13
|
-
'fabric.editor.headingLink.copyAriaLabel': '複製',
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': '遞減',
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': '複製失敗',
|
|
16
|
-
'fabric.editor.headingLink.noneSortingLabel': '無',
|
|
17
|
-
'fabric.editor.inlineComment.marker.end': '內嵌留言結束',
|
|
18
|
-
'fabric.editor.inlineComment.marker.start': '內嵌留言開始'
|
|
19
|
-
};
|
|
9
|
+
|
|
10
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/zh_TW';
|
|
11
|
+
export default translations;
|
package/dist/esm/react/index.js
CHANGED
|
@@ -712,9 +712,14 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
712
712
|
});
|
|
713
713
|
});
|
|
714
714
|
}
|
|
715
|
+
|
|
716
|
+
// Only compute searchText when the browser find experiment is enabled,
|
|
717
|
+
// to avoid unnecessary node.textContent string allocations per expand node.
|
|
718
|
+
var searchText = expValEquals('platform_editor_close_expand_find', 'isEnabled', true) ? node.textContent : undefined;
|
|
715
719
|
if (!isNestedHeaderLinksEnabled(this.allowHeadingAnchorLinks)) {
|
|
716
720
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
717
|
-
loadBodyContent: loadBodyContent
|
|
721
|
+
loadBodyContent: loadBodyContent,
|
|
722
|
+
searchText: searchText
|
|
718
723
|
});
|
|
719
724
|
}
|
|
720
725
|
var nestedHeaderIds = findChildrenByType(node, node.type.schema.nodes.heading).map(function (_ref4) {
|
|
@@ -723,7 +728,8 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
723
728
|
});
|
|
724
729
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
725
730
|
nestedHeaderIds: nestedHeaderIds,
|
|
726
|
-
loadBodyContent: loadBodyContent
|
|
731
|
+
loadBodyContent: loadBodyContent,
|
|
732
|
+
searchText: searchText
|
|
727
733
|
});
|
|
728
734
|
}
|
|
729
735
|
|
|
@@ -93,7 +93,7 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
93
93
|
var extensionHeight = nodeHeight || viewportSize;
|
|
94
94
|
var isInline = (shouldDisplayExtensionAsInline === null || shouldDisplayExtensionAsInline === void 0 ? void 0 : shouldDisplayExtensionAsInline(node)) && expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true);
|
|
95
95
|
var inlineClassName = isInline ? RendererCssClassName.EXTENSION_AS_INLINE : '';
|
|
96
|
-
var asInlineAnalytics = isInline && fireAnalyticsEvent && node
|
|
96
|
+
var asInlineAnalytics = isInline && fireAnalyticsEvent && node ? jsx(FireExtensionAsInlineAnalytics, {
|
|
97
97
|
fireAnalyticsEvent: fireAnalyticsEvent,
|
|
98
98
|
node: node
|
|
99
99
|
}) : null;
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -6,7 +6,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import React, { useCallback, useRef, Suspense, lazy } from 'react';
|
|
9
|
-
|
|
9
|
+
import { bind } from 'bind-event-listener';
|
|
10
|
+
import { getDocument } from '@atlaskit/browser-apis';
|
|
10
11
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
12
|
import { ExpandIconWrapper, ExpandLayoutWrapperWithRef, expandMessages, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
12
13
|
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
|
|
@@ -89,12 +90,17 @@ var titleContainerStyles = css({
|
|
|
89
90
|
var titleContainerStylesExpanded = css({
|
|
90
91
|
paddingBottom: "var(--ds-space-0, 0px)"
|
|
91
92
|
});
|
|
93
|
+
|
|
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
|
|
96
|
+
// hidden="until-found" on the DOM element, which applies content-visibility:hidden natively —
|
|
97
|
+
// this hides the content while allowing browser Ctrl+F to index the text.
|
|
98
|
+
// The visibility:hidden in CSS serves as an SSR fallback (useEffect doesn't run server-side).
|
|
92
99
|
var contentContainerStyles = css({
|
|
93
100
|
paddingTop: "var(--ds-space-0, 0px)",
|
|
94
101
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
95
102
|
paddingRight: "var(--ds-space-200, 16px)",
|
|
96
103
|
paddingLeft: "var(--ds-space-400, 32px)",
|
|
97
|
-
display: 'flow-root',
|
|
98
104
|
visibility: 'hidden',
|
|
99
105
|
// The follow rules inside @supports block are added as a part of ED-8893
|
|
100
106
|
// The fix is targeting mobile bridge on iOS 12 or below,
|
|
@@ -104,6 +110,13 @@ var contentContainerStyles = css({
|
|
|
104
110
|
boxSizing: 'border-box'
|
|
105
111
|
}
|
|
106
112
|
});
|
|
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
|
|
116
|
+
// content-visibility:hidden applied by hidden="until-found" and makes content visible.
|
|
117
|
+
var contentContainerStylesFlowRoot = css({
|
|
118
|
+
display: 'flow-root'
|
|
119
|
+
});
|
|
107
120
|
var contentContainerStylesExpanded = css({
|
|
108
121
|
paddingTop: "var(--ds-space-100, 8px)",
|
|
109
122
|
visibility: 'visible'
|
|
@@ -121,6 +134,19 @@ var contentContainerStylesNotExpanded = css({
|
|
|
121
134
|
userSelect: 'none'
|
|
122
135
|
}
|
|
123
136
|
});
|
|
137
|
+
|
|
138
|
+
// When browser find is enabled and expand is collapsed, we rely on the
|
|
139
|
+
// hidden="until-found" attribute on the outer container to hide content.
|
|
140
|
+
// We remove height:0/overflow:hidden/clip from the inner wrapper so the
|
|
141
|
+
// browser can actually search through the content.
|
|
142
|
+
var contentContainerStylesNotExpandedBrowserFind = css({
|
|
143
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
144
|
+
'.expand-content-wrapper, .nestedExpand-content-wrapper': {
|
|
145
|
+
width: '100%',
|
|
146
|
+
display: 'block',
|
|
147
|
+
userSelect: 'none'
|
|
148
|
+
}
|
|
149
|
+
});
|
|
124
150
|
var clearNextSiblingMarginTopStyle = css({
|
|
125
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
126
152
|
'& + *': {
|
|
@@ -167,7 +193,8 @@ var TitleContainer = function TitleContainer(props) {
|
|
|
167
193
|
TitleContainer.displayName = 'TitleContainerButton';
|
|
168
194
|
var ContentContainer = function ContentContainer(props) {
|
|
169
195
|
return jsx("div", {
|
|
170
|
-
|
|
196
|
+
ref: props.contentRef,
|
|
197
|
+
css: [contentContainerStyles, !props.enableBrowserFind && contentContainerStylesFlowRoot, props.expanded && contentContainerStylesExpanded, !props.expanded && (props.enableBrowserFind ? contentContainerStylesNotExpandedBrowserFind : contentContainerStylesNotExpanded)]
|
|
171
198
|
}, props.children);
|
|
172
199
|
};
|
|
173
200
|
function fireExpandToggleAnalytics(nodeType, expanded, fireAnalyticsEvent) {
|
|
@@ -194,7 +221,8 @@ function Expand(_ref2) {
|
|
|
194
221
|
localId = _ref2.localId,
|
|
195
222
|
nestedHeaderIds = _ref2.nestedHeaderIds,
|
|
196
223
|
rendererContentMode = _ref2.rendererContentMode,
|
|
197
|
-
loadBodyContent = _ref2.loadBodyContent
|
|
224
|
+
loadBodyContent = _ref2.loadBodyContent,
|
|
225
|
+
searchText = _ref2.searchText;
|
|
198
226
|
var _React$useState = React.useState(false),
|
|
199
227
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
200
228
|
expanded = _React$useState2[0],
|
|
@@ -211,14 +239,99 @@ function Expand(_ref2) {
|
|
|
211
239
|
var label = intl.formatMessage(expanded ? expandMessages.collapseNode : expandMessages.expandNode);
|
|
212
240
|
var _useRef = useRef(_uniqueId('expand-title-')),
|
|
213
241
|
id = _useRef.current;
|
|
242
|
+
var contentContainerRef = useRef(null);
|
|
243
|
+
var contentWrapperRef = useRef(null);
|
|
214
244
|
var handleFocus = useCallback(function () {
|
|
215
245
|
return setFocused(true);
|
|
216
246
|
}, []);
|
|
217
247
|
var handleBlur = useCallback(function () {
|
|
218
248
|
return setFocused(false);
|
|
219
249
|
}, []);
|
|
250
|
+
var expandForBrowserFind = useCallback(function () {
|
|
251
|
+
setHasLoadedChildren(true);
|
|
252
|
+
setExpanded(true);
|
|
253
|
+
}, []);
|
|
220
254
|
var isCompactModeSupported = expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
|
|
221
255
|
var isCompact = rendererContentMode === 'compact' && isCompactModeSupported;
|
|
256
|
+
var shouldRenderLazyChildren = hasLoadedChildren || loadBodyContent;
|
|
257
|
+
// Only render the lightweight text placeholder when lazy load is ON and
|
|
258
|
+
// children haven't been loaded yet. When lazy load is OFF, children are
|
|
259
|
+
// always in the DOM — hidden="until-found" on the wrapper already makes
|
|
260
|
+
// them searchable by browser find, so no placeholder is needed.
|
|
261
|
+
var shouldRenderBrowserFindText = !shouldRenderLazyChildren && searchText && fg('hot-121622_lazy_load_expand_content') && expValEquals('platform_editor_close_expand_find', 'isEnabled', true);
|
|
262
|
+
|
|
263
|
+
// Feature-detect hidden="until-found" support via the beforematch event.
|
|
264
|
+
// Chrome 102+ and Firefox 130+ support it; Safari does not yet.
|
|
265
|
+
// In unsupported browsers, setting hidden="until-found" is treated as boolean hidden
|
|
266
|
+
// (display:none), which would break the expand entirely.
|
|
267
|
+
// Initialised as false and set in useEffect to avoid SSR/client hydration mismatch —
|
|
268
|
+
// useMemo would return true on the client's first render in supported browsers,
|
|
269
|
+
// differing from the server snapshot which always produces false.
|
|
270
|
+
var _React$useState7 = React.useState(false),
|
|
271
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
272
|
+
supportsHiddenUntilFound = _React$useState8[0],
|
|
273
|
+
setSupportsHiddenUntilFound = _React$useState8[1];
|
|
274
|
+
React.useEffect(function () {
|
|
275
|
+
var doc = getDocument();
|
|
276
|
+
setSupportsHiddenUntilFound(doc !== null && doc !== void 0 && doc.body ? 'onbeforematch' in doc.body : false);
|
|
277
|
+
}, []);
|
|
278
|
+
|
|
279
|
+
// React 18 treats `hidden` as a boolean attribute and strips the "until-found" value,
|
|
280
|
+
// rendering it as just `hidden` (which applies display:none and blocks find-in-page).
|
|
281
|
+
// We bypass React by setting the attribute directly on the DOM element around the text.
|
|
282
|
+
//
|
|
283
|
+
// We also remove the CSS visibility:hidden (SSR fallback) once hidden="until-found" is set,
|
|
284
|
+
// because visibility:hidden blocks browser find. On expanded, we restore visibility to visible.
|
|
285
|
+
//
|
|
286
|
+
// Only applied when the browser supports hidden="until-found" (detected via onbeforematch).
|
|
287
|
+
// In unsupported browsers (Safari), we skip this entirely and fall back to the normal
|
|
288
|
+
// CSS hiding (visibility:hidden + height:0), which doesn't support find-in-page but
|
|
289
|
+
// still works correctly for expand/collapse.
|
|
290
|
+
React.useEffect(function () {
|
|
291
|
+
var contentContainer = contentContainerRef.current;
|
|
292
|
+
var contentWrapper = contentWrapperRef.current;
|
|
293
|
+
if (!contentWrapper) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
if (supportsHiddenUntilFound && expValEquals('platform_editor_close_expand_find', 'isEnabled', true) && !expanded) {
|
|
297
|
+
contentWrapper.setAttribute('hidden', 'until-found');
|
|
298
|
+
// Override the CSS visibility:hidden from contentContainerStyles — hidden="until-found"
|
|
299
|
+
// now handles hiding via content-visibility:hidden, which allows browser find to index
|
|
300
|
+
// the content. We use 'visible' (not '') because '' only clears the inline style but
|
|
301
|
+
// the Emotion CSS class rule still applies visibility:hidden, blocking find-in-page.
|
|
302
|
+
contentContainer === null || contentContainer === void 0 || contentContainer.style.setProperty('visibility', 'visible');
|
|
303
|
+
contentWrapper.style.visibility = 'visible';
|
|
304
|
+
} else {
|
|
305
|
+
contentWrapper.removeAttribute('hidden');
|
|
306
|
+
contentContainer === null || contentContainer === void 0 || contentContainer.style.removeProperty('visibility');
|
|
307
|
+
contentWrapper.style.visibility = '';
|
|
308
|
+
}
|
|
309
|
+
}, [expanded, supportsHiddenUntilFound]);
|
|
310
|
+
React.useEffect(function () {
|
|
311
|
+
if (!expValEquals('platform_editor_close_expand_find', 'isEnabled', true) || expanded) {
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
var contentWrapper = contentWrapperRef.current;
|
|
315
|
+
var unbindWrapperBeforeMatch = contentWrapper && supportsHiddenUntilFound ? bind(contentWrapper, {
|
|
316
|
+
type: 'beforematch',
|
|
317
|
+
listener: expandForBrowserFind
|
|
318
|
+
}) : undefined;
|
|
319
|
+
return function () {
|
|
320
|
+
unbindWrapperBeforeMatch === null || unbindWrapperBeforeMatch === void 0 || unbindWrapperBeforeMatch();
|
|
321
|
+
};
|
|
322
|
+
}, [expandForBrowserFind, expanded, supportsHiddenUntilFound]);
|
|
323
|
+
var expandContent = children;
|
|
324
|
+
if (shouldRenderBrowserFindText) {
|
|
325
|
+
// Browser find path: keep a lightweight text mirror in the closed expand
|
|
326
|
+
// so Ctrl+F can index it without mounting the rich children tree.
|
|
327
|
+
expandContent = jsx("span", null, searchText);
|
|
328
|
+
} else if (!shouldRenderLazyChildren && fg('hot-121622_lazy_load_expand_content')) {
|
|
329
|
+
expandContent = null;
|
|
330
|
+
} else if (fg('hot-121622_lazy_load_expand_content')) {
|
|
331
|
+
expandContent = jsx(Suspense, {
|
|
332
|
+
fallback: jsx("div", null, intl.formatMessage(expandMessages.loading))
|
|
333
|
+
}, jsx(LazyChildren, null, children));
|
|
334
|
+
}
|
|
222
335
|
return jsx(Container, {
|
|
223
336
|
"data-testid": "expand-container-".concat(nodeType, "-").concat(id),
|
|
224
337
|
"data-node-type": nodeType,
|
|
@@ -283,14 +396,15 @@ function Expand(_ref2) {
|
|
|
283
396
|
css: [titleStyles, isCompact && titleStylesDense],
|
|
284
397
|
id: id
|
|
285
398
|
}, title || intl.formatMessage(expandMessages.expandDefaultTitle))), jsx(ContentContainer, {
|
|
286
|
-
expanded: expanded
|
|
399
|
+
expanded: expanded,
|
|
400
|
+
enableBrowserFind: supportsHiddenUntilFound && expValEquals('platform_editor_close_expand_find', 'isEnabled', true),
|
|
401
|
+
contentRef: contentContainerRef
|
|
287
402
|
}, jsx("div", {
|
|
288
|
-
className: "".concat(nodeType, "-content-wrapper")
|
|
403
|
+
className: "".concat(nodeType, "-content-wrapper"),
|
|
404
|
+
ref: contentWrapperRef
|
|
289
405
|
}, jsx(WidthProvider, null, jsx("div", {
|
|
290
406
|
css: clearNextSiblingMarginTopStyle
|
|
291
|
-
}),
|
|
292
|
-
fallback: jsx("div", null, intl.formatMessage(expandMessages.loading))
|
|
293
|
-
}, jsx(LazyChildren, null, children)) : null : children))));
|
|
407
|
+
}), expandContent))));
|
|
294
408
|
}
|
|
295
409
|
|
|
296
410
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
@@ -11,9 +11,6 @@ import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
|
11
11
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
12
12
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
13
13
|
import { PLATFORM } from '../../analytics/events';
|
|
14
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
|
-
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
16
|
-
import uuid from 'uuid';
|
|
17
14
|
|
|
18
15
|
// Ignored via go/ees005
|
|
19
16
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -109,11 +106,8 @@ export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
109
106
|
key: "render",
|
|
110
107
|
value: function render() {
|
|
111
108
|
if (this.state.domError) {
|
|
112
|
-
var key = expValEquals('platform_editor_renderer_error_boundary_stable_key', 'isEnabled', true) ? this.state.domErrorCount :
|
|
113
|
-
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
114
|
-
uuid();
|
|
115
109
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
116
|
-
key:
|
|
110
|
+
key: this.state.domErrorCount
|
|
117
111
|
}, this.props.children);
|
|
118
112
|
}
|
|
119
113
|
if (this.shouldRecover()) {
|
|
@@ -1998,37 +1998,7 @@ var rendererAnnotationStylesCommentHeightFix = css({
|
|
|
1998
1998
|
});
|
|
1999
1999
|
var RENDERER_LIST_DENSE_GAP = "max(0px,calc((var(--ak-renderer-base-font-size) - ".concat(akEditorFullPageDenseFontSize, "px)* (4/3)))");
|
|
2000
2000
|
var TASKLIST_CONTAINER_DENSE_MARGIN = "max(calc(10px + (var(--ak-renderer-base-font-size) - ".concat(akEditorFullPageDenseFontSize, "px) *( 2 / 3)))");
|
|
2001
|
-
var scaledDenseEmojiStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(EmojiSharedCssClassName.EMOJI_IMAGE), {
|
|
2002
|
-
height: "".concat(defaultDenseEmojiHeight, "px"),
|
|
2003
|
-
minHeight: "".concat(defaultDenseEmojiHeight, "px"),
|
|
2004
|
-
minWidth: "".concat(defaultDenseEmojiHeight, "px"),
|
|
2005
|
-
maxHeight: "".concat(denseEmojiHeightH1, "px"),
|
|
2006
|
-
maxWidth: "".concat(denseEmojiHeightH1, "px"),
|
|
2007
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
2008
|
-
img: {
|
|
2009
|
-
width: '100%',
|
|
2010
|
-
height: '100%',
|
|
2011
|
-
objectFit: 'contain'
|
|
2012
|
-
}
|
|
2013
|
-
}), "h1 :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2014
|
-
height: "".concat(denseEmojiHeightH1, "px"),
|
|
2015
|
-
width: "".concat(denseEmojiHeightH1, "px")
|
|
2016
|
-
}), "h2 :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2017
|
-
height: "".concat(denseEmojiHeightH2, "px"),
|
|
2018
|
-
width: "".concat(denseEmojiHeightH2, "px")
|
|
2019
|
-
}), "h3 :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2020
|
-
height: "".concat(denseEmojiHeightH3, "px"),
|
|
2021
|
-
width: "".concat(denseEmojiHeightH3, "px")
|
|
2022
|
-
}), "h4 :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2023
|
-
height: "".concat(denseEmojiHeightH4, "px"),
|
|
2024
|
-
width: "".concat(denseEmojiHeightH4, "px")
|
|
2025
|
-
}), ":is(h5, h6, p) :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2026
|
-
height: "".concat(defaultDenseEmojiHeight, "px"),
|
|
2027
|
-
width: "".concat(defaultDenseEmojiHeight, "px")
|
|
2028
|
-
}));
|
|
2029
|
-
|
|
2030
|
-
// this is gated behind `platform_editor_emojis_in_renderer_smart_links`
|
|
2031
|
-
var scaledDenseEmojiStylesNew = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(EmojiSharedCssClassName.EMOJI_IMAGE), {
|
|
2001
|
+
var scaledDenseEmojiStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(EmojiSharedCssClassName.EMOJI_IMAGE), {
|
|
2032
2002
|
height: "".concat(defaultDenseEmojiHeight, "px"),
|
|
2033
2003
|
minHeight: "".concat(defaultDenseEmojiHeight, "px"),
|
|
2034
2004
|
minWidth: "".concat(defaultDenseEmojiHeight, "px"),
|
|
@@ -2061,37 +2031,7 @@ var scaledDenseEmojiStylesNew = css(_defineProperty(_defineProperty(_definePrope
|
|
|
2061
2031
|
height: "".concat(defaultInlineEmojiHeight, "px"),
|
|
2062
2032
|
width: "".concat(defaultInlineEmojiHeight, "px")
|
|
2063
2033
|
}));
|
|
2064
|
-
var scaledEmojiStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(EmojiSharedCssClassName.EMOJI_IMAGE), {
|
|
2065
|
-
height: "".concat(defaultEmojiHeight, "px"),
|
|
2066
|
-
minHeight: "".concat(defaultEmojiHeight, "px"),
|
|
2067
|
-
minWidth: "".concat(defaultEmojiHeight, "px"),
|
|
2068
|
-
maxHeight: "".concat(scaledEmojiHeightH1, "px"),
|
|
2069
|
-
maxWidth: "".concat(scaledEmojiHeightH1, "px"),
|
|
2070
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
2071
|
-
img: {
|
|
2072
|
-
width: '100%',
|
|
2073
|
-
height: '100%',
|
|
2074
|
-
objectFit: 'contain'
|
|
2075
|
-
}
|
|
2076
|
-
}), "h1 :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2077
|
-
height: "".concat(scaledEmojiHeightH1, "px"),
|
|
2078
|
-
width: "".concat(scaledEmojiHeightH1, "px")
|
|
2079
|
-
}), "h2 :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2080
|
-
height: "".concat(scaledEmojiHeightH2, "px"),
|
|
2081
|
-
width: "".concat(scaledEmojiHeightH2, "px")
|
|
2082
|
-
}), "h3 :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2083
|
-
height: "".concat(scaledEmojiHeightH3, "px"),
|
|
2084
|
-
width: "".concat(scaledEmojiHeightH3, "px")
|
|
2085
|
-
}), "h4 :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2086
|
-
height: "".concat(scaledEmojiHeightH4, "px"),
|
|
2087
|
-
width: "".concat(scaledEmojiHeightH4, "px")
|
|
2088
|
-
}), ":is(h5, h6, p) :is(.".concat(EmojiSharedCssClassName.EMOJI_IMAGE, ", .").concat(EmojiSharedCssClassName.EMOJI_SPRITE, ", .").concat(EmojiSharedCssClassName.EMOJI_PLACEHOLDER, ")"), {
|
|
2089
|
-
height: "".concat(defaultEmojiHeight, "px"),
|
|
2090
|
-
width: "".concat(defaultEmojiHeight, "px")
|
|
2091
|
-
}));
|
|
2092
|
-
|
|
2093
|
-
// this is gated behind `platform_editor_emojis_in_renderer_smart_links`
|
|
2094
|
-
var scaledEmojiStylesNew = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(EmojiSharedCssClassName.EMOJI_IMAGE), {
|
|
2034
|
+
var scaledEmojiStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(EmojiSharedCssClassName.EMOJI_IMAGE), {
|
|
2095
2035
|
height: "".concat(defaultEmojiHeight, "px"),
|
|
2096
2036
|
minHeight: "".concat(defaultEmojiHeight, "px"),
|
|
2097
2037
|
minWidth: "".concat(defaultEmojiHeight, "px"),
|
|
@@ -2273,7 +2213,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
|
|
|
2273
2213
|
// this should be placed after baseOtherStyles
|
|
2274
2214
|
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle,
|
|
2275
2215
|
// merge firstWrappedMediaStyles with mediaSingleSharedStyle when clean up platform_editor_fix_media_in_renderer
|
|
2276
|
-
fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ?
|
|
2216
|
+
fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, editorExperiment('platform_synced_block', true) && syncBlockStyles, centerWrapperStyles, editorExperiment('platform_synced_block', true) && isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && editorExperiment('platform_synced_block', true) && tableFakeBorderStyles, isInsideSyncBlock && editorExperiment('platform_synced_block', true) && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, expValEquals('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2277
2217
|
"data-testid": testId
|
|
2278
2218
|
}, children);
|
|
2279
2219
|
};
|
|
@@ -63,7 +63,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
63
63
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
64
64
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
65
65
|
var packageName = "@atlaskit/renderer";
|
|
66
|
-
var packageVersion = "133.
|
|
66
|
+
var packageVersion = "133.3.1";
|
|
67
67
|
var setAsQueryContainerStyles = css({
|
|
68
68
|
containerName: 'ak-renderer-wrapper',
|
|
69
69
|
containerType: 'inline-size'
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -4,15 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'fabric.editor.headingLink.copied': string;
|
|
10
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
-
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
-
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/cs';
|
|
8
|
+
export default translations;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -4,15 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'fabric.editor.headingLink.copied': string;
|
|
10
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
-
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
-
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/da';
|
|
8
|
+
export default translations;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -4,15 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'fabric.editor.headingLink.copied': string;
|
|
10
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
-
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
-
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/de';
|
|
8
|
+
export default translations;
|
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -4,15 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'fabric.editor.headingLink.copied': string;
|
|
10
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
-
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
-
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/en';
|
|
8
|
+
export default translations;
|
|
@@ -4,15 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'fabric.editor.headingLink.copied': string;
|
|
10
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
-
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
-
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/en_GB';
|
|
8
|
+
export default translations;
|
|
@@ -4,15 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'fabric.editor.headingLink.copied': string;
|
|
10
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
-
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
-
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/en_ZZ';
|
|
8
|
+
export default translations;
|
package/dist/types/i18n/es.d.ts
CHANGED
|
@@ -4,15 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'fabric.editor.headingLink.copied': string;
|
|
10
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
-
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
-
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/es';
|
|
8
|
+
export default translations;
|
package/dist/types/i18n/fi.d.ts
CHANGED
|
@@ -4,15 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'fabric.editor.headingLink.copied': string;
|
|
10
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
-
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
-
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/fi';
|
|
8
|
+
export default translations;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -4,15 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'fabric.editor.headingLink.copied': string;
|
|
10
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
-
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
-
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/fr';
|
|
8
|
+
export default translations;
|