@atlaskit/editor-core 205.0.0 → 205.0.2

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,20 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 205.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 205.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#132779](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/132779)
14
+ [`077245336ff88`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/077245336ff88) -
15
+ [ux] ED-27287 fix toolbar flicker
16
+ - Updated dependencies
17
+
3
18
  ## 205.0.0
4
19
 
5
20
  ### Major Changes
@@ -102,12 +102,26 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
102
102
  }
103
103
  }
104
104
  var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
105
- if (toolbarDocking === 'none' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
106
- exposure: true
107
- })) {
108
- primaryToolbarComponents = [];
109
- if (!hasCustomComponents(customPrimaryToolbarComponents)) {
110
- isEditorToolbarHidden = true;
105
+ if ((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_1')) {
106
+ if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
107
+ exposure: true
108
+ })) {
109
+ var _primaryToolbarCompon;
110
+ if (toolbarDocking !== 'top') {
111
+ primaryToolbarComponents = [];
112
+ }
113
+ if (!((_primaryToolbarCompon = primaryToolbarComponents) !== null && _primaryToolbarCompon !== void 0 && _primaryToolbarCompon.length) && !hasCustomComponents(customPrimaryToolbarComponents)) {
114
+ isEditorToolbarHidden = true;
115
+ }
116
+ }
117
+ } else {
118
+ if (toolbarDocking === 'none' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
119
+ exposure: true
120
+ })) {
121
+ primaryToolbarComponents = [];
122
+ if (!hasCustomComponents(customPrimaryToolbarComponents)) {
123
+ isEditorToolbarHidden = true;
124
+ }
111
125
  }
112
126
  }
113
127
  var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "205.0.0";
8
+ var version = exports.version = "205.0.2";
@@ -86,12 +86,26 @@ export const FullPageEditor = props => {
86
86
  const {
87
87
  customPrimaryToolbarComponents
88
88
  } = props;
89
- if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
90
- exposure: true
91
- })) {
92
- primaryToolbarComponents = [];
93
- if (!hasCustomComponents(customPrimaryToolbarComponents)) {
94
- isEditorToolbarHidden = true;
89
+ if (fg('platform_editor_controls_patch_1')) {
90
+ if (editorExperiment('platform_editor_controls', 'variant1', {
91
+ exposure: true
92
+ })) {
93
+ var _primaryToolbarCompon;
94
+ if (toolbarDocking !== 'top') {
95
+ primaryToolbarComponents = [];
96
+ }
97
+ if (!((_primaryToolbarCompon = primaryToolbarComponents) !== null && _primaryToolbarCompon !== void 0 && _primaryToolbarCompon.length) && !hasCustomComponents(customPrimaryToolbarComponents)) {
98
+ isEditorToolbarHidden = true;
99
+ }
100
+ }
101
+ } else {
102
+ if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
103
+ exposure: true
104
+ })) {
105
+ primaryToolbarComponents = [];
106
+ if (!hasCustomComponents(customPrimaryToolbarComponents)) {
107
+ isEditorToolbarHidden = true;
108
+ }
95
109
  }
96
110
  }
97
111
  const popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 ? void 0 : (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "205.0.0";
2
+ export const version = "205.0.2";
@@ -91,12 +91,26 @@ export var FullPageEditor = function FullPageEditor(props) {
91
91
  }
92
92
  }
93
93
  var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
94
- if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
95
- exposure: true
96
- })) {
97
- primaryToolbarComponents = [];
98
- if (!hasCustomComponents(customPrimaryToolbarComponents)) {
99
- isEditorToolbarHidden = true;
94
+ if (fg('platform_editor_controls_patch_1')) {
95
+ if (editorExperiment('platform_editor_controls', 'variant1', {
96
+ exposure: true
97
+ })) {
98
+ var _primaryToolbarCompon;
99
+ if (toolbarDocking !== 'top') {
100
+ primaryToolbarComponents = [];
101
+ }
102
+ if (!((_primaryToolbarCompon = primaryToolbarComponents) !== null && _primaryToolbarCompon !== void 0 && _primaryToolbarCompon.length) && !hasCustomComponents(customPrimaryToolbarComponents)) {
103
+ isEditorToolbarHidden = true;
104
+ }
105
+ }
106
+ } else {
107
+ if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
108
+ exposure: true
109
+ })) {
110
+ primaryToolbarComponents = [];
111
+ if (!hasCustomComponents(customPrimaryToolbarComponents)) {
112
+ isEditorToolbarHidden = true;
113
+ }
100
114
  }
101
115
  }
102
116
  var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "205.0.0";
2
+ export var version = "205.0.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "205.0.0",
3
+ "version": "205.0.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
45
45
  "@atlaskit/analytics-next": "^11.0.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
- "@atlaskit/button": "^21.1.0",
47
+ "@atlaskit/button": "^22.0.0",
48
48
  "@atlaskit/css": "^0.10.0",
49
49
  "@atlaskit/editor-common": "^102.13.0",
50
50
  "@atlaskit/editor-json-transformer": "^8.24.0",