@atlaskit/editor-core 232.0.4 → 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 +14 -0
- package/dist/cjs/ui/Appearance/Comment/CommentToolbar.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -11
- package/dist/cjs/ui/Toolbar/Toolbar.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/CommentToolbar.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/ui/Toolbar/Toolbar.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/CommentToolbar.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/ui/Toolbar/Toolbar.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/Comment/CommentToolbar.d.ts +1 -1
- package/dist/types/ui/Toolbar/Toolbar.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 232.0.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 232.0.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
|
10
10
|
var _toolbar2 = require("../../../utils/toolbar");
|
|
11
11
|
var _Toolbar = require("../../Toolbar/Toolbar");
|
|
12
12
|
/**
|
|
13
|
-
* Primary toolbar driven by components registered by `editor-plugin-toolbar
|
|
13
|
+
* Primary toolbar driven by components registered by `editor-plugin-toolbar`.
|
|
14
14
|
*/
|
|
15
15
|
var CommentToolbar = exports.CommentToolbar = function CommentToolbar(_ref) {
|
|
16
16
|
var _editorAPI$toolbar;
|
|
@@ -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,
|
|
@@ -22,7 +22,7 @@ var TOOLBAR_FALLBACKS = {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* *Warning:*
|
|
25
|
+
* *Warning:* When the new toolbar is enabled this component is replaced with `<ToolbarNext />`.
|
|
26
26
|
*
|
|
27
27
|
* If making changes to this component please ensure to also update `<ToolbarNext />`.
|
|
28
28
|
*/
|
|
@@ -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";
|
|
@@ -3,7 +3,7 @@ import { TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
|
3
3
|
import { isToolbar } from '../../../utils/toolbar';
|
|
4
4
|
import { ToolbarNext } from '../../Toolbar/Toolbar';
|
|
5
5
|
/**
|
|
6
|
-
* Primary toolbar driven by components registered by `editor-plugin-toolbar
|
|
6
|
+
* Primary toolbar driven by components registered by `editor-plugin-toolbar`.
|
|
7
7
|
*/
|
|
8
8
|
export const CommentToolbar = ({
|
|
9
9
|
editorAPI,
|
|
@@ -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,
|
|
@@ -14,7 +14,7 @@ const TOOLBAR_FALLBACKS = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* *Warning:*
|
|
17
|
+
* *Warning:* When the new toolbar is enabled this component is replaced with `<ToolbarNext />`.
|
|
18
18
|
*
|
|
19
19
|
* If making changes to this component please ensure to also update `<ToolbarNext />`.
|
|
20
20
|
*/
|
|
@@ -3,7 +3,7 @@ import { TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
|
3
3
|
import { isToolbar } from '../../../utils/toolbar';
|
|
4
4
|
import { ToolbarNext } from '../../Toolbar/Toolbar';
|
|
5
5
|
/**
|
|
6
|
-
* Primary toolbar driven by components registered by `editor-plugin-toolbar
|
|
6
|
+
* Primary toolbar driven by components registered by `editor-plugin-toolbar`.
|
|
7
7
|
*/
|
|
8
8
|
export var CommentToolbar = function CommentToolbar(_ref) {
|
|
9
9
|
var _editorAPI$toolbar;
|
|
@@ -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,
|
|
@@ -14,7 +14,7 @@ var TOOLBAR_FALLBACKS = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* *Warning:*
|
|
17
|
+
* *Warning:* When the new toolbar is enabled this component is replaced with `<ToolbarNext />`.
|
|
18
18
|
*
|
|
19
19
|
* If making changes to this component please ensure to also update `<ToolbarNext />`.
|
|
20
20
|
*/
|
|
@@ -13,7 +13,7 @@ type CommentToolbarProps = {
|
|
|
13
13
|
popupsScrollableElement?: HTMLElement;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* Primary toolbar driven by components registered by `editor-plugin-toolbar
|
|
16
|
+
* Primary toolbar driven by components registered by `editor-plugin-toolbar`.
|
|
17
17
|
*/
|
|
18
18
|
export declare const CommentToolbar: ({ editorAPI, editorView, editorAppearance, disabled, popupsBoundariesElement, popupsMountPoint, popupsScrollableElement, }: CommentToolbarProps) => React.JSX.Element | null;
|
|
19
19
|
export {};
|
|
@@ -8,7 +8,7 @@ import type { RegisterComponent, RegisterToolbar } from '@atlaskit/editor-toolba
|
|
|
8
8
|
import type { MarkdownModePlugin } from '../../types/markdown-mode';
|
|
9
9
|
import type { ToolbarProps } from './toolbar-types';
|
|
10
10
|
/**
|
|
11
|
-
* *Warning:*
|
|
11
|
+
* *Warning:* When the new toolbar is enabled this component is replaced with `<ToolbarNext />`.
|
|
12
12
|
*
|
|
13
13
|
* If making changes to this component please ensure to also update `<ToolbarNext />`.
|
|
14
14
|
*/
|
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",
|