@atlaskit/renderer 124.7.1 → 124.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/ui/Expand.js +2 -2
- package/dist/cjs/ui/Renderer/get-base-font-size.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Expand.js +2 -2
- package/dist/es2019/ui/Renderer/get-base-font-size.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Expand.js +2 -2
- package/dist/esm/ui/Renderer/get-base-font-size.js +1 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/ui/Renderer/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/Renderer/types.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 124.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`18aec70029328`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/18aec70029328) -
|
|
8
|
+
EDITOR-2420 Rename parameter values of `dense` contentMode to `compact`
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 124.7.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -227,7 +227,7 @@ function Expand(_ref2) {
|
|
|
227
227
|
return setFocused(false);
|
|
228
228
|
}, []);
|
|
229
229
|
var isCompactModeSupported = (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp');
|
|
230
|
-
var
|
|
230
|
+
var isCompact = rendererContentMode === ((0, _expValEquals.expValEquals)('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense') && isCompactModeSupported;
|
|
231
231
|
return (0, _react.jsx)(Container, {
|
|
232
232
|
"data-testid": "expand-container-".concat(nodeType, "-").concat(id),
|
|
233
233
|
"data-node-type": nodeType,
|
|
@@ -287,7 +287,7 @@ function Expand(_ref2) {
|
|
|
287
287
|
spacing: "spacious",
|
|
288
288
|
size: "small"
|
|
289
289
|
}))), (0, _react.jsx)("span", {
|
|
290
|
-
css: [titleStyles,
|
|
290
|
+
css: [titleStyles, isCompact && titleStylesDense],
|
|
291
291
|
id: id
|
|
292
292
|
}, title || intl.formatMessage(_ui.expandMessages.expandDefaultTitle))), (0, _react.jsx)(ContentContainer, {
|
|
293
293
|
expanded: expanded
|
|
@@ -8,7 +8,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
8
8
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
9
|
var getBaseFontSize = exports.getBaseFontSize = function getBaseFontSize(appearance, contentMode) {
|
|
10
10
|
if ((0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
11
|
-
if (contentMode === 'dense') {
|
|
11
|
+
if (contentMode === ((0, _expValEquals.expValEquals)('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
|
|
12
12
|
return _editorSharedStyles.akEditorFullPageDenseFontSize;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -68,7 +68,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
68
68
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
69
69
|
var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
70
70
|
var packageName = "@atlaskit/renderer";
|
|
71
|
-
var packageVersion = "
|
|
71
|
+
var packageVersion = "0.0.0-development";
|
|
72
72
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
73
73
|
containerName: 'ak-renderer-wrapper',
|
|
74
74
|
containerType: 'inline-size'
|
package/dist/es2019/ui/Expand.js
CHANGED
|
@@ -207,7 +207,7 @@ function Expand({
|
|
|
207
207
|
const handleFocus = useCallback(() => setFocused(true), []);
|
|
208
208
|
const handleBlur = useCallback(() => setFocused(false), []);
|
|
209
209
|
const isCompactModeSupported = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
|
|
210
|
-
const
|
|
210
|
+
const isCompact = rendererContentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense') && isCompactModeSupported;
|
|
211
211
|
return jsx(Container, {
|
|
212
212
|
"data-testid": `expand-container-${nodeType}-${id}`,
|
|
213
213
|
"data-node-type": nodeType,
|
|
@@ -267,7 +267,7 @@ function Expand({
|
|
|
267
267
|
spacing: "spacious",
|
|
268
268
|
size: "small"
|
|
269
269
|
}))), jsx("span", {
|
|
270
|
-
css: [titleStyles,
|
|
270
|
+
css: [titleStyles, isCompact && titleStylesDense],
|
|
271
271
|
id: id
|
|
272
272
|
}, title || intl.formatMessage(expandMessages.expandDefaultTitle))), jsx(ContentContainer, {
|
|
273
273
|
expanded: expanded
|
|
@@ -2,7 +2,7 @@ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '
|
|
|
2
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
3
|
export const getBaseFontSize = (appearance, contentMode) => {
|
|
4
4
|
if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
5
|
-
if (contentMode === 'dense') {
|
|
5
|
+
if (contentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
|
|
6
6
|
return akEditorFullPageDenseFontSize;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -54,7 +54,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
54
54
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
55
55
|
const TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
56
56
|
const packageName = "@atlaskit/renderer";
|
|
57
|
-
const packageVersion = "
|
|
57
|
+
const packageVersion = "0.0.0-development";
|
|
58
58
|
const setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -218,7 +218,7 @@ function Expand(_ref2) {
|
|
|
218
218
|
return setFocused(false);
|
|
219
219
|
}, []);
|
|
220
220
|
var isCompactModeSupported = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
|
|
221
|
-
var
|
|
221
|
+
var isCompact = rendererContentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense') && isCompactModeSupported;
|
|
222
222
|
return jsx(Container, {
|
|
223
223
|
"data-testid": "expand-container-".concat(nodeType, "-").concat(id),
|
|
224
224
|
"data-node-type": nodeType,
|
|
@@ -278,7 +278,7 @@ function Expand(_ref2) {
|
|
|
278
278
|
spacing: "spacious",
|
|
279
279
|
size: "small"
|
|
280
280
|
}))), jsx("span", {
|
|
281
|
-
css: [titleStyles,
|
|
281
|
+
css: [titleStyles, isCompact && titleStylesDense],
|
|
282
282
|
id: id
|
|
283
283
|
}, title || intl.formatMessage(expandMessages.expandDefaultTitle))), jsx(ContentContainer, {
|
|
284
284
|
expanded: expanded
|
|
@@ -2,7 +2,7 @@ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '
|
|
|
2
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
3
|
export var getBaseFontSize = function getBaseFontSize(appearance, contentMode) {
|
|
4
4
|
if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
5
|
-
if (contentMode === 'dense') {
|
|
5
|
+
if (contentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
|
|
6
6
|
return akEditorFullPageDenseFontSize;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -59,7 +59,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
59
59
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
60
60
|
var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
61
61
|
var packageName = "@atlaskit/renderer";
|
|
62
|
-
var packageVersion = "
|
|
62
|
+
var packageVersion = "0.0.0-development";
|
|
63
63
|
var setAsQueryContainerStyles = css({
|
|
64
64
|
containerName: 'ak-renderer-wrapper',
|
|
65
65
|
containerType: 'inline-size'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | undefined;
|
|
2
|
-
export type RendererContentMode = 'standard' | 'dense' | undefined;
|
|
2
|
+
export type RendererContentMode = 'standard' | 'dense' | 'compact' | undefined;
|
|
3
3
|
/**
|
|
4
4
|
* DO NOT USE THESE OPTIONS
|
|
5
5
|
* These StickyHeaderConfig_DO_NOT_USE options are being TEMPORARILY added so Confluence can use Sticky Table Headers
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | undefined;
|
|
2
|
-
export type RendererContentMode = 'standard' | 'dense' | undefined;
|
|
2
|
+
export type RendererContentMode = 'standard' | 'dense' | 'compact' | undefined;
|
|
3
3
|
/**
|
|
4
4
|
* DO NOT USE THESE OPTIONS
|
|
5
5
|
* These StickyHeaderConfig_DO_NOT_USE options are being TEMPORARILY added so Confluence can use Sticky Table Headers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "124.
|
|
3
|
+
"version": "124.8.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/status": "^3.0.0",
|
|
58
58
|
"@atlaskit/task-decision": "^19.2.0",
|
|
59
59
|
"@atlaskit/theme": "^21.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^13.14.0",
|
|
61
61
|
"@atlaskit/tokens": "^7.0.0",
|
|
62
62
|
"@atlaskit/tooltip": "^20.6.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": "^110.
|
|
74
|
+
"@atlaskit/editor-common": "^110.15.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.0.0",
|
|
76
76
|
"@atlaskit/media-core": "^37.0.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-958ca0ab9d.patch",
|
|
95
95
|
"@atlaskit/profilecard": "^24.20.0",
|
|
96
96
|
"@atlaskit/util-data-test": "^18.3.0",
|
|
97
|
-
"@atlassian/feature-flags-test-utils": "^0.
|
|
97
|
+
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
98
98
|
"@testing-library/react": "^13.4.0",
|
|
99
99
|
"@testing-library/react-hooks": "^8.0.1",
|
|
100
100
|
"@testing-library/user-event": "^14.4.3",
|