@atlaskit/editor-core 232.0.5 → 232.0.6
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 +8 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -11
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -11
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -11
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 232.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`064f989853cf0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/064f989853cf0) -
|
|
8
|
+
Clean up experiment `platform_editor_default_toolbar_state`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 232.0.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -14,7 +14,6 @@ var _ssrMeasures = require("@atlaskit/editor-common/performance/ssr-measures");
|
|
|
14
14
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
15
15
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
18
17
|
var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
|
|
19
18
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
20
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -144,7 +143,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
144
143
|
(0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(isToolbarAIFCEnabled)
|
|
145
144
|
}
|
|
146
145
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? /*#__PURE__*/_react.default.createElement(_FullPageToolbarNext.FullPageToolbarNext, {
|
|
147
|
-
disabled: (0, _expValEquals.expValEquals)('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled
|
|
146
|
+
disabled: (0, _expValEquals.expValEquals)('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled,
|
|
148
147
|
disabledWithoutInteractionLogic: !!props.disabled,
|
|
149
148
|
toolbarDockingPosition: toolbarDockingPosition,
|
|
150
149
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
@@ -16,7 +16,6 @@ var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
|
16
16
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
17
17
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
18
18
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
19
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
20
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
20
|
var _toolbar2 = require("../../../utils/toolbar");
|
|
22
21
|
var _ExcludeFromHydration = _interopRequireDefault(require("../../ExcludeFromHydration"));
|
|
@@ -172,16 +171,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
172
171
|
disabledWithoutInteractionLogic: false
|
|
173
172
|
}) :
|
|
174
173
|
// toolbar plugin not yet registered — render nothing inside the chrome for layout stability
|
|
175
|
-
null) : (
|
|
176
|
-
toolbar: toolbar,
|
|
177
|
-
components: visibleToolbarComponents,
|
|
178
|
-
editorView: editorView,
|
|
179
|
-
editorAPI: editorAPI,
|
|
180
|
-
popupsMountPoint: mountPoint,
|
|
181
|
-
editorAppearance: "full-page",
|
|
182
|
-
isDisabled: disabled,
|
|
183
|
-
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
|
|
184
|
-
}) : /*#__PURE__*/_react.default.createElement(_ExcludeFromHydration.default, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && (0, _toolbar2.isToolbar)(toolbar) && editorView && !(0, _coreUtils.isSSR)() && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
|
|
174
|
+
null) : /*#__PURE__*/_react.default.createElement(_ExcludeFromHydration.default, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && (0, _toolbar2.isToolbar)(toolbar) && editorView && !(0, _coreUtils.isSSR)() && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
|
|
185
175
|
toolbar: toolbar,
|
|
186
176
|
components: visibleToolbarComponents,
|
|
187
177
|
editorView: editorView,
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "232.0.
|
|
9
|
+
var version = exports.version = "232.0.5";
|
|
@@ -5,7 +5,6 @@ import { SSRRenderMeasure } from '@atlaskit/editor-common/performance/ssr-measur
|
|
|
5
5
|
import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
6
6
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
7
7
|
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
8
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
8
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
10
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -128,7 +127,7 @@ export const FullPageEditor = props => {
|
|
|
128
127
|
FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
|
|
129
128
|
}
|
|
130
129
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(FullPageToolbarNext, {
|
|
131
|
-
disabled: expValEquals('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled
|
|
130
|
+
disabled: expValEquals('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled,
|
|
132
131
|
disabledWithoutInteractionLogic: !!props.disabled,
|
|
133
132
|
toolbarDockingPosition: toolbarDockingPosition,
|
|
134
133
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
@@ -8,7 +8,6 @@ import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
|
8
8
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
9
9
|
import { shouldShowPrimaryToolbar, TOOLBARS, VIEW_MODE_TOGGLE_SECTION } from '@atlaskit/editor-common/toolbar';
|
|
10
10
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
11
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
12
|
import { isToolbar } from '../../../utils/toolbar';
|
|
14
13
|
import ExcludeFromHydration from '../../ExcludeFromHydration';
|
|
@@ -160,16 +159,7 @@ export const FullPageToolbarNext = ({
|
|
|
160
159
|
disabledWithoutInteractionLogic: false
|
|
161
160
|
}) :
|
|
162
161
|
// toolbar plugin not yet registered — render nothing inside the chrome for layout stability
|
|
163
|
-
null) :
|
|
164
|
-
toolbar: toolbar,
|
|
165
|
-
components: visibleToolbarComponents,
|
|
166
|
-
editorView: editorView,
|
|
167
|
-
editorAPI: editorAPI,
|
|
168
|
-
popupsMountPoint: mountPoint,
|
|
169
|
-
editorAppearance: "full-page",
|
|
170
|
-
isDisabled: disabled,
|
|
171
|
-
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
|
|
172
|
-
}) : /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
162
|
+
null) : /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
173
163
|
toolbar: toolbar,
|
|
174
164
|
components: visibleToolbarComponents,
|
|
175
165
|
editorView: editorView,
|
|
@@ -6,7 +6,6 @@ import { SSRRenderMeasure } from '@atlaskit/editor-common/performance/ssr-measur
|
|
|
6
6
|
import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
8
8
|
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
9
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
9
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
11
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
12
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -135,7 +134,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
135
134
|
FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
|
|
136
135
|
}
|
|
137
136
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(FullPageToolbarNext, {
|
|
138
|
-
disabled: expValEquals('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled
|
|
137
|
+
disabled: expValEquals('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled,
|
|
139
138
|
disabledWithoutInteractionLogic: !!props.disabled,
|
|
140
139
|
toolbarDockingPosition: toolbarDockingPosition,
|
|
141
140
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
@@ -8,7 +8,6 @@ import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
|
8
8
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
9
9
|
import { shouldShowPrimaryToolbar, TOOLBARS, VIEW_MODE_TOGGLE_SECTION } from '@atlaskit/editor-common/toolbar';
|
|
10
10
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
11
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
12
|
import { isToolbar } from '../../../utils/toolbar';
|
|
14
13
|
import ExcludeFromHydration from '../../ExcludeFromHydration';
|
|
@@ -163,16 +162,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
|
163
162
|
disabledWithoutInteractionLogic: false
|
|
164
163
|
}) :
|
|
165
164
|
// toolbar plugin not yet registered — render nothing inside the chrome for layout stability
|
|
166
|
-
null) :
|
|
167
|
-
toolbar: toolbar,
|
|
168
|
-
components: visibleToolbarComponents,
|
|
169
|
-
editorView: editorView,
|
|
170
|
-
editorAPI: editorAPI,
|
|
171
|
-
popupsMountPoint: mountPoint,
|
|
172
|
-
editorAppearance: "full-page",
|
|
173
|
-
isDisabled: disabled,
|
|
174
|
-
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
|
|
175
|
-
}) : /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
165
|
+
null) : /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
176
166
|
toolbar: toolbar,
|
|
177
167
|
components: visibleToolbarComponents,
|
|
178
168
|
editorView: editorView,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "232.0.
|
|
3
|
+
"version": "232.0.6",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
73
73
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
75
|
-
"@atlaskit/popup": "^
|
|
75
|
+
"@atlaskit/popup": "^7.0.0",
|
|
76
76
|
"@atlaskit/primitives": "^22.5.0",
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^8.0.0",
|
|
79
79
|
"@atlaskit/task-decision": "^21.11.0",
|
|
80
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
80
|
+
"@atlaskit/tmp-editor-statsig": "^215.0.0",
|
|
81
81
|
"@atlaskit/tokens": "^20.1.0",
|
|
82
82
|
"@atlaskit/tooltip": "^24.3.0",
|
|
83
83
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"uuid": "^11.1.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@atlaskit/editor-common": "^126.
|
|
99
|
+
"@atlaskit/editor-common": "^126.3.0",
|
|
100
100
|
"@atlaskit/link-provider": "^6.0.0",
|
|
101
101
|
"@atlaskit/media-core": "^39.0.0",
|
|
102
102
|
"react": "^18.2.0 || ^19.2.0",
|