@atlaskit/editor-core 193.28.6 → 193.28.10
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 +11 -0
- package/architecture/0003-explicit-plugin-dependencies.md +1 -1
- package/dist/cjs/presets/default.js +5 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/default.js +4 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/default.js +5 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +4 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.28.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#113338](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113338)
|
|
8
|
+
[`6b5439f51eab4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b5439f51eab4) -
|
|
9
|
+
ECA11Y-5 remove FF from codebase
|
|
10
|
+
- [#115170](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115170)
|
|
11
|
+
[`84489f16bb385`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/84489f16bb385) -
|
|
12
|
+
Adds a pm-plugin to register contentMoved event as an alternative to DnD feature.
|
|
13
|
+
|
|
3
14
|
## 193.28.6
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -43,7 +43,7 @@ gained from the initial table plugin extraction.
|
|
|
43
43
|
|
|
44
44
|
Linting errors will now be present for any new code that gets added, where we continue to attempt
|
|
45
45
|
importing from one plugin into another. (See `ELR101`, `ELR102` in
|
|
46
|
-
`
|
|
46
|
+
`https://hello.atlassian.net/wiki/spaces/AF/pages/2634573964/Editor+Lint`).
|
|
47
47
|
|
|
48
48
|
### Other resources
|
|
49
49
|
|
|
@@ -38,6 +38,7 @@ var _undoRedo = require("@atlaskit/editor-plugins/undo-redo");
|
|
|
38
38
|
var _unsupportedContent = require("@atlaskit/editor-plugins/unsupported-content");
|
|
39
39
|
var _width = require("@atlaskit/editor-plugins/width");
|
|
40
40
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
41
|
+
var _isFullPage = require("../utils/is-full-page");
|
|
41
42
|
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; }
|
|
42
43
|
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
|
|
43
44
|
// #endregion
|
|
@@ -49,10 +50,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
49
50
|
function createDefaultPreset(options) {
|
|
50
51
|
var _options$featureFlags, _options$featureFlags2;
|
|
51
52
|
var isMobile = options.appearance === 'mobile';
|
|
53
|
+
var isFullPage = (0, _isFullPage.isFullPage)(options.appearance);
|
|
52
54
|
var preset = new _preset.EditorPresetBuilder().add([_featureFlags.featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([_analytics.analyticsPlugin, {
|
|
53
55
|
createAnalyticsEvent: options.createAnalyticsEvent,
|
|
54
56
|
performanceTracking: options.performanceTracking
|
|
55
|
-
}], Boolean(options.allowAnalyticsGASV3)).add(_betterTypeHistory.betterTypeHistoryPlugin).add([_paste.pastePlugin, _objectSpread({}, options === null || options === void 0 ? void 0 : options.paste)
|
|
57
|
+
}], Boolean(options.allowAnalyticsGASV3)).add(_betterTypeHistory.betterTypeHistoryPlugin).add([_paste.pastePlugin, _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.paste), {}, {
|
|
58
|
+
isFullPage: isFullPage
|
|
59
|
+
})]).add(_clipboard.clipboardPlugin).add(_focus.focusPlugin).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
|
|
56
60
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
57
61
|
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(_primaryToolbar.primaryToolbarPlugin, function () {
|
|
58
62
|
return !!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.primary-toolbar-ordering');
|
|
@@ -31,6 +31,7 @@ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
|
|
|
31
31
|
import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
|
|
32
32
|
import { widthPlugin } from '@atlaskit/editor-plugins/width';
|
|
33
33
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
34
|
+
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
34
35
|
// #endregion
|
|
35
36
|
|
|
36
37
|
/**
|
|
@@ -40,11 +41,13 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
|
40
41
|
export function createDefaultPreset(options) {
|
|
41
42
|
var _options$featureFlags, _options$featureFlags2;
|
|
42
43
|
const isMobile = options.appearance === 'mobile';
|
|
44
|
+
const isFullPage = fullPageCheck(options.appearance);
|
|
43
45
|
const preset = new EditorPresetBuilder().add([featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([analyticsPlugin, {
|
|
44
46
|
createAnalyticsEvent: options.createAnalyticsEvent,
|
|
45
47
|
performanceTracking: options.performanceTracking
|
|
46
48
|
}], Boolean(options.allowAnalyticsGASV3)).add(betterTypeHistoryPlugin).add([pastePlugin, {
|
|
47
|
-
...(options === null || options === void 0 ? void 0 : options.paste)
|
|
49
|
+
...(options === null || options === void 0 ? void 0 : options.paste),
|
|
50
|
+
isFullPage
|
|
48
51
|
}]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
49
52
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
50
53
|
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, () => !!getBooleanFF('platform.editor.primary-toolbar-ordering')).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)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([selectionToolbarPlugin, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.28.
|
|
2
|
+
export const version = "193.28.10";
|
|
@@ -34,6 +34,7 @@ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
|
|
|
34
34
|
import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
|
|
35
35
|
import { widthPlugin } from '@atlaskit/editor-plugins/width';
|
|
36
36
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
37
|
+
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
37
38
|
// #endregion
|
|
38
39
|
|
|
39
40
|
/**
|
|
@@ -43,10 +44,13 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
|
43
44
|
export function createDefaultPreset(options) {
|
|
44
45
|
var _options$featureFlags, _options$featureFlags2;
|
|
45
46
|
var isMobile = options.appearance === 'mobile';
|
|
47
|
+
var isFullPage = fullPageCheck(options.appearance);
|
|
46
48
|
var preset = new EditorPresetBuilder().add([featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([analyticsPlugin, {
|
|
47
49
|
createAnalyticsEvent: options.createAnalyticsEvent,
|
|
48
50
|
performanceTracking: options.performanceTracking
|
|
49
|
-
}], Boolean(options.allowAnalyticsGASV3)).add(betterTypeHistoryPlugin).add([pastePlugin, _objectSpread({}, options === null || options === void 0 ? void 0 : options.paste)
|
|
51
|
+
}], Boolean(options.allowAnalyticsGASV3)).add(betterTypeHistoryPlugin).add([pastePlugin, _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.paste), {}, {
|
|
52
|
+
isFullPage: isFullPage
|
|
53
|
+
})]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
50
54
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
51
55
|
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, function () {
|
|
52
56
|
return !!getBooleanFF('platform.editor.primary-toolbar-ordering');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.28.
|
|
2
|
+
export var version = "193.28.10";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "193.28.
|
|
3
|
+
"version": "193.28.10",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
53
53
|
"@atlaskit/emoji": "^67.6.0",
|
|
54
|
-
"@atlaskit/icon": "^22.
|
|
54
|
+
"@atlaskit/icon": "^22.5.0",
|
|
55
55
|
"@atlaskit/media-card": "^77.12.0",
|
|
56
56
|
"@atlaskit/mention": "^23.2.0",
|
|
57
57
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@af/editor-examples-helpers": "0.0.
|
|
84
|
+
"@af/editor-examples-helpers": "0.0.10",
|
|
85
85
|
"@af/editor-libra": "*",
|
|
86
86
|
"@af/visual-regression": "*",
|
|
87
87
|
"@atlaskit/adf-utils": "^19.3.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
100
100
|
"@atlaskit/media-test-helpers": "^33.0.27",
|
|
101
101
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
102
|
-
"@atlaskit/primitives": "^
|
|
102
|
+
"@atlaskit/primitives": "^9.0.0",
|
|
103
103
|
"@atlaskit/renderer": "^109.36.0",
|
|
104
104
|
"@atlaskit/smart-card": "^27.7.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.4.0",
|
|
@@ -252,10 +252,6 @@
|
|
|
252
252
|
"type": "boolean",
|
|
253
253
|
"referenceOnly": true
|
|
254
254
|
},
|
|
255
|
-
"platform.editor.a11y-column-resizing_emcvz": {
|
|
256
|
-
"type": "boolean",
|
|
257
|
-
"referenceOnly": "true"
|
|
258
|
-
},
|
|
259
255
|
"platform.editor.paste-markdown-table-in-a-table": {
|
|
260
256
|
"type": "boolean",
|
|
261
257
|
"referenceOnly": "true"
|