@atlaskit/editor-shared-styles 4.0.65 → 4.0.67
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
|
@@ -9,7 +9,7 @@ exports.getTableCellBackgroundDarkModeColorCSS = getTableCellBackgroundDarkModeC
|
|
|
9
9
|
exports.scaledBlockNodesVerticalMargin = exports.relativeSizeToBaseFontSize = exports.relativeSize = exports.relativeFontSizeToBase16 = exports.participantColors = exports.layoutBreakpointWidth = exports.gridMediumMaxWidth = exports.getTableCellBackgroundDarkModeColors = void 0;
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
|
-
var
|
|
12
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
13
13
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
14
14
|
|
|
15
15
|
var akEditorFullPageDefaultFontSize = exports.akEditorFullPageDefaultFontSize = 16;
|
|
@@ -72,7 +72,7 @@ var akEditorGutterPadding = exports.akEditorGutterPadding = 32;
|
|
|
72
72
|
var akEditorGutterPaddingDynamic = exports.akEditorGutterPaddingDynamic = function akEditorGutterPaddingDynamic() {
|
|
73
73
|
return (
|
|
74
74
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
75
|
-
(0, _fg.fg)('platform_editor_controls_increase_full_page_gutter') && (0,
|
|
75
|
+
(0, _fg.fg)('platform_editor_controls_increase_full_page_gutter') && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? 72 : 52
|
|
76
76
|
);
|
|
77
77
|
};
|
|
78
78
|
var akEditorGutterPaddingReduced = exports.akEditorGutterPaddingReduced = 24;
|
|
@@ -116,10 +116,10 @@ var DEFAULT_FONT_SIZE = 14;
|
|
|
116
116
|
var FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = exports.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = function FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled) {
|
|
117
117
|
if (
|
|
118
118
|
// if value is undefined assume this is being called outside of editor where the experiment can be checked
|
|
119
|
-
isToolbarAIFCEnabled === undefined ? (0,
|
|
119
|
+
isToolbarAIFCEnabled === undefined ? (0, _editorExperiment.editorExperiment)('platform_editor_toolbar_aifc', true) || (0, _fg.fg)('platform_editor_ai_aifc_streaming') : isToolbarAIFCEnabled) {
|
|
120
120
|
return '44px';
|
|
121
121
|
}
|
|
122
|
-
if ((0,
|
|
122
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
123
123
|
exposure: true
|
|
124
124
|
})) {
|
|
125
125
|
return "var(--ds-space-500, 40px)";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
2
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
4
4
|
|
|
5
5
|
export const akEditorFullPageDefaultFontSize = 16;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
5
5
|
|
|
6
6
|
export var akEditorFullPageDefaultFontSize = 16;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-shared-styles",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.67",
|
|
4
4
|
"description": "Style values used in the editor/renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
32
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
33
|
-
"@atlaskit/tokens": "^16.
|
|
32
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
33
|
+
"@atlaskit/tokens": "^16.9.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
35
|
"@emotion/react": "^11.7.1"
|
|
36
36
|
},
|