@atlaskit/editor-shared-styles 4.3.31 → 4.3.32

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
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/editor-shared-styles
2
2
 
3
+ ## 4.3.32
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6728bb1f412c2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6728bb1f412c2) -
8
+ Remove the unused `platform_editor_toolbar_aifc` experiment registration and temporary-only
9
+ runtime branches, preserve toolbar treatments owned by `platform_editor_ai_aifc_streaming` or
10
+ `aifc_create_enabled`, retain the control experience when those checks are disabled, and correctly
11
+ hide decorative Rovo toolbar icons from assistive technology.
12
+ - Updated dependencies
13
+
3
14
  ## 4.3.31
4
15
 
5
16
  ### Patch Changes
@@ -112,8 +112,8 @@ var ATLASSIAN_NAVIGATION_HEIGHT = exports.ATLASSIAN_NAVIGATION_HEIGHT = '56px';
112
112
  var DEFAULT_FONT_SIZE = 14;
113
113
  var FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = exports.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = function FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled) {
114
114
  if (
115
- // if value is undefined assume this is being called outside of editor where the experiment can be checked
116
- isToolbarAIFCEnabled === undefined ? (0, _editorExperiment.editorExperiment)('platform_editor_toolbar_aifc', true) || (0, _fg.fg)('platform_editor_ai_aifc_streaming') : isToolbarAIFCEnabled) {
115
+ // If value is undefined, assume this is being called outside of the editor.
116
+ isToolbarAIFCEnabled === undefined ? (0, _fg.fg)('platform_editor_ai_aifc_streaming') : isToolbarAIFCEnabled) {
117
117
  return '44px';
118
118
  }
119
119
  if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
@@ -100,8 +100,8 @@ export const ATLASSIAN_NAVIGATION_HEIGHT = '56px';
100
100
  const DEFAULT_FONT_SIZE = 14;
101
101
  export const FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = isToolbarAIFCEnabled => {
102
102
  if (
103
- // if value is undefined assume this is being called outside of editor where the experiment can be checked
104
- isToolbarAIFCEnabled === undefined ? editorExperiment('platform_editor_toolbar_aifc', true) || fg('platform_editor_ai_aifc_streaming') : isToolbarAIFCEnabled) {
103
+ // If value is undefined, assume this is being called outside of the editor.
104
+ isToolbarAIFCEnabled === undefined ? fg('platform_editor_ai_aifc_streaming') : isToolbarAIFCEnabled) {
105
105
  return '44px';
106
106
  }
107
107
  if (editorExperiment('platform_editor_controls', 'variant1', {
@@ -103,8 +103,8 @@ export var ATLASSIAN_NAVIGATION_HEIGHT = '56px';
103
103
  var DEFAULT_FONT_SIZE = 14;
104
104
  export var FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = function FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled) {
105
105
  if (
106
- // if value is undefined assume this is being called outside of editor where the experiment can be checked
107
- isToolbarAIFCEnabled === undefined ? editorExperiment('platform_editor_toolbar_aifc', true) || fg('platform_editor_ai_aifc_streaming') : isToolbarAIFCEnabled) {
106
+ // If value is undefined, assume this is being called outside of the editor.
107
+ isToolbarAIFCEnabled === undefined ? fg('platform_editor_ai_aifc_streaming') : isToolbarAIFCEnabled) {
108
108
  return '44px';
109
109
  }
110
110
  if (editorExperiment('platform_editor_controls', 'variant1', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-shared-styles",
3
- "version": "4.3.31",
3
+ "version": "4.3.32",
4
4
  "description": "Style values used in the editor/renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/agent-color": "^1.0.0",
33
33
  "@atlaskit/platform-feature-flags": "^2.2.0",
34
- "@atlaskit/tmp-editor-statsig": "^213.0.0",
34
+ "@atlaskit/tmp-editor-statsig": "^214.0.0",
35
35
  "@atlaskit/tokens": "^20.1.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@emotion/react": "^11.7.1"