@atlaskit/renderer 124.3.0 → 124.4.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 +12 -0
- package/dist/cjs/ui/Renderer/get-base-font-size.js +1 -3
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/get-base-font-size.js +2 -4
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/get-base-font-size.js +2 -4
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 124.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`2a9e8a0692fdc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2a9e8a0692fdc) -
|
|
8
|
+
[NO-ISSUE] Switch from using `cc_editor_ai_content_mode` param `baseFontSize` to having a proper
|
|
9
|
+
variable we can use for the sizing
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 124.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -5,13 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getBaseFontSize = void 0;
|
|
7
7
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
8
|
-
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
9
8
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
10
9
|
var getBaseFontSize = exports.getBaseFontSize = function getBaseFontSize(appearance, contentMode) {
|
|
11
10
|
if ((0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
12
11
|
if (contentMode === 'dense') {
|
|
13
|
-
|
|
14
|
-
return baseFontSize;
|
|
12
|
+
return _editorSharedStyles.akEditorFullPageDenseFontSize;
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
15
|
return appearance && appearance !== 'comment' ? _editorSharedStyles.akEditorFullPageDefaultFontSize : 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 = "124.
|
|
71
|
+
var packageVersion = "124.3.0";
|
|
72
72
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
73
73
|
containerName: 'ak-renderer-wrapper',
|
|
74
74
|
containerType: 'inline-size'
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { akEditorFullPageDefaultFontSize } from '@atlaskit/editor-shared-styles';
|
|
2
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
1
|
+
import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
|
|
3
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
3
|
export const getBaseFontSize = (appearance, contentMode) => {
|
|
5
4
|
if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
6
5
|
if (contentMode === 'dense') {
|
|
7
|
-
|
|
8
|
-
return baseFontSize;
|
|
6
|
+
return akEditorFullPageDenseFontSize;
|
|
9
7
|
}
|
|
10
8
|
}
|
|
11
9
|
return appearance && appearance !== 'comment' ? akEditorFullPageDefaultFontSize : 14;
|
|
@@ -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 = "124.
|
|
57
|
+
const packageVersion = "124.3.0";
|
|
58
58
|
const setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { akEditorFullPageDefaultFontSize } from '@atlaskit/editor-shared-styles';
|
|
2
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
1
|
+
import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
|
|
3
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
3
|
export var getBaseFontSize = function getBaseFontSize(appearance, contentMode) {
|
|
5
4
|
if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
6
5
|
if (contentMode === 'dense') {
|
|
7
|
-
|
|
8
|
-
return baseFontSize;
|
|
6
|
+
return akEditorFullPageDenseFontSize;
|
|
9
7
|
}
|
|
10
8
|
}
|
|
11
9
|
return appearance && appearance !== 'comment' ? akEditorFullPageDefaultFontSize : 14;
|
|
@@ -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 = "124.
|
|
62
|
+
var packageVersion = "124.3.0";
|
|
63
63
|
var setAsQueryContainerStyles = css({
|
|
64
64
|
containerName: 'ak-renderer-wrapper',
|
|
65
65
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "124.
|
|
3
|
+
"version": "124.4.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.30.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
38
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
38
|
+
"@atlaskit/editor-shared-styles": "^3.7.0",
|
|
39
39
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
40
40
|
"@atlaskit/emoji": "^69.5.0",
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|