@atlaskit/editor-core 219.9.5 → 219.9.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 +9 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +9 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +9 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +9 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 219.9.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41962dd9dccb2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41962dd9dccb2) -
|
|
8
|
+
NO-ISSUE: adds a default toolbar state so we can render the toolbar on initial load without
|
|
9
|
+
relying on editor state
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 219.9.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -16,6 +16,7 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
16
16
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
20
21
|
var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
|
|
21
22
|
var _FullPageContentArea = require("./FullPageContentArea");
|
|
@@ -170,7 +171,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
170
171
|
(0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(isToolbarAIFCEnabled)
|
|
171
172
|
}
|
|
172
173
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? (0, _react2.jsx)(_FullPageToolbarNext.FullPageToolbarNext, {
|
|
173
|
-
disabled: !!props.disabled,
|
|
174
|
+
disabled: !!props.disabled || !hasHadInteraction && (0, _expValEquals.expValEquals)('platform_editor_default_toolbar_state', 'isEnabled', true),
|
|
174
175
|
toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
|
|
175
176
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
176
177
|
editorAPI: editorAPI,
|
|
@@ -141,7 +141,15 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
141
141
|
showKeyline: showKeyline || ContextPanelWidth > 0
|
|
142
142
|
}, beforeIcon && /*#__PURE__*/_react.default.createElement("div", {
|
|
143
143
|
className: (0, _runtime.ax)([styles.mainToolbarIconBefore, styles.mainToolbarIconBeforeNew])
|
|
144
|
-
}, beforeIcon), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(FirstChildWrapper, null,
|
|
144
|
+
}, beforeIcon), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(FirstChildWrapper, null, (0, _expValEquals.expValEquals)('platform_editor_default_toolbar_state', 'isEnabled', true) ? primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && (0, _toolbar2.isToolbar)(toolbar) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
|
|
145
|
+
toolbar: toolbar,
|
|
146
|
+
components: visibleToolbarComponents,
|
|
147
|
+
editorView: editorView,
|
|
148
|
+
editorAPI: editorAPI,
|
|
149
|
+
popupsMountPoint: mountPoint,
|
|
150
|
+
editorAppearance: "full-page",
|
|
151
|
+
isDisabled: disabled
|
|
152
|
+
}) : /*#__PURE__*/_react.default.createElement(_ExcludeFromHydration.default, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && (0, _toolbar2.isToolbar)(toolbar) && editorView && !(0, _coreUtils.isSSR)() && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
|
|
145
153
|
toolbar: toolbar,
|
|
146
154
|
components: visibleToolbarComponents,
|
|
147
155
|
editorView: editorView,
|
|
@@ -13,6 +13,7 @@ import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
|
13
13
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
14
14
|
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
18
|
import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
|
|
18
19
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
@@ -155,7 +156,7 @@ export const FullPageEditor = props => {
|
|
|
155
156
|
FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
|
|
156
157
|
}
|
|
157
158
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? jsx(FullPageToolbarNext, {
|
|
158
|
-
disabled: !!props.disabled,
|
|
159
|
+
disabled: !!props.disabled || !hasHadInteraction && expValEquals('platform_editor_default_toolbar_state', 'isEnabled', true),
|
|
159
160
|
toolbarDockingPosition: (_toolbarDockingPositi = toolbarDockingPosition) !== null && _toolbarDockingPositi !== void 0 ? _toolbarDockingPositi : toolbarDocking,
|
|
160
161
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
161
162
|
editorAPI: editorAPI,
|
|
@@ -131,7 +131,15 @@ export const FullPageToolbarNext = ({
|
|
|
131
131
|
showKeyline: showKeyline || ContextPanelWidth > 0
|
|
132
132
|
}, beforeIcon && /*#__PURE__*/React.createElement("div", {
|
|
133
133
|
className: ax([styles.mainToolbarIconBefore, styles.mainToolbarIconBeforeNew])
|
|
134
|
-
}, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null,
|
|
134
|
+
}, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, expValEquals('platform_editor_default_toolbar_state', 'isEnabled', true) ? primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
135
|
+
toolbar: toolbar,
|
|
136
|
+
components: visibleToolbarComponents,
|
|
137
|
+
editorView: editorView,
|
|
138
|
+
editorAPI: editorAPI,
|
|
139
|
+
popupsMountPoint: mountPoint,
|
|
140
|
+
editorAppearance: "full-page",
|
|
141
|
+
isDisabled: disabled
|
|
142
|
+
}) : /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
135
143
|
toolbar: toolbar,
|
|
136
144
|
components: visibleToolbarComponents,
|
|
137
145
|
editorView: editorView,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "219.9.5";
|
|
@@ -14,6 +14,7 @@ import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
|
14
14
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
15
15
|
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
19
|
import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
|
|
19
20
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
@@ -160,7 +161,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
160
161
|
FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
|
|
161
162
|
}
|
|
162
163
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? jsx(FullPageToolbarNext, {
|
|
163
|
-
disabled: !!props.disabled,
|
|
164
|
+
disabled: !!props.disabled || !hasHadInteraction && expValEquals('platform_editor_default_toolbar_state', 'isEnabled', true),
|
|
164
165
|
toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
|
|
165
166
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
166
167
|
editorAPI: editorAPI,
|
|
@@ -132,7 +132,15 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
|
132
132
|
showKeyline: showKeyline || ContextPanelWidth > 0
|
|
133
133
|
}, beforeIcon && /*#__PURE__*/React.createElement("div", {
|
|
134
134
|
className: ax([styles.mainToolbarIconBefore, styles.mainToolbarIconBeforeNew])
|
|
135
|
-
}, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null,
|
|
135
|
+
}, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, expValEquals('platform_editor_default_toolbar_state', 'isEnabled', true) ? primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
136
|
+
toolbar: toolbar,
|
|
137
|
+
components: visibleToolbarComponents,
|
|
138
|
+
editorView: editorView,
|
|
139
|
+
editorAPI: editorAPI,
|
|
140
|
+
popupsMountPoint: mountPoint,
|
|
141
|
+
editorAppearance: "full-page",
|
|
142
|
+
isDisabled: disabled
|
|
143
|
+
}) : /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
136
144
|
toolbar: toolbar,
|
|
137
145
|
components: visibleToolbarComponents,
|
|
138
146
|
editorView: editorView,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "219.9.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "219.9.
|
|
3
|
+
"version": "219.9.6",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^6.0.0",
|
|
76
76
|
"@atlaskit/task-decision": "^20.1.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^82.
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^82.4.0",
|
|
78
78
|
"@atlaskit/tokens": "^13.0.0",
|
|
79
79
|
"@atlaskit/tooltip": "^22.2.0",
|
|
80
80
|
"@atlaskit/width-detector": "^5.1.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"uuid": "^3.1.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@atlaskit/editor-common": "^114.
|
|
95
|
+
"@atlaskit/editor-common": "^114.41.0",
|
|
96
96
|
"@atlaskit/link-provider": "^4.4.0",
|
|
97
97
|
"@atlaskit/media-core": "^37.1.0",
|
|
98
98
|
"react": "^18.2.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
130
130
|
"@atlassian/a11y-playwright-testing": "^0.10.0",
|
|
131
131
|
"@atlassian/adf-schema-json": "^1.33.0",
|
|
132
|
-
"@atlassian/editor-rovo-bridge": "^8.
|
|
132
|
+
"@atlassian/editor-rovo-bridge": "^8.11.0",
|
|
133
133
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
134
134
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
135
135
|
"@atlassian/search-client": "^1.8.0",
|
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"mockdate": "^3.0.5",
|
|
148
148
|
"raf-stub": "^2.0.1",
|
|
149
149
|
"react": "^18.2.0",
|
|
150
|
+
"react-dom": "^18.2.0",
|
|
150
151
|
"react-intl": "^6.6.2",
|
|
151
152
|
"url-search-params": "^0.10.0"
|
|
152
153
|
},
|