@atlaskit/editor-core 224.2.6 → 224.3.0
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 +16 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +2 -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 +2 -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 +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 224.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d96f86ff344b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d96f86ff344b8) -
|
|
8
|
+
Use @atlaskit/platform-feature-experiments directly for
|
|
9
|
+
platform_editor_vc90_transition_expand_icon, platform_editor_add_image_editing,
|
|
10
|
+
platform_editor_ai_multi_format_streaming, platform_editor_default_toolbar_state,
|
|
11
|
+
platform_editor_early_exit_return_draft, platform_editor_fix_focus_MediaInsertPicker,
|
|
12
|
+
platform_editor_fix_table_move_shortcut, platform_editor_menu_radius_update,
|
|
13
|
+
platform_editor_react19_migration, and show_mentions_in_suggest_reply.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 224.2.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -14,6 +14,7 @@ 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");
|
|
17
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
19
|
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
19
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -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 ? /*#__PURE__*/_react.default.createElement(_FullPageToolbarNext.FullPageToolbarNext, {
|
|
173
|
-
disabled: (0, _expValEquals.expValEquals)('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled || !hasHadInteraction && (0,
|
|
174
|
+
disabled: (0, _expValEquals.expValEquals)('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled || !hasHadInteraction && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_default_toolbar_state'),
|
|
174
175
|
disabledWithoutInteractionLogic: !!props.disabled,
|
|
175
176
|
toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
|
|
176
177
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
@@ -16,6 +16,7 @@ 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");
|
|
19
20
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
22
|
var _toolbar2 = require("../../../utils/toolbar");
|
|
@@ -172,7 +173,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
172
173
|
disabledWithoutInteractionLogic: false
|
|
173
174
|
}) :
|
|
174
175
|
// toolbar plugin not yet registered — render nothing inside the chrome for layout stability
|
|
175
|
-
null) : (0,
|
|
176
|
+
null) : (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_default_toolbar_state') ? primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && (0, _toolbar2.isToolbar)(toolbar) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
|
|
176
177
|
toolbar: toolbar,
|
|
177
178
|
components: visibleToolbarComponents,
|
|
178
179
|
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 = "224.2.
|
|
9
|
+
var version = exports.version = "224.2.6";
|
|
@@ -5,6 +5,7 @@ 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';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
10
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -154,7 +155,7 @@ export const FullPageEditor = props => {
|
|
|
154
155
|
FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
|
|
155
156
|
}
|
|
156
157
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(FullPageToolbarNext, {
|
|
157
|
-
disabled: expValEquals('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled || !hasHadInteraction &&
|
|
158
|
+
disabled: expValEquals('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled || !hasHadInteraction && isExperimentEnabled('platform_editor_default_toolbar_state'),
|
|
158
159
|
disabledWithoutInteractionLogic: !!props.disabled,
|
|
159
160
|
toolbarDockingPosition: (_toolbarDockingPositi = toolbarDockingPosition) !== null && _toolbarDockingPositi !== void 0 ? _toolbarDockingPositi : toolbarDocking,
|
|
160
161
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
@@ -8,6 +8,7 @@ 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';
|
|
11
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
14
|
import { isToolbar } from '../../../utils/toolbar';
|
|
@@ -160,7 +161,7 @@ export const FullPageToolbarNext = ({
|
|
|
160
161
|
disabledWithoutInteractionLogic: false
|
|
161
162
|
}) :
|
|
162
163
|
// toolbar plugin not yet registered — render nothing inside the chrome for layout stability
|
|
163
|
-
null) :
|
|
164
|
+
null) : isExperimentEnabled('platform_editor_default_toolbar_state') ? primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
164
165
|
toolbar: toolbar,
|
|
165
166
|
components: visibleToolbarComponents,
|
|
166
167
|
editorView: editorView,
|
|
@@ -6,6 +6,7 @@ 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';
|
|
9
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
11
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -161,7 +162,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
161
162
|
FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
|
|
162
163
|
}
|
|
163
164
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(FullPageToolbarNext, {
|
|
164
|
-
disabled: expValEquals('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled || !hasHadInteraction &&
|
|
165
|
+
disabled: expValEquals('platform_editor_ssr_toolbar_optimistic', 'isEnabled', true) ? !hasHadInteraction ? false : !!props.disabled : !!props.disabled || !hasHadInteraction && isExperimentEnabled('platform_editor_default_toolbar_state'),
|
|
165
166
|
disabledWithoutInteractionLogic: !!props.disabled,
|
|
166
167
|
toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
|
|
167
168
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
@@ -8,6 +8,7 @@ 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';
|
|
11
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
14
|
import { isToolbar } from '../../../utils/toolbar';
|
|
@@ -163,7 +164,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
|
163
164
|
disabledWithoutInteractionLogic: false
|
|
164
165
|
}) :
|
|
165
166
|
// toolbar plugin not yet registered — render nothing inside the chrome for layout stability
|
|
166
|
-
null) :
|
|
167
|
+
null) : isExperimentEnabled('platform_editor_default_toolbar_state') ? primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
167
168
|
toolbar: toolbar,
|
|
168
169
|
components: visibleToolbarComponents,
|
|
169
170
|
editorView: editorView,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "224.
|
|
3
|
+
"version": "224.3.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/analytics-namespaced-context": "^8.1.0",
|
|
44
44
|
"@atlaskit/analytics-next": "^12.3.0",
|
|
45
45
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
46
|
-
"@atlaskit/button": "^25.
|
|
46
|
+
"@atlaskit/button": "^25.2.0",
|
|
47
47
|
"@atlaskit/css": "^1.0.0",
|
|
48
48
|
"@atlaskit/editor-json-transformer": "^9.6.0",
|
|
49
49
|
"@atlaskit/editor-performance-metrics": "^3.2.0",
|
|
@@ -54,25 +54,25 @@
|
|
|
54
54
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
56
56
|
"@atlaskit/editor-ssr-renderer": "^10.0.0",
|
|
57
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
57
|
+
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
58
58
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
59
|
-
"@atlaskit/emoji": "^72.
|
|
59
|
+
"@atlaskit/emoji": "^72.1.0",
|
|
60
60
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
61
|
-
"@atlaskit/icon": "^37.
|
|
61
|
+
"@atlaskit/icon": "^37.5.0",
|
|
62
62
|
"@atlaskit/insm": "^2.0.0",
|
|
63
|
-
"@atlaskit/link": "^5.
|
|
64
|
-
"@atlaskit/media-card": "^81.
|
|
63
|
+
"@atlaskit/link": "^5.1.0",
|
|
64
|
+
"@atlaskit/media-card": "^81.7.0",
|
|
65
65
|
"@atlaskit/mention": "^27.18.0",
|
|
66
66
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
67
67
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
68
68
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
69
69
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
70
|
-
"@atlaskit/react-ufo": "^7.
|
|
70
|
+
"@atlaskit/react-ufo": "^7.7.0",
|
|
71
71
|
"@atlaskit/task-decision": "^21.8.0",
|
|
72
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
73
|
-
"@atlaskit/tokens": "^16.
|
|
74
|
-
"@atlaskit/tooltip": "^24.
|
|
75
|
-
"@atlaskit/width-detector": "^7.
|
|
72
|
+
"@atlaskit/tmp-editor-statsig": "^157.0.0",
|
|
73
|
+
"@atlaskit/tokens": "^16.8.0",
|
|
74
|
+
"@atlaskit/tooltip": "^24.2.0",
|
|
75
|
+
"@atlaskit/width-detector": "^7.1.0",
|
|
76
76
|
"@babel/runtime": "^7.0.0",
|
|
77
77
|
"@compiled/react": "^1.0.2",
|
|
78
78
|
"@emotion/react": "^11.7.1",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@atlaskit/editor-common": "^119.13.0",
|
|
91
|
-
"@atlaskit/link-provider": "^5.
|
|
91
|
+
"@atlaskit/link-provider": "^5.4.0",
|
|
92
92
|
"@atlaskit/media-core": "^38.0.0",
|
|
93
93
|
"react": "^18.2.0",
|
|
94
94
|
"react-dom": "^18.2.0",
|
|
@@ -100,34 +100,34 @@
|
|
|
100
100
|
"@af/visual-regression": "workspace:^",
|
|
101
101
|
"@atlaskit/adf-utils": "^20.7.0",
|
|
102
102
|
"@atlaskit/analytics-listeners": "^11.1.0",
|
|
103
|
-
"@atlaskit/code": "^19.
|
|
104
|
-
"@atlaskit/collab-provider": "^24.
|
|
103
|
+
"@atlaskit/code": "^19.1.0",
|
|
104
|
+
"@atlaskit/collab-provider": "^24.2.0",
|
|
105
105
|
"@atlaskit/editor-plugin-annotation": "^15.0.0",
|
|
106
106
|
"@atlaskit/editor-plugin-card": "^21.0.0",
|
|
107
107
|
"@atlaskit/editor-plugin-list": "^17.0.0",
|
|
108
108
|
"@atlaskit/editor-plugin-paste": "^16.0.0",
|
|
109
109
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
110
|
-
"@atlaskit/link-provider": "^5.
|
|
111
|
-
"@atlaskit/linking-common": "^
|
|
112
|
-
"@atlaskit/logo": "^21.
|
|
110
|
+
"@atlaskit/link-provider": "^5.4.0",
|
|
111
|
+
"@atlaskit/linking-common": "^12.0.0",
|
|
112
|
+
"@atlaskit/logo": "^21.5.0",
|
|
113
113
|
"@atlaskit/media-core": "^38.0.0",
|
|
114
114
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
115
|
-
"@atlaskit/media-test-helpers": "^42.
|
|
116
|
-
"@atlaskit/modal-dialog": "^16.
|
|
117
|
-
"@atlaskit/popper": "^9.
|
|
118
|
-
"@atlaskit/portal": "^6.
|
|
119
|
-
"@atlaskit/renderer": "^136.
|
|
120
|
-
"@atlaskit/section-message": "^10.
|
|
115
|
+
"@atlaskit/media-test-helpers": "^42.3.0",
|
|
116
|
+
"@atlaskit/modal-dialog": "^16.5.0",
|
|
117
|
+
"@atlaskit/popper": "^9.3.0",
|
|
118
|
+
"@atlaskit/portal": "^6.3.0",
|
|
119
|
+
"@atlaskit/renderer": "^136.2.0",
|
|
120
|
+
"@atlaskit/section-message": "^10.1.0",
|
|
121
121
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
122
|
-
"@atlaskit/toggle": "^17.
|
|
122
|
+
"@atlaskit/toggle": "^17.2.0",
|
|
123
123
|
"@atlaskit/util-data-test": "^19.1.0",
|
|
124
124
|
"@atlassian/a11y-jest-testing": "^0.16.0",
|
|
125
125
|
"@atlassian/a11y-playwright-testing": "^0.11.0",
|
|
126
126
|
"@atlassian/adf-schema-json": "^1.35.0",
|
|
127
|
-
"@atlassian/editor-rovo-bridge": "^13.
|
|
127
|
+
"@atlassian/editor-rovo-bridge": "^13.2.0",
|
|
128
128
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
129
129
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
130
|
-
"@atlassian/search-client": "^2.
|
|
130
|
+
"@atlassian/search-client": "^2.14.0",
|
|
131
131
|
"@atlassian/search-provider": "^16.0.0",
|
|
132
132
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
133
133
|
"@atlassian/user-profile-card": "^1.30.0",
|