@atlaskit/editor-core 194.3.9 → 194.3.11
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 +18 -0
- package/dist/cjs/composable-editor/editor.js +3 -2
- package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -1
- package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +4 -4
- package/dist/cjs/create-editor/ReactEditorView.js +3 -2
- package/dist/cjs/presets/default.js +6 -3
- package/dist/cjs/presets/universal.js +3 -1
- package/dist/cjs/utils/performance/instrumented-plugin.js +3 -3
- package/dist/cjs/utils/performance/track-transactions.js +3 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor.js +2 -1
- package/dist/es2019/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -1
- package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -1
- package/dist/es2019/presets/default.js +8 -4
- package/dist/es2019/presets/universal.js +3 -1
- package/dist/es2019/utils/performance/instrumented-plugin.js +1 -1
- package/dist/es2019/utils/performance/track-transactions.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor.js +2 -1
- package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -1
- package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +2 -1
- package/dist/esm/presets/default.js +7 -4
- package/dist/esm/presets/universal.js +3 -1
- package/dist/esm/utils/performance/instrumented-plugin.js +1 -1
- package/dist/esm/utils/performance/track-transactions.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +12 -1
- package/dist/types/presets/default.d.ts +24 -2
- package/dist/types/presets/universal.d.ts +12 -1
- package/dist/types/presets/useUniversalPreset.d.ts +12 -1
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +14 -1
- package/dist/types-ts4.5/presets/default.d.ts +28 -2
- package/dist/types-ts4.5/presets/universal.d.ts +14 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +14 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 194.3.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#122063](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122063)
|
|
8
|
+
[`c136e556d086d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c136e556d086d) -
|
|
9
|
+
[ux] Apply live page and check for live view in card and hyperlink plugin
|
|
10
|
+
|
|
11
|
+
## 194.3.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#121678](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121678)
|
|
16
|
+
[`9ca02c9c7c5ce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9ca02c9c7c5ce) -
|
|
17
|
+
created new entrypoint for startMeasure,stopMeasure,clearMeasure, deprecated those functions in
|
|
18
|
+
editor-common/utils
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 194.3.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -15,6 +15,7 @@ var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-contex
|
|
|
15
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
16
16
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
17
17
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
18
|
+
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
18
19
|
var _ufo = require("@atlaskit/editor-common/ufo");
|
|
19
20
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
20
21
|
var _actions = _interopRequireDefault(require("../actions"));
|
|
@@ -79,9 +80,9 @@ function Editor(passedProps) {
|
|
|
79
80
|
if (onEditorReady) {
|
|
80
81
|
var _performanceTracking$;
|
|
81
82
|
var measureEditorReady = (performanceTracking === null || performanceTracking === void 0 || (_performanceTracking$ = performanceTracking.onEditorReadyCallbackTracking) === null || _performanceTracking$ === void 0 ? void 0 : _performanceTracking$.enabled) || (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.ufo);
|
|
82
|
-
measureEditorReady && (0,
|
|
83
|
+
measureEditorReady && (0, _performanceMeasures.startMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK);
|
|
83
84
|
onEditorReady(editorActions);
|
|
84
|
-
measureEditorReady && (0,
|
|
85
|
+
measureEditorReady && (0, _performanceMeasures.stopMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK, (0, _sendDurationAnalytics.default)(_analytics.ACTION.ON_EDITOR_READY_CALLBACK, {
|
|
85
86
|
contextIdentifierProvider: contextIdentifierProvider,
|
|
86
87
|
featureFlags: featureFlags
|
|
87
88
|
}, getExperienceStore, createAnalyticsEvent));
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = useEditorConstructor;
|
|
8
8
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
9
|
+
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
9
10
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
10
11
|
var _measureEnum = _interopRequireDefault(require("../../utils/performance/measure-enum"));
|
|
11
12
|
var _editorMeasureTTICallback = _interopRequireDefault(require("../utils/editorMeasureTTICallback"));
|
|
@@ -25,7 +26,7 @@ var _editorMeasureTTICallback = _interopRequireDefault(require("../utils/editorM
|
|
|
25
26
|
function useEditorConstructor(performanceTracking, featureFlags, getExperienceStore, createAnalyticsEvent) {
|
|
26
27
|
(0, _hooks.useConstructor)(function () {
|
|
27
28
|
var _performanceTracking$;
|
|
28
|
-
(0,
|
|
29
|
+
(0, _performanceMeasures.startMeasure)(_measureEnum.default.EDITOR_MOUNTED);
|
|
29
30
|
if (performanceTracking !== null && performanceTracking !== void 0 && (_performanceTracking$ = performanceTracking.ttiTracking) !== null && _performanceTracking$ !== void 0 && _performanceTracking$.enabled || featureFlags !== null && featureFlags !== void 0 && featureFlags.ufo) {
|
|
30
31
|
var _performanceTracking$2, _performanceTracking$3;
|
|
31
32
|
(0, _utils.measureTTI)(function (tti, ttiFromInvocation, canceled, distortedDuration) {
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = useMeasureEditorMountTime;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
10
|
-
var
|
|
10
|
+
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
11
11
|
var _measureEnum = _interopRequireDefault(require("../../utils/performance/measure-enum"));
|
|
12
12
|
var _sendDurationAnalytics = _interopRequireDefault(require("../utils/sendDurationAnalytics"));
|
|
13
13
|
var _useEditorMeasuresConstructor = _interopRequireDefault(require("./useEditorMeasuresConstructor"));
|
|
@@ -25,11 +25,11 @@ var _useEditorMeasuresConstructor = _interopRequireDefault(require("./useEditorM
|
|
|
25
25
|
function useMeasureEditorMountTime(props, getExperienceStore, createAnalyticsEvent) {
|
|
26
26
|
(0, _useEditorMeasuresConstructor.default)(props.performanceTracking, props.featureFlags, getExperienceStore, createAnalyticsEvent);
|
|
27
27
|
(0, _react.useEffect)(function () {
|
|
28
|
-
(0,
|
|
28
|
+
(0, _performanceMeasures.stopMeasure)(_measureEnum.default.EDITOR_MOUNTED, (0, _sendDurationAnalytics.default)(_analytics.ACTION.EDITOR_MOUNTED, props, getExperienceStore, createAnalyticsEvent));
|
|
29
29
|
return function () {
|
|
30
30
|
var _props$performanceTra, _props$featureFlags;
|
|
31
|
-
(0,
|
|
32
|
-
(props === null || props === void 0 || (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.onEditorReadyCallbackTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled) && (0,
|
|
31
|
+
(0, _performanceMeasures.clearMeasure)(_measureEnum.default.EDITOR_MOUNTED);
|
|
32
|
+
(props === null || props === void 0 || (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.onEditorReadyCallbackTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled) && (0, _performanceMeasures.clearMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK);
|
|
33
33
|
if ((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.ufo) {
|
|
34
34
|
var _getExperienceStore;
|
|
35
35
|
(_getExperienceStore = getExperienceStore()) === null || _getExperienceStore === void 0 || _getExperienceStore.abortAll({
|
|
@@ -19,6 +19,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
19
19
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
20
20
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
21
21
|
var _normalizeFeatureFlags = require("@atlaskit/editor-common/normalize-feature-flags");
|
|
22
|
+
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
22
23
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
23
24
|
var _ufo = require("@atlaskit/editor-common/ufo");
|
|
24
25
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
@@ -262,14 +263,14 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
262
263
|
newEditorState = _ref2.newEditorState;
|
|
263
264
|
var trackinEnabled = _this.transactionTracking.enabled;
|
|
264
265
|
_this.config.onEditorViewStateUpdatedCallbacks.forEach(function (entry) {
|
|
265
|
-
trackinEnabled && (0,
|
|
266
|
+
trackinEnabled && (0, _performanceMeasures.startMeasure)("\uD83E\uDD89 ".concat(entry.pluginName, "::onEditorViewStateUpdated"));
|
|
266
267
|
entry.callback({
|
|
267
268
|
originalTransaction: originalTransaction,
|
|
268
269
|
transactions: transactions,
|
|
269
270
|
oldEditorState: oldEditorState,
|
|
270
271
|
newEditorState: newEditorState
|
|
271
272
|
});
|
|
272
|
-
trackinEnabled && (0,
|
|
273
|
+
trackinEnabled && (0, _performanceMeasures.stopMeasure)("\uD83E\uDD89 ".concat(entry.pluginName, "::onEditorViewStateUpdated"));
|
|
273
274
|
});
|
|
274
275
|
});
|
|
275
276
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "trackValidTransactions", function () {
|
|
@@ -59,15 +59,18 @@ function createDefaultPreset(options) {
|
|
|
59
59
|
})]).add(_clipboard.clipboardPlugin).add(_focus.focusPlugin).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
|
|
60
60
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
61
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 () {
|
|
62
|
-
return !!(0, _platformFeatureFlags.
|
|
62
|
+
return !!(0, _platformFeatureFlags.fg)('platform.editor.primary-toolbar-ordering');
|
|
63
63
|
}).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)).add([_blockType.blockTypePlugin, options.blockType]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).maybeAdd([_selectionToolbar.selectionToolbarPlugin, {
|
|
64
64
|
preferenceToolbarAboveSelection: false
|
|
65
65
|
}], function () {
|
|
66
|
-
if ((0, _platformFeatureFlags.
|
|
66
|
+
if ((0, _platformFeatureFlags.fg)('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
67
67
|
return true;
|
|
68
68
|
}
|
|
69
69
|
return false;
|
|
70
|
-
}).add([_hyperlink.hyperlinkPlugin,
|
|
70
|
+
}).add([_hyperlink.hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
|
|
71
|
+
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
72
|
+
__livePage: options.__livePage
|
|
73
|
+
})]).add([_textFormatting.textFormattingPlugin, options.textFormatting]).add(_width.widthPlugin).add([_quickInsert.quickInsertPlugin, options.quickInsert]).add([_placeholder.placeholderPlugin, options.placeholder]).add(_unsupportedContent.unsupportedContentPlugin).add(_editorDisabled.editorDisabledPlugin).add([_submitEditor.submitEditorPlugin, options.submitEditor]).add(_copyButton.copyButtonPlugin).add(_floatingToolbar.floatingToolbarPlugin).add([_selection.selectionPlugin, _objectSpread(_objectSpread({}, options.selection), {}, {
|
|
71
74
|
__livePage: options.__livePage
|
|
72
75
|
})]).add([_codeBlock.codeBlockPlugin, options.codeBlock]);
|
|
73
76
|
return preset;
|
|
@@ -189,7 +189,9 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
189
189
|
fullWidthMode: appearance === 'full-width',
|
|
190
190
|
linkPicker: (_props$linking2 = props.linking) === null || _props$linking2 === void 0 ? void 0 : _props$linking2.linkPicker,
|
|
191
191
|
lpLinkPicker: (_featureFlags$lpLinkP2 = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP2 !== void 0 ? _featureFlags$lpLinkP2 : false,
|
|
192
|
-
editorAppearance: appearance
|
|
192
|
+
editorAppearance: appearance,
|
|
193
|
+
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
194
|
+
__livePage: props.__livePage
|
|
193
195
|
})], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(_customAutoformat.customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([_status.statusPlugin, {
|
|
194
196
|
menuDisabled: statusMenuDisabled,
|
|
195
197
|
allowZeroWidthSpaceAfter: !isMobile
|
|
@@ -11,8 +11,8 @@ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
11
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
14
15
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
15
|
-
var _utils = require("@atlaskit/editor-common/utils");
|
|
16
16
|
var _saferTransactions = require("./safer-transactions");
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
18
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -69,11 +69,11 @@ var InstrumentedPlugin = exports.InstrumentedPlugin = /*#__PURE__*/function (_Sa
|
|
|
69
69
|
view.update = function (view, state) {
|
|
70
70
|
var shouldTrack = uiTrackingSamplingRate && uiTrackingSamplingCounter === 0;
|
|
71
71
|
if (shouldTrack) {
|
|
72
|
-
(0,
|
|
72
|
+
(0, _performanceMeasures.startMeasure)(measure);
|
|
73
73
|
}
|
|
74
74
|
originalUpdate(view, state);
|
|
75
75
|
if (shouldTrack) {
|
|
76
|
-
(0,
|
|
76
|
+
(0, _performanceMeasures.stopMeasure)(measure, function () {});
|
|
77
77
|
}
|
|
78
78
|
uiTrackingSamplingCounter++;
|
|
79
79
|
if (uiTrackingSamplingRate && uiTrackingSamplingCounter >= uiTrackingSamplingRate) {
|
|
@@ -8,6 +8,7 @@ exports.TransactionTracker = exports.EVENT_NAME_VIEW_STATE_UPDATED = exports.EVE
|
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
11
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
12
13
|
var EVENT_NAME_STATE_APPLY = exports.EVENT_NAME_STATE_APPLY = "\uD83E\uDD89 EditorView::state::apply";
|
|
13
14
|
var EVENT_NAME_UPDATE_STATE = exports.EVENT_NAME_UPDATE_STATE = "\uD83E\uDD89 EditorView::updateState";
|
|
@@ -48,8 +49,8 @@ var TransactionTracker = exports.TransactionTracker = /*#__PURE__*/function () {
|
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
return {
|
|
51
|
-
startMeasure: usePerformanceMarks ?
|
|
52
|
-
stopMeasure: usePerformanceMarks ?
|
|
52
|
+
startMeasure: usePerformanceMarks ? _performanceMeasures.startMeasure : _this.startMeasureSimple,
|
|
53
|
+
stopMeasure: usePerformanceMarks ? _performanceMeasures.stopMeasure : _this.stopMeasureSimple
|
|
53
54
|
};
|
|
54
55
|
});
|
|
55
56
|
(0, _defineProperty2.default)(this, "startMeasureSimple", function (measureName) {
|
|
@@ -10,8 +10,9 @@ import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-con
|
|
|
10
10
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
11
11
|
import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
12
12
|
import { useConstructor } from '@atlaskit/editor-common/hooks';
|
|
13
|
+
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
13
14
|
import { EditorExperience, ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
14
|
-
import { getAnalyticsAppearance
|
|
15
|
+
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
15
16
|
import EditorActions from '../actions';
|
|
16
17
|
import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
|
|
17
18
|
import { useEditorContext } from '../ui/EditorContext';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
3
|
import { useConstructor } from '@atlaskit/editor-common/hooks';
|
|
4
|
-
import {
|
|
4
|
+
import { startMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
5
|
+
import { measureTTI } from '@atlaskit/editor-common/utils';
|
|
5
6
|
import measurements from '../../utils/performance/measure-enum';
|
|
6
7
|
import editorMeasureTTICallback from '../utils/editorMeasureTTICallback';
|
|
7
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
3
|
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { clearMeasure, stopMeasure } from '@atlaskit/editor-common/
|
|
4
|
+
import { clearMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
5
5
|
import measurements from '../../utils/performance/measure-enum';
|
|
6
6
|
import sendDurationAnalytics from '../utils/sendDurationAnalytics';
|
|
7
7
|
import useEditorConstructor from './useEditorMeasuresConstructor';
|
|
@@ -5,10 +5,11 @@ import { injectIntl } from 'react-intl-next';
|
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, FULL_WIDTH_MODE, getAnalyticsEventsFromTransaction, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { getDocStructure } from '@atlaskit/editor-common/core-utils';
|
|
7
7
|
import { getEnabledFeatureFlagKeys } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
8
|
+
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
8
9
|
import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
9
10
|
import { EditorExperience, ExperienceStore, RELIABILITY_INTERVAL } from '@atlaskit/editor-common/ufo';
|
|
10
11
|
import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
|
|
11
|
-
import { analyticsEventKey, browser, countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking,
|
|
12
|
+
import { analyticsEventKey, browser, countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, validateNodes, validNode } from '@atlaskit/editor-common/utils';
|
|
12
13
|
import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
14
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
14
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -30,7 +30,7 @@ import { typeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
|
|
|
30
30
|
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
|
-
import {
|
|
33
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
34
34
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
35
35
|
// #endregion
|
|
36
36
|
|
|
@@ -50,14 +50,18 @@ export function createDefaultPreset(options) {
|
|
|
50
50
|
isFullPage
|
|
51
51
|
}]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
52
52
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
53
|
-
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, () => !!
|
|
53
|
+
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, () => !!fg('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, {
|
|
54
54
|
preferenceToolbarAboveSelection: false
|
|
55
55
|
}], () => {
|
|
56
|
-
if (
|
|
56
|
+
if (fg('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
57
57
|
return true;
|
|
58
58
|
}
|
|
59
59
|
return false;
|
|
60
|
-
}).add([hyperlinkPlugin,
|
|
60
|
+
}).add([hyperlinkPlugin, {
|
|
61
|
+
...options.hyperlinkOptions,
|
|
62
|
+
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
63
|
+
__livePage: options.__livePage
|
|
64
|
+
}]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, {
|
|
61
65
|
...options.selection,
|
|
62
66
|
__livePage: options.__livePage
|
|
63
67
|
}]).add([codeBlockPlugin, options.codeBlock]);
|
|
@@ -184,7 +184,9 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
184
184
|
fullWidthMode: appearance === 'full-width',
|
|
185
185
|
linkPicker: (_props$linking2 = props.linking) === null || _props$linking2 === void 0 ? void 0 : _props$linking2.linkPicker,
|
|
186
186
|
lpLinkPicker: (_featureFlags$lpLinkP2 = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP2 !== void 0 ? _featureFlags$lpLinkP2 : false,
|
|
187
|
-
editorAppearance: appearance
|
|
187
|
+
editorAppearance: appearance,
|
|
188
|
+
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
189
|
+
__livePage: props.__livePage
|
|
188
190
|
}], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
|
|
189
191
|
menuDisabled: statusMenuDisabled,
|
|
190
192
|
allowZeroWidthSpaceAfter: !isMobile
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
1
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { freezeUnsafeTransactionProperties } from './safer-transactions';
|
|
4
4
|
export class InstrumentedPlugin extends SafePlugin {
|
|
5
5
|
constructor(spec, options = {}, transactionTracker) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import {
|
|
2
|
+
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
3
|
+
import { getTimeSince, isPerformanceAPIAvailable } from '@atlaskit/editor-common/utils';
|
|
3
4
|
export const EVENT_NAME_STATE_APPLY = `🦉 EditorView::state::apply`;
|
|
4
5
|
export const EVENT_NAME_UPDATE_STATE = `🦉 EditorView::updateState`;
|
|
5
6
|
export const EVENT_NAME_VIEW_STATE_UPDATED = `🦉 EditorView::onEditorViewStateUpdated`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "194.3.
|
|
2
|
+
export const version = "194.3.11";
|
|
@@ -10,8 +10,9 @@ import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-con
|
|
|
10
10
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
11
11
|
import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
12
12
|
import { useConstructor } from '@atlaskit/editor-common/hooks';
|
|
13
|
+
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
13
14
|
import { EditorExperience, ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
14
|
-
import { getAnalyticsAppearance
|
|
15
|
+
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
15
16
|
import EditorActions from '../actions';
|
|
16
17
|
import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
|
|
17
18
|
import { useEditorContext } from '../ui/EditorContext';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
3
|
import { useConstructor } from '@atlaskit/editor-common/hooks';
|
|
4
|
-
import {
|
|
4
|
+
import { startMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
5
|
+
import { measureTTI } from '@atlaskit/editor-common/utils';
|
|
5
6
|
import measurements from '../../utils/performance/measure-enum';
|
|
6
7
|
import editorMeasureTTICallback from '../utils/editorMeasureTTICallback';
|
|
7
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
3
|
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { clearMeasure, stopMeasure } from '@atlaskit/editor-common/
|
|
4
|
+
import { clearMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
5
5
|
import measurements from '../../utils/performance/measure-enum';
|
|
6
6
|
import sendDurationAnalytics from '../utils/sendDurationAnalytics';
|
|
7
7
|
import useEditorConstructor from './useEditorMeasuresConstructor';
|
|
@@ -16,10 +16,11 @@ import { injectIntl } from 'react-intl-next';
|
|
|
16
16
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, FULL_WIDTH_MODE, getAnalyticsEventsFromTransaction, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
17
17
|
import { getDocStructure } from '@atlaskit/editor-common/core-utils';
|
|
18
18
|
import { getEnabledFeatureFlagKeys } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
19
|
+
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
19
20
|
import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
20
21
|
import { EditorExperience, ExperienceStore, RELIABILITY_INTERVAL } from '@atlaskit/editor-common/ufo';
|
|
21
22
|
import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
|
|
22
|
-
import { analyticsEventKey, browser, countNodes as _countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking,
|
|
23
|
+
import { analyticsEventKey, browser, countNodes as _countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, validateNodes, validNode } from '@atlaskit/editor-common/utils';
|
|
23
24
|
import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
24
25
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
25
26
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -33,7 +33,7 @@ import { typeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
|
|
|
33
33
|
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
|
-
import {
|
|
36
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
37
37
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
38
38
|
// #endregion
|
|
39
39
|
|
|
@@ -53,15 +53,18 @@ export function createDefaultPreset(options) {
|
|
|
53
53
|
})]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
54
54
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
55
55
|
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, function () {
|
|
56
|
-
return !!
|
|
56
|
+
return !!fg('platform.editor.primary-toolbar-ordering');
|
|
57
57
|
}).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, {
|
|
58
58
|
preferenceToolbarAboveSelection: false
|
|
59
59
|
}], function () {
|
|
60
|
-
if (
|
|
60
|
+
if (fg('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
61
61
|
return true;
|
|
62
62
|
}
|
|
63
63
|
return false;
|
|
64
|
-
}).add([hyperlinkPlugin,
|
|
64
|
+
}).add([hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
|
|
65
|
+
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
66
|
+
__livePage: options.__livePage
|
|
67
|
+
})]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, _objectSpread(_objectSpread({}, options.selection), {}, {
|
|
65
68
|
__livePage: options.__livePage
|
|
66
69
|
})]).add([codeBlockPlugin, options.codeBlock]);
|
|
67
70
|
return preset;
|
|
@@ -181,7 +181,9 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
181
181
|
fullWidthMode: appearance === 'full-width',
|
|
182
182
|
linkPicker: (_props$linking2 = props.linking) === null || _props$linking2 === void 0 ? void 0 : _props$linking2.linkPicker,
|
|
183
183
|
lpLinkPicker: (_featureFlags$lpLinkP2 = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP2 !== void 0 ? _featureFlags$lpLinkP2 : false,
|
|
184
|
-
editorAppearance: appearance
|
|
184
|
+
editorAppearance: appearance,
|
|
185
|
+
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
186
|
+
__livePage: props.__livePage
|
|
185
187
|
})], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
|
|
186
188
|
menuDisabled: statusMenuDisabled,
|
|
187
189
|
allowZeroWidthSpaceAfter: !isMobile
|
|
@@ -6,8 +6,8 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
+
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
9
10
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
10
|
-
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
|
|
11
11
|
import { freezeUnsafeTransactionProperties } from './safer-transactions';
|
|
12
12
|
export var InstrumentedPlugin = /*#__PURE__*/function (_SafePlugin) {
|
|
13
13
|
_inherits(InstrumentedPlugin, _SafePlugin);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
import {
|
|
4
|
+
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
5
|
+
import { getTimeSince, isPerformanceAPIAvailable } from '@atlaskit/editor-common/utils';
|
|
5
6
|
export var EVENT_NAME_STATE_APPLY = "\uD83E\uDD89 EditorView::state::apply";
|
|
6
7
|
export var EVENT_NAME_UPDATE_STATE = "\uD83E\uDD89 EditorView::updateState";
|
|
7
8
|
export var EVENT_NAME_VIEW_STATE_UPDATED = "\uD83E\uDD89 EditorView::onEditorViewStateUpdated";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "194.3.
|
|
2
|
+
export var version = "194.3.11";
|
|
@@ -3618,7 +3618,18 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3618
3618
|
}, undefined>>];
|
|
3619
3619
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
3620
3620
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
3621
|
-
}, import("@atlaskit/editor-plugin-card").CardPluginOptions
|
|
3621
|
+
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3622
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3623
|
+
dependencies: [];
|
|
3624
|
+
pluginConfiguration?: {
|
|
3625
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3626
|
+
} | undefined;
|
|
3627
|
+
commands: {
|
|
3628
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3629
|
+
};
|
|
3630
|
+
}, {
|
|
3631
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3632
|
+
} | undefined>>];
|
|
3622
3633
|
actions: {
|
|
3623
3634
|
hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
|
|
3624
3635
|
insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
|
|
@@ -854,7 +854,18 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
854
854
|
}, undefined>>];
|
|
855
855
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
856
856
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
857
|
-
}, import("@atlaskit/editor-plugin-card").CardPluginOptions
|
|
857
|
+
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
858
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
859
|
+
dependencies: [];
|
|
860
|
+
pluginConfiguration?: {
|
|
861
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
862
|
+
} | undefined;
|
|
863
|
+
commands: {
|
|
864
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
865
|
+
};
|
|
866
|
+
}, {
|
|
867
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
868
|
+
} | undefined>>];
|
|
858
869
|
actions: {
|
|
859
870
|
hideLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").HideLinkToolbar;
|
|
860
871
|
insertLink: import("@atlaskit/editor-plugins/hyperlink").InsertLink;
|
|
@@ -2539,7 +2550,18 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2539
2550
|
}, undefined>>];
|
|
2540
2551
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
2541
2552
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
2542
|
-
}, import("@atlaskit/editor-plugin-card").CardPluginOptions
|
|
2553
|
+
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2554
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2555
|
+
dependencies: [];
|
|
2556
|
+
pluginConfiguration?: {
|
|
2557
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2558
|
+
} | undefined;
|
|
2559
|
+
commands: {
|
|
2560
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2561
|
+
};
|
|
2562
|
+
}, {
|
|
2563
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2564
|
+
} | undefined>>];
|
|
2543
2565
|
actions: {
|
|
2544
2566
|
hideLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").HideLinkToolbar;
|
|
2545
2567
|
insertLink: import("@atlaskit/editor-plugins/hyperlink").InsertLink;
|
|
@@ -3635,7 +3635,18 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3635
3635
|
}, undefined>>];
|
|
3636
3636
|
sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
|
|
3637
3637
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
3638
|
-
}, import("@atlaskit/editor-plugins/card").CardPluginOptions
|
|
3638
|
+
}, import("@atlaskit/editor-plugins/card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3639
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3640
|
+
dependencies: [];
|
|
3641
|
+
pluginConfiguration?: {
|
|
3642
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3643
|
+
} | undefined;
|
|
3644
|
+
commands: {
|
|
3645
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3646
|
+
};
|
|
3647
|
+
}, {
|
|
3648
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3649
|
+
} | undefined>>];
|
|
3639
3650
|
actions: {
|
|
3640
3651
|
hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
|
|
3641
3652
|
insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
|
|
@@ -3621,7 +3621,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3621
3621
|
}, undefined>>];
|
|
3622
3622
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
3623
3623
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
3624
|
-
}, import("@atlaskit/editor-plugin-card").CardPluginOptions
|
|
3624
|
+
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
|
|
3625
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3626
|
+
dependencies: [];
|
|
3627
|
+
pluginConfiguration?: {
|
|
3628
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3629
|
+
} | undefined;
|
|
3630
|
+
commands: {
|
|
3631
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3632
|
+
};
|
|
3633
|
+
}, {
|
|
3634
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3635
|
+
} | undefined>>];
|
|
3625
3636
|
actions: {
|
|
3626
3637
|
hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
|
|
3627
3638
|
insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
|
|
@@ -4510,7 +4510,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4510
4510
|
];
|
|
4511
4511
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
4512
4512
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
4513
|
-
}, import("@atlaskit/editor-plugin-card").CardPluginOptions
|
|
4513
|
+
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>,
|
|
4514
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4515
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
4516
|
+
dependencies: [
|
|
4517
|
+
];
|
|
4518
|
+
pluginConfiguration?: {
|
|
4519
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4520
|
+
} | undefined;
|
|
4521
|
+
commands: {
|
|
4522
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4523
|
+
};
|
|
4524
|
+
}, {
|
|
4525
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4526
|
+
} | undefined>>
|
|
4514
4527
|
];
|
|
4515
4528
|
actions: {
|
|
4516
4529
|
hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
|
|
@@ -1073,7 +1073,20 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1073
1073
|
];
|
|
1074
1074
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
1075
1075
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
1076
|
-
}, import("@atlaskit/editor-plugin-card").CardPluginOptions
|
|
1076
|
+
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>,
|
|
1077
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1078
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
1079
|
+
dependencies: [
|
|
1080
|
+
];
|
|
1081
|
+
pluginConfiguration?: {
|
|
1082
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1083
|
+
} | undefined;
|
|
1084
|
+
commands: {
|
|
1085
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1086
|
+
};
|
|
1087
|
+
}, {
|
|
1088
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1089
|
+
} | undefined>>
|
|
1077
1090
|
];
|
|
1078
1091
|
actions: {
|
|
1079
1092
|
hideLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").HideLinkToolbar;
|
|
@@ -3174,7 +3187,20 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3174
3187
|
];
|
|
3175
3188
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
3176
3189
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
3177
|
-
}, import("@atlaskit/editor-plugin-card").CardPluginOptions
|
|
3190
|
+
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>,
|
|
3191
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3192
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3193
|
+
dependencies: [
|
|
3194
|
+
];
|
|
3195
|
+
pluginConfiguration?: {
|
|
3196
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3197
|
+
} | undefined;
|
|
3198
|
+
commands: {
|
|
3199
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3200
|
+
};
|
|
3201
|
+
}, {
|
|
3202
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3203
|
+
} | undefined>>
|
|
3178
3204
|
];
|
|
3179
3205
|
actions: {
|
|
3180
3206
|
hideLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").HideLinkToolbar;
|
|
@@ -4527,7 +4527,20 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
4527
4527
|
];
|
|
4528
4528
|
sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
|
|
4529
4529
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
4530
|
-
}, import("@atlaskit/editor-plugins/card").CardPluginOptions
|
|
4530
|
+
}, import("@atlaskit/editor-plugins/card").CardPluginOptions>>,
|
|
4531
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4532
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
4533
|
+
dependencies: [
|
|
4534
|
+
];
|
|
4535
|
+
pluginConfiguration?: {
|
|
4536
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4537
|
+
} | undefined;
|
|
4538
|
+
commands: {
|
|
4539
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4540
|
+
};
|
|
4541
|
+
}, {
|
|
4542
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4543
|
+
} | undefined>>
|
|
4531
4544
|
];
|
|
4532
4545
|
actions: {
|
|
4533
4546
|
hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
|
|
@@ -4513,7 +4513,20 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
4513
4513
|
];
|
|
4514
4514
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
4515
4515
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
4516
|
-
}, import("@atlaskit/editor-plugin-card").CardPluginOptions
|
|
4516
|
+
}, import("@atlaskit/editor-plugin-card").CardPluginOptions>>,
|
|
4517
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
|
|
4518
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
4519
|
+
dependencies: [
|
|
4520
|
+
];
|
|
4521
|
+
pluginConfiguration?: {
|
|
4522
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4523
|
+
} | undefined;
|
|
4524
|
+
commands: {
|
|
4525
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4526
|
+
};
|
|
4527
|
+
}, {
|
|
4528
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4529
|
+
} | undefined>>
|
|
4517
4530
|
];
|
|
4518
4531
|
actions: {
|
|
4519
4532
|
hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "194.3.
|
|
3
|
+
"version": "194.3.11",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^19.0.0",
|
|
48
|
-
"@atlaskit/editor-common": "^86.
|
|
48
|
+
"@atlaskit/editor-common": "^86.3.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^3.4.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|