@atlaskit/editor-core 232.0.3 → 232.0.5
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 +17 -0
- package/dist/cjs/presets/default.js +1 -3
- package/dist/cjs/ui/Appearance/Comment/CommentToolbar.js +1 -1
- package/dist/cjs/ui/Toolbar/Toolbar.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/default.js +1 -3
- package/dist/es2019/ui/Appearance/Comment/CommentToolbar.js +1 -1
- package/dist/es2019/ui/Toolbar/Toolbar.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/default.js +1 -3
- package/dist/esm/ui/Appearance/Comment/CommentToolbar.js +1 -1
- 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 +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 232.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 232.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`a4fe8636fa0ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a4fe8636fa0ec) -
|
|
14
|
+
Clean up the fully rolled out `platform_editor_layout_column_menu` experiment and the
|
|
15
|
+
`platform_editor_layout_column_menu_kill_switch_1` feature gate, retaining their shipped behavior.
|
|
16
|
+
Consumers must remove any direct `@atlaskit/tmp-editor-statsig` experiment override for
|
|
17
|
+
`platform_editor_layout_column_menu`.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 232.0.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -43,8 +43,6 @@ var _undoRedo = require("@atlaskit/editor-plugins/undo-redo");
|
|
|
43
43
|
var _unsupportedContent = require("@atlaskit/editor-plugins/unsupported-content");
|
|
44
44
|
var _userIntent = require("@atlaskit/editor-plugins/user-intent");
|
|
45
45
|
var _width = require("@atlaskit/editor-plugins/width");
|
|
46
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
47
|
-
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
48
46
|
var _isFullPage = require("../utils/is-full-page");
|
|
49
47
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
50
48
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // #region Imports
|
|
@@ -72,7 +70,7 @@ function createDefaultPreset(options) {
|
|
|
72
70
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
73
71
|
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(options.allowUndoRedoButtons)).add(_userIntent.userIntentPlugin).maybeAdd([_toolbar.toolbarPlugin, options.toolbar || {}], Boolean((_options$toolbar = options.toolbar) === null || _options$toolbar === void 0 ? void 0 : _options$toolbar.enableNewToolbarExperience)).add([_primaryToolbar.primaryToolbarPlugin, {
|
|
74
72
|
contextualFormattingEnabled: isFullPage
|
|
75
|
-
}]).
|
|
73
|
+
}]).add(_uiControlRegistry.uiControlRegistryPlugin).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).maybeAdd([_blockMenu.blockMenuPlugin, {
|
|
76
74
|
useStandardNodeWidth: (_options$blockMenu$us = (_options$blockMenu = options.blockMenu) === null || _options$blockMenu === void 0 ? void 0 : _options$blockMenu.useStandardNodeWidth) !== null && _options$blockMenu$us !== void 0 ? _options$blockMenu$us : false,
|
|
77
75
|
blockLinkHashPrefix: (_options$blockMenu2 = options.blockMenu) === null || _options$blockMenu2 === void 0 ? void 0 : _options$blockMenu2.blockLinkHashPrefix,
|
|
78
76
|
getLinkPath: (_options$blockMenu3 = options.blockMenu) === null || _options$blockMenu3 === void 0 ? void 0 : _options$blockMenu3.getLinkPath
|
|
@@ -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;
|
|
@@ -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.4";
|
|
@@ -36,8 +36,6 @@ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
|
|
|
36
36
|
import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
|
|
37
37
|
import { userIntentPlugin } from '@atlaskit/editor-plugins/user-intent';
|
|
38
38
|
import { widthPlugin } from '@atlaskit/editor-plugins/width';
|
|
39
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
40
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
41
39
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
42
40
|
|
|
43
41
|
// #endregion
|
|
@@ -65,7 +63,7 @@ export function createDefaultPreset(options) {
|
|
|
65
63
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
66
64
|
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).add(userIntentPlugin).maybeAdd([toolbarPlugin, options.toolbar || {}], Boolean((_options$toolbar = options.toolbar) === null || _options$toolbar === void 0 ? void 0 : _options$toolbar.enableNewToolbarExperience)).add([primaryToolbarPlugin, {
|
|
67
65
|
contextualFormattingEnabled: isFullPage
|
|
68
|
-
}]).
|
|
66
|
+
}]).add(uiControlRegistryPlugin).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).maybeAdd([blockMenuPlugin, {
|
|
69
67
|
useStandardNodeWidth: (_options$blockMenu$us = (_options$blockMenu = options.blockMenu) === null || _options$blockMenu === void 0 ? void 0 : _options$blockMenu.useStandardNodeWidth) !== null && _options$blockMenu$us !== void 0 ? _options$blockMenu$us : false,
|
|
70
68
|
blockLinkHashPrefix: (_options$blockMenu2 = options.blockMenu) === null || _options$blockMenu2 === void 0 ? void 0 : _options$blockMenu2.blockLinkHashPrefix,
|
|
71
69
|
getLinkPath: (_options$blockMenu3 = options.blockMenu) === null || _options$blockMenu3 === void 0 ? void 0 : _options$blockMenu3.getLinkPath
|
|
@@ -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,
|
|
@@ -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
|
*/
|
|
@@ -39,8 +39,6 @@ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
|
|
|
39
39
|
import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
|
|
40
40
|
import { userIntentPlugin } from '@atlaskit/editor-plugins/user-intent';
|
|
41
41
|
import { widthPlugin } from '@atlaskit/editor-plugins/width';
|
|
42
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
43
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
44
42
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
45
43
|
|
|
46
44
|
// #endregion
|
|
@@ -67,7 +65,7 @@ export function createDefaultPreset(options) {
|
|
|
67
65
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
68
66
|
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).add(userIntentPlugin).maybeAdd([toolbarPlugin, options.toolbar || {}], Boolean((_options$toolbar = options.toolbar) === null || _options$toolbar === void 0 ? void 0 : _options$toolbar.enableNewToolbarExperience)).add([primaryToolbarPlugin, {
|
|
69
67
|
contextualFormattingEnabled: isFullPage
|
|
70
|
-
}]).
|
|
68
|
+
}]).add(uiControlRegistryPlugin).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).maybeAdd([blockMenuPlugin, {
|
|
71
69
|
useStandardNodeWidth: (_options$blockMenu$us = (_options$blockMenu = options.blockMenu) === null || _options$blockMenu === void 0 ? void 0 : _options$blockMenu.useStandardNodeWidth) !== null && _options$blockMenu$us !== void 0 ? _options$blockMenu$us : false,
|
|
72
70
|
blockLinkHashPrefix: (_options$blockMenu2 = options.blockMenu) === null || _options$blockMenu2 === void 0 ? void 0 : _options$blockMenu2.blockLinkHashPrefix,
|
|
73
71
|
getLinkPath: (_options$blockMenu3 = options.blockMenu) === null || _options$blockMenu3 === void 0 ? void 0 : _options$blockMenu3.getLinkPath
|
|
@@ -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;
|
|
@@ -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.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/feature-gate-js-client": "^7.0.0",
|
|
66
66
|
"@atlaskit/heading": "^8.0.0",
|
|
67
67
|
"@atlaskit/icon": "^38.0.0",
|
|
68
|
-
"@atlaskit/icon-lab": "^7.
|
|
68
|
+
"@atlaskit/icon-lab": "^7.11.0",
|
|
69
69
|
"@atlaskit/link": "^5.1.0",
|
|
70
70
|
"@atlaskit/media-card": "^82.1.0",
|
|
71
71
|
"@atlaskit/mention": "^30.0.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
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": "^214.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.2.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",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"@atlaskit/navigation-system": "^10.17.0",
|
|
158
158
|
"@atlaskit/popper": "^9.4.0",
|
|
159
159
|
"@atlaskit/portal": "^7.0.0",
|
|
160
|
-
"@atlaskit/profilecard": "^27.
|
|
160
|
+
"@atlaskit/profilecard": "^27.1.0",
|
|
161
161
|
"@atlaskit/radio": "^10.2.0",
|
|
162
162
|
"@atlaskit/renderer": "^145.0.0",
|
|
163
163
|
"@atlaskit/section-message": "^10.2.0",
|
|
@@ -168,16 +168,16 @@
|
|
|
168
168
|
"@atlaskit/toggle": "^17.3.0",
|
|
169
169
|
"@atlaskit/util-data-test": "^19.1.0",
|
|
170
170
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
171
|
-
"@atlassian/a11y-playwright-testing": "^0.
|
|
171
|
+
"@atlassian/a11y-playwright-testing": "^0.13.0",
|
|
172
172
|
"@atlassian/adf-schema-json": "^1.35.0",
|
|
173
173
|
"@atlassian/editor-rovo-bridge": "^21.0.0",
|
|
174
174
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
175
175
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
176
|
-
"@atlassian/search-client": "^3.
|
|
176
|
+
"@atlassian/search-client": "^3.5.0",
|
|
177
177
|
"@atlassian/search-provider": "^23.0.0",
|
|
178
178
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
179
179
|
"@atlassian/testing-library": "^0.11.0",
|
|
180
|
-
"@atlassian/user-profile-card": "^1.
|
|
180
|
+
"@atlassian/user-profile-card": "^1.42.0",
|
|
181
181
|
"@emotion/jest": "^11.8.0",
|
|
182
182
|
"@testing-library/react": "^16.3.0",
|
|
183
183
|
"@types/diff": "^5.0.2",
|