@atlaskit/editor-shared-styles 3.4.2 → 3.4.3

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,14 @@
1
1
  # @atlaskit/editor-shared-styles
2
2
 
3
+ ## 3.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#137211](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137211)
8
+ [`d00cb55d6fa4b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d00cb55d6fa4b) -
9
+ [ux] ED27118 Increase pull page editor gutter to allow more space for new floating insert button -
10
+ https://hello.atlassian.net/wiki/spaces/EDITOR/pages/5120694962/Editor+DACI+New+insert+button+and+full-width+screens+2.0
11
+
3
12
  ## 3.4.2
4
13
 
5
14
  ### Patch Changes
@@ -65,7 +65,10 @@ var akEditorTableNumberColumnWidth = exports.akEditorTableNumberColumnWidth = 42
65
65
  var akEditorBreakoutPadding = exports.akEditorBreakoutPadding = 96;
66
66
  var akEditorGutterPadding = exports.akEditorGutterPadding = 32;
67
67
  var akEditorGutterPaddingDynamic = exports.akEditorGutterPaddingDynamic = function akEditorGutterPaddingDynamic() {
68
- return (0, _platformFeatureFlags.fg)('platform_editor_core_increase_full_page_guttering') ? 52 : 32;
68
+ return (
69
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
70
+ (0, _platformFeatureFlags.fg)('platform_editor_controls_increase_full_page_gutter') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? 72 : 52
71
+ );
69
72
  };
70
73
  var akEditorMobileBreakoutPoint = exports.akEditorMobileBreakoutPoint = 720;
71
74
  var akEditorTableCellMinWidth = exports.akEditorTableCellMinWidth = 48;
@@ -54,7 +54,9 @@ export const akEditorFullWidthLayoutLineLength = 1792;
54
54
  export const akEditorTableNumberColumnWidth = 42;
55
55
  export const akEditorBreakoutPadding = 96;
56
56
  export const akEditorGutterPadding = 32;
57
- export const akEditorGutterPaddingDynamic = () => fg('platform_editor_core_increase_full_page_guttering') ? 52 : 32;
57
+ export const akEditorGutterPaddingDynamic = () =>
58
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
59
+ fg('platform_editor_controls_increase_full_page_gutter') && editorExperiment('platform_editor_controls', 'variant1') ? 72 : 52;
58
60
  export const akEditorMobileBreakoutPoint = 720;
59
61
  export const akEditorTableCellMinWidth = 48;
60
62
  export const akEditorTableLegacyCellMinWidth = 128;
@@ -56,7 +56,10 @@ export var akEditorTableNumberColumnWidth = 42;
56
56
  export var akEditorBreakoutPadding = 96;
57
57
  export var akEditorGutterPadding = 32;
58
58
  export var akEditorGutterPaddingDynamic = function akEditorGutterPaddingDynamic() {
59
- return fg('platform_editor_core_increase_full_page_guttering') ? 52 : 32;
59
+ return (
60
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
61
+ fg('platform_editor_controls_increase_full_page_gutter') && editorExperiment('platform_editor_controls', 'variant1') ? 72 : 52
62
+ );
60
63
  };
61
64
  export var akEditorMobileBreakoutPoint = 720;
62
65
  export var akEditorTableCellMinWidth = 48;
@@ -44,7 +44,7 @@ export declare const akEditorFullWidthLayoutLineLength = 1792;
44
44
  export declare const akEditorTableNumberColumnWidth = 42;
45
45
  export declare const akEditorBreakoutPadding = 96;
46
46
  export declare const akEditorGutterPadding = 32;
47
- export declare const akEditorGutterPaddingDynamic: () => 32 | 52;
47
+ export declare const akEditorGutterPaddingDynamic: () => 72 | 52;
48
48
  export declare const akEditorMobileBreakoutPoint = 720;
49
49
  export declare const akEditorTableCellMinWidth = 48;
50
50
  export declare const akEditorTableLegacyCellMinWidth = 128;
@@ -44,7 +44,7 @@ export declare const akEditorFullWidthLayoutLineLength = 1792;
44
44
  export declare const akEditorTableNumberColumnWidth = 42;
45
45
  export declare const akEditorBreakoutPadding = 96;
46
46
  export declare const akEditorGutterPadding = 32;
47
- export declare const akEditorGutterPaddingDynamic: () => 32 | 52;
47
+ export declare const akEditorGutterPaddingDynamic: () => 72 | 52;
48
48
  export declare const akEditorMobileBreakoutPoint = 720;
49
49
  export declare const akEditorTableCellMinWidth = 48;
50
50
  export declare const akEditorTableLegacyCellMinWidth = 128;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-shared-styles",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "Style values used in the editor/renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,7 +28,7 @@
28
28
  "team": "Editor: Lego"
29
29
  },
30
30
  "platform-feature-flags": {
31
- "platform_editor_core_increase_full_page_guttering": {
31
+ "platform_editor_controls_increase_full_page_gutter": {
32
32
  "type": "boolean"
33
33
  },
34
34
  "live_pages_content_jump_mitigation": {
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^4.0.0",
48
- "@atlaskit/tokens": "^4.5.0",
47
+ "@atlaskit/tmp-editor-statsig": "^4.6.0",
48
+ "@atlaskit/tokens": "^4.7.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1"
51
51
  },
@@ -64,7 +64,11 @@ export const akEditorTableNumberColumnWidth = 42;
64
64
  export const akEditorBreakoutPadding = 96;
65
65
  export const akEditorGutterPadding = 32;
66
66
  export const akEditorGutterPaddingDynamic = () =>
67
- fg('platform_editor_core_increase_full_page_guttering') ? 52 : 32;
67
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
68
+ fg('platform_editor_controls_increase_full_page_gutter') &&
69
+ editorExperiment('platform_editor_controls', 'variant1')
70
+ ? 72
71
+ : 52;
68
72
  export const akEditorMobileBreakoutPoint = 720;
69
73
  export const akEditorTableCellMinWidth = 48;
70
74
  export const akEditorTableLegacyCellMinWidth = 128;